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 |
|---|---|---|---|---|---|---|
Legge da file con percorso specificato | public static String readFromFile(String fileName) {
StringBuilder output = new StringBuilder();
boolean presente = new File(fileName).exists();
if (!presente) {
return "";
}
try {
FileReader reader = new FileReader(fileName);
BufferedReader bufferedReader = new BufferedReader(reader);
String line;
while ((line = bufferedReader.readLine()) != null) {
output.append(line).append("\n");
}
bufferedReader.close();
reader.close();
} catch (IOException e) {
e.printStackTrace();
}
return output.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void salvaPartita(String file) {\n\r\n }",
"String prepareFile();",
"public void mo210a(File file) {\n }",
"void citire(FileReader f);",
"private static void createFileContribuicaoUmidade() throws IOException{\r\n\t\tInteger contribuicaoDefault = 0;\r\n\t\tarqContribuicaoUmidade = new File(pathContribuicaoUmidade);\r\n\t\tif(!arqContribuicaoUmidade.exists()) {\r\n\t\t\tarqContribuicaoUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(getArqContribuicaoUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(contribuicaoDefault.toString() + String.valueOf('\\n'));\r\n\t\t\tbuffWrite.close();\r\n\t\t}else {//Se arquivo existir\r\n\t\t\tFileReader fr = new FileReader(getArqContribuicaoUmidade());\r\n\t\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\t\tif(!buffRead.ready()) {/*Se o arquivo se encontar criado mas estiver vazio(modificado)*/\r\n\t\t\t\tFileWriter fw = new FileWriter(arqContribuicaoUmidade);\r\n\t\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\t\tbuffWrite.append(contribuicaoDefault.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma contribuicao Inicial*/\r\n\t\t\t\tbuffWrite.close();\r\n\t\t\t}\r\n\t\t\tbuffRead.close();\r\n\t\t}\r\n\t}",
"private void getArquivo()\n {\n /*** Obtem o conteudo do pacote através do diretorio ***/\n File file = new File(caminho_origem);\n if (file.isFile())\n {\n try\n {\n /*** Lê o pacote e põe em um array de bytes ***/\n DataInputStream diStream = new DataInputStream(new FileInputStream(file));\n long len = (int) file.length();\n if (len > Utils.tamanho_maximo_arquivo)\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_muito_grande);\n System.exit(0);\n }\n Float numero_pacotes_ = ((float)len / Utils.tamanho_util_pacote);\n int numero_pacotes = numero_pacotes_.intValue();\n int ultimo_pacote = (int) len - (Utils.tamanho_util_pacote * numero_pacotes);\n int read = 0;\n /***\n 1500\n fileBytes[1500]\n p[512]\n p[512]\n p[476]len - (512 * numero_pacotes.intValue())\n ***/\n byte[] fileBytes = new byte[(int)len];\n while (read < fileBytes.length)\n {\n fileBytes[read] = diStream.readByte();\n read++;\n }\n int i = 0;\n int pacotes_feitos = 0;\n while ( pacotes_feitos < numero_pacotes)\n {\n byte[] mini_pacote = new byte[Utils.tamanho_util_pacote];\n for (int k = 0; k < Utils.tamanho_util_pacote; k++)\n {\n mini_pacote[k] = fileBytes[i];\n i++;\n }\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(mini_pacote);\n this.pacotes.add(pacote_);\n pacotes_feitos++;\n }\n byte[] ultimo_mini_pacote = new byte[ultimo_pacote];\n int ultimo_indice = ultimo_mini_pacote.length;\n for (int j = 0; j < ultimo_mini_pacote.length; j++)\n {\n ultimo_mini_pacote[j] = fileBytes[i];\n i++;\n }\n byte[] ultimo_mini_pacote2 = new byte[512];\n System.arraycopy(ultimo_mini_pacote, 0, ultimo_mini_pacote2, 0, ultimo_mini_pacote.length);\n for(int h = ultimo_indice; h < 512; h++ ) ultimo_mini_pacote2[h] = \" \".getBytes()[0];\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(ultimo_mini_pacote2);\n this.pacotes.add(pacote_);\n this.janela = new HashMap<>();\n for (int iterator = 0; iterator < this.pacotes.size(); iterator++) janela.put(iterator, new Estado());\n } catch (Exception e)\n {\n System.out.println(Utils.prefixo_cliente + Utils.erro_na_leitura);\n System.exit(0);\n }\n } else\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_inexistente);\n System.exit(0);\n }\n }",
"public void readFile();",
"private void abrirFichero() {\r\n\t\tJFileChooser abrir = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tabrir.setFileFilter(filtro);\r\n\t\tif(abrir.showOpenDialog(abrir) == JFileChooser.APPROVE_OPTION){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.liga = (Liga) Gestion.abrir(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setAbierto(true);\r\n\t\t\t\tGestion.setFichero(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se ha podido abrir el fichero\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void readFromFile() {\n\n\t}",
"public abstract String getFileLocation();",
"public void Leer() throws FileNotFoundException\n {\n // se crea una nueva ruta en donde se va a ir a leer el archivo\n String ruta = new File(\"datos.txt\").getAbsolutePath(); \n archivo=new File(ruta); \n }",
"abstract String getFileRoute() throws IOException;",
"public void arquivo(String nomarq)\r\n {\n }",
"protected abstract void readFile();",
"public static void RT() {////cada clase que tiene informacion en un archivo txt tiene este metodo para leer el respectivo archivoy guardarlo en su hashmap\n\t\treadTxt(\"peliculas.txt\", pelisList);\n\t}",
"private void setFile() {\n\t}",
"String getFile();",
"String getFile();",
"String getFile();",
"public static void main(String[] args) {\n File file = new File (\"tesEt.txt\");\n // Path file = Paths.get(\"test.txt\");\n // System.out.println(file.get);\n System.out.println(file.getAbsoluteFile());\n System.out.println(file.isAbsolute());\n System.out.println(file.exists());\n \n // try {\n // // File.createTempFile(\"prefix\", \"suffix\");\n // sy\n // } catch (IOException e) {\n // // TODO Auto-generated catch block\n // e.printStackTrace();\n // }finally\n // {\n // System.out.println(\"hehehehe\");\n // }\n // file.\n\n }",
"public void abrirArchivo() {\r\n try {\r\n entrada = new Scanner(new File(\"estudiantes.txt\"));\r\n } // fin de try\r\n catch (FileNotFoundException fileNotFoundException) {\r\n System.err.println(\"Error al abrir el archivo.\");\r\n System.exit(1);\r\n } // fin de catch\r\n }",
"protected void addContentHMetisInFilePath() {\n\t\tPTNetlist ptNetlist = this.getNetlister().getPTNetlist();\n\t\tString newline = System.lineSeparator();\n\t\tMap<PTNetlistNode, Integer> vertexIntegerMap = this.getVertexIntegerMap();\n\t\tList<String> fileContent = new ArrayList<String>();\n\t\t// vertices\n\t\tPTNetlistNode src = null;\n\t\tPTNetlistNode dst = null;\n\t\tInteger srcInteger = null;\n\t\tInteger dstInteger = null;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < ptNetlist.getNumEdge(); i++){\n\t\t\tPTNetlistEdge edge = ptNetlist.getEdgeAtIdx(i);\n\t\t\tif (PTNetlistEdgeUtils.isEdgeConnectedToPrimary(edge)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttemp ++;\n\t\t\tsrc = edge.getSrc();\n\t\t\tdst = edge.getDst();\n\t\t\tsrcInteger = vertexIntegerMap.get(src);\n\t\t\tdstInteger = vertexIntegerMap.get(dst);\n\t\t\tfileContent.add(srcInteger + \" \" + dstInteger + newline);\n\t\t}\n\t\ttry {\n\t\t\tOutputStream outputStream = new FileOutputStream(this.getHMetisInFile());\n\t\t\tWriter outputStreamWriter = new OutputStreamWriter(outputStream);\n\t\t\t// Format of Hypergraph Input File\n\t\t\t// header lines are: [number of edges] [number of vertices] \n\t\t\t//\t\tsubsequent lines give each edge, one edge per line\n\t\t\toutputStreamWriter.write(temp + \" \" + vertexIntegerMap.size() + newline);\n\t\t\tfor (int i = 0; i < fileContent.size(); i++) {\n\t\t\t\toutputStreamWriter.write(fileContent.get(i));\n\t\t\t}\t\t\t\n\t\t\toutputStreamWriter.close();\n\t\t\toutputStream.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private static void letturaFilePerRiga(File file) {\n\t\ttry(FileReader reader = new FileReader(file);\n\t\t\tBufferedReader buffReader = new BufferedReader(reader)) {\n\t\t\tString riga = null;\n\t\t\t\n\t\t\tdo {\n\t\t\t\triga = buffReader.readLine();\n\t\t\t\tSystem.out.println(riga);\n\n\t\t\t} while (riga != null);\n\t\t\twhile(riga != null);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO: handle exception\n\t\t} catch (IOException e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\n\n\t}",
"public void seleccionarFichero(){\n JFileChooser fileChooser = new JFileChooser();\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"xml\", \"xml\");\n fileChooser.setFileFilter(filter);\n fileChooser.setCurrentDirectory(new java.io.File(\"./ficheros\"));\n int seleccion = fileChooser.showOpenDialog(vista_principal);\n if (seleccion == JFileChooser.APPROVE_OPTION){\n fichero = fileChooser.getSelectedFile();\n vista_principal.getTxtfield_nombre_fichero().\n setText(fichero.getName().substring(0, fichero.getName().length()-4));\n }\n }",
"private void grabarArchivo() {\n\t\tPrintWriter salida;\n\t\ttry {\n\t\t\tsalida = new PrintWriter(new FileWriter(super.salida));\n\t\t\tsalida.println(this.aDevolver);\n\t\t\tsalida.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void service_psy (Personne p) throws FileNotFoundException\r\n\t{\r\n\t\r\n\t\t\r\n\t\t \t\tString [] info_psy=null ;\r\n\t\t \t\tString [] cle_valeur=null;\r\n\t\t \t\tboolean spec,adr;\r\n\t\t \t\tFileInputStream f=new FileInputStream(\"C://Users/Azaiez Hamed/Desktop/workspace/Projet de programmation/src/Medecin.txt\");\r\n\t\t \t\ttry {\r\n\t\t \t\t\tBufferedReader reader =new BufferedReader (new InputStreamReader(f,\"UTF-8\"));\r\n\t\t \t\t\tString line=reader.readLine();\r\n\t\t \t\t\twhile(line!=null){\r\n\t\t \t\t\t\tinfo_psy=line.split(\"\\t\\t\\t\");\r\n\t\t \t\t\t\tspec=false;adr=false;\r\n\t\t \t\t\t\tfor(int i=0;i<info_psy.length;i++)\r\n\t\t \t\t\t\t{\r\n\t\t \t\t\t\t\t cle_valeur=info_psy[i].split(\":\");\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"specialite\"))&& (cle_valeur[1].equals(\"psy\")))\r\n\t\t\t\t\t\t \t spec=true;\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"gouvernerat\"))&&(cle_valeur[1].equals(p.getGouvernerat())))\r\n\t\t \t\t\t\t\t \tadr=true;\r\n\t\t\t\t\t\t}\r\n\t\t \t\t\t\tif (spec && adr) {\r\n\t\t \t\t\t\t\t System.out.println(\"voilà toutes les informations du psy, veuillez lui contacter immédiatement **\");\r\n\t\t \t\t\t\t\t System.out.println(line);return;}\r\n\t\t \t\t\t\telse\r\n\t\t \t\t\t\t line=reader.readLine();\r\n\t\t \t\t\t\t }\r\n\t\t \t\t }\r\n\t\t \t\t \tcatch(IOException e){e.printStackTrace();}\r\n\t\t \t\t System.out.println(\"Pas de psy trouvé dans votre gouvernerat\");\r\n\t}",
"void abreArquivo (String filetText, String fileData){\n //Abre e le o arquivo\n arquivo.abrirArquivo(filetText); //Le primeiro arquivo\n separaDados.salvaInstrucao (arquivo.arquivo, memoria); //Salva na memoria de texto\n\n arquivo.abrirArquivo(fileData); //Le arquivo de dados\n separaDados.salvaDados (arquivo.arquivo, memoria); //Armazena arquivo lido na memoria\n }",
"public static void main(String[] args) {\n File myFile = new File (\"d:/names.txt\");\r\n // para saber si el archivo no existe, devuelve true o false\r\n System.out.println(\"file.exists(): \" + myFile.exists());\r\n System.out.println(\"file.isDirectory(): \" + myFile.isDirectory());\r\n // para saber la fecha de modificación\r\n System.out.println(\"file.lastModified(): \" + myFile.lastModified());\r\n // para saber el nombre del archivo\r\n System.out.println(\"file.getName(): \" + myFile.getName());\r\n // para saber la ruta\r\n System.out.println(\"file.getPath(): \" + myFile.getPath());\r\n // para saber el tamaño en bytes que ocupa en disco\r\n System.out.println(\"file.length(): \" + myFile.length()+\" bytes\");\r\n // para saber si es de lectura, devuelve true o false\r\n System.out.println(\"file.canRead():\" + myFile.canRead());\r\n\r\n //File newfolder = new File(\"D:/carpeta con archivos año mío\");\r\n //System.out.println(newfolder.mkdir());\r\n\r\n // si fuera un directorio, para saber los archivos que contiene\r\n File carpeta = new File(\"D:/carpeta_con_archivos\");\r\n System.out.println(\"----listado archivos D:/carpeta_archivos------\");\r\n for (String archivo : carpeta.list()) {\r\n System.out.println(archivo);\r\n }\r\n\r\n //agregar una linea nueva a un archivo existente (METODO 1)\r\n /*try {\r\n //abra el archivo , TRUE en un forma append (agregar nuevos valores)\r\n FileWriter myFile2 = new FileWriter(\"d:/names.txt\", true);\r\n //cargar en memora ram del SO el contenido del archivo\r\n BufferedWriter dataFile = new BufferedWriter(myFile2);\r\n //agregar una nueva linea\r\n dataFile.write(\"\\nnueva linea tres\");\r\n dataFile.close();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }*/\r\n //agregar una linea nueva a un archivo existente (METODO 1 optimizado)\r\n /*try{\r\n BufferedWriter dataFile = new BufferedWriter(new FileWriter(\"d:/names.txt\",true));\r\n //agregamos la nueva linea\r\n dataFile.write(\"nueva linea sin borrar\");\r\n dataFile.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }*/\r\n // agregar nueva linea con metodo super optimizado en lineas (METODO FLAHS)\r\n try{\r\n PrintWriter myFile3 = new PrintWriter(new BufferedWriter(new FileWriter(\"d:/names.txt\", true)));\r\n myFile3.println(\"Otra nueva línea mezclando las dos librerías (PrintWriter + FileWriter) \");\r\n myFile3.close();\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n\r\n }",
"public void afficherFile() {\r\n\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Voici la File (tete a gauche, queue a droite): \");\r\n\t\tSystem.out.println(\"----------------------------------------------\");\r\n\r\n\t\tif (this.estVide() == true) {\r\n\r\n\t\t\tSystem.out.println();\r\n\t\t} else {\r\n\r\n\t\t\tCellule<T> ref = this.tete;\r\n\r\n\t\t\tfor (int i = 1; i <= this.getLongueurFile(); i++) {\r\n\r\n\t\t\t\tSystem.out.print(ref.getValeur() + \" \");\r\n\r\n\t\t\t\tif (ref.getSuivant() != null) {\r\n\r\n\t\t\t\t\tref = ref.getSuivant();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t}",
"FileObject getFile();",
"FileObject getFile();",
"public void subir_file()\n {\n FileChooser fc = new FileChooser();\n\n fc.getExtensionFilters().addAll(new FileChooser.ExtensionFilter(\"PDF Files\",\"*.pdf\")\n , new FileChooser.ExtensionFilter(\"Jpg Images\",\"*.jpg\",\"*.JPEG\",\"*.JPG\",\"*.jpeg\",\"*.PNG\",\"*.png\"));\n\n File fileSelected = fc.showOpenDialog(null);\n\n if (fileSelected!= null){\n txt_ruta.setText(fileSelected.getPath());\n\n if(txt_ruta.getText().contains(\".pdf\"))\n {\n System.out.println(\"si es pdf\");\n Image image = new Image(\"/sample/Clases/pdf.png\");\n image_esquema.setImage(image);\n\n }\n else\n {\n File file = new File(txt_ruta.getText());\n javafx.scene.image.Image image = new Image(file.toURI().toString());\n image_esquema.setImage(image);\n }\n\n }\n else{\n System.out.println(\"no se seleccinoó\");\n }\n }",
"String getFilePath();",
"private static void info ( File f ) {\n\tString nume = f . getName () ;\n\tif( f.isFile () )\n\tSystem.out.println ( \" Fisier : \" + nume ) ;\n\telse\n\tif( f.isDirectory () )\n\tSystem.out.println ( \" Director : \" + nume ) ;\n\tSystem.out.println (\n\t\" Cale absoluta : \" + f.getAbsolutePath () +\n\t\" \\n Poate citi : \" + f.canRead () +\n\t\" \\n Poate scrie : \" + f.canWrite () +\n\t\" \\n Parinte : \" + f.getParent () +\n\t\" \\n Cale : \" + f.getPath () +\n\t\" \\n Lungime : \" + f.length () +\n\t\" \\n Data ultimei modificari : \" +\n\tnew Date ( f.lastModified () ) ) ;\n\tSystem.out.println ( \" --------------\" ) ;\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tSystem.out.println(\"leggi file 1\\t\");\r\n\t\tFileTesto ts = new FileTesto(\"leggi.txt\");\r\n\t\tts.leggiFile();\r\n\t\tts.stampa();\r\n\r\n\t\tSystem.out.println(\"scrivi file 2: \\t\");\r\n\t\tFileTesto ts1= new FileTesto(\"scritto.txt\");\r\n\t\tts1.simula();\r\n\t\tts1.scriviFile();\t\t\r\n\t\tts1.stampa();\r\n\t\tSystem.out.println(\"leggi file 2: \\t\");\r\n\t\tFileTesto ts2 = new FileTesto(\"scritto.txt\");\r\n\t\tts1.leggiFile();\r\n\t\tts1.stampa();\r\n\t}",
"public void arquivoSaida() {\r\n\r\n try {\r\n File file = new File(\"arquivoSaida.txt\");\r\n try (FileWriter arquivoSaida = new FileWriter(file, true)) {\r\n arquivoSaida.write(\"Rota do menor caminho entre as cidades escolhidas: \\n\\n\");\r\n Vertice v;\r\n \r\n //Escreve no arquivo a rota de ida de entrega nas cidades\r\n for (int i = 0; i < rota.getLista_de_rota().size() - 1; i++) {\r\n for (int j = 0; j < rota.getLista_de_rota().get(i).size(); j++) {\r\n v = rota.getLista_de_rota().get(i).get(j);\r\n arquivoSaida.write(v.getId() + \"; \");\r\n }\r\n }\r\n \r\n arquivoSaida.write(\"\\n\\nRota do menor caminho de volta: (Considerando que não há mais nenhuma entrega)\\n\\n\");\r\n // pegando a ultima posição da lista geral em que está a lista do menor caminho de volta\r\n int t = rota.getLista_de_rota().size() - 1; \r\n \r\n //Escreve a rota do caminho de volta, verificando a distancia entre a cidade origem e a cidade destino\r\n for (int j = rota.getLista_de_rota().get(t).size() - 1; j >= 0; j--) {\r\n v = (Vertice) rota.getLista_de_rota().get(t).get(j);\r\n arquivoSaida.write(v.getId() + \"; \");\r\n }\r\n arquivoSaida.write(\"Distancia percorrida: \"+rota.getDistancia()+\"\\n\");\r\n arquivoSaida.close();\r\n }\r\n } catch (IOException ex) { //caso nao seja possivel abrir algum dos arquivos\r\n System.out.println(\"Não foi possivel abrir arquivo\");\r\n }\r\n }",
"public static void main(String[] args) {\n\r\n String contenido = \"\";\r\n\r\n try {\r\n FileReader in = new FileReader(\"./src/fichero_prueba.txt\");\r\n int c = in.read();\r\n\r\n while (c != -1) {\r\n contenido += (char) c;\r\n c = in.read();\r\n }\r\n in.close();\r\n } catch (IOException e){\r\n System.out.println(e.getMessage());\r\n }\r\n\r\n System.out.println(contenido);\r\n\r\n\r\n //LEER MENSAJE POR BLOQUES\r\n\r\n String contenido2 = \"\";\r\n\r\n try {\r\n BufferedReader inb = new BufferedReader(new FileReader(\"./src/fichero_prueba.txt\"));\r\n\r\n String linea = inb.readLine();\r\n while (linea!=null){\r\n contenido2 += linea+\"\\n\";\r\n linea = inb.readLine();\r\n }\r\n inb.close();\r\n } catch (IOException e){\r\n e.printStackTrace();\r\n }\r\n System.out.println(contenido2);\r\n\r\n }",
"public void leerDeFichero() {\n try\n {\n Scanner sc = new Scanner(new File(\"texto.txt\"));\n while (sc.hasNextLine() && !textoCompleto())\n addFrase(sc.nextLine());\n sc.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"public n501070324_PedidosAssistencia() {\n super(\"Pedidos.txt\");\n }",
"Path getMainCatalogueFilePath();",
"public void LoadTxt(File Arquivo) {\n if (Arquivo.exists()) {\r\n\r\n try {\r\n\r\n FileReader FR = new FileReader(Arquivo);\r\n BufferedReader BW = new BufferedReader(new InputStreamReader(new FileInputStream(Arquivo.getAbsolutePath()), \"ISO-8859-1\"));\r\n\r\n //BufferedReader BW = new BufferedReader(FR);\r\n\r\n String dados;\r\n String[] paraArray = new String[3];\r\n String matricula;\r\n \r\n String serie = Arquivo.getName();\r\n int pos = serie.lastIndexOf(\".\");\r\n if (pos > 0) {\r\n serie = serie.substring(0, pos);\r\n }\r\n\r\n Sala novaSala = new Sala(serie); //CRIANDO SALA COM NOME DE TURMA\r\n salas2.add(novaSala); // ADICIONANDO SALA NA LISTA DE SALAS\r\n while ((dados = BW.readLine()) != null) {\r\n paraArray = dados.split(\";\");\r\n\r\n matricula = /*Integer.parseInt*/ (paraArray[0]);\r\n //senha = /*Integer.parseInt*/(paraArray[2]);\r\n Dados novoDado = new Dados(matricula, paraArray[1], paraArray[2]);\r\n\r\n novoDado.setSerie(serie); //ADICIONANDO TURMA AO DADO\r\n novaSala.getDadosalas().add(novoDado); //ADICIONANDO DADOS A LISTA DE DADOS QUE ESTA EM SALA\r\n\r\n }\r\n \r\n\r\n BW.close();\r\n FR.close();\r\n\r\n } catch (Exception e) {\r\n System.out.println(\"Erro ao carregar arquivo acima\");\r\n System.out.println(e.getMessage());\r\n\r\n }\r\n\r\n } else {\r\n System.out.println(\"Nenhum arquivo de dados encontrado\");\r\n }\r\n\r\n }",
"java.lang.String getFilePath();",
"void setFile(String i) {\n file = i;\n }",
"public static void main(String[] args) throws FileNotFoundException {\n\t\tListaNombre nombres = new ListaNombre();\n//\t\tnombres.add(new Nombre(\"guido\"));\n//\t\tnombres.add(new Nombre(\"guido\"));\n//\t\tnombres.add(new Nombre(\"guido\"));\n//\t\tnombres.add(new Nombre(\"juan\"));\n//\t\tnombres.add(new Nombre(\"juan\"));\n//\t\tnombres.add(new Nombre(\"daria\"));\n//\t\tnombres.add(new Nombre(\"daria\"));\n//\t\tnombres.add(new Nombre(\"pedro\"));\n//\t\tnombres.add(new Nombre(\"pedro\"));\n//\t\tnombres.add(new Nombre(\"pedro\"));\n//\t\tnombres.setCantRepetidos(3);\n//\t\tfor (Nombre nom : nombres.getNombres()) {\n//\t\t\tSystem.out.println(nom.getNombre() + \" \" + nom.getCant());\n//\t\t}\n\t\tnombres = ( Archivo.leer(\"C:\\\\Users\\\\guido\\\\eclipse-workspace\\\\DescubriendoNombresRepetidos\\\\premioA.in\"));\n\t\tArchivo.escribir(\"C:\\\\Users\\\\guido\\\\eclipse-workspace\\\\DescubriendoNombresRepetidos\\\\salida.out\",nombres);\n\t}",
"static void LeerArchivo(){ \r\n \t//iniciamos el try y si no funciona se hace el catch\r\n\r\n try{ \r\n \t//se crea un objeto br con el archivo de txt\r\n \tBufferedReader br = new BufferedReader( \r\n \tnew FileReader(\"reporte.txt\")\r\n );\r\n String s;\r\n //Mientras haya una linea de texto se imprime\r\n while((s = br.readLine()) != null){ \r\n System.out.println(s);\r\n }\r\n //se cierra el archivo de texto\r\n br.close(); \r\n } catch(Exception ex){\r\n \t//si no funciona se imprime el error\r\n System.out.println(ex); \r\n }\r\n }",
"public void armarPreguntas(){\n preguntas = file.listaPreguntas(\"Preguntas.txt\");\n }",
"public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void otvoriFajl() {\r\n\t\tJFileChooser fc = new JFileChooser();\r\n\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"Gym files\", \"gym\");\r\n\r\n\t\tfc.setFileFilter(filter);\r\n\t\tfc.setCurrentDirectory(new File(\".\"));\r\n\t\tint izbor = fc.showOpenDialog(teretanaGui.getContentPane());\r\n\r\n\t\tif (izbor == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tFile f = fc.getSelectedFile();\r\n\r\n\t\t\tString fileName = f.getAbsolutePath();\r\n\r\n\t\t\tpath = fileName;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tlistaClanova.ucitajIzFajla(fileName);\r\n\t\t\t\tpopuniTabelu();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(teretanaGui.getContentPane(), \"Greska pri ucitavanju clanova!\", \"Greska\",\r\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"public abstract File mo41087j();",
"Points(String filepath){\n readPointsFile(filepath); //dengan file points.txt\n }",
"public InventarioFile(){\r\n \r\n }",
"File getFile();",
"File getFile();",
"private static void createFileUmidade() throws IOException {\r\n\t\tInteger defaultUmidade = 30;\r\n\t\tarqUmidade = new File(pathUmidade);\r\n\t\tif(!arqUmidade.exists()) {\r\n\t\t\tarqUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(getArqUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\tbuffWrite.close();\r\n\t\t}else {\r\n\t\t\tFileReader fr = new FileReader(getArqUmidade());\r\n\t\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\t\tif(!buffRead.ready()) {/*Se o arquivo se encontar criado mas estiver vazio*/\r\n\t\t\t\tFileWriter fw = new FileWriter(arqUmidade);\r\n\t\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\t\tbuffWrite.close();\r\n\t\t\t}\r\n\t\t\tbuffRead.close();\r\n\t\t}\r\n\t}",
"public EditFile() {\r\n\t\tsuper();\r\n\t}",
"public void openFile() throws IOException {\n\t\tclientOutput.println(\">>> Unesite putanju do fajla fajla koji zelite da otvorite: \");\n\t\tuserInput = clientInput.readLine();\n\n\t\tizabraniF = new File(userInput);\n\n\t\t// Provera tipa fajla (.txt ili binarni)\n\t\tif (izabraniF.getName().endsWith(\".txt\")) {\n\t\t\tBufferedReader br = null;\n\t\t\ttry {\n\t\t\t\tbr = new BufferedReader(new FileReader(userInput));\n\n\t\t\t\tboolean kraj = false;\n\n\t\t\t\twhile (!kraj) {\n\t\t\t\t\tpom = br.readLine();\n\t\t\t\t\tif (pom == null)\n\t\t\t\t\t\tkraj = true;\n\t\t\t\t\telse\n\t\t\t\t\t\tclientOutput.println(pom);\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} else {\n\t\t\tpom = null;\n\t\t\ttry {\n\t\t\t\tFileInputStream fIs = new FileInputStream(izabraniF);\n\t\t\t\tbyte[] b = new byte[(int) izabraniF.length()];\n\t\t\t\tfIs.read(b);\n\t\t\t\tpom = new String(Base64.getEncoder().encode(b), \"UTF-8\");\n\t\t\t\tclientOutput.println(pom);\n\t\t\t\tfIs.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tclientOutput.println(\">>> Fajl nije pronadjen!\");\n\t\t\t}\n\t\t}\n\t}",
"public abstract void loadFile(Model mod, String fn) throws IOException;",
"public abstract String direcao();",
"public void get(String file) {\n\n }",
"public void leeArchivo() throws IOException {\n // defino el objeto de Entrada para tomar datos\n BufferedReader brwEntrada;\n try {\n // creo el objeto de entrada a partir de un archivo de texto\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n } catch (FileNotFoundException e) {\n // si marca error es que el archivo no existia entonces lo creo\n File filPuntos = new File(\"datos.txt\");\n PrintWriter prwSalida = new PrintWriter(filPuntos);\n // le pongo datos ficticios o de default\n // lo cierro para que se grabe lo que meti al archivo\n prwSalida.close();\n // lo vuelvo a abrir porque el objetivo es leer datos\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n }\n // con el archivo abierto leo los datos que estan guardados\n brwEntrada.close();\n }",
"private ControlloFile() {\n\t}",
"public void instalarTipoLetra()\r\n\t{\r\n\t\ttry\r\n { \r\n FileInputStream fIn = new FileInputStream(\"./images/dandelion in the spring.ttf\");\r\n FileOutputStream fOut = new FileOutputStream(\"C:/windows/fonts/dandelion in the spring.ttf\");\r\n \r\n FileChannel fIChan = fIn.getChannel();\r\n FileChannel fOChan = fOut.getChannel();\r\n \r\n long fSize = fIChan.size();\r\n \r\n MappedByteBuffer mBuf = \r\n fIChan.map(FileChannel.MapMode.READ_ONLY, 0, fSize); \r\n fOChan.write(mBuf);//con esto copiamos el archivo\r\n \r\n //nunca olvidemos cerrar los archivos\r\n fIChan.close();\r\n fIn.close();\r\n fOChan.close();\r\n fOut.close();\r\n JOptionPane.showMessageDialog(this,\"El tipo de letra ha sido instalada en el sistema operativo.\",\"Instalar Tipo Letra\", JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n JOptionPane.showMessageDialog(this,\"Cierre el Sistema Experto - SESP y vuelva a iniciar el ejecutable.\",\"Instalar Tipo Letra\", JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n }\r\n catch(Exception ef)\r\n {\r\n \tJOptionPane.showMessageDialog(this,\"Error al instalar el tipo de letra dandelion in the spring en el sistema operativo\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n \tJOptionPane.showMessageDialog(this,\"Intente instalar manualmente el archivo (dandelion in the spring.ttf) que esta en la carpeta images o intente\"+\"\\n\"+\" copiar manualmente el archivo (dandelion in the spring.ttf) en el directorio C:/windows/fonts\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n \t}\r\n\t}",
"public void OuvrirAgd() {\n //on charge l'agenda à partir d'un fichier en lecture\n try {\n File agd_a_lire = new File(\"C:\\\\Projet_Agenda_ING3\\\\saved_agendas\");\n Scanner sc = new Scanner(agd_a_lire);\n\n //on lit le fichier ligne par ligne\n /*while (sc.) {\n\n }*/\n\n sc.close();\n } catch (Exception e) {\n System.out.print(\"Erreur d'ouverture du fichier en lecture\\n\");\n }\n }",
"public BrihaspatiProFile() {\n }",
"public abstract File mo41088k();",
"SourceFilePath getFilePath();",
"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 abstract String getFileName();",
"Path getModBookFilePath();",
"public static void main(String[] args) {\n File myFile= new File(\"D:/yeah.txt\");\n System.out.println(\"Iiim file bnuu? \"+myFile.exists());\n\t System.out.println(\"Zaagdsan zam deeree bnuu?\"+myFile.isFile());\t \n\t System.out.println(\"Ug file iin ner \"+myFile.getName());\n\t System.out.println(\"Ug file iin zam \"+myFile.getPath());\n\t}",
"GetPrefix fileContent();",
"public abstract String getFileFormatName();",
"private String setFichero(enumFicheros fichero)\n\t{\n\t\tswitch(fichero)\n\t\t{\n\t\tcase FICHERO_INFO_RANURA1:\n\t\t{\n\t\t\treturn fichero_info_ranura1;\n\t\t}\n\t\tcase FICHERO_INFO_RANURA2:\n\t\t{\n\t\t\treturn fichero_info_ranura2;\n\t\t}\n\t\tcase FICHERO_INFO_RANURA3:\n\t\t{\n\t\t\treturn fichero_info_ranura3;\n\t\t}\n\t\tcase FICHERO_PJ_RANURA1:\n\t\t{\n\t\t\treturn fichero_pj_ranura1;\n\t\t}\n\t\tcase FICHERO_PJ_RANURA2:\n\t\t{\n\t\t\treturn fichero_pj_ranura2;\n\t\t}\n\t\tcase FICHERO_PJ_RANURA3:\n\t\t{\n\t\t\treturn fichero_pj_ranura3;\n\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private void validateFile(final boolean isRustica) {\n\t\thayErroresFilas = false;\r\n\t\thayErroresFila = false;\r\n\r\n\t\tcampoMasaCorrectos = true;\r\n\t\tcampoHojaCorrecto = true;\r\n\t\tcampoParecelaCorrecto = true;\r\n\t\tcampoTipoCorrecto = true;\r\n\t\tcampoFechaAltaCorrecto = true;\r\n\t\tcampoFechaBajaCorrecto = true;\r\n\r\n\t\tFile currentDirectory = (File) blackboard.get(ImportarUtils_LCGIII.LAST_IMPORT_DIRECTORY);\r\n\r\n\t\tGeopistaFiltroFicheroFilter filter = new GeopistaFiltroFicheroFilter();\r\n\t\tfilter.addExtension(\"SHP\");\r\n filter.setDescription(\"Shapefiles\");\r\n\t\t\r\n final JFileChooser jfc;\r\n final JTextField jtf;\r\n if (isRustica)\r\n {\r\n \tjfc = fcRustica;\t\r\n \tjtf = this.txtFicheroRustica;\r\n }\r\n\t\telse\r\n\t\t{\r\n\t\t\tjfc = fcUrbana;\r\n\t\t\tjtf = this.txtFicheroUrbana;\r\n\t\t}\r\n\t\t\t\t\r\n\t\t// FILES(*.*)\r\n jfc.setFileFilter(filter);\r\n \tjfc.setAcceptAllFileFilterUsed(false); // QUITA LA OPCION ALL\r\n\t\tjfc.setCurrentDirectory(currentDirectory);\r\n\t\t\r\n\t\tint returnVal = jfc.showOpenDialog(this);\r\n\t\tblackboard.put(ImportarUtils_LCGIII.LAST_IMPORT_DIRECTORY, jfc.getCurrentDirectory());\r\n\r\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION)\r\n\t\t{\r\n\t\t\t// Cargamos el fichero que hemos obtenido\r\n\t\t\tString fichero;\r\n\t\t\tfichero = jfc.getSelectedFile().getPath();\r\n\t\t\tjtf.setText(fichero); // meto el fichero seleccionado\r\n\t\t\t// en el campo\r\n\r\n\t\t\tcadenaTexto = \"<font face=SansSerif size=3>\"\r\n\t\t\t\t+ aplicacion.getI18nString(\"ImportacionComenzar\") + \"<b>\" + \" \"\r\n\t\t\t\t+ jfc.getSelectedFile().getName() + \"</b>\";\r\n\t\t\t\r\n\t\t\tcadenaTexto = cadenaTexto + \"<p>\" + aplicacion.getI18nString(\"OperacionMinutos\") + \" ...</p></font>\";\r\n\t\t\tcadenaTexto = cadenaTexto + aplicacion.getI18nString(\"importar.datos.parcelas\");\r\n\r\n\t\t\tediError.setText(cadenaTexto);\r\n\t\t\tcadenaTexto=\"\";\r\n\r\n\t\t\tfinal TaskMonitorDialog progressDialog = \r\n\t\t\t\tnew TaskMonitorDialog(aplicacion.getMainFrame(), geopistaEditor.getContext().getErrorHandler());\r\n\r\n\t\t\tprogressDialog.setTitle(aplicacion.getI18nString(\"ValidandoDatos\"));\r\n\t\t\tprogressDialog.report(aplicacion.getI18nString(\"ValidandoDatos\"));\r\n\t\t\tprogressDialog.addComponentListener(new ComponentAdapter()\r\n\t\t\t{\r\n\t\t\t\tpublic void componentShown(ComponentEvent e)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Wait for the dialog to appear before starting the\r\n\t\t\t\t\t// task. Otherwise\r\n\t\t\t\t\t// the task might possibly finish before the dialog\r\n\t\t\t\t\t// appeared and the\r\n\t\t\t\t\t// dialog would never close. [Jon Aquino]\r\n\t\t\t\t\tnew Thread(new Runnable()\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpublic void run()\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tGeopistaLayer layerParcelas = (GeopistaLayer) blackboard.get(\"capaParcelasInfoReferencia\");\r\n\t\t\t\t\t\t\t\tif (layerParcelas != null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tgeopistaEditor.getLayerManager().remove(layerParcelas);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tlayerParcelas = (GeopistaLayer) geopistaEditor.loadData(\r\n\t\t\t\t\t\t\t\t\t\tjfc.getSelectedFile().getAbsolutePath(),\r\n\t\t\t\t\t\t\t\t\t\taplicacion.getI18nString(\"importar.informe.parcelas\"));\r\n\t\t\t\t\t\t\t\tlayerParcelas.setActiva(false);\r\n\t\t\t\t\t\t\t\tlayerParcelas.addStyle(new BasicStyle(new Color(64, 64,64)));\r\n\t\t\t\t\t\t\t\tlayerParcelas.setVisible(false);\r\n\r\n\t\t\t\t\t\t\t\tif (isRustica)\r\n\t\t\t\t\t\t\t\t\tblackboard.put(\"capaParcelasInfoReferencia\", layerParcelas);\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tblackboard.put(\"capaParcelasInfoReferenciaUrbana\", layerParcelas);\r\n\r\n\t\t\t\t\t\t\t\t// Obtener el esquema\r\n\t\t\t\t\t\t\t\tFeatureSchema esquema = layerParcelas.getFeatureCollectionWrapper().getFeatureSchema();\r\n\r\n\t\t\t\t\t\t\t\t// Localizar los campos\r\n\t\t\t\t\t\t\t\tcampoMasaCorrectos = encontrarCampo(\"MASA\",esquema);\r\n\t\t\t\t\t\t\t\tcampoHojaCorrecto = encontrarCampo(\"HOJA\",esquema);\r\n\t\t\t\t\t\t\t\tcampoParecelaCorrecto = encontrarCampo(\"PARCELA\",esquema);\r\n\t\t\t\t\t\t\t\tcampoTipoCorrecto = encontrarCampo(\"TIPO\",esquema);\r\n\t\t\t\t\t\t\t\tcampoFechaAltaCorrecto = encontrarCampo(\"FECHAALTA\", esquema);\r\n\t\t\t\t\t\t\t\tcampoFechaBajaCorrecto = encontrarCampo(\"FECHABAJA\", esquema);\r\n\r\n\t\t\t\t\t\t\t\tif (campoMasaCorrectos \r\n\t\t\t\t\t\t\t\t\t\t&& campoHojaCorrecto\r\n\t\t\t\t\t\t\t\t\t\t&& campoParecelaCorrecto\r\n\t\t\t\t\t\t\t\t\t\t&& campoTipoCorrecto\r\n\t\t\t\t\t\t\t\t\t\t&& campoFechaAltaCorrecto\r\n\t\t\t\t\t\t\t\t\t\t&& campoFechaBajaCorrecto)\r\n\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\t// A partir de aqui hay que\r\n\t\t\t\t\t\t\t\t\t// verificar que no hay nulos y es\r\n\t\t\t\t\t\t\t\t\t// del tipo correcto los valores.\r\n\t\t\t\t\t\t\t\t\tList listaLayer = layerParcelas.getFeatureCollectionWrapper().getFeatures();\r\n\t\t\t\t\t\t\t\t\tIterator itLayer = listaLayer.iterator();\r\n\r\n\t\t\t\t\t\t\t\t\twhile (itLayer.hasNext())\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tif (hayErroresFila)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t// break;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tFeature f = (Feature) itLayer.next();\r\n\t\t\t\t\t\t\t\t\t\tString masa = f.getString(\"MASA\");\r\n\t\t\t\t\t\t\t\t\t\tString hoja = f.getString(\"HOJA\");\r\n\t\t\t\t\t\t\t\t\t\tString parcela = f.getString(\"PARCELA\");\r\n\r\n\t\t\t\t\t\t\t\t\t\tString tipo = f.getString(\"TIPO\");\r\n\t\t\t\t\t\t\t\t\t\t// Comprobamos que no sea nulo y\r\n\t\t\t\t\t\t\t\t\t\t// sea una U o una R\r\n\t\t\t\t\t\t\t\t\t\tif ((!tipo.equals(\"U\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& (!tipo.equals(\"R\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& (!tipo.equals(\"D\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& (!tipo.equals(\"X\")))\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t// Solo puede haber una R \r\n\t\t\t\t\t\t\t\t\t\t\t// una U una D o una X.\r\n\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = cadenaTexto\r\n\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.rustico\")\r\n\t\t\t\t\t\t\t\t\t\t\t+ masa\r\n\t\t\t\t\t\t\t\t\t\t\t+ hoja\r\n\t\t\t\t\t\t\t\t\t\t\t+ parcela\r\n\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fin.rustico\");\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t\t\t\t\t// break;\r\n\t\t\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\t\t\telse if (!isRustica && (tipo.equals(\"R\") || tipo.equals(\"D\") || tipo.equals(\"X\")))\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = I18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.inicio.parcelario\")\r\n\t\t\t\t\t\t\t\t\t\t\t+ I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.validacion.urbana\") + \r\n\t\t\t\t\t\t\t\t\t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.fin.parcelario\");\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\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\telse if (isRustica && tipo.equals(\"U\"))\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = I18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.inicio.parcelario\")\r\n\t\t\t\t\t\t\t\t\t\t\t+ I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.validacion.rustica\") + \r\n\t\t\t\t\t\t\t\t\t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.fin.parcelario\");\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\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\telse\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t// Comprobamos que la fecha\r\n\t\t\t\t\t\t\t\t\t\t\t// que viene sea fecha\r\n\t\t\t\t\t\t\t\t\t\t\ttry\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\t\tDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tDate date = (Date) formatter.parse(f.getString(\"FECHAALTA\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Comprobamos que la\r\n\t\t\t\t\t\t\t\t\t\t\t\t// fecha de baja es nula\r\n\t\t\t\t\t\t\t\t\t\t\t\t// o valida o 9999999\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (f.getString(\"FECHABAJA\").equals(\"99999999\"))\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\t// Correcto\r\n\t\t\t\t\t\t\t\t\t\t\t\t\thayErroresFila = false;\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\telse\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\tif ((f.getString(\"FECHABAJA\")) == null)\r\n\t\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\t\thayErroresFila = false;\r\n\t\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\telse\r\n\t\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\t\t// Comprobamos que sea una fecha correcta\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry\r\n\t\t\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\t\t\tDateFormat formatter1 = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDate date1 = (Date) formatter1.parse(f.getString(\"FECHABAJA\"));\r\n\t\t\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\t\tcatch (Exception excp)\r\n\t\t\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\t\t\texcp.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = cadenaTexto\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fecha.baja\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ masa\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ hoja\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ parcela\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fin.rustico\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// break;\r\n\t\t\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\t}\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//jtf.setBorder(BorderFactory.createLineBorder(Color.GREEN, 2));\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (isRustica)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\trusticaValida = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\t\t\turbanaValida = true;\r\n\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\tcatch (Exception exc)\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\t\t// En la fecha de alta\r\n\t\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = cadenaTexto\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fecha.alta.validacion\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ masa\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ hoja\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ parcela\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fin.rustico\");\r\n\t\t\t\t\t\t\t\t\t\t\t\texc.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t// break;\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t//Se comprueba si la geometría es de tipo polygon y no es empty (únicas válidas en la capa parcelas)\r\n\t\t\t\t\t\t\t\t\t\t\tif (!(f.getGeometry() instanceof Polygon)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t|| f.getGeometry().isEmpty())\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\r\n\t\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = I18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.inicio.parcelario\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.validacion.geometria\") + \r\n\t\t\t\t\t\t\t\t\t\t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.fin.parcelario\");\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\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t\t\t\t\t}\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} \r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t// Alguno de los campos no están\r\n\t\t\t\t\t\t\t\t\t// definidos\r\n\t\t\t\t\t\t\t\t\t// JOptionPane.showMessageDialog(this,aplicacion.getI18nString(\"importar.informe.parcelas.algun.campo\"));\r\n\t\t\t\t\t\t\t\t\tcadenaTexto += aplicacion.getI18nString(\"importar.informacion.ficheros.no.correctos\");\r\n\t\t\t\t\t\t\t\t\thayErroresFilas = true;\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\tif (isRustica)\r\n\t\t\t\t\t\t\t\t\t\trusticaValida = false;\r\n\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\turbanaValida = false;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\tcatch (Exception e)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\tfinally\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tprogressDialog.setVisible(false);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).start();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tGUIUtil.centreOnWindow(progressDialog);\r\n\t\t\tprogressDialog.setVisible(true);\r\n\r\n\t\t\tif (hayErroresFilas)\r\n\t\t\t{\r\n\t\t\t\tjtf.setBorder(BorderFactory.createLineBorder(Color.RED, 2));\r\n\t\t\t\tcadenaTexto = cadenaTexto + aplicacion.getI18nString(\"validacion.finalizada\");\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tjtf.setBorder(BorderFactory.createLineBorder(Color.GREEN, 2));\r\n\t\t\t\tcadenaTexto = cadenaTexto + aplicacion.getI18nString(\"importar.informe.parcelas.fichero.correcto\")\r\n\t\t\t\t+ aplicacion.getI18nString(\"validacion.finalizada\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tediError.setText(cadenaTexto);\r\n\t\t\twizardContext.inputChanged();\r\n\t\t}\r\n\r\n\t}",
"void changeFile()\n {\n App app = new App();\n // Loop through the read File\n for (String s : readFile) {\n if (app.containsUtilize(s)) {\n // Changes the first use of utilize with use\n String newTemp = s.replaceFirst(\"utilize\", \"use\");\n // Writes to file\n this.writeFile.add(newTemp);\n } else {\n // not utilize\n this.writeFile.add(s);\n }\n }\n }",
"@Override\n public int getFile() {\n return file;\n }",
"private void openFile() {\n\t\t\n\t\n\t\t\t\n\t\tFile file = jfc.getSelectedFile();\n\t\tint a = -1;\n\t\tif(file==null&&!jta.getText().equals(\"\"))\n\t\t{\n\t\t\ta = JOptionPane.showConfirmDialog(this, \"저장?\");\n\t\t\n\t\t}\n\t\tswitch (a){\n\t\tcase 0:\n\t\t\ttry {\n\t\t\t\tint c = -1;\n\t\t\t\tif(file==null)\n\t\t\t\t{\n\t\t\t\t\tc = jfc.showSaveDialog(this);\n\t\t\t\t}\n\t\t\t\tif(file!= null || c ==0)\n\t\t\t\t{\t\n\t\t\t\t\tFileWriter fw = new FileWriter(jfc.getSelectedFile());\n\t\t\t\t\tfw.write(jta.getText());\n\t\t\t\t\tfw.close();\n\t\t\t\t\tSystem.out.println(\"파일을 저장하였습니다\");\n\t\t\t\t}\n\t\t\t} catch (Exception e2) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(e2.getMessage());\n\t\t\t}\n\t\tbreak;\n\t\tcase 1:\n\t\t\ttry {\n\t\t\t\tint j=-1;\n\t\t\t\tif(file==null)\n\t\t\t\t{\n\t\t\t\t\tj = jfc.showOpenDialog(this);\n\t\t\t\t}\n\t\t\t\tif(file!= null || j == 1)\n\t\t\t\t{\t\n\t\t\t\t\tFileReader fr = new FileReader(file);\n\n\t\t\t\t\tString str=\"\";\n\t\t\t\t\twhile((j=fr.read())!=-1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr = str+(char)j;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tjta.setText(str);\n\t\t\t\t\t\n\t\t\t\t\tsetTitle(file.getName());\n\t\t\t\t\t\n\t\t\t\t\tfr.close();\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tcatch (Exception e2) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(e2.getMessage());\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\tint d= jfc.showOpenDialog(this);\n\t\t\n\t\tif(d==0)\n\t\t\ttry {\n\t\t\t\tFileReader fr = new FileReader(jfc.getSelectedFile());\n\t\t\t\tint l;\n\t\t\t\tString str=\"\";\n\t\t\t\twhile((l=fr.read())!=-1)\n\t\t\t\t{\n\t\t\t\t\tstr = str+(char)l;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tjta.setText(str);\n\t\t\t\t\n\t\t\t\tfr.close();\n\t\n\t\t\t\t\t\n\t\t\t} catch (Exception e2) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(e2.getMessage());\n\t\t\t}\n\t}",
"public void geraArquivoAjudaTextual(String caminho, String nomeArquivo, String texto) {\r\n\t\ttry {\r\n\t\t\tarquivoTexto = new File(caminho + \"\\\\\" + nomeArquivo);\r\n\t\t\tFileWriter fw = new FileWriter(arquivoTexto);\r\n\t\t\tPrintWriter pw = new PrintWriter(fw);\r\n\t\t\tpw.write(texto);\r\n\t\t\tfw.close();\r\n\t\t} catch (IOException e) {\r\n\t\t}\r\n\t}",
"private String readAndReplaceString(String fileName, String packageName, String className) {\n String baseFilePath = \"com.bgn.baseframe.base\";\n\n String time = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").format(new Date());\n String path = (codeType == 0 ? \"kotlin/\" : \"java/\");\n return readFile(path + fileName + \".txt\")\n .replace(\"&time&\", time)\n .replace(\"&package&\", packageName)\n .replace(\"&mvp&\", baseFilePath)\n .replace(\"&className&\", className);\n }",
"public static void main(String[] args) throws IOException {\n TxtToDocX z = new TxtToDocX();\r\n Sala x = new Sala();\r\n z.catchNameFiles();\r\n\r\n for (int i = 0; i < nomeArquivos.length; i++) {\r\n z.LoadTxt(nomeArquivos[i]);\r\n }\r\n z.replaces();\r\n \r\n \r\n for (int i = 0; i < nomeArquivos.length; i++) {\r\n System.out.println(nomeArquivos[i]);\r\n }\r\n // z.replaces();\r\n for (int j = 0; j < salas2.size(); j++) {\r\n System.out.println(\"Turma: \" + salas2.get(j).getNome());\r\n for (int i = 0; i < salas2.get(j).getDadosalas().size(); i++) {\r\n if (salas2.get(j).getDadosalas().get(i).getSerie().equals(salas2.get(j).getNome())) {\r\n\r\n System.out.println(\"Matricula:\" + salas2.get(j).getDadosalas().get(i).getMatricula()\r\n + \" Nome:\" + salas2.get(j).getDadosalas().get(i).getNome()\r\n + \" Senha:\" + salas2.get(j).getDadosalas().get(i).getSenha() + \"\\n\");\r\n }\r\n }\r\n }\r\n \r\n z.WriteDocx();\r\n }",
"public void seleccionarArchivo(){\n JFileChooser j= new JFileChooser();\r\n FileNameExtensionFilter fi= new FileNameExtensionFilter(\"pdf\",\"pdf\");\r\n j.setFileFilter(fi);\r\n int se = j.showOpenDialog(this);\r\n if(se==0){\r\n this.txtCurriculum.setText(\"\"+j.getSelectedFile().getName());\r\n ruta_archivo=j.getSelectedFile().getAbsolutePath();\r\n }else{}\r\n }",
"String getFilepath();",
"public static void readMetro(String ligne){\n file=ligne;\n try{\n Metro.readGraph();\n }\n catch (FileNotFoundException e){\n System.out.println(\"It's not the file you're looking for.\");\n }\n ;\n }",
"void setNewFile(File file);",
"Path getContent(String filename);",
"private void cargarArchivoAlumnos() {\n String aux = \"\";\n String texto = \"\";\n\n JFileChooser file = new JFileChooser();\n file.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n\n //Filtro\n FileNameExtensionFilter filtro = new FileNameExtensionFilter(\"*.XML\", \"xml\");\n\n file.setFileFilter(filtro);\n\n int seleccion = file.showOpenDialog(this);\n\n if (seleccion == JFileChooser.APPROVE_OPTION) {\n File fichero = file.getSelectedFile();\n\n insertarAlumnos(fichero.getPath());\n\n }\n }",
"private void cargarFichero() throws FileNotFoundException {\n\t\tFile miFichero = new File(NOMBRE_FICHERO);\n\t\tFileWriter erroresFichero;\n\t\t\n\t\tScanner in = new Scanner(miFichero);\n\t\t\n\t\tEjercicio nuevoEjer;\n\t\tString siguienteLinea;\n\t\tComprobadorEntradaFichero comprobador = new ComprobadorEntradaFichero();\n\t\tString errores = \"\";\n\t\tint numLinea = 1;\n\t\t\n\t\twhile (in.hasNextLine()) {\n\t\t\t\n\t\t\tsiguienteLinea = in.nextLine();\n\t\t\tif (comprobador.test(siguienteLinea)) {\n\t\t\t\tnuevoEjer = new Ejercicio(siguienteLinea);\n\t\t\t\tcoleccionEj.addEjercicio(nuevoEjer);\n\t\t\t} else {\n\t\t\t\t//Controlar cuántos errores va dando\n\t\t\t\terrores += \"Error en la lÃnea: \" + String.valueOf(numLinea) + \". Datos: \" + siguienteLinea + \"\\n\";\n\t\t\t}\n\t\t\tnumLinea++;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\t\n\t\t//Ahora escribimos \n\t\tif (errores != \"\") {\n\t\t\ttry {\n\t\t\t erroresFichero = new FileWriter(NOMBRE_FICHERO_ERRORES);\n\t\t\n\t\t\t erroresFichero.write(errores);\n\n\t\t\t erroresFichero.close();\n\n\t\t\t} catch (Exception ex) {\n\t\t\t\tSystem.out.println(\"Mensaje de la excepción: \" + ex.getMessage());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private String getNomeArquivoCompactado(File ordem)\n\t{\n\t\tString\t\t\tnomeArquivo\t= null;\n\t\tPattern \t\tpattern \t= null;\n\t\tPatternMatcher \tmatcher \t= new AwkMatcher();\n\t\tPatternCompiler compiler \t= new AwkCompiler();\n\t\tSubstitution \tsub\t\t\t= new StringSubstitution(\".zip\");\n\t\ttry\n\t\t{\n\t\t\tpattern = compiler.compile(\"[.]dat\");\n\t\t\tnomeArquivo = Util.substitute(matcher,pattern,sub,ordem.getAbsolutePath());\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t/* Caso algum erro ocorra na troca da extensao do arquivo, entao\n\t\t\t * o arquivo fica com o nome original acrescido da extensao .zip\n\t\t\t */\n\t\t\tSystem.out.println(\"Erro ao criar o nome do arquivo compactado. \"+e);\n\t\t\tnomeArquivo = ordem.getAbsolutePath()+\".zip\";\n\t\t}\n\t\t//String nomeArquivo = ordem.getAbsolutePath().replaceAll(\"[.]dat\",\".zip\");\n\t\treturn nomeArquivo;\n\t}",
"@Override\n public void addSingleFile(FileInfo file) {\n }",
"@Override\n\tpublic void salvaSuFile() {\n\t\tString path = \"alimenti.txt\";\n\t\tString allergeni = Alimento.getStringaAllergeni(getElencoAllergeni());\n\t\ttry {\n\t\t\tFile file = new File(path);\n\t\t\tFileWriter fw = new FileWriter(file, true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\tbw.write(getNome() + \" - \" + getPrezzo() + \"€\\n\");\n\t\t\tbw.write(\"Adatto a vegani: \" + (getVegano() ? \"sì\\n\" : \"no\\n\"));\n\t\t\tbw.write(\"Adatto a vegetariani: \" + (getVegetariano() ? \"sì\\n\" : \"no\\n\"));\n\t\t\tbw.write(\"Tipologia: \" + getTipoPortata().getNome().toUpperCase() + \"\\n\");\n\t\t\tbw.write(\"Cottura: \" + getTipoCottura().getNome().toUpperCase() + \"\\n\");\n\t\t\tbw.write(\"Allergeni: \" + (allergeni.isEmpty() ? \"--\" : allergeni) + \"\\n\\n\");\n\t\t\tbw.flush();\n\t\t\tbw.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public int Tipo() {\r\n File archivo = null;\r\n FileReader fr = null;\r\n BufferedReader br = null;\r\n \r\n try {\r\n String linea;\r\n for (a=0;a<5;a++){\r\n if (a==0){\r\n tipo=\"Embarazadas\";\r\n }\r\n if (a==1){\r\n tipo=\"Regulares\";\r\n }\r\n if (a==2){\r\n tipo=\"Discapacitados\";\r\n }\r\n if (a==3){\r\n tipo=\"Mayores\";\r\n }\r\n if (a==4){\r\n tipo=\"Corporativos\";\r\n }\r\n archivo = new File (System.getProperty(\"user.dir\")+\"/Clientes/\"+tipo+\".txt\");\r\n fr = new FileReader (archivo);\r\n br = new BufferedReader(fr);\r\n while((linea=br.readLine())!=null){\r\n if (leerTipo == contador){\r\n errorTipo =String.valueOf(String.valueOf(leerTipo).length());\r\n if (a==0){\r\n resultadoembarazadas+=1;\r\n }\r\n if (a==1){\r\n resultadoregulares+=1;\r\n }\r\n if (a==2){\r\n resultadodiscapacitados+=1;\r\n }\r\n if (a==3){\r\n resultadomayores+=1;\r\n }\r\n if (a==4){\r\n resultadocorporativos+=1;\r\n }\r\n contador +=1;\r\n leerTipo +=6;\r\n\r\n }\r\n else{\r\n contador += 1;\r\n }\r\n }\r\n }\r\n\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n // En el finally cerramos el fichero, para asegurarnos\r\n // que se cierra tanto si todo va bien como si salta \r\n // una excepcion.\r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n //return resultado;\r\n return 0;\r\n }",
"public void lecture() throws FileNotFoundException, IOException {\n \n //ouverture du fichier en lecture\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(adresseFichier);\n InputStreamReader ir = new InputStreamReader(is);\n BufferedReader fichier = new BufferedReader(ir);\n \n //Lecture ligne à ligne\n String ligne;\n int numLigne = 0;\n while((ligne = fichier.readLine()) != null){\n //parsage de la ligne\n this.parseLigne(numLigne, ligne);\n numLigne++;\n }\n }",
"public void restaurarPartida() throws FileNotFoundException, IOException, ClassNotFoundException {\n\t\tjuego.restaurarPartida(jugador.getID());\t\r\n\t}",
"@Override\n public void setFile(File f) {\n \n }",
"public void FermerAgd() {\n //on essaye d'ouvrir un fichier dans lequel enregistrer le contenu de l'agenda\n try {\n Formatter agd_a_enreg = new Formatter(\"C:\\\\Projet_Agenda_ING3\\\\saved_agendas\");\n\n for (RdV el : this.getAgenda()) {\n //on enregistre 1 rdv par ligne\n //faire gaffe aux formats : %..\n agd_a_enreg.format(\"%s/%s/%s de %s a %s : %s , %s\\n\",\n el.getDate().getDayOfMonth(), el.getDate().getMonthValue(),\n el.getDate().getYear(), el.getHdebut(),\n el.getHfin(), el.getLibelle(), el.getRappel());\n //on supprime le rdv de l'arraylist d'agenda \n this.suppressionRdV(el);\n }\n //on ferme le fichier en ecriture\n agd_a_enreg.close();\n //on met l'attribut agenda à null une fois qu'il est \"vidé\"\n this.agd = null;\n } //en cas de probleme dans l'ouverture du fichier on affiche une erreur\n catch (Exception e) {\n System.out.print(\"Erreur d'ouverture du fichier en ecriture\\n\");\n }\n\n }",
"private String llegeix_arxiu(Context context, String nom_arxiu) {\n\n String ret = \"\";\n\n try {\n InputStream inputStream = context.openFileInput(nom_arxiu);\n\n if ( inputStream != null ) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String receiveString = \"\";\n StringBuilder stringBuilder = new StringBuilder();\n\n while ( (receiveString = bufferedReader.readLine()) != null ) {\n stringBuilder.append(receiveString);\n stringBuilder.append(\"\\n\");\n }\n\n inputStream.close();\n ret = stringBuilder.toString();\n }\n }\n catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n }\n\n if(ret.length() == 0)\n {\n return \"\";\n }\n else\n {\n return ret;\n }\n }",
"protected int leerArchivo(File f){\n try{\n fr = new FileReader(f);\n return parse();\n } catch(Exception e){\n System.out.println(\"Error: \" + e);\n }\n return -1;\n }",
"public static void getListOfAllFileVarianta2() {\n\t\tPath pathToSrc = Paths.get(\"D:\\\\TorrentsMd\");\r\n\t\ttry {\r\n\t\t\t//cu method references\r\n//\t\t\tFiles.walk(pathToSrc)\r\n//\t\t\t\t.map(Path::toFile)\r\n//\t\t\t\t.filter(File::isFile)\r\n//\t\t\t\t.map(File::getName)\r\n//\t\t\t\t.sorted()\r\n//\t\t\t\t.forEach(System.out::println);\r\n\t\t\t\r\n\t\t\t//cu lambda, dar dpdv semantic sunt identice\r\n\t\t\tFiles.walk(pathToSrc)\r\n\t\t\t\t .map(path -> path.toFile()) //trasnform fiecare Path din stream intr-un File\r\n\t\t\t\t .filter(file -> file.isFile()) //filtrez doar fisierele\r\n\t\t\t\t .map(file -> file.getName())//transform fiecare File din stream intr-un String, care e numele sau\r\n\t\t\t\t .sorted()\r\n\t\t\t\t .forEach(file -> System.out.println(file));\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void xuLyLuuHoaHoaDon(){\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setFileFilter(new FileFilter() {\n @Override\n public boolean accept(File file) {\n return file.getAbsolutePath().endsWith(\".txt\");\n }\n\n @Override\n public String getDescription() {\n return \".txt\";\n }\n });\n fileChooser.setFileFilter(new FileFilter() {\n @Override\n public boolean accept(File file) {\n return file.getAbsolutePath().endsWith(\".doc\");\n }\n\n @Override\n public String getDescription() {\n return \".doc\";\n }\n });\n int flag = fileChooser.showSaveDialog(null);\n if(flag == JFileChooser.APPROVE_OPTION){\n File file = fileChooser.getSelectedFile();\n try {\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(new FileOutputStream(file), Charset.forName(\"UTF-8\"));\n PrintWriter printWriter = new PrintWriter(outputStreamWriter);\n String lineTieuDe1 = \"----------------Phiếu Thanh Toán-----------------------\";\n String lineMaPTT = \"+Mã Phiếu Thanh Toán: \" + txtMaPTT.getText();\n String lineMaPDK = \"+Mã Phiếu Đăng Ký: \" + cbbMaPDK.getSelectedItem().toString();\n String lineSoThang = \"+Số Tháng: \" + txtSoThang.getText()+\"|\";\n String lineNgayTT = \"+Ngày Thanh Toán: \" + txtNgayTT.getText();\n String lineTienPhong = \"+Tiền Phòng: \" + txtTongTien.getText();\n String lineTienDV = \"+Tiền Dịch Vụ: \"+txtThanhToanTongCong.getText();\n String lineTieuDe2 = \"--------------------------------------------------------\";\n String lineTienPhaiTra =\"+Tiền Phải Trả: \" + txtTienPhaiTra.getText()+\" \";\n String lineTieuDe3 = \"--------------------------------------------------------\";\n \n printWriter.println(lineTieuDe1);\n printWriter.println(lineMaPTT);\n printWriter.println(lineMaPDK);\n printWriter.println(lineSoThang);\n printWriter.println(lineNgayTT);\n printWriter.println(lineTienPhong);\n printWriter.println(lineTienDV);\n printWriter.println(lineTieuDe2);\n printWriter.println(lineTienPhaiTra);\n printWriter.println(lineTieuDe3);\n \n printWriter.close();\n outputStreamWriter.close();\n \n } catch (Exception e) {\n e.printStackTrace();\n }\n JOptionPane.showMessageDialog(null, \"Đã lưu\");\n }\n \n }",
"public void loadShow(File f) {\n \n }",
"public static File gerarFile(String conteudo, File file)\n\t\t\tthrows WriterException, IOException {\n\t\treturn gerarFile(conteudo, WIDTH, HEIGHT, file);\n\t}"
] | [
"0.67868847",
"0.6564011",
"0.62792873",
"0.626006",
"0.6240544",
"0.62278837",
"0.61985046",
"0.6134659",
"0.61295545",
"0.6085924",
"0.5991814",
"0.5985408",
"0.59713167",
"0.5923215",
"0.5888095",
"0.5857435",
"0.5856255",
"0.5856255",
"0.5856255",
"0.58446884",
"0.5837654",
"0.5821598",
"0.58113015",
"0.58084196",
"0.57980967",
"0.5793761",
"0.57835424",
"0.5780723",
"0.5773895",
"0.5766317",
"0.5766317",
"0.57651716",
"0.576461",
"0.5763077",
"0.5752441",
"0.57512224",
"0.57491827",
"0.57375014",
"0.57302535",
"0.57083255",
"0.57011133",
"0.5686461",
"0.5684317",
"0.5683541",
"0.5683316",
"0.5678269",
"0.56691855",
"0.5666249",
"0.56614155",
"0.5658238",
"0.5650081",
"0.5649129",
"0.5649129",
"0.5640063",
"0.56329834",
"0.5626735",
"0.5620859",
"0.56174725",
"0.56109023",
"0.5605765",
"0.5604545",
"0.5591715",
"0.55837005",
"0.5583652",
"0.55805635",
"0.5577384",
"0.5571892",
"0.55585307",
"0.55441827",
"0.5532276",
"0.5504658",
"0.5500994",
"0.5499738",
"0.5497973",
"0.5494895",
"0.5490847",
"0.549046",
"0.54873884",
"0.54820627",
"0.54801846",
"0.54688925",
"0.54651195",
"0.5464733",
"0.5459715",
"0.54552996",
"0.5452618",
"0.54513526",
"0.54474264",
"0.5444509",
"0.5444208",
"0.5443581",
"0.54384077",
"0.54372156",
"0.54368883",
"0.543617",
"0.5435085",
"0.54316837",
"0.54274064",
"0.54215705",
"0.54210514",
"0.5412735"
] | 0.0 | -1 |
Elimina eventuali regole doppie e verifica e cambia se necessario l'abilitazione delle regole salvate | public void eliminaDoppie(ArrayList<Sensore> listaSensori, ArrayList<Attuatore> listaAttuatori) {
String lettura = readRuleFromFile();
if (lettura.equals(""))
return;
String[] regole = lettura.split("\n");
ArrayList<String> regoleList = new ArrayList<>(Arrays.asList(regole));
ArrayList<String> regoleSenzaAbil = new ArrayList<>();
for (String reg : regoleList) {
regoleSenzaAbil.add(reg.replace("ENABLED --> IF ","").replace("DISABLED --> IF ",""));
}
List<String> listWithoutDuplicates = regoleSenzaAbil.stream().distinct().collect(Collectors.toList());
StringBuilder regoleModificate = new StringBuilder();
for (int i = 0; i < listWithoutDuplicates.size() - 1; i++) {
if (verificaAbilitazione(listWithoutDuplicates.get(i),listaSensori,listaAttuatori))
regoleModificate.append("ENABLED --> IF ");
else
regoleModificate.append("DISABLED --> IF ");
regoleModificate.append(listWithoutDuplicates.get(i)).append("\n");
}
if (verificaAbilitazione(listWithoutDuplicates.get(listWithoutDuplicates.size() - 1),listaSensori,listaAttuatori))
regoleModificate.append("ENABLED --> IF ");
else
regoleModificate.append("DISABLED --> IF ");
regoleModificate.append(listWithoutDuplicates.get(listWithoutDuplicates.size() - 1));
writeRuleToFile(regoleModificate.toString(), false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void desactiveRegraJogadaDupla() {\n this.RegraJogadaDupla = true;\n }",
"public void excluir(){\n\t\tSystem.out.println(\"\\n*** Excluindo Registro\\n\");\n\t\ttry{\n\t\t\tpacienteService.excluir(getPaciente());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(\"Registro Deletado com Sucesso!!\")); //Mensagem de validacao \n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(\"** Erro ao deletar: \"+e.getMessage());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Erro ao deletar o paciente: \"+e.getMessage(), \"\")); //Mensagem de erro \n\t\t\t\n\t\t}\n\t}",
"public void disabilitaRegolaConDispositivo(String nomeDispositivo) {\n String[] regole = readRuleFromFile().split(\"\\n\");\n for (String s : regole) {\n try {\n ArrayList<String> disps = verificaCompRegola(s);\n\n if (disps.contains(nomeDispositivo)) {\n cambiaAbilitazioneRegola(s,false);\n }\n\n } catch (Exception e) {\n String msg = e.getMessage();\n }\n\n if (s.contains(nomeDispositivo)) {\n cambiaAbilitazioneRegola(s, false);\n }\n }\n }",
"@Override\n public boolean excluirRegistro() {\n this.produto.excluir();\n return true;\n }",
"@Override\n\tpublic void checkBotonEliminar() {\n\n\t}",
"public boolean deletePalvelupisteet();",
"public void elimina(DTOAcreditacionGafetes acreGafete) throws Exception;",
"private void enviarRequisicaoRemover() {\n servidor.removerPalito(nomeJogador);\n atualizarPalitos();\n }",
"@Override\n\tpublic boolean eliminaDipendente() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void eliminar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}",
"@Override\n\tpublic void eliminar() {\n\n\t}",
"public void supprimerInaccessibles(){\n grammaireCleaner.nettoyNonAccGramm();\n setChanged();\n notifyObservers(\"3\");\n }",
"@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}",
"public void supprimerImproductifs(){\n grammaireCleaner.nettoyNonProdGramm();\n setChanged();\n notifyObservers(\"2\");\n }",
"public static void eliminarRegistros(){\n int idEliminar = Integer.parseInt(JOptionPane.showInputDialog(\"Igrese el ID a Eliminar\"));\n pd.eliminaraPersonas(idEliminar);\n }",
"public void domicilioElimina(){\r\n\t\tlog.info(\"DomicilioElimina()\");\r\n\t\tfor (int i = 0; i < DomicilioPersonaList.size(); i++) { \t\t\r\n\t \tlog.info(\"\"+DomicilioPersonaList.get(i).getItem()+\" ,idd \"+getIdd() +\" \"+DomicilioPersonaList.get(i).getDomicilio());\r\n\r\n\t\tif((DomicilioPersonaList.get(i).getIddomiciliopersona()== 0 || DomicilioPersonaList.get(i).getIddomiciliopersona()== null) && DomicilioPersonaList.get(i).getItem()==\"Por Agregar\"){\r\n\t\t\tlog.info(\"N2----> DomicilioPersonaList.get(i).getIddomiciliopersona()\" +\" \" +DomicilioPersonaList.get(i).getIddomiciliopersona());\r\n\t\t\tDomicilioPersonaSie domtemp = new DomicilioPersonaSie();\r\n\t\t\tdomtemp.setIddomiciliopersona(idd);\r\n\t\t\tDomicilioPersonaList.remove(domtemp);\r\n\t\tfor (int j = i; j < DomicilioPersonaList.size(); j++) {\r\n\t\t\tlog.info(\" i \" +i+\" j \"+ j);\r\n\t\t\ti=i+1;\r\n\t\t\tDomicilioPersonaList.set(j, DomicilioPersonaList.get(j));\r\n\t\t}break;\r\n\t\t}\r\n\t\telse if(DomicilioPersonaList.get(i).getIddomiciliopersona() ==(getIdd()) && DomicilioPersonaList.get(i).getItem()==\"Agregado\"){\r\n\t\t\tlog.info(\"ALERTA WDFFFF\");\r\n\t\t\tDomicilioPersonaSie obj = new DomicilioPersonaSie();\r\n\t\t\tobj.setIddomiciliopersona(idd);\r\n\t\t\tlog.info(\"DENTRO LISTA DESHABILITADO\");\r\n\t\t\tDomicilioPersonaDeshabilitado.add(obj);\t\r\n\t\t\tFaceMessage.FaceMessageError(\"ALERTA\", \"Los Cambios se realizaran despues de hacer clic en el boton Guardar\");\t\t\t\r\n//\t\t\tmsg = new FacesMessage(FacesMessage.SEVERITY_WARN,\r\n//\t\t\tConstants.MESSAGE_ERROR_TELEFONO_CLIENTE,mensaje);\r\n//\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public boolean eliminarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 484 */ String s = \"delete from cal_plan_metas\";\n/* 485 */ s = s + \" where codigo_ciclo=\" + codigoCiclo;\n/* 486 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 487 */ s = s + \" codigo_meta=\" + codigoMeta;\n/* 488 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 491 */ catch (Exception e) {\n/* 492 */ e.printStackTrace();\n/* 493 */ Utilidades.writeError(\"CalPlanMetasFactory:eliminarRegistro\", e);\n/* */ \n/* 495 */ return false;\n/* */ } \n/* */ }",
"public void desactivarRecursos() {\n\r\n\t}",
"public void removerCarro() {\n\n if (carrosCadastrados.size() > 0) {//verifica se existem carros cadastrados\n listarCarros();\n System.out.println(\"Digite o id do carro que deseja excluir\");\n int idCarro = verifica();\n for (int i = 0; i < carrosCadastrados.size(); i++) {\n if (carrosCadastrados.get(i).getId() == idCarro) {\n if (carrosCadastrados.get(i).getEstado()) {//para verificar se o querto está sendo ocupado\n System.err.println(\"O carrp está sendo utilizado por um hospede nesse momento\");\n } else {\n carrosCadastrados.remove(i);\n System.err.println(\"cadastro removido\");\n }\n }\n\n }\n } else {\n System.err.println(\"Não existem carros cadastrados\");\n }\n }",
"public void processEliminar() {\n }",
"public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }",
"@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}",
"private static void removerProduto() throws Exception {\r\n int id;\r\n boolean erro, result;\r\n System.out.println(\"\\t** Remover produto **\\n\");\r\n System.out.print(\"ID do produto a ser removido: \");\r\n id = read.nextInt();\r\n if (indice_Produto_Cliente.lista(id).length != 0) {\r\n System.out.println(\"Esse produto não pode ser removido pois foi comprado por algum Cliente!\");\r\n } else {\r\n do {\r\n erro = false;\r\n System.out.println(\"\\nRemover produto?\");\r\n System.out.print(\"1 - SIM\\n2 - NÂO\\nR: \");\r\n switch (read.nextByte()) {\r\n case 1:\r\n result = arqProdutos.remover(id - 1);\r\n if (result) {\r\n System.out.println(\"Removido com sucesso!\");\r\n } else {\r\n System.out.println(\"Produto não encontrado!\");\r\n }\r\n break;\r\n case 2:\r\n System.out.println(\"\\nOperação Cancelada!\");\r\n break;\r\n default:\r\n System.out.println(\"\\nOpção Inválida!\\n\");\r\n erro = true;\r\n break;\r\n }\r\n } while (erro);\r\n }\r\n }",
"@Override\n protected void updateEliminations() {\n\n }",
"public static void verificaEleicoesPassadas() {\n\t\tint count;\n\t\t\n\t\tint check = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tcount = rmiserver.moveEleicoesPassadas();\n\t\t\t\tSystem.out.println(\"Removidas \"+count+\" eleicoes!\\n\");\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI addCandidatos\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t\t\n\t}",
"public void verEliminarReglaConocimiento(String desdeentidad, String hastaentidad)\r\n\t{\r\n\t\teliminarregla = new EliminarReglaConocimiento(this, desdeentidad, hastaentidad);\r\n\t\teliminarregla.setVisible(true);\r\n\t}",
"@Test\n\tpublic void testRemovePregunta(){\n\t\tej1.addPregunta(pre);\n\t\tej1.removePregunta(pre);\n\t\tassertFalse(ej1.getPreguntas().contains(pre));\n\t}",
"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 }",
"public void eliminarNovedadesRegistradas(Integer codigoCompania, Collection<Long> codigosProcesoLogistico) throws SICException;",
"protected void cmdRemove() throws Exception{\n\t\t//Determinamos los elementos a eliminar. De cada uno sacamos el id y el timestamp\n\t\tVector entities = new Vector();\n\t\tStringTokenizer claves = new StringTokenizer(conectorParametro(\"idSelection\"), \"|\");\n\t\tStringTokenizer timestamps = new StringTokenizer(conectorParametro(\"timestamp\"), \"|\");\n\t\ttraza(\"MMG::Se van a borrar \" + claves.countTokens() + \" y son \" + conectorParametro(\"idSelection\"));\n\t\twhile(claves.hasMoreTokens() && timestamps.hasMoreTokens()){\n\t\t\tCobGrupoUsuarCobraData cobGrupoUsuarCobra = new CobGrupoUsuarCobraData();\n\t\t\tcobGrupoUsuarCobra.setId(new Long(claves.nextToken()));\n\t\t\t//cobGrupoUsuarCobra.jdoSetTimeStamp(Long.parseLong(timestamps.nextToken()));\n\t\t\tentities.addElement(cobGrupoUsuarCobra);\n\t\t}\n\t\t\n\t\t//Construimos el DTO para realizar la llamada\n\t\tVector datos = new Vector();\n\t\tMareDTO dto = new MareDTO();\n\t\tdto.addProperty(\"entities\", entities);\n\t\tdatos.add(dto);\n\t\tdatos.add(new MareBusinessID(BUSINESSID_REMOVE));\n\t\t\n\t\t\n\t\t\n\t\t//Invocamos la lógica de negocio\n\t\ttraza(\"MMG:: Iniciada ejecución Remove de entidad CobGrupoUsuarCobra\");\n\t\tDruidaConector conectorCreate = conectar(CONECTOR_REMOVE, datos);\n\t\ttraza(\"MMG:: Finalizada ejecución Remove de entidad CobGrupoUsuarCobra\");\n\t\t\n\t\t\n\n\t\t//metemos en la sesión las query para realizar la requery\n\t\tconectorParametroSesion(SESSION_ATTRIBUTE_LAST_QUERY, conectorParametro(VAR_LAST_QUERY_TO_SESSION));\n\t\t\n\t\t//Redirigimos a la LP de StartUp con la acción de StartUp y requery\n\t\tconectorAction(\"CobGrupoUsuarCobraLPStartUp\");\n\t\tconectorActionParametro(PARAMETRO_GENERICO_ORIGEN, \"menu\");\n\t\tconectorActionParametro(PARAMETRO_GENERICO_ACCION, ACCION_REMOVE);\n\t\tconectorActionParametro(VAR_PERFORM_REQUERY, \"true\");\n\t}",
"@Override\r\n\tpublic void eliminar(Long idRegistro) {\n\t\t\r\n\t}",
"public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }",
"public void eliminarCompraComic();",
"protected void cmdRemove() throws Exception{\n\t\t//Determinamos los elementos a eliminar. De cada uno sacamos el id y el timestamp\n\t\tVector entities = new Vector();\n\t\tStringTokenizer claves = new StringTokenizer(conectorParametro(\"idSelection\"), \"|\");\n\t\tStringTokenizer timestamps = new StringTokenizer(conectorParametro(\"timestamp\"), \"|\");\n\t\ttraza(\"MMG::Se van a borrar \" + claves.countTokens() + \" y son \" + conectorParametro(\"idSelection\"));\n\t\twhile(claves.hasMoreTokens() && timestamps.hasMoreTokens()){\n\t\t\tZonSecciData zonSecci = new ZonSecciData();\n\t\t\tzonSecci.setId(new Integer(claves.nextToken()));\n\t\t\t//zonSecci.jdoSetTimeStamp(Long.parseLong(timestamps.nextToken()));\n\t\t\tentities.addElement(zonSecci);\n\t\t}\n\t\t\n\t\t//Construimos el DTO para realizar la llamada\n\t\tVector datos = new Vector();\n\t\tMareDTO dto = new MareDTO();\n\t\tdto.addProperty(\"entities\", entities);\n\t\tdatos.add(dto);\n\t\tdatos.add(new MareBusinessID(BUSINESSID_REMOVE));\n\t\t\n\t\t\n\t\t\n\t\t//Invocamos la lógica de negocio\n\t\ttraza(\"MMG:: Iniciada ejecución Remove de entidad ZonSecci\");\n\t\tDruidaConector conectorCreate = conectar(CONECTOR_REMOVE, datos);\n\t\ttraza(\"MMG:: Finalizada ejecución Remove de entidad ZonSecci\");\n\t\t\n\t\t\n\n\t\t//metemos en la sesión las query para realizar la requery\n\t\tconectorParametroSesion(SESSION_ATTRIBUTE_LAST_QUERY, conectorParametro(VAR_LAST_QUERY_TO_SESSION));\n\t\t\n\t\t//Redirigimos a la LP de StartUp con la acción de StartUp y requery\n\t\tconectorAction(\"ZonSecciLPStartUp\");\n\t\tconectorActionParametro(PARAMETRO_GENERICO_ORIGEN, \"menu\");\n\t\tconectorActionParametro(PARAMETRO_GENERICO_ACCION, ACCION_REMOVE);\n\t\tconectorActionParametro(VAR_PERFORM_REQUERY, \"true\");\n\t}",
"@Override\r\n\tpublic void eliminar() {\n\t\ttab_nivel_funcion_programa.eliminar();\r\n\t\t\r\n\t}",
"public void desligar() {\n\r\n\t}",
"@Override\r\n\tpublic void eliminar(IndicadorActividadEscala iae) {\n\r\n\t}",
"@Override\n public boolean eliminar(T dato) {\n try {\n this.raiz = eliminar(this.raiz, dato);\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"public void carroRemovido(){\n System.out.println(\"Su carro fue removido exitosamente\");\n }",
"@Override\n protected void validaRegrasExcluir(ArquivoLoteVO entity) throws AppException {\n\n }",
"private void supprAffichage() {\n switch (afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.deleteContents();\n break;\n case AFFICHE_USER :\n ecranUser.deleteContents();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.deleteContents();\n break;\n default: break;\n }\n afficheChoix = AFFICHE_RIEN;\n }",
"public void eliminarDiferenciasRegistradas(Integer codigoCompania, Collection<Long> codigosProcesoLogistico) throws SICException;",
"void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }",
"@Override\r\n\tprotected boolean beforeDelete() {\r\n\t\t\r\n\t\tString valida = DB.getSQLValueString(null,\"SELECT DocStatus FROM C_Hes WHERE C_Hes_ID=\" + getC_Hes_ID());\r\n if (!valida.contains(\"DR\")){\r\n \t\r\n \tthrow new AdempiereException(\"No se puede Eliminar este documento por motivos de Auditoria\");\r\n\r\n }\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"public void eliminar(Provincia provincia) throws BusinessErrorHelper;",
"public void esborrarRegistresTaulaNews() throws SQLException {\n bd.execSQL(\"DELETE FROM \" + BD_TAULA );\n\n }",
"public boolean removeVotoXidAndCedula(int idPelicula, String cedula ) { \n\t\ttry {\n\t\t\t//Voto voto = find(idVoto);\n\t\t\tString sql = \"DELETE FROM tie_voto where vot_pel_id = \"+idPelicula + \" and vot_usu_cedula = '\"+cedula+\"';\";\n\t\t\t//System.out.println(\"voto encontrado\"+voto);\n\t\t\t\n\t\t\treturn em.createNativeQuery(sql).executeUpdate() != 0;\n\t\t\t \n\t\t \n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"public void deleteAnio()\r\n {\r\n this._has_anio= false;\r\n }",
"public void supprimerParcelle() {\n\t\tboolean isEmpty=false;\n\t\tint nbParcelleSup=0;\n\t\tList<String> nomParcellesNonSupprimees = new ArrayList<>();\n\t\tList<String> nomParcellesSupprimees = new ArrayList<>();\n\n\t\tfor (String emplacement : emplacementsSelectionneesFromJS.split(\"-\")) {\n\t\t\tnbParcelleSup++;\n\n\t\t\tif (!isEmpty(emplacement)){\n\t\t\t\tString[] refEmplacement= emplacement.split(\"_\");\n\t\t\t\tint numLigne = Integer.parseInt(refEmplacement[0]);\n\t\t\t\tint numColonne = Integer.parseInt(refEmplacement[1]);\n\t\t\t\tEmplacement e = obtenirEmplacement(numLigne,numColonne);\n\n\t\t\t\tif(e != null && notHaveTachePlanified(parcelle).equals(\"true\") ) {\n\t\t\t\t\t// Suppression de la parcelle \n\t\t\t\t\tthis.parcelle = e.getParcelle();\n\t\t\t\t\taffecterDateRetraitPuisMAJParcelleEnBase(parcelle);\n\t\t\t\t\tnomParcellesSupprimees.add(parcelle.getLibelleParcelle());\n\t\t\t\t\tSystem.out.println(\"Supprimer Parcelle OK \");\n\t\t\t\t}else {\n\t\t\t\t\tnomParcellesNonSupprimees.add(parcelle.getLibelleParcelle());\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t//Probleme de selection d'emplacement\n\t\t\t\tisEmpty=true;\n\t\t\t}\n\t\t}\n\n\t\tif(isEmpty&&nbParcelleSup==1) {\n\t\t\tmsgInfoActionGrilleJS=\"Erreur : La selection ne correspond à aucune parcelle !\";\n\t\t\tetatMsgInfoGrilleJS=\"color:red;\";\n\t\t\tSystem.out.println(\"Supprimer Parcelle KO : L'emplacement selectionnee n'est pas affecté à une parcelle \");\n\t\t}else {\n\t\t\tif(nbParcelleSup>1) {\n\t\t\t\tString listeLibelleParcellesSupprimees=\"\";\n\t\t\t\tString listeLibelleParcellesNonSupprimees=\"\";\n\n\t\t\t\tfor (String string : nomParcellesSupprimees) {\n\t\t\t\t\tlisteLibelleParcellesSupprimees+=string+\", \";\n\t\t\t\t}\n\t\t\t\tfor (String string : nomParcellesNonSupprimees) {\n\t\t\t\t\tlisteLibelleParcellesNonSupprimees+=string+\", \";\n\t\t\t\t}\n\t\t\t\tif(listeLibelleParcellesSupprimees.length()>0) {\n\t\t\t\t\tint i = listeLibelleParcellesSupprimees.length()-2;\n\t\t\t\t\tmsgInfoActionGrilleJS=\"Les parcelles ' \"+listeLibelleParcellesSupprimees.substring(0, i)+\" ' ont bien été retirées !\";\n\t\t\t\t}\n\t\t\t\tif(listeLibelleParcellesNonSupprimees.length()>0) {\n\t\t\t\t\tint j = listeLibelleParcellesNonSupprimees.length()-2;\n\n\t\t\t\t\tmsgInfoActionGrilleJS=\"\\n Attention : Les parcelles ' \"+listeLibelleParcellesNonSupprimees.substring(0, j)+\" ' n'ont pas pu être supprimées (Taches en cours ou emplamcement vide)!\";\n\t\t\t\t}\n\n\t\t\t}else {\n\t\t\t\tmsgInfoActionGrilleJS=\"La parcelle '\"+parcelle.getLibelleParcelle()+\"'a bien été retirée !\";\n\t\t\t}\n\t\t\tetatMsgInfoGrilleJS=\"color:green;\";\n\t\t}\n\t\tthis.clearForm();\n\t}",
"public void eliminarBodegaActual(){\n Nodo_bodega_actual.obtenerAnterior().definirSiguiente(Nodo_bodega_actual.obtenerSiguiente());\n if(Nodo_bodega_actual.obtenerSiguiente() != null){\n Nodo_bodega_actual.obtenerSiguiente().definirAnterior(Nodo_bodega_actual.obtenerAnterior());\n } \n }",
"public void dessiner() {\n\t\tafficherMatriceLignes(m.getCopiePartielle(progresAffichage), gc);\r\n\t}",
"public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }",
"@Override\r\n\tpublic int elimina(int id) throws Exception {\n\t\treturn 0;\r\n\t}",
"public void deletar() {\n if(Sessao.isConfirm()){\n Usuario use = new Usuario();\n use.setId(Sessao.getId());\n Delete_Banco del = new Delete_Banco();\n del.Excluir_Usuario(use);\n this.setVisible(false);\n Sessao.setId(0);\n tela_Principal prin = Sessao.getPrin();\n prin.atualizar_Tela();\n }\n }",
"public String eliminar()\r\n/* 121: */ {\r\n/* 122: */ try\r\n/* 123: */ {\r\n/* 124:149 */ this.servicioDimensionContable.eliminar(this.dimensionContable);\r\n/* 125:150 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 126:151 */ cargarDatos();\r\n/* 127: */ }\r\n/* 128: */ catch (Exception e)\r\n/* 129: */ {\r\n/* 130:153 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 131:154 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 132: */ }\r\n/* 133:156 */ return \"\";\r\n/* 134: */ }",
"public void guardarDestruccion() {\n try {\n produccion.setIdMarca(opcionMarca);\n produccion.setIdPlantaProd(opcionPlanta);\n produccion.setIdPaisOrigen(opcionOrigen);\n produccion.setIdTipoRetro(opcionTipo);\n produccion.setFechProduccion(new Date());\n produccion.setDescPaisOrigen(desperdiciosHelper.getNombrePais());\n\n if (!habilitarBtnValidarProd()) {\n if (produccion != null) {\n produccion = produccionService.guardaDestruccion(produccion);\n super.msgInfo(MSGEXITOVALIDAPROD);\n desperdiciosHelper.setDeshabilitaBtnValidarProd(true);\n desperdiciosHelper.setDeshabilitaCargaArchivo(false);\n } else {\n super.msgError(MSGERRORVALIDARPROD);\n }\n }\n } catch (ProduccionServiceException e) {\n LOGGER.error(\"ERROR: Al guardar los datos de produccion\" + e.getMessage(), e);\n }\n }",
"@Override\n\tpublic SipProteccionesEventos registrarDisminucion(ParamRegistroProtecciones param) {\n\t\tthrow new RuntimeExceptionSipas(\"Metodo no implementado\");\n\t}",
"public void abilitaRegoleconDispositivo(String nomeDispositivo, ArrayList<Sensore> listaSensori, ArrayList<Attuatore> listaAttuatori) {\n String[] regole = readRuleFromFile().split(\"\\n\");\n\n for (String s : regole) {\n try {\n ArrayList<String> disps = verificaCompRegola(s);\n\n if (disps.contains(nomeDispositivo)) {\n cambiaAbilitazioneRegola(s,false);\n }\n\n } catch (Exception e) {\n String msg = e.getMessage();\n }\n\n if (s.contains(nomeDispositivo) && verificaAbilitazione(s,listaSensori,listaAttuatori)) {\n cambiaAbilitazioneRegola(s, true);\n }\n }\n }",
"public void borrar() {\n\t\tmiPintor.borrar();\n\t\tlienzo.refrescar();\n\t\t\n\t}",
"public void deleteLUC() {\r\n/* 135 */ this._has_LUC = false;\r\n/* */ }",
"public String eliminarProgramaPeriodoDesarrollo_action()throws SQLException\n {\n mensaje=\"\";\n for(ProgramaProduccionPeriodo bean:programaProduccionPeriodoDesarrolloList)\n {\n if(bean.getChecked())\n {\n try\n {\n con = Util.openConnection(con);\n con.setAutoCommit(false);\n String consulta = \"select count(*) as contLotes\"+\n \" from PROGRAMA_PRODUCCION p where p.COD_PROGRAMA_PROD='\"+bean.getCodProgramaProduccion()+\"'\";\n LOGGER.debug(\"consulta verificar que el programa no tenga registrado lotes \"+consulta);\n Statement st=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\n ResultSet res=st.executeQuery(consulta);\n res.next();\n PreparedStatement pst=null;\n if(res.getInt(\"contLotes\")>0)\n {\n mensaje=\"No se puede eliminar el Programa de Produccion porque tiene registrado \"+res.getInt(\"contLotes\")+\" lotes\";\n }\n else\n {\n consulta=\"delete PROGRAMA_PRODUCCION_PERIODO where COD_PROGRAMA_PROD='\"+bean.getCodProgramaProduccion()+\"'\";\n LOGGER.debug(\"consulta delete programa produccion periodo \"+consulta);\n pst=con.prepareStatement(consulta);\n if(pst.executeUpdate()>0)LOGGER.info(\"se elimino el programa de produccion periodo\");\n mensaje=\"1\";\n }\n con.commit();\n\n if(pst!=null)pst.close();\n con.close();\n }\n catch (SQLException ex)\n {\n con.rollback();\n con.close();\n mensaje=\"Ocurrio un error al momento de eliminar el programa periodo, intente de nuevo\";\n LOGGER.warn(\"error\", ex);\n }\n }\n }\n if(mensaje.equals(\"1\"))\n {\n this.cargarProgramaProduccionPeriodoDesarrollo_action();\n }\n return null;\n }",
"private void modificarReserva() throws Exception {\r\n\t\tif (mngRes.existeReservaPeriodo(getSitio().getId())) {\r\n\t\t\tif (mayorEdad) {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(), null);\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t} else {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(),\r\n\t\t\t\t\t\tgetDniRepresentante() + \";\" + getNombreRepresentante());\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t}\r\n\t\t\tMensaje.crearMensajeINFO(\"Reserva realizada correctamente, no olvide descargar su contrato.\");\r\n\t\t} else {\r\n\t\t\tMensaje.crearMensajeWARN(\"El sitio seleccionado ya esta copado, favor eliga otro.\");\r\n\t\t}\r\n\t}",
"public void activeRegraJogadaDupla() {\n this.RegraJogadaDupla = true;\n }",
"public String eliminarDetalleFacturaSRI()\r\n/* 425: */ {\r\n/* 426:428 */ DetalleFacturaProveedorSRI detalleFacturaProveedorSRI = (DetalleFacturaProveedorSRI)this.dtDetalleFacturaProveedorSRI.getRowData();\r\n/* 427:429 */ detalleFacturaProveedorSRI.setEliminado(true);\r\n/* 428: */ \r\n/* 429:431 */ return \"\";\r\n/* 430: */ }",
"@Override\r\n public void elminarVehiculo(String placa) {\n Connection conn = null;\r\n try{\r\n conn = Conexion.getConnection();\r\n String sql = \"delete from vehiculo where veh_placa=?\";\r\n PreparedStatement statement = conn.prepareStatement(sql);\r\n statement.setString(1, placa);\r\n int rowsDelete = statement.executeUpdate();\r\n if(rowsDelete > 0){\r\n JOptionPane.showMessageDialog(null, \"Registro eliminado de manera correcta\");\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(VehiculoDAOJDBCImpl.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void borrarSesionesAnteriores()\r\n\t{\r\n\t\tint numerosesiones = 0;//numero de convocatorias en la BD\r\n\t\tList sesiones = null;\r\n\t\ttry\r\n {\r\n Conector conector = new Conector();\r\n conector.iniciarConexionBaseDatos();\r\n sesiones= SesionBD.listar(conector);\r\n conector.terminarConexionBaseDatos();\r\n }\r\n catch (Exception e)\r\n\t\t{\r\n \tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n if(sesiones != null)\r\n {\r\n \tnumerosesiones = sesiones.size();\r\n }\r\n for (int i = 0; i < numerosesiones; i++)\r\n\t\t{\r\n \tSesion sesionaux = (Sesion)sesiones.get(i);\r\n\t\t\tint idsesion = sesionaux.getIdsesion();\r\n\t\t\tString fechasesion = sesionaux.getFechasesion();\r\n\t\t\tboolean esanterior = fechaSesionAnterior(fechasesion);\r\n\t\t\tif(esanterior == true)\r\n\t\t\t{\r\n\t\t\t\ttry \r\n\t \t\t{\r\n\t \t\t\tConector conector = new Conector();\r\n\t \t\t\tconector.iniciarConexionBaseDatos();\r\n\t \t\t\tSesionBD.eliminar(idsesion, conector);\r\n\t \t\t\tconector.terminarConexionBaseDatos();\r\n\t \t\t}\r\n\t \t\tcatch (Exception e)\r\n\t \t\t{\r\n\t \t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t \t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public boolean delete(Revue objet) {\n return false;\n }",
"@Override\n\tvoid desligar() {\n\t\tsuper.desligar();\n\t\tSystem.out.println(\"Automovel desligando\");\n\t}",
"@Override\n\tpublic boolean eliminaRisposta(Long id) {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.remove(id);\n\t\tdb.commit();\n\t\t\n\t\tif(!risposte.containsKey(id))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}",
"public void eliminarTipoPago(String codTipoPago) throws Exception {\n if (this.tiposPagos.containsKey(codTipoPago)) {\r\n this.generarAuditoria(\"BAJA\", \"TIPOPAGO\", codTipoPago, \"\", GuiIngresar.getUsuario());\r\n this.tiposPagos.remove(codTipoPago);\r\n setChanged();\r\n notifyObservers();\r\n //retorno = true;\r\n } else {\r\n throw new Exception(\"El tipo pago no Existe\");\r\n }\r\n //return retorno;\r\n }",
"public void reabrirContrato() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n } else {\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//hospede\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//verifica se o contrato já estpa aberto\n System.err.println(\"O contrado desse hospede já encontra-se aberto\");\n\n } else {//caso o contrato encontre-se fechado\n hospedesCadastrados.get(i).getContrato().setSituacao(true);\n System.err.println(\"Contrato reaberto, agora voce pode reusufruir de nossos servicos!\");\n }\n }\n }\n }\n }",
"public void disconnetti() {\n\t\tconnesso = false;\n\t}",
"public Boolean rechazarRegistro(Usuario u,String motivo) {\r\n\t\tif(!this.modoAdmin) return false;\r\n\t\tu.rechazar(motivo);\r\n\t\tthis.proponentes.remove(u);\r\n\t\treturn true;\r\n\t}",
"public void destroiInstancia()\n {\n // Libera a variavel instancia para ser limpa pelo garbage collection\n //instancia = null;\n }",
"public void eliminar(DetalleArmado detallearmado);",
"public void eliminar(TipoDocumento tpDocu) {\n try {\n boolean verificarReLaboraldEnTpDocu = servReLaboral.buscarRegistroPorTpDocumento(tpDocu);\n if (verificarReLaboraldEnTpDocu) {\n MensajesFaces.informacion(\"No se puede eliminar\", \"Existen Datos Relacionados\");\n } else {\n servtpDocumento.eliminarTipoDocumento(tpDocu);\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Eliminado\", \"Exitoso\");\n }\n } catch (Exception e) {\n MensajesFaces.advertencia(\"Error al eliminar\", \"detalle\" + e);\n }\n }",
"public void eliminar() {\n try {\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(3, this.Selected);\n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"2\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue eliminada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n addMessage(\"Eliminado Exitosamente\", 1);\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al eliminar el registro, contacte al administrador del sistema\", 2);\n }\n }",
"@Override\n\tpublic void excluir() {\n\t\t\n\t}",
"public String eliminar()\r\n/* 88: */ {\r\n/* 89: */ try\r\n/* 90: */ {\r\n/* 91:101 */ this.servicioMotivoLlamadoAtencion.eliminar(this.motivoLlamadoAtencion);\r\n/* 92:102 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 93: */ }\r\n/* 94: */ catch (Exception e)\r\n/* 95: */ {\r\n/* 96:104 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 97:105 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 98: */ }\r\n/* 99:107 */ return \"\";\r\n/* 100: */ }",
"@Override\n public boolean eliminar(T dato) {\n if (esVacio())\n return (false); \n super.setRaiz(buscarAS(dato));\n int cmp = ((Comparable)dato).compareTo(super.getRaiz().getInfo()); \n //Si se encontro el elemento\n if (cmp==0){\n if (super.getRaiz().getIzq()==null){\n super.setRaiz(super.getRaiz().getDer());\n } \n else {\n NodoBin<T> x = super.getRaiz().getDer();\n super.setRaiz(super.getRaiz().getIzq());\n super.setRaiz(biselar(super.getRaiz(), dato));\n super.getRaiz().setDer(x);\n }\n return (true);\n }\n //El dato no fue encontrado\n return (false);\n }",
"public void borrarPiezasAmenazadoras(){\n this.piezasAmenazadoras.clear();\n }",
"@Before\n\tpublic void excluiGrupos() throws Exception{\n\t\tdao.apagaGrupos();\n\t}",
"public void anularPer(String cedula){\r\n String sql = \"UPDATE \\\"HIP_PERSONAS\\\" SET \\\"PER_ESTADO\\\" = 'I' WHERE \\\"PER_CEDULA\\\" = '\" + cedula + \"'\";\r\n System.out.println(\"Persona Eliminada eliminada \" + sql);\r\n db.conectar();\r\n try {\r\n\r\n Statement sta = db.getConexionBD().createStatement();\r\n sta.execute(sql);\r\n db.desconectar();\r\n\r\n } catch (SQLException error) {\r\n\r\n error.printStackTrace();\r\n\r\n }\r\n }",
"@Override\n\tpublic boolean deleteObraRecursoEquipo(ObraRecursoPersonaDTO dto) {\n\t\treturn false;\n\t}",
"public EliminarLeccion(ContratoGeneral cg) {\n pnRecrea=new Componentes.PanelRecrea();\n cc=new ControllerConsultar();\n ce=new ControllerEliminar();\n contGen=cg;\n initComponents();\n contGen.SetEnable(false);\n this.add(pnRecrea);\n this.configuracion(pnRecrea);\n CB_Materia=cc.CargarComboBoxMateria(CB_Materia);\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 boolean eliminarLoteria(int codigo) {\n\n String instruccion = \"delete from loteria where codigo =\" + codigo;\n boolean val = false;\n PreparedStatement pre;\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n pre = con.prepareStatement(instruccion);\n pre.execute();\n val = true;\n } catch (SQLException ex) {\n ex.printStackTrace();\n\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorLoteria.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return val;\n }\n\n }",
"public boolean excluirSocio(Socio socio) {\n System.out.println(\"excluirSocio\");\n // inicia a conexao com o Banco de dados chamando\n // a classe Conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado. Preparando para excluir\");\n Statement stmt = null;\n \n try {\n stmt = connection.createStatement();\n\n String sql = \"DELETE FROM socio WHERE nomeSocio = '\" + socio.getNome() + \"'\";\n System.out.println(\"SQL: \" + sql);\n stmt.executeUpdate(sql);\n \n return true;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return false;\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n System.out.println(\"Banco fechado, excluido com sucesso\");\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n }",
"private static void concretizarRegisto(String nome, int escalao) {\n\t\tif (gestor.registarFuncionario(nome, escalao))\n\t\t\tSystem.out.println(\"REGISTO do funcionario \" + nome + \" com escalao \" + escalao);\n\t\telse \n\t\t\tSystem.out.println(\"ERRO: Nao foi possivel registar o funcionario \" + nome);\n\t}",
"@Override\n protected void remover(Funcionario funcionario) {\n\n }",
"@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}",
"public void eliminarVenta(int codVenta) throws Exception {\n if (this.ventas.containsKey(codVenta)) {\r\n this.ventas.remove(codVenta);\r\n setChanged();\r\n notifyObservers();\r\n //retorno = true;\r\n } else {\r\n throw new Exception(\"La Venta no Existe\");\r\n }\r\n //return retorno;\r\n }",
"@Test\n\tpublic void eliminar() {\n\t\tGestionarComicPOJO gestionarComicPOJO = new GestionarComicPOJO();\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"1\", \"Dragon Ball Yamcha\",\n\t\t\t\t\"Planeta Comic\", TematicaEnum.AVENTURAS.name(), \"Manga Shonen\", 144, new BigDecimal(2100),\n\t\t\t\t\"Dragon Garow Lee\", Boolean.FALSE, LocalDate.now(), EstadoEnum.ACTIVO.name(), 20l));\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"2\", \"Captain America Corps 1-5 USA\",\n\t\t\t\t\"Panini Comics\", TematicaEnum.FANTASTICO.name(), \"BIBLIOTECA MARVEL\", 128, new BigDecimal(5000),\n\t\t\t\t\"Phillippe Briones, Roger Stern\", Boolean.FALSE, LocalDate.now(), EstadoEnum.ACTIVO.name(), 5l));\n\t\tgestionarComicPOJO.agregarComicDTOLista(gestionarComicPOJO.crearComicDTO(\"3\",\n\t\t\t\t\"The Spectacular Spider-Man v2 USA\", \"Panini Comics\", TematicaEnum.FANTASTICO.name(), \"MARVEL COMICS\",\n\t\t\t\t208, new BigDecimal(6225), \"Straczynski,Deodato Jr.,Barnes,Eaton\", Boolean.TRUE, LocalDate.now(),\n\t\t\t\tEstadoEnum.INACTIVO.name(), 0l));\n\n\t\tint tamañoAnterior = gestionarComicPOJO.getListaComics().size();\n\t\tgestionarComicPOJO.eliminarComicDTO(\"1\");\n\t\tAssert.assertEquals(gestionarComicPOJO.getListaComics().size(), tamañoAnterior - 1);\n\t}",
"private void caricaRegistrazione() {\n\t\tfor(MovimentoEP movimentoEP : primaNota.getListaMovimentiEP()){\n\t\t\t\n\t\t\tif(movimentoEP.getRegistrazioneMovFin() == null) { //caso di prime note libere.\n\t\t\t\tthrow new BusinessException(ErroreCore.OPERAZIONE_NON_CONSENTITA.getErrore(\"La prima nota non e' associata ad una registrazione.\"));\n\t\t\t}\n\t\t\t\n\t\t\tthis.registrazioneMovFinDiPartenza = registrazioneMovFinDad.findRegistrazioneMovFinById(movimentoEP.getRegistrazioneMovFin().getUid());\n\t\t\t\n\t\t}\n\t\t\n\t\tif(this.registrazioneMovFinDiPartenza.getMovimento() == null){\n\t\t\tthrow new BusinessException(\"Movimento non caricato.\");\n\t\t}\n\t\t\n\t}",
"private void eliminarDeMisPropiedades(Casilla casilla){\n if(esDeMipropiedad(casilla)){\n propiedades.remove(casilla.getTituloPropiedad());\n }\n \n }",
"public void suppressionRdV_all() {\n //on vide l'agenda de ses elements\n for (RdV elem_agenda : this.agd) {\n this.getAgenda().remove(elem_agenda);\n }\n //on reinitialise a null l'objet agenda\n //this.agd = null;\n }",
"@Override\n\tpublic void desligar() {\n\t\t\n\t}",
"@Test\n public void testUpdateDelete() {\n\n Fichier fichier = new Fichier(\"\", \"test.java\", new Date(), new Date());\n Raccourci raccourci = new Raccourci(fichier, \"shortcut vers test.java\", new Date(), new Date(), \"\");\n\n assertTrue(GestionnaireRaccourcis.getInstance().getRaccourcis().contains(raccourci));\n\n fichier.delete();\n\n assertFalse(GestionnaireRaccourcis.getInstance().getRaccourcis().contains(raccourci));\n }",
"public boolean DelVeh() {\n\t\ttry\n\t\t{\n\t\t\n\t\t\tString filename=\"src/FilesTXT/vehicule.txt\";\n\t\t\tFileInputStream is = new FileInputStream(filename);\n\t\t InputStreamReader isr = new InputStreamReader(is);\n\t\t BufferedReader buffer = new BufferedReader(isr);\n\t\t \n\t\t String line = buffer.readLine();\n\t \tString[] split;\n\t \tString Contenu=\"\";\n\n\t\t while(line != null){\n\t\t \tsplit = line.split(\" \");\n\t\t\t if(this.getId_vehi()!=Integer.parseInt(split[0])) {\n\t\t\t \tContenu+=line+\"\\n\";\n\t\t\t }\n\t\t \tline = buffer.readLine();\n\t\t }\n\t\t \n\t\t buffer.close();\n\t\t \n\t\t filename=\"src/FilesTXT/vehicule.txt\";\n\t\t\t FileWriter fw = new FileWriter(filename);\n\t\t\t fw.write(Contenu);\n\t\t\t fw.close();\n\t\t \n\t\t return true;\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{\n\t\t System.err.println(\"IOException: \"+ ioe.getMessage());\n\t\t}\n\t\treturn false;\n\t}"
] | [
"0.6942697",
"0.6789503",
"0.67431647",
"0.6511506",
"0.64887595",
"0.6481889",
"0.6396317",
"0.6355711",
"0.6350955",
"0.619606",
"0.61786675",
"0.6155695",
"0.6145394",
"0.61331177",
"0.6116118",
"0.6116066",
"0.6111775",
"0.6101309",
"0.60947675",
"0.60882735",
"0.608157",
"0.6058082",
"0.60164315",
"0.60126996",
"0.60032994",
"0.600286",
"0.5981481",
"0.59802526",
"0.5977474",
"0.59732115",
"0.5969652",
"0.5966274",
"0.5958772",
"0.59504545",
"0.59477365",
"0.592004",
"0.5913098",
"0.5878666",
"0.5870098",
"0.58615595",
"0.58614516",
"0.5828746",
"0.5825816",
"0.5820016",
"0.5809964",
"0.5796739",
"0.57892203",
"0.5781414",
"0.57538146",
"0.575275",
"0.575181",
"0.57473755",
"0.57430136",
"0.5731271",
"0.5729463",
"0.5725291",
"0.5720824",
"0.57205933",
"0.5711788",
"0.5705386",
"0.57007134",
"0.5700219",
"0.56996983",
"0.56981474",
"0.5696252",
"0.56941056",
"0.56934774",
"0.568277",
"0.5681938",
"0.56725055",
"0.5672429",
"0.5660424",
"0.56578463",
"0.56525993",
"0.5648943",
"0.5643545",
"0.5642296",
"0.56400734",
"0.56327724",
"0.5630366",
"0.5630179",
"0.5630124",
"0.56279993",
"0.56246024",
"0.5618319",
"0.5617763",
"0.5613144",
"0.56131",
"0.56101197",
"0.55969167",
"0.55967176",
"0.55913645",
"0.55863327",
"0.5586325",
"0.5585875",
"0.55762213",
"0.55761254",
"0.5570511",
"0.5569197",
"0.55673593"
] | 0.66170317 | 3 |
Importa regole da un file esterno specificatp dall'utente, solo quelle effettivamente compatibili con le liste di dispositivi assegnati | public void importaRegole(String file, ArrayList<Sensore> listaSensori, ArrayList<Attuatore> listaAttuatori) {
ArrayList<String> nomiDispPres = new ArrayList<>();
for (Sensore s : listaSensori) {
nomiDispPres.add(s.getNome());
}
for (Attuatore att : listaAttuatori) {
nomiDispPres.add(att.getNome());
}
String regoleImport = readFromFile(file);
if (regoleImport.equals("")) {
System.out.println("XX Errore di lettura file. Non sono state inserite regole per l'unita immobiliare XX\n");
return;
}
String[] regole = regoleImport.split("\n");
for (String r : regole) {
try {
ArrayList<String> dispTrovati = verificaCompRegola(r);
for (String nomeDis : dispTrovati) {
if (nomeDis.contains(".")){
String nomeS = nomeDis.split("\\.")[0];
if (!nomiDispPres.contains(nomeS)) {
throw new Exception("XX Dispositivi Incompatibili all'interno della regola XX\n");
}
Sensore s = listaSensori.stream().filter(sensore -> sensore.getNome().equals(nomeS)).iterator().next();
String nomeInfo = nomeDis.split("\\.")[1];
if (s.getInformazione(nomeInfo) == null)
throw new Exception("XX Regola non compatibile XX\n");
} else if (!nomiDispPres.contains(nomeDis)) {
throw new Exception("XX Dispositivi Incompatibili all'interno della regola XX\n");
}
}
System.out.println("*** Importazione della regola avvenuta con successo ***\n");
writeRuleToFile(r, true);
} catch (Exception e) {
System.out.println(e.getMessage());
}
}
eliminaDoppie(listaSensori,listaAttuatori);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void importer() {\n\t\tString[] champs = {\n\t\t\t\"numero_edition\", \n\t\t\t\"libelle_edition\"\n\t\t};\n\t\t\n\t\tExploitation bdd = new Exploitation();\n\t\tbdd.chargerPilote();\n\t\tbdd.connexion();\n\t\tString[][] req = bdd.lister(champs, \"edition\");\n\n\t\tfor(int i=0; i<req.length; i++) {\n\t\t\tEdition e = new Edition(Integer.parseInt(req[i][0]), req[i][1]);\n\t\t\tthis.lesEditions.add(e);\n\t\t}\n\t\tbdd.deconnexion();\n\t}",
"private void importarDatos() {\r\n // Cabecera\r\n System.out.println(\"Importación de Datos\");\r\n System.out.println(\"====================\");\r\n\r\n // Acceso al Fichero\r\n try (\r\n FileReader fr = new FileReader(DEF_NOMBRE_FICHERO);\r\n BufferedReader br = new BufferedReader(fr)) {\r\n // Colección Auxiliar\r\n final List<Item> AUX = new ArrayList<>();\r\n\r\n // Bucle de Lectura\r\n boolean lecturaOK = true;\r\n do {\r\n // Lectura Linea Actual\r\n String linea = br.readLine();\r\n\r\n // Procesar Lectura\r\n if (linea != null) {\r\n // String > Array\r\n String[] items = linea.split(REG_CSV_LECT);\r\n\r\n // Campo 0 - id ( int )\r\n int id = Integer.parseInt(items[DEF_INDICE_ID]);\r\n\r\n // Campo 1 - nombre ( String )\r\n String nombre = items[DEF_INDICE_NOMBRE].trim();\r\n\r\n // Campo 2 - precio ( double )\r\n double precio = Double.parseDouble(items[DEF_INDICE_PRECIO].trim());\r\n\r\n // Campo 3 - color ( Color )\r\n Color color = UtilesGraficos.generarColor(items[DEF_INDICE_COLOR].trim());\r\n\r\n // Generar Nuevo Item\r\n Item item = new Item(id, nombre, precio, color);\r\n\r\n // Item > Carrito\r\n AUX.add(item);\r\n// System.out.println(\"Importado: \" + item);\r\n } else {\r\n lecturaOK = false;\r\n }\r\n } while (lecturaOK);\r\n\r\n // Vaciar Carrito\r\n CARRITO.clear();\r\n\r\n // AUX > CARRITO\r\n CARRITO.addAll(AUX);\r\n\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"Datos importados correctamente\");\r\n } catch (NumberFormatException | NullPointerException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Formato de datos incorrecto\");\r\n\r\n // Vaciado Carrito\r\n CARRITO.clear();\r\n } catch (IOException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Acceso al fichero\");\r\n }\r\n }",
"public static void importToFile() throws IOException {\n String fileName = \"Prova.txt\";\n ArrayList<String> fileLines = new ArrayList<>();\n int libriImported = 0;\n try (BufferedReader inputStream = new BufferedReader(new FileReader(fileName))) {\n String l;\n while ((l = inputStream.readLine()) != null) {\n fileLines.add(l);\n }\n for (String s : fileLines) {\n String[] splitter = s.split(\";\");\n Libro lib = LibroConvert(splitter);\n Biblioteca.getBiblioteca().add(lib);\n libriImported++;\n }\n }\n System.out.println(\"Ho importato \" + libriImported + \"libri\");\n }",
"public void importFile(String filename) throws IOException, BadEntryException, ImportFileException{\n try{\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n line = reader.readLine();\n\n while(line != null){\n String[] fields = line.split(\"\\\\|\");\n int id = Integer.parseInt(fields[1]);\n if(_persons.get(id) != null){\n throw new BadEntryException(fields[0]);\n }\n\n if(fields[0].equals(\"FUNCIONÁRIO\")){\n registerAdministrative(fields);\n line = reader.readLine();\n }else if(fields[0].equals(\"DOCENTE\")){\n Professor _professor = new Professor(id, fields[2], fields[3]);\n _professors.put(id, _professor);\n _persons.put(id, (Person) _professor);\n\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n \n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n\n if(_professor.getDisciplineCourses().get(course) == null){\n _professor.getDisciplineCourses().put(course, new HashMap<String, Discipline>());\n }\n\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline,_course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_professor, id);\n _disciplineCourse.get(course).put(discipline, _discipline);\n\n if(_professor.getDisciplines() != null){\n _professor.getDisciplines().put(discipline, _discipline);\n _professor.getDisciplineCourses().get(course).put(discipline, _discipline); \n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n\n }\n }\n }\n }else if(fields[0].equals(\"DELEGADO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course,_course);\n }\n if(_course.getRepresentatives().size() == 8){\n System.out.println(id);\n throw new BadEntryException(course);\n }else{\n _course.getRepresentatives().put(id,_student);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline,_discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n }else if(fields[0].equals(\"ALUNO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_student, id);\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n\n }else{\n throw new BadEntryException(fields[0]);\n }\n }\n for(Course course: _courses.values()){\n HashMap<Integer,Student> representatives = course.getRepresentatives();\n HashMap<String, Discipline> disciplines = course.getDisciplines();\n for(Discipline discipline: disciplines.values()){\n for(Student representative: representatives.values()){\n discipline.registerObserver(representative, representative.getId());\n }\n }\n \n } \n reader.close();\n }catch(BadEntryException e){\n throw new ImportFileException(e);\n }catch(IOException e){\n throw new ImportFileException(e);\n }\n }",
"public void setImporte(java.lang.String importe) {\n this.importe = importe;\n }",
"public void importFile() {\n \ttry {\n\t File account_file = new File(\"accounts/CarerAccounts.txt\");\n\n\t FileReader file_reader = new FileReader(account_file);\n\t BufferedReader buff_reader = new BufferedReader(file_reader);\n\n\t String row;\n\t while ((row = buff_reader.readLine()) != null) {\n\t String[] account = row.split(\",\"); //implementing comma seperated value (CSV)\n\t String[] users = account[6].split(\"-\");\n\t int[] usersNew = new int[users.length];\n\t for (int i = 0; i < users.length; i++) {\n\t \tusersNew[i] = Integer.parseInt(users[i].trim());\n\t }\n\t this.add(Integer.parseInt(account[0]), account[1], account[2], account[3], account[4], account[5], usersNew);\n\t }\n\t buff_reader.close();\n } catch (IOException e) {\n System.out.println(\"Unable to read text file this time.\");\n \t}\n\t}",
"public List importar(Periodo periodo) {\n\t\treturn null;\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 }",
"@Override\n public void importItems(){\n if (DialogUtils.askYesNo(\"Confirm\", \"<html>Importing individuals will REPLACE all existing individuals.<br>Are you sure you want to do this?</html>\") == DialogUtils.NO) {\n return;\n }\n\n try {\n File file = DialogUtils.chooseFileForOpen(\"Import File\", new ExtensionsFileFilter(new String[] { \"csv\" }), null);\n if (file != null) {\n //remove current data\n MedSavantClient.PatientManager.clearPatients(LoginController.getSessionID(), ProjectController.getInstance().getCurrentProjectID());\n new ImportProgressDialog(file).showDialog();\n }\n } catch (Exception ex) {\n ClientMiscUtils.reportError(\"Unable to import individuals. Please make sure the file is in CSV format and that Hospital IDs are unique.\", ex);\n }\n }",
"void registrarArticulosMigracion(Integer codigoCompania, String namefile, Date fechaEjecucion, List<? extends MigrarDatosProcesoVentaDTO> listaDatosArchivoFTP) throws SICException, ParseException;",
"private void importAll() {\n\t\tfinal JFileChooser chooser = new JFileChooser(System.getProperty(\"user.home\"));\n\t\tint returnVal = chooser.showOpenDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = chooser.getSelectedFile();\n\t\t\tdeserializeFile(file);\n\t\t\t // imported the projects for this application from a file, so update what should be persisted on close\n\t\t\tupdatePersistence();\n\t\t}\n\t}",
"public void FermerAgd() {\n //on essaye d'ouvrir un fichier dans lequel enregistrer le contenu de l'agenda\n try {\n Formatter agd_a_enreg = new Formatter(\"C:\\\\Projet_Agenda_ING3\\\\saved_agendas\");\n\n for (RdV el : this.getAgenda()) {\n //on enregistre 1 rdv par ligne\n //faire gaffe aux formats : %..\n agd_a_enreg.format(\"%s/%s/%s de %s a %s : %s , %s\\n\",\n el.getDate().getDayOfMonth(), el.getDate().getMonthValue(),\n el.getDate().getYear(), el.getHdebut(),\n el.getHfin(), el.getLibelle(), el.getRappel());\n //on supprime le rdv de l'arraylist d'agenda \n this.suppressionRdV(el);\n }\n //on ferme le fichier en ecriture\n agd_a_enreg.close();\n //on met l'attribut agenda à null une fois qu'il est \"vidé\"\n this.agd = null;\n } //en cas de probleme dans l'ouverture du fichier on affiche une erreur\n catch (Exception e) {\n System.out.print(\"Erreur d'ouverture du fichier en ecriture\\n\");\n }\n\n }",
"public void lesBok(String filen)throws Exception\n {\n liste.add(new Ord(\"null\"));//se siste linje i finnOrd-metod\n Scanner inn = new Scanner(new File(filen));//henter ord fra filen anngitt i kallet paa metode lesBok og legger det inn i scanner inn\n while (inn.hasNextLine())\n {\n String tempOrd = inn.nextLine();\n leggeTilOrd(tempOrd);//sender ord fra scanner via string til metode legeTilOrd\n }\n }",
"private static void obtenirUneListe() throws FileNotFoundException {\n\t\tSystem.out.println(\"\\r\\nPour combien de jours : \");\n\t\tint nbJours = sc.nextInt();\n\n\t\tSystem.out.println(\"\\r\\nCombien de propositions : \");\n\t\tint nbPropositions = sc.nextInt();\n\n\t\tList<List<Recette>> listeProposition = genererListePropositions(nbJours, nbPropositions);\n\n\t\tSystem.out.println(\"\\r\\nChoix ? \");\n\t\tint choix = sc.nextInt();\n\n\t\tgenererFichier(listeProposition.get(choix - 1));\n\n\t\tsc.nextLine();\n\n\t\traz();\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 }",
"private void ImportLibrary(){\n for(int i = 0; i < refact.size(); i++){\n if(refact.get(i).contains(\"import\")){\n for(String library : libraries){\n refact.add(i, library + \"\\r\");\n }\n break;\n }\n }\n\n\n }",
"public void armarPreguntas(){\n preguntas = file.listaPreguntas(\"Preguntas.txt\");\n }",
"@Override\r\n\tpublic ArrayList<String> importCsv(File file) {\r\n\t\t\tFileReader monFichier = null;\r\n\t\t\tBufferedReader tampon = null;\r\n\t\t\tArrayList<String> aLImport = new ArrayList<String>();\r\n\t\t\tString[] tabString ;\r\n\t\t\tint sizeLine;\r\n\t\t\r\n\t\t\ttry {\r\n\t\t\t\t// file path\r\n\t\t\t\tmonFichier = new FileReader(file.getAbsolutePath());\r\n\t\t\t\ttampon = new BufferedReader(monFichier);\r\n\r\n\t\t\t\t// read the first line of the file .csv\r\n\t\t\t\tString ligneTemp = tampon.readLine();\r\n\t\t\t\ttabString = ligneTemp.split(\";\");\r\n\t\t\t\tthis.setNbColumnsRead(tabString.length);\r\n\t\t\t\t\r\n\t\t\t\t//Start of the actual content (first line only acting as a header)\r\n\t\t\t\tligneTemp = tampon.readLine();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t// faire la gestion des erreurs \r\n\t\t\t\t\t\t/*JOptionPane.showMessageDialog(this, \"Le fichier .csv n'est pas valide\", \"Erreur !\",\r\n\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);*/\r\n\t\t\t\t\r\n\t\t\t\t// read all the lines one by one and split them to keep the\r\n\t\t\t\t// structure's name\r\n\t\t\t\twhile (ligneTemp != null) {\t\t\t\t\t\r\n\t\t\t\t\ttabString = ligneTemp.split(\";\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tsizeLine = tabString.length;\r\n\t\t\t\t\t//This for start at 1 in order to skip the first cell, assuming it is always \"Start\" and is therefore not required in the ArrayList\r\n\t\t\t\t\tfor (int i = 1; i < sizeLine; i+=2) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(!tabString[i].contains(\"End\")){\r\n\t\t\t\t\t\t\taLImport.add(tabString[i]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tligneTemp = tampon.readLine();\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException exception) {\r\n\t\t\t\texception.printStackTrace();\r\n\t\t\t\treturn null;\r\n\t\t\t} finally {\r\n\t\t\t\ttry {\r\n\t\t\t\tif (tampon != null)\r\n\t\t\t\t{\r\n\t\t\t\t\ttampon.close();\r\n\t\t\t\t}\r\n\t\t\t\tif (monFichier != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmonFichier.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException exception1) {\r\n\t\t\t\t\texception1.printStackTrace();\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn aLImport;\t\r\n\t}",
"public List<Admin> importAdmin(String filename) throws FileNotFoundException {\n List<Admin> admins = new ArrayList<>();\n FileReader fileReader = new FileReader(DATA_PATH + filename);\n Scanner scanner = new Scanner(fileReader);\n //skip first line\n String firstLine = scanner.nextLine();\n Log.i(\"first line: \" + firstLine);\n\n while (scanner.hasNextLine()) {\n String[] s = scanner.nextLine().split(\",\");\n String adminName = s[0];\n Admin admin = new Admin(-1, adminName);\n admins.add(admin);\n }\n\n scanner.close();\n return admins;\n }",
"public void load() {\n listPedidosAssistencia.clear();\n\n for (Object object : super.storageLoad()) {\n char type = ((String) object).charAt(0);\n\n if (type == n501070324_PedidoSuporteFormacao.COD_TIPO) {\n n501070324_PedidoSuporteFormacao psf = new n501070324_PedidoSuporteFormacao();\n\n psf.parse(object);\n add(psf);\n }\n\n if (type == n501070324_PedidoSuporteSistema.COD_TIPO) {\n n501070324_PedidoSuporteSistema pss = new n501070324_PedidoSuporteSistema();\n\n pss.parse(object);\n add(pss);\n }\n }\n }",
"public void convertAll() {\n Document dom = null;\n long beginTime = System.currentTimeMillis();\n try {\n log.info(\" ############################### begin import ######################\");\n dom = XMLParser.parseXMLToDOM(context.getResourceAsStream(IMPORT_FILE));\n // XMLParser.DTDValidator(dom);\n Element element = (Element) dom.getElementsByTagName(\"import\").item(0);\n String encoding = element.getAttribute(\"encoding\");\n DataAccessor.encoding = encoding;\n\n NodeList list = element.getChildNodes();\n\n List<Data> clondSources = new ArrayList<Data>();\n for (int i = 0; i < list.getLength(); i++) {\n // datatype node\n Node itemDatatype = list.item(i);\n List<Data> sources = processDatatype(itemDatatype);\n clondSources.addAll(sources);\n }\n NodeService.insertMigrationMappings(clondSources);\n createRelationDataType(clondSources);\n linkRoot(list);\n log.info(String.format(\n \" ---->#######################finished importing [time:%s mins] #############################\",\n (System.currentTimeMillis() - beginTime) / (1000 * 60)));\n NodeService.insertProperties(properties);\n }\n catch (Exception e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n }",
"public static void modificarImporte(Scanner keyboard, ArrayList<Usuario> usuarios) { //reutilizar?\n if(!estaVacia(usuarios)){\n Usuario user = (Usuario) mostrarLista(keyboard,usuarios);\n ArrayList<Objeto> objetos = user.getObjetos();\n \n if(!estaVacia(objetos)){\n Objeto obj = (Objeto) mostrarLista(keyboard,objetos);\n boolean ok;\n float coste = 0;\n do{\n ok = true;\n System.out.println(\"Introduzca el nuevo importe: \");\n try{\n coste = keyboard.nextFloat(); //comprobar coste > 0\n }catch(NumberFormatException e){\n ok = false;\n }\n obj.setCoste(coste);\n }while(!ok || coste <= 0);\n }\n }\n \n }",
"public SelecioneTipoImportacao() {\n initComponents();\n }",
"private void abrirEntTransaccion(){\n try{\n entTransaccion = new ObjectInputStream(\n Files.newInputStream(Paths.get(\"trans.ser\")));\n }\n catch(IOException iOException){\n System.err.println(\"Error al abrir el archivo. Terminado.\");\n System.exit(1);\n }\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic CopyOnWriteArrayList<User> importUserList() throws IOException, ClassNotFoundException, FileNotFoundException {\r\n\t\tObjectInputStream in;\r\n\t\tCopyOnWriteArrayList<User> tmpUserList = new CopyOnWriteArrayList<User>();\r\n\t\tin= new ObjectInputStream(\r\n\t\t\t\tnew BufferedInputStream(\r\n\t\t\t\t\t\tnew FileInputStream(\"userList.dat\")));\r\n\t\ttmpUserList= (CopyOnWriteArrayList<User>)in.readObject();\r\n\t\tin.close();\r\n\t\treturn tmpUserList;\r\n\t}",
"public InterfazInfo importarInterfaz(InterfazInfo info) \n throws InterfacesException, MareException\n {\n String codigoInterfaz = info.getCodigoInterfaz();\n String numeroLote = info.getNumeroLote();\n Long pais = info.getPais();\n\n InterfazDef def = importarInterfazP1(codigoInterfaz, numeroLote, pais, info); \n \n return importarInterfazP2(codigoInterfaz, numeroLote, pais, def, info);\n }",
"public void restaurarPartida() throws FileNotFoundException, IOException, ClassNotFoundException {\n\t\tjuego.restaurarPartida(jugador.getID());\t\r\n\t}",
"private void miDeschidereActionPerformed(java.awt.event.ActionEvent evt) throws Contact.NumeEronatExceptie { \n int response = JOptionPane.showConfirmDialog(this, \"Doriti sa incarcati lista de contacte?\", \"Incarcare\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (response == JOptionPane.YES_OPTION) {\n JFileChooser chooser = new JFileChooser();\n if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {\n File list = chooser.getSelectedFile();\n try {\n FileReader reader = new FileReader(list);\n Scanner input = new Scanner(reader);\n String[] headLine = input.nextLine().split(\",\");\n if (!headLine[0].equals(\"Nume\") || !headLine[1].equals(\"Prenume\") || !headLine[2].equals(\"Data nasterii\") || !headLine[3].equals(\"Numar Telefon\")) {\n throw new FileCSVHeaderException(\"\");\n }\n while (input.hasNextLine()) {\n String[] contactLine = input.nextLine().split(\",\");\n String nume = contactLine[0];\n String prenume = contactLine[1];\n String dataNasterii = contactLine[2];\n String numarTelefon = contactLine[3];\n Contact c = new Contact(nume, prenume, dataNasterii);\n if (numarTelefon.substring(0, 2).equals(\"02\") || numarTelefon.substring(0, 2).equals(\"03\")) {\n NrTel nrTel = new NrFix(numarTelefon);\n c.setNrTel(nrTel);\n } else if (numarTelefon.substring(0, 2).equals(\"07\")) {\n NrTel nrTel = new NrMobil(numarTelefon);\n c.setNrTel(nrTel);\n } else {\n JOptionPane.showMessageDialog(this, \"Nu ati selectat tipul de numar de telefon!\");\n }\n for (Contact ct : listaContacte) {\n if (ct.getNume().equals(c.getNume()) && ct.getPrenume().equals(c.getPrenume()) && ct.getDataNasterii().equals(c.getDataNasterii()) && ct.getNrTel().equals(c.getNrTel())) {\n throw new ContactExistentException(\"\");\n }\n }\n listaContacte.add(c);\n model.addElement(c);\n actualizeazaModel();\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MainForm.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IllegalArgumentException e) {\n JOptionPane.showMessageDialog(this, \"Numele/prenumele nu a fost introdus!\");\n } catch (NumeEronatExceptie e) {\n JOptionPane.showMessageDialog(this, \"Numele a fost introdus eronat!\");\n } catch (PrenumeEronatExceptie e) {\n JOptionPane.showMessageDialog(this, \"Prenumele a fost introdus eronat!\");\n } catch (DateTimeParseException e) {\n JOptionPane.showMessageDialog(this, \"Data nasterii nu este valida!\");\n } catch (NumarTelefonExceptie e) {\n JOptionPane.showMessageDialog(this, \"Numarul de telefon introdus este invalid!\");\n } catch (ContactExistentException e) {\n JOptionPane.showMessageDialog(this, \"Contactul exista deja in agenda!\");\n } catch (FileCSVHeaderException ex) {\n JOptionPane.showMessageDialog(this, \"Capul de tabul nu e formatat corect\");\n }\n }\n }\n\n\n }",
"private void cargarNotasEnfermeria() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"admision_seleccionada\", admision_seleccionada);\r\n\t\tparametros.put(\"rol_medico\", \"S\");\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\"/pages/notas_enfermeria.zul\", \"NOTAS DE ENFERMERIA\",\r\n\t\t\t\tparametros);\r\n\t}",
"Imports createImports();",
"public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static List<Etudiant> listeEtudiant(File file,boolean modele){\n\t\tBufferedReader lecteurAvecBuffer;\n\t\tList<String> datas = new ArrayList<String>();//donnes du fichier\n\t\treset();// Initialisation\n\t\ttry {\n\t\t\tlecteurAvecBuffer = new BufferedReader(new FileReader(file));\n\t\t\tString contenu;\n\t\t\tString listeMots[];\n\t\t\twhile ((contenu = lecteurAvecBuffer.readLine()) != null){\n\t\t\t\tlisteMots = contenu.split(\" \");\n\n\t\t\t\t//Ajout des donnees du fichier dans une liste\n\t\t\t\tfor (String string : listeMots) {\n\t\t\t\t\tdatas.add(string);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(FileNotFoundException exc) {\n\t\t\tSystem.out.println(\"Erreur d'ouverture\");\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//On creer les etudiants\n\t\treturn creationListeEtudiants(datas,modele);\n\t}",
"public abstract ArrayList<ImportExportPair> getConfiguracion();",
"public void service_psy (Personne p) throws FileNotFoundException\r\n\t{\r\n\t\r\n\t\t\r\n\t\t \t\tString [] info_psy=null ;\r\n\t\t \t\tString [] cle_valeur=null;\r\n\t\t \t\tboolean spec,adr;\r\n\t\t \t\tFileInputStream f=new FileInputStream(\"C://Users/Azaiez Hamed/Desktop/workspace/Projet de programmation/src/Medecin.txt\");\r\n\t\t \t\ttry {\r\n\t\t \t\t\tBufferedReader reader =new BufferedReader (new InputStreamReader(f,\"UTF-8\"));\r\n\t\t \t\t\tString line=reader.readLine();\r\n\t\t \t\t\twhile(line!=null){\r\n\t\t \t\t\t\tinfo_psy=line.split(\"\\t\\t\\t\");\r\n\t\t \t\t\t\tspec=false;adr=false;\r\n\t\t \t\t\t\tfor(int i=0;i<info_psy.length;i++)\r\n\t\t \t\t\t\t{\r\n\t\t \t\t\t\t\t cle_valeur=info_psy[i].split(\":\");\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"specialite\"))&& (cle_valeur[1].equals(\"psy\")))\r\n\t\t\t\t\t\t \t spec=true;\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"gouvernerat\"))&&(cle_valeur[1].equals(p.getGouvernerat())))\r\n\t\t \t\t\t\t\t \tadr=true;\r\n\t\t\t\t\t\t}\r\n\t\t \t\t\t\tif (spec && adr) {\r\n\t\t \t\t\t\t\t System.out.println(\"voilà toutes les informations du psy, veuillez lui contacter immédiatement **\");\r\n\t\t \t\t\t\t\t System.out.println(line);return;}\r\n\t\t \t\t\t\telse\r\n\t\t \t\t\t\t line=reader.readLine();\r\n\t\t \t\t\t\t }\r\n\t\t \t\t }\r\n\t\t \t\t \tcatch(IOException e){e.printStackTrace();}\r\n\t\t \t\t System.out.println(\"Pas de psy trouvé dans votre gouvernerat\");\r\n\t}",
"public void cargarProductosVendidos() {\n try {\n //Lectura de los objetos de tipo productosVendidos\n FileInputStream archivo= new FileInputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosVendidos = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"@Override\r\n\tpublic ArrayList<Commentaire> importation() {\n\t\tif (!(list.isEmpty())) {\r\n\t\t\tlist.clear();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tResultSet result = this.connect\r\n\t\t\t\t\t.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE)\r\n\t\t\t\t\t.executeQuery(\"SELECT * FROM cms.commentaire\");\r\n\r\n\t\t\tif (!(result.next())) {\r\n\t\t\t\tSystem.out.println(\"pas de comm ici\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tCommentaire com = new Commentaire(result.getInt(1), result.getString(2), result.getTimestamp(5).toLocalDateTime(),\r\n\t\t\t\t\t\tresult.getBoolean(6), new Visiteur(result.getString(3)), new Article(result.getString(4)));\r\n\r\n\t\t\t\tlist.add(com);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error sql importation\");\r\n\t\t}\r\n\t\treturn list;\r\n\t}",
"private static List<Module> ajoutModulesEtudiant(List<String> dataEtudiant){\n\t\tList<Module> modules = new ArrayList<Module>();\n\t\tList<String> dataSemestreEtudiant = new ArrayList<String>(); //donnees d'un semestre de l'etudiant\n\t\tboolean enSemestre = false;\n\t\tIterator<String> it = dataEtudiant.iterator();\n\t\twhile (it.hasNext()) {//on parcourt les donnees\n\t\t\tString data = it.next();\n\t\t\tif(RecherchePattern.rechercheDebutSemestre(data)){\t//pour le premier semestre\n\t\t\t\tenSemestre = true;\n\t\t\t}\n\t\t\tif(enSemestre){//si on est dans la zone de semestres\n\t\t\t\tif(RecherchePattern.rechercheFinSemestre(data)){//si on est a la fin du semestre\n\t\t\t\t\tnbSemestres++; //on ajute un semestre a l'etudiant\n\t\t\t\t\tmodules.addAll(creationModulesSemestre(dataSemestreEtudiant));\n\t\t\t\t\tdataSemestreEtudiant = new ArrayList<String>();// on reset les donnees\n\t\t\t\t\tenSemestre=false;\n\t\t\t\t}\n\t\t\t\telse{//si on est dans la zone semestre\n\t\t\t\t\tdataSemestreEtudiant.add(data);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn modules;\n\t}",
"private void abrirEntAntMaest(){\n try{\n entAntMaest = new ObjectInputStream(\n Files.newInputStream(Paths.get(\"antmaest.ser\")));\n }\n catch(IOException iOException){\n System.err.println(\"Error al abrir el archivo. Terminado.\");\n System.exit(1);\n }\n }",
"public boolean editaImportoQuota() throws Exception {\n \t\n\t //vado come prima cosa a leggermi il numero della quota in aggiornamento:\n\t String numeroQuotaInAggiornamento = model.getGestioneOrdinativoStep2Model().getDettaglioQuotaOrdinativoModel().getNumeroQuota();\n\t Integer numeroQuotaInAgg = FinUtility.parseNumeroIntero(numeroQuotaInAggiornamento);\n\t \n boolean editaImportoQuota = true;\n \t\n if(model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso()!=null &&\n \t\t\t!model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso().isEmpty() && model.isSonoInAggiornamentoIncasso()){\n \t \n \t //vado quindi ad iterare la lista di sub ordinativi di incasso (le quote)\n \t //cercando quella in aggiornamento:\n \t\t\tList<SubOrdinativoIncasso> elencoSubOrdinativiDiIncasso = model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso();\n\t \tfor (SubOrdinativoIncasso subOrdinativoIncasso: elencoSubOrdinativiDiIncasso) {\n\t\t\t\t\n\t \t\tif(numeroQuotaInAgg!=null && subOrdinativoIncasso.getNumero()!=null\n\t \t\t\t\t&& numeroQuotaInAgg.intValue()==subOrdinativoIncasso.getNumero().intValue()){\n\t \t\t\t\n\t \t\t\t//ho trovato la quota in questione\n\t \t\t\t\n\t \t\t\tif(subOrdinativoIncasso.getSubDocumentoEntrata()!=null){\n\t \t\t\t\t//essendoci un sub documento collegato la quota risulta non editabile\n\t\t \t\t\teditaImportoQuota = false;\n\t\t \t\t\tbreak;\n\t\t \t\t} else {\n\t\t \t\t\t\n\t\t \t\t\t//NON COLLEGATO A DOCUMENTO\n\t\t \t\t\t\n\t\t \t\t\t//FIX per SIAC-4842 Se l'Ordinativo e' in stato I si dovrebbe poter aggiornare l'Importo della quota\n\t\t \t \t// nel caso in cui l'Ordinativo non sia collegato ad un documento. \n\t\t \t \tif(model.getGestioneOrdinativoStep1Model()!=null && \n\t\t \t \t\t\tmodel.getGestioneOrdinativoStep1Model().getOrdinativo()!=null &&\n\t\t \t \t\t\tStatoOperativoOrdinativo.INSERITO.equals(model.getGestioneOrdinativoStep1Model().getOrdinativo().getStatoOperativoOrdinativo())){\n\t\t \t \t\t//la quota risulta editabile:\n\t\t \t \t\teditaImportoQuota = true;\n\t\t \t \t}\n\t\t \t \t//\n\t\t \t\t}\n\t \t\t\t\n\t \t\t}\n\t \t\t\n\t\t\t}\n\n }\n \t\n //ritorno l'esito dell'analisi:\n return editaImportoQuota;\n }",
"public void abilitaRegoleconDispositivo(String nomeDispositivo, ArrayList<Sensore> listaSensori, ArrayList<Attuatore> listaAttuatori) {\n String[] regole = readRuleFromFile().split(\"\\n\");\n\n for (String s : regole) {\n try {\n ArrayList<String> disps = verificaCompRegola(s);\n\n if (disps.contains(nomeDispositivo)) {\n cambiaAbilitazioneRegola(s,false);\n }\n\n } catch (Exception e) {\n String msg = e.getMessage();\n }\n\n if (s.contains(nomeDispositivo) && verificaAbilitazione(s,listaSensori,listaAttuatori)) {\n cambiaAbilitazioneRegola(s, true);\n }\n }\n }",
"Import createImport();",
"Import createImport();",
"@Test\n public void importTest1() {\n isl.exportSP();\n SharedPreferences sp = appContext.getSharedPreferences(spName, Context.MODE_PRIVATE);\n assertEquals(5, sp.getInt(\"nr\", 0));\n IngredientList isl2 = new IngredientList(sp, new TextFileReader(appContext)); //constructor automatically imports\n\n //check a random part of an ingredient present\n assertEquals(\"kruiden\", ((Ingredient) isl2.get(1)).category);\n\n //check if ingredient 5 is present correctly\n assertEquals(\"aardappelen\", isl2.get(4).name);\n assertEquals(\"geen\", ((Ingredient) isl2.get(4)).category);\n assertEquals(5, ((Ingredient) isl2.get(4)).amountNeed, 0);\n assertEquals(1, ((Ingredient) isl2.get(4)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl2.get(4)).unit);\n\n //test text file import\n assertEquals(\"leek\", isl2.get(10).name);\n }",
"public void cargarProductosEnVenta() {\n try {\n //Lectura de los objetos de tipo producto Vendido\n FileInputStream archivo= new FileInputStream(\"productosVentaCliente\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n this.productosEnVenta = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"ERROR: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }",
"private void importCatalogue() {\n\n mAuthors = importModelsFromDataSource(Author.class, getHeaderClass(Author.class));\n mBooks = importModelsFromDataSource(Book.class, getHeaderClass(Book.class));\n mMagazines = importModelsFromDataSource(Magazine.class, getHeaderClass(Magazine.class));\n }",
"private boolean importPatients(IProgressMonitor monitor, String tableName){\n\t\tmonitor.subTask(\"Importations des patients\");\n\t\tint counter = 0, nr = 0, nrDone = 0;\n\t\ttry {\n\t\t\tTable t = db.getTable(tableName);\n\t\t\tif (t != null) {\n\t\t\t\tint num = t.getRowCount();\n\t\t\t\tfinal int PORTION = Math.round(TOTALWORK / 2 / num);\n\t\t\t\tSystem.out.println(\"importing \" + num + \" rows\");\n\t\t\t\tSystem.out.println(t.display(maxRecordsToDisplay));\n\t\t\t\tIterator<Map<String, Object>> it = t.iterator();\n\t\t\t\twhile (it.hasNext()) {\n\t\t\t\t\tmonitor.worked(1);\n\t\t\t\t\tMap<String, Object> row = it.next();\n\t\t\t\t\t// System.out.println(\"import \" + tableName + \" \" + nr + \"/\" + num + \" \" +\n\t\t\t\t\t// counter\n\t\t\t\t\t// + \"/\" + nrDone + \" \" + row);\n\t\t\t\t\tString ID = getCol(row, (\"Patient_NrDossier\"));\n\t\t\t\t\tif (ID.equals(\"\"))\n\t\t\t\t\t\tcontinue; // wir können keine Schrott importieren\n\t\t\t\t\tif (!ID.toUpperCase().startsWith(\"B\"))\n\t\t\t\t\t\tcontinue; // Nur die Dossiers von Bruno !!\n\t\t\t\t\t// Patient_ID_Nr ist fortlaufende Nummer von KeyCab\n\t\t\t\t\tif (Xid.findObject(PATID, ID) != null) {\n\t\t\t\t\t\tlog.log(\"Skipped \" + ID, Log.DEBUGMSG);\n\t\t\t\t\t\tcontinue; // avoid multiple imports\n\t\t\t\t\t}\n\t\t\t\t\t// String EAN = getCol(row, (\"Patient_NrDossier\"));\n\t\t\t\t\tString titel = getCol(row, \"Patient_Titre\");\n\t\t\t\t\tString vorname = getCol(row, \"Patient_Prenom\");\n\t\t\t\t\tif (vorname.equals(\"\"))\n\t\t\t\t\t\tcontinue; // wir können keine Schrott importieren\n\t\t\t\t\tString name = getCol(row, \"Patient_Nom\");\n\t\t\t\t\tif (name.equals(\"\"))\n\t\t\t\t\t\tcontinue; // wir können keine Schrott importieren\n\t\t\t\t\tString bez2 = getCol(row, \"Patient_NomJFille\");\n\t\t\t\t\tString strasse = getCol(row, \"Patient_Adresse\");\n\t\t\t\t\tString lId = getCol(row, \"Patient_Localite_ID\");\n\t\t\t\t\tif (lId.equals(\"\"))\n\t\t\t\t\t\tcontinue; // wir können keine Schrott importieren\n\t\t\t\t\tString plz = getPlzOrt(lId).plz;\n\t\t\t\t\tString ort = getPlzOrt(lId).ort;\n\t\t\t\t\tString email = getCol(row, \"Patient_Email\");\n\t\t\t\t\tString tel1 = getCol(row, \"Patient_TelPriv\");\n\t\t\t\t\tString tel2 = getCol(row, \"Patient_Fax\"); // ou Patient_TelProf\n\t\t\t\t\tString natel = getCol(row, \"Patient_Natel\");\n\t\t\t\t\tString sexe = getCol(row, \"Patient_Sexe\");\n\t\t\t\t\t// if (sexe.equals(\"\"))\n\t\t\t\t\t// continue; // wir können keine Schrott importieren\n\t\t\t\t\tsexe = sexe.toUpperCase().equals(\"M\") ? Patient.MALE : Patient.FEMALE;\n\t\t\t\t\tif (getCol(row, \"Patient_DateNaiss\").equals(\"\"))\n\t\t\t\t\t\tcontinue; // wir können keine Schrott importieren\n\t\t\t\t\tDate birthDate = string2Date(getCol(row, \"Patient_DateNaiss\"));\n\t\t\t\t\tif (birthDate == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tSimpleDateFormat xx = new SimpleDateFormat(\"dd.MM.yyyy\");\n\t\t\t\t\tString german = xx.format(birthDate);\n\t\t\t\t\tString zusatz = getCol(row, \"Patient_Adres_CO\");\n\t\t\t\t\tnr++;\n\t\t\t\t\tplz = plz.replaceAll(\"\\\\D\", \"\"); // we only want the digits\n\t\t\t\t\tPatient pat = new Patient(name, vorname, german, sexe);\n\t\t\t\t\tpat.set(\"PatientNr\", ID);\n\t\t\t\t\tmonitor.subTask(\"Patient: \" + ID + \" \" + pat.getLabel());\n\t\t\t\t\tpat.set(new String[] {\n\t\t\t\t\t\t\"Strasse\", \"Plz\", \"Ort\", \"Telefon1\", \"Telefon2\", \"Natel\"\n\t\t\t\t\t}, getCol(row, \"Patient_Adresse\"), plz, ort, getCol(row, \"Patient_TelPriv\"),\n\t\t\t\t\t\tgetCol(row, \"Patient_TelProf\"), getCol(row, \"Patient_Natel\"));\n\t\t\t\t\tString land = getCol(row, \"Patient_Nationalite\");\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\tif (country2code.get(land) != null) {\n\t\t\t\t\t\tpat.set(\"Land\", country2code.get(land));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tappendIfNotEmpty(sb, \"nationalité:\", land);\n\t\t\t\t\t}\n\t\t\t\t\t// \t\tString risks = p.get(Patient.FLD_RISKS); //$NON-NLS-1$\n\t\t\t\t\tappendIfNotEmpty(sb, \"dossier: \", ID);\n\t\t\t\t\tappendIfNotEmpty(sb, \"profession: \", getCol(row, \"Patient_Profession\"));\n\t\t\t\t\tappendIfNotEmpty(sb, \"remarque: \", getCol(row, \"Patient_Comment\"));\n\t\t\t\t\tString alarm = getCol(row, \"Patient_Commentaire_ALARME_T074\");\n\t\t\t\t\tif (!alarm.contains(\"false\") && !alarm.equals(\"\")) {\n\t\t\t\t\t\tif (getAlarme(alarm) != null) {\n\t\t\t\t\t\t\tappendIfNotEmpty(sb, \"alarme: \", getAlarme(alarm).toString());\n\t\t\t\t\t\t\tSystem.out.println(\"alarme: \" + getAlarme(alarm).toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tappendIfNotEmpty(sb, \"employeur: \", getCol(row, \"Patient_Employeur\"));\n\t\t\t\t\tappendIfNotEmpty(sb, \"medecin traitant: \",\n\t\t\t\t\t\tgetCol(row, \"Patient_Medecin_Traitant\"));\n\t\t\t\t\tif (sb.length() > 0) {\n\t\t\t\t\t\tpat.setBemerkung(sb.toString());\n\t\t\t\t\t}\n\t\t\t\t\tif (email.length() > 80)\n\t\t\t\t\t\temail = email.substring(0, 79);\n\t\t\t\t\tpat.set(new String[] {\n\t\t\t\t\t\t\"ID\", \"E-Mail\", \"Telefon1\", \"Telefon2\", \"Natel\", \"Anschrift\"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ //$NON-NLS-8$ //$NON-NLS-9$\n\t\t\t\t\t\tID, email, tel1, tel2, natel, zusatz);\n\t\t\t\t\tpat.set(\"Zusatz\", bez2); //$NON-NLS-1$\n\t\t\t\t\tif (titel.length() > 20)\n\t\t\t\t\t\ttitel = titel.substring(0, 19);\n\t\t\t\t\tpat.set(\"Titel\", titel); //$NON-NLS-1$\n\t\t\t\t\tif (monitor.isCanceled()) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tif (counter++ > 200) {\n\t\t\t\t\t\tPersistentObject.clearCache();\n\t\t\t\t\t\tSystem.gc();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t// no worries\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcounter = 0;\n\t\t\t\t\t}\n\t\t\t\t\tpat.addXid(PATID, ID, false);\n\t\t\t\t\tnrDone++;\n\t\t\t\t\tif (nrDone > maxRecordsToImport)\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"ADRES_MED_T009 nicht gefunden\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tExHandler.handle(ex);\n\t\t\treturn false;\n\t\t}\n\t\treturn false; //$NON-NLS-1$\t\t\n\t}",
"private void lesFil()\n\t{\n\t\tDATAFIL = datafil(false);\n\n\t\ttry ( ObjectInputStream innfil = new ObjectInputStream( new FileInputStream( DATAFIL ) ) )\n\t\t{\n\t\t\tbr = (Boligregister) innfil.readObject();\n\t\t\tvisMelding( \"Data er hentet fra fil.\" );\n\t\t}\n\t\tcatch(ClassNotFoundException cnfe)\n\t\t{\n\t\t\tvisMelding( \"<html>Feil:<br><br>\" + cnfe.getMessage() + \"<br><br>Oppretter tom datafil. Tar vare på gammel datafil.</html>\" );\n\t\t\ttomtRegister();\n\t\t\tDATAFIL = datafil(true);\n\t\t\tskrivTilFil(false);\n\t\t}\n\t\tcatch(FileNotFoundException fne)\n\t\t{\n\t\t\tvisMelding( \"Ingen datafil funnet. Oppretter tom datafil.\" );\n\t\t\ttomtRegister();\n\t\t\tskrivTilFil(false);\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{\n\t\t\tvisMelding( \"<html>Innlesingsfeil. Oppretter tom datafil. Tar vare på gammel datafil.</html>\" );\n\t\t\ttomtRegister();\n\t\t\tDATAFIL = datafil(true);\n\t\t\tskrivTilFil(false);\n\t\t}\n\t}",
"private void actionImport() {\n ImportPanel myPanel = new ImportPanel();\n int result = JOptionPane.showConfirmDialog(this, myPanel, \"Import\",\n JOptionPane.OK_CANCEL_OPTION);\n if (result == JOptionPane.OK_OPTION) { // Afirmative\n readNeuronListFromFile(\n myPanel.tfields[ImportPanel.idxInhList].getText(),\n layoutPanel.inhNList, LayoutPanel.INH);\n readNeuronListFromFile(\n myPanel.tfields[ImportPanel.idxActList].getText(),\n layoutPanel.activeNList, LayoutPanel.ACT);\n readNeuronListFromFile(\n myPanel.tfields[ImportPanel.idxPrbList].getText(),\n layoutPanel.probedNList, LayoutPanel.PRB);\n\n Graphics g = layoutPanel.getGraphics();\n layoutPanel.writeToGraphics(g);\n }\n }",
"public n501070324_PedidosAssistencia() {\n super(\"Pedidos.txt\");\n }",
"Import getImport();",
"public interface ImportarPolizaDTO {\r\n\t\r\n\t/**\r\n\t * Execute.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @param idSector the id sector\r\n\t * @param idUser the id user\r\n\t * @return the poliza import DTO\r\n\t */\r\n\tPolizaImportDTO execute(PolizaImportDTO importDTO, Integer idSector, String idUser);\r\n\t\r\n\t/**\r\n\t * Export reports.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @param tipo the tipo\r\n\t * @return the poliza import DTO\r\n\t */\r\n\tPolizaImportDTO exportReports(PolizaImportDTO importDTO, String tipo);\r\n\t\r\n\t\r\n\t/**\r\n\t * Generate excel.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @return the poliza import DTO\r\n\t */\r\n\tPolizaImportDTO generateExcel(PolizaImportDTO importDTO);\r\n\t\r\n\t/**\r\n\t * Generate head.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @return the list\r\n\t */\r\n\tList<PolizaExcelDTO> generateHead(PolizaImportDTO importDTO);\r\n\t\r\n\t/**\r\n\t * Generate body.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @return the list\r\n\t */\r\n\tList<PolizaBody> generateBody(PolizaImportDTO importDTO);\r\n\t\r\n\t/**\r\n\t * Gets the path.\r\n\t *\r\n\t * @param cvePath the cve path\r\n\t * @return the path\r\n\t */\r\n\tString getPath(String cvePath);\r\n\t\r\n\t/**\r\n\t * Gets the mes activo.\r\n\t *\r\n\t * @param idSector the id sector\r\n\t * @return the mes activo\r\n\t */\r\n\tList<String> getMesActivo(Integer idSector);\r\n\r\n}",
"private void importEvents(File toLoad) {\n\t\tif (toLoad.getName().endsWith(\".ics\")) {\n\t\t\ttry {\n\t\t\t\tthis.calendar.loadCalendar(toLoad);\n\t\t\t\tthis.showWeek(new GregorianCalendar());\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tnew JErrorFrame(e.getMessage());\n\t\t\t} catch (IOException e) {\n\t\t\t\tnew JErrorFrame(e.getMessage());\n\t\t\t} catch (CorruptedCalendarFileException e) {\n\t\t\t\tnew JErrorFrame(e.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tnew JErrorFrame(\n\t\t\t\t\t\"The file type is incorrect, only .ics files are accepted\");\n\t\t}\n\t}",
"public void addImport(String importVal)\n\t\t\tthrows JavaFileCreateException {\n\t\tif (importVal == null || \"\".equals(\"\")) {\n\t\t\tthrow new JavaFileCreateException(\n\t\t\t\t\tDictionaryOfExceptionMessage.IMPORT_EXCEPTION\n\t\t\t\t\t\t\t.toString());\n\t\t} else {\n\t\t\timportVal = importVal.trim();\n\t\t\tPattern pat = Pattern.compile(\"[^a-zA-Z0-9]*\");\n\t\t\tString[] temp = importVal.trim().split(\"\\\\.\");\n\t\t\tif (temp.length == 0) {\n\t\t\t\tthrow new JavaFileCreateException(\n\t\t\t\t\t\tDictionaryOfExceptionMessage.IMPORT_EXCEPTION\n\t\t\t\t\t\t\t\t.toString());\n\t\t\t} else {\n\t\t\t\tfor (String string : temp) {\n\t\t\t\t\tMatcher mat = pat.matcher(string);\n\t\t\t\t\tboolean rs = mat.find();\n\t\t\t\t\tif (rs) {\n\t\t\t\t\t\tthrow new JavaFileCreateException(\n\t\t\t\t\t\t\t\tDictionaryOfExceptionMessage.IMPORT_EXCEPTION\n\t\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\timports.add(importVal);\n\t}",
"public ArrayList<Dato_Compras> info_rep3(String archivo){\r\n String linea;\r\n ArrayList<Dato_Compras> lista = new ArrayList<>();\r\n try(BufferedReader br= new BufferedReader(new FileReader(archivo))){\r\n while((linea = br.readLine()) != null){\r\n String[] info_disco = linea.split(\";\");\r\n Dato_Compras dato;\r\n dato = new Dato_Compras(info_disco[0], Integer.parseInt(info_disco[1]),\r\n info_disco[2], info_disco[3], Integer.parseInt(info_disco[4]), \r\n Integer.parseInt(info_disco[5]), info_disco[6], info_disco[7]);\r\n lista.add(dato);\r\n }\r\n }catch(IOException ex){\r\n System.out.println(ex);\r\n }\r\n return lista;\r\n }",
"public void cargarProductosComprados() {\n try {\n //Lectura de los objetos de tipo productoComprado\n FileInputStream archivo= new FileInputStream(\"productosComprados\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosComprados = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tSukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid,\r\n\t\t\t\tthis.password);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tSukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tPersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}",
"private void cargarFichero() throws FileNotFoundException {\n\t\tFile miFichero = new File(NOMBRE_FICHERO);\n\t\tFileWriter erroresFichero;\n\t\t\n\t\tScanner in = new Scanner(miFichero);\n\t\t\n\t\tEjercicio nuevoEjer;\n\t\tString siguienteLinea;\n\t\tComprobadorEntradaFichero comprobador = new ComprobadorEntradaFichero();\n\t\tString errores = \"\";\n\t\tint numLinea = 1;\n\t\t\n\t\twhile (in.hasNextLine()) {\n\t\t\t\n\t\t\tsiguienteLinea = in.nextLine();\n\t\t\tif (comprobador.test(siguienteLinea)) {\n\t\t\t\tnuevoEjer = new Ejercicio(siguienteLinea);\n\t\t\t\tcoleccionEj.addEjercicio(nuevoEjer);\n\t\t\t} else {\n\t\t\t\t//Controlar cuántos errores va dando\n\t\t\t\terrores += \"Error en la lÃnea: \" + String.valueOf(numLinea) + \". Datos: \" + siguienteLinea + \"\\n\";\n\t\t\t}\n\t\t\tnumLinea++;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\t\n\t\t//Ahora escribimos \n\t\tif (errores != \"\") {\n\t\t\ttry {\n\t\t\t erroresFichero = new FileWriter(NOMBRE_FICHERO_ERRORES);\n\t\t\n\t\t\t erroresFichero.write(errores);\n\n\t\t\t erroresFichero.close();\n\n\t\t\t} catch (Exception ex) {\n\t\t\t\tSystem.out.println(\"Mensaje de la excepción: \" + ex.getMessage());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private void cargarJugadoresEnMesa() {\n\n\t\tString nombreFichero = String.format(\"jugadoresEnMesa%d.csv\", id);\n\n\t\tthis.jugadoresEnMesa = GestionCSV.obtenerJugadores(nombreFichero);\n\n\t}",
"public static ArrayList<Chip> ImportarChips() {\n ArrayList<Chip> ArrayChips = new ArrayList<Chip>();\n File f = new File(\"Archivos/chips.txt\");\n ManCliente objManCliente = new ManCliente();\n ImportarCliente objImpCli = new ImportarCliente();\n ArrayList<Cliente> ArrayClientes = new ArrayList<Cliente>();\n String aNumero;\n int aActivo;\n int aSaldo;\n int aMegas;\n String aCedula;\n StringTokenizer st;\n Scanner entrada = null;\n String sCadena;\n try {\n ArrayClientes = objImpCli.ImportarClientes();\n entrada = new Scanner(f);\n while (entrada.hasNext()) {\n sCadena = entrada.nextLine();\n st = new StringTokenizer(sCadena, \",\");\n while (st.hasMoreTokens()) {\n aNumero = st.nextToken();\n aActivo = Integer.parseInt(st.nextToken());\n aSaldo = Integer.parseInt(st.nextToken());\n aMegas = Integer.parseInt(st.nextToken());\n aCedula = st.nextToken();\n\n Chip objTmpChip = new Chip(aNumero, aActivo, aSaldo, aMegas, objManCliente.BuscarCliente(ArrayClientes, aCedula));\n ArrayChips.add(objTmpChip);\n\n }\n }\n } catch (FileNotFoundException e) {\n System.out.println(e.getMessage());\n } finally {\n entrada.close();\n }\n return ArrayChips;\n }",
"public void inicializaEntradas(){\n\t\tentrada = TipoMotivoEntradaEnum.getList();\n\t\tentrada.remove(0);\n\t}",
"public static void main(String[] args) throws Exception{\n System.out.println(\"prueba conexion\");\n Conexion conexion = new Conexion();\n System.out.println(\"conecto\");\n String csvFile = \"./temporal.txt\";\n BufferedReader br = null;\n String line = \"\";\n boolean bandera = true;\n ArrayList<Administradora> guardado = new ArrayList<>();\n String cvsSplitBy = \";\";\n List<String> errores = new ArrayList<>();\n int seq = 0;\n try {\n System.out.println(\"leyendo\");\n br = new BufferedReader(new FileReader(csvFile));\n System.out.println(\"empezando lineas\");\n while ((line = br.readLine()) != null) {\n System.out.println(\"line: \" + line.toString());\n String[] datos = line.split(cvsSplitBy);\n if(revisionLetras(datos[0])){\n if(revisionLetras(datos[1])){\n if(revisionTipoIdentificacion(datos[2])){\n if(revisionNumeros(datos[3])){\n if(revisionNatural(datos[4])){\n java.util.Date fecha = new Date();\n Administradora elemento = new Administradora(seq,datos[0],datos[1],datos[2],datos[3],datos[4],revisionX(datos[5]),revisionX(datos[6]),revisionX(datos[7]),fecha);\n guardado.add(elemento);\n }\n else{\n errores.add(\"Se ha encontrado problemas en: \" + datos.toString() + \" en la naturaleza\");\n bandera = false;\n }\n }\n else{\n errores.add(\"Se ha encontrado problemas en: \" + datos.toString() + \" en la identificacion\");\n bandera = false;\n }\n }\n else{\n errores.add(\"Se ha encontrado problemas en: \" + datos.toString() + \" en el tipo de identificacion\");\n bandera = false;\n }\n }\n else{\n errores.add(\"Se ha encontrado problemas en: \" + datos.toString() + \" en el nombre\");\n bandera = false;\n }\n }\n else{\n errores.add(\"Se ha encontrado problemas en: \" + datos.toString() + \" en el codigo\");\n bandera = false;\n }\n }\n if(bandera==true){\n //guardado\n errores.add(\"guardados satisfactoriamente\");\n }else{\n errores.add(\"Motivos por lo que no se guardo\");\n }\n System.out.println(\"errores: \" + errores);\n errores(errores);\n guardar(conexion.connectDatabase(\"localhost\", \"3306\", \"practica\", \"root\", \"\"), guardado);\n System.out.println(\"guardado\");\n } catch (Exception e) {\n System.out.println(\"catch\");\n } finally {\n if (null != br) {\n br.close();\n System.out.println(\"finally\");\n } \n }\n }",
"private void validateFile(final boolean isRustica) {\n\t\thayErroresFilas = false;\r\n\t\thayErroresFila = false;\r\n\r\n\t\tcampoMasaCorrectos = true;\r\n\t\tcampoHojaCorrecto = true;\r\n\t\tcampoParecelaCorrecto = true;\r\n\t\tcampoTipoCorrecto = true;\r\n\t\tcampoFechaAltaCorrecto = true;\r\n\t\tcampoFechaBajaCorrecto = true;\r\n\r\n\t\tFile currentDirectory = (File) blackboard.get(ImportarUtils_LCGIII.LAST_IMPORT_DIRECTORY);\r\n\r\n\t\tGeopistaFiltroFicheroFilter filter = new GeopistaFiltroFicheroFilter();\r\n\t\tfilter.addExtension(\"SHP\");\r\n filter.setDescription(\"Shapefiles\");\r\n\t\t\r\n final JFileChooser jfc;\r\n final JTextField jtf;\r\n if (isRustica)\r\n {\r\n \tjfc = fcRustica;\t\r\n \tjtf = this.txtFicheroRustica;\r\n }\r\n\t\telse\r\n\t\t{\r\n\t\t\tjfc = fcUrbana;\r\n\t\t\tjtf = this.txtFicheroUrbana;\r\n\t\t}\r\n\t\t\t\t\r\n\t\t// FILES(*.*)\r\n jfc.setFileFilter(filter);\r\n \tjfc.setAcceptAllFileFilterUsed(false); // QUITA LA OPCION ALL\r\n\t\tjfc.setCurrentDirectory(currentDirectory);\r\n\t\t\r\n\t\tint returnVal = jfc.showOpenDialog(this);\r\n\t\tblackboard.put(ImportarUtils_LCGIII.LAST_IMPORT_DIRECTORY, jfc.getCurrentDirectory());\r\n\r\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION)\r\n\t\t{\r\n\t\t\t// Cargamos el fichero que hemos obtenido\r\n\t\t\tString fichero;\r\n\t\t\tfichero = jfc.getSelectedFile().getPath();\r\n\t\t\tjtf.setText(fichero); // meto el fichero seleccionado\r\n\t\t\t// en el campo\r\n\r\n\t\t\tcadenaTexto = \"<font face=SansSerif size=3>\"\r\n\t\t\t\t+ aplicacion.getI18nString(\"ImportacionComenzar\") + \"<b>\" + \" \"\r\n\t\t\t\t+ jfc.getSelectedFile().getName() + \"</b>\";\r\n\t\t\t\r\n\t\t\tcadenaTexto = cadenaTexto + \"<p>\" + aplicacion.getI18nString(\"OperacionMinutos\") + \" ...</p></font>\";\r\n\t\t\tcadenaTexto = cadenaTexto + aplicacion.getI18nString(\"importar.datos.parcelas\");\r\n\r\n\t\t\tediError.setText(cadenaTexto);\r\n\t\t\tcadenaTexto=\"\";\r\n\r\n\t\t\tfinal TaskMonitorDialog progressDialog = \r\n\t\t\t\tnew TaskMonitorDialog(aplicacion.getMainFrame(), geopistaEditor.getContext().getErrorHandler());\r\n\r\n\t\t\tprogressDialog.setTitle(aplicacion.getI18nString(\"ValidandoDatos\"));\r\n\t\t\tprogressDialog.report(aplicacion.getI18nString(\"ValidandoDatos\"));\r\n\t\t\tprogressDialog.addComponentListener(new ComponentAdapter()\r\n\t\t\t{\r\n\t\t\t\tpublic void componentShown(ComponentEvent e)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Wait for the dialog to appear before starting the\r\n\t\t\t\t\t// task. Otherwise\r\n\t\t\t\t\t// the task might possibly finish before the dialog\r\n\t\t\t\t\t// appeared and the\r\n\t\t\t\t\t// dialog would never close. [Jon Aquino]\r\n\t\t\t\t\tnew Thread(new Runnable()\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpublic void run()\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tGeopistaLayer layerParcelas = (GeopistaLayer) blackboard.get(\"capaParcelasInfoReferencia\");\r\n\t\t\t\t\t\t\t\tif (layerParcelas != null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tgeopistaEditor.getLayerManager().remove(layerParcelas);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tlayerParcelas = (GeopistaLayer) geopistaEditor.loadData(\r\n\t\t\t\t\t\t\t\t\t\tjfc.getSelectedFile().getAbsolutePath(),\r\n\t\t\t\t\t\t\t\t\t\taplicacion.getI18nString(\"importar.informe.parcelas\"));\r\n\t\t\t\t\t\t\t\tlayerParcelas.setActiva(false);\r\n\t\t\t\t\t\t\t\tlayerParcelas.addStyle(new BasicStyle(new Color(64, 64,64)));\r\n\t\t\t\t\t\t\t\tlayerParcelas.setVisible(false);\r\n\r\n\t\t\t\t\t\t\t\tif (isRustica)\r\n\t\t\t\t\t\t\t\t\tblackboard.put(\"capaParcelasInfoReferencia\", layerParcelas);\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tblackboard.put(\"capaParcelasInfoReferenciaUrbana\", layerParcelas);\r\n\r\n\t\t\t\t\t\t\t\t// Obtener el esquema\r\n\t\t\t\t\t\t\t\tFeatureSchema esquema = layerParcelas.getFeatureCollectionWrapper().getFeatureSchema();\r\n\r\n\t\t\t\t\t\t\t\t// Localizar los campos\r\n\t\t\t\t\t\t\t\tcampoMasaCorrectos = encontrarCampo(\"MASA\",esquema);\r\n\t\t\t\t\t\t\t\tcampoHojaCorrecto = encontrarCampo(\"HOJA\",esquema);\r\n\t\t\t\t\t\t\t\tcampoParecelaCorrecto = encontrarCampo(\"PARCELA\",esquema);\r\n\t\t\t\t\t\t\t\tcampoTipoCorrecto = encontrarCampo(\"TIPO\",esquema);\r\n\t\t\t\t\t\t\t\tcampoFechaAltaCorrecto = encontrarCampo(\"FECHAALTA\", esquema);\r\n\t\t\t\t\t\t\t\tcampoFechaBajaCorrecto = encontrarCampo(\"FECHABAJA\", esquema);\r\n\r\n\t\t\t\t\t\t\t\tif (campoMasaCorrectos \r\n\t\t\t\t\t\t\t\t\t\t&& campoHojaCorrecto\r\n\t\t\t\t\t\t\t\t\t\t&& campoParecelaCorrecto\r\n\t\t\t\t\t\t\t\t\t\t&& campoTipoCorrecto\r\n\t\t\t\t\t\t\t\t\t\t&& campoFechaAltaCorrecto\r\n\t\t\t\t\t\t\t\t\t\t&& campoFechaBajaCorrecto)\r\n\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\t// A partir de aqui hay que\r\n\t\t\t\t\t\t\t\t\t// verificar que no hay nulos y es\r\n\t\t\t\t\t\t\t\t\t// del tipo correcto los valores.\r\n\t\t\t\t\t\t\t\t\tList listaLayer = layerParcelas.getFeatureCollectionWrapper().getFeatures();\r\n\t\t\t\t\t\t\t\t\tIterator itLayer = listaLayer.iterator();\r\n\r\n\t\t\t\t\t\t\t\t\twhile (itLayer.hasNext())\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tif (hayErroresFila)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t// break;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tFeature f = (Feature) itLayer.next();\r\n\t\t\t\t\t\t\t\t\t\tString masa = f.getString(\"MASA\");\r\n\t\t\t\t\t\t\t\t\t\tString hoja = f.getString(\"HOJA\");\r\n\t\t\t\t\t\t\t\t\t\tString parcela = f.getString(\"PARCELA\");\r\n\r\n\t\t\t\t\t\t\t\t\t\tString tipo = f.getString(\"TIPO\");\r\n\t\t\t\t\t\t\t\t\t\t// Comprobamos que no sea nulo y\r\n\t\t\t\t\t\t\t\t\t\t// sea una U o una R\r\n\t\t\t\t\t\t\t\t\t\tif ((!tipo.equals(\"U\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& (!tipo.equals(\"R\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& (!tipo.equals(\"D\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& (!tipo.equals(\"X\")))\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t// Solo puede haber una R \r\n\t\t\t\t\t\t\t\t\t\t\t// una U una D o una X.\r\n\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = cadenaTexto\r\n\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.rustico\")\r\n\t\t\t\t\t\t\t\t\t\t\t+ masa\r\n\t\t\t\t\t\t\t\t\t\t\t+ hoja\r\n\t\t\t\t\t\t\t\t\t\t\t+ parcela\r\n\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fin.rustico\");\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t\t\t\t\t// break;\r\n\t\t\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\t\t\telse if (!isRustica && (tipo.equals(\"R\") || tipo.equals(\"D\") || tipo.equals(\"X\")))\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = I18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.inicio.parcelario\")\r\n\t\t\t\t\t\t\t\t\t\t\t+ I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.validacion.urbana\") + \r\n\t\t\t\t\t\t\t\t\t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.fin.parcelario\");\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\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\telse if (isRustica && tipo.equals(\"U\"))\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = I18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.inicio.parcelario\")\r\n\t\t\t\t\t\t\t\t\t\t\t+ I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.validacion.rustica\") + \r\n\t\t\t\t\t\t\t\t\t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.fin.parcelario\");\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\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\telse\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t// Comprobamos que la fecha\r\n\t\t\t\t\t\t\t\t\t\t\t// que viene sea fecha\r\n\t\t\t\t\t\t\t\t\t\t\ttry\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\t\tDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tDate date = (Date) formatter.parse(f.getString(\"FECHAALTA\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Comprobamos que la\r\n\t\t\t\t\t\t\t\t\t\t\t\t// fecha de baja es nula\r\n\t\t\t\t\t\t\t\t\t\t\t\t// o valida o 9999999\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (f.getString(\"FECHABAJA\").equals(\"99999999\"))\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\t// Correcto\r\n\t\t\t\t\t\t\t\t\t\t\t\t\thayErroresFila = false;\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\telse\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\tif ((f.getString(\"FECHABAJA\")) == null)\r\n\t\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\t\thayErroresFila = false;\r\n\t\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\telse\r\n\t\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\t\t// Comprobamos que sea una fecha correcta\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry\r\n\t\t\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\t\t\tDateFormat formatter1 = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDate date1 = (Date) formatter1.parse(f.getString(\"FECHABAJA\"));\r\n\t\t\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\t\tcatch (Exception excp)\r\n\t\t\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\t\t\texcp.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = cadenaTexto\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fecha.baja\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ masa\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ hoja\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ parcela\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fin.rustico\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// break;\r\n\t\t\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\t}\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//jtf.setBorder(BorderFactory.createLineBorder(Color.GREEN, 2));\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (isRustica)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\trusticaValida = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\t\t\turbanaValida = true;\r\n\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\tcatch (Exception exc)\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\t\t// En la fecha de alta\r\n\t\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = cadenaTexto\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fecha.alta.validacion\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ masa\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ hoja\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ parcela\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fin.rustico\");\r\n\t\t\t\t\t\t\t\t\t\t\t\texc.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t// break;\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t//Se comprueba si la geometría es de tipo polygon y no es empty (únicas válidas en la capa parcelas)\r\n\t\t\t\t\t\t\t\t\t\t\tif (!(f.getGeometry() instanceof Polygon)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t|| f.getGeometry().isEmpty())\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\r\n\t\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = I18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.inicio.parcelario\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.validacion.geometria\") + \r\n\t\t\t\t\t\t\t\t\t\t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.fin.parcelario\");\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\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t\t\t\t\t}\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} \r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t// Alguno de los campos no están\r\n\t\t\t\t\t\t\t\t\t// definidos\r\n\t\t\t\t\t\t\t\t\t// JOptionPane.showMessageDialog(this,aplicacion.getI18nString(\"importar.informe.parcelas.algun.campo\"));\r\n\t\t\t\t\t\t\t\t\tcadenaTexto += aplicacion.getI18nString(\"importar.informacion.ficheros.no.correctos\");\r\n\t\t\t\t\t\t\t\t\thayErroresFilas = true;\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\tif (isRustica)\r\n\t\t\t\t\t\t\t\t\t\trusticaValida = false;\r\n\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\turbanaValida = false;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\tcatch (Exception e)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\tfinally\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tprogressDialog.setVisible(false);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).start();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tGUIUtil.centreOnWindow(progressDialog);\r\n\t\t\tprogressDialog.setVisible(true);\r\n\r\n\t\t\tif (hayErroresFilas)\r\n\t\t\t{\r\n\t\t\t\tjtf.setBorder(BorderFactory.createLineBorder(Color.RED, 2));\r\n\t\t\t\tcadenaTexto = cadenaTexto + aplicacion.getI18nString(\"validacion.finalizada\");\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tjtf.setBorder(BorderFactory.createLineBorder(Color.GREEN, 2));\r\n\t\t\t\tcadenaTexto = cadenaTexto + aplicacion.getI18nString(\"importar.informe.parcelas.fichero.correcto\")\r\n\t\t\t\t+ aplicacion.getI18nString(\"validacion.finalizada\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tediError.setText(cadenaTexto);\r\n\t\t\twizardContext.inputChanged();\r\n\t\t}\r\n\r\n\t}",
"@Test\r\n\tpublic void testImportTesti() throws SukuException {\r\n\r\n\t\t// SukuServer server = new SukuServerImpl();\r\n\t\tfinal SukuKontrollerLocalImpl kontroller = new SukuKontrollerLocalImpl(null);\r\n\r\n\t\tkontroller.getConnection(this.host, this.dbname, this.userid, this.password, this.isH2);\r\n\t\t// kontroller.setLocalFile(this.filename);\r\n\r\n\t\tkontroller.getSukuData(\"cmd=import\", \"type=backup\", \"lang=FI\");\r\n\t\t// server.import2004Data(\"db/\" + this.filename, \"FI\");\r\n\r\n\t\tfinal SukuData data = kontroller.getSukuData(\"cmd=family\", \"pid=3\");\r\n\t\tassertNotNull(\"Family must not be null\");\r\n\r\n\t\tfinal PersonShortData owner = data.pers[0];\r\n\r\n\t\tassertNotNull(\"Owner of family must not be null\");\r\n\r\n\t\tassertTrue(\"Wrong ownere\", owner.getGivenname().startsWith(\"Kaarle\"));\r\n\t\tkontroller.resetConnection();\r\n\r\n\t}",
"private void cargarJugadoresRetirados() {\n\n\t\tString nombreFichero = \"jugadoresRetirados.csv\";\n\n\t\tListaJugadores.jugadoresRetirados = GestionCSV.obtenerJugadores(nombreFichero);\n\n\t}",
"@Override\n\tpublic void importarExpediente(Expedientes exp) throws ExpedienteNoEncontradoException {\n\t\tem.merge(exp);//Si no estaba la crea y si estaba la va a actualizar\n\t\t\n\t}",
"public void lecture() throws FileNotFoundException, IOException {\n \n //ouverture du fichier en lecture\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(adresseFichier);\n InputStreamReader ir = new InputStreamReader(is);\n BufferedReader fichier = new BufferedReader(ir);\n \n //Lecture ligne à ligne\n String ligne;\n int numLigne = 0;\n while((ligne = fichier.readLine()) != null){\n //parsage de la ligne\n this.parseLigne(numLigne, ligne);\n numLigne++;\n }\n }",
"@Before\r\n\tpublic void faireAvant(){\r\n\t\tfile3Donnees = new File(\"fichierTest3Donnees.csv\");\r\n\t\tfile11Donnees = new File(\"fichierTest11Donnees.csv\");\r\n\t}",
"@PostMapping(\"/importar3\")\r\n String importar3( Map<String, Object> model) {\r\n\r\n iniciarValores();\r\n\r\n ArrayList<String> output = new ArrayList<String>();\r\n try {\r\n Connection connection = dataSource.getConnection();\r\n\r\n //////////////////////////////////\r\n int numArquivos = 1;\r\n int id = this.ID;\r\n while (numArquivos < NUM_ARQUIVOS) {\r\n\r\n StringBuffer conteudo = new StringBuffer();\r\n\r\n //Abre o arquivo\r\n String arq = ARQUIVO_ENTRADA + MIN_INDICE + \"_\" + MAX_INDICE + \".txt\";\r\n //---Local\r\n //BufferedReader file = new BufferedReader(new FileReader(arq));\r\n //---Local/Remote\r\n String linha=\"\";\r\n ClassPathResource resource = new ClassPathResource(arq);\r\n BufferedReader file = new BufferedReader(new InputStreamReader(resource.getInputStream(), StandardCharsets.UTF_8));\r\n\r\n //Primeira linha soh possui os cabecalhos das colunas\r\n linha = file.readLine();\r\n output.add(linha);\r\n\r\n //Proxima linha\r\n linha = file.readLine();\r\n output.add(linha);\r\n System.out.println(linha);\r\n\r\n String[] campo = new String[NUM_CAMPOS];\r\n StringTokenizer token = null;\r\n int numCampos = 0;\r\n int i = 0;\r\n\r\n //Prepara as variaveis para gravacao na BD\r\n Statement stmt = connection.createStatement();\r\n\r\n //id eh um numero sequencial\r\n while (linha != null) {\r\n ///////\r\n //////\r\n\r\n StringBuffer inserirLinha = new StringBuffer();\r\n inserirLinha.append(\"insert into preensao(\"\r\n + \"ladodominante,\"\r\n + \"dir1, \"\r\n + \"esq1, \"\r\n + \"dir2, \"\r\n + \"esq2, \"\r\n + \"dir3, \"\r\n + \"esq3 \"\r\n\r\n + \") values ( \"\r\n +\r\n \"'Esquerdo', \"\r\n + //ladodominante\r\n \"0, \"\r\n + //dir1\r\n \"0, \"\r\n + //esq1\r\n \"0, \"\r\n + //dir2\r\n \"0, \"\r\n + //esq2\r\n \"0, \"\r\n + //dir3\r\n \"0 \"\r\n + //esq3\r\n \")\");\r\n System.out.println(inserirLinha);\r\n output.add(inserirLinha.toString());\r\n stmt.executeUpdate(inserirLinha.toString());\r\n\r\n //Proxima linha do arquivo de cadastros filtrados\r\n linha = file.readLine();\r\n\r\n System.out.println(id + \"-------\");\r\n output.add(id + \"-------\");\r\n\r\n //Incrementa o numero da ficha\r\n id++;\r\n\r\n }//fim while\r\n\r\n /////////////////////////////\r\n MIN_INDICE = MAX_INDICE + 1;\r\n MAX_INDICE += NUM_INDICES;\r\n numArquivos = MAX_INDICE;\r\n\r\n //Proximo arquivo\r\n }//fim while\r\n\r\n output.add(\"Importacao realizada com sucesso!\");\r\n model.put(\"message\", output);\r\n return \"error\";\r\n\r\n } catch (Exception e) {\r\n output.add(\"Excecao1: \" + e.getMessage());\r\n model.put(\"message\", output);\r\n return \"error\";\r\n }\r\n\r\n }",
"@PostConstruct\n private void loadFiles() {\n \n\n File dir = new File(Constants.DIR_PATH);\n File[] files = dir.listFiles(); //stores list of files in given paths\n String line=\"\";\n\n for(File file : files){\n try {\n br = new BufferedReader(new FileReader(file));\n br.readLine();\n while((line=br.readLine())!=null){\n\n String []token=line.split(Constants.DELIMETER);\n String fileName=file.getName().toUpperCase();\n\n FlightData newflight = new FlightData(fileName.substring(0,fileName.lastIndexOf(\".\")),token[0],token[1],token[2],token[3],token[4],token[5],Double.parseDouble(token[6]),token[7],token[8]);\n flightDataDao.insertFlightData(newflight);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }",
"void openImportOrCreate(Context context);",
"public ArrayList<String> Info_Disc_Pel_Compras_usu(String genero, String usuario) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Pel_Rep1(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Peliculas.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3]) & info_disco_compra[0].equals(usuario)) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }",
"private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }",
"public void adminLoad() {\n try {\n File file = new File(adminPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n String data = scanner.nextLine();\n String[]userData = data.split(separator);\n AdminAccounts adminAccounts = new AdminAccounts();\n adminAccounts.setUsername(userData[0]);\n adminAccounts.setPassword(userData[1]);\n users.add(adminAccounts);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\t\t\t\tpublic void notifyOnItemClickIsFile(File f)\n\t\t\t\t{\n\t\t\t\t\tProgressDialog pd= ProgressDialog.show(context,null, \"正在导入中...\",true,false);\n\t\t\t\t\tString importFilePath=f.getPath();\n\t\t\t\t\tboolean isImport=new RegularManager(context).importXMLRegularByPullParser(importFilePath);\n\t\t\t\t\tif(isImport){\n\t\t\t\t\t\tif(regularImportNotify!=null){\n\t\t\t\t\t\t\tregularImportNotify.notifyImportSuccess();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfilesBrowser.obtainShowDialog().hide();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(regularImportNotify!=null){\n\t\t\t\t\t\t\tregularImportNotify.notifyImportFailed();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t pd.dismiss();\n\t\t\t\t}",
"private void readFile() {\r\n\t\tcsvEntrys = new ArrayList<>();\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(filepath)))) {\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tif (!line.contains(\"id\")) {\r\n\t\t\t\t\tcsvEntrys.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n public void importContacts() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"importContacts\");\n }\n\n for (int i = 0; i < contactsForImportation.size(); i++) {\n\n if (contactsForImportation.get(i).getObject1()) {\n ConnectathonParticipant cp = new ConnectathonParticipant();\n ConnectathonParticipantQuery query = new ConnectathonParticipantQuery();\n query.testingSession().eq(TestingSession.getSelectedTestingSession());\n query.email().eq(contactsForImportation.get(i).getObject2().getEmail());\n\n if (query.getCount() == 0) {\n\n try {\n\n cp.setEmail(contactsForImportation.get(i).getObject2().getEmail());\n cp.setFirstname(contactsForImportation.get(i).getObject2().getFirstname());\n cp.setLastname(contactsForImportation.get(i).getObject2().getLastname());\n cp.setMondayMeal(true);\n cp.setTuesdayMeal(true);\n cp.setWednesdayMeal(true);\n cp.setThursdayMeal(true);\n cp.setFridayMeal(true);\n cp.setVegetarianMeal(false);\n cp.setSocialEvent(false);\n cp.setTestingSession(TestingSession.getSelectedTestingSession());\n cp.setInstitution(contactsForImportation.get(i).getObject2().getInstitution());\n cp.setInstitutionName(contactsForImportation.get(i).getObject2().getInstitution().getName());\n\n cp.setConnectathonParticipantStatus(ConnectathonParticipantStatus.getVendorStatus());\n\n entityManager.clear();\n entityManager.persist(cp);\n entityManager.flush();\n\n FacesMessages.instance().add(StatusMessage.Severity.INFO, \"Conact \" + contactsForImportation.get(i).getObject2()\n .getLastname() + \" \" + contactsForImportation.get(i).getObject2().getEmail()\n + \" is imported\");\n renderAddPanel = false;\n getAllConnectathonParticipants();\n\n } catch (Exception e) {\n LOG.warn(USER + contactsForImportation.get(i).getObject2().getEmail()\n + \" is already added - This case case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotImportParticipant\", cp.getFirstname(),\n cp.getLastname(), cp.getEmail());\n\n }\n } else {\n LOG.warn(USER + contactsForImportation.get(i).getObject2().getEmail()\n + \" is already added - This case case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotImportParticipant\",\n contactsForImportation.get(i).getObject2().getFirstname(),\n contactsForImportation.get(i).getObject2().getLastname(),\n contactsForImportation.get(i).getObject2().getEmail());\n }\n }\n }\n\n }",
"public void disabilitaRegolaConDispositivo(String nomeDispositivo) {\n String[] regole = readRuleFromFile().split(\"\\n\");\n for (String s : regole) {\n try {\n ArrayList<String> disps = verificaCompRegola(s);\n\n if (disps.contains(nomeDispositivo)) {\n cambiaAbilitazioneRegola(s,false);\n }\n\n } catch (Exception e) {\n String msg = e.getMessage();\n }\n\n if (s.contains(nomeDispositivo)) {\n cambiaAbilitazioneRegola(s, false);\n }\n }\n }",
"private void importKinds(JTFFile file) {\n for (SimpleData kind : file.getKinds()) {\n if (kindsService.exist(kind)) {\n kind.setId(kindsService.getSimpleData(kind.getName()).getId());\n } else {\n kindsService.create(kind);\n }\n\n file.getFilm().addKind(kind);\n }\n }",
"private void abrirFichero() {\r\n\t\tJFileChooser abrir = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tabrir.setFileFilter(filtro);\r\n\t\tif(abrir.showOpenDialog(abrir) == JFileChooser.APPROVE_OPTION){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.liga = (Liga) Gestion.abrir(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setAbierto(true);\r\n\t\t\t\tGestion.setFichero(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se ha podido abrir el fichero\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void testCambiaImporto() {\n\t\tfloat nuovoImporto = 15.678f;\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\t\n\t\tFondo.cambiaImporto(idFondo, nuovoImporto);\n\t\tfondo = Fondo.visualizzaFondo(idFondo);\n\t\tassertTrue(\"cambiaImporto() non funziona correttamente\", \n\t\t\t\tfondo.getNome().equals(nome) &&\n\t\t\t\tfondo.getImporto() == nuovoImporto &&\n\t\t\t\tfondo.getId_Fondo() == idFondo\n\t\t);\n\t}",
"public void crearConfiguracion (){\n\t\tInputStream streamMenues = FileUtil.getResourceAsStream(\"organizacionMenues.xml\");\r\n\t\tgruposModulos = new ArrayList<GrupoModulos>();\r\n\t\ttry {\r\n\t\t\tif (streamMenues != null){\r\n\t\t\t\tgruposModulos = leerGruposModulos(streamMenues);\t\r\n\t\t\t}\r\n\t\t} catch(XPathExpressionException e) {\r\n\t\t\tManejadorMenues.logger.error(\"Error procesando xml de menues\",e);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif (gruposModulos.isEmpty()){\r\n\t\t\tGrupoModulos gm = new GrupoModulos();\r\n\t\t\tgm.setNombre(\"Módulos\");\r\n\t\t\tgm.setEsDefault(true);\r\n\t\t\tgruposModulos.add(gm);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n public void importUsers() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"importUsers\");\n }\n\n for (int i = 0; i < usersForImportation.size(); i++) {\n\n if (usersForImportation.get(i).getObject1()) {\n ConnectathonParticipant cp = new ConnectathonParticipant();\n ConnectathonParticipantQuery query = new ConnectathonParticipantQuery();\n query.testingSession().eq(TestingSession.getSelectedTestingSession());\n query.email().eq(usersForImportation.get(i).getObject2().getEmail());\n\n if (query.getCount() == 0) {\n\n try {\n\n cp.setEmail(usersForImportation.get(i).getObject2().getEmail());\n cp.setFirstname(usersForImportation.get(i).getObject2().getFirstname());\n cp.setLastname(usersForImportation.get(i).getObject2().getLastname());\n cp.setMondayMeal(true);\n cp.setTuesdayMeal(true);\n cp.setWednesdayMeal(true);\n cp.setThursdayMeal(true);\n cp.setFridayMeal(true);\n cp.setVegetarianMeal(false);\n cp.setSocialEvent(false);\n cp.setTestingSession(TestingSession.getSelectedTestingSession());\n cp.setInstitution(usersForImportation.get(i).getObject2().getInstitution());\n cp.setInstitutionName(usersForImportation.get(i).getObject2().getInstitution().getName());\n\n if (Role.isUserMonitor(usersForImportation.get(i).getObject2())) {\n cp.setConnectathonParticipantStatus(ConnectathonParticipantStatus.getMonitorStatus());\n\n } else if (Role.isUserVendorAdmin(usersForImportation.get(i).getObject2())\n || Role.isUserVendorUser(usersForImportation.get(i).getObject2())) {\n cp.setConnectathonParticipantStatus(ConnectathonParticipantStatus.getVendorStatus());\n\n } else {\n cp.setConnectathonParticipantStatus(ConnectathonParticipantStatus.getVisitorStatus());\n }\n\n entityManager.clear();\n entityManager.persist(cp);\n entityManager.flush();\n\n FacesMessages.instance().add(StatusMessage.Severity.INFO, USER + usersForImportation.get(i).getObject2().getLastname() + \" \" +\n \"\" + usersForImportation.get(i).getObject2().getEmail()\n + \" is imported\");\n renderAddPanel = false;\n getAllConnectathonParticipants();\n\n } catch (Exception e) {\n LOG.warn(USER + usersForImportation.get(i).getObject2().getEmail()\n + \" is already added - This case case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotImportParticipant\", cp.getFirstname(),\n cp.getLastname(), cp.getEmail());\n\n }\n FinancialCalc.updateInvoiceIfPossible(cp.getInstitution(), cp.getTestingSession(), entityManager);\n } else {\n LOG.warn(USER + usersForImportation.get(i).getObject2().getEmail()\n + \" is already added - This case case should not occur...\");\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.connectaton.participants.CannotImportParticipant\",\n usersForImportation.get(i).getObject2().getFirstname(),\n usersForImportation.get(i).getObject2().getLastname(),\n usersForImportation.get(i).getObject2().getEmail());\n }\n }\n\n }\n }",
"public void readFromServiceFile()\r\n {\r\n try(ObjectInputStream fromServiceFile = \r\n new ObjectInputStream(new FileInputStream(\"listfiles/servicelist.dta\")))\r\n {\r\n serviceList = (ServiceList) fromServiceFile.readObject();\r\n }\r\n catch(ClassNotFoundException cnfe)\r\n {\r\n serviceList = new ServiceList();\r\n JOptionPane.showMessageDialog(null, \"Fant ikke definisjon av service\"\r\n + \" objektene.\\nOppretter nytt \"\r\n + \"serviceregister.\\n\" + cnfe.getMessage(), \r\n \"Feilmelding\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(FileNotFoundException fnfe)\r\n {\r\n serviceList = new ServiceList();\r\n JOptionPane.showMessageDialog(null, \"Finner ikke angitt fil.\\n\"\r\n + \"Oppretter nytt serviceregister.\\n\" \r\n + fnfe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(IOException ioe)\r\n\t{\r\n serviceList = new ServiceList();\r\n JOptionPane.showMessageDialog(null, \"Fikk ikke lest fra filen.\\n\"\r\n + \"Oppretter nytt serviceregister.\\n\"\r\n + ioe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n }",
"private void importCountries(JTFFile file) {\n for (SimpleData country : file.getCountries()) {\n if (countriesService.exist(country)) {\n country.setId(countriesService.getSimpleData(country.getName()).getId());\n } else {\n countriesService.create(country);\n }\n }\n }",
"boolean getImported();",
"public java.lang.String getImporte() {\n return importe;\n }",
"public void getOldFile() throws FileNotFoundException, IOException, ClassNotFoundException{\r\n\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(\"agenda.txt\"));\r\n\t\tArrayList<Artist> inputArtists = (ArrayList<Artist>) ois.readObject();\r\n\t\tArrayList<Stage> inputStages = (ArrayList<Stage>) ois.readObject();\r\n\t\tArrayList<Performance> inputPerformances = (ArrayList<Performance>) ois.readObject();\r\n\t\tartists.addAll(inputArtists);\r\n\t\tstages.addAll(inputStages);\r\n\t\tperformances.addAll(inputPerformances);\r\n\t}",
"public void KvtTartListFrissit( String sKonyvtar)\r\n {\n File cAktKvt = null ;\r\n Object aKvtTartalma[] = null ;\r\n\r\n//System.out.println( \"JFileValasztDlg.KvtTartListFrissit( \" + sKonyvtar + \")\") ;\r\n\r\n// cAktKvt = new File( \".\") ;\r\n// cAktKvt = new File( \"/home/tamas/java/Polar/hrmfiles\") ;\r\n cAktKvt = new File( sKonyvtar) ;\r\n\r\n//System.out.println( \"JFileValasztDlg.KvtTartListFrissit cAktKvt = new File() utan\") ;\r\n\r\n // Az aktualis konyvtar teljes utvonalanak beirasa\r\n// Itt nyeli le a vegerol a \\-t vagy /-t :\r\n// m_jKonyvtarTxtFld.setText( cAktKvt.getAbsolutePath()) ; // getAbsolutePath()\r\n m_jKonyvtarTxtFld.setText( sKonyvtar) ;\r\n\r\n//System.out.println( \"JFileValasztDlg.KvtTartListFrissit m_jKonyvtarTxtFld.setText( cAktKvt.getAbsolutePath()) utan\") ;\r\n if ( cAktKvt != null && cAktKvt.isDirectory() == true )\r\n {\r\n aKvtTartalma = HRMFileSzuro( cAktKvt) ;\r\n//System.out.println( \"JFileValasztDlg.KvtTartListFrissit() : HRMFileSzuro() utan\") ;\r\n\r\n if ( aKvtTartalma != null )\r\n {\r\n/*\r\nfor ( int i=0 ; i < aKvtTartalma.length ; i++ )\r\n{\r\nSystem.out.println( \"JFileValasztDlg.KvtTartListFrissit() : cKvtrkFileok[\" + i + \"]=\" + aKvtTartalma[i].toString()) ;\r\n}\r\n*/\r\n m_jKvtTartList.setListData( aKvtTartalma) ;\r\n//System.out.println( \"JFileValasztDlg.KvtTartListFrissit() : .setListData() utan\") ;\r\n\r\n // Itt mar valoszinu, hogy a ListBox a konyvtar file-jait tartalmazza +++\r\n SetAktKonyvtar( sKonyvtar) ;\r\n\r\n m_jKvtTartList.setSelectedIndex( 0) ;\r\n \r\n//System.out.println( \"JFileValasztDlg.KvtTartListFrissit() : SetAktKonyvtar() utan\") ;\r\n//System.out.println( \"JFileValasztDlg.KvtTartListFrissit() : setListData\") ;\r\n/*\r\n for ( nIdx = 0 ; nIdx < aKvtTartalma.length ; nIdx++ )\r\n {\r\n m_jKvtTartList.setListData( aKvtTartalma) ;\r\n }\r\n*/\r\n }\r\n }\r\n }",
"public void buscarModificadosDespues(String fecha,File donde) throws ParseException\r\n\t{\n\t\tthis.donde=donde;\r\n\t\tFile f;\r\n\t\tif(!this.donde.isDirectory())\r\n\t\t\treturn;\r\n\t\tFile[]lista=this.donde.listFiles();\r\n\t\tfor(int i=0;i<lista.length;i++)\r\n\t\t{\r\n\t\t\tif(lista[i].isDirectory())\r\n\t\t\t{\r\n\t\t\t\tf=new File(lista[i].getAbsolutePath());\r\n\t\t\t\tbuscarModificadosDespues(fecha,f);\r\n\t\t\t}\r\n\t\t\tlong l;\r\n\t\t\tSimpleDateFormat formato = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\t\t\tDate d=formato.parse(fecha);\r\n\t\t\tl=d.getTime();\r\n\t\t\tif(lista[i].lastModified()>=l)\r\n\t\t\t{\r\n\t\t\t\tencontrados.add(lista[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void caricaRegistrazione() {\n\t\tfor(MovimentoEP movimentoEP : primaNota.getListaMovimentiEP()){\n\t\t\t\n\t\t\tif(movimentoEP.getRegistrazioneMovFin() == null) { //caso di prime note libere.\n\t\t\t\tthrow new BusinessException(ErroreCore.OPERAZIONE_NON_CONSENTITA.getErrore(\"La prima nota non e' associata ad una registrazione.\"));\n\t\t\t}\n\t\t\t\n\t\t\tthis.registrazioneMovFinDiPartenza = registrazioneMovFinDad.findRegistrazioneMovFinById(movimentoEP.getRegistrazioneMovFin().getUid());\n\t\t\t\n\t\t}\n\t\t\n\t\tif(this.registrazioneMovFinDiPartenza.getMovimento() == null){\n\t\t\tthrow new BusinessException(\"Movimento non caricato.\");\n\t\t}\n\t\t\n\t}",
"public void OuvrirAgd() {\n //on charge l'agenda à partir d'un fichier en lecture\n try {\n File agd_a_lire = new File(\"C:\\\\Projet_Agenda_ING3\\\\saved_agendas\");\n Scanner sc = new Scanner(agd_a_lire);\n\n //on lit le fichier ligne par ligne\n /*while (sc.) {\n\n }*/\n\n sc.close();\n } catch (Exception e) {\n System.out.print(\"Erreur d'ouverture du fichier en lecture\\n\");\n }\n }",
"public List<Cuenta> leerArchivoToList(InputStream archivo);",
"void suplantarIdUsuer(String nombre) throws Exception {\n\t\tLibro[] librosPres = new Libro[Const.MAXLIBROSPRES];\n\t\tint bpn = busquedaPrimerNulo();\n\t\tUsuario[] vu = ArrayObject.listadoUsuarios();\n\n\t\tMiObjectInputStream oi = null;\n\n\t\ttry { // comprueba que el archivo FUSUARIOS existe antes de leerlo\n\t\t\toi = new MiObjectInputStream(new FileInputStream(Const.FUSUARIOS));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Archivo no encontrado - suplantarIdUsuer - \" + e.toString());\n\t\t}\n\n\t\t// busca donde se encuentra el primer usuario null del archivo para crear un\n\t\t// usuario nuevo en ese mismo lugar para obtener un id ordenado. Del mismo modo\n\t\t// la primera vez que esto se ustiliza llena el archivode usuarios de nulos pero\n\t\t// no elimna los usuarios que se encuentran por debajo\n\t\tUsuario u = (Usuario) oi.readObject();\n\t\tu = new Usuario(bpn, nombre, librosPres);\n\t\tvu[bpn] = u;\n\n\t\ttry {\n\t\t\tFileOutputStream fo = new FileOutputStream(Const.FUSUARIOSAUX, true);\n\t\t\tMiObjectOutputStream oo = new MiObjectOutputStream(fo);\n\t\t\tint i = 0;\n\t\t\twhile (i < vu.length) {\n\t\t\t\tu = vu[i];\n\t\t\t\too.writeObject(u);\n\t\t\t\ti++;\n\t\t\t} // finaliza el while para la lectura\n\t\t\too.close();\n\n\t\t} catch (Exception e) { // encaso de encontrar el archivos pero no puede leerlo\n\t\t\tSystem.out.println(\"Problemas al leer el archivo - suplantarIdUsuer - \" + e.toString());\n\t\t}\n\t\toi.close();\n\t}",
"public ArrayList<String> ModifBaseDescriptif(String nameWord){\n \n String uriWord = rootImportFiles + nameWord;\n String idActuel = null;\n Boolean erreur = false;\n int countUnderscore = 0;\n int countRows = 0;\n ArrayList<ArrayList<String>> docListe = new ArrayList<ArrayList<String>> (); //Création d'un format indicé\n ArrayList<String> returnListe = new ArrayList<String> ();\n returnListe.add(\"\");\n \n try {\n //Importer le word\n FileInputStream fis = new FileInputStream(uriWord);\n XWPFDocument doc = new XWPFDocument(OPCPackage.open(fis));\n List<XWPFTable> table = doc.getTables(); //on extrait tous les tableaux \n \n //Extraction des informations dans un format rigoureux et indicé\n for (XWPFTable xwpfTable : table) { \n //On se trouve dans un tableau particulier. On en extrait les lignes\n countRows = 0;\n String chaineDescription = \"\";\n String chaineParagraph = \"\";\n String runStyle = \"\";\n String testingRunStyle = \"\";\n Boolean first = true;\n ArrayList<String> tableau = new ArrayList<String>();\n List<XWPFTableRow> row = xwpfTable.getRows(); \n for (XWPFTableRow xwpfTableRow : row) { \n List<XWPFTableCell> cell = xwpfTableRow.getTableCells();\n //on extrait les cellules (même si on en a qu'une par ligne)\n for (XWPFTableCell xwpfTableCell : cell) { \n if(xwpfTableCell!=null) { \n if(countRows != 4){ //on est pas dans une description, pas besoin de traiter les styles\n tableau.add(xwpfTableCell.getText());\n }\n else{\n //on est dans une description. On extrait les styles\n for (XWPFParagraph paragraph : xwpfTableCell.getParagraphs()) {\n \n chaineParagraph = \"\";\n runStyle = \"\";\n \n first = true;\n for (XWPFRun run : paragraph.getRuns()) { //on extrait les runs\n \n testingRunStyle = \"normal\";\n \n //on test les textures\n if(!run.isBold() && run.getUnderline().toString().equals(\"SINGLE\") && !run.isItalic())\n testingRunStyle = \"u\";\n if(!run.isBold() && run.getUnderline().toString().equals(\"DASH\") && !run.isItalic())\n testingRunStyle = \"underlinedash\";\n if(!run.isBold() && run.getUnderline().toString().equals(\"NONE\") && run.isItalic())\n testingRunStyle = \"i\";\n if(!run.isBold() && run.getUnderline().toString().equals(\"SINGLE\") && run.isItalic())\n testingRunStyle = \"italic_underline\";\n if(run.isBold() && run.getUnderline().toString().equals(\"NONE\") && !run.isItalic())\n testingRunStyle = \"b\";\n if(run.isBold() && run.getUnderline().toString().equals(\"SINGLE\") && !run.isItalic())\n testingRunStyle = \"bold_underline\";\n if(run.isBold() && run.getUnderline().toString().equals(\"NONE\") && run.isItalic())\n testingRunStyle = \"bold_italic\";\n if(run.isBold() && run.getUnderline().toString().equals(\"SINGLE\") && run.isItalic())\n testingRunStyle = \"bold_underline_italic\";\n \n //on test les couleurs\n if(\"FF0000\".equals(run.getColor()))\n testingRunStyle = \"colorred\";\n if(\"E36C0A\".equals(run.getColor()))\n testingRunStyle = \"colororange\";\n if(\"00B050\".equals(run.getColor()))\n testingRunStyle = \"colorgreen\";\n if(\"0070C0\".equals(run.getColor()))\n testingRunStyle = \"colorblue\";\n \n //on test les surlignages\n if(\"yellow\".equals(run.getTextHightlightColor().toString()))\n testingRunStyle = \"highlightyellow\";\n if(\"cyan\".equals(run.getTextHightlightColor().toString()))\n testingRunStyle = \"highlightcyan\";\n if(\"red\".equals(run.getTextHightlightColor().toString()))\n testingRunStyle = \"highlightred\";\n if(\"green\".equals(run.getTextHightlightColor().toString()))\n testingRunStyle = \"highlightgreen\";\n if(\"magenta\".equals(run.getTextHightlightColor().toString()))\n testingRunStyle = \"highlightmagenta\";\n if(\"lightGray\".equals(run.getTextHightlightColor().toString()))\n testingRunStyle = \"highlightgrey\";\n\n \n //si le style est différent de celui d'avant, on ferme le style d'avant et on ouvre le suivant\n if(!runStyle.equals(testingRunStyle)){\n //s'il y avait un style avant, on le ferme\n if(!first)\n chaineParagraph += \"</\"+runStyle+\">\";\n \n chaineParagraph += \"<\"+testingRunStyle+\">\"; //on ouvre la nouvelle balise de style\n chaineParagraph += run.text();\n runStyle = testingRunStyle;\n }\n else{\n chaineParagraph+= run.text();\n }\n first = false;\n } \n if(!\"\".equals(runStyle))\n chaineParagraph += \"</\"+runStyle+\">\"; //on ferme la dernière balise\n \n if(\"bullet\".equals(paragraph.getNumFmt())){\n chaineDescription += \"<li>\"+chaineParagraph+\"</li>\"; //verif si fermante\n }\n else{ \n chaineDescription += \"<p>\"+chaineParagraph+\"</p>\";\n }\n //chaineDescription += chaineParagraph;\n }\n \n tableau.add(chaineDescription); \n }\n }\n }\n countRows++;\n }\n docListe.add(tableau);\n \n } \n } catch(IOException | InvalidFormatException ex) {\n erreur = true;\n returnListe.set(0, \"Erreur système: l'API POI ne parvient pas à extraire les données\");\n }\n \n //si on a réussi à extraire les données du word, on peut démarrer l'exploitation des données\n if(!erreur){\n //on parcourt la liste des objets\n for(int i = 0; i < docListe.size(); i++){\n //on extrait l'identifiant et on déduit le type d'objet\n idActuel = docListe.get(i).get(0);\n //on compte le nombre de \"_\" dans l'ID\n countUnderscore = 0;\n for (int j = 0; j < idActuel.length(); j++) {\n if (idActuel.charAt(j) == '_') \n countUnderscore++;\n }\n\n JpaUtil.creerContextePersistance();\n try {\n if(countUnderscore < 4){\n if(docListe.get(i).get(1).equals(\"SUPPR\")){ //on traite les suppressions\n //on ajoute à la liste de sortie les idnetifiant à supprimer\n returnListe.add(idActuel);\n }\n else{ //on procède à l'insertion d'un \"titre\" dans la BD\n switch(countUnderscore){\n case 0: //on importe un chapitre en BD\n Chapitre chapitre = null;\n chapitre = chapitreDao.ChercherParId(idActuel);\n JpaUtil.ouvrirTransaction();\n if(chapitre == null){ //on crée le chapitre\n chapitre = new Chapitre(idActuel, docListe.get(i).get(1));\n chapitreDao.Creer(chapitre);\n }\n else{ //on modifie l'intitule du chapitre\n chapitre.setIntituleChapitre(docListe.get(i).get(1));\n chapitreDao.Update(chapitre);\n } \n JpaUtil.validerTransaction();\n break;\n case 1: //on importe une categorie en BD\n Categorie categorie = null;\n categorie = categorieDao.ChercherParId(idActuel); //idActuel est l'identifiant de l'objet que l'on traite\n JpaUtil.ouvrirTransaction();\n if(categorie == null){ //on crée la categorie\n categorie = new Categorie(idActuel, docListe.get(i).get(1));\n categorieDao.Creer(categorie); \n //on va chercher le chapitre parent pour update listeCategorie\n Chapitre chapitreParent = chapitreDao.ChercherParId(idActuel.substring(0, idActuel.lastIndexOf('_'))); //on prend idActuel et on retire le dernier _ et ce qu'il y a derrière\n List<Categorie> listeCategorie = chapitreParent.getListCategorie();\n listeCategorie.add(categorie);\n chapitreParent.setListCategorie(listeCategorie);\n chapitreDao.Update(chapitreParent);\n } else { //on modifie l'initule de la categorie\n categorie.setIntituleCategorie(docListe.get(i).get(1));\n categorieDao.Update(categorie);\n } \n JpaUtil.validerTransaction();\n break; \n\n case 2: //on importe une categorie en BD\n Famille famille = null;\n famille = familleDao.ChercherParId(idActuel);\n JpaUtil.ouvrirTransaction();\n if(famille == null){ //on crée la famille\n famille = new Famille(idActuel, docListe.get(i).get(1));\n familleDao.Creer(famille);\n //on va chercher la categorie parent pour update listeFamille\n Categorie categorieParent = categorieDao.ChercherParId(idActuel.substring(0, idActuel.lastIndexOf('_'))); //on prend idActuel et on retire le dernier _ et ce qu'il y a derrière\n List<Famille> listeFamille = categorieParent.getListeFamille();\n listeFamille.add(famille);\n categorieParent.setListeFamille(listeFamille);\n categorieDao.Update(categorieParent);\n }\n else{ //on modifie l'intitule de la famille\n famille.setIntituleFamille(docListe.get(i).get(1));\n familleDao.Update(famille);\n } \n JpaUtil.validerTransaction();\n break; \n case 3: //on importe une sousFamille en BD\n SousFamille sousFamille = null;\n sousFamille = sousFamilleDao.ChercherParId(idActuel);\n JpaUtil.ouvrirTransaction();\n if(sousFamille == null){ //on crée la sousFamille\n sousFamille = new SousFamille(idActuel, docListe.get(i).get(1));\n sousFamilleDao.Creer(sousFamille);\n //on va chercher la famille parent pour update listeSousFamille\n Famille familleParent = familleDao.ChercherParId(idActuel.substring(0, idActuel.lastIndexOf('_'))); //on prend idActuel et on retire le dernier _ et ce qu'il y a derrière\n List<SousFamille> listeSousFamille = familleParent.getListSousFamille();\n listeSousFamille.add(sousFamille);\n familleParent.setListSousFamille(listeSousFamille);\n familleDao.Update(familleParent);\n }\n else{ //on modifie l'intitule de la sousFamille\n sousFamille.setIntituleSousFamille(docListe.get(i).get(1));\n sousFamilleDao.Update(sousFamille);\n } \n JpaUtil.validerTransaction();\n break;\n }\n }\n }\n //on procède au traitement d'un descriptif\n else{\n //on traite les ajouts\n if(docListe.get(i).get(1).equals(\"AJOUT\")){\n switch(docListe.get(i).get(2)){\n case \"OUVRAGE\":\n Ouvrage ouvrage = null;\n ouvrage = (Ouvrage) descriptifDao.ChercherParId(idActuel);\n JpaUtil.ouvrirTransaction();\n if(ouvrage == null){ //on crée le chapitre\n ouvrage = new Ouvrage(idActuel, docListe.get(i).get(3), docListe.get(i).get(4), docListe.get(i).get(5), docListe.get(i).get(6));\n descriptifDao.Creer(ouvrage);\n //on va chercher la sousFamille parent pour update listeDescriptif\n SousFamille sousFamilleParent = sousFamilleDao.ChercherParId(idActuel.substring(0, idActuel.lastIndexOf('_'))); //on prend idActuel et on retire le dernier _ et ce qu'il y a derrière\n List<Descriptif> listeDescriptif = sousFamilleParent.getListDescriptif();\n listeDescriptif.add(ouvrage);\n sousFamilleParent.setListDescriptif(listeDescriptif);\n sousFamilleDao.Update(sousFamilleParent);\n }\n else{ //on modifie le titre du chapitre\n ouvrage.setNomDescriptif(docListe.get(i).get(3));\n ouvrage.setDescription(docListe.get(i).get(4));\n ouvrage.setCourteDescription(docListe.get(i).get(5));\n descriptifDao.Update(ouvrage);\n } \n JpaUtil.validerTransaction();\n break;\n case \"GENERIQUE\":\n Generique generique = null;\n generique = (Generique) descriptifDao.ChercherParId(idActuel);\n JpaUtil.ouvrirTransaction();\n if(generique == null){ //on crée le chapitre\n generique = new Generique(idActuel, docListe.get(i).get(3), docListe.get(i).get(4), docListe.get(i).get(5));\n descriptifDao.Creer(generique);\n //on va chercher la sousFamille parent pour update listeDescriptif\n SousFamille sousFamilleParent2 = sousFamilleDao.ChercherParId(idActuel.substring(0, idActuel.lastIndexOf('_'))); //on prend idActuel et on retire le dernier _ et ce qu'il y a derrière\n List<Descriptif> listeDescriptif2 = sousFamilleParent2.getListDescriptif();\n listeDescriptif2.add(generique);\n sousFamilleParent2.setListDescriptif(listeDescriptif2);\n sousFamilleDao.Update(sousFamilleParent2);\n }\n else{ //on modifie le titre du chapitre\n generique.setNomDescriptif(docListe.get(i).get(3));\n generique.setDescription(docListe.get(i).get(4));\n generique.setCourteDescription(docListe.get(i).get(5));\n descriptifDao.Update(generique);\n } \n JpaUtil.validerTransaction();\n break; \n case \"PRESTATION\": \n Prestation prestation = null;\n prestation = prestationDao.ChercherParId(idActuel);\n JpaUtil.ouvrirTransaction();\n if(prestation == null){ //on crée la prestation\n prestation = new Prestation(idActuel, docListe.get(i).get(3), docListe.get(i).get(4), docListe.get(i).get(5), docListe.get(i).get(6));\n prestationDao.Creer(prestation);\n //on va chercher l'ouvrage parent pour update listeprestation\n Ouvrage ouvrageParent = (Ouvrage) descriptifDao.ChercherParId(idActuel.substring(0, idActuel.lastIndexOf('_'))); //on prend idActuel et on retire le dernier _ et ce qu'il y a derrière\n List<Prestation> listePrestation = ouvrageParent.getListePrestation();\n listePrestation.add(prestation);\n ouvrageParent.setListePrestation(listePrestation);\n descriptifDao.Update(ouvrageParent);\n }\n else{ //on modifie le titre de la prestation\n prestation.setNomDescriptif(docListe.get(i).get(3));\n prestation.setDescription(docListe.get(i).get(4));\n prestation.setCourteDescription(docListe.get(i).get(5));\n prestationDao.Update(prestation);\n } \n JpaUtil.validerTransaction();\n break;\n }\n }\n //on traite les suppressions\n else{\n //on ajoute à la liste de sortie les idnetifiant à supprimer\n returnListe.add(idActuel);\n }\n } \n } catch(Exception ex){\n returnListe.set(0, \"Problème d'insertion dans la base de donnée (problème de format?). ID: \"+idActuel);\n erreur = true;\n } finally {\n JpaUtil.fermerContextePersistance(); \n }\n }\n }\n \n if(!erreur){\n returnListe.set(0, \"Succes\");\n }\n \n return returnListe;\n }",
"public static void load() {\r\n\t\ttransList = new ArrayList<Transaction>();\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"loading all trans...\");\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"src/transaction.csv\"));\r\n\t\t\treader.readLine();\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tString item[] = line.split(\",\");\r\n\t\t\t\tString type = item[0];\r\n\t\t\t\tint acc = Integer.parseInt(item[1]);\r\n\t\t\t\tdouble amount = Double.parseDouble(item[2]);\r\n\t\t\t\tint year = Integer.parseInt(item[3]);\r\n\t\t\t\tint month = Integer.parseInt(item[4]);\r\n\t\t\t\tint date = Integer.parseInt(item[5]);\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\tcal.set(year, month - 1, date);\r\n\t\t\t\tif (type.charAt(0) == 'w') {\r\n\t\t\t\t\tWithdrawal trans = new Withdrawal(acc, amount, cal);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t} else if (type.charAt(0) == 'd') {\r\n\t\t\t\t\tboolean cleared = Boolean.parseBoolean(item[6]);\r\n\t\t\t\t\tDeposit trans = new Deposit(acc, amount, cal, cleared);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t\tSystem.out.println(\"loading finished\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void importType(JTFFile file) {\n if (file.getType() != null) {\n if (typesService.exist(file.getType())) {\n file.getType().setId(typesService.getSimpleData(file.getType().getName()).getId());\n } else {\n typesService.create(file.getType());\n }\n\n file.getFilm().setTheType(file.getType());\n }\n }",
"public ArrayList<String> Info_Disc_Pel_Compras(String genero) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Pel_Rep4(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Peliculas.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3])) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }",
"public void limpiar() {\n\t\taut_empleado.limpiar();\n\t\tutilitario.addUpdate(\"aut_empleado\");// limpia y refresca el autocompletar\n\n\n\t}",
"public void DesSerializar() throws FileNotFoundException {\n try {\n FileInputStream archivo = new FileInputStream(\"SerializacionEdificios\");\n ObjectInputStream entrada = new ObjectInputStream(archivo);\n ArrayList<Edificio> edificiosDes = (ArrayList<Edificio>) entrada.readObject();\n archivo = new FileInputStream(\"SerializacionEstudiantes\");\n entrada = new ObjectInputStream(archivo);\n ArrayList<Estudiante> estudiantesDes = (ArrayList<Estudiante>) entrada.readObject();\n archivo = new FileInputStream(\"SerializacionProfesores\");\n entrada = new ObjectInputStream(archivo);\n ArrayList<Profesor> profesoresDes = (ArrayList<Profesor>) entrada.readObject();\n archivo = new FileInputStream(\"SerializacionAdministradores\");\n entrada = new ObjectInputStream(archivo);\n ArrayList<Administrador> administradoresDes = (ArrayList<Administrador>) entrada.readObject();\n edificios = edificiosDes;\n estudiantes = estudiantesDes;\n profesores = profesoresDes;\n administradores = administradoresDes;\n entrada.close();\n }\n catch (IOException e){\n e.printStackTrace();\n }\n catch (ClassNotFoundException e){\n e.printStackTrace();\n }\n\n\n }",
"protected void refreshFromImports() {\r\n\t\t\t\t\r\n\t\tList<?> elements = collectItemsFromImports();\t\t\t\t\r\n\t\t\t\t\r\n\t\tif (fFilteredList != null) {\r\n\t\t\tfFilteredList.setAllowDuplicates(showDuplicates);\r\n\t\t\tfFilteredList.setElements( contentProvider.getElements(elements) );\r\n\t\t\tfFilteredList.setEnabled(true);\t\t\r\n\t\t}\t\t\t\t\r\n\t}"
] | [
"0.66127545",
"0.6548677",
"0.6220075",
"0.6037887",
"0.5905319",
"0.5856653",
"0.5837308",
"0.5834578",
"0.5823031",
"0.5801626",
"0.5750402",
"0.5750053",
"0.5744747",
"0.5728859",
"0.5684054",
"0.566164",
"0.5635059",
"0.5585029",
"0.5539552",
"0.5532078",
"0.5502447",
"0.5487777",
"0.54534227",
"0.54245895",
"0.5422461",
"0.53968024",
"0.53939176",
"0.5388487",
"0.53806525",
"0.53657925",
"0.5364419",
"0.5357",
"0.534926",
"0.5338314",
"0.5333403",
"0.5330411",
"0.53223544",
"0.53210485",
"0.5308746",
"0.52962255",
"0.52872604",
"0.52872604",
"0.5273079",
"0.527132",
"0.526976",
"0.5251579",
"0.5251435",
"0.52437687",
"0.52395",
"0.5237066",
"0.5227837",
"0.5226212",
"0.5225266",
"0.5220344",
"0.5205331",
"0.52027524",
"0.5199483",
"0.5191303",
"0.51862675",
"0.5181638",
"0.5177875",
"0.5172788",
"0.5167003",
"0.51648724",
"0.51627487",
"0.51620543",
"0.5159032",
"0.5141963",
"0.5140761",
"0.51223767",
"0.5117974",
"0.5112699",
"0.5106402",
"0.5105815",
"0.5093382",
"0.509067",
"0.5087847",
"0.50874794",
"0.5087085",
"0.50833493",
"0.5077692",
"0.5073307",
"0.5071991",
"0.50607556",
"0.50559336",
"0.5052382",
"0.504495",
"0.50411296",
"0.5035148",
"0.5033255",
"0.50316185",
"0.5029404",
"0.5026896",
"0.5021015",
"0.502022",
"0.501286",
"0.5006668",
"0.5004371",
"0.50002563",
"0.49989837"
] | 0.75710064 | 0 |
Permette di cambiare l'abilitazione della regola specificata | public void cambiaAbilitazioneRegola(String target, boolean abil) {
String[] letto = readRuleFromFile().split("\n");
for (int i = 0; i < letto.length; i++) {
if (letto[i].equals(target)) {
if (abil) {
if (letto[i].startsWith("DISABLED --> "))
letto[i] = letto[i].replace("DISABLED --> ", "ENABLED --> ");
} else {
if (letto[i].startsWith("ENABLED --> "))
letto[i] = letto[i].replace("ENABLED --> ", "DISABLED --> ");
}
break;
}
}
String regoleModificate = "";
for (int i = 0; i < letto.length - 1; i++) {
regoleModificate += letto[i] + "\n";
}
regoleModificate += letto[letto.length - 1];
writeRuleToFile(regoleModificate, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final void habilitarcampos(boolean valor){\n TXT_CodCliente.setEnabled(valor);\n TXT_Aparelho.setEnabled(valor);\n TXT_Valor.setEnabled(valor);\n TXT_Informacao.setEnabled(valor); \n TXT_CodServico.setEnabled(valor); \n TXT_Clientes.setEnabled(valor); \n TXT_Serial.setEnabled(valor);\n TXT_Data.setEnabled(valor);\n}",
"private void enableBotonAceptar()\r\n\t{\r\n\t\t\r\n\t}",
"void enableMod();",
"public void coMina(){\n espM=true;\r\n }",
"boolean isCameraBurstPref();",
"int setCanStatus(int canRegno, int action);",
"public void caminar(){\n if(this.robot.getOrden() == true){\n System.out.println(\"Ya tengo la orden, caminare a la cocina para empezar a prepararla.\");\n this.robot.asignarEstadoActual(this.robot.getEstadoCaminar());\n }\n }",
"private int[] enquadramentoViolacaoCamadaFisica(int[] quadro) throws Exception {\n System.out.println(\"\\n\\t[Violacao da Camada Fisica]\");\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\t[Violacao da Camada Fisica]\");\n Thread.sleep(velocidade);\n\n final int byteFlag = 255;//00000000 00000000 00000000 11111111\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\t[Bits de Flag [11111111] = 255]\\n\\n\");\n Thread.sleep(velocidade);\n\n String auxiliar = \"\";\n Boolean SE = true;\n\n for (int inteiro : quadro) {\n int quantidadeByte = ManipuladorDeBit.quantidadeDeBytes(inteiro);\n ManipuladorDeBit.imprimirBits(inteiro);\n inteiro = ManipuladorDeBit.deslocarBits(inteiro);\n ManipuladorDeBit.imprimirBits(inteiro);\n int inteiroByte = ManipuladorDeBit.getPrimeiroByte(inteiro);\n\n if (inteiroByte == byteFlag) {//Inicio do Quadro\n SE = !SE;//Iniciar a Busca pelo Byte de Fim de Quadro\n inteiro <<= 8;//Deslocando 8 bits para a esquerda\n quantidadeByte--;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\tIC [\" + inteiroByte + \"] \");\n }\n\n if (!SE) {\n\n ManipuladorDeBit.imprimirBits(inteiro);\n\n for (int i=1; i<=quantidadeByte; i++) {\n int dado = ManipuladorDeBit.getPrimeiroByte(inteiro);\n ManipuladorDeBit.imprimirBits(dado);\n\n if (dado == byteFlag) {//Verificando se encontrou o Byte de Flag\n SE = !SE;//Encontrou o Byte de Fim de Quadro\n } else {\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"Carga Util [ \");\n\n int novoQuadro = 0;\n\n Boolean cincoBits1 = ManipuladorDeBit.cincoBitsSequenciais(dado,1);\n if (cincoBits1) {\n\n dado = ManipuladorDeBit.deslocarBits(dado);\n ManipuladorDeBit.imprimirBits(dado);\n\n //Cria um inteiro com 1 no bit mais a esquerda e 0s em outros locais\n int displayMask = 1 << 31;//10000000 00000000 00000000 00000000\n //Para cada bit exibe 0 ou 1\n for (int b=1, cont=0; b<=8; b++) {\n //Utiliza displayMask para isolar o bit\n int bit = (dado & displayMask) == 0 ? 0 : 1;\n\n if (cont == 5) {\n cont = 0;//Zerando o contador\n dado <<= 1;//Desloca 1 bit para a esquerda\n bit = (dado & displayMask) == 0 ? 0 : 1;\n }\n\n if (b == 8) {//Quando chegar no Ultimo Bit\n inteiro <<= 8;//Deslocando 8 bits para esquerda\n dado = ManipuladorDeBit.getPrimeiroByte(inteiro);\n dado = ManipuladorDeBit.deslocarBits(dado);\n ManipuladorDeBit.imprimirBits(dado);\n\n novoQuadro <<= 1;//Deslocando 1 bit para a esquerda\n novoQuadro |= ManipuladorDeBit.pegarBitNaPosicao(dado,1);//Adicionando o bit ao novoDado\n\n ManipuladorDeBit.imprimirBits(novoQuadro);\n\n auxiliar += (char) novoQuadro;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(novoQuadro + \" ]\\n\");\n Thread.sleep(velocidade);\n i++;\n\n } else {//Colocando o Bit no novoQuadro\n novoQuadro <<= 1;//Deslocando 1 bit para a esquerda\n novoQuadro |= bit;//Adicionando o bit ao novoDado\n dado <<= 1;//Desloca 1 bit para a esquerda\n }\n\n if (bit == 1) {//Quando for um bit 1\n cont++;\n } else {//Caso vinher um bit 0\n cont = 0;\n }\n }\n\n } else {//Caso nao tem uma sequencia de 5 Bits 1's\n auxiliar += (char) dado;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(dado + \" ]\\n\");\n Thread.sleep(velocidade);\n }\n }\n \n inteiro <<= 8;//Deslocando 8 bits para a esquerda;\n }\n\n }\n }\n\n //Novo Quadro de Carga Util\n int[] quadroDesenquadrado = new int[auxiliar.length()];\n //Adicionando as informacoes de Carga Util no QuadroDesenquadrado\n for (int i=0; i<auxiliar.length(); i++) {\n quadroDesenquadrado[i] = (int) auxiliar.charAt(i);\n ManipuladorDeBit.imprimirBits(quadroDesenquadrado[i]);\n }\n\n return quadroDesenquadrado;\n }",
"public void abilitaRegoleconDispositivo(String nomeDispositivo, ArrayList<Sensore> listaSensori, ArrayList<Attuatore> listaAttuatori) {\n String[] regole = readRuleFromFile().split(\"\\n\");\n\n for (String s : regole) {\n try {\n ArrayList<String> disps = verificaCompRegola(s);\n\n if (disps.contains(nomeDispositivo)) {\n cambiaAbilitazioneRegola(s,false);\n }\n\n } catch (Exception e) {\n String msg = e.getMessage();\n }\n\n if (s.contains(nomeDispositivo) && verificaAbilitazione(s,listaSensori,listaAttuatori)) {\n cambiaAbilitazioneRegola(s, true);\n }\n }\n }",
"public void cambiarVisibilidad(int opcion){\n if(opcion==1){\n vistaInicial.jpCentral.setVisible(true);\n vistaInicial.jpDerecha.setVisible(true);\n vistaInicial.jpCentralGeneral.setVisible(false);\n }else{\n vistaInicial.jpCentral.setVisible(false);\n vistaInicial.jpDerecha.setVisible(false);\n vistaInicial.jpCentralGeneral.setVisible(true);\n }\n }",
"public void habilitabotones() {\n\n\tif (IR.sensmci == true) {\n\t btnmci1.setEnabled(true);\n\t btnmci1.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t //Instancio el panel lecturas (MCI-1) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_1) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 1\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci1.setEnabled(false);\n\n\tif (IR.sensmci2 == true) {\n\t btnmci2.setEnabled(true);\n\t btnmci2.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-2) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_2) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 2\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci2.setEnabled(false);\n\n\tif (IR.sensmci3 == true) {\n\t btnmci3.setEnabled(true);\n\t btnmci3.addMouseListener(new MouseAdapter() {\n\n\t\t\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-3) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_3) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 3\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci3.setEnabled(false);\n\n\tif (IR.sensmci4 == true) {\n\t btnmci4.setEnabled(true);\n\t btnmci4.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-4) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_4) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 4\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci4.setEnabled(false);\n\n\tif (IR.sensbt2 == true) { // Revisar comportamiento y\n\t\t\t\t // necesidad del hiloinfo en bt2\n\n\t btnbt21.setEnabled(true);\n\t btnbt21.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t \n\t\t //Instancio el panel lecturas (BT2-1) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_5) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-1\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t // IR.panelecturasbt2.setActualizar(true);\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasbt2\n\t\t // .setHilomuestrainfo(IR.panelecturasbt2\n\t\t // .getHilomuestrainfo());\n\t\t // IR.panelecturasbt2.hiloinfo = new Thread(\n\t\t // IR.panelecturasbt2.hilomuestrainfo);\n\t\t // IR.panelecturasbt2.hiloinfo.start();\n\n\t\t}\n\t });\n\t} else\n\t btnbt21.setEnabled(false);\n\n\tif (IR.sensbt22 == true) {\n\t btnbt22.setEnabled(true);\n\t btnbt22.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-2) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_6) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-2\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt22.setEnabled(false);\n\n\tif (IR.sensbt23 == true) {\n\t btnbt23.setEnabled(true);\n\t btnbt23.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-3) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_7) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-3\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt23.setEnabled(false);\n\n\tif (IR.sensbt24 == true) {\n\t btnbt24.setEnabled(true);\n\t btnbt24.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-4) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_8){\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\"pulsos\", IR.panelecturasbt2);\n\t\t\tIR.sensores.get(i).addPropertyChangeListener(\"lectura\",\n\t\t\t\tIR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-4\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt24.setEnabled(false);\n\n\tif (IR.hayplacasens) {\n\t btnplaca_sens.setEnabled(true);\n\t btnplaca_sens.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (Sensores) al pulsar el boton.\n\t\t IR.panelecturasens = Panelecturasens.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_SENSORES_0) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasens);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasens);\n\t\t\t \n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasens.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasens);\n\t\t IR.panelecturasens.setVisible(true);\n\t\t}\n\t });\n\t} else\n\t btnplaca_sens.setEnabled(false);\n\n }",
"public void checkCameraLimits()\n {\n //Daca camera ar vrea sa mearga prea in stanga sau prea in dreapta (Analog si pe verticala) ea e oprita (practic cand se intampla acest lucru Itemul asupra caruia se incearca centrarea nu mai e in centrul camerei )\n\n if(xOffset < 0 )\n xOffset = 0;\n else if( xOffset > refLinks.GetMap().getWidth()* Tile.TILE_WIDTH - refLinks.GetWidth())\n xOffset =refLinks.GetMap().getWidth()* Tile.TILE_WIDTH - refLinks.GetWidth();\n if(yOffset<0)\n yOffset = 0;\n if(yOffset > refLinks.GetMap().getHeight()*Tile.TILE_HEIGHT - refLinks.GetHeight())\n {\n yOffset = refLinks.GetMap().getHeight()*Tile.TILE_HEIGHT - refLinks.GetHeight();\n }\n }",
"public void cambiarEstado(){\n\r\n revelado=true;\r\n }",
"public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }",
"void setEmisoraRadioCambio(boolean x){\n this.emisoraRadio = x;\n }",
"public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PODEMOS CREARLOS NOSOTROS TAMBIEN SI NO SE HUBIERAN CREADO AUTOMATICAMENTE\r\n */\r\n \r\n }",
"public int cameraOn() {\r\n System.out.println(\"hw- ligarCamera\");\r\n return serialPort.enviaDados(\"!111O*\");//camera ON \r\n }",
"private void botonFuncional(JButton Boton){\n \n if(!caraUp){\n Boton.setEnabled(false);\n imagen1 =(ImageIcon) Boton.getDisabledIcon();\n v[0] = Boton;\n caraUp = true;\n cara1 = false;\n }\n else {\n Boton.setEnabled(false); \n imagen2 =(ImageIcon) Boton.getDisabledIcon();\n v[1]= Boton;\n cara1 = true;\n ganar();\n }\n }",
"@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"private void habilitar() {\n\n if (i <= 0) {\n jButton4.setEnabled(false);\n } else {\n jButton4.setEnabled(true);\n }\n }",
"private void deshabilitarFuncionalidades()\r\n\t{\r\n\t\t\r\n\t\tthis.lbMantenimientos.setVisible(false);\r\n\t\t\r\n\t\t\r\n\t\tthis.lbAdministracion.setVisible(false);\r\n\t\t\r\n\t\t\r\n\t\tthis.userButton.setVisible(false);\r\n\t\tthis.userButton.setEnabled(false);\r\n\t\t\r\n\t\tthis.gruposButton.setVisible(false);\r\n\t\tthis.gruposButton.setEnabled(false);\r\n\t\t\r\n\t\tthis.impuestoButton.setVisible(false);\r\n\t\tthis.impuestoButton.setEnabled(false);\r\n\t\t\r\n\t\tthis.empresaButton.setVisible(false);\r\n\t\tthis.empresaButton.setEnabled(false);\r\n\t\t\r\n\t\tthis.monedasButton.setVisible(false);\r\n\t\tthis.monedasButton.setEnabled(false);\r\n\t\t\r\n\t\tthis.rubros.setVisible(false);\r\n\t\tthis.rubros.setEnabled(false);\r\n\t\t\r\n\t\tthis.codigosGeneralizados.setVisible(false);\r\n\t\tthis.codigosGeneralizados.setEnabled(false);\r\n\t\t\r\n\t\tthis.documentosButton.setVisible(false);\r\n\t\tthis.documentosButton.setEnabled(false);\r\n\t\t\r\n\t\tthis.clientesButton.setVisible(false);\r\n\t\tthis.clientesButton.setEnabled(false);\r\n\t\t\r\n\t\tthis.funcionariosButton.setVisible(false);\r\n\t\tthis.funcionariosButton.setEnabled(false);\r\n\t\t\r\n\t\tthis.cotizaciones.setVisible(false);\r\n\t\tthis.cotizaciones.setEnabled(false);\r\n\t\t\r\n\t\tthis.tipoRubros.setVisible(false);\r\n\t\tthis.tipoRubros.setEnabled(false);\r\n\t\t\r\n\t\tthis.cuentas.setVisible(false);\r\n\t\tthis.cuentas.setEnabled(false);\r\n\t\t\r\n\t\tthis.bancos.setVisible(false);\r\n\t\tthis.bancos.setEnabled(false);\r\n\t\t\r\n\t\tthis.procesos.setVisible(false);\r\n\t\tthis.procesos.setEnabled(false);\r\n\t\t\r\n\t\tthis.gastos.setVisible(false);\r\n\t\tthis.gastos.setEnabled(false);\r\n\t\t\r\n\t\tthis.ingCobro.setVisible(false);\r\n\t\tthis.ingCobro.setEnabled(false);\r\n\t\t\r\n\t\tthis.ingEgreso.setVisible(false);\r\n\t\tthis.ingEgreso.setEnabled(false);\r\n\t\t\r\n\t\tthis.otroCobro.setVisible(false);\r\n\t\tthis.otroCobro.setEnabled(false);\r\n\t\t\r\n\t\tthis.otroEgreso.setVisible(false);\r\n\t\tthis.otroEgreso.setEnabled(false);\r\n\t\t\r\n\t\tthis.resumenProc.setVisible(false);\r\n\t\tthis.resumenProc.setEnabled(false);\r\n\t\t\r\n\t\tthis.periodo.setVisible(false);\r\n\t\tthis.periodo.setEnabled(false);\r\n\t\t\r\n\t\tthis.deposito.setVisible(false);\r\n\t\tthis.deposito.setEnabled(false);\r\n\t\t\r\n\t\tthis.factura.setVisible(false);\r\n\t\tthis.factura.setEnabled(false);\r\n\t\t\r\n\t\tthis.recibo.setVisible(false);\r\n\t\tthis.recibo.setEnabled(false);\r\n\t\t\r\n\t\tthis.notaCredito.setVisible(false);\r\n\t\tthis.notaCredito.setEnabled(false);\r\n\t\t\r\n\t\tthis.conciliacion.setVisible(false);\r\n\t\tthis.conciliacion.setEnabled(false);\r\n\t\t\r\n\t\tthis.btnRepGastosPendCobro.setVisible(false);\r\n\t\tthis.btnRepGastosPendCobro.setEnabled(false);\r\n\t\t\r\n\t\tthis.btnRepCheque.setVisible(false);\r\n\t\tthis.btnRepCheque.setEnabled(false);\r\n\t\t\r\n\t\tthis.btnCheqADepositar.setVisible(false);\r\n\t\tthis.btnCheqADepositar.setEnabled(false);\r\n\t\t\r\n\t\tthis.btnRepIva.setVisible(false);\r\n\t\tthis.btnRepIva.setEnabled(false);\r\n\t\t\r\n\t\tthis.btnEstadoCuenta.setVisible(false);\r\n\t\tthis.btnEstadoCuenta.setEnabled(false);\r\n\t\t\r\n\t\tthis.btnEstadoCuentaTotales.setVisible(false);\r\n\t\tthis.btnEstadoCuentaTotales.setEnabled(false);\r\n\t\t\r\n\t\tthis.btnMovPorCuenta.setVisible(false);\r\n\t\tthis.btnMovPorCuenta.setEnabled(false);\r\n\t\t\r\n\t\tthis.btnMovPorRubro.setVisible(false);\r\n\t\tthis.btnMovPorRubro.setEnabled(false);\r\n\t\t\r\n\t\tthis.btnMovCaja.setVisible(false);\r\n\t\tthis.btnMovCaja.setEnabled(false);\r\n\t\t\r\n\t\tthis.btnMovBco.setVisible(false);\r\n\t\tthis.btnMovBco.setEnabled(false);\r\n\t\t\r\n\t\t\r\n\t\tthis.btnRepGastosxProceso.setVisible(false);\r\n\t\tthis.btnRepGastosxProceso.setEnabled(false);\r\n\t}",
"public void enableMonsters(){\n enabled = true;\n }",
"public void riconnetti() {\n\t\tconnesso = true;\n\t}",
"public void activeRegraJogadaDupla() {\n this.RegraJogadaDupla = true;\n }",
"public void act() \n {\n if(getY()>=30 && !cambia)\n {\n direccion = -1;\n }\n else\n {\n cambia = true;\n }\n if(getY() <= getWorld().getHeight()-30 && cambia)\n {\n direccion = 1;\n }\n else\n {\n cambia = false;\n }\n \n setLocation(getX(),getY()+(velocidad*direccion));\n reglas();\n ataque();\n \n \n \n }",
"private void selectFieldsToDisplay()\n\t{\n\t\t_X_A0.setEnabled(true);\n\t\t_Y_A0.setEnabled(true);\n\t\tif ( _downStream == ProjectData.CAMS_NO_DOWNSTREAM || \n\t\t _downStream == ProjectData.LEVER_NO_DOWNSTREAM || \n\t\t _downStream == ProjectData.LEVER_PUSHER_TUGS)\n\t\t{\n\t\t\t_X_d.setEnabled(false);\n\t\t\t_Y_d.setEnabled(false);\n\t\t}\n\t\tif ( _camType == ProjectData.ROLLER_SLIDE || \n\t\t\t _downStream != ProjectData.LEVER_FOUR_JOIN)\n\t\t{\n\t\t\t_X_s.setEnabled(false);\n\t\t\t_Y_s.setEnabled(false);\n\t\t}\n\t\t_ro_min.setEnabled(true);\n\t\t_L3.setEnabled(true);\n\t\tif ( _camProfile != ProjectData.LEVER_DOUBLE_CAM &&\n\t\t\t _camProfile != ProjectData.LEVER_BEAD_CAM &&\n\t\t\t _camProfile != ProjectData.SLIDER_DOUBLE_CAM &&\n\t\t\t _camProfile != ProjectData.SLIDER_BEAD_CAM)\n\t\t{\n\t\t\t_L31.setEnabled(false);\n\t\t}\n\t\tif ( _camType == ProjectData.ROLLER_SLIDE ||\n\t\t\t _camType == ProjectData.ROLLER_LEVER && _downStream == ProjectData.LEVER_NO_DOWNSTREAM)\n\t\t{\n\t\t\t_L3p.setEnabled(false);\n\t\t}\n\t\tif ( _downStream == ProjectData.CAMS_NO_DOWNSTREAM || \n\t\t\t _downStream == ProjectData.LEVER_NO_DOWNSTREAM || \n\t\t\t _downStream == ProjectData.LEVER_PUSHER_TUGS)\n\t\t{\n\t\t\t_L4.setEnabled(false);\n\t\t}\n\t\t/*On L5 easier to use opposite logic.*/\n\t\t_L5.setEnabled(false);\n\t\tif ( _camType == ProjectData.ROLLER_SLIDE && _downStream == ProjectData.CAMS_CRANK \n\t\t\t\t||\n\t\t\t _camType == ProjectData.ROLLER_LEVER && _downStream == ProjectData.LEVER_FOUR_JOIN)\n\t\t{\n\t\t\t_L5.setEnabled(true);\n\t\t}\n\t\t_L1.setEnabled(false);\n\t\t_rR.setEnabled(true);\n\t\t_rG.setEnabled(true);\n\t\t/*On ep easier to use opposite logic.*/\n\t\t_ep.setEnabled(false);\n\t\tif ( _camProfile == ProjectData.SLIDER_DOUBLE_CAM )\n\t\t{\n\t\t\t_ep.setEnabled(true);\n\t\t}\n\t\t/*On y easier to use opposite logic.*/\n\t\t_y.setEnabled(false);\n\t\tif ( _camType == ProjectData.ROLLER_SLIDE || _downStream == ProjectData.LEVER_PUSHER_TUGS)\n\t\t{\n\t\t\t_y.setEnabled(true);\n\t\t}\n\t\tif ( _downStream == ProjectData.LEVER_NO_DOWNSTREAM ||\n\t\t\t _downStream == ProjectData.CAMS_CRANK)\n\t\t{\n\t\t\t_delta.setEnabled(false);\n\t\t}\n\t\tif ( _camProfile != ProjectData.LEVER_DOUBLE_CAM &&\n\t\t\t _camProfile != ProjectData.LEVER_BEAD_CAM )\t\n\t\t{\n\t\t\t_gama.setEnabled(false);\n\t\t}\n\t\t_miu_an_min.setEnabled(true);\n\t\t_miu_ab_min.setEnabled(true);\n\t\t_n.setEnabled(true);\n\t}",
"public static void Turno(){\n\t\tif (pl1){\n\t\t\tpl1=false;\n\t\t\tpl2=true;\t\n\t\t\tvalore = 1;\n\t\t}\n\t\telse{\n\t\t\tpl1=true;\n\t\t\tpl2=false;\n\t\t\tvalore = 2;\n\t\t}\n\t}",
"void enableDigital();",
"public void inhabilitaPanel() {\n\t\t// contentPane.setEnabled(false);\n\t\tpanelPrincipal.setEnabled(false);\n\t\tpanelBotones.setEnabled(false);\n\t\tboton1Jugador.setEnabled(false);\n\t\tbotonJuegoRed.setEnabled(false);\n\t\tbotonEditar.setEnabled(false);\n\t\tbotonDemo.setEnabled(false);\n\t\tbotonReglas.setEnabled(false);\n\t\tbotonAyuda.setEnabled(false);\n\t\tbotonRecibir.setEnabled(false);\n\t\tbotonEnviar.setEnabled(false);\n\t\tbotonDescargaSobre.setEnabled(false);\n\t\tbotonSalir.setEnabled(false);\n\t\tlabelFondo.setEnabled(false);\n\t\tlabelDibujo.setEnabled(false);\n\n\t}",
"public void habilitaPanel() {\n\t\t// contentPane.setEnabled(true);\n\t\tpanelPrincipal.setEnabled(true);\n\t\tpanelBotones.setEnabled(true);\n\t\tboton1Jugador.setEnabled(true);\n\t\tbotonJuegoRed.setEnabled(true);\n\t\tbotonEditar.setEnabled(true);\n\t\tbotonDemo.setEnabled(true);\n\t\tbotonReglas.setEnabled(true);\n\t\tbotonAyuda.setEnabled(true);\n\t\tbotonRecibir.setEnabled(true);\n\t\tbotonEnviar.setEnabled(true);\n\t\tbotonDescargaSobre.setEnabled(true);\n\t\tbotonSalir.setEnabled(true);\n\t\tlabelFondo.setEnabled(true);\n\t\tlabelDibujo.setEnabled(true);\n\n\t}",
"private void enableControls(boolean b) {\n\n\t}",
"public void mo8814a(final String str) {\n C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {\n public void run() {\n if (C3720a.this.f12125b == null) {\n return;\n }\n if (str.equalsIgnoreCase(\"ia\")) {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_ia_icon));\n } else if (str.equalsIgnoreCase(\"manual\")) {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_manual_icon));\n } else if (str.equalsIgnoreCase(\"4kphoto\")) {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_4kphoto_icon));\n } else if (str.equalsIgnoreCase(\"slowzoom\")) {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_slow_zoom_icon));\n } else {\n C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(false));\n C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(0));\n }\n }\n });\n }",
"public void vision()\n {\n NIVision.IMAQdxGrab(session, colorFrame, 1);\t\t\t\t\n RETRO_HUE_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro hue min\", RETRO_HUE_RANGE.minValue);\n\t\tRETRO_HUE_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro hue max\", RETRO_HUE_RANGE.maxValue);\n\t\tRETRO_SAT_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro sat min\", RETRO_SAT_RANGE.minValue);\n\t\tRETRO_SAT_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro sat max\", RETRO_SAT_RANGE.maxValue);\n\t\tRETRO_VAL_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro val min\", RETRO_VAL_RANGE.minValue);\n\t\tRETRO_VAL_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro val max\", RETRO_VAL_RANGE.maxValue);\n\t\tAREA_MINIMUM = SmartDashboard.getNumber(\"Area min %\");\n\t\t//MIN_RECT_WIDTH = SmartDashboard.getNumber(\"Min Rect Width\", MIN_RECT_WIDTH);\n\t\t//MAX_RECT_WIDTH = SmartDashboard.getNumber(\"Max Rect Width\", MAX_RECT_WIDTH);\n\t\t//MIN_RECT_HEIGHT = SmartDashboard.getNumber(\"Min Rect Height\", MIN_RECT_HEIGHT);\n\t\t//MAX_RECT_HEIGHT= SmartDashboard.getNumber(\"Max Rect Height\", MAX_RECT_HEIGHT);\n\t\t\n\t\t//SCALE_RANGE.minValue = (int)SmartDashboard.getNumber(\"Scale Range Min\");\n\t\t//SCALE_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Scale Range Max\");\n\t\t//MIN_MATCH_SCORE = (int)SmartDashboard.getNumber(\"Min Match Score\");\n //Look at the color frame for colors that fit the range. Colors that fit the range will be transposed as a 1 to the binary frame.\n\t\t\n\t\tNIVision.imaqColorThreshold(binaryFrame, colorFrame, 255, ColorMode.HSV, RETRO_HUE_RANGE, RETRO_SAT_RANGE, RETRO_VAL_RANGE);\n\t\t//Send the binary image to the cameraserver\n\t\tif(cameraView.getSelected() == BINARY)\n\t\t{\n\t\t\tCameraServer.getInstance().setImage(binaryFrame);\n\t\t}\n\n\t\tcriteria[0] = new NIVision.ParticleFilterCriteria2(NIVision.MeasurementType.MT_AREA_BY_IMAGE_AREA, AREA_MINIMUM, 100.0, 0, 0);\t\t\n\t\t\n NIVision.imaqParticleFilter4(binaryFrame, binaryFrame, criteria, filterOptions, null);\n\n // NIVision.RectangleDescriptor rectangleDescriptor = new NIVision.RectangleDescriptor(MIN_RECT_WIDTH, MAX_RECT_WIDTH, MIN_RECT_HEIGHT, MAX_RECT_HEIGHT);\n// \n// //I don't know\n// NIVision.CurveOptions curveOptions = new NIVision.CurveOptions(NIVision.ExtractionMode.NORMAL_IMAGE, 0, NIVision.EdgeFilterSize.NORMAL, 0, 1, 1, 100, 1,1);\n// NIVision.ShapeDetectionOptions shapeDetectionOptions = new NIVision.ShapeDetectionOptions(1, rectAngleRanges, SCALE_RANGE, MIN_MATCH_SCORE);\n// NIVision.ROI roi = NIVision.imaqCreateROI();\n//\n// NIVision.DetectRectanglesResult result = NIVision.imaqDetectRectangles(binaryFrame, rectangleDescriptor, curveOptions, shapeDetectionOptions, roi);\n// //Dummy rectangle to start\n// \n// NIVision.RectangleMatch bestMatch = new NIVision.RectangleMatch(new PointFloat[]{new PointFloat(0.0, 0.0)}, 0, 0, 0, 0);\n// \n// //Find the best matching rectangle\n// for(NIVision.RectangleMatch match : result.array)\n// {\n// \tif(match.score > bestMatch.score)\n// \t{\n// \t\tbestMatch = match;\n// \t}\n// }\n// SmartDashboard.putNumber(\"Rect height\", bestMatch.height);\n// SmartDashboard.putNumber(\"Rect Width\", bestMatch.width);\n// SmartDashboard.putNumber(\"Rect rotation\", bestMatch.rotation);\n// SmartDashboard.putNumber(\"Rect Score\", bestMatch.score);\n \n //Report how many particles there are\n\t\tint numParticles = NIVision.imaqCountParticles(binaryFrame, 1);\n\t\tSmartDashboard.putNumber(\"Masked particles\", numParticles);\n\t\t\n \n\t\tif(numParticles > 0)\n\t\t{\n\t\t\t//Measure particles and sort by particle size\n\t\t\tVector<ParticleReport> particles = new Vector<ParticleReport>();\n\t\t\tfor(int particleIndex = 0; particleIndex < numParticles; particleIndex++)\n\t\t\t{\n\t\t\t\tParticleReport par = new ParticleReport();\n\t\t\t\tpar.Area = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_AREA);\n\t\t\t\tpar.AreaByImageArea = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_AREA_BY_IMAGE_AREA);\n\t\t\t\tpar.BoundingRectTop = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_TOP);\n\t\t\t\tpar.BoundingRectLeft = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_LEFT);\n\t\t\t\tpar.BoundingRectHeight = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_HEIGHT);\n\t\t\t\tpar.BoundingRectWidth = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_WIDTH);\n\t\t\t\tparticles.add(par);\n\n\t\t\t}\n\t\t\tparticles.sort(null);\n\n\t\t\t//This example only scores the largest particle. Extending to score all particles and choosing the desired one is left as an exercise\n\t\t\t//for the reader. Note that this scores and reports information about a single particle (single L shaped target). To get accurate information \n\t\t\t//about the location of the tote (not just the distance) you will need to correlate two adjacent targets in order to find the true center of the tote.\n//\t\t\tscores.Aspect = AspectScore(particles.elementAt(0));\n//\t\t\tSmartDashboard.putNumber(\"Aspect\", scores.Aspect);\n//\t\t\tscores.Area = AreaScore(particles.elementAt(0));\n//\t\t\tSmartDashboard.putNumber(\"Area\", scores.Area);\n//\t\t\tboolean isTote = scores.Aspect > SCORE_MIN && scores.Area > SCORE_MIN;\n//\n\t\t\tParticleReport bestParticle = particles.elementAt(0);\n\t\t NIVision.Rect particleRect = new NIVision.Rect((int)bestParticle.BoundingRectTop, (int)bestParticle.BoundingRectLeft, (int)bestParticle.BoundingRectHeight, (int)bestParticle.BoundingRectWidth);\n\t\t \n\t\t //NIVision.imaqOverlayRect(colorFrame, particleRect, new NIVision.RGBValue(0, 0, 0, 255), DrawMode.PAINT_VALUE, \"a\");//;(colorFrame, colorFrame, particleRect, DrawMode.DRAW_VALUE, ShapeMode.SHAPE_OVAL, 20);\n\t\t NIVision.imaqDrawShapeOnImage(colorFrame, colorFrame, particleRect, NIVision.DrawMode.DRAW_VALUE, ShapeMode.SHAPE_RECT, 0.0f);\n\t\t SmartDashboard.putNumber(\"Rect Top\", bestParticle.BoundingRectTop);\n\t\t SmartDashboard.putNumber(\"Rect Left\", bestParticle.BoundingRectLeft);\n\t\t SmartDashboard.putNumber(\"Rect Width\", bestParticle.BoundingRectWidth);\n\t\t SmartDashboard.putNumber(\"Area by image area\", bestParticle.AreaByImageArea);\n\t\t SmartDashboard.putNumber(\"Area\", bestParticle.Area);\n\t\t double bestParticleMidpoint = bestParticle.BoundingRectLeft + bestParticle.BoundingRectWidth/2.0;\n\t\t double bestParticleMidpointAimingCoordnates = pixelCoordnateToAimingCoordnate(bestParticleMidpoint, CAMERA_RESOLUTION_X);\n\t\t angleToTarget = aimingCoordnateToAngle(bestParticleMidpointAimingCoordnates, VIEW_ANGLE);\n\t\t \n\t\t}\n\t\telse\n\t\t{\n\t\t\tangleToTarget = 0.0;\n\t\t}\n\n if(cameraView.getSelected() == COLOR)\n {\n \tCameraServer.getInstance().setImage(colorFrame);\n }\n\t SmartDashboard.putNumber(\"Angle to target\", angleToTarget);\n\n }",
"public void verificaCambioEstado(int op) {\r\n try {\r\n if (Seg.getCodAvaluo() == 0) {\r\n mbTodero.setMens(\"Seleccione un numero de Radicacion\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.setCodAvaluo(Seg.getCodAvaluo());\r\n if (op == 1) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').show()\");\r\n } else if (op == 2) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').show()\");\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".verificaCambioEstado()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }",
"public void setActivo(boolean activo)\r\n/* 149: */ {\r\n/* 150:255 */ this.activo = activo;\r\n/* 151: */ }",
"public void runOpMode() throws InterruptedException {\n robot.init(hardwareMap);\n BNO055IMU.Parameters parameters1 = new BNO055IMU.Parameters();\n parameters1.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters1);\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n robot.arm.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.arm.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n //P.S. if you're using the latest version of easyopencv, you might need to change the next line to the following:\n phoneCam = OpenCvCameraFactory.getInstance().createInternalCamera(OpenCvInternalCamera.CameraDirection.BACK, cameraMonitorViewId);\n //phoneCam = new OpenCvInternalCamera(OpenCvInternalCamera.CameraDirection.BACK, cameraMonitorViewId);//remove this\n\n phoneCam.openCameraDevice();//open camera\n phoneCam.setPipeline(new StageSwitchingPipeline());//different stages\n phoneCam.startStreaming(rows, cols, OpenCvCameraRotation.SIDEWAYS_LEFT);//display on RC\n //width, height\n //width = height in this case, because camera is in portrait mode.\n\n runtime.reset();\n while (!isStarted()) {\n for (int i = 0; i <= 7; i++) {\n telemetry.addData(\"Values\", vals[i]);\n }\n for (int i = 0; i <= 7; i++) {\n totals = totals + vals[i];\n }\n totals = totals / 255;\n telemetry.addData(\"total\", totals);\n\n telemetry.addData(\"Height\", rows);\n telemetry.addData(\"Width\", cols);\n\n telemetry.update();\n sleep(100);\n\n if (totals >= 4) {\n StartAngle = 30;\n StartDistance = 105;\n StartBack = -40;\n ReturnAngle = 28;\n ReturnDistance = -85;\n drop2 = 112;\n mid = 0;\n backup2 = -33;\n } else if (totals <= 0) {\n StartAngle = 55;\n StartDistance= 85;\n StartBack = -5;\n ReturnAngle = 38;\n ReturnDistance = -60;\n drop2 = 65;\n mid = -2;\n backup2 = -31;\n } else {\n StartAngle = 17;\n StartDistance = 75;\n StartBack = -20;\n ReturnAngle = 22;\n ReturnDistance = -49;\n drop2 = 95;\n mid = -18;\n backup2 = -41;\n }\n totals = 0;\n }\n\n\n\n gyroDrive(DRIVE_SPEED,6,0,30,0);\n gyroDrive(DRIVE_SPEED,36,-45,30,0);\n gyroDrive(DRIVE_SPEED,StartDistance,StartAngle,30,0);\n\n //robot.arm.setTargetPosition(-450);\n //robot.arm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n /*robot.arm.setPower(-.1);\n //robot.arm.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n gyroHold(DRIVE_SPEED,0,2);\n robot.claw.setPosition(0);\n robot.arm.setPower(.05);\n gyroHold(DRIVE_SPEED,0,1);\n gyroDrive(DRIVE_SPEED,-10,0,5,0);\n gyroTurn(TURN_SPEED,90);\n gyroDrive(DRIVE_SPEED,-20,90,5,0);\n\n */\n gyroTurn(TURN_SPEED,ReturnAngle);\n robot.LWheel.setPower(-.9);\n robot.RWheel.setPower(-.9);\n gyroDrive(DRIVE_SPEED, ReturnDistance,ReturnAngle, 30,0);\n gyroHold(TURN_SPEED,3,1);\n robot.lock.setPosition(1);\n robot.RTrack.setPosition(1);\n robot.LTrack.setPosition(0);\n gyroHold(TURN_SPEED,0,2);\n gyroHold(TURN_SPEED,-3,2);\n robot.LWheel.setPower(0);\n robot.RWheel.setPower(0);\n robot.RTrack.setPosition(.5);\n robot.LTrack.setPosition(.5);\n gyroTurn(TURN_SPEED,ReturnAngle);\n gyroDrive(DRIVE_SPEED, backup2, ReturnAngle, 30,0);\n\n gyroTurn(TURN_SPEED,90);\n gyroDrive(DRIVE_SPEED,52,80,5,0);\n gyroTurn(TURN_SPEED,65);\n gyroDrive(DRIVE_SPEED,drop2,2 + mid,10,0);\n robot.RDrop.setPosition(.23);\n robot.LDrop.setPosition(.23);\n gyroDrive(DRIVE_SPEED,StartBack,0,5,0);\n robot.arm.setPower(-.2);\n\n gyroHold(TURN_SPEED,0,1.7);\n robot.arm.setPower(0);\n }",
"public void mapMode() {\n\t\ttheTrainer.setUp(false);\n\t\ttheTrainer.setDown(false);\n\t\ttheTrainer.setLeft(false);\n\t\ttheTrainer.setRight(false);\n\n\t\tinBattle = false;\n\t\tred = green = blue = 255;\n\t\tthis.requestFocus();\n\t}",
"static void xra_with_reg(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tval1 = val1&val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}",
"private void ctrlPuasar() {\n btnIniciar.setEnabled(true);\n btnPausar.setEnabled(false);\n\n }",
"private void activateButtons(){\n limiteBoton.setEnabled(true);\n derivadaBoton.setEnabled(true);\n integralBoton.setEnabled(true);\n}",
"boolean land();",
"public void updateVisibility(Camera cam) {\n int i = 0;\n \n for(WE_Face face : listaDeFaces){\n WE_Aresta arestaFace = face.getArestaDaFace();\n \n Vertice third = null;\n searchForAnyArestaParaEsquerda:\n for (WE_Aresta aresta : listaDeArestas){\n if (!aresta.equals(arestaFace)){\n if (face.ID == aresta.getFaceEsquerda().ID){\n third = aresta.getvFinal();\n break searchForAnyArestaParaEsquerda;\n } else if (face.ID == aresta.getFaceDireita().ID){\n third = aresta.getvInicial();\n break searchForAnyArestaParaEsquerda;\n }\n }\n }\n \n Vertice normal = VMath.obterNormal(arestaFace.getvFinal(), arestaFace.getvInicial(), third);\n VMath.normalizar(normal);\n double mult = VMath.produtoEscalar(cam.getVetorN(), normal);\n System.out.println(\"Normal: \" + normal + \" Mult: \" + mult);\n visibilidade_faces[i] = mult > 0; //Se mult>0, face[i] é visível\n i++;\n }\n throw new UnsupportedOperationException(\"This doesn't work and programmer should feel bad. :(\");\n //<editor-fold defaultstate=\"collapsed\" desc=\"Testes que não funcionaram\">\n /*System.out.println(\"Lista vertices: \" + listaDeVertices);\n System.out.println(\"Lista arestas: \" + listaDeArestas);\n System.out.println(\"Lista faces: \" + listaDeFaces);\n\n for (WE_Face face : listaDeFaces){\n WE_Aresta arestaFace = face.getArestaDaFace();\n System.out.println(\"ARESTA FACE: \" + arestaFace);\n WE_Aresta next;\n Vertice third;\n if (arestaFace.getFaceEsquerda().ID == face.ID){\n next = arestaFace.getEsquerdaPredecessora();\n } else {\n next = arestaFace.getDireitaSucessora();\n }\n\n if (next.getvInicial().equals(arestaFace.getvInicial())\n ||next.getvInicial().equals(arestaFace.getvFinal ()))\n third = next.getvFinal();\n else\n third = next.getvInicial();\n\n System.out.println(\"POINTS (\" + face.ID + \"): \");\n System.out.println(\"One: \" + arestaFace.getvFinal());\n System.out.println(\"Two: \" + arestaFace.getvInicial());\n System.out.println(\"Thr: \" + third);\n\n Vertice normal = VMath.obterNormal(arestaFace.getvFinal(), arestaFace.getvInicial(), third);\n VMath.normalizar(normal);\n double mult = VMath.produtoEscalar(cam.getVetorN(), normal);\n System.out.println(\"Normal: \" + normal + \" Mult: \" + mult);\n visibilidade_faces[i] = mult > 0; //Se mult>0, face[i] é visível\n\n i++;\n }*/\n\n /*for (WE_Face face : listaDeFaces){\n WE_Aresta arestaFace = null;\n\n searchForAnyArestaParaEsquerda:\n for (WE_Aresta aresta : listaDeArestas){\n if (face.ID == aresta.getFaceEsquerda().ID){\n arestaFace = aresta;\n break searchForAnyArestaParaEsquerda;\n }\n }\n\n Vertice one = arestaFace.getvInicial();\n Vertice two = arestaFace.getvFinal();\n Vertice three;\n\n arestaFace = arestaFace.getEsquerdaSucessora();\n if (arestaFace.getvInicial().equals(two)){\n three = arestaFace.getvFinal();\n } else {\n three = arestaFace.getvInicial();\n }\n\n Vertice normal = VMath.obterNormal(two, one, three);\n VMath.normalizar(normal);\n double mult = VMath.produtoEscalar(cam.getVetorN(), normal);\n System.out.println(\"Normal: \" + normal + \" Mult: \" + mult);\n visibilidade_faces[i] = mult > 0; //Se mult>0, face[i] é visível\n }*/\n //</editor-fold>\n }",
"public void runOpMode() {\n robot.init(hardwareMap);\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n robot.leftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n idle();\n\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n // Send telemetry message to indicate successful Encoder reset\n telemetry.addData(\"Path0\", \"Starting at %7d :%7d\",\n robot.leftMotor.getCurrentPosition(),\n robot.rightMotor.getCurrentPosition());\n telemetry.addData(\"Gyro Heading:\", \"%.4f\", getHeading());\n telemetry.update();\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n\n parameters.vuforiaLicenseKey = \"Adiq0Gb/////AAAAme76+E2WhUFamptVVqcYOs8rfAWw8b48caeMVM89dEw04s+/mRV9TqcNvLkSArWax6t5dAy9ISStJNcnGfxwxfoHQIRwFTqw9i8eNoRrlu+8X2oPIAh5RKOZZnGNM6zNOveXjb2bu8yJTQ1cMCdiydnQ/Vh1mSlku+cAsNlmfcL0b69Mt2K4AsBiBppIesOQ3JDcS3g60JeaW9p+VepTG1pLPazmeBTBBGVx471G7sYfkTO0c/W6hyw61qmR+y7GJwn/ECMmXZhhHkNJCmJQy3tgAeJMdKHp62RJqYg5ZLW0FsIh7cOPRkNjpC0GmMCMn8AbtfadVZDwn+MPiF02ZbthQN1N+NEUtURP0BWB1CmA\";\n\n\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.FRONT;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n telemetry.addData(\">\", \"Press Play to start\");\n telemetry.update();\n\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n relicTrackables.activate();\n\n //while (opModeIsActive()) {\n\n /**\n * See if any of the instances of {@link relicTemplate} are currently visible.\n * {@link RelicRecoveryVuMark} is an enum which can have the following values:\n * UNKNOWN, LEFT, CENTER, and RIGHT. When a VuMark is visible, something other than\n * UNKNOWN will be returned by {@link RelicRecoveryVuMark#from(VuforiaTrackable)}.\n */\n RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.from(relicTemplate);\n while (vuMark == RelicRecoveryVuMark.UNKNOWN) {\n vuMark = RelicRecoveryVuMark.from(relicTemplate);\n /* Found an instance of the template. In the actual game, you will probably\n * loop until this condition occurs, then move on to act accordingly depending\n * on which VuMark was visible. */\n }\n telemetry.addData(\"VuMark\", \"%s visible\", vuMark);\n telemetry.update();\n sleep(550);\n\n //switch (vuMark) {\n // case LEFT: //RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.LEFT;\n // coLumn = 2;\n // case CENTER:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.CENTER;\n // coLumn = 1;\n // case RIGHT:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.RIGHT;\n // coLumn = 0;\n //}\n if ( vuMark == RelicRecoveryVuMark.LEFT) {\n coLumn = 2;\n }\n else if(vuMark == RelicRecoveryVuMark.RIGHT){\n coLumn = 0;\n }\n else if(vuMark == RelicRecoveryVuMark.CENTER){\n coLumn = 1;\n }\n\n\n telemetry.addData(\"coLumn\", \"%s visible\", coLumn);\n telemetry.update();\n sleep(550);\n\n\n\n//if jewej is red 1 if jewel is blue 2\n\n // if(jewel == 1) {\n // gyroturn(-10, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //gyroturn(-2, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n //else if(jewel == 2){\n // gyroturn(10, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n // gyroturn(-2, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[0][coLumn], disandTurn[0][coLumn], 5.0); // S1: Forward 24 Inches with 5 Sec timeout shoot ball\n\n gyroturn(disandTurn[1][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[0], -turndistance[0], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[2][coLumn], disandTurn[2][coLumn], 5.0); // S3: Forward 43.3 iNCHES\n\n gyroturn(disandTurn[3][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[4][coLumn], disandTurn[4][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n gyroturn(disandTurn[5][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[6][coLumn], disandTurn[6][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n\n Outake();\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[7][coLumn], disandTurn[7][coLumn], 5.0);// S6: Forward 48 inches with 4 Sec timeout\n }",
"private void dibujarArregloCamionetas() {\n\n timerCrearEnemigo += Gdx.graphics.getDeltaTime();\n if (timerCrearEnemigo>=TIEMPO_CREA_ENEMIGO) {\n timerCrearEnemigo = 0;\n TIEMPO_CREA_ENEMIGO = tiempoBase + MathUtils.random()*2;\n if (tiempoBase>0) {\n tiempoBase -= 0.01f;\n }\n\n camioneta= new Camioneta(texturaCamioneta,ANCHO,60f);\n arrEnemigosCamioneta.add(camioneta);\n\n\n }\n\n //Si el vehiculo se paso de la pantalla, lo borra\n for (int i = arrEnemigosCamioneta.size-1; i >= 0; i--) {\n Camioneta camioneta1 = arrEnemigosCamioneta.get(i);\n if (camioneta1.sprite.getX() < 0- camioneta1.sprite.getWidth()) {\n arrEnemigosCamioneta.removeIndex(i);\n\n }\n }\n }",
"private void habilitarBtnActualizar(){\n if(this.txtCodigoPlatDia.getText().isEmpty() \n || this.txtValueModified.getText().isEmpty()\n || this.cbxTypeModified.getSelectedIndex() == 0){\n this.btnActualizar.setEnabled(false);\n }else{\n this.btnActualizar.setEnabled(true);\n }\n }",
"public void turnoUsuario(){\r\n System.out.println(\"Turno: \"+ entrenador1.getNombre());\r\n if(evaluarAccion(this.pokemon_activo1, this.pokemon_activo2).equals(\"Cambiar\")){\r\n System.out.println(\"Usuario eligio Cambiar Pokemon\");\r\n pokemon_activo1.setConfuso(false);\r\n pokemon_activo1.setDormido(false);\r\n if(getEquipo1()[0].getDebilitado() == false && getEquipo1()[0]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[0]; \r\n }\r\n else if(getEquipo1()[1].getDebilitado() == false && getEquipo1()[1]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[1]; \r\n }\r\n else if(getEquipo1()[2].getDebilitado() == false && getEquipo1()[2]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[2]; \r\n }\r\n else if(getEquipo1()[3].getDebilitado() == false && getEquipo1()[3]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[3]; \r\n }\r\n else if(getEquipo1()[4].getDebilitado() == false && getEquipo1()[4]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[4]; \r\n }\r\n else if(getEquipo1()[5].getDebilitado() == false && getEquipo1()[5]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[5]; \r\n }\r\n vc.setjL_especie1(pokemon_activo1.getNombre_especie());\r\n vc.setjL_nombrepokemon1(pokemon_activo1.getPseudonimo());\r\n vc.setjL_vida_actual1(pokemon_activo1.getVida_restante(), pokemon_activo1.getVida());\r\n setLabelEstados(0);\r\n setLabelEstados(1);\r\n this.turno = 1;\r\n }\r\n else if(evaluarAccion(this.pokemon_activo1, this.pokemon_activo2).equals(\"Atacar\")){\r\n System.out.println(\"Usuario eligio Atacar\");\r\n inflingirDaño(pokemon_activo1.getMovimientos()[(int)(Math.random()*4)], pokemon_activo2, pokemon_activo1);\r\n if(pokemon_activo2.getVida_restante() <= 0){\r\n pokemon_activo2.setVida_restante(0);\r\n pokemon_activo2.setDebilitado(true);\r\n System.out.println(\"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\");\r\n JOptionPane.showMessageDialog(this.vc, \"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\", \"Debilitado\", JOptionPane.INFORMATION_MESSAGE);\r\n if(condicionVictoria(getEquipo1(), getEquipo2()) == true){\r\n JOptionPane.showMessageDialog(this.vc, \"El Ganador de este Combate es:\"+ entrenador1.getNombre(), \"Ganador\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"El Ganador de este Combate es:\"+ entrenador1.getNombre());\r\n System.out.println(equipo1[0].getVida_restante()+ \" \"+equipo1[1].getVida_restante()+ \" \"+equipo1[2].getVida_restante()+ \" \"+equipo1[3].getVida_restante()+ \" \"+equipo1[4].getVida_restante()+ \" \"+equipo1[5].getVida_restante());\r\n System.out.println(equipo2[0].getVida_restante()+ \" \"+equipo2[1].getVida_restante()+ \" \"+equipo2[2].getVida_restante()+ \" \"+equipo2[3].getVida_restante()+ \" \"+equipo2[4].getVida_restante()+ \" \"+equipo2[5].getVida_restante());\r\n JOptionPane.showMessageDialog(this.vc, equipo1[0].getVida_restante()+ \" \"+equipo1[1].getVida_restante()+ \" \"+equipo1[2].getVida_restante()+ \" \"+equipo1[3].getVida_restante()+ \" \"+equipo1[4].getVida_restante()+ \" \"+equipo1[5].getVida_restante()+\"\\n\"+ equipo2[0].getVida_restante()+ \" \"+equipo2[1].getVida_restante()+ \" \"+equipo2[2].getVida_restante()+ \" \"+equipo2[3].getVida_restante()+ \" \"+equipo2[4].getVida_restante()+ \" \"+equipo2[5].getVida_restante(), \"Estadisticas finales(vida)\", JOptionPane.INFORMATION_MESSAGE);\r\n vc.dispose();\r\n vpc.dispose();\r\n combate.setGanador(entrenador1);\r\n combate.setPerdedor(entrenador2);\r\n this.termino = true;\r\n }\r\n else if(getEquipo1()[0].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[0]; \r\n }\r\n else if(getEquipo1()[1].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[1]; \r\n }\r\n else if(getEquipo1()[2].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[2]; \r\n }\r\n else if(getEquipo1()[3].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[3]; \r\n }\r\n else if(getEquipo1()[4].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[4]; \r\n }\r\n else if(getEquipo1()[5].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[5]; \r\n } \r\n vc.setjL_nombrepokemon1(pokemon_activo2.getPseudonimo());\r\n vc.setjL_especie1(pokemon_activo2.getNombre_especie());\r\n }\r\n vc.setjL_especie2(pokemon_activo2.getNombre_especie());\r\n vc.setjL_nombrepokemon2(pokemon_activo2.getPseudonimo());\r\n vc.setjL_vida_actual2(pokemon_activo2.getVida_restante(), pokemon_activo2.getVida());\r\n setLabelEstados(0);\r\n setLabelEstados(1);\r\n this.turno = 1;\r\n }\r\n \r\n }",
"public static void changeScreens() {\r\n\t\tnone = true;\r\n\t\toption1 = false;\r\n\t\toption2 = false;\r\n\t\toption3 = false;\r\n\t\toption4 = false;\r\n\t\toption5 = false;\r\n\t\tbackToRegFromItem = false;\r\n\t\toverItem = false;\r\n\t\toverYes = false;\r\n\t\toverNo = false;\r\n\t\toverNext = false;\r\n\t\toverHealth = false;\r\n\t\toverAlly = false;\r\n\t\toverPummel = false;\r\n\t\toverLaser = false;\r\n\t\titemSelect = false;\r\n\t\tgoBackFromProg = false;\r\n\t\tgoBackFromAlly = false;\r\n\t\toverAnAlly = false;\r\n\t\tgoBackFromAttire = false;\r\n\t\toverAnOutfit = false;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public void controllore() {\n if (puntiVita > maxPunti) puntiVita = maxPunti;\n if (puntiFame > maxPunti) puntiFame = maxPunti;\n if (puntiFelicita > maxPunti) puntiFelicita = maxPunti;\n if (soldiTam < 1) {\n System.out.println(\"Hai finito i soldi\");\n System.exit(3);\n }\n //controlla che la creatura non sia morta, se lo è mette sonoVivo a false\n if (puntiVita <= minPunti && puntiFame <= minPunti && puntiFelicita <= minPunti) sonoVivo = false;\n }",
"public void restaura(){ \n super.restauraE();\n setImage(\"FrtEA1.png\"); \n check = false; \n }",
"public void carregarRegistro() {\n\t\tlimpar();\n\t\t\n\t\tlistaAlunos = repository.encontrarComQueryNomeada(AlunosMilitaresOMDS.class, \"alunosMilitaresOMDS.listarPorOMEPeriodo\",\n\t\t\t\tnew Object[]{\"periodo\", periodo},\n\t\t\t\tnew Object[]{\"organizacao\", subordinado},\n\t\t\t\tnew Object[]{\"ano\", anoSelecionado});\n\t\t\n\t\tif(listaAlunos.size() > 0) {\n\t\t\tlistaAlunos.forEach(efetivo ->{\n\t\t\t\tif (efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.OFICIAL))\n\t\t\t\t\tsetAlunosMilitarOficial(efetivo);\n\t\t\t\tif(efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.PRACA))\n\t\t\t\t\tsetAlunosMilitarPraca(efetivo);\n\t\t\t});\n\t\t\thabilitaBotao=false;\n\t\t}\n\t\torganizarValores();\n\t}",
"public void habilitaCampos(boolean habilitar) {\n for (int i = 0; i < panel.getPanelDatos().getComponents().length; i++) {\n panel.getPanelDatos().getComponent(i).setEnabled(habilitar);\n }\n }",
"private void moikhoacontrol(boolean b) {\n\t\tbtnSua.setEnabled(b);\n\t\tbtnluu.setEnabled(b);\n\t\tbtnxoa.setEnabled(b);\n\t\tbtnThoat.setEnabled(b);\n\t\tbtnTim.setEnabled(b);\n\t\t\n\t}",
"private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}",
"private void cargarFichaLepra_control() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\r\n\t\tficha_inicio_lepraService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean ficha_inicio = ficha_inicio_lepraService\r\n\t\t\t\t.existe_paciente_lepra(parameters);\r\n\t\t// log.info(\"ficha_inicio>>>>\" + ficha_inicio);\r\n\r\n\t\tif (ficha_inicio) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_SEGUIMIENTO_TRATAMIENTO_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_SEGUIMIENTO_TRATAMIENTO_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}",
"public interface MultiScreenEnable\n {\n /**\n * allow\n */\n String ALLOW = \"0\";\n\n /**\n * not allow\n */\n String NOT_ALLOW = \"1\";\n }",
"private Speicher initializeRegisterStatus(Speicher speicher){\n Bit[] bits = new Bit[8];\n bits[0] = new Bit( 0, 0);\n bits[1] = new Bit( 0, 0);\n bits[2] = new Bit( 0, 0);\n bits[3] = new Bit( 1, 0);\n bits[4] = new Bit( 1, 0);\n bits[5] = new Bit( 0, 0);\n bits[6] = new Bit( 0, 0);\n bits[7] = new Bit( 0, 0);\n speicher.getSpeicheradressen()[0].getRegister()[3].setBits(bits);\n return speicher;\n }",
"public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,ancho,alto);\n try {\n look = ImageIO.read(new File(\"src/Disparo/disparo.png\"));\n } catch (IOException ex) {\n System.out.println(\"error la imagen del proyectil no se encuentra en la ruta por defecto\");\n }\n }",
"@Override\r\n\tpublic boolean lancar(Combativel origem, Combativel alvo) {\r\n DadoVermelho dado = new DadoVermelho();\r\n int valor = dado.jogar();\r\n if(valor < origem.getInteligencia()) {\r\n alvo.defesaMagica(dano);\r\n return true;\r\n }\r\n else {\r\n \tSystem.out.println(\"Voce nao conseguiu usar a magia\");\r\n }\r\n return false;\r\n }",
"public void enableInputs();",
"private void desHabCampos(boolean hab) {\r\n\t\tlbl_Oferta.setEnabled(hab);\r\n\t\ttxArea_descripcion.setEditable(hab);\r\n\t\ttxField_lugar.setEditable(hab);\r\n\t\ttxField_experiencia.setEditable(hab);\r\n\t\tcombo_contrato.setEditable(hab);\r\n\t\ttxField_sueldoMax.setEditable(hab);\r\n\t\ttxField_sueldoMin.setEditable(hab);\r\n\t\ttxArea_aspectosImpres.setEditable(hab);\r\n\t\ttxArea_aspectosValorar.setEditable(hab);\r\n\t\tpa_conocimientos.setEnabled(hab);\r\n\t\ttxField_Empresa.setEnabled(false);\r\n\t\tpa_conocimientos.getBtn_anadir().setEnabled(hab);\r\n\t\tpa_conocimientos.getBtn_eliminar().setEnabled(hab);\r\n\t}",
"public void accionCambios(int i){\r\n \r\n if(turno == 0){\r\n pokemon_activo1.setConfuso(false);\r\n pokemon_activo1.setDormido(false);\r\n this.pokemon_activo1 = this.getEquipo1()[i];\r\n ve.setVisible(false);\r\n vc.setjL_especie1(pokemon_activo1.getNombre_especie());\r\n vc.setjL_nombrepokemon1(pokemon_activo1.getPseudonimo());\r\n vc.setjL_vida_actual1(pokemon_activo1.getVida_restante(), pokemon_activo1.getVida());\r\n vc.setjL_Nivel1(pokemon_activo1.getNivel());\r\n vc.setjL_Turno_actual(entrenador2.getNombre());\r\n ve.setVisible(false);\r\n if(tipo_simulacion == 2){\r\n turnoSistema();\r\n }\r\n else{\r\n JOptionPane.showMessageDialog(this.vc, \"Turno\"+\" \"+entrenador2.getNombre(), \"Tu Turno\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"Turno\"+\" \"+entrenador2.getNombre());\r\n try {\r\n creg.guardarRegistroSimulacion(\"Turno\"+\" \"+entrenador2.getNombre());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n vc.turnoJugador2();\r\n this.turno = 1;\r\n }\r\n setLabelEstados(1);\r\n setLabelEstados(0);\r\n }\r\n else if(turno == 1){\r\n pokemon_activo2.setConfuso(false);\r\n pokemon_activo2.setDormido(false);\r\n this.pokemon_activo2 = this.getEquipo2()[i];\r\n ve.setVisible(false);\r\n vc.setjL_especie2(pokemon_activo2.getNombre_especie());\r\n vc.setjL_nombrepokemon2(pokemon_activo2.getPseudonimo());\r\n vc.setjL_vida_actual2(pokemon_activo2.getVida_restante(), pokemon_activo2.getVida());\r\n vc.setjL_Nivel2(pokemon_activo2.getNivel());\r\n vc.setjL_Turno_actual(entrenador1.getNombre());\r\n ve.setVisible(false);\r\n JOptionPane.showMessageDialog(this.vc, \"Turno\"+\" \"+entrenador1.getNombre(), \"Tu Turno\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"Turno\"+\" \"+entrenador1.getNombre());\r\n try {\r\n creg.guardarRegistroSimulacion(\"Turno\"+\" \"+entrenador1.getNombre());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n vc.turnoJugador1();\r\n this.turno = 0;\r\n setLabelEstados(1);\r\n setLabelEstados(0);\r\n }\r\n }",
"@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n SmartDashboard.putNumber(\"right encoder\", drive.getRightEncoder());\n SmartDashboard.putNumber(\"left encoder\", drive.getLeftEncoder());\n \n PixyCamBlock centerBlock = PixyCam2.GetCentermostBlock();\n boolean targetInRange = false ;\n \n if(centerBlock == null)\n {\n targetInRange = false;\n SmartDashboard.putString(\"center block data \", \"null\"); \n }\n else if(centerBlock.yCenter < 200)\n {\n targetInRange = true;\n String out = \"Center Block, X: \"+centerBlock.xCenter + \" Y: \"+centerBlock.yCenter;\n SmartDashboard.putString(\"center block data \", out); \n }\n\n String targetValue = Boolean.toString(targetInRange);\n SmartDashboard.putString(\"target good?\", targetValue);\n \n \n SmartDashboard.putBoolean(\"isFlipped\", flipped);\n }",
"private void registToWX() {\n }",
"public static void OPLWriteReg(FM_OPL OPL, int r, int v) {\n\n OPL_CH CH;\n int slot;\n int block_fnum;\n switch (r & 0xe0) {\n case 0x00:\n /* 00-1f:controll */\n\n switch (r & 0x1f) {\n\n case 0x01:\n /* wave selector enable */\n if ((OPL.type & OPL_TYPE_WAVESEL) != 0) {\n /*RECHECK*/\n OPL.wavesel = ((v & 0x20) & 0xFF);\n if (OPL.wavesel == 0) {\n /* preset compatible mode */\n int c;\n for (c = 0; c < OPL.max_ch; c++) {\n OPL.P_CH[c].SLOT[SLOT1].wt_offset = 0;\n OPL.P_CH[c].SLOT[SLOT1].wavetable = SIN_TABLE;//OPL->P_CH[c].SLOT[SLOT1].wavetable = &SIN_TABLE[0];\n OPL.P_CH[c].SLOT[SLOT2].wavetable = SIN_TABLE;//OPL->P_CH[c].SLOT[SLOT2].wavetable = &SIN_TABLE[0];\n }\n }\n }\n return;\n case 0x02:\n /* Timer 1 */\n\n OPL.T[0] = (256 - v) * 4;\n break;\n case 0x03:\n /* Timer 2 */\n\n OPL.T[1] = (256 - v) * 16;\n return;\n case 0x04:\n /* IRQ clear / mask and Timer enable */\n\n if ((v & 0x80) != 0) {\n /* IRQ flag clear */\n\n OPL_STATUS_RESET(OPL, 0x7f);\n } else {\n /* set IRQ mask ,timer enable*/\n /*RECHECK*/\n\n int/*UINT8*/ st1 = ((v & 1) & 0xFF);\n /*RECHECK*/\n int/*UINT8*/ st2 = (((v >> 1) & 1) & 0xFF);\n\n /* IRQRST,T1MSK,t2MSK,EOSMSK,BRMSK,x,ST2,ST1 */\n OPL_STATUS_RESET(OPL, v & 0x78);\n OPL_STATUSMASK_SET(OPL, ((~v) & 0x78) | 0x01);\n /* timer 2 */\n if (OPL.st[1] != st2) {\n double interval = st2 != 0 ? (double) OPL.T[1] * OPL.TimerBase : 0.0;\n OPL.st[1] = st2;\n if (OPL.TimerHandler != null) {\n OPL.TimerHandler.handler(OPL.TimerParam + 1, interval);\n }\n }\n /* timer 1 */\n if (OPL.st[0] != st1) {\n double interval = st1 != 0 ? (double) OPL.T[0] * OPL.TimerBase : 0.0;\n OPL.st[0] = st1;\n if (OPL.TimerHandler != null) {\n OPL.TimerHandler.handler(OPL.TimerParam + 0, interval);\n }\n }\n }\n return;\n case 0x06:\n /* Key Board OUT */\n if ((OPL.type & OPL_TYPE_KEYBOARD) != 0) {\n if (OPL.keyboardhandler_w != null) {\n OPL.keyboardhandler_w.handler(OPL.keyboard_param, v);\n } else {\n //Log(LOG_WAR,\"OPL:write unmapped KEYBOARD port\\n\");\n }\n }\n return;\n case 0x07:\n /* DELTA-T controll : START,REC,MEMDATA,REPT,SPOFF,x,x,RST */\n if ((OPL.type & OPL_TYPE_ADPCM) != 0) {\n YM_DELTAT_ADPCM_Write(OPL.deltat, r - 0x07, v);\n }\n return;\n case 0x08:\n /* MODE,DELTA-T : CSM,NOTESEL,x,x,smpl,da/ad,64k,rom */\n OPL.mode = v;\n v &= 0x1f;\n /* for DELTA-T unit */\n case 0x09:\n /* START ADD */\n case 0x0a:\n case 0x0b:\n /* STOP ADD */\n case 0x0c:\n case 0x0d:\n /* PRESCALE */\n case 0x0e:\n case 0x0f:\n /* ADPCM data */\n case 0x10:\n /* DELTA-N */\n case 0x11:\n /* DELTA-N */\n case 0x12:\n /* EG-CTRL */\n if ((OPL.type & OPL_TYPE_ADPCM) != 0) {\n YM_DELTAT_ADPCM_Write(OPL.deltat, r - 0x07, v);\n }\n return;\n }\n break;\n case 0x20:\n /* am,vib,ksr,eg type,mul */\n\n slot = slot_array[r & 0x1f];\n if (slot == -1) {\n return;\n }\n set_mul(OPL, slot, v);\n return;\n case 0x40:\n slot = slot_array[r & 0x1f];\n if (slot == -1) {\n return;\n }\n set_ksl_tl(OPL, slot, v);\n return;\n case 0x60:\n slot = slot_array[r & 0x1f];\n if (slot == -1) {\n return;\n }\n set_ar_dr(OPL, slot, v);\n return;\n case 0x80:\n slot = slot_array[r & 0x1f];\n if (slot == -1) {\n return;\n }\n set_sl_rr(OPL, slot, v);\n return;\n case 0xa0:\n switch (r) {\n case 0xbd: /* amsep,vibdep,r,bd,sd,tom,tc,hh */ {\n int rkey = ((OPL.rythm ^ v) & 0xFF);\n OPL.ams_table = new IntArray(AMS_TABLE, (v & 0x80) != 0 ? AMS_ENT : 0);\n OPL.vib_table = new IntArray(VIB_TABLE, (v & 0x40) != 0 ? VIB_ENT : 0);\n OPL.rythm = ((v & 0x3f) & 0xFF);\n\n if ((OPL.rythm & 0x20) != 0) {\n /* BD key on/off */\n if ((rkey & 0x10) != 0) {\n if ((v & 0x10) != 0) {\n OPL.P_CH[6].op1_out[0] = OPL.P_CH[6].op1_out[1] = 0;\n OPL_KEYON(OPL.P_CH[6].SLOT[SLOT1]);\n OPL_KEYON(OPL.P_CH[6].SLOT[SLOT2]);\n } else {\n OPL_KEYOFF(OPL.P_CH[6].SLOT[SLOT1]);\n OPL_KEYOFF(OPL.P_CH[6].SLOT[SLOT2]);\n }\n }\n /* SD key on/off */\n if ((rkey & 0x08) != 0) {\n if ((v & 0x08) != 0) {\n OPL_KEYON(OPL.P_CH[7].SLOT[SLOT2]);\n } else {\n OPL_KEYOFF(OPL.P_CH[7].SLOT[SLOT2]);\n }\n }/* TAM key on/off */\n\n if ((rkey & 0x04) != 0) {\n if ((v & 0x04) != 0) {\n OPL_KEYON(OPL.P_CH[8].SLOT[SLOT1]);\n } else {\n OPL_KEYOFF(OPL.P_CH[8].SLOT[SLOT1]);\n }\n }\n /* TOP-CY key on/off */\n if ((rkey & 0x02) != 0) {\n if ((v & 0x02) != 0) {\n OPL_KEYON(OPL.P_CH[8].SLOT[SLOT2]);\n } else {\n OPL_KEYOFF(OPL.P_CH[8].SLOT[SLOT2]);\n }\n }\n /* HH key on/off */\n if ((rkey & 0x01) != 0) {\n if ((v & 0x01) != 0) {\n OPL_KEYON(OPL.P_CH[7].SLOT[SLOT1]);\n } else {\n OPL_KEYOFF(OPL.P_CH[7].SLOT[SLOT1]);\n }\n }\n }\n }\n return;\n }\n /* keyon,block,fnum */\n if ((r & 0x0f) > 8) {\n return;\n }\n CH = OPL.P_CH[r & 0x0f];\n if ((r & 0x10) == 0) {\n /* a0-a8 */\n\n block_fnum = (int) (CH.block_fnum & 0x1f00) | v;\n } else {\n /* b0-b8 */\n\n int keyon = (v >> 5) & 1;\n block_fnum = (int) (((v & 0x1f) << 8) | (CH.block_fnum & 0xff));\n if (CH.keyon != keyon) {\n if ((CH.keyon = keyon) != 0) {\n CH.op1_out[0] = CH.op1_out[1] = 0;\n OPL_KEYON(CH.SLOT[SLOT1]);\n OPL_KEYON(CH.SLOT[SLOT2]);\n } else {\n OPL_KEYOFF(CH.SLOT[SLOT1]);\n OPL_KEYOFF(CH.SLOT[SLOT2]);\n }\n }\n }\n /* update */\n if (CH.block_fnum != block_fnum) {\n int blockRv = 7 - (block_fnum >> 10);\n int fnum = block_fnum & 0x3ff;\n CH.block_fnum = block_fnum & 0xFFFFFFFFL;\n\n CH.ksl_base = KSL_TABLE[block_fnum >> 6];\n CH.fc = OPL.FN_TABLE[fnum] >> blockRv;\n CH.kcode = (int) ((CH.block_fnum >> 9) & 0xFF);\n if ((OPL.mode & 0x40) != 0 && (CH.block_fnum & 0x100) != 0) {\n CH.kcode |= 1;\n }\n CALC_FCSLOT(CH, CH.SLOT[SLOT1]);\n CALC_FCSLOT(CH, CH.SLOT[SLOT2]);\n }\n return;\n case 0xc0:\n /* FB,C */\n if ((r & 0x0f) > 8) {\n return;\n }\n CH = OPL.P_CH[r & 0x0f];\n {\n int feedback = (v >> 1) & 7;\n CH.FB = ((feedback != 0 ? (8 + 1) - feedback : 0) & 0xFF);\n CH.CON = ((v & 1) & 0xFF);\n set_algorythm(CH);\n }\n return;\n case 0xe0:\n /* wave type */\n\n slot = slot_array[r & 0x1f];\n if (slot == -1) {\n return;\n }\n CH = OPL.P_CH[slot / 2];\n if (OPL.wavesel != 0) {\n /* Log(LOG_INF,\"OPL SLOT %d wave select %d\\n\",slot,v&3); */\n CH.SLOT[slot & 1].wt_offset = (v & 0x03) * SIN_ENT;//CH.SLOT[slot & 1].wavetable = new IntSubArray(SIN_TABLE[(v & 0x03) * SIN_ENT]);\n }\n return;\n default:\n System.out.println(\"case =\" + (r & 0xe0) + \" r=\" + r + \" v=\" + v);\n break;\n }\n }",
"@Override\r\n\tpublic void getRegimeAlimentaire() {\n\t\t\r\n\t}",
"@Override\n\tpublic void BloquerCasesPlateau()\n\t{\n\t\tfor (Component bouton : this.unTableau.getComponents())\n\t\t\tbouton.setEnabled(false);\n\t\t\n\t\tthis.unTableau.updateUI();\n\t\t\n\t}",
"private void inizializzazione()\n {\n //Costruzione della Istanza display\n display = new Display(titolo,larghezza,altezza);\n \n /*Viene aggiunto il nostro gestore degli input da tastiera\n * alla nostra cornice.*/\n display.getCornice().addKeyListener(gestoreTasti);\n display.getCornice().addMouseListener(gestoreMouse);\n display.getCornice().addMouseMotionListener(gestoreMouse);\n display.getTelaGrafica().addMouseListener(gestoreMouse);\n display.getTelaGrafica().addMouseMotionListener(gestoreMouse);\n \n //Codice temporaneo per caricare la nostra immagine nel nostro programma\n /*testImmagine = CaricatoreImmagini.caricaImmagini(\"/Textures/Runner Stickman.png\");*/\n \n //Inizializzazione dell'attributo \"foglio\". Gli viene passato come parametro \n //\"testImmagine\" contenente l'immagine del nostro sprite sheet.\n /*foglio = new FoglioSprite(testImmagine);*/\n \n /*Inizializzazione della classe Risorse.*/\n Risorse.inizializzazione();\n \n maneggiatore = new Maneggiatore(this);\n /*Inizializzazione Camera di Gioco*/\n camera = new Camera(maneggiatore,0,0);\n \n /*Inizializzazione degli stati di gioco.*/\n statoMenu = new StatoMenù(maneggiatore);\n Stato.setStato(statoMenu);\n }",
"public void superPacman(){\n setSuperPacman(true);\n\n for(VisualObject v : Map.visualObjects){\n if(v.getClass().getGenericSuperclass() == Fantome.class){\n ((Fantome)v).changeSpriteAnimation(\"./data/SpriteMouvement/FantomePeur/\");\n ((Fantome)v).initAnimation();\n }\n }\n new Thread(() -> {\n //mettre la nouvelle image du superpacman\n try {\n TimeUnit.SECONDS.sleep(10);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n setSuperPacman(false);\n for(VisualObject v : Map.getVisualObjects()){\n if(v.getClass().getGenericSuperclass() == Fantome.class){\n ((Fantome)v).initSpriteAnimation();\n ((Fantome)v).initAnimation();\n }\n }\n }).start();\n\n }",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Campo campoDataInizio;\n Campo campoDataFine;\n Campo campoConto;\n Date dataIniziale;\n Date dataFinale;\n int numPersone;\n ContoModulo modConto;\n\n\n String titolo = \"Esecuzione addebiti fissi\";\n AddebitoFissoPannello pannello;\n Date dataInizio;\n Pannello panDate;\n Campo campoStato;\n Filtro filtro;\n int codConto;\n int codCamera;\n\n\n try { // prova ad eseguire il codice\n\n /* recupera dati generali */\n modConto = Albergo.Moduli.Conto();\n codConto = this.getCodConto();\n codCamera = modConto.query().valoreInt(Conto.Cam.camera.get(), codConto);\n numPersone = CameraModulo.getNumLetti(codCamera);\n\n /* crea il pannello servizi e vi registra la camera\n * per avere l'anteprima dei prezzi*/\n pannello = new AddebitoFissoPannello();\n this.setPanServizi(pannello);\n pannello.setNumPersone(numPersone);\n this.setTitolo(titolo);\n\n// /* regola date suggerite */\n// dataFinale = Progetto.getDataCorrente();\n// dataInizio = Lib.Data.add(dataFinale, -1);\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(nomeDataIni);\n campoDataInizio.decora().obbligatorio();\n// campoDataInizio.setValore(dataInizio);\n\n campoDataFine = CampoFactory.data(nomeDataFine);\n campoDataFine.decora().obbligatorio();\n// campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = CampoFactory.comboLinkSel(nomeConto);\n campoConto.setNomeModuloLinkato(Conto.NOME_MODULO);\n campoConto.setLarScheda(180);\n campoConto.decora().obbligatorio();\n campoConto.decora().etichetta(\"conto da addebitare\");\n campoConto.setUsaNuovo(false);\n campoConto.setUsaModifica(false);\n\n /* inizializza e assegna il valore (se non inizializzo\n * il combo mi cambia il campo dati e il valore si perde)*/\n campoConto.inizializza();\n campoConto.setValore(this.getCodConto());\n\n /* filtro per vedere solo i conti aperti dell'azienda corrente */\n campoStato = modConto.getCampo(Conto.Cam.chiuso.get());\n filtro = FiltroFactory.crea(campoStato, false);\n filtro.add(modConto.getFiltroAzienda());\n campoConto.getCampoDB().setFiltroCorrente(filtro);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.creaBordo(\"Periodo da addebitare\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(campoConto);\n\n this.addPannello(panDate);\n this.addPannello(this.getPanServizi());\n\n this.regolaCamera();\n\n /* recupera la data iniziale (oggi) */\n dataIniziale = AlbergoLib.getDataProgramma();\n\n /* recupera la data di partenza prevista dal conto */\n modConto = ContoModulo.get();\n dataFinale = modConto.query().valoreData(Conto.Cam.validoAl.get(),\n this.getCodConto());\n\n /* recupera il numero di persone dal conto */\n numPersone = modConto.query().valoreInt(Conto.Cam.numPersone.get(),\n this.getCodConto());\n\n /* regola date suggerite */\n campoDataInizio = this.getCampo(nomeDataIni);\n campoDataInizio.setValore(dataIniziale);\n\n campoDataFine = this.getCampo(nomeDataFine);\n campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = this.getCampo(nomeConto);\n campoConto.setAbilitato(false);\n\n /* regola la data iniziale di riferimento per l'anteprima dei prezzi */\n Date data = (Date)campoDataInizio.getValore();\n this.getPanServizi().setDataPrezzi(data);\n\n /* regola il numero di persone dal conto */\n this.getPanServizi().setNumPersone(numPersone);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"public void verSelecionarReglaConocimiento(String accion)\r\n\t{\r\n\t\tselecionarreglaconocimiento = new SelecionarReglaConocimiento(this, accion);\r\n\t\tselecionarreglaconocimiento.setVisible(true);\r\n\t}",
"public void cambiarEstado(String matricula) {\n\t\tCocheTaller coche = mecanicoController.seleccionarCocheTaller(matricula);\n\t\tif (coche != null) {\n\t\t\tint estado = Integer.parseInt(JOptionPane.showInputDialog(\"Introduzca el estado del vehiculo (0: sin comenzar; 1: en proceso; 2: terminado)\"));\n\t\t\tif (mecanicoController.cambiarEstadoCocheTaller(coche, estado)) {\n\t\t\t\tlogger.info(\"El estado ha sido modificado.\");\n\t\t\t} else {\n\t\t\t\tlogger.error(\"Error a la hora de moficicar el estado.\");\n\t\t\t}\n\t\t} else {\n\t\t\tlogger.error(\"El coche seleccionado no existe.\");\n\t\t}\n\t}",
"private static void mapAeAndFlashMode(android.hardware.camera2.impl.CameraMetadataNative r1, android.hardware.camera2.CameraCharacteristics r2, android.hardware.Camera.Parameters r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.mapAeAndFlashMode(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.camera2.CameraCharacteristics, android.hardware.Camera$Parameters):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.mapAeAndFlashMode(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.camera2.CameraCharacteristics, android.hardware.Camera$Parameters):void\");\n }",
"public void habilitaPanel() {\n\n\t\tthis.panelFondo.setEnabled(true);\n\t\tlabelImagen.setEnabled(true);\n\t\t//comboNombreCarta.setEnabled(true);\n\t\tthis.jScrollPane1.setEnabled(true);\n\t\tthis.jScrollPane1.getVerticalScrollBar().setEnabled(true);\n\t\tjScrollPane1.getHorizontalScrollBar().setEnabled(true);\n\t\tthis.jScrollPane2.setEnabled(true);\n\t\tthis.jScrollPane2.getVerticalScrollBar().setEnabled(true);\n\t\tjScrollPane2.getHorizontalScrollBar().setEnabled(true);\n\t\tlistaSeleccionadas.setEnabled(true);\n\t\tlistaDisponibles.setEnabled(true);\n\t\tthis.labelFondo.setEnabled(true);\n\t\ttextoNumeroCartas.setEnabled(true);\n\t\ttextoRaza.setEnabled(true);\n\t\tbotCargar.setEnabled(true);\n\t\tbotGuardar.setEnabled(true);\n\t\tbotGuardarComo.setEnabled(true);\n\t\tbotSalir.setEnabled(true);\n\t\tbotAyuda.setEnabled(true);\n\t\tbotNuevaBaraja.setEnabled(true);\n\t\ttextoBarajaCargada.setEnabled(true);\n\t\tthis.setEnabled(true);\n this.NumeroPuntos.setEnabled(true);\n\n\t}",
"public interface RobotMap {\n\t// CAN Device IDs\n\n\tpublic static final int WINCH_TALON = 1;\n\t// winch motors\n\n\tpublic static final int LEFT_ALIGN_TALON = 3;\n\tpublic static final int RIGHT_ALIGN_TALON = 4;\n\t// allignment wheels\n\n\tpublic static final int REAR_RIGHT_TALON = 5;\n\tpublic static final int REAR_LEFT_TALON = 6;\n\tpublic static final int FRONT_RIGHT_TALON = 7;\n\tpublic static final int FRONT_LEFT_TALON = 8;\n\t// drivetrain wheels\n\n\tpublic static final int PCM_MAIN = 9;\n\n\t/******************\n ** PNEUMATICS ** \n ******************/ \n\tpublic static final int FLIPPER_RIGHT = 0;\n\tpublic static final int FLIPPER_LEFT = 1;\n\tpublic static final int ARMS_A = 2;\n\tpublic static final int ARMS_B = 3;\n\t// End Pneumatic Channels\n\n\t/******************\n **PID CONTROLLER** \n ******************/ \n public static final double ABS_TOL = 100;\n public static final double P = .4;\n public static final double I = .01;\n public static final double D = 11;\n public static final double OUT_RANGE_L = -0.8;\n public static final double OUT_RANGE_H = 0.8;\n\n}",
"private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }",
"public static void Regresar() {\n menu.setVisible(true);\n Controlador.ConMenu.consultaPlan.setVisible(false);\n }",
"@Test\n public void testAgregarCamion() {\n try {\n System.out.println(\"agregarCamion\");\n Camion camion = new Camion(0, \"ABC-000\", \"MODELO PRUEBA\", \"COLOR PRUEBA\", \"ESTADO PRUEBA\", 999, null);\n ControlCamion instance = new ControlCamion();\n boolean expResult = true;\n boolean result = instance.agregarCamion(camion);\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 } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }",
"private void volverValoresADefault( )\n {\n if( sensorManag != null )\n sensorManag.unregisterListener(sensorListener);\n gameOn=false;\n getWindow().getDecorView().setBackgroundColor(Color.WHITE);\n pantallaEstabaTapada=false;\n ((TextView)findViewById(R.id.txtPredSeg)).setText(\"\");\n segundosTranscurridos=0;\n }",
"public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }",
"private void m6584A() {\n this.f5414ea = C1387D.m6761a();\n if (this.f5414ea) {\n this.f5405Y.setParameters(\"audio_recordaec_enable=1\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_on_selector);\n return;\n }\n this.f5405Y.setParameters(\"audio_recordaec_enable=0\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_off_selector);\n }",
"private void setCameraFlashModeIcon(android.widget.ImageView r5, java.lang.String r6) {\n /*\n r4 = this;\n r0 = r6.hashCode();\n r1 = 3551; // 0xddf float:4.976E-42 double:1.7544E-320;\n r2 = 2;\n r3 = 1;\n if (r0 == r1) goto L_0x0029;\n L_0x000a:\n r1 = 109935; // 0x1ad6f float:1.54052E-40 double:5.4315E-319;\n if (r0 == r1) goto L_0x001f;\n L_0x000f:\n r1 = 3005871; // 0x2dddaf float:4.212122E-39 double:1.4850976E-317;\n if (r0 == r1) goto L_0x0015;\n L_0x0014:\n goto L_0x0033;\n L_0x0015:\n r0 = \"auto\";\n r6 = r6.equals(r0);\n if (r6 == 0) goto L_0x0033;\n L_0x001d:\n r6 = 2;\n goto L_0x0034;\n L_0x001f:\n r0 = \"off\";\n r6 = r6.equals(r0);\n if (r6 == 0) goto L_0x0033;\n L_0x0027:\n r6 = 0;\n goto L_0x0034;\n L_0x0029:\n r0 = \"on\";\n r6 = r6.equals(r0);\n if (r6 == 0) goto L_0x0033;\n L_0x0031:\n r6 = 1;\n goto L_0x0034;\n L_0x0033:\n r6 = -1;\n L_0x0034:\n if (r6 == 0) goto L_0x0061;\n L_0x0036:\n if (r6 == r3) goto L_0x004e;\n L_0x0038:\n if (r6 == r2) goto L_0x003b;\n L_0x003a:\n goto L_0x0073;\n L_0x003b:\n r6 = 2131165380; // 0x7f0700c4 float:1.7944975E38 double:1.0529356E-314;\n r5.setImageResource(r6);\n r6 = 2131558417; // 0x7f0d0011 float:1.874215E38 double:1.053129786E-314;\n r0 = \"AccDescrCameraFlashAuto\";\n r6 = org.telegram.messenger.LocaleController.getString(r0, r6);\n r5.setContentDescription(r6);\n goto L_0x0073;\n L_0x004e:\n r6 = 2131165382; // 0x7f0700c6 float:1.794498E38 double:1.052935601E-314;\n r5.setImageResource(r6);\n r6 = 2131558419; // 0x7f0d0013 float:1.8742153E38 double:1.053129787E-314;\n r0 = \"AccDescrCameraFlashOn\";\n r6 = org.telegram.messenger.LocaleController.getString(r0, r6);\n r5.setContentDescription(r6);\n goto L_0x0073;\n L_0x0061:\n r6 = 2131165381; // 0x7f0700c5 float:1.7944978E38 double:1.0529356004E-314;\n r5.setImageResource(r6);\n r6 = 2131558418; // 0x7f0d0012 float:1.8742151E38 double:1.0531297864E-314;\n r0 = \"AccDescrCameraFlashOff\";\n r6 = org.telegram.messenger.LocaleController.getString(r0, r6);\n r5.setContentDescription(r6);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.p004ui.Components.ChatAttachAlert.setCameraFlashModeIcon(android.widget.ImageView, java.lang.String):void\");\n }",
"private void m6663v() {\n this.f5386F.setEnabled(true);\n this.f5385E.setEnabled(true);\n }",
"private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private boolean configurarFrm(){\n boolean blnRes=true;\n try{\n //Inicializar objetos.\n objUti=new ZafUtil();\n objPerUsr=new ZafPerUsr(objParSis);\n \n //Configurar ZafSelFec:\n objSelFec=new ZafSelFec();\n objSelFec.setCheckBoxVisible(false);\n panFil.add(objSelFec);\n objSelFec.setBounds(4, 4, 472, 72);\n \n this.setTitle(objParSis.getNombreMenu() + strVer);\n lblTit.setText(objParSis.getNombreMenu());\n //Botón Genera Factura Automática\n \n if(objParSis.getCodigoMenu()==4142){ // Solicitud de reserva\n chkEstSolNoTiene.setSelected(true);\n }\n if(objParSis.getCodigoMenu()==4146){ /* AUTORIZACION DE RESERVA */\n chkEstSolPendiente.setSelected(true);\n }\n if(objParSis.getCodigoMenu()==4150){ /* CANCELACION DE RESERVA */\n butGua.setVisible(false);\n chkAutSolAutorizada.setSelected(true);\n chkEstSolPendiente.setSelected(true); \n \n \n }\n if(objParSis.getCodigoMenu()==4154){ // 4154;1170;\"C\";\"Seguimiento de solicitudes de reservas de inventario...\"\n butGua.setVisible(false);\n //Estado de la solicitud\n chkEstSolPendiente.setSelected(true); \n chkEstSolCompleta.setSelected(true);\n //Estado de la Autorizacion\n chkAutSolPendiente.setSelected(true); \n chkAutSolAutorizada.setSelected(true);\n chkAutSolDenegada.setSelected(true);\n \n }\n \n //Configurar JTable: Establecer el modelo.\n vecDat=new Vector(); //Almacena los datos\n vecCab=new Vector(); //Almacena las cabeceras\n vecCab.clear();\n vecCab.add(INT_TBL_DAT_LIN,\"\");\n vecCab.add(INT_TBL_DAT_COD_EMP,\"Cód.Emp.\");\n vecCab.add(INT_TBL_DAT_NOM_EMP,\"Empresa\");\n vecCab.add(INT_TBL_DAT_COD_LOC,\"Cód.Loc.\");\n vecCab.add(INT_TBL_DAT_NOM_LOC,\"Local\");\n vecCab.add(INT_TBL_DAT_COD_COT,\"Cód.Cot.\");\n vecCab.add(INT_TBL_DAT_FEC_COT,\"Fec.Cot.\");\n vecCab.add(INT_TBL_DAT_COD_CLI,\"Cod.Cli.\");\n vecCab.add(INT_TBL_DAT_NOM_CLI,\"Nom.Cli.\");\n vecCab.add(INT_TBL_DAT_TOT_COT,\"Tot.Cot.\");\n vecCab.add(INT_TBL_DAT_BTN_COT_VEN,\"...\");\n vecCab.add(INT_TBL_DAT_COD_TIP_SOL,\"Cód.Tip.Sol.\");\n vecCab.add(INT_TBL_DAT_BTN_TIP_SOL,\"...\");\n vecCab.add(INT_TBL_DAT_TIP_SOL,\"Tip.Sol.\");\n vecCab.add(INT_TBL_DAT_FEC_SOL,\"Fec.Sol.\");\n vecCab.add(INT_TBL_DAT_CHK_SOL_RES,\"Sol.Res.\"); // JM \n vecCab.add(INT_TBL_DAT_OBS_SOL_RES,\"Obs.Res.\");\n vecCab.add(INT_TBL_DAT_BTN_OBS_SOL_RES,\"...\");\n vecCab.add(INT_TBL_DAT_CHK_PED_OTR_BOD,\"Ped.Otr.Bod.\");\n vecCab.add(INT_TBL_DAT_BTN_PED_OTR_BOD,\"...\");\n vecCab.add(INT_TBL_DAT_CHK_SOL_ENV_PED,\"Sol.Env.Ped.\");\n vecCab.add(INT_TBL_DAT_CHK_PENDIENTE,\"Pendientes\");\n vecCab.add(INT_TBL_DAT_CHK_AUTORIZAR,\"Autorizar\");\n vecCab.add(INT_TBL_DAT_CHK_DENEGAR,\"Denegar\");\n vecCab.add(INT_TBL_DAT_CHK_AUT_ENV_PED,\"Aut.Env.Ped.\");\n vecCab.add(INT_TBL_DAT_FEC_SOL_FAC_AUT,\"Fec.Aut.\");\n vecCab.add(INT_TBL_DAT_OBS_AUT_RES,\"Obs.Aut.\");\n vecCab.add(INT_TBL_DAT_BTN_OBS_AUT_RES,\"...\");\n vecCab.add(INT_TBL_DAT_VAL_FAC,\"Val.Fac.\");\n vecCab.add(INT_TBL_DAT_BTN_LIS_FAC_VEN,\"...\");\n vecCab.add(INT_TBL_DAT_VAL_CAN,\"Val.Can.\");\n vecCab.add(INT_TBL_DAT_CHK_CANCELAR,\"Cancelar\");\n vecCab.add(INT_TBL_DAT_BUT_LIS_CAN,\"...\");\n vecCab.add(INT_TBL_DAT_CHK_NOT_PRO_RES,\"No tiene\");\n vecCab.add(INT_TBL_DAT_CHK_PEN_PRO_RES,\"Pendiente\");\n vecCab.add(INT_TBL_DAT_CHK_COM_PRO_RES,\"Completo\");\n vecCab.add(INT_TBL_DAT_EST_SOL_RES,\"J:Sol.Res.\");\n vecCab.add(INT_TBL_DAT_MOM_DES_SOL_RES,\"J:Mom.Des.Sol.Res.\");\n vecCab.add(INT_TBL_DAT_EST_FAC_PRI_DIA_LAB,\"J:st_genFacPriDiaLabMes\");\n \n vecCab.add(INT_TBL_DAT_STR_TIP_RES_INV,\"J:tx_tipResInv\");\n \n objTblMod=new ZafTblMod();\n objTblMod.setHeader(vecCab);\n //objTblMod.setFilasEditables(vecDat);n\n tblDat.setModel(objTblMod); \n //Configurar JTable: Establecer tipo de selección.\n tblDat.setCellSelectionEnabled(true);\n //tblDat.setRowSelectionAllowed(true);\n tblDat.setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n //Configurar JTable: Establecer la fila de cabecera.\n objColNum=new ZafColNumerada(tblDat,INT_TBL_DAT_LIN);\n //Configurar JTable: Establecer el menú de contexto.\n objTblPopMnu=new ZafTblPopMnu(tblDat);\n objTblPopMnu.setPegarEnabled(false);\n objTblPopMnu.setBorrarContenidoEnabled(true);\n //Configurar JTable: Establecer el tipo de redimensionamiento de las columnas.\n tblDat.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n //Configurar JTable: Establecer el ancho de las columnas.\n javax.swing.table.TableColumnModel tcmAux=tblDat.getColumnModel();\n\n tcmAux.getColumn(INT_TBL_DAT_LIN).setPreferredWidth(20);\n tcmAux.getColumn(INT_TBL_DAT_COD_EMP).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_NOM_EMP).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_COD_LOC).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_NOM_LOC).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_COD_COT).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_FEC_COT).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_COD_CLI).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_NOM_CLI).setPreferredWidth(150);\n tcmAux.getColumn(INT_TBL_DAT_TOT_COT).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_BTN_COT_VEN).setPreferredWidth(30);\n \n tcmAux.getColumn(INT_TBL_DAT_COD_TIP_SOL).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_BTN_TIP_SOL).setPreferredWidth(30);\n tcmAux.getColumn(INT_TBL_DAT_TIP_SOL).setPreferredWidth(200);\n tcmAux.getColumn(INT_TBL_DAT_FEC_SOL).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_RES).setPreferredWidth(30);//JM\n tcmAux.getColumn(INT_TBL_DAT_OBS_SOL_RES).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_BTN_OBS_SOL_RES).setPreferredWidth(40);\n tcmAux.getColumn(INT_TBL_DAT_CHK_PED_OTR_BOD).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_BTN_PED_OTR_BOD).setPreferredWidth(30);\n tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_ENV_PED).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_PENDIENTE).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_AUTORIZAR).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_DENEGAR).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_AUT_ENV_PED).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_FEC_SOL_FAC_AUT).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_OBS_AUT_RES).setPreferredWidth(70);\n tcmAux.getColumn(INT_TBL_DAT_BTN_OBS_AUT_RES).setPreferredWidth(30);\n \n tcmAux.getColumn(INT_TBL_DAT_VAL_FAC).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_BTN_LIS_FAC_VEN).setPreferredWidth(30);\n \n tcmAux.getColumn(INT_TBL_DAT_VAL_CAN).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_CANCELAR).setPreferredWidth(30);\n tcmAux.getColumn(INT_TBL_DAT_BUT_LIS_CAN).setPreferredWidth(30);\n\n tcmAux.getColumn(INT_TBL_DAT_CHK_NOT_PRO_RES).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_PEN_PRO_RES).setPreferredWidth(60);\n tcmAux.getColumn(INT_TBL_DAT_CHK_COM_PRO_RES).setPreferredWidth(60);\n \n tcmAux.getColumn(INT_TBL_DAT_EST_SOL_RES).setPreferredWidth(10);\n tcmAux.getColumn(INT_TBL_DAT_MOM_DES_SOL_RES).setPreferredWidth(10);\n tcmAux.getColumn(INT_TBL_DAT_EST_FAC_PRI_DIA_LAB).setPreferredWidth(10);\n tcmAux.getColumn(INT_TBL_DAT_STR_TIP_RES_INV).setPreferredWidth(10);\n \n \n \n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_COD_EMP, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_COD_LOC, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_COD_TIP_SOL, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_SOL_RES, tblDat); \n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_EST_SOL_RES, tblDat); // Estado\n \n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_MOM_DES_SOL_RES, tblDat); // J\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_EST_FAC_PRI_DIA_LAB, tblDat); // J\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_STR_TIP_RES_INV, tblDat); // J\n \n if(objParSis.getCodigoMenu()==4150){\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_BTN_TIP_SOL, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_TIP_SOL, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_SOL_RES, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_SOL_ENV_PED, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_PENDIENTE, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_AUTORIZAR, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_DENEGAR, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_CHK_AUT_ENV_PED, tblDat);\n \n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_FEC_SOL, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_VAL_FAC, tblDat);\n objTblMod.addSystemHiddenColumn(INT_TBL_DAT_BTN_LIS_FAC_VEN, tblDat);\n \n }\n \n \n //Configurar JTable: Establecer las columnas que no se pueden redimensionar.\n tcmAux.getColumn(INT_TBL_DAT_COD_EMP).setResizable(false);\n tcmAux.getColumn(INT_TBL_DAT_COD_LOC).setResizable(false);\n \n objTblCelRenLblCod=new ZafTblCelRenLbl();\n objTblCelRenLblCod.setHorizontalAlignment(javax.swing.JLabel.RIGHT);\n tcmAux.getColumn(INT_TBL_DAT_COD_EMP).setCellRenderer(objTblCelRenLblCod);\n tcmAux.getColumn(INT_TBL_DAT_COD_LOC).setCellRenderer(objTblCelRenLblCod);\n tcmAux.getColumn(INT_TBL_DAT_COD_COT).setCellRenderer(objTblCelRenLblCod);\n tcmAux.getColumn(INT_TBL_DAT_COD_CLI).setCellRenderer(objTblCelRenLblCod);\n \n \n \n tcmAux.getColumn(INT_TBL_DAT_FEC_COT).setCellEditor(new Librerias.ZafTblUti.ZafDtePckEdi.ZafDtePckEdi(strFormatoFecha));\n tcmAux.getColumn(INT_TBL_DAT_FEC_SOL).setCellEditor(new Librerias.ZafTblUti.ZafDtePckEdi.ZafDtePckEdi(strFormatoFecha));\n tcmAux.getColumn(INT_TBL_DAT_FEC_SOL_FAC_AUT).setCellEditor(new Librerias.ZafTblUti.ZafDtePckEdi.ZafDtePckEdi(strFormatoFecha));\n \n \n //Configurar JTable: Establecer el tipo de reordenamiento de columnas.\n tblDat.getTableHeader().setReorderingAllowed(false);\n //Configurar JTable: Mostrar ToolTipText en la cabecera de las columnas.\n objMouMotAda=new ZafMouMotAda();\n tblDat.getTableHeader().addMouseMotionListener(objMouMotAda);\n //Configurar JTable: Establecer columnas editables.\n vecAux=new Vector();\n vecAux.add(\"\" + INT_TBL_DAT_BTN_COT_VEN);\n /* SOLICITUD DE RESERVA */\n if(objParSis.getCodigoMenu()==4142){\n vecAux.add(\"\" + INT_TBL_DAT_BTN_TIP_SOL);\n vecAux.add(\"\" + INT_TBL_DAT_FEC_SOL);\n }\n vecAux.add(\"\" + INT_TBL_DAT_BTN_OBS_SOL_RES);\n vecAux.add(\"\" + INT_TBL_DAT_OBS_SOL_RES);\n vecAux.add(\"\"+INT_TBL_DAT_BTN_PED_OTR_BOD); // JM 27/Abril/2018\n \n /* AUTORIZACION DE RESERVA */\n if(objParSis.getCodigoMenu()==4146){\n vecAux.add(\"\" + INT_TBL_DAT_CHK_AUTORIZAR);\n vecAux.add(\"\" + INT_TBL_DAT_CHK_DENEGAR);\n vecAux.add(\"\" + INT_TBL_DAT_FEC_SOL_FAC_AUT);\n }\n \n /* NO ES SOLICITUD DE RESERVA PUEDE VER LA OBSERVACION DE LA AUTORIZACION */\n if(objParSis.getCodigoMenu()!=4142){\n vecAux.add(\"\" + INT_TBL_DAT_OBS_AUT_RES);\n vecAux.add(\"\" + INT_TBL_DAT_BTN_OBS_AUT_RES);\n }\n \n \n /* CANCELACION DE RESERVA */\n if(objParSis.getCodigoMenu()==4150){\n vecAux.add(\"\" + INT_TBL_DAT_BUT_LIS_CAN);\n }\n vecAux.add(\"\" + INT_TBL_DAT_BTN_LIS_FAC_VEN);\n objTblMod.setColumnasEditables(vecAux);\n vecAux=null;\n //Configurar JTable: Editor de la tabla.\n \n \n //AUTORIZACION\n ZafTblHeaGrp objTblHeaGrp=(ZafTblHeaGrp)tblDat.getTableHeader();\n objTblHeaGrp.setHeight(16*2);\n \n ZafTblHeaColGrp objTblHeaColGrpCot=new ZafTblHeaColGrp(\"Paso 1: Cotizaciones de Venta\");\n objTblHeaColGrpCot.setHeight(16);\n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_COD_EMP)); \n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_NOM_EMP)); \n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_COD_LOC)); \n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_NOM_LOC)); \n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_COD_COT));\n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_FEC_COT));\n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_COD_CLI));\n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_NOM_CLI));\n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_TOT_COT));\n objTblHeaColGrpCot.add(tcmAux.getColumn(INT_TBL_DAT_BTN_COT_VEN));\n \n ZafTblHeaColGrp objTblHeaColGrpSol=new ZafTblHeaColGrp(\"Paso 2: Solicitud de Reserva\");\n objTblHeaColGrpSol.setHeight(16);\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_COD_TIP_SOL));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_BTN_TIP_SOL));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_TIP_SOL));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_FEC_SOL));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_RES));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_OBS_SOL_RES));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_BTN_OBS_SOL_RES));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_CHK_PED_OTR_BOD));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_BTN_PED_OTR_BOD));\n objTblHeaColGrpSol.add(tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_ENV_PED));\n \n ZafTblHeaColGrp objTblHeaColGrp=new ZafTblHeaColGrp(\"Paso 3: Autorizacion\");\n objTblHeaColGrp.setHeight(16);\n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_CHK_PENDIENTE)); \n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_CHK_AUTORIZAR)); \n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_CHK_DENEGAR)); \n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_CHK_AUT_ENV_PED)); \n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_FEC_SOL_FAC_AUT)); \n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_OBS_AUT_RES)); \n objTblHeaColGrp.add(tcmAux.getColumn(INT_TBL_DAT_BTN_OBS_AUT_RES)); \n \n ZafTblHeaColGrp objTblHeaColFac=new ZafTblHeaColGrp(\"Paso 4: Factura de Ventas\");\n objTblHeaColFac.setHeight(16);\n objTblHeaColFac.add(tcmAux.getColumn(INT_TBL_DAT_VAL_FAC)); \n objTblHeaColFac.add(tcmAux.getColumn(INT_TBL_DAT_BTN_LIS_FAC_VEN)); \n \n ZafTblHeaColGrp objTblHeaColCan=new ZafTblHeaColGrp(\"Paso 5: Cancelacion\");\n objTblHeaColCan.setHeight(16);\n objTblHeaColCan.add(tcmAux.getColumn(INT_TBL_DAT_VAL_CAN)); \n objTblHeaColCan.add(tcmAux.getColumn(INT_TBL_DAT_CHK_CANCELAR)); \n objTblHeaColCan.add(tcmAux.getColumn(INT_TBL_DAT_BUT_LIS_CAN)); \n \n ZafTblHeaColGrp objTblHeaColResPro=new ZafTblHeaColGrp(\"Resumen del Proceso\");\n objTblHeaColResPro.setHeight(16);\n objTblHeaColResPro.add(tcmAux.getColumn(INT_TBL_DAT_CHK_NOT_PRO_RES)); \n objTblHeaColResPro.add(tcmAux.getColumn(INT_TBL_DAT_CHK_PEN_PRO_RES)); \n objTblHeaColResPro.add(tcmAux.getColumn(INT_TBL_DAT_CHK_COM_PRO_RES)); \n \n objTblHeaGrp.addColumnGroup(objTblHeaColGrpCot);\n objTblHeaGrp.addColumnGroup(objTblHeaColGrpSol);\n objTblHeaGrp.addColumnGroup(objTblHeaColGrp);\n objTblHeaGrp.addColumnGroup(objTblHeaColFac);\n objTblHeaGrp.addColumnGroup(objTblHeaColCan);\n objTblHeaGrp.addColumnGroup(objTblHeaColResPro);\n \n \n objTblHeaColGrpCot=null;\n objTblHeaColGrp=null;\n objTblHeaColGrpSol=null;\n objTblHeaColFac=null;\n objTblHeaColCan = null;\n \n \n //Configurar JTable: Establecer la fila de cabecera.\n objTblFilCab=new ZafTblFilCab(tblDat);\n tcmAux.getColumn(INT_TBL_DAT_LIN).setCellRenderer(objTblFilCab);\n objTblFilCab=null;\n \n //botones agregados\n objTblCelRenBut=new ZafTblCelRenBut();\n tcmAux.getColumn(INT_TBL_DAT_BTN_COT_VEN).setCellRenderer(objTblCelRenBut);\n tcmAux.getColumn(INT_TBL_DAT_BTN_TIP_SOL).setCellRenderer(objTblCelRenBut);\n tcmAux.getColumn(INT_TBL_DAT_BTN_OBS_SOL_RES).setCellRenderer(objTblCelRenBut);\n tcmAux.getColumn(INT_TBL_DAT_BTN_OBS_AUT_RES).setCellRenderer(objTblCelRenBut); \n tcmAux.getColumn(INT_TBL_DAT_BUT_LIS_CAN).setCellRenderer(objTblCelRenBut);\n tcmAux.getColumn(INT_TBL_DAT_BTN_LIS_FAC_VEN).setCellRenderer(objTblCelRenBut);\n \n tcmAux.getColumn(INT_TBL_DAT_BTN_PED_OTR_BOD).setCellRenderer(objTblCelRenBut);\n objTblCelRenBut=null;\n\n //Cheks \n objTblCelRenChk=new ZafTblCelRenChk();\n tcmAux.getColumn(INT_TBL_DAT_CHK_PED_OTR_BOD).setCellRenderer(objTblCelRenChk); // SOLICITAR RESERVA\n tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_ENV_PED).setCellRenderer(objTblCelRenChk); // FACTURA AUTOMATICA\n tcmAux.getColumn(INT_TBL_DAT_CHK_PENDIENTE).setCellRenderer(objTblCelRenChk); // AUTORIZAR \n tcmAux.getColumn(INT_TBL_DAT_CHK_AUTORIZAR).setCellRenderer(objTblCelRenChk); // DENEGAR \n tcmAux.getColumn(INT_TBL_DAT_CHK_DENEGAR).setCellRenderer(objTblCelRenChk); \n tcmAux.getColumn(INT_TBL_DAT_CHK_AUT_ENV_PED).setCellRenderer(objTblCelRenChk); \n tcmAux.getColumn(INT_TBL_DAT_CHK_NOT_PRO_RES).setCellRenderer(objTblCelRenChk); \n tcmAux.getColumn(INT_TBL_DAT_CHK_PEN_PRO_RES).setCellRenderer(objTblCelRenChk); \n tcmAux.getColumn(INT_TBL_DAT_CHK_COM_PRO_RES).setCellRenderer(objTblCelRenChk); \n tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_RES).setCellRenderer(objTblCelRenChk); // JoseMario \n \n \n \n objTblCelRenChk = null;\n \n objTblCelRenChk2=new ZafTblCelRenChk();\n tcmAux.getColumn(INT_TBL_DAT_CHK_PED_OTR_BOD).setCellRenderer(objTblCelRenChk2); // SOLICITAR RESERVA\n tcmAux.getColumn(INT_TBL_DAT_CHK_SOL_ENV_PED).setCellRenderer(objTblCelRenChk2); // FACTURA AUTOMATICA\n \n \n objTblCelRenChk2.addTblCelRenListener(new ZafTblCelRenAdapter() \n {\n @Override\n public void beforeRender(ZafTblCelRenEvent evt){\n if (objTblMod.getValueAt(objTblCelRenChk2.getRowRender(), INT_TBL_DAT_CHK_PED_OTR_BOD).equals(true)){\n objTblCelRenChk2.setBackground(Color.RED);\n }\n else{\n objTblCelRenChk2.setBackground(Color.WHITE);\n }\n }\n });\n /*-----------------------------------------------------*/\n \n objTblCelRenLbl = new Librerias.ZafTblUti.ZafTblCelRenLbl.ZafTblCelRenLbl();\n objTblCelRenLbl.setHorizontalAlignment(javax.swing.JLabel.RIGHT);\n objTblCelRenLbl.setTipoFormato(ZafTblCelRenLbl.INT_FOR_NUM);\n objTblCelRenLbl.setFormatoNumerico(objParSis.getFormatoNumero(), true, true);\n tcmAux.getColumn(INT_TBL_DAT_TOT_COT).setCellRenderer(objTblCelRenLbl); \n tcmAux.getColumn(INT_TBL_DAT_VAL_FAC).setCellRenderer(objTblCelRenLbl);\n tcmAux.getColumn(INT_TBL_DAT_VAL_CAN).setCellRenderer(objTblCelRenLbl);\n objTblCelRenLbl = null;\n \n \n \n objTblCelRenLbl = new Librerias.ZafTblUti.ZafTblCelRenLbl.ZafTblCelRenLbl();\n objTblCelRenLbl.setBackground(objParSis.getColorCamposObligatorios());\n tcmAux.getColumn(INT_TBL_DAT_TIP_SOL).setCellRenderer(objTblCelRenLbl);\n tcmAux.getColumn(INT_TBL_DAT_FEC_SOL).setCellRenderer(objTblCelRenLbl);\n tcmAux.getColumn(INT_TBL_DAT_FEC_SOL_FAC_AUT).setCellRenderer(objTblCelRenLbl);\n objTblCelRenLbl = null;\n \n \n ButCotVen butCotVen = new ButCotVen(tblDat, INT_TBL_DAT_BTN_COT_VEN); //*****\n ButObsSolRes butObsSolRes = new ButObsSolRes(tblDat, INT_TBL_DAT_BTN_OBS_SOL_RES); //*****\n ButObsAutResVen butObsAutResVen = new ButObsAutResVen(tblDat, INT_TBL_DAT_BTN_OBS_AUT_RES); //*****\n ButLisCanResVen butLisCanResVen = new ButLisCanResVen(tblDat, INT_TBL_DAT_BUT_LIS_CAN); //*****\n ButLisFacVen butLisFacVen = new ButLisFacVen(tblDat, INT_TBL_DAT_BTN_LIS_FAC_VEN); //*****\n \n ButLisPedOtrBod butPedOtrBod = new ButLisPedOtrBod(tblDat, INT_TBL_DAT_BTN_PED_OTR_BOD);\n \n \n \n \n \n objTblMod.setModoOperacion(objTblMod.INT_TBL_EDI);\n objTblOrd=new ZafTblOrd(tblDat);\n objTblBus=new ZafTblBus(tblDat);\n objDocLis=new ZafDocLis();\n \n configurarVenConCli();\n configurarVenConVen();\n configurarTblLoc();\n cargarLoc();\n configurarVenConTipSol();\n \n if(objParSis.getCodigoMenu()==4150){\n txtCodTipSol.setText(\"5\");\n if (!txtCodTipSol.getText().equalsIgnoreCase(strCodTipSol)){\n if (txtCodTipSol.getText().equals(\"\")){\n txtCodTipSol.setText(\"\");\n txtNomTipSol.setText(\"\");\n }\n else{\n mostrarVenConTipSol(1);\n }\n }\n else\n txtCodTipSol.setText(strCodTipSol);\n }\n \n \n \n int intColVen[]=new int[5];\n intColVen[0]=1;\n intColVen[1]=2;\n intColVen[2]=5;//tx_momDes\n intColVen[3]=4;//st_facPriDiaLab\n intColVen[4]=3;\n int intColTbl[]=new int[5];\n intColTbl[0]=INT_TBL_DAT_COD_TIP_SOL;\n intColTbl[1]=INT_TBL_DAT_TIP_SOL;\n intColTbl[2]=INT_TBL_DAT_MOM_DES_SOL_RES;\n intColTbl[3]=INT_TBL_DAT_EST_FAC_PRI_DIA_LAB;\n intColTbl[4]=INT_TBL_DAT_STR_TIP_RES_INV;\n objTblCelEdiButVcoTipSolRes=new ZafTblCelEdiButVco(tblDat, vcoTipSol, intColVen, intColTbl);\n tcmAux.getColumn(INT_TBL_DAT_BTN_TIP_SOL).setCellEditor(objTblCelEdiButVcoTipSolRes);\n objTblCelEdiButVcoTipSolRes.addTableEditorListener(new Librerias.ZafTblUti.ZafTblEvt.ZafTableAdapter() {\n String strFacPriDiaMes=\"\";\n int intCodEmp,intCodLoc,intRow;\n public void beforeEdit(Librerias.ZafTblUti.ZafTblEvt.ZafTableEvent evt) {\n if(objTblMod.getValueAt(tblDat.getSelectedRow(), INT_TBL_DAT_EST_SOL_RES)!=null){\n MensajeInf(\"NO ES POSIBLE MODIFICAR UNA SOLICITUD DE RESERVA\");\n objTblCelEdiButVcoTipSolRes.setEnabled(false);\n }\n else{\n objTblCelEdiButVcoTipSolRes.setEnabled(true);\n }\n }\n public void afterEdit(Librerias.ZafTblUti.ZafTblEvt.ZafTableEvent evt){\n intCodEmp = Integer.parseInt(objTblMod.getValueAt(tblDat.getSelectedRow(), INT_TBL_DAT_COD_EMP).toString());\n intCodLoc = Integer.parseInt(objTblMod.getValueAt(tblDat.getSelectedRow(), INT_TBL_DAT_COD_LOC).toString());\n intRow = tblDat.getSelectedRow();\n if( vcoTipSol.getValueAt(4)!=null){\n strFacPriDiaMes = vcoTipSol.getValueAt(4).toString();\n if(strFacPriDiaMes.equals(\"S\")){\n objTblMod.setValueAt( getFechaLab(intCodEmp, intCodLoc), intRow, INT_TBL_DAT_FEC_SOL);\n }\n }else{\n tblDat.editCellAt(tblDat.getSelectedRow(), INT_TBL_DAT_FEC_SOL);\n } \n /* solicitando enviar mercaderia antes de que se genere la factura */\n if(vcoTipSol.getValueAt(5)!=null){\n if(vcoTipSol.getValueAt(5).toString().equals(\"A\")){\n objTblMod.setValueAt(true, intRow, INT_TBL_DAT_CHK_SOL_ENV_PED); \n }\n else{\n objTblMod.setValueAt(false, intRow, INT_TBL_DAT_CHK_SOL_ENV_PED);\n }\n }\n else{\n objTblMod.setValueAt(false, intRow, INT_TBL_DAT_CHK_SOL_ENV_PED);\n }\n\n if(objTblMod.getValueAt(intRow, INT_TBL_DAT_COD_TIP_SOL)!=null){\n objTblMod.setValueAt(true, intRow, INT_TBL_DAT_CHK_SOL_RES);\n }\n \n }\n });\n intColVen=null;\n intColTbl=null;\n \n \n /* VALIDACIONES DE FECHAS DOCUMENTOS */\n \n \n \n /* VALIDACIONES DE FECHAS DOCUMENTOS */\n \n \n \n /* Renderizadores - Autorizacion */\n \n objTblCelEdiChkPre = new ZafTblCelEdiChk(tblDat);\n tcmAux.getColumn(INT_TBL_DAT_CHK_AUTORIZAR).setCellEditor(objTblCelEdiChkPre);\n objTblCelEdiChkPre.addTableEditorListener(new Librerias.ZafTblUti.ZafTblEvt.ZafTableAdapter() {\n String strFecSolRes=\"\";\n String strMensaje=\"<html>La Solicitud presenta envio de material antes de la generacion de la factura. <BR> ¿Está seguro que desea realizar esta operación?<html>\";\n String strMenEmp=\"<html>La Solicitud de reserva en la misma empresa posee <FONT COLOR=\\\"red\\\">Transferencias de Inventario. </FONT> <BR> ¿Está seguro que desea realizar esta operación?<html>\";\n public void afterEdit(Librerias.ZafTblUti.ZafTblEvt.ZafTableEvent evt) {\n int intNumFil = tblDat.getSelectedRow();\n strFecSolRes = objTblMod.getValueAt(intNumFil, INT_TBL_DAT_FEC_SOL).toString();\n System.out.println(\"strFecSolRes: \" + strFecSolRes);\n objTblMod.setValueAt(strFecSolRes, intNumFil, INT_TBL_DAT_FEC_SOL_FAC_AUT); \n \n /* Reserva con facturación automatica */ \n if(objTblMod.getValueAt(intNumFil, INT_TBL_DAT_MOM_DES_SOL_RES)!=null){\n if(objTblMod.getValueAt(intNumFil, INT_TBL_DAT_MOM_DES_SOL_RES).toString().equals(\"A\")){\n quitarChksAutorizacion(intNumFil,INT_TBL_DAT_CHK_AUTORIZAR);\n if (mostrarMsgCon(strMensaje)==0){\n objTblMod.setValueAt(true, intNumFil, INT_TBL_DAT_CHK_AUT_ENV_PED); \n }\n else{\n System.out.println(\"NOoo....\");\n quitarChksAutorizacion(intNumFil,INT_TBL_DAT_CHK_DENEGAR);\n }\n }\n }\n \n \n \n /* Reserva en la propia empresa */ \n if(objTblMod.getValueAt(intNumFil, INT_TBL_DAT_CHK_PED_OTR_BOD).equals(true)){\n if(objTblMod.getValueAt(intNumFil,INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"R\")){\n if (mostrarMsgCon(strMenEmp)==0){\n objTblMod.setValueAt(true, intNumFil, INT_TBL_DAT_CHK_AUT_ENV_PED); \n }\n else{\n System.out.println(\"NOoo....\");\n quitarChksAutorizacion(intNumFil,INT_TBL_DAT_CHK_DENEGAR);\n }\n }\n }\n \n \n }\n });\n \n objTblCelEdiChkPre = new ZafTblCelEdiChk(tblDat);\n tcmAux.getColumn(INT_TBL_DAT_CHK_DENEGAR).setCellEditor(objTblCelEdiChkPre);\n objTblCelEdiChkPre.addTableEditorListener(new Librerias.ZafTblUti.ZafTblEvt.ZafTableAdapter() {\n public void afterEdit(Librerias.ZafTblUti.ZafTblEvt.ZafTableEvent evt) {\n int intNumFil = tblDat.getSelectedRow();\n quitarChksAutorizacion(intNumFil,INT_TBL_DAT_CHK_DENEGAR);\n }\n });\n \n \n /* Renderizadores - Autorizacion */\n \n if (objParSis.getCodigoEmpresa()==objParSis.getCodigoEmpresaGrupo()){\n txtCodCli.setEditable(false);\n txtDesLarCli.setEditable(false);\n butCli.setEnabled(false);\n }\n \n int intCol[]={INT_TBL_DAT_TOT_COT, INT_TBL_DAT_VAL_FAC, INT_TBL_DAT_VAL_CAN};\n objTblTot=new ZafTblTot(spnRpt, spnTot, tblDat, tblTot, intCol);\n \n //Configurar JTable: Detectar cambios de valores en las celdas.\n objTblModLis=new ZafTblModLis();\n objTblMod.addTableModelListener(objTblModLis); \n }\n catch(Exception e){\n blnRes=false;\n objUti.mostrarMsgErr_F1(this, e);\n }\n return blnRes;\n }",
"public void VerifyButtons(){\n if (currentTurn.getSiguiente() == null){\n next_turn.setEnabled(false);\n } else{\n next_turn.setEnabled(true);\n }\n if (currentTurn.getAnterior() == null){\n prev_turn.setEnabled(false);\n } else{\n prev_turn.setEnabled(true);\n }\n if (current.getSiguiente() == null){\n next_game.setEnabled(false);\n } else{\n next_game.setEnabled(true);\n }\n if (current.getAnterior() == null){\n prev_game.setEnabled(false);\n } else{\n prev_game.setEnabled(true);\n }\n }",
"private void change_im_check(boolean boo){\r\n if(boo){ //IMAGEN SI EL MEASURE ES CORRECTO\r\n im_check.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }else{ //IMAGEN PARA LA BUSQUEDA DE UN MEASURE\r\n im_check.setImage(new Image(getClass().getResourceAsStream(\"/Images/img34.png\")));\r\n }\r\n }",
"public void action() {\n\t\tsuppressed = false;\r\n\t\tpilot.setLinearSpeed(8);\r\n\t\tpilot.setLinearAcceleration(4);\r\n\t\tColorThread.updatePos = false;\r\n\t\tColorThread.updateCritical = false;\r\n\t\t//create a array to save the map information\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\trobot.probability[a][b] = -1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\tif (a == 0 || a == 7 || b == 0 || b == 7) {\r\n\t\t\t\t\trobot.probability[a][b] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 6; a++) {\r\n\t\t\tfor (int b = 0; b < 6; b++) {\r\n\t\t\t\tif (robot.map[a][b].getOccupied() == 1) {\r\n\t\t\t\t\trobot.probability[a + 1][b + 1] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Step1: use ArrayList to save all of the probability situation.\r\n\t\tfloat front, left, right, back;\r\n\t\tfront = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\tleft = USThread.disSample[0];\r\n\t\trobot.setmotorM(-180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tright = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\trobot.correctHeading(180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tback = USThread.disSample[0];\r\n\t\trobot.correctHeading(180);\r\n\t\tfor (int a = 1; a < 7; a++) {\r\n\t\t\tfor (int b = 1; b < 7; b++) {\r\n\t\t\t\tif (robot.probability[a][b] == -1) {\r\n\t\t\t\t\tif (((robot.probability[a][b + 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t//direction is north\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(0, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"0 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a + 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is east\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(1, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"1 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a][b - 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is sourth\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(2, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"2 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a - 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is west\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(3, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"3 \"+a+\" \"+b);\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\t//Step 2: use loop to take control of robot walk and check the location correction\r\n\t\tboolean needLoop = true;\r\n\t\tint loopRound = 0;\r\n\t\twhile (needLoop) {\r\n\t\t\t// One of way to leave the loop is at the hospital\r\n\t\t\tif ((ColorThread.leftColSample[0] >= 0.2 && ColorThread.leftColSample[1] < 0.2\r\n\t\t\t\t\t&& ColorThread.leftColSample[1] >= 0.14 && ColorThread.leftColSample[2] <= 0.8)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] >= 0.2 && ColorThread.rightColSample[1] < 0.2\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[1] >= 0.11 && ColorThread.rightColSample[2] <= 0.08)) {\r\n\t\t\t\trobot.updatePosition(0, 0);\r\n\t\t\t\tint numOfAtYellow = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtYellow++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtYellow == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\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\t}else {\r\n\t\t\t\t\t//have two way to go to the yellow part\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//Another way to leave the loop is the robot arrive the green cell.\r\n\t\t\tif ((ColorThread.leftColSample[0] <= 0.09 && ColorThread.leftColSample[1] >= 0.17\r\n\t\t\t\t\t&& ColorThread.leftColSample[2] <= 0.09)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] <= 0.09 && ColorThread.rightColSample[1] >= 0.014\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[2] <= 0.11)) {\r\n\t\t\t\trobot.updatePosition(5, 0);\r\n\t\t\t\tint numOfAtGreen = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtGreen++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtGreen==1) {\r\n\t\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The third way of leave the loop is the robot have already know his position and direction.\r\n\t\t\tint maxStepNumber = 0;\r\n\t\t\tint numberOfMaxSteps = 0;\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() > maxStepNumber) {\r\n\t\t\t\t\tmaxStepNumber = robot.listOfPro.get(i).getSteps();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\tnumberOfMaxSteps++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (numberOfMaxSteps == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\t\trobot.updatePosition(robot.listOfPro.get(i).getNowX() - 1,\r\n\t\t\t\t\t\t\t\trobot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\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\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The below part are the loops.\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\t// move\r\n\t\t\t\r\n\t\t\tif (front > 0.25) {\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\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} else if (left > 0.25) {\r\n\t\t\t\trobot.correctHeading(-90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\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} else if (right > 0.25) {\r\n\t\t\t\trobot.correctHeading(90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\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} else {\r\n\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\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\t// It time to check the around situation\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t//System.out.println(robot.listOfPro.get(i).getSteps());\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\tif (((front < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\tif (((left < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\tif (((back < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (((right < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\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\tloopRound++;\r\n\t\t}\r\n\t\t// if is out the while loop, it will find the heading and the position of robot right now.\r\n\t\t//Step 3: It is time to use wavefront to come back to the hospital\r\n\t\trobot.restoreDefault();\r\n\t\trobot.RunMode = 1;\r\n\t\tColorThread.updatePos = true;\r\n\t\tColorThread.updateCritical = true;\r\n\t}",
"public Scania() {\r\n\t\tinitList();\r\n\t\tmakerName = \"Scania\";\r\n\t\tRandom rand = new Random();\r\n\t\tint chooseBit = rand.nextInt(2); // higher chance of better one ;)\r\n\t\tif (chooseBit == 1) {\r\n\t\t\tmodelName = \"R 2012\";\r\n\t\t} else {\r\n\t\t\tmodelName = \"Streamline\";\r\n\t\t}\r\n\t}",
"public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public void Power() {\n if (Estado == false){\r\n Estado = true;\r\n } else if (Estado == true){\r\n Estado = false;\r\n }\r\n }",
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"static void ora_with_reg(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tval1 = val1|val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}",
"public RegView() {\r\n\t\trc = new RegControl();\r\n\t\t// load the land registry before running the program\r\n\t\tviewLoadLandRegistryFromBackUp();\r\n\t}",
"private void checkEnabled() {\n }",
"private boolean aYV() {\n /*\n r4 = this;\n r3 = 1;\n r2 = 0;\n r0 = com.android.common.custom.C0421M.dC();\n r0 = r0.dD();\n r0 = r0.bU();\n if (r0 != 0) goto L_0x001d;\n L_0x0010:\n r0 = r4.aiG;\n r0 = r0.SY();\n r0 = r0.tx();\n if (r0 == 0) goto L_0x001d;\n L_0x001c:\n return r2;\n L_0x001d:\n r0 = r4.aIO;\n if (r0 == 0) goto L_0x0041;\n L_0x0021:\n r0 = r4.aiG;\n r0 = r0.Td();\n r0 = r0.NF();\n if (r0 != 0) goto L_0x0041;\n L_0x002d:\n r0 = r4.aiG;\n r0 = r0.TE();\n r0 = r0.Ll();\n if (r0 == 0) goto L_0x0041;\n L_0x0039:\n r0 = r4.asP();\n r1 = com.android.common.camerastate.UIState.CAMERA_FAMILY;\n if (r0 != r1) goto L_0x0042;\n L_0x0041:\n return r2;\n L_0x0042:\n r0 = r4.aiG;\n r0 = r0.Td();\n r0 = r0.NP();\n if (r0 != 0) goto L_0x0041;\n L_0x004e:\n r0 = r4.asJ();\n r1 = com.android.common.camerastate.DeviceState.SNAPSHOT_IN_PROGRESS;\n if (r0 == r1) goto L_0x0041;\n L_0x0056:\n r0 = r4.aiG;\n r0 = r0.SQ();\n r1 = com.android.common.cameradevice.C0384o.Jr();\n r1 = r1.Jt();\n if (r0 != r1) goto L_0x0067;\n L_0x0066:\n return r2;\n L_0x0067:\n r0 = r4.aiG;\n r0 = r0.To();\n switch(r0) {\n case 0: goto L_0x0073;\n case 90: goto L_0x0084;\n case 180: goto L_0x0073;\n case 270: goto L_0x0084;\n default: goto L_0x0070;\n };\n L_0x0070:\n r0 = r4.aID;\n return r0;\n L_0x0073:\n r0 = r4.aIK;\n r0 = java.lang.Math.abs(r0);\n r1 = r4.aIJ;\n r1 = java.lang.Math.abs(r1);\n if (r0 <= r1) goto L_0x0070;\n L_0x0081:\n r4.aID = r3;\n goto L_0x0070;\n L_0x0084:\n r0 = r4.aIJ;\n r0 = java.lang.Math.abs(r0);\n r1 = r4.aIK;\n r1 = java.lang.Math.abs(r1);\n if (r0 <= r1) goto L_0x0070;\n L_0x0092:\n r4.aID = r3;\n goto L_0x0070;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.Camera.aYV():boolean\");\n }",
"private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }",
"public void checaColision() {\n //Si el proyectil colisiona con la barra entonces..\n if (objBarra.colisiona(objProyectil)) {\n //Guardo el centro x del proyectil para no facilitar su comparacion\n int iCentroProyectil = objProyectil.getX()\n + objProyectil.getAncho() / 2;\n //Si el nivel de Y del lado inferior del proyectil es el mismo que\n //el nivel de Y del lado superior de la barra...\n if (objProyectil.getY() + objProyectil.getAlto()\n >= objBarra.getY()) {\n //Dividimos el ancho de la barra en 2 secciones que otorgan \n //diferente velocidad dependiendo que seccion toque el proyectil\n //Si el centro del proyectil toca la primera parte de la \n //barra o el lado izquierdo del proyectil esta mas a la \n //izquierda que el lado izquierdo de la barra...\n if ((iCentroProyectil > objBarra.getX() && iCentroProyectil\n < objBarra.getX() + objBarra.getAncho() / 2)\n || (objProyectil.getX() < objBarra.getX())) {\n bDireccionX = false; // arriba\n bDireccionY = false; // izquierda\n } //Si el centro del proyectil toca la ultima parte de la barra o\n //el lado derecho del proyectil esta mas a la derecha que el \n //lado derecho de la barra\n else if ((iCentroProyectil > objBarra.getX()\n + (objBarra.getAncho() / 2) && iCentroProyectil\n < objBarra.getX() + (objBarra.getAncho()\n - objBarra.getAncho() / 18)) || (objProyectil.getX()\n + objProyectil.getAncho() > objBarra.getX()\n + objBarra.getAncho())) {\n bDireccionX = true; // arriba\n bDireccionY = false; // derecha\n }\n }\n\n }\n for (Object objeBloque : lnkBloques) {\n Objeto objBloque = (Objeto) objeBloque;\n //Checa si la barra choca con los bloques (Choca con el poder)\n if(objBarra.colisiona(objBloque)) {\n bPoderes[objBloque.getPoder()] = true;\n }\n // Checa si el proyectil choca contra los bloques\n if (objBloque.colisiona(objProyectil)) {\n iScore++; // Se aumenta en 1 el score\n iNumBloques--; //Se resta el numero de bloques\n //Se activa el bloque con el poder para que se mueva para abajo\n if (objBloque.getPoder() != 0) {\n URL urlImagenPoder\n = this.getClass().getResource(\"metanfeta.png\");\n objBloque.setImagen(Toolkit.getDefaultToolkit()\n .getImage(urlImagenPoder));\n objBloque.setVelocidad(2);\n bAvanzaBloque = true;\n }\n if(objProyectil.colisiona(objBloque.getX(), \n objBloque.getY()) ||\n objProyectil.colisiona(objBloque.getX(), \n objBloque.getY()+objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionX = false; //va hacia arriba\n }\n if(objProyectil.colisiona(objBloque.getX()+objBloque.getAncho(), \n objBloque.getY()) ||\n objProyectil.colisiona(objBloque.getX()+objBloque.getAncho(), \n objBloque.getY()+objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionX = true; //va hacia arriba\n }\n //Si la parte superior de proyectil es mayor o igual a la parte\n //inferior del bloque(esta golpeando por abajo del bloque...\n if((objProyectil.getY() <= objBloque.getY() \n + objBloque.getAlto()) && (objProyectil.getY() \n + objProyectil.getAlto() > objBloque.getY() \n + objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionY = true; //va hacia abajo\n \n \n }\n //parte inferior del proyectil es menor o igual a la de la parte\n //superior del bloque(esta golpeando por arriba)...\n else if(( objProyectil.getY() + objProyectil.getAlto()\n >= objBloque.getY())&&( objProyectil.getY() \n < objBloque.getY())) {\n objBloque.setX(getWidth() + 50);\n bDireccionY = false; //va hacia arriba\n }\n //Si esta golpeando por algun otro lugar (los lados)...\n else {\n objBloque.setX(getWidth()+50);\n bDireccionX = !bDireccionX;\n }\n }\n }\n //Si la barra choca con el lado izquierdo...\n if (objBarra.getX() < 0) {\n objBarra.setX(0); //Se posiciona al principio antes de salir\n } //Si toca el lado derecho del Jframe...\n else if (objBarra.getX() + objBarra.getAncho() - objBarra.getAncho() / 18\n > getWidth()) {\n objBarra.setX(getWidth() - objBarra.getAncho() + objBarra.getAncho()\n / 18);// Se posiciciona al final antes de salir\n }\n //Si el Proyectil choca con cualquier limite de los lados...\n if (objProyectil.getX() < 0 || objProyectil.getX()\n + objProyectil.getAncho() > getWidth()) {\n //Cambias su direccion al contrario\n bDireccionX = !bDireccionX;\n } //Si el Proyectil choca con la parte superior del Jframe...\n else if (objProyectil.getY() < 0) {\n //Cambias su direccion al contrario\n bDireccionY = !bDireccionY;\n } //Si el proyectil toca el fondo del Jframe...\n else if (objProyectil.getY() + objProyectil.getAlto() > getHeight()) {\n iVidas--; //Se resta una vida.\n // se posiciona el proyectil en el centro arriba de barra\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n }\n }",
"public GetInRangeAndAimCommand() {\n xController = new PIDController(0.1, 1e-4, 1);\n yController = new PIDController(-0.1, 1e-4, 1);\n xController.setSetpoint(0);\n yController.setSetpoint(0);\n // xController.\n drive = DrivetrainSubsystem.getInstance();\n limelight = Limelight.getInstance();\n // Use addRequirements() here to declare subsystem dependencies.\n addRequirements(drive);\n\n }",
"public boolean tieneRepresentacionGrafica();",
"private reg1() {\n }"
] | [
"0.6237855",
"0.6029562",
"0.59586674",
"0.5869512",
"0.5849224",
"0.58247554",
"0.57986397",
"0.56930536",
"0.5653388",
"0.56397736",
"0.56351113",
"0.5619732",
"0.5617268",
"0.5591841",
"0.5579392",
"0.55780137",
"0.5526046",
"0.5489225",
"0.54864746",
"0.5482789",
"0.5475388",
"0.5465969",
"0.545948",
"0.54399705",
"0.54380333",
"0.54165655",
"0.5413758",
"0.54106444",
"0.540863",
"0.53977346",
"0.53945446",
"0.53910357",
"0.5390016",
"0.5367737",
"0.5354072",
"0.53403634",
"0.5322376",
"0.5319425",
"0.53184986",
"0.5318122",
"0.53084296",
"0.5308333",
"0.53067243",
"0.53058594",
"0.53026915",
"0.52982515",
"0.52553064",
"0.52543044",
"0.52534467",
"0.52513677",
"0.52477163",
"0.5243313",
"0.5241414",
"0.52400017",
"0.5236928",
"0.52355653",
"0.5233995",
"0.5233235",
"0.5229677",
"0.5229524",
"0.5228785",
"0.5217529",
"0.52151066",
"0.5212533",
"0.52113026",
"0.5210681",
"0.52103543",
"0.5207511",
"0.5204426",
"0.5204354",
"0.5201616",
"0.5197674",
"0.5194935",
"0.5193879",
"0.5188252",
"0.51815486",
"0.5175438",
"0.5174598",
"0.51736075",
"0.5173402",
"0.51727057",
"0.5170972",
"0.51655275",
"0.51651305",
"0.5164847",
"0.5163557",
"0.5162739",
"0.51563674",
"0.5155956",
"0.51553655",
"0.51523143",
"0.5151942",
"0.5145528",
"0.51447076",
"0.5144356",
"0.5139409",
"0.5137863",
"0.51356333",
"0.5132237",
"0.51260483"
] | 0.6076392 | 1 |
Abilita regole che contengono il dispositivo dal nome specificato | public void abilitaRegoleconDispositivo(String nomeDispositivo, ArrayList<Sensore> listaSensori, ArrayList<Attuatore> listaAttuatori) {
String[] regole = readRuleFromFile().split("\n");
for (String s : regole) {
try {
ArrayList<String> disps = verificaCompRegola(s);
if (disps.contains(nomeDispositivo)) {
cambiaAbilitazioneRegola(s,false);
}
} catch (Exception e) {
String msg = e.getMessage();
}
if (s.contains(nomeDispositivo) && verificaAbilitazione(s,listaSensori,listaAttuatori)) {
cambiaAbilitazioneRegola(s, true);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Ris(String nome) {\n this.nome = nome;\n }",
"ParqueaderoEntidad agregar(String nombre);",
"public Libro recupera(String nombre);",
"@Override\n\tpublic Contato buscaContatoNome(String nome) {\n\t\treturn null;\n\t}",
"public Vendedor buscarVendedorPorNome(String nome);",
"public void setNombreCompleto(String nombreCompleto);",
"public Modul buscarModul(String nomModul) throws ExceptionBuscar;",
"public void asignarNombre(String name);",
"private void enviarRequisicaoPerguntarNome() {\n try {\n String nome = NomeDialogo.nomeDialogo(null, \"Informe o nome do jogador\", \"Digite o nome do jogador:\", true);\n if (servidor.verificarNomeJogador(nome)) {\n nomeJogador = nome;\n comunicacaoServico.criandoNome(this, nome, \"text\");\n servidor.adicionarJogador(nome);\n servidor.atualizarLugares();\n } else {\n JanelaAlerta.janelaAlerta(null, \"Este nome já existe/inválido!\", null);\n enviarRequisicaoPerguntarNome();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void insere (String nome)\n {\n //TODO\n }",
"public void updateName() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n userFound.setNombre(objcliente.getNombre());\n clientefacadelocal.edit(userFound);\n objcliente = new Cliente();\n mensaje = \"sia\";\n } else {\n mensaje = \"noa\";\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n mensaje = \"noa\";\n System.out.println(\"El error al actualizar el nombre es \" + e);\n }\n }",
"public MacchinaStatiFiniti(String nome)\r\n\t{\r\n\t\tthis.nome=nome;\r\n\t\tcorrente=null;\r\n\t}",
"Filmes(String nome,String genero){\n\t\tthis.nome = nome;\n\t\tthis.genero = genero;\n\t}",
"public void setNome(String nome) {\r\n this.nome = nome;\r\n }",
"public void setNome(String nome) {\r\n this.nome = nome;\r\n }",
"public void setNome(String nome) {\n this.nome = nome;\n }",
"public void setNome(String nome) {\n this.nome = nome;\n }",
"public void setNome(String nome) {\n this.nome = nome;\n }",
"public void setNome(String nome){\r\n this.nome = nome;\r\n }",
"private static void concretizarRegisto(String nome, int escalao) {\n\t\tif (gestor.registarFuncionario(nome, escalao))\n\t\t\tSystem.out.println(\"REGISTO do funcionario \" + nome + \" com escalao \" + escalao);\n\t\telse \n\t\t\tSystem.out.println(\"ERRO: Nao foi possivel registar o funcionario \" + nome);\n\t}",
"private void addVeiculo(String nome) {\n\t\t\n\t\tlist.setModel(dm);\n\t\tdm.addElement(nome);\n\t}",
"public void disabilitaRegolaConDispositivo(String nomeDispositivo) {\n String[] regole = readRuleFromFile().split(\"\\n\");\n for (String s : regole) {\n try {\n ArrayList<String> disps = verificaCompRegola(s);\n\n if (disps.contains(nomeDispositivo)) {\n cambiaAbilitazioneRegola(s,false);\n }\n\n } catch (Exception e) {\n String msg = e.getMessage();\n }\n\n if (s.contains(nomeDispositivo)) {\n cambiaAbilitazioneRegola(s, false);\n }\n }\n }",
"public void setName(String name) {\n\t\tthis.nome = name;\n\t}",
"public void setNome(String nomeAeroporto)\n {\n this.nome = nomeAeroporto;\n }",
"public Tipo findByFullName(String nombre) throws TipoDaoException;",
"public void setNome(String nome) {\r\n\t\tthis.nome = nome;\r\n\t}",
"public void setNome(String nome) {\r\n\t\t// QUALIFICADOR = THIS\r\n\t\tthis.nome = nome;\r\n\t}",
"@Quando(\"^insiro uma conta com nome \\\"(.*?)\\\" na rota \\\"(.*?)\\\"$\")\n\tpublic void insiro_uma_conta_com_nome(String nome, String rota) throws Throwable {\n\t\t\n\t\tvResponse = \n\t\tgiven()\n\t\t\t.header(\"Authorization\", \"JWT \" + BaseStep.token)\n\t\t\t.body(BaseStep.conta)\n\t\t\t.log().all()\n\t\t.when()\n\t\t\t.post(rota)\n\t\t.then()\n\t\t.log().all()\n\t\t;\n\t\t\n\t\tsetvResponse(vResponse);\n\t}",
"public void setNome(String nome) {\n\t\tthis.nome = nome;\n\t}",
"public void setNome(String nome) {\n\t\tthis.nome = nome;\n\t}",
"public void setNome(String nome) {\n\t\tthis.nome = nome;\n\t}",
"public void setNome(String nome) {\n\t\tthis.nome = nome;\n\t}",
"public void setName(String name)\r\n\t{\r\n\t\tthis.nome = nome;\r\n\t}",
"public void setNome (String nome) {\r\n\t\tthis.nome=nome;\r\n\t}",
"@Override\n public boolean containsNameCurso(String Curso) {\n try {\n Curso curso = (Curso) this.findByNameCurso(Curso);\n if(Curso.equals(curso.getNombre())){\n return true;\n } ;\n } catch (Exception ex) {\n //Exception Handler\n }\n return false;\n }",
"@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn nome;\n\t\t\t}",
"private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }",
"@Override\n public void agregarSocio(String nombre, int dni, int codSocio) {\n }",
"String getNome();",
"public void setNomDistrito(String nomDistrito);",
"public void setNome(String pNome){\n this.nome = pNome;\n }",
"private void filterPerName(EntityManager em) {\n System.out.println(\"Please enter the name: \");\n Scanner sc = new Scanner(System.in);\n //Debug : String name = \"Sel\";\n\n String name = sc.nextLine();\n\n TypedQuery<Permesso> query = em.createQuery(\"select p from com.hamid.entity.Permesso p where p.nome like '%\"+ name\n + \"%'\" , Permesso.class);\n\n List<Permesso> perList = query.getResultList();\n\n for (Permesso p : perList) {\n System.out.println(p.getNome());\n }\n }",
"public void actualizarNombrePoder(){\n\t\tString name = ( game.getCurrentSorpresa() == null )?\"No hay sorpresa\":game.getCurrentSorpresa().getClass().getName();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t}",
"private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }",
"void setNome(String nome);",
"private static String getRegattaName() {\n\t\tString name = \"\";\n\n\t\tSystem.out.println(\"\\nPlease enter a name for the regatta...\");\n\t\tdo {\n\t\t\tSystem.out.print(\">>\\t\");\n\t\t\tname = keyboard.nextLine().trim();\n\t\t\tif(\"exit\".equals(name)) goodbye();\n\t\t} while(!isValidRegattaName(name) || name.length() == 0);\n\n\t\treturn name;\n\t}",
"public void cargarNombre() {\n\n System.out.println(\"Indique nombre del alumno\");\n nombre = leer.next();\n nombres.add(nombre);\n\n }",
"public void setNomor(String nomor) {\n this.nomor = nomor;\n }",
"public void setnombre(String nombre){\n this.nombre = nombre;\n }",
"private static void concretizarAtribuicao(String nome) {\n\t\tif (gestor.atribuirLugar(nome))\n\t\t\tSystem.out.println(\"ATRIBUICAO de lugar a \" + nome);\n\t\telse\n\t\t\tSystem.out.println(\"ERRO: Nao foi possivel atribuir lugar a \" + nome);\n\t}",
"public bebedor(String nombre)\n {\n // initialise instance variables\n this.nombre = nombre;\n alcoholimetro = 0;\n }",
"public Fruitore(String nomeUtente)\r\n\t{\r\n\t\tthis.nomeUtente = nomeUtente;\r\n\t}",
"public void registrarCompraIngrediente(String nombre, int cantidad, int precioCompra, int tipo) {\n //Complete\n }",
"public void alterarDadosCadastraisNomeInvalido(String nome) {\n\t\tAlterarDadosCadastraisPage alterarDadosCadastraisPage = new AlterarDadosCadastraisPage(driver);\n\t\talterarDadosCadastraisPage.getInputNome().clear();\n\t\talterarDadosCadastraisPage.getInputNome().sendKeys(nome);\n\t\talterarDadosCadastraisPage.getButtonSalvar().click();\n\t}",
"public void setNombreCompleto(String aNombreCompleto) {\r\n nombreCompleto = aNombreCompleto;\r\n }",
"public cABCEmpleados(String nombre) {\r\n this._Nombre = nombre;\r\n }",
"public Objetivo(final String nome) {\n validaNome(nome);\n this.nome = nome;\n this.subObjetivos = new LinkedList<>();\n this.viewSubObjetivos = unmodifiableList(subObjetivos);\n }",
"public void setNombreLibro(String nombreNuevoLibro)\n {\n this.nombre = nombreNuevoLibro;\n }",
"public List<Filme> buscarPeloNome(String nome) {\n EntityManager gerenciador = JPAUtil.getGerenciador();\r\n\r\n //Criando a consulta ao BD\r\n TypedQuery<Filme> consulta = gerenciador.createQuery(\r\n \"Select f from Filme f where f.nome like :nome\",\r\n Filme.class);\r\n\r\n //Substituindo o parametro :nome pelo valor da variavel n\r\n consulta.setParameter(\"nome\", nome + \"%\");\r\n\r\n //Retornar os dados\r\n return consulta.getResultList();\r\n\r\n }",
"Professor procurarNome(String nome) throws ProfessorNomeNExisteException;",
"@Override\n\tpublic String findOneByName(final String nombreParametro) {\n\t\tString valor = Constante.SPATIU;\n\t\tif (propriedadesRepository.findOneByName(nombreParametro) != null) {\n\t\t\tvalor = propriedadesRepository.findOneByName(nombreParametro).getValue();\n\t\t}\n\n\t\treturn valor;\n\t}",
"public void inserirContato() {\n\t\tSystem.out.println(\"Digite o nome do novo contato: \");\n\t\tString contato = scanner.nextLine();\n\t\tlistaDeContatos.add(contato);\n\t}",
"private int contar(String nombre) {\n int c = 0;\n for (Nodo<Integer, Reservacion> th1 : this.th) {\n if (th1 != null && th1.value.Cliente().equals(nombre)) {\n c++;\n }\n }\n return c;\n }",
"public Identificador(String name) {\r\n this.name = name;\r\n }",
"public List<Funcionario> buscaPorNome(String nome) {\r\n session = HibernateConexao.getSession();\r\n session.beginTransaction().begin();\r\n// Query query=session.createSQLQuery(sqlBuscaPorNome).setParameter(\"nome\", nome);\r\n List list = session.createCriteria(classe).add(Restrictions.like(\"nome\", \"%\" + nome + \"%\")).list();\r\n session.close();\r\n return list;\r\n }",
"public Ingrediente buscarIngrediente(String nombre) {\n Ingrediente ingrediente = null;\n \n for(int i = 0; i < this.ingredientes.size(); i++) {\n \n if(nombre.equals(this.ingredientes.get(i))) {\n ingrediente = this.ingredientes.get(i);\n }\n \n }\n \n return ingrediente;\n }",
"public String getNombreCompleto();",
"public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }",
"public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }",
"public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }",
"public void pesquisarNome() {\n\t\tSystem.out.println(this.nomePesquisa);\n\t\tthis.alunos = this.alunoDao.listarNome(this.nomePesquisa);\n\t\tthis.quantPesquisada = this.alunos.size();\n\t}",
"@Override\n public String toString() {\n return nome + placa;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"@Override\n\tpublic Ingreso getIngresoByName(String nameIngreso) {\n\t\treturn (Ingreso) getCxcSession().createQuery(\"from Ingreso where nombre = :nameIngreso\")\n\t\t\t\t.setParameter(\"nameIngreso\", nameIngreso).uniqueResult();\n\t}",
"@Test\n\tpublic void findByNameTest1() {\n\t\tLinija line = linijaService.findByName(\"linija\");\n\t\t\n\t\tassertNotEquals(null, line);\n\t}",
"String getUltimoNome();",
"Casilla(String nombre){\n this.nombre=nombre; \n }",
"private void generarNombre() {\r\n\t\tthis.nombre = NOMBRES[(int) (Math.random() * NOMBRES.length)];\r\n\t}",
"public Boolean buscarNome(String nome){\n return this.resultado = statusChamadoDAO.buscarNome(nome);\n }",
"public void setNombre(String nom) {\n this.nombre = nom;\n }",
"public void setNomeCurso(String nome)\n\t{\n\t\tcursoNome = nome;\n\t\tSystem.out.printf(\"Modificado o nome do curso %s\\n\", inicioCurso.getHoraAtual());\n\t}",
"public void agregarRobot(String nombre);",
"public void setNombre(String nombre) {// ---> SE DEBE PONER EN EL PARAMETRO EL MISMO NOMBRE DEL ATRIBUTO DECLARADO.\r\n\t\tthis.nombre = nombre;\r\n\t}",
"String getPrimeiroNome();",
"public Etiqueta buscador(String nombreEtiqueta){\n for(int i = 0;i < listaEtiquetas.size();i++){\n if(this.listaEtiquetas.get(i).getEtiqueta().equals(nombreEtiqueta)){ //Si coincide el nombre de la etiqueta, se retorna\n return this.listaEtiquetas.get(i);\n }\n }\n return null;\n }",
"private TIPO_REPORTE(String nombre)\r\n/* 55: */ {\r\n/* 56: 58 */ this.nombre = nombre;\r\n/* 57: */ }",
"@Override\r\n\tpublic final String getNombreRaza() {\r\n\t\treturn \"Orco\";\r\n\t}",
"public List<Contato> getContatosByName(String nome) throws SQLException {\n QueryBuilder<Contato, Integer> queryBuilder =\n contatoDao.queryBuilder();\n // the 'password' field must be equal to \"qwerty\"\n queryBuilder.where().like(\"(nome || sobrenome)\", \"%\"+nome+\"%\");\n // prepare our sql statement\n PreparedQuery<Contato> preparedQuery = queryBuilder.prepare();\n // query for all accounts that have \"qwerty\" as a password\n List<Contato> contatos = contatoDao.query(preparedQuery);\n\n return contatos;\n }",
"@Override\n public boolean containsNameProfesor(String Name) {\n try {\n Entity retValue = null; \n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT * FROM persona where nombre = ?\");\n\n pstmt.setString(1, Name);\n\n rs = pstmt.executeQuery();\n\n if (rs.next()) {\n return true; \n } \n \n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n return false;\n }",
"public String getNome();"
] | [
"0.6919754",
"0.6897671",
"0.67677814",
"0.67498434",
"0.67475325",
"0.6687891",
"0.6668084",
"0.6637194",
"0.65479237",
"0.6477854",
"0.64705557",
"0.6457189",
"0.6451188",
"0.64117324",
"0.64117324",
"0.6407038",
"0.6407038",
"0.6407038",
"0.6396832",
"0.63427913",
"0.63217735",
"0.63043517",
"0.6283064",
"0.6272112",
"0.6252296",
"0.62462837",
"0.62456363",
"0.6237688",
"0.62260824",
"0.62260824",
"0.62260824",
"0.62260824",
"0.6225814",
"0.62228113",
"0.6212984",
"0.62114954",
"0.6210336",
"0.62050354",
"0.6193586",
"0.6180529",
"0.61735564",
"0.61653334",
"0.61527216",
"0.6150902",
"0.6145912",
"0.6120791",
"0.61056453",
"0.60890573",
"0.6087857",
"0.6084025",
"0.6059617",
"0.60591",
"0.6043732",
"0.60375947",
"0.6033565",
"0.6030676",
"0.6020003",
"0.6019992",
"0.6001759",
"0.6001055",
"0.5999533",
"0.5995933",
"0.59955436",
"0.5994166",
"0.59931",
"0.5990157",
"0.598622",
"0.59752935",
"0.59752935",
"0.59752935",
"0.5964749",
"0.5959735",
"0.5956361",
"0.5956361",
"0.5956361",
"0.5956361",
"0.5956361",
"0.5956361",
"0.5956361",
"0.5956361",
"0.5956361",
"0.5956361",
"0.5956361",
"0.5956361",
"0.59529364",
"0.5952849",
"0.59502286",
"0.59492993",
"0.594892",
"0.59475803",
"0.59457594",
"0.59441775",
"0.5942532",
"0.5938597",
"0.59305483",
"0.59263813",
"0.59243006",
"0.5916116",
"0.59149647",
"0.59148806",
"0.59091735"
] | 0.0 | -1 |
Disabilita regole che contengono il dispositivo dal nome specificato | public void disabilitaRegolaConDispositivo(String nomeDispositivo) {
String[] regole = readRuleFromFile().split("\n");
for (String s : regole) {
try {
ArrayList<String> disps = verificaCompRegola(s);
if (disps.contains(nomeDispositivo)) {
cambiaAbilitazioneRegola(s,false);
}
} catch (Exception e) {
String msg = e.getMessage();
}
if (s.contains(nomeDispositivo)) {
cambiaAbilitazioneRegola(s, false);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Contato buscaContatoNome(String nome) {\n\t\treturn null;\n\t}",
"Ris(String nome) {\n this.nome = nome;\n }",
"public Modul buscarModul(String nomModul) throws ExceptionBuscar;",
"public Vendedor buscarVendedorPorNome(String nome);",
"public MacchinaStatiFiniti(String nome)\r\n\t{\r\n\t\tthis.nome=nome;\r\n\t\tcorrente=null;\r\n\t}",
"public void setNombreCompleto(String nombreCompleto);",
"public Libro recupera(String nombre);",
"public void setNomDistrito(String nomDistrito);",
"public void alterarDadosCadastraisNomeInvalido(String nome) {\n\t\tAlterarDadosCadastraisPage alterarDadosCadastraisPage = new AlterarDadosCadastraisPage(driver);\n\t\talterarDadosCadastraisPage.getInputNome().clear();\n\t\talterarDadosCadastraisPage.getInputNome().sendKeys(nome);\n\t\talterarDadosCadastraisPage.getButtonSalvar().click();\n\t}",
"private void enviarRequisicaoPerguntarNome() {\n try {\n String nome = NomeDialogo.nomeDialogo(null, \"Informe o nome do jogador\", \"Digite o nome do jogador:\", true);\n if (servidor.verificarNomeJogador(nome)) {\n nomeJogador = nome;\n comunicacaoServico.criandoNome(this, nome, \"text\");\n servidor.adicionarJogador(nome);\n servidor.atualizarLugares();\n } else {\n JanelaAlerta.janelaAlerta(null, \"Este nome já existe/inválido!\", null);\n enviarRequisicaoPerguntarNome();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void setNome(String nome) {\r\n this.nome = nome;\r\n }",
"public void setNome(String nome) {\r\n this.nome = nome;\r\n }",
"public void setNome(String nome) {\n this.nome = nome;\n }",
"public void setNome(String nome) {\n this.nome = nome;\n }",
"public void setNome(String nome) {\n this.nome = nome;\n }",
"public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }",
"public void setNome(String nome){\r\n this.nome = nome;\r\n }",
"Filmes(String nome,String genero){\n\t\tthis.nome = nome;\n\t\tthis.genero = genero;\n\t}",
"public void setNomor(String nomor) {\n this.nomor = nomor;\n }",
"private void filterPerName(EntityManager em) {\n System.out.println(\"Please enter the name: \");\n Scanner sc = new Scanner(System.in);\n //Debug : String name = \"Sel\";\n\n String name = sc.nextLine();\n\n TypedQuery<Permesso> query = em.createQuery(\"select p from com.hamid.entity.Permesso p where p.nome like '%\"+ name\n + \"%'\" , Permesso.class);\n\n List<Permesso> perList = query.getResultList();\n\n for (Permesso p : perList) {\n System.out.println(p.getNome());\n }\n }",
"public void setNome(String nome) {\r\n\t\tthis.nome = nome;\r\n\t}",
"public void actualizarNombrePoder(){\n\t\tString name = ( game.getCurrentSorpresa() == null )?\"No hay sorpresa\":game.getCurrentSorpresa().getClass().getName();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t}",
"public void asignarNombre(String name);",
"ParqueaderoEntidad agregar(String nombre);",
"public void setNome(String nome) {\n\t\tthis.nome = nome;\n\t}",
"public void setNome(String nome) {\n\t\tthis.nome = nome;\n\t}",
"public void setNome(String nome) {\n\t\tthis.nome = nome;\n\t}",
"public void setNome(String nome) {\n\t\tthis.nome = nome;\n\t}",
"public void setNome (String nome) {\r\n\t\tthis.nome=nome;\r\n\t}",
"private static void concretizarRegisto(String nome, int escalao) {\n\t\tif (gestor.registarFuncionario(nome, escalao))\n\t\t\tSystem.out.println(\"REGISTO do funcionario \" + nome + \" com escalao \" + escalao);\n\t\telse \n\t\t\tSystem.out.println(\"ERRO: Nao foi possivel registar o funcionario \" + nome);\n\t}",
"public void setNome(String nome) {\r\n\t\t// QUALIFICADOR = THIS\r\n\t\tthis.nome = nome;\r\n\t}",
"@Override\n public boolean containsNameCurso(String Curso) {\n try {\n Curso curso = (Curso) this.findByNameCurso(Curso);\n if(Curso.equals(curso.getNombre())){\n return true;\n } ;\n } catch (Exception ex) {\n //Exception Handler\n }\n return false;\n }",
"public void updateName() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n userFound.setNombre(objcliente.getNombre());\n clientefacadelocal.edit(userFound);\n objcliente = new Cliente();\n mensaje = \"sia\";\n } else {\n mensaje = \"noa\";\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n mensaje = \"noa\";\n System.out.println(\"El error al actualizar el nombre es \" + e);\n }\n }",
"void rezervasyonYap(String name, String surname, String islem);",
"public void setNome(String nomeAeroporto)\n {\n this.nome = nomeAeroporto;\n }",
"public void setNome(String pNome){\n this.nome = pNome;\n }",
"public void removeAttrezzo(String nomeAttrezzo) {\r\n\t\tAttrezzo a = new Attrezzo(nomeAttrezzo, 0);\r\n\t\tif(this.attrezzi.contains((a)))\r\n\t\t\t\tattrezzi.remove(attrezzi.get(attrezzi.indexOf(a)));\r\n\t}",
"public void setName(String name) {\n\t\tthis.nome = name;\n\t}",
"@Quando(\"^insiro uma conta com nome \\\"(.*?)\\\" na rota \\\"(.*?)\\\"$\")\n\tpublic void insiro_uma_conta_com_nome(String nome, String rota) throws Throwable {\n\t\t\n\t\tvResponse = \n\t\tgiven()\n\t\t\t.header(\"Authorization\", \"JWT \" + BaseStep.token)\n\t\t\t.body(BaseStep.conta)\n\t\t\t.log().all()\n\t\t.when()\n\t\t\t.post(rota)\n\t\t.then()\n\t\t.log().all()\n\t\t;\n\t\t\n\t\tsetvResponse(vResponse);\n\t}",
"Professor procurarNome(String nome) throws ProfessorNomeNExisteException;",
"public void setName(String name)\r\n\t{\r\n\t\tthis.nome = nome;\r\n\t}",
"public void removeFornecedor(String nome) {\n\t\tUtil.testaNull(nome, \"Erro na remocao do fornecedor: nome do fornecedor nao pode ser vazio ou nulo.\");\n\t\tUtil.testaVazio(nome, \"Erro na remocao do fornecedor: nome do fornecedor nao pode ser vazio ou nulo.\");\n\n\t\tif (!this.fornecedores.containsKey(nome)) {\n\t\t\tthrow new IllegalArgumentException(\"Erro na remocao do fornecedor: fornecedor nao existe.\");\n\t\t}\n\n\t\tthis.fornecedores.remove(nome);\n\n\t\tfor (int i = 0; i < this.nomesCadastrados.size(); i++) {\n\t\t\tif (this.nomesCadastrados.get(i).equals(nome)) {\n\t\t\t\tthis.nomesCadastrados.remove(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"private void addVeiculo(String nome) {\n\t\t\n\t\tlist.setModel(dm);\n\t\tdm.addElement(nome);\n\t}",
"public void setNombreLibro(String nombreNuevoLibro)\n {\n this.nombre = nombreNuevoLibro;\n }",
"void setNome(String nome);",
"private static void concretizarAtribuicao(String nome) {\n\t\tif (gestor.atribuirLugar(nome))\n\t\t\tSystem.out.println(\"ATRIBUICAO de lugar a \" + nome);\n\t\telse\n\t\t\tSystem.out.println(\"ERRO: Nao foi possivel atribuir lugar a \" + nome);\n\t}",
"public void nommerHeros() {\n\t\tSystem.out.println(\"\\nComment voulez vous appeler votre personnage ?\");\n\t\tthis.nom = Clavier.entrerClavierString();\n\t\tSystem.out.println(\"\\n*********Bienvenue dans le labyrinthe \" + getNom()+\"*********\");\n\t}",
"private static String getRegattaName() {\n\t\tString name = \"\";\n\n\t\tSystem.out.println(\"\\nPlease enter a name for the regatta...\");\n\t\tdo {\n\t\t\tSystem.out.print(\">>\\t\");\n\t\t\tname = keyboard.nextLine().trim();\n\t\t\tif(\"exit\".equals(name)) goodbye();\n\t\t} while(!isValidRegattaName(name) || name.length() == 0);\n\n\t\treturn name;\n\t}",
"public void deleteByName(String nume) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tString query = deleteQuery(\"nume\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setString(1, nume);\n\t\t\tst.executeUpdate();\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:deleteByName\" + e.getMessage());\n\t\t}\n\t}",
"public void setnombre(String nombre){\n this.nombre = nombre;\n }",
"public DTEdicionCurso mostrarEdicionVigente(String nomCurso) throws CursoExcepcion;",
"public java.lang.String exibeMapeamento (java.lang.String nome) {\r\n return this._delegate.exibeMapeamento(nome);\r\n }",
"public void setNombre(String nom) {\n this.nombre = nom;\n }",
"private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }",
"@Override\n public void agregarSocio(String nombre, int dni, int codSocio) {\n }",
"private static void obterNumeroLugar(String nome) {\n\t\tint numero = gestor.obterNumeroLugar(nome);\n\t\tif (numero > 0)\n\t\t\tSystem.out.println(\"O FUNCIONARIO \" + nome + \" tem LUGAR no. \" + numero);\n\t\telse\n\t\t\tSystem.out.println(\"NAO EXISTE LUGAR de estacionamento atribuido a \" + nome);\n\t}",
"public void setNomeCurso(String nome)\n\t{\n\t\tcursoNome = nome;\n\t\tSystem.out.printf(\"Modificado o nome do curso %s\\n\", inicioCurso.getHoraAtual());\n\t}",
"@Test\n\tpublic void findByNameTest1() {\n\t\tLinija line = linijaService.findByName(\"linija\");\n\t\t\n\t\tassertNotEquals(null, line);\n\t}",
"public void cargarNombre() {\n\n System.out.println(\"Indique nombre del alumno\");\n nombre = leer.next();\n nombres.add(nombre);\n\n }",
"public abstract Setusuario buscarUsuario(String nomUsuario);",
"private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }",
"public void insere (String nome)\n {\n //TODO\n }",
"public Objetivo(final String nome) {\n validaNome(nome);\n this.nome = nome;\n this.subObjetivos = new LinkedList<>();\n this.viewSubObjetivos = unmodifiableList(subObjetivos);\n }",
"public Tipo findByFullName(String nombre) throws TipoDaoException;",
"public void setNome(String unNome) {\r\n\t\tnomeReport = unNome;\r\n\t}",
"public void setNombre(String nombre) {// ---> SE DEBE PONER EN EL PARAMETRO EL MISMO NOMBRE DEL ATRIBUTO DECLARADO.\r\n\t\tthis.nombre = nombre;\r\n\t}",
"public void pesquisarNome() {\n\t\tSystem.out.println(this.nomePesquisa);\n\t\tthis.alunos = this.alunoDao.listarNome(this.nomePesquisa);\n\t\tthis.quantPesquisada = this.alunos.size();\n\t}",
"public void setNombreCompleto(String aNombreCompleto) {\r\n nombreCompleto = aNombreCompleto;\r\n }",
"public void setNom(String nom){\n this.nom = nom;\n }",
"@Override\r\n\tpublic Plate findByName(String nom) {\n\t\treturn null;\r\n\t}",
"public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }",
"public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }",
"public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }",
"public void borrarUsuario(String ident){\r\n listaPlantilla.get(obtenerPosicionUsuario(ident)).setControl(\"borrar\");\r\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(String nombre) {\n this.nombre = nombre;\n }",
"public void setNom(String p_onom);",
"public boolean removeCurso(String nome) {\n\t\tBoolean testa = false;\n\n\t\tfor (int i = 0; i < CURSOS.size(); i++) {\n\t\t\tif (CURSOS.get(i).getNomeCurso().equals(nome)) {\n\n\t\t\t\tBASE.removeCurso(nome);\n\t\t\t\tCURSOS.remove(i);\n\t\t\t\ttesta = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (testa == true) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"private Ingrediente givenExisteUnIngrediente() {\n\t\tIngrediente ing = new Ingrediente();\n\t\ting.setId_categoriaIngrediente(1);\n\t\ting.setNombre(\"TOMATE\");\n\t\treturn ing;\n\t}",
"public CensoCCVnoREMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }",
"public Repertoire(String nom) throws mesExceptions {\r\n super(nom);\r\n nbElem = 0;\r\n }",
"public void setNombre(String nombre){\n\tthis.nombre = nombre;\n }",
"private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}",
"public List<Filme> buscarPeloNome(String nome) {\n EntityManager gerenciador = JPAUtil.getGerenciador();\r\n\r\n //Criando a consulta ao BD\r\n TypedQuery<Filme> consulta = gerenciador.createQuery(\r\n \"Select f from Filme f where f.nome like :nome\",\r\n Filme.class);\r\n\r\n //Substituindo o parametro :nome pelo valor da variavel n\r\n consulta.setParameter(\"nome\", nome + \"%\");\r\n\r\n //Retornar os dados\r\n return consulta.getResultList();\r\n\r\n }",
"@Override\n\tpublic List<UsuariosEntity> findAdminNom(String nombres) {\n\t\treturn (List<UsuariosEntity>) iUsuarios.findAdminNom(nombres);\n\t}",
"public Ingrediente buscarIngrediente(String nombre) {\n Ingrediente ingrediente = null;\n \n for(int i = 0; i < this.ingredientes.size(); i++) {\n \n if(nombre.equals(this.ingredientes.get(i))) {\n ingrediente = this.ingredientes.get(i);\n }\n \n }\n \n return ingrediente;\n }",
"public void setNombre(String nombre)\n {\n this.nombre = nombre;\n }",
"public String FindModerateur(String nomGroupe) throws SQLException{\n\t\t\tString req =\"Select NomComptePers from Groupe where NomGroupe= ? \";\n\t\t\tPreparedStatement ps=DBConfig.getInstance().getConn().prepareStatement(req);\n\t\t\tps.setString(1,nomGroupe);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\trs.next();\n\t\t\treturn rs.getString(1);\t\n\t\t\t\n\t\t}",
"public List<Entreprise> rechercheEntreprise(String Nom) throws EntrepriseInconnueException {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Entreprise> E = em.createQuery(\"from Entreprise e where nom like '%' || :name \\n'%'\")\n\t\t\t\t.setParameter(\"name\", Nom).getResultList();\n\t\tif (E == null)\n\t\t\tthrow new EntrepriseInconnueException();\n\t\telse\n\t\t\treturn E;\n\t}",
"public Identificador(String name) {\r\n this.name = name;\r\n }"
] | [
"0.6809485",
"0.662256",
"0.6583952",
"0.6461385",
"0.64146876",
"0.6398463",
"0.6337899",
"0.63043654",
"0.6280628",
"0.625715",
"0.6240839",
"0.6240839",
"0.6232855",
"0.6232855",
"0.6232855",
"0.6197262",
"0.61897075",
"0.61515343",
"0.6126569",
"0.6126261",
"0.6121757",
"0.6120452",
"0.61080223",
"0.61066306",
"0.6101052",
"0.6101052",
"0.6101052",
"0.6101052",
"0.6097779",
"0.6097773",
"0.60840625",
"0.6072025",
"0.605911",
"0.60414904",
"0.6037971",
"0.60112065",
"0.5985753",
"0.59803814",
"0.5962062",
"0.5934112",
"0.5912986",
"0.59084475",
"0.59041923",
"0.5893731",
"0.587145",
"0.5862329",
"0.5861764",
"0.58507526",
"0.5846772",
"0.58439523",
"0.5842808",
"0.58405185",
"0.5832653",
"0.5827989",
"0.58187115",
"0.5805948",
"0.58032745",
"0.5797089",
"0.5796862",
"0.57866293",
"0.57817066",
"0.57784474",
"0.5777587",
"0.5764102",
"0.57635635",
"0.5762646",
"0.5760148",
"0.5752778",
"0.57504594",
"0.5748941",
"0.57430625",
"0.57430625",
"0.57430625",
"0.5728217",
"0.5717356",
"0.5717356",
"0.5717356",
"0.5717356",
"0.5717356",
"0.5717356",
"0.5717356",
"0.5717356",
"0.5717356",
"0.5717356",
"0.5717356",
"0.5717356",
"0.5715214",
"0.5714805",
"0.57039106",
"0.5691498",
"0.5690827",
"0.56762356",
"0.5664878",
"0.56637263",
"0.56600815",
"0.5657359",
"0.5655484",
"0.5653522",
"0.5652701",
"0.5650943"
] | 0.7153625 | 0 |
Valuta una disuglianza temporale, un confronto tra misure temporale: time(valore corrente) op(operatore) time2(istante temporale specificato) | private boolean evalTimeExp(String[] expTok) {
Date currentDate = Calendar.getInstance().getTime();
Date confDate = getTime(expTok[2]);
String operator = expTok[1];
if (operator.startsWith("<")) {
if (operator.endsWith("="))
return currentDate.compareTo(confDate) <= 0;
else
return currentDate.compareTo(confDate) < 0;
} else if (operator.startsWith(">")) {
if (operator.endsWith("="))
return currentDate.compareTo(confDate) >= 0;
else
return currentDate.compareTo(confDate) > 0;
} else {
return currentDate.compareTo(confDate) == 0;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String auxOperacion(int operando1, int operando2, String valor1, String valor2, int op) {\n if (ManejadorMemoria.isInt(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n System.out.println(valor1 + \" \" + valor2 + \" \" + (Integer.parseInt(valor1) > Integer.parseInt(valor2)));\n return (Integer.parseInt(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Integer.parseInt(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isFloat(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isString(operando1)) {\n return valor1 + valor2;\n } else if(ManejadorMemoria.isBool(operando1)){\n switch(op){\n case Codigos.AND:\n return (Boolean.parseBoolean(valor1) && Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.OR:\n return (Boolean.parseBoolean(valor1) || Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.NOT:\n return (! Boolean.parseBoolean(valor1))+ \"\";\n }\n }\n\n return \"\";\n }",
"public static void doit(String fileName) {\n\t\tSystem.out.println(\"****矩阵形式-正域(减)******\"+fileName+\"上POSD的运行时间\"+\"***********\");\r\n\t\tlong time[]=new long[8];\r\n\t\tint t=0;//time下标\r\n\t\t\r\n\t\tList<Integer> preRED=null;\r\n\t List<Integer> nowRED = null;\r\n\r\n\t // 创建DataPreprocess对象data1 \r\n\t DataPreprocess data1=new DataPreprocess(fileName);\r\n\t \r\n\t int k=0,sn=data1.get_origDSNum();\r\n\t int m1=sn/10,m=m1>0?m1:1;\r\n\t int count=sn-(int)(0.2*sn);//保持与增加对象的约简结果一致\r\n\t data1.dataRatioSelect(0.2);\r\n\t \r\n\t preRED=new ArrayList<Integer>();\r\n\t nowRED=new ArrayList<Integer>();\r\n\t \r\n\t ArrayList<ArrayList<Integer>> addData=data1.get_origDS();//交换位置,把原数据前面20%放置到后面,为了保持与对象增加一致\r\n\t ArrayList<ArrayList<Integer>> origData=data1.get_addDS();\r\n\t origData.addAll(addData);\t \t \r\n\t \r\n\t data1=null;\r\n\t\t \r\n\t Iterator<ArrayList<Integer>> value = origData.iterator();\r\n\t \r\n\t ArrayList<ArrayList<Integer>> result_POS=new ArrayList<ArrayList<Integer>>();\r\n\t ArrayList<Integer> POS_Reduct=new ArrayList<Integer>();\r\n\t ArrayList<Integer> original_POS=new ArrayList<Integer>();\r\n\t ArrayList<Integer> original_reduct=new ArrayList<Integer>();\r\n\t int[][] original_sys;\r\n\t ArrayList<Integer> P=new ArrayList<Integer>();\r\n\t IDS_POSD im1=new IDS_POSD(origData);\r\n\t \r\n\t POS_Reduct=im1.getPOS_Reduct(im1.getUn());\t \r\n\t original_POS=im1.getPOS(im1.getUn(),POS_Reduct);\r\n\t \r\n\t original_reduct.addAll(POS_Reduct);\r\n\t \t \r\n\t //original_sys=im1.getUn();\r\n\t int n1=im1.getUn().length;//原决策系统Un包含n个对象\r\n\t int s1=im1.getUn()[0].length;//m个属性,包含决策属性\t\r\n\t original_sys=new int[n1][s1];\r\n\t for(int i=0;i<n1;i++)\r\n\t \t for(int j=0;j<s1;j++)\r\n\t \t\t original_sys[i][j]=im1.getUn()[i][j];\r\n\r\n\t IDS_POSD im2=new IDS_POSD();\r\n\t \r\n\t ArrayList<Integer> temp=new ArrayList<Integer>();\r\n\t long startTime = System.currentTimeMillis(); //获取开始时间\r\n\t\t while (value.hasNext()) {\r\n\t\t\t \t\r\n\t\t\t temp.addAll(value.next());//System.out.println(temp);\r\n\t\t\t\tim2.setUn(origData);\r\n\t\t\t\tim2.setUx(temp);\t\r\n\t\t\t\tresult_POS=im2.SHU_IARS(im2.getUn(),original_reduct,original_POS,im2.getUx());\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t original_reduct=result_POS.get(0);\r\n\t\t\t original_POS=result_POS.get(1);\r\n\t\t\t \r\n\t\t\t\tk++;\r\n\t\t\t\tcount--;\r\n\t\t\t\tif(k%m==0){\r\n\t\t\t\t\t\r\n\t\t\t\t\tlong endTime=System.currentTimeMillis(); //获取结束时间 \r\n\t\t\t\t\ttime[t++]=endTime-startTime;//输出每添加10%数据求约简的时间\r\n\t\t\t\t\tif(t==8)\r\n\t\t\t\t\t\tt--;\r\n\t\t\t\t}\r\n\t\t\t\tvalue.remove();\r\n\t\t\t\ttemp=new ArrayList<Integer>();//.clear();\r\n\t\t\t\tif (count==0)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t \r\n\t\t for(int i=0;i<8;i++)\t\t\t\t\r\n\t\t\t System.out.print((double)time[i]/1000+\" \"); \r\n\r\n\t\t System.out.println(\"\\n\"+fileName+\"上POSD的约简为:\"+result_POS.get(0)+\"\\n\");\t\t\r\n\t}",
"protected void twoOpt(int tpsLimite, long tpsDebut, Tournee tournee, Map<String, Map<String, Chemin>> plusCourtsChemins, HashMap<String, Intersection> intersections) {\n\t\tint nbChemins = tournee.getPlusCourteTournee().size();\n\t\t\n\t\twhile(System.currentTimeMillis() - tpsDebut < tpsLimite){\n\t\t\tIterator<Chemin> it = tournee.getPlusCourteTournee().iterator();\n\t\t\t\n\t\t\t//Initialisation nouvelle map ordreNoeuds pour le 2-opt - ordre dans la tournee qu'on calcule\n\t\t\t//Pour chaque chemin c'est le noeuds de depart qui est mis ici\n\t\t\tHashMap<String, Integer> ordreNoeuds = new HashMap<String, Integer>();\n\t\t\tfor (HashMap.Entry<String, Intersection> iterator : intersections.entrySet()) {\n\t\t \tordreNoeuds.put( iterator.getKey(), -1 );\n\t\t\t}\n\t\t\t\n\t\t\t//Algo 2-Opt\n\t\t\tint i = 0 ;\n\t\t\twhile(it.hasNext() && i<(nbChemins - 2)) {\n\t\t\t\tChemin chemin = it.next();\n\t\t\t\tordreNoeuds.replace(chemin.getPremiere().getId(), i);\n\t\t\t\tArrayList<String> noeudsUpdate = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\tint j = 0 ;\n\t\t\t\tIterator<Chemin> it2 = tournee.getPlusCourteTournee().iterator();\n\t\t\t\twhile(it2.hasNext() && j<nbChemins) {\n\t\t\t\t\tChemin chemin2 = it2.next();\n\t\t\t\t\tif(j>i) {\n\t\t\t\t\t\tordreNoeuds.replace(chemin2.getPremiere().getId(), j);\n\t\t\t\t\t\tnoeudsUpdate.add(chemin2.getPremiere().getId());\n\t\t\t\t\t}\n\t\t\t\t\tif(j>=i+2) {\n\t\t\t\t\t\t//Pour tous les chemins qu'on va mettre dans le sens inverse, on s'assure\n\t\t\t\t\t\t//que pour tous les points de livraison, leur pt d'enlevement est vu avant\n\t\t\t\t\t\t//ou au noeds de depart du premier chemin du swap\n\t\t\t\t\t\tboolean possible = true;\n\t\t\t\t\t\tfor(int count = noeudsUpdate.size()-1; count>0; --count) {\n\t\t\t\t\t\t\tif( intersections.get(noeudsUpdate.get(count)) instanceof PointLivraison ) {\n\t\t\t\t\t\t\t\tString sonPtEnlev = ((PointLivraison)intersections.get(noeudsUpdate.get(count))).getIdEnlevement();\n\t\t\t\t\t\t\t\tif( ordreNoeuds.get(sonPtEnlev) > ordreNoeuds.get(chemin.getPremiere().getId()) ) {\n\t\t\t\t\t\t\t\t\tpossible = false;\n\t\t\t\t\t\t\t\t}\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\tint duree = 0;\n\t\t\t\t\t\tint newDuree = 0;\n\t\t\t\t\t\tif(possible) {\n\t\t\t\t\t\t\t//Calculer la duree standarde\n\t\t\t\t\t\t\tfor(int count = 0; count < noeudsUpdate.size()-1; ++count) {\n\t\t\t\t\t\t\t\tduree += plusCourtsChemins.get(noeudsUpdate.get(count)).get(noeudsUpdate.get(count+1)).getDuree();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tduree += plusCourtsChemins.get(chemin.getPremiere().getId()).get(chemin.getDerniere().getId()).getDuree();\n\t\t\t\t\t\t\tduree += plusCourtsChemins.get(chemin2.getPremiere().getId()).get(chemin2.getDerniere().getId()).getDuree();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Calculer la duree du nouvel ensemble de chemins inverses\n\t\t\t\t\t\t\tfor(int count = 0; count < noeudsUpdate.size()-1; ++count) {\n\t\t\t\t\t\t\t\tnewDuree += plusCourtsChemins.get(noeudsUpdate.get(count+1)).get(noeudsUpdate.get(count)).getDuree();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tnewDuree += plusCourtsChemins.get(chemin.getPremiere().getId()).get(chemin2.getPremiere().getId()).getDuree();\n\t\t\t\t\t\t\tnewDuree += plusCourtsChemins.get(chemin.getDerniere().getId()).get(chemin2.getDerniere().getId()).getDuree();\n\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\tif( possible && newDuree < duree ) {\n\t\t\t\t\t\t\ttwoOptSwap(i, j, chemin, chemin2, noeudsUpdate, ordreNoeuds, tournee, plusCourtsChemins);\n\t\t\t\t\t\t\tchemin = tournee.getPlusCourteTournee().get(i);\n\t\t\t\t\t\t\tchemin2 = tournee.getPlusCourteTournee().get(j);\n\t\t\t\t\t\t\tSystem.out.println(\"possible=\"+possible+\"; oldDuree=\"+duree+\"; newDuree=\"+newDuree);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t++j;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Remet les noeuds qu'on a visite dans la 2eme boucle a l'etat non vus\n\t\t\t\tfor(int count = 0; count<noeudsUpdate.size(); ++count) {\n\t\t\t\t\tordreNoeuds.replace( noeudsUpdate.get(count), -1 );\n\t\t\t\t}\n\t\t\t\t++i;\n\t\t\t}\n\t\t}\n\t}",
"public double Restar(double operador_1, double operador_2){\n return RestaC(operador_1, operador_2);\n }",
"public double getTempoManipulator(int time) {\n if (time < duration * ((double) pStart / 100)) // BEFORE INCREASE\n return roundWithPrecision(pOffset, 3);\n else if (time > duration * (((double) pStart + (double) pDuration) / 100)) // AFTER INCREASE\n return roundWithPrecision(pOffset * pManipulation, 3);\n else // DURING INCREASE\n {\n double startOfIncrease = (((double) pStart) / 100 * duration);\n double lengthOfIncrease = (((double) pDuration) / 100 * duration);\n\n double at = time - startOfIncrease;\n double atModifier = at / lengthOfIncrease;\n return roundWithPrecision(((1 + ((pManipulation - 1) * atModifier)) * pOffset), 3);\n }\n }",
"public String check_loged_time(Operator op){\n String positive = \"соблюдено\";\n String negative = \"не соблюдено\";\n int loged_time_seconds = (int) get_seconds(op.getLoged_time());\n int loged_time_value = (int) get_seconds(loged_time_9);\n int delay_seconds;\n if(op.getShift()==Shift.nine){\n delay_seconds = 32400-loged_time_seconds;\n if(delay_seconds<=loged_time_value)\n return positive;\n else {\n op.setBonus(op.getBonus()-500);\n return negative;\n }\n }\n\n if(op.getShift()==Shift.twelve){\n delay_seconds = 43200-loged_time_seconds;\n if(delay_seconds<=loged_time_value)\n return positive;\n else\n {\n op.setBonus(op.getBonus()-500);\n return negative;\n }\n }\n\n return positive;\n }",
"private void calculaIA(int DiffTime) {\n\ttimerTempoEntreTiros+=DiffTime;\n\t\n\t\t\n\t\tif (round>0) \n\t\t\testado=0;\n\t\telse estado=1;\n\t\t\t\n\t\tif (estado==0) {\n\t\t\trecarregando=(false);\n\n\t\t\tif (timerTempoEntreTiros>=Constantes.HE_tempoEntreTiros) {\n\t\t\t\t\n\t\t\t\tif (atirou&&soltouTiro) {\t\n\t\t\t\t\tsoltouTiro=false;\n\t\t\t\t\tatira();\n\t\t\t\t\ttimerTempoEntreTiros=0;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!atirou)\n\t\t\t\t\tsoltouTiro=true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (estado==1) {\n\t\t\t\n\t\t\t\n\t\t\ttempoRecarrega += DiffTime;\n\t\t\t\n\t\t\trecarregando=(true);\n\t\t\tif (mag<1)\n\t\t\t\testado=2;\n\t\t\t\t\n\t\t\tif (tempoRecarrega>=Constantes.HE_tempoRecarrega) {\n\t\t\t\t\n\t\t\t\tif (mag >=1) {\n\t\t\t\t\ttempoRecarrega=(0);\n\t\t\t\t\tround=(Constantes.HE_round);\n\t\t\t\t\tmag-=1;\n\t\t\t\t\testado=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif (estado==2) {\n\t\t\t\n\t\t\tif (round>0) \n\t\t\t\testado=0;\n\t\t\trecarregando=(false);\n\n\t\t\t\n\t\t}\n\t}",
"private void cpu_jogada(){\n\n for(i=0;i<8;i++){\n for(j=0;j<8;j++){\n if(matriz[i][j] == jd2){\n // verificarAtaque(i,j,jd2);\n //verificarAtaque as posssibilidades de\n // ataque : defesa : aleatorio\n //ataque tem prioridade 1 - ve se tem como comer quem ataca\n //defesa tem prioridade 2 - ou movimenta a peca que esta sob ataque ou movimenta a outa para ajudar\n //aleatorio nao tem prioridade -- caso nao esteja sob ataque ou defesa\n }\n }\n }\n }",
"@Override\n public void operateDTDurationTime(LongPointable longp1, XSTimePointable timep2, DataOutput dOut)\n throws SystemException, IOException {\n abvsInner.reset();\n datetimep1.set(abvsInner.getByteArray(), abvsInner.getStartOffset(),\n XSDateTimePointable.TYPE_TRAITS.getFixedLength());\n datetimep1.setDateTime(DateTime.TIME_DEFAULT_YEAR, DateTime.TIME_DEFAULT_MONTH, DateTime.TIME_DEFAULT_DAY,\n timep2.getHour(), timep2.getMinute(), timep2.getMilliSecond(), timep2.getTimezoneHour(),\n timep2.getTimezoneMinute());\n\n // Subtract.\n DateTime.normalizeDateTime(datetimep1.getYearMonth(), datetimep1.getDayTime() + longp1.getLong(),\n timep2.getTimezoneHour(), timep2.getTimezoneMinute(), dOutInner);\n\n // Convert to time.\n int startOffset = abvsInner.getStartOffset() + 1 + XSDateTimePointable.HOUR_OFFSET;\n dOut.write(ValueTag.XS_TIME_TAG);\n dOut.write(abvsInner.getByteArray(), startOffset, XSTimePointable.TYPE_TRAITS.getFixedLength());\n }",
"private static int[] race(int v1, int v2, int g){\n\n float distance = g;\n float speedDifference = v2-v1;\n float time = g / speedDifference;\n\n int[] res = new int[3];\n res[0] = (int) time;\n res[1] = (int) (60 * (time-res[0]));\n res[2] = (int) (time * 3600) % 60;\n\n return res;\n }",
"public abstract double sensingTime();",
"@Override\n\tpublic float subtrair(float op1, float op2) {\n\t\treturn op1 - op2;\n\t}",
"public void substraiTempo(Tempo tempo2) {\n\t\tint tempo1EmSec = this.horas*3600 + this.minutos*60 + this.segundos;\n\t\tint tempo2EmSec = tempo2.horas*3600 + tempo2.minutos*60 + tempo2.segundos; \n\t\tint resultado = (tempo1EmSec>tempo2EmSec)? tempo1EmSec - tempo2EmSec : tempo2EmSec - tempo1EmSec;\n\t\t\n\t\tif(resultado != 0) { //Verificando se os tempos não são iguais\n\t\t\t//Atribuindo o resultado da substração dos tempos em horas, minutos e segundos.\n\t\t\tthis.horas = resultado / 3600;\n\t\t\tint aux = resultado % 3600;\n\t\t\tthis.minutos = aux / 60;\n\t\t\tthis.segundos = aux % 60;\n\t\t}\n\t}",
"final public void PendingOperator(String operator1, String operator2) throws ParseException {String o, op1, op2, r;\n// Si la pila no esta vacía\n if( !pOperators.empty()) {\n\n // Y el tope de la pila es alguno de los operadores mandados. +- o */\n if ( pOperators.peek() == operator1 || pOperators.peek() == operator2 ) {\n\n // Sacar los operandos y el operador de las pilas\n op2 = (String)pOperands.pop();\n op1 = (String)pOperands.pop();\n o = (String)pOperators.pop();\n r = \"t\" + currentTemporal;\n\n currentTemporal++;\n\n // Crear un cuadruplo y meterlos\n Cuadruplo quad = new Cuadruplo(o, op1, op2, r);\n quadCounter++;\n pOperands.push(r);\n cuadruplos.addElement(quad);\n }\n }\n }",
"@Override\n\tpublic void SimulaSe(int DiffTime) {\n\n\t\tX+=velx*DiffTime/1000.0f;\n\t\tY+=vely*DiffTime/1000.0f;\n\t\ttimerColisaoMeteoro+=DiffTime;\n\t//\tSystem.out.println(+this.dx+\" \"+this.dy+\" \"+Y+\" \"+X);\n\t\t boolean aux=false;\n\t\t \n\t\t\tif (typ==1) { //tiro da nave\n\t\t\t\t\n\t\t\t\tfor (int i =0;i<CanvasGame.listadeagentes.size();i++) {\n\t\t\t\t\tInimigo ag = (Inimigo)CanvasGame.listadeagentes.get(i);\n\t\t\t\tif (Constantes.colidecircular(X, Y, sizeX, ag.X+ag.sizeX/2, ag.Y+ag.sizeY/2, ag.sizeY/2)) {\n\t\t\t\t\t\taux=true;\n\t\t\t\t\t\tCanvasGame.listadeagentes.get(i).vida-=2*Constantes.DANO_TIRO;\n\t\t\t\t\t\tCanvasGame.gerenciadorEfeitos.ganhouXp( (int)X, (int)Y,Constantes.DANO_TIRO);\n\t\t\t\t\t\t//GamePanel.minhaNave.evoluiu();\n\t\t\t\t\t\tCanvasGame.minhaNave.gerenciaXP();\n//\t\t\t\t\t\tCanvasGame.gerenciadorEfeitos.explosao(ag.X+ag.sizeX/4,ag.Y+ag.sizeY/4,-velx,vely);\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tfor (int i =0;i<CanvasGame.listadeMeteoro.size();i++) {\n\t\t\t\t\tMeteoro ag = (Meteoro)CanvasGame.listadeMeteoro.get(i);\n\t\t\t\tif (Constantes.colidecircular(X-sizeX/2, Y-sizeY/2, sizeX/2, ag.X+ag.sizeX/2, ag.Y+ag.sizeY/2, ag.sizeY/2)) {\n\t\t\t\t\t\taux=true;\n\t\t\t\t\t\tag.colidiu(this);\n\t\n\t\t\t\t\t\tCanvasGame.gerenciadorEfeitos.ganhouXp( (int)X, (int)Y,ag.XP);\n\t\t\t\t\t\tCanvasGame.minhaNave.gerenciaXP();\n\t\t\t\t\t\t//GamePanel.minhaNave.evoluiu();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (typ==2) { //tiro dos inimigos\n\t\t\t\t\n//\t\t\t\tfor (int i =0;i<GamePanel.listadeagentes.size();i++) {\n//\t\t\t\t\tMeuAgente ag = (MeuAgente)GamePanel.listadeagentes.get(i);\n\t\t\t\tif (Constantes.colidecircular(X-sizeX/2, Y-sizeY/2, sizeX/2, CanvasGame.minhaNave.X+CanvasGame.minhaNave.sizeX/2, CanvasGame.minhaNave.Y+CanvasGame.minhaNave.sizeY/2, 10)) {\n\t\t\t\t\t\taux=true;\n\t\t\t\t\t\tCanvasGame.minhaNave.life-=Constantes.DANO_TIRO;\n\t\t\t\t\t}\n\t\t\t\tfor (int i =0;i<CanvasGame.listadeMeteoro.size();i++) {\n\t\t\t\t\tMeteoro ag = (Meteoro)CanvasGame.listadeMeteoro.get(i);\n\t\t\t\tif (!bateuMeteoro&&Constantes.colidecircular(X, Y, sizeX/2, ag.X, ag.Y, ag.sizeX/2)) {\n\t\t\t\t\t\n\t\t\t\t\t\tag.colidiu(this);\n\n\t\t\t\t\t\t//GamePanel.minhaNave.evoluiu();\n\t\t\t\t\t\tbateuMeteoro=true;\n\t\t\t\t\t\ttimerColisaoMeteoro=0;\n\t\t//\n//\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t\t}\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\tif (X>GamePanel.PWIDTH+GamePanel.PWIDTH/8||X<-GamePanel.PWIDTH/8||Y<-GamePanel.PHEIGHT/8||Y>GamePanel.PHEIGHT+GamePanel.PWIDTH/8) \n\t\t\tvivo=false;\t\n\t\t\n\t\t\n\t\tif (aux) EXPLODIU=true;\n\t\t\n\t\tif(EXPLODIU){\n\t\t\tParticula part;\n\t\t\t\tfor(int B = 0; B < 100;B++){\n\t\t\t\t\tint modv = -GamePanel.rnd.nextInt(200)+50;\n\t\t\t\t\t\n\t\t\t\t\tint pvx = 0;\n\t\t\t\t\tint pvy = 0;\n\t\t\t\t\n\t\t\t\t\t\tpvx = velx + modv;\n\t\t\t\t\t\tpvy = vely - modv;\n\n\t\t\t\t\t\n\t\t\t\t\tpvx = (int)(pvx*(0.4+0.25*GamePanel.rnd.nextFloat()));\n\t\t\t\t\tpvy = (int)(pvy*(0.4+0.25*GamePanel.rnd.nextFloat()));\n\t\t\t\t\t\n\t\t\t\t\tif(B%2==0){\n\t\t\t\t\t\tcor = Color.red;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tcor = Color.cyan;\n\t\t\t\t\t}\n//\t\t\t\t\tif (B%4==0) {\n\t\t\t\t\t\tpart = (Particula)new Faisca(X,Y,pvx/4,pvy/4,GamePanel.rnd.nextInt(300)+100,cor);\n//\t\t\t\t\t}else {\n//\t\t\t\t\t\tpart = (Particula)new Faisca(X,Y,-pvx/4,-pvy/4,GamePanel.rnd.nextInt(400)+100,cor);\n//\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tCanvasGame.particulas.add(part);\n\t\t\t\t\tvivo = false;\n\t\t\t\t}\n\t\n\t\t\n\t\t}\n\n\n\t}",
"public void resta(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.RESTA));\n }\n }\n }\n }",
"public static String buildSnowTempOtherWhere() {\n PDCOptionData pcOptions = PDCOptionData.getInstance();\n StringBuilder where = new StringBuilder();\n String durCode = null;\n int durHours = pcOptions.getDurHours();\n\n Date minTime = SimulatedTime.getSystemTime().getTime();\n Date maxTime = SimulatedTime.getSystemTime().getTime();\n Date lowerChangeBasetime = SimulatedTime.getSystemTime().getTime();\n Date lowerChangeLowertime = SimulatedTime.getSystemTime().getTime();\n Date lowerChangeUppertime = SimulatedTime.getSystemTime().getTime();\n Date upperChangeUppertime = SimulatedTime.getSystemTime().getTime();\n Date upperChangeLowertime = SimulatedTime.getSystemTime().getTime();\n\n /* get the current time */\n Date now = SimulatedTime.getSystemTime().getTime();\n\n /* filter by physical element first */\n where.append(\"WHERE pe = '\" + pcOptions.getSelectedAdHocElementString()\n + \"' \");\n\n /* filter by type-source */\n if (pcOptions.getFilterByTypeSource() == 1) {\n where.append(buildTypeSourceWhereFilter() + \" \");\n }\n\n /* set the time window */\n if ((pcOptions.getTimeMode() == TimeModeType.MAXSELECT.getTimeMode())\n || (pcOptions.getTimeMode() == TimeModeType.MINSELECT\n .getTimeMode())) {\n Date validTime = pcOptions.getValidTime();\n\n Calendar cal = new GregorianCalendar();\n cal.setTimeInMillis((long) ((validTime.getTime() / 1000) - durHours\n * 3600 * PDCConstants.MINMAX_DUR_MULTIPLIER));\n minTime.setTime(cal.getTimeInMillis());\n maxTime = validTime;\n\n durCode = durHoursToShefCode();\n\n where.append(\" and extremum = '\" + durCode + \"' \");\n } else if (pcOptions.getTimeMode() == TimeModeType.LATEST.getTimeMode()) {\n long millis = now.getTime() - durHours\n * PDCConstants.MILLIS_PER_MINUTE * 60;\n minTime.setTime(millis);\n maxTime = now;\n\n where.append(\"AND extremum = 'Z' \");\n } else if (pcOptions.getTimeMode() == TimeModeType.SETTIME\n .getTimeMode()) {\n Calendar min = new GregorianCalendar();\n min.setTimeInMillis(minTime.getTime());\n min.add(Calendar.HOUR, durHours * -1);\n minTime.setTime(min.getTimeInMillis());\n\n Calendar max = new GregorianCalendar();\n max.setTimeInMillis(maxTime.getTime());\n max.add(Calendar.HOUR, durHours);\n\n where.append(\"AND extremum = 'Z' \");\n } else if (pcOptions.getTimeMode() == TimeModeType.VALUE_CHANGE\n .getTimeMode()) {\n /*\n * Retrieve the number of hours that can be searched around the end\n * times of the change period.\n */\n int changeHourWindow = PDCUtils.getChangeHourWindow();\n\n Calendar upperChangeBaseCal = new GregorianCalendar();\n Calendar lowerChangeBaseCal = new GregorianCalendar();\n\n upperChangeBaseCal.setTimeInMillis(pcOptions.getValidTime()\n .getTime());\n lowerChangeBaseCal.add(Calendar.HOUR, durHours * -1);\n lowerChangeBasetime.setTime(lowerChangeBaseCal.getTimeInMillis());\n\n upperChangeBaseCal.add(Calendar.HOUR, changeHourWindow);\n upperChangeUppertime = upperChangeBaseCal.getTime();\n upperChangeBaseCal.add(Calendar.HOUR, changeHourWindow * -1);\n upperChangeLowertime = upperChangeBaseCal.getTime();\n\n lowerChangeBaseCal.add(Calendar.HOUR, changeHourWindow);\n lowerChangeUppertime = lowerChangeBaseCal.getTime();\n lowerChangeBaseCal.add(Calendar.HOUR, changeHourWindow * -1);\n lowerChangeLowertime = lowerChangeBaseCal.getTime();\n }\n\n if (pcOptions.getTimeMode() == TimeModeType.VALUE_CHANGE.getTimeMode()) {\n where.append(\"and ( ( obstime >= '\"\n + PDCConstants.DATE_FORMAT.format(upperChangeLowertime)\n + \"' \");\n where.append(\" and obstime <= '\"\n + PDCConstants.DATE_FORMAT.format(upperChangeUppertime)\n + \"' )\");\n where.append(\" or ( obstime >= '\"\n + PDCConstants.DATE_FORMAT.format(lowerChangeLowertime)\n + \"' \");\n where.append(\" and obstime <= '\"\n + PDCConstants.DATE_FORMAT.format(lowerChangeUppertime)\n + \"' ) )\");\n where.append(\" and value != \" + PDCConstants.MISSING_VALUE);\n where.append(\" and extremum = 'Z' \");\n } else {\n where.append(\" and obstime >= '\"\n + PDCConstants.DATE_FORMAT.format(minTime) + \"' \");\n where.append(\" and obstime <= '\"\n + PDCConstants.DATE_FORMAT.format(maxTime) + \"' \");\n where.append(\" and value != \" + PDCConstants.MISSING_VALUE);\n }\n where.append(\" ORDER BY lid ASC, ts, obstime DESC\");\n\n return where.toString();\n }",
"public void suma(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n }\n }\n }",
"public void temporizadorTiempo() {\n Timer timer = new Timer();\n tareaRestar = new TimerTask() {\n @Override\n public void run() {\n tiempoRonda--;\n }\n };\n timer.schedule(tareaRestar, 1,1000);\n }",
"public double auton(double time) {\n\t\ttry {\n\t\t\tif (this.size() > 0) {\n\t\t\t\tInstruction instruction = this.get(0);\n\t\t\t\tif (instruction.hasExpirationTime() && time >= instruction.getExpirationTime()) {\n\t\t\t\t\tSystem.out.println(\"GOT HERE: \" + instruction.getExpirationTime());\n\t\t\t\t\tm_drives.setSpeed(0.0);\n\t\t\t\t\tthis.remove(0);\n\t\t\t\t\treturn 0.0;\n\t\t\t\t}\n\t\t\t\tswitch (Integer.parseInt(instruction.getNext())) {\n\t\t\t\t// Determine Mechanism requires and use it.\n\t\t\t\tcase Mechanism.INTAKE:\n\t\t\t\t\tswitch (Integer.parseInt(instruction.getNext())) {\n\t\t\t\t\tcase Mechanism.Intake.INTAKE_IN:\n\t\t\t\t\t\tm_fuelHandler.intakeFuel();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Mechanism.Intake.INTAKE_OFF:\n\t\t\t\t\t\tm_fuelHandler.stopIntake();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Mechanism.LINE_BREAKER:\n\t\t\t\t\tswitch (Integer.parseInt(instruction.getNext())) {\n\t\t\t\t\tcase Mechanism.LineBreaker.BROKEN:\n\t\t\t\t\t\tif (m_gearCollector.lineBroken()) {\n\t\t\t\t\t\t\ttime = 0.0;\n\t\t\t\t\t\t\tthis.remove(0.0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Mechanism.LineBreaker.UNBROKEN:\n\t\t\t\t\t\tif (!(m_gearCollector.lineBroken())) {\n\t\t\t\t\t\t\ttime = 0.0;\n\t\t\t\t\t\t\tthis.remove(0.0);\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\tbreak;\n\t\t\t\tcase Mechanism.SHOOTER:\n\t\t\t\t\tm_fuelHandler.setShooterSpeed(Double.parseDouble(instruction.getNext()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase Mechanism.GEAR_COLLECTOR:\n\t\t\t\t\tswitch (Integer.parseInt(instruction.getNext())) {\n\t\t\t\t\tcase Mechanism.Collector.OPEN:\n\t\t\t\t\t\tm_gearCollector.openCollector();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Mechanism.Collector.CLOSE:\n\t\t\t\t\t\tm_gearCollector.closeCollector();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Mechanism.DRIVES:\n\t\t\t\t\tif (m_drives.brakesAreOn()) {\n\t\t\t\t\t\tm_drives.brakesOff();\n\t\t\t\t\t}\n\t\t\t\t\tString fn = instruction.getNext();\n\t\t\t\t\tdouble value = Double.parseDouble(instruction.getNext());\n\t\t\t\t\tdouble speed = Double.parseDouble(instruction.getNext());\n\t\t\t\t\tswitch (Integer.parseInt(fn)) {\n\t\t\t\t\tcase Mechanism.Drives.STRAIGHT:\n\t\t\t\t\t\tif (m_drives.driveStraight(value, speed)) {\n\t\t\t\t\t\t\ttime = 0.0;\n\t\t\t\t\t\t\tthis.remove(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Mechanism.Drives.TURN:\n\t\t\t\t\t\tif (m_drives.turnToAngle(value, speed)) {\n\t\t\t\t\t\t\ttime = 0.0;\n\t\t\t\t\t\t\tthis.remove(0);\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\tbreak;\n\t\t\t\tcase Mechanism.WAIT:\n\t\t\t\t\tif (time >= Double.parseDouble(instruction.getNext())) {\n\t\t\t\t\t\ttime = 0.0;\n\t\t\t\t\t\tthis.remove(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Mechanism.BRAKES:\n\t\t\t\t\tm_drives.setSpeed(0.0);\n\t\t\t\t\tif (Integer.parseInt(instruction.getNext()) == Mechanism.Drives.BRAKES_ON) {\n\t\t\t\t\t\tm_drives.brakesOn();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tm_drives.brakesOff();\n\t\t\t\t\t}\n\t\t\t\t\ttime = 0.0;\n\t\t\t\t\tthis.remove(0);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthis.remove(0);\n\t\t}\n\t\treturn time;\n\t}",
"private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}",
"public static void main(String[] args) {\n\t\tTime t1 = new Time(4,18,12);\r\n Time t2 = new Time(7,35,50);\r\n Time t3 = t1.add(t2);\r\n t1.display(\"Time 1 : \");\r\n t2.display(\"Time 2 : \");\r\n t3.display(\"Time after addition : \");\r\n\t}",
"public void somaTempo(Tempo tempo2) {\n\t\tint tempo1EmSec = this.horas*3600 + this.minutos*60 + this.segundos;\n\t\tint tempo2EmSec = tempo2.horas*3600 + tempo2.minutos*60 + tempo2.segundos; \n\t\tint resultado = tempo1EmSec + tempo2EmSec;\n\t\t\n\t\t//Atribuindo o resultado da soma dos tempos em horas, minutos e segundos.\n\t\tthis.horas = resultado / 3600;\n\t\tint aux = resultado % 3600;\n\t\tthis.minutos = aux / 60;\n\t\tthis.segundos = aux % 60;\n\t}",
"public void multiplica(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n }\n }\n }",
"public void operateTheBoatForAmountOfTime(double time){// pass 1 as a time\n\t\t if(time > 0.0 && time <= 5.0 ){\n \tdouble fuelUsage = EfficiencyOfTheBoatMotor*currentSpeedOfTheBoat*currentSpeedOfTheBoat*time;\n \tfuelUsage = fuelUsage/10000;//since we have hp, and miles we have to divide by 10000 to get result in gallons \n double realTime; \n // Determine if we run out of fuel\n\t if(fuelUsage > amountOfFuelInTheTank){ \n\t realTime = time * (amountOfFuelInTheTank/fuelUsage); \n\t amountOfFuelInTheTank=0.0 ;\n\t }else{\n\t \tamountOfFuelInTheTank-=fuelUsage; \n\t realTime = time;\n\t }\n\t DistanceTraveled +=currentSpeedOfTheBoat * realTime; \n\t }\n\t }",
"private float caculate(Operation opt, float f1, int t2) {\n\t\tfloat res;\n\t\tfloat tt2 = (float) t2;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = f1 + tt2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = f1 - tt2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = f1 * tt2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = f1 / tt2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\terr.error(\"No operation in caculating.\");\n\t\t\treturn 0;\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\t\treturn res;\n\n\t\t/*\n\t\t * lex.floatHolder.add(res); return lex.floatHolder.lastIndexOf(res);\n\t\t */\n\t}",
"private float caculate(Operation opt, int t1, float f2) {\n\t\tfloat res;\n\t\tfloat tt1 = (float) t1;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = tt1 + f2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = tt1 - f2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = tt1 * f2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = tt1 / f2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\terr.error(\"No operation in caculating.\");\n\t\t\tres = 0;\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn res;\n\n\t\t/*\n\t\t * lex.floatHolder.add(res); return lex.floatHolder.lastIndexOf(res);\n\t\t */\n\t}",
"public void imprimirResultados(){\n System.out.println(\"t (tiempo actual) \"+t);\n \n \n System.out.println(\"\\nGanancia total: $\"+R);\n System.out.println(\"Costos por mercaderia comprada: $\"+C);\n System.out.println(\"Costos por mantenimiento inventario: $\"+H);\n System.out.println(\"Ganancia promeio de la tienda por unidad de tiempo: $\"+(R-C-H)/T);\n \n }",
"public Date getOpTime() {\n return opTime;\n }",
"private void testNoOpTimeConvert(String filterString) {\n Expression originalExpression = CalciteSqlParser.compileToExpression(filterString);\n Function originalFunction = originalExpression.getFunctionCall();\n List<Expression> originalOperands = originalFunction.getOperands();\n Expression optimizedFilterExpression = OPTIMIZER.optimize(CalciteSqlParser.compileToExpression(filterString));\n Function optimizedFunction = optimizedFilterExpression.getFunctionCall();\n List<Expression> optimizedOperands = optimizedFunction.getOperands();\n assertEquals(optimizedFunction.getOperator(), originalFunction.getOperator());\n assertEquals(optimizedOperands.size(), originalOperands.size());\n // TIME_CONVERT transform should be removed\n assertEquals(optimizedOperands.get(0), originalOperands.get(0).getFunctionCall().getOperands().get(0));\n int numOperands = optimizedOperands.size();\n for (int i = 1; i < numOperands; i++) {\n assertEquals(optimizedOperands.get(i), originalOperands.get(i));\n }\n }",
"public void actualiser(){\n try{\n \t\n /* Memo des variables : horaireDepart tableau de string contenant l'heure de depart entree par l'user\n * heure = heure saisie castee en int, minutes = minutes saisie castee en Integer\n * tpsRest = tableau de string contenant la duree du cours en heure entree par l'user\n * minutage = format minutes horaire = format heure, ils servent a formater les deux variables currentTime qui recuperent l'heure en ms\n * tempsrestant = variable calculant le temps restant en minutes, heurerestante = variable calculant le nombre d'heure restantes\n * heureDuree = duree du cours totale en int minutesDuree = duree totale du cours en minute\n * tempsfinal = temps restant reel en prenant en compte la duree du cours\n * angle = temps radian engleu = temps en toDegrees\n */\n String[] horaireDepart = Reader.read(saisie.getText(), this.p, \"\\\\ \");\n \n //on check si le pattern est bon et si l'utilisateur n'est pas un tard\n if(Reader.isHour(horaireDepart)){\n \t\n int heure = Integer.parseInt(horaireDepart[0]);\n int minutes = Integer.parseInt(horaireDepart[2]);\n minutes += (heure*60);\n String[] tpsrest = Reader.read(format.getText(), this.p, \"\\\\ \");\n \n //conversion de la saisie en SimpleDateFormat pour les calculs\n SimpleDateFormat minutage = new SimpleDateFormat (\"mm\");\n SimpleDateFormat Horaire = new SimpleDateFormat (\"HH\");\n \n //recupere l'heure en ms\n Date currentTime_1 = new Date(System.currentTimeMillis());\n Date currentTime_2 = new Date(System.currentTimeMillis());\n \n //cast en int pour les calculs\n int tempsrestant = Integer.parseInt(minutage.format(currentTime_1));\n int heurerestante = Integer.parseInt(Horaire.format(currentTime_2))*60;\n tempsrestant += heurerestante;\n \n //pareil mais pour la duree\n if(Reader.isHour(tpsrest)){\n int heureDuree = Integer.parseInt(tpsrest[0]);\n int minutesDuree = Integer.parseInt(tpsrest[2]);\n minutesDuree += (heureDuree*60);\n tempsrestant -= minutes;\n int tempsfinal = minutesDuree - tempsrestant;\n \n //conversion du temps en angle pour l'afficher \n double angle = ((double)tempsfinal*2/(double)minutesDuree)*Math.PI;\n int engleu = 360 - (int)Math.toDegrees(angle);\n for(int i = 0; i < engleu; i++){\n this.panne.dessineLine(getGraphics(), i);\n }\n \n //conversion du temps en pi radiant pour l'affichage\n if(tempsfinal < minutesDuree){\n tempsfinal *= 2;\n for(int i = minutesDuree; i > 1; i--){\n if(tempsfinal % i == 0 && minutesDuree % i == 0){\n tempsfinal /= i;\n minutesDuree /= i;\n }\n }\n }\n \n //update l'affichage\n this.resultat.setText(tempsfinal + \"/\" + minutesDuree + \"π radiant\");\n this.resultat.update(this.resultat.getGraphics());\n }\n }\n }catch(FormatSaisieException fse){\n this.resultat.setText(fse.errMsg(this.p.toString()));\n }\n }",
"static void setTiming(){\n killTime=(Pars.txType!=0) ? Pars.txSt+Pars.txDur+60 : Pars.collectTimesB[2]+Pars.dataTime[1]+60;//time to kill simulation\n tracksTime=(Pars.tracks && Pars.txType==0) ? Pars.collectTimesI[1]:(Pars.tracks)? Pars.collectTimesBTx[1]:100*24*60;//time to record tracks\n }",
"public int q1(int op,int band,int acum2)\n {\n \n int reslt=0;\n if(opBebidad!=0){//op Bebiba corresponde a si al menos una de las bebidas has sido seleccionada\n \n \n if(band==1)//Parametro band corresponde a varias operaciones\n {// 1. Si el boton de cancelar ha sido seleccionado\n // 2. Si ha sido ingresada una moneda\n \n //---------------------------------------------------------------------\n //Mostrar precio de cada producto, al presionar su imagen mediante la llamada al metodo valorBeb()\n Set<String> quipu = new HashSet<String>(monedas);\n for (String key : quipu) \n {\n if(key.equals(\"25\"))\n {\n cant25=Integer.parseInt(Collections.frequency(monedas, key)+\"\");\n\n }else\n if(key.equals(\"5\"))\n {\n cant5=Integer.parseInt(Collections.frequency(monedas, key)+\"\"); \n\n }else\n if(key.equals(\"10\"))\n {\n cant10=Integer.parseInt(Collections.frequency(monedas, key)+\"\");\n\n }\n }\n valorBeb(op);\n Ventana_Principal.arrow.setVisible(false);\n Ventana_Principal.txtA.setText(\"Por Favor Retirar su Dinero...Gracias\");\n Ventana_Principal.txtA.append(\"\\nEntregando...\");\n Cambio hilo=new Cambio(Ventana_Principal.txtA,monedas.size(),monedas);\n hilo.start();\n\n Ventana_Principal.lbl5.setText(cant5+\"\");\n Ventana_Principal.lbl10.setText(cant10+\"\");\n Ventana_Principal.lbl25.setText(cant25+\"\");\n\n //Luego de un minuto el hilo vuelve a ejecutarse\n //ScheduledExecutorService timer = Executors.newSingleThreadScheduledExecutor();\n //timer.scheduleAtFixedRate(hilo, 1, 1, TimeUnit.MINUTES);\n \n }\n else\n if(band==2)\n {\n hilo=new Publicidad(txtA,true);\n Ventana_Principal.hilo.stop();\n //Se detiene el hilo para mostrar el valor del producto vs el valor que se va ingresando\n //Mediante acum2, se acumulan las monedas ingresadas\n double dif=0; \n System.out.println(\"----------------------------------------------------------------------\");\n System.out.println(\"Precio: \"+valor+\"| Ingreso:\"+acum);\n monedas.add(acum2+\"\");//Se van guardando cada una de las monedas ingresadas, para poder ser contadas\n \n dif=valor-acum;\n if(dif<0)\n {\n \n if(acum==100)\n {\n String aux=Integer.toString(acum);\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+aux.substring(0,1)+\".0 dolar/es\");\n Ventana_Principal.txtMon.setText(\"\");\n }else\n {\n if(acum>100)\n {\n String aux=Integer.toString(acum);\n String aux2=aux.substring(0,1);\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+aux2.concat(\".\").concat(aux.substring(1))+\" dolar/es\");\n Ventana_Principal.txtMon.setText(\"\");\n }else\n {\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+acum+\" centavos\");\n Ventana_Principal.txtMon.setText(\"\");\n }\n }\n \n }else\n {\n if(acum==valor)\n {\n if(acum==100)\n {\n String aux=Integer.toString(acum);\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+aux.substring(0,1)+\".0 dolar/es\");\n Ventana_Principal.txtMon.setText(\"\");\n }else\n {\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+acum+\" centavos\");\n Ventana_Principal.txtMon.setText(\"\");\n }\n }else\n {\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+acum+ \" centavos\\nFaltan \"+dif+\" centavos\");\n Ventana_Principal.txtMon.setText(\"\");\n }\n \n }\n if(acum>=valor)\n {\n if(acum==valor)\n {\n Ventana_Principal.txtA.append(\"\\nPor Favor, Retire su Bebida...\");\n Ventana_Principal.txtMon.setEnabled(false);\n Ventana_Principal.arrow.setVisible(true);\n Ventana_Principal.lblPush.setEnabled(true);\n }else\n {\n Ventana_Principal.txtMon.setEnabled(false);\n q2(1);\n Ventana_Principal.txtA.append(\"\\nPor Favor, Retire su Bebida...\");\n Ventana_Principal.lblPush.setEnabled(true);\n }\n }\n //Se llama a cantMonedas, que muestra la cantidad de cada moneda ingresada\n cantMonedas();//Cuenta las monedas y las clasifica\n \n }\n }\n reslt=acum;\n return reslt; \n }",
"public static Object conversie(){\n Scanner Meters= new Scanner(System.in);\n Scanner Hours= new Scanner(System.in);\n Scanner Minutes= new Scanner(System.in);\n Scanner Seconds= new Scanner(System.in);\n\n //unitatile de masura pentru distanta este metrul, iar pentru timp sunt secundele\n\n System.out.println(\"Introduceti valoarea distantei D: \"); //distanta in metri\n double D= Meters.nextInt();\n\n System.out.println(\"Introduceti ora H: \"); //introducere valoare ora\n double H= Hours.nextInt();\n\n System.out.println(\"Introduceti minutele MM: \"); //introducere valoare minute\n double MM= Minutes.nextInt();\n\n System.out.println(\"Introduceti secundele SS: \"); //introducere valoare secunde\n double SS= Seconds.nextInt();\n\n double time= H*3600 + MM*60 + SS; //formula de calcul pentru transformare ore:minute:secunde in secunde\n\n double V1= D / time; //formula matematica a vitezei( viteza= distanta/ timp)\n //rezultatul va fi in metri/secunda\n\n double V2= V1*3.6; // formula de conversie din m/s in km/h\n double V3= V1*2.236936; // formula de conversie din m/s in miles/h\n\n System.out.println(V1 + \" m/s\"); //afisare rezultat viteza in m/s\n System.out.println(V2 + \" km/h\"); //afisare conversie in km/h\n System.out.println(V3 + \" miles per hour\"); //afisare conversie in miles/h\n return \"\\n\";\n }",
"void mo16690b(T t, T t2);",
"private void mo4305g(int i, int i2) {\n this.f3139t.f3157c = this.f3140u.mo5112b() - i2;\n this.f3139t.f3159e = this.f3143x ? -1 : 1;\n C0784c cVar = this.f3139t;\n cVar.f3158d = i;\n cVar.f3160f = 1;\n cVar.f3156b = i2;\n cVar.f3161g = Integer.MIN_VALUE;\n }",
"private int caculate(Operation opt, int t1, int t2) {\n\t\tint res;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = t1 + t2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = t1 - t2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = t1 * t2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = t1 / t2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\terr.error(\"No operation in caculating.\");\n\t\t\tres = 0;\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\t\treturn res;\n\t\t/*\n\t\t * lex.intHolder.add(res); return lex.intHolder.lastIndexOf(res);\n\t\t */\n\t}",
"public Object computeWave(Object arg_time) {\n\t\ttime = ((Integer) arg_time).intValue();\n\t\t// move the previous return values to my neighbors[].\n\t\tif (getInMessages() != null) {\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tif (getInMessages()[i] != null) {\n\t\t\t\t\tneighbors[i] = ((Double) getInMessages()[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (myX == 0 || myX == sizeX - 1 || myY == 0 || myY == sizeY) {\n\t\t\t// this cell is on the edge of the Wave2D matrix\n\t\t\tif (time == 0) {\n\t\t\t\twave[0] = 0.0; //current\n\t\t\t}\n\t\t\tif (time == 1) {\n\t\t\t\twave[1] = 0.0; //previous\n\t\t\t} else if (time >= 2) {\n\t\t\t\twave[2] = 0.0; //previous2\n\t\t\t}\n\t\t} else {\n\t\t\t// this cell is not on the edge\n\t\t\tif (time == 0) {\n\t\t\t\t// create an initial high tide in the central square area\n\t\t\t\twave[0] = (sizeX * 0.4 <= myX && myX <= sizeX * 0.6 &&\n\t\t\t\t\t\tsizeY * 0.4 <= myY && myY <= sizeY * 0.6) ? 20.0 : 0.0;\n\t\t\t\t//start w/ wave[0]\n\t\t\t\twave[1] = wave[2] = 0.0; // init wave[1] and wave[2] as 0.0\n\t\t\t} else if (time == 1) {\n\t\t\t\t// simulation at time 1\n\t\t\t\twave[1] = wave[0] + c * c / 2.0 * dt * dt / (dd * dd) *\n\t\t\t\t\t\t(neighbors[north] + neighbors[east] + neighbors[south] +\n\t\t\t\t\t\t\t\tneighbors[west] - 4.0 * wave[0]); //wave[1] based on wave[0]\n\t\t\t} else if (time >= 2) {\n\t\t\t\t// simulation at time 2 and onwards\n\t\t\t\twave[2] = 2.0 * wave[1] - wave[0] + c * c * dt * dt / (dd * dd) *\n\t\t\t\t\t\t(neighbors[north] + neighbors[east] + neighbors[south]\n\t\t\t\t\t\t\t\t+ neighbors[west] - 4.0 * wave[1]);\n\t\t\t\t//wave two based on wave[1] and wave[0]\n\t\t\t\twave[0] = wave[1];\n\t\t\t\twave[1] = wave[2];\n\t\t\t\t//shift wave[] measurements, prepare for a new wave[2]\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private long getTimeDifference(Time timeValue1, Time timeValue2){\n return (timeValue2.getTime()-timeValue1.getTime())/1000;\n }",
"@Override\r\n\tprotected double operate(double d1, double d2) {\n\t\tSystem.out.println(\"减法求值\");\r\n\t\treturn d1-d2;\r\n\t}",
"public String getOperTime() {\r\n\t\treturn operTime;\r\n\t}",
"public void MUL( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n int iresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n fresult = Integer.parseInt(val1) * Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n fresult = Integer.parseInt(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n fresult = Float.parseFloat(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n iresult = Integer.parseInt(val2) * Integer.parseInt(val1);\n dads.push(iresult);\n pilhaVerificacaoTipos.push(\"inteiro\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n\n topo += -1;\n ponteiro += 1;\n }",
"TimeDistanceTollAndHeterogeneityBasedTravelDisutility(TravelTime timeCalculator, PlanCalcScoreConfigGroup cnScoringGroup, double sigma, final RoadPricingScheme scheme)\n\t// this should remain private; try using the Builder or ask. kai, sep'14\n\t{\n\t\tthis.scheme = scheme;\n\t\tthis.timeCalculator = timeCalculator;\n\n\t\t/* Usually, the travel-utility should be negative (it's a disutility) but the cost should be positive. Thus negate the utility.*/\n\t\tthis.marginalCostOfTime = (- cnScoringGroup.getTraveling_utils_hr() / 3600.0) + (cnScoringGroup.getPerforming_utils_hr() / 3600.0) ;\n\t\tthis.marginalUtilityOfMoney = cnScoringGroup.getMarginalUtilityOfMoney() ;\n\t\tthis.marginalCostOfDistance = - cnScoringGroup.getMonetaryDistanceCostRateCar() * cnScoringGroup.getMarginalUtilityOfMoney() ;\n\n\t\tif (RoadPricingScheme.TOLL_TYPE_DISTANCE.equals(scheme.getType())) {\n\t\t\tthis.tollCostHandler = new DistanceTollCostBehaviour();\n\t\t} else if (scheme.getType() == RoadPricingScheme.TOLL_TYPE_AREA) {\n\t\t\tthis.tollCostHandler = new AreaTollCostBehaviour();\n\t\t\tLogger.getLogger(this.getClass()).warn(\"area pricing is more brittle than the other toll schemes; \" +\n\t\t\t\t\t \"make sure you know what you are doing. kai, apr'13 & sep'14\") ;\n\t\t} else if (scheme.getType() == RoadPricingScheme.TOLL_TYPE_CORDON) {\n\t\t\tthis.tollCostHandler = new CordonTollCostBehaviour();\n\t\t} else if (scheme.getType() == RoadPricingScheme.TOLL_TYPE_LINK) {\n\t\t\tthis.tollCostHandler = new LinkTollCostBehaviour();\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"RoadPricingScheme of type \\\"\" + scheme.getType() + \"\\\" is not supported.\");\n\t\t}\n\n\t\tif ( utlOfMoneyWrnCnt < 1 && this.marginalUtilityOfMoney != 1. ) {\n\t\t\tutlOfMoneyWrnCnt ++ ;\n\t\t\tLogger.getLogger(this.getClass()).warn(\"There are no test cases for marginalUtilityOfMoney != 1. Please write one \" +\n\t\t\t\t\t \"and delete this message. kai, apr'13 \") ;\n\t\t}\n\n\t\tif ( noramlisationWrnCnt < 1 ) {\n\t\t\tnoramlisationWrnCnt++;\n\t\t\tif (cnScoringGroup.getMonetaryDistanceCostRateCar() > 0.) {\n\t\t\t\tLogger.getLogger(this.getClass()).warn(\"Monetary distance cost rate needs to be NEGATIVE to produce the normal\" + \"behavior; just found positive. Continuing anyway. This behavior may be changed in the future.\");\n\t\t\t}\n\t\t}\n\n\t\tthis.sigma = sigma ;\n\t\tif ( sigma != 0. ) {\n\t\t\tthis.random = MatsimRandom.getLocalInstance() ;\n\t\t\tthis.normalization = 1./Math.exp( this.sigma*this.sigma/2 );\n\t\t\tif ( normalisationWrnCnt < 10 ) {\n\t\t\t\tnormalisationWrnCnt++ ;\n\t\t\t\tlog.info(\" sigma: \" + this.sigma + \"; resulting normalization: \" + normalization ) ;\n\t\t\t}\n\t\t} else {\n\t\t\tthis.normalization = 1. ;\n\t\t}\n\n\t}",
"@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 - num2;\n\t\t}",
"double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }",
"protected double difftime(double t2, double t1) {\n\t\treturn t2 - t1;\n\t}",
"public static void main(String[] args) {\r\n\t\tPosition p2 = new Position(47.984393, 0.236012);\r\n\t\t/*graine*/\r\n\t\tPosition p1 = new Position(47.987444,0.253475);\r\n\t\t\r\n\t\tFourmi fourmi = new Fourmi();\r\n\t\tChemin trackAllerGraine1;\r\n\t\tChemin trackRetourGraine1;\r\n\t\t\r\n\t\tChemin c = new Chemin();\r\n\t\tChemin c1 = new Chemin();\r\n\t\ttry {\r\n\t\t\tc.calculItineraire(p2,p1);\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\tc.add(p1);\r\n\t\ttrackAllerGraine1 = fourmi.creerTrack(c);\r\n\t\r\n\t\t\r\n\r\n\t\tfor(int i=0;i<trackAllerGraine1.size()-1;i++) {\r\n\t\t\tSystem.out.println(\"\\np\"+i+\" : \"+trackAllerGraine1.get(i).lat+\",\"+trackAllerGraine1.get(i).lon);\r\n\t\t\tSystem.out.println(trackAllerGraine1.get(i).getTimestamp());\r\n\t\t\tSystem.out.println(\"La distance entre ces deux points est de \"+p1.longueurEnM(trackAllerGraine1.get(i),trackAllerGraine1.get(i+1))+\"m\");\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"p\"+(trackAllerGraine1.size()-1)+\" : \"+trackAllerGraine1.get(trackAllerGraine1.size()-1).lat+\",\"+trackAllerGraine1.get(trackAllerGraine1.size()-1).lon);\r\n\t\tSystem.out.println(trackAllerGraine1.get(trackAllerGraine1.size()-1).getTimestamp());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tc1.calculItineraire(p1, p2);\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\t\r\n\t\tc1.add(p2);\r\n\t\ttrackRetourGraine1=fourmi.creerTrack(c1);\r\n\t\t\r\n\t\tfor(int i=0;i<trackRetourGraine1.size()-1;i++) {\r\n\t\t\tSystem.out.println(\"\\np\"+i+\" : \"+trackRetourGraine1.get(i).lat+\",\"+trackRetourGraine1.get(i).lon);\r\n\t\t\tSystem.out.println(trackRetourGraine1.get(i).getTimestamp());\r\n\t\t\tSystem.out.println(\"La distance entre ces deux points est de \"+p1.longueurEnM(trackRetourGraine1.get(i),trackRetourGraine1.get(i+1))+\"m\");\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"p\"+(trackRetourGraine1.size()-1)+\" : \"+trackRetourGraine1.get(trackRetourGraine1.size()-1).lat+\",\"+trackRetourGraine1.get(trackRetourGraine1.size()-1).lon);\r\n\t\tSystem.out.println(trackRetourGraine1.get(trackRetourGraine1.size()-1).getTimestamp());\r\n\t}",
"public static void ComienzaTimer(){\n timer = System.nanoTime();\n }",
"public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\n }",
"public static void main(String[] args) {\n\n double D=260.0;\n int vIon=70;\n int vFlorica=60;\n double Time=D/(vIon+vFlorica);\n double Distance=vIon*Time;\n System.out.println(Time) ;\n System.out.println(Distance);\n }",
"public void or (int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)){ // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes,auxOperacion(dirOp1,dirOp2,valor1,valor2,Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes,auxOperacion(dirOp1,dirOp2,valor1,valor2,Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 =this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)){ // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n }\n }\n }",
"private native double SumaC(double operador_1, double operador_2);",
"public void setOpTime(Date opTime) {\n this.opTime = opTime;\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 }",
"public void provocarEvolucion(Tribu tribuJugador, Tribu tribuDerrotada){\r\n System.out.println(\"\\n\");\r\n System.out.println(\"-------------------Fase de evolución ----------------------\");\r\n int indiceAtributo;\r\n int indiceAtributo2;\r\n double golpeViejo = determinarGolpe(tribuJugador);\r\n for(int i = 1; i <= 10 ; i++){\r\n System.out.println(\"Iteración número: \" + i);\r\n indiceAtributo = (int)(Math.random() * 8);\r\n indiceAtributo2 = (int)(Math.random() * 8);\r\n String nombreAtributo1 = determinarNombrePosicion(indiceAtributo);\r\n String nombreAtributo2 = determinarNombrePosicion(indiceAtributo2);\r\n if((tribuJugador.getArray()[indiceAtributo] < tribuDerrotada.getArray()[indiceAtributo] \r\n && (tribuJugador.getArray()[indiceAtributo2] < tribuDerrotada.getArray()[indiceAtributo2]))){\r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo1 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo] = tribuDerrotada.getArray()[indiceAtributo];\r\n \r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo2 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo2] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo2] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo2] = tribuDerrotada.getArray()[indiceAtributo2];\r\n }\r\n }\r\n double golpeNuevo = determinarGolpe(tribuJugador);\r\n if(golpeNuevo > golpeViejo){\r\n tribus.replace(tribuJugador.getNombre(), determinarGolpe(tribuJugador));\r\n System.out.println(\"\\nTribu evolucionada\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n else{\r\n System.out.println(\"\\nTribu sin evolucionar\");\r\n System.out.println(\"La tribu no evolucionó porque no se encontraron atributos\"\r\n + \" que permitiesen crecer su golpe\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n }",
"private void makeSubPlan(Plan plan,Time currentTime,ArrayList<POI> POIs,Time timeEnd,Trip trip,Plan mPlan,boolean skip){\n if(mPlan!=null) \n plan.makeCalculations(trip.getStartTime(),trip.getEndTime(),mPlan.getFullCost(),mPlan);\n else\n plan.makeCalculations(trip.getStartTime(),trip.getEndTime(),0,mPlan);\n POI last=plan.getLastPOI();\n for(int i=0; i< POIs.size();i++){\n // Check if iam in Time range or not\n if(!currentTime.compare(timeEnd))\n break;\n else{\n if(canInsertLast(plan, POIs.get(i), trip, currentTime,mPlan,skip)){\n // update current time & plan\n Time from = new Time (0,0);\n Time to = new Time (0,0);\n if(last!=null){\n // cal travel time\n currentTime.add(last.getShortestPath(POIs.get(i).getId()));\n // cal waste time\n int x = Time.substract(currentTime, POIs.get(i).getOpenTime());\n if(skip&&x!=-1)\n currentTime.add(x);\n \n from.hour = currentTime.hour;\n from.min = currentTime.min;\n // cal poi duration \n currentTime.add(POIs.get(i).getDuration());\n to.hour = currentTime.hour;\n to.min = currentTime.min;\n }\n else{\n if(mPlan==null){\n int x = Time.substract(currentTime, POIs.get(i).getOpenTime());\n if(skip&&x!=-1)\n currentTime.add(x);\n from.hour = currentTime.hour;\n from.min = currentTime.min;\n currentTime.add(POIs.get(i).getDuration());\n to.hour = currentTime.hour;\n to.min = currentTime.min;\n }\n else{\n POI mLast = mPlan.getLastPOI();\n if(mLast!=null)\n currentTime.add(mLast.getShortestPath(POIs.get(i).getId()));\n int x = Time.substract(currentTime, POIs.get(i).getOpenTime());\n if(skip&&x!=-1)\n currentTime.add(x);\n from.hour = currentTime.hour;\n from.min = currentTime.min;\n currentTime.add(POIs.get(i).getDuration());\n to.hour = currentTime.hour;\n to.min = currentTime.min;\n }\n }\n plan.insert(POIs.get(i), plan.getNOV(),from,to,null);\n if(mPlan!=null)\n plan.makeCalculations(trip.getStartTime(), trip.getEndTime(),mPlan.getFullCost(),mPlan);\n else\n plan.makeCalculations(trip.getStartTime(),trip.getEndTime(),0,mPlan);\n last=POIs.get(i);\n // Remove poi from POIs\n POIs.remove(i);\n i--;\n }\n }\n }\n }",
"public void doubleSpeed()\r\n {\r\n \tthis.speed= speed-125;\r\n \tgrafico.setVelocidad(speed);\r\n }",
"public void setOperTime(String operTime) {\r\n\t\tthis.operTime = operTime;\r\n\t}",
"long getTimeSinceLastRise(Coordinates coord, double horizon, long time) throws AstrometryException;",
"long getTimeSpoutBoltA();",
"public TIPO tipoDeB(int op, TIPO tipo1, TIPO tipo2){\r\n\t\tif(tipo1 == TIPO.err || tipo2 == TIPO.err) return TIPO.err;\r\n\t\telse if( op == opMenor || op == opMenIg||\r\n\t\t\top == opMayor|| op == opIgual||\r\n\t\t\top == opMayIg || op == opDistinto){\r\n\t\t\treturn TIPO.ent;\r\n\t\t}\r\n\t\telse if( op == opSuma || op == opMult||\r\n\t\t\top == opMenos || op == opDiv){\r\n\t\t\tif(tipo1 == TIPO.ent && tipo2 == TIPO.ent) return TIPO.ent;\r\n\t\t\telse return TIPO.real;\r\n\t\t}\r\n\t\telse if( op == opAnd || op == opMod||\r\n\t\t\top == opOr){\r\n\t\t\tif(tipo1 == TIPO.ent && tipo2 == TIPO.ent) return TIPO.ent;\r\n\t\t\telse return TIPO.err;\r\n\t\t}\r\n\t\telse/*( op == opAsig)*/{\r\n\t\t\tif(tipo1 == TIPO.ent && tipo2 == TIPO.ent) return TIPO.ent;\r\n\t\t\telse if( (tipo1 == TIPO.real && tipo2 == TIPO.ent) ||\r\n\t\t\t\t\t (tipo1 == TIPO.real && tipo2 == TIPO.real)){\r\n\t\t\t\treturn TIPO.real;\r\n\t\t\t}\r\n\t\t\telse return TIPO.err;\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tTime time1 = new Time(), time2 = new Time(), time3 = new Time();\r\n\t\ttime1.settime(1, 30);\r\n\t\ttime2.settime(2, 30);\r\n\t\ttime3 = time1.sum(time2);\r\n\r\n\t\tSystem.out.print(\"Time1 is: \");\r\n\t\ttime1.showtime();\r\n\t\tSystem.out.println(\"\\n\");\r\n\t\tSystem.out.print(\"Time2 is: \");\r\n\t\ttime2.showtime();\r\n\t\tSystem.out.println(\"\\n\");\r\n\t\tSystem.out.print(\"Sum of the time1 is: \");\r\n\t\ttime3.showtime();\r\n\t}",
"private void temporizadorRonda(int t) {\n Timer timer = new Timer();\n TimerTask tarea = new TimerTask() {\n @Override\n public void run() {\n if (!dead) {\n vida = vidaEstandar;\n atacar();\n rondas ++;\n tiempoRonda = tiempo;\n incrementarTiempo();\n reiniciarVentana();\n if(rondas == 4){\n matar();\n }\n temporizadorRonda(tiempo);\n }\n }\n };\n timer.schedule(tarea, t * 1000);\n }",
"public int resta(){\r\n return x-y;\r\n }",
"public long getBestSolutionTime();",
"private Long calcTiempoCompensado(Long tiempoReal, Barco barco, Manga manga) {\n //Tiempo compensado = Tiempo Real + GPH * Nº de millas manga.\n Float res = tiempoReal + barco.getGph() * manga.getMillas();\n return (long) Math.round(res);\n }",
"public Instrucoes2op(){\n\t\tmmm1 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do primeiro operando\n\t\tmmm2 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do segundo operando \n\t\trrr1 = \"\";\n\t\trrr2 = \"\";\t\n\t}",
"private void calculeStatRemove() {\n resourceA = this.getContext().getGame().getPlayer(idPlayer).getInventory().getValueRessource(type);\n int loose = resourceB - resourceA;\n int diff = (resourceA - resourceB) + value;\n this.getContext().getStats().incNbRessourceLoosePlayers(idPlayer,type,loose);\n this.getContext().getStats().incNbRessourceNotLoosePlayers(idPlayer,type,diff);\n }",
"Expression getReaction_time_parm();",
"public static void dodavanjeTeretnogVozila() {\n\t\tString vrstaVozila = \"Teretno Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 20000;\n\t\tdouble cenaServisa = 10000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedista = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tSystem.out.println(\"Unesite maximalnu masu koje vozilo moze da prenosi u KG !!\");\n\t\tint maxMasauKg = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite maximalnu visinu u m:\");\n\t\tdouble visinauM = UtillMethod.unesiteBroj();\n\t\tTeretnaVozila vozilo = new TeretnaVozila(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedista, brVrata, vozObrisano, servisiNadVozilom, maxMasauKg, visinauM);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}",
"void takeBefore(){\n beforeTimeNs=System.nanoTime();\n }",
"public int calculateTimeForDeceleration(int i) {\n return super.calculateTimeForDeceleration(i) * 4;\n }",
"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}",
"public void not (int dirOp1, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n if (ManejadorMemoria.isConstante(dirOp1)){ // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes,auxOperacion(dirOp1,0,valor1,\"\",Codigos.NOT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, 0, valor1, \"\", Codigos.NOT));\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)){ // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, 0, valor1, \"\", Codigos.NOT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, 0, valor1, \"\", Codigos.NOT));\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, 0, valor1, \"\", Codigos.NOT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, 0, valor1, \"\", Codigos.NOT));\n }\n }\n }",
"public static void triathlon(Scanner data) {\n String name = data.next();\n int winnerTime = data.nextInt() + data.nextInt() + data.nextInt();\n System.out.println(name + \": \" + winnerTime + \" min\");\n\n while (data.hasNext()) {\n name = data.next();\n int time = data.nextInt() + data.nextInt() + data.nextInt();\n System.out.println(name + \": \" + time + \" min (+\" + (time - winnerTime) + \" min)\");\n }\n }",
"private Map<String, Long> getJudgeTime(Expression expr, long time) {\n \n\n if (!inTimeScope(expr, time)) {\n return null;\n }\n\n Map<String, Long> timeMap = new HashMap<String, Long>();\n long time_to = time;\n long time_from = time - (expr.getTime_to() - expr.getTime_from());\n timeMap.put(\"time_from\", time_from);\n timeMap.put(\"time_to\", time_to);\n long last_time_to;\n if (expr.getInterval() != 0) {\n\n if ((time_to - expr.getTime_to()) % expr.getInterval() == 0) {\n\n timeMap.put(\"last_time_from\", time_from - expr.getInterval());\n timeMap.put(\"last_time_to\", time_to - expr.getInterval());\n }\n else {\n return null;\n }\n }\n else {\n if ((time_to - expr.getTime_to()) % (24 * 3600 * 1000) == 0) {\n switch (expr.getUnit()) {\n case DateTimeHelper.INTERVAL_DAY:\n\n timeMap.put(\"last_time_from\", time_from - 24 * 3600 * 1000);\n timeMap.put(\"last_time_to\", time_to - 24 * 3600 * 1000);\n break;\n case DateTimeHelper.INTERVAL_WEEK:\n\n timeMap.put(\"last_time_from\", time_from - 7 * 24 * 3600 * 1000);\n timeMap.put(\"last_time_to\", time_to - 7 * 24 * 3600 * 1000);\n break;\n case DateTimeHelper.INTERVAL_MONTH:\n\n last_time_to = DateTimeHelper.getMonthAgo(new Date(time_to)).getTime();\n timeMap.put(\"last_time_to\", last_time_to);\n timeMap.put(\"last_time_from\", last_time_to - (time_to - time_from));\n break;\n case DateTimeHelper.INTERVAL_YEAR:\n\n last_time_to = DateTimeHelper.getYearAgo(new Date(time_to)).getTime();\n timeMap.put(\"last_time_to\", last_time_to);\n timeMap.put(\"last_time_from\", last_time_to - (time_to - time_from));\n break;\n }\n }\n else {\n return null;\n }\n\n }\n\n return timeMap;\n }",
"public ArrayList<String> ExcutarCalculo(ArrayList<String> linha, String tipo){\n ArrayList<String> cod = new ArrayList();\n String reg, rv1, rv2;\n \n /*Verifica se a variavel tem registrador*/\n reg = r.getRegistrador(linha.get(0));\n if(linha.size() == 3){//x = n\n rv1 = r.getRegistrador(linha.get(2));//Verifica se é variavel\n \n if(reg == null){\n reg = \"r\"+(r.getMax()+1);\n r.Add(linha.get(0), reg);\n } \n \n if(rv1 == null)\n cod.add(\"load \"+reg+\", \"+linha.get(2));\n else\n cod.add(\"load \"+reg+\", \"+rv1);\n }else{\n ArrayList<String> aux = new ArrayList();\n String[] ordem = new String[100];\n String [][]operador = {{\"(\",\"\"},{\"*\",\"mult\"},{\"/\",\"div\"},{\"+\",\"add\"},{\"-\",\"sub\"}};\n String []temp = {\"ra\",\"rb\",\"rc\",\"rd\",\"re\",\"rf\"};\n Boolean ctr = false;\n int i, j, k, tl, ctrTemp, r1, r2, pos;\n \n for(i = 0; i < 100; i++){\n ordem[i] = \"\";\n } \n \n tl = ctrTemp = 0;\n for(i = 0; i < 5; i++){\n for(j = 0; j < linha.size(); j++){\n if(linha.get(j).contains(operador[i][0])){\n if(i == 0){\n /* min = verificaRegistradores(linha.get(j+1),linha.get(j+3),temp);\n \n if(min == -1){\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+1);//Carrega val no registrador t1\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+3);//Carrega val no registrador t2\n }\n \n \n for(k = 0; k < 5; k++){\n if(linha.get(j+2).contains(operador[k][0])){ \n if(operador[k][1].equals(\"add\")){\n if(tipo.equals(\"int\"))\n ordem[tl] += \"addi\";\n else\n ordem[tl] += \"addf\";\n }\n \n k = 5;\n }\n }\n \n ordem[tl] += \" \"+temp[ctrTemp-2];//temp3 por conta de reuso\n ordem[tl] += \", \"+temp[ctrTemp-1];//temp2\n ordem[tl] += \", \"+temp[ctrTemp-2];//temp1\n tl++;\n \n for(k = 0; k < 5; k++)//( ate )\n linha.remove(j);\n linha.add(j,temp[ctrTemp-2]);\n \n if(min == -1)\n ctrTemp -= 1;\n else\n ctrTemp = 0;*/\n }else{\n rv1 = r.getRegistrador(linha.get(j-1));\n rv2 = r.getRegistrador(linha.get(j+1));\n \n r1 = verificaRegistradores(linha.get(j-1),temp);\n if(r1 == -1){//Nenhum registrador\n if(rv1 == null)\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j-1);//Carrega val no registrador t1\n else\n ordem[tl++] = \"move \"+temp[ctrTemp++]+\", \"+rv1;\n }\n r2 = verificaRegistradores(linha.get(j+1),temp);\n if(r2 == -1){//Nenhum registrador\n if(rv2 == null)\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+1);//Carrega val no registrador t2\n else\n ordem[tl++] = \"move \"+temp[ctrTemp++]+\", \"+rv2;//Carrega val no registrador t2\n } \n \n pos = ctrTemp;//como posso entrar no mult ou no add\n if(operador[i][1].equals(\"mult\") || operador[i][1].equals(\"div\")){\n ctrTemp -= 2;\n \n if(operador[i][1].equals(\"mult\")){\n aux = mult(linha.get(j-1), linha.get(j+1), tipo, temp[ctrTemp++]);\n }else\n if(operador[i][1].equals(\"div\")){\n aux = div(linha.get(j-1), linha.get(j+1), tipo, temp[ctrTemp++]);\n }\n \n tl -= 2;\n for(k = 0; k < aux.size(); k++){\n ordem[tl++] = aux.get(k);\n }\n pos = ctrTemp-1;\n \n if(r1!= -1 && r2 != -1)\n ctrTemp -= 2;\n /*else\n ctrTemp -= 1;*/\n }else\n if(operador[i][1].equals(\"add\") || operador[i][1].equals(\"sub\")){\n if(operador[i][1].equals(\"sub\")){\n ordem[tl-1] = \"load \"+temp[ctrTemp-1]+\", -\"+linha.get(j+1);\n }\n \n if(tipo.equals(\"int\"))\n ordem[tl] += \"addi\";\n else\n ordem[tl] += \"addf\";\n \n ordem[tl] += \" \"+temp[ctrTemp-2];//temp3\n ordem[tl] += \", \"+temp[ctrTemp-1];//temp2\n ordem[tl] += \", \"+temp[ctrTemp-2];//temp1\n tl++;\n pos = ctrTemp-2;\n \n if(r1!= -1 && r2 != -1)\n ctrTemp -= 2;\n else\n ctrTemp -= 1;\n }\n \n for(k = 0; k < 3; k++)\n linha.remove(j-1);\n linha.add(j-1,temp[pos]);\n }\n ctr = true;//Faz repetir denovo caso adicione;\n }\n }\n if(ctr){\n i--;//Controla pra só sair quando tiver excluido todas operacoes desse tipo\n ctr = false;\n }\n }\n for(k = 0; k < tl; k++){\n cod.add(ordem[k]);\n }\n\n if(reg == null){\n reg = \"r\"+(r.getMax()+1);\n r.Add(linha.get(0), reg);\n }\n cod.add(\"move \"+reg+\", \"+temp[ctrTemp-1]);\n ctrTemp = 0;\n }\n \n return cod;\n }",
"public Date getOPER_TIME() {\n return OPER_TIME;\n }",
"public static Result comp2(){\n\t\t\t\n\t\t\t//Requête pour récupèrer le nombre de viols en espagne\n\t \t //requete pour recuperer les valeurs , les dates et les pays avec filtre date et pays \n\t \t// creattion d modele \n\t\t\tModel m = ModelFactory.createDefaultModel();\n\t\t\t // j'int�gre mon modele dans un autre modele inf�r� \n\t\t\tInfModel infm = ModelFactory.createRDFSModel(m);\n\t\t\t // je lis les deus fichier .RDF et .ttl pour le sujet crime \t\t\n\t\t\tString ns = \"http://www.StatisticSquade.fr#\";\n\t\t \tinfm.setNsPrefix(\"StatisticSquade\", ns);\n\t\t \t/// name space de eurostat\n\t\t \tString nsEuro = \"http://eurostat.linked-statistics.org/data/\";\n\t\t\tinfm.setNsPrefix(\"Eurostat\", nsEuro);\n\t\t\tFileManager.get().readModel(infm, rdf_file0 );\n\t\t\tFileManager.get().readModel(infm, rdf_file1 ); \n\t\t\t\n\t\t\t//Construction dynamique des requêtes\n\t\t\t/**\n\t\t\t * Récupération des pays\n\t\t\t */\n\t\t\n\t\t\t/**\n\t\t\t * \n\t\t\t * récupétation autes\n\t\t\t */\n\t\t\tString pays = Form.form().bindFromRequest().get(\"pays\");\n\t\t\tanneeDebut = Form.form().bindFromRequest().get(\"anneeDebut\");\n\t\t\tanneeFin = Form.form().bindFromRequest().get(\"anneeFin\");\n\t\t\tString sujet1 = Form.form().bindFromRequest().get(\"sujet1\");\n\t\t\tString sujet2 = Form.form().bindFromRequest().get(\"sujet2\");\n\t\t\tString [] tabAnneeDebut = anneeDebut.split(\"-\");\n\t String anneeD = tabAnneeDebut[0];\n\t int aDebut = Integer.parseInt(anneeD);\n\t String [] tabAnneeFin = anneeFin.split(\"-\");\n\t String anneeF = tabAnneeFin[0];\n\t int aFin = Integer.parseInt(anneeF);\n\t if(aFin < aDebut){\n\t \tString anneeTemp = anneeDebut;\n\t \tanneeDebut = anneeFin;\n\t \tanneeFin = anneeTemp;\n\t }\n\n\t String rdq1 = \n\t\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet1+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \"; \n\t\t \n\t\tString rdq2 = \n\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet2+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \";\n\t\t\n \n //mapping entre sujets et leurs codes\n HashMap<String,String> codeToSujet = new HashMap<String,String>();\n codeToSujet.put(\"DBURG\", \"Cambriolages dans un lieu d'habitation\");\n codeToSujet.put(\"DRUGT\", \"Trafic de stupéfiants\");\n codeToSujet.put(\"HCIDE\", \"Homicides\");\n codeToSujet.put(\"VTHFT\", \"Vols de véhicules à moteur\");\n codeToSujet.put(\"VIOLT\", \"Crimes et délits violents\");\n codeToSujet.put(\"ROBBR\", \"Vols avec violences\");\n\t\t\t\n //Execution des requêtes\n /**\n * Requête 1\n */\n Query query1 = QueryFactory.create(rdq1); \n\t QueryExecution qexec1 = QueryExecutionFactory.create(query1,m);\n\t /////////\n\t ResultSet rs1 = qexec1.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste1 = ResultSetFormatter.toList(rs1);\n\t Iterator<QuerySolution> it1 = liste1.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map1 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString1 = new ArrayList<String>();\n while(it1.hasNext()){\n \t \n \t QuerySolution elt1 = it1.next();\n String anneeElt1 = elt1.get(\"Date\").toString();\n String valeur1 = elt1.get(\"Valeur\").toString();\n String [] tabAnnee1 = anneeElt1.split(\"-\");\n String annee1 = tabAnnee1[0];\n map1.put(Integer.parseInt(annee1), valeur1);\t \n donneesString1.add(valeur1);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd1 = new TreeMap<Integer,String>(map1);\n /**\n * Requete 2\n */\n Query query2 = QueryFactory.create(rdq2); \n\t QueryExecution qexec2 = QueryExecutionFactory.create(query2,m);\n\t /////////\n\t ResultSet rs2 = qexec2.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste2 = ResultSetFormatter.toList(rs2);\n\t Iterator<QuerySolution> it2 = liste2.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map2 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString2 = new ArrayList<String>();\n while(it2.hasNext()){\n \t \n \t QuerySolution elt2 = it2.next();\n String anneeElt2 = elt2.get(\"Date\").toString();\n String valeur2 = elt2.get(\"Valeur\").toString();\n String [] tabAnnee2 = anneeElt2.split(\"-\");\n String annee2 = tabAnnee2[0];\n map2.put(Integer.parseInt(annee2), valeur2);\t \n donneesString2.add(valeur2);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd2 = new TreeMap<Integer,String>(map2);\n \n //////////\n JsonObject title = new JsonObject();\n title.put(\"text\", \"Nombre de \"+codeToSujet.get(sujet1)+\" et de \"+codeToSujet.get(sujet2));\n \n JsonObject subtitle = new JsonObject();\n subtitle.put(\"text\", pays);\n \n JsonObject xAxis = new JsonObject();\n xAxis.put(\"type\", \"value\");\n \n JsonObject titleY = new JsonObject();\n titleY.put(\"text\", \"valeurs :\");\n JsonObject yAxis = new JsonObject();\n yAxis.put(\"title\", titleY);\n yAxis.put(\"min\", 0);\n \n JsonArray series = new JsonArray();\n \n JsonObject objSerie1 = new JsonObject();\n objSerie1.put(\"name\", codeToSujet.get(sujet1));\n JsonArray data1 = new JsonArray();\n for(Entry<Integer, String> entry1 : mapOrd1.entrySet()){\n \t \n \t JsonArray eltData1 = new JsonArray();\n eltData1.add(entry1.getKey());\n eltData1.add(Integer.parseInt(entry1.getValue()));\n data1.add(eltData1);\n \n }\n objSerie1.put(\"data\",data1);\n series.add(objSerie1);\n \n \n \n JsonObject objSerie2 = new JsonObject();\n objSerie2.put(\"name\", codeToSujet.get(sujet2));\n JsonArray data2 = new JsonArray(); \n for(Entry<Integer, String> entry2 : mapOrd2.entrySet()){\n \t \n \t JsonArray eltData2 = new JsonArray();\n eltData2.add(entry2.getKey());\n eltData2.add(Integer.parseInt(entry2.getValue()));\n data2.add(eltData2);\n }\t \n objSerie2.put(\"data\",data2); \n series.add(objSerie2);\n \n \n //Ajouter au graphe\n JsonObject graphe = new JsonObject();\n graphe.put(\"title\", title);\n graphe.put(\"subtitle\", subtitle);\n graphe.put(\"xAxis\", xAxis);\n graphe.put(\"yAxis\", yAxis);\n graphe.put(\"series\", series);\n /**\n * \n * données statistiques\n */\n \n \n StatisticsComputation myStats = new StatisticsComputation(donneesString1, donneesString2);\n double covariance = myStats.covariance();\n\t\tdouble pearsonsCorrelation = myStats.pearsonsCorrelation();\n\t\tSystem.out.println(\"Ma covariance \" + covariance);\n\t\tSystem.out.println(\"Ma correlation \" + pearsonsCorrelation);\n\t\tdouble mean = myStats.mean();\n\t\tdouble standardDeviation = myStats.standardDeviation();\n\t\tSystem.out.println(\"Ma moyenne \" + mean);\n\t\tSystem.out.println(\"Mon écart-type \" + standardDeviation);\n\n /**\n * \n * Données statistiques fin\n */\n\t\t/**\n\t\t * Ajout au graphe\n\t\t */\n\t\tGraphCreation gc = new GraphCreation(\"crim_gen\");\n\t\tgc.postGraph(sujet1+\"-\"+sujet2+\"-\"+pays, sujet1+pays, sujet2+pays, anneeDebut, anneeFin, \n\t\t\t\t Double.toString(pearsonsCorrelation), Double.toString(mean), Double.toString(standardDeviation), \n\t\t\t\t Double.toString(covariance));\n\t\tgc.save();\n\t\t\n\t\tString ip = request().remoteAddress();\n ArrayList<String> listeComments = gc.getComments(sujet1+\"-\"+sujet2+\"-\"+pays, false); \n if(listeComments !=null){\n\t\tIterator<String> it = listeComments.iterator();\n\t\tList<Comment> listeCom = new ArrayList<Comment>();\n\t\twhile(it.hasNext()){\n\t\t\tString elt = it.next();\n\t\t\tString [] tab = elt.split(\";\");\n\t\t\tString nomRecup = tab[0];\n\t\t\tString dateRecup = tab[1];\n\t\t\tString contenuRecup = tab[2];\n\t\t\tComment comment1 = new Comment(nomRecup,dateRecup,contenuRecup);\n\t\t\tlisteCom.add(comment1);\n\t\t}\n\t\tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,listeCom,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n\t\treturn ok(comp2.render(g));\n }else{\n \tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,null,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n \t\treturn ok(comp2.render(g));\t\n \t\n }\n\t\t \n\t\t \n\t \t\n\t \t\n\t }",
"double cekStop(double x[][], double v0[],double v[][],double w0[],double w[][], double t[]){\n double akumY=0;\n //~ itung z_in dan z\n for(int h=0; h<jumlah_data; h++){\n for(int j=0; j<unit_hidden; j++){\n //itung sigma xi vij\n double jum_xv=0;\n for(int i=0; i<unit_input; i++){\n double cc=x[h][i]*v[i][j];\n jum_xv=jum_xv+cc;\n //System.out.println(x[h][j]);\n }\n z_in[j]=v0[j]+jum_xv;\n //itung z\n z[j]=1/(1+(double)Math.exp(-z_in[j]));\n //System.out.println(\" dan z= \"+z[j]);\n }\n \n //~ itung y_in dan y (output)\n double cxc=0;\n for(int k=0; k<unit_output; k++){\n double jum_zw=0;\n for(int j=0; j<unit_hidden; j++){\n double cc=z[j]*w[j][k];\n jum_zw=jum_zw+cc;\n }\n y_in[k]=w0[k]+jum_zw;\n y[k]=1/(1+(double)Math.exp(-y_in[k]));\n akumY = akumY + Math.pow((t[h]-y[k]),2);\n //System.out.println(t[h]+\"-\"+y[k]+\"=\"+(t[k]-y[k]));\n }\n }\n double E = 0.5 * akumY;\n //System.out.println(E);\n return E;\n }",
"@Override\n\tpublic void SimulaSe(int DiffTime) {\n\t\t\n\t\tcalculaIA(DiffTime);\n\t\t\n\t\t\n\t\t\n\t}",
"public TTPSolution SH2() {\n \n // get TTP data\n long[][] D = ttp.getDist();\n int[] A = ttp.getAvailability();\n double maxSpeed = ttp.getMaxSpeed();\n double minSpeed = ttp.getMinSpeed();\n long capacity = ttp.getCapacity();\n double C = (maxSpeed - minSpeed) / capacity;\n double R = ttp.getRent();\n int m = ttp.getNbCities(),\n n = ttp.getNbItems();\n TTPSolution s = new TTPSolution(m, n);\n int[] x = s.getTour(),\n z = s.getPickingPlan();\n \n /*\n * the tour\n * generated using greedy algorithm\n */\n x = linkernTour();\n z = zerosPickingPlan();\n Deb.echo(x);\n Deb.echo(z);\n \n /*\n * the picking plan\n * generated so that the TTP objective value is maximized\n */\n ttp.objective(s);\n \n // partial distance from city x_i\n long di;\n \n // partial time with item k collected from city x_i\n double tik;\n \n // item scores\n Double[] score = new Double[n];\n \n // total time with no items collected\n double t_ = s.ft;\n \n // total time with only item k collected\n double tik_;\n \n // fitness value\n double u[] = new double[n];\n \n for (int k=0; k<n; k++) {\n \n int i;\n for (i=0; i<m; i++) {\n if (A[k]==x[i]) break;\n }\n //P.echo2(\"[\"+k+\"]\"+(i+1)+\"~\");\n \n // time to start with\n tik = i==0 ? .0 : s.timeAcc[i-1];\n int iw = ttp.weightOf(k),\n ip = ttp.profitOf(k);\n \n // recalculate velocities from start\n di = 0;\n for (int r=i; r<m; r++) {\n \n int c1 = x[r]-1;\n int c2 = x[(r+1)%m]-1;\n \n di += D[c1][c2];\n tik += D[c1][c2] / (maxSpeed-iw*C);\n }\n \n score[k] = ip - R*tik;\n tik_ = t_ - di + tik;\n u[k] = R*t_ + ttp.profitOf(k) - R*tik_;\n //P.echo(k+\" : \"+u[k]);\n }\n \n Quicksort<Double> qs = new Quicksort<Double>(score);\n qs.sort();\n int[] si = qs.getIndices();\n int wc = 0;\n for (int k=0; k<n; k++) {\n int i = si[k];\n int wi = ttp.weightOf(i);\n // eliminate useless\n if (wi+wc <= capacity && u[i] > 0) {\n z[i] = A[i];\n wc += wi;\n }\n }\n \n ttp.objective(s);\n \n return s;\n }",
"public Ruteo procedimientoIterativoGrasp(Auxiliar a){\n\t\t double time1= System.currentTimeMillis();\n\t\t\n\t\tDouble mejorCosto=9999999999999999.9;\n\t\tRuteo mejorRuteo=null;\n\t\tlistaSetCovering=new ArrayList<Ruta>();\n\t\tfor(int i=0;i<k;i++){\n\t\t\tHeuristicasTSPManagger h=new HeuristicasTSPManagger();\n\t\t\tList<Obra>tsp=h.CWJPC();\n\n\t\t\tList<Obra>tsp1=a.busquedaLocal(tsp);\n\t\t\n\t\t\tRuteo r2=a.split(tsp1);\n\t\t\tSystem.out.println(r2.rutas);\n\t\t\tlistaSetCovering.addAll(r2.rutas);\n\t\t\tif(mejorCosto>r2.costoTotal){\n\t\t\t\tmejorCosto=r2.costoTotal;\n\t\t\t\tmejorRuteo=r2;\n\t\t\t}\n\t\t}\n\t\t double time2= System.currentTimeMillis();\n\t\t tiempoComputacionalIterGrasp=(time2-time1)/(1000.0*k);\n\t\t tiempoComputacionalGrasp=(time2-time1)/(1000.0);\n\t\treturn mejorRuteo;\n\t}",
"float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 - n2;\r\n\t}",
"public void setOperatetime(Date operatetime) {\r\n this.operatetime = operatetime;\r\n }",
"public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }",
"private void reverseCompSpeed() {\n this.compSpeed = -this.compSpeed;\n }",
"public static void main(String[] args) {\n\t\tfinal double constante = 5/9.0;\n\t\tfinal int constante2 = 32;\n\t\t\n\t\tdouble temperaturaF = 65;\n\t\t\n\t\tdouble result = (temperaturaF - constante2) * constante;\n\t\t\n\t\tSystem.out.print(\"A temperatura em c é \" + result);\n\t\t\n\t}",
"public int getCrossingTime(){return this.crossingTime;}",
"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}",
"@Override\n public Coup meilleurCoup(Plateau _plateau, Joueur _joueur, boolean _ponder) {\n \n _plateau.sauvegardePosition(0);\n \n /* On créé un noeud père, qui est le noeud racine de l'arbre. On définit arbitrairement le joueur associé (\n (0 ou 1, il importe peu de savoir quel joueur correspond à ce nombre, cette information étant déjà portée par \n j1 et j2 dans l'algorithme. Le tout est de faire alterner cette valeur à chaque niveau de l'arbre. */\n \n Noeud pere = new Noeud();\n pere.joueurAssocie = 0;\n \n // On définit ici c, le coefficient d'arbitrage entre exploration et exploitation. Ce dernier est théroquement optimal pour una valeur égale à sqrt(2).\n \n double c = 10 * Math.sqrt(2);\n double[] resultat = new double[2];\n \n // Conditions de fonctionnement par itération\n \n //int i = 1;\n //int nbTours = 10000;\n \n //while(i <= nbTours){\n \n // Conditions de fonctionnement en mode \"compétition\" (100 ms pour se décider au maximum).\n \n long startTime = System.currentTimeMillis();\n \n while((System.currentTimeMillis()-startTime) < 100){\n\n // La valeur résultat ne sert à rien fondamentalement ici, elle sert uniquement pour le bon fonctionnement de l'algorithme en lui même.\n // On restaure le plateau à chaque tour dans le MCTS (Sélection - Expension - Simulation - Backpropagation). \n \n resultat = MCTS(pere, _plateau, this.j_humain, this.j_ordi, c, this.is9x9, this.methodeSimulation);\n _plateau.restaurePosition(0);\n \n //i++;\n }\n\n // On doit maintenant choisir le meilleur coup parmi les fils du noeud racine, qui correspondent au coup disponibles pour l'IA.\n \n double maxValue = 0;\n int maxValueIndex = 0;\n \n for(int j = 0; j < pere.fils.length; j++){\n \n double tauxGain = ((double)pere.fils[j].nbPartiesGagnees / (double)pere.fils[j].nbPartiesJouees);\n\n // On choisirat le coup qui maximise le taux de gain des parties simulées.\n \n if(tauxGain >= maxValue){\n maxValueIndex = j;\n maxValue = tauxGain;\n \n }\n }\n \n // On retourne le coup associé au taux de gain le plus élevé.\n\n return pere.fils[maxValueIndex].coupAssocie;\n }",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"public void moverCeldaArriba(){\n if (laberinto.celdas[item.x][item.y-1].tipo != 'O' && laberinto.celdas[item.x][item.y-1].tipo !='J'&& laberinto.celdas[item.x][item.y-1].tipo !='P' && laberinto.celdas[item.x][item.y-1].tipo !='A') {\n laberinto.celdas[item.x][item.y].tipo = 'V';\n item.y=item.y-1;\n laberinto.celdas[item.x][item.y].tipo = 'I';\n }\n if (laberinto.celdas[item.x][item.y-1].tipo == 'C') {\n \n laberinto.celdas[item.x][item.y].tipo = 'V';\n laberinto.celdas[anchuraMundoVirtual/2][alturaMundoVirtual/2].tipo = 'I';\n \n player1.run();\n player2.run();\n }\n /* if (item.y > 0) {\n if (laberinto.celdas[item.x][item.y-1].tipo != 'O' && laberinto.celdas[item.x][item.y-1].tipo !='J' && laberinto.celdas[item.x][item.y-1].tipo !='A') {\n if (laberinto.celdas[item.x][item.y-1].tipo == 'I') {\n if (item.y-2 > 0) {\n laberinto.celdas[item.x][item.y-2].tipo = 'I';\n laberinto.celdas[item.x][item.y-1].tipo = 'V';\n }\n }else{\n laberinto.celdas[item.x][item.y].tipo = 'V';\n item.y=item.y-1;\n laberinto.celdas[item.x][item.y].tipo = 'I';\n // laberinto.celdas[item.x][item.y].indexSprite=Rand_Mod_Sprite()+3;\n } \n } \n }*/\n }",
"public double getStopTime();",
"public void calculateTimeDifferences() {\n\n findExits();\n\n try {\n\n\n if (accumulate.size() > 0) {\n\n for (int i = 1; i < accumulate.size() - 1; i++) {\n if (accumulate.get(i).value > accumulate.get(i - 1).value\n && timeOfExists.size() > 0) {\n\n double timeOfEntry = accumulate.get(i).timeOfChange;\n double timeOfExit = timeOfExists.get(0);\n\n timeOfExists.remove(timeOfExit);\n timeOfChanges.add(timeOfExit - timeOfEntry);\n }\n\n }\n }\n } catch (IndexOutOfBoundsException exception) {\n LOG_HANDLER.logger.severe(\"calculateTimeDifferences \"\n + \"Method as thrown an OutOfBoundsException: \"\n + exception\n + \"Your timeOfChanges seems to be null\");\n }\n }",
"public void ajaTesti() {\n \n long summa1 = 0;\n long summa2 = 0;\n int laskuri1=0; //test\n int laskuri2=0;\n \n Taytto tulosN = null;\n TayttoDP tulosDP = null;\n \n //rotatoidaan testien suoritusjärjestystä kerran\n int rot = 2;\n for (int i=0;i<rot;i++) {\n //random järjestys\n //Tavara[] ar = shuffleTavarat();\n\n Tavara[] ar = this.tavarat;\n Taytto tayttoN = new Taytto(ar, sakki);\n TayttoDP tayttoDP = new TayttoDP(ar, sakki);\n\n long aikaAlussa = 0;\n long aikaLopussa = 0;\n long aika = 0;\n\n int sisatoisto=this.toistokoe;\n //rotatoidaan testien ajojärjestys\n long sum1=0; \n long sum2=0; \n\n //ignoorataan 10 ensimmäistä tuloksista, lisätään siksi 10 ylimääräistä toistokierrosta\n for (int j=0;j<sisatoisto;j++) {\n\n if (i%2==0) {\n laskuri1++;\n\n // Mittaus naivi-algoritmi\n aikaAlussa = System.nanoTime();\n tayttoN.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n //ignoorataan 10 ensimmäistä tuloksista\n if(j>=0) sum1+=aika;\n\n // Mittaus DP -algoritmi\n aikaAlussa = System.nanoTime();\n tayttoDP.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if(j>=0) sum2+=aika;\n }\n else {\n laskuri2++; //test\n\n // Mittaus DP -algoritmi\n aikaAlussa = System.nanoTime();\n tayttoDP.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if(j>=0) sum2+=aika;\n \n // Mittaus naivi-algoritmi\n aikaAlussa = System.nanoTime();\n tayttoN.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if (j>=0) sum1+=aika;\n }\n\n //Tarkistus, että tulos sama kummallakin algoritmilla\n if (tayttoN.annaMaxArvo()!=tayttoDP.annaMaxArvo()) {\n System.out.println(\"Taytto1: Arvo: \" + tayttoN.annaMaxArvo() + \" , jono :\" + tayttoN.annaMaxJono());\n System.out.println(\"Taytto2: Arvo: \" + tayttoDP.annaMaxArvo() + \" , jono :\" + tayttoDP.annaMaxJono()); \n break;\n }\n \n \n }\n summa1+=sum1/(sisatoisto);\n summa2+=sum2/(sisatoisto);\n \n tulosN=tayttoN;\n tulosDP=tayttoDP;\n \n }\n// System.out.println(laskuri1);\n// System.out.println(laskuri2);\n\n \n long keskiarvo1 = summa1/rot;\n long keskiarvo2 = summa2/rot;\n\n String[] kootN = tulosN.annaMaxJono().split(\" \");\n int kokoN = 0;\n for (int i = 0; i < kootN.length; i++) {\n try {\n kokoN += this.tavarat[Integer.parseInt(kootN[i])-1].annaKoko();\n } catch (NumberFormatException nfe) {};\n } \n \n String[] kootDP = tulosDP.annaMaxJono().split(\" \");\n int kokoDP = 0;\n for (int i = 0; i < kootDP.length; i++) {\n try {\n kokoDP += this.tavarat[Integer.parseInt(kootDP[i])-1].annaKoko();\n } catch (NumberFormatException nfe) {};\n } \n\n System.out.println(this.nimi);\n System.out.println(\"Tavarat: \" + annaTavaroidenKokoJaArvo());\n System.out.println(\"Sakki \" + this.sakki.annaKoko() + \", lkm \" + this.koko + \", toistot \" + toistokoe);\n System.out.println(\"Keskiarvo (ms) Naiivi: \" + keskiarvo1/1000 + \", DP: \" + keskiarvo2/1000);\n System.out.println(\"Tulos Naiivi: maksimiarvo: \" + tulosN.annaMaxArvo() + \" koko: \" + kokoN + \" maksimiarvon toteuttavien travaroiden järjestysnumerot: \"); \n System.out.println(tulosN.annaMaxJono());\n System.out.println(\"Tulos DP: maksimiarvo: \" + tulosDP.annaMaxArvo() + \" koko: \" + kokoDP + \" maksimiarvon toteuttavien travaroiden järjestysnumerot: \");\n System.out.println(tulosDP.annaMaxJono());\n \n }",
"void imprimeValores(){\n System.out.println(\"coordenada del raton:(\"+pratonl[0][0]+\",\"+pratonl[0][1]+\")\");\n System.out.println(\"coordenada del queso:(\"+pquesol[0][0]+\",\"+pquesol[0][1]+\")\");\n imprimeCalculos();//imprime la diferencia entre las X y las Y de las coordenadas\n movimiento();\n }",
"public PhanSo truPS(PhanSo ps2){\n int a = tuSo*ps2.mauSo - mauSo*ps2.tuSo;\n int b = mauSo*ps2.mauSo;\n\n return new PhanSo(a,b);\n }",
"public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }",
"@Override\n\tpublic double calculateVelocity() {\n\t\tdouble result = distance / time + velocitySame - velocityReverse;\n\t\treturn result;\n\t}"
] | [
"0.5831042",
"0.5778062",
"0.5735247",
"0.5567913",
"0.55275124",
"0.5495666",
"0.5478543",
"0.54391056",
"0.54299986",
"0.54292095",
"0.5412539",
"0.5397864",
"0.5382521",
"0.5381555",
"0.53636724",
"0.52877975",
"0.5267122",
"0.5243612",
"0.5233035",
"0.5231679",
"0.5219844",
"0.5217574",
"0.5156934",
"0.51527154",
"0.5148799",
"0.51426524",
"0.5123295",
"0.51046795",
"0.5096726",
"0.508338",
"0.5082867",
"0.50744677",
"0.5073353",
"0.50711775",
"0.5057693",
"0.5055884",
"0.5055357",
"0.5053641",
"0.50494957",
"0.5022273",
"0.5021158",
"0.5017719",
"0.50151306",
"0.5008053",
"0.50013536",
"0.4999395",
"0.49968418",
"0.49939615",
"0.49872944",
"0.49828276",
"0.49826235",
"0.49771902",
"0.4975876",
"0.4966824",
"0.49622983",
"0.49572638",
"0.49560425",
"0.49472302",
"0.49465507",
"0.49447736",
"0.49371594",
"0.493703",
"0.4936588",
"0.49283448",
"0.49149925",
"0.49147812",
"0.49058166",
"0.49045187",
"0.489991",
"0.4899649",
"0.48950028",
"0.48943982",
"0.48898244",
"0.48855668",
"0.48794103",
"0.486946",
"0.48669547",
"0.48660076",
"0.48572996",
"0.4854842",
"0.48492095",
"0.4839904",
"0.4829904",
"0.48200667",
"0.48188573",
"0.48181567",
"0.48164707",
"0.48136982",
"0.48129618",
"0.48124716",
"0.48024002",
"0.48021576",
"0.48005328",
"0.4792826",
"0.4788084",
"0.47874466",
"0.47861356",
"0.47831425",
"0.47795296",
"0.47779366",
"0.47730955"
] | 0.0 | -1 |
Costruttore di un'istanza Azione Programmata | public AzioneProgrammata(ArrayList<Attuatore> attuatori, String azione) {
this.attuatori = attuatori;
this.azione = azione;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}",
"public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"private DittaAutonoleggio(){\n \n }",
"public GestioneApplicazione() {\n }",
"public static void main(String[] args) {\n IAcessoDatos datos = new ImplementacionMySql();\n //datos.listar();\n imprimir(datos);\n \n datos = new ImplementacionOracle();\n //datos.listar();\n imprimir(datos);\n }",
"public void sousClasseAnnoce()\n {\n try {\n Class c = Class.forName(\"lpae.entites.Annonce\");\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(GestionnaireSecurite.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"public ProgramWilmaa()\n\t{\n\t}",
"private void inizializzazione()\n {\n //Costruzione della Istanza display\n display = new Display(titolo,larghezza,altezza);\n \n /*Viene aggiunto il nostro gestore degli input da tastiera\n * alla nostra cornice.*/\n display.getCornice().addKeyListener(gestoreTasti);\n display.getCornice().addMouseListener(gestoreMouse);\n display.getCornice().addMouseMotionListener(gestoreMouse);\n display.getTelaGrafica().addMouseListener(gestoreMouse);\n display.getTelaGrafica().addMouseMotionListener(gestoreMouse);\n \n //Codice temporaneo per caricare la nostra immagine nel nostro programma\n /*testImmagine = CaricatoreImmagini.caricaImmagini(\"/Textures/Runner Stickman.png\");*/\n \n //Inizializzazione dell'attributo \"foglio\". Gli viene passato come parametro \n //\"testImmagine\" contenente l'immagine del nostro sprite sheet.\n /*foglio = new FoglioSprite(testImmagine);*/\n \n /*Inizializzazione della classe Risorse.*/\n Risorse.inizializzazione();\n \n maneggiatore = new Maneggiatore(this);\n /*Inizializzazione Camera di Gioco*/\n camera = new Camera(maneggiatore,0,0);\n \n /*Inizializzazione degli stati di gioco.*/\n statoMenu = new StatoMenù(maneggiatore);\n Stato.setStato(statoMenu);\n }",
"public static void main(String args []){\n Vista miVista=new Vista();\n ListaEstudiantes miListaEstudiantes=new ListaEstudiantes();\n Grupo miGrupo=new Grupo();\n Controlador miControlador=new Controlador(miVista,miListaEstudiantes,miGrupo);\n miControlador.iniciar();\n\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 }",
"public static void main(String[] args) throws Exception {\n\t\t\n\t\tSistemaInmobiliaria sistema= new SistemaInmobiliaria();\n\t\t\n\t\tLocalDate fechaInicio1= LocalDate.of(2019, 05, 28);\n\t\tLocalDate fechaInicio2= LocalDate.of(2019, 04, 19);\n\t\tLocalDate fechaInicio3= LocalDate.of(2019, 03, 27);\n\t\t\n\t\tLocatorio locatorio1= new Locatorio (4, 4444444, \"Pablo\", \"Perez\", \"1234567812\", true);\n\t\tLocatorio locatorio2= new Locatorio (5, 5555555, \"Homero\", \"Simpson\", \"1234567813\", true);\n\t\tLocatorio locatorio3= new Locatorio (6, 6666666, \"Lissa\", \"Simpson\", \"1234567814\", true);\n\t\t\n\t\tLocador locador1 = new Locador(1, 1111111, \"Nicolas\", \"Perez\", \"1234567890\",1,\"Frances\", 20,\"Animal\");\n\t\tLocador locador2= new Locador(2, 2222222, \"Romina\", \"Mansilla\", \"1234567810\",2,\"Santander Rio\",19,\"Pescado\");\n\t\tLocador locador3= new Locador(3, 3333333, \"Alejandra\", \"Vranic\", \"1234567811\",3,\"Patagonia\",18,\"Gato\");\n\t\t\n\t\tPropiedad propiedad1= new Propiedad (1, 1010, \"Uno\", 2340, 1, \"UF\", \"Lanús\", \"Buenos Aires\",locador1);\n\t\tPropiedad propiedad2= new Propiedad (2, 9090, \"Dos\", 2341, 2, \"UF1\", \"Lanús\", \"Buenos Aires\",locador2);\n\t\tPropiedad propiedad3= new Propiedad (3, 8080, \"Tres\", 2342, 3, \"UF2\", \"Lanús\", \"Buenos Aires\",locador3);\n\n\t\t/*-----------------------------------------------------------------------*/\n\t\t\n\t\tSystem.out.println(\"Agregar Contrato con id\");\n\t\t\n\t\tsistema.agregarContrato(1, locatorio1, propiedad1, 789, fechaInicio1, 1, 6, 7500, 10);\n\t\tsistema.agregarContrato(2, locatorio2, propiedad2, 345, fechaInicio2, 2, 8, 8500, 11);\n\t\t\n\t\tfor(Contrato c: sistema.getLstContratos()){\n\t\t\tSystem.out.println(c.toString());\n\t\t}\n\t\t\n\t System.out.println(\"-------------------------------------------------\");\n\t\t\n\t\t/*-----------------------------------------------------------------------*/\n\t \n\t\tSystem.out.println(\"Agregar Contrato con comision\");\n\t\t\n\t\tsistema.agregarContrato(locatorio3, propiedad3, 327, fechaInicio3, 3, 10, 1000, 12);\n\n\t\tfor(Contrato c: sistema.getLstContratos()){\n\t\t\tSystem.out.println(c.toString());\n\t\t}\n\t\t\n\t System.out.println(\"-------------------------------------------------\");\n\t \n\t /*-----------------------------------------------------------------------*/\n\t \n\t\tSystem.out.println(\"Traer contrato por id\");\n\t\t \n\t\tSystem.out.println(sistema.traerContratoPorId(1));\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\n\t\t/*-----------------------------------------------------------------------*/\n\t\t\n\t\tSystem.out.println(\"Traer contrato por comision\");\n\t\t \n\t\tSystem.out.println(sistema.traerContratoPorComision(327));\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\n\t\t/*-----------------------------------------------------------------------*/\n\t\t\n\t\tSystem.out.println(\"Modificar contrato por id\");\n\t\t \n\t\tSystem.out.println(sistema.modificarContratoPorId(2, locatorio2, propiedad2, 345, fechaInicio2, 2, 8, 9050, 9));\n\t\t\n\t\tfor(Contrato c: sistema.getLstContratos()){\n\t\t\tSystem.out.println(c.toString());\n\t\t}\n\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\n\t\t/*-----------------------------------------------------------------------*/\n\t\t\n\t\tSystem.out.println(\"Modificar Propiedad por comision\");\n\t\t \n\t\tSystem.out.println(sistema.modificarContratoPorComision(locatorio2, propiedad2, 345, fechaInicio2, 2, 10, 9050, 9));\n\t\t\n\t\tfor(Contrato c: sistema.getLstContratos()){\n\t\t\tSystem.out.println(c.toString());\n\t\t}\n\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\n\t\t/*-----------------------------------------------------------------------*/\n\t\t\n\t\tSystem.out.println(\"Es contrato vigente?\");\n\n\t\tLocalDate probarFecha= LocalDate.of(2019, 05, 31);\n\t\t\n\t\tSystem.out.println(sistema.traerContratoPorId(1).esContratoVigente(probarFecha));\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\t/*-----------------------------------------------------------------------*/\n\t\t\n\t\tSystem.out.println(\"Calcular mora\");\n\t\t\n\t\tSystem.out.println(sistema.traerContratoPorId(1).calcularMora(20));\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\t/*-----------------------------------------------------------------------*/\n\t\t\n\t\tSystem.out.println(\"Calcular Monto Pago a Recibir\");\n\t\t\n\t\tSystem.out.println(sistema.traerContratoPorId(1).calcularMontoPagoARecibir());\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\t/*-----------------------------------------------------------------------*/\n\t\t\n\t\tSystem.out.println(\"Calcular Monto Pago a Recibir por fecha\");\n\t\t\n\t\tLocalDate probarFecha1= LocalDate.of(2019, 5, 30);\n\t\t\n\t\tSystem.out.println(sistema.traerContratoPorId(1).calcularMontoPagoARecibir(probarFecha1));\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\t/*-----------------------------------------------------------------------*/\n\t\t\n\t\tSystem.out.println(\"Calcular comision\");\n\t\t\n\t\tSystem.out.println(sistema.traerContratoPorId(1).calcularComision());\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\t/*-----------------------------------------------------------------------*/\n\t\t\n\t\tSystem.out.println(\"Calcular Monto Pago a Recibir que debe pagar la inmobiliaria a Locador\");\n\t\t\n\t\tSystem.out.println(sistema.traerContratoPorId(1).calcularMontoPagoARecibirInmobiliariaAlLocador());\n\t\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t\t/*-----------------------------------------------------------------------*/\n\t\t\n\t\tSystem.out.println(\"Traer contratos vigentes con fechas\");\n\t\t\n\t\tLocalDate probarFecha2= LocalDate.of(2019, 3, 30);\n\t\tLocalDate probarFecha3= LocalDate.of(2019, 4, 21);\n\t\t\n\t\tSystem.out.println(sistema.traerContratosVigentes(probarFecha2, probarFecha3));\n\t\n\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\n\t}",
"void pasarALista();",
"private void inicializarFicha(){\n \tTypeface tfBubleGum = Util.fontBubblegum_Regular(this);\n \tTypeface tfBenton = Util.fontBenton_Boo(this);\n \tTypeface tfBentonBold = Util.fontBenton_Bold(this);\n\t\tthis.txtNombre.setTypeface(tfBubleGum);\n\t\tthis.txtDescripcion.setTypeface(tfBenton);\n\t\tthis.lblTitulo.setTypeface(tfBentonBold);\n \tpanelCargando.setVisibility(View.GONE);\n \t\n \t//cargar los datos de las informaciones\n \tif(DataConection.hayConexion(this)){\n \t\tpanelCargando.setVisibility(View.VISIBLE);\n \t\tInfo.infosInterface = this;\n \t\tInfo.cargarInfo(this.app, this.paramIdItem);\n \t}else{\n \t\tUtil.mostrarMensaje(\n\t\t\t\t\tthis, \n\t\t\t\t\tgetResources().getString(R.string.mod_global__sin_conexion_a_internet), \n\t\t\t\t\tgetResources().getString(R.string.mod_global__no_dispones_de_conexion_a_internet) );\n \t}\n }",
"public void inicializar();",
"AliciaLab createAliciaLab();",
"public Alojamiento() {\r\n\t}",
"private void sceltapannelli(String utilizzatore){\n\n if(utilizzatore.equals(\"Registrazione\")){\n\n sez_managerview.setSezA(new Sez_AView().getIntermedio0());\n sez_managerview.setSezB(new Sez_BView().getIntermedio0());\n sez_managerview.setSezC(new Sez_CView().getIntermedio0());\n\n }\n\n }",
"public Aritmetica(){ }",
"protected Asignatura()\r\n\t{}",
"public AfiliadoVista() {\r\n }",
"public CTematicaBienestar() {\r\n\t}",
"public interface SistemaArqOperations \r\n{\r\n int list_Arq (String nome, String[] aq, String p);\r\n String[] att_clientes ();\r\n String[] get_Arq (int a);\r\n void set_Arq (String[] aq, int idd);\r\n String get_path (int a);\r\n int qtd_clientes ();\r\n}",
"public SistemskiKontroler() {\r\n\t\ttabla = new Tabla(10, 10, 10);\r\n\t\tlista = SOUcitajIzFajla.izvrsi(\"data/lista\");\r\n\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"public interface GestioneAmministratore {\n\t\n\tpublic void aggiungeAmministratore(Amministratore a);\n\n\tpublic void rimuoveAmministratore(Amministratore a);\n\n\tpublic void modificaAmministratore(Amministratore a);\n}",
"public AgenteEstAleatorio() {\r\n }",
"public static void main(String[] args) {\n\t\t\n\t\tBanco banco1;\n\t\t\n\t\tbanco1 = new BancoPatagonia();\n\t\tSystem.out.println(BancoPatagonia.CODIGOBANCARIO);\n\t System.out.println(banco1.tasaInteres());\n\t \n\t System.out.println(banco1.tasaInteresDolar());\n\t \n\t banco1 = new BancoNacion();\n\t\t\n\t System.out.println(banco1.tasaInteres());\n\t \n\t System.out.println(banco1.tasaInteresDolar());\n\n\t}",
"public void ejecutarConsola() {\n\n try {\n this._agente = new SearchAgent(this._problema, this._busqueda);\n this._problema.getInitialState().toString();\n this.imprimir(this._agente.getActions());\n this.imprimirPropiedades(this._agente.getInstrumentation());\n if (_esSolucion) {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"SOLUCIONADO\");\n } else {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"No lo he podido solucionar...\");\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }",
"public Sistema(){\r\n\t\t\r\n\t}",
"public void asetaTeksti(){\n }",
"public static void main(String[] args) {\n\t\tAlarmaLibro a = new AlarmaLibro();\n\t\ta.attach(new Compras());\n\t\ta.attach(new Administracion());\n\t\ta.attach(new Stock());\n\t\t\n\t\tLibro libro = new Libro();\n\t\tlibro.setEstado(\"MALO\");\n\t\t\n\t\tBiblioteca b = new Biblioteca();\n\t\tb.devolverLibro(libro);\n\t\t\n\t}",
"public AntrianPasien() {\r\n\r\n }",
"public static void main(String[] args) {\n persegi_panjang pp = new persegi_panjang();\r\n pp.lebar=30;\r\n pp.panjang=50;\r\n Segitiga s = new Segitiga();\r\n s.alas=20;\r\n s.tinggi=40;\r\n Persegi p = new Persegi();\r\n p.sisi=40;\r\n lingkaran l= new lingkaran();\r\n l.jari=20;\r\n \r\npp.luas();\r\npp.keliling();\r\np.luas();\r\np.keliling();\r\ns.luas();\r\ns.keliling();\r\nl.luas();\r\nl.keliling();\r\n}",
"private UsineJoueur() {}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public contrustor(){\r\n\t}",
"Petunia() {\r\n\t\t}",
"public void Ordenamiento() {\n\n\t}",
"public abstract void instalar(SistemaOperativo SO);",
"@Override\n\tpublic void acomodaVista() {\n\n\t}",
"private void iniciar() {\r\n\t\t/*Se instancian las clases*/\r\n\t\tmiVentanaPrincipal=new VentanaPrincipal();\r\n\t\tmiVentanaRegistro=new VentanaRegistro();\r\n\t\tmiVentanaBuscar= new VentanaBuscar();\r\n\t\tmiLogica=new Logica();\r\n\t\tmiCoordinador= new Coordinador();\r\n\t\t\r\n\t\t/*Se establecen las relaciones entre clases*/\r\n\t\tmiVentanaPrincipal.setCoordinador(miCoordinador);\r\n\t\tmiVentanaRegistro.setCoordinador(miCoordinador);\r\n\t\tmiVentanaBuscar.setCoordinador(miCoordinador);\r\n\t\tmiLogica.setCoordinador(miCoordinador);\r\n\t\t\r\n\t\t/*Se establecen relaciones con la clase coordinador*/\r\n\t\tmiCoordinador.setMiVentanaPrincipal(miVentanaPrincipal);\r\n\t\tmiCoordinador.setMiVentanaRegistro(miVentanaRegistro);\r\n\t\tmiCoordinador.setMiVentanaBuscar(miVentanaBuscar);\r\n\t\tmiCoordinador.setMiLogica(miLogica);\r\n\t\t\t\t\r\n\t\tmiVentanaPrincipal.setVisible(true);\r\n\t}",
"public void buscarGestor(){\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n Ator a = new Ator(\"Alberto\");\r\n Ator b = new Ator(\"Vagner moura\");\r\n Ator c = new Ator(\"Ator 1\");\r\n\r\n Filme f= new Filme(\"Tropa de elite\", 2011);\r\n\r\n f.addPapel(a,\"papel 1\", false);\r\n f.addPapel(b,\"papel 2\", true);\r\n f.addPapel(c,\"papel 3\", true);\r\n\r\n\r\n System.out.println(a.getFilmes());\r\n /*System.out.println(f.getProtagonista());\r\n System.out.println(f);\r\n System.out.println(a);\r\n System.out.println(b);\r\n System.out.println(c);*/\r\n\r\n\r\n }",
"public void configurarIdioma() {\n botonAceptar.setText(resources.getString(\"aceptar\"));\n labelErrorRegistro.setText(resources.getString(\"LabelErrorRegistro\"));\n labelNoSePuedeRegistrar.setText(resources.getString(\"noSePuedeRegistrar\"));\n labelCamposVacios.setText(resources.getString(\"hayCamposVacios\"));\n }",
"public static void main(String[] arhg) {\n\n Conta p1 = new Conta();\n p1.setNumConta(1515);\n p1.abrirConta(\"cp\");\n p1.setDono(\"wesley\");\n p1.deposita(500);\n // p1.saca(700); -> irá gera um erro pois o valor de saque especificado é superior ao valor que tem na conta\n\n p1.estadoAtual();\n }",
"private void limpiarDatos() {\n\t\t\n\t}",
"public static void main(String[] args) {\n ALuno a1=new ALuno(500);\n a1.setNome(\"Claudio\");\n a1.setMatricula(1111);\n a1.setCurso(\"Informatica\");\n a1.setIdade(16);\n a1.setSexo(\"M\");\n a1.pagarMensalidade(400);\n //bolsista\n Bolsista b1 = new Bolsista(1000);\n b1.setMatricula(1112);\n b1.setNome(\"Jubileu\");\n b1.setSexo(\"M\");\n b1.pagarMensalidade();\n }",
"public EstructuraOrganicaController(){\r\n\t\tloadDefault();\r\n\t}",
"public static void main (String args []) {\n\t\t Automovel a = new Automovel ( \"Edurdo\",\"Palio\", \"JWO2125\", \n 2002);\n\t\t //troca de mensagens (chamada ao metodo imprimir())\n\t\t //a.getAno();\n\t\t a.imprimirInfo();\n\t\t System.out.println (\"***Transferencia de Proprietario***\");\n\t\t a.setNomeProprietario(\"Rosa\");\n\t\t a.imprimirInfo();\n\t\t Automovel b = new Automovel (\"Rodrigo\", \"Parati\", \n\t\t \"JSX6481\", 1999);\n\t\t b.imprimirInfo();\n\t\t System.out.println (\"***Mudanca de Placa***\");\n\t\t b.setPlaca(\"SDK2581\");\n\t\t b.imprimirInfo();\n\t\t }",
"public interface CambioImagenPerfil{\n\n void opcionEscogida(String app);\n }",
"public static void main(String[] args) {\nBasePotencia pot=new BasePotencia();\r\npot.calculaPot();\r\n\t}",
"public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }",
"public static void main(String[] args) {\r\n\r\n Operatii o1 = new Operatii();\r\n o1.constructor();\r\n o1.print_bilete();\r\n o1.sorteaza();\r\n o1.print_bilete();\r\n o1.preturi_categorii();\r\n o1.pret_total();\r\n o1.plata_grup();\r\n o1.tag_id();\r\n o1.tag_id();\r\n o1.tag_id();\r\n o1.print_lista();\r\n o1.pret_lista();\r\n o1.plata();\r\n\r\n }",
"private static void getInstancia() throws IOException {\r\n if (propiedades == null) {\r\n propiedades = new PropiedadesComunicacion();\r\n }\r\n }",
"private RepositorioOrdemServicoHBM() {\n\n\t}",
"public static void main(String[] args) {\n Alumnos a = new Alumnos(\"3457794\",\"IDS\",\"A\",3,\"Juan\",\"Masculino\",158);\n //recibe: String folio,String nombre, String sexo, int edad\n Profesores p = new Profesores(\"SDW7984\",\"Dr. Pimentel\",\"Masculino\",25);\n \n //recibe: String puesto,String nombre, String sexo, int edad\n Administrativos ad = new Administrativos(\"Rectoria\",\"Jesica\",\"Femenino\",25);\n \n //datos de alumnos//\n System.out.println(\"\\nEl alumno tiene los siguientes datos:\");\n System.out.println(a.GetName());\n System.out.println(a.GetEdad());\n System.out.println(a.getCarrera());\n \n //datos de maestro//\n System.out.println(\"\\nLos datos de x maestro es:\");\n System.out.println(p.GetName());\n System.out.println(p.getFolio());\n System.out.println(p.GetEdad());\n \n //daros de Administrativo//\n System.out.println(\"\\nLos datos de x Administrativo\");\n System.out.println(ad.GetName());\n System.out.println(ad.getPuesto());\n System.out.println(ad.GetEdad());\n \n \n System.out.println(\"\\n\\nIntegranres de Equipo\");\n System.out.println(\"Kevin Serrano - 133369\");\n System.out.println(\"Luis Angel Farelo Toledo - 143404\");\n System.out.println(\"Ericel Nucamendi Jose - 133407\");\n System.out.println(\"Javier de Jesus Flores Herrera - 143372\");\n System.out.println(\"Carlos Alejandro Zenteno Robles - 143382\");\n }",
"public FiltroBoletoBancarioLancamentoEnvio() {\n\n\t}",
"public Espacio (int id, int capacidad, int ocupacion, TipoEspacio tipo, Localizacion localizacion){\n this.id = id;\n this.capacidad = capacidad;\n this.ocupacion = ocupacion;\n this.TIPO = tipo;\n this.localizacion = localizacion;\n }",
"public Aplicacion(String nomAdmin, String contrasena, Integer numMinApoyos) {\r\n\t\t\r\n\t\tif(nomAdmin.isEmpty()|| Objects.isNull(nomAdmin) ) {\r\n\t\t\tthrow new IllegalArgumentException(\"Debes de introducir los datos validos\");\r\n\t\t}\r\n\t\t\r\n\t\tthis.nombreAdmin = nomAdmin;\r\n\t\tthis.contraseñaAdmin = contrasena; \r\n\t\tthis.numMinApoyos = numMinApoyos;\r\n\t\tthis.modoAdmin = false;\r\n\t\t\r\n\t\tthis.proyectos = new HashSet<Proyecto>();\r\n\t\tthis.proponentes = new HashSet<Proponente>();\r\n\t\tthis.lastProjectUniqueID = 0;\r\n\t\t\r\n\t\t//Cargamos los distritos\r\n\t\tdistritosPermitidos = new HashSet<String>();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(distritosPath));\r\n\t String d;\r\n\t while((d = br.readLine()) != null){\r\n\t \t this.distritosPermitidos.add(d);\t //Leer la siguiente línea\r\n\t }\r\n\t\t}catch (FileNotFoundException e) {\r\n\t System.out.println(\"Error: Fichero no encontrado\");\r\n\t System.out.println(e.getMessage());\r\n\t \r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n Punto p1 = new Punto(2, 2);\r\n Punto p2 = new Punto(1, 4);\r\n Punto p3 = new Punto(5, 2);\r\n Punto p4 = new Punto(10, 1);\r\n \r\n Datos d1 = new Datos();\r\n d1.add(p1);\r\n d1.add(p2);\r\n d1.add(p3);\r\n d1.add(p4);\r\n \r\n System.out.println(\"Distancia Media: \"+d1.distanciaMedia());\r\n \r\n \r\n // -- Act 2 Test\r\n //Correcta: Una librería para construir interfaces gráficas\r\n \r\n // -- Act 3 insertaPaisCiudad\r\n PaisCiudades pc = new PaisCiudades();\r\n System.out.println(\"Insertamos: España, Granada. ¿Inserto?: \"+pc.insertaPaisCiudad(\"España\", \"Granada\"));\r\n System.out.println(\"Insertamos: España, Zaidin. ¿Inserto?: \"+pc.insertaPaisCiudad(\"España\", \"Zaidin\"));\r\n System.out.println(\"Insertamos: PatataLandia, Huerto de Patatas. ¿Inserto?: \"+pc.insertaPaisCiudad(\"PatataLandia\", \"Huerto de Patatas\"));\r\n \r\n System.out.println(\"HashMap: \\n\"+pc.toString());\r\n \r\n // -- Act 4 Test\r\n //Correcta: public class Componente implements Printable\r\n \r\n }",
"protected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\tdfd.setName(getAID());\n\t\tServiceDescription sd = new ServiceDescription();\n\t\tsd.setType(\"paciente\");\n\t\tsd.setName(getName());\n\t\tdfd.addServices(sd);\n\t\ttry {\n\t\t\tDFService.register(this, dfd);\n\t\t} catch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\t\t\n\t\t// atualiza lista de monitores e atuadores\n\t\taddBehaviour(new UpdateAgentsTempBehaviour(this, INTERVALO_AGENTES));\n\t\t\n\t\t// ouve requisicoes dos atuadores e monitores\n\t\taddBehaviour(new ListenBehaviour());\n\t\t\n\t\t// adiciona comportamento de mudanca de temperatura\n\t\taddBehaviour(new UpdateTemperatureBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de hemoglobina\t\t\n\t\taddBehaviour(new UpdateHemoglobinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de bilirrubina\n\t\taddBehaviour(new UpdateBilirrubinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\n\t\t// adiciona comportamento de mudanca de pressao\t\t\n\t\taddBehaviour(new UpdatePressaoBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t}",
"public Laboratorio() {}",
"public static void main(String[] args) {\n Pessoa p1 = new Pessoa();\n p1.nome = \"João\";\n p1.rg = \"12345678910\";\n \n // Criando uma primeira conta para associar com a primeira pessoa\n Conta c1 = new Conta();\n c1.agencia = \"0872-9\";\n c1.numero = 887878;\n c1.cliente = p1; // Associando a pessoa com a conta\n }",
"public FiltroRaEncerramentoComando() {\r\n }",
"public static void main(String[] args) { \n Cubo c=new Cubo();\n float arista;\n arista=c.PreguntaArista();\n c.SetLado(arista);\n c.SetÁrea();\n System.out.println(\"Área del cubo cuyas aristas son de \" +arista+ \": \" +c.GetÁrea());\n }",
"public Tmio1Sitio() {\r\n\t}",
"public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}",
"public envio() {\r\n }",
"public LocalResidenciaColaborador() {\n //ORM\n }",
"@Override\n\tpublic void iniciar() {\n\t\t\n\t}",
"public Ficha_Ingreso_Egreso() {\n initComponents();\n limpiar();\n bloquear();\n \n }",
"public Caso_de_uso () {\n }",
"public static void main(String args[]){\n ControlAcceso controlador = new ControlAcceso();\n\n //se asignan los comportamientos\n controlador.asignarComportamientoAcceso(new AccesoPassword());\n\n controlador.asignarComportamientoCifrado(new CifradoNormal());\n\n controlador.acceder();\n controlador.cifrar(\"texto\");\n\n //de forma dinamica cmbio el comportamiento\n controlador.asignarComportamientoCifrado(new CifradoNulo());\n controlador.cifrar(\"djad\");\n }",
"public Ventana(){\r\n\t\t\r\n\t\tsuper.setTitle(\"Operaciones\");\r\n\t\tsuper.setSize(320, 480);\r\n\t\tsuper.setDefaultCloseOperation(EXIT_ON_CLOSE); //para el botón de cerrar\r\n\t\tcargarControles();\r\n\t}",
"public Saida() {\n initComponents();\n defaults();\n preencherTabela();\n \n }",
"private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}",
"public agendaVentana() {\n initComponents();\n setIconImage(new ImageIcon(this.getClass().getResource(\"/IMG/maqui.png\")).getImage());\n citasDAO = new CitasDAO();\n clienteDAO = new ClienteDAO();\n loadmodel();\n loadClientesCombo();\n loadClientesComboA();\n jTabbedPane1.setEnabledAt(2, false);\n\n }",
"private void iniciar() {\r\n\t\tprincipal = new Principal();\r\n\t\tgestionCientificos=new GestionCientificos();\r\n\t\tgestionProyectos=new GestionProyectos();\r\n\t\tgestionAsignado= new GestionAsignado();\r\n\t\tcontroller= new Controller();\r\n\t\tcientificoServ = new CientificoServ();\r\n\t\tproyectoServ = new ProyectoServ();\r\n\t\tasignadoA_Serv = new AsignadoA_Serv();\r\n\t\t\r\n\t\t/*Se establecen las relaciones entre clases*/\r\n\t\tprincipal.setControlador(controller);\r\n\t\tgestionCientificos.setControlador(controller);\r\n\t\tgestionProyectos.setControlador(controller);\r\n\t\tgestionAsignado.setControlador(controller);\r\n\t\tcientificoServ.setControlador(controller);\r\n\t\tproyectoServ.setControlador(controller);\r\n\t\t\r\n\t\t/*Se establecen relaciones con la clase coordinador*/\r\n\t\tcontroller.setPrincipal(principal);\r\n\t\tcontroller.setGestionCientificos(gestionCientificos);\r\n\t\tcontroller.setGestionProyectos(gestionProyectos);\r\n\t\tcontroller.setGestionAsignado(gestionAsignado);\r\n\t\tcontroller.setCientificoService(cientificoServ);\r\n\t\tcontroller.setProyectoService(proyectoServ);\r\n\t\tcontroller.setAsignadoService(asignadoA_Serv);\r\n\t\t\t\t\r\n\t\tprincipal.setVisible(true);\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner escaner1= new Scanner(System.in);\n\t\t\n\t\tFabrica fabrica1;\n\t\tEdificio edificio1;\n\t\tSystem.out.println(\"Menu de creacion (por defecto es una casa)\"\n\t\t\t\t\t\t\t+\"\\n -Hospital\"\n\t\t\t\t\t\t\t+\"\\n -Escuela\"\n\t\t\t\t\t\t\t+\"\\n -Negocio\");\n\t\tString tipo=escaner1.nextLine();\n\t\tescaner1.close();\n\t\tfabrica1=new Fabrica(tipo);\n\t\tedificio1 = fabrica1.crearEdificio();\n\t\tSystem.out.println(edificio1.info());\n\t\tSystem.out.println(\"hola\");\n\t}",
"public MorteSubita() {\n }",
"public Aso() {\n\t\tName = \"Aso\";\n\t\ttartossag = 3;\n\t}",
"public static void inicializacionPartidaConsola() {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tControladorConsola c = new ControladorConsola(f, p, in);\n\n\t\tnew VistaConsola(c);\n\n\t\tc.run();\n\t}",
"public AutomatZustand()\r\n\t{\r\n\t\tthis.ew_lokal = Automat.eingabewort;\r\n\t}",
"MaquinaCafetera(){\n }",
"public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }",
"public static void main(String[] args) {\n Pasien Dam = new Pasien(\"Puspaningsyas\");\r\n Dam.setTanggalLahir(1974, 1, 12);\r\n// String str = Dam.getNama();\r\n \r\n \r\n\r\n System.out.println(\"Umur = \" + Dam.getUsia());\r\n Dam.NomorRekamMedis();\r\n // System.out.println(str.substring(0, 3));\r\n\r\n// Pasien Dam2 = new Pasien(\"Dam\");\r\n// Dam2.setTanggalLahir(1999,3,13);\r\n// System.out.println(\"Umur = \" +Dam2.getUsia());\r\n }",
"public Pengenalan(){ //Constructor (Nama harus sama dengan Class)\n System.out.println(\"\\nConstructor : \");\n System.out.println(\"Dibutuhkan untuk pemanggilan saat diimport oleh Class lain atau Class sendiri\");\n methode();\n int men = menthos();\n System.out.println(\"Nilai yang didapat dari method menthos : \"+men);\n }",
"public static void main (String [] args){\n\t\tlong idCliente = 2; \n\t\tClienteABM abmc = new ClienteABM();\n\t\tSystem.out.println(\"\\n\"+abmc.traerClienteYEventos(idCliente).toStringConEventos()+\"\\n\");\n\t\t\n\t\t//Probamos con Jaramillo\t\n\t\tidCliente = 1;\n\t\tSystem.out.println(\"\\n\"+abmc.traerClienteYEventos(idCliente).toStringConEventos());\n\t}",
"public AsosiyOyna() {\n initComponents();\n }",
"protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }",
"public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }",
"public static void main(String[] args) {\n\t\tLivro l = new Livro();\n\t\t\n\t\tl.criaLivro(\"Estruturas de Dados usando C\", \"Waldemar Celles\", \"Academico\", 450, false, 2015);\n\t\tl.mostraEstado();\n\t}",
"public void realiserAcahatProduit() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\n InterfaceMetodoComunes miSalida1,misalida2,misalida3,miEntrada1,miEntrada2;\n\n miSalida1= FactoriaDeSalidas.getProductoSalida(FactoriaDeSalidas.CONSOLA);\n miSalida1.visualizar(\"Hola que tal estas\");\n\n misalida2=FactoriaDeSalidas.getProductoSalida(FactoriaDeSalidas.VENTANA);\n misalida2.visualizar(\"Bien\");\n\n misalida3=FactoriaDeSalidas.getProductoSalida(FactoriaDeSalidas.IMPRESORA);\n misalida3.visualizar(\"Imprimiendo por la impresora\");\n\n miEntrada1= FactoriaDeEntradas.getProductoEntrada(FactoriaDeEntradas.CONSOLA);\n miEntrada1.introducirDatos();\n\n miEntrada2=FactoriaDeEntradas.getProductoEntrada(FactoriaDeEntradas.VENTANA);\n miEntrada2.introducirDatos();\n }",
"public interface Jefes {\n\n//Los metodos de las intefeces no utilizan llaves\n String tomar_decisiones(String decision);\n\n \n\n\n \n}",
"public Artemis(){\r\n super(\"Artemis\",\r\n new StandardWinCondition(),\r\n new DoubleNoBackMove(new StandardMove()), new StandardBuild(),\r\n false,\r\n false\r\n );\r\n }",
"public ControllerProtagonista() {\n\t}",
"public dataPegawai() {\n initComponents();\n koneksiDatabase();\n tampilGolongan();\n tampilDepartemen();\n tampilJabatan();\n Baru();\n }",
"public Transportista() {\n }",
"public static void main(String []args){\n miFichero = new Fichero(\"peliculas.xml\");\n //cargamos los datos del fichero\n misPeliculas = (ListaPeliculas) miFichero.leer();\n\n //si no habia fichero\n\n if(misPeliculas == null) {\n misPeliculas = new ListaPeliculas();\n }\n int opcion;\n do{\n mostrarMenu();\n opcion = InputData.pedirEntero(\"algo\");\n switch (opcion){\n case 1:\n altaPelicula();\n break;\n case 2:\n break;\n case 3:\n break;\n case 4:\n break;\n }\n\n }while(opcion!= 0);\n }",
"private ControleurAcceuil(){ }"
] | [
"0.64576685",
"0.63880867",
"0.636224",
"0.6303606",
"0.62679505",
"0.6264123",
"0.6181979",
"0.6181508",
"0.61726433",
"0.6118573",
"0.60607",
"0.605303",
"0.60460085",
"0.604413",
"0.6034178",
"0.6026347",
"0.60219973",
"0.6019588",
"0.6012644",
"0.59794044",
"0.5974497",
"0.59718055",
"0.59509826",
"0.5935065",
"0.5924929",
"0.59191126",
"0.5908696",
"0.59000194",
"0.5890404",
"0.58852553",
"0.5876349",
"0.58731586",
"0.5863236",
"0.58547884",
"0.58459777",
"0.5845422",
"0.5842171",
"0.58254725",
"0.582278",
"0.5821686",
"0.5820616",
"0.5817369",
"0.58131903",
"0.5806085",
"0.58050376",
"0.57952666",
"0.5793717",
"0.5792839",
"0.578159",
"0.57803184",
"0.57765716",
"0.5772538",
"0.5768238",
"0.5758486",
"0.57544386",
"0.57484627",
"0.5740853",
"0.5739075",
"0.5738798",
"0.5736756",
"0.5734735",
"0.57310224",
"0.57277626",
"0.57270056",
"0.57269126",
"0.571943",
"0.5717808",
"0.5716436",
"0.57159376",
"0.57092625",
"0.5706646",
"0.57051504",
"0.57040274",
"0.5700426",
"0.56906307",
"0.5684323",
"0.5681319",
"0.56767786",
"0.5675469",
"0.567148",
"0.56710416",
"0.5669045",
"0.56687325",
"0.56610507",
"0.5659066",
"0.56559294",
"0.5644426",
"0.56442124",
"0.5641693",
"0.5639728",
"0.56397116",
"0.5636342",
"0.5633592",
"0.56327343",
"0.56190777",
"0.5617391",
"0.5613743",
"0.56121165",
"0.5607835",
"0.5607443",
"0.5605888"
] | 0.0 | -1 |
Permette di ottenere in formato avviamente testuale l'azione da eseguire specificata dall'utente | public String getAzione() {
return azione;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }",
"protected String elaboraIncipitSpecifico() {\n return VUOTA;\n }",
"private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }",
"public String generarEstadisticasGenerales(){\n \n String estadisticaGeneral = \"En general en la universidad del valle: \\n\";\n estadisticaGeneral += \"se encuentran: \" + EmpleadosPrioridadAlta.size() + \" empleados en prioridad alta\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadAlta)\n + \"se encuentran: \" + EmpleadosPrioridadMediaAlta.size() + \" empleados en prioridad media alta\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadMediaAlta)\n + \"se encuentran: \" + EmpleadosPrioridadMedia.size() + \" empleados en prioridad media\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadMedia)\n + \"se encuentran: \" + EmpleadosPrioridadBaja.size() + \" empleados en prioridad baja\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadBaja);\n return estadisticaGeneral;\n }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }",
"private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }",
"@Test\n\tpublic void testLecturaFrom(){\n\t\tassertEquals(esquemaEsperado.getExpresionesFrom().toString(), esquemaReal.getExpresionesFrom().toString());\n\t}",
"java.lang.String getUa();",
"private static void etapa2Urna() {\n\t\t\n\t\tint opcaoNumero = 0;\n\n\t\tdo {\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tSystem.out.println(\"Votação\");\n\t\t\tSystem.out.println(\"1 - Votar\");\n\t\t\tSystem.out.println(\"2 - Justificar ausencia\");\n\t\t\tSystem.out.println(\"Digite o número da etapa ou -1 para sair: \");\n\t\t\t\n\t\t\ttry {\n\t\t\n\t\t\t\topcaoNumero = Integer.parseInt(br.readLine());\n\t\t\n\t\t\t\tswitch( opcaoNumero ) {\n\t\t\n\t\t\t\tcase 1: \n\t\t\t\t\t// Abrir Etapa 1: Configurar Urna\n\t\t\t\t\tlimparConsole();\n\t\t\t\t\trealizarVotacao();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 2: \n\t\t\t\t\t// Abrir Etapa 2: Realizar Votacao na Urna\n\t\t\t\t\tlimparConsole();\n\t\t\t\t\tSystem.out.println(\"Insira o numero do seu titulo de eleitor\");\n\t\t\t\t\tint tituloEleitor = Integer.parseInt(br.readLine());\n\t\t\t\t\turna.justificarVoto(tituloEleitor);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\n\t\t}while(opcaoNumero != -1);\n\t}",
"public void presenta_Estudiante(){\r\n System.out.println(\"Universidad Técnica Particular de Loja\\nInforme Semestral\\nEstudiante: \"+nombre+\r\n \"\\nAsignatura: \"+nAsignatura+\"\\nNota 1 Bimestre: \"+nota1B+\"\\nNota 2 Bimestre: \"+nota2B+\r\n \"\\nPromedio: \"+promedio()+\"\\nEstado de la Materia: \"+estado());\r\n }",
"public String converterTemperatura(Medidas medidaUm, Medidas medidaDois) {\n String medidaUmUnidade = medidaUm.getUnidadeDeTemperatura();\n String medidaDoisUnidade = medidaDois.getUnidadeDeTemperatura();\n boolean unidadesIguais = medidaUmUnidade.equals(medidaDoisUnidade) ? true : false;\n String errorMessage = \"Não é possível realizar a conversão, pois as duas medidas já estão na mesma unidade.\";\n\n if (unidadesIguais)\n return errorMessage;\n else {\n int medidaUmTemperaturaNova = (int) ((medidaUmUnidade == \"f\") ? ((medidaUm.getTemperatura() - 32) / 1.8)\n : ((medidaUm.getTemperatura() * 1.8) + 32));\n medidaUm.setTemperatura(medidaUmTemperaturaNova);\n String medidaUmUnidadeDeTemperaturaNova = (medidaUmUnidade == \"f\") ? \"c\" : \"f\";\n medidaUm.setUnidadeDeTemperatura(medidaUmUnidadeDeTemperaturaNova);\n\n int medidaDoisTemperaturaNova = (int) ((medidaDoisUnidade == \"f\") ? ((medidaDois.getTemperatura() - 32) / 1.8)\n : ((medidaDois.getTemperatura() * 1.8) + 32));\n medidaDois.setTemperatura(medidaDoisTemperaturaNova);\n String medidaDoisUnidadeDeTemperaturaNova = (medidaUmUnidade == \"f\") ? \"c\" : \"f\";\n medidaDois.setUnidadeDeTemperatura(medidaDoisUnidadeDeTemperaturaNova);\n }\n\n String medidaUmConvertida = medidaUm.getTemperatura() + \" \" + medidaUm.getUnidadeDeTemperatura();\n String medidaDoisConvertida = medidaDois.getTemperatura() + \" \" + medidaDois.getUnidadeDeTemperatura();\n\n return (\"Temp. 01: \" + medidaUmConvertida + \" | \" + \"Temp. 02: \" + medidaDoisConvertida);\n }",
"@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }",
"protected String elaboraTemplateAvviso() {\n String testo = VUOTA;\n String dataCorrente = date.get();\n String personeTxt = \"\";\n personeTxt = text.format(numVoci);\n\n if (usaHeadTemplateAvviso) {\n testo += tagHeadTemplateAvviso;\n testo += \"|bio=\";\n testo += personeTxt;\n testo += \"|data=\";\n testo += dataCorrente.trim();\n testo += \"|progetto=\";\n testo += tagHeadTemplateProgetto;\n testo = LibWiki.setGraffe(testo);\n }// end of if cycle\n\n return testo;\n }",
"@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }",
"public String generarEstadisticasPorFacultad(String cualFacultad) {\n \n int contadorAlta = 0;\n String pAltaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n if(EmpleadosPrioridadAlta.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorAlta += 1;\n pAltaEmpl += \"nombre: \" + EmpleadosPrioridadAlta.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadAlta.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pAlta = \"Se encuentran \" + contadorAlta + \" Empleados en condicion Alta\\n\";\n if(EmpleadosPrioridadAlta.isEmpty() == false){\n pAlta += \"los cuales son:\\n\" + pAltaEmpl;\n }\n \n int contadorMAlta = 0;\n String pMAltaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n if(EmpleadosPrioridadMediaAlta.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorMAlta += 1;\n pMAltaEmpl += \"nombre: \" + EmpleadosPrioridadMediaAlta.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadMediaAlta.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pMAlta = \"Se encuentran \" + contadorMAlta + \" Empleados en condicion Media Alta\\n\";\n if(EmpleadosPrioridadMediaAlta.isEmpty() == false){\n pMAlta += \"los cuales son:\\n\" + pMAltaEmpl;\n }\n \n int contadorMedia = 0;\n String pMediaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n if(EmpleadosPrioridadMedia.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorMedia += 1;\n pMediaEmpl += \"nombre: \" + EmpleadosPrioridadMedia.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadMedia.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pMedia = \"Se encuentran \" + contadorMedia + \" Empleados en condicion Media\\n\";\n if(EmpleadosPrioridadMedia.isEmpty() == false){\n pMedia += \"los cuales son:\\n\" + pMediaEmpl;\n }\n \n int contadorBaja = 0;\n String pBajaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n if(EmpleadosPrioridadBaja.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorBaja += 1;\n pBajaEmpl += \"nombre: \" + EmpleadosPrioridadBaja.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadBaja.get(i).getIdentificacion() + \"\\n\";\n }\n }\n String pBaja = \"Se encuentran \" + contadorBaja + \" Empleados en condicion Baja\\n\" ;\n if(EmpleadosPrioridadBaja.isEmpty() == false){\n pBaja += \"los cuales son:\\n\" + pBajaEmpl;\n }\n \n return \"En la facultad \" + cualFacultad + \" de la universidad del valle: \\n\"\n + pAlta + pMAlta + pMedia + pBaja;\n }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }",
"void mostrarAtributos() {\n\t\tString mensaje = \"nombre=\" + nombre + \", apellido=\" + apellido + \", tipoDocumento=\" + tipoDocumento\n\t\t\t\t+ \", numeroDocumento=\" + numeroDocumento + \", edad=\" + edad + \" y es \"\n\t\t\t\t+ (edad >= 18 ? \"mayor de edad\" : \"menor de edad\");\n\t\tSystem.out.println(mensaje);\n\t}",
"public void formatarDadosEntidade(){\n\t\tcodigoMunicipioOrigem = Util.completarStringZeroEsquerda(codigoMunicipioOrigem, 10);\n\t\tcodigoClasseConsumo = Util.completarStringZeroEsquerda(codigoClasseConsumo, 2);\n\n\t}",
"private void eleccionCasoDeUso(String casoDeUso) throws MareException{\t\t\n\t // Seteo de titulo y ID_BUSINESS\n\t if(casoDeUso.equals(LP_ID_ASOC_TERR)){\n\t\t\tidBusiness = ID_BUSINESS_ASOC_TERR;\n\t\t\tcodTituloLP = \"0378\";\n\t\t\tfichero= \"muestraUG.txt\";\n\t }else if(casoDeUso.equals(LP_ID_UG)){\n\t\t\tidBusiness = ID_BUSINESS_UG;\n\t\t\tcodTituloLP = \"0377\";\n\t\t\tfichero = \"muestraMUG.txt\";\n\t }else if(casoDeUso.equals(LP_ID_CREAR_UA)){\n\t\t\tidBusiness = ID_BUSINESS_CREAR_UA;\n\t\t\tcodTituloLP = \"0637\";\n\t\t\tfichero = \"muestraCUAG.txt\";\n\t }else if(casoDeUso.equals(LP_ID_ELIM_UA)){\n\t\t\tidBusiness = ID_BUSINESS_ELIM_UA;\n\t\t\tcodTituloLP = \"0380\";\n\t\t\tfichero = \"EliminaUnidadAdministrativa.txt\";\n\t }else if(casoDeUso.equals(LP_ID_CREAR_EV)){\n\t\t\tidBusiness = ID_BUSINESS_CREAR_EV;\n\t\t\tcodTituloLP = \"0381\";\n\t\t\tfichero = \"altaZON.txt\";\n\t }else if(casoDeUso.equals(LP_ID_MOD_EV)){\n\t\t\tidBusiness = ID_BUSINESS_MOD_EV;\n\t\t\tcodTituloLP = \"0382\";\n\t\t\tfichero = \"modifZON.txt\";\n\t }else if(casoDeUso.equals(LP_ID_ELIM_EV)){\n\t\t\tidBusiness = ID_BUSINESS_ELIM_EV;\n\t\t\tcodTituloLP = \"0383\";\n\t\t\tfichero = \"bajaZON.txt\";\t\t\t\n\t } \n\t}",
"private static void concretizarAtribuicao(String nome) {\n\t\tif (gestor.atribuirLugar(nome))\n\t\t\tSystem.out.println(\"ATRIBUICAO de lugar a \" + nome);\n\t\telse\n\t\t\tSystem.out.println(\"ERRO: Nao foi possivel atribuir lugar a \" + nome);\n\t}",
"private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }",
"public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }",
"@Test\n\tpublic void testDarMotivoIngreso()\n\t{\n\t\tassertEquals(\"El motivo de ingreso esperado es: Accidente\", Motivo.ACCIDENTE, paciente.darMotivoIngreso());\n\t}",
"private List<OrarioIngressoUscita> getOrariIngressoUscita(Cliente cliente) throws IOException {\r\n\t\tString userID = cliente.getId();\r\n\t\tBufferedReader reader = Utilities.apriFile(\"orariIngressoUscita.txt\");\r\n\t\t\r\n\t\tString currentLine;\r\n\t\tString[] user = new String[200];\r\n\t\t\r\n\t\tList<OrarioIngressoUscita> result = new ArrayList<>();\r\n\t\t\r\n\t\twhile ((currentLine = reader.readLine()) != null) {\r\n\t\t\tuser = currentLine.split(Pattern.quote(\"|\"));\r\n\t\t\t\r\n\t\t\tif (user[0].equals(userID) && \r\n\t\t\t\t\tcliente.getTes().getUltimoAggiornamento().isAfter(LocalDateTime.parse(user[1], Utilities.formatterDataOra)))\r\n\t\t\t\tif (!user[2].equals(\"null\"))\r\n\t\t\t\t\tresult.add(new OrarioIngressoUscita(LocalDateTime.parse(user[1], Utilities.formatterDataOra), \r\n\t\t\t\t\t\t\tLocalDateTime.parse(user[2], Utilities.formatterDataOra)));\r\n\t\t}\r\n\t\t\r\n\t\treader.close();\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"@Test\n public void nao_deve_aceitar_descricao_com_caracteres_especiais() {\n telefone.setDescricao(\"celular empresarial: (11)9####-####.\");\n assertFalse(isValid(telefone, \"A descrição não pode conter acentos, caracteres especiais e números.\", Find.class));\n }",
"@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}",
"public String verDatos(){\n return \"Ataque: \"+ataque+\"\\nDefensa: \"+defensa+\"\\nPunteria: \"+punteria;\n }",
"@Test \n\tpublic void testToString() {\n\t\t\n\t\tString saida = \"decio neto - 56554522\";\n\t\tassertEquals(contato1.toString(), saida);\n\t}",
"public String generaIDPortalEmpleo(EmpresaPorAutorizarVO vo){\n\t\tString idPortalEmpleo = \"\";\t\t\n\t\tint digitoVerificador = 1;\n\t\tFormat formatter = new SimpleDateFormat(\"yyMMdd\");\t\t\n\t\ttry {\n\t\t\tDomicilioVO domicilio = vo.getDomicilio();\n\t\t\tif(vo.getIdTipoPersona() == Constantes.TIPO_PERSONA.PERSONA_FISICA.getIdTipoPersona()){\n\t\t\t\t//Tipo de Persona Física\n\t\t\t\tif(vo.getApellido2().isEmpty()){\n\t\t\t\t\t//Primeras tres letras del apellido paterno\n\t\t\t\t\t//System.out.println(\"--original--strApellido1:\" + vo.getApellido1());\n\t\t\t\t\tString strApellido1 = convertAccents(vo.getApellido1());\n\t\t\t\t\t//System.out.println(\"--modificado--strApellido1:\" + strApellido1);\n\t\t\t\t\tidPortalEmpleo = idPortalEmpleo + strApellido1.substring(0, 3);\t\n\t\t\t\t} else {\n\t\t\t\t\t//Primeras dos letras del apellido paterno\n\t\t\t\t\t//Primera letra del apellido materno\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"--original--strApellido1:\" + vo.getApellido1());\n\t\t\t\t\tString strApellido1 = convertAccents(vo.getApellido1());\n\t\t\t\t\t//System.out.println(\"--modificado--strApellido1:\" + strApellido1);\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"--original--strApellido2:\" + vo.getApellido2());\n\t\t\t\t\tString strApellido2 = convertAccents(vo.getApellido2());\n\t\t\t\t\t//System.out.println(\"--modificado--strApellido2:\" + strApellido2);\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tidPortalEmpleo = idPortalEmpleo + strApellido1.substring(0, 2);\n\t\t\t\t\tidPortalEmpleo = idPortalEmpleo + strApellido2.substring(0, 1);\n\t\t\t\t}\n\t\t\t\t//Primera letra del nombre\n\t\t\t\t//System.out.println(\"--original--strNombre:\" + vo.getNombre());\n\t\t\t\tString strNombre = convertAccents(vo.getNombre());\n\t\t\t\t//System.out.println(\"--modificado--strNombre:\" + strNombre);\t\t\t\t\t\n\t\t\t\tidPortalEmpleo = idPortalEmpleo + strNombre.substring(0, 1);\n\t\t\t\t//Fecha de nacimiento en formato yymmdd\n\t\t\t\tidPortalEmpleo = idPortalEmpleo + formatter.format(vo.getFechaNacimiento());\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t} else {\n\t\t\t\t//Tipo de Persona Moral\t\t\t\t\t\n\t\t\t\tString strRazonSocial = convertAccents(vo.getRazonSocial());\n\t\t\t\t//Primeras tres letras de razón social\n\t\t\t\t//COMENTAR EN PRODUCCION\t\t\t\t\t\t\t\t\t\n\t\t\t\tif (strRazonSocial.length() < 3) \n\t\t\t\t\tstrRazonSocial = StringUtils.rightPad(strRazonSocial, 3, \"X\");\n\t\t\t\t/**/\t\t\n\t\t\t\t//TERMINA COMENTAR EN PRODUCCION\t\t\t\t\n\t\t\t\t//\n\t\t\t\t//System.out.println(\"--modificado--strRazonSocial:\" + strRazonSocial);\t\t\t\t\t\t\t\t\t\n\t\t\t\tidPortalEmpleo = idPortalEmpleo + strRazonSocial.substring(0, 3);\t\n\t\t\t\t//Fecha de acta en formato yymmdd\n\t\t\t\tidPortalEmpleo = idPortalEmpleo + formatter.format(vo.getFechaActa());\n\t\t\t}\n\t\t\tidPortalEmpleo = idPortalEmpleo + domicilio.getCodigoPostal();\t\t\t\n\t\t\t//Código verificador (1)\t\t\t\t\n\t\t\tEmpresaPorAutorizarDAO epaDAO = new EmpresaPorAutorizarDAO();\n\t\t\tdigitoVerificador = epaDAO.obtenerDigitoVerificador(idPortalEmpleo, vo.getIdTipoPersona());\t\n\t\t\t//rellenar\n\t\t\tint lenId = idPortalEmpleo.length();\n\t\t\t//System.out.println(\"------digitoVerificador:\" + digitoVerificador);\n\t\t\tint lenDigito = String.valueOf(digitoVerificador).length();\n\t\t\t//System.out.println(\"------lenDigito:\" + lenDigito);\n\t\t\tint intRelleno = PORTAL_ID_SIZE - (lenId + lenDigito);\n\t\t\t//System.out.println(\"------intRelleno:\" + intRelleno);\n\t\t\tString strRelleno = \"\";\n\t\t\tif(intRelleno>0){\n\t\t\t\tfor(int i=0; i<intRelleno; i++){\n\t\t\t\t\tstrRelleno = strRelleno + \"0\";\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t//System.out.println(\"------strRelleno:\" + strRelleno);\n\t\t\tidPortalEmpleo = idPortalEmpleo + strRelleno + digitoVerificador;\n\t\t\t//System.out.println(\"------idPortalEmpleo:\" + idPortalEmpleo);\n\t\t\n\t\t} catch (RuntimeException e) {\n\t\t\tlogger.error(e.toString());\n\t\t\te.printStackTrace();\n\t\t\tthrow new PersistenceException(e);\n\t\t} catch (SQLException e) {\n\t\t\tlogger.error(e.toString());\n\t\t\te.printStackTrace();\n\t\t\tthrow new PersistenceException(e);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.toString());\t\t\t\n\t\t\te.printStackTrace();\n\t\t\tthrow new PersistenceException(e);\n\t\t}\t\t\n\t\treturn idPortalEmpleo;\n\t}",
"String getAnnoPubblicazione();",
"protected String elaboraHead() {\n String testo = VUOTA;\n String testoIncluso = VUOTA;\n\n // Avviso visibile solo in modifica\n testo += elaboraAvvisoScrittura();\n\n // Posiziona il TOC\n testoIncluso += elaboraTOC();\n\n // Posiziona il ritorno\n testoIncluso += elaboraRitorno();\n\n // Posizione il template di avviso\n testoIncluso += elaboraTemplateAvviso();\n\n // Ritorno ed avviso vanno (eventualmente) protetti con 'include'\n testo += elaboraInclude(testoIncluso);\n\n // Posiziona l'incipit della pagina\n testo += A_CAPO;\n testo += elaboraIncipit();\n\n // valore di ritorno\n return testo;\n }",
"private CapitoloUscitaGestione ricercaCapitoloUscitaGestione() {\n\t\tRicercaPuntualeCapitoloUGest ricercaPuntualeCapitoloUGest = new RicercaPuntualeCapitoloUGest();\n\t\tricercaPuntualeCapitoloUGest.setAnnoEsercizio(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setAnnoCapitolo(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroCapitolo(req.getCapitoloUPrev().getNumeroCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroArticolo(req.getCapitoloUPrev().getNumeroArticolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroUEB(req.getCapitoloUPrev().getNumeroUEB());\n\t\tricercaPuntualeCapitoloUGest.setStatoOperativoElementoDiBilancio(req.getCapitoloUPrev().getStatoOperativoElementoDiBilancio());\n\n\t\tRicercaPuntualeCapitoloUscitaGestione ricercaPuntualeCapitoloUscitaGestione = new RicercaPuntualeCapitoloUscitaGestione();\n\t\tricercaPuntualeCapitoloUscitaGestione.setEnte(req.getEnte());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRichiedente(req.getRichiedente());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRicercaPuntualeCapitoloUGest(ricercaPuntualeCapitoloUGest);\n\t\tricercaPuntualeCapitoloUscitaGestione.setDataOra(new Date());\n\t\t\t\t\t\n\t\tRicercaPuntualeCapitoloUscitaGestioneResponse ricercaPuntualeCapitoloUscitaGestioneResponse = executeExternalService(ricercaPuntualeCapitoloUscitaGestioneService,ricercaPuntualeCapitoloUscitaGestione);\n\t\treturn ricercaPuntualeCapitoloUscitaGestioneResponse.getCapitoloUscitaGestione();\n\t}",
"private String autores(Proyecto proyecto) {\r\n String resultado = \"\";\r\n Item estadoRenunciado = itemService.buscarPorCatalogoCodigo(CatalogoEnum.ESTADOAUTOR.getTipo(), EstadoAutorEnum.RENUNCIADO.getTipo());\r\n if (proyecto.getAutorProyectoList() == null) {\r\n return \"\";\r\n }\r\n int contador = 0;\r\n for (AutorProyecto autorProyecto : proyecto.getAutorProyectoList()) {\r\n if (estadoRenunciado.getId().equals(autorProyecto.getEstadoAutorId())) {\r\n continue;\r\n }\r\n EstudianteCarrera estudianteCarrera = estudianteCarreraService.buscarPorId(new EstudianteCarrera(autorProyecto.getAspiranteId().getId()));\r\n Persona persona = personaService.buscarPorId(new Persona(estudianteCarrera.getEstudianteId().getId()));\r\n if (contador == 0) {\r\n if (persona == null) {\r\n continue;\r\n }\r\n resultado = (persona.getApellidos() + \" \" + persona.getNombres());\r\n } else {\r\n resultado = (resultado + \", \" + persona.getApellidos() + \" \" + persona.getNombres());\r\n }\r\n contador++;\r\n }\r\n return resultado;\r\n }",
"@Override\n\tpublic String detalheEleicao(Eleicao eleicao) throws RemoteException {\n\t\tString resultado = \"\";\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy:MM:dd hh:mm\");\n\t\tdataEleicao data_atual = textEditor.dataStringToData(dateFormat.format(new Date()));\n\t\tif (!data_atual.maior_data(textEditor.dataStringToData(eleicao.getDataInicio()))) {\n\t\t\tresultado += \"\\nTítulo eleição: \"+eleicao.getTitulo()+\" - Data início: \"+eleicao.getDataInicio()+\" - Data fim: \"+ eleicao.getDataFim();\n\t\t\tresultado += \"\\nEleição ainda não iniciada.\";\n\t\t\tfor(Candidatos candTemp: eleicao.getCandidatos()) {\n\t\t\t\tif(candTemp.getTipo().equalsIgnoreCase(\"lista\")) {\n\t\t\t\t\tLista lista = (Lista) candTemp;\n\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+lista.getId()+\" - Nome lista: \"+lista.getNome()+\" Membros: \"+lista.getLista_pessoas();\n\t\t\t\t\tfor(PessoaLista pessoalista : lista.getLista_pessoas()) {\n\t\t\t\t\t\tresultado += \"\\n\\tCC: \"+pessoalista.getPessoa().getNcc()+\" - Cargo: \"+pessoalista.getCargo()+ \" - Nome: \"+pessoalista.getPessoa().getNome();\n\t\t\t\t\t}\n\t\t\t\t\tresultado += \"\\n\";\n\t\t\t\t}else {\n\t\t\t\t\tCandidatoIndividual cand = (CandidatoIndividual) candTemp;\n\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+cand.getId()+\" - Nome: \"+cand.getPessoa().getNome()+\" - CC: \"+cand.getPessoa().getNcc();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (data_atual.maior_data(textEditor.dataStringToData(eleicao.getDataFim()))) {\n\t\t\t\tresultado += \"\\nTítulo eleição: \"+eleicao.getTitulo()+\" - Data início: \"+eleicao.getDataInicio()+\" - Data fim: \"+ eleicao.getDataFim();\n\t\t\t\tresultado += \"\\nEleição terminada.\";\n\t\t\t\tresultado += \"\\nVotos em branco/nulos: \"+eleicao.getnVotoBNA();\n\t\t\t\tfor(Candidatos candTemp: eleicao.getCandidatos()) {\n\t\t\t\t\tif(candTemp.getTipo().equalsIgnoreCase(\"lista\")) {\n\t\t\t\t\t\tLista lista = (Lista) candTemp;\n\t\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+lista.getId()+\" - Nome lista: \"+lista.getNome()+\" Membros: \"+lista.getLista_pessoas()+\"Votos: \"+lista.getnVotos();\n\t\t\t\t\t\tresultado += \"\\n\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tCandidatoIndividual cand = (CandidatoIndividual) candTemp;\n\t\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+cand.getId()+\" - Nome: \"+cand.getPessoa().getNome()+\" - CC: \"+cand.getPessoa().getNcc()+\" - Votos: \"+cand.getnVotos();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(eleicao.getDataInicio()+\"-\"+eleicao.getDataFim()+\": A decorrer\");\n\t\t\t}\n\t\t}\n\t\treturn resultado;\n\t\n\t}",
"@Test\n\tpublic void ricercaSinteticaClassificatoreGSAFigli() {\n\n\t}",
"protected String elaboraTemplate(String testoIn) {\n return testoIn;\n }",
"protected String elaboraIncipitSpecificoSottopagina(String soggettoSottopagina) {\n return VUOTA;\n }",
"@Override\r\n\tpublic String llamadaEmergencia(TipoEmergencia te, String provincia) {\n\t\tif(provinciaString.equals(provincia)&&\r\n\t\t\t\t(te.equals(TipoEmergencia.TRAFICO)||te.equals(TipoEmergencia.CASERO)||te.equals(TipoEmergencia.INCENDIO))) {\r\n\t\t\tSystem.out.print(\"##Unidad \"+this.id+\" de Ambulancia en la provincia de \"+this.provinciaString+\" en camino!\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public String MuestraAdministrativo() {\n\t\n\tString Muestra=\"\";\n\tMuestra+=MuestraDatosAdministrativos() +\"Tipo de credito especial: Computo\\n\"\n\t\t\t+ \"Monto solicitado: �\"+String.format(\"%.0f\",getMontoCredito())+\"\\n\"\n\t\t\t+ \"Equipo a Adquirir: \"+getDispositivo()+\"\\n\"\n\t\t\t\t+ \"Comercio de compra: \"+getComercio()+\"\\n\"\n\t\t\t\t\t+ \"Plazo fijo: \"+getPlazo()+\" meses.\" +\"\\n\" \n\t\t\t\t\t\t+ \"Interes fijo: \"+String.format(\"%.0f\",getInteres())+\"%\\n\"\n\t\t\t\t\t\t+ \"Cuota a pagar: �\"+String.format(\"%.0f\",getCuotaPagar())+\"\\n\\n\";\n\t\n\treturn Muestra;\n\t\n}",
"public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}",
"private void verificaUnicitaAccertamento() {\n\t\t\n\t\t//chiamo il servizio ricerca accertamento per chiave\n\t\tRicercaAccertamentoPerChiave request = model.creaRequestRicercaAccertamento();\n\t\tRicercaAccertamentoPerChiaveResponse response = movimentoGestioneService.ricercaAccertamentoPerChiave(request);\n\t\tlogServiceResponse(response);\n\t\t// Controllo gli errori\n\t\tif(response.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\taddErrori(response);\n\t\t} else {\n\t\t\t//non si sono verificatui errori, ma devo comunque controllare di aver trovato un accertamento su db\n\t\t\tcheckCondition(response.getAccertamento() != null, ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Movimento Anno e numero\", \"L'impegno indicato\"));\n\t\t\tmodel.setAccertamento(response.getAccertamento());\n\t\t}\n\t}",
"public String Dime_datos_generales() {\n\t\t\n\t\treturn \"la plataforma del veiculo tiene \"+ rueda+\" ruedas\"+\n\t\t\"\\nmide \"+ largo/1000+\" metros con un ancho de \"+ancho+\n\t\t\"cm\"+\"\\nun peso de platafrorma de \"+peso;\n\t}",
"public static String convertOrarioToFascia(String data) {\n String[] data_splitted = data.split(\" \");\n String orario = data_splitted[1];\n String[] ora_string = orario.split(\":\");\n Integer ora = Integer.parseInt(ora_string[0]);\n if(ora<12){\n return \"prima\";\n }else{\n return \"seconda\";\n }\n }",
"private static String formatFamilyMember (FamilyMemberGuest fmg, Date arrivo, int permanenza) {\n\t\tString res = \"\";\n\n\t\tres += FamilyMemberGuest.CODICE;\n\t\tres += DateUtils.format(arrivo);\n\t\tres += String.format(\"%02d\", permanenza);\n\t\tres += padRight(fmg.getSurname().trim().toUpperCase(),50);\n\t\tres += padRight(fmg.getName().trim().toUpperCase(),30);\n\t\tres += fmg.getSex().equals(\"M\") ? 1 : 2;\n\t\tres += DateUtils.format(fmg.getBirthDate());\n\n\t\t//Setting luogo et other balles is a bit more 'na rottura\n\t\tres += formatPlaceOfBirth(fmg.getPlaceOfBirth());\n\n\t\tPlace cita = fmg.getCittadinanza(); //banana, box\n\t\tres += cita.getId();\n\t\t//Assert.assertEquals(168,res.length()); //if string lenght is 168 we are ok\n\t\tres += padRight(\"\", 34);\n\t\tres += \"\\r\\n\";\n\n\t\treturn res;\n\t}",
"public String getInfoTitulos(){\r\n String infoTitulos = \"\";\r\n \r\n if(this.propriedadesDoJogador.size() > 0 || this.companhiasDoJogador.size() > 0){\r\n for(int i = 0; i < this.propriedadesDoJogador.size(); i++){\r\n infoTitulos += propriedadesDoJogador.get(i).getDescricao()+\"\\n\";\r\n }\r\n for(int i = 0; i < this.companhiasDoJogador.size(); i++){\r\n infoTitulos += companhiasDoJogador.get(i).getDescricao()+\"\\n\";\r\n }\r\n return infoTitulos;\r\n \r\n }else{\r\n return \"Você não possui títulos\";\r\n }\r\n }",
"public String getAlto() {\r\n return alto;\r\n }",
"protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }",
"public abstract java.lang.String getAcma_cierre();",
"@Override\n public String toString() {\n String result = \"\";\n if (isDama) {\n if (tipo == TipoPedina.bianca) {\n result += Strings.PEDINA_REGINA_BIANCA;\n } else {\n result += Strings.PEDINA_REGINA_NERA;\n }\n } else {\n if (tipo == TipoPedina.bianca) {\n result += Strings.PEDINA_BIANCA;\n } else {\n result += Strings.PEDINA_NERA;\n }\n }\n return result;\n }",
"private String[] Asignacion(String texto) {\n String[] retorno = new String[2];\n try {\n retorno = texto.split(\"=\");\n if (retorno.length == 2) {\n if (retorno[0].toLowerCase().contains(\"int\")) {\n if (retorno[0].contains(\"int\")) {\n if (retorno[0].startsWith(\"int\")) {\n String aux[] = retorno[0].split(\"int\");\n if (aux.length == 2) {\n retorno[0] = \"1\";//aceptacion\n retorno[1] = aux[1];//nombre variable\n } else {\n retorno[0] = \"0\";//error\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n } else {\n retorno[0] = \"0\";//error\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"se encuentra mal escrito el int.\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se encontro la palabra reservada int.\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n } catch (Exception e) {\n System.out.println(\"Error en Asignacion \" + e.getClass());\n } finally {\n return retorno;\n }\n }",
"private StringProperty mostrarEmaitza(Partido value) {\n\t\t\n\t\tStringProperty emaitza = new SimpleStringProperty();\n\t\temaitza.set(value.getGolesLocal()+\" - \"+value.getGolesVisitante());\n\t\treturn emaitza;\n\t}",
"public void mostrarEstadisticas(String promedio, int rechazados, String caracteristicas){\n System.out.println(\"El tiempo promedio es de: \" + promedio);\n System.out.println(\"La cantidad de carros rechazados es de: \" + rechazados);\n System.out.println(\"El modelo mas usado en parqueos es: \" + caracteristicas);\n }",
"private AtualizarContaPreFaturadaHelper parserRegistroTipo2(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\t\tSystem.out.println(\"Tipo de Retorno: \" + retorno.tipoRegistro);\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\t\tSystem.out.println(\"Matricula do Imovel: \" + retorno.matriculaImovel);\r\n\r\n\t\t// Codigo da Categoria\r\n\t\tretorno.codigoCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CODIGO_CATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_2_CODIGO_CATEGORIA;\r\n\r\n\t\t// Codigo da Subcategoria\r\n\t\tretorno.codigoSubCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CODIGO_SUBCATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_2_CODIGO_SUBCATEGORIA;\r\n\r\n\t\t// Valor faturado agua\r\n\t\tretorno.valorFaturadoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_FATURADO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_FATURADO_AGUA;\r\n\r\n\t\t// Consumo faturado de agua\r\n\t\tretorno.consumoFaturadoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_FATURADO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_FATURADO_AGUA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorTarifaMinimaAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_AGUA;\r\n\r\n\t\t// Consumo Minimo de Agua\r\n\t\tretorno.consumoMinimoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_MINIMO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_MINIMO_AGUA;\r\n\r\n\t\t// Valor faturado esgoto\r\n\t\tretorno.valorFaturadoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_FATURADO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_FATURADO_ESGOTO;\r\n\r\n\t\t// Consumo faturado de esgoto\r\n\t\tretorno.consumoFaturadoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_FATURADO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_FATURADO_ESGOTO;\r\n\r\n\t\t// Valor tarifa minima de esgoto\r\n\t\tretorno.valorTarifaMinimaEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_ESGOTO;\r\n\r\n\t\t// Consumo Minimo de esgoto\r\n\t\tretorno.consumoMinimoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_MINIMO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_MINIMO_ESGOTO;\r\n\t\t\r\n\t\t// Consumo Minimo de esgoto \r\n\t\t/*\r\n\t\tretorno.subsidio = linha.substring(index + 2, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_SUBSIDIO_AGUA_PARA);\r\n\t\tindex += REGISTRO_TIPO_2_SUBSIDIO_AGUA_PARA;\r\n\t\t*/\r\n\t\treturn retorno;\r\n\t}",
"String getUnidade();",
"public String getPatronAutorizacion()\r\n/* 204: */ {\r\n/* 205:349 */ this.patronAutorizacion = \"\";\r\n/* 206:350 */ if (this.indicadorFacturaElectronica) {\r\n/* 207:351 */ for (int i = 0; i < 37; i++) {\r\n/* 208:352 */ this.patronAutorizacion += \"9\";\r\n/* 209: */ }\r\n/* 210: */ } else {\r\n/* 211:355 */ for (int i = 0; i < 10; i++) {\r\n/* 212:356 */ this.patronAutorizacion += \"9\";\r\n/* 213: */ }\r\n/* 214: */ }\r\n/* 215:359 */ return this.patronAutorizacion;\r\n/* 216: */ }",
"@Test\r\n public void testCalculerValeurTerrainAgricole() {\n Lot lot1 = new Lot(\"Lot1\", 2, 0, 300, \"14-02-2019\");\r\n Lot lot2 = new Lot(\"Lot2\", 2, 0, 600, \"12-06-2019\");\r\n Lot lot3 = new Lot(\"Lot3\", 2, 0, 1500, \"04-02-2019\");\r\n List<Lot> lots = new ArrayList();\r\n lots.add(lot1);\r\n lots.add(lot2);\r\n lots.add(lot3);\r\n // Terrain (typeTerrain, prix_min2, prix_min2, listLot)\r\n Terrain terrain = new Terrain(0, 50.00, 75.00, lots);\r\n Agricole.calculerValeurTerrainAgricole(terrain);\r\n // valFonciereAttendue = 50.0*300 + 50.0*600 + 50.0*1500 + 733.77 +\r\n // nbreDroitPassage = 500-(2*(5/100*300*50)) + 500-(2*(5/100*600*50))+\r\n // 500-(2*(5/100*1500*50)\r\n double valFonciereAttendue = 110233.8;\r\n double taxeScolaireAttendue=1322.85;\r\n double taxeMunicipaleAttendue = 2755.85;\r\n boolean resultat = valFonciereAttendue == terrain.getValeur_fonciere_totale()\r\n && taxeScolaireAttendue == terrain.getTaxe_scolaire()\r\n && taxeMunicipaleAttendue == terrain.getTaxe_municipale();\r\n assertTrue(\"valfoncièreAttendue: \" + valFonciereAttendue+\", vs valeur obtenue: \"+terrain.getValeur_fonciere_totale()\r\n + \"\\ntaxe scolaire attendue: \" + taxeScolaireAttendue+\", vs valeur obtenue: \"+terrain.getTaxe_scolaire()\r\n + \"\\ntaxe muninipale attendue: \" + taxeMunicipaleAttendue+\", vs valeur obtenue: \"+terrain.getTaxe_municipale(), \r\n resultat); \r\n \r\n }",
"private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }",
"public String accionemergencia(){\n\t\tString resp=\"\";\n\t\tif(puntosvida<=5 && acc!=1){\n\t\t\tpuntosvida=puntosvida+15;\n\t\t\tresp=\"\\nAccion de emergencia \"+ tipo +\"activada vida +15\";\n\t\t\tacc=1;\n\t\t}\n\t\treturn resp;\n\t}",
"public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }",
"private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}",
"protected String getTitoloPaginaMadre() {\n return VUOTA;\n }",
"public String getTipoAnexoSRI()\r\n/* 612: */ {\r\n/* 613:676 */ this.tipoAnexoSRI = ParametrosSistema.getTipoAnexoSRI(AppUtil.getOrganizacion().getId());\r\n/* 614:677 */ return this.tipoAnexoSRI;\r\n/* 615: */ }",
"@Test\n public void nao_deve_aceitar_descricao_com_menos_de_15_caracteres() {\n telefone.setDescricao(random(35, true, false));\n assertFalse(isValid(telefone, \"A descrição não pode ter menos de 15 e mais de 30 caracteres.\", Find.class));\n }",
"public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }",
"private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}",
"@Test\n public void quandoCriaPilhaVazia(){\n // QUANDO (PRE-CONDIÇAO) E FAÇA (EXECUÇAO DO COMPORTAMENTO):\n PilhaString pilha1 = new PilhaString();\n \n // VERIFICAR (CHECK)\n assertTrue(pilha1.isVazia()); //true\n }",
"String getTitolo();",
"public abstract java.lang.String getAcma_descripcion();",
"@Então(\"a entrega será efetuada em {int}\\\\/{int}\\\\/{int}\")\n\tpublic void aEntregaSeráEfetuadaEm(String data) throws Throwable {\n\t\tDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tString dataFormatada = format.format(entrega);\n\t\tAssert.assertEquals(data, dataFormatada);\n\t throw new cucumber.api.PendingException();\n\t}",
"@Override\n\t@Transactional\n\tpublic boolean validarColumnasTxt(String ubicacion, Registro registro, int formato) { // Formato = 2(TXT) , 3(CSV)\n\t\tboolean columnasCoinciden = false;\n\t\tVersionPlantilla plantillaDb = versionPlantillaServiceImpl.recuperarVersionPlantillaHabilitada(registro.getId());\t\t\n\t\t//Plantilla plantillaDb = plantillaRepositoryImpl.buscarPlantillaPorRegistroJpa(registro.getId()); // Recuperar la plantilla que pertenece al registro\n\t\tList<String> listadoColumnasBd = new ArrayList<String>(); // Almacenar columnas de BD\n\t\tList<String> listadocolumnasSpss=new ArrayList<String>();\n\t\tswitch(formato)\n\t\t{\n\t\t\tcase 2:\t\t\t\t\n\t\t\t\t listadocolumnasSpss = leerColumnasTxtDelServidor(ubicacion); // Listado columnas txt\n\t\t\t\t break;\n\t\t\tcase 3:\n\t\t\t\t listadocolumnasSpss = leerColumnasCsvDelServidor(ubicacion); // Listado columnas csv\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t\tfor (ColumnaVersionPlantilla pc : plantillaDb.getVersionesColumna()) {\n\t\t\tlistadoColumnasBd.add(pc.getPlantillaColumna().getNombre().toUpperCase());\n\t\t\t\n\t\t}\n\t\tString col1;\n\t\tfor (String col : listadocolumnasSpss) {\n\t\t\tif (listadocolumnasSpss.size() != listadoColumnasBd.size()) {\n\t\t\t\tcolumnasCoinciden = false;\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tcol=col.toLowerCase();\n\t\t\t\tint i=0;\n\t\t\t\tcol=col.replace(\";\", \"\");\n\t\t\t\tint ascii = (int) col.charAt(0);\n\t\t\t\t//System.out.println(\"col ascii:\"+ascii);\n\t\t\t\t\n\t\t\t\tif(ascii==65279)\n\t\t\t\t{\n\t\t\t\t\tcol=col.substring(1);\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tif (listadoColumnasBd.contains(col.toUpperCase())) {\n\t\t\t\t\tcolumnasCoinciden = true;\n\t\t\t\t\tcontinue;// Continue funciona par for, while, y Do-while\n\t\t\t\t} else {\n\t\t\t\t\tcolumnasCoinciden = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tLOG.info(\"RETORNO : \" + columnasCoinciden);\n\t\treturn columnasCoinciden;\n\t}",
"@Test\r\n public void testPartido1() throws Exception {\r\n /* \r\n * En el estado EN_ESPERA\r\n */\r\n assertEquals( \"Ubicación: Camp Nou\" \r\n + \"\\nFecha: 2010-04-28\"\r\n + \"\\nEl partido está en espera, aún no se han concretado los equipos\"\r\n , P1.datos());\r\n /* \r\n * En el estado NO_JUGADO\r\n */\r\n P1.fijarEquipos(\"Barça\",\"Depor\"); \r\n assertEquals( \"Ubicación: Camp Nou\"\r\n + \"\\nFecha: 2010-04-28\"\r\n + \"\\nEl partido aún no se ha jugado\"\r\n + \"\\nEquipo local: Barça\"\r\n + \"\\nEquipo visitante: Depor\" \r\n , P1.datos()\r\n );\r\n /* \r\n * En el estado EN_JUEGO\r\n */\r\n P1.comenzar(); \r\n P1.tantoLocal();\r\n P1.tantoVisitante();\r\n assertEquals( \"Ubicación: Camp Nou\"\r\n + \"\\nFecha: 2010-04-28\"\r\n + \"\\nEl partido está en juego\"\r\n + \"\\nEquipo local: Barça\"\r\n + \"\\nTantos locales: 1\"\r\n + \"\\nEquipo visitante: Depor\"\r\n + \"\\nTantos visitantes: 1\"\r\n , P1.datos()\r\n );\r\n /* \r\n * En el estado FINALIZADO\r\n */\r\n P1.terminar(); \r\n assertEquals( \"Ubicación: Camp Nou\"\r\n + \"\\nFecha: 2010-04-28\"\r\n + \"\\nEl partido ha finalizado\"\r\n + \"\\nEquipo local: Barça\"\r\n + \"\\nTantos locales: 1\"\r\n + \"\\nEquipo visitante: Depor\"\r\n + \"\\nTantos visitantes: 1\"\r\n , P1.datos()\r\n );\r\n assertEquals(\"Empate\",P1.ganador());\r\n }",
"public List<String> pot(ReportePlazaDTO reportePlazaDTO) {\n List<CustomOutputFile> lista = new ArrayList<CustomOutputFile>();\n List<String> listaString = new ArrayList<String>();\n\n String qnaCaptura = reportePlazaDTO.getQnaCaptura();\n String qnaCaptura2 = \"\";\n\n if (new Integer(qnaCaptura) % 2 == 0) {\n qnaCaptura2 = String.valueOf((new Integer(qnaCaptura) - 1));\n } else {\n qnaCaptura2 = qnaCaptura;\n }\n\n\n if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"e\")) {\n\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotEscenario(qnaCaptura);\n listaString.add(\"ID del Cargo,Nombre del Cargo\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"i\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotInmueble(qnaCaptura);\n listaString.add(\"Id Domicilio,Calle,Número Exterior,Número Interior,Colonia,Municipio,Estado/Entidad Fef.,País,Código Postal,Tipo de Oficina\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"a\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotAltas(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"ID del Servidor Público,Nombre,Primer Apellido,Segundo Apellido,Tipo Vacancia,Telefono Directo,Conmutador,Extensión,Fax,Email,ID Domicilio,Nivel de Puesto,Id del Cargo,ID del Cargo Superior,Nivel_Jerarquico\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"b\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotBajas(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"ID del Servidor Público\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"d\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotDirectorio(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Unidad,RFC,ID del Servidor Público,Nombre,Primer Apellido,Segundo Apellido,Tipo Vacancia,Telefono Directo,Conmutador,Extensión,Fax,Email,ID Domicilio,Nivel de Puesto,Id del Cargo,ID del Cargo Superior,Nivel_Jerarquico\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"r\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotRemuneraciones(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Id Puesto,Nombre,Tipo,SubTipo,Sueldo Base,Compensación Garantizada, Total Bruto, Total Neto,Nombre 01 Remuneracion,Monto 01 Remuneracion,Nombre 02 Remuneracion,Monto 02 Remuneracion,Nombre 03 Remuneracion,Monto 03 Remuneracion,Nombre 04 Remuneracion,Monto 04 Remuneracion,Nombre 05 Remuneracion,Monto 05 Remuneracion,Nombre 06 Remuneracion,Monto 06 Remuneracion,Nombre 07 Remuneracion,Monto 07 Remuneracion,Nombre 08 Remuneracion,Monto 08 Remuneracion,Nombre 09 Remuneracion,Monto 09 Remuneracion,Nombre 10 Remuneracion,Monto 10 Remuneracion,Nombre 11 Remuneracion,Monto 11 Remuneracion,Nombre 12 Remuneracion,Monto 12 Remuneracion,Nombre 13 Remuneracion,Monto 13 Remuneracion,Nombre 14 Remuneracion,Monto 14 Remuneracion,Nombre 15 Remuneracion,Monto 15 Remuneracion,Institucional,Colectivo de Retiro,Gastos Médicos,Separación Individualizado,Riesgos de Trabajo,Nombre Otros Seguros 1,Monto Otros Seguros 1,Nombre Otros Seguros 2,Monto Otros Seguros 2,Nombre Otros Seguros 3,Monto Otros Seguros 3,Nombre Otros Seguros 4,Monto Otros Seguros 4,Nombre Otros Seguros 5,Monto Otros Seguros 5,Nombre Otros Seguros 6,Monto Otros Seguros 6,Nombre Otros Seguros 7,Monto Otros Seguros 7,Nombre Otros Seguros 8,Monto Otros Seguros 8,Nombre Otros Seguros 9,Monto Otros Seguros 9,Nombre Otros Seguros 10,Monto Otros Seguros 10,Nombre Otros Seguros 11,Monto Otros Seguros 11,Nombre Otros Seguros 12,Monto Otros Seguros 12,Nombre Otros Seguros 13,Monto Otros Seguros 13,Nombre Otros Seguros 14,Monto Otros Seguros 14,Nombre Otros Seguros15,Monto Otros Seguros 15,Prima Vacacional,Primas de Antigüedad,Gratificación de Fin de Año,Pagas de Defunción,Ayuda para Despensa,Vacaciones,Nombre Prest. Econom 1,Monto Prest. Econom 1,Nombre Prest. Econom 2,Monto Prest. Econom 2,Nombre Prest. Econom 3,Monto Prest. Econom 3,Nombre Prest. Econom 4,Monto Prest. Econom 4,Nombre Prest. Econom 5,Monto Prest. Econom 5,Nombre Prest. Econom 6,Monto Prest. Econom 6,Nombre Prest.Econom 7,Monto Prest. Econom 7,Nombre Prest. Econom 8,Monto Prest. Econom 8,Nombre Prest. Econom 9,Monto Prest. Econom 9,Nombre Prest. Econom 10,Monto Prest. Econom 10,Nombre Prest. Econom 11,Monto Prest. Econom 11,Nombre Prest. Econom 12,Monto Prest. Econom 12,Nombre Prest. Econom 13,Monto Prest. Econom 13,Nombre Prest. Econom 14,Monto Prest. Econom 14,Nombre Prest. Econom 15,Monto Prest. Econom 15,Asistencia Legal,Asignación de Vehículo y/o Apoyo Económico ,Equipo de Telefonía Celular,Gastos de Alimentación,Nombre Prest. Inherentes al Puesto 1,Monto Prest. Inherentes al Puesto 1,Nombre Prest. Inherentes al Puesto 2,Monto Prest. Inherentes al Puesto 2,Nombre Prest. Inherentes al Puesto 3,Monto Prest. Inherentes al Puesto 3,Nombre Prest. Inherentes al Puesto 4,Monto Prest. Inherentes al Puesto 4,Nombre Prest. Inherentes al Puesto 5,Monto Prest. Inherentes al Puesto 5,Nombre Prest. Inherentes al Puesto 6,Monto Prest. Inherentes al Puesto 6,Nombre Prest. Inherentes al Puesto 7,Monto Prest. Inherentes al Puesto 7,Nombre Prest. Inherentes al Puesto 8,Monto Prest. Inherentes al Puesto 8,Nombre Prest. Inherentes al Puesto 9,Monto Prest. Inherentes al Puesto 9,Nombre Prest. Inherentes al Puesto 10,Monto Prest. Inherentes al Puesto 10,Nombre Prest. Inherentes al Puesto 11,Monto Prest. Inherentes al Puesto 11,Nombre Prest. Inherentes al Puesto 12,Monto Prest. Inherentes al Puesto 12,Nombre Prest. Inherentes al Puesto 13,Monto Prest. Inherentes al Puesto 13,Nombre Prest. Inherentes al Puesto 14,Monto Prest. Inherentes al Puesto 14,Nombre Prest. Inherentes al Puesto 15,Monto Prest. Inherentes al Puesto 15,ISSSTE / IMSS,FOVISSSTE / INFONAVIT,SAR,Nombre 01 Prest.Seg Social,Monto 01 Prest.Seg Social,Nombre 02 Prest.Seg Social,Monto 02 Prest.Seg Social,Nombre 03 Prest.Seg Social,Monto 03 Prest.Seg Social,Nombre 04 Prest.Seg Social,Monto 04 Prest.Seg Social,Nombre 05 Prest.Seg Social,Monto 05 Prest.Seg Social,Nombre 06 Prest.Seg Social,Monto 06 Prest.Seg Social,Nombre 07 Prest.Seg Social,Monto 07 Prest.Seg Social,Nombre 08 Prest.Seg Social,Monto 08 Prest.Seg Social,Nombre 09 Prest.Seg Social,Monto 09 Prest.Seg Social,Nombre 10 Prest.Seg Social,Monto 10 Prest.Seg Social,Nombre 11 Prest.Seg Social,Monto 11 Prest.Seg Social,Nombre 12 Prest.Seg Social,Monto 12 Prest.Seg Social,Nombre 13 Prest.Seg Social,Monto 13 Prest.Seg Social,Nombre 14 Prest.Seg Social,Monto 14 Prest.Seg Social,Nombre 15 Prest.Seg Social,Monto 15 Prest.Seg Social,Préstamos,Becas,Indemnizaciones,Nombre Otro Tipo Incentivo 01,Monto. Otro Tipo Incentivo 01,Nombre Otro Tipo Incentivo 02,Monto. Otro Tipo Incentivo 02,Nombre Otro Tipo Incentivo 03,Monto. Otro Tipo Incentivo 03,Nombre Otro Tipo Incentivo 04,Monto. Otro Tipo Incentivo 04,Nombre Otro Tipo Incentivo05,Monto. Otro Tipo Incentivo 05,Nombre Otro Tipo Incentivo 06,Monto. Otro Tipo Incentivo 06,Nombre Otro Tipo Incentivo 07,Monto. Otro Tipo Incentivo 07,Nombre Otro Tipo Incentivo 08,Monto. Otro Tipo Incentivo 08,Nombre Otro Tipo Incentivo 09,Monto. Otro Tipo Incentivo 09,Nombre Otro Tipo Incentivo 10,Monto. Otro Tipo Incentivo10,Nombre Otro Tipo Incentivo 11,Monto. Otro Tipo Incentivo 11,Nombre Otro Tipo Incentivo 12,Monto. Otro Tipo Incentivo12,Nombre Otro Tipo Incentivo 13,Monto. Otro Tipo Incentivo 13,Nombre Otro Tipo Incentivo 14,Monto. Otro Tipo Incentivo 14,Nombre Otro Tipo Incentivo 15,Monto. Otro Tipo Incentivo 15\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"f\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotFuncion((reportePlazaDTO.getQnaCaptura().substring(0, \n 4)));\n listaString.add(\"Identificador de la Facultad,Fundamento Legal,Documento Registrado,Unidad Administrativa,Nombre de la Unidad Administrativa\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"s\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotEstadistico(qnaCaptura);\n listaString.add(\"NIVEL,G,H,HH,I,J,K,L,M,N,O,Total\");\n }\n\n if (lista != null) {\n for (CustomOutputFile row: lista) {\n listaString.add(row.getRegistro());\n }\n } else\n listaString = null;\n return listaString;\n\n }",
"@Test\n public void nao_deve_aceitar_descricao_com_mais_de_30_caracteres() {\n telefone.setDescricao(random(35, true, false));\n assertFalse(isValid(telefone, \"A descrição não pode ter menos de 15 e mais de 30 caracteres.\", Find.class));\n }",
"private static String formatFamily (FamilyCard fc) {\n\t\tString res = \"\";\n\n\t\tFamilyHeadGuest fhg = fc.getCapoFamiglia();\n\t\tres += FamilyHeadGuest.CODICE;\n\t\tres += DateUtils.format(fc.getDate());\n\t\tres += String.format(\"%02d\", fc.getPermanenza());\n\t\tres += padRight(fhg.getSurname().trim().toUpperCase(),50);\n\t\tres += padRight(fhg.getName().trim().toUpperCase(),30);\n\t\tres += fhg.getSex().equals(\"M\") ? 1 : 2;\n\t\tres += DateUtils.format(fhg.getBirthDate());\n\n\t\t//Setting luogo et other balles is a bit more 'na rottura\n\t\tres += formatPlaceOfBirth(fhg.getPlaceOfBirth());\n\n\t\tPlace cita = fhg.getCittadinanza(); //banana, box\n\t\tres += cita.getId();\n\n\t\tres += fhg.getDocumento().getDocType().getCode();\n\t\tres += padRight(fhg.getDocumento().getCodice(),20);\n\t\tres += fhg.getDocumento().getLuogoRilascio().getId();\n\t\t//Assert.assertEquals(168,res.length()); //if string lenght is 168 we are ok\n\t\tres += \"\\r\\n\";\n\n\t\tfor (FamilyMemberGuest fmg : fc.getFamiliari()){\n\t\t\tres += formatFamilyMember(fmg, fc.getDate(), fc.getPermanenza());\n\t\t\t//res += \"\\r\\n\";\n\t\t}\n\n\t\treturn res;\n\t}",
"@Override\n\tpublic String getDescription() {\n\t\treturn \"Transfereix vida a l'enemic\";\n\t}",
"@Override\n\tpublic String getInforme() {\n\t\treturn \"INFORME COMERCIAL 3: REPORTE SEMANAL VENTAS\" + \"\\n\" + reporteSemanal.getInformeFinancieroEspecial();\n\t}",
"public VOUsuario obtenerdatosUsuario(String[] val, String[] tipo) throws RemoteException {\n VOUsuario usu = null;\n if(tipo.length==val.length)\n try {\n FileReader fr = new FileReader(datos);\n BufferedReader entrada = new BufferedReader(fr);\n String s;\n String texto[]=new String[11];\n\n int n, l=0;\n int campo[]=new int[tipo.length];\n boolean encontrado=false;\n for(int i=0; i<tipo.length; i++) {\n if(tipo[i].compareTo(\"id\")==0) campo[i]=0;\n if(tipo[i].compareTo(\"nombre\")==0) campo[i]=4;\n if(tipo[i].compareTo(\"apellido\")==0) campo[i]=5;\n if(tipo[i].compareTo(\"nomuser\")==0) campo[i]=1;\n if(tipo[i].compareTo(\"email\")==0) campo[i]=7;\n if(tipo[i].compareTo(\"rut\")==0) campo[i]=6;\n if(tipo[i].compareTo(\"pass\")==0) campo[i]=3;\n }\n while((s = entrada.readLine()) != null && !encontrado) {\n texto=s.split(\" \");\n int j=0;\n boolean seguir=true;\n while(j<campo.length && seguir) {\n if(texto[campo[j]].toLowerCase().compareTo(val[j].toLowerCase())!=0) {\n seguir=false;\n j++;\n } else {\n j++;\n }\n }\n if(seguir) {\n encontrado=true;\n }\n l++;\n }\n if(encontrado) {\n int area[] = new int[texto[10].split(\"-\").length];\n String ar[]=texto[10].split(\"-\");\n for(int i=0; i<area.length; i++) {\n area[i]=Integer.parseInt(ar[i]);\n }\n usu=new VOUsuario(\n texto[0],\n texto[1],\n this.quitaGuiones(texto[2]),\n texto[3],\n this.quitaGuiones(texto[4]),\n this.quitaGuiones(texto[5]),\n this.quitaGuiones(texto[6]),\n this.quitaGuiones(texto[7]),\n this.quitaGuiones(texto[8]),\n this.quitaGuiones(texto[9]),\n area);\n entrada.close();\n }\n } catch (FileNotFoundException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n } catch (IOException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n }\n return usu;\n }",
"private String getStatusAlarme(Evento ultimoEvento)\n\t{\n\t\t// Se o ultimo evento nao existir para um dado alarme entao o novo status \n\t\t// sera o mesmo status atual definido para o alarme. Portanto a analise sera\n\t\t// feita somente se existir um ultimo evento\n\t\tString statusAlarme = alarme.getStatus();\n\t\tif (ultimoEvento != null)\n\t\t{\n\t\t\t// Busca o valor do alarme ALERTA,FALHA ou OK para o alarme em processamento\n\t\t\t// dependendo de suas configuracoes com relacao a \"scheduling\" (agendamento de datas)\n\t\t\tstatusAlarme = getAlertaPorAgendamento(ultimoEvento);\n\t\t\t\n\t\t\t// Se o status for diferente de OK entao ja atualiza este na tabela para indicar o alerta\n\t\t\t// desse alarme. Caso contrario entao as verificacoes por valores e por resposta serao\n\t\t\t// verificados.\n\t\t\tif (statusAlarme.equals(Alarme.ALARME_OK))\n\t\t\t{\n\t\t\t\tstatusAlarme = getAlertaPorValor(ultimoEvento);\n\t\t\t\t// Caso o status por valor seja ok entao verifica por status da ultima execucao.\n\t\t\t\t// No caso do status ser diferente de ok entao este ja vai para a tabela\n\t\t\t\tif (statusAlarme.equals(Alarme.ALARME_OK))\n\t\t\t\t\tstatusAlarme = getAlertaPorStatusExecucao(ultimoEvento);\n\t\t\t}\n\t\t}\n\t\treturn statusAlarme;\n\t}",
"public String toString(){\n\t\tif(categoria == 1)\n\t\t\treturn \"Profesor Ayudante\\n\" + super.toString() + \"\\n\" + \"Horario = \" + tutoria;\n\t\telse if(categoria == 2)\n\t\t\treturn \"Profesor Titular de Universidad\\n\" + super.toString() + \"\\n\" + \"Horario = \" + tutoria;\n\t\telse\n\t\t\treturn \"Profesor Catedrático de Universidad\\n\" + super.toString() + \"\\n\" + \"Horario = \" + tutoria;\n\t}",
"public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}",
"public void setEdificio (String pEdificio)\r\n {\r\n this.edificio = pEdificio;\r\n }",
"private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}",
"public void Tarifa(String tipoTarifa){\n Tarifa = tipoTarifa;\n Regular = \"R\";\n Comercial = \"C\";\n\n }",
"public String getAutorizacion()\r\n/* 134: */ {\r\n/* 135:226 */ return this.autorizacion;\r\n/* 136: */ }",
"private void remplirUtiliseData() {\n\t}",
"private String mayorTurno(ABBTurnosTDA a){\t\t\n\t\tif(a.hijoDer().arbolVacio())\n\t\t\treturn a.turno();\n\t\telse\n\t\t\treturn mayorTurno(a.hijoDer());\n\t}",
"public String MuestraSoloDNI() {\nString Muestra=\"\";\n\nif(getTipoCliente().equals(\"Docente\")) {\nMuestra=clienteDo.getDni();\n}else if(getTipoCliente().equalsIgnoreCase(\"Administrativo\")) {\nMuestra=clienteAd.getDni();\n}\nreturn Muestra;\n}",
"public String verDados() {\n\t\treturn super.verDados() + \"\\nSobremesa: \" + this.adicionais;\n\n\t}",
"public String getEdificio ()\r\n {\r\n return this.edificio;\r\n }",
"public void creightonIsExtraSpecial() {\n\t\tHashMap<String, Object> partToStatus = new HashMap<String, Object>();\n\t\t\n\t\tpartToStatus.put(\"autoTime\", autoTime);\n\t\tpartToStatus.put(\"matchTime\", matchTime);\n\t\t\n\t\tpartToStatus.get(\"autoTime\");\n\t\t\n\t\t\n\t}",
"protected String comprobarConsumoEnergetico(Letra letra){\r\n if(getConsumoEnergetico() == Letra.A | getConsumoEnergetico() == Letra.B | getConsumoEnergetico() == Letra.C \r\n | getConsumoEnergetico() == Letra.D | getConsumoEnergetico() == Letra.E | getConsumoEnergetico() == Letra.F){\r\n return \"Consumo energetico correcto; letra correcta\";\r\n }\r\n else{\r\n return \"Consumo energetico incorrecto; letra erronea\";\r\n }\r\n}",
"private AtualizarContaPreFaturadaHelper parserRegistroTipo1(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\r\n\t\t// Tipo de medição\r\n\t\tretorno.tipoMedicao = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_TIPO_MEDICAO);\r\n\t\tindex += REGISTRO_TIPO_1_TIPO_MEDICAO;\r\n\r\n\t\t// Ano e mes do faturamento\r\n\t\tretorno.anoMesFaturamento = Util.formatarMesAnoParaAnoMes(linha\r\n\t\t\t\t.substring(index, index + REGISTRO_TIPO_1_ANO_MES_FATURAMENTO));\r\n\t\tindex += REGISTRO_TIPO_1_ANO_MES_FATURAMENTO;\r\n\r\n\t\t// Numero da conta\r\n\t\tretorno.numeroConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_NUMERO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_NUMERO_CONTA;\r\n\r\n\t\t// Codigo do Grupo de faturamento\r\n\t\tretorno.codigoGrupoFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CODIGO_GRUPO_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_CODIGO_GRUPO_FATURAMENTO;\r\n\r\n\t\t// Codigo da rota\r\n\t\tretorno.codigoRota = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CODIGO_ROTA);\r\n\t\tindex += REGISTRO_TIPO_1_CODIGO_ROTA;\r\n\r\n\t\t// Codigo da leitura do hidrometro\r\n\t\tretorno.leituraHidrometro = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_HIDROMETRO);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_HIDROMETRO;\r\n\r\n\t\t// Anormalidade de Leitura\r\n\t\tretorno.anormalidadeLeitura = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_LEITURA;\r\n\r\n\t\t// Data e Hora Leitura\r\n\t\tretorno.dataHoraLeituraHidrometro = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_DATA_HORA_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_DATA_HORA_LEITURA;\r\n\r\n\t\t// Indicador de Confirmacao\r\n\t\tretorno.indicadorConfirmacaoLeitura = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICADOR_CONFIRMACAO_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICADOR_CONFIRMACAO_LEITURA;\r\n\r\n\t\t// Leitura do Faturamento\r\n\t\tretorno.leituraFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_FATURAMENTO;\r\n\r\n\t\t// Consumo Medido no mes\r\n\t\tretorno.consumoMedido = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_MEDIDO);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_MEDIDO;\r\n\r\n\t\t// Consumo a ser cobrado\r\n\t\tretorno.consumoASerCobradoMes = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_A_SER_COBRADO_MES);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_A_SER_COBRADO_MES;\r\n\r\n\t\t// Consumo rateio agua\r\n\t\tretorno.consumoRateioAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_RATEIO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_RATEIO_AGUA;\r\n\r\n\t\t// Valor rateio agua\r\n\t\tretorno.valorRateioAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_VALOR_RATEIO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_1_VALOR_RATEIO_AGUA;\r\n\r\n\t\t// Consumo rateio esgoto\r\n\t\tretorno.consumoRateioEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_RATEIO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_RATEIO_ESGOTO;\r\n\r\n\t\t// Valor rateio esgoto\r\n\t\tretorno.valorRateioEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_VALOR_RATEIO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_1_VALOR_RATEIO_ESGOTO;\r\n\r\n\t\t// Tipo de consumo\r\n\t\tretorno.tipoConsumo = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_TIPO_CONSUMO);\r\n\t\tindex += REGISTRO_TIPO_1_TIPO_CONSUMO;\r\n\r\n\t\t// Anormalidade de consumo\r\n\t\tretorno.anormalidadeConsumo = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_CONSUMO);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_CONSUMO;\r\n\r\n\t\t// Indicador de emissao de conta\r\n\t\tretorno.indicacaoEmissaoConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICACAO_EMISSAO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICACAO_EMISSAO_CONTA;\r\n\r\n\t\t// Inscricao\r\n\t\tString inscricao = \"\";\r\n\t\tinscricao = linha.substring(index, index + REGISTRO_TIPO_1_INSCRICAO);\r\n\t\tformatarInscricao(retorno, inscricao);\r\n\t\tindex += REGISTRO_TIPO_1_INSCRICAO;\r\n\r\n\t\t// Indicador Geração da conta\r\n\t\tretorno.indicadorGeracaoConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICADOR_GERACAO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICADOR_GERACAO_CONTA;\r\n\r\n\t\t// consumo imóveis vinculados\r\n\t\tretorno.consumoImoveisVinculados = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_IMOVEIS_VINCULADOS);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_IMOVEIS_VINCULADOS;\r\n\r\n\t\t// anormalidade de faturamento\r\n\t\tretorno.anormalidadeFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_FATURAMENTO;\r\n\r\n\t\t// Id Cobrança Documento\r\n\t\tretorno.idCobrancaDocumento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_COBRANCA_DOCUMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_NUMERO_CONTA;\r\n\r\n\t\t// Codigo da leitura do hidrometro anterior\r\n\t\tretorno.leituraHidrometroAnterior = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_HIDROMETRO_ANTERIOR);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_HIDROMETRO_ANTERIOR;\r\n\r\n\t\t\r\n\t\tif (linha.length() > 200) {\r\n\t\t\t// Latitude\r\n\t\t\tretorno.latitude = linha.substring( index, index + REGISTRO_TIPO_1_LATITUDE );\r\n\t\t\tindex += REGISTRO_TIPO_1_LATITUDE;\r\n\r\n\t\t\t// Longitude\r\n\t\t\tretorno.longitude = linha.substring( index, index + REGISTRO_TIPO_1_LONGITUDE );\r\n\t\t\t index += REGISTRO_TIPO_1_LONGITUDE;\r\n\r\n\t\t\t// Versão do IS\r\n\t\t\tretorno.numeroVersao = linha.substring(index, index\t+ REGISTRO_TIPO_1_NUMERO_VERSAO);\r\n\t\t\tindex += REGISTRO_TIPO_1_NUMERO_VERSAO;\r\n\r\n\t\t} else {\r\n\t\t\t// Latitude\r\n\t\t\tretorno.latitude = \"0\";\r\n\r\n\t\t\t// Longitude\r\n\t\t\t retorno.longitude = \"0\";\r\n\r\n\t\t\t// Versão do IS\r\n\t\t\tretorno.numeroVersao = linha.substring(index, index\t+ REGISTRO_TIPO_1_NUMERO_VERSAO);\r\n\t\t\tindex += REGISTRO_TIPO_1_NUMERO_VERSAO;\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}",
"@Override\n\tpublic String dohvatiKontakt() {\n\t\treturn \"Naziv tvrtke: \" + naziv + \", mail: \" + getEmail() + \", tel: \" + getTelefon() + \", web: \" + web;\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}",
"@Test\n\tpublic void obtenerPrevisualizacionTest() {\n\t\tString contenido = \"contenido\";\n\t\tArchivo ar = new Imagen(\"test\", contenido);\n\t\tString expected = \"test\" + \"(\" + ar.obtenerTamaño() + \" bytes, \" + ar.obtenerMimeType() + \")\";\n\t\tassertEquals(expected, ar.obtenerPreVisualizacion());\n\t}",
"@Override\n public String toString(){\n return \" Vuelo \"+this.getTipo()+\" \" +this.getIdentificador() +\"\\t \"+ this.getDestino()+ \"\\t salida prevista en \" + timeToHour(this.getTiemposal())+\" y su combustible es de \"+this.getCombustible()+\" litros.( \"+ String.format(\"%.2f\", this.getCombustible()/this.getTankfuel()*100) + \"%).\"; \n }",
"@Test\n\tpublic void testAjouteHeures() {\n\t\tuntel.ajouteEnseignement(uml, 0, 10, 0);\n\n\t\tassertEquals(10, untel.heuresPrevuesPourUE(uml),\n \"L'enseignant doit maintenant avoir 10 heures prévues pour l'UE 'uml'\");\n\n // 20h TD pour UML\n untel.ajouteEnseignement(uml, 0, 20, 0);\n \n\t\tassertEquals(10 + 20, untel.heuresPrevuesPourUE(uml),\n \"L'enseignant doit maintenant avoir 30 heures prévues pour l'UE 'uml'\");\t\t\n\t\t\n\t}",
"public java.lang.String getOrigen(){\n return localOrigen;\n }",
"public void toonFiguur() {\n System.out.format(\"kleur: %-5s oppervlakte: %5.3f inhoud: %5.3f\\n\",\n kleur, oppervlakte(), inhoud());\n }",
"public String sitioArrendado() {\r\n\t\tif (reserva == null) {\r\n\t\t\treservar = false;\r\n\t\t\treturn \"Todavía no posee un sitio reservado\";\r\n\t\t} else {\r\n\t\t\treservar = true;\r\n\t\t\treturn reserva.getArrSitioPeriodo().getSitNombre();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void tipoMovimento() {\n\t\tSystem.out.println(super.getNome() + \" anda com 4 patas.\");\n\t}"
] | [
"0.6633549",
"0.6244912",
"0.5917307",
"0.58755696",
"0.58739364",
"0.58436084",
"0.5735431",
"0.56932235",
"0.5678567",
"0.56768787",
"0.5669863",
"0.5630405",
"0.5626395",
"0.56214756",
"0.56078905",
"0.55990225",
"0.5552543",
"0.55290246",
"0.55047107",
"0.5493404",
"0.54799914",
"0.5453595",
"0.54444283",
"0.54431164",
"0.5438174",
"0.5435575",
"0.53745747",
"0.536334",
"0.53517073",
"0.5340257",
"0.5328507",
"0.53210783",
"0.53196204",
"0.5309332",
"0.5307057",
"0.5294501",
"0.5279628",
"0.5268695",
"0.52653503",
"0.52566177",
"0.5253677",
"0.5249696",
"0.52456504",
"0.5245092",
"0.52446246",
"0.52445424",
"0.5241315",
"0.52384144",
"0.52383417",
"0.52332217",
"0.523189",
"0.52260786",
"0.52175695",
"0.5210587",
"0.51992035",
"0.51989216",
"0.5195108",
"0.51940495",
"0.51855004",
"0.51805466",
"0.51796776",
"0.5168926",
"0.51646435",
"0.51646245",
"0.51611453",
"0.5152088",
"0.5151761",
"0.5141584",
"0.51368624",
"0.51366025",
"0.5136048",
"0.51313716",
"0.51283354",
"0.5126753",
"0.5121373",
"0.51142293",
"0.5105453",
"0.5104843",
"0.5101845",
"0.51015574",
"0.510059",
"0.5090716",
"0.5090578",
"0.5088206",
"0.50856775",
"0.50824136",
"0.5072887",
"0.50711846",
"0.50697905",
"0.50695467",
"0.50676596",
"0.5064796",
"0.5061346",
"0.5055269",
"0.50526357",
"0.50523055",
"0.5049735",
"0.5048869",
"0.50486916",
"0.50467145",
"0.5045791"
] | 0.0 | -1 |
Use this factory method to create a new instance of this fragment using the provided parameters. | public static AddPhotoDialogFragment newInstance(String param1, String param2) {
AddPhotoDialogFragment fragment = new AddPhotoDialogFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"protected abstract Fragment createFragment();",
"public void createFragment() {\n\n }",
"public CuartoFragment() {\n }",
"@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }",
"public StintFragment() {\n }",
"public ExploreFragment() {\n\n }",
"public RickAndMortyFragment() {\n }",
"public LogFragment() {\n }",
"public FragmentMy() {\n }",
"public FeedFragment() {\n }",
"public HistoryFragment() {\n }",
"public HistoryFragment() {\n }",
"public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }",
"public WkfFragment() {\n }",
"public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public WelcomeFragment() {}",
"public ProfileFragment(){}",
"public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }",
"public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public progFragment() {\n }",
"public HeaderFragment() {}",
"public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }",
"public EmployeeFragment() {\n }",
"public Fragment_Tutorial() {}",
"public NewShopFragment() {\n }",
"public FavoriteFragment() {\n }",
"public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }",
"public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }",
"public CreateEventFragment() {\n // Required empty public constructor\n }",
"public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }",
"public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }",
"public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}",
"public NoteActivityFragment() {\n }",
"public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }",
"public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }",
"public EventHistoryFragment() {\n\t}",
"public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public HomeFragment() {}",
"public PeopleFragment() {\n // Required empty public constructor\n }",
"public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public VantaggiFragment() {\n // Required empty public constructor\n }",
"public AddressDetailFragment() {\n }",
"public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }",
"public ArticleDetailFragment() { }",
"public RegisterFragment() {\n }",
"public EmailFragment() {\n }",
"public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }",
"public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }",
"public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }",
"public ForecastFragment() {\n }",
"public FExDetailFragment() {\n \t}",
"public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }",
"public TripNoteFragment() {\n }",
"public ItemFragment() {\n }",
"public NoteListFragment() {\n }",
"public CreatePatientFragment() {\n\n }",
"public DisplayFragment() {\n\n }",
"public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}",
"public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public ProfileFragment() {\n\n }",
"public BackEndFragment() {\n }",
"public CustomerFragment() {\n }",
"public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }",
"public static Fragment newInstance() {\n return new SettingsFragment();\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }",
"public PeersFragment() {\n }",
"public TagsFragment() {\n }",
"public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }",
"public HomeSectionFragment() {\n\t}",
"public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }",
"public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }",
"public PersonDetailFragment() {\r\n }",
"public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }",
"public RegisterFragment() {\n // Required empty public constructor\n }",
"public VehicleFragment() {\r\n }",
"public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}",
"public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}",
"public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }",
"public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }",
"public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public PlaylistFragment() {\n }",
"public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }",
"public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }",
"public TechFragment() {\n }"
] | [
"0.7259871",
"0.7232532",
"0.71136844",
"0.6990837",
"0.69906116",
"0.6834319",
"0.6829883",
"0.6813184",
"0.6801809",
"0.68009716",
"0.6765653",
"0.6740716",
"0.6740716",
"0.67280996",
"0.6716943",
"0.6705815",
"0.66919094",
"0.6691499",
"0.66886646",
"0.6662171",
"0.6645249",
"0.6641692",
"0.6641598",
"0.6634689",
"0.66187227",
"0.66140074",
"0.66084427",
"0.66053134",
"0.659798",
"0.6592168",
"0.65918267",
"0.6591491",
"0.6583116",
"0.6578862",
"0.6562111",
"0.6560171",
"0.6557806",
"0.65521806",
"0.6551888",
"0.654363",
"0.6540262",
"0.6534808",
"0.65324444",
"0.65284914",
"0.6524263",
"0.65237486",
"0.6522899",
"0.65152514",
"0.65060264",
"0.64995176",
"0.6496799",
"0.64956504",
"0.6494721",
"0.64852285",
"0.6483398",
"0.6480828",
"0.64788723",
"0.64759463",
"0.64703715",
"0.6466451",
"0.645643",
"0.64547956",
"0.64546484",
"0.6453434",
"0.6451182",
"0.6449524",
"0.64492345",
"0.64481634",
"0.6443311",
"0.64424324",
"0.64424324",
"0.64424324",
"0.64415395",
"0.64410734",
"0.6439023",
"0.6434221",
"0.64299345",
"0.64296705",
"0.6423674",
"0.6419159",
"0.6417862",
"0.6413628",
"0.6412729",
"0.6402101",
"0.6400241",
"0.6397277",
"0.6395365",
"0.6392649",
"0.6389739",
"0.6384252",
"0.6380003",
"0.63749784",
"0.63749784",
"0.63749784",
"0.6373666",
"0.63642746",
"0.6364016",
"0.6361297",
"0.63557327",
"0.6351635",
"0.635126"
] | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
view = getThisView(inflater,container);
return view;
} | {
"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 |
create a DOM document | public void testSchemaImport() throws Exception{
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
documentBuilderFactory.setNamespaceAware(true);
Document doc = documentBuilderFactory.newDocumentBuilder().
parse(Resources.asURI("importBase.xsd"));
XmlSchemaCollection schemaCol = new XmlSchemaCollection();
schemaCol.setBaseUri(Resources.TEST_RESOURCES);
XmlSchema schema = schemaCol.read(doc,null);
assertNotNull(schema);
// attempt with slash now
schemaCol = new XmlSchemaCollection();
schemaCol.setBaseUri(Resources.TEST_RESOURCES + "/");
schema = schemaCol.read(doc,null);
assertNotNull(schema);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createDocument() {\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\ttry {\r\n\t\t\t//get an instance of builder\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\r\n\t\t\t//create an instance of DOM\r\n\t\t\tdom = db.newDocument();\r\n\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\t//dump it\r\n\t\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\r\n\t\t}",
"private void createDocument(){\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t//get an instance of builder\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t//create an instance of DOM\n\t\tdom = db.newDocument();\n\n\t\t}catch(ParserConfigurationException pce) {\n\t\t\t//dump it\n\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\n\t\t\tSystem.exit(1);\n\t\t}\n }",
"Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;",
"public static Document createDocument( StringNode root )\r\n\t\tthrows ParserConfigurationException\r\n\t{\r\n \tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n String name = root.getName();\r\n Element element = doc.createElement( name );\r\n doc.appendChild( element );\r\n addElement( doc, element, root );\r\n return doc;\r\n\t}",
"private Document createXMLDocumentStructure() {\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder builder = null;\r\n\t\ttry {\r\n\t\t\tbuilder = dbf.newDocumentBuilder();\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Creates the Document\r\n\t\tDocument serviceDoc = builder.newDocument();\r\n\t\t/*\r\n\t\t * Create the XML Tree\r\n\t\t */\r\n\t\tElement root = serviceDoc.createElement(\"service\");\r\n\r\n\t\tserviceDoc.appendChild(root);\r\n\t\treturn serviceDoc;\r\n\t}",
"protected Element createDocument() {\r\n // create the dom tree\r\n DocumentBuilder builder = getDocumentBuilder();\r\n Document doc = builder.newDocument();\r\n Element rootElement = doc.createElement(TESTSUITES);\r\n doc.appendChild(rootElement);\r\n\r\n generatedId = 0;\r\n\r\n // get all files and add them to the document\r\n File[] files = getFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n File file = files[i];\r\n try {\r\n if(file.length()>0) {\r\n Document testsuiteDoc\r\n = builder.parse(\"file:///\" + file.getAbsolutePath());\r\n Element elem = testsuiteDoc.getDocumentElement();\r\n // make sure that this is REALLY a testsuite.\r\n if (TESTSUITE.equals(elem.getNodeName())) {\r\n addTestSuite(rootElement, elem);\r\n generatedId++;\r\n } else {\r\n }\r\n } else {\r\n }\r\n } catch (SAXException e) {\r\n // a testcase might have failed and write a zero-length document,\r\n // It has already failed, but hey.... mm. just put a warning\r\n } catch (IOException e) {\r\n }\r\n }\r\n return rootElement;\r\n }",
"DocumentRoot createDocumentRoot();",
"DocumentRoot createDocumentRoot();",
"DocumentRoot createDocumentRoot();",
"DocumentRoot createDocumentRoot();",
"private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}",
"public static XMLDocument create()\n {\n return new XMLDocument();\n }",
"public Element generateElement(Document dom);",
"public static Document createDocument(final Element element) {\n\t\tfinal DOMImplementation domImplementation = element.getOwnerDocument().getImplementation(); //get the DOM implementation used to create the document\n\t\t//create a new document corresponding to the element\n\t\t//TODO bring over the doctype, if needed\n\t\tfinal Document document = domImplementation.createDocument(element.getNamespaceURI(), element.getNodeName(), null);\n\t\tfinal Node importedNode = document.importNode(element, true); //import the element into our new document\n\t\tdocument.replaceChild(importedNode, document.getDocumentElement()); //set the element clone as the document element of the new document\n\t\treturn document; //return the document we created\n\t}",
"public Document getAsXMLDOM () {\r\n\r\n //code description\r\n\r\n return document;\r\n\r\n }",
"public static Document newDocument() throws XMLException{\n\t\ttry{\n\t\t\tfinal DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\t\t\t\n\t\t\tfinal DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tfinal Document doc = builder.newDocument();\n\t\t\treturn doc;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new XMLException(e);\n\t\t}\n\t}",
"public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }",
"public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }",
"public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }",
"public static Document createNewDocument(String rootName, Version version) {\r\n try {\r\n DocumentBuilder db = DocumentBuilderFactory.newInstance()\r\n .newDocumentBuilder();\r\n Document doc = db.newDocument();\r\n Node root = doc.createElement(rootName);\r\n if (version != null) {\r\n addAttr(doc, root, \"version\", version);\r\n }\r\n\r\n doc.appendChild(root);\r\n return doc;\r\n } catch (Exception e) {\r\n logger.log(Level.SEVERE, \"exception\", e);\r\n }\r\n\r\n return null;\r\n }",
"protected static org.w3c.dom.Document setUpXML(String nodeName)\n throws ParserConfigurationException\n {\n //try\n //{\n DocumentBuilderFactory myFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder myDocBuilder = myFactory.newDocumentBuilder();\n DOMImplementation myDOMImpl = myDocBuilder.getDOMImplementation();\n // resultDocument = myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", \"PDFResult\", null);\n org.w3c.dom.Document resultDocument =\n myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", nodeName, null);\n return resultDocument;\n //}\n //catch (ParserConfigurationException e)\n //{\n // e.printStackTrace();\n // return null;\n //}\n\n }",
"public Document newDocument() {\n\t\treturn new org.apache.xerces.dom.DocumentImpl();\n\t}",
"public static void initXMLdoc() throws Exception {\n\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n DOMImplementation impl = builder.getDOMImplementation();\n\n\tdoc = impl.createDocument(null,null,null);\n }",
"private Doc(String documentElementName) {\n e = d.createElement(documentElementName);\n d.appendChild(e);\n }",
"public abstract WalkerDocument newDocument(IOptions options);",
"public abstract WalkerDocument newDocument(String path, IOptions options) throws HtmlWalkerException;",
"HTMLElement createHTMLElement();",
"private DOMs() {\n }",
"public void init() { \n\t\ttry { \n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder(); \n\t\t\tthis.document = builder.newDocument(); \n\t\t\tlogger.info(\"initilize the document success.\");\n\t\t} catch (ParserConfigurationException e) { \n\t\t\t\n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}",
"public XMLData () {\r\n\r\n //code description\r\n\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n this.document = builder.newDocument(); \r\n }\r\n catch (ParserConfigurationException err) {}\r\n\r\n }",
"public WalkerDocument newDocument() { return newDocument((IOptions)null); }",
"Element createElement();",
"public void create() {\n PDDocument document = new PDDocument();\n PDPage page = new PDPage();\n document.addPage(page);\n\n // Create a new font object selecting one of the PDF base fonts\n PDFont font = PDType1Font.HELVETICA_BOLD;\n try (document) {\n // Start a new content stream which will \"hold\" the to be created content\n writeDataToDocument(document, page, font);\n // Save the results and ensure that the document is properly closed:\n document.save(\"Hello World.pdf\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n }",
"@Function DocumentFragment createDocumentFragment();",
"public DocumentManipulator() {\n\t\ttry {\n\t\t\tthis.document = XMLUtils.buildDocument();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//-- Init Xpath\n\t\tinit();\n\t}",
"HTML createHTML();",
"public void newDocument();",
"public DocumentBuilderFactory createDocumentBuilderFactory() throws FactoryConfigurationError {\n return DocumentBuilderFactory.newInstance();\n }",
"public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }",
"public XMLDocument() {\r\n xml = new StringBuilder();\r\n }",
"public abstract WalkerDocument newDocument(DocumentTag adapter, IOptions options);",
"public static Document createJdomDoc(String xmlString) {\n\t\ttry {\n\t\t\tSAXBuilder builder = new SAXBuilder();\n\t\t\tDocument doc = builder.build(new ByteArrayInputStream(xmlString.getBytes()));\n\t\t\treturn doc;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (JDOMException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}",
"public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }",
"public DOMWriter(boolean can, String dH, String dT)\n{\n canonical = can;\n docHeader = dH;\n docType = dT;\n}",
"String buildDoc(ControllerNode controllerNode) throws IOException;",
"DocBook createDocBook();",
"private static DocumentBuilder instantiateParser()\n throws IOException {\n\n DocumentBuilder parser = null;\n\n try {\n DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();\n fac.setNamespaceAware( true );\n fac.setValidating( false );\n fac.setIgnoringElementContentWhitespace( false );\n parser = fac.newDocumentBuilder();\n return parser;\n } catch ( ParserConfigurationException e ) {\n throw new IOException( \"Unable to initialize DocumentBuilder: \" + e.getMessage() );\n }\n }",
"Document toXml() throws ParserConfigurationException, TransformerException, IOException;",
"public DOMParser() { ; }",
"public DocumentBuilder() {\n this.document = new Document();\n }",
"public Doc newDocument(String documentElementName) {\n return new Doc(documentElementName);\n }",
"public static native Element createDom(DomConfig config) /*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.createDom(configJS);\r\n\t}-*/;",
"Object create(Element element) throws IOException, SAXException, ParserConfigurationException;",
"private void createDOMTree(){\n\t\tElement rootEle = dom.createElement(\"Personnel\");\n\t\tdom.appendChild(rootEle);\n\n\t\t//No enhanced for\n\t\tIterator it = user.iterator();\n\t\twhile(it.hasNext()) {\n\t\t\tUserInformation b = (UserInformation)it.next();\n\t\t\t//For each Book object create element and attach it to root\n\t\t\tElement bookEle = createUserElement(b);\n\t\t\trootEle.appendChild(bookEle);\n\t\t}\n\t}",
"private static DocumentBuilderFactory getDocumentBuilderFactory(){\r\n\t\tif(documentBuilderFactory == null){\r\n\t\t\tdocumentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n\t\t}\r\n\t\treturn documentBuilderFactory;\r\n\t}",
"public void testCreate () throws IOException {\n\t PDDocument document = new PDDocument(); \r\n\t \r\n\t //Saving the document\r\n\t document.save(\"./my_doc.pdf\");\r\n\t \r\n\t System.out.println(\"PDF created\"); \r\n\t \r\n\t //Closing the document \r\n\t document.close();\r\n\t}",
"public WalkerDocument newDocument(String path) throws HtmlWalkerException { return newDocument(path, null); }",
"public void buildDocument( InputStream is ) {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = null;\n try {\n dBuilder = dbFactory.newDocumentBuilder();\n } catch ( ParserConfigurationException ex ) {\n Global.warning( \"Parser configuration exception: \" + ex.getMessage() );\n }\n try {\n doc = dBuilder.parse( is );\n } catch ( SAXException ex ) {\n Global.warning( \"SAX parser exception: \" + ex.getMessage() );\n } catch ( IOException ex ) {\n Global.warning( \"IO exception: \" + ex.getMessage() );\n }\n\n }",
"Documento createDocumento();",
"public XmlDocumentDefinition() {\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic Document getDocument() {\n\t\tDocument doc = this.documentBuilder.newDocument();\n\t\t\n\t\tElement rootElement = doc.createElement(\"properties\");\n\t\tdoc.appendChild(rootElement);\n\t\t\n\t\tEnumeration<String> keys = (Enumeration<String>) this.properties.propertyNames();\n\t\t\n\t\twhile (keys.hasMoreElements()) {\n\t\t\tString key = keys.nextElement();\n\t\t\tElement entry = doc.createElement(\"entry\");\n\t\t\tentry.setAttribute(\"key\", key);\n\t\t\tentry.setTextContent(this.getProperty(key));\n\t\t\trootElement.appendChild(entry);\n\t\t}\n\t\t\n\t\treturn doc;\n\t}",
"public static native Element createDom(String rawHtml) /*-{\r\n\t\t$wnd.Ext.DomHelper.createDom(rawHtml);\r\n\t}-*/;",
"public static String saveDomToString(Document doc, String encoding, boolean bIndent,String output)\n throws Exception {\n if (doc == null) {\n throw (new Exception(\"No_dom_to_save\"));\n }\n // find out how we should form output\n // make sure we have some encoding\n if (encoding == null) {\n encoding = doc.getXmlEncoding();\n }\n if (encoding == null) {\n encoding = default_encoding;\n }\n\n try {\n DOMSource xmlDomSource = new DOMSource(doc);\n\n // make an identity transformation\n TransformerFactory transFac = TransformerFactory.newInstance();\n Transformer trans = transFac.newTransformer();\n // set transformatoion properties\n // this is an identity transformation\n // and no properties are set exept defaults\n\n //NOTE: we have a problem with HTML5 which wants a simple header: \n // <!DOCTYPE HTML>\n // we assume that the template is set accordingly\n // This will not give us PublicID and SystemID as null\n // we will have to detect this situastion before we return\n // the text, see below, after transformation\n\n // problem:\n // this will kill other transformed input that make html root\n // use explicit: html5 output option ? (yes)\n\n DocumentType dt = doc.getDoctype();\n String pid = null;\n String sid = null;\n String name = null;\n if (dt != null) {\n pid = dt.getPublicId();\n sid = dt.getSystemId();\n name = dt.getName();\n }\n\n boolean is_HTML5 = false;\n output=output.toLowerCase();\n switch(output){\n case Options.TEXT:\n trans.setOutputProperty(OutputKeys.MEDIA_TYPE, \"text/plain; charset=\" + encoding);\n break;\n \n case Options.XML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\n if (pid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, pid);\n }\n if (sid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, sid);\n }\n break;\n \n case Options.XHTML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n if (pid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, pid);\n }\n if (sid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, sid);\n }\n break;\n \n case Options.HTML5:\n case Options.HTML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n is_HTML5 = true;\n break;\n \n default:\n throw new Exception(\"bad output type: \" + output);\n }\n \n\n trans.setOutputProperty(OutputKeys.STANDALONE, \"yes\");\n trans.setOutputProperty(OutputKeys.ENCODING, encoding);\n\n if (bIndent) {\n trans.setOutputProperty(OutputKeys.INDENT, \"yes\");\n trans.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"0\");\n } else {\n // use no to avoid prince-problems with toc targets ?????\n trans.setOutputProperty(OutputKeys.INDENT, \"no\");\n }\n\n java.io.StringWriter out = new java.io.StringWriter();\n java.io.BufferedWriter bos = new java.io.BufferedWriter(out);\n StreamResult outStream = new StreamResult(bos);\n trans.transform(xmlDomSource, outStream);\n bos.flush();\n\n // this is where we can clean up a doctype\n // prepared for html 5\n\n String result = out.toString().trim();\n if (is_HTML5 && ( (result.startsWith(\"<html\")) \n || (result.startsWith(\"<HTML\")))) {\n result = \"<!DOCTYPE HTML>\\n\" + result;\n }\n\n return result;\n } catch (java.io.UnsupportedEncodingException ex) {\n System.out.println(\"domer:saveDomToString. \" + ex.getMessage());\n throw new Exception(ex.getMessage());\n } catch (TransformerConfigurationException tce) {\n System.out.println(\"domer:saveDomToString. \" + tce.getMessage());\n throw new Exception(tce.getMessage());\n } catch (TransformerException te) {\n System.out.println(\"domer:saveDomToString. \" + te.getMessage());\n throw new Exception(te.getMessage());\n } catch (FactoryConfigurationError f) {\n System.out.println(\"domer:saveDomToString. \" + f.getMessage());\n throw new Exception(f.getMessage());\n } catch (IllegalArgumentException iae) {\n System.out.println(\"domer:saveDomToString. \" + iae.getMessage());\n throw new Exception(iae.getMessage());\n } catch (Exception e) {\n System.out.println(\"domer:saveDomToString. \" + e.getMessage());\n throw new Exception(e.getMessage());\n }\n }",
"public static org.dom4j.Document convert( org.w3c.dom.Document dom) \r\n {\n org.dom4j.io.DOMReader reader = new org.dom4j.io.DOMReader();\r\n return reader.read(dom);\r\n }",
"private Document createDocumentForTest() {\r\n\r\n EntityManager em = com.topcoder.service.studio.contest.bean.MockEntityManager.EMF.createEntityManager();\r\n em.getTransaction().begin();\r\n\r\n FilePath path = new FilePath();\r\n path.setModifyDate(new Date());\r\n path.setPath(\"path\");\r\n\r\n StudioFileType studioFileType = new StudioFileType();\r\n studioFileType.setDescription(\"description\");\r\n studioFileType.setExtension(\"extension\");\r\n studioFileType.setImageFile(true);\r\n studioFileType.setSort(1);\r\n em.persist(studioFileType);\r\n\r\n MimeType mimeType = new MimeType();\r\n mimeType.setDescription(\"description\");\r\n mimeType.setStudioFileType(studioFileType);\r\n mimeType.setMimeTypeId(1L);\r\n em.persist(mimeType);\r\n\r\n DocumentType type = new DocumentType();\r\n type.setDescription(\"description\");\r\n type.setDocumentTypeId(1L);\r\n em.persist(type);\r\n\r\n em.getTransaction().commit();\r\n em.close();\r\n\r\n Document document = new Document();\r\n document.setOriginalFileName(\"originalFileName\");\r\n document.setSystemFileName(\"systemFileName\");\r\n document.setPath(path);\r\n document.setMimeType(mimeType);\r\n document.setType(type);\r\n document.setCreateDate(new Date());\r\n\r\n return document;\r\n }",
"public XMLDocument ()\r\n\t{\r\n\t\tthis (DEFAULT_XML_VERSION, true);\r\n\t}",
"@Nonnull\r\n private static Document _createDummyPayload () {\n final Document aXMLDoc = XMLFactory.newDocument ();\r\n final Node aRoot = aXMLDoc.appendChild (aXMLDoc.createElement (\"test\"));\r\n aRoot.appendChild (aXMLDoc.createTextNode (\"Text content\"));\r\n return aXMLDoc;\r\n }",
"private Document getFragmentAsDocument(CharSequence value)\n/* */ {\n/* 75 */ Document fragment = Jsoup.parse(value.toString(), \"\", Parser.xmlParser());\n/* 76 */ Document document = Document.createShell(\"\");\n/* */ \n/* */ \n/* 79 */ Iterator<Element> nodes = fragment.children().iterator();\n/* 80 */ while (nodes.hasNext()) {\n/* 81 */ document.body().appendChild((Node)nodes.next());\n/* */ }\n/* */ \n/* 84 */ return document;\n/* */ }",
"public Element toDOMElement(Document doc) {\r\n Element root = doc.createElement(SnarfConstants.SITE_NODE);\r\n root.setAttribute(SnarfConstants.NAME_ATTRIB, myName);\r\n for (int k = 0; k < myPackages.size(); k++) {\r\n Package pkg = getPackage(k);\r\n Element el = pkg.toDOMElement(doc);\r\n root.appendChild(el);\r\n }\r\n return root;\r\n }",
"protected Element toDOMElement(CoreDocumentImpl document) {\n ElementImpl element = new ElementImpl(document, \"user\");\n element.setAttribute(\"id\", this.getId());\n element.setAttribute(\"name\", this.getName());\n element.setAttribute(\"email\", this.getEmail());\n element.setAttribute(\"password\", this.getPassword());\n return element;\n }",
"private static Document createCopiedDocument(Document originalDocument) {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db;\n Document copiedDocument = null;\n try {\n db = dbf.newDocumentBuilder();\n Node originalRoot = originalDocument.getDocumentElement();\n copiedDocument = db.newDocument();\n Node copiedRoot = copiedDocument.importNode(originalRoot, true);\n copiedDocument.appendChild(copiedRoot);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return copiedDocument;\n }",
"protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}",
"@Test\n public void test_TCM__OrgJdomDocument_getDocument() {\n final Attribute attribute = new Attribute(\"test\", \"value\");\n assertNull(\"attribute returned document when there was none\", attribute.getDocument());\n\n final Element element = new Element(\"element\");\n element.setAttribute(attribute);\n assertNull(\"attribute returned document when there was none\", attribute.getDocument());\n\n final Document document = new Document(element);\n\n assertEquals(\"invalid document\", attribute.getDocument(), document);\n }",
"public DocumentBuilderFactoryImpl() {\n super();\n }",
"public static Document createHexDocument( StringNode root )\r\n\t\tthrows ParserConfigurationException\r\n\t{\r\n \tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n Element element = doc.createElement( convertHex( root.getName() ));\r\n doc.appendChild( element );\r\n addHexElement( doc, element, root );\r\n return doc;\r\n\t}",
"public String create()\n {\n return createHtml();\n }",
"private void createDOCDocument(String from, File file) throws Exception {\n\t\tPOIFSFileSystem fs = new POIFSFileSystem(Thread.currentThread().getClass().getResourceAsStream(\"/poi/template.doc\"));\n\t\tHWPFDocument doc = new HWPFDocument(fs);\n\t\n\t\tRange range = doc.getRange();\n\t\tParagraph par1 = range.getParagraph(0);\n\t\n\t\tCharacterRun run1 = par1.insertBefore(from, new CharacterProperties());\n\t\trun1.setFontSize(11);\n\t\tdoc.write(new FileOutputStream(file));\n\t}",
"public Element addElement(Element rootElement,String type,Document document){\n\t\t// define school elements \n\t\tElement node = document.createElement(type); \n\t\trootElement.appendChild(node);\n\t\treturn node;\n\t}",
"public TrecWebDocument() {\r\n try {\r\n startTag = XML_START_TAG.getBytes(\"utf-8\");\r\n endTag = XML_END_TAG.getBytes(\"utf-8\");\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public Node createDOMSubtree(final Document doc) {\n int i;\n String aName;\n Node childNode;\n Element element;\n IBiNode tmp;\n\n element = doc.createElementNS(this.namespaceURI, this.eName);\n\n // add attributes\n if (this.attrs != null) {\n for (i = 0; i < this.attrs.getLength(); i++) {\n aName = this.attrs.getLocalName(i);\n\n if (\"\".equals(aName)) {\n aName = this.attrs.getQName(i);\n }\n\n element.setAttribute(aName, this.attrs.getValue(i));\n }\n }\n\n // create DOM-tree of children\n if (this.child != null) {\n tmp = this.child;\n\n while (tmp != null) {\n childNode = tmp.createDOMSubtree(doc);\n\n if (childNode != null) {\n element.appendChild(childNode);\n }\n\n tmp = tmp.getSibling();\n }\n }\n\n this.namespaceURI = null;\n this.eName = null;\n this.attrs = null;\n\n this.setNode(element);\n return element;\n }",
"public WalkerDocument newDocument(DocumentTag adapter) { return newDocument(adapter, null); }",
"abstract public void data(Document document, Element rootElement);",
"protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }",
"Div createDiv();",
"public Node makeNode(Document xmlDoc) {\r\n Element out = xmlDoc.createElement(this.parent.getHeader());\r\n this.parent.updateSave();\r\n if (this.nodeText != null) {\r\n out.setTextContent(nodeText);\r\n }\r\n this.makeAtributes(out);\r\n for (int i = 0; i < this.children.size(); i++) {\r\n out.appendChild(this.children.get(i).makeNode(xmlDoc));\r\n }\r\n return out;\r\n}",
"public AdmClientePreferencialHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }",
"@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }",
"public void createPdf() {\n\t\tDocument document = new Document();\n\t\ttry {\n\t\t\tPdfWriter.getInstance(document, new FileOutputStream(fileName));\n\t\t\tFont header = new Font(Font.FontFamily.HELVETICA, 15, Font.BOLD);\n\t\t\tdocument.open();\n\t\t\t// set the title on the page as \"My Albums\"\n\t\t\tif (state.equals(\"a\")) {\n\t\t\t\tParagraph aHead = new Paragraph();\n\t\t\t\taHead.setFont(header);\n\t\t\t\taHead.add(\"My Albums\\n\\n\");\n\t\t\t\tdocument.add(aHead);\n\t\t\t}\n\t\t\t// or set the title on the page as \"My Publications\"\n\t\t\telse if (state.equals(\"p\")) {\n\t\t\t\tParagraph pHead = new Paragraph();\n\t\t\t\tpHead.setFont(header);\n\t\t\t\tpHead.add(\"My Publications\\n\\n\");\n\t\t\t\tdocument.add(pHead);\n\t\t\t}\n\t\t\t// create the table of albums/publications\n\t\t\tdocument.add(createTable());\n\t\t\tdocument.close();\n\t\t\tFile f = new File(fileName);\n\t\t\ttry {\n\t\t\t\tDesktop.getDesktop().browse(f.toURI());\n\t\t\t}\n\t\t\tcatch(IOException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (DocumentException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public DocumentBuilder newDocumentBuilder()\n throws ParserConfigurationException {\n return(new DocumentBuilderImpl(this.isNamespaceAware(),\n this.isValidating()));\n }",
"public void createEmptyDocument()\n throws IOException, SAXException {\n URL url = WPVSCapabilitiesDocument.class.getResource( XML_TEMPLATE );\n if ( url == null ) {\n throw new IOException( \"The resource '\" + XML_TEMPLATE + \" could not be found.\" );\n }\n load( url );\n }",
"public void generarDoc(){\n generarDocP();\n }",
"protected final XMLCDomFactory getDomFactory() { return fDOMFactory; }",
"protected final XMLCDomFactory getDomFactory() { return fDOMFactory; }",
"protected final XMLCDomFactory getDomFactory() { return fDOMFactory; }",
"@Override\n protected Document parseAsDom(final Document input) {\n return input;\n }",
"public static Document getXmlDom(String xmlFilePath) {\n Document doc = null;\n try {\n Builder builder = new Builder();\n File file = new File(xmlFilePath);\n doc = builder.build(file);\n\n } catch (ParsingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return doc;\n }",
"public interface SDXHelper {\n /**\n * Creates a DOM <CODE>Element</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element. The attributes stored by\n * the SAX object are retrieved and set to the created DOM object.\n *\n * @param namespaceURI The namespace URI for the new element\n * @param localName The local name for the new element\n * @param qualifiedName The qualified name for the new element\n * @param attributes The attributes for the new element\n * @param parent The parent for the new element or\n * <CODE>null</CODE> if this is a root element\n * @return The created DOM <CODE>Element</CODE>\n */\n public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);\n\n /**\n * Creates a DOM <CODE>Text</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>Text</CODE> node. In other words, this method doesn't allow\n * the creation of adjacent <CODE>Text</CODE> nodes and creates\n * a <CODE>Text</CODE> node only when this is necessary.\n *\n * @param data The character data for the text node\n * @param parent The parent for the text node\n * @return The created or existent <CODE>Text</CODE> node\n */\n public Text createTextNode(String data, Element parent);\n\n /**\n * Creates a DOM <CODE>CDATASection</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>CDATASection</CODE> node and <CODE>newCDATA</CODE> is\n * <CODE>false</CODE>. In other words, this method avoids the creation\n * of adjacent <CODE>CDATASection</CODE> nodes and creates a\n * <CODE>CDATASection</CODE> node only when this is necessary or required.\n *\n * @param data The character data for the CDATA section\n * @param newCDATA Indicates the beginning of a new CDATA section\n * @param parent The parent for the CDATA section\n * @return The created or existent\n * <CODE>CDATASection</CODE> node\n */\n public CDATASection createCDATASection(String data, boolean newCDATA,\n Element parent);\n\n /**\n * Creates a DOM <CODE>ProcessingInstruction</CODE> node and appends it\n * as a child to the given <CODE>parent</CODE> element.\n *\n * @param target The target for the new processing instruction\n * @param data The data for the new processing instruction\n * @param parent The parent for the new processing instruction\n * @return The created <CODE>ProcessingInstruction</CODE>\n */\n public ProcessingInstruction createProcessingInstruction(\n String target, String data, Element parent);\n\n /**\n * Creates a DOM <CODE>Comment</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element.\n *\n * @param data The data for the new comment\n * @param parent The parent for the new comment\n * @return The created <CODE>Comment</CODE> node\n */\n public Comment createComment(String data, Element parent);\n}",
"public static Document getDocument(InputSource in){\t\t\n\t\ttry {\n\t\t\tDocumentBuilderFactory docbuilderf = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docb = docbuilderf.newDocumentBuilder();\n\t\t\treturn docb.parse(in);\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Parseprobleem... Invalide bestand.\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (IOException e) {\n\t\t\t// TODO IOException, bestand bestaat niet of doet iets anders.\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// Configuratie zou moeten werken\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public HtmlDocument(Content htmlTree) {\n docContent = htmlTree;\n }",
"protected Node newNode() {\n\t\treturn new RCPOMDocument();\n\t}",
"@Override\n protected abstract Document parseAsDom(final T input) throws ConversionException;"
] | [
"0.84827495",
"0.8453787",
"0.7219541",
"0.7031533",
"0.7027248",
"0.7004814",
"0.69435143",
"0.69435143",
"0.69435143",
"0.69435143",
"0.69181174",
"0.68005127",
"0.67633176",
"0.67027366",
"0.66874874",
"0.65891486",
"0.65821546",
"0.6559794",
"0.6503736",
"0.6496074",
"0.6478258",
"0.6432365",
"0.6407121",
"0.6360841",
"0.6314953",
"0.6200687",
"0.61991847",
"0.61552346",
"0.61545616",
"0.6137746",
"0.6127504",
"0.6069426",
"0.6058142",
"0.601145",
"0.59630316",
"0.59433097",
"0.59307015",
"0.5930151",
"0.5898888",
"0.5896839",
"0.58964974",
"0.5893374",
"0.5877503",
"0.5877482",
"0.5873007",
"0.5863144",
"0.585192",
"0.58504695",
"0.5812151",
"0.57873166",
"0.5763487",
"0.5757608",
"0.57560074",
"0.57210284",
"0.5715164",
"0.5704709",
"0.5671919",
"0.5640841",
"0.56330395",
"0.56231666",
"0.5618901",
"0.56124556",
"0.56066597",
"0.5598639",
"0.55906487",
"0.5586007",
"0.5585063",
"0.5576158",
"0.55752903",
"0.5561853",
"0.55575967",
"0.5547539",
"0.5541574",
"0.55352044",
"0.5534881",
"0.55316246",
"0.5521879",
"0.55109346",
"0.5503347",
"0.55008745",
"0.5492877",
"0.54789484",
"0.54789245",
"0.5477933",
"0.5468753",
"0.54549354",
"0.5452374",
"0.5446676",
"0.54368377",
"0.5433363",
"0.54313",
"0.54137176",
"0.54137176",
"0.54137176",
"0.54033107",
"0.539573",
"0.53937113",
"0.5391541",
"0.5389729",
"0.5388017",
"0.53835255"
] | 0.0 | -1 |
variation of above don't set the base uri. | public void testSchemaImport2() throws Exception{
File file = new File(Resources.asURI("importBase.xsd"));
//create a DOM document
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
documentBuilderFactory.setNamespaceAware(true);
Document doc = documentBuilderFactory.newDocumentBuilder().
parse(file.toURL().toString());
XmlSchemaCollection schemaCol = new XmlSchemaCollection();
XmlSchema schema = schemaCol.read(doc,file.toURL().toString(),null);
assertNotNull(schema);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setBaseUri(String baseUri);",
"@Override\n public String getBaseUri() {\n return null;\n }",
"private String getBaseUri() {\n\t\treturn null;\n\t}",
"public String getBaseUri() {\n\t\treturn baseUri;\n\t}",
"@Override\r\n public UriBuilder getBaseUriBuilder() {\n return null;\r\n }",
"public abstract String getBaseURL();",
"private static URI getBaseURI() {\n\t\treturn UriBuilder.fromUri(\"https://api.myjson.com/bins/aeka0\").build();\n\t}",
"FullUriTemplateString baseUri();",
"URI getBaseURI() {\n return _baseURI;\n }",
"@Override\r\n public URI getBaseUri() {\n try{\r\n return new URI(\"http://localhost:8080/app/jpa-rs/\");\r\n } catch (URISyntaxException e){\r\n return null;\r\n }\r\n }",
"RaptureURI getBaseURI();",
"@Override\n\tprotected String getHttpBaseUrl() {\n\t\treturn this.properties.getHttpUrlBase();\n\t}",
"public static void setBaseURL() {\n\n\t\tRestAssured.baseURI = DataReader.dataReader(\"baseURL\");\n\t}",
"@Override\r\n\t\tpublic String getBaseURI()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"private String baseUrl() {\n return \"http://\" + xosServerAddress + \":\" +\n Integer.toString(xosServerPort) + XOSLIB + baseUri;\n }",
"String getBaseUri();",
"public String getBaseURI(){\r\n\t\t \r\n\t\t String uri = properties.getProperty(\"baseuri\");\r\n\t\t if(uri != null) return uri;\r\n\t\t else throw new RuntimeException(\"baseuri not specified in the configuration.properties file.\");\r\n\t }",
"abstract String getUri();",
"IParser setServerBaseUrl(String theUrl);",
"@Override\n\tpublic URL getBaseURL() {\n\t\tURL url = null;\n\t\tString buri = getBaseURI();\n\t\tif (buri != null) {\n\t\t\ttry {\n\t\t\t\turl = new URL(buri);\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\ttry {\n\t\t\t\t\tString docuri = document.getDocumentURI();\n\t\t\t\t\tif (docuri != null) {\n\t\t\t\t\t\tURL context = new URL(docuri);\n\t\t\t\t\t\turl = new URL(context, buri);\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t}",
"@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}",
"private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(TAG, \"url_base: \" + url.toString());\n return url.toString();\n }",
"@Nonnull\n\tprivate URI getPossiblyInsecureBaseUri() {\n\t\tUriInfo ui = getUriInfo();\n\t\tif (ui != null && ui.getBaseUri() != null)\n\t\t\treturn ui.getBaseUri();\n\t\t// See if JAX-WS *cannot* supply the info\n\t\tif (jaxws == null || jaxws.getMessageContext() == null)\n\t\t\t// Hack to make the test suite work\n\t\t\treturn URI.create(\"http://\" + DEFAULT_HOST\n\t\t\t\t\t+ \"/taverna-server/rest/\");\n\t\tString pathInfo = (String) jaxws.getMessageContext().get(PATH_INFO);\n\t\tpathInfo = pathInfo.replaceFirst(\"/soap$\", \"/rest/\");\n\t\tpathInfo = pathInfo.replaceFirst(\"/rest/.+$\", \"/rest/\");\n\t\treturn URI.create(\"http://\" + getHostLocation() + pathInfo);\n\t}",
"public static String getBaseURI() {\n\t\treturn getIP() + \":\" + getPort();\r\n//\t\tURIBuilder builder = new URIBuilder();\r\n//\t\tbuilder.setScheme(\"http\");\r\n//\t\tbuilder.setHost(getIP());\r\n//\t\tbuilder.setPort(Integer.valueOf(getPort()));\r\n//\t\tbuilder.setPath(\"/\"+getVersion());\r\n//\t\treturn builder.toString();\r\n//\t\treturn \"http://\" + getIP() + \":\" + getPort()\r\n//\t\t\t\t+ \"/\"+getVersion();\r\n\t}",
"public String getBaseUrl()\r\n {\r\n return this.url;\r\n }",
"public URL getDocumentBase() {\n/* 158 */ return this.stub.getDocumentBase();\n/* */ }",
"public String getURI() {\n/* 95 */ return this.uri;\n/* */ }",
"URI getUri();",
"@Value.Default\n public String getUri() {\n\treturn \"\";\n }",
"@Override\r\n public String getURI() {\r\n if (uriString == null) {\r\n uriString = createURI();\r\n }\r\n return uriString;\r\n }",
"public String getUri();",
"public String getUri()\r\n {\r\n return uri;\r\n }",
"@Test\r\n public void baseUri() throws Exception\r\n {\n HtmlLoadOptions loadOptions = new HtmlLoadOptions(LoadFormat.HTML, \"\", getImageDir());\r\n\r\n Assert.assertEquals(LoadFormat.HTML, loadOptions.getLoadFormat());\r\n\r\n Document doc = new Document(getMyDir() + \"Missing image.html\", loadOptions);\r\n\r\n // While the image was broken in the input .html, our custom base URI helped us repair the link.\r\n Shape imageShape = (Shape)doc.getChildNodes(NodeType.SHAPE, true).get(0);\r\n Assert.assertTrue(imageShape.isImage());\r\n\r\n // This output document will display the image that was missing.\r\n doc.save(getArtifactsDir() + \"HtmlLoadOptions.BaseUri.docx\");\r\n //ExEnd\r\n\r\n doc = new Document(getArtifactsDir() + \"HtmlLoadOptions.BaseUri.docx\");\r\n\r\n Assert.assertTrue(((Shape)doc.getChild(NodeType.SHAPE, 0, true)).getImageData().getImageBytes().length > 0);\r\n }",
"public String getBaseURL() {\n return baseURL;\n }",
"public String getBaseURL() {\n return baseURL;\n }",
"String getUri();",
"public URI getURI()\r\n/* 36: */ {\r\n/* 37:64 */ return this.httpRequest.getURI();\r\n/* 38: */ }",
"java.lang.String getUri();",
"java.lang.String getUri();",
"public void setUri(URI uri)\n {\n this.uri = uri;\n }",
"@Override\r\n public URI getRequestUri() {\n return null;\r\n }",
"public String getUri() {\n return uri;\n }",
"public String getBaseUrl() {\n return builder.getBaseUrl();\n }",
"public URI getBaseURI() {\n Map<String, String> map = new LinkedHashMap<>();\n map.put(\"xml\", XML_NAMESPACE);\n return getLink(\"/*/@xml:base\", map);\n }",
"public URI getURI()\r\n/* 34: */ {\r\n/* 35:60 */ return this.uri;\r\n/* 36: */ }",
"@Override \n public String getRequestURI() {\n if (requestURI != null) {\n return requestURI;\n }\n\n StringBuilder buffer = new StringBuilder();\n buffer.append(getRequestURIWithoutQuery());\n if (super.getQueryString() != null) {\n buffer.append(\"?\").append(super.getQueryString());\n }\n return requestURI = buffer.toString();\n }",
"public void setBaseURL(String val) {\n\n\t\tbaseURL = val;\n\n\t}",
"@Override\n\t\tpublic String getRequestURI() {\n\t\t\treturn null;\n\t\t}",
"protected String getBaseUrl() {\n return requestBaseUrl;\n }",
"String getUri( );",
"public void setRequestURI(URI requestURI);",
"public String uri() {\n return this.uri;\n }",
"public String getBaseUrl()\n {\n return baseUrl;\n }",
"public String getUri() {\n return uri;\n }",
"public String getBaseUrl() {\r\n return baseUrl;\r\n }",
"public String getUri() {\r\n\t\treturn uri;\r\n\t}",
"public String getBaseUrl()\n\t{\n\t\treturn baseUrl;\n\t}",
"String getRootServerBaseUrl();",
"public void setBaseURL(final String url) {\r\n String location = url;\r\n //-- remove filename if necessary:\r\n if (location != null) { \r\n int idx = location.lastIndexOf('/');\r\n if (idx < 0) idx = location.lastIndexOf('\\\\');\r\n if (idx >= 0) {\r\n int extIdx = location.indexOf('.', idx);\r\n if (extIdx > 0) {\r\n location = location.substring(0, idx);\r\n }\r\n }\r\n }\r\n \r\n try {\r\n _resolver.setBaseURL(new URL(location));\r\n } catch (MalformedURLException except) {\r\n // try to parse the url as an absolute path\r\n try {\r\n LOG.info(Messages.format(\"mapping.wrongURL\", location));\r\n _resolver.setBaseURL(new URL(\"file\", null, location));\r\n } catch (MalformedURLException except2) { }\r\n }\r\n }",
"public URL makeBase(URL startingURL);",
"public void setUri(URI uri) {\n this.uri = uri;\n }",
"public void setUri(URI uri) {\n this.uri = uri;\n }",
"public String getRequestURI ()\n {\n return uri;\n }",
"@Override\r\n public UriBuilder getAbsolutePathBuilder() {\n return null;\r\n }",
"protected String uri(String path) {\n return baseURI + '/' + path;\n }",
"String getURI();",
"String getURI();",
"String getURI();",
"public URI getUri()\n {\n return uri;\n }",
"public String getBaseURL() {\n\n\t\treturn baseURL;\n\n\t}",
"String getServerBaseURL();",
"public String getUri() {\n\t\treturn uri;\n\t}",
"@Override\r\n public UriBuilder getRequestUriBuilder() {\n return null;\r\n }",
"@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}",
"public String getBaseUrl() {\n return (String) get(\"base_url\");\n }",
"public static String getURI(){\n\t\treturn uri;\n\t}",
"public String getBaseUrl() {\n return baseUrl;\n }",
"public String getBaseUrl() {\n return baseUrl;\n }",
"@org.junit.Test\n public void constrCompelemBaseuri1() {\n final XQuery query = new XQuery(\n \"fn:base-uri(element elem {attribute xml:base {\\\"http://www.example.com\\\"}})\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }",
"public String url() {\n return server.baseUri().toString();\n }",
"public String getRequestURI() {\n return uri;\n }",
"@Property String getDocumentURI();",
"public java.lang.String getUri() {\n return uri;\n }",
"private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}",
"public URIBuilder() {\n super();\n this.port = -1;\n }",
"public abstract String getResUri();",
"public URI getUri() {\n return this.uri;\n }",
"public String getEasyCoopURI() {\r\n String uri = \"\";\r\n\r\n try {\r\n javax.naming.Context ctx = new javax.naming.InitialContext();\r\n uri = (String) ctx.lookup(\"java:comp/env/easycoopbaseurl\");\r\n //BASE_URI = uri; \r\n } catch (NamingException nx) {\r\n System.out.println(\"Error number exception\" + nx.getMessage().toString());\r\n }\r\n\r\n return uri;\r\n }",
"public static String getURI() {\n return uri;\n }",
"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}",
"public URL getBaseHref() {\n return baseHref;\n }",
"public String getUri() {\n\t\treturn Uri;\n\t}",
"public String getUri() {\n\t\t\treturn uri;\n\t\t}",
"public static String getBaseUrl() {\n return baseUrl;\n }",
"public void setUri(String uri) {\n this.uri = uri;\n }",
"public void setUri(String uri) {\n this.uri = uri;\n }",
"public void setUri(String uri) {\n this.uri = uri;\n }",
"@Override\n public URI toUri() {\n return null;\n }",
"@Override\n public String getBaseUrl() {\n return MobileiaTrivia.getBaseUrl();\n }",
"public String getBaseUrl() {\n StringBuffer buf = new StringBuffer();\n buf.append(getScheme());\n buf.append(\"://\");\n buf.append(getServerName());\n if ((isSecure() && getServerPort() != 443) ||\n getServerPort() != 80) {\n buf.append(\":\");\n buf.append(getServerPort());\n }\n return buf.toString();\n }",
"@org.junit.Test\n public void constrCompelemBaseuri2() {\n final XQuery query = new XQuery(\n \"fn:base-uri(exactly-one((<elem xml:base=\\\"http://www.example.com\\\">{element a {}}</elem>)/a))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }"
] | [
"0.79430616",
"0.7778394",
"0.7761625",
"0.7419183",
"0.7239919",
"0.7203049",
"0.71894795",
"0.71508795",
"0.7141487",
"0.7136903",
"0.7099416",
"0.69901425",
"0.6985706",
"0.6979649",
"0.695792",
"0.6918426",
"0.6901943",
"0.68569094",
"0.67415243",
"0.67200685",
"0.6711646",
"0.6675385",
"0.664994",
"0.65740067",
"0.65397257",
"0.65366167",
"0.6534488",
"0.65230453",
"0.6497179",
"0.648672",
"0.6478387",
"0.6474194",
"0.64557964",
"0.6455117",
"0.6455117",
"0.64382935",
"0.642684",
"0.6415226",
"0.6415226",
"0.6388368",
"0.6378629",
"0.6364752",
"0.6363017",
"0.6359207",
"0.6355443",
"0.6353116",
"0.6338176",
"0.6331204",
"0.6328073",
"0.6319068",
"0.6314219",
"0.6300439",
"0.6295176",
"0.6293788",
"0.62770885",
"0.62683094",
"0.6266851",
"0.6266638",
"0.62652254",
"0.625779",
"0.62456226",
"0.62456226",
"0.6245411",
"0.62245846",
"0.6224408",
"0.62207973",
"0.62207973",
"0.62207973",
"0.6203944",
"0.62024564",
"0.61940074",
"0.6176429",
"0.6163465",
"0.61611897",
"0.614196",
"0.6135089",
"0.6134341",
"0.6134341",
"0.6132117",
"0.613037",
"0.6127421",
"0.61174273",
"0.6116348",
"0.6093514",
"0.6089704",
"0.6085673",
"0.608491",
"0.6079782",
"0.6077915",
"0.6074509",
"0.60692996",
"0.6065161",
"0.6052074",
"0.60411793",
"0.603462",
"0.603462",
"0.603462",
"0.60332227",
"0.6028234",
"0.6016908",
"0.6009139"
] | 0.0 | -1 |
bidirectional manytoone association to Department | @OneToMany(mappedBy="universityCollege")
public Set<Department> getDepartments() {
return this.departments;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Department findById(long id);",
"public void setDepartment(Department department) {\n this.department = department;\n }",
"public void setDepartment(Department d) {\r\n department = d;\r\n }",
"@Override\r\n\tpublic void addDepartment(Department department) {\n\r\n\t\tgetHibernateTemplate().save(department);\r\n\t}",
"@Override\n public Department getDepartment(int departmentId) {\n return null;\n }",
"public Department getDepartment() {\n return department;\n }",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public int getDepartmentId() {\n return departmentId;\n }",
"public Department getDepartmentById(Integer id);",
"public Department findOne(long departmentId){\n\t\treturn departmentRepository.findOne(departmentId);\n\t}",
"public void SetDepartmentID(String DepartmentID)\n {\n this.DepartmentID=DepartmentID;\n }",
"public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }",
"public void AddDep(Department dep) {\n\t\tddi.Add(dep);\n\t\t\n\t}",
"@Override\r\n\tpublic Department saveDepartment(Department department) {\n\t\treturn deptRepo.save(department);\r\n\t}",
"public void setDepartment(String department) {\n this.department = department;\n }",
"Dept findByDeptId(Long deptId);",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }",
"public Department FindById(Department d) {\n\t\treturn ddi.FindById(d);\n\t}",
"public Department(){}",
"@Override\r\n\tpublic Department getModel() {\n\t\treturn department;\r\n\t}",
"public String getDepartmentid() {\n return departmentid;\n }",
"@Override\n\tpublic long getEmployeeDepartmentId() {\n\t\treturn _candidate.getEmployeeDepartmentId();\n\t}",
"public void setDepartment(String department) {\r\n\t\tthis.department=department;\r\n\t}",
"public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }",
"public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }",
"public void setDepartmentId(int value) {\n this.departmentId = value;\n }",
"public Department save(Department department){\n\t\treturn departmentRepository.save(department);\n\t}",
"public Department() \n {\n name = \"unnamed department\";\n }",
"public void setDepartment(String department) {\r\n\t\tthis.department = department;\r\n\t}",
"public final int getDepartmentId() {\n return departmentId;\n }",
"public void saveDepartment(Department department) {\n\t\tgetHibernateTemplate().save(department);\n\t\t\n\t}",
"@Override\n public void setEmployeeDepartment(int employeeId, int departmentId) {\n\n }",
"public Department createDepartment(Department department) {\n\t\treturn departmentRepository.save(department);\n\t}",
"public DepartmentModel getDepartmentKey()\r\n\t{\r\n\t\treturn this.m_departmentKey;\r\n\t}",
"public Integer getDepartmentid() {\n return departmentid;\n }",
"public Integer getDepartmentid() {\n return departmentid;\n }",
"@Override\n public void setDepartmentEmployee(Employee employee, int departmentId) {\n\n }",
"public void setDepartment(String dept) {\r\n\t\tdepartment = dept;\r\n\t}",
"public Department findDepartment(Department department) {\n\t\treturn (Department)getHibernateTemplate().find(String.valueOf(department.getIdDepartment())).get(0);\n\t}",
"public Department (java.lang.Integer id) {\n\t\tsuper(id);\n\t}",
"public java.lang.String getDepartmentId () {\r\n\t\treturn departmentId;\r\n\t}",
"public String getDepartment() {\r\n return department;\r\n }",
"public String getId()\r\n {\r\n return departmentBean.getId();\r\n }",
"public void setDeptId(Long deptId) {\n this.deptId = deptId;\n }",
"public void addDepartment(IBaseDTO dto) {\n\t\tSysDepartment sd=new SysDepartment();\n\t\t\n\t\tsd.setName((String)dto.get(\"name\"));\n\t\tsd.setParentId((String)dto.get(\"parentId\"));\n\t\tsd.setRemarks((String)dto.get(\"remark\"));\n\t\tsd.setTagShow((String)dto.get(\"tagShow\"));\n\t\tsd.setId(ks.getNext(\"sys_department\"));\n\t\t\n\t\tdao.saveEntity(sd);\n\t\tcts.reload();\n\t}",
"public void setDepartmentId (java.lang.String departmentId) {\r\n\t\tthis.departmentId = departmentId;\r\n\t}",
"public Department(String name){\n this.name = name;\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 }",
"public void AddDepartment(String nomDepart)\n\t{ \n\t\tDepartment depart = new Department();\n\t\tdepart.setNameDepartment(nomDepart);\n\t\tdepartments.add(depart);\n\t}",
"public void setDeptId(Integer deptId) {\r\n this.deptId = deptId;\r\n }",
"Department createOrUpdate(Department department);",
"@Override\n\tpublic void setEmployeeDepartmentId(long employeeDepartmentId) {\n\t\t_candidate.setEmployeeDepartmentId(employeeDepartmentId);\n\t}",
"@Override\n\tpublic Optional<Department> findDepartmentById(Integer id) {\n\t\treturn departmentRepository.findById(id);\n\t}",
"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}",
"public Department getSingleDepartment(String department) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from Department as department where department.department = ?\",\n new Object[]{department},\n new Type[]{Hibernate.STRING});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (Department) results.get(0);\n }\n\n }",
"@Override\n\tpublic Department create(long departmentId) {\n\t\tDepartment department = new DepartmentImpl();\n\n\t\tdepartment.setNew(true);\n\t\tdepartment.setPrimaryKey(departmentId);\n\n\t\treturn department;\n\t}",
"public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }",
"public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }",
"public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }",
"public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }",
"void modifyDepartment(Department dRef);",
"@Override\r\n\tpublic Department getDepartmentById(int id) {\n\t\treturn getHibernateTemplate().get(Department.class, id);\r\n\t}",
"public final void setDepartmentId(final Integer dId) {\n this.departmentId = dId;\n }",
"public void setDepartmentName(String departmentName) {\n this.departmentName = departmentName;\n }",
"@Override\r\n\tpublic Department getDepartmentByName(String departmentName) {\n\t\treturn deptRepo.findByDepartmentNameIgnoreCase(departmentName);\r\n\t}",
"public Department findByNameDepartment(String nameDepartment);",
"@Override\n public Employee updateEmployeeDepartment(int employeeId, int departmentId) {\n return null;\n }",
"public jkt.hms.masters.business.MasDepartment getDepartment () {\n\t\treturn department;\n\t}",
"public jkt.hms.masters.business.MasDepartment getDepartment () {\n\t\treturn department;\n\t}",
"@Override\n\tpublic DeptVO findByPrimaryKey(Integer deptno) {\n\t\treturn null;\n\t}",
"public Department getDepartmentById(int id) {\n return this.dsl\n .selectFrom(DEPARTMENT)\n .where(DEPARTMENT.ID.eq(id))\n .fetchOne()\n .into(Department.class);\n }",
"public String getDepartment(){\n\t\treturn departName;\n\t}",
"public void setDepartmentName(String departmentName)\r\n\t{\r\n\t\tthis.departmentName = departmentName;\r\n\t}",
"public String getDepartmentName() {\n return departmentName;\n }",
"public void setDepartment(String department) {\n if(department==null){\n department = \"\";\n }\n this.department = department;\n }",
"@Override\n\tpublic Department fetchByPrimaryKey(long departmentId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)departmentId);\n\t}",
"public Departmentdetails getDepartmentByName(String departmentName);",
"@Override\r\n\tpublic void updateDepartment(Department department) {\n\t\tDepartment d = getDepartmentById(department.getDepartment_id());\r\n\t\td.setDepartment_id(department.getDepartment_id());\r\n\t\td.setDescription(department.getDescription());\r\n\t\td.setName(department.getName());\r\n\t\td.setPostSet(department.getPostSet());\r\n\t\tgetHibernateTemplate().update(d);\r\n\t}",
"public Long getDeptId() {\n return deptId;\n }",
"public jkt.hms.masters.business.MasDepartment getDepartment() {\n\t\treturn department;\n\t}",
"public void setDepartment(String department) {\n this.department = department == null ? null : department.trim();\n }",
"void insertDepartment(String depName, Date creationDate, long idParentDepartment);",
"public void setDepartment (jkt.hms.masters.business.MasDepartment department) {\n\t\tthis.department = department;\n\t}",
"public void setDepartment (jkt.hms.masters.business.MasDepartment department) {\n\t\tthis.department = department;\n\t}",
"public synchronized String getDepartment()\r\n {\r\n return department;\r\n }"
] | [
"0.6646758",
"0.66190416",
"0.6600971",
"0.6576871",
"0.65359575",
"0.63962734",
"0.63898224",
"0.63898224",
"0.63898224",
"0.63613707",
"0.6324655",
"0.63219684",
"0.6301124",
"0.62614113",
"0.62614113",
"0.62614113",
"0.62384236",
"0.6179924",
"0.6162278",
"0.61568826",
"0.61479706",
"0.61479706",
"0.61479706",
"0.6125343",
"0.6125343",
"0.6125343",
"0.61142516",
"0.60829365",
"0.60308635",
"0.6029731",
"0.6026859",
"0.60090655",
"0.5983044",
"0.5983044",
"0.5973457",
"0.59690386",
"0.59529424",
"0.5949128",
"0.5935039",
"0.59121484",
"0.5907503",
"0.58964837",
"0.5892636",
"0.5879933",
"0.5879933",
"0.58742577",
"0.58569586",
"0.5851153",
"0.5846841",
"0.5844507",
"0.58075184",
"0.58037275",
"0.5801093",
"0.57707006",
"0.57678217",
"0.5762121",
"0.5754494",
"0.5754494",
"0.5754494",
"0.5754494",
"0.5754494",
"0.57521254",
"0.5727561",
"0.5723759",
"0.57113004",
"0.57109964",
"0.570681",
"0.570681",
"0.570681",
"0.5701797",
"0.56989914",
"0.56985843",
"0.56985843",
"0.56985843",
"0.56985843",
"0.56984705",
"0.5695348",
"0.5694379",
"0.56930935",
"0.56755596",
"0.5672768",
"0.5660328",
"0.5652204",
"0.5652204",
"0.5625014",
"0.5618326",
"0.56130815",
"0.5610493",
"0.55925876",
"0.55826163",
"0.5578632",
"0.55760103",
"0.55650955",
"0.55580044",
"0.5554768",
"0.555096",
"0.55389637",
"0.5536613",
"0.5536613",
"0.55285996"
] | 0.5647916 | 84 |
bidirectional manytoone association to StudentUniversity | @OneToMany(mappedBy="universityCollege")
public Set<StudentUniversity> getStudentUniversities() {
return this.studentUniversities;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic University saveuniversity(University university) {\n\t\treturn universityrespo.save(university);\n\t}",
"public void setORM_Fac_has_university(model.University value) {\n\t\tthis.fac_has_university = value;\n\t}",
"@Override\n\tpublic boolean add(Tbuniversity tbuniversity) {\n\t\tboolean result= false;\n\t\tif(tbuniversityDAO.save(tbuniversity)){\n\t\t\tresult =true;\n\t\t}\n\t\treturn result;\n\t}",
"public University(String name){\n this.name = name;\n }",
"@Override\n\tpublic University updateuniversity(University university) {\n\t\treturn universityrespo.save(university);\n\t}",
"public void giveHistoryToUniversity(MedicalHistory medicalHistory, University university){}",
"public College()\r\n {\r\n students = new ArrayList<Student>();\r\n }",
"public interface UniversityDetail {\n public int getId();\n public String getUniversityName();\n public String getLetterRecipient();\n public String getSalutation();\n}",
"@Override\n\tpublic void deleteuniversity(University university) {\n\t\tuniversityrespo.delete(university);\n\t}",
"School findSchoolById(int id) throws TechnicalException;",
"public void addSchool(School school) {\n\n\t}",
"public Long getSchoolId() {\n return schoolId;\n }",
"public void saveUniversity(Context context){\n\t\tUniversitiesSQLiteHelper sesdbh = new UniversitiesSQLiteHelper(context, \"universities\", null,1);\n\n\t\t//Abre la base de datos\n\t\tSQLiteDatabase db = sesdbh.getWritableDatabase();\n\n\t\ttry {\n\t\t\tdb.execSQL(\"INSERT INTO universities (web_id, name, acronym) \" +\n\t\t\t\t\t\"VALUES ('\"+this.getID()+\"', '\"+this.getName()+\"','\"+this.getAcronym()+\"')\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdb.close();\n\t}",
"public ResultSet getUniversityById(int specificUniversityId)\r\n\t{\r\n\t\tResultSet rs=null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString sql=\" SELECT * FROM university where universityId =\"+specificUniversityId;\t\r\n\t\t\trs=stm.executeQuery(sql);\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn rs;\r\n\t}",
"public University getalluniversitybyId(int id) {\n\t\treturn universityrespo.getOne(id);\n\n}",
"@Override\n\tpublic College getModel() {\n\t\treturn college;\n\t}",
"public void addUniversityDto(UniversityDto universityDto) throws AppException {\n if (universityDtoRepository.readByName(universityDto.getName()) == null) {\n universityDtoRepository.create(universityDto);\n } else {\n throw new AppException(\"The University name is busy\");\n }\n }",
"@ManyToOne\n public Person getAuthor() {\n return author;\n }",
"public Institution() {\n this.name = \"Institution\";\n }",
"@Override\n\tpublic List<UniversityDTO> getUniversities() throws DatabaseException {\n\t\t\n\t\t con =DbUtil.getConnection();\n\t\t\n\t\t srdao=new StudentRegistrationValidationDaoimpl();\n\t\t\n\t\tList<UniversityDTO> list=srdao.getUniversities(con);\n\t\treturn list;\n\t}",
"public Long getSchoolid() {\n return schoolid;\n }",
"public Student findById(int theStudent_id);",
"@NotNull\n @JoinColumn(name = \"code_unite\", nullable = false)\n @ManyToOne(cascade = { PERSIST, MERGE }, fetch = LAZY)\n public Unite getCodeUnite() {\n return codeUnite;\n }",
"public void setFacultySet(DatabaseFaculty faculty){\n this.facultySet.add(faculty);\n }",
"public void addStudent(User user) {\n\t\t\r\n\t}",
"public void addEducation(Education e) {\n ed.add(e);\n}",
"public String university() {\n return faker.fakeValuesService().resolve(\"educator.name\", this, faker) \n + \" \" \n + faker.fakeValuesService().resolve(\"educator.tertiary.type\", this, faker);\n }",
"@Override\r\n\tpublic Students findStudents() {\n\t\treturn null;\r\n\t}",
"public void setStudentList(DatabaseStudent student){\n this.studentSet.add(student);\n }",
"School findSchoolByName(String schoolName) throws TechnicalException;",
"public void addStudent(Student student) {\t\r\n\t\t//Adds student to list of students taking module\r\n\t\tStudentList.add(student);\r\n\t\t\r\n\t\t// adds module to students list of modules\r\n\t\tstudent.AddModuleList(ModuleName);\r\n}",
"public void setStudents() {\n\t}",
"public void setStudentId(int studentId);",
"Student findById(String id);",
"public String getAssociatedID() {\n return studentid;\n }",
"public UniversityDateService getUniversityDateService() {\r\n return universityDateService;\r\n }",
"public ArrayList<String> viewSchoolDetails(String universityName) {\n\t\tthis.sfCon.viewSchoolDetails(universityName);\n\t\treturn this.sfCon.viewSchoolDetails(universityName);\n\t}",
"public Long getCollegeId() {\n return collegeId;\n }",
"@Override\r\n\tpublic void save() {\n\t\tif (section != null && !section.isEmpty()) {\r\n\t\t\tif (gradeLevel == null || gradeLevel.isEmpty()) {\r\n\t\t\t\tSection sec = (Section) Section.extractObject(Section.class.getSimpleName(), section);\r\n\t\t\t\tgradeLevel = sec.gradeLevel;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (course == null && gradeLevel != null && !gradeLevel.isEmpty()) {\r\n\t\t\tGradeLevel lvl = (GradeLevel) GradeLevel.extractObject(GradeLevel.class.getSimpleName(), gradeLevel);\r\n\t\t\tcollege = lvl.college;\r\n\t\t\tcourse = lvl.course;\r\n\t\t}\r\n\t\tif (course!=null && course.startsWith(\"B\")) {\r\n\t\t\tcollege = true;\r\n\t\t}\r\n\t\tif (!isEmptyKey()) {\r\n//\t\t\twe can get the latest enrollment schoolyear\r\n\t\t\ttry {\r\n\t\t\t\tif (\"ENROLLED\".equals(status)) {\r\n\t\t\t\t\tString sc = DBClient.getSingleColumn(BeanUtil.concat(\"SELECT a.schoolYear FROM Enrollment a WHERE a.studentId=\",personId,\" ORDER BY a.schoolYear DESC\")).toString();\r\n\t\t\t\t\tlatestSchoolYear = sc;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (schoolYear==null || schoolYear.isEmpty()) {\r\n\t\t\tschoolYear = AppConfig.getSchoolYear();\r\n\t\t}\r\n\t\tpersonType = \"STUDENT\";\r\n\t\tif (isEmptyKey()) {\r\n\t\t\tsuper.save();\r\n new springbean.SchoolDefaultProcess().createAllSubjects(this);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuper.save();\r\n\t\t}\r\n\t}",
"public void setUniversityDateService(UniversityDateService universityDateService) {\r\n this.universityDateService = universityDateService;\r\n }",
"public int getStudentId();",
"TypeAssociationEXT getConcerneUniteUnite();",
"SchoolSubject findSchoolSubjectById(Integer id) throws DaoException;",
"public Education() {}",
"public void addStu(Student stu) {\n\t\tSessionFactory sessionFactory = null;\n\t\tStandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n\t\t\t\t.configure()\t\t\t\t\t\t\t\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception ex) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t\tSystem.out.println(\"Setup Failed:\" + ex.getMessage());\n\t\t}\n\t\t// Session sessionObj = null; \n\t\tSession sessionObj = sessionFactory.openSession();\n\t\ttry {\n\t\t\t// Creating Hibernate SessionFactory Instance\n\t\t\t// sessionObj = configObj.buildSessionFactory(serviceRegistryObj).openSession();\n\t\t\tsessionObj.beginTransaction();\n\t\t\tsessionObj.save(stu);\n\t\t\tSystem.out.println(\"\\n.......Records Saved Successfully To The Database.......\\n\");\n\t\t\t// Committing The Transactions To The Database\n\t\t\tsessionObj.getTransaction().commit();\n\t\t} catch (Exception sqlException) {\n\t\t\tif (null != sessionObj.getTransaction()) {\n\t\t\t\tSystem.out.println(\"\\n.......Transaction Is Being Rolled Back.......\");\n\t\t\t\tsessionObj.getTransaction().rollback();\n\t\t\t}\n\t\t\tsqlException.printStackTrace();\n\t\t} finally {\n\t\t\tif (sessionObj != null) {\n\t\t\t\tsessionObj.close();\n\t\t\t}\n\t\t}\n\t}",
"public University viewSchool(String school)\n {\n\t this.addBrowseHistory(school);\n\n\t return this.userCtrl.viewSchool(school);\n }",
"public interface AcademicProfileRepo extends CrudRepository<AcademicProfile, Integer> {\n AcademicProfile findBySchoolId(String schoolId);\n}",
"public void admitStudent(){\n\t\tthis.getCourse().addStudent(this.getStudent());\n\t\tthis.getStudent().addCourse(this.getCourse());\n\t\tthis.course.removeApplication(this);\n\t}",
"@Override\n public void addStudent(Student student) {}",
"public Long getStudentId() {\n return studentId;\n }",
"public School() {\r\n }",
"public String getId() { return studentId; }",
"public int getStudentId() {\n return studentId;\n }",
"public String getInverseRelationshipName ();",
"public String getColl(){\n return this.college;\n }",
"public void setSchool(College school) {\n this.put(\"school\", school.getName());\n }",
"public int getId() \r\n {\r\n return studentId;\r\n }",
"@Override\n\tpublic long getStudentId() {\n\t\treturn model.getStudentId();\n\t}",
"public void setSchoolid(Long schoolid) {\n this.schoolid = schoolid;\n }",
"public String getCourseIdSchool() {\n return courseIdSchool;\n }",
"@Override\n\tpublic boolean update(Tbuniversity tbuniversity) {\n\t\tboolean result= false;\n\t\tif(tbuniversityDAO.update(tbuniversity)){\n\t\t\tresult =true;\n\t\t}\n\t\treturn result;\n\t}",
"@Override\r\n\tpublic void addStudentInCourse(Course course, User user) {\n\t\t\r\n\t}",
"public void addEducation(Education e) {\r\n\t\tedu.add(e);\t\t\r\n\t}",
"@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}",
"public void setStudent(Student s) {\r\n student = s;\r\n }",
"public Boolean inputIsUniversity() {\n return trainingSystem;\n }",
"public Education() {\n\t\tsuper();\n\t}",
"public SchoolPerson() {\n }",
"WordSchool selectByPrimaryKey(Long id);",
"Student createStudent();",
"public Student removeStudent()\r\n {\r\n Student student = null;\r\n\r\n if(first_node != null)\r\n {\r\n student = first_node.getData();\r\n first_node = first_node.getNextNode();\r\n\r\n number_of_entries--;\r\n removeID(student.getStudent_ID());\r\n updateAcademicLevels(\"remove\", student.getAcademic_year());\r\n }\r\n return student;\r\n }",
"public School(){\n _persons = new TreeMap<Integer, Person>();\n _students = new HashMap<Integer, Student>();\n _professors = new HashMap<Integer, Professor>();\n _administratives = new HashMap<Integer, Administrative>();\n _courses = new HashMap<String,Course>();\n _disciplines = new HashMap<String,Discipline>();\n _disciplineCourse = new TreeMap<String, HashMap<String, Discipline>>();\n }",
"public void setStudents(Set<Student> students) {\n this.students = students;\n }",
"@Override\r\npublic void addUserToCourse(User user, Course course) {\n\tSystem.out.println(\"Student \"+user.getName()+ \" has joined the \"+course.getCourseName()+\".\");\r\n\t\t\r\n}",
"boolean insertUser(SchoolSubject schoolSubject);",
"public String getCollegeName() {\n return collegeName;\n }",
"public String getCollegeName() {\n return collegeName;\n }",
"@Override\n\tpublic Student addStudent(Student std)\n\t {\n\t\t return studentrepo.save(std);\t\t \n\t }",
"@Override\r\n\t@Transactional\r\n\tpublic void createStudent(Bookmodel s1) {\n\t\tdao.createStudent(s1);\r\n\t}",
"public void setUniversityRank(int universityRank)\r\n\t{\r\n\t\tthis.universityRank = universityRank;\r\n\t}",
"public void setSchool(String s) {\n this.school = s;\n }",
"@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)\r\n @JoinColumn (name=\"OWNER_ID\", referencedColumnName = \"CODE_ID\")\r\n @Valid\r\n public List<ResearchOrganization> getResearchOrganizations() {\r\n return this.researchOrganizations;\r\n }",
"SchoolMasterVo getSchoolMasterDetail(int id);",
"public String getStudentId() {\r\n return studentId;\r\n }",
"public Set<Student> getStudents() {\n return students;\n }",
"@Override\n public CourseStudent save(Registration registration, User user) {\n CourseStudent courseStudent = null;\n if (registration.getName() != null && registration.getCourse() != null && user != null) {\n Student student = new Student();\n student.setName(registration.getName());\n student.setPhone(registration.getPhone());\n student.setEmail(registration.getEmail());\n student = studentService.save(student);\n if (student != null) {\n courseStudent = new CourseStudent();\n courseStudent.setStudent(student);\n courseStudent.setCourse(registration.getCourse());\n courseStudent.setPrice(registration.getPrice());\n courseStudent.setPaid(registration.getPaid());\n double rest = registration.getPrice() - registration.getPaid();\n courseStudent.setRest(rest);\n courseStudent.setDiscount(0.0);\n courseStudent.setUser(user);\n courseStudent.setRegistrationDate(new Date());\n courseStudent = courseStudentService.save(courseStudent);\n }\n\n }\n return courseStudent;\n }",
"@Optional\n Association<GebaeudeArtStaBuComposite> gebaeudeArtStaBu();",
"public String getStudentId() {\n\treturn this.studentId;\n }",
"@Override\n\tpublic boolean delete(Tbuniversity tbuniversity) {\n\t\tboolean result= false;\n\t\tif(tbuniversityDAO.delete(tbuniversity)){\n\t\t\tresult =true;\n\t\t}\n\t\treturn result;\n\t}",
"@Transactional\n\tpublic List<University> listAllUniversity() {\n\n\t\tCriteriaBuilder builder = getSession().getCriteriaBuilder();\n\t\tCriteriaQuery<University> criteriaQuery = builder.createQuery(University.class);\n\t\tRoot<University> root = criteriaQuery.from(University.class);\n\t\tcriteriaQuery.select(root);\n\t\tQuery<University> query = getSession().createQuery(criteriaQuery);\n\n\t\t// query.setFirstResult((page - 1) * 5);\n\t\t// query.setMaxResults(5);\n\t\treturn query.getResultList();\n\t}",
"public void addStudent(Student InStudent)\n\t{\n\t\tclassRoll.add (InStudent);\n\t\tthis.saveNeed = true;\n\n\t\t\n\t}",
"public void setSchoolId(Long schoolId) {\n this.schoolId = schoolId;\n }",
"public Student getStudent() {\n return student;\n }",
"public Integer addTraining(Training t, User u) {\n\n //the new User's id\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n //build relationship\n u.getTraining().add(t);\n t.setUser(u);\n\n session.save(t);\n tx.commit();\n\n id = t.getTrainingId();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n return id;\n }",
"public abstract boolean onUserBelongHere(StudentRecord record);",
"@Override\r\n\tpublic Student createOrUpdateStudentRecord(Student student) {\r\n\t\t\tstudentDAO.addStudent(student);\r\n\t\treturn student;\r\n\t}",
"public void setCollegeId(Long collegeId) {\n this.collegeId = collegeId;\n }",
"public void addStudent(Student student);",
"public void addHospital(Hospital hospital) {\n\t\tlistOfHospitals.add(hospital); // Adds the object of the model \"hospital\" to the list created above\n\t\tString hospitalName = hospital.getHospitalName();\t// Gets the String name from the hospital model\n\t\tLong regionId = hospital.getRegionId(); // Gets the integer value of the region id\n System.out.println(\"regionId from GUI hospital object: \"+regionId);\n\t\t\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\t \n session.beginTransaction();\n \n Query regquery = session.createQuery(\"from Region where id= :id\");\n regquery.setLong(\"id\", regionId);\n Region region = (Region) regquery.uniqueResult();\n session.save(new Hospital(hospital.getHospitalName(), region));\n //session.save(hospital);\n session.getTransaction().commit();\n session.close();\n \n\t\t//Connection connection = null;\t// Instantiation of the connection to the database\n\t\t\n\t\t/**\n\t\t * The following contains a set of prepared statements to be prepared to be synchronized to the MySql database.\n\t\t * The prepared statements pull information that was saved to the model via the form submission.\n\t\t */\n /*\n\t\ttry {\n\t\t\tconnection = dataSource.getConnection(); // Connection of the dataSource with the MySql sever\n\t\t\t\n\t\t\tString sql = \"Insert into hospital (id, name, region_id) values(?, ?, ?)\"; // First sql statement that contains the information to query into hospital\n\t\t\tPreparedStatement ps = connection.prepareStatement(sql); // Instantiation of the class \"PreparedStatement\" of how the query statements are prepared to be added to the database and establishment of the sql query\n\t\t\t\n\t\t\tps.setInt(1, this.getMaxHospitalID()+1);\n\t\t\tps.setString(2, hospitalName);\n\t\t\tps.setInt(3, regionId);\n\t\t\t\n\t\t\tps.executeUpdate();\n\t\t\tps.close();\n\t\t} catch (SQLException e) { // Catches SQL exception errors\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\tif (connection != null) { // Closes SQL connection \n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {}\n\t\t\t}\n\t\t}\n\t\t*/\n\t\treturn;\n\t}",
"@Override\n\t\tpublic void saveStudent(Student stu) {\n\t\t\tsessionFactory.getCurrentSession().save(stu);\n\t\t\tSystem.out.println(\"DATA HAS BEEN SAVED.........\");\n\t\t}"
] | [
"0.6100708",
"0.6016456",
"0.56906724",
"0.5616078",
"0.5574624",
"0.5316879",
"0.5296156",
"0.52388257",
"0.5217877",
"0.5209363",
"0.5162902",
"0.51099366",
"0.51073843",
"0.50898814",
"0.508151",
"0.5025426",
"0.5019891",
"0.5018984",
"0.5004768",
"0.49751085",
"0.49337918",
"0.4912006",
"0.49081448",
"0.49015903",
"0.4887921",
"0.48868757",
"0.48546514",
"0.484604",
"0.48459715",
"0.48265412",
"0.48241496",
"0.4798664",
"0.47977984",
"0.4791535",
"0.47911018",
"0.47904944",
"0.47896037",
"0.47849813",
"0.4779407",
"0.47773996",
"0.47738963",
"0.47654653",
"0.4757491",
"0.47550437",
"0.47530052",
"0.47433996",
"0.4735105",
"0.47306237",
"0.47144032",
"0.47133037",
"0.47036976",
"0.4698039",
"0.46914038",
"0.4690314",
"0.4680187",
"0.46770734",
"0.4669041",
"0.46639282",
"0.465675",
"0.46490794",
"0.46460187",
"0.4636222",
"0.46266288",
"0.46222994",
"0.46219918",
"0.4610258",
"0.4609826",
"0.46071723",
"0.45986983",
"0.45972893",
"0.45792526",
"0.45790738",
"0.4577851",
"0.45776278",
"0.45712912",
"0.4570421",
"0.4570421",
"0.45687282",
"0.4560775",
"0.45566946",
"0.45541382",
"0.45485732",
"0.4546315",
"0.45450374",
"0.45378625",
"0.45376316",
"0.4536796",
"0.45348755",
"0.45327502",
"0.4532435",
"0.45182014",
"0.4517463",
"0.451216",
"0.450563",
"0.45045328",
"0.45039204",
"0.4502959",
"0.44952667",
"0.4494481",
"0.44937396"
] | 0.63021916 | 0 |
ensure we have space | @Override
public void setBytes(final long startpos, final byte[] bytes,
final int offset, final int length)
{
checkWritePos(startpos, startpos + length);
final int neededCapacity = size + length;
ensureCapacity(neededCapacity);
// copy the data
buffer.position((int) startpos);
buffer.put(bytes, offset, length);
// update the maxpos
updateSize(startpos + length);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ensureSpace(int space) {\n ensureCapacity(length + space);\n }",
"private static void checkFreeSpace()\n {\n boolean isSpaceAvailable = false;\n int numOfFreeSpaces = 0;\n for(int index=1;index<board.length;index++)\n {\n if((board[index] == ' '))\n {\n isSpaceAvailable = true;\n numOfFreeSpaces++;\n }\n }\n if(isSpaceAvailable == false)\n {\n System.err.println(\"Board is full! You can't make another move\");\n System.exit(0);\n }\n else\n {\n System.out.println(\"Free space is available! you have \"+numOfFreeSpaces+ \" moves left\");\n }\n }",
"public void checkBlankSpace() {\n\t\tif (xOffset < 0) {\n\t\t\txOffset = 0;\n\t\t} else if (xOffset > handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth()) {\n\t\t\txOffset = handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth();\n\t\t}\n\t\t\n\t\tif (yOffset < 0) {\n\t\t\tyOffset = 0;\n\t\t} else if (yOffset > handler.getWorld().getHeight() * Tile.TILEHEIGHT - handler.getHeight()) {\n\t\t\tyOffset = handler.getWorld().getHeight() * Tile.TILEWIDTH - handler.getHeight();\n\t\t}\n\t}",
"public boolean hasSpaces() {\n\t\treturn !divided && points.keySet().size() != QUADTREE_NODE_CAPACITY;\n\t}",
"public boolean hasSpace() {\r\n\t\treturn hasSpace;\r\n\t}",
"private void ensureCapacity() {\n if(size() >= (0.75 * data.length)) // size() == curSize\n resize(2 * size());\n }",
"private void checkCapacity() {\n\t\tif (size.get() >= region.getCapacity()) {\n\t\t\tsynchronized (cleanUpThread) {\n\t\t\t\tcleanUpThread.notify();\n\t\t\t}\n\t\t}\n\t}",
"private void ensureCapacity() {\n if ( top + 1 < storage.length ) {\n return;\n }\n storage = Arrays.copyOf( storage, storage.length * 2 );\n }",
"public boolean freeSpace(int neededSpace) {\n \t\treturn true;\n \t}",
"protected void checkSize(){\n if (size == data.length){\n resize( 2 * data.length);\n }\n }",
"private void reclaimSpace(int space)\r\n/* 269: */ {\r\n/* 270:295 */ assert (space >= 0);\r\n/* 271:296 */ this.availableSharedCapacity.addAndGet(space);\r\n/* 272: */ }",
"private static boolean reserveSpace(AtomicInteger availableSharedCapacity, int space)\r\n/* 254: */ {\r\n/* 255:282 */ assert (space >= 0);\r\n/* 256: */ for (;;)\r\n/* 257: */ {\r\n/* 258:284 */ int available = availableSharedCapacity.get();\r\n/* 259:285 */ if (available < space) {\r\n/* 260:286 */ return false;\r\n/* 261: */ }\r\n/* 262:288 */ if (availableSharedCapacity.compareAndSet(available, available - space)) {\r\n/* 263:289 */ return true;\r\n/* 264: */ }\r\n/* 265: */ }\r\n/* 266: */ }",
"protected void checkSize()\n {\n // check if pruning is required\n if (m_cCurUnits > m_cMaxUnits)\n {\n synchronized (this)\n {\n // recheck so that only one thread prunes\n if (m_cCurUnits > m_cMaxUnits)\n {\n prune();\n }\n }\n }\n }",
"public int getTakeSpace() {\n return 0;\n }",
"private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}",
"private void ensureCapacity() {\n int newLength = (this.values.length * 3) / 2 + 1;\n Object[] newValues = new Object[newLength];\n System.arraycopy(this.values, 0, newValues, 0, this.values.length);\n this.values = newValues;\n }",
"@Override\n\tpublic boolean takeCellSpace() {\n\t\treturn true;\n\t}",
"private void ensureCapacity() {\r\n\t\t\tdouble loadFactor = getLoadFactor();\r\n\r\n\t\t\tif (loadFactor >= CAPACITY_THRESHOLD)\r\n\t\t\t\trehash();\r\n\t\t}",
"private void ensureCapacity(){\n if(topIndex >= stack.length - 1){\n int newLength = 2 * stack.length;\n stack = Arrays.copyOf(stack, newLength);\n }\n }",
"@Override\n public int NumCVSpaces() {\n return 0;\n }",
"@Override\n\tpublic boolean reserve() {\n\t\treturn false;\n\t}",
"public boolean checkSpace(int size) {\n if (canGrow) return true;\n\n Block b = findFreeBlock(size);\n return b != null;\n }",
"private void ensureCapacity()\n {\n if (numberOfEntries >= dictionary.length - 1)\n {\n int newCapacity = 2 * dictionary.length;\n checkCapacity(newCapacity); // Is capacity too big?\n dictionary = Arrays.copyOf(dictionary, newCapacity + 1);\n } // end if\n }",
"private boolean spaces() {\r\n return OPT(GO() && space() && spaces());\r\n }",
"private void checkRep() {\n assert (width <= Board.SIDELENGTH);\n assert (height <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.x() >= 0 && this.boundingBoxPosition.x() <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.y() >= 0 && this.boundingBoxPosition.y() <= Board.SIDELENGTH);\n }",
"protected void ensureBufferSpace(int expectedAdditions)\n {\n\t\tthrow new UnsupportedOperationException(lengthChangeError);\n }",
"private void checkAndModifySize() {\r\n if (size == data.length * LOAD_FACTOR) {\r\n resizeAndTransfer();\r\n }\r\n }",
"private void ensureCapacity() {\n int newSize = elements.length * 2;\n Object[] newElements = new Object[newSize];\n for (int i = 0; i < elements.length; i++) {\n newElements[i] = elements[i];\n }\n elements = newElements;\n }",
"private void ensureCapacity()\n\t{\n\t\tif (elements.length == size)\n\t\t\telements = Arrays.copyOf(elements, 2 * size + 1);\n\t}",
"public void ensureEmptied() {\n }",
"private boolean checkGap() { //Checks if any gap due to previously deleted resv\n\t\tif (numOfReservation == 0)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn !(rList.get(rList.size()-1).getResvNo() == numOfReservation);\n\t}",
"@Test\n\tpublic void getStartingSpaceCorrect(){\n\t\tassertEquals(11, adventurer1.getStartingSpace());\n\t}",
"private boolean hasEnoughSpace(long fileSize) throws IOException\n {\n return (getFolderSize(WRITEDIR) + fileSize) <= WRITE_FOLDER_SIZE_LIMIT;\n }",
"private void ensureCapacity() {\n\t\n\t\tif (elements.length == size) {\n\t\t\tT[] oldElements = elements;\n\t\t\t\n\t\t\telements = (T[]) new Object[2 * elements.length + 1];\n\t\t\t\n\t\t\tSystem.arraycopy(oldElements, 0, elements, 0, size);\n\t\t\n\t\t}\n\t\n\t}",
"private boolean space() {\r\n return CHAR(' ');\r\n }",
"@Before\n public void fetchSpaceFromDao() {\n if (counter == null) {\n counter = new ZeroAbleBlankCounter(space);\n }\n }",
"private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}",
"private boolean ifTooEmpty() {\n if (items.length <= 8) {\n return false;\n }\n float efficiency = (float) size / (float) items.length;\n return efficiency < 0.25;\n }",
"private final void ensureCapacity(final int minCapacity) {\r\n\t\tfinal int oldCapacity = this.elementData.length;\r\n\t\tif (minCapacity > oldCapacity) {\r\n\t\t\tfinal Object[] oldData = this.elementData;\r\n\t\t\tint newCapacity = oldCapacity * 3 / 2 + 1;\r\n\t\t\tif (newCapacity < minCapacity) {\r\n\t\t\t\tnewCapacity = minCapacity;\r\n\t\t\t}\r\n\t\t\tthis.elementData = new TokenStatement[newCapacity];\r\n\t\t\tSystem.arraycopy( oldData, 0, this.elementData, 0, this.size );\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"serial\")\n\t@Test\n\tpublic void testFullContainerSpace(){\n\t\tContainer c = new Container(0,1){\n\t\t\tpublic boolean canAccess(Player player) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t\tc.addItem(new Key(1,1));\n\t\tassertFalse(c.hasSpace());\n\t}",
"public void freeSpace(long space)\n {\n _spaceMonitor.freeSpace(space);\n }",
"public void ensureCapacity(int minCapacity);",
"static boolean checkAvailableSpace(File path, int requiredMb){\n long spaceInMb = path.getUsableSpace() / (1024 * 1024);\n return spaceInMb >= requiredMb;\n }",
"private void checkFreeDiskSpace(List<File> inputFiles) {\n //Check for free space\n long usableSpace = 0;\n long totalSize = 0;\n for (File f : inputFiles) {\n if (f.exists()) {\n totalSize += f.length();\n usableSpace = f.getUsableSpace();\n }\n }\n log.info(\"Total expected store size is {} Mb\",\n new DecimalFormat(\"#,##0.0\").format(totalSize / (1024 * 1024)));\n log.info(\"Usable free space on the system is {} Mb\",\n new DecimalFormat(\"#,##0.0\").format(usableSpace / (1024 * 1024)));\n if (totalSize / (double) usableSpace >= 0.66) {\n throw new OutOfDiskSpace(\"Aborting because there isn't enough free disk space\");\n }\n }",
"private void ensureCapacity() {\n\t\tif (numberOfElements == capacity) {\n\t\t\tT[] newArray = (T[])new Object[(numberOfElements+1) * CAPACITY_MULTIPLIER];\n\t\t\tSystem.arraycopy(elements,0,newArray,0,numberOfElements);\n\t\t\telements = newArray;\n\t\t}\n\t}",
"private static String addAdditionalInformationIfPossible(String msg)\n {\n long unallocatedSpace = freeDiskSpace();\n int segmentSize = DatabaseDescriptor.getCommitLogSegmentSize();\n\n if (unallocatedSpace < segmentSize)\n {\n return String.format(\"%s. %d bytes required for next commitlog segment but only %d bytes available. Check %s to see if not enough free space is the reason for this error.\",\n msg, segmentSize, unallocatedSpace, DatabaseDescriptor.getCommitLogLocation());\n }\n return msg;\n }",
"private boolean isOneSpace(final String message) {\n\t\treturn message.contains(\"1 space\"); //$NON-NLS-1$\n\t}",
"@Override\n\tpublic boolean hasSpace(String email, int size) {\n\t\tint i = searchIndex(email);\n\t\tif (i >= 0 && users[i].spaceAvailable(size) == true)\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}",
"public void checkCapacity(String target, long size) throws Exception;",
"private void Spacing() {\n\n try {\n while (true) {\n try {\n Space();\n } catch (SyntaxError e) {\n Comment();\n }\n }\n } catch (SyntaxError e) {\n }\n }",
"public int space(){\n return (tableSize - usedIndex);\n }",
"void ensure(int count);",
"public void sanityCheck() {\n if ( bucket >= mNumBins ) bucket = mNumBins - 1;\n\n // Sanity check, should not happen.\n if ( bucket < 0 ) bucket = 0;\n }",
"private boolean isNoSpace(final String message) {\n\t\treturn message.contains(\"0 space\"); //$NON-NLS-1$\n\t}",
"private void detectExcessSize() {\n final String overflow = getElement().getStyle().getProperty(\n \"overflow\");\n getElement().getStyle().setProperty(\"overflow\", \"hidden\");\n if (BrowserInfo.get().isIE()\n && getElement().getPropertyInt(\"clientWidth\") == 0) {\n // can't detect possibly themed border/padding width in some\n // situations (with some layout configurations), use empty div\n // to measure width properly\n DivElement div = Document.get().createDivElement();\n div.setInnerHTML(\" \");\n div.getStyle().setProperty(\"overflow\", \"hidden\");\n div.getStyle().setProperty(\"height\", \"1px\");\n getElement().appendChild(div);\n excessWidth = getElement().getOffsetWidth()\n - div.getOffsetWidth();\n getElement().removeChild(div);\n } else {\n excessWidth = getElement().getOffsetWidth()\n - getElement().getPropertyInt(\"clientWidth\");\n }\n excessHeight = getElement().getOffsetHeight()\n - getElement().getPropertyInt(\"clientHeight\");\n \n getElement().getStyle().setProperty(\"overflow\", overflow);\n }",
"@Override\n\tpublic void space() {\n\t\t\n\t}",
"@Override\n public boolean isFull() {\n return false;\n }",
"private void space() {\n if (wereTokens && !spaceSuppressed) {\n out.print(' ');\n }\n }",
"boolean hasCapacity();",
"@Override\n\tpublic int remainingCapacity() {\n\t\treturn 0;\n\t}",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"@Override\n\tpublic long getUsedSpace()\n\t{\n\t\treturn 0;\n\t}",
"public boolean isFull() { return false; }",
"private void check() {\n if (s[s.length-1] != null) {\n for (int i = 0; i < N; i++) {\n s[i] = s[first+i];\n s[first+i] = null;\n }\n first = 0;\n }\n }",
"public boolean isFull(){\n \treturn count==capacity;\n }",
"protected void ensureBufferSpace(int expectedAdditions) {\n final int bufferLen = (buffer == null ? 0 : buffer.length);\n if (elementsCount + expectedAdditions > bufferLen) {\n final int newSize = resizer.grow(bufferLen, elementsCount, expectedAdditions);\n assert newSize >= elementsCount + expectedAdditions : \"Resizer failed to\" + \" return sensible new size: \"\n + newSize + \" <= \" + (elementsCount + expectedAdditions);\n\n this.buffer = Arrays.copyOf(buffer, newSize);\n }\n }",
"private boolean isSpaceFree(Move move) {\n int moveX = move.getMoveX(); \n int moveY = move.getMoveY(); \n if (boardState[moveX][moveY] == 'X' || boardState[moveX][moveY] == 'O') {\n return false; \n }\n return true; \n }",
"public int getNewSpace() {\n if (!isValid()) return 0;\n int ret = 0;\n ret += (getMode().isCollection()) ? getTransportable().getSpaceTaken()\n : -getTransportable().getSpaceTaken();\n if (hasWrapped()) {\n ret += sum(wrapped, Cargo::getNewSpace);\n }\n return ret;\n }",
"public boolean hasQuotaSpace(long filesize) {\r\n\t\tdouble megSize = (usedspace + filesize) / StorageMgr.BYTE_PER_MEG;\r\n\t\treturn ( (quota < 1) || (quota >= megSize));\r\n\t}",
"@Override\n public boolean isFull() {\n return heapSize == heap.length;\n }",
"private void ensureDistances() {\n if (getDistanceEnd() > distances.length) {\n int newLength = distances.length * 4;\n double[] newDistances = new double[newLength];\n System.arraycopy(distances, 0, newDistances, 0, distances.length);\n Arrays.fill(newDistances, distances.length, newLength, -1);\n distances = newDistances;\n }\n }",
"@SuppressWarnings(\"unchecked\") // this will stop Java complaining about the cast\n private void ensureCapacity() {\n if (count == data.length) { //if count is equal to the length of data a new array is made doubling the initial size, it then makes the data collection == to the temp collection\n E[] temp = (E[]) new String[data.length * 2]; //effectivly increasing the size of the array\n for (int i = 0; i < data.length; i++) {\n temp[i] = data[i];\n }\n data = temp;\n }\n }",
"private static boolean toAllocateOrDeallocate() {\n return random.nextInt() % 2 == 0;\n\n }",
"private void checkDomainSizes()\n\t{\n\t\tfor (int var = 0; var < domainSizes.size(); var++)\n\t\t{\n\t\t\tif (domainSizes.get(var) < 1)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Variable \" + var + \" has a domain size of \"\n\t\t\t\t\t\t+ domainSizes.get(var) + \".\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t}",
"public static void ensure() {\n }",
"public boolean hasEnoughSpaceForExecution() {\r\n\t\tlong maxSpaceInHotfolder = Long.parseLong(props.getProperty(\"maxServerSpace\"));\r\n\t\tboolean enoughSpace = false;\r\n\t\ttry {\r\n\t\t\tenoughSpace = hotfolderManager.enoughSpaceAvailable(maxSpaceInHotfolder, inputDavUri, outputDavUri, errorDavUri);\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(\"Could not determine free space in hotfolder (\" + getName() + \")\", e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn enoughSpace;\t\r\n\t}",
"private void check() {\r\n\t\tif(isEmpty()){\r\n\t\t\tthrow new RuntimeException(\"Queue is empty\");\r\n\t\t}\r\n\t}",
"private boolean needToGrow() {\n if(QUEUE[WRITE_PTR] != null) {\n return true;\n }\n else {\n return false;\n }\n }",
"public abstract void PrepareSearchSpace();",
"@Override\n public void ensureCapacity(int index) {\n\n }",
"public void ensureCapacity(int minCap){\n if(minCap > data.length){\n int newCapa = (data.length * 3)/ 2 +1;\n if(newCapa < minCap){\n newCapa = minCap;\n }\n data = Arrays.copyOf(data, newCapa);\n }\n }",
"public void refresh(){\n totalSpace = drv.getTotalSpace();\n freeSpace = drv.getUsableSpace();\n checkSetup();\n }",
"private void ensureCapacity(int count) {\n\t\tint capacity = getCapacity();\n\t\t\n\t\tint newLength = length + count;\n\t\tif (capacity >= newLength)\n\t\t\treturn;\n\n\t\t// Double capacity\n\t\tcapacity <<= 1;\n\t\t\n\t\tif (newLength > capacity)\n\t\t\tcapacity = newLength;\n\n\t\tchar[] newBuffer = new char[capacity];\n\t\tSystem.arraycopy(buffer, 0, newBuffer, 0, length);\n\t\tbuffer = newBuffer;\n\t}",
"@Override\n public boolean isFull(){\n return (count == size);\n \n }",
"private void ensureEmpty(int row, int column)\n {\n // If the specified location in the grid is not empty,\n // remove whatever object is there.\n Location loc = new Location(row, column);\n if ( ! theGrid.isEmpty(loc) )\n theGrid.remove(theGrid.objectAt(loc));\n }",
"private boolean ifFull() {\n return items.length == size;\n }",
"public boolean isFull() {\n return numOfGoods == cargoSpace;\n }",
"public boolean isFull() {\n return false;\n }",
"private void checkStateSizes()\n\t{\n\t\tif (variableNames.size() != domainSizes.size())\n\t\t{\n\t\t\tif (DEBUG)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Variable names length = \"\n\t\t\t\t\t\t+ variableNames.size());\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Domain size length = \" + domainSizes.size());\n\t\t\t}\n\t\t\tSystem.err.println(\"Numbers of state variables in inputs differ.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t}",
"@Override\r\n\tpublic boolean isfull() {\n\t\t\r\n\t\treturn count == size ;\r\n\t}",
"public boolean isFull(){\n\t\treturn false;\n\t}",
"public void checkQuotas() {\n checkQuotas(time.milliseconds());\n }",
"private void ensureCapacity(int capacity) {\n\t\t\tif(capacity > elementData.length) {\n\t\t\t\tint newCap = elementData.length * 2 + 1;\n\t\t\t\tif(capacity > newCap) {\n\t\t\t\t\tnewCap = capacity;\n\t\t\t\t}\n\t\t\t\telementData = Arrays.copyOf(elementData, newCap);\n\t\t\t}\n\t\t}",
"private void checkCapacity(int capacity) \n {\n if (capacity > MAX_CAPACITY)\n throw new IllegalStateException(\"Attempt to create a bag whose \" +\n \"capacity exeeds allowed \" +\n \"maximum of \" + MAX_CAPACITY);\n }",
"public void setCapacity( int space ) {\n\t if (space <= length) return;\n\t int newLength = resize.computeResize( length, space );\n\t \n if (newLength != length) {\n list = (newLength == 0) ? null : makeList( newLength );\n }\n\t}",
"private boolean isFull(){\n return cellSize == Max;\n }",
"public void trimToSize() {\n }",
"private void checkEmptyLine(String line) {\n if (line.substring(5).replace('\\t', ' ')\n .replace('\\n', ' ').trim().length() != 0) {\n throw new IllegalArgumentException(\"Invalid characters after tag.\");\n }\n }",
"public void allocateSpace(long space, long millis)\n throws InterruptedException, MissingResourceException\n {\n \t_logSpaceAllocation.debug(\"ALLOC: <UNKNOWN> : \" + space );\n if (millis == SpaceMonitor.NONBLOCKING) {\n synchronized (_spaceMonitor) {\n if ((_spaceMonitor.getTotalSpace() -\n getPreciousSpace() - _reservedSpace ) < ( 3 * space ) )\n throw new\n\t MissingResourceException(\"Not enough Space Left\",\n this.getClass().getName(),\n \"Space\");\n _spaceMonitor.allocateSpace(space);\n }\n } else if (millis == SpaceMonitor.BLOCKING) {\n _spaceMonitor.allocateSpace(space);\n } else {\n _spaceMonitor.allocateSpace(space, millis);\n }\n }",
"public boolean checkEnoughSpace(int len, int leftWid, int rightWid) {\n switch (facing) {\n case \"Up\":\n return checkUpSpace(position, len, leftWid, rightWid);\n case \"Down\":\n return checkDownSpace(position, len, leftWid, rightWid);\n case \"Left\":\n return checkLeftSpace(position, len, leftWid, rightWid);\n case \"Right\":\n return checkRightSpace(position, len, leftWid, rightWid);\n default:\n System.out.println(\"Where am I looking?\");\n }\n return false;\n }",
"@Test\n public void sizeAndIsEmpty() throws Exception {\n underTest.put(\"start\");\n underTest.put(\"star\");\n underTest.put(\"starter\");\n assert (underTest.isEmpty() == false);\n }"
] | [
"0.7414561",
"0.6824749",
"0.665411",
"0.66155016",
"0.65901285",
"0.64513975",
"0.6403007",
"0.6380043",
"0.6230899",
"0.615775",
"0.61428714",
"0.6134805",
"0.6111103",
"0.60847986",
"0.60676616",
"0.6054727",
"0.5990816",
"0.5939316",
"0.59243745",
"0.5894372",
"0.58552426",
"0.5836801",
"0.5829608",
"0.58277196",
"0.58205974",
"0.58129704",
"0.5792123",
"0.57916445",
"0.5784578",
"0.57742435",
"0.57719284",
"0.5722169",
"0.57023907",
"0.5695611",
"0.56820244",
"0.56631577",
"0.56629366",
"0.5653664",
"0.5616991",
"0.5610379",
"0.56020725",
"0.5594218",
"0.5588872",
"0.5587989",
"0.557229",
"0.5565701",
"0.55653745",
"0.55624",
"0.555243",
"0.555047",
"0.5549419",
"0.55462974",
"0.5544871",
"0.5529026",
"0.5525911",
"0.55022264",
"0.5498746",
"0.54906744",
"0.5485845",
"0.54846597",
"0.54823095",
"0.54750586",
"0.5469632",
"0.54656273",
"0.5459468",
"0.5456314",
"0.5446417",
"0.5438052",
"0.5432122",
"0.54317874",
"0.5430539",
"0.54245776",
"0.542138",
"0.54158324",
"0.54027885",
"0.53943366",
"0.5393256",
"0.5390095",
"0.53866667",
"0.5370541",
"0.5366982",
"0.5358003",
"0.5352686",
"0.5349831",
"0.5348794",
"0.53422534",
"0.5341993",
"0.5326647",
"0.53251433",
"0.5324705",
"0.53184915",
"0.5308577",
"0.5301501",
"0.53007317",
"0.5290122",
"0.5285195",
"0.52842635",
"0.5283324",
"0.52827984",
"0.5273981",
"0.5273531"
] | 0.0 | -1 |
NB: Some ByteBuffers are readonly. But there is no API to check it. Therefore, we make a "best effort" guess based on known readonly types. Since these readonly types are not public, we compare class names rather than checking for type equality or using instanceof. | @Override
public boolean isReadOnly() {
final String className = buffer.getClass().getName();
return className.equals("java.nio.HeapByteBufferR") ||
className.equals("java.nio.DirectByteBufferR");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void checkImmutability() {\n assertThatClassIsImmutableBaseClass(AnnotatedCodec.class);\n assertThatClassIsImmutable(AnnotationsCodec.class);\n assertThatClassIsImmutable(ApplicationCodec.class);\n assertThatClassIsImmutable(ConnectivityIntentCodec.class);\n assertThatClassIsImmutable(ConnectPointCodec.class);\n assertThatClassIsImmutable(ConstraintCodec.class);\n assertThatClassIsImmutable(EncodeConstraintCodecHelper.class);\n assertThatClassIsImmutable(DecodeConstraintCodecHelper.class);\n assertThatClassIsImmutable(CriterionCodec.class);\n assertThatClassIsImmutable(EncodeCriterionCodecHelper.class);\n assertThatClassIsImmutable(DecodeCriterionCodecHelper.class);\n assertThatClassIsImmutable(DeviceCodec.class);\n assertThatClassIsImmutable(EthernetCodec.class);\n assertThatClassIsImmutable(FlowEntryCodec.class);\n assertThatClassIsImmutable(HostCodec.class);\n assertThatClassIsImmutable(HostLocationCodec.class);\n assertThatClassIsImmutable(HostToHostIntentCodec.class);\n assertThatClassIsImmutable(InstructionCodec.class);\n assertThatClassIsImmutable(EncodeInstructionCodecHelper.class);\n assertThatClassIsImmutable(DecodeInstructionCodecHelper.class);\n assertThatClassIsImmutable(IntentCodec.class);\n assertThatClassIsImmutable(LinkCodec.class);\n assertThatClassIsImmutable(PathCodec.class);\n assertThatClassIsImmutable(PointToPointIntentCodec.class);\n assertThatClassIsImmutable(PortCodec.class);\n assertThatClassIsImmutable(TopologyClusterCodec.class);\n assertThatClassIsImmutable(TopologyCodec.class);\n assertThatClassIsImmutable(TrafficSelectorCodec.class);\n assertThatClassIsImmutable(TrafficTreatmentCodec.class);\n assertThatClassIsImmutable(FlowRuleCodec.class);\n }",
"public boolean isEqual(Stack msg, Object obj) {\n if (!(obj instanceof ConstNameAndType)) {\n msg.push(\"obj/obj.getClass() = \"\n + (obj == null ? null : obj.getClass()));\n msg.push(\"this.getClass() = \"\n + this.getClass());\n return false;\n }\n ConstNameAndType other = (ConstNameAndType)obj;\n\n if (!super.isEqual(msg, other)) {\n return false;\n }\n\n if (!this.theName.isEqual(msg, other.theName)) {\n msg.push(String.valueOf(\"theName = \"\n + other.theName));\n msg.push(String.valueOf(\"theName = \"\n + this.theName));\n return false;\n }\n if (!this.typeSignature.isEqual(msg, other.typeSignature)) {\n msg.push(String.valueOf(\"typeSignature = \"\n + other.typeSignature));\n msg.push(String.valueOf(\"typeSignature = \"\n + this.typeSignature));\n return false;\n }\n return true;\n }",
"private void checkNamingCollisions(String typeName, JavaType type, JavaType knownType) {\n\n // If there is no existing type, or if both types are the same then there is no collision\n if (knownType == null || knownType.getRawClass().equals(type.getRawClass())) return;\n\n // Ignore date-time, since multiple classes legitimately map to this\n if (\"date-time\".equals(typeName)) return;\n\n // Ignore if either type is primitive, since the collision is probably with the boxed type\n if (type.isPrimitive() || knownType.isPrimitive()) return;\n\n // Ignore if either type is an enum, since it doesn't need to be represented as a model\n if (type.isEnumType() || knownType.isEnumType()) return;\n\n // Ignore if the types are both containers, since they will map to the same thing\n if (type.isContainerType() && knownType.isContainerType()) return;\n\n // To get here there must be two different types colliding on the name\n throw new IllegalStateException(\"Name collision for name [\" + typeName + \"]. Classes [\" + knownType.getRawClass() + \", \" + type.getRawClass() + \"].\");\n }",
"public static boolean isImmutable(@SuppressWarnings(\"rawtypes\") Class t) {\n\t\t// 按使用频繁程度判断\n\t\treturn t == String.class\n\t\t\t\t|| t == Integer.class || t == Long.class\n\t\t\t\t|| t == Boolean.class || t == Short.class\n\t\t\t\t|| t == Byte.class || t == Character.class\n\t\t\t\t|| t == Float.class || t == Double.class\n\t\t\t\t|| t.isPrimitive()\n\t\t\t\t//|| t == BigInteger.class || t == BigDecimal.class || t.isEnum()\n\t\t\t\t;\n\t}",
"private Class isPrimitive(String className) {\n Class result = null;\n switch (className) {\n case (\"Byte\"):\n case (\"byte\"):\n result = Byte.class;\n break;\n\n case (\"Short\"):\n case (\"short\"):\n result = Short.class;\n break;\n\n case (\"Integer\"):\n case (\"int\"):\n result = Integer.class;\n break;\n\n case (\"Long\"):\n case (\"long\"):\n result = Long.class;\n break;\n\n case (\"Float\"):\n case (\"float\"):\n result = Float.class;\n break;\n\n case (\"Double\"):\n case (\"double\"):\n result = Double.class;\n break;\n\n case (\"Boolean\"):\n case (\"boolean\"):\n result = Boolean.class;\n break;\n\n case (\"Character\"):\n case (\"char\"):\n result = Character.class;\n break;\n case(\"String\"):\n result = String.class;\n break;\n\n }\n return result;\n }",
"@java.lang.Override public boolean hasType() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"@java.lang.Override public boolean hasType() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"@java.lang.Override public boolean hasType() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"@java.lang.Override public boolean hasType() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"public boolean isThisType(String name) {\n // Since we can't always determine it from the name alone (blank\n // extensions), we open the file and call the block verifier.\n long len = new File(name).length();\n int count = len < 16384 ? (int) len : 16384;\n byte[] buf = new byte[count];\n try {\n FileInputStream fin = new FileInputStream(name);\n int read = 0;\n while (read < count) {\n read += fin.read(buf, read, count-read);\n }\n fin.close();\n return isThisType(buf);\n }\n catch (IOException e) {\n return false;\n }\n }",
"@java.lang.Override public boolean hasType() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"@java.lang.Override public boolean hasType() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"@java.lang.Override public boolean hasType() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"@java.lang.Override public boolean hasType() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"private boolean isBinaryMessage(Object anObject) {\n\t\tif(anObject.getClass() == this.getClass()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean classifyAsRefType(String name, TypeImpl superType) {\n switch (name) {\n case CAS.TYPE_NAME_BOOLEAN:\n case CAS.TYPE_NAME_BYTE:\n case CAS.TYPE_NAME_SHORT:\n case CAS.TYPE_NAME_INTEGER:\n case CAS.TYPE_NAME_LONG:\n case CAS.TYPE_NAME_FLOAT:\n case CAS.TYPE_NAME_DOUBLE:\n case CAS.TYPE_NAME_STRING:\n // case CAS.TYPE_NAME_JAVA_OBJECT:\n // case CAS.TYPE_NAME_MAP:\n // case CAS.TYPE_NAME_LIST:\n return false;\n }\n // superType is null for TOP, which is a Ref type\n if (superType != null && superType.getName().equals(CAS.TYPE_NAME_STRING)) { // can't compare to\n // stringType - may\n // not be set yet\n return false;\n }\n return true;\n }",
"public abstract byte getType();",
"protected static boolean checkTypeReferences() {\n Map<Class<?>, LinkedList<Class<?>>> missingTypes = new HashMap<>();\n for (Map.Entry<String, ClassProperties> entry : classToClassProperties.entrySet()) {\n String className = entry.getKey();\n Class<?> c = lookupClass(className);\n Short n = entry.getValue().typeNum;\n if (marshalledTypeNum(n)) {\n Class<?> superclass = getValidSuperclass(c);\n if (superclass != null)\n checkClassPresent(c, superclass, missingTypes);\n LinkedList<Field> fields = getValidClassFields(c);\n for (Field f : fields) {\n Class<?> fieldType = getFieldType(f);\n checkClassPresent(c, fieldType, missingTypes);\n }\n }\n }\n if (missingTypes.size() > 0) {\n for (Map.Entry<Class<?>, LinkedList<Class<?>>> entry : missingTypes.entrySet()) {\n Class<?> c = entry.getKey();\n LinkedList<Class<?>> refs = entry.getValue();\n String s = \"\";\n for (Class<?> ref : refs) {\n if (s != \"\")\n s += \", \";\n s += \"'\" + getSimpleClassName(ref) + \"'\";\n }\n Log.error(\"Missing type '\" + getSimpleClassName(c) + \"' is referred to by type(s) \" + s);\n }\n Log.error(\"Aborting code generation due to missing types\");\n return false;\n }\n else\n return true;\n }",
"@Test\n public void cache_diff_type() {\n ClassData a = ValueSerDeGenerator.generate(context(), typeOf(MockDataModel.class));\n ClassData b = ValueSerDeGenerator.generate(context(), typeOf(MockKeyValueModel.class));\n assertThat(b, is(not(cacheOf(a))));\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isThisType(byte[] block) {\n return block.length >= 8 && block[0] == 0 && block[1] == 0 &&\n block[2] == -1 && block[3] == -1 && block[4] == 105 &&\n block[5] == 109 && block[6] == 112 && block[7] == 114;\n }",
"@Override public byte isBitShape(Type t) { throw AA.unimpl(); }",
"public boolean match(ReflectClass classReflector);",
"public boolean hasType() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"boolean isReflectable();",
"public boolean hasType() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"protected void checkSubclass() {\n }",
"public int checkAndGetTypeLength() {\n return checkAndGetTypeLength(this.byteArr);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public static byte findTypeByName(String name) {\n if (name == null) return NULL;\n else if (\"boolean\".equalsIgnoreCase(name)) return BOOLEAN;\n else if (\"byte\".equalsIgnoreCase(name)) return BYTE;\n else if (\"int\".equalsIgnoreCase(name)) return INTEGER;\n else if (\"biginteger\".equalsIgnoreCase(name)) return BIGINTEGER;\n else if (\"bigdecimal\".equalsIgnoreCase(name)) return BIGDECIMAL;\n else if (\"long\".equalsIgnoreCase(name)) return LONG;\n else if (\"float\".equalsIgnoreCase(name)) return FLOAT;\n else if (\"double\".equalsIgnoreCase(name)) return DOUBLE;\n else if (\"datetime\".equalsIgnoreCase(name)) return DATETIME;\n else if (\"bytearray\".equalsIgnoreCase(name)) return BYTEARRAY;\n else if (\"bigchararray\".equalsIgnoreCase(name)) return BIGCHARARRAY;\n else if (\"chararray\".equalsIgnoreCase(name)) return CHARARRAY;\n else if (\"map\".equalsIgnoreCase(name)) return MAP;\n else if (\"internalmap\".equalsIgnoreCase(name)) return INTERNALMAP;\n else if (\"tuple\".equalsIgnoreCase(name)) return TUPLE;\n else if (\"bag\".equalsIgnoreCase(name)) return BAG;\n else if (\"generic_writablecomparable\".equalsIgnoreCase(name)) return GENERIC_WRITABLECOMPARABLE;\n else return UNKNOWN;\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000002) != 0);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000004) != 0);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"protected void _checkInvalidCopy(Class<?> exp)\n/* */ {\n/* 335 */ if (getClass() != exp) {\n/* 336 */ throw new IllegalStateException(\"Failed copy(): \" + getClass().getName() + \" (version: \" + version() + \") does not override copy(); it has to\");\n/* */ }\n/* */ }",
"@Override\n public byte[] getClassBytes(String name) {\n return null;\n }",
"private Boolean areCompatible(Class a, Class b) {\n return (a.isAssignableFrom(b) || b.isAssignableFrom(a));\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000002) != 0);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000004) != 0);\n }",
"public boolean isObjectReference(Class<?> paramClass) {\n/* 196 */ if (paramClass == null) {\n/* 197 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 200 */ return (paramClass.isInterface() && Object.class\n/* 201 */ .isAssignableFrom(paramClass));\n/* */ }",
"@Test\n public void checkEquals() {\n EqualsVerifier.forClass(GenericMessageDto.class).usingGetClass()\n .suppress(Warning.NONFINAL_FIELDS).verify();\n }",
"public static Class<?> isVersionOf(String className) {\n return versionOf.get(className.hashCode());\n }",
"@Test(timeout = 4000)\n public void test029() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(16777267);\n Type type0 = Type.VOID_TYPE;\n Type type1 = Type.BYTE_TYPE;\n Type.getObjectType(\"The prefix must not be null\");\n Type type2 = Type.INT_TYPE;\n Item item0 = new Item();\n frame0.execute(132, 164, classWriter0, item0);\n Class<ObjectInputStream> class0 = ObjectInputStream.class;\n Type.getType(class0);\n Type.getType(\")UBbE;._%G\");\n Type type3 = Type.BYTE_TYPE;\n Type type4 = Type.INT_TYPE;\n // Undeclared exception!\n try { \n type0.getElementType();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"abstract protected boolean checkType(String myType);",
"boolean hasByteCode();",
"private boolean compareBytes(byte [] buffer, int offset, String str) {\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tif ( ((byte) (str.charAt(i))) != buffer[i + offset]) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n boolean doIsAssignableFromNonUnionType(SoyType srcType) {\n return false;\n }",
"@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}",
"public boolean hasByteCode() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"private static void checkRawType(RawType type,\n Object... classVersionPairs) {\n TestCase.assertNotNull(type);\n TestCase.assertNotNull(classVersionPairs);\n TestCase.assertTrue(classVersionPairs.length % 2 == 0);\n\n for (int i = 0; i < classVersionPairs.length; i += 2) {\n String clsName = (String) classVersionPairs[i];\n int clsVersion = (Integer) classVersionPairs[i + 1];\n TestCase.assertEquals(clsName, type.getClassName());\n TestCase.assertEquals(clsVersion, type.getVersion());\n type = type.getSuperType();\n }\n TestCase.assertNull(type);\n }",
"public boolean hasByteCode() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean isValue(Class<?> paramClass) {\n/* 125 */ if (paramClass == null) {\n/* 126 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 129 */ return (\n/* 130 */ !paramClass.isInterface() && Serializable.class\n/* 131 */ .isAssignableFrom(paramClass) && \n/* 132 */ !Remote.class.isAssignableFrom(paramClass));\n/* */ }",
"public boolean isSameWithBoxing(Class<?> c) {\n return c.equals(primitive) || c.equals(boxed);\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"private boolean filterClass(Class<?> clz) {\n String name = clz.getSimpleName();\n return !clz.isMemberClass() && (scans.size() == 0 || scans.contains(name)) && !skips.contains(name);\n }",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}"
] | [
"0.55800074",
"0.5394711",
"0.53393894",
"0.5258869",
"0.52421975",
"0.52356774",
"0.52356774",
"0.52356774",
"0.52356774",
"0.5226328",
"0.5211583",
"0.5211583",
"0.5211583",
"0.5211583",
"0.5154162",
"0.5134059",
"0.5129738",
"0.51094544",
"0.51064914",
"0.50605655",
"0.5020248",
"0.5011865",
"0.49549377",
"0.4936394",
"0.49289417",
"0.49289417",
"0.49289417",
"0.49184605",
"0.49170336",
"0.49170336",
"0.4916612",
"0.4916612",
"0.49140868",
"0.49131042",
"0.49001306",
"0.49001306",
"0.49001306",
"0.48786524",
"0.48710728",
"0.48669818",
"0.48542666",
"0.48534322",
"0.48525122",
"0.48525122",
"0.48525122",
"0.48523957",
"0.48511946",
"0.48391405",
"0.4835697",
"0.48308825",
"0.48308825",
"0.48308825",
"0.48265198",
"0.48265198",
"0.48265198",
"0.48265198",
"0.48265198",
"0.48265198",
"0.48265198",
"0.48265198",
"0.48265198",
"0.48265198",
"0.48261955",
"0.4821341",
"0.481604",
"0.4815388",
"0.4809761",
"0.48073006",
"0.4806498",
"0.4794681",
"0.47911453",
"0.4786528",
"0.47833577",
"0.47832888",
"0.47832888",
"0.47832888",
"0.47832888",
"0.47832888",
"0.47832888",
"0.47832888",
"0.47832888",
"0.47832888",
"0.47832888",
"0.4773732",
"0.47732547",
"0.47538248",
"0.47521165",
"0.47381225",
"0.47381225",
"0.47381225",
"0.47369418",
"0.4730391",
"0.4719303",
"0.47176164",
"0.47171804",
"0.47171804",
"0.47171804",
"0.47163028",
"0.4715634",
"0.4715634"
] | 0.600204 | 0 |
The capabilities that the checker is responsible for enforcing. | public interface JPRACheckerCapabilitiesType
{
/**
* @return The set of supported {@code integer} sizes in records
*/
ImmutableList<RangeInclusiveB> getRecordIntegerSizeBitsSupported();
/**
* @param size The size in bits
*
* @return {@code true} iff {@code integer} types of the given size are
* supported in records
*/
boolean isRecordIntegerSizeBitsSupported(BigInteger size);
/**
* @param size The size in bits
*
* @return {@code true} iff {@code float} types of the given size are
* supported in records
*/
boolean isRecordFloatSizeBitsSupported(BigInteger size);
/**
* @param size The size in elements
*
* @return {@code true} iff vectors of the given size are supported
*/
boolean isVectorSizeElementsSupported(BigInteger size);
/**
* @param width The number of matrix columns
* @param height The number of matrix rows
*
* @return {@code true} iff matrices of the given size are supported in
* records
*/
boolean isMatrixSizeElementsSupported(
BigInteger width,
BigInteger height);
/**
* @return The set of supported {@code float} sizes in records
*/
ImmutableList<RangeInclusiveB> getRecordFloatSizeBitsSupported();
/**
* @param encoding The encoding
*
* @return {@code true} iff the given string encoding is supported
*/
boolean isStringEncodingSupported(
String encoding);
/**
* @return The set of supported string encodings
*/
ImmutableSet<String> getStringEncodingsSupported();
/**
* @return The set of supported vector sizes
*/
ImmutableList<RangeInclusiveB> getVectorSizeSupported();
/**
* @param size The size in bits
*
* @return {@code true} iff {@code integer} types of the given size are
* supported in vectors
*/
boolean isVectorIntegerSizeSupported(BigInteger size);
/**
* @return The set of supported {@code integer} sizes in vectors
*/
ImmutableList<RangeInclusiveB> getVectorIntegerSizeSupported();
/**
* @param size The size in bits
*
* @return {@code true} iff {@code float} types of the given size are
* supported in vectors
*/
boolean isVectorFloatSizeSupported(BigInteger size);
/**
* @return The set of supported {@code float} sizes in vectors
*/
ImmutableList<RangeInclusiveB> getVectorFloatSizeSupported();
/**
* @return The set of supported matrix sizes
*/
ImmutableList<Pair<RangeInclusiveB, RangeInclusiveB>>
getMatrixSizeElementsSupported();
/**
* @param size The size in bits
*
* @return {@code true} iff {@code integer} types of the given size are
* supported in matrices
*/
boolean isMatrixIntegerSizeSupported(BigInteger size);
/**
* @return The set of supported {@code integer} sizes in matrices
*/
ImmutableList<RangeInclusiveB> getMatrixIntegerSizeSupported();
/**
* @param size The size in bits
*
* @return {@code true} iff {@code float} types of the given size are
* supported in matrices
*/
boolean isMatrixFloatSizeSupported(BigInteger size);
/**
* @return The set of supported {@code float} sizes in matrices
*/
ImmutableList<RangeInclusiveB> getMatrixFloatSizeSupported();
/**
* @return The set of supported {@code integer} sizes in {@code packed} types
*/
ImmutableList<RangeInclusiveB> getPackedIntegerSizeBitsSupported();
/**
* @param size The size in bits
*
* @return {@code true} iff {@code integer} types of the given size are
* supported in {@code packed} types
*/
boolean isPackedIntegerSizeBitsSupported(BigInteger size);
/**
* @return The set of supported {@code packed} type sizes
*/
ImmutableList<RangeInclusiveB> getPackedSizeBitsSupported();
/**
* @param size The size in bits
*
* @return {@code true} iff {@code packed} types of the given size are
* supported
*/
boolean isPackedSizeBitsSupported(BigInteger size);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract List<AbstractCapability> getCapabilities();",
"public List<String> capabilities() {\n return this.capabilities;\n }",
"Capabilities getCapabilities();",
"public String getCapabilities() {\n return this.capabilities;\n }",
"public List<String> getCapabilities() {\n if (capabilities == null) {\n return new ArrayList<>();\n }\n return capabilities;\n }",
"public Map<Class<?>, Class<?>[]> getCapabilities();",
"Set<Capability> getAvailableCapability();",
"public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n result.disableAll();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n result.enable(Capability.NUMERIC_ATTRIBUTES);\n result.enable(Capability.DATE_ATTRIBUTES);\n result.enable(Capability.MISSING_VALUES);\n\n // class\n result.enable(Capability.NOMINAL_CLASS);\n result.enable(Capability.NUMERIC_CLASS);\n result.enable(Capability.DATE_CLASS);\n result.enable(Capability.MISSING_CLASS_VALUES);\n\n return result;\n }",
"@Override\n public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n result.enable(Capability.RELATIONAL_ATTRIBUTES);\n result.disable(Capability.MISSING_VALUES);\n\n // class\n result.disableAllClasses();\n result.disableAllClassDependencies();\n result.enable(Capability.BINARY_CLASS);\n\n // Only multi instance data\n result.enable(Capability.ONLY_MULTIINSTANCE);\n\n return result;\n }",
"public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n\n // class\n result.enable(Capability.NOMINAL_CLASS);\n result.enable(Capability.MISSING_CLASS_VALUES);\n \n return result;\n }",
"public Capabilities getCapabilities() {\n Capabilities result = super.getCapabilities();\n\n // attributes\n result.enable(Capability.NOMINAL_ATTRIBUTES);\n result.enable(Capability.NUMERIC_ATTRIBUTES);\n result.enable(Capability.DATE_ATTRIBUTES);\n result.enable(Capability.MISSING_VALUES);\n\n // class\n result.enable(Capability.NOMINAL_CLASS);\n result.enable(Capability.MISSING_CLASS_VALUES);\n\n // instances\n result.setMinimumNumberInstances(0);\n \n return result;\n }",
"public ArrayList getCapabilities() {\n\treturn _capabilities;\n }",
"Set<ICapability> getAllCapabilities();",
"public void setCapabilities(String capabilities) {\n this.capabilities = capabilities;\n }",
"private List<String> initializeRequiredCapabilities() {\n // Required device capabilities\n\n String[] capabilityEntries = {V3PO_CAPABILITY, INTERFACES_CAPABILITY};\n return Arrays.asList(capabilityEntries);\n }",
"public SupportedCapabilities supportedCapabilities() {\n return this.supportedCapabilities;\n }",
"public List<DeviceDescriptionCapability> getCapabilities() {\n return capabilities;\n }",
"void getCapabilties(Browser browser, DesiredCapabilities caps);",
"Set<String> listCapabilities();",
"@Override\n\tpublic Capabilities getCapabilities() {\n\t\treturn null;\n\t}",
"public interface Capability\n{\n String BUNDLE = \"bundle\";\n String FRAGMENT = \"fragment\";\n String PACKAGE = \"package\";\n String SERVICE = \"service\";\n String EXECUTIONENVIRONMENT = \"ee\";\n\n /**\n * Return the name of the capability.\n *\n */\n String getName();\n\n /**\n * Return the properties of this capability\n *\n * @return\n */\n Property[] getProperties();\n\n /**\n * Return the map of properties.\n *\n * @return a Map<String,Object>\n */\n Map<String, Object> getPropertiesAsMap();\n\n /**\n * Return the directives of this capability. The returned map\n * can not be modified.\n *\n * @return a Map of directives or an empty map there are no directives.\n */\n Map<String, String> getDirectives();\n}",
"List<ResourceSkuCapabilities> capabilities();",
"public java.lang.Boolean getFeatureCapabilitiesSupported() {\r\n return featureCapabilitiesSupported;\r\n }",
"public Capabilities() {\n super();\n this.caps = new HashSet<ICapability>();\n }",
"public Class<? extends Capabilities> getCapabilitiesClass() {\n return capabilitiesClass;\n }",
"public interface DriverCapabilities {\r\n\r\n\t/**\r\n\t * Allows custom capabilities to be set.\r\n\t * \r\n\t * @param browser\r\n\t * The browser to set capabilities specific to browser being\r\n\t * used.\r\n\t * @param caps\r\n\t * The capabilities object to add additional capabilities to.\r\n\t */\r\n\tvoid getCapabilties(Browser browser, DesiredCapabilities caps);\r\n}",
"public interface ICapabilityProvider {\n\n /**\n * Unique ID for this Provider\n *\n * @return\n */\n String getId();\n\n /**\n * Get a list of Capability IDs found by the provider\n *\n * @return\n */\n Set<String> listCapabilities();\n\n /**\n * Get a Capability by ID\n *\n * @param id\n * @return\n */\n ICapability getCapabilityById( String id );\n\n\n /**\n * Returns true if capability exists, if not return false\n *\n * @param id\n * @return\n */\n boolean capabilityExist( String id );\n\n /**\n * Get a set containing all ICapabilities\n *\n * @return\n */\n Set<ICapability> getAllCapabilities();\n}",
"boolean has(String capability);",
"public int getSupportedCapabilities(Transport transport) {\n Integer capabilities = supportedCapabilities.get(transport);\n return capabilities == null ? 0 : capabilities;\n }",
"public Capability getCapability() {\n\t\treturn _capability;\n\t}",
"public void maybeMarkCapabilitiesRestricted() {\n // Check if we have any capability that forces the network to be restricted.\n final boolean forceRestrictedCapability =\n (mNetworkCapabilities & FORCE_RESTRICTED_CAPABILITIES) != 0;\n\n // Verify there aren't any unrestricted capabilities. If there are we say\n // the whole thing is unrestricted unless it is forced to be restricted.\n final boolean hasUnrestrictedCapabilities =\n (mNetworkCapabilities & UNRESTRICTED_CAPABILITIES) != 0;\n\n // Must have at least some restricted capabilities.\n final boolean hasRestrictedCapabilities =\n (mNetworkCapabilities & RESTRICTED_CAPABILITIES) != 0;\n\n if (forceRestrictedCapability\n || (hasRestrictedCapabilities && !hasUnrestrictedCapabilities)) {\n removeCapability(NET_CAPABILITY_NOT_RESTRICTED);\n }\n }",
"public Collection<String> getRequireFeature();",
"public long getSupports();",
"NegotiableCapabilitySet getServerCapabilities() throws RemoteException;",
"EReqOrCap getReq_cap();",
"public Collection<Resolver> getSupports() {\r\n return Collections.unmodifiableCollection(supports);\r\n }",
"public final CapabilityBlock getCapability() {\n return cap;\n }",
"protected DesiredCapabilities getCapabilitiesForChrome(ExtentTest currentTest, ExtentReportGenerator extentReportGenerator){ //local physical device support for android still pending\n\t\tDesiredCapabilities desCap = new DesiredCapabilities();\n\t\t//desired caps go here\n\t\treturn desCap;\n\t}",
"DeviceCapabilitiesProvider getDeviceCapabilitiesProvider();",
"public String getCapabilityConfiguration() {\n return this.capabilityConfiguration;\n }",
"public abstract List<AbstractRequirement> getRequirements();",
"public List<? extends Requirement> getRequirements();",
"private static IReasoner checkForCapabilitiy(IReasoner reasoner, IReasonerCapability capability) {\r\n IReasoner result = null;\r\n if (null != reasoner) {\r\n ReasonerDescriptor desc = reasoner.getDescriptor();\r\n if (null != desc) {\r\n if (desc.hasCapability(capability)) {\r\n result = reasoner;\r\n }\r\n }\r\n }\r\n return result;\r\n }",
"ImmutableList<ResourceRequirement> getRequirements();",
"public Collection<Requirement> getGenericRequirements();",
"public ImageInformation withCapabilities(List<String> capabilities) {\n this.capabilities = capabilities;\n return this;\n }",
"boolean supportsAccepts();",
"String getCapability_name();",
"public boolean getHonorConstraints()\r\n {\r\n return (m_honorConstraints);\r\n }",
"public boolean supportsPreemptiveAuthorization() {\n/* 225 */ return true;\n/* */ }",
"CapabilitiesType createCapabilitiesType();",
"@Test\n public void determine_provider_capabilities() {\n Provider bouncyCastleProvider = Security.getProvider(\"BC\");\n assertThat(bouncyCastleProvider, is(notNullValue()));\n /**\n * Get the KeySet where the provider keep a list of it's\n * capabilities\n */\n Iterator<Object> capabilitiesIterator = bouncyCastleProvider.keySet().iterator();\n while(capabilitiesIterator.hasNext()){\n String capability = (String) capabilitiesIterator.next();\n\n if(capability.startsWith(\"Alg.Alias.\")) {\n capability = capability.substring(\"Alg.Alias.\".length());\n }\n\n String factoryClass = capability.substring(0, capability.indexOf(\".\"));\n String name = capability.substring(factoryClass.length() + 1);\n\n assertThat(factoryClass, is(not(isEmptyOrNullString())));\n assertThat(name, is(not(isEmptyOrNullString())));\n\n System.out.println(String.format(\"%s : %s\", factoryClass, name));\n }\n }",
"@Override\n public CapabilityPriorityLevel getMediaControlCapabilityLevel() {\n return CapabilityPriorityLevel.HIGH;\n }",
"public DeviceDescription setCapabilities(List<DeviceDescriptionCapability> capabilities) {\n this.capabilities = capabilities;\n return this;\n }",
"boolean hasCaptureProbabilities();",
"public String getExperienceRequirements() {\r\n return experienceRequirements;\r\n }",
"@Override\n public void prepareAMResourceRequirements(ClusterDescription clusterSpec,\n Resource capability) {\n\n }",
"public AndroidDriver<AndroidElement> Capabilities() throws MalformedURLException {\n\t\t\n\t\t\n\t\t\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\n\t\tcap.setCapability(MobileCapabilityType.PLATFORM_NAME, \"Andriod\");\n\t\t//cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, \"9\");\n\t\tcap.setCapability(MobileCapabilityType.DEVICE_NAME, \"Android Device\");\n\t\tcap.setCapability(MobileCapabilityType.BROWSER_NAME, \"chrome\");\n\t\tcap.setCapability(MobileCapabilityType.BROWSER_VERSION, \"76.0\");\n\t\tcap.setCapability(MobileCapabilityType.AUTOMATION_NAME, \"uiautomator2\");\n\t\t\n\t\t//connection to server\n\t\t//AndroidDriver driver = new AndroidDriver(IPaddressOfserver,capabilities); // This will invokes android object. see below\n\t\t\n\t\tAndroidDriver<AndroidElement> driver = new AndroidDriver<AndroidElement>(new URL(\"http://0.0.0.0:4723/wd/hub\"),cap); // IP address of every local host in any machine is http://127.0.0.1\n\t\treturn driver;\n\t\t\n\t}",
"public Collection<String> getProvideFeature();",
"List<PolicyEngineFeatureApi> getFeatureProviders();",
"protected boolean canAccept(RequiredSpecs specs){\r\n\t\tif(getMemory() > specs.getMemory() && getCpu() > specs.getCpu()){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Test\n public void checkIfSupportedTest() {\n assertTrue(EngineController.checkIfSupported(\"getMaxRotateSpeed\"));\n assertTrue(EngineController.checkIfSupported(\"rotate 10 1\"));\n assertTrue(EngineController.checkIfSupported(\"orient\"));\n // check interface, that specific for engine\n assertTrue(EngineController.checkIfSupported(\"getMaxThrust\"));\n assertTrue(EngineController.checkIfSupported(\"getCurrentThrust\"));\n assertTrue(EngineController.checkIfSupported(\"setThrust 333\"));\n }",
"@Override\n public Capabilities getMultiInstanceCapabilities() {\n Capabilities result = super.getCapabilities();\n\n // class\n result.disableAllClasses();\n result.enable(Capability.NO_CLASS);\n\n return result;\n }",
"@Test(groups={\"ut\"})\r\n\tpublic void testCreateCapabilitiesWithUserDefined() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n\t\tcontext.setPlatform(\"android\");\r\n\t\tcontext.setDeviceName(\"Samsung Galasy S8\");\r\n\t\tcontext.setApp(\"\");\r\n\t\tcontext.setAppiumCapabilities(\"key1=value1;key2=value2\");\r\n\t\t\r\n\t\tDriverConfig config = new DriverConfig(context);\r\n\t\t\r\n\t\t\r\n\t\tAndroidCapabilitiesFactory capaFactory = new AndroidCapabilitiesFactory(config);\r\n\t\tMutableCapabilities capa = capaFactory.createCapabilities();\r\n\t\t\r\n\t\tAssert.assertEquals(capa.getCapability(\"key1\"), \"value1\");\r\n\t\tAssert.assertEquals(capa.getCapability(\"key2\"), \"value2\");\r\n\r\n\t}",
"private void writeCapabilities( DataOutput out ) throws IOException {\n\tlong capabilities = 0;\n\tlong frequentCapabilities = 0;\n\n\tfor ( int i=0;i<64;i++ ) {\n\t if ( node.getCapability( i ) ) capabilities |= (1L << i);\n\t if ( !(node.getCapabilityIsFrequent( i )) ) frequentCapabilities |= (1L << i);\n\t}\n out.writeLong( capabilities );\n out.writeLong( frequentCapabilities );\n }",
"public boolean requiresSecurityPolicy()\n {\n return true;\n }",
"UsabilityRequirement createUsabilityRequirement();",
"public boolean canRequestPower();",
"GetCapabilitiesType createGetCapabilitiesType();",
"private static Element appendExtendedCapabilities( OWSCapabilitiesBaseType_1_0 capabilities,\n Element root, URI namespace, String prefix ) {\n LOG.entering();\n Element cap = XMLTools.appendElement( root, namespace, prefix + \"Capability\" );\n Element sams = XMLTools.appendElement( cap, namespace,\n prefix + \"SupportedAuthenticationMethodList\" );\n\n ArrayList<SupportedAuthenticationMethod> methods = capabilities.getAuthenticationMethods();\n for ( SupportedAuthenticationMethod method : methods )\n appendSupportedAuthenticationMethod( sams, method );\n\n LOG.exiting();\n return cap;\n }",
"public byte[] getBytes() {\n\n byte[] data = new byte[CAPABILITY_LENGTH];\n Marshall.writeInt2(data, 0, CAPABILITY_LENGTH);\n Marshall.writeInt2(data, 2, gID);\n Marshall.writeInt2(data, 4, supportMask);\n Marshall.writeInt2(data, 6, DEF_MAXREADAHEADK);\n return data;\n }",
"public Capabilities getCapabilities(WebDriver driver) {\n return ((RemoteWebDriver) driver).getCapabilities();\n }",
"public void setFeatureCapabilitiesSupported(java.lang.Boolean featureCapabilitiesSupported) {\r\n this.featureCapabilitiesSupported = featureCapabilitiesSupported;\r\n }",
"@Override\n public CapabilityPriorityLevel getPriorityLevel(Class<? extends CapabilityMethods> clazz) {\n if (clazz != null) {\n if (clazz.equals(MediaPlayer.class)) {\n return getMediaPlayerCapabilityLevel();\n } else if (clazz.equals(MediaControl.class)) {\n return getMediaControlCapabilityLevel();\n }\n }\n return CapabilityPriorityLevel.NOT_SUPPORTED;\n }",
"boolean getIsSupportComp();",
"public boolean isSupported() {\n\t\treturn true;\r\n\t}",
"boolean isApplicable(SecurityMode securityMode);",
"public final void mT__46() throws RecognitionException {\n try {\n int _type = T__46;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:46:7: ( 'capabilities' )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:46:9: 'capabilities'\n {\n match(\"capabilities\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"Iterable<PrimaryPolicyMetadata> getApplicablePolicies();",
"public Boolean getMustSupport() { \n\t\treturn getMustSupportElement().getValue();\n\t}",
"public void setCapability(Capability value) {\n\t\tthis._capability = value;\n\t}",
"public String getRequirements() { \n\t\treturn getRequirementsElement().getValue();\n\t}",
"public AmqpReceiverOptions setCapabilities(List<String> capabilities) {\n this.capabilities = capabilities;\n return this;\n }",
"public FastProvisioningEditionCapability() {\n }",
"NetworkCapabilities getNetworkCapabilities() {\n int size;\n NetworkCapabilities result = new NetworkCapabilities();\n boolean z = false;\n result.addTransportType(0);\n ArrayList<String> apnTypes = new ArrayList();\n for (ApnContext apnContext : this.mApnContexts.keySet()) {\n apnTypes.add(apnContext.getApnType());\n }\n boolean isBipNetwork = (this.mConnectionParams == null || this.mConnectionParams.mApnContext == null || this.mDct == null || !this.mDct.isBipApnType(this.mConnectionParams.mApnContext.getApnType())) ? false : true;\n if (this.mApnSetting != null) {\n ArrayList<ApnSetting> securedDunApns = this.mDct.fetchDunApns();\n String[] types = this.mApnSetting.types;\n if (enableCompatibleSimilarApnSettings()) {\n types = getCompatibleSimilarApnSettingsTypes(this.mApnSetting, this.mDct.getAllApnList());\n }\n int length = types.length;\n int i = 0;\n while (i < length) {\n String type = types[i];\n boolean shouldDropMeterApn = (this.mRestrictedNetworkOverride || this.mConnectionParams == null || !this.mConnectionParams.mUnmeteredUseOnly || !ApnSetting.isMeteredApnType(type, this.mPhone)) ? z : true;\n if (!shouldDropMeterApn) {\n int hashCode = type.hashCode();\n switch (hashCode) {\n case 3023943:\n if (type.equals(\"bip0\")) {\n hashCode = 10;\n break;\n }\n case 3023944:\n if (type.equals(\"bip1\")) {\n hashCode = 11;\n break;\n }\n case 3023945:\n if (type.equals(\"bip2\")) {\n hashCode = 12;\n break;\n }\n case 3023946:\n if (type.equals(\"bip3\")) {\n hashCode = 13;\n break;\n }\n case 3023947:\n if (type.equals(\"bip4\")) {\n hashCode = 14;\n break;\n }\n case 3023948:\n if (type.equals(\"bip5\")) {\n hashCode = 15;\n break;\n }\n case 3023949:\n if (type.equals(\"bip6\")) {\n hashCode = 16;\n break;\n }\n default:\n switch (hashCode) {\n case -1490587420:\n if (type.equals(\"internaldefault\")) {\n hashCode = 18;\n break;\n }\n case 42:\n if (type.equals(CharacterSets.MIMENAME_ANY_CHARSET)) {\n hashCode = 0;\n break;\n }\n case 3352:\n if (type.equals(\"ia\")) {\n hashCode = 8;\n break;\n }\n case 98292:\n if (type.equals(\"cbs\")) {\n hashCode = 7;\n break;\n }\n case 99837:\n if (type.equals(\"dun\")) {\n hashCode = 4;\n break;\n }\n case 104399:\n if (type.equals(\"ims\")) {\n hashCode = 6;\n break;\n }\n case 108243:\n if (type.equals(\"mms\")) {\n hashCode = 2;\n break;\n }\n case 3149046:\n if (type.equals(\"fota\")) {\n hashCode = 5;\n break;\n }\n case 3541982:\n if (type.equals(\"supl\")) {\n hashCode = 3;\n break;\n }\n case 3673178:\n if (type.equals(\"xcap\")) {\n hashCode = 17;\n break;\n }\n case 1544803905:\n if (type.equals(\"default\")) {\n hashCode = 1;\n break;\n }\n case 1629013393:\n if (type.equals(\"emergency\")) {\n hashCode = 9;\n break;\n }\n }\n hashCode = -1;\n break;\n }\n switch (hashCode) {\n case 0:\n result.addCapability(12);\n result.addCapability(0);\n if (DcTracker.CT_SUPL_FEATURE_ENABLE && !apnTypes.contains(\"supl\") && this.mDct.isCTSimCard(this.mPhone.getSubId())) {\n log(\"ct supl feature enabled and apncontex didn't contain supl, didn't add supl capability\");\n } else {\n result.addCapability(1);\n }\n result.addCapability(3);\n result.addCapability(4);\n result.addCapability(5);\n result.addCapability(7);\n size = securedDunApns.size();\n for (hashCode = 0; hashCode < size; hashCode++) {\n if (this.mApnSetting.equals(securedDunApns.get(hashCode))) {\n result.addCapability(2);\n result.addCapability(23);\n result.addCapability(24);\n result.addCapability(25);\n result.addCapability(26);\n result.addCapability(27);\n result.addCapability(28);\n result.addCapability(29);\n result.addCapability(9);\n result.addCapability(30);\n break;\n }\n }\n result.addCapability(23);\n result.addCapability(24);\n result.addCapability(25);\n result.addCapability(26);\n result.addCapability(27);\n result.addCapability(28);\n result.addCapability(29);\n result.addCapability(9);\n result.addCapability(30);\n break;\n case 1:\n result.addCapability(12);\n break;\n case 2:\n result.addCapability(0);\n break;\n case 3:\n if (!DcTracker.CT_SUPL_FEATURE_ENABLE || apnTypes.contains(\"supl\") || !this.mDct.isCTSimCard(this.mPhone.getSubId())) {\n result.addCapability(1);\n break;\n }\n log(\"ct supl feature enabled and apncontex didn't contain supl, didn't add supl capability\");\n break;\n break;\n case 4:\n result.addCapability(2);\n break;\n case 5:\n result.addCapability(3);\n break;\n case 6:\n result.addCapability(4);\n break;\n case 7:\n result.addCapability(5);\n break;\n case 8:\n result.addCapability(7);\n break;\n case 9:\n result.addCapability(10);\n break;\n case 10:\n result.addCapability(23);\n break;\n case 11:\n result.addCapability(24);\n break;\n case 12:\n result.addCapability(25);\n break;\n case 13:\n result.addCapability(26);\n break;\n case 14:\n result.addCapability(27);\n break;\n case 15:\n result.addCapability(28);\n break;\n case 16:\n result.addCapability(29);\n break;\n case 17:\n result.addCapability(9);\n break;\n case 18:\n result.addCapability(30);\n break;\n default:\n break;\n }\n }\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Dropped the metered \");\n stringBuilder.append(type);\n stringBuilder.append(\" for the unmetered data call.\");\n log(stringBuilder.toString());\n i++;\n z = false;\n }\n if ((this.mConnectionParams == null || !this.mConnectionParams.mUnmeteredUseOnly || this.mRestrictedNetworkOverride) && this.mApnSetting.isMetered(this.mPhone)) {\n result.removeCapability(11);\n } else {\n result.addCapability(11);\n }\n z = this.mHwCustDataConnection != null && this.mHwCustDataConnection.isNeedReMakeCapability();\n if (z) {\n result = this.mHwCustDataConnection.getNetworkCapabilities(types, result, this.mApnSetting, this.mDct);\n }\n if (!isBipNetwork) {\n result.maybeMarkCapabilitiesRestricted();\n }\n }\n boolean z2 = this.mRestrictedNetworkOverride && !isBipNetwork;\n if (z2) {\n result.removeCapability(13);\n result.removeCapability(2);\n }\n int up = 14;\n int down = 14;\n size = this.mRilRat;\n if (size != 19) {\n switch (size) {\n case 1:\n up = 80;\n down = 80;\n break;\n case 2:\n up = 59;\n down = 236;\n break;\n case 3:\n up = 384;\n down = 384;\n break;\n case 4:\n case 5:\n up = 14;\n down = 14;\n break;\n case 6:\n up = 100;\n down = 100;\n break;\n case 7:\n up = 153;\n down = 2457;\n break;\n case 8:\n up = 1843;\n down = 3174;\n break;\n case 9:\n up = 2048;\n down = 14336;\n break;\n case 10:\n up = 5898;\n down = 14336;\n break;\n case 11:\n up = 5898;\n down = 14336;\n break;\n case 12:\n up = 1843;\n down = 5017;\n break;\n case 13:\n up = 153;\n down = 2516;\n break;\n case 14:\n up = 51200;\n down = 102400;\n break;\n case 15:\n up = 11264;\n down = 43008;\n break;\n }\n }\n up = 51200;\n down = 102400;\n result.setLinkUpstreamBandwidthKbps(up);\n result.setLinkDownstreamBandwidthKbps(down);\n result.setNetworkSpecifier(new StringNetworkSpecifier(Integer.toString(this.mPhone.getSubId())));\n result.setCapability(18, this.mPhone.getServiceState().getDataRoaming() ^ 1);\n result.addCapability(20);\n if ((this.mSubscriptionOverride & 1) != 0) {\n result.addCapability(11);\n }\n if ((this.mSubscriptionOverride & 2) != 0) {\n result.removeCapability(20);\n }\n return result;\n }",
"private static boolean hasCapacityForMultiEvaluation() {\n // return true;\n int threshold = 3;\n int available = Runtime.getRuntime().availableProcessors() * ServerRunner.getProcessorMultiplier();\n return available >= threshold;\n }",
"private static DesiredCapabilities getBrowserCapabilities(String browserType) {\r\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\r\n\t\tswitch (browserType) {\r\n\t\tcase \"firefox\":\r\n\t\t\tSystem.out.println(\"Opening firefox driver\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tbreak;\r\n\t\tcase \"chrome\":\r\n\t\t\tSystem.out.println(\"Opening chrome driver\");\r\n\t\t\tcap = DesiredCapabilities.chrome();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"browser : \" + browserType + \" is invalid, Launching Firefox as browser of choice..\");\r\n\t\t\tcap = DesiredCapabilities.firefox();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn cap;\r\n\t}",
"boolean isAchievable();",
"public abstract Ability[] getAbilities();",
"@Override\n public int getProcessgetCapabilitie() {\n return 0;\n }",
"boolean isFeatureSupported(String feature);",
"private boolean isHardwareLevelSupported(\n CameraCharacteristics characteristics, int requiredLevel) {\n int deviceLevel = characteristics.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL);\n if (deviceLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY) {\n return requiredLevel == deviceLevel;\n }\n // deviceLevel is not LEGACY, can use numerical sort\n return requiredLevel <= deviceLevel;\n }",
"Requires getRequires();",
"public String getProductServiceSpecificationOperationalRequirements() {\n return productServiceSpecificationOperationalRequirements;\n }",
"private DesiredCapabilities getChromeCapabilities(DesiredCapabilities chromeCapabilities) {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"G:\\\\workspace\\\\Jarvis\\\\src\\\\test\\\\resources\\\\lib\\\\chromedriver.exe\");\n\t\t\n\t\tchromeCapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\tchromeCapabilities.setCapability(CapabilityType.SUPPORTS_ALERTS, true);\n\t\tchromeCapabilities.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.ACCEPT);\n\t\treturn chromeCapabilities;\n\t}",
"public List<ConditionalRequirement> getConditions() {\r\n return conditions;\r\n }",
"public int getMetaPrivileges();",
"public static short[] getPolicies() {\n\t\treturn POLICIES;\n\t}",
"boolean capabilityExist( String id );",
"Feature getFeature();"
] | [
"0.7482343",
"0.7436938",
"0.74242365",
"0.7397665",
"0.7223231",
"0.71518403",
"0.7144062",
"0.71404356",
"0.71089417",
"0.70973897",
"0.7060107",
"0.6982036",
"0.67757237",
"0.677354",
"0.67537403",
"0.6745724",
"0.6685272",
"0.6629514",
"0.6588393",
"0.6481201",
"0.63877314",
"0.63756806",
"0.6350417",
"0.62935007",
"0.6266288",
"0.62661624",
"0.6214212",
"0.62075704",
"0.61965454",
"0.6178386",
"0.60247487",
"0.60233885",
"0.60130554",
"0.59937596",
"0.5906922",
"0.5858046",
"0.5849927",
"0.58492184",
"0.5849215",
"0.58459705",
"0.58082366",
"0.5744248",
"0.5719983",
"0.56530005",
"0.5647421",
"0.56342965",
"0.5608224",
"0.5550408",
"0.5547005",
"0.5519142",
"0.5501436",
"0.5500459",
"0.54894423",
"0.54831135",
"0.54441196",
"0.5431765",
"0.5429152",
"0.54222924",
"0.54201114",
"0.54037076",
"0.5394334",
"0.53808707",
"0.53590846",
"0.5353413",
"0.5339253",
"0.5331414",
"0.5300225",
"0.52911717",
"0.5271846",
"0.5269996",
"0.52610815",
"0.52477133",
"0.5235837",
"0.52288014",
"0.5214206",
"0.5214107",
"0.52110434",
"0.5180911",
"0.5159181",
"0.51582617",
"0.51536494",
"0.5149411",
"0.5148531",
"0.5144812",
"0.5139051",
"0.51217836",
"0.51177204",
"0.5109106",
"0.5108422",
"0.5099455",
"0.5096593",
"0.50956786",
"0.5093985",
"0.509296",
"0.5087292",
"0.50744593",
"0.50541735",
"0.5052261",
"0.50413704",
"0.503729"
] | 0.6240637 | 26 |
TODO Autogenerated method stub | public void swim()
{
System.out.println(super.getName() + " is swimming");
} | {
"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 | @Override
public void fishfloat()
{
System.out.println(super.getName() + " is floating");
} | {
"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 |
compiles a stack of individual QueryTerms into a single function that can be evaluated against the full set of bookmarks. query terms are initially all pushed onto a stack, then composed in reverse order to provide lefttoright evaluation. | private QueryFunction compile(Stack<QueryTerm> queryTerms) {
if (queryTerms.isEmpty()) return (s, r) -> s;
return (s, r) -> Queries.of(queryTerms.pop()).apply(compile(queryTerms).apply(s, r), r);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ArrayList<WordDocument> customDijkstrasTwoStack(String[] input){\n Stack<String> signs = new Stack<String>();\n Stack<ArrayList<WordDocument>> values = new Stack<ArrayList<WordDocument>>();\n String tempWord0 = null;\n String tempWord1 = null;\n\n for(int i = 0; i < input.length; i++) {\n String t = input[i];\n\n if (t.equals(\"(\") || t.equals(\"\")) ;\n else if (isSignOperator(t)) {\n signs.push(t);\n }else if (t.equals(\")\")) {\n ArrayList<WordDocument> value = new ArrayList<WordDocument>();\n String sign = signs.pop();\n String subQuery = tempWord0 + \" \" + sign + \" \" + tempWord1;\n\n if(tempWord0 != null && tempWord1 != null && cache.isCached(subQuery)) {\n value = cache.getCachedResult(subQuery);\n\n tempWord0 = null;\n tempWord1 = null;\n }else{\n ArrayList<WordDocument> documentsOfWord0;\n ArrayList<WordDocument> documentsOfWord1;\n\n if(tempWord0 != null && tempWord1 != null){\n documentsOfWord0 = getDocumentsWhereWordExists(tempWord0);\n documentsOfWord1 = getDocumentsWhereWordExists(tempWord1);\n }else{\n documentsOfWord1 = values.pop();\n documentsOfWord0 = values.pop();\n }\n\n if (sign.equals(\"+\")) {\n value = intersection(documentsOfWord0, documentsOfWord1);\n } else if (sign.equals(\"-\"))\n value = difference(documentsOfWord0, documentsOfWord1);\n else if (sign.equals(\"|\"))\n value = union(documentsOfWord0, documentsOfWord1);\n\n\n if(tempWord0 != null && tempWord1 != null)\n cache.addToCache(subQuery, value);\n\n tempWord0 = null;\n tempWord1 = null;\n }\n\n values.push(value);\n }else if(t.toLowerCase().equals(\"orderby\")){\n break;\n }else{\n if(tempWord0 == null)\n tempWord0 = t;\n else\n tempWord1 = t;\n }\n }\n\n return values.pop();\n }",
"private void topEval(Stack<Operator> pOperatorStack, Stack<Operand> pOperandStack) {\n Operand right = pOperandStack.pop();\n Operator operator = pOperatorStack.pop();\n if (operator instanceof UnaryOperator) {\n pOperandStack.push(((UnaryOperator)operator).evaluate(right));\n } else {\n Operand left = pOperandStack.pop();\n pOperandStack.push(((BinaryOperator)operator).evaluate(left, right));\n }\n }",
"private Operation expression1(Scope scope, Vector queue)\r\n {\r\n follower.add(Keyword.QUESTIONMARKSY);\r\n Operation op = expression2(scope, queue);\r\n follower.remove(follower.size() - 1);\r\n\r\n if (nextSymbol == Keyword.QUESTIONMARKSY)\r\n {\r\n Operation a = new Operation();\r\n a.operator = nextSymbol;\r\n a.right = conditionalExpr(scope, queue);\r\n a.left = op;\r\n op = a;\r\n }\r\n\r\n return op;\r\n }",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\t\r\n\t\tString BETTEST = \"/+8*62-9*43\";\r\n\r\n\r\n\t\tBinaryExpressionTree<String>listBET = new BinaryExpressionTree<String>();\r\n\r\n\t\tfor (int i = 0; i < BETTEST.length(); i++) {\r\n\t\t\t\r\n\t\t\tlistBET.add(\"\" + BETTEST.charAt(i));\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\tlistBET.PreorderTraversal();\r\n\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\tlistBET.PostorderTraversal();\r\n\r\n\r\n\t\t String BETTEST2 =\"/+84*32\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET2 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST2.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET2.add(\"\" + BETTEST2.charAt(i));\t\r\n\t\t\r\n\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET2.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET2.PostorderTraversal();\r\n\t\t\t\r\n String BETTEST3 =\"*-92/31\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET3 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST3.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET3.add(\"\" + BETTEST3.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t System.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET3.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\t\r\n\t\t\tlistBET3.PostorderTraversal();\r\n \r\n\t\t\tString BETTEST4 =\"-/*8043\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET4 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST4.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET4.add(\"\" + BETTEST4.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET4.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET4.PostorderTraversal();\r\n}",
"public static void main(String[] args) {\n \n LinkedBinaryTree expr = new LinkedBinaryTree<String>();\n // a is the root of the tree\n Position a, b, c, d, e, f, g, h, i;\n a = expr.addRoot(\"*\");\n b = expr.addLeft(a, \"+\");\n c = expr.addLeft(b, \"/\");\n d = expr.addLeft(c, \"*\");\n e = expr.addLeft(d, \"+\");\n expr.addLeft(e, \"5\");\n expr.addRight(e, \"2\");\n f = expr.addRight(d, \"-\");\n expr.addLeft(f, \"2\");\n expr.addRight(f, \"1\");\n g = expr.addRight(c, \"+\");\n expr.addLeft(g, \"2\");\n expr.addRight(g, \"9\");\n h = expr.addRight(b, \"-\");\n i = expr.addLeft(h, \"-\");\n expr.addLeft(i, \"7\");\n expr.addRight(i, \"2\");\n expr.addRight(h, \"1\");\n expr.addRight(a, \"8\");\n \n System.out.println(\"The original expression:\");\n System.out.println(\"(((5+2)*(2–1)/(2+9)+((7–2)–1))*8)\\n\");\n \n System.out.println(\"Preorder traversal:\");\n Iterable<Position<String>> preIter = expr.preorder();\n for (Position<String> s : preIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Inorder traversal:\");\n Iterable<Position<String>> inIter = expr.inorder();\n for (Position<String> s : inIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Postorder traversal:\");\n Iterable<Position<String>> postIter = expr.postorder();\n for (Position<String> s : postIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Breadth traversal:\");\n Iterable<Position<String>> breadthIter = expr.breadthfirst();\n for (Position<String> s : breadthIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Parenthesized representation:\"); \n printParenthesize(expr, a);\n System.out.println();\n }",
"@Override\n public void popOperands(Stack<ExpNode> stack) {\n this.expr = stack.pop();\n }",
"final public Expression Collection(Exp stack) throws ParseException {\n ArrayList<Expression> list;\n Expression node, head;\n RDFList rlist;\n int arobase = ASTQuery.L_DEFAULT, save = ASTQuery.L_LIST;\n list = new ArrayList<Expression>();\n save = astq.getListType();\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case AT:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n jj_consume_token(ATLIST);\n arobase = ASTQuery.L_LIST; astq.setListType(arobase);\n break;\n case ATPATH:\n case AT:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case AT:\n jj_consume_token(AT);\n break;\n case ATPATH:\n jj_consume_token(ATPATH);\n break;\n default:\n jj_la1[225] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n arobase = ASTQuery.L_PATH; astq.setListType(arobase);\n break;\n default:\n jj_la1[226] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n break;\n default:\n jj_la1[227] = jj_gen;\n ;\n }\n jj_consume_token(LPAREN);\n label_42:\n while (true) {\n node = GraphNode(stack);\n list.add(node);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case Q_IRIref:\n case QNAME_NS:\n case QNAME:\n case BLANK_NODE_LABEL:\n case VAR1:\n case VAR2:\n case ATLIST:\n case ATPATH:\n case TRUE:\n case FALSE:\n case INTEGER:\n case DECIMAL:\n case DOUBLE:\n case STRING_LITERAL1:\n case STRING_LITERAL2:\n case STRING_LITERAL_LONG1:\n case STRING_LITERAL_LONG2:\n case LPAREN:\n case LBRACKET:\n case ANON:\n case AT:\n ;\n break;\n default:\n jj_la1[228] = jj_gen;\n break label_42;\n }\n }\n jj_consume_token(RPAREN);\n head = list(stack, list, arobase);\n astq.setListType(save);\n {if (true) return head;}\n throw new Error(\"Missing return statement in function\");\n }",
"private Operation expression2(Scope scope, Vector queue)\r\n {\r\n Operation root = expression3(scope, queue);\r\n\r\n if (infix.contains(nextSymbol))\r\n root = expression2Rest(root, scope, queue);\r\n\r\n return root;\r\n }",
"public static int expression()\r\n {\r\n //get the start state of this term\r\n int r,t1,f1;\r\n t1=r=term();\r\n\r\n //if there is no more input, we are done\r\n if(index>expression.length()-1)\r\n {\r\n return r;\r\n }\r\n\r\n //if this is concatenation\r\n if(expression.charAt(index)=='.'||isVocab(expression.charAt(index))||expression.charAt(index)=='\\\\'\r\n ||expression.charAt(index)=='['||expression.charAt(index)=='(')\r\n {\r\n //get the start state of this expression and\r\n //update next1 and next2\r\n int t2,cur;\r\n cur=state-1;\r\n t2=expression();\r\n if(stateList.get(cur).getNext1()==stateList.get(cur).getNext2())\r\n {\r\n stateList.get(cur).setNext1(t2);\r\n }\r\n stateList.get(cur).setNext2(t2);\r\n\r\n }\r\n\r\n //if there is no more input, we are done\r\n if(index>=expression.length())\r\n {\r\n return r;\r\n }\r\n\r\n //if this is alternation\r\n if(expression.charAt(index)=='|')\r\n {\r\n //if there is nothing after '|', it is a invalid expression\r\n index++;\r\n if(index>expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n //create a branch state,set the nex1 of the branch state to the term\r\n //so a|b and a|b|c both work\r\n int t2;\r\n f1=state-1;\r\n\r\n state st=new state(state,\"BR\",t1,-1);\r\n stateList.add(st);\r\n r=state;\r\n state++;\r\n\r\n //get the start state of this expression\r\n t2=expression();\r\n\r\n //update the branch state's next2 to the start state of the expression\r\n stateList.get(f1+1).setNext2(t2);\r\n\r\n //update term's next1 and next2\r\n if(stateList.get(f1).getNext1()==stateList.get(f1).getNext2())\r\n {\r\n stateList.get(f1).setNext1(state);\r\n }\r\n stateList.get(f1).setNext2(state);\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n return r;\r\n }",
"private void termQuerySearch(String[] terms) {\n for (String term : terms) {\n LinkedList<TermPositions> postingLists = indexMap.get(analyzeTerm(term));\n if (postingLists != null) {\n for (TermPositions matches : postingLists) {\n double score = (double) 1 + Math.log((double) matches.getPositionList().size()) *\n Math.log((double) N / (double) postingLists.size());\n resultsCollector.add(new DocCollector(matches.getDocId(), score));\n }\n }\n }\n }",
"private static List<Token> toReversePolishNotation(List<Token> tokens) {\n Stack<Token> operators = new Stack<>();\n List<Token> result = new LinkedList<>();\n\n Map<PredicateTokens, Consumer<Token>> tokensActions = new HashMap<>();\n tokensActions.put(PredicateTokens.VALUE, result::add);\n tokensActions.put(PredicateTokens.NEGATION, operators::push);\n tokensActions.put(PredicateTokens.OPEN_BRACKET, operators::push);\n tokensActions.put(PredicateTokens.CLOSE_BRACKET, t -> {\n while (PredicateTokens.OPEN_BRACKET != toPredicateToken(operators.peek())) {\n result.add(operators.pop());\n }\n\n operators.pop();\n });\n tokensActions.put(PredicateTokens.OR, t -> {\n try {\n while (PredicateTokens.NEGATION == toPredicateToken(operators.peek())\n || PredicateTokens.AND == toPredicateToken(operators.peek())) {\n result.add(operators.pop());\n }\n } catch (EmptyStackException ignored) {\n }\n\n operators.add(t);\n });\n tokensActions.put(PredicateTokens.AND, t -> {\n try {\n while (PredicateTokens.NEGATION == toPredicateToken(operators.peek())) {\n result.add(operators.pop());\n }\n } catch (EmptyStackException ignored) {\n }\n\n operators.add(t);\n });\n\n for (Token t : tokens) {\n tokensActions.get(toPredicateToken(t)).accept(t);\n }\n\n while (!operators.isEmpty()) {\n result.add(operators.pop());\n }\n\n return result;\n }",
"public static void main(String[] args) {\n String input = \"( ( 1 + sqrt ( 5 ) ) / 2 )\";\n Stack<String> ops = new Stack<String>();\n Stack<Double> vals = new Stack<Double>();\n String[] temps = input.split(\" \");\n for (String temp : temps) {\n\n if (temp.equals(\"(\")) ;\n else if (temp.equals(\"+\")) ops.push(temp);\n else if (temp.equals(\"-\")) ops.push(temp);\n else if (temp.equals(\"*\")) ops.push(temp);\n else if (temp.equals(\"/\")) ops.push(temp);\n else if (temp.equals(\"sqrt\")) ops.push(temp);\n else if (temp.equals(\")\")){\n String op = ops.pop();\n double v = vals.pop();\n if (op.equals(\"+\")) v = vals.pop() + v;\n else if (op.equals(\"-\")) v = vals.pop() - v;\n else if (op.equals(\"*\")) v = vals.pop() * v;\n else if (op.equals(\"/\")) v = vals.pop() / v;\n else if (op.equals(\"sqrt\")) v = Math.sqrt(v);\n vals.push(v);\n }else {\n vals.push(Double.parseDouble(temp));\n }\n }\n System.out.println(vals.pop());\n }",
"@Override\n\tpublic String visitExpr(MicroParser.ExprContext ctx) {\n\t\tString prefix = visit(ctx.expr_prefix());\n\t\tString expr = prefix + visit(ctx.term());\n\t\t\n\t\t//System.out.println(\"in visit expr: \"+expr);\n\t\t//System.out.println(\"in visit expr: prefix is: \"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return expr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = expr.split(\"\\\\-|\\\\+\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> addops = new ArrayList<Character>();\n\t \n\t for(int i=0;i<expr.length();i++) {\n\t \tif(expr.charAt(i)=='+' || expr.charAt(i)=='-')\n\t \t\taddops.add(expr.charAt(i));\n\t }\n\t //create a list of addops\n\t \n\t //create a list of operands \n\t for(String i:ids) \n\t \t operands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t temp = new Temporary(type);\n\t result = temp.fullName;\n\t tempList.addT(temp);\n\t //System.out.println(\"in visit expr, ops are: \"+op1+\" \"+ op2);\n\t //System.out.println(\"in visit expr, result is: \"+ result);\n\t if(addops.get(0)=='+') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t \n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(addops.get(0)=='+') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result; \n\t\t\n\t}",
"static QueryVariant getTermsQuery(Map<String, ?> terms, boolean mustMatchAll) {\n\t\tBoolQuery.Builder fb = QueryBuilders.bool();\n\t\tint addedTerms = 0;\n\t\tboolean noop = true;\n\t\tQueryVariant bfb = null;\n\n\t\tfor (Map.Entry<String, ?> term : terms.entrySet()) {\n\t\t\tObject val = term.getValue();\n\t\t\tif (!StringUtils.isBlank(term.getKey()) && val != null && Utils.isBasicType(val.getClass())) {\n\t\t\t\tString stringValue = val.toString();\n\t\t\t\tif (StringUtils.isBlank(stringValue)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tMatcher matcher = Pattern.compile(\".*(<|>|<=|>=)$\").matcher(term.getKey().trim());\n\t\t\t\tif (matcher.matches()) {\n\t\t\t\t\tbfb = range(matcher.group(1), term.getKey(), stringValue);\n\t\t\t\t} else {\n\t\t\t\t\tif (nestedMode()) {\n\t\t\t\t\t\tbfb = (QueryVariant) term(new org.apache.lucene.search.\n\t\t\t\t\t\t\t\tTermQuery(new Term(term.getKey(), stringValue))).build();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbfb = QueryBuilders.term().field(term.getKey()).value(v -> v.stringValue(stringValue)).build();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (mustMatchAll) {\n\t\t\t\t\tfb.must(bfb._toQuery());\n\t\t\t\t} else {\n\t\t\t\t\tfb.should(bfb._toQuery());\n\t\t\t\t}\n\t\t\t\taddedTerms++;\n\t\t\t\tnoop = false;\n\t\t\t}\n\t\t}\n\t\tif (addedTerms == 1 && bfb != null) {\n\t\t\treturn bfb;\n\t\t}\n\t\treturn noop ? null : fb.build();\n\t}",
"public String evaluate(String statement) {\n // TODO: Implement the logic here\n\n if (statement == null | statement == \"\"){\n return null;\n }\n\n String addition = \"+\";\n String substraction = \"-\";\n String multiplication = \"*\";\n String division = \"/\";\n String leftbracket = \"(\";\n String rightbracket = \")\";\n\n Stack<String> temporaryStack = new Stack<>();\n Stack<String> inputStack = new Stack<>();\n Stack<String> outputStack = new Stack<>();\n Stack<String> stackOperators = new Stack<>();\n Stack<String> reverseStack = new Stack<>();\n Stack<Double> computingStack = new Stack<>();\n\n String crutch = \"crutch\";\n stackOperators.push(crutch);\n inputStack.push(crutch);\n\n Double leftNumber;\n Double rightNumber;\n Double outResult;\n int stackCounter = 1;\n int reverseCounter = 0;\n\n String solution;\n\n if (statement.contains(\",\") | statement.contains(\"..\") | statement.contains(\"//\")| statement.contains(\"**\") | statement.contains(\"++\") |\n statement.contains(\"--\")) {\n return null;\n }\n\n//преобразование выражения в обратную польскую нотацию\n StringTokenizer stTok = new StringTokenizer(statement, \"+-*/()\", true);\n while (stTok.hasMoreTokens()) {\n temporaryStack.push(stTok.nextToken());\n stackCounter++;\n }\n while (!temporaryStack.isEmpty()){\n inputStack.push(temporaryStack.peek());\n temporaryStack.pop();\n }\n\n for (int i=1; i<stackCounter; i++){\n if (Character.isDigit(inputStack.peek().charAt(0))){\n outputStack.push(inputStack.peek());\n inputStack.pop();\n }\n else if (stackOperators.peek().equals(crutch) && (inputStack.peek().equals(addition) |\n inputStack.peek().equals(substraction) | inputStack.peek().equals(multiplication) |\n inputStack.peek().equals(division))){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(addition) | inputStack.peek().equals(substraction)){\n while (stackOperators.peek().equals(addition) | stackOperators.peek().equals(substraction) |\n stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(multiplication) | inputStack.peek().equals(division)){\n while (stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(leftbracket)){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(rightbracket)){\n while (!stackOperators.peek().equals(leftbracket)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n if (stackOperators.peek().equals(crutch)){\n return null;\n }\n inputStack.pop();\n stackOperators.pop();\n }\n }\n while (!stackOperators.peek().equals(crutch)){\n if (stackOperators.peek().equals(leftbracket) | stackOperators.peek().equals(rightbracket)){\n return null;\n } else {\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n\n }\n while (!outputStack.isEmpty()){\n reverseStack.push(outputStack.peek());\n outputStack.pop();\n reverseCounter++;\n }\n\n//вычисление выражения\n for (int i=0; i<reverseCounter; i++){\n if (Character.isDigit(reverseStack.peek().charAt(0))) {\n computingStack.push(Double.parseDouble(reverseStack.peek()));\n }\n else if (reverseStack.peek().equals(addition)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber + rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(substraction)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber - rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(multiplication)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber * rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(division)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n if (rightNumber!=0){\n outResult = leftNumber / rightNumber;\n computingStack.push(outResult);\n } else\n return null;\n }\n reverseStack.pop();\n }\n\n DecimalFormat myFormatter = new DecimalFormat(\"#.####\");\n String format = myFormatter.format(computingStack.peek());\n\n solution = format.replace( ',', '.');\n\n return solution;\n }",
"public static int evaluateExpression(String expression) {\r\n // Create operandStack of ints to store operands\r\n Stack<Integer> operandStack = new Stack<>();\r\n \r\n // Create operatorStack of characters to store operators\r\n Stack<Character> operatorStack = new Stack<>();\r\n \r\n // Insert Blanks\r\n expression = insertBlanks(expression);\r\n \r\n // Extract operands and operators by splitting around blanks\r\n String[] tokens = expression.split(\" \");\r\n \r\n /* Phase 1: Scan tokens\r\n Enhanced for loop, puts every element of tokens in token each time\r\n Like writing token = tokens[i] every time\r\n */\r\n for (String token: tokens) { \r\n if(token.length() == 0) // It's a blank\r\n continue; // Go to the while loop\r\n else if (token.charAt(0) == '+' || token.charAt(0) == '-') {\r\n // process all +, -, *, / in the top of the operator stack\r\n while (!operatorStack.isEmpty() && // While stack isn't empty\r\n (operatorStack.peek() == '+' || // and has an operator on top\r\n operatorStack.peek() == '-' || // Like if you had (2 * 3) + 5 \r\n operatorStack.peek() == '*' || // Or if you had (2 - 3) + 5, do that last no matter what b/c +- is lowest priority\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n // After processing the all the previous operations, push the +- operator onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '*' || token.charAt(0) == '/') {\r\n // Proess all *, / in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '*' ||\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the * or / onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '^') {\r\n // Proess all ^ in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the ^ onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if(token.trim().charAt(0) == '(') {\r\n operatorStack.push('(');\r\n } \r\n else if(token.trim().charAt(0) == ')') {\r\n while(operatorStack.peek() != '(') {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n operatorStack.pop(); // pop\r\n }\r\n else {\r\n operandStack.push(new Integer(token));\r\n }\r\n }\r\n // Phase two: process everything left over\r\n while (!operatorStack.isEmpty()) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n return operandStack.pop(); \r\n }",
"public String evaluate(ArrayList<String> expression)\n {\n Stack<String> Values = new Stack<String>(), Operations = new Stack<String>();\n\n for (int i = 0; i < expression.size(); i++)\n\t\t{\n\t\t\tif (expression.get(i).equals(\"(\"))\n Operations.push(expression.get(i));\n else if (expression.get(i).equals(\")\"))\n {\n while (Operations.peek().equals(\"(\"))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.pop();\n }\n else if (expression.get(i).equals(\"+\") || expression.get(i).equals(\"-\") || expression.get(i).equals(\"*\") || expression.get(i).equals(\"/\"))\n {\n while (!Operations.empty() && precedence(expression.get(i), Operations.peek()))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.push(expression.get(i));\n }\n\t\t\telse\n\t\t\t{\n\t\t\t\tValues.push(expression.get(i));\n\t\t\t}\n }\n while (!Operations.empty())\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n return Values.pop();\n }",
"public void buildSymbols() \n {\n scalars = new ArrayList <ScalarSymbol>();\n arrays = new ArrayList <ArraySymbol>();\n Stack <String> symbols = new Stack <String>();\n StringTokenizer st = new StringTokenizer(expr, delims, true); \n String token = \"\";\n \n while (st.hasMoreTokens())\n {\n token = st.nextToken();\n if ((token.charAt(0) >= 'a' && token.charAt(0) <= 'z') || (token.charAt(0) >= 'A' && token.charAt(0) <= 'Z' || token.equals(\"[\")))\n symbols.push(token); \n }\n while(!symbols.isEmpty())\n {\n token = symbols.pop();\n if (token.equals(\"[\"))\n {\n token = symbols.pop();\n ArraySymbol aSymbol = new ArraySymbol(token);\n if(arrays.indexOf(aSymbol) == -1)\n arrays.add(aSymbol);\n }\n else \n {\n ScalarSymbol sSymbol = new ScalarSymbol(token);\n if (scalars.indexOf(sSymbol) == -1)\n scalars.add(sSymbol);\n }\n }\n System.out.println(arrays);\n System.out.println(scalars);\n }",
"private String evaluate(String expression) {\n String separators = \"()*+/-\";\n String result;\n // Stack for using in algorithm\n Stack<String> stackOperations = new Stack<String>();\n // Stack for RPN - reverse polish notation\n Stack<String> stackRPN = new Stack<String>();\n // Stack for evaluating answer\n Stack<String> stackTemp = new Stack<String>();\n //splitting expression into tokens\n StringTokenizer stringTokenizer = new StringTokenizer(updateUnaryMinus(expression), separators, true);\n\n while (stringTokenizer.hasMoreTokens()) {\n String token = stringTokenizer.nextToken();\n if (isNumber(token)) {\n stackRPN.push(token);\n } else if (isOpenBracket(token)) {\n stackOperations.push(token);\n } else if (isCloseBracket(token)) {\n while (!isOpenBracket(stackOperations.lastElement())) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.pop();\n } else if (isOperator(token)) {\n while (!stackOperations.empty() && isOperator(stackOperations.lastElement())\n && getPrecedence(stackOperations.lastElement()) > getPrecedence(token)) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.push(token);\n }\n }\n while (!stackOperations.empty()) {\n stackRPN.push(stackOperations.pop());\n }\n Collections.reverse(stackRPN);\n\n // Evaluation if RPN expression\n while (!stackRPN.empty()) {\n if (isNumber(stackRPN.lastElement())) stackTemp.push(stackRPN.pop());\n else stackTemp.push(makeOperation(stackRPN.pop(), stackTemp.pop(), stackTemp.pop()));\n }\n result = stackTemp.pop();\n return result;\n }",
"public int eval(String expression) {\n String token;\n // The 3rd argument is true to indicate that the delimiters should be used\n // as tokens, too. \n this.tokenizer = new StringTokenizer(expression, DELIMITERS, true);\n\n //initialized with # operator, used as bogus to compare priorities and detect end of operatorStack.\n operatorStack.push(new PoundOperator());\n\n //Checks whether there are more tokens to be pushed in stacks\n while (this.tokenizer.hasMoreTokens()) {\n // filter out spaces\n if (!(token = this.tokenizer.nextToken()).equals(\" \")) {\n // check if token is an operand\n if (Operand.check(token)) {\n operandStack.push(new Operand(token));\n\n } else {\n if (!Operator.check(token)) {\n System.out.println(\"*****invalid token******\");\n System.exit(1);\n }\n\n //Gets a newOperator it matches from hashmap.\n Operator newOperator = Operator.getToken(token);\n\n //Processes only, when there is greater priority in stack and there are no '('\n while (operatorStack.peek().priority() >= newOperator.priority() && !newOperator.equals(Operator.getToken(\"(\"))) {\n\n //If the token read is ), then there is already '(' which is inserted in the operator stack.\n if (token.equals(\")\")) {\n //Perform until, the '(' is on top of the stack.\n while (!operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n\n }\n\n //If '(' found on top, pop and break, to continue to read more takens\n if (operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n operatorStack.pop();\n break;\n }\n\n } \n //if ')' not found, it means either its in '(' or there are no parenthesis\n else {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n }\n }\n //Pushes the operator, when the operator!=')'\n if (!newOperator.equals(Operator.getToken(\")\"))) {\n operatorStack.push(newOperator);\n }\n }\n }\n }\n // No more tokens to be read. All the tokens are in stacks, gets processed.\n if (!this.tokenizer.hasMoreTokens()) {\n //Keeps processing, until it reaches #\n while (operatorStack.size() != 1) {\n Operator oldOpr = operatorStack.pop();\n //Checks if there are operand left to be used,\n if (!operandStack.empty()) {\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n } else {\n System.exit(1);\n }\n }\n }\n // Returns, the final result\n return operandStack.pop().getValue();\n }",
"public abstract Deque<Operand> getOperands();",
"public Polynomial postfixEval(List<Token> postfixtokenList){\n ArrayDeque<Token> stack = new ArrayDeque<Token>(); \n\n Polynomial result = new Polynomial(); \n for (Token token : postfixtokenList){\n if (token instanceof Polynomial)\n stack.push(token); \n else if (token instanceof Operator){\n Polynomial op2 = (Polynomial) stack.pop(); \n Polynomial op1 = (Polynomial) stack.pop(); \n result = ((Operator) token).operate(op1, op2);\n if (result == null) //for division by 0\n return null;\n stack.push(result); \n }\n }\n result = (Polynomial) stack.pop(); \n if (storingVar != ' '){\n memory.put(storingVar, result); \n storingVar = ' ';\n }\n return result; \n }",
"public static String evaluate( String expr ) \n {\n\tString[] arr = expr.split(\"\\\\s+\");\n\tLLStack<String> nums = new LLStack<String>();\n\tLLStack<String> noClose = new LLStack<String>();\n\tint op = 0;\n\n\tfor(String i : arr){ \n\t if(i.equals(\")\")){ //when you reach the closing parenthesis\n\t\tString top = noClose.pop(); //start going through this part of the expression\n\t\tnums.push(i); //add ( to stack for unload\n\t\t\n\t\twhile(!top.equals(\"(\")){ //until you reach the (, where the expression ends\n\t\t\t \n\t\t if(top.equals(\"+\")) op = 1;\n\t\t else if(top.equals(\"-\")) op = 2;\n\t\t else if(top.equals(\"*\")) op = 3;\n\n\t\t else nums.push(top); //if it's not an operand\n\n\t\t top = noClose.pop();\n\t\t}\n\n\t\tnoClose.push(unload(op, nums));\n\t }\n\t \n\t else noClose.push(i); //pushed into a stack of what's in this ()\n \n\t}//end of for loop \n \n\treturn noClose.peek();\n }",
"public Integer perform (IExpression left, IExpression right);",
"void e(){\n ARterm ar=new ARterm();\n RuntimeStack.push(ar);\n ar.term();\n term=ar.returnVal;\n RuntimeStack.pop();\n\n if ( LexArithArray.state == LexArithArray.State.Plus )\n {\n LexArithArray.getToken();\n// E e = E();\n ARE ar_=new ARE();\n RuntimeStack.push(ar_);\n ar_.e();\n e=ar_.returnVal;\n\n// return new AddE(term, e);\n returnVal=new AddE(term, e);\n }\n else if ( LexArithArray.state == LexArithArray.State.Minus )\n {\n LexArithArray.getToken();\n// E e = E();\n ARE ar_=new ARE();\n RuntimeStack.push(ar_);\n ar_.e();\n e=ar_.returnVal;\n\n// return new SubE(term, e);\n returnVal=new SubE(term,e);\n }\n else {\n// return new SingleTerm(term);\n returnVal=new SingleTerm(term);\n }\n }",
"StackManipulation cached();",
"@Override\n public boolean bodyCall(Node[] args, int length, RuleContext context) {\n try {\n checkArgs(length, context);\n BindingEnvironment env = context.getEnv();\n boolean ok = false;\n JEP mathParser = new JEP();\n Node varList = getArg(0, args, context);\n Node prevSt = getArg(1, args, context);\n Node cond = getArg(2, args, context);\n Node iter = getArg(3, args, context);\n \n return IfTrue_BranchBeTraversed.evaluateExpression(prevSt, cond, context, iter, varList, mathParser);\n\n \n } catch (Exception ex) {\n //Logger.getLogger(IfTrue_BranchBeTraversed.class.getName()).log(Level.SEVERE, null, ex);\n } finally{\n return true;\n }\n }",
"private void buildQueryFilterSite(TermsList termsList) {\n\t\tString attributeValue = \"\";\n\t\tString siteQuery = \"scope:(\";\n\n\t\tif (this.siteValues != null) {\n\t\t\tfor (int i = 0; i < siteValues.length; i++) {\n\t\t\t\tString site = siteValues[i];\n\t\t\t\tLTERSite lterSite = new LTERSite(site);\n\t\t\t\tif (lterSite.isValidSite()) {\n\t\t\t\t\tattributeValue = lterSite.getPackageId();\n\t\t\t\t\tString siteName = lterSite.getSiteName();\n\t\t\t\t\tif ((siteName != null) && (!siteName.equals(\"\"))) {\n\t\t\t\t\t\ttermsList.addTerm(siteName);\n\t\t\t\t\t}\n\t\t\t\t String plusSign = (i > 0) ? \"+\" : \"\";\n\t\t\t\t\tsiteQuery = String.format(\"%s%s%s\", siteQuery, plusSign, attributeValue);\n\t\t\t\t\tif ((i + 1) == siteValues.length) { // tack on the closing parenthesis\n\t\t\t\t\t\tsiteQuery = String.format(\"%s)\", siteQuery); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tupdateFQString(siteQuery);\n\t\t}\n\t}",
"private void executeBinaryExpression(Tree tree) {\n ProgramState.Pop unstackBinary = programState.unstackValue(2);\n programState = unstackBinary.state;\n SymbolicValue symbolicValue = constraintManager.createSymbolicValue(tree);\n symbolicValue.computedFrom(unstackBinary.values);\n programState = programState.stackValue(symbolicValue);\n }",
"public ArrayList<Predicate> expandInConjunctiveFormula(){\n\t\tArrayList<Predicate> formula = new ArrayList<Predicate>();\n\t\t\n\t\t// (x, (0,2)) (y,1) \n\t\t//holds positions of the vars\n\t\tHashtable<String,ArrayList<String>> pos = new Hashtable<String,ArrayList<String>>();\n\t\t//(const3, \"10\")\n\t\t//holds vars that have constants assigned\n\t\tHashtable<String,String> constants = new Hashtable<String,String>();\n\t\t\n\t\tRelationPredicate p = this.clone();\n\t\t//rename each term to a unique name\n\t\tfor(int i=0; i<p.terms.size(); i++){\n\t\t\tTerm t = p.terms.get(i);\n\t\t\tt.changeVarName(i);\n\n\t\t}\n\t\tformula.add(p);\n\n\t\tArrayList<String> attrsOld = getVarsAndConst();\n\t\tArrayList<String> attrsNew = p.getVarsAndConst();\n\n\t\t\n\t\tfor(int i=0; i<attrsOld.size(); i++){\n\t\t\tTerm t = terms.get(i);\n\t\t\tif(t instanceof ConstTerm){\n\t\t\t\t//get the constant value\n\t\t\t\tconstants.put(attrsNew.get(i),t.getVal());\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<String> posVals = pos.get(attrsOld.get(i));\n\t\t\tif(posVals==null){\n\t\t\t\tposVals=new ArrayList<String>();\n\t\t\t\tpos.put(attrsOld.get(i),posVals);\n\t\t\t}\n\t\t\tposVals.add(String.valueOf(i));\n\n\t\t}\n\t\t\n\t\t//System.out.println(\"Position of attrs=\" + pos + \" Constants= \" + constants);\n\t\n\t\t//deal with var equality x0=x2\n\t\tIterator<String> it = pos.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tArrayList<String> vals = pos.get(key);\n\t\t\tif(vals.size()>1){\n\t\t\t\t//add x0=x2 & x2=x9, etc\n\t\t\t\tfor(int i=1; i<vals.size(); i++){\n\t\t\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i)));\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i+1)));\n\t\t\t\t\tVarTerm v1 = new VarTerm(key);\n\t\t\t\t\tv1.changeVarName(Integer.valueOf(vals.get(i-1)).intValue());\n\t\t\t\t\tp1.addTerm(v1);\n\t\t\t\t\tVarTerm v2 = new VarTerm(key);\n\t\t\t\t\tv2.changeVarName(Integer.valueOf(vals.get(i)).intValue());\n\t\t\t\t\tp1.addTerm(v2);\n\t\t\t\t\tformula.add(p1);\n\t\t\t\t\t//i=i+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//deal with constants\n\t\tit = constants.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tString val = constants.get(key);\n\t\t\t//it's a constant\n\t\t\t//add const3=\"10\"\n\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\tp1.addTerm(new VarTerm(key));\n\t\t\tp1.addTerm(new ConstTerm(val));\n\t\t\tformula.add(p1);\n\t\t}\n\t\treturn formula;\n\t}",
"public static ExtractedExpression extractFunctionCalls(AbstractExpression exp) {\n\t\tExtractedExpression ee = new ExtractedExpression(exp);\n\t\tAbstractFunctionCall fc = exp.getEmbeddedFunctionCall();\n\t\twhile (fc != null) {\n\t\t\tString var = FreeVarNameProvider.getFreeVariable(\"subst\");\n\t\t\tee.rewrite(var, fc);\n\t\t\tfc = ee.getExpression().getEmbeddedFunctionCall();\n\t\t}\n\t\treturn ee;\n\t}",
"public static void main(String[] args) {\n\t\tLinkedStack st = new LinkedStack();\n\t\tst.push(1);\n\t\tst.push(2);\n\t\tst.push(3);\n\t\tst.push(4);\n\t\tst.push(5);\n\t\tst.pop();\n\t\tst.pop();\n\t\tst.pop();\n\t\tst.pop();\n\t\tst.pop();\n\t\t\n\t\tst.pop();\n\t\tst.pop();\n\t\n\n}",
"public static void QtoS(){\n while(!POOR.isEmpty()){\n stack.push(POOR.remove());\n }\n while(!FAIR.isEmpty()){\n stack.push(FAIR.remove());\n }\n while(!GOOD.isEmpty()){\n stack.push(GOOD.remove());\n }\n while(!VGOOD.isEmpty()){\n stack.push(VGOOD.remove());\n }\n while(!EXCELLENT.isEmpty()){\n stack.push(EXCELLENT.remove());\n }\n \n \n}",
"static void translate() {\n if(!token.equals(\"IF\")) {\r\n stack.add(lexeme);\r\n index++;\r\n\r\n // Add assignment operator to the intermediate stack\r\n lex();\r\n stack.add(lexeme);\r\n index++;\r\n\r\n lex();\r\n while (!token.equals(\"END\")) {\r\n\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else if (token.equals(\"PLUS\") || token.equals(\"MINUS\") || token.equals(\"STAR\") || token.equals(\"DIVOP\") || token.equals(\"MOD\")) {\r\n stack.add(index, lexeme);\r\n index++;\r\n\r\n lex();\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n index++;\r\n }\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n }\r\n\r\n lex();\r\n\r\n if (token.equals(\"END\"))\r\n break;\r\n\r\n if (token.equals(\"IDENTIFIER\")) {\r\n index++;\r\n break;\r\n }\r\n\r\n if (token.equals(\"IF\")) {\r\n index++;\r\n break;\r\n }\r\n }\r\n\r\n // Beginning the execution and evaluation of the translated code.\r\n index = 0;\r\n\r\n while (!stack.get(index).equals(\"=\") && !stack.get(index).equals(\"+\") && !stack.get(index).equals(\"-\") &&\r\n !stack.get(index).equals(\"*\") && !stack.get(index).equals(\"/\") && !stack.get(index).equals(\"%\")) {\r\n index ++;\r\n }\r\n\r\n int value = 0;\r\n int operand1 = 0;\r\n int operand2 = 0;\r\n String operator = stack.get(index);\r\n stack.remove(index);\r\n index--;\r\n\r\n if (operator.equals(\"=\")) {\r\n\r\n try {\r\n value = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n value = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n\r\n stack.remove(index);\r\n index--;\r\n\r\n String id = stack.get(index);\r\n stack.remove(index);\r\n\r\n //System.out.println(\"\\n\" + id + \" is equal to \" + value);\r\n\r\n if (search(id) == -1) {\r\n varList.add(id);\r\n varList.add(Integer.toString(value));\r\n } else {\r\n varList.set(search(id) + 1, Integer.toString(value));\r\n }\r\n }\r\n\r\n else {\r\n try {\r\n operand2 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand2 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n index--;\r\n\r\n try {\r\n operand1 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand1 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n\r\n execute(evaluate(operand1, operand2, operator));\r\n }\r\n\r\n if (!token.equals(\"END\")) {\r\n translate();\r\n }\r\n }\r\n\r\n // IF STATEMENTS\r\n else {\r\n if(translateIF())\r\n translate();\r\n else\r\n skipStatement();\r\n }\r\n }",
"protected void evalBranch(){\n List<Token> arguments = this.mainToken.getChilds();\n\n //Primer argumento es un string\n String stringExpression = arguments.get(0).getValue();\n //Removemos la referencia en la lista\n arguments.remove(0);\n\n String response = this.make(stringExpression, arguments);\n\n //Eliminar hojas\n this.setResponse(response);\n }",
"public YahooSearch(List<String> terms) {\n \tquery = StringHelper.join(terms, \" \");\n }",
"public static void main( String[] args )\n {\n\tStack<String> cakes = new LLStack<String>();\n\n\t//\"bronze jungle fail smite challenger nunu consume blue\"\n\tSystem.out.println( \"is cakes empty: \" + cakes.isEmpty() + \"\\n\" );\n\t\n\t//push tests\n\tcakes.push( \"blue\" );\t\n\tSystem.out.println( \"top value of cakes after pushing blue:\\n\" + cakes.peek() );\t\n\tcakes.push( \"consume\" );\t\n\tSystem.out.println( \"top value of cakes after pushing consume:\\n\" + cakes.peek() );\t\n\tcakes.push( \"nunu\" );\n\tSystem.out.println( \"top value of cakes after pushing nunu:\\n\" + cakes.peek() );\t\t\n\tcakes.push( \"challenger\" );\n\tSystem.out.println( \"top value of cakes after pushing challenger:\\n\" + cakes.peek() );\t\n\tcakes.push( \"smite\" );\t\n\tSystem.out.println( \"top value of cakes after pushing smite:\\n\" + cakes.peek() );\t\n\tcakes.push( \"fail\" );\t\n\tSystem.out.println( \"top value of cakes after pushing fail:\\n\" + cakes.peek() );\t\n\tcakes.push( \"jungle\" );\t\n\tSystem.out.println( \"top value of cakes after pushing jungle:\\n\" + cakes.peek() );\t\n\tcakes.push( \"bronze\" );\t\n\tSystem.out.println( \"top value of cakes after pushing bronze:\\n\" + cakes.peek() );\n\t\n\tSystem.out.println( \"\\nis cakes empty: \" + cakes.isEmpty() + \"\\n\" );\n\t\n\t//pop tests\n\tfor( int i = 0; i < 8; i ++ ){\n\t\tSystem.out.println( \"top value of cakes: \" + cakes.peek() );\n\t\tSystem.out.println( \"value popped from cakes: \" + cakes.pop() );\n\t}\n\t\n\tSystem.out.println( \"\\nis cakes empty: \" + cakes.isEmpty() + \"\\n\" );\n\t\n }",
"Deque<SearchStackElementCategory> getSearchStack() throws Exception;",
"public void processSingleToken(String[] token){\n for (int i =0; i<token.length; i++){ \n\n if (isOperator(token[i])){ //Checks if token[i] is an operator by calling isOperator()\n processOperator(token[i]); //Method on line 52\n }\n else if (token[i].equals(\"d\")){\n printStack();//method on line \n }\n else if (token[i].equals(\"r\")){\n addRValueToStack();\n }\n else if (token[i].equals(\"=\")){\n printOutResult();\n }\n else if(isInteger(token[i])){ //Checks if token[i] is an integer by calling isInteger()\n addToStack(token[i]);\n }\n else{\n System.out.println(\"Unrecognised operator or operand \\\"\" + token[i] + \"\\\".\");\n } \n }\n }",
"protected Evaluable parseTerm() throws ParsingException {\n Evaluable factor = parseFactor();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \"*/%\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable factor2 = parseFactor();\n\n factor = new OperatorCallExpr(new Evaluable[] { factor, factor2 }, op);\n }\n\n return factor;\n }",
"public String parsePrefixToPostfix(String exp) throws SyntaxError {\n \tif (exp.length() == 0) {\n \t\tthrow new SyntaxError(\"No expression has been entered.\");\n \t}\n //parser accepts user input into exp\n \tScanner parser = new Scanner(exp);\n int element;\n String operator;\n String entity;\n String postfixExpression = \"\"; \n String firstOperand, secondOperand;\n int result = 0;\n \n //tokenize prefix string and set up 2 stacks\n Stack<String> operandStack = new Stack<String>();\n Stack<String> reverseOperatorStack = new Stack<String>();\n //while statement to push onto the reversal stack if there are more tokens\n while (parser.hasNext()) {\n entity = parser.next();\n // unless there is a space\n if (!entity.equals(\" \"))\n reverseOperatorStack.push(entity);\n }\n try { \n \t// while statement to pop to reversal stack if it is not empty\n \twhile (!reverseOperatorStack.isEmpty()) {\n //peek to retrieve the token at the top of the stack\n \t\tentity = reverseOperatorStack.peek();\n \t\t//pop to take the token off the stack\n\t reverseOperatorStack.pop();\n\t \n\t // if it is an operand\n\t if (Character.isDigit(entity.charAt(0))) {\n\t \t//push token onto the operand stack\n\t \toperandStack.push(entity);\n\t }\n\t // if it is an operator\n\t else if (entity.equals(\"/\") || entity.equals(\"*\") \n\t \t\t|| entity.equals(\"+\") || entity.equals(\"-\")) {\n\t \t//retrieve, then pop first operand off the stack\n\t \tfirstOperand = operandStack.peek();\n\t operandStack.pop();\n\t //retrieve, then pop second operand off the stack\n\t secondOperand = operandStack.peek();\n\t operandStack.pop();\n\t // formats miniExpression String with the 2 operands followed by the operator \n\t String miniExpression = firstOperand + \" \" + secondOperand + \" \" + entity;\n\t //push the string onto the operand stack\n\t operandStack.push(miniExpression);\n\t }\n \t}\n \t //throws error if there is an incorrect entry improperly formatted \t\n } catch (Exception e) {\n throw new SyntaxError(\"You have entered an improper expression. Check your input.\");\n }\n //retrieve, then pop the postfix expression off the stack\n postfixExpression = operandStack.peek();\n operandStack.pop();\n //return postfix - holding the converted expression\n return postfixExpression; \n }",
"@Override\n\tpublic String visitTerm(MicroParser.TermContext ctx) {\n\t\tString prefix = visit(ctx.factor_prefix());\n\t\tString termExpr = prefix + visit(ctx.factor());\n\t\t//System.out.println(\"in term :\"+termExpr);\n\t\t//System.out.println(\"in term, prefix is:\"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return termExpr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = termExpr.split(\"/|\\\\*\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> mulops = new ArrayList<Character>();\n\t \n\t //create a list of mulops\n\t for(int i=0;i<termExpr.length();i++) {\n\t \tif(termExpr.charAt(i)=='*' || termExpr.charAt(i)=='/')\n\t \t\tmulops.add(termExpr.charAt(i));\n\t }\n\t //create a list of operands \n\t for(String i:ids) \n\t \toperands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t //System.out.println(\"in term op1 op2: \"+op1 +\" \" + op2);\n\t temp = new Temporary(type);\n \tresult = temp.fullName;\n \ttempList.addT(temp);\n\t //System.out.println(\"in term result: \"+result);\n\t if(mulops.get(0)=='*') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"MULT\", op1, op2, result));\n\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t \toperands.remove(0); operands.remove(0); mulops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"DIV\", op1, op2, result));\n\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t \toperands.remove(0); operands.remove(0); mulops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t //System.out.println(\"AFTER IF\");\n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(mulops.get(0)=='*') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"MULT\", op1, op2, result));\n\t\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t\t \tmulops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"DIV\", op1, op2, result));\n\t\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t\t \tmulops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result;\n\t\t\n\t}",
"public void clearTheStack() {\n int size = expStack.size();\n for (int i = size - 1; i >= 0; i--) {\n String str = expStack.get(i);\n if (!str.equals(\"(\")) {\n postFix.add(str);\n }\n }\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 }",
"@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }",
"public static int term()\r\n {\r\n //get the start state of this factor\r\n int r;\r\n int t1;\r\n t1=r=factor();\r\n\r\n //if there is no more input, we are done\r\n if(index>expression.length()-1)\r\n {\r\n return r;\r\n }\r\n\r\n //if it is closure\r\n if(expression.charAt(index)=='*')\r\n {\r\n int f=state-1;\r\n //create a branch state and set its next1 and next2\r\n state st=new state(state,\"BR\",t1,state+1);\r\n stateList.add(st);\r\n\r\n //check if the expression is something like (abc)*\r\n //if so, update the corresponding state so both a* and (abc)* work\r\n if(expression.charAt(index-1)!=')')\r\n {\r\n if(stateList.get(f-1).getNext1()==stateList.get(f-1).getNext2())\r\n {\r\n stateList.get(f-1).setNext1(state);\r\n }\r\n stateList.get(f-1).setNext2(state);\r\n\r\n }\r\n\r\n index++;\r\n r=state;\r\n state++;\r\n\r\n }\r\n //preceding regexp can occur one or more times\r\n else if(expression.charAt(index)=='+')\r\n {\r\n int f=state-1;\r\n stateList.get(f).setNext1(t1);\r\n index++;\r\n\r\n }\r\n // preceding regexp can occur zero or one time\r\n else if(expression.charAt(index)=='?')\r\n {\r\n int f =state-1;\r\n //check if the expression is something like (abc)?\r\n //if so update corresponding state so both a? and (abc)? work\r\n if(expression.charAt(index-1)!=')')\r\n {\r\n //create a branch state and update the corresponding state\r\n state st=new state(state,\"BR\",t1,state+1);\r\n\r\n String previousChar=stateList.get(f).getCharacter();\r\n\r\n if(stateList.get(f).getAlter())\r\n {\r\n stateList.get(f).setAlter(false);\r\n st.setAlter(true);\r\n }\r\n\r\n stateList.get(f).setCharacter(\"BR\");\r\n stateList.get(f).setNext2(state+1);\r\n st.setCharacter(previousChar);\r\n st.setNext1(state+1);\r\n stateList.add(st);\r\n\r\n r=f;\r\n state++;\r\n index++;\r\n }\r\n else\r\n {\r\n //create a branch state and update the corresponding state\r\n if(stateList.get(f).getNext1()==stateList.get(f).getNext2())\r\n {\r\n stateList.get(f).setNext1(state+1);\r\n }\r\n stateList.get(f).setNext2(state+1);\r\n\r\n state st=new state(state,\"BR\",t1,state+1);\r\n stateList.add(st);\r\n\r\n r=state;\r\n state++;\r\n index++;\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n return r;\r\n }",
"abstract protected void passHitQueryContextToClauses(HitQueryContext context);",
"public static void main(String[] args){\n\t\tTreeNode node1 = new TreeNode(1);\n\t\tTreeNode node2 = new TreeNode(2);\n\t\tTreeNode node3 = new TreeNode(3);\n\t\tTreeNode node4 = new TreeNode(4);\n\t\tTreeNode node5 = new TreeNode(5);\n\t\tTreeNode node6 = new TreeNode(6);\n\t\tTreeNode node7 = new TreeNode(7);\n\t\tnode4.left = node2;\n\t\tnode4.right = node6;\n\t\tnode2.left = node1;\n\t\tnode2.right = node3;\n\t\tnode6.left = node5;\n\t\tnode6.right = node7;\n\t\t/*\n\t\t * 4\n\t\t * /\n\t\t * 5\n\t\t * \\\n\t\t * 6\n\t\t */\n\t\t/*node4.left = node5;\n\t\tnode5.right = node6;*/\n\t\t\n\t\ttreeTraversal2 tt = new treeTraversal2();\n\t\tSystem.out.print(\"Inorder Rcur: \");tt.inorderTraverse(node4);//1234567\n\t\tSystem.out.println();\t\t\n\t\tSystem.out.print(\"Inorder Iter: \");tt.stackInorder(node4);//1234567\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Preorder Rcur: \");tt.preorderTraverse(node4);//4213657\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Preorder Iter: \"); tt.stackPreorder(node4);//4213657\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Postorder Rcur: \");tt.postorderTraverse(node4);//1325764\n\t\tSystem.out.println();\t\t \n\t\tSystem.out.print(\"Postorder Iter: \");tt.stackPostorder(node4);//1325764\n\t\t//System.out.println();\n\t\t//System.out.print(\"Postorder Iter: \");tt.twoStackPostorder(node4);//1325764\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Level Iter: \");tt.levelTraverse(node4);//4261357\n\t}",
"@Test\n public void testCal(){\n Stack<Double> stack = new Stack<>();\n Double num = 3.14;\n stack.push(num);\n operator = new UndoOperator();\n Stack<String> historyStack = new Stack<>();\n historyStack.push(num.toString());\n try {\n operator.cal(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(0,stack.size());\n Assert.assertEquals(0,historyStack.size());\n\n //test \"+\"\n Double result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n Double secOperand = 5.00;\n historyStack.clear();\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.PLUS.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(secOperand,stack.pop(),0.0000001);\n Assert.assertEquals(result-secOperand,stack.pop(),0.0000001);\n\n //test \"-\"\n result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n secOperand = 5.00;\n historyStack.clear();\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.MINUS.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(secOperand,stack.pop(),0.0000001);\n Assert.assertEquals(result+secOperand,stack.pop(),0.0000001);\n\n //test \"*\"\n result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n secOperand = 5.00;\n historyStack.clear();\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.MULTIPLY.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(secOperand,stack.pop(),0.0000001);\n Assert.assertEquals(result/secOperand,stack.pop(),0.0000001);\n\n //test \"/\"\n result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n secOperand = 5.00;\n historyStack.clear();\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.DIVIDE.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(secOperand,stack.pop(),0.0000001);\n Assert.assertEquals(result*secOperand,stack.pop(),0.0000001);\n\n //test \"sqrt\"\n result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n historyStack.clear();\n secOperand = 5.00;\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.SQRT.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(result*result,stack.pop(),0.0000001);\n }",
"private Operation selector(Scope scope, Vector queue)\r\n {\r\n Operation root;\r\n\r\n root = new Operation();\r\n\r\n if (nextSymbol == Keyword.DOTSY)\r\n {\r\n lookAhead();\r\n\r\n root.operator = nextSymbol;\r\n\r\n if (nextSymbol == Keyword.IDENTSY)\r\n {\r\n root.name = nextToken;\r\n lookAhead();\r\n root.left = argumentsOpt(scope, null, queue);\r\n }\r\n else if (nextSymbol == Keyword.SUPERSY)\r\n {\r\n matchKeyword(Keyword.SUPERSY);\r\n root.left = arguments(scope, null, queue);\r\n }\r\n else\r\n {\r\n matchKeyword(Keyword.NEWSY);\r\n root.left = innerCreator(scope, queue);\r\n }\r\n }\r\n else\r\n {\r\n root.operator = nextSymbol;\r\n matchKeyword(Keyword.LBRACKETSY);\r\n follower.add(Keyword.RBRACKETSY);\r\n unresolved.add(\"JavaArray\");\r\n root.left = expression(scope, queue);\r\n follower.remove(follower.size() - 1);\r\n matchKeyword(Keyword.RBRACKETSY);\r\n }\r\n\r\n return root;\r\n }",
"public static void breadthFirstSearch (HashMap<String, Zpair> stores,\n HashSet<Zpair> visited,\n List<Integer> sortedQueue) {\n List<String> q = new ArrayList<String>();\n q.add(\"Q\");\n // k=0\n //int k = 0;\n while(q.size() != 0) {\n //if(k == 21) {\n // System.exit(20);\n // }\n List<StringBuffer> path = new ArrayList<StringBuffer>(); // this is the return string\n List<String> q1 = new ArrayList<String>();\n int size = q.size();\n //System.out.println(k);\n for(int i = 0; i < size; i++) {\n //printList(q);\n path.add(ZMethods.stringPop(q));\n execute(path.get(i), stores, visited, q1, sortedQueue);\n }\n copyStringBuffer(q1,q);\n //k++;\n }\n }",
"private static Predicate<Map<String, String>> decodeReversePolishNotation(List<Token> tokens) {\n Queue<Token> queue = new LinkedList<>(tokens);\n Stack<Predicate<Map<String, String>>> predicateStack = new Stack<>();\n Function<Token, Predicate<Map<String, String>>> valuePredicateProducer = token -> {\n String[] values = token.getValue().split(regexSeparator);\n final String key = values[0];\n final String value = values[1];\n\n return m -> {\n String v = m.get(key);\n\n return v != null && v.equals(value);\n };\n };\n Map<PredicateTokens, Consumer<Token>> tokensActions = new HashMap<>();\n tokensActions.put(PredicateTokens.VALUE, t -> predicateStack.push(valuePredicateProducer.apply(t)));\n tokensActions.put(PredicateTokens.NEGATION, t -> predicateStack.push(predicateStack.pop().negate()));\n tokensActions.put(PredicateTokens.AND, t -> predicateStack.push(predicateStack.pop().and(predicateStack.pop())));\n tokensActions.put(PredicateTokens.OR, t -> predicateStack.push(predicateStack.pop().or(predicateStack.pop())));\n\n while (!queue.isEmpty()) {\n Token token = queue.remove();\n\n tokensActions.get(toPredicateToken(token)).accept(token);\n }\n\n return predicateStack.peek();\n }",
"public static void main(String[] args) {\n TeacherStack stack = new TeacherStack();\n stack.push(1); stack.push(2); stack.push(3); stack.push(4);stack.push(5);\n stack.push(6); stack.push(7);stack.push(8);stack.push(9);stack.push(10);\n stack.push(11);\n\n stack.pop(); stack.pop(); stack.pop(); stack.pop(); stack.pop(); stack.pop(); stack.pop(); stack.pop(); stack.pop(); stack.pop(); stack.pop();\n stack.pop();\n\t}",
"public void infixToPostFix() {\n for (String str : infixList) {\n if (str.equals(\"(\")) {\n leftParenthesis(str);\n } else if (str.equals(\")\")) {\n rightParenthesis();\n } else if (OperatorOperand.isOperator(str)) {\n operator(str);\n } else {\n operand(str);\n }\n }\n clearTheStack();\n }",
"static String buildHypernymDepthQuery(String superconcept, String subconcept, int depth) {\n if (superconcept == null || subconcept == null) {\n LOGGER.error(\"The concepts cannot be null.\");\n return null;\n }\n superconcept = StringOperations.addTagIfNotExists(superconcept);\n subconcept = StringOperations.addTagIfNotExists(subconcept);\n switch (depth) {\n case 1:\n return replaceConceptsAndCompleteQuery(IS_HYPERNYM_LEVEL_1_NO_CLOSE, superconcept, subconcept);\n case 2:\n return replaceConceptsAndCompleteQuery(IS_HYPERNYM_LEVEL_2_NO_CLOSE, superconcept, subconcept);\n case 3:\n return replaceConceptsAndCompleteQuery(IS_HYPERNYM_LEVEL_3_NO_CLOSE, superconcept, subconcept);\n default:\n LOGGER.error(\"Query not implemented for a depth of \" + depth + \".\\n\" +\n \"Note: A depth of > 3 will contain more than 14 statements that are joined with UNION - do you \" +\n \"really want this? Returning null.\");\n return null;\n }\n }",
"public static void main(String[] args) {\n\t\tPostFix aux,courant, racine;\r\n\t\t\r\n\t\t sc = new Scanner(System.in);\r\n\t\t System.out.println(\"Entrer l'expression postfixée--->\");\r\n\t\t ArrayList<String> list ; \r\n\t\t String PostEntre = sc.nextLine();\r\n\t\t \r\n\t\t list = new ArrayList<>(Arrays.asList(PostEntre.split(\" \")));\r\n\t\t \r\n\t\t ArrayDeque<PostFix> pil = new ArrayDeque<PostFix>();\r\n\t\t for (String s : list){\r\n\t\t\t courant = new PostFix(s);\r\n\t\t\t if (isOperator(s)){\r\n\t\t\t\t aux = pil.pop();\r\n\t\t\t\t courant.setfilsgauche(pil.pop());\r\n\t\t\t\t courant.setfilsdroit(aux);\r\n\t\t\t }\r\n\t\t\t pil.push(courant);\r\n\t\t\t \r\n\t\t }\r\n\t\t racine = pil.pop();\r\n\t\t System.out.println(\"L'arbre est : \" );\r\n\t\t System.out.println(racine + \"\\n\" );\r\n\t\t // racine.Afficher(racine);\r\n\t\t \r\n\t\t //----------------------------to prefix------------------------\r\n\t\t String s1,s2,sor;\r\n\t\t \r\n\t\t ArrayDeque<String> operst = new ArrayDeque<String>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t operst.push(n);\r\n\t\t\t else{\r\n\t\t\t\ts2 = operst.pop();\r\n\t\t\t \ts1 = operst.pop();\r\n\t\t\t \tsor = n +\" \"+ s1 +\" \"+ s2;\r\n\t\t\t operst.push(sor);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"L'expression prefixee donne: \");\r\n\t\t System.out.println(operst.pop()+\"\\n\");\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\t\t \r\n\t\t \r\n\t\t //-----------------------------evaluation-----------------------\r\n\t\t Double oper1, oper2,result;\r\n\t\t ArrayDeque<Double> abc = new ArrayDeque<Double>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t abc.push(Double.valueOf(n));\t\t\t\r\n\t\t\t else{\r\n\t\t\t\t oper2 = abc.pop();\t\t\t \t\r\n\t\t\t\t oper1 = abc.pop();\r\n\t\t\t \tresult = operate(oper1,oper2,n);\t\t\t \r\n\t\t\t \t\tabc.push(result);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"l'evaluation donne: \");\r\n\t\t System.out.println(abc.pop());\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\r\n\t}",
"public static int evaluate(Math impl, String[] postfix) throws StackOverflowError, MalformedPostfixException {\n\n // a stack for implementing the evaluation\n Stack<Integer> stack = new Stack<Integer>();\n\n try {\n \n for (int i = 0; i < postfix.length; i++) {\n\n if (postfix[i].length() == 1 && !Character.isDigit(postfix[i].charAt(0))) {\n\n // if the first character of the element is not a digit then we \n // assume it is an operator\n\n String operator = postfix[i];\n\t\t\n if (operator.equals(\"<\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.lshift(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\">\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.rshift(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"+\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.add(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"-\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.sub(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"*\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.mul(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"/\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.div(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"^\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.pow(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"!\")) {\n int num = stack.pop();\n int result = impl.fac(num);\n stack.add(result);\n } // if\n\n } else {\n\n // otherwise we assume it is an operand and add it to the stack\n stack.add(Integer.parseInt(postfix[i]));\n\n } // if\n\n } // for\n\n } catch (Exception e) {\n \n // propogate as a malformed postfix exception\n throw new MalformedPostfixException(postfix);\n \n } // try\n \n // if the stack size is not 1, then the expression is malformed\n if (stack.size() != 1) {\n throw new MalformedPostfixException(postfix);\n } // if\n\n // the only element left in the stack will be the result of the evaluation\n return stack.pop();\n\n }",
"public static State postToNFA(List<Token> tokens) {\n if (tokens.isEmpty()) {\n return State.MATCHSTATE;\n }\n\n Deque<Frag> stack = new ArrayDeque<>();\n\n // fprintf(stderr, \"postfix: %s\\n\", postfix);\n for (Token t : tokens) {\n State s;\n Frag e, e1, e2;\n switch (t.type) {\n case CHAR:\n s = State.makeChar((char) t.data);\n stack.push(new Frag(s, s.out));\n break;\n case DOT:\n s = State.makeDot();\n stack.push(new Frag(s, s.out));\n break;\n case CONCAT: /* catenate */\n e2 = stack.pop();\n e1 = stack.pop();\n patch(e1.out, e2.start);\n stack.push(new Frag(e1.start, e2.out));\n break;\n case ALT: /* alternate */\n e2 = stack.pop();\n e1 = stack.pop();\n s = State.makeSplit(e1.start, e2.start);\n stack.push(new Frag(s, append(e1.out, e2.out)));\n break;\n case QUESTION: /* zero or one */\n e = stack.pop();\n s = State.makeSplit(e.start, null);\n stack.push(new Frag(s, append(e.out, Frag.singleton(s.out1))));\n break;\n case STAR: /* zero or more */\n e = stack.pop();\n s = State.makeSplit(e.start, null);\n patch(e.out, s);\n stack.push(new Frag(s, s.out1));\n break;\n case PLUS: /* one or more */\n e = stack.pop();\n s = State.makeSplit(e.start, null);\n patch(e.out, s);\n stack.push(new Frag(e.start, s.out1));\n break;\n default:\n throw new IllegalThreadStateException(\"unhandled token:\" + t);\n }\n }\n\n checkState(stack.size() == 1, \"fragment stack.size() != 1, was %s\", stack.size());\n Frag e = stack.pop();\n patch(e.out, State.MATCHSTATE);\n\n return e.start;\n }",
"@Override\r\n public DSCP opBrackets() {\r\n /*put codegen here.*/\r\n return elementType.pushStack();\r\n }",
"public static String evaluate( String expr )\n {\n\n\tString[] arr = expr.split(\"//s+\");\n\tString ret = \"\";\n\tALStack<String> stack = new ALStack<String>();\n\tfor( String s: arr)\n\t stack.push(s);\n\n\tif( stack.peek().equals(\"(\")){\n\t stack.pop();\n\t int operator = findOp(stack.pop());\n\t ret = unload(operator, stack);\n\t return ret;\n\t}\n\treturn \"\";\n }",
"public ExpressionPart parseExpressions (String[] exp, QBParser parser) {\n\t\texp = fixArray(exp);\n\t//\tSystem.out.println(\"EXPS: \" + Arrays.toString(exp));\n\t\tif(exp[0].startsWith(\"if\")){\n\t\t\tif( (exp[0].length() > 2 && !Character.isLetterOrDigit( exp[0].charAt(2) )) || exp[0].length() == 2){\n\t\t\t\tString name = ExpressionPuller.pullIfThenElse(exp, parser.getCurrentCompilingNamespace());\n\t\t\t\texp = new String[]{name};\n\t\t\t}\n\t\t}\n\t\t\n//\t\tif(exp[0].equals(\"if\")){\n//\t\t\tint thenIdx = MArrays.indexOf(exp, \"then\");\n//\t\t\tString ifPart = MArrays.concat(exp, 1, thenIdx-1);\n//\t\t\t\n//\t\t\tint elseIdx = MArrays.indexOf(exp, \"else\");\n//\t\t\tString thenPart = MArrays.concat(exp, thenIdx+1, elseIdx-thenIdx-1);\n//\t\t\t\n//\t\t\tString elsePart = MArrays.concat(exp, elseIdx+1);\n//\t\t\t\n//\t\t\tExpressionPart ifExpPart = parseExpressions(ifPart);\n//\t\t\tExpressionPart thenExpPart = parseExpressions(thenPart);\n//\t\t\tExpressionPart elseExpPart = parseExpressions(elsePart);\n//\t\t\t\n//\t\t\tExpressionPart totalIf = ExpressionPart.makePrimaryExpressionPart(null, \"if\", new ExpressionPart[]{ifExpPart});\n//\t\t\tExpressionPart totalThen = ExpressionPart.makePrimaryExpressionPart(totalIf, \"then\", new ExpressionPart[]{thenExpPart});\n//\t\t\tExpressionPart total = ExpressionPart.makePrimaryExpressionPart(totalThen, \"else\", new ExpressionPart[]{elseExpPart});\n//\t\t\n//\t\t\treturn total;\n//\t\t}\n\t\t\n\n\t\t// Go though all of the operators in order from their respective order of operations.\n\t\tfor( String[] ops : operators() ){\n\t\t\t\n\t\t\tint idx = -1;\n\t\t\t// Some operators have the same precedence, so we need to deal with that\n\t\t\tfor( String op : ops ) {\n\t\t\t\tidx = Math.max(idx, MArrays.lastIndexOf(exp, op));\n\t\t\t}\n\t\t\t\n\t\t\t// if we found one of these opeartors, then we\n\t\t\t// need to deal with it.\n\t\t\tif( idx != -1 ){\n\t\t\t\t// get the function (thats easy, it is what we just found)\n\t\t\t\tString function = exp[idx];\n\t\t\t\t\n\t\t\t\t// get all stuff before and after this point\n\t\t\t\t// the first is the caller and the second is the\n\t\t\t\t// argument believe me it works because\n\t\t\t\t// 3 * 4 / 6 + 1 * 2 - 3 ^ 2 * 2 = (3 * 4 / 6 + 1 * 2) - (3 ^ 2 * 2)\n\t\t\t\tString[] before = Arrays.copyOfRange(exp, 0, idx);\n\t\t\t\tString[] after = Arrays.copyOfRange(exp, idx + 1, exp.length);\n\t\t\t\t\n\t\t\t\t// now, using recursion we make the expression parts out of them\n\t\t\t\tExpressionPart part1 = parseExpressions( before, parser );\n\t\t\t\tExpressionPart part2 = parseExpressions( after, parser );\n\t\t\t\t\n\t\t\t\tif(function.equals(\"->\")){\n\t\t\t\t\tExpressionPart tmp = part1;\n\t\t\t\t\tpart1 = part2;\n\t\t\t\t\tpart2 = tmp;\n\t\t\t\t}\n\t\t\t\t// now put the whole thing together, and you now have a mess\n\t\t\t\treturn ExpressionPart.makePrimaryExpressionPart(part1, function, new ExpressionPart[]{part2} );\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// If there are no more \"Binary Functions\"\n\t\t// what is left must be grouped or it must be a function\n\t\tif( exp.length == 1 ){\n\t\t\tString str = exp[0];\n\t\t\tif( completelySurrounded(str) ){\n\t\t\t\tString middle = str.substring(1, str.length() - 1);\n\t\t\t\treturn parseExpressions(middle);\n\t\t\t}\n\t\t\t// This must then be a function\n\t\t\telse if(str.endsWith(\")\")){\n\t\t\t\t\n\t\t\t\t// this function will get the last index of a dot ('.') that is outside parenthesis\n\t\t\t\t// the dot is used to determine if the function is being called by an object\n\t\t\t\tint dotIdx = lastDotIndex(str);\n\t\t\t\t\n\t\t\t\t// now we find the index that the arguments start on\n\t\t\t\tint idx = str.indexOf('(',dotIdx);\n\t\t\t\t\n\t\t\t\t// check to make sure there is one.\n\t\t\t\tif( idx < 0 ){\n\t\t\t\t\tthrow new RuntimeException(\"Expected '('\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// from here it is pretty straight forward to get the function,\n\t\t\t\t// caller and parameters.\n\t\t\t\tString function = str.substring(0, idx);\n\t\t\t\tString args = str.substring(idx + 1, str.length() - 1);\n\t\t\t\tString caller = null;\n\t\t\t\t\n\t\t\t\t// if there is not dot, then there is no caller and the function is global\n\t\t\t\tif( dotIdx >= 0 ){\n\t\t\t\t\tcaller = function.substring( 0, dotIdx );\n\t\t\t\t\tfunction = function.substring( dotIdx + 1 );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// now use recursion to build the parts and make a new part.\n\t\t\t\tExpressionPart part1 = caller !=null ? parseExpressions(caller) : null;\n\t\t\t\tExpressionPart[] parts = parseParams(args);\n\t\t\t\t\n\t\t\t\treturn ExpressionPart.makePrimaryExpressionPart(part1, function, parts);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t// This is the base case, the very bottom of the ladder, this is where all\n\t\t\t\t// that is left is some entity that has no function.\n\t\t\t\treturn ExpressionPart.makeExpressionPart(exp[0]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new RuntimeException(\"Syntax Error\");\n\t}",
"public Double evaluate() {\n Stack<Operator> operatorStack = new Stack<>();\n Stack<Operand> operandStack = new Stack<>();\n while (!getTokenQueue().isEmpty()) {\n Token token = getTokenQueue().dequeue();\n if (token instanceof Operand) {\n operandStack.push(((Operand) token));\n } else if (token instanceof LeftParen) {\n operatorStack.push(((LeftParen) token));\n } else if (token instanceof RightParen) {\n while (!(operatorStack.peek() instanceof LeftParen)) {\n topEval(operatorStack, operandStack);\n }\n operatorStack.pop();\n } else {\n Operator operator = (((Operator) token));\n while (keepEvaluating(operatorStack, operator)) {\n topEval(operatorStack, operandStack);\n }\n operatorStack.push(operator);\n }\n }\n while (!operatorStack.isEmpty()) {\n topEval(operatorStack, operandStack);\n }\n return operandStack.pop().getValue();\n }",
"public static ArrayList<String> makePostV(String s){\r\n String sD = s+\"$\";\r\n Stack<String> st1 = new Stack<String>();//Operators and parenthesis are stored temporarily on string stack \"st1\"\r\n ArrayList<String> postV = new ArrayList<String>();\r\n int p=0;//Pointer for each character in the expression; Gets incremented \r\n \r\n while(p<s.length()){\r\n int count = 0;//Count for making sure only one of the following \"if\"s are executed in one iteration \r\n String s1=Character.toString(sD.charAt(p));\r\n \r\n String sNext = Character.toString(sD.charAt(p+1));\r\n if(Character.toString(s1.charAt(s1.length()-1)).matches(\"[a-zA-Z].*\")||Character.toString(s1.charAt(s1.length()-1)).matches(\"-?\\\\d+(\\\\.\\\\d+)?\")){\r\n while(!sNext.matches(\".*[-+*/^%$()].*\")){\r\n p++;\r\n s1=s1+sNext;\r\n sNext=Character.toString(sD.charAt(p+1));\r\n }\r\n }\r\n \r\n //For identifiers in the expression \r\n if((s1.matches(\"[a-zA-Z].*\"))&&count==0){postV.add(s1);count++;}\r\n \r\n //For numerical values given directly in the expression\r\n if(s1.matches(\"-?\\\\d+(\\\\.\\\\d+)?\")&&count==0){postV.add(s1);count++;}\r\n \r\n //For parenthesis in the expression\r\n if((s1.equals(\"(\")||s1.equals(\")\"))&&count==0){ \r\n if(s1.equals(\"(\")){st1.push(\"(\");}\r\n if(s1.equals(\")\")){\r\n while(!st1.peek().equals(\"(\")&&!st1.empty()){String currOp = st1.pop();postV.add(currOp);}\r\n st1.pop();\r\n }count++;\r\n } \r\n \r\n //For operators in the expression\r\n if(s1.equals(\"+\")||s1.equals(\"-\")||s1.equals(\"%\")||s1.equals(\"/\")||s1.equals(\"*\")||s1.equals(\"^\")){ \r\n if(st1.empty()&&count==0){st1.push(s1);count++;}\r\n \r\n if(!st1.empty()&&count==0){\r\n if(st1.peek().equals(\"(\")){st1.push(s1);count++;} \r\n \r\n String s2=st1.peek();\r\n char op1 = s2.charAt(0);\r\n char op2=s1.charAt(0); \r\n \r\n if(count==0){\r\n while((precedenceLevel(op1)>=precedenceLevel(op2))&&!st1.empty()){\r\n String currOp=st1.pop(); \r\n postV.add(currOp);\r\n if(!st1.empty()&&st1.peek().equals(\"(\")){break;}\r\n if(!st1.empty()){s2=st1.peek();op1 = s2.charAt(0);}\r\n } st1.push(s1);count++; \r\n }\r\n \r\n if((precedenceLevel(op1)<precedenceLevel(op2))&&count==0){\r\n st1.push(s1);\r\n count++;\r\n } \r\n } \r\n } \r\n p++; \r\n }\r\n \r\n //At the end pops operators if remained in the stack\r\n while(!st1.empty()){\r\n String currOp=st1.pop();\r\n postV.add(currOp);\r\n } \r\n return postV;//Returns the postfix expression\r\n }",
"public static Temp evalFunction(CommonTree tree){\n\t\tLinkedList<Temp> temps = new LinkedList<Temp>();\n\t\tfor (int k=1; k<tree.getChildCount(); k++){\n\t\t\t//System.out.println(\"SDFJSDF:LJSDL:FJSDF\");\n\t\t\ttemps.add(evalExpression((CommonTree) tree.getChild(k)));\n\t\t\t//\t\t\tircode.add(new ThreeOpCode())\n\t\t}\n\t\tircode.add(new ThreeOpCode(\"PUSH\"));\n\t\t// push the parameters on to the stack\n\t\tfor (int i=1; i < tree.getChildCount(); i++){\n\t\t\tircode.add(new ThreeOpCode(\"PUSH\", temps.get(i-1).name));\n\t\t}\n\t\t// add JSR command\n\t\tircode.add(new ThreeOpCode(\"JSR\", tree.getChild(0).getText()));\n\t\t// pop parameters off the stack\n\t\tfor (int i=1; i < tree.getChildCount(); i++){\n\t\t\tircode.add(new ThreeOpCode(\"POP\"));\n\t\t}\n\t\t// create temperary for return value\n\t\tTemp temp = new Temp(temperaryNum++,tree.getType(),tree.getText());\n\t\t// pop the return value\n\t\tircode.add(new ThreeOpCode(\"POP\", temp.name));\n\t\treturn temp;\n\t}",
"@Override void apply(Env env) {\n Frame fr0 = null, fr1 = null;\n double d0=0, d1=0;\n String s0=null, s1=null;\n\n // Must pop ONLY twice off the stack\n int left_type = env.peekType();\n Object left = env.peek();\n int right_type = env.peekTypeAt(-1);\n Object right = env.peekAt(-1);\n\n // Cast the LHS of the op\n switch(left_type) {\n case Env.NUM: d0 = ((ValNum)left)._d; break;\n case Env.ARY: fr0 = ((ValFrame)left)._fr; break;\n case Env.STR: s0 = ((ValStr)left)._s; break;\n default: throw H2O.unimpl(\"Got unusable type: \" + left_type + \" in binary operator \" + opStr());\n }\n\n // Cast the RHS of the op\n switch(right_type) {\n case Env.NUM: d1 = ((ValNum)right)._d; break;\n case Env.ARY: fr1 = ((ValFrame)right)._fr; break;\n case Env.STR: s1 = ((ValStr)right)._s; break;\n default: throw H2O.unimpl(\"Got unusable type: \" + right_type + \" in binary operator \" + opStr());\n }\n\n // If both are doubles on the stack\n if( (fr0==null && fr1==null) && (s0==null && s1==null) ) { env.poppush(2, new ValNum(op(d0, d1))); return; }\n\n // One or both of the items on top of stack are Strings and neither are frames\n if( fr0==null && fr1==null) {\n env.pop(); env.pop();\n // s0 == null -> op(d0, s1)\n if (s0 == null) {\n // cast result of op if doing comparison, else combine the Strings if defined for op\n if (opStr().equals(\"==\") || opStr().equals(\"!=\")) env.push(new ValNum(Double.valueOf(op(d0,s1))));\n else env.push(new ValStr(op(d0,s1)));\n }\n // s1 == null -> op(s0, d1)\n else if (s1 == null) {\n // cast result of op if doing comparison, else combine the Strings if defined for op\n if (opStr().equals(\"==\") || opStr().equals(\"!=\")) env.push(new ValNum(Double.valueOf(op(s0,d1))));\n else env.push(new ValStr(op(s0,d1)));\n // s0 != null, s1 != null\n } else env.push(new ValStr(op(s0,s1)));\n return;\n }\n\n if( fr0!=null ) {\n if( fr0.numCols()==1 && fr0.numRows()==1 ) {\n Vec v = fr0.anyVec();\n if( v.isEnum() ) s0 = v.domain()[(int)v.at(0)];\n else d0 = v.at(0);\n fr0=null;\n }\n }\n\n if( fr1!=null ) {\n if( fr1.numCols()==1 && fr1.numRows()==1 ) {\n Vec v = fr1.anyVec();\n if( v.isEnum() ) s1 = v.domain()[(int)v.at(0)];\n else d1 = v.at(0);\n fr1=null;\n }\n }\n\n // both were 1x1 frames on the stack...\n if( fr0==null && fr1==null ) {\n if( s0==null && s1==null ) env.poppush(2, new ValNum(op(d0, d1)));\n if( s0!=null && s1==null ) env.poppush(2, new ValNum(Double.valueOf(op(s0, d1))));\n if( s0==null && s1!=null ) env.poppush(2, new ValNum(Double.valueOf(op(d0, s1))));\n if( s0!=null && s1!=null ) env.poppush(2, new ValNum(Double.valueOf(op(s0, s1))));\n return;\n }\n\n final boolean lf = fr0 != null;\n final boolean rf = fr1 != null;\n final double df0 = d0, df1 = d1;\n final String sf0 = s0, sf1 = s1;\n Frame fr; // Do-All frame\n int ncols = 0; // Result column count\n if( fr0 !=null ) { // Left?\n ncols = fr0.numCols();\n if( fr1 != null ) {\n if( fr0.numCols() != fr1.numCols() ||\n fr0.numRows() != fr1.numRows() )\n throw new IllegalArgumentException(\"Arrays must be same size: LHS FRAME NUM ROWS/COLS: \"+fr0.numRows()+\"/\"+fr0.numCols() +\" vs RHS FRAME NUM ROWS/COLS: \"+fr1.numRows()+\"/\"+fr1.numCols());\n fr = new Frame(fr0).add(fr1);\n } else {\n fr = new Frame(fr0);\n }\n } else {\n ncols = fr1.numCols();\n fr = new Frame(fr1);\n }\n final ASTBinOp bin = this; // Final 'this' so can use in closure\n\n // Run an arbitrary binary op on one or two frames & scalars\n Frame fr2 = new MRTask() {\n @Override public void map( Chunk chks[], NewChunk nchks[] ) {\n for( int i=0; i<nchks.length; i++ ) {\n NewChunk n =nchks[i];\n int rlen = chks[0]._len;\n Chunk c0 = chks[i];\n if( (!c0.vec().isEnum() &&\n !(lf && rf && chks[i+nchks.length].vec().isEnum())) ||\n bin instanceof ASTEQ ||\n bin instanceof ASTNE ) {\n\n // Loop over rows\n for( int ro=0; ro<rlen; ro++ ) {\n double lv=0; double rv=0; String l=null; String r=null;\n\n // Initialize the lhs value\n if (lf) {\n if(chks[i].vec().isUUID() || (chks[i].isNA(ro) && !bin.opStr().equals(\"|\"))) { n.addNum(Double.NaN); continue; }\n if (chks[i].vec().isEnum()) l = chks[i].vec().domain()[(int)chks[i].atd(ro)];\n else lv = chks[i].atd(ro);\n } else if (sf0 == null) {\n if (Double.isNaN(df0) && !bin.opStr().equals(\"|\")) { n.addNum(Double.NaN); continue; }\n lv = df0; l = null;\n } else {\n l = sf0;\n }\n\n // Initialize the rhs value\n if (rf) {\n if(chks[i+(lf ? nchks.length:0)].vec().isUUID() || chks[i].isNA(ro) && !bin.opStr().equals(\"|\")) { n.addNum(Double.NaN); continue; }\n if (chks[i].vec().isEnum()) r = chks[i].vec().domain()[(int)chks[i].atd(ro)];\n else rv = chks[i+(lf ? nchks.length:0)].atd(ro);\n } else if (sf1 == null) {\n if (Double.isNaN(df1) && !bin.opStr().equals(\"|\")) { n.addNum(Double.NaN); continue; }\n rv = df1; r= null;\n } else {\n r = sf1;\n }\n\n // Append the value to the chunk after applying op(lhs,rhs)\n if (l == null && r == null)\n n.addNum(bin.op(lv, rv));\n else if (l == null) n.addNum(Double.valueOf(bin.op(lv,r)));\n else if (r == null) n.addNum(Double.valueOf(bin.op(l,rv)));\n else n.addNum(Double.valueOf(bin.op(l,r)));\n }\n } else {\n for( int r=0; r<rlen; r++ ) n.addNA();\n }\n }\n }\n }.doAll(ncols,fr).outputFrame(null, (lf ? fr0 : fr1)._names,null);\n env.poppush(2, new ValFrame(fr2));\n }",
"public abstract void process(Ray ray, Stack<Ray> bifurcations);",
"private void traversal(List<Node> result, Queue<Node> q ) {\n\t\twhile(!q.isEmpty()) {\r\n\t\t\tNode head = q.poll();\r\n\t\t\tresult.add(head);\r\n\t\t\tif(head.left != null) {\r\n\t\t\t\tq.add(head.left);\r\n\t\t\t}\r\n\t\t\tif(head.right != null) {\r\n\t\t\t\tq.add(head.right);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void main(String []args) {calcStack<String> cc = new calcStack<String>();\n//\t\t\n//\t\tString s = \"81,37,-211,+,15,-,/\";\n//\t\tdouble rst = cc.calc(s);\n//\t\tSystem.out.println(rst);\n//\t\t\n//\t\t\n\t\tcalcStack<String> cc2 = new calcStack<String>();\n\t\t\n\t\tString s2 = \"20.5,10.2,+,*\";\n\t\tdouble rst = cc2.calc(s2);\n\t\tSystem.out.println(rst);\n\t}",
"public QueryMatches interpret(ITMQLRuntime runtime, IContext context, IExpressionInterpreter<?> caller);",
"public static void lmd_parseTree(){\n\n e_stack.push(\"$\");\n e_stack.push(pc.first_rule);\n head_node=new node(pc.first_rule);\n\n // Evaluate\n // Building the tree as well\n\n node cur=head_node;\n\n for(int i=0;i<token_stream.length;i++){\n System.out.println(e_stack);\n if(!pc.isTerminal(e_stack.peek())){\n String rule_token =pc.parse_Table.get(e_stack.pop(),token_stream[i]).right;\n\n if(!rule_token.equals(\"empty\")) {\n String to_put[]=rule_token.split(\" \");\n for(int j=to_put.length-1;j>=0;j--)\n e_stack.push(to_put[j]);\n\n // add children\n for(int j=0;j<to_put.length;j++)\n addNode(cur,to_put[j]);\n // set cur\n cur=cur.next;\n }\n else {\n // if rule_token is empty\n addNode(cur,\"empty\");\n cur=cur.next.next; // as \"empty\" node will not have any children\n }\n i--;\n }\n else {\n // if(e_stack.peek().equals(token_stream[i]))\n e_stack.pop();\n if(cur.next!=null ) cur=cur.next;\n }\n }\n }",
"public interface ExpressionVisitor{\n\n void handel(BracketExpression bracketExpression);\n\n void handel(NaturalNumber naturalNumber);\n\n\n void handel(Sum sum);\n void handel(Difference difference);\n void handel(Product product);\n void handel(Quotient quotient);\n\n void handel(VariableExpression variableExpression);\n}",
"public MultiPhraseQuery getExpandedMultiPhraseQuery() {\n if (scoredTerms == null) {\n throw new IllegalArgumentException(\"Scored terms is not set\");\n }\n\n int sizeOfNewQueryTerms = getSizeOfNewQueryTerms();\n Term[] expandedQueryTerms = new Term[sizeOfNewQueryTerms];\n\n int newQueryTermsIndex = 0;\n\n for (int i = 0; i < expandedQueryTerms.length; i++) {\n if (i < originalQueryTerms.length) {\n expandedQueryTerms[i] = new Term(PhotoFields.TAGS, originalQueryTerms[i]);\n } else {\n for (int j = newQueryTermsIndex; j < scoredTerms.length; j++) {\n String term = scoredTerms[j].getTerm();\n\n if (!termExistsInOriginalQuery(term)) {\n expandedQueryTerms[i] = new Term(PhotoFields.TAGS, term);\n newQueryTermsIndex++;\n\n break;\n }\n\n newQueryTermsIndex++;\n }\n }\n }\n\n return new MultiPhraseQuery\n .Builder()\n .add(expandedQueryTerms)\n .build();\n }",
"public static void main(String[] args) {\n Stack testStack = new Stack();\n testStack.add(\"a\");\n testStack.add(\"b\");\n testStack.add(\"c\");\n System.out.println(testStack.values());\n System.out.println(testStack.take());\n System.out.println(testStack.values());\n System.out.println(testStack.take());\n System.out.println(testStack.values());\n \n\n }",
"public Integer eval() {\r\n Stack<String> operatorStack = new Stack<String>();\r\n Stack<Integer> valueStack = new Stack<Integer>();\r\n\r\n // ADD YOUR CODE BELOW HERE\r\n // ..\r\n for (int i = tokenList.size() - 1; i >= 0; i--) {\r\n if (isInteger(tokenList.get(i))) {\r\n valueStack.push(Integer.parseInt(tokenList.get(i)));\r\n } else {\r\n operatorStack.push(tokenList.get(i));\r\n }\r\n }\r\n \r\n \r\n \r\n help(operatorStack,valueStack);\r\n \r\n // ..\r\n // ADD YOUR CODE ABOVE HERE\r\n\r\n return valueStack.get(0); // DELETE THIS LINE\r\n }",
"public static void main (String [] args) {\n\t\tTreeNode t1 = new TreeNode(11);\r\n\t\tTreeNode t2 = new TreeNode(12);\r\n\t\tTreeNode t3 = new TreeNode(13);\r\n\t\tt1.left = t2;\r\n\t\tt1.right = t3;\r\n\t\tTreeNode t4 = new TreeNode(14);\r\n\t\tTreeNode t5 = new TreeNode(15);\r\n\t\tt2.left = t4;\r\n\t\tt2.right = t5;\r\n\t\tTreeNode t6 = new TreeNode(16);\r\n\t\tTreeNode t7 = new TreeNode(17);\r\n\t\tt3.left = t6;\r\n\t\tt3.right = t7;\r\n\t\tTreeNode t8 = new TreeNode(18);\r\n\t\tt6.left = t8;\r\n\t\tnew TreeTraversal().inorderTraversalWithStack(t1);\r\n\t}",
"private static String infixToPostfix(String expression)\r\n {\r\n String result = \"\";\r\n char current_char = ' ';\r\n int index = 0;\r\n StackInterface<Character> operand_stack = new ArrayStack<>();\r\n switch(stack_type)\r\n {\r\n case(\"vector\"):\r\n operand_stack = new VectorStack<>();\r\n break;\r\n \r\n case(\"linked\"):\r\n operand_stack = new LinkedListStack<>();\r\n break;\r\n }\r\n\r\n //iterates through every character and puts them in the stack or the result accordingly\r\n while(index < expression.length())\r\n {\r\n current_char = expression.charAt(index);\r\n switch(current_char)\r\n {\r\n //checks if the character is an operand and if so checks if it should pop the previous input or not\r\n case '+': case '-': case '*': case '/':\r\n if(!operand_stack.isEmpty())\r\n {\r\n while(!operand_stack.isEmpty() && getOperandImportance(current_char) <= getOperandImportance(operand_stack.peek()))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.push(current_char);\r\n }\r\n else\r\n {\r\n operand_stack.push(current_char);\r\n }\r\n break;\r\n\r\n //exponents are always pushed onto the stack\r\n case '^':\r\n operand_stack.push(current_char);\r\n break;\r\n\r\n //if an open delimiter is there, we add it to the stack\r\n case '(': case '{': case '[':\r\n operand_stack.push(current_char);\r\n break;\r\n \r\n //if the delimiter is closing we pop until we find the open equivalent\r\n case ')': case '}': case ']':\r\n while(operand_stack.peek() != delimiterEquivalent(current_char))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.pop();\r\n break;\r\n\r\n case ' ':\r\n break;\r\n\r\n default: \r\n result += current_char;\r\n break;\r\n }\r\n index++;\r\n }\r\n\r\n //pops everything left in the stack to the result at the end\r\n while(!operand_stack.isEmpty())\r\n {\r\n result += operand_stack.pop();\r\n }\r\n\r\n return result;\r\n }",
"private Query applySynonymQueries(Query query, List<Query> synonymQueries, float originalBoost, float synonymBoost) {\n if (query instanceof BoostedQuery) {\n return applySynonymQueries(((BoostedQuery) query).getQuery(), synonymQueries, originalBoost, synonymBoost);\n } else if (query instanceof BooleanQuery) {\n BooleanQuery.Builder booleanQueryBuilder = new BooleanQuery.Builder();\n for (BooleanClause booleanClause : ((BooleanQuery) query).clauses()) {\n if (Occur.MUST == booleanClause.getOccur()) {\n BooleanQuery.Builder combinedQueryBuilder = new BooleanQuery.Builder();\n combinedQueryBuilder.add(new BoostQuery(booleanClause.getQuery(), originalBoost), Occur.SHOULD);\n // standard 'must occur' clause - i.e. the main user query\n \n for (Query synonymQuery : synonymQueries) {\n BooleanQuery.Builder booleanSynonymQueryBuilder = new BooleanQuery.Builder();\n booleanSynonymQueryBuilder.add(new BoostQuery(synonymQuery, synonymBoost), Occur.SHOULD);\n combinedQueryBuilder.add(booleanSynonymQueryBuilder.build(), Occur.SHOULD);\n }\n booleanQueryBuilder.add(combinedQueryBuilder.build(), Occur.MUST);\n } else {\n booleanQueryBuilder.add(booleanClause);\n }\n }\n query = booleanQueryBuilder.build();\n queryToHighlight = query;\n }\n return query;\n }",
"public static void main(String[] args) {\n\n List<String> functionArgumentOfA = new ArrayList<>();\n functionArgumentOfA.add(\"Boolean\");\n functionArgumentOfA.add(\"Integer\");\n functionArgumentOfA.add(\"Integer\");\n\n Function functionA = new Function(\"A\", false, functionArgumentOfA);\n\n\n List<String> functionArgumentOfB = new ArrayList<>();\n functionArgumentOfB.add(\"Integer\");\n functionArgumentOfB.add(\"Integer\");\n functionArgumentOfB.add(\"Integer\");\n\n Function functionB = new Function(\"B\", false, functionArgumentOfB);\n\n List<String> functionArgumentOfC = new ArrayList<>();\n functionArgumentOfC.add(\"Integer\");\n\n Function functionC = new Function(\"C\", true, functionArgumentOfC);\n\n FunctionSearchPlugin searchPlugin = new FunctionSearchPlugin();\n\n List<Function> functions = new ArrayList<>();\n\n functions.add(functionA);\n functions.add(functionB);\n functions.add(functionC);\n\n searchPlugin.register(functions);\n //Search for functions now\n //Integer, Integer, Integer should return B and C\n\n List<String> firstSearch = new ArrayList<>();\n firstSearch.add(\"Integer\");\n firstSearch.add(\"Integer\");\n firstSearch.add(\"Integer\");\n\n List<Function> searchResponse = searchPlugin.searchFunctions(firstSearch);\n System.out.format(\"Query: %s\", String.join(\", \", firstSearch) + \"\\n\");\n System.out.println(\"Response: \");\n printFunctionSignature(searchResponse);\n\n\n List<String> secondSearch = new ArrayList<>();\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n secondSearch.add(\"Integer\");\n\n searchResponse = searchPlugin.searchFunctions(secondSearch);\n System.out.format(\"Query: %s\", String.join(\", \", secondSearch) + \"\\n\");\n System.out.println(\"Response: \");\n printFunctionSignature(searchResponse);\n\n }",
"private void executeArrayAccessExpression(ArrayAccessExpressionTree tree) {\n ProgramState.Pop unstack = programState.unstackValue(2);\n programState = unstack.state;\n programState = programState.stackValue(constraintManager.createSymbolicValue(tree));\n }",
"public Element compileTerm() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tString varName;\n\n\t\tElement termParent = document.createElement(\"term\");\n\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\ttokenType = jTokenizer.tokenType();\n\n\t\t// Case 1: ( expression )\n\n\t\tif (token.equals(\"(\")) {\n\t\t\t// (\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t\t// exp\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t// )\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t}\n\n\t\t// Case 2: unaryOp term\n\t\telse if (token.matches(\"\\\\-|~\")) {\n\n\t\t\t// unary op\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tString op = jTokenizer.returnTokenVal();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t\n\t\t\t//Since it is postfix, the term comes first\n\t\t\t\n\t\t\t// term\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileTerm());\n\n\t\t\t// appending the op\n\t\t\tif (op.equals(\"~\")) {\n\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t} else {\n\t\t\t\twriter.writeArithmetic(\"neg\");\n\t\t\t}\n\n\t\t}\n\t\t\n\t\t// Any constant or keyword\n\t\telse if (tokenType.matches(\"keyword|integerConstant|stringConstant\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t//pushing an integer constant\n\t\t\tif (tokenType.equals(\"integerConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", Integer.parseInt(token));\t\n\t\t\t}\n\t\t\t//For string, have to iterate along the length of the string and call string.append\n\t\t\telse if (tokenType.equals(\"stringConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", token.length());\n\t\t\t\twriter.writeCall(\"String.new\", 1);\n\n\t\t\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\t\t\twriter.writePush(\"constant\", (int) token.charAt(i));\n\t\t\t\t\twriter.writeCall(\"String.appendChar\", 2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t//Pushing the keyword onto the stack, depending on what it is\n\t\t\telse if (tokenType.equals(\"keyword\")) {\n\t\t\t\tif (token.equals(\"true\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t\t} else if (token.equals(\"this\")) {\n\t\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\t} else if (token.equals(\"false\") || token.equals(\"null\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Variable, Variable[expression] or subroutineCall\n\t\telse if (tokenType.equals(\"identifier\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\tvarName = jTokenizer.returnTokenVal();\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.returnTokenVal();\n\n\t\t\t// Case 1: Array dereferencing\n\t\t\tif (token.equals(\"[\")) {\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// push base id\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\n\t\t\t\t// Exp\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t\t// ]\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// base + offset\n\t\t\t\twriter.writeArithmetic(\"add\");\n\n\t\t\t\t// pop into that\n\t\t\t\twriter.writePop(\"pointer\", 1);\n\t\t\t\t// push value into stack\n\t\t\t\twriter.writePush(\"that\", 0);\n\t\t\t}\n\n\t\t\t// Case 2: variable/class.subroutine call\n\t\t\telse if (token.equals(\".\")) {\n\n\t\t\t\tboolean method = false;\n\n\t\t\t\t// .\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// subroutine name\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tString subName = jTokenizer.returnTokenVal();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\tString firstName = varName;\n\t\t\t\t//Similar to the compileDo method, have to distinguish between\n\t\t\t\t//method and function\n\t\t\t\tif (symTable.lookup(firstName) != null) {\n\t\t\t\t\tmethod = true;\n\t\t\t\t\twriter.writePush(symTable.lookup(firstName).kind, symTable.lookup(firstName).index);\n\t\t\t\t\tvarName = symTable.lookup(firstName).type;\n\t\t\t\t}\n\t\t\t\t// expressionList\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement compileExpression = compileExpressionList();\n\t\t\t\tint nArgs = compileExpression.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(compileExpression);\n\n\t\t\t\t// Checking if method or function\n\t\t\t\tif (method) {\n\t\t\t\t\tnArgs++;\n\t\t\t\t}\n\t\t\t\twriter.writeCall(varName + \".\" + subName, nArgs);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\t\t\t}\n\n\t\t\t// Case 3: function call\n\t\t\telse if (token.equals(\"(\")) {\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// expression list\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement node = compileExpressionList();\n\t\t\t\tint nArgs = node.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(node);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// Writing the VML for a method call\n\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\twriter.writeCall(className + \".\" + varName, ++nArgs);\n\t\t\t}\n\t\t\t// Case 4: Variable name.\n\t\t\telse {\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\t\t\t}\n\t\t}\n\t\treturn termParent;\n\t}",
"public static void main(String[] args)\n throws Exception\n {\n PrintWriter pen = new PrintWriter(System.out, true);\n BST<String, String> dict =\n new BST<String, String>((left, right) -> left.compareTo(right));\n\n String[] values =\n new String[] { \"gorilla\", \"dingo\", \"chimp\", \"emu\", \"elephant\", \"beta\",\n \"aardvark\", \"chinchilla\", \"yeti\", \"gibbon\", \"horse\",\n \"elephant\", \"duck\", \"emu\" };\n String[] moreValues =\n new String[] { \"gnu\", \"dingo\", \"flying squirrel\", \"iguana\", \"squirrel\",\n \"red squirrel\", \"moose\" };\n\n // Add each element and make sure that it's there.\n for (String value : values)\n {\n addString(pen, dict, value);\n } // for\n\n // A quick printout for fun\n pen.println(\"After setting the first set of values\");\n iterate(pen, dict.iterator());\n\n // Another quick printout for fun\n for (String value : values)\n {\n addString(pen, dict, value);\n } // for\n pen.println(\"After setting the second set of values\");\n iterate(pen, dict.iterator());\n\n // Build iterators that traverse in different ways\n Iterable<String> df_pre_lr =\n dict.values(Traversal.DEPTH_FIRST_PREORDER_LEFT_TO_RIGHT);\n Iterable<String> df_in_lr =\n dict.values(Traversal.DEPTH_FIRST_INORDER_LEFT_TO_RIGHT);\n Iterable<String> df_in_rl =\n dict.values(Traversal.DEPTH_FIRST_INORDER_RIGHT_TO_LEFT);\n Iterable<String> bf_pre_rl =\n dict.values(Traversal.BREADTH_FIRST_PREORDER_RIGHT_TO_LEFT);\n\n // Iterate!\n pen.println(\"Iterating depth-first, preorder, left-to-right\");\n pen.print(\" \");\n iterate(pen, df_pre_lr);\n \n pen.println(\"Iterating depth-first, inorder, left-to-right\");\n pen.print(\" \");\n iterate(pen, df_in_lr);\n \n pen.println(\"Iterating depth-first, inorder, right-to-left\");\n pen.print(\" \");\n iterate(pen, df_in_rl);\n \n pen.println(\"Iterating breadth-first, preorder, right-to-left\");\n pen.print(\" \");\n iterate(pen, bf_pre_rl);\n\n // And we're done\n pen.close();\n }",
"public void rightParenthesis() {\n int size = expStack.size();\n int occurrence = expStack.lastIndexOf(\"(\");\n for (int i = size - 1; i >= occurrence; i--) {\n if (!(expStack.get(i).equals(\"(\"))) {\n postFix.add(expStack.get(i));\n }\n expStack.pop();\n }\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\twhile(sc.hasNext()){\r\n\t\t\tString str = sc.nextLine();\r\n\t\t\tStack<String> digit = new Stack<>();\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\tchar ch;\r\n\t\t\tboolean isHasOperator = false;\r\n\t\t\tboolean isLegal = true;\r\n\t\t\tint len = str.length();\r\n\t\t\tint i = 0;\r\n\t\t\twhile(i<len){\r\n\t\t\t\tch = str.charAt(i);\r\n\t\t\t\tswitch (ch) {\r\n\t\t\t\tcase '[':\r\n\t\t\t\tcase '{':\r\n\t\t\t\tcase '(':\r\n\t\t\t\tcase '+':\r\n\t\t\t\tcase '-':\r\n\t\t\t\tcase '*':\r\n\t\t\t\tcase '/':\r\n\t\t\t\t\tdigit.push(ch+\"\");\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase ']':\r\n\t\t\t\tcase '}':\r\n\t\t\t\tcase ')':\r\n\t\t\t\t\tString second = null;\r\n\t\t\t\t\twhile(digit.size()>1){\r\n\t\t\t\t\t\t//!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")\r\n\t\t\t\t\t\tif(!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")&&!digit.peek().equals(\")\")\r\n\t\t\t\t\t\t\t\t&&!digit.peek().equals(\"]\")&&!digit.peek().equals(\"}\")&&!digit.peek().equals(\"+\")&&!digit.peek().equals(\"-\")&&!digit.peek().equals(\"*\")&&!digit.peek().equals(\"/\")){\r\n\t\t\t\t\t\t\tsecond = digit.pop();\r\n\t\t\t\t\t\t\tif (digit.size()>0&&(digit.peek().equals(\"+\")||digit.peek().equals(\"-\")||digit.peek().equals(\"*\")||digit.peek().equals(\"/\"))) {\r\n\t\t\t\t\t\t\t\tisHasOperator = true;\r\n\t\t\t\t\t\t\t\tdigit.pop();\r\n\t\t\t\t\t\t\t\tif (digit.size()>0) {\r\n\t\t\t\t\t\t\t\t\tsecond = digit.pop();\r\n\t\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\t\tisLegal = false;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tisLegal = false;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tString first = digit.pop();\r\n\t\t\t\t\t\tif (digit.size()>0&&!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")) {\r\n\t\t\t\t\t\t\tif (digit.peek().equals(\"+\")||digit.peek().equals(\"-\")||digit.peek().equals(\"*\")||digit.peek().equals(\"/\")) {\r\n\t\t\t\t\t\t\t\tisHasOperator = true;\r\n\t\t\t\t\t\t\t\tdigit.pop();\r\n\t\t\t\t\t\t\t\tif (isHasOperator&&!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")&&!digit.peek().equals(\")\")\r\n\t\t\t\t\t\t\t\t\t\t&&!digit.peek().equals(\"]\")&&!digit.peek().equals(\"}\")&&!digit.peek().equals(\"+\")&&!digit.peek().equals(\"-\")&&!digit.peek().equals(\"*\")&&!digit.peek().equals(\"/\")) {\r\n\t\t\t\t\t\t\t\t\tsecond = digit.pop();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (second==null) {\r\n\t\t\t\t\t\tisLegal = false;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tdigit.pop();\r\n\t\t\t\t\t\tdigit.push(second);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbuffer.append(ch);\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\twhile(i<len&&ch!='+'&&ch!='-'&&ch!='*'&&ch!='/'&&ch!='['&&ch!='{'&&ch!='('&&ch!=')'&&ch!=']'&&ch!='}'){\r\n\t\t\t\t\t\tch = str.charAt(i);\r\n\t\t\t\t\t\tbuffer.append(ch);\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdigit.push(buffer.toString());\r\n\t\t\t\t\tbuffer.setLength(0);\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif (!isLegal) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (digit.size()==1&&!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")) {\r\n\t\t\t\t\r\n\t\t\t}else {\r\n\t\t\t\tisLegal = false;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(isLegal);\r\n\t\t}\r\n\t}",
"public int evalRPN(String[] tokens) {\n Stack<Integer> stack = new Stack<>();\n for(String token : tokens){\n if(token.equals(\"+\")){\n int a = stack.pop();\n int b = stack.pop();\n stack.push(b+a);\n }else if(token.equals(\"-\")){\n int a = stack.pop();\n int b = stack.pop();\n stack.push(b-a);\n }else if(token.equals(\"*\")){\n stack.push(stack.pop()*stack.pop());\n }else if(token.equals(\"/\")){\n int a = stack.pop();\n int b = stack.pop();\n stack.push(b/a);\n }else{\n stack.push(Integer.parseInt(token));\n }\n }\n return stack.pop();\n }",
"private Operation expression(Scope scope, Vector queue)\r\n {\r\n Operation root = expression1(scope, queue);\r\n\r\n if (assign.contains(nextSymbol))\r\n {\r\n Operation op = new Operation();\r\n\r\n op.left = root;\r\n\r\n op.operator = assignmentOperator();\r\n op.right = expression(scope, queue);\r\n\r\n root = op;\r\n }\r\n\r\n return root;\r\n }",
"public static void assignCompoundTokens(ArrayList<String>scan){\n\nfor(int i=0;i<scan.size();i++){\n if( isUnaryPostOperator( scan.get(i) ) ){\n \n if(isNumber(scan.get(i-1))||isVariableString(scan.get(i-1))){ \n int index=i-1;\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\ni=j+1;\n }//end if\n\n else if(isClosingBracket(scan.get(i-1))){\n int index=MBracket.getComplementIndex(false, i-1, scan);\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\n i=j+1;\n }\n \n \n \n }\n \n \n \n}\n\n\n\n}",
"public static void main(String[] args) {\n\t\t\r\n\t\tStackUsingQueues st = new StackUsingQueues();\r\n\t\t\r\n\t\tst.push(1);\r\n\t\tst.push(2);\r\n\t\tst.push(3);\r\n\t\tst.push(4);\r\n\t\t\r\n\t\tSystem.out.println(st.pop());\r\n\t\tSystem.out.println(st.pop());\r\n\t\tSystem.out.println(st.pop());\r\n\t\tSystem.out.println(st.pop());\r\n\t\t\r\n\t\tst.push(5);\r\n\t\tst.push(6);\r\n\t\tst.push(7);\r\n\t\tst.push(8);\r\n\t\t\r\n\t\tSystem.out.println(st.pop());\r\n\t\tSystem.out.println(st.pop());\r\n\t\tSystem.out.println(st.pop());\r\n\t\tSystem.out.println(st.pop());\r\n\r\n\t}",
"public static List<ExecutionEntity> handlerExpression(Set<Book> books, String expression){\n\t\tif(books != null && books.size() > 0){\n\t\t\tList<ExecutionEntity> entities = new ArrayList<ExecutionEntity>();\n\t\t\tClass<?> clazz = null;\n\t\t\tMethod[] methods = null;\n\t\t\tMethod currentMethod = null;\n\t\t\tfor(Book book: books){\n\t\t\t\tclazz = book.getClazz();\n\t\t\t\tmethods = clazz.getDeclaredMethods();\n\t\t\t\tif(methods != null){\n\t\t\t\t\tList<MethodWrapper> accessMethods = new ArrayList<MethodWrapper>();\n\t\t\t\t\tfor(int index = 0; index < methods.length; index ++){\n\t\t\t\t\t\tcurrentMethod = methods[index];\n\t\t\t\t\t\tif(currentMethod.toString().matches(expression)){\n\t\t\t\t\t\t\taccessMethods.add(new MethodWrapper(currentMethod));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(accessMethods.size() > 0){\n\t\t\t\t\t\tentities.add(new ExecutionEntity(book, accessMethods));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn entities;\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t}",
"public void dispatch(){\n if (size() == 0){\n return;\n }\n int nb = 0, ns = 0;\n for (Exp exp : this){\n if (exp.isStatement()){\n ns++;\n }\n else {\n nb++;\n }\n }\n if (ns == 0 || (ns == 1 && nb == 0)){\n return;\n }\n doDispatch();\n }",
"public int calculate(String s) {\n Deque<Integer> stack = new ArrayDeque<>();\n\n // Init\n int result = 0; // For the on-going result\n int sign = 1; // 1 means positive, -1 means negative\n int operand = 0;\n\n // 1 + 2 + 1\n // The tricky part is that we find an operator/sign first, then we know\n // the operand after that. We save the sign first, and when we evaluate the\n // expression so far, we use that sign.\n\n // Go through the expression string character by character.\n // Evaluate to the left when we find '+', '-', ')', or end of loop.\n // We use a stack when we find parenthesis.\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (Character.isDigit(c)) {\n // Form operand, since it could be more than one digit.\n operand = 10 * operand + (c - '0');\n } else if (c == '+') {\n // We can evaluate the expression to the left,\n // with result, sign, operand\n result += sign * operand;\n // Save the recently encountered '+' sign\n sign = 1;\n // Reset operand\n operand = 0;\n } else if (c == '-') {\n // We can evaluate the expression to the left,\n result += sign * operand;\n // Save the '-' sign.\n sign = -1;\n operand = 0;\n } else if (c == '(') {\n // Push the result so far and sign onto the stack, for later use.\n // We push the result first, then sign in the stack.\n stack.push(result);\n stack.push(sign);\n // Reset result, sign, and operand, as if new evaluation begins for the new\n // sub-expression\n result = 0;\n sign = 1;\n operand = 0;\n } else if (c == ')') {\n // We can evaluate the sub-expression to the left.\n result += sign * operand;\n // Now that we know the sub-expression ended, we can also evaluate to the left.\n // First we take the sign out of the stack, and then add the result we saved\n // before to the result of the sub-expression.\n result *= stack.pop();\n result += stack.pop();\n // Reset sign and operand.\n sign = 1;\n operand = 0;\n }\n }\n\n // We need to evaluate again.\n result += sign * operand;\n\n return result;\n }",
"public static void main(String[] args) throws InvalidExpression\r\n {\r\n getStackType();\r\n while(run_again)\r\n {\r\n startUp();\r\n System.out.println(\"The postfix and prefix equivalents of \" + infix_expression + \" are as follows:\");\r\n System.out.println(\"Postfix: \" + infixToPostfix(infix_expression));\r\n System.out.println(\"Prefix: \" + infixToPrefix(infix_expression) + \"\\n\");\r\n runAgain();\r\n }\r\n }",
"private final void push(Object ob) {\r\n\t\teval_stack.add(ob);\r\n\t}",
"public void build(List<Node> booleanExpressionToAdd) throws TreeParsingException { \r\n this.tokenType = JdbcGrammarParser.WHEREEXPRESSION;\r\n this.tokenName = JdbcGrammarParser.tokenNames[this.tokenType];\r\n this.logger.debug(\"BUILDING \" + this.tokenName + \"from booleanExpressions\");\r\n \r\n if(booleanExpressionToAdd.size() == 1 && \r\n booleanExpressionToAdd.get(0).getTokenType() == JdbcGrammarParser.BOOLEANEXPRESSIONITEM){\r\n this.expression = booleanExpressionToAdd.get(0);\r\n \r\n //Resolve new pointed Columns\r\n WhereExpressionJoinResolver.columnResolver(\r\n (BooleanExpressionItem)this.expression, this.selectStatement);\r\n }\r\n else {\r\n this.expression = new Conjunction(booleanExpressionToAdd, selectStatement);\r\n }\r\n }",
"public void convertInfixToPostfix() {\n\t\t// Create operator stack\n\t\tStack<String> op_stack = new Stack<String>();\n\n\t\t// Prepare the input string\n\t\tprepareInput();\n\t\t\n\t\t// Split the expression \n\t\tString[] tokens = input.split(\"(?<=[^\\\\.a-zA-Z\\\\d])|(?=[^\\\\.a-zA-Z\\\\d])\");\n\t\t\n\t\t//For each token\n\t\tfor (String t : tokens) {\n\t\t\t// If the token is empty, skip it\n\t\t\tif(t.equals(\"\") || t.equals(\" \")) continue;\n\t\t\t\n\t\t\t// If operator (o1)\n\t\t\tif (Operator.isOperator(t)) {\n\n\t\t\t\t// While there is an operator (o2) an the stack and\n\t\t\t\t// (o1 is left associative AND o2 precedence is higher or equal to o1 precedence)\n\t\t\t\t// OR\n\t\t\t\t// (o1 is right associative AND o2 precedence is higher than o1 precedence)\n\t\t\t\twhile (!op_stack.empty()\n\t\t\t\t\t\t&& Operator.isOperator(op_stack.peek())\n\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.LEFT) && Operator.comparePrec(op_stack.peek(), t) >= 0) \n\t\t\t\t\t\t\t|| \n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.RIGHT) && Operator.comparePrec(op_stack.peek(), t) > 0)\n\t\t\t\t\t\t )\n\t\t\t\t ) \n\t\t\t\t{\n\t\t\t\t\t// add o2 to the output\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Push o1 on to the stack.\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\"(\")) {\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\")\")) {\n\t\t\t\t// While there is not a left parenthesis, add the top token from the stack to the output\n\t\t\t\twhile (!op_stack.peek().equals(\"(\")) {\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\n\t\t\t\t// Pop out the left parenthesis\n\t\t\t\top_stack.pop();\n\t\t\t\t\n\t\t\t\t// While there is a function on the top of the stack, add it to the output\n\t\t\t\tif(!op_stack.empty() && Function.isFunction(op_stack.peek())) output.add(op_stack.pop());\n\t\t\t}\n\t\t\telse if(Function.isFunction(t)){\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\t\t\telse if(isNumeric(t) || isVariable(t)){\n\t\t\t\toutput.add(t);\n\t\t\t}\n\t\t}\n\n\t\t// Finally empty the stack, by adding all remaining tokens to the output.\n\t\twhile (!op_stack.empty()) {\n\t\t\toutput.add(op_stack.pop());\n\t\t}\n\t}",
"public CustomQueue<String> calculate (CustomQueue<String> infixQueue){\r\n InfixToPostfixConverter converter = new InfixToPostfixConverter();\r\n \r\n CustomQueue<String> postFix = converter.convertToPostFix(infixQueue);\r\n CustomQueue<String> result = evaluatePostFix(postFix);\r\n return result;\r\n }",
"private static void lookForFunctionCycles(\n XQueryFunction f, Stack<Object> referees, XQueryFunctionLibrary globalFunctionLibrary) throws XPathException {\n Expression body = f.getBody();\n referees.push(f);\n List<Binding> list = new ArrayList<Binding>(10);\n ExpressionTool.gatherReferencedVariables(body, list);\n for (Binding b : list) {\n if (b instanceof GlobalVariable) {\n ((GlobalVariable) b).lookForCycles(referees, globalFunctionLibrary);\n }\n }\n List<SymbolicName> flist = new ArrayList<SymbolicName>();\n ExpressionTool.gatherCalledFunctionNames(body, flist);\n for (SymbolicName s : flist) {\n XQueryFunction qf = globalFunctionLibrary.getDeclarationByKey(s);\n if (!referees.contains(qf)) {\n // recursive function calls are allowed\n lookForFunctionCycles(qf, referees, globalFunctionLibrary);\n }\n }\n referees.pop();\n }",
"private void doAsTopOfStack() {\n int activePos = pos + inputUsed;\n int leftoverLength = length - inputUsed;\n\n if (rule.rhs.length == rhsUsed) { // rule exhausted\n if (leftoverLength == 0) { // input exhausted\n TD.knownRuleGoals.recordParsing(this);\n TD.dottedGoalStack.pop();\n ((RuleGoal)this).doWorkAfterDone();\n TD.dottedGoalStack.push(this);\n }\n } else {\n Symbol rhsAtDot = rule.rhs[rhsUsed];\n if (leftoverLength > 0) {\n Symbol inputAtDot = TD.input.symbolAt(activePos);\n if (rhsAtDot.equals(inputAtDot)) doWorkAfterMatch(1);\n }\n for (int len = 0; len <= leftoverLength; len++)\n (new Goal(rhsAtDot, activePos, len)).doWork();\n }\n }",
"public static void main(String[] args) {\n unaryAndBinaryOperator();\n }",
"public void operator(String str) {\n if (!(emptyStack()) && (OperatorOperand.operatorPrecedence(str)\n <= OperatorOperand.operatorPrecedence(expStack.lastElement()))) {\n String stackTop = expStack.lastElement();\n while ((!(stackTop.equals(\"(\"))) || (OperatorOperand.operatorPrecedence(str)\n <= OperatorOperand.operatorPrecedence(expStack.lastElement()))) {\n postFix.add(stackTop);\n expStack.pop();\n if (!(emptyStack())) {\n stackTop = expStack.lastElement();\n continue;\n }\n break;\n }\n }\n expStack.push(str);\n }",
"@Test(timeout = 4000)\n public void test101() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"qgS3&9T,:6UK}hF\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"q\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"gS3\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }"
] | [
"0.5419809",
"0.52633685",
"0.48737842",
"0.47783723",
"0.47775227",
"0.4754849",
"0.46912766",
"0.46100837",
"0.45816568",
"0.45748195",
"0.45707834",
"0.456665",
"0.45413932",
"0.45381537",
"0.4529776",
"0.4527605",
"0.4450695",
"0.4432298",
"0.44136667",
"0.43711373",
"0.43699184",
"0.43620577",
"0.43467224",
"0.43462685",
"0.43381462",
"0.43343422",
"0.4327343",
"0.43157429",
"0.42815882",
"0.42738906",
"0.42677638",
"0.42671382",
"0.42612556",
"0.4259512",
"0.42529538",
"0.42397842",
"0.4239067",
"0.4237224",
"0.42235544",
"0.4220398",
"0.4218731",
"0.42083472",
"0.4207534",
"0.42003414",
"0.41984677",
"0.41964558",
"0.41913602",
"0.41869065",
"0.41807762",
"0.4174993",
"0.41593838",
"0.41560087",
"0.41537598",
"0.41440043",
"0.41417104",
"0.41385472",
"0.4137148",
"0.41350588",
"0.41270357",
"0.41171673",
"0.4112286",
"0.41093156",
"0.41055617",
"0.41051218",
"0.41002032",
"0.40985912",
"0.40853068",
"0.40835822",
"0.4068075",
"0.406421",
"0.40631312",
"0.4062533",
"0.405697",
"0.40538365",
"0.4049558",
"0.40482417",
"0.40466166",
"0.40437168",
"0.4039671",
"0.40367892",
"0.40318978",
"0.4020906",
"0.40167284",
"0.40156704",
"0.40103745",
"0.39993092",
"0.39991444",
"0.3996595",
"0.39962226",
"0.39933047",
"0.39884517",
"0.39856222",
"0.3983029",
"0.39784274",
"0.3977859",
"0.3971628",
"0.39711347",
"0.39686677",
"0.39634675",
"0.39595655"
] | 0.743977 | 0 |
Executes this Query against a bookmartian | public QueryResult execute(Bookmartian bm) {
QueryResult qr = new QueryResult().name(_raw);
Collection<Bookmark> allBookmarks = bm.bookmarks();
log.info("Executing query against {} bookmarks", allBookmarks.size());
List<Bookmark> bookmarks = eval(_compiledQuery, allBookmarks, qr);
if (!qr.hasSort()) bookmarks = eval(DEFAULT_SORT, bookmarks, qr);
return qr.bookmarks(bookmarks);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Query query();",
"private void executeQuery()\n {\n ResultSet rs = null;\n try\n { \n String author = (String) authors.getSelectedItem();\n String publisher = (String) publishers.getSelectedItem();\n if (!author.equals(\"Any\") && !publisher.equals(\"Any\"))\n { \n if (authorPublisherQueryStmt == null)\n authorPublisherQueryStmt = conn.prepareStatement(authorPublisherQuery);\n authorPublisherQueryStmt.setString(1, author);\n authorPublisherQueryStmt.setString(2, publisher);\n rs = authorPublisherQueryStmt.executeQuery();\n }\n else if (!author.equals(\"Any\") && publisher.equals(\"Any\"))\n { \n if (authorQueryStmt == null)\n authorQueryStmt = conn.prepareStatement(authorQuery);\n authorQueryStmt.setString(1, author);\n rs = authorQueryStmt.executeQuery();\n }\n else if (author.equals(\"Any\") && !publisher.equals(\"Any\"))\n { \n if (publisherQueryStmt == null)\n publisherQueryStmt = conn.prepareStatement(publisherQuery);\n publisherQueryStmt.setString(1, publisher);\n rs = publisherQueryStmt.executeQuery();\n }\n else\n { \n if (allQueryStmt == null)\n allQueryStmt = conn.prepareStatement(allQuery);\n rs = allQueryStmt.executeQuery();\n }\n\n result.setText(\"\");\n while (rs.next())\n {\n result.append(rs.getString(1));\n result.append(\", \");\n result.append(rs.getString(2));\n result.append(\"\\n\");\n }\n rs.close();\n }\n catch (SQLException e)\n {\n result.setText(\"\");\n while (e != null)\n {\n result.append(\"\" + e);\n e = e.getNextException();\n }\n }\n }",
"private static void executeQuery3(PersistenceManager pm) {\n Query query = pm.newQuery(Book.class);\n query.setFilter(\"date >= fromDate && date <= toDate\");\n query.declareImports(\"import java.util.Date\");\n query.declareParameters(\"Date fromDate, Date toDate\");\n query.setOrdering(\"date descending\"); // order from new to old\n Collection results =\n (Collection)query.execute(getYearDate(2002), getYearDate(2003));\n printCollection(\"Books published in 2002:\", results.iterator());\n query.closeAll();\n }",
"private void executeQuery1(PersistenceManager pm) {\n Query query = pm.newQuery(Book.class, \"pages > 300\");\n Collection results = (Collection)query.execute();\n printCollection(\"Books with more than 300 pages:\", results.iterator());\n query.closeAll();\n }",
"public void Query() {\n }",
"private void executeQuery() {\n }",
"protected boolean query() {\r\n\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()) + processQueryAuthor(queryBk.getCreator())\r\n\t\t\t\t+ processQueryPublisher(queryBk.getPublisher()));\r\n\t\tSystem.out.println(queryStr);\r\n\t\t// if edition is 'lastest' (coded '0'), no query is performed; and\r\n\t\t// return false.\r\n\t\tif (queryBk.parseEdition() == 0) {\r\n\t\t\treturn false;\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * The following section adds edition info to the query string if edition no. is\r\n\t\t * greater than one. By cataloging practice, for the first edition, probably\r\n\t\t * there is NO input on the associated MARC field. Considering this, edition\r\n\t\t * query string to Primo is NOT added if querying for the first edition or no\r\n\t\t * edition is specified.\r\n\t\t */\r\n\t\tif (queryBk.parseEdition() > 1) {\r\n\t\t\tqueryStr += processQueryEdition(queryBk.parseEdition());\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * Querying the Primo X-service; and invoking the matching processes (all done\r\n\t\t * by remoteQuery()).\r\n\t\t */\r\n\t\tif (strHandle.hasSomething(queryBk.getPublisher())) {\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * For various reasons, there are possibilities that the first query fails while\r\n\t\t * a match should be found. The follow work as remedy queries to ensure the\r\n\t\t * accuracy.\r\n\t\t */\r\n\r\n\t\tif (!match && strHandle.hasSomething(queryBk.getPublisher())) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryPublisher(queryBk.getPublisher()) + processQueryAuthor(queryBk.getCreator()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()) + processQueryAuthor(queryBk.getCreator()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match && strHandle.hasSomething(queryBk.getPublishYear())) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryAuthor(queryBk.getCreator()) + processQueryYear(queryBk.getPublishYear()));\r\n\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryAuthor(queryBk.getCreator()) + processQueryTitleShort(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t// Additional query for Chinese titles\r\n\r\n\t\tif (!match && (CJKStringHandling.isCJKString(queryBk.getTitle())\r\n\t\t\t\t|| CJKStringHandling.isCJKString(queryBk.getCreator())\r\n\t\t\t\t|| CJKStringHandling.isCJKString(queryBk.getPublisher()))) {\r\n\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\r\n\t\t\tif (!match && queryBk.parseEdition() != -1) {\r\n\t\t\t\tqueryStr = new String(\r\n\t\t\t\t\t\tprocessQueryTitle(queryBk.getTitle()) + processQueryEdition2(queryBk.parseEdition()));\r\n\t\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\t\tmatch = true;\r\n\t\t\t\t\tsetBookInfo();\r\n\t\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmatch = false;\r\n\t\t\t\t} // end if\r\n\r\n\t\t\t\tif (!match && queryBk.parseEdition() != -1) {\r\n\t\t\t\t\tqueryStr = new String(\r\n\t\t\t\t\t\t\tprocessQueryTitle(queryBk.getTitle()) + processQueryEdition3(queryBk.parseEdition()));\r\n\t\t\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\t\t\tmatch = true;\r\n\t\t\t\t\t\tsetBookInfo();\r\n\t\t\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmatch = false;\r\n\t\t\t\t\t} // end if\r\n\t\t\t\t} // end if\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t// Additional check for ISO Document number in <search> <genernal> PNX\r\n\t\t// tag\r\n\t\tif (!match && !CJKStringHandling.isCJKString(queryBk.getTitle())) {\r\n\t\t\tqueryStr = new String(processQueryTitleISODoc(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t\terrMsg += \"Query: No record found on Primo.\" + Config.QUERY_SETTING;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\t\treturn false;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprivate CompoundQuery handleQuery() throws Exception{\n\t\tif (this.resultant != null && this.resultant.getResultsContainer() != null){\n\t\t\t//compoundQuery = (CompoundQuery) resultant.getAssociatedQuery();\n\t\t\tViewable view = newCompoundQuery.getAssociatedView();\n\t\t\tResultsContainer resultsContainer = this.resultant.getResultsContainer();\n\t\t\tsampleCrit = null;\n\t Collection sampleIDs = new ArrayList(); \n\t\t\t//Get the samples from the resultset object\n\t\t\tif(resultsContainer!= null){\n\t\t\t\tCollection samples = null;\n\t\t\t\tif(resultsContainer != null &&resultsContainer instanceof DimensionalViewContainer){\t\t\t\t\n\t\t\t\t\tDimensionalViewContainer dimensionalViewContainer = (DimensionalViewContainer)resultsContainer;\n\t\t\t\t\t\tCopyNumberSingleViewResultsContainer copyNumberSingleViewContainer = dimensionalViewContainer.getCopyNumberSingleViewContainer();\n\t\t\t\t\t\tGeneExprSingleViewResultsContainer geneExprSingleViewContainer = dimensionalViewContainer.getGeneExprSingleViewContainer();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(copyNumberSingleViewContainer!= null){\n\t\t\t\t\t\t\tSet<BioSpecimenIdentifierDE> biospecimenIDs = copyNumberSingleViewContainer.getAllBiospecimenLabels();\n\t\t\t\t \t\tfor (BioSpecimenIdentifierDE bioSpecimen: biospecimenIDs) {\n\t\t\t\t \t\t\tif(bioSpecimen.getSpecimenName()!= null){\n\t\t\t\t \t\t\t\tsampleIDs.add(new SampleIDDE(bioSpecimen.getSpecimenName()));\n\t\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\tif(geneExprSingleViewContainer!= null){\n\t\t\t\t\t\t\tSet<BioSpecimenIdentifierDE> biospecimenIDs = geneExprSingleViewContainer.getAllBiospecimenLabels();\n\t\t\t\t \t\tfor (BioSpecimenIdentifierDE bioSpecimen: biospecimenIDs) {\n\t\t\t\t \t\t\tif(bioSpecimen.getSpecimenName()!= null){\n\t\t\t\t \t\t\t\t\tsampleIDs.add(new SampleIDDE(bioSpecimen.getSpecimenName()));\n\t\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}\n\t\t\t \t\tsampleCrit = new SampleCriteria();\n\t\t \t\t\tsampleCrit.setSampleIDs(sampleIDs);\n\n AddConstrainsToQueriesHelper constrainedSamplesHandler= new AddConstrainsToQueriesHelper();\n constrainedSamplesHandler.constrainQueryWithSamples(newCompoundQuery,sampleCrit);\n\t\t\t\tnewCompoundQuery = getShowAllValuesQuery(newCompoundQuery);\n\t\t\t\tnewCompoundQuery.setAssociatedView(view);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn newCompoundQuery;\n\t\t}",
"private void montaQuery(Publicacao object, Query q) {\t\t\n\t}",
"BookDO selectByPrimaryKey(String bookIsbn);",
"private void searchBook(String query) {\n String filter = this.bookFilter.getValue();\n String sort = this.sort.getValue();\n \n // Get the user defined comparator\n Comparator<Book> c = getBookComparator(filter, sort);\n\n // Create a book used for comparison\n Book book = createBookForQuery(filter, query);\n \n // Find all matches\n GenericList<Book> results = DashboardController.library.getBookTable().findAll(book, c);\n\n // Cast results to an array\n Book[] bookResults = bookResultsToArray(results, c);\n\n // Load the results in a new scene\n this.loadBookResultsView(bookResults);\n }",
"private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t } catch (BOSException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}",
"void runQueries();",
"Book selectByPrimaryKey(String bid);",
"public ResultSet Brus(Long broker_id) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\" \");\r\n\treturn rs;\r\n\t\r\n}",
"public HashMap<Integer,NeurolexPageId> runSelectQueryBAMS() {\n\t\tString queryString = getComposedQuery();\n\n\t\ttry {\n\t\t\t// URL encode query string\n\t\t\tqueryString = URLEncoder.encode(queryString, \"UTF-8\");\n\n\t\t\t// compose the final URL\n\t\t\tURL sparqlConnection = new URL(this.sparqlEndPointURL + \n\t\t\t\t\t\"?query=\" + queryString);\n\n\t\t\tHttpURLConnection httpConnection = (HttpURLConnection)sparqlConnection.openConnection();\n\t\t\thttpConnection.setRequestProperty(\"accept\", \"application/sparql-results+xml\");\n\t\t\tInputStream queryResult = httpConnection.getInputStream();\n\n\t\t\treturn parseSPARQLResultBAMS(queryResult);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public static void main(String[] args) {\n\t\tSession s2=util.getSession();\r\n\t\tQuery qry=s2.getNamedQuery(\"q2\");\r\n\t\t//Query qry=s2.getNamedQuery(\"q3\");\r\n\t\t//qry.setInteger(0, 50);\r\n\t\tList<Object[]> lust=qry.list();\r\n\t\tfor(Object[] row:lust) {\r\n\t\t\tSystem.out.println(Arrays.toString(row));\r\n\t\t}\r\n\t\tSystem.out.println(\"Completed\");\r\n\t}",
"public abstract QueryResultIterable executeGroundingQuery(Formula formula);",
"public abstract Statement queryToRetrieveData();",
"@Override\n public boolean onQueryTextSubmit(String query) {\n prepareBooks(engine.search(query.toLowerCase(),filter));\n return false;\n }",
"private QueryResult performMappedQuery() throws VizException {\n\n if (database == null) {\n throw new VizException(\"Database not specified for query\");\n }\n if (query == null) {\n throw new VizException(\"Cannot execute null query\");\n }\n\n QlServerRequest request = new QlServerRequest(query);\n request.setDatabase(database);\n request.setType(QueryType.QUERY);\n request.setParamMap(paramMap);\n\n // set the mode so the handler knows what to do\n if (queryLanguage == null) {\n throw new VizException(\"Query language not specified\");\n } else if (queryLanguage.equals(QueryLanguage.HQL)) {\n request.setLang(QlServerRequest.QueryLanguage.HQL);\n } else {\n request.setLang(QlServerRequest.QueryLanguage.SQL);\n }\n\n // create request object\n QueryResult retVal = null;\n // get result\n AbstractResponseMessage response = (AbstractResponseMessage) ThriftClient\n .sendRequest(request);\n\n if (response instanceof ResponseMessageGeneric) {\n retVal = (QueryResult) ((ResponseMessageGeneric) response)\n .getContents();\n\n } else if (response instanceof ResponseMessageError) {\n ResponseMessageError rme = (ResponseMessageError) response;\n VizServerSideException innerException = new VizServerSideException(\n rme.toString());\n throw new VizServerSideException(rme.getErrorMsg(), innerException);\n }\n\n return retVal;\n }",
"private static void queryBook(){\n\t\tSystem.out.println(\"===Book Queries Menu===\");\n\t\t\n\t\t/*Display menu options*/\n\t\tSystem.out.println(\"1--> Query Books by Author\");\n\t\tSystem.out.println(\"2--> Query Books by Genre\");\n\t\tSystem.out.println(\"3--> Query Books by Publisher\");\n\t\tSystem.out.println(\"Any other number --> Exit To Main Menu\");\n\t\tSystem.out.println(\"Enter menu option: \");\n\t\tint menu_option = getIntegerInput(); //ensures user input is an integer value\n\t\t\n\t\tswitch(menu_option){\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println();\n\t\t\t\tqueryBooksByAuthor();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println();\n\t\t\t\tqueryBooksByGenre();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println();\n\t\t\t\tqueryBooksByPublisher();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}",
"public void customerQuery(){\n }",
"Object executeQuery(String sparqlQuery);",
"public static <T> void queryAll() {\n\t\tString sql = \"SELECT * FROM LIBRARY ORDER BY BID \";\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tClass<T> clazz = (Class<T>) Lib.class;\n\t\tSystem.out.println(\"All books info is displayed below: \");\n\t\ttry {\n\t\t\tList<T> eleList = dao.queryData(sql, clazz);\n\t\t\tfor (T ele : eleList) {\n\t\t\t\tSystem.out.println(\"\\t\"+ele);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\r\n public void query(String strSQL)\r\n {\r\n try\r\n {\r\n dbRecordset = dbCmdText.executeQuery(strSQL);\r\n status(\"epic wonder \"+ strSQL);\r\n }\r\n catch (Exception ex)\r\n {status(\"Query fail\");\r\n }\r\n }",
"Query queryOn(Connection connection);",
"public abstract ResultList executeSQL(RawQuery rawQuery);",
"public ResultSet app(Long broker_id)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\"\");\r\n\treturn rs;\r\n}",
"@Override\n\t\tpublic void executeQuery(String query) {\n\t\t\t\n\t\t}",
"@Override\n\tpublic ResultBO<?> queryBill(Map<String, String> map) {\n\t\treturn super.queryBill(map);\n\t}",
"private static void executeQueryUsingPreparedStatement() {\n\t\t\n\t\tSystem.out.println(\"\\nFetching data using PreparedStatement ....\");\n\t\t//Connection object use to create connection.\n\t\tConnection con = null;\n\t\t//Prepared statement object to run query.\n\t\tPreparedStatement ps = null;\n\t\t//Result set object to get the result of the query.\n\t\tResultSet rs = null;\n\t\tConnectionUtil conUtil = new ConnectionUtil();\n\t\tcon = conUtil.getConnection();\n\t\t//Query to be run.\n\t\tString query = \"select T.title_id, T.title_name, T.publisher_id, T.subject_id FROM titles T, \"\n\t\t\t\t+ \"title_author TA inner join authors A on A.author_id = TA.author_id where\"\n\t\t\t\t+ \" T.title_id = TA.title_id && concat(A.author_fname,' ', A.author_lname) = ?\";\n\t\tString author_name = \"salim khan\";\n\n\t\ttry {\n\t\t\tps = con.prepareStatement(query);\n\t\t\t/* set variable in prepared statement */\n\t\t\tps.setString(1, author_name);\n\t\t\trs = ps.executeQuery();\n\t\t\tList<Titles> titleList = new ArrayList<Titles>();\n\t\t\twhile (rs.next()) {\n\t\t\t\tTitles titles = new Titles();\n\t\t\t\ttitles.setTitleId(Integer.parseInt(rs.getString(1)));\n\t\t\t\ttitles.setTitleName(rs.getString(2));\n\t\t\t\ttitles.setPublishreId(Integer.parseInt(rs.getString(3)));\n\t\t\t\ttitles.setSubjectId(Integer.parseInt(rs.getString(4)));\n\t\t\t\ttitleList.add(titles);\n\t\t\t}\n\t\t\tSystem.out.println(\"List of books are\");\n\t\t\tSystem.out.println(titleList);\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t/* close connection */\n\t\t\ttry {\n\t\t\t\tif (con != null) {\n\t\t\t\t\tcon.close();\n\t\t\t\t}\n\t\t\t\tif (ps != null) {\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\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\n\t\t}\n\t\t\n\t}",
"public abstract ResultList executeQuery(DatabaseQuery query);",
"public void queryTransactionDetail(){\n System.out.println(\"-----find transaction detail by condition-----\");\n System.out.println(\"--press enter to skip the input--\");\n String sql = \"select * from TransactionContains join Merchandise on TransactionContains.ProductID = Merchandise.ProductID where TransactionID=\";\n System.out.print(\"TransactionID: \");\n String unuse=scanner.nextLine();\n String id=scanner.nextLine();\n sql+=id;\n try {\n //System.out.println(sql);\n result = statement.executeQuery(sql);\n int cnt=0;\n while (result.next()) {\n cnt++;\n System.out.println(\"\\n=== No.\"+cnt+\" ===\");\n System.out.println(\"transaction id: \"+result.getInt(\"TransactionID\"));\n System.out.println(\"product id: \"+result.getInt(\"ProductID\"));\n System.out.println(\"product name: \"+result.getString(\"ProductName\"));\n System.out.println(\"actual price: \"+result.getDouble(\"ActualPrice\"));\n }\n System.out.println(\"Total rows: \"+cnt);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"public void executeItemRangeSql() throws SQLException {\n\t\tSqlStatement rangeSqlStatement = getRangeSqlStatement();\n\t\tlog.debug(\"Item range database query: \" + rangeSqlStatement.getQuery());\n\t\tlog.debug(\"Item range statement parameters: \" + rangeSqlStatement.getParams());\n\t\t\n\t\tthis.itemRangeStatement = this.con.prepareStatement(rangeSqlStatement.getQuery());\n\t\trangeSqlStatement.propagateStatementWithParams(this.itemRangeStatement);\n\t\t\n\t\t/*if (this.itemRangeCount != null && (this.itemRangeCount.longValue() < 1000)) {\n\t\t\tthis.itemRangeStatement.setFetchSize(this.itemRangeCount.intValue());\n\t\t}*/\n\t\t\n\t\tthis.itemRangeResultSet = this.itemRangeStatement.executeQuery();\n\t}",
"public static List<Book> getBookSellers() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookSellers\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}",
"public static List<Book> getBookDetails_2() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getAllBookList_2\");\r\n List<Book> bookList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookList;\r\n}",
"public void queryData() throws SolrServerException {\n\t\tfinal SolrQuery query = new SolrQuery(\"*:*\");\r\n\t\tquery.setRows(2000);\r\n\t\t// 5. Executes the query\r\n\t\tfinal QueryResponse response = client.query(query);\r\n\r\n\t\t/*\t\tassertEquals(1, response.getResults().getNumFound());*/\r\n\r\n\t\t// 6. Gets the (output) Data Transfer Object.\r\n\t\t\r\n\t\t\r\n\t\r\n\t\tif (response.getResults().iterator().hasNext())\r\n\t\t{\r\n\t\t\tfinal SolrDocument output = response.getResults().iterator().next();\r\n\t\t\tfinal String from = (String) output.getFieldValue(\"from\");\r\n\t\t\tfinal String to = (String) output.getFieldValue(\"to\");\r\n\t\t\tfinal String body = (String) output.getFieldValue(\"body\");\r\n\t\t\t// 7.1 In case we are running as a Java application print out the query results.\r\n\t\t\tSystem.out.println(\"It works! I found the following book: \");\r\n\t\t\tSystem.out.println(\"--------------------------------------\");\r\n\t\t\tSystem.out.println(\"ID: \" + from);\r\n\t\t\tSystem.out.println(\"Title: \" + to);\r\n\t\t\tSystem.out.println(\"Author: \" + body);\r\n\t\t}\r\n\t\t\r\n\t\tSolrDocumentList list = response.getResults();\r\n\t\tSystem.out.println(\"list size is: \" + list.size());\r\n\r\n\r\n\r\n\t\t/*\t\t// 7. Otherwise asserts the query results using standard JUnit procedures.\r\n\t\tassertEquals(\"1\", id);\r\n\t\tassertEquals(\"Apache SOLR Essentials\", title);\r\n\t\tassertEquals(\"Andrea Gazzarini\", author);\r\n\t\tassertEquals(\"972-2-5A619-12A-X\", isbn);*/\r\n\t}",
"public ResultSet Rebroker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public static List<Book> searchBookByItemCode(String itemCode) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByItemCode\").setString(\"itemCode\", itemCode);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }",
"@Override\n protected List<Book> doInBackground(String... params) {\n\n String importedQuery[] = params[0].split(\"#\");\n String fullQuery = \"\";\n\n for (int i = 0; i < importedQuery.length; i++) {\n if (!fullQuery.equals(\"\")) fullQuery+='&';\n //vanaf hier moet de lus komen voor meerdere gekoppelde queries\n String prefix = \"\";\n String searchWord = \"\";\n\n int tmp = 0;\n for (String s : importedQuery) Log.d(TAG, \"params[]\" + tmp++ + s);\n\n String args[] = importedQuery[i].split(\"\\\\|\"); //todo params[i]\n prefix = args[0].trim();\n searchWord = args[1].trim();\n searchWord = searchWord.replace(\" \", \"+\");\n\n\n Log.d(TAG, \"searchWord:\" + searchWord);\n Log.d(TAG, \"Prefix\" + prefix);\n\n String[] options = SearchMethodGoogleApi.getPrefixesForQuery();\n// for (String s:options)Log.v(TAG+\"options\",s);\n if (!isStringInArray(prefix, options)) {\n //een ongeldige parameter mee gestuurd\n throw new IllegalArgumentException(\"invalid parameters\");\n }\n fullQuery += prefix + searchWord;\n\n //tot hier moet de lus komen voor meerdere gekoppelde queries\n\n }\n\n\n\n\n List<Book> bookList = new ArrayList<>();\n Volume volume = null;\n Volumes volumes = null;\n Books books = QueryGoogleBooksHelper.setUpClient();\n\n\n Books.Volumes.List volumesList = null;\n try {\n volumesList = books.volumes().list(fullQuery).setMaxResults(40L);\n\n Log.d(App.getTAG(), \"queryFullString:\" + fullQuery);\n\n\n // Execute the searchWord.\n volumes = volumesList.execute();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (volumes != null && volumes.getItems() != null) {\n //vanaf hier halen we de details op:\n for (Volume vol : volumes.getItems()) {\n Log.v(TAG + \"Book (genAll)\", vol != null ? vol.toString() : \"\");\n\n Volume.VolumeInfo volInfo = vol.getVolumeInfo();\n Volume.SaleInfo salesInfo = vol.getSaleInfo();\n Volume.SearchInfo searchInfo = vol.getSearchInfo();\n\n\n //get authors in List\n List<String> authorStringList = volInfo.getAuthors();\n ArrayList<Author> authorArrayList = new ArrayList<>();\n //copy contents of list to array\n if (volInfo.getAuthors() != null) {\n for (String author : authorStringList)\n authorArrayList.add(new Author(author));\n } else {\n authorArrayList.add(new Author(App.getContext().getString(R.string.no_returned_authors_google)));\n }\n\n //getGoogleID\n String googleID = vol.getId();\n\n //get ISBN:\n String ISBN = \"\";\n if (volInfo.getIndustryIdentifiers() != null) {\n if (volInfo.getIndustryIdentifiers().size() > 1)\n ISBN = volInfo.getIndustryIdentifiers().get(1).getIdentifier();\n }\n\n //get Title:\n String title = \"\";\n if (volInfo.getTitle() != null) {\n title = volInfo.getTitle();\n }\n //get description\n String description = \"\";\n if (volInfo.getDescription() != null) {\n description = volInfo.getDescription();\n }\n\n //get ImageLinks:\n Volume.VolumeInfo.ImageLinks imageLinks = null;\n if (volInfo.getImageLinks() != null) {\n imageLinks = volInfo.getImageLinks();\n }\n\n //get links to book (pre)views:\n String previewLink = \"\";\n if (volInfo.getPreviewLink() != null) {\n previewLink = volInfo.getPreviewLink();\n }\n\n //String shortDescription=searchInfo.getTextSnippet()+App.getContext().getString(R.string.etc_after_book_description);\n Double averageRating = volInfo.getAverageRating();\n\n //TODO:etc verder doen\n\n //create new Book and edit its info with the info from Google\n Book book = new Book(ISBN, googleID, title, authorArrayList, description, imageLinks, previewLink);\n bookList.add(book);\n Log.v(TAG, bookList.size() + \"Book added\");\n }\n }\n\n\n return bookList;\n\n\n }",
"public List<Books> searchBook(int book_id){\n String sql=\"select * from Book where id=?\";\n BaseDao baseDao =dao.executeQuery(sql,new Object[]{book_id});\n return resultSetToBook(baseDao);\n }",
"@Override\r\n\tprotected void onBoQuery() throws Exception {\n\t\tUIDialog querydialog = getQueryUI();\r\n\t\tif (querydialog.showModal() != UIDialog.ID_OK) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// 得到查询条件\r\n\t\tString strWhere = ((HYQueryConditionDLG) querydialog).getWhereSql();\r\n\t\t// 得到所有的查询标签\r\n\t\tConditionVO[] ttc = ((HYQueryConditionDLG) querydialog)\r\n\t\t\t\t.getQryCondEditor().getGeneralCondtionVOs();\r\n\t\t// ConditionVO[] vos =\r\n\t\t// ((HYQueryConditionDLG)querydialog).getQryCondEditor().getGeneralCondtionVOs();\r\n\t\tString sendsignState = \"\";\r\n\t\tfor (ConditionVO vo : ttc) {\r\n\t\t\tif (\"tb_pointposition.pp_archive\".equals(vo.getFieldCode())) {\r\n\t\t\t\tsendsignState = vo.getValue();\r\n\t\t\t\tif (\"Y\".equals(sendsignState)) {\r\n\t\t\t\t\tstrWhere = StringUtil.replaceIgnoreCase(strWhere,\r\n\t\t\t\t\t\t\t\"tb_pointposition.pp_archive = 'Y'\",\r\n\t\t\t\t\t\t\t\"tb_pointposition.pp_archive=1 and dr=0 \");\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Edit).setEnabled(\r\n\t\t\t\t\t\t\ttrue);\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(\r\n\t\t\t\t\t\t\tfalse);\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Delete)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Refresh)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Print).setEnabled(\r\n\t\t\t\t\t\t\ttrue);\r\n\t\t\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t\t\t.setEnabled(false);\r\n\t\t\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\t\t\t\t\tgetBillUI().updateButtons();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstrWhere = StringUtil.replaceIgnoreCase(strWhere,\r\n\t\t\t\t\t\t\t\"tb_pointposition.pp_archive = 'N'\",\r\n\t\t\t\t\t\t\t\" (tb_pointposition.pp_archive=0 or tb_pointposition.pp_archive is null) and dr=0 \");\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Edit).setEnabled(\r\n\t\t\t\t\t\t\ttrue);\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Delete)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Refresh)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\r\n\t\t\t\t\tgetButtonManager().getButton(IBillButton.Print).setEnabled(\r\n\t\t\t\t\t\t\ttrue);\r\n\t\t\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t\t\t.setEnabled(true);\r\n\t\t\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t\t\t.setEnabled(false);\r\n\t\t\t\t\tgetBillUI().updateButtons();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tSuperVO[] queryVos = queryHeadVOs(strWhere.toString());\r\n\r\n\t\tgetBufferData().clear();\r\n\t\t// 增加数据到Buffer\r\n\t\taddDataToBuffer(queryVos);\r\n\r\n\t\tupdateBuffer();\r\n\t\t// 修改按钮属性\r\n\t\tif (\"Y\".equals(sendsignState)) {\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(false);\r\n\t\t\t\r\n\t\t\tmyaddbuttun=false;\r\n\t\t} else {\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(true);\r\n\t\t\t\r\n\t\t\tmyaddbuttun=true;\r\n\t\t}\r\n\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\tgetBillUI().setCardUIState();\r\n\t\t// 在转回列表显示界面,显示数据\r\n\t\tsuper.onBoReturn();\r\n\t\t\r\n\t}",
"public String execute() throws SQLException {\n try { \n results = postDBSearcher.searchSpecific(title, class_num, class_name, school);\n\n //If the search does not find any results tries the partial search\n if (results.isEmpty()){\n results = postDBSearcher.searchPartiallyGeneral(title, class_num, class_name, school);\n }\n\n //If the partial search did not find anything, then it tries to make a general search\n if (results.isEmpty()){\n results = postDBSearcher.searchGeneral(title, class_num, class_name, school);\n }\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n return SUCCESS;\n }",
"BnesBrowsingHis selectByPrimaryKey(BigDecimal browsingHisId) throws SQLException;",
"@Override\r\n\tpublic Book searchBook(long ISBN) {\n\t\t transactionTemplate.setReadOnly(true);\r\n\t\treturn transactionTemplate.execute(new TransactionCallback<Book>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Book doInTransaction(TransactionStatus status) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n//\t\t\t\tBook book = bookDAO.serachBook(ISBN);\r\n\t\t\t\tBook book=new Book();\r\n\t\t\t\tbook.setISBN(ISBN);\r\n\t\t\t\tbookDAO.addBook(book);\r\n\t\t\t\treturn book;\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t}",
"public static List<Book> searchBookByNameAndNameOfTheSeller(String name,String nameOfTheSeller) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByNameAndNameOfTheSeller\").setString(\"name\", name).setString(\"nameOfTheSeller\", nameOfTheSeller);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }",
"public void testPerformQuery() throws IOException\r\n {\r\n final IQuery t = new ContentQuery();\r\n try\r\n {\r\n final Hits h = t.performQuery(\"author:jpitts\", new Sort(IndexDocument.REVISION_FIELD));\r\n Assert.assertNotNull(h);\r\n Assert.assertTrue(0 < h.length());\r\n for (int i = 0; i < h.length(); i++)\r\n {\r\n final Document d = h.doc(i);\r\n CommitQueryTest.log.debug(d);\r\n }\r\n }\r\n finally\r\n {\r\n t.close();\r\n }\r\n }",
"public static List<Book> searchBookByNameOfSeller(String nameOfSeller) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByNameOfTheSeller\").setString(\"nameOfTheSeller\", nameOfSeller);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }",
"public java.util.Collection<pl.wcislo.sbql4j.java.model.runtime.Struct> executeQuery(\n final ObjectContainerBase ocb, final Transaction t) {\n final LocalTransaction transLocal = (LocalTransaction) t;\n final java.util.Collection<kor.model.Student> _ident_Student = new java.util.ArrayList<kor.model.Student>();\n ClassMetadata _classMeta5 = ocb.classCollection()\n .getClassMetadata(\"kor.model.Student\");\n long[] _ids5 = _classMeta5.getIDs(transLocal);\n\n for (long _id5 : _ids5) {\n LazyObjectReference _ref5 = transLocal.lazyReferenceFor((int) _id5);\n _ident_Student.add((kor.model.Student) _ref5.getObject());\n }\n\n java.util.Collection<pl.wcislo.sbql4j.java.model.runtime.Struct> _dotResult3 =\n new java.util.ArrayList<pl.wcislo.sbql4j.java.model.runtime.Struct>();\n int _dotIndex3 = 0;\n\n for (kor.model.Student _dotEl3 : _ident_Student) {\n if (_dotEl3 == null) {\n continue;\n }\n\n if (_dotEl3 != null) {\n ocb.activate(_dotEl3, 2);\n }\n\n java.lang.String _mth_getFnameResult = _dotEl3.getFname();\n\n if (_mth_getFnameResult != null) {\n ocb.activate(_mth_getFnameResult, 1);\n }\n\n java.lang.String _mth_getSnameResult = _dotEl3.getSname();\n\n if (_mth_getSnameResult != null) {\n ocb.activate(_mth_getSnameResult, 1);\n }\n\n pl.wcislo.sbql4j.java.model.runtime.Struct _commaResult = OperatorUtils.cartesianProductSS(_mth_getFnameResult,\n _mth_getSnameResult, \"\", \"\");\n kor.model.Address _mth_getAddressResult = _dotEl3.getAddress();\n\n if (_mth_getAddressResult != null) {\n ocb.activate(_mth_getAddressResult, 1);\n }\n\n kor.model.Address _dotEl = _mth_getAddressResult;\n\n if (_mth_getAddressResult != null) {\n ocb.activate(_mth_getAddressResult, 2);\n }\n\n java.lang.String _mth_getStreetResult = _dotEl.getStreet();\n\n if (_mth_getStreetResult != null) {\n ocb.activate(_mth_getStreetResult, 1);\n }\n\n pl.wcislo.sbql4j.java.model.runtime.Struct _commaResult1 = OperatorUtils.cartesianProductSS(_commaResult,\n _mth_getStreetResult, \"\", \"\");\n kor.model.Address _mth_getAddressResult1 = _dotEl3.getAddress();\n\n if (_mth_getAddressResult1 != null) {\n ocb.activate(_mth_getAddressResult1, 1);\n }\n\n kor.model.Address _dotEl1 = _mth_getAddressResult1;\n\n if (_mth_getAddressResult1 != null) {\n ocb.activate(_mth_getAddressResult1, 2);\n }\n\n java.lang.String _mth_getCityResult = _dotEl1.getCity();\n\n if (_mth_getCityResult != null) {\n ocb.activate(_mth_getCityResult, 1);\n }\n\n pl.wcislo.sbql4j.java.model.runtime.Struct _commaResult2 = OperatorUtils.cartesianProductSS(_commaResult1,\n _mth_getCityResult, \"\", \"\");\n kor.model.Address _mth_getAddressResult2 = _dotEl3.getAddress();\n\n if (_mth_getAddressResult2 != null) {\n ocb.activate(_mth_getAddressResult2, 1);\n }\n\n kor.model.Address _dotEl2 = _mth_getAddressResult2;\n\n if (_mth_getAddressResult2 != null) {\n ocb.activate(_mth_getAddressResult2, 2);\n }\n\n java.lang.String _mth_getZipResult = _dotEl2.getZip();\n\n if (_mth_getZipResult != null) {\n ocb.activate(_mth_getZipResult, 1);\n }\n\n pl.wcislo.sbql4j.java.model.runtime.Struct _commaResult3 = OperatorUtils.cartesianProductSS(_commaResult2,\n _mth_getZipResult, \"\", \"\");\n\n if (_commaResult3 != null) {\n ocb.activate(_commaResult3, 2);\n }\n\n _dotResult3.add(_commaResult3);\n _dotIndex3++;\n }\n\n java.util.Collection<pl.wcislo.sbql4j.java.model.runtime.Struct> _groupAsResultstuds =\n _dotResult3;\n pl.wcislo.sbql4j.db4o.utils.DerefUtils.activateResult(_groupAsResultstuds,\n ocb);\n\n return _groupAsResultstuds;\n }",
"public ResultSet Editbroker(Long broker_id) throws SQLException {\n\t\r\nSystem.out.println(\"edit broker\");\r\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\" \");\r\n\treturn rs;\r\n}",
"public List<Books> showAllBooks(){\n String sql=\"select * from Book\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{});\n List<Books> list=new ArrayList<>();\n list=resultSetToBook(baseDao);\n return list;\n }",
"public ResultSet Rebroker2()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='not approved'\");\r\n\treturn rs;\r\n}",
"@Override\n public void execute() {\n modelFacade.getFoodItems().addAll(modelFacade.fetchMatchingFoodItemResults(sb.toString()));\n }",
"public ResultSet broker1()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select b.broker_id,b.first_name,b.last_name from broker b,login l where l.login_id=b.login_id and l.usertype='broker' and l.status='approved'\");\r\n\treturn rs;\r\n}",
"public static List<Book> searchBookByNameAndLocation(String name,String location) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByNameAndLocation\").setString(\"name\", name).setString(\"location\", location);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }",
"String queryInformation(String tableName,String queryname){\n Connection con = GetDBConnection.connectDB(\"booklibrarymanager\",\"root\",\"HanDong85\");\n String tar;\n if(tableName.equals(\"authorinformation\"))\n tar = \"author\";\n else if(tableName.equals(\"classificationinformation\"))\n tar = \"classification\";\n else tar = \"press\";\n String sql = \"select \" + tar + \"Id\" + \" from \" + tableName + \" where \";\n if(tableName.equals(\"authorinformation\"))\n sql += \"authorName = ?;\";\n else if(tableName.equals(\"classificationinformation\"))\n sql += \"classifcationName = ?;\";\n else sql += \"pressName = ?;\";\n System.out.println(sql);\n PreparedStatement preSQL;\n try{\n preSQL = con.prepareStatement(sql);\n preSQL.setString(1,queryname);\n ResultSet rs = preSQL.executeQuery();\n rs.beforeFirst();\n if(rs.next()){\n String ans = rs.getString(1);\n GetDBConnection.closeCon(con);\n return ans;\n }\n else{\n GetDBConnection.closeCon(con);\n return ERROR_TIP;\n }\n }\n catch (SQLException e){\n GetDBConnection.closeCon(con);\n return ERROR_TIP;\n }\n }",
"public static List<Book> getBookLocation() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookLocation\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}",
"@Test\n public void testShowSearchedApartment() throws SQLException {\n System.out.println(\"showSearchedApartment\");\n String location = \"gokarna\";\n ApartmentBLL instance = new ApartmentBLL();\n ResultSet result = instance.showSearchedApartment(location);\n assertTrue(result.next());\n }",
"IntegralBook selectByPrimaryKey(Long integralBookId);",
"public static ru.terralink.mvideo.sap.Orders findByPrimaryKey(java.lang.String IV_FO_TOR_ID\n ,java.lang.String IV_FU_TOR_ID)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.findByPrimaryKey\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \"SELECT x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x\"\n + \".\\\"_rf\\\",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" FROM \\\"mvideo5_1_0_orders\\\" x WHERE (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"bl\\\" = ? AND x.\\\"bm\\\" = ?)\";\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"string\"),\n com.sybase.reflection.DataType.forName(\"string\"),\n };\n Object[] values = new Object[] { \n IV_FO_TOR_ID,\n IV_FU_TOR_ID,\n };\n Object res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, ru.terralink.mvideo.sap.Orders.class);\n return (ru.terralink.mvideo.sap.Orders)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }",
"public ResultSet appcomp(Long comp_id)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company where comp_id=\"+comp_id+\"\");\r\n\treturn rs;\r\n}",
"public java.util.Collection<kor.model.Professor> executeQuery(\n final ObjectContainerBase ocb, final Transaction t) {\n final LocalTransaction transLocal = (LocalTransaction) t;\n final java.util.Collection<kor.model.Professor> _ident_Professor = new java.util.ArrayList<kor.model.Professor>();\n ClassMetadata _classMeta24 = ocb.classCollection()\n .getClassMetadata(\"kor.model.Professor\");\n long[] _ids24 = _classMeta24.getIDs(transLocal);\n\n for (long _id24 : _ids24) {\n LazyObjectReference _ref24 = transLocal.lazyReferenceFor((int) _id24);\n _ident_Professor.add((kor.model.Professor) _ref24.getObject());\n }\n\n java.util.Collection<java.lang.Integer> _dotResult = new java.util.ArrayList<java.lang.Integer>();\n int _dotIndex = 0;\n\n for (kor.model.Professor _dotEl : _ident_Professor) {\n if (_dotEl == null) {\n continue;\n }\n\n if (_dotEl != null) {\n ocb.activate(_dotEl, 1);\n }\n\n java.lang.Integer _mth_getAgeResult = _dotEl.getAge();\n\n if (_mth_getAgeResult != null) {\n ocb.activate(_mth_getAgeResult, 1);\n }\n\n if (_mth_getAgeResult != null) {\n ocb.activate(_mth_getAgeResult, 1);\n }\n\n _dotResult.add(_mth_getAgeResult);\n _dotIndex++;\n }\n\n java.lang.Double _avgResult = 0d;\n\n if ((_dotResult != null) && !_dotResult.isEmpty()) {\n Number _avgSum0 = null;\n\n for (Number _avgEl0 : _dotResult) {\n _avgSum0 = MathUtils.sum(_avgSum0, _avgEl0);\n }\n\n _avgResult = _avgSum0.doubleValue() / _dotResult.size();\n }\n\n java.lang.Double _groupAsResult_aux0 = _avgResult;\n java.lang.Double _dotEl2 = _groupAsResult_aux0;\n final java.util.Collection<kor.model.Professor> _ident_Professor1 = new java.util.ArrayList<kor.model.Professor>();\n ClassMetadata _classMeta25 = ocb.classCollection()\n .getClassMetadata(\"kor.model.Professor\");\n long[] _ids25 = _classMeta25.getIDs(transLocal);\n\n for (long _id25 : _ids25) {\n LazyObjectReference _ref25 = transLocal.lazyReferenceFor((int) _id25);\n _ident_Professor1.add((kor.model.Professor) _ref25.getObject());\n }\n\n java.util.Collection<kor.model.Professor> _asResult_p = _ident_Professor1;\n java.util.Collection<kor.model.Professor> _whereResult = new java.util.ArrayList<kor.model.Professor>();\n int _whereLoopIndex = 0;\n\n for (kor.model.Professor _whereEl : _asResult_p) {\n if (_whereEl == null) {\n continue;\n }\n\n if (_whereEl != null) {\n ocb.activate(_whereEl, 1);\n }\n\n kor.model.Professor _ident_p = _whereEl;\n\n if (_ident_p != null) {\n ocb.activate(_ident_p, 1);\n }\n\n kor.model.Professor _dotEl1 = _ident_p;\n\n if (_ident_p != null) {\n ocb.activate(_ident_p, 2);\n }\n\n java.lang.Integer _mth_getAgeResult1 = _dotEl1.getAge();\n\n if (_mth_getAgeResult1 != null) {\n ocb.activate(_mth_getAgeResult1, 1);\n }\n\n java.lang.Double _ident__aux0 = _dotEl2;\n\n if (_ident__aux0 != null) {\n ocb.activate(_ident__aux0, 1);\n }\n\n Boolean _moreResult = (_mth_getAgeResult1 == null)\n ? ((_mth_getAgeResult1 == null) ? false : false)\n : ((_mth_getAgeResult1 == null) ? true\n : (_mth_getAgeResult1 > _ident__aux0));\n\n if (_moreResult) {\n _whereResult.add(_whereEl);\n }\n\n _whereLoopIndex++;\n }\n\n java.util.Collection<kor.model.Professor> _dotResult3 = new java.util.ArrayList<kor.model.Professor>();\n int _dotIndex3 = 0;\n\n for (kor.model.Professor _dotEl3 : _whereResult) {\n if (_dotEl3 == null) {\n continue;\n }\n\n if (_dotEl3 != null) {\n ocb.activate(_dotEl3, 1);\n }\n\n kor.model.Professor _ident_p1 = _dotEl3;\n\n if (_ident_p1 != null) {\n ocb.activate(_ident_p1, 1);\n }\n\n if (_ident_p1 != null) {\n ocb.activate(_ident_p1, 1);\n }\n\n _dotResult3.add(_ident_p1);\n _dotIndex3++;\n }\n\n pl.wcislo.sbql4j.db4o.utils.DerefUtils.activateResult(_dotResult3, ocb);\n\n return _dotResult3;\n }",
"@Override\n public void executeQuery() {\n try {\n Put put = new Put(this.userId.getBytes());\n put.add(\"cf\".getBytes(), Bytes.toBytes(this.poi.getTimestamp()), this.poi.getBytes());\n this.table.put(put);\n \n } catch (IOException ex) {\n Logger.getLogger(InsertPOIVisitClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void run(){\n\t\tif(searchHow==0){\n\t\t\tint isbnCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestIsbn = new SearchRequest(db, searchForThis, isbnCount, db.size());\n\t\t\t\t\tdb.searchByISBN(requestIsbn);\n\t\t\t\t\tisbnCount = requestIsbn.foundPos;\n\t\t\t\t\tif (requestIsbn.foundPos >= 0) {\n\t\t\t\t\t\tisbnCount++;\n\t\t\t\t\t\tString formatThis = \"Matched ISBN at position: \" + requestIsbn.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestIsbn.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==1){\n\t\t\tint titleCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestTitle = new SearchRequest(db, searchForThis, titleCount, db.size());\n\t\t\t\t\tdb.searchByTitle(requestTitle);\n\t\t\t\t\ttitleCount = requestTitle.foundPos;\n\t\t\t\t\tif (requestTitle.foundPos >= 0) {\n\t\t\t\t\t\ttitleCount++;\n\t\t\t\t\t\tString formatThis = \"Matched title at position: \" + requestTitle.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestTitle.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==2){\n\t\t\tint authorCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestAuthor = new SearchRequest(db, searchForThis, authorCount, db.size());\n\t\t\t\t\tdb.searchByAuthor(requestAuthor);\n\t\t\t\t\tauthorCount = requestAuthor.foundPos;\n\t\t\t\t\tif (requestAuthor.foundPos >= 0) {\n\t\t\t\t\t\tauthorCount++;\n\t\t\t\t\t\tString formatThis = \"Matched author at position: \" + requestAuthor.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestAuthor.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==3){\n\t\t\tint pageCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestPage = new SearchRequest(db, searchForThis, pageCount, db.size());\n\t\t\t\t\tdb.searchByNumPages(requestPage);\n\t\t\t\t\tpageCount = requestPage.foundPos;\n\t\t\t\t\tif (requestPage.foundPos >= 0) {\n\t\t\t\t\t\tpageCount++;\n\t\t\t\t\t\tString formatThis = \"Matched pages at position: \" + requestPage.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestPage.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t\tif(searchHow==4){\n\t\t\tint yearCount = 0;\n\t\t\tfor(int i=0; i<db.size(); i++){\n\t\t\t\t\tSearchRequest requestYear = new SearchRequest(db, searchForThis, yearCount, db.size());\n\t\t\t\t\tdb.searchByYear(requestYear);\n\t\t\t\t\tyearCount = requestYear.foundPos;\n\t\t\t\t\tif (requestYear.foundPos >= 0) {\n\t\t\t\t\t\tyearCount++;\n\t\t\t\t\t\tString formatThis = \"Matched year at position: \" + requestYear.foundPos;\n\t\t\t\t\t\tSystem.out.printf(\"%-35s || Title: \"+db.getBook(requestYear.foundPos)+\"\\n\",formatThis);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ti=db.size();\n\t\t\t}\n\t\t}\n\t}",
"public void queryTransactions(){\n System.out.println(\"-----find transaction by condition-----\");\n System.out.println(\"--press enter to skip the input--\");\n //for every query input, do not format it into sql if it is null\n String sql = \"select * from transactionrecords join ClubMembers on transactionrecords.CustomerID = ClubMembers.CustomerID where 1=1\";\n System.out.print(\"TransactionID: \");\n String unuse=scanner.nextLine();\n String id=scanner.nextLine();\n\n //if id is given, no need for other information\n if(!StringUtils.isNullOrEmpty(id)){\n sql+=(\" and TransactionID=\"+id);\n }else{\n System.out.print(\"cashier id: \");\n String cashierid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(cashierid)){\n sql+=(\" and CashierID=\"+cashierid);\n }\n System.out.print(\"store id: \");\n String storeid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(storeid)){\n sql+=(\" and StoreID=\"+storeid);\n }\n System.out.print(\"customer id: \");\n String customerid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(customerid)){\n sql+=(\" and CustomerID=\"+customerid);\n }\n }\n try {\n //System.out.println(sql);\n result = statement.executeQuery(sql);\n int cnt=0;\n\n //print all qualified result one by one\n while (result.next()) {\n cnt++;\n System.out.println(\"\\n=== No.\"+cnt+\" ===\");\n System.out.println(\"transaction id: \"+result.getInt(\"TransactionID\"));\n System.out.println(\"cashier id: \"+result.getInt(\"CashierID\"));\n System.out.println(\"store id: \"+result.getInt(\"StoreID\"));\n System.out.println(\"customer id: \"+result.getInt(\"CustomerID\"));\n System.out.println(\"customer first name: \"+result.getString(\"FirstName\"));\n System.out.println(\"customer last name: \"+result.getString(\"LastName\"));\n System.out.println(\"total price: \"+result.getDouble(\"TotalPrice\"));\n }\n System.out.println(\"Total rows: \"+cnt);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"public static List<Book> getBookDetails_1() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getAllBookList_1\");\r\n List<Book> bookList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookList;\r\n \r\n }",
"public ORM executeQuery(String query) {\n ResultSet rs = null;\n this.query =query;\n System.out.println(\"run: \" + this.query);\n //this.curId = 0;\n Statement statement;\n try {\n statement = this.conn.createStatement();\n rs = statement.executeQuery(this.query);\n //this.saveLog(0,\"\",query);\n } catch (SQLException e) {\n System.out.println( ColorCodes.ANSI_RED +\"ERROR in SQL: \" + this.query);\n // e.printStackTrace();\n }\n lastResultSet=rs;\n this.fields_values = \"\";\n return this;\n\n }",
"public void searchForBooks(String query) {\n\n\n BooksAPI booksAPI = ServiceGenerator.getBooksAPI();\n Call<GBookList> call = booksAPI.getBook(query);\n call.enqueue(new Callback<GBookList>() {\n @EverythingIsNonNull\n @Override\n public void onResponse(Call<GBookList> call, Response<GBookList> response) {\n if (response.isSuccessful()) {\n //response.body() returns GBookList\n //from json format to object\n searchedBooks.setValue(response.body());\n\n }\n }\n @EverythingIsNonNull\n @Override\n public void onFailure(Call<GBookList> call, Throwable t) {\n Log.i(\"Retrofit \", \"Retrieving from google.books.com failed\");\n }\n });\n }",
"static ResultSet dataOphalen(String querry) {\n //declaratie anders kan er niks worden gereturnt\n ResultSet rs = null;\n try {\n Statement stmt = connectieMaken().createStatement(); //\n rs = stmt.executeQuery(querry);\n } catch (SQLException se) {\n se.printStackTrace();\n }\n return rs;\n }",
"private static void queryBooksByAuthor(){\n\t\tSystem.out.println(\"===Query Books By Author===\");\n\t\tScanner string_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter First Name of Author to Query Books by: \");\n\t\tString author_firstname = string_input.next();\n\t\t\n\t\tSystem.out.println(\"Enter Middle Name of Author to Query Books by (Type 'null' if Author has no middlename): \");\n\t\tString author_middlename = string_input.next();\n\t\tif(author_middlename.equalsIgnoreCase(\"null\"))\n\t\t\tauthor_middlename = \"\";\n\t\t\n\t\tSystem.out.println(\"Enter Last Name of Author to Query Books by: \");\n\t\tString author_lastname = string_input.next();\n\t\t\n\t\tString author_fullname = author_firstname + \" \" + author_middlename + \" \" + author_lastname;\n\t\t\n\t\tif(ALL_AUTHORS.containsKey(author_fullname)){//if author_full_name exists in the Hashtable then print out all of the author's book titles\n\t\t\tSystem.out.println(\"Author found!\");\n\t\t\tSystem.out.println(author_fullname + \"'s list of book titles are: \"); \n\t\t\tIterator<String> iter = ALL_AUTHORS.get(author_fullname).iterator();\n\t\t\tprintAllElements(iter);\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Sorry Author name entered does not exist in our records\");\n\t}",
"public static void main(String[] args) {\n\t\tpublic static List<Book> getBookByFuzzyQuery(String key){\r\n\t\t\ttry {\r\n\t\t\t\tString sql = \"select * from student where \"\r\n\t\t\t\t\t\t+ \"id like binary '%\"+key+\"%' or \"\r\n\t\t\t\t\t\t+ \"name like binary '%\"+key+\"%' or \"\r\n\t\t\t\t\t\t+ \"work like binary '%\"+key+\"%' or \"\r\n\t\t\t\t\t\t+ \"outtimes like binary '%\"+key+\"%' or \"\r\n\t\t\t\t\t\t+ \"retime like binary '%\"+key+\"%'\";\r\n\t\t\t\tPreparedStatement ps = SqlUtility.getConnection().prepareStatement(sql);\r\n\t\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\t\tList<Book> list = new ArrayList<>();\r\n\t\t\t\twhile(rs.next()){\r\n\t\t\t\t\tBook book = new Book();\r\n\t\t\t\t\tbook.setid(rs.getInt(\"id\"));\r\n\t\t\t\t\tbook.setname(rs.getString(\"name\"));\r\n\t\t\t\t\tbook.setwork(rs.getString(\"work\"));\r\n\t\t\t\t\tbook.setouttimes(rs.getString(\"outtimes\"));\r\n\t\t\t\t\tbook.setretime(rs.getString(\"retime\"));\r\n\t\t\t\t\tlist.add(book);\r\n\t\t\t\t}\r\n\t\t\t\treturn list;\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t}\r\n\t\t\treturn Collections.emptyList();\r\n\t\t}\r\n\r\n\t}",
"public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;",
"List selectByExample(BnesBrowsingHisExample example) throws SQLException;",
"public void listBooks() {\n String sql = \"SELECT ISBN, BookName, AuthorName, Price FROM books\";\n\n try (Connection conn = this.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n // Print results\n while(rs.next()) {\n System.out.println(rs.getInt(\"ISBN\") + \"\\t\" +\n rs.getString(\"BookName\") + \"\\t\" +\n rs.getString(\"AuthorName\") + \"\\t\" +\n rs.getInt(\"Price\"));\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}",
"protected final void executeQuery() {\n\ttry {\n\t executeQuery(queryBox.getText());\n\t} catch(SQLException e) {\n\t e.printStackTrace();\n\t clearTable();\n\t JOptionPane.showMessageDialog(\n\t\tnull, e.getMessage(),\n\t\t\"Database Error\",\n\t\tJOptionPane.ERROR_MESSAGE);\n\t}\n }",
"public List<Dishes> select(Dishes book){\n StringBuilder sql=new StringBuilder(\"select * from REAPER.\\\"Dish\\\" where 1=1 \");\n //sqlÓï¾ä\n System.out.println(sql); \n List<Object> list=new ArrayList<Object>();\n if(book!=null){\n \tSystem.out.println(sql); \n if(book.getDishid()!=null){\n sql.append(\" and dishid=? \");\n System.out.println(book.getDishid()); \n list.add(book.getDishid());\n }\n /*list.add(book.getBookname());\n list.add(book.getPrice());\n list.add(book.getAuthor());\n list.add(book.getPic());\n list.add(book.getPublish());*/\n }\n return dao.select(sql.toString(), list.toArray());\n }",
"public abstract void applyToQuery(DatabaseQuery theQuery, GenerationContext context);",
"public ResultSet executeSaleQuery(String query){\r\n\t\tResultSet rs = null;\r\n\t\tStatement st=null;\r\n\t\ttry {\r\n\t\t\tst = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\r\n\t\t\trs = st.executeQuery(query);\r\n\t\t}catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn rs;\r\n\t}",
"CmsRoomBook selectByPrimaryKey(String bookId);",
"public void okFind()\n {\n ASPManager mgr = getASPManager();\n\n trans.clear();\n q = trans.addQuery(headblk);\n q.addWhereCondition(\"WO_NO<(SELECT Number_Serie_API.Get_Last_Wo_Number FROM DUAL) AND CONTRACT IN(SELECT User_Allowed_Site_API.Authorized(CONTRACT) FROM DUAL)\");\n q.addWhereCondition(\"CONNECTION_TYPE_DB = 'EQUIPMENT'\");\n q.includeMeta(\"ALL\");\n\n // nimhlk - Begin\n if (mgr.dataTransfered())\n {\n ASPBuffer retBuffer = mgr.getTransferedData();\n if (retBuffer.itemExists(\"WO_NO\"))\n {\n String ret_wo_no = retBuffer.getValue(\"WO_NO\");\n q.addWhereCondition(\"WO_NO = ?\");\n q.addParameter(\"WO_NO\",ret_wo_no);\n }\n else\n q.addOrCondition(mgr.getTransferedData());\n }\n // nimhlk - End\n\n mgr.querySubmit(trans,headblk);\n\n if (headset.countRows() == 0)\n {\n mgr.showAlert(mgr.translate(\"PCMWACTIVESEPARATENODATA: No data found.\"));\n headset.clear();\n }\n if (headset.countRows() == 1)\n {\n lay.setLayoutMode(lay.SINGLE_LAYOUT);\n }\n mgr.createSearchURL(headblk);\n }",
"@Override\n\tpublic final Iterable<R> execute() {\n\t\t\n\t\treturn new Iterable<R>() {\n\t\t\t\n\t\t\t@Override \n\t\t\tpublic Iterator<R> iterator() {\n\t\t\t\t\n\t\t\t\treturn AbstractMultiQuery.this.iterator();\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\t\n\t}",
"public List<Document> execute(){\n if(!advancedQuery)\n return convertToDocumentsList(executeRegularQuery());\n else\n return convertToDocumentsList(executeAdvancedQuery());\n }",
"@Test\n public void run() {\n Tools.title(\"Selecting FIRST_NAME and LAST_NAME from the AUTHOR table\");\n Tools.print(DSL.using(Tools.connection()).select(FIRST_NAME, LAST_NAME).from(AUTHOR).orderBy(ID).fetch());\n }",
"public List<Books> searchBook(String keywords,String author,double low_price,double high_price){\n /*\n * search books by keywords of book_name\n * */\n List<Books> books=null;\n ResultSet resultSet=null;\n if(keywords!=\"\"&&author==\"\"&&low_price<0&&high_price<0){\n String sql=\"select * from Book where book_name like '%\"+keywords+\"%'\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{});\n books=resultSetToBook(baseDao);\n return books;\n }//search books by keywords and author\n else if(keywords!=\"\"&&author!=\"\"&&low_price<0&&high_price<0){\n String sql=\"select * from Book b where b.book_name like '%keywords=?%' and book_author=?\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{keywords,author});\n books=resultSetToBook(baseDao);\n return books;\n }//search books by author\n else if(keywords==\"\"&&author!=\"\"&&low_price<0&&high_price<0){\n String sql=\"select * from Book b where book_author=?\";\n BaseDao baseDaot=dao.executeQuery(sql,new Object[]{author});\n books=resultSetToBook(baseDaot);\n return books;\n }\n else if(keywords==\"\"&&author==\"\"&&low_price>0&&high_price>0){\n String sql=\"select * from Book b where book_price>? and book_price<?\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{low_price,high_price});\n books=resultSetToBook(baseDao);\n return books;\n }\n //search books by keywords and price\n else if(keywords!=\"\"&&author!=\"\"&&low_price>0&&high_price>0){\n String sql=\"select * from Book b where b.book_name like '%\"+keywords+\"%' \" +\n \"and book_author=? and book_price>? and book_price<?\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{author,low_price,high_price});\n books=resultSetToBook(baseDao);\n return books;\n }\n return null;\n }",
"DBCursor execute();",
"T execute() throws MageException;",
"public void testUsingQueriesFromQueryManger(){\n\t\tSet<String> names = testDataMap.keySet();\n\t\tUtils.prtObMess(this.getClass(), \"atm query\");\n\t\tDseInputQuery<BigDecimal> atmq = \n\t\t\t\tqm.getQuery(new AtmDiot());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> bdResult = \n\t\t\t\tatmq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(bdResult);\n\n\t\tUtils.prtObMess(this.getClass(), \"vol query\");\n\t\tDseInputQuery<BigDecimal> volq = \n\t\t\t\tqm.getQuery(new VolDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> dbResult = \n\t\t\t\tvolq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(dbResult);\n\t\n\t\tUtils.prtObMess(this.getClass(), \"integer query\");\n\t\tDseInputQuery<BigDecimal> strikeq = \n\t\t\t\tqm.getQuery(new StrikeDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> strikeResult = \n\t\t\t\tstrikeq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(strikeResult);\n\t\n\t}",
"Qtl fetch(long internalID) throws AdaptorException ;",
"T buidEntity(ResultSet rs) throws SQLException;",
"public Book[] getRecommendBook(){\n\t\n\t String stmnt = String.format(\n \"SELECT * FROM book \" );\n ResultSet rs = executeQuery(stmnt);\n ArrayList<Book> arr = resultSetPacker(rs, Book.class);\n\n return arr.toArray(new Book[arr.size()]);\n}",
"BoundQuery<?,Ttuple> query(Query q,Focus<?> context)\n throws DataException;",
"public void executeQuery_Other(String query) {\n\n \n Connection con = DBconnect.connectdb();\n Statement st;\n\n try {\n st = con.createStatement();\n st.executeUpdate(query);\n\n \n } catch (Exception e) {\n //JOptionPane.showMessageDialog(null, e);\n\n }\n\n }",
"@Override\n\tpublic void queryData() {\n\t\t\n\t}",
"public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n public QueryResult.ResultQ1[] functionQ1() {\r\n QueryResult.ResultQ1[] res=null;\r\n ArrayList<QueryResult.ResultQ1> re=new ArrayList<QueryResult.ResultQ1>();\r\n String q = \"SELECT b.isbn,b.first_publish_year,p.publisher_id,p.publisher_name FROM book b, publisher p WHERE p.publisher_id = b.publisher_id AND b.page_count = (SELECT max(bo.page_count) FROM book bo ) ORDER BY b.isbn ASC\";\r\n try {\r\n Statement s = this.connection.createStatement();\r\n ResultSet r = s.executeQuery(q);\r\n while(r.next()){\r\n String is = r.getString(\"isbn\");\r\n String fpy= r.getString(\"first_publish_year\");\r\n int pc= r.getInt(\"publisher_id\");\r\n String pn=r.getString(\"publisher_name\");\r\n QueryResult.ResultQ1 qq = new QueryResult.ResultQ1(is,fpy,pc,pn);\r\n re.add(qq);\r\n \r\n \r\n }\r\n res=re.toArray(new QueryResult.ResultQ1[0]);\r\n s.close();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n \r\n return res;\r\n }",
"public List<Dishes> selectTian(Dishes book){\n StringBuilder sql=new StringBuilder(\"select * from REAPER.\\\"Dish\\\" where \\\"cuisines\\\"='Ìðµã' \");\n //sqlÓï¾ä\n System.out.println(sql); \n List<Object> list=new ArrayList<Object>();\n if(book!=null){\n \tSystem.out.println(sql); \n if(book.getDishid()!=null){\n sql.append(\" and dishid=? \");\n System.out.println(book.getDishid()); \n list.add(book.getDishid());\n }\n }\n return dao.select(sql.toString(), list.toArray());\n }",
"@Override\n\tpublic void execute() {\n\t\t\n\t\tSectiune book = new Sectiune(\"S1\");\n\t\tbook.elemente.add(new Paragraf(\"P1\"));\n\t\tbook.elemente.add(new Paragraf(\"P2\"));\n\t\t\n\t\tDocumentManager.getInstance().setElement(book);\n\t\t\n\t}",
"public static void queryTable(DynamoDbClient ddb) {\r\n String sqlStatement = \"SELECT * FROM MoviesPartiQ where year = ? ORDER BY year\";\r\n try {\r\n\r\n List<AttributeValue> parameters = new ArrayList<>();\r\n AttributeValue att1 = AttributeValue.builder()\r\n .n(String.valueOf(\"2013\"))\r\n .build();\r\n parameters.add(att1);\r\n\r\n // Get items in the table and write out the ID value.\r\n ExecuteStatementResponse response = executeStatementRequest(ddb, sqlStatement, parameters);\r\n System.out.println(\"ExecuteStatement successful: \"+ response.toString());\r\n\r\n } catch (DynamoDbException e) {\r\n System.err.println(e.getMessage());\r\n System.exit(1);\r\n }\r\n }"
] | [
"0.62744397",
"0.6087264",
"0.60632133",
"0.5941192",
"0.5929237",
"0.5912612",
"0.58811164",
"0.5789929",
"0.5748245",
"0.56974125",
"0.56879133",
"0.5663605",
"0.560848",
"0.55969155",
"0.55764604",
"0.55687994",
"0.55554193",
"0.55526376",
"0.5533031",
"0.5519261",
"0.5515221",
"0.55085754",
"0.54811823",
"0.54757166",
"0.5471531",
"0.546965",
"0.54382807",
"0.5436691",
"0.53977114",
"0.5355851",
"0.53407466",
"0.53159064",
"0.5291644",
"0.52870375",
"0.5266452",
"0.52538186",
"0.5249929",
"0.5246974",
"0.52412444",
"0.5239554",
"0.5238848",
"0.52331007",
"0.52243596",
"0.5210847",
"0.52043605",
"0.5204025",
"0.5197206",
"0.5179247",
"0.51752174",
"0.5174604",
"0.5170424",
"0.51693916",
"0.51669383",
"0.5161035",
"0.5151503",
"0.5137265",
"0.51260185",
"0.5119333",
"0.5114289",
"0.5112806",
"0.5112728",
"0.51107025",
"0.51097655",
"0.5101863",
"0.50913304",
"0.5090421",
"0.50893134",
"0.50841755",
"0.508399",
"0.50793123",
"0.5054759",
"0.5048714",
"0.50486887",
"0.5046923",
"0.50427395",
"0.5031262",
"0.5030484",
"0.5029701",
"0.501148",
"0.5008775",
"0.4999883",
"0.4999783",
"0.4993068",
"0.49906525",
"0.49905136",
"0.49891144",
"0.4976414",
"0.49695134",
"0.4965349",
"0.4957873",
"0.49574983",
"0.4955204",
"0.49528927",
"0.4950824",
"0.49504638",
"0.49452513",
"0.49447513",
"0.49437356",
"0.49392042",
"0.49350914"
] | 0.70706505 | 0 |
Creates a new Query based on a userspecified "raw" query string | public static Query of(String rawQuery) {
return new Query(rawQuery);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Query createQuery(final String query);",
"public Query(String queryString) {\n parseQuery(queryString);\n }",
"@Override\n\tpublic Query createQuery(String qlString) {\n\t\treturn null;\n\t}",
"SQLQuery createSQLQuery(final String query);",
"public abstract String createQuery();",
"public Query query(String query) throws Exceptions.OsoException {\n return new Query(ffiPolar.newQueryFromStr(query), host.clone());\n }",
"public abstract List createQuery(String query);",
"public Query( String queryString ) {\r\n\tStringTokenizer tok = new StringTokenizer( queryString );\r\n\twhile ( tok.hasMoreTokens() ) {\r\n\t terms.add( tok.nextToken() );\r\n\t weights.add( new Double(1) );\r\n\t} \r\n }",
"protected SelectQuery getQuery(final String query) {\n\t\treturn queryFactory.parseQuery(query);\n\t}",
"public void createQuery(String s) throws HibException;",
"public Query createQuery() {\n\n String queryString = getQueryString();\n\n if (debug == true) {\n logger.info( \"Query String: {0}\", queryString);\n logger.info( \"Parameters: Max Results: {0}, First result: {1}, Order By: {2}, Restrictions: {3}, Joins: {4}\", new Object[]{maxResults, firstResult, orderBy, normalizedRestrictions, joins});\n }\n\n Query query = entityManager.createQuery(queryString);\n\n List<QueryParameter> parameters = getQueryParameters();\n for (QueryParameter parameter : parameters) {\n //dates (Date and Calendar)\n if (parameter.getTemporalType() != null && (parameter.getValue() instanceof Date || parameter.getValue() instanceof Calendar)) {\n if (parameter.getValue() instanceof Date) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Date) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Date) parameter.getValue(), parameter.getTemporalType());\n }\n }\n } else if (parameter.getValue() instanceof Calendar) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n }\n }\n }\n } else {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), parameter.getValue());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), parameter.getValue());\n }\n }\n }\n }\n\n if (maxResults != null) {\n query.setMaxResults(maxResults);\n }\n if (firstResult != null) {\n query.setFirstResult(firstResult);\n }\n return query;\n }",
"CampusSearchQuery generateQuery();",
"public QueryExecution createQueryExecution(String qryStr);",
"public QueryCore(String query)\n {\n this.query = query;\n }",
"public Query createQuery(String hql, Object... params) ;",
"TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);",
"TSearchQuery prepareSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);",
"public void newQuery(String query){\n\t\tparser = new Parser(query);\n\t\tQueryClass parsedQuery = parser.createQueryClass();\n\t\tqueryList.add(parsedQuery);\n\t\t\n\t\tparsedQuery.matchFpcRegister((TreeRegistry)ps.getRegistry());\n\t\tparsedQuery.matchAggregatorRegister();\n\t\t\n\t\t\n\t}",
"static String qs(String query) {\n\t\tif (StringUtils.isBlank(query) || \"*\".equals(query.trim())) {\n\t\t\treturn \"*\";\n\t\t}\n\t\tquery = query.trim();\n\t\tif (query.length() > 1 && query.startsWith(\"*\")) {\n\t\t\tquery = query.substring(1);\n\t\t}\n\t\ttry {\n\t\t\tStandardQueryParser parser = new StandardQueryParser();\n\t\t\tparser.setAllowLeadingWildcard(false);\n\t\t\tparser.parse(query, \"\");\n\t\t} catch (Exception ex) {\n\t\t\tlogger.warn(\"Failed to parse query string '{}'.\", query);\n\t\t\tquery = \"*\";\n\t\t}\n\t\treturn query.trim();\n\t}",
"public void constructQuery(String query) {\n\t\tQuery q = QueryFactory.create(query);\n\t\tQueryExecution qe = QueryExecutionFactory.create(q, model);\n\t\tModel result = qe.execConstruct();\n\t\tprintModel(result);\n\t\tmodel.add(result);\n\t\tqe.close();\n\t}",
"public void setQuery (String q)\n\t throws QueryParseException\n {\n\n\tthis.q = new Query ();\n\tthis.q.parse (q);\n\n\tthis.badQuery = false;\n\tthis.exp = null;\n\n\tthis.checkFrom ();\n\n }",
"public abstract <T> List<? extends T> createQuery(String query, Class<T> type);",
"@SuppressWarnings(\"null\")\n\tpublic QueryParameter parseQuery(String queryString) {\n\t\t\n/*\n\t\t * extract the name of the file from the query. File name can be found after the\n\t\t * \"from\" clause.\n\t\t */\n\n\t\t/*\n\t\t * extract the order by fields from the query string. Please note that we will\n\t\t * need to extract the field(s) after \"order by\" clause in the query, if at all\n\t\t * the order by clause exists. For eg: select city,winner,team1,team2 from\n\t\t * data/ipl.csv order by city from the query mentioned above, we need to extract\n\t\t * \"city\". Please note that we can have more than one order by fields.\n\t\t */\n\n\t\t/*\n\t\t * extract the group by fields from the query string. Please note that we will\n\t\t * need to extract the field(s) after \"group by\" clause in the query, if at all\n\t\t * the group by clause exists. For eg: select city,max(win_by_runs) from\n\t\t * data/ipl.csv group by city from the query mentioned above, we need to extract\n\t\t * \"city\". Please note that we can have more than one group by fields.\n\t\t */\n\n\t\t /*\n\t\t * extract the selected fields from the query string. Please note that we will\n\t\t * need to extract the field(s) after \"select\" clause followed by a space from\n\t\t * the query string. For eg: select city,win_by_runs from data/ipl.csv from the\n\t\t * query mentioned above, we need to extract \"city\" and \"win_by_runs\". Please\n\t\t * note that we might have a field containing name \"from_date\" or \"from_hrs\".\n\t\t * Hence, consider this while parsing.\n\t\t */\n\n\t\t/*\n\t\t * extract the conditions from the query string(if exists). for each condition,\n\t\t * we need to capture the following: 1. Name of field 2. condition 3. value\n\t\t * \n\t\t * For eg: select city,winner,team1,team2,player_of_match from data/ipl.csv\n\t\t * where season >= 2008 or toss_decision != bat\n\t\t * \n\t\t * here, for the first condition, \"season>=2008\" we need to capture: 1. Name of\n\t\t * field: season 2. condition: >= 3. value: 2008\n\t\t * \n\t\t * the query might contain multiple conditions separated by OR/AND operators.\n\t\t * Please consider this while parsing the conditions.\n\t\t * \n\t\t */\n\n\t\t /*\n\t\t * extract the logical operators(AND/OR) from the query, if at all it is\n\t\t * present. For eg: select city,winner,team1,team2,player_of_match from\n\t\t * data/ipl.csv where season >= 2008 or toss_decision != bat and city =\n\t\t * bangalore\n\t\t * \n\t\t * the query mentioned above in the example should return a List of Strings\n\t\t * containing [or,and]\n\t\t */\n\n\t\t/*\n\t\t * extract the aggregate functions from the query. The presence of the aggregate\n\t\t * functions can determined if we have either \"min\" or \"max\" or \"sum\" or \"count\"\n\t\t * or \"avg\" followed by opening braces\"(\" after \"select\" clause in the query\n\t\t * string. in case it is present, then we will have to extract the same. For\n\t\t * each aggregate functions, we need to know the following: 1. type of aggregate\n\t\t * function(min/max/count/sum/avg) 2. field on which the aggregate function is\n\t\t * being applied\n\t\t * \n\t\t * Please note that more than one aggregate function can be present in a query\n\t\t * \n\t\t * \n\t\t */\n\n\t\tString file = null;\n\t\tList<Restriction> restrictions = new ArrayList<Restriction>();\n\t\tList<String> logicalOperators = new ArrayList<String>();\n\t\tList<String> fields = new ArrayList<String>();;\n\t\tList<AggregateFunction> aggregateFunction = new ArrayList<AggregateFunction>();\n\t\tList<String> groupByFields = new ArrayList<String>();;\n\t\tList<String> orderByFields = new ArrayList<String>();;\n\t\tString baseQuery=null;\n\t\n\t\tfile = getFile(queryString);\n\n\t\t\n\t\tString[] conditions = getConditions(queryString);\n\t\tif(conditions!=null) {\n\t\tRestriction[] restriction = new Restriction[conditions.length];\n\t\t\n\t\tfor (int i = 0; i < conditions.length; i++) {\n\t\t\trestriction[i] = new Restriction();\n\t\t\t\n\t\t\tString operator=null;\n\t\t\tString value=null;\n\t\t\tString property=null;\n\t\t\t if(conditions[i].contains(\"<=\")) {\n\t\t\t\tString[] split = conditions[i].split(\"<=\");\n\t\t\t\toperator=\"<=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\">=\")) {\n\t\t\t\tString[] split = conditions[i].split(\">=\");\n\t\t\t\toperator=\">=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\">\")) {\n\t\t\t\tString[] split = conditions[i].split(\">\");\n\t\t\t\toperator=\">\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\"!=\")) {\n\t\t\t\tString[] split = conditions[i].split(\"!=\");\n\t\t\t\toperator=\"!=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\"=\")) {\n\t\t\t\tString[] split = conditions[i].split(\"=\");\n\t\t\t\toperator=\"=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t\t if(value.contains(\"'\")) {\n\t\t\t\t\t value= value.replaceAll(\"'\",\"\").trim();\n\t\t\t\t }\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\"<\")) {\n\t\t\t\tString[] split = conditions[i].split(\"<\");\n\t\t\t\toperator=\"<\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t}\n\t\t\t \n\t\t\t\n\t\t\trestriction[i].setCondition(operator);\n\t\t\trestriction[i].setPropertyName(property);\n\t\t\trestriction[i].setPropertyValue(value);\n\t\t\trestrictions.add(restriction[i]);\n\n\t\t}\n\t\t}\n\t\n\t\tString[] operators = getLogicalOperators(queryString);\n\t\tif(operators!=null) {\n\t\tfor (String op : operators) {\n\t\t\tlogicalOperators.add(op);\n\t\t}\n\t\t}\n\t\t\n\t\tString[] filds = getFields(queryString);\n\t\tif(filds!=null) {\n\t\tfor (String field : filds) {\n\t\t\tfields.add(field);\n\t\t}\n\t\t}\n\t\t\n\t\tString[] aggregationVal = getAggregateFunctions(queryString);\n\t\tif(aggregationVal!=null) {\n\t\tAggregateFunction[] aggregation = new AggregateFunction[aggregationVal.length];\n\t\tfor (int i = 0; i < aggregationVal.length; i++) {\n\t\t\taggregation[i] = new AggregateFunction();\n\t\t\tString[] split = (aggregationVal[i].replace(\"(\", \" \")).split(\" \");\n\t\t\tSystem.out.println(split[0]);\n\t\t\tSystem.out.println(split[1].replace(\")\", \"\").trim());\n\t\t\t\n\t\t\taggregation[i].setFunction(split[0]);\n\t\t\taggregation[i].setField(split[1].replace(\")\", \"\").trim());\n\t\t\taggregateFunction.add(aggregation[i]);\n\n\t\t}\n\t\t}\n\t\t\n\t\t\t\n\t\t\n\t\tString[] groupBy = getGroupByFields(queryString);\n\t\tif(groupBy!=null) {\n\t\tfor (String group : groupBy) {\n\t\t\tgroupByFields.add(group);\n\t\t}\n\t\t}\n\t\n\t\tString[] orderBy = getOrderByFields(queryString);\n\t\tif(orderBy!=null) {\n\t\tfor (String order : orderBy) {\n\t\t\torderByFields.add(order);\n\t\t}\n\t\t}\n\t\tqueryParameter.setFile(file);\n\t\tif(restrictions.size()!=0) {\n\t\t\tqueryParameter.setRestrictions(restrictions);\n\t\t}\n\t\telse {\n\t\t\tqueryParameter.setRestrictions(null);\n\t\t}\n\t\tif(logicalOperators.size()!=0) {\n\t\tqueryParameter.setLogicalOperators(logicalOperators);\n\t\t}\n\t\telse {\n\t\t\tqueryParameter.setLogicalOperators(null);\n\t\t}\n\t\tbaseQuery=getBaseQuery(queryString);\n\t\t\n\t\tqueryParameter.setFields(fields);\n\t\tqueryParameter.setAggregateFunctions(aggregateFunction);\n\t\tqueryParameter.setGroupByFields(groupByFields);\n\t\tqueryParameter.setOrderByFields(orderByFields);\n\t\tqueryParameter.setBaseQuery(baseQuery.trim());\n\t\treturn queryParameter;\n\n\t}",
"public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser);",
"public static QueryInterface createQuery() {\n return new XmlQuery();\n }",
"java.lang.String getQuery();",
"java.lang.String getQuery();",
"static QueryVariant convertQueryStringToNestedQuery(String query) {\n\t\tString queryStr = StringUtils.trimToEmpty(query).replaceAll(\"\\\\[(\\\\d+)\\\\]\", \"-$1\"); // nested array syntax\n\t\tQuery q = qsParsed(queryStr);\n\t\tif (q == null) {\n\t\t\treturn QueryBuilders.matchAll().build();\n\t\t}\n\t\ttry {\n\t\t\treturn rewriteQuery(q, 0);\n\t\t} catch (Exception e) {\n\t\t\tlogger.warn(e.getMessage() + \" - query: \" + StringUtils.abbreviate(query, 500));\n\t\t\treturn null;\n\t\t}\n\t}",
"public static String getRawQuery(String uri) {\n return createUri(uri).getRawQuery();\n }",
"@Override\n\tpublic <T> TypedQuery<T> createQuery(String qlString, Class<T> resultClass) {\n\t\treturn null;\n\t}",
"String query();",
"public Builder setQuery(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n query_ = value;\n\n return this;\n }",
"public AbstractJoSQLFilter (String q)\n\t throws QueryParseException\n {\n\n\tthis.setQuery (q);\n\n }",
"public String makeQuery(String searchTerms) {\n\t\tfinal StringBuffer query = new StringBuffer();\n\t\tfinal Matcher m = Pattern.compile(\"\\\\{([^}]*)\\\\}\").matcher(Template);\n\t\twhile (m.find()) {\n\t\t\tString name = m.group(1);\n\t\t\tif (name == null || name.length() == 0 || name.contains(\":\")) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tfinal boolean optional = name.endsWith(\"?\");\n\t\t\tif (optional) {\n\t\t\t\tname = name.substring(0, name.length() - 1);\n\t\t\t}\n\t\t\tname = name.intern();\n\t\t\tif (name == \"searchTerms\") {\n\t\t\t\tm.appendReplacement(query, searchTerms);\n\t\t\t} else if (name == \"count\") {\n\t\t\t\tm.appendReplacement(query, String.valueOf(ItemsPerPage));\n\t\t\t} else if (optional) {\n\t\t\t\tm.appendReplacement(query, \"\");\n\t\t\t} else if (name == \"startIndex\") {\n\t\t\t\tif (IndexOffset > 0) {\n\t\t\t\t\tm.appendReplacement(query, String.valueOf(IndexOffset));\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} else if (name == \"startPage\") {\n\t\t\t\tif (PageOffset > 0) {\n\t\t\t\t\tm.appendReplacement(query, String.valueOf(PageOffset));\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} else if (name == \"language\") {\n\t\t\t\tm.appendReplacement(query, \"*\");\n\t\t\t} else if (name == \"inputEncoding\" || name == \"outputEncoding\") {\n\t\t\t\tm.appendReplacement(query, \"UTF-8\");\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tm.appendTail(query);\n\t\treturn query.toString();\n\t}",
"private Query getQuery(String index, String type, String query){\r\n\t\tSearchQuery esQuery = new SearchQuery();\r\n\t\tesQuery.setIndex(this.indexName);\r\n\t\t\r\n\t\tif(StringUtils.isNotEmpty(type))\r\n\t\t\tesQuery.setType(type);\r\n\t\t\r\n\t\tesQuery.setQuery(query);\r\n\t\t\r\n\t\treturn esQuery;\t\t\r\n\t}",
"public Query getFinalQuery(String field) throws ParseException;",
"public void parseQuery(String queryString) {\r\n\t\t// call the methods\r\n\t\tgetSplitStrings(queryString);\r\n\t\tgetFile(queryString);\r\n\t\tgetBaseQuery(queryString);\r\n\t\tgetConditionsPartQuery(queryString);\r\n\t\tgetConditions(queryString);\r\n\t\tgetLogicalOperators(queryString);\r\n\t\tgetFields(queryString);\r\n\t\tgetOrderByFields(queryString);\r\n\t\tgetGroupByFields(queryString);\r\n\t\tgetAggregateFunctions(queryString);\r\n\t}",
"protected String getQuery(String query) {\r\n\t\treturn query;\r\n\t}",
"public Builder query(final String query) {\n this.query = query;\n return this;\n }",
"public abstract Query<T> setQuery(String oql);",
"public SolrQuery buildSolrQueryForPeriod(String query, String startDate, String endDate) {\n log.info(\"query between \" + startDate + \"T00:00:00Z and \" + endDate + \"T23:59:59Z\");\n SolrQuery solrQuery = new SolrQuery();\n solrQuery.setQuery(query); //Smurf labs forces text:query\n solrQuery.setRows(0); // 1 page only\n solrQuery.add(\"fl\", \"id\");// rows are 0 anyway\n solrQuery.add(\"fq\",\"content_type_norm:html\"); // only html pages\n solrQuery.add(\"fq\",\"crawl_date:[\" + startDate + \"T00:00:00Z TO \" + endDate + \"T23:59:59Z]\");\n return solrQuery;\n }",
"protected BaseQuery(QueryFactory queryFactory, String queryString,\n Map<String, Object> namedParameters, String[] projection, long startOffset, int maxResults,\n boolean local) {\n this.paramsDefined = true;\n this.queryFactory = queryFactory;\n this.queryString = queryString;\n this.namedParameters = namedParameters;\n this.projection = projection != null && projection.length > 0 ? projection : null;\n this.startOffset = startOffset < 0 ? 0 : (int) startOffset;\n this.maxResults = maxResults;\n this.local = local;\n }",
"public ResultSet construct(String szQuery) {\n\t\treturn null;\n\t}",
"String getQuery();",
"public Query(){\n this(new MongoQueryFilter.MongoQueryFilterBuilder());\n }",
"private SearchQuery(String _query, WebSearchType webSearchType) {\n this._query = _query;\n this._Web_search = webSearchType;\n }",
"private String createQuery(MultivaluedMap<String, String> filters, Boolean count) {\n String where = \"\";\n String fields = \"\";\n String orderBy = \"\";\n\n for (Map.Entry<String, List<String>> entry : filters.entrySet()) {\n switch (entry.getKey()) {\n case \"range\":\n where = (\"\".equals(where)) ? \" WHERE \" : \" AND \";\n String[] range = entry.getValue().get(0).split(\"-\");\n where += \"id >= \" + range[0] + \" AND id <= \" + range[1];\n break;\n case \"fields\":\n for (String field : entry.getValue()){\n fields = (\"\".equals(fields)) ? field : \",\" + field;\n }\n break;\n case \"asc\":\n orderBy = \" ORDER BY \" + entry.getValue() + \" ASC\";\n break;\n case \"desc\":\n orderBy = \" ORDER BY \" + entry.getValue() + \" DESC\";\n break;\n default:\n for (String condition : entry.getValue()) {\n where = (\"\".equals(where)) ? \" WHERE \" : \" AND \";\n where += entry.getKey() + \" = '\" + condition + \"'\";\n }\n }\n }\n\n fields = (\"\".equals(fields)) ? \"*\" : fields;\n fields = count ? \"(\" + fields + \")\" : fields;\n return \"SELECT \" + fields + \" FROM decodedFile \" + where + orderBy;\n }",
"String processQuery(String query);",
"public static Query parse(String userQuery, String defaultOperator) {\n\n\t\ttry\n\t\t{\n\t\t\tif(userQuery != null && !\"\".equals(userQuery))\n\t\t\t{\n\t\t\t\treturn new Query(new QueryEvaluators(userQuery.trim(), defaultOperator));\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new QueryParserException();\n\t\t}\n\t\tcatch(QueryParserException e) //QueryParserException -- Need to define.?\n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\treturn null;\n\t}",
"@Test\n void testAndFilterWithoutExplicitIndex() {\n Query q = newQueryFromEncoded(\"?query=trump\" +\n \"&model.type=all\" +\n \"&model.defaultIndex=text\" +\n \"&filter=%2B%28filterTerm%29\");\n assertEquals(\"AND text:trump |text:filterTerm\",\n q.getModel().getQueryTree().toString());\n }",
"@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}",
"protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}",
"Query query();",
"public UserQuery(QueryStrings query) {\n \tsuper(query);\n }",
"public URIBuilder setCustomQuery(final String query) {\n this.query = query;\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n this.queryParams = null;\n return this;\n }",
"static String buildInstanceOfSublcassOfCleanQuery(String wikidataUri, int depth) {\n String selectParameters = \"?c1\";\n for (int i = 1; i < depth; i++) {\n selectParameters += \" ?c\" + (i + 1);\n }\n\n String instanceTriples = \"\";\n for (int i = 1; i < depth; i++) {\n instanceTriples += \" OPTIONAL{?c\" + i + \" wdt:P31 \" + \"?c\" + (i + 1) + \" .}\\n\";\n }\n\n String subclassTriples = \"\";\n for (int i = 1; i < depth; i++) {\n subclassTriples += \" OPTIONAL{?c\" + i + \" wdt:P279 \" + \"?c\" + (i + 1) + \" .}\\n\";\n }\n\n return \"PREFIX wdt: <http://www.wikidata.org/prop/direct/>\\n\" +\n \"SELECT DISTINCT \" + selectParameters + \" WHERE { \\n\" +\n \" {\\n\" +\n \" <\" + wikidataUri + \"> wdt:P31 ?c1 .\\n\" +\n instanceTriples +\n \"}\\n\" +\n \"UNION\\n\" +\n \"{\\n\" +\n \" <\" + wikidataUri + \"> wdt:P279 ?c1 .\\n\" +\n subclassTriples +\n \"}\\n}\";\n }",
"private Query(String command) {\n\t\tthis.command = command;\n\t}",
"QueryType createQueryType();",
"public abstract <T> List<? extends T> createQuery(String query, Class<T> type, int firstResult, int maxResult);",
"String escapeReservedWords(String query);",
"public abstract DbQuery getQuery(String queryName);",
"MessageQuery createMessageQuery();",
"public Cursor raw(String query){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor c = db.rawQuery(query, null);\n return c;\n }",
"public Query query(Predicate query) throws Exceptions.OsoException {\n Host new_host = host.clone();\n String pred = new_host.toPolarTerm(query).toString();\n return new Query(ffiPolar.newQueryFromTerm(pred), new_host);\n }",
"SelectQuery createSelectQuery();",
"public RequestBuilder query(Map<String, String> args) {\n this.query = args;\n return this;\n }",
"private MetaSparqlRequest createQueryMT3() {\n\t\t\treturn createQueryMT1();\n\t\t}",
"@Override\n\tpublic Query objectQuery(String query) throws Exception {\n\t\treturn null;\n\t}",
"public query convertNewQueryComposition() {\n int index = listDocumentRetrievedForThisQuery.getQuery().getIndex();\n StringBuffer queryContent = new StringBuffer();\n for (Map.Entry m : newQueryComposition.entrySet()) {\n String keyTerm = (String) m.getKey();\n queryContent.append(keyTerm + \" \");\n }\n query Query = new query(index,queryContent.toString());\n return Query;\n }",
"String getQuery() throws RemoteException;",
"public QueryRequest withQuery(String query) {\n this.query = query;\n return this;\n }",
"Graph callConstructQuery(String name, Map<String, String> params);",
"private MetaSparqlRequest createQueryMT2() {\n\t\treturn createQueryMT1();\n\t}",
"public abstract DatabaseQuery createDatabaseQuery(ParseTreeContext context);",
"public CalculationRequest(String rawRequest_)\n\t{\n\t\trawRequest = rawRequest_;\n\t}",
"public void setQuery(String query) {\n this.stringQuery = query;\n }",
"private Book createBookForQuery(String filter, String query) {\n switch(filter) {\n case \"Title\":\n return new Book(\n null, query, null, 0, null, 0, null);\n case \"Author\":\n return new Book(query, null, null, 0, null, 0, null);\n case \"Publisher\":\n return new Book(null, null, query, 0, null, 0, null);\n case \"Year\":\n return new Book(null, null, null, Integer.parseInt(query), null, 0, null);\n case \"Genre\":\n return new Book(null, null, null, 0, query, 0, null);\n case \"Pages\":\n return new Book(null, null, null, 0, null, Integer.parseInt(query), null);\n default:\n return new Book(null, query, null, 0, null, 0, null);\n }\n }",
"protected Query newTermQuery(Term term, float boost) {\n Query q = new TermQuery(term);\n if (boost == DEFAULT_BOOST) {\n return q;\n }\n return new BoostQuery(q, boost);\n }",
"public final void setQuery(final String newQuery) {\n this.query = newQuery;\n }",
"private String constructEscapedSolrQuery(String query, boolean literal_query) {\n StringBuilder highlightQuery = new StringBuilder();\n String highLightField;\n if (literal_query) {\n highLightField = LuceneQuery.HIGHLIGHT_FIELD_LITERAL;\n } else {\n highLightField = LuceneQuery.HIGHLIGHT_FIELD_REGEX;\n }\n highlightQuery.append(highLightField).append(\":\").append(\"\\\"\").append(KeywordSearchUtil.escapeLuceneQuery(query)).append(\"\\\"\");\n return highlightQuery.toString();\n }",
"public void setQuery(java.lang.CharSequence value) {\n this.query = value;\n }",
"QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }",
"public Query(String expression) {\r\n\t\t_product = Product.class;\r\n\t\t_variable = \"p\";\r\n\t\t_expression = expression;\r\n\r\n\t}",
"public Query createQuery(String hql, Object... values) {\n Assert.hasText(hql);\n Query query = getSession().createQuery(hql);\n for (int i = 0; i < values.length; i++) {\n query.setParameter(i, values[i]);\n }\n return query;\n }",
"public PseudoQuery() {\r\n\t}",
"protected <T extends BaseEntity> TypedQuery<T> createQuery(\n\t\t\tMap<String, Boolean> sort, Map<String, Object> filters) {\n\t\tList<Filter> listFilters = getQueryParam().createListFiltersFromMap(filters);\n//\t\tlistFilters.addAll(createListFilterForJoinFields());\n//\t\tgetQueryParam().addJoinFilters(joinFields);\t\t\n\n\t\treturn createQuery(sort, listFilters);\n\t}",
"QueryRequest<Review> query();",
"@Test\n void testAndFilter() {\n Query q = newQueryFromEncoded(\"?query=trump\" +\n \"&model.type=all\" +\n \"&model.defaultIndex=text\" +\n \"&filter=%2B%28filterattribute%3Afrontpage_US_en-US%29\");\n assertEquals(\"AND text:trump |filterattribute:frontpage_US_en-US\",\n q.getModel().getQueryTree().toString());\n }",
"public QueryExecution createQueryExecution(Query qry);",
"public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }",
"QueryArgs getQueryArgs();",
"public FormReader(Logger logger, String query) {\r\n this.decode = false;\r\n this.logger = logger;\r\n this.stream = new ByteArrayInputStream(query.getBytes());\r\n }",
"@SuppressWarnings(\"unchecked\")\n\tprotected <T extends BaseEntity> TypedQuery<T> createQuery(\n\t\t\tMap<String, Boolean> sort, List<Filter> filters) {\n\t\tgetQueryParam().setOrderBy(sort);\n\n\t\taddFilters(filters);\n\n\t\tString jpql = queryParam.createSearchJPQL();\n\t\tTypedQuery<T> query = (TypedQuery<T>) getEntityManager().createQuery(jpql,\n\t\t\t\tgetEntityClass());\n\t\tqueryParam.updateParameter(query);\n\t\treturn query;\n\t}",
"String buildQuery(\n CanaryConfig canaryConfig,\n NewRelicCanaryScope canaryScope,\n NewRelicCanaryMetricSetQueryConfig queryConfig,\n NewRelicScopeConfiguration scopeConfiguration) {\n\n String[] baseScopeAttributes = new String[] {\"scope\", \"location\", \"step\"};\n\n // New Relic requires the time range to be in the query and for it to be in epoch millis or\n // some other weird timestamp that is not an ISO 8061 TS.\n // You cannot use the keys `start` and `end` here as the template engine tries to read the value\n // out\n // of the canary scope bean instead of the values you supply here and you get an ISO 8061 ts\n // instead of epoch secs.\n // Thus we add the epoch millis to the context to be available in templates as startEpochSeconds\n // and endEpochSeconds\n Map<String, String> originalParams =\n canaryScope.getExtendedScopeParams() == null\n ? new HashMap<>()\n : canaryScope.getExtendedScopeParams();\n Map<String, String> paramsWithExtraTemplateValues = new HashMap<>(originalParams);\n paramsWithExtraTemplateValues.put(\n \"startEpochSeconds\", String.valueOf(canaryScope.getStart().getEpochSecond()));\n paramsWithExtraTemplateValues.put(\n \"endEpochSeconds\", String.valueOf(canaryScope.getEnd().getEpochSecond()));\n canaryScope.setExtendedScopeParams(paramsWithExtraTemplateValues);\n\n String customFilter =\n QueryConfigUtils.expandCustomFilter(\n canaryConfig, queryConfig, canaryScope, baseScopeAttributes);\n\n return Optional.ofNullable(customFilter)\n .orElseGet(\n () -> {\n // un-mutate the extended scope params, so that the additional values we injected into\n // the map for templates don't make it into the simplified flow query.\n canaryScope.setExtendedScopeParams(originalParams);\n return buildQueryFromSelectAndQ(canaryScope, queryConfig, scopeConfiguration);\n });\n }",
"public Query() {\n\n// oriToRwt = new HashMap();\n// oriToRwt.put(); // TODO\n }",
"public void setQueryString(String query) {\n if (query != null && _convertPositionalParametersToNamed && JPQLParser.LANG_JPQL.equals(_language)) {\n query = query.replaceAll(\"[\\\\?]\", \"\\\\:_\");\n }\n _query = query;\n }",
"public String toQuery() {\n // determine ordering\n String ordering = \"\";\n if (ratingFirst) {\n ordering += \"ORDER BY rating\" + (ratingDescend ? \" DESC, \" : \", \") +\n (nameDescend ? \"make DESC, model DESC, year DESC\" : \"make, model, year\");\n } else {\n ordering += \"ORDER BY \" + (nameDescend ? \"make DESC, model DESC, year DESC\" : \"make, model, year\")\n + \", rating\" + (ratingDescend ? \" DESC\" : \"\");\n }\n\n // determine pagination offsets\n String pagination = \"\";\n if (pageNumber > 1) {\n pagination += \"\\nLIMIT 100\\nOFFSET \" + (convertToBase() - 1) * 100 + \";\";\n }\n\n return query + ordering + pagination;\n }",
"private ParsedQuery parseQuery(Layer layer, Query query) {\n PlainSelect plainSelect;\n try {\n Select select = (Select) CCJSqlParserUtil.parse(query.getSql());\n plainSelect = (PlainSelect) select.getSelectBody();\n } catch (JSQLParserException e) {\n String message =\n String.format(\n \"The layer '%s' contains a malformed query.\\n\" + \"\\tQuery:\\n\\t\\t%s\",\n layer.getId(), query.getSql());\n throw new IllegalArgumentException(message, e);\n }\n\n // Check the number of columns\n if (plainSelect.getSelectItems().size() != 3) {\n String message =\n String.format(\n \"The layer '%s' contains a malformed query.\\n\"\n + \"\\tExpected format:\\n\\t\\tSELECT c1::bigint, c2::hstore, c3::geometry FROM t WHERE c\\n\"\n + \"\\tActual query:\\n\\t\\t%s\",\n layer.getId(), query.getSql());\n throw new IllegalArgumentException(message);\n }\n\n // Remove all the aliases\n for (SelectItem selectItem : plainSelect.getSelectItems()) {\n selectItem.accept(\n new SelectItemVisitorAdapter() {\n @Override\n public void visit(SelectExpressionItem selectExpressionItem) {\n selectExpressionItem.setAlias(null);\n }\n });\n }\n return new ParsedQuery(layer, query, plainSelect);\n }",
"public NaturalLanguageSearchRequest(String query) throws IllegalArgumentException {\n if (query == null) {\n throw new IllegalArgumentException(\"query is required\");\n }\n\n this.query = query;\n this.section = \"Products\";\n this.page = 1;\n this.resultsPerPage = 30;\n }",
"public String createQueryString() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\r\n\t\tSet<Map.Entry<String, Object>> set = queryParams.entrySet();\r\n\t\tEnumeration<Map.Entry<String, Object>> en = Collections.enumeration(set);\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile (en.hasMoreElements())\r\n\t\t\t{\r\n\t\t\t\tMap.Entry<String, Object> entry = en.nextElement();\r\n\t\t\t\tString key = entry.getKey();\r\n\t\t\t\tObject val = entry.getValue();\r\n\t\t\t\tif (val instanceof String)\r\n\t\t\t\t{\r\n\t\t\t\t\tString s = null;\r\n\t\t\t\t\ts = (String) val;\r\n\t\t\t\t\ts = URLEncoder.encode(s, \"US-ASCII\");\r\n\t\t\t\t\tsb.append(\"&\").append(key).append(\"=\").append(s);\r\n\t\t\t\t}\r\n\t\t\t\telse if (val instanceof String[])\r\n\t\t\t\t\tsb.append(\"&\").append(getNameValueString(key, (String[]) val));\r\n\t\t\t}\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\r\n\t\treturn sb.substring(1);\r\n\t}"
] | [
"0.7639117",
"0.67879695",
"0.6501357",
"0.64402896",
"0.64100444",
"0.6305812",
"0.62654877",
"0.62521136",
"0.61309123",
"0.61124176",
"0.6087815",
"0.60652816",
"0.5988819",
"0.5940703",
"0.5912624",
"0.586233",
"0.58280414",
"0.5679986",
"0.56636316",
"0.56491387",
"0.56417596",
"0.5624647",
"0.5618447",
"0.55992985",
"0.5585231",
"0.5561687",
"0.5561687",
"0.553756",
"0.5530046",
"0.5517784",
"0.5499503",
"0.5489118",
"0.54872197",
"0.5447172",
"0.5446227",
"0.543824",
"0.54210204",
"0.54171336",
"0.54124683",
"0.5393775",
"0.5392603",
"0.53732526",
"0.5361327",
"0.5354706",
"0.53512716",
"0.53438526",
"0.53373414",
"0.5334291",
"0.5327542",
"0.5325165",
"0.5318864",
"0.5297606",
"0.52975684",
"0.52964115",
"0.52940446",
"0.52832115",
"0.52753097",
"0.52642417",
"0.52634114",
"0.5259398",
"0.5254231",
"0.5250377",
"0.5244272",
"0.52402014",
"0.519965",
"0.5193929",
"0.5179607",
"0.5176922",
"0.5171538",
"0.51580304",
"0.5152245",
"0.51477915",
"0.514522",
"0.51445895",
"0.5143949",
"0.51402104",
"0.5136578",
"0.5135958",
"0.51263326",
"0.5120336",
"0.51134485",
"0.5101331",
"0.50988454",
"0.50968546",
"0.5088621",
"0.5086252",
"0.5071226",
"0.5066361",
"0.5065491",
"0.50606704",
"0.50539416",
"0.5052834",
"0.50431913",
"0.50423104",
"0.50395644",
"0.50388724",
"0.50331944",
"0.5033141",
"0.5032413",
"0.50259054"
] | 0.76000994 | 1 |
TODO Autogenerated method stub | public static void main(String[] args) throws IOException {
DataSet ds, testDs;
NBFileReader fr = new NBFileReader();
NBMain = new NaiveBayesMain();
NBMain.parseArguments(args);
HashMap<String, HashMap<String, Integer>> confusionMatrix = new HashMap<String, HashMap<String,Integer>>();
ds = fr.readFile(NBMain.getTrainFile());
testDs = fr.readFile(NBMain.getTestFile());
NaiveBayes nbobj = new NaiveBayes(ds,NBMain.getClassVariable());
nbobj.setLabelCount(NBMain.getClassVariable());
nbobj.trainNB(NBMain.getClassVariable());
System.out.println("===================================================================");
System.out.println("Predictions: ");
System.out.println("===================================================================");
System.out.println();
int correctClass = nbobj.classifyNB(testDs, confusionMatrix);
//train
} | {
"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 |
Create player and get dimensions | public Player(Level level, double x, double y){
super(level ,x, y);
sprite = sprite.player;
width = sprite.getWidth();
height = sprite.getHeight();
speed = 1.5;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Player(int width, int height)\n {\n this.width = width;\n this.height = height;\n createImage();\n }",
"public void createPlayer() {\n mainHandler = new Handler();\n videoTrackSelectionFactory = new AdaptiveTrackSelection.Factory(bandwidthMeter);\n trackSelector = new DefaultTrackSelector(videoTrackSelectionFactory);\n player = ExoPlayerFactory.newSimpleInstance(this, trackSelector);\n }",
"public int getPlayerBodyWidth();",
"Player createPlayer();",
"@Override\n public void create(GameContainer gc) {\n this.gc = gc;\n addKeys();\n\n AssetManager.background.setSize(gc.getWidth(), gc.getHeight());\n AssetManager.background.addToRender();\n\n player = new Player(gc.getWidth() / 2,\n gc.getHeight() / 2, 100, 100);\n updateCamera((int) player.getX(), (int) player.getY());\n\n player2 = new Player(gc.getWidth() / 2 + player.getWidth(),\n gc.getHeight() / 2 + player.getHeight(), 100, 100);\n }",
"private void createPlayers() {\n\tGlobal.camera_player1 = new Camera(new OrthographicCamera());\n\tGlobal.camera_player2 = new Camera(new OrthographicCamera());\n\tGlobal.camera_ui = new OrthographicCamera();\n\tGlobal.player1 = new Plane(Global.player1_respawn.x,\n\t\tGlobal.player1_respawn.y, 0, new Planetype(PlaneTypes.F35),\n\t\tEntityType.PLAYER1);\n\tGlobal.player2 = new Plane(Global.player2_respawn.x,\n\t\tGlobal.player2_respawn.y, 0, new Planetype(PlaneTypes.F35),\n\t\tEntityType.PLAYER2);\n }",
"void createPlayer(Player player);",
"private void setDimension() {\n float videoProportion = getVideoProportion();\n int screenWidth = getResources().getDisplayMetrics().widthPixels;\n int screenHeight = getResources().getDisplayMetrics().heightPixels;\n float screenProportion = (float) screenHeight / (float) screenWidth;\n ViewGroup.LayoutParams lp = mVideoPlayer.getLayoutParams();\n\n if (videoProportion < screenProportion) {\n lp.height = screenHeight;\n lp.width = (int) ((float) screenHeight / videoProportion);\n } else {\n lp.width = screenWidth;\n lp.height = (int) ((float) screenWidth * videoProportion);\n }\n mVideoPlayer.setLayoutParams(lp);\n }",
"public void createPlayers() {\n\t\t\n\t\twhite = new Player(Color.WHITE);\n\t\twhite.initilizePieces();\n\t\tcurrentTurn = white;\n\t\t\n\t\tblack = new Player(Color.BLACK);\n\t\tblack.initilizePieces();\n\t}",
"private void createPlayer() {\n Entity entity = engine.createEntity();\n B2dBodyComponent b2dbody = engine.createComponent(B2dBodyComponent.class);\n TransformComponent position = engine.createComponent(TransformComponent.class);\n TextureComponent texture = engine.createComponent(TextureComponent.class);\n PlayerComponent player = engine.createComponent(PlayerComponent.class);\n CollisionComponent colComp = engine.createComponent(CollisionComponent.class);\n TypeComponent type = engine.createComponent(TypeComponent.class);\n StateComponent stateCom = engine.createComponent(StateComponent.class);\n\n // create the data for the components and add them to the components\n b2dbody.body = bodyFactory.makeCirclePolyBody(10,10,1, BodyFactory.STONE, BodyType.DynamicBody,true);\n // set object position (x,y,z) z used to define draw order 0 first drawn\n position.position.set(10,10,0);\n texture.region = atlas.findRegion(\"player\");\n type.type = TypeComponent.PLAYER;\n stateCom.set(StateComponent.STATE_NORMAL);\n b2dbody.body.setUserData(entity);\n\n // add the components to the entity\n entity.add(b2dbody);\n entity.add(position);\n entity.add(texture);\n entity.add(player);\n entity.add(colComp);\n entity.add(type);\n entity.add(stateCom);\n\n // add the entity to the engine\n engine.addEntity(entity);\n }",
"public Player() {\n\t\tsetDimensions(16, 16);\n\t\tsetLocation(512 + 16, 512 + 16);\n\t\tsetKeyBindings();\n\t}",
"int getCurrentDimension() {\n if (!playerExists())\n return lastdim;\n return game.h.m;\n }",
"public void createPlayerModel() {\n\t\tModelBuilder mb = new ModelBuilder();\n\t\tModelBuilder mb2 = new ModelBuilder();\n\t\tlong attr = Usage.Position | Usage.Normal;\n\t\tfloat r = 0.5f;\n\t\tfloat g = 1f;\n\t\tfloat b = 0.75f;\n\t\tMaterial material = new Material(ColorAttribute.createDiffuse(new Color(r, g, b, 1f)));\n\t\tMaterial faceMaterial = new Material(ColorAttribute.createDiffuse(Color.BLUE));\n\t\tfloat w = 1f;\n\t\tfloat d = w;\n\t\tfloat h = 2f;\n\t\tmb.begin();\n\t\t//playerModel = mb.createBox(w, h, d, material, attr);\n\t\tNode node = mb.node(\"box\", mb2.createBox(w, h, d, material, attr));\n\t\t// the face is just a box to show which direction the player is facing\n\t\tNode faceNode = mb.node(\"face\", mb2.createBox(w/2, h/2, d/2, faceMaterial, attr));\n\t\tfaceNode.translation.set(0f, 0f, d/2);\n\t\tplayerModel = mb.end();\n\t}",
"public int winSize() { return winSize; }",
"public void createPlayer() {\n ColorPicker colorPicker = new ColorPicker();\n\n for (Player player : players) {\n if (player.getColor() == color(0, 0, 0) || (player.hasName() == false)) {\n pickColor(player, colorPicker);\n return;\n }\n }\n\n // if (ENABLE_SOUND) {\n // sfx.moveToGame();\n // }\n\n state = GameState.PLAY_GAME;\n\n // Spawn players\n int index = 0;\n for (int i=players.size()-1; i>=0; i--) {\n String dir = directions.get(index); // Need to add players in reverse so that when they respawn, they move in the right direction\n players.get(i).setSpawn(spawns.get(dir)).setDirection(dir);\n index++;\n }\n\n // Update game state only if all players have name and color\n}",
"public Dimension getSize() { return new Dimension(width,height); }",
"public int getGameWidth() {\r\n return myGameWidth;\r\n }",
"public Rect getRectplayer1()\n {return new Rect(x+ width*9/25,\ty +height*1/20,\n x+ width*9/25 + width*27/100, y +height*1/20 +height*7/50);}",
"public static void createPlayers() {\n\t\tcomputer1 = new ComputerSpeler();\n\t\tspeler = new PersoonSpeler();\n//\t\tif (Main.getNumberOfPlayers() >= 3) { \n//\t\t\tSpeler computer2 = new ComputerSpeler();\n//\t\t}\n//\t\tif (Main.getNumberOfPlayers() == 4) {\n//\t\t\tSpeler computer3 = new ComputerSpeler();\n//\t\t}\n\n\n\t}",
"int getGameFieldSize();",
"Dimension getCanvasDimension();",
"public PlayerSetup() {\n\t\tgetNumPlayers();\n\t\tcreatePlayers();\n\t\t\n\t\tSystem.out.println(\"\\n\" + Players.getInstance().toString() );\n\t}",
"public Level(int width, int height)\r\n\t{\r\n\t\tmakeCommonObjects();\r\n\t\tgrid = new Grid(width,height);//CHANGE GRID COORDINATES WHILE MAKING A NEW LEVEL\r\n\t\tmakeButton = new GameSprite(Player.filename);\r\n\t\tmakeButton.setPosition(0,0);\r\n\t\tplayer = new Player(100, 420);\r\n\t\tbackground = new Background(1, grid);\r\n\t}",
"private void createPlayer() {\r\n try {\r\n mRadioPlayer = new RadioPlayer(getApplication(), mDeezerConnect,\r\n new WifiAndMobileNetworkStateChecker());\r\n mRadioPlayer.addPlayerListener(this);\r\n setAttachedPlayer(mRadioPlayer);\r\n } catch (DeezerError e) {\r\n handleError(e);\r\n } catch (TooManyPlayersExceptions e) {\r\n handleError(e);\r\n }\r\n }",
"public Game(int width, int height)\n {\n //make a panel with dimensions width by height with a black background\n this.setLayout( null );//Don't change\n this.setBackground( new Color(150,150,150 ));\n this.setPreferredSize( new Dimension( constants.getWidth(), constants.getHeight () ));//Don't change\n \n //initialize the instance variables\n over = false;\n player = new Player( (constants.getWidth())/2, (constants.getHeight())/2); //change these numbers and see what happens\n circle = new Circle( 400, 200 );\n label = new JLabel(\"Points: \" + points);\n this.add( label );\n label.setBounds(300,50,400,50);\n label.setForeground(Color.BLUE);\n label.setFont(new Font(\"Arial\",Font.BOLD,32));\n label.setHorizontalAlignment(SwingConstants.CENTER);\n projectileInitW=false;\n projectileInitA=false;\n projectileInitS=false;\n projectileInitD=false;\n this.addKeyListener(this);//allows the program to respond to key presses - Don't change\n track = new Sound(\"song.wav\");\n track.loop();\n this.setFocusable(true);//I'll tell you later - Don't change\n }",
"public void createNewPlayer()\n\t{\n\t\t// Set up all badges.\n\t\tm_badges = new byte[42];\n\t\tfor(int i = 0; i < m_badges.length; i++)\n\t\t\tm_badges[i] = 0;\n\t\tm_isMuted = false;\n\t}",
"@Override\n public Position setSize(double w, double h) {\n return new Position(w, h);\n }",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1078, 672, 1); \n preparePlayer1();\n preparePlayer2();\n prepareTitle();\n //playmusic();\n }",
"private JPanel setUpOtherPlayersPanel(List<Player> otherPlayers) {\n otherPlayersPanel = new JPanel();\n otherPlayersPanel.setLayout(new BoxLayout(otherPlayersPanel, BoxLayout.Y_AXIS));\n \n otherPlayerProperties = new JPanel();\n otherPlayerProperties = setUpOtherPlayerAssets(otherPlayers.get(0));\n \n return otherPlayersPanel;\n }",
"public Dimension getSize()\n {\n return new Dimension(300, 150);\n }",
"@Override\n\tpublic void create() {\n\t\t// This should come from the platform\n\t\theight = platform.getScreenDimension().getHeight();\n\t\twidth = platform.getScreenDimension().getWidth();\n\n\t\t// create the drawing boards\n\t\tsb = new SpriteBatch();\n\t\tsr = new ShapeRenderer();\n\n\t\t// Push in first state\n\t\tgsm.push(new CountDownState(gsm));\n//\t\tgsm.push(new PlayState(gsm));\n\t}",
"public static int[] setup()\r\n\t{\r\n\t\tint[] size = new int[2];\r\n\t\tGraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();\r\n\t\tint width = gd.getDisplayMode().getWidth();\r\n\t\tint length = gd.getDisplayMode().getHeight();\r\n\t\tsize[0] = width;\r\n\t\tsize[1] = length;\r\n\t\treturn size;\r\n\t}",
"public PlayerHandler create(String type, PlayerInfo playerInfo, List<Integer> otherPlayerIds);",
"public void preparePlayer1()\n {\n Player1 p1 = new Player1();\n addObject(p1, 200, 600);\n }",
"public GameController(int width, int height) {\n\n // YOUR CODE HERE\n }",
"void createNewGame(Player player);",
"abstract public VideoDefinition createVideoDefinition(int width, int height);",
"Dimension getDimensions();",
"private void spawnPlayer() {\n\t\tplayer.show(true);\n\t\tplayer.resetPosition();\n\t\tplayerDead = false;\n\t\tplayerDeadTimeLeft = 0.0;\n\t}",
"@Override\n public void onVideoSizeChanged(MediaPlayer player, int width, int height) {\n \n }",
"public HowToPlay()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(763, 578, 1); \n //HowToPlay play = new HowToPlay();\n }",
"public interface PlayerCreator {\n\n // Factory method for creating a player\n public PlayerHandler create(String type, PlayerInfo playerInfo, List<Integer> otherPlayerIds);\n \n public List<String> getPlayerTypes();\n}",
"boolean InitialisePlayer (String path_name);",
"public void createOwnerPlayer(String name, double x, double y) {\n Player player = (Player) players.get(name);\r\n if (player == null) {\r\n// System.out.println(\"Create owner player \" + name);\r\n player = new Player(name, x, y);\r\n inPlayer = player;\r\n players.put(name, player);\r\n }\r\n }",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n \n Player player = new Player();\n Point point0 = new Point();\n Point point1 = new Point();\n Point point2 = new Point();\n Point point3 = new Point();\n Point point4 = new Point();\n Danger danger0 = new Danger();\n Danger danger1 = new Danger();\n addObject(player, getWidth()/2, getHeight()/2);\n \n addObject(point0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point2,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point3,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point4,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n \n addObject(danger0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(danger1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n }",
"public void setSize(int w, int h){\n this.width = w;\n this.height = h;\n ppuX = (float)width / CAMERA_WIDTH;\n ppuY = (float)height / CAMERA_HEIGHT;\n }",
"@Override\n\tpublic void create () {\n\t\t\n\t\teManager = new EventManager();\n\t\t\n\t\tbatch = new SpriteBatch();\n\t\timg = new Texture(\"background.png\");\n\t\t\n\t\tmessages = new MessageManager(eManager);\n\t\t\n\t\tworld = new WorldRenderer(messages, eManager);\n\t\t\n\t\t\n\t\tResourceLoader.getInstance();\n\t\twhile (!ResourceLoader.assetManager.update())\n {\n\t\t\t\n }\n\t\tSystem.gc();\n\t\tsaveLoaded = false;\n\t\t\n\t\ttry{\n\t\t\tplayer = GameSave.loadPlayerSave();\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(100);\n\t\t\t\n\t\t\tplayer.setItems(GameSave.loadPlayerItemsSave());\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(100);\n\t\t\tplayer.setLinkmon(GameSave.loadLinkmonSave());\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(100);\n\t\t\tplayer.getLinkmon().setStats(GameSave.loadLinkmonStatsSave());\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(100);\n\t\t\tplayer.getLinkmon().setBirthDate(GameSave.loadLinkmonBirthDateSave());\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(100);\n\t\t\tGameSave.updateLinkmon(player.getLinkmon());\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(100);\n\t\t\tsaveLoaded = true;\n\t\t} catch(Exception e) {\n\t\t\tsaveLoaded = false;\n\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadPlayerSave\");\n\t\t}\n\t\t\n//\t\ttry{\n//\t\t\tplayer = GameSave.loadPlayerSave();\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadPlayerSave\");\n//\t\t}\n//\t\ttry{\n//\t\t\tplayer.setItems(GameSave.loadPlayerItemsSave());\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadPlayerItemsSave\");\n//\t\t}\n//\t\ttry{\n//\t\t\tplayer.setLinkmon(GameSave.loadLinkmonSave());\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadLinkmonSave\");\n//\t\t}\n//\t\ttry{\n//\t\t\tplayer.getLinkmon().setStats(GameSave.loadLinkmonStatsSave());\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadLinkmonStatsSave\");\n//\t\t}\n//\t\ttry{\n//\t\t\tplayer.getLinkmon().setBirthDate(GameSave.loadLinkmonBirthDateSave());\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadLinkmonBirthDateSave\");\n//\t\t}\n//\t\ttry{\n//\t\t\tplayer.getLinkmon().setPoopList(GameSave.loadPoopSave());\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadPoopSave\");\n//\t\t}\n//\t\ttry{\n//\t\t\tGameSave.updateLinkmon(player.getLinkmon());\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"updateLinkmon\");\n//\t\t}\n\t\t\n\t\t\n\t\t\n\t\tString message = \"\" + Gdx.graphics.getWidth() + \" \" + Gdx.graphics.getHeight();\n Gdx.app.log(\"TIMER\", message);\n\t\t\n\t\tim = new InputMultiplexer();\n\t\t\n\t\tim.addProcessor(world.stage);\n\t\tGdx.input.setInputProcessor(im);\n\t\t\n\t\tif(!saveLoaded) {\n\t\t\tthis.setScreen(new IntroScreen(this, world.ui, eManager));\n\t\t\t//startGame(\"Kilst\", 1);\n\t\t}\n\t\telse {\n//\t\t\tcontrollerService = new ControllerService(this, world.ui, Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), eManager);\n//\t\t\tworld.addLinkmonToWorld(controllerService.getLinkmonController());\n//\t\t\teManager.notify(new ControllerEvent(ControllerEvents.SWAP_SCREEN, ScreenType.MAIN_UI));\n\t\t\tloadGame(player);\n\t\t\t\n\t\t}\n\t}",
"public void initPlayer();",
"void setTubeUpDimension(double width, double height);",
"public void settings() {\r\n\t\tthis.size(PlayGame.WIDTH,PlayGame.HEIGHT);\r\n\t}",
"@Override\n public void show() {\n player = new Player(game.getAssetManager().get(\"player.png\", Texture.class), world, new Vector2(1, 2));\n floor = new Floor(game.getAssetManager().get(\"floor.png\", Texture.class), world, new Vector2(0, 0 + 0.5f), 20f, 1f);\n hud = new HUD();\n\n stage.addActor(floor);\n stage.addActor(player);\n\n //TODO: AUTOGENERATE when the player goes up.\n platforms.clear();\n int ax = (int) (Math.random() * 5 + 0);\n platforms.add(new Platform(game.getAssetManager().get(\"platform.png\", Texture.class), world, new Vector2(ax, 3), 1.2f, 0.3f));\n for (int i = 3; i <= 25; i++) {\n\n int x, y;\n x = (int) (Math.random() * 4.5 + 0.5);\n y = ((int) (Math.random() * 3 + 1)) + i;\n\n while ((x < ax && x > ax + 1f) && (x > ax && x < ax - 1f)) {\n x = (int) (Math.random() * 4.5 + 0.5);\n }\n Gdx.app.log(\"kk\",x+\"x\"+y);\n platforms.add(new Platform(game.getAssetManager().get(\"platform.png\", Texture.class), world, new Vector2(x, y), 1f, 0.3f));\n ax = x;\n }\n\n for (Platform platform : platforms) {\n stage.addActor(platform);\n }\n\n stage.getCamera().position.set(cameraInitialPosition);\n stage.getCamera().update();\n\n playing = false;\n jumps = 0;\n lastPlatformTouched = 0;\n\n song.play();\n\n }",
"public void createMainGame() {\n\t\tpanelIntro.setVisible(false);\n\t\tintroButtonPanel.setVisible(false);\n\t\t\n\t\tpanelMain = new JPanel();\n\t\t\n\t\tcon.add(panelMain);\n\t\t\n\t\tplayerPanel = new JPanel();\n\t\tplayerPanel.setBounds(50, 25, 924, 50);\n\t\tplayerPanel.setBackground(Color.DARK_GRAY);\n\t\tplayerPanel.setLayout(new GridLayout(1,4));\n\t\tpanelMain.add(playerPanel);\n\t\tcon.add(playerPanel);\n\t\t\n\t\tenergyLabel = new JLabel(\" Energie: \");\n\t\tenergyLabel.setFont(playerInfo);\n\t\tenergyLabel.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(energyLabel);\n\t\t\n\t\tenergyLabelNumber = new JLabel();\n\t\tenergyLabelNumber.setFont(playerInfo);\n\t\tenergyLabelNumber.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(energyLabelNumber);\n\t\t\n\t\tdoubtLevelLabel = new JLabel(\"Misstrauen: \");\n\t\tdoubtLevelLabel.setFont(playerInfo);\n\t\tdoubtLevelLabel.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(doubtLevelLabel);\n\t\t\n\t\tdLLNumber = new JLabel();\n\t\tdLLNumber.setFont(playerInfo);\n\t\tdLLNumber.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(dLLNumber);\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\t\n\t\tbirdText = new JTextArea();\n\t\tbirdText.setBackground(Color.BLACK);\n\t\tbirdText.setFont(dialogueText);\n\t\tbirdText.setForeground(Color.white);\n\t\tbirdText.setLineWrap(true);\n\t\tbirdText.setWrapStyleWord(true);\n\t\tbirdText.setBounds(354, 200, 250, 150);\n\t\tbirdText.setVisible(false);\n\t\tcon.add(birdText);\n\t\t\n\t\tbirdPanel = new JPanel();\n\t\tbirdPanel.setBounds(354, 387, 60, 82);\n\t\tbirdPanel.setBackground(Color.BLACK);\n\t\tbirdPanel.addMouseListener(new birdListener());\n\t\ttry {\n\t\t\tBufferedImage birdPicture = ImageIO.read(new File(\".//res//bird_kleiner.jpg\"));\n\t\t\tJLabel birdLabel = new JLabel(new ImageIcon(birdPicture));\n\t\t\tbirdPanel.add(birdLabel);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tcon.add(birdPanel);\n\t\t\n\t\thereComesTheText = new JTextArea();\n\t\thereComesTheText.setBounds(55, 100, 285, 370);\n\t\thereComesTheText.setBackground(Color.BLACK);\n\t\thereComesTheText.setForeground(Color.LIGHT_GRAY);\n\t\thereComesTheText.setFont(dialogueText);\n\t\thereComesTheText.setLineWrap(true);\n\t\thereComesTheText.setWrapStyleWord(true);\n\t\tpanelMain.add(hereComesTheText);\n\t\tcon.add(hereComesTheText);\n\t\t\n\t\timagePanel.setBounds(427, 95, 546, 375);\n\t\timagePanel.setBackground(Color.black);\n\t\tpanelMain.add(imagePanel);\n\t\tcon.add(panelMain);\n\t\t\n\t\timagePanel.add(imageLabel);\n\t\t\n\t\tcon.add(imagePanel);\n\t\t\n\t\tpanelButtons = new JPanel();\n\t\tpanelButtons.setBounds(50, 510, 924, 200);\n\t\tpanelButtons.setBackground(Color.black);\n\t\tpanelButtons.setLayout(new GridLayout(2, 2));\n\t\tcon.add(panelButtons);\n\t\t\n\t\tfor(int i=1; i<5; i++) {\n\t\t\tbuttons.get(i).setBackground(Color.black);\n\t\t\tbuttons.get(i).setForeground(Color.LIGHT_GRAY);\n\t\t\tbuttons.get(i).setFont(runningText);\n\t\t\tbuttons.get(i).setFocusPainted(false);\n\t\t\tpanelButtons.add(buttons.get(i));\n\t\t}\n\t}",
"@Override\n public Position getSize() {\n return new Position(this.w, this.h);\n }",
"@Override\n\tpublic int getRespawnDimension(EntityPlayerMP player)\n\t{\n\t\treturn 0;\n\t}",
"public Player preparePlayer(Player player)\n\t{\n\t\tplayer.createPlayer();\n\t\tplayer.body = world.createBody(player.getBodyDef());\n\t\tplayer.body.setUserData(player.sprite);\n\t\tplayer.body.createFixture(player.getFixtureDef());\n\t\tMassData m=new MassData();\n\t\tm.mass=player.MASS;\n\t\tplayer.body.setMassData(m);\n\t\tplayer.setContactFixture();\n\t\tplayer.contactFixture=player.body.createFixture(player.fixtureDef);\n\t\treturn player;\n\t}",
"Dimension getSize();",
"Dimension getSize();",
"private void createHumanPlayer() {\n humanPlayer = new Player(\"USER\");\n players[0] = humanPlayer;\n }",
"public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }",
"@Override\n protected void initGame() {\n getGameWorld().setEntityFactory(new PlatformerFactory());\n getGameWorld().setLevelFromMap(\"Platformergame1.json\");\n\n // Sets spawnloction of the player\n player = getGameWorld().spawn(\"player\", 50, 50);\n }",
"public void settings() { size(1200, 800); }",
"private interface Dimension {\n\n\t/**\n\t * @return The placeholder width in px.\n\t */\n\tint getWidth();\n\n\t/**\n\t * @return The placeholder height in px.\n\t */\n\tint getHeight();\n\n }",
"public abstract void initPlayboard(int size);",
"public int paddleWidth() {\n return 600;\n }",
"int paddleWidth();",
"public void setSizePlayingFields()\r\n {\n setPreferredSize(new Dimension(109*8,72*8));//powieżchnia o 2 m z każdej strony większa niz boisko 106 i 69 pomnożone o 8\r\n //większe boisko żeby było widać\r\n setMaximumSize(getMaximumSize());\r\n setBackground(Color.green);\r\n }",
"private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }",
"public static void main(String[] args) {\n System.out.println(\"Create the player.\");\n }",
"@Override\n\t\tpublic int getVideoWidth() {\n\t\t\tif (mServicePlayerEngine != null) {\n\t\t\t\treturn mServicePlayerEngine.getVideoWidth();\n\t\t\t}\n\t\t\treturn 0;\n\t\t}",
"Player getDormantPlayer();",
"private void addMinigames(){\n Point a = new Point();\n getWindowManager().getDefaultDisplay().getSize(a);\n Log.d(\"XY\", Integer.toString(a.x)+\" \"+Integer.toString(a.y));\n\n\n\n generateMiniGames();\n\n addFlower();\n\n }",
"public PongGUI(int width, int height){\r\n\t\tsWidth = width;\r\n\t\tsHeight = height;\r\n\t}",
"@Override\n\tpublic void create() {\n\t\tthis.batch = new SpriteBatch();\n\t\t\n//\t\tgame.batch.begin();\n// player.draw(game.batch);\n// \n// game.batch.end();\n\t\t\n\t\tmanager = new AssetManager();\n\t\tmanager.setLoader(TiledMap.class, new TmxMapLoader(new InternalFileHandleResolver()));\n\t\tmanager.load(\"data/level1.tmx\", TiledMap.class);\n\t\tmanager.load(\"data/background.png\", Texture.class);\n//\t\tmanager.load(\"level1.tsx\", TiledMapTileSet.class);\n\t\tmanager.finishLoading();\n\t\tscreen = new GameScreen(this);\n\t\tsetScreen(screen);\n\t\t\n\t}",
"public void newGame() {\n // this.dungeonGenerator = new TowerDungeonGenerator();\n this.dungeonGenerator = cfg.getGenerator();\n\n Dungeon d = dungeonGenerator.generateDungeon(cfg.getDepth());\n Room[] rooms = d.getRooms();\n\n String playername = JOptionPane.showInputDialog(null, \"What's your name ?\");\n if (playername == null) playername = \"anon\";\n System.out.println(playername);\n\n this.player = new Player(playername, rooms[0], 0, 0);\n player.getCurrentCell().setVisible(true);\n rooms[0].getCell(0, 0).setEntity(player);\n\n frame.showGame();\n frame.refresh(player.getCurrentRoom().toString());\n frame.setHUD(player.getGold(), player.getStrength(), player.getCurrentRoom().getLevel());\n }",
"public interface PlayerFactory {\r\n Player create(GUI gui);\r\n}",
"public void create() {\n connect();\n batch = new SpriteBatch();\n font = new BitmapFont();\n\n audioManager.preloadTracks(\"midlevelmusic.wav\", \"firstlevelmusic.wav\", \"finallevelmusic.wav\", \"mainmenumusic.wav\");\n\n mainMenuScreen = new MainMenuScreen(this);\n pauseMenuScreen = new PauseMenuScreen(this);\n settingsScreen = new SettingsScreen(this);\n completeLevelScreen = new CompleteLevelScreen(this);\n completeGameScreen = new CompleteGameScreen(this);\n\n setScreen(mainMenuScreen);\n }",
"@Override\n public void create() {\n\n batch = new SpriteBatch();\n manager = new AssetManager();\n\n manager.load(\"audio/main_theme.mp3\", Music.class);\n // manager.load(\"String sonido\", Sound.class);\n manager.load(\"sprites/dragon.pack\", TextureAtlas.class);\n manager.load(\"sprites/vanyr.pack\", TextureAtlas.class);\n manager.finishLoading();\n\n setScreen(new PlayScreen(this));\n\n }",
"void initializePlayer();",
"public Game(){\n\t\tDimension size = new Dimension(width * scale, height * scale);\n\t\tsetPreferredSize(size);\n\t\t\n\t\tscreen = new Screen(width, height);//instantiated the new screen\n\t\t\n\t\tframe = new JFrame();\n\t\t\n\t}",
"public Vector3f getDimensions();",
"public int getLength () { return spriteLength; }",
"public int initSize() {\n return initEnemiesSpawned;\n }",
"VideoSize getSize() {\n return size;\n }",
"void createPlanetSurface(int width, int height) {\r\n\t\trenderer.surface = new PlanetSurface();\r\n\t\trenderer.surface.width = width;\r\n\t\trenderer.surface.height = height;\r\n\t\trenderer.surface.computeRenderingLocations();\r\n\t\tui.allocationPanel.buildings = renderer.surface.buildings;\r\n\t}",
"public int getSize() {\n\t\treturn WORLD_SIZE;\n\t}",
"private void setupPlayer(Engine engine, SceneManager sceneManager) throws IOException {\n\t\t// Entity dolphinEntityOne = sceneManager.createEntity(\"dolphinEntityOne\",\n\t\t// \"playerModel.obj\");\n\t\tSkeletalEntity dolphinEntityOne = sceneManager.createSkeletalEntity(\"player\", \"player.rkm\", \"player.rks\");\n\t\tdolphinEntityOne.setPrimitive(Primitive.TRIANGLES);\n\n\t\t// load animations\n\t\tdolphinEntityOne.loadAnimation(\"player_running\", \"player_running.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"player_shooting\", \"player_shooting.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"player_jump\", \"player_jump.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"stepLeft\", \"stepLeft.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"stepRight\", \"stepRight.rka\");\n\t\tdolphinEntityOne.loadAnimation(\"standing\", \"player_standing.rka\");\n\t\tdolphinNodeOne = sceneManager.getRootSceneNode().createChildSceneNode(dolphinEntityOne.getName() + \"Node\");\n\t\tdolphinNodeOne.attachObject(dolphinEntityOne);\n\n\t\t// initialize 'charge' state\n\t\tplayerCharge.put(dolphinNodeOne, false);\n\t\tplayerStretchController = new StretchController();\n\t\tsceneManager.addController(playerStretchController);\n\t\tplayerOrbitController = new OrbitController(dolphinNodeOne, 1.0f, 0.5f, 0.0f, false);\n\t\tsceneManager.addController(playerOrbitController);\n\n\t\t// initialize position and scale\n\t\tVector3 randomLocation = randomLocationMonster();\n\t\tdolphinNodeOne.setLocalPosition(randomLocation);\n\t\tdolphinNodeOne.setLocalPosition(100f,0f,0f);\n\t\tdolphinNodeOne.scale(0.04f, 0.04f, 0.04f);\n\t\t\n\t\ttargetNode = dolphinNodeOne.createChildSceneNode(\"targetNode\");\n\t\ttargetNode.setLocalPosition(0.0f, 10.0f, 50.0f);\n\n\t\t// initialize textures\n\t\tTexture dolphinOneTexture = textureManager.getAssetByPath(\"playerModel.png\");\n\t\tTextureState dolphinOneTextureState = (TextureState) renderSystem.createRenderState(RenderState.Type.TEXTURE);\n\t\tdolphinOneTextureState.setTexture(dolphinOneTexture);\n\t\tdolphinEntityOne.setRenderState(dolphinOneTextureState);\n\t\tSystem.out.println(dolphinNodeOne.getName());\n\t\thealths.put(dolphinNodeOne.getName(), 100);\n\t\tplayPlayerStandingAnimation();\n\t}",
"private void createPlayers() {\n // create human player first\n Player human = new Player(\"Player 1\", true);\n players.add(human);\n \n // create remaining AI Players\n for (int i = 0; i < numAIPlayers; i++) {\n Player AI = new Player(\"AI \" + (i + 1), false);\n players.add(AI);\n }\n }",
"private void createPlayers() {\n\t\t//Randomize roles\n\t\tArrayList<AdventurerEnum> randomisedRoles = getRandomisedRoles();\n\t\tfor(int i=0; i<numPlayers; i++) \n\t\t\tcreateOnePlayer(randomisedRoles.get(i), i+1);\n\t}",
"public VolcanoWorld(int width, int height) {\n super(width, height);\n DatabaseManager.loadWorld(this, SAVE_LOCATION_AND_FILE_NAME);\n //Add player to game\n this.setPlayerEntity(new PlayerPeon(-3f, -24f, 0.15f));\n addEntity(this.getPlayerEntity());\n\n this.allVolcanoDialogues = new ArrayList<>();\n\n // Provide enemies\n EnemyManager enemyManager = new EnemyManager(this, \"volcanoDragon\", 7, \"volcanoOrc\");\n GameManager.get().addManager(enemyManager);\n enemyManager.spawnBoss(16, 20);\n\n //Create Volcano NPCs\n List<NonPlayablePeon> npnSpawns = new ArrayList<>();\n VolcanoNPC volcanoNpc1 = new VolcanoNPC(\"VolcanoQuestNPC1\", new SquareVector(-20, -13),\"volcano_npc1\");\n VolcanoNPC volcanoNpc2 = new VolcanoNPC(\"VolcanoQuestNPC2\", new SquareVector(-21, 22),\"volcano_npc2\");\n npnSpawns.add(volcanoNpc2);\n npnSpawns.add(volcanoNpc1);\n this.allVolcanoDialogues.add(volcanoNpc2.getBox());\n this.allVolcanoDialogues.add(volcanoNpc1.getBox());\n NonPlayablePeonManager npcManager = new NonPlayablePeonManager(this, (PlayerPeon) this.playerEntity, npnSpawns);\n GameManager.get().addManager(npcManager);\n\n //Add items to game\n generateItemEntities();\n\n //Creates dialogue manager\n DialogManager dialog = new DialogManager(this, (PlayerPeon) this.getPlayerEntity(),\n this.allVolcanoDialogues);\n GameManager.get().addManager(dialog);\n\n //Add local Event to this world\n this.setWorldEvent(new VolcanoEvent(this));\n\n //Updates difficulty manager\n DifficultyManager difficultyManager = GameManager.getManagerFromInstance(DifficultyManager.class);\n difficultyManager.setPlayerEntity((PlayerPeon) this.getPlayerEntity());\n difficultyManager.setDifficultyLevel(getType());\n\n // Start ambience\n GameManager.getManagerFromInstance(SoundManager.class).playAmbience(\"volcanoAmbience\");\n\n timeLastTick = System.currentTimeMillis();\n }",
"int[] getScreenSize() {\n qq scSize = new qq(game.z, game.d, game.e);\n return new int[] { scSize.a(), scSize.b() };\n }",
"@Override\r\n\tpublic int getGameInitialWidth() {\n\t\treturn 320;\r\n\t}",
"public void setupTrackDimensions(double length) {\r\n // Set up the tracks dimensions\r\n if (alignment.equals(Alignment.horizontal)) {\r\n worldLength = x2 - x1;\r\n spaceLength = length;\r\n largestSpaceLength = spaceLength;\r\n } else if (alignment.equals(Alignment.vertical)) {\r\n worldLength = y2 - y1;\r\n spaceLength = length;\r\n largestSpaceLength = spaceLength;\r\n } else {\r\n worldLength = x2 - x1;\r\n worldCircumference = (Math.PI / 2) * 2 * radius;\r\n\r\n spaceLength = (globalRatio / 2) * (length / 2);\r\n spaceCircumference = (1 - (globalRatio / 2)) * (length / 2);\r\n }\r\n }",
"public int getVideoWidth(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn 0;\r\n \t\treturn mediaplayer.getVideoWidth();\r\n \t}",
"public int getFrameSize();",
"private void setUp() {\n players.forEach(player -> player.draw(GameConstants.STARTING_HAND_SIZE.value()));\n }",
"public int getWidth () {\r\n\tcheckWidget();\r\n\tint [] args = {OS.Pt_ARG_WIDTH, 0, 0};\r\n\tOS.PtGetResources (handle, args.length / 3, args);\r\n\treturn args [1];\r\n}",
"public int getWidth() {\n return (roomWidth);\n }",
"public static VideoPlayers createVideoPlayers(){\n return new VideoPlayers();\n }",
"private void createPlayers(LogicEngine in_logicEngine)\r\n\t{\n\t\tfor(int i=0 ; i < 4 ;i++)\r\n\t\t{\r\n\t\t\tGameObject ship = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/tinyship.png\",(LogicEngine.rect_Screen.getWidth()/2) - (32*i) + 64,50,20);\r\n\t\t\tship.i_animationFrame=0;\r\n\t\t\tship.i_animationFrameSizeWidth=16;\r\n\t\t\tship.i_animationFrameSizeHeight=16;\r\n\t\t\tship.allegiance = GameObject.ALLEGIANCES.PLAYER;\r\n\t\t\tship.collisionHandler = new PlayerCollision(ship);\r\n\t\t\tship.stepHandlers.add(new PlayerStep(i,ship));\r\n\t\t\tship.shotHandler = new StraightLineShot(\"data/\"+GameRenderer.dpiFolder+\"/bullet.png\",7.0f,new Vector2d(0,9));\r\n\t\t\t\r\n\t\t\tship.stepHandlers.add(new AnimateRollStep());\r\n\t\t\t\t\r\n\t\t\tship.str_name = \"player\";\r\n\t\t\t\r\n\t\t\tship.c_Color = new Color(1.0f,1.0f,1.0f,1.0f);\r\n\t\t\t\r\n\t\t\tship.v.setMaxForce(3);\r\n\t\t\tship.v.setMaxVel(20.0);\r\n\t\t\tin_logicEngine.objectsPlayers.add(ship);\r\n\t\t\t\r\n\t\t\t//double firing speed on hell\r\n\t\t\tif(Difficulty.isHard())\r\n\t\t\t\tship.shootEverySteps = (int) (ship.shootEverySteps * 0.75); \r\n\t\t\t\r\n\t\t\t//for each advantage if it is enabled apply it\r\n\t\t\tfor(int j=Advantage.b_advantages.length-1 ;j>=0;j--)\r\n\t\t\t\tif(Advantage.b_advantages[j])\r\n\t\t\t\t\tAdvantage.applyAdvantageToShip(j,ship,i,in_logicEngine);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"void setTubeDownDimension(double width, double height);",
"private void setDimensions() {\n IPhysicalVolume physVol_parent = getModule().getGeometry().getPhysicalVolume();\n ILogicalVolume logVol_parent = physVol_parent.getLogicalVolume();\n ISolid solid_parent = logVol_parent.getSolid();\n Box box_parent;\n if (Box.class.isInstance(solid_parent)) {\n box_parent = (Box) solid_parent;\n } else {\n throw new RuntimeException(\"Couldn't cast the module volume to a box!?\");\n }\n _length = box_parent.getXHalfLength() * 2.0;\n _width = box_parent.getYHalfLength() * 2.0;\n\n }"
] | [
"0.64361554",
"0.64287543",
"0.6162126",
"0.60952115",
"0.5967027",
"0.5952386",
"0.59391963",
"0.5937148",
"0.5898831",
"0.58653504",
"0.58228445",
"0.5717316",
"0.5649036",
"0.56287414",
"0.56282866",
"0.562605",
"0.5620634",
"0.55892646",
"0.55620736",
"0.5523878",
"0.5515265",
"0.54911304",
"0.54645365",
"0.54274565",
"0.54163283",
"0.5413031",
"0.5397295",
"0.53917813",
"0.5381302",
"0.53809804",
"0.5367162",
"0.53591406",
"0.5317545",
"0.5316663",
"0.53102946",
"0.5277989",
"0.5266827",
"0.526668",
"0.5262503",
"0.5260166",
"0.5242473",
"0.523979",
"0.5229346",
"0.5227411",
"0.5225027",
"0.5223939",
"0.52175146",
"0.5216327",
"0.5215494",
"0.5213651",
"0.5213211",
"0.52125114",
"0.5210738",
"0.5210336",
"0.52054477",
"0.51951045",
"0.51951045",
"0.51888776",
"0.5186029",
"0.51811093",
"0.5169961",
"0.51605237",
"0.5147385",
"0.51465863",
"0.51442754",
"0.5143158",
"0.5142784",
"0.5134612",
"0.51332134",
"0.51321125",
"0.51310253",
"0.5120745",
"0.5118981",
"0.5118288",
"0.5117998",
"0.51158184",
"0.5111818",
"0.5111753",
"0.51052153",
"0.51012945",
"0.5091397",
"0.5088577",
"0.5082548",
"0.50821304",
"0.50811434",
"0.5075623",
"0.50744784",
"0.50698966",
"0.50697416",
"0.50680023",
"0.5067358",
"0.5066655",
"0.5063624",
"0.5058511",
"0.5058271",
"0.50577605",
"0.50542253",
"0.50490606",
"0.50464725",
"0.50411713",
"0.5037283"
] | 0.0 | -1 |
count the number of characters which occur odd number of times if it's larger than 1 it's false. | public boolean canPermutePalindrome(String s) {
/** s only contains lowercase chars. **/
int[] occur = new int[26];
for (char ch : s.toCharArray()) {
occur[ch - 'a'] += 1;
}
int count = 0;
for (int i = 0; i < occur.length; i++) {
if (occur[i] % 2 == 1) {
count += 1;
}
}
return count <= 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static boolean possibility(HashMap<Integer,\n Integer> m,\n int length, String s)\n{\n // counts the occurrence of number\n // which is odd\n int countodd = 0;\n \n for (int i = 0; i < length; i++)\n {\n // if occurrence is odd\n if (m.get(s.charAt(i) - '0') % 2 == 1)\n countodd++;\n \n // if number exceeds 1\n if (countodd > 1)\n return false;\n }\n \n return true;\n}",
"public static boolean moreWordsOfOddLength(Scanner s){\n\t\t\n\t\tint oddWordCount = 0;\n\t\tint evenWordCount = 0;\n\t\t\n\t\twhile(s.hasNext()){\n\t\t\t\n\t\t\tString tempString = s.next();\n\t\t\t\n\t\t\t//check to see if tempString is even or odd and keep track of totals\n\t\t\tif(tempString.length() % 2 == 0){\n\t\t\t\tevenWordCount++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\toddWordCount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//check to see the amount of even words is greater or equal to odd words\n\t\tif(evenWordCount >= oddWordCount){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}",
"private static int ones(String s)\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor (int i = 0; i < s.length(); i++)\r\n\t\t{\r\n\t\t\tif(s.charAt(i) == '1')\r\n\t\t\t\tcount++;\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"static int alternate(String s) {\n\n \n char[] charArr = s.toCharArray();\n\n int[] arrCount=new int[((byte)'z')+1];\n\n for(char ch:s.toCharArray()){ \n arrCount[(byte)ch]+=1;\n }\n \n int maxLen=0;\n for(int i1=0;i1<charArr.length;++i1)\n {\n char ch1= charArr[i1];\n for(int i2=i1+1;i2<charArr.length;++i2)\n {\n char ch2 = charArr[i2];\n if(ch1 == ch2)\n break;\n\n //validate possible result\n boolean ok=true;\n {\n char prev = ' ';\n for(char x:charArr){\n if(x == ch1 || x == ch2){\n if(prev == x){\n ok=false;\n break;\n }\n prev = x;\n }\n }\n\n }\n if(ok)\n maxLen = Math.max(maxLen,arrCount[(byte)ch1]+arrCount[(byte)ch2]);\n }\n }\n\n return maxLen;\n\n }",
"static int alternatingCharacters(String s) {\n \tint res = 0;\n \tfor(int i = 0; i < s.length();) {\n \t\tint j = i;\n \t\twhile(j < s.length() - 1 && s.charAt(j) == s.charAt(j+1)) {\n \t\t\tres++;\n \t\t\tj++;\n \t\t}\n \t\ti = j + 1;\n \t}\n \treturn res;\n }",
"static int twoCharaters(String s) {\n\t\tList<String> list = Arrays.asList(s.split(\"\"));\n\t\tHashSet<String> uniqueValues = new HashSet<>(list);\n\t\tSystem.out.println(uniqueValues);\n\t\tString result;\n\t\twhile(check(list,1,list.get(0))) {\n\t\t\tresult = replace(list,1,list.get(0));\n\t\t\tif(result != null) {\n\t\t\t\tSystem.out.println(result);\n\t\t\t\ts = s.replaceAll(result,\"\");\n\t\t\t\tlist = Arrays.asList(s.split(\"\"));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t\treturn 5;\n }",
"static String canReshuffleStringToMakePalindrome(String s) {\n boolean stringHasOddLength = (s.length() % 2 == 1);\n int charsWithOddCnt = 0, charCnt = 0;\n Map<Character, Integer> charCntMap = new HashMap<Character, Integer>();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (charCntMap.containsKey(c))\n charCnt = charCntMap.get(c) + 1;\n else\n charCnt = 1;\n charCntMap.put(c, charCnt);\n if (charCnt % 2 == 1)\n charsWithOddCnt++;\n else\n charsWithOddCnt--;\n }\n if (stringHasOddLength)\n // At most one char can have an odd count\n return (charsWithOddCnt <= 1) ? \"YES\" : \"NO\";\n else\n // No char can have an odd count\n return (charsWithOddCnt == 0) ? \"YES\" : \"NO\";\n }",
"public static void main(String args[]){\n\n //even number of everything\n //odd number of 1 thing MAX\n\n //sort string\n //check subsequent chars to count their numbers until length -1\n //break if 2 odd number chars\n System.out.println(isPalindromePermutation(\"22334455asdfdsa66\"));\n\n\n }",
"private static boolean checkPermutationCountingArray(String s1, String s2) {\n // Strings are of unequal length. Cannot be permutations.\n if (s1.length() != s2.length()) {\n return false;\n }\n\n int[] characterCount = new int[128];\n for (int i = 0; i < s1.length(); i++) {\n characterCount[s1.charAt(i)]++;\n characterCount[s2.charAt(i)]--;\n }\n for (int i = 0; i < characterCount.length; i++) {\n if (characterCount[i] != 0) return false;\n }\n return true;\n }",
"static long substrCount(int n, String s) {\nchar arr[]=s.toCharArray();\nint round=0;\nlong count=0;\nwhile(round<=arr.length/2)\n{\nfor(int i=0;i<arr.length;i++)\n{\n\t\n\t\tif(round==0)\n\t\t{\n\t\t//System.out.println(arr[round+i]);\n\t\tcount++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(i-round>=0&&i+round<arr.length)\n\t\t\t{\n\t\t\t\tboolean flag=true;\n\t\t\t\tchar prev1=arr[i-round];\n\t\t\t\tchar prev2=arr[i+round];\n\t\t\t\t\n\t\t\t\tfor(int j=1;j<=round;j++)\n\t\t\t\t{\n\t\t\t\t\tif(prev1!=arr[i+j]||prev1!=arr[i-j])\n\t\t\t\t\t{\n\t\t\t\t\t\tflag=false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\tif(arr[i+j]!=arr[i-j])\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\tflag=false;\n\t\t\t\t\t\tbreak;\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\t\n\t\t\t\t}\n\t\t\t\tif(flag)\n\t\t\t\t{\n\t\t\t\t\t//System.out.print(arr[i-round]);\n\t\t\t\t\t//System.out.print(arr[round+i]);\n\t\t\t\t\t//System.out.println(round);\n\t\t\t\t\t//System.out.println();\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n}\nround++;\n}\nreturn count;\n }",
"public int evenCount()\n {\n return 0;\n }",
"public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n String str1=in.nextLine();\n String str2=in.nextLine();\n int slen1=str1.length();\n \n int slen2=str2.length();\n int count=0;\n for(int i=0;i<(slen1-slen2+1);i++)\n {\n int num=1;\n for(int j=0;j<slen2;j++)\n {\n if(str1.charAt(i+j)!=(str2.charAt(j)))\n {\n num=0;\n }\n \n } \n if(num==1)\n {\n count++;\n }\n \n }\n System.out.println(count); \n }",
"static\nint\ncountPairs(String str) \n\n{ \n\nint\nresult = \n0\n; \n\nint\nn = str.length(); \n\n\nfor\n(\nint\ni = \n0\n; i < n; i++) \n\n\n// This loop runs at most 26 times \n\nfor\n(\nint\nj = \n1\n; (i + j) < n && j <= MAX_CHAR; j++) \n\nif\n((Math.abs(str.charAt(i + j) - str.charAt(i)) == j)) \n\nresult++; \n\n\nreturn\nresult; \n\n}",
"public String solution(String s) {\n\t\tStream<Character> tmp = s.chars().mapToObj(value -> (char)value);\n\t\treturn tmp.collect(Collectors.groupingBy(Function.identity(), Collectors.counting())).entrySet().stream().filter(characterLongEntry -> characterLongEntry.getValue() == 2).findFirst().get().getKey().toString();\n\t}",
"private static boolean checkPalindromability() {\n boolean oddEncountered = false; // assume any input is palindrome at first (zero occurrences of any chars)\n\n for(Integer count : charCount.values()) {\n if(count % 2 == 1) {\n if(oddEncountered) { // there has been one odd char count already, so second one means a non-palindrome\n return false;\n } else {\n oddEncountered = true;\n }\n }\n }\n return true;\n }",
"private boolean isAppropriate(int[] counts, int length) {\n\n if (length % 2 == 0) {\n for (int count : counts) {\n if (count != 0 && count % 2 == 1) {\n return false;\n }\n }\n }\n else {\n int oddCount = 0;\n for (int count : counts) {\n if (count != 0 && count % 2 == 1) {\n if (++oddCount > 1) {\n return false;\n }\n }\n }\n }\n\n return true;\n }",
"static String isValid(String s) {\r\n\r\n\t\tHashMap<Character, Integer> map = new HashMap();\r\n\t\tHashMap<Integer, Integer> vMap = new HashMap();\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\r\n\t\t\tif (map.containsKey(s.charAt(i))) {\r\n\t\t\t\tmap.put(s.charAt(i), map.get(s.charAt(i)) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tmap.put(s.charAt(i), 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(map);\r\n\t\tfor (int v : map.values()) {\r\n\t\t\tif (vMap.containsKey(v)) {\r\n\t\t\t\tvMap.put(v, vMap.get(v) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tvMap.put(v, 1);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tSystem.out.println(vMap);\r\n\r\n\t\tif (vMap.size() == 1) {\r\n\t\t\treturn \"YES\";\r\n\t\t} else if (vMap.size() == 2) {\r\n\t\t\tint ar[] = new int[2];\r\n\t\t\tint ark[] = new int[2];\r\n\t\t\tint j = 0;\r\n\t\t\tfor (int a : vMap.keySet()) {\r\n\t\t\t\tar[j] = vMap.get(a);\r\n\t\t\t\tark[j] = a;\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\r\n\t\t\tif ((ar[1] == 1 || ar[0] == 1) && (Math.abs(ark[1] - ark[0]) == 1))\r\n\t\t\t\treturn \"YES\";\r\n\t\t\telse if ((!(Math.abs(ark[1] - ark[0]) == 1))\r\n\t\t\t\t\t&& ((ark[0] == 1 && ar[0] == 1) || (ark[1] == 1 && ar[1] == 1)))\r\n\t\t\t\treturn \"YES\";\r\n\t\t\telse\r\n\t\t\t\treturn \"NO\";\r\n\r\n\t\t} else {\r\n\t\t\treturn \"NO\";\r\n\t\t}\r\n\r\n\t}",
"static public int evenCalc (int[] a){\n int counter = 0;\n for (int i = 0; i < a.length; i++){\n if(a[i] % 2 == 0)\n counter ++;\n }\n return counter;\n }",
"static int countCharacters2(String[] words, String chars) {\n int count = 0;\n int[] seen = new int[26];\n //Count char of Chars String\n for (char c : chars.toCharArray())\n seen[c - 'a']++;\n // Comparing each word in words\n for (String word : words) {\n // simple making copy of seen arr\n int[] tSeen = Arrays.copyOf(seen, seen.length);\n int Tcount = 0;\n for (char c : word.toCharArray()) {\n if (tSeen[c - 'a'] > 0) {\n tSeen[c - 'a']--;\n Tcount++;\n }\n }\n if (Tcount == word.length())\n count += Tcount;\n }\n return count;\n }",
"public boolean isLovely(int n) {\n List<String> digits = new ArrayList<>(Arrays.asList(Integer.toString(n).split(\"\")));\n Map<String,Integer> toCount = new HashMap<>();\n\n for (String dig:digits) {\n if (!toCount.containsKey(dig)) {\n toCount.put(dig,1);\n } else {\n toCount.put(dig,toCount.get(dig) + 1);\n }\n }\n for (Integer value:toCount.values()) {\n if (value > 2)\n return false;\n }\n return true;\n }",
"public static int commonCharacterCount(String s1, String s2) {\n\t int count = 0;\n\t int auxArray[] = new int[s2.length()];\n\t for (int i = 0; i < auxArray.length; i++){\n\t\tauxArray[i] = 0;\n\t }\n\t \n\t for(int i = 0; i < s1.length(); i++){\n\t\tfor(int j = 0; j < s2.length(); j++){\n\t\t if( auxArray[j] == 1){\n\t\t continue;\n\t\t }\n\t\t else{\n\t\t if(s1.charAt(i) == s2.charAt(j)){\n\t\t auxArray[j] = 1;\n\t\t count += 1;\n\t\t break;\n\t\t }\n\t\t }\n\t\t}\n\t }\n\t return count;\n\t}",
"static long substrCount(int n, String s) {\n \tlong output=0;\n \t\n \tboolean[][] matrix = new boolean[n][n];\n \t\n \tfor(int i=0; i<n; i++) {\n \t\tmatrix[i][i] = true;\n \t\toutput++;\n \t}\n \t\n \tfor(int gap=1; gap<n; gap++) {\n \t\tfor(int i=0; i+gap <n; i++) {\n \t\t\tint j = i+gap;\n \t\t\t\n \t\t\tif(gap ==1) {\n \t\t\t\tif(s.charAt(i) == s.charAt(j)) {\n \t\t\t\t\tmatrix[i][j] = true;\n \t\t\t\t\toutput++;\n \t\t\t\t} else {\n \t\t\t\t\tmatrix[i][j] = false;\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tif(s.charAt(i) == s.charAt(j) && matrix[i+1] [j-1]) {\n \t\t\t\t\t\n \t\t\t\t\tif(j-i >= 4 && s.charAt(i)== s.charAt(i+1)) {\n \t\t\t\t\t\tmatrix[i][j] = true;\n \t\t\t\t\toutput++;\n \t\t\t\t\t} else if(j-i <4) {\n \t\t\t\t\t\tmatrix[i][j] = true;\n \t\t\t\t\toutput++;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tmatrix[i][j] = false;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t} else {\n \t\t\t\t\tmatrix[i][j] = false;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \t\n \treturn output;\n }",
"private int count(Board board, char symbol)\n {\n int answer = 0;\n \n for (int i = 0; i < size; i++)\n if (testRow(board, i, symbol))\n answer++;\n \n for (int i = 0; i < size; i++)\n if (testColumn(board, i, symbol))\n answer++;\n \n if (testLeftDiagonal(board, symbol))\n answer++;\n \n if (testRightDiagonal(board, symbol))\n answer++;\n \n return answer;\n }",
"include<stdio.h>\nint main()\n{\n char str[100];\n scanf(\"%s\", str);\n int i, count=1, length; \n for(length=0; str[length]!='\\0'; length++);\n if(length>20)\n {\n printf(\"Invalid Input\");\n }\n else\n {\n for(i=0; i<length; i++)\n {\n if(str[i] == str[i+1])\n {\n count++;\n }\n else\n {\n printf(\"%c%d\", str[i], count); \n count = 1;\n }\n }\n }\n return 0;\n}",
"static String isValid(String s){\n // Complete this function\n int[] charArray = new int[26];\n for(int i=0;i<26;i++){\n charArray[i] = 0;\n }\n for(int i=0;i<s.length();i++){\n int index = s.charAt(i) - 'a';\n charArray[index]++;\n }\n boolean oneDelete = false;\n //int prevValue = charArray[0];\n //System.out.println(\"a\" + \": \" + charArray[0]);\n /*for(int i=1;i<26;i++){\n System.out.println((char) (i+'a') + \": \" + charArray[i] + \" \" + \"prevValue\" + \": \" + prevValue);\n \n if(charArray[i] !=0 && prevValue!= 0 && charArray[i] != prevValue){\n if(oneDelete){\n return \"NO\";\n }else{\n if(Math.abs(charArray[i] - prevValue) != 1){\n return \"NO\";\n }else{\n oneDelete = true;\n }\n }\n }\n if(charArray[i] !=0){\n prevValue = charArray[i]; \n }\n }*/\n HashMap<Integer,Integer> frequencyCount = new HashMap<>();\n for(int i=0;i<26;i++){\n if(charArray[i] !=0){\n if(!frequencyCount.containsKey(charArray[i])){\n frequencyCount.put(charArray[i],1);\n }else{\n int count =frequencyCount.get(charArray[i]);\n frequencyCount.put(charArray[i],count+1);\n }\n }\n }\n \n if(frequencyCount.size() > 2){\n return \"NO\";\n }else if(frequencyCount.size() == 2){\n if(frequencyCount.containsKey(1) && frequencyCount.get(1) == 1){\n return \"YES\";\n }\n if(isConsecutiveFrequencies(frequencyCount)){\n return \"YES\";\n }else{\n return \"NO\";\n }\n }else{\n return \"YES\"; \n }\n \n \n }",
"public int countSubstrings_dp(String s) {\n\t\tint n = s.length();\n\t\tint res = 0;\n\t\tboolean[][] dp = new boolean[n][n];\n\t\tfor (int i = n - 1; i >= 0; i--) {\n\t\t\tfor (int j = i; j < n; j++) {\n\t\t\t\tdp[i][j] = s.charAt(i) == s.charAt(j) \n\t\t\t\t\t\t&& (j - i + 1 < 3 || dp[i + 1][j - 1]);\n\t\t\t\t\n\t\t\t\tif (dp[i][j])\n\t\t\t\t\t++res;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}",
"public int countSegments(String s) {\r\n int count = 0;\r\n boolean flag = true;\r\n if (s.length() == 0) return 0;\r\n \r\n for (char c : s.toCharArray()) {\r\n if (c == 32) {\r\n flag = true;\r\n } else if (c != 32 && flag) {\r\n flag = false;\r\n count++;\r\n }\r\n }\r\n \r\n return count;\r\n }",
"public int countConsonants(String str){\n\t\tint count=str.replaceAll(\"[^A-Za-z0-9_]\", \"\").length()\n\t\t\t\t-str.toLowerCase().replaceAll(\"[^aeiouy]\",\"\").length();\n\t\treturn count;\n\t}",
"static String isValid(String s) {\n\n\t\tMap<Character, Integer> charMap = new HashMap<>();\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (charMap.get(s.charAt(i)) == null) {\n\t\t\t\tcharMap.put(s.charAt(i), 1);\n\t\t\t} else {\n\t\t\t\tint value = charMap.get(s.charAt(i));\n\t\t\t\tcharMap.put(s.charAt(i), value + 1);\n\t\t\t}\n\t\t}\n\n\t\tint highest = 0;\n\t\tint secondHighest = 0;\n\t\tint singleCharcount = 0;\n\t\tfor (Map.Entry<Character, Integer> entry : charMap.entrySet()) {\n\t\t\tint num = entry.getValue();\n\t\t\tif (num == 1) {\n\t\t\t\tsingleCharcount++;\n\t\t\t\tif (singleCharcount >= 2) {\n\t\t\t\t\treturn \"NO\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (num > highest) {\n\t\t\t\tsecondHighest = highest;\n\t\t\t\thighest = num;\n\t\t\t} else if (num > secondHighest) {\n\t\t\t\tsecondHighest = num;\n\t\t\t}\n\t\t}\n\n\t\tif (highest - secondHighest > 2) {\n\t\t\treturn \"NO\";\n\t\t} else {\n\t\t\treturn \"YES\";\n\t\t}\n\t}",
"public static boolean isPermutation(String str) {\n if (str == null || str.equals(\"\")) {\n return false;\n }\n char[] characters = new char[256];\n for (int i = 0; i < str.length(); i++) {\n characters[str.charAt(i)]++;\n }\n int count = 0;\n for (char c : characters) {\n if (!(c == 0 || c % 2 == 0)) {\n if (count == 0) {\n count++;\n } else {\n return false; // allow only one character to occur once\n }\n }\n }\n return true;\n }",
"private static boolean checkIfCanBreak( String s1, String s2 ) {\n\n if (s1.length() != s2.length())\n return false;\n\n Map<Character, Integer> map = new HashMap<>();\n for (Character ch : s2.toCharArray()) {\n map.put(ch, map.getOrDefault(ch, 0) + 1);\n }\n\n for (Character ch : s1.toCharArray()) {\n\n char c = ch;\n while ((int) (c) <= 122 && !map.containsKey(c)) {\n c++;\n }\n\n if (map.containsKey(c)) {\n map.put(c, map.getOrDefault(c, 0) - 1);\n\n if (map.get(c) <= 0)\n map.remove(c);\n }\n }\n\n return map.size() == 0;\n }",
"public boolean check(String str)\n {\n\n int count=0;\n int arr[] = new int[26];\n int i;\n boolean flag=false;\n str = str.replaceAll(\"[^a-zA-Z]\", \"\");\n str.toLowerCase();\n if(str==null) {\n System.out.println(\"string can't be null\");\n }\n else\n {\n if(str.length()==26) {\n for (i = 0; i < str.length(); i++) {\n if (count == 26) {\n flag = true;\n break;\n }\n char k = str.charAt(i);\n int j = (int) k - 'a';\n if (arr[j] == 0) {\n count++;\n arr[j] = 1;\n }\n }\n }\n else\n break;\n\n }\n return flag;\n }",
"public boolean checkIfPermutationPalindrome(String str) {\n\n Hashtable<Character, Integer> table = generateTable(str);\n\n int oneOdd = 0;\n boolean flag;\n for(char ch : table.keySet()) {\n if(table.get(ch)%2 == 1) {\n oneOdd++;\n }\n }\n if(oneOdd <= 1) {\n flag = true;\n }\n else {\n flag = false;\n }\n if(str.length() == 0) {\n flag = false;\n }\n System.out.println(flag);\n return flag;\n }",
"static int countVowelConsonantSolution1(String str) {\n int result = 0;\n for(int i=0; i<str.length(); i++) {\n char letter = str.toLowerCase().charAt(i);\n\n if(letter>= 'a' && letter <= 'z'){\n if(letter == 'a' || letter == 'e' || letter == 'u' || letter == 'i' || letter == 'o'){\n result += 1;\n }else {\n result += 2;\n }\n }\n\n }\n return result;\n }",
"static String gameOfThrones(String s){\n // Complete this function\n int charArray[] = new int[26];\n for(int i=0;i<s.length();i++){\n int index = s.charAt(i) - 'a';\n charArray[index]++;\n }\n boolean isPalindrome = true;\n if(s.length()%2 == 0){\n for(int i=0;i<26;i++){\n if(charArray[i]%2 != 0){\n isPalindrome = false; \n break;\n }\n } \n }else{\n boolean oneOdd = false;\n for(int i=0;i<26;i++){\n if(charArray[i]%2 != 0){\n if(!oneOdd){\n oneOdd = true;\n }else{\n isPalindrome = false; \n break;\n }\n }\n } \n }\n if(isPalindrome){\n return \"YES\";\n }else{\n return \"NO\";\n }\n }",
"public static boolean isPermutation(char[] str) {\n if (str == null) {\n return false;\n }\n java.util.Arrays.sort(str);\n int count = 0;\n int maxOdds = 0;\n for (int i = 1; i < str.length; i++) {\n if (str[i] == str[i-1]) {\n count++;\n } else {\n if (count % 2 != 1) {\n maxOdds++;\n if (maxOdds > 1) {\n return false;\n }\n }\n count = 0;\n }\n }\n if(str[str.length-1] == str[str.length-2]) {\n if (count % 2 != 1) {\n maxOdds++;\n if (maxOdds > 1) {\n return false;\n }\n }\n }\n return true;\n }",
"public static int gemstones(List<String> arr) {\n // Write your code here\n boolean[][] found = new boolean[arr.size()][27];\n \n for (int i = 0; i < arr.size(); i++) {\n String str = arr.get(i);\n \n for (int j = 0; j < str.length(); j++) {\n found[i][str.charAt(j) - 'a'] = true;\n }\n }\n \n int result = 0;\n for (int j = 0; j < found[0].length; j++) {\n boolean allFound = true;\n \n for (int i = 0; i < found.length; i++) {\n if (!found[i][j]) {\n allFound = false;\n break;\n }\n }\n \n if (allFound) {\n result++;\n }\n }\n \n return result;\n }",
"static String possiblePalindrome(String str) {\n int[] charCounts = new int[26];\n for (int i = 0; i < str.length(); i++)\n charCounts[str.charAt(i) - 'a']++;\n\n // If string length is even, can't be any odd number of chars\n // If string length is odd, one odd number of chars is needed\n int oddChars = 0;\n for (int i = 0; i < charCounts.length; i++) {\n if (charCounts[i] % 2 == 1)\n oddChars++;\n }\n\n if (str.length() % 2 == 0) {\n if (oddChars == 0)\n return \"YES\";\n }\n else {\n if (oddChars == 1)\n return \"YES\";\n }\n return \"NO\";\n }",
"private int alternateSolution(String[] words){\n String[] MORSE = new String[]{\".-\",\"-...\",\"-.-.\",\"-..\",\".\",\"..-.\",\"--.\",\n \"....\",\"..\",\".---\",\"-.-\",\".-..\",\"--\",\"-.\",\n \"---\",\".--.\",\"--.-\",\".-.\",\"...\",\"-\",\"..-\",\n \"...-\",\".--\",\"-..-\",\"-.--\",\"--..\"};\n\n HashSet<String> seen = new HashSet<>();\n for (String word: words) {\n StringBuilder code = new StringBuilder();\n for (char c: word.toCharArray())\n code.append(MORSE[c - 'a']);\n seen.add(code.toString());\n }\n\n return seen.size();\n }",
"private static boolean checkPermutationCountingHashMap(String s1, String s2) {\n // Strings are of unequal length. Cannot be permutations.\n if (s1.length() != s2.length()) return false;\n\n // Keep a track of the characters using a HashMap.\n Map<Character, Integer> map = new HashMap<Character, Integer>();\n for (int i = 0; i < s1.length(); i++) {\n // Increment count for characters in s1\n if (map.containsKey(s1.charAt(i))) {\n map.put(s1.charAt(i), map.get(s1.charAt(i)) + 1);\n } else {\n map.put(s1.charAt(i), 1);\n }\n\n // Decrement count for characters in s2\n if (map.containsKey(s2.charAt(i))) {\n map.put(s2.charAt(i), map.get(s2.charAt(i)) - 1);\n } else {\n map.put(s2.charAt(i), -1);\n }\n }\n\n // If there are any characters not present in both, some value would be -1 or 1.\n // This case would imply that the strings are not permutations.\n for (char c : map.keySet()) {\n if (map.get(c) != 0) return false;\n }\n return true;\n }",
"public int countPalindromicSubsequences(String s) {\n \n Integer[][][] memo = new Integer[s.length()][s.length()][4];\n \n int ans = 0;\n for (int i = 0; i < 4; i++) {\n ans = (ans + distinct(s, memo, 0, s.length() - 1, i)) % MOD;\n }\n \n return ans;\n }",
"static String isValid(String s) {\n int[] index = new int[26];\n for(char i : s.toCharArray()) {\n index[i-'a']++;\n }\n int diff = 0;\n HashMap<Integer,Integer> map = new HashMap<>();\n for(int i = 0 ; i < 26 ; i++) {\n if(index[i]==0) continue;\n diff++;\n map.put(index[i],map.getOrDefault(index[i],0)+1);\n }\n if(map.size() > 2) {\n return \"NO\";\n }\n else if(map.size() == 2) {\n Iterator<Integer> it = map.keySet().iterator();\n int a = it.next();\n int b = it.next();\n if(Math.max(map.get(a),map.get(b)) != diff - 1) {\n return \"NO\";\n }\n if(map.get(Math.min(a,b))!=1 && Math.abs(a-b)!=1) {\n return \"NO\";\n }\n }\n return \"YES\";\n \n }",
"public static void main(String[] args) {\n String s = new Scanner(System.in).nextLine();\n HashMap<Character,Integer> map = new HashMap(26);\n for(Character c : s.toCharArray())\n {\n if(map.containsKey(c))\n {\n int val = map.get(c);\n map.put(c,++val);\n }\n else\n {\n map.put(c,1);\n }\n }\n int min = Collections.min(map.values());\n int max = Collections.max(map.values());\n HashMap<Integer,Integer> intMap = new HashMap();\n for(int count : map.values())\n {\n Integer val = intMap.get(count);\n if(null != val)\n {\n intMap.put(count,++val);\n }\n else\n {\n intMap.put(count,1);\n }\n }\n\n String output= intMap.size() == 1 ||( intMap.size() <= 2 && (intMap.get(min) <= 1 || intMap.get(max) <= 1)) ? \"YES\" : \"NO\";\n System.out.println(output);\n }",
"public static void main(String[] args) {\n\t\tint n=3;\n\t\tString s=\"1\";\n\t\tint count =1;\n\t\tint k=1;\n\t\twhile(k<n){\n\t\t\tStringBuilder t=new StringBuilder();\n\t\t\t//t.append(s.charAt(0));\n\t\t\tfor(int i=1;i<=s.length();i++){\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(i==s.length() || s.charAt(i-1)!=s.charAt(i)){\n\t\t\t\t\tt.append(count); t.append(s.charAt(i-1));\n\t\t\t\t\tcount=1;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i-1)==s.charAt(i)){count=count+1;}\n\t\t\t }\t\n\t\t\t\ts=t.toString();\n\t\t\t\tk=k+1;\n\t\t\t\tSystem.out.println(\"k:\"+k);\n\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(s);\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Test\n public void charCount() {\n final int expectedEight = 8;\n final int expectedFour = 4;\n\n CharCount charCounter = new CharCount();\n assertEquals(expectedEight, charCounter.characterCounter(\"fizzbuzz FIZZBUZZ\", 'z'));\n assertEquals(expectedEight, charCounter.characterCounter(\"fizzbuzz FIZZBUZZ\", 'Z'));\n assertEquals(expectedFour, charCounter.characterCounter(\"FIZZBUZZ\", 'z'));\n assertEquals(0, charCounter.characterCounter(\"TEdff fdjfj 223\", '1'));\n assertEquals(expectedFour, charCounter.characterCounter(\"TE00df0f f0djfj 223\", '0'));\n assertEquals(0, charCounter.characterCounter(\"RRuyt 111000AAdda\", (char) 0));\n }",
"static int ones()\n {\n char[] binArray = binary.toCharArray();\n int count = 0;\n int max = 0; \n for(int i = 0; i < binary.length(); i++)\n {\n if(binArray[i] == '0'){\n count = 0;\n }else {\n count++;\n max = Math.max(max, count);\n }\n }\n return max;\n }",
"public int countOfOnes() {\r\n\t\tbyte one = (byte) 1;\r\n\t\tint count = 0;\r\n\r\n\t\tfor (byte b : values) {\r\n\t\t\tif (b == one) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count;\r\n\t}",
"@Test\n public void countNumberOfCharactersInWords() {\n final long count = 0; //TODO\n\n assertEquals(105, count);\n }",
"public int findNumbers(int[] nums) {\n int res = 0;\n for (int num : nums) {\n if (String.valueOf(num).length() % 2 == 0) {\n res ++;\n }\n }\n return res;\n }",
"public int cardinality() {\n\t\tint counter = 0;\n\t\tfinal EWAHIterator i =\n\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\twhile (i.hasNext()) {\n\t\t\tRunningLengthWord localrlw = i.next();\n\t\t\tif (localrlw.getRunningBit()) {\n\t\t\t\tcounter += wordinbits * localrlw.getRunningLength();\n\t\t\t}\n\t\t\tfor (int j = 0; j < localrlw.getNumberOfLiteralWords(); ++j) {\n\t\t\t\tcounter += Long.bitCount(i.buffer()[i.dirtyWords() + j]);\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"public int countSubstrings_brute_force(String s) {\n\t\tint ans = 0;\n\n for (int start = 0; start < s.length(); ++start)\n for (int end = start; end < s.length(); ++end) \n ans += isPal_brute_force(s, start, end) ? 1 : 0;\n\n return ans;\n\t}",
"public int count_decoding_improved(char[] digits, int n){\n// if(n==0 || n==1)\n// return 1;\n\n int[] count = new int[n+1];\n\n count[0] = 1;\n count[1] = 1;\n //int count = 0;\n\n for(int i = 2; i <= n; i++){\n if(digits[i-1] > '0')\n count[i] = count[i-1];\n\n if(digits[i-2]=='1' || digits[i-2] == '2' && digits[i-1] < '7')\n count[i] += count[i-2];\n }\n\n\n\n return count[n];\n }",
"static int countPairs(String s)\n {\n\n // Create the dp table initially\n boolean dp[][] = new boolean[N][N];\n pre_process(dp, s.toCharArray());\n int n = s.length();\n\n // Declare the left array\n int left[] = new int[n];\n\n // Declare the right array\n int right[] = new int[n];\n\n // Initially left[0] is 1\n left[0] = 1;\n\n // Count the number of palindrome\n // pairs to the left\n for (int i = 1; i < n; i++)\n {\n\n for (int j = 0; j <= i; j++)\n {\n\n if (dp[j][i] == true)\n {\n left[i]++;\n }\n }\n }\n\n // Initially right most as 1\n right[n - 1] = 1;\n\n // Count the number of palindrome\n // pairs to the right\n for (int i = n - 2; i >= 0; i--)\n {\n\n right[i] = right[i + 1];\n\n for (int j = n - 1; j >= i; j--)\n {\n\n if (dp[i][j] == true)\n {\n right[i]++;\n }\n }\n }\n\n int ans = 0;\n\n // Count the number of pairs\n for (int i = 0; i < n - 1; i++)\n {\n ans += left[i] * right[i + 1];\n }\n\n return ans;\n }",
"int countConsecutive(long num) \r\n {\n int count = 0; \r\n for (int L = 1; L * (L + 1) < 2* num; L++) \r\n { \r\n \tfloat a = (float) ((1.0 * num-(L * (L + 1)) / 2) / (L + 1));\r\n if (a-(int)a == 0.0) \r\n count++; \r\n } \r\n return count; \r\n }",
"public static int Main()\n\t{\n\t\tint[] num = new int[16];\n\t\tint i;\n\t\tint k;\n\t\tint j;\n\t\tint count;\n\t\tfor (;;) //????\n\t\t{\n\t\t\ti = -1; //?????i?count\n\t\t\tcount = 0;\n\t\t\tdo\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t\tnum[i] = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\t\tif (num[0] == -1) //?????????-1???\n\t\t\t\t{\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t} while (num[i] != 0); //????0??\n\t\t\tfor (j = 0 ; j <= i - 1 ; j++)\n\t\t\t{\n\t\t\t\tfor (k = j ; k <= i - 1 ; k++)\n\t\t\t\t{\n\t\t\t\t\tif ((num[j] == 2 * num[k]) || (num[j] * 2 == num[k])) //????\n\t\t\t\t\t{\n\t\t\t\t\t\tcount++; //??\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(count);\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}",
"public static int countDiag2(char[][] a, char c){\r\n int count = 0;\r\n for (int i = 0; i<a.length;i++){\r\n if (a[i][a.length-i-1] == c){\r\n count = count + 1;\r\n }\r\n }\r\n return count;\r\n }",
"public int countSubstrings_expand2(String s) {\n\t\tint count = 0;\n\t\t\n\t\t// Loop across different middle points.\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tcount += extractPalindrome_expand2(s, i, i); // odd length mid i\n\t\t\tcount += extractPalindrome_expand2(s, i, i + 1); // even length mid i, i+1\n\t\t}\n\t\treturn count;\n\t}",
"@Test\n\tpublic static void main() {\n\t\tSystem.out.println(Stringcount2(\"reddygaru\"));\n\t}",
"static boolean isPermutation_2(String a, String b){\n boolean isPermutation = true;\n //lets store every char in an array of boolean\n int[] charCount = new int[256];\n for(char c:a.toCharArray()){\n charCount[c]++;\n }\n //now verify the count in another string and subtract the count\n for(char c:b.toCharArray()){\n charCount[c]--;\n }\n //now check if any count is non-zero then the two string have unequal count of that char\n for(int i=0;i<charCount.length;i++)\n if(charCount[i]!=0)\n return false;\n \n return isPermutation;\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n int vowels = 0;\n int consonats = 0;\n int result = 0;\n for (int i = 0; i < s.length(); i++){\n if (isVowel(s.charAt(i))) {\n vowels++;\n consonats = 0;\n } else {\n vowels = 0;\n consonats++;\n }\n if (vowels == 3){\n result++;\n vowels = 1;\n }\n if (consonats == 3){\n result++;\n consonats = 1;\n }\n }\n System.out.println(result);\n }",
"static int theLoveLetterMystery(String s){\n \n int i=0, j = s.length()-1;\n int count =0;\n if(s.length() == 0 || s == null)\n return count;\n while(i<j)\n {\n if(s.charAt(i) == s.charAt(j))\n {\n i++;\n j--;\n continue;\n }\n \n else\n count = count + Math.abs((int)(s.charAt(i) - s.charAt(j)));\n \n i++;\n j--;\n }\n return count;\n }",
"public int countSubstrings_dp2(String s) {\n\t\tint sLen = s.length();\n\t\tchar[] cArr = s.toCharArray();\n\n\t\tint totalPallindromes = 0;\n\t\tboolean[][] dp = new boolean[sLen][sLen];\n\n\t\t// Single length pallindroms\n\t\tfor (int i = 0; i < sLen; i++) {\n\t\t\tdp[i][i] = true;\n\t\t\ttotalPallindromes++;\n\t\t}\n\n\t\t// 2 length pallindromes\n\t\tfor (int i = 0; i < sLen - 1; i++) {\n\t\t\tif (cArr[i] == cArr[i + 1]) {\n\t\t\t\tdp[i][i + 1] = true;\n\t\t\t\ttotalPallindromes++;\n\t\t\t}\n\t\t}\n\n\t\t// Lengths > 3\n\t\tfor (int subLen = 2; subLen < sLen; subLen++) {\n\t\t\tfor (int i = 0; i < sLen - subLen; i++) {\n\t\t\t\tint j = i + subLen;\n\n\t\t\t\tif (dp[i + 1][j - 1] && cArr[i] == cArr[j]) {\n\t\t\t\t\tdp[i][j] = true;\n\t\t\t\t\ttotalPallindromes++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn totalPallindromes;\n\t}",
"public int countBinarySubstrings(String s) {\n\t int total = 0;\n\t for (int i=0; i < s.length(); i++) {\n\t for (int len=2; i+len <= s.length(); len +=2) {\n\t int zeroes=0, ones=0;\n\t for (int j=i; j < i+len; j++) {\n\t if (s.charAt(j) == '1') {\n\t ones ++;\n\t } else {\n\t zeroes++;\n\t }\n\t }\n\t if (zeroes != 0 && zeroes == ones) {\n\t total++;\n\t }\n\t }\n\t }\n\t return total;\n\t }",
"public static void main(String[] args) {\r\n\r\n\t\tint n=439;\r\n\r\n\t\tint count = 1;\r\n\t\tint binary[] = new int[32];\r\n\t\tint i = 0;\r\n\t\twhile (n > 0) {\r\n\t\t\tbinary[i] = n % 2;\r\n\t\t\tn = n / 2;\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\tfor (int j = i - 1; j >= 0; j--) {\r\n\r\n\t\t\tString str = String.valueOf(i);\r\n\t\t\t\r\n\t\tString ar[]=str.split(\"0\");\r\n\t\t\t\r\n\t\tif(ar.length>1)\r\n\t\t{\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t/*\t\r\n\t\t\tif (binary[j] == 1 && binary[j + 1] == 1) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.print(binary[j]);\r\n*/\r\n\t\t}\r\n\t\tSystem.out.print(count);\r\n\t\t/*scanner.close();*/\r\n\t}",
"public boolean checkConNum(String temp) {\n boolean counter = true;\n char[] ch = new char[temp.length()];\n \n for (int i = 0; i < temp.length(); i++) {\n ch[i] = temp.charAt(i);\n }\n \n for(int g = 0 ;g < ch.length; g++){\n \tif(!Character.isDigit(ch[g])){\n counter = false;\n break;\n \t}\n }\n \n return counter;\n \n }",
"public static int getCorrectConsicutiveOnes(int[] arr) {\n int count = 0;\n int maxCount = 0;\n for (int i = 0; i < arr.length; i++) {\n if (arr[i] == 1) {\n count++;\n } else {\n if (maxCount < count) {\n maxCount = count;\n }\n count = 0;\n }\n }\n return maxCount > count ? maxCount : count;\n }",
"static long repeatedString(String s, long n) {\n char[] arr=s.toCharArray();\n int i,count=0,cnt=0;\n for(i=0;i<arr.length;i++){\n if(arr[i]=='a'){\n count++;\n }\n }\n long len=(n/arr.length)*count;\n long extra=n%arr.length;\n if(extra==0){\n return len;\n }else{\n for(i=0;i<extra;i++){\n if(arr[i]=='a'){\n cnt++;\n }\n }\n return len+cnt;\n }\n\n\n }",
"public int longestPalindrome(String s) {\n int[] map = new int[128];\n for(char c: s.toCharArray()) map[c]++;\n\n int ret = 0;\n boolean hasOdd = false;\n for(int i=0;i<128;i++){\n if(map[i] % 2 == 0) ret += map[i];\n else {\n ret += map[i]-1;\n hasOdd = true;\n }\n }\n return hasOdd? ret + 1: ret;\n }",
"boolean isCounting();",
"public boolean squareIsWhiteV2(String a) {\n return a.charAt(0) % 2 != a.charAt(1) % 2;\n }",
"static String isValid(String s) {\n\n Map<Integer, Integer> map = new HashMap<>();\n\n for (char c : \"abcdefghijklmnopqrstuvwxyz\".toCharArray()) {\n int sumA = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == c) sumA++;\n }\n if (sumA != 0) {\n if (map.containsKey(Integer.valueOf(sumA))) {\n Integer value = map.get(sumA);\n value += 1;\n map.put(Integer.valueOf(sumA), value);\n } else {\n map.put(Integer.valueOf(sumA), 1);\n }\n }\n }\n\n if (map.size() > 2) {return \"NO\"; }\n if (map.size() == 1) {return \"YES\"; }\n\n String result = \"NO\";\n if (map.size() == 2) {\n for (Integer i: map.values()) {\n if (i == 1) {\n\n int sum = 0;\n for (Integer j: map.keySet()) {\n if (j == 1 && map.get(j) == 1) {\n result = \"YES\";\n break;\n }\n if (sum == 0) {\n sum = j;\n } else {\n sum = Math.abs(sum - j);\n }\n }\n if (sum == 1) {\n result = \"YES\";\n break;\n }\n }\n }\n }\n return result;\n }",
"@Test(timeout=2000)\n public void countTest()\n {\n int[] mixed = {1,5,3,8,10,34,62,31,45,20};\n int mixedOdds = 5;\n int mixedEvens = 5;\n int[] even = {2,4,6,8,10,20,30,58};\n int[] odd = {1,3,5,7,9,11,13,15,19};\n int[] singleEven = {2};\n int[] singleOdd = {1};\n \n assertEquals( \"Counting odds in array of mixed odds and evens failed.\", mixedOdds, OddsEvens.count( mixed, true ) );\n assertEquals( \"Counting evens in array of mixed odds and evens failed.\", mixedEvens, OddsEvens.count( mixed, false ) );\n assertEquals( \"Counting odds in an array of all evens failed.\", 0, OddsEvens.count( even, true ) );\n assertEquals( \"Counting evens in an array of all evens failed.\", even.length, OddsEvens.count( even, false ) );\n assertEquals( \"Counting odds in an array of all odds failed.\", odd.length, OddsEvens.count( odd, true ) );\n assertEquals( \"Counting evens in an array of all odds failed.\", 0, OddsEvens.count( odd, false ) );\n assertEquals( \"Counting odds in an array of a single even failed.\", 0, OddsEvens.count( singleEven, true ) );\n assertEquals( \"Counting evens in an array of a single even failed.\", 1, OddsEvens.count( singleEven, false ) );\n assertEquals( \"Counting odds in an array of a single odd failed.\", 1, OddsEvens.count( singleOdd, true ) );\n assertEquals( \"Counting evens in an array of a single odd failed.\", 0, OddsEvens.count( singleOdd, false ) );\n }",
"public static boolean isPermuted(String str1, String str2) {\n if (str1.length() != str2.length())\n return false;\n\n Map<Character, Integer> str1CountMap = new HashMap<>();\n for (char c : str1.toCharArray()) {\n str1CountMap.put(c, str1CountMap.getOrDefault(c, 0) + 1);\n }\n\n for (char c : str2.toCharArray()) {\n if (!str1CountMap.containsKey(c) || str1CountMap.get(c) <= 0)\n return false;\n str1CountMap.put(c, str1CountMap.get(c) - 1);\n }\n\n return true;\n }",
"public int length() {\n int counter = 0;\n while (bitAt(counter) == '1' || bitAt(counter) == '0') {\n counter = counter + 1;\n }\n return counter;\n }",
"public boolean repetitiveCharsToken(Sentence sent) {\n int consecutives = 0;\n for (Token token : selectCovered(Token.class, sent)) {\n char currentC = token.getCoveredText().toCharArray()[0];\n int index = 1;\n while (index < token.getCoveredText().toCharArray().length) {\n char nextC = token.getCoveredText().toCharArray()[index];\n if (currentC == nextC)\n ++consecutives;\n else\n currentC = nextC;\n if (consecutives > 2) {\n return true;\n }\n ++index;\n }\n }\n return false;\n }",
"public int numJewelsInStones1(String J, String S) {\n\t\tint result = 0;\n\t\tfor(int i = 0; i<S.length();i++) {\n\t\t\tif(J.contains(Character.toString(S.charAt(i)))) {\n\t\t\t\tresult++;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"static long repeatedString(String s, long n) {\n long a_count = 0;\n long total_a_count = 0;\n long modulo_s = 0;\n\n if(n>s.length()){\n for (int i=0; i<s.length(); i++)\n if(s.charAt(i)=='a') a_count++;\n\n total_a_count = a_count*(n/s.length());\n modulo_s = n%s.length();\n\n for (int i=0; i<modulo_s; i++)\n if(s.charAt(i)=='a') total_a_count++;\n\n return total_a_count;\n }\n\n else {\n for (int i=0; i<n; i++)\n if(s.charAt(i)=='a') a_count++;\n return a_count;\n }\n }",
"public static boolean allUnique2(String s ){\n\t\tint value = 0;\n\t\tchar[] chars = s.toCharArray();\n\t\tfor(char c : chars) \n\t\t{\t\n\t\t\tint i = c -'a';\n\t\t\tif(((1<<i+1)&value)>0)\n\t\t\t\treturn false;\n\t\t\tvalue = value | (1<<i+1);\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean canBeAPalindromeUsingMap(String s) {\n Map<Character, Integer> charCounts = new HashMap<>();\n char[] chars = s.toCharArray();\n int lengthWithoutSpaces = 0;\n for (char c : chars) {\n if (c != ' ') {\n lengthWithoutSpaces++;\n charCounts.compute(c, (k, v) -> v == null ? 1 : v + 1);\n }\n }\n boolean isLengthEven = lengthWithoutSpaces % 2 == 0;\n boolean hasUnevenCountOfChar = false;\n for (Integer charCount : charCounts.values()) {\n if (charCount % 2 == 0) {\n continue;\n } else {\n if (isLengthEven) {\n return false;\n } else {\n if (!hasUnevenCountOfChar) {\n hasUnevenCountOfChar = true;\n } else {\n return false;\n }\n }\n }\n }\n return true;\n }",
"public int countSubstrings(String s) {\n int cnt = 0;\n\n char[] str = s.toCharArray();\n\n\n for(int j=0; j<2; j++) {\n for(int i=0; i< str.length; i++) {\n int left = i;\n int right = i+j;\n\n while(left>=0 && right<str.length && str[left] == str[right]) {\n cnt++;\n left--;\n right++;\n }\n\n }\n }\n\n return cnt;\n }",
"static long repeatedString(String s, long n) {\n\n char[] str = s.toCharArray();\n\n String temp = \"\";\n\n int i=0;\n long count=0;\n\n while(i<str.length){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n long occurance = n/str.length;\n long remainder = n%str.length;\n count = count*occurance;\n\n i=0;\n while(i<remainder){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n return count;\n\n }",
"boolean testCountAndSay(Tester t) {\n\t\treturn\n\t\tt.checkExpect(s.countAndSay(1), \"1\") &&\n\t\tt.checkExpect(s.countAndSay(3), \"21\") &&\n\t\tt.checkExpect(s.countAndSay(4), \"1211\");\n\t}",
"static int alternate(String s) {\n HashMap<Character,Integer>mapCharacter = new HashMap<>();\n LinkedList<String>twoChar=new LinkedList<>();\n LinkedList<Character>arr=new LinkedList<>();\n Stack<String>stack=new Stack<>();\n int largest=0;\n int counter=0;\n if (s.length()==1){\n return 0;\n }\n\n for (int i =0; i<s.length();i++){\n if (mapCharacter.get(s.charAt(i))==null)\n {\n mapCharacter.put(s.charAt(i),1);\n }\n }\n\n Iterator iterator=mapCharacter.entrySet().iterator();\n while (iterator.hasNext()){\n counter++;\n Map.Entry entry=(Map.Entry)iterator.next();\n arr.addFirst((Character) entry.getKey());\n }\n\n for (int i=0;i<arr.size();i++){\n for (int j=i;j<arr.size();j++){\n StringBuilder sb =new StringBuilder();\n for (int k=0;k<s.length();k++){\n if (s.charAt(k)==arr.get(i)||s.charAt(k)==arr.get(j)){\n sb.append(s.charAt(k));\n }\n }\n twoChar.addFirst(sb.toString());\n }\n }\n\n\n for (int b=0;b<twoChar.size();b++){\n String elementIn=twoChar.get(b);\n stack.push(elementIn);\n\n for (int i=0;i<elementIn.length()-1;i++){\n\n if (elementIn.charAt(i)==elementIn.charAt(i+1)){\n stack.pop();\n break;\n }\n }\n }\n\n int stackSize=stack.size();\n\n for (int j=0;j<stackSize;j++){\n String s1=stack.pop();\n int length=s1.length();\n if (length>largest){\n largest=length;\n\n }\n }\n return largest;\n\n\n\n\n }",
"boolean checkOdd(int[] table)\n{\n boolean found = false;\n for (int count : table)\n if (count % 2 == 1)\n {\n if (found) return false;\n found = true;\n }\n return true;\n}",
"private int countTrue(boolean... cases) {\n int result = 0;\n for (boolean c : cases) {\n if (c) {\n result++;\n }\n }\n return result;\n }",
"boolean permutationOpt(String s, String t) {\n if (s.length() != t.length() ) { return false;}\r\n\r\n int[] charCnt = new int[128];\r\n for (int i = 0; i < s.length(); i ++) {\r\n int val = s.charAt(i);\r\n charCnt[val] ++;\r\n }\r\n\r\n for (int i = 0; i < t.length(); i ++) {\r\n int val = t.charAt(i);\r\n charCnt[val] --;\r\n if (charCnt[val] < 0) {\r\n return false;\r\n }\r\n }\r\n\r\n return true; // If the length of two strings are equal, then when there is no negative counts there should not be positive counts either.\r\n }",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str= scan.nextLine();\n\n int count =0;\n for(int i =0; i <=str.length()-2; i++){\n String s= str.substring(i,i+2);\n if(s.equals(\"hi\")){\n count +=1;\n }\n\n }\n\n System.out.println(count);\n\n\n\n }",
"public static String oddsOnlyNoDupes( String s ) {\n Set<Character> h = new LinkedHashSet<Character>(); //--initializing the hashset\n String s2 = \"\"; //tkaing pieces of the string --> put it into s2 ean empty string\n\n for (int i = 0; i < s.length(); i++) {\n if ((int)s.charAt(i) % 2 == 1) {\n if (!h.contains(s.charAt(i))) {\n s2 += s.charAt(i); // a += b means a + b so youre adding the chracter to the s2 string\n h.add(s.charAt(i)); // a set contains a bunch of characters and you need to add the character to the set so that it can tell you if it has showed up or not yet in the set\n }\n }\n }\n return s2;\n }",
"public static boolean checkPermutaionMap(String s1, String s2) {\n if (s1.length() != s2.length()) return false;\n\n int[] charMap = new int[128];\n for (int i = 0; i < s1.length(); ++i) {\n charMap[s1.charAt(i)]++;\n }\n\n for (int i = 0; i < s2.length(); ++i) {\n if (--charMap[s2.charAt(i)] < 0) return false;\n }\n\n return true;\n }",
"String LetterCount(String str) {\n String strr1[]=str.split(\" \");\n String strr[]= strr1;\n String strt=\"\";\n int count=0;\n int count1=0;\n int maxi=0;\n \n for(int i=0; i<strr.length; i++){\n char[] crr=strr[i].toCharArray();\n java.util.Arrays.sort(crr);\n strt=new String(crr);\n for(int j=0; j<strt.length()-1; j++){\n while(strt.charAt(j)==strt.charAt(j+1) && j<strt.length()-2){\n count++;\n j++;\n }\n }\n if(count>count1){\n count1=count;\n maxi=i;\n }\n count=0;\n }\n return strr1[maxi];\n \n }",
"static int jumpingOnClouds(int[] arr) {\n int i = 0;\n int count = 0;\n while (i < arr.length - 2) {\n if (arr[i + 1] == 1) {\n count++;\n i += 2;\n } else if (arr[i + 2] == 1) {\n count++;\n i += 1;\n } else {\n count++;\n i += 2;\n }\n }\n //System.out.println(count);\n if (i<arr.length-1)\n count++;\n return count;\n\n\n }",
"public static int countEvens(int[] nums) {\n\n int count = 0;\n for (int i = 0; i < nums.length; i++) {\n if (nums[i] % 2 == 0) {\n count++;\n }\n }\n return count;\n }",
"public int countSyllables(String word)\r\n\t{\n\t int count = 0;\r\n\t String word_lower = word.toLowerCase();\r\n\t char[] c = word_lower.toCharArray();\r\n\t int syl_len = 1;\r\n\t int i = 0;\r\n\t while(i < c.length)\r\n\t {\r\n\t\t\tif(c[i]=='a'||c[i]=='e'||c[i]=='i'||c[i]=='o'||c[i]=='u'||c[i]=='y')\r\n\t\t\t{\r\n\t\t\t\tfor(int j=i+1; j<c.length; j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(c[j]=='a'||c[j]=='e'||c[j]=='i'||c[j]=='o'||c[j]=='u'||c[j]=='y')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsyl_len++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcount++;\r\n\t\t\t\ti += syl_len;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\ti++;\r\n\t\t\tsyl_len = 1;\r\n\t\t}\r\n\t\tif(c[c.length-1]=='e'&&count!=1) //substract 1 when last char is 'e' \r\n\t\t{ //and the previous char is not a vowl and count != 1\r\n\t\t\tif(c[c.length-2]!='a'||c[c.length-2]!='e'||c[c.length-2]!='i'||c[c.length-2]!='o'||c[c.length-2]!='u'||c[c.length-2]!='y'||c[c.length-2]!='b'||c[c.length-2]!='p'||c[c.length-2]!='t'||c[c.length-2]!='d')\r\n\t\t\tcount--; //which means the 'e' is doubly counted\r\n\t\t}\r\n\t return count;\r\n\t}",
"public static boolean canFormPalindrome(String str) {\n\t\n\t// Create a count array and initialize all\n\t// values as 0\n\tint count[] = new int[NO_OF_CHARS];\n\tArrays.fill(count, 0);\n\n\t// For each character in input strings,\n\t// increment count in the corresponding\n\t// count array\n\tfor (int i = 0; i < str.length(); i++)\n\tcount[(int)(str.charAt(i))]++;\n\n\t// Count odd occurring characters\n\tint odd = 0;\n\tfor (int i = 0; i < NO_OF_CHARS; i++) \n\t{\n\tif ((count[i] & 1) == 1)\n\t\todd++;\n\n\tif (odd > 1)\n\t\treturn false;\n\t}\n\n\t// Return true if odd count is 0 or 1,\n\treturn true;\n}",
"public static int approach2(String str) {\n\t\tMap<Character, Integer> charToCountMap = new HashMap<Character, Integer>();\n\t\tint strLength = str.length();\n\t\tfor(int i = 0; i < strLength; i++) {\n\t\t\tif(charToCountMap.containsKey(str.charAt(i))) {\n\t\t\t\tcharToCountMap.put(str.charAt(i), charToCountMap.get(str.charAt(i)) + 1);\n\t\t\t} else {\n\t\t\t\tcharToCountMap.put(str.charAt(i), 1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < strLength; i++) {\n\t\t\tif(charToCountMap.get(str.charAt(i)) > 1) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn -1;\n\t}",
"public static int [] countChar(String str) {\n char data [] = str.toCharArray();\n \n int count [] = new int [2];\n \n for (int i = 0; i < data.length; i++) {\n if (data[i] == 'n' || data[i] == 'N')\n count[0]++;\n if (data[i] == 'm' || data[i] == 'M')\n count[1]++;\n }\n return count;\n }",
"public int countSubstrings(String S) {\n int N = S.length(), ans = 0;\n for (int center = 0; center <= 2*N-1; ++center) {\n int left = center / 2;\n int right = left + center % 2;\n while (left >= 0 && right < N && S.charAt(left) == S.charAt(right)) {\n ans++;\n left--;\n right++;\n }\n }\n return ans;\n }",
"public static int sherlock(String s) {\n\t\tint count = 0;\n\t\t// find the substrings to find the anagrams of\n\t\t// isAnagram function\n\t\t// with k unique chars, subset is k (k + 1) / 2\n\t\t\n\t\tList<String> subsets = getALlSubstring(s);\n\t\t\n\t\tfor(int i = 0 ;i < subsets.size() ; i++) {\n\t\t\tfor(int j = i + 1 ; j < subsets.size() ; j++) {\n\t\t\t\tif(i != j && subsets.get(i).length() == subsets.get(j).length() && isAnagram(subsets.get(i), subsets.get(j)))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}",
"public static int helper(String str) {\n\t\t// null & illegal checking here\n\t\tif(str == null){\n\t\t\treturn 0;\n\t\t}\n\t \n\t\tif(str.length() == 1){\n\t\t\treturn 1;\n\t\t}\n\t \n\t\tchar[] arr = str.toCharArray();\n\t\tchar p = arr[arr.length - 1];\n\t\tint result = 1;\n\t \n\t\tfor (int i = arr.length - 2; i >= 0; i--) {\n\t\t\tif (p == arr[i]) {\n\t\t\t\tresult++;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t \n\t\treturn result;\n\t}",
"boolean testCounter(Tester t) {\n\t\treturn t.checkExpect(c1.get(), 0) // Test 1\r\n\t\t\t\t&& t.checkExpect(c2.get(), 2) // Test 2\r\n\t\t\t\t&& t.checkExpect(c1.get() == c1.get(), false) // Test 3\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), true) // Test 4\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), true) // Test 5\r\n\t\t\t\t&& t.checkExpect(c1.get() == c1.get(), false) // Test 6\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), false); // Test 7\r\n\t}"
] | [
"0.7022808",
"0.66255045",
"0.6538435",
"0.64451456",
"0.64080435",
"0.6251754",
"0.6195697",
"0.6171833",
"0.61663675",
"0.61554337",
"0.6154699",
"0.61513066",
"0.61448",
"0.6102505",
"0.6100729",
"0.60896033",
"0.6067281",
"0.6031677",
"0.60283107",
"0.6020423",
"0.5990211",
"0.59883744",
"0.5987399",
"0.59849125",
"0.595846",
"0.5877961",
"0.5857878",
"0.5853073",
"0.58486825",
"0.5846925",
"0.58450925",
"0.58424807",
"0.5839123",
"0.58340377",
"0.5822265",
"0.5811583",
"0.58103883",
"0.5783995",
"0.5758591",
"0.5757515",
"0.5732265",
"0.57295775",
"0.57222867",
"0.5720466",
"0.5707999",
"0.570326",
"0.5700948",
"0.5696971",
"0.56924754",
"0.56829363",
"0.56744266",
"0.5673091",
"0.5669736",
"0.56648266",
"0.56624585",
"0.566106",
"0.56528896",
"0.5640657",
"0.56404126",
"0.5638753",
"0.56360483",
"0.5629023",
"0.5623954",
"0.5619396",
"0.5612183",
"0.56121373",
"0.5611268",
"0.5609476",
"0.5591819",
"0.5583731",
"0.5581122",
"0.55800986",
"0.55784404",
"0.5575006",
"0.5569937",
"0.5569309",
"0.556453",
"0.5559998",
"0.5559065",
"0.5553516",
"0.55506295",
"0.55501086",
"0.55454624",
"0.55401146",
"0.5535859",
"0.5535532",
"0.55346096",
"0.5533877",
"0.5531999",
"0.5529849",
"0.55250114",
"0.5509181",
"0.5508102",
"0.5503295",
"0.5499303",
"0.54934186",
"0.54921126",
"0.5490309",
"0.54885715",
"0.5487306"
] | 0.59710866 | 24 |
Created by evanalmonte on 12/10/17. | interface HomeContract {
interface View extends AvatarView {
void setCurrency(String currency);
void setUsername(String username);
void setSteps(String stepString);
void displayMessage(String message);
void navigateToShop();
void navigateToGraphs();
void navigateToLoginScreen();
void navigateToFriendsScreen();
void showMessage(String s);
void disableSession();
void enableSession();
void navigateToProfile();
}
interface Presenter extends BasePresenter<HomeContract.View> {
void loadAvatar();
void accessShop();
void accessLoginScreen();
void accessGraphs();
void onViewAttached(HomeContract.View view);
void onViewDetached();
void accessFriends();
void logout();
void login();
void endSession();
void startSession();
void accessProfile();
}
interface Model {
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void poetries() {\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\tprotected void interr() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void mo4359a() {\n }",
"private void kk12() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\n protected void getExras() {\n }",
"public void method_4270() {}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"public void mo12628c() {\n }",
"@Override public int describeContents() { return 0; }",
"@Override\n public void init() {}",
"@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 abstract void mo70713b();",
"private void m50367F() {\n }",
"@Override\n void init() {\n }",
"private static void cajas() {\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\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 ligar() {\n\t\t\n\t}",
"private void init() {\n\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\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public void m23075a() {\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public final void mo91715d() {\n }",
"@Override\n\tpublic void gravarBd() {\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}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public void mo21877s() {\n }",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void mo6081a() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void skystonePos4() {\n }",
"public void mo21779D() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"public abstract void mo56925d();",
"protected void mo6255a() {\n }"
] | [
"0.5779289",
"0.5704993",
"0.5693839",
"0.5564546",
"0.55597997",
"0.55498505",
"0.55099845",
"0.5487308",
"0.5474128",
"0.5474128",
"0.54738986",
"0.5473123",
"0.5467197",
"0.544996",
"0.54454166",
"0.5434304",
"0.5429157",
"0.54200894",
"0.53817767",
"0.5369614",
"0.5366321",
"0.5366321",
"0.5366321",
"0.5366321",
"0.5366321",
"0.5334286",
"0.5325825",
"0.53203607",
"0.53102523",
"0.5309083",
"0.53058267",
"0.5291673",
"0.5288671",
"0.5287019",
"0.52832866",
"0.5282632",
"0.5279896",
"0.5279412",
"0.5272153",
"0.5272153",
"0.5269514",
"0.5259743",
"0.5250345",
"0.5241892",
"0.52381873",
"0.5234807",
"0.5233959",
"0.52328724",
"0.5220721",
"0.5220721",
"0.5220721",
"0.5220721",
"0.5220721",
"0.5220721",
"0.52206963",
"0.5215662",
"0.52089435",
"0.5208688",
"0.5207435",
"0.5207435",
"0.5207435",
"0.5196048",
"0.5196048",
"0.5196048",
"0.5194018",
"0.5184814",
"0.5184757",
"0.5180048",
"0.5180048",
"0.5180048",
"0.5180048",
"0.5180048",
"0.5180048",
"0.5180048",
"0.51683694",
"0.5162035",
"0.5159422",
"0.5158597",
"0.5158548",
"0.515687",
"0.5156749",
"0.5156349",
"0.5154886",
"0.5150241",
"0.5150241",
"0.5150241",
"0.5146918",
"0.5144738",
"0.5144738",
"0.514389",
"0.5143002",
"0.5139563",
"0.5119761",
"0.5114455",
"0.51125556",
"0.5111262",
"0.51088345",
"0.5107679",
"0.51057994",
"0.510391",
"0.51029605"
] | 0.0 | -1 |
Save cash flow info to database | public boolean saveDown() {
if (
cashFlow == null ||
cashFlow.getDetail() == null ||
cashFlow.getDetail().isEmpty()
) {
System.out.println("invalid model store");
return false;
}
boolean cashFlowSaveResult = CashFlow.save(cashFlow);
// save cash flow failure case
if (!cashFlowSaveResult) {
System.out.println("query false");
return false;
}
// get owe per provider
boolean owe_log = true;
int pointer = 0;
final Map<String, Integer> providerIndex = new HashMap<>();
final int nrow = cashFlow.getDetail().size();
final int[] owe = new int[nrow];
for (Payable p: cashFlow.getDetail()) {
String prvId = p.getProviderId();
if (providerIndex.containsKey(prvId)) {
owe[ providerIndex.get(prvId) ] += p.getPrice();
} else {
providerIndex.put(prvId, pointer);
owe[ pointer ] = p.getPrice();
pointer++;
}
}
for (String k: providerIndex.keySet()) {
owe_log = owe_log &&
db.send("UPDATE NhaCungCap SET NoPhaiTra = NoPhaiTra + "
+ owe[ providerIndex.get(k) ]
+ " WHERE MaNCC = " + k);
}
if (!owe_log) {
System.out.println("update own false");
}
return owe_log;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void saveData()\n\t{\n ssaMain.d1.pin = ssaMain.tmp_pin1;\n ssaMain.d1.balance = ssaMain.tmp_balance1;\n System.out.println(\"Your account has been established successfully.\");\n\t}",
"public void saveInformation(){\n market.saveInformationOfMarket();\n deckProductionCardOneBlu.saveInformationOfProductionDeck();\n deckProductionCardOneGreen.saveInformationOfProductionDeck();\n deckProductionCardOneViolet.saveInformationOfProductionDeck();\n deckProductionCardOneYellow.saveInformationOfProductionDeck();\n deckProductionCardThreeBlu.saveInformationOfProductionDeck();\n deckProductionCardThreeGreen.saveInformationOfProductionDeck();\n deckProductionCardThreeYellow.saveInformationOfProductionDeck();\n deckProductionCardThreeViolet.saveInformationOfProductionDeck();\n deckProductionCardTwoBlu.saveInformationOfProductionDeck();\n deckProductionCardTwoGreen.saveInformationOfProductionDeck();\n deckProductionCardTwoViolet.saveInformationOfProductionDeck();\n deckProductionCardTwoYellow.saveInformationOfProductionDeck();\n\n\n }",
"void save(Bill bill);",
"private void saveToDb() {\r\n ContentValues values = new ContentValues();\r\n values.put(DbAdapter.KEY_DATE, mTime);\r\n if (mPayeeText != null && mPayeeText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_PAYEE, mPayeeText.getText().toString());\r\n if (mAmountText != null && mAmountText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_AMOUNT, mAmountText.getText().toString());\r\n if (mCategoryText != null && mCategoryText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_CATEGORY, mCategoryText.getText().toString());\r\n if (mMemoText != null && mMemoText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_MEMO, mMemoText.getText().toString());\r\n if (mTagText != null && mTagText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_TAG, mTagText.getText().toString());\r\n\r\n \tif (Utils.validate(values)) {\r\n \t\tmDbHelper.open();\r\n \t\tif (mRowId == null) {\r\n \t\t\tlong id = mDbHelper.create(values);\r\n \t\t\tif (id > 0) {\r\n \t\t\t\tmRowId = id;\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tmDbHelper.update(mRowId, values);\r\n \t\t}\r\n \t\tmDbHelper.close();\r\n \t}\r\n\t}",
"@Override\r\n\tpublic void saveCosmetics(CosmeticsDTO cosmeticsDTO) {\n\t\tSession session = null;\r\n\t\ttry {\r\n\t\t\tsession = HibSingleton.getFactory().openSession();\r\n\t\t\tsession.beginTransaction();\r\n\t\t\tsession.save(cosmeticsDTO);\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tif (Objects.nonNull(cosmeticsDTO)) {\r\n\t\t\t\tSystem.out.println(\"data is stored in database successfully\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"data is not stored in database\");\r\n\r\n\t\t\t}\r\n\t\t} catch (HibernateException e) {\r\n\t\t\tsession.getTransaction().rollback();\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (Objects.nonNull(session)) {\r\n\t\t\t\tsession.close();\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"session not closed properly\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"@Override\r\n public void save(BuyTicketModel value) {\n String sql = \"insert into buyticket values(?,?,?,?,?,?,?,?,?,?,?,?) \";\r\n \r\n try {\r\n PreparedStatement pstm = database.getCon().prepareStatement(sql);\r\n pstm.setString(1, value.getSlno());\r\n pstm.setString(2, value.getCustomername());\r\n pstm.setString(10,value.getContact());\r\n pstm.setString(3, value.getDestination());\r\n pstm.setString(4, value.getTime());\r\n pstm.setString(5, value.getFare());\r\n pstm.setString(6, value.getComment());\r\n pstm.setString(7, value.getDate());\r\n pstm.setString(8, value.getPayment());\r\n pstm.setString(9, value.getSeat());\r\n pstm.setString(11, value.getType());\r\n pstm.setString(12, value.getBusname());\r\n \r\n \r\n pstm.executeUpdate();\r\n pstm.close();\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(BuyTicketImpl.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n }",
"boolean saveExpense(Expenses exp);",
"void save(Account account);",
"public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }",
"@Override\n\tpublic BnsCash save(BnsCash obj) {\n\t\treturn cashRepository.save(obj);\n\t}",
"public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }",
"DailyFlash save(DailyFlash dailyFlash) throws SpmCheckedException;",
"@Override\n\tprotected void save() throws Exception {\n\t\t//turn the list of data into a unique list of tickets\n\t\tMap<String, ExtTicketVO> tickets= new HashMap<>(data.size());\n\t\tfor (SOHDRFileVO dataVo : data) {\n\t\t\t//035 are harvests and all we care about\n\t\t\tif (\"035\".equals(dataVo.getSoType())) {\n\t\t\t\tExtTicketVO vo = transposeTicketData(dataVo, new ExtTicketVO());\n\t\t\t\ttickets.put(vo.getTicketId(), vo);\n\t\t\t}\n\t\t}\n\n\t\tpopulateTicketDBData(tickets);\n\n\t\ttickets = removeGhostRecords(tickets);\n\n\t\t//don't bother with the rest of this class if we have no tickets\n\t\tif (tickets.isEmpty()) return;\n\n\t\tdecomissionUnits(tickets.keySet()); //ticket\n\n\t\tpurgePartShipments(tickets.keySet()); //calls purgeShipments to cascade deletion\n\n\t\tsetDispositionCode(tickets); //ticket_data attr_dispositionCode\tNONREPAIRABLE\n\n\t\tcorrectLedgerEntries(tickets);\n\t}",
"public void onSaveClicked(View view) {\n\n if (mInterest != 0.0f) {\n\n ContentValues values = new ContentValues();\n values.put(SavingsItemEntry.COLUMN_NAME_BANK_NAME, bankInput.getText().toString());\n values.put(SavingsItemEntry.COLUMN_NAME_AMOUNT, mAmount);\n values.put(SavingsItemEntry.COLUMN_NAME_YIELD, mYield);\n values.put(SavingsItemEntry.COLUMN_NAME_START_DATE, mStartDate.getTime());\n values.put(SavingsItemEntry.COLUMN_NAME_END_DATE, mEndDate.getTime());\n values.put(SavingsItemEntry.COLUMN_NAME_INTEREST, mInterest);\n\n if (mEditMode){\n //Update the data into database by ContentProvider\n getContentResolver().update(SavingsContentProvider.CONTENT_URI, values,\n SavingsItemEntry._ID + \"=\" + mSavingsBean.getId(), null);\n Log.d(Constants.LOG_TAG, \"Edit mode, updated existing savings item: \" + mSavingsBean.getId());\n }else {\n // Save the data into database by ContentProvider\n getContentResolver().insert(\n SavingsContentProvider.CONTENT_URI,\n values\n );\n }\n // Go back to dashboard\n //Intent intent = new Intent(this, DashboardActivity.class);\n //startActivity(intent);\n Utils.gotoDashBoard(this);\n finish();\n } else {\n Toast.makeText(this, R.string.missing_savings_information, Toast.LENGTH_LONG).show();\n }\n\n }",
"private void actuallyWriteData() {\r\n\t\t// Get rid of old data. Getting rid of trips, trip patterns, and blocks\r\n\t\t// is a bit complicated. Need to delete them in proper order because\r\n\t\t// of the foreign keys. Because appear to need to use plain SQL\r\n\t\t// to do so successfully (without reading in objects and then\r\n\t\t// deleting them, which takes too much time and memory). Therefore\r\n\t\t// deleting of this data is done here before writing the data.\r\n\t\tlogger.info(\"Deleting old blocks and associated trips from database...\");\r\n\t\tBlock.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trips from database...\");\r\n\t\tTrip.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trip patterns from database...\");\r\n\t\tTripPattern.deleteFromSandboxRev(session);\r\n\t\t\r\n\t\t// Now write the data to the database.\r\n\t\t// First write the Blocks. This will also write the Trips, TripPatterns,\r\n\t\t// Paths, and TravelTimes since those all have been configured to be\r\n\t\t// cascade=CascadeType.ALL .\r\n\t\tlogger.info(\"Saving {} blocks (plus associated trips) to database...\", \r\n\t\t\t\tgtfsData.getBlocks().size());\r\n\t\tint c = 0;\r\n\t\tfor (Block block : gtfsData.getBlocks()) {\r\n\t\t\tlogger.debug(\"Saving block #{} with blockId={} serviceId={} blockId={}\",\r\n\t\t\t\t\t++c, block.getId(), block.getServiceId(), block.getId());\r\n\t\t\twriteObject(block);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving routes to database...\");\r\n\t\tRoute.deleteFromSandboxRev(session);\r\n\t\tfor (Route route : gtfsData.getRoutes()) {\r\n\t\t\twriteObject(route);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving stops to database...\");\r\n\t\tStop.deleteFromSandboxRev(session);\r\n\t\tfor (Stop stop : gtfsData.getStops()) {\r\n\t\t\twriteObject(stop);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving agencies to database...\");\r\n\t\tAgency.deleteFromSandboxRev(session);\r\n\t\tfor (Agency agency : gtfsData.getAgencies()) {\r\n\t\t\twriteObject(agency);\r\n\t\t}\r\n\r\n\t\tlogger.info(\"Saving calendars to database...\");\r\n\t\tCalendar.deleteFromSandboxRev(session);\r\n\t\tfor (Calendar calendar : gtfsData.getCalendars()) {\r\n\t\t\twriteObject(calendar);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving calendar dates to database...\");\r\n\t\tCalendarDate.deleteFromSandboxRev(session);\r\n\t\tfor (CalendarDate calendarDate : gtfsData.getCalendarDates()) {\r\n\t\t\twriteObject(calendarDate);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare rules to database...\");\r\n\t\tFareRule.deleteFromSandboxRev(session);\r\n\t\tfor (FareRule fareRule : gtfsData.getFareRules()) {\r\n\t\t\twriteObject(fareRule);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare attributes to database...\");\r\n\t\tFareAttribute.deleteFromSandboxRev(session);\r\n\t\tfor (FareAttribute fareAttribute : gtfsData.getFareAttributes()) {\r\n\t\t\twriteObject(fareAttribute);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving frequencies to database...\");\r\n\t\tFrequency.deleteFromSandboxRev(session);\r\n\t\tfor (Frequency frequency : gtfsData.getFrequencies()) {\r\n\t\t\twriteObject(frequency);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving transfers to database...\");\r\n\t\tTransfer.deleteFromSandboxRev(session);\r\n\t\tfor (Transfer transfer : gtfsData.getTransfers()) {\r\n\t\t\twriteObject(transfer);\r\n\t\t}\r\n\t}",
"void saveContract(Contract contract) throws DataAccessException, CpmBusinessException;",
"public void saveFiAvailableInvoice(FiAvailableInvoice fiAvailableInvoice);",
"public void Save(){\n\t SharedPreferences prefs = getActivity().getSharedPreferences(MainActivity.SHARED_PREFS_FILE, Context.MODE_PRIVATE);\n\t Editor editor = prefs.edit();\n\t try {\n\t editor.putString(MainActivity.STOCK_LIST_TAG, ObjectSerializer.serialize(list));\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t editor.putFloat(\"balance\", (float) balance);\n\t editor.commit();\n\t}",
"private void saveData() {\n }",
"public void saveFightsystem( Fightsystem fightsystem )\r\n {\n\r\n }",
"protected void activitySaveInDb(CustomApplicationInfo cai) {\n\t\tinitDb();\n\t\tdbAccess.insert(cai);\n\t}",
"public void saveTransaction(Double price, String fiatCurrency, LocalDate date, String cryptoCurrency, String type,\n\t\t\tDouble numberOfCoins, Double fees, Double total) {\n\n\t\tTransaction transaction = new Transaction();\n\t\ttransaction.setCryptoCurrency(cryptoCurrency);\n\t\ttransaction.setFiatCurrency(fiatCurrency);\n\t\ttransaction.setNumberOfCoins(numberOfCoins);\n\t\ttransaction.setPrice(price);\n\t\ttransaction.setTransactionDate(date);\n\t\ttransaction.setType(type);\n\t\ttransaction.setFees(fees);\n\t\ttransaction.setTotal(total);\n\t\ttransaction.setPortfolio(this.portfolio);\n\n\t\ttransRepo.save(transaction);\n\n\t\tdialogStage.close();\n\t}",
"public void saveDay() {\n day.setServices(serviciosTotales);\n day.setTasks(tasksTotales);\n\n databaseReference.child(day.getDate() + \"_\" + day.getUserId()).setValue(day);\n Toast.makeText(context, \"Creando archivo para enviar por correo.\", Toast.LENGTH_LONG).show();\n //todo, so far it will keep updating the day\naskPermissions();\n createExcel();\n\n }",
"Flight saveFlight(Flight flight);",
"public Flight save(Flight flight);",
"void save();",
"void save();",
"void save();",
"@Override\r\n\tpublic void save(XftPayment xtp) {\n\t\ttry {\r\n\t\t\tlogger.info(\"save..........servicr.....:\"+JSONUtils.beanToJson(xtp));\t\r\n\t\t\txftPaymentMapper.insert(xtp);\r\n\t\t}catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"protected void saveEarningHistory(EarningHistory earningHistory){\n }",
"public void saveProgress() {\n\t\tsaveUsers();\n\t\tsaveMaterials();\n\t\tsaveBorrowings();\n\t}",
"private void persistFactions(Set<FactionWorth> factions) throws SQLException {\n Set<FactionWorth> createdFactions = insertFactions(factions);\n\n // Add newly created chunk positions to the identity cache.\n cacheFactionIds(createdFactions);\n }",
"private void mSaveBillData(int TenderType) { // TenderType:\r\n // 1=PayCash\r\n // 2=PayBill\r\n\r\n // Insert all bill items to database\r\n InsertBillItems();\r\n\r\n // Insert bill details to database\r\n InsertBillDetail(TenderType);\r\n\r\n updateMeteringData();\r\n\r\n /*if (isPrintBill) {\r\n // Print bill\r\n PrintBill();\r\n }*/\r\n }",
"public void save();",
"public void save();",
"public void save();",
"public void save();",
"public void save() {\t\n\t\n\t\n\t}",
"public void persistToDatabase(Stock stock, int id) throws ParseException {\n\n\n // Creating the config instance & passing the hibernate config file.\n Configuration config = new Configuration();\n config.configure(\"hibernate.cfg.xml\");\n\n // Session object to start the db transaction.\n Session s = config.buildSessionFactory().openSession();\n\n // Transaction object to begin the db transaction.\n Transaction t = s.beginTransaction();\n\n Stock_infoDAO stock_infoDAO = new Stock_infoDAO();\n stock_infoDAO.setId(id);\n stock_infoDAO.setSymbol(stock.getSymbol());\n BigDecimal price = new BigDecimal(stock.getPrice());\n stock_infoDAO.setPrice(price);\n\n String inDate= stock.getTime();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\n Timestamp ts = new Timestamp(((java.util.Date)dateFormat.parse(inDate)).getTime());\n stock_infoDAO.setTime(ts);\n\n\n // Saving the stockinfo object to the db.\n s.persist(stock_infoDAO);\n\n // Committing the transaction in the db.\n t.commit();\n\n System.out.println(\"\\n===================\\n\");\n\n\n // Closing the session object.\n s.close();\n }",
"public void save(Contract contract){\n\t\tcontractRepository.saveAndFlush(contract);\n\t}",
"@Override\n\tpublic void createSavingAccount(Account as) {\n\t\ttry {\n\t\t\tConnection con = conUtil.getConnection();\n\t\t\t//To use our functions/procedure we need to turn off autocommit\n\t\t\tcon.setAutoCommit(false);\n\t\t\tString saving = \"insert into savings( owner_id, balance) values (?,?)\";\n\t\t\tCallableStatement chaccount = con.prepareCall(saving);\n\t\t\n\t\t\tchaccount.setInt(1,as.getOwner_id() );\n\t\t\tchaccount.setDouble(2, as.getBalance());\n\t\t\tchaccount.execute();\n\t\t\t\n\t\t\tcon.setAutoCommit(true);\n\t\t\t\n\t\t} catch(SQLException e) {\n\t\t\t\n\t\t\tSystem.out.println(\"In CheckingDaoDB Exception\");\n\t\t\te.printStackTrace();\n\t\t}\n}",
"public void saveProduit(Produit theProduit);",
"private void saveEvent(){\n String event_name = eventName.getText().toString();\r\n String coach = coach_string;\r\n String time = class_time_string;\r\n int nfcID= 4;\r\n\r\n Map<String, Object> data = new HashMap<>();\r\n\r\n data.put(\"event_name\", event_name);\r\n data.put(\"coach\", coach);\r\n data.put(\"class_time\", time);\r\n data.put(\"nfcID\", nfcID);\r\n\r\n Database.writeClassDb(data, time ,date);\r\n startActivity(new Intent(addCalenderEvent.this, CalendarActivity.class));\r\n finish();\r\n }",
"public void saveAction (){\n\t \tif(dayNum ==7){\n\t \t\tintPhaseCompletes = intPhaseCompletes +1;\n\t \t\tdb.execSQL(\"UPDATE Phases SET Completions= \"+ intPhaseCompletes + \" WHERE PhaseID = \" + \"'\" + phaseID + \"'\");\n\t \t}\n \tcontent = timerTextView.getText().toString();\n \tstrDate = functions.getDate();\n \tintCompletes = intCompletes +1;\n \tdb.execSQL(\"INSERT INTO results (ExerciseName,time,date) VALUES(\"+ \"'\" + dayName +\"'\" + \",\" \n \t\t\t+ \"'\" + content + \"'\" + \",\"+ \"'\" + strDate +\"'\"+ \")\");\n \tdb.execSQL(\"UPDATE Days SET LastDate= \"+ \"'\" + strDate + \"'\" + \" WHERE _id = \" + \"'\" + dayID + \"'\");\n \tdb.execSQL(\"UPDATE Days SET Completions= \"+ intCompletes + \" WHERE _id = \" + \"'\" + dayID + \"'\");\n \tdb.close();\n \tdialogShare();\n }",
"@Override\n\tvoid make_deposit(DataStore ds){\n\tds.setbalancedepositAccount1(ds.getbalanceAccount1_temp()+ds.getdepositAccount1());\n\t}",
"public static void save() {\r\n\t\ttry {\r\n\t\t\tFile csv = new File(\"src/transaction.csv\");\r\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(csv, false));\r\n\t\t\tbw.write(\"type,account number,amount,year,month,date,cleared\");\r\n\t\t\tbw.newLine();\r\n\t\t\tfor (int i = 0; i < transList.size(); i++) {\r\n\t\t\t\tbw.write(transList.get(i).toFile());\r\n\t\t\t\tbw.newLine();\r\n\t\t\t}\r\n\t\t\tbw.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 void save(Campground theCampground) {\n\t\tString sqlInsertCampground = \"Insert into campground (park_id,name,open_from_mm,open_to_mm,daily_fee) \" + \n\t\t\t\t\"values (?,?,?,?,?)\";\n\t\tjdbcTemplate.update(sqlInsertCampground,theCampground.getPark_id() // create primary key using new data\n ,theCampground.getName()\n ,theCampground.getOpen_from_mm()\n ,theCampground.getOpen_to_mm()\n ,theCampground.getDaily_fee());\t\n\t}",
"public void save(CbmCItemFininceItem entity);",
"public boolean save(Flow flow, String system, int software);",
"public void saveTrackingDataAtLaunch(Connection con, loginProfile prof, long tkh_id, long cos_id) \n throws SQLException, cwException, cwSysMessage, qdbException, qdbErrMessage {\n //get the module's course id\n \tif(cos_id == 0){\n \t\tcos_id = getCosId(con, mod_res_id);\n \t}\n\n //get the Tracking History id if it is not defined\n if (tkh_id == DbTrackingHistory.TKH_ID_UNDEFINED) {\n tkh_id = DbTrackingHistory.getAppTrackingIDByMod(con, mod_res_id, prof.usr_ent_id);\n }\n\n //save the tracking data to ModuleEvaluation, ModuleEvaluationHistory and CourseEvaluation\n dbModuleEvaluation mov = new dbModuleEvaluation();\n mov.mov_cos_id = cos_id;\n mov.mov_ent_id = prof.usr_ent_id;\n mov.mov_tkh_id = tkh_id;\n mov.mov_mod_id = mod_res_id;\n if(attempt_add){\n mov.attempt_counted = false;\n\t }else{\n\t mov.attempt_counted = true;\n\t }\n mov.mod_time = 0f; //time consumed is 0 as the module is just launch\n mov.score_delta = 0f; //no score changes as the module is just launch\n mov.mov_score = \"0\"; //keep the score unchange as the module is just launch\n mov.mov_status = dbModuleEvaluation.STATUS_IN_PROGRESS; //the status is changed to in progress\n mov.save(con, prof);\n return;\n }",
"public void setCashFlow(String cashFlow) {\n\n this.cashFlow = cashFlow;\n }",
"private void saveState() {\r\n \tSharedPreferences settings = getSharedPreferences(TEMP, 0);\r\n \tEditor editor = settings.edit();\r\n \tif (mRowId != null)\r\n \t\teditor.putLong(DbAdapter.KEY_ROWID, mRowId);\r\n \teditor.putLong(DbAdapter.KEY_DATE, mTime);\r\n \teditor.putString(DbAdapter.KEY_PAYEE, mPayeeText != null && \r\n \t\t\tmPayeeText.getText() != null ? mPayeeText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_AMOUNT, mAmountText != null && \r\n \t\t\tmAmountText.getText() != null ? mAmountText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_CATEGORY, mCategoryText != null && \r\n \t\t\tmCategoryText.getText() != null ? mCategoryText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_MEMO, mMemoText != null && \r\n \t\t\tmMemoText.getText() != null ? mMemoText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_TAG, mTagText != null && \r\n \t\t\tmTagText.getText() != null ? mTagText.getText().toString() : null);\r\n \teditor.commit();\r\n }",
"void saveContracts(List<Contract> contractList) \n throws DataAccessException, CpmBusinessException;",
"public void save() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.save(this);\r\n\t}",
"private void salvar() {\n setaCidadeBean();\n //Instanciamos o DAO\n CidadeDAO dao = new CidadeDAO();\n //verifica qual será a operação de peristência a ser realizada\n if (operacao == 1) {\n dao.inserir(cidadeBean);\n }\n if (operacao == 2) {\n dao.alterar(cidadeBean);\n }\n habilitaBotoesParaEdicao(false);\n reiniciaTela();\n }",
"private void saveState() {\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n // Store our count..\n editor.putInt(\"count\", this._tally);\n\n // Save changes\n editor.commit();\n }",
"private void recordTransactionFlow(SecondAuth hfUser, SecondPayOrder payOrder, Map<String, String> data,\n Map<String, String> reData) {\n\n SecondTransactionFlowExample e = new SecondTransactionFlowExample();\n e.createCriteria().andOutTradeNoEqualTo(data.get(\"out_trade_no\"))\n .andHfStatusEqualTo(TansactionFlowStatusEnum.PROCESS.getStatus());\n List<SecondTransactionFlow> hfTansactionFlows = secondTransactionFlowMapper.selectByExample(e);\n\n if (hfTansactionFlows.isEmpty()) {\n SecondTransactionFlow t = completeHfTansactionFlow(new SecondTransactionFlow(), hfUser, payOrder, data, reData);\n secondTransactionFlowMapper.insertSelective(t);\n } else {\n SecondTransactionFlow t = completeHfTansactionFlow(hfTansactionFlows.get(0), hfUser, payOrder, data, reData);\n secondTransactionFlowMapper.updateByPrimaryKey(t);\n }\n }",
"public void saveData(){\r\n file.executeAction(modelStore);\r\n }",
"@Override\n\t\t\tvoid saveInDb(CustomApplicationInfo cai) {\n\t\t\t\tactivitySaveInDb(cai);\n\t\t\t\t\n\t\t\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 }",
"void saveShipment(Shipment shipment);",
"public void saveCase(String CPR, String info) {\n new Case(CPR, info).saveCase(getCurrentUser().getIDNumber());\n }",
"public void save()\n\t{\n\t\ttry\n\t\t{\n\t\t\tgetConnection().commit();\n\t\t\tgetPreparedStatement(\"SET FILES SCRIPT FORMAT COMPRESSED\").execute();\n\t\t\t// causes a checkpoint automatically.\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\tm_logger.error(\"Couldn't cleanly save.\", e);\n\t\t}\n\t}",
"private void storeTransactionToDatabase(final String clientId, final String earnedOrSpent, final String amountGiven, String sourceGiven, String descriptionGiven) {\n Transaction transaction = new Transaction(clientId, earnedOrSpent, amountGiven, sourceGiven, descriptionGiven, String.valueOf(date.getTime()));\n try {\n String transactionId = UUID.randomUUID().toString();\n DatabaseReference database = FirebaseDatabase.getInstance().getReference(\"Transactions/\" + transactionId);\n database.setValue(transaction).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n updateCurrentBalance(earnedOrSpent, clientId, amountGiven);\n Log.d(\"NewTransactionActivity\", \"Successfully added Transaction to Database\");\n } else {\n Log.d(\"NewTransactionActivity\", \"Failed to add Transaction to Database\");\n }\n }\n });\n }catch(Exception e){\n Log.d(\"NewTransactionActivity\", e.toString());\n }\n }",
"private void save() {\n Saver.saveTeam(team);\n }",
"public void save(HrJBorrowcontract entity);",
"@Override\n\tpublic void saveOrUpdate(Contract entity) {\n\t\tif(UtilFuns.isEmpty(entity.getId())){ // 判断修改或者新增\n\t\t\t//设置默认值\n\t\t\tentity.setState(0); //0:草稿 1:已上报 2:已报运\n\t\t\tentity.setTotalAmount(0.0); //务必设置默认值否则新增货物,分散计算的时候会出先null + xxxx\n\t\t}else{\n\t\t\t\n\t\t}\n\t\t\n\t\tcontractDao.save(entity);\n\t}",
"int insert(FinancialManagement record);",
"public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}",
"private void saveTask(){\n \tZadatakApp app = (ZadatakApp)getApplicationContext();\n \t\n \tTask task = new Task();\n \ttask.set(Task.Attributes.Name, nameText);\n \ttask.set(Task.Attributes.Duedate, datePicker);\n \ttask.set(Task.Attributes.Hours, lengthText);\n \ttask.set(Task.Attributes.Progress, progressBar);\n \ttask.set(Task.Attributes.Priority, priorityBox);\n \t\n \t// Save it to the database either as a new task or over an old task\n \tif (editmode) { app.dbman.editTask(id, task); }\n \telse { app.dbman.insertTask(task); }\n \t\n \t// A task has been added or changed, rescedule\n \tapp.schedule();\n \t\n \tapp.toaster(\"NEW / EDITED TASK\");\n \t\n \t// Quit the activity\n \tfinish();\n }",
"public void save () {\n // Make sure the workspace folder exist\n createFolder(this.pathToWorkspaceFolder);\n\n // Write the serialized Flow object\n System.out.println(\"Saving\");\n try (FileWriter file = new FileWriter(this.pathToWorkspaceFolder.toString() + \"/\" + FLOW_FILE_NAME)) {\n file.write(flow.serialize());\n System.out.println(\"Successfully Copied Flow \" + flow.getId() + \" to File :)\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"protected void saveValues() {\n dataModel.persist();\n }",
"@Override\n\tpublic void saveEstadoCabecera(EstadoCabecera estadoCabecera) {\n\n\t}",
"public void saveData(){\n reporter.info(\"Save edited form\");\n clickOnElement(LOCATORS.getBy(COMPONENT_NAME,\"SAVE_BUTTON\"));\n }",
"boolean save(Account account);",
"private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }",
"protected void save(DataOutputStream os) throws IOException {\n\n super.save(os);\n os.writeFloat(StartingFunds);\n os.writeInt(NumTestTraders);\n os.writeInt(NumSteps);\n }",
"private static void storeActivation(Context context) {\n\t\t//securely store in shared preference\n\t\tSharedPreferences secureSettings = new SecurePreferences(context);\n\t\tString account = UserEmailFetcher.getEmail(context);\n\n\t\t//update preference\n\t\tSharedPreferences.Editor secureEdit = secureSettings.edit();\n\t\tsecureEdit.putBoolean(account + \"_paid\", true);\n\t\tsecureEdit.apply();\n\t}",
"@Override\n\tpublic void salvar() {\n\t\t\n\t\tPedidoCompra PedidoCompra = new PedidoCompra();\n\t\t\n\t\tPedidoCompra.setAtivo(true);\n//\t\tPedidoCompra.setNome(nome.getText());\n\t\tPedidoCompra.setStatus(StatusPedido.valueOf(status.getSelectionModel().getSelectedItem().name()));\n//\t\tPedidoCompra.setSaldoinicial(\"0.00\");\n\t\t\n\t\tPedidoCompra.setData(new Date());\n\t\tPedidoCompra.setIspago(false);\n\t\tPedidoCompra.setData_criacao(new Date());\n\t\tPedidoCompra.setFornecedor(cbfornecedores.getSelectionModel().getSelectedItem());\n\t\tPedidoCompra.setTotal(PedidoCompra.CalcularTotal(PedidoCompra.getItems()));\n\t\tPedidoCompra.setTotalpago(PedidoCompra.CalculaTotalPago(PedidoCompra.getFormas()));\n\t\t\n\t\tgetservice().save(PedidoCompra);\n\t\tsaveAlert(PedidoCompra);\n\t\tclearFields();\n\t\tdesligarLuz();\n\t\tloadEntityDetails();\n\t\tatualizar.setDisable(true);\n\t\tsalvar.setDisable(false);\n\t\t\n\t\tsuper.salvar();\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 }",
"public void grabar(CalidadPcc o) {\n\t\ttry {\r\n\t\t\tem.getTransaction().begin();\r\n\t\t\tem.persist(o);\r\n\t\t\tem.getTransaction().commit();\r\n\t\t} finally {\r\n\t\t\tem.close();\r\n\t\t}\r\n\t}",
"public void save()\n\t{\t\n\t\tfor (Preis p : items) {\n\t\t\titmDAO.create(p.getItem());\n\t\t\tprcDAO.create(p);\n\t\t}\n\t\tstrDAO.create(this);\n\t}",
"private void saveData() {\n // Actualiza la información\n client.setName(nameTextField.getText());\n client.setLastName(lastNameTextField.getText());\n client.setDni(dniTextField.getText());\n client.setAddress(addressTextField.getText());\n client.setTelephone(telephoneTextField.getText());\n\n // Guarda la información\n DBManager.getInstance().saveData(client);\n }",
"public void saveDetailItem(RequestParams<Df00201VO> requestParams) {\n DfDegree dfDegree = new DfDegree();\n\n if(StringUtils.isEmpty(requestParams.getString(\"disposalFreezeEventUuid\"))){\n return;\n }\n\n dfDegree.setDisposalFreezeEventUuid(requestParams.getString(\"disposalFreezeEventUuid\"));\n\n DfDegree orgDfDegree = null;\n\n orgDfDegree = repository.findOne(dfDegree.getId());\n\n if(orgDfDegree != null){\n dfDegree = orgDfDegree;\n dfDegree.setInsertDate(orgDfDegree.getInsertDate());\n dfDegree.setInsertUuid(orgDfDegree.getInsertUuid());\n }\n repository.save(dfDegree);\n }",
"public void saveAll() {\n\n if (schedule != null) {\n\n readWrite.save(schedule, buddies);\n }\n if (finalsList != null) {\n\n readWrite.save(finalsList, finalsTerm);\n }\n }",
"@Override\n\tpublic void save(CorsoDiLaurea corso) {\n\t\t\n\t}",
"public void save(HrCStatitem entity);",
"@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}",
"public void storeAndCommit() {\n \tsynchronized(mDB.lock()) {\n \t\ttry {\n \t \t\tstoreWithoutCommit();\n \t \t\tcheckedCommit(this);\n \t\t}\n \t\tcatch(RuntimeException e) {\n \t\t\tcheckedRollbackAndThrow(e);\n \t\t}\n \t}\n }",
"private void saveData() {\n\n SharedPreferences sharedPreferences=getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreferences.edit();\n\n editor.putString(\"name\",name.getText().toString());\n editor.putString(\"regnum\",regnum.getText().toString());\n editor.putInt(\"count\", count);\n editor.apply();\n\n }",
"public boolean saveCCP(String factoryID, String y, String iSC, String sC){\n y = y + factoryID;\r\n int initialSC = Integer.parseInt(iSC);\r\n Long SeedC = Long.parseLong(sC);\r\n\r\n Long aCPRate = SeedC * 10;\r\n Long sCP = SeedC + initialSC;\r\n Long aDA = (SeedC + initialSC + aCPRate);\r\n Long cumDA = Long.parseLong(\"0\");\r\n\r\n cumDA = cumDA + aDA;\r\n\r\n conn.saveCCPlatationD(y, initialSC, SeedC, aCPRate, sCP, aDA, cumDA);\r\n\r\n return true;\r\n \r\n }",
"public void saveCard(card cardToBeSaved)\n {\n dbObj=new dbFlashCards(uid);\n dbObj.saveCard(packId, cardToBeSaved.getCardId(), cardToBeSaved.getFront(),cardToBeSaved.getBack());\n \n \n }",
"public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }",
"int insert(FinanceAccount record);",
"@Override\n public void saveFridayChange(ConnectathonParticipant cp) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"saveFridayChange\");\n }\n if (cp == null) {\n LOG.warn(\"saveFridayChange : ConnectathonParticipant is null \");\n return;\n }\n\n entityManager.merge(cp);\n entityManager.flush();\n\n }",
"@Transactional\n\tpublic void saveNewPatient(FlowObjCreator foc){\n\t\tlog.debug(\"-----------\");\n\t\tlog.debug(\"-----------\"+foc.getIdf());\n\t\tlog.debug(\"-----------\"+foc.getBdate());\n\t\tTimestamp bd = new Timestamp(foc.getBdate().getTime());\n\t\tTree folderT = readDocT(foc.getIdf());\n\t\tPatient newPatientO = foc.getNewPatient();\n\t\tnewPatientO.setBirthdate(bd);\n\t\t\n\t\tsaveNewPatient(folderT, newPatientO);\n\t}",
"public void saveCurrencyListToDb() {\n LOGGER.info(\"SAVING CURRENCY LIST TO DB.\");\n List<Currency> currencyList = currencyService.fetchCurrencyFromCRB();\n currencyRepository.saveAll(currencyList);\n }",
"@Test\r\n\tpublic void saveGameTswacct() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: saveGameTswacct \r\n\t\tInteger gameId_1 = 0;\r\n\t\tTswacct related_tswacct = new tsw.domain.Tswacct();\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tGame response = null;\r\n\t\tresponse = service.saveGameTswacct(gameId_1, related_tswacct);\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: saveGameTswacct\r\n\t}",
"@Action(value = \"saveCustomChargeInfo\", results = { @Result(name = \"success\", type = \"json\"), })\n\tpublic String saveCustomChargeInfo() {\n\t\tlog.info(\"Starting to save customer charge info into DB\");\n\t\tboolean flag = false;\n\t\ttry {\n\t\t\tthis.customerChargeServiceImpl.addCustomChargeInfo(this.customerChargeBean);\n\t\t\tflag = true;\n\t\t} catch (Exception e) {\n\t\t\tlog.info(\"save customer charge data into DB occured error, please references the detail log\\n \" + \"[\" + e + \"]\\n\"\n\t\t\t\t\t+ ErrorLogUtil.printInfo(e));\n\t\t\treturn ERROR;\n\t\t}\n\t\tif (flag) {\n\t\t\tlog.info(\"Successfully save customer charge info into DB\");\n\t\t\treturn SUCCESS;\n\t\t}\n\t\treturn ERROR;\n\t}"
] | [
"0.6454811",
"0.6212979",
"0.6123848",
"0.61098504",
"0.6097368",
"0.6090378",
"0.6025812",
"0.59007895",
"0.58622617",
"0.5853876",
"0.58362013",
"0.5832206",
"0.57905185",
"0.57815325",
"0.57800186",
"0.57790595",
"0.5738967",
"0.5738858",
"0.5737036",
"0.57239443",
"0.57237",
"0.5719638",
"0.5719302",
"0.57135934",
"0.570943",
"0.57061106",
"0.57061106",
"0.57061106",
"0.5685003",
"0.56779975",
"0.5675539",
"0.5670056",
"0.5664147",
"0.5660274",
"0.5660274",
"0.5660274",
"0.5660274",
"0.5656034",
"0.56535065",
"0.56520414",
"0.5607136",
"0.5599234",
"0.5596672",
"0.55757576",
"0.55713683",
"0.5565548",
"0.5562914",
"0.5559495",
"0.5555108",
"0.5552265",
"0.55370444",
"0.5533844",
"0.5524574",
"0.5522432",
"0.5518709",
"0.55139625",
"0.5512155",
"0.5501562",
"0.5498826",
"0.5498522",
"0.5497007",
"0.5490599",
"0.5489946",
"0.5489662",
"0.5486656",
"0.54805064",
"0.5479543",
"0.54794073",
"0.5477622",
"0.5465512",
"0.54625034",
"0.5462405",
"0.54590565",
"0.54578805",
"0.54503584",
"0.54474723",
"0.54473007",
"0.5446001",
"0.5435318",
"0.5433884",
"0.5431351",
"0.5430777",
"0.5428665",
"0.5426734",
"0.5417659",
"0.54150754",
"0.5413477",
"0.541214",
"0.5406404",
"0.54044753",
"0.5400341",
"0.53950304",
"0.53926206",
"0.53891414",
"0.5385728",
"0.53822774",
"0.5380248",
"0.5376858",
"0.53708446",
"0.53671926"
] | 0.565714 | 37 |
Interface implemented by classes that want to recieve notifications about changes of a directory's content. | public interface DirectoryChangeListener
{
/** Addition of files */
public static final int ADDITION = 1;
/** Removal of files */
public static final int REMOVAL = 2;
/** Modification of files */
public static final int MODIFICATION = 3;
/**
* Indication that some file or files have been changed.
*
* @param type Type of change to the directory
* @param fileSet a Set of files
*/
public void directoryChange( int type, Set fileSet );
/**
* Indication that the scanner was unable to view the contents of the directory
*/
void unableToListContents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface OnDownloadFileChangeListener {\n\n /**\n * an new DownloadFile created\n *\n * @param downloadFileInfo new DownloadFile created\n */\n void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);\n\n /**\n * an DownloadFile updated\n *\n * @param downloadFileInfo DownloadFile updated\n * @param type the update type\n */\n void onDownloadFileUpdated(DownloadFileInfo downloadFileInfo, Type type);\n\n /**\n * an DownloadFile deleted\n *\n * @param downloadFileInfo DownloadFile deleted\n */\n void onDownloadFileDeleted(DownloadFileInfo downloadFileInfo);\n\n /**\n * DownloadFile Update Type\n */\n public static enum Type {\n /**\n * save dir changed\n */\n SAVE_DIR,\n /**\n * save file name changed\n */\n SAVE_FILE_NAME,\n /**\n * other,may be all\n */\n OTHER\n }\n}",
"public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }",
"public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }",
"void handleChanged(Collection<AGStoredFile> existingFiles, Collection<AGStoredFile> changedFiles);",
"@Override\n public void folderChanged(IProject project, ResourceFolder folder, int eventType) {\n }",
"public interface FileChangeAction\r\n{\r\n void setTarget(FileWatcher target);\r\n\r\n void changeHandle();\r\n\r\n void afterChange();\r\n}",
"@Override\n\t\t\t\tpublic void notifyOnItemClickIsDirectory(File f)\n\t\t\t\t{\n\t\t\t\t}",
"@Override\n public void directoryChangedNotify(String path) {\n // TODO: Window title crops end of path, but better to crop start!\n // Maybe it will be better to create some status bar\n this.setTitle(path);\n }",
"public interface JournalStore\n{\n /**\n * Initialize the store.\n * \n * @param service The associated DirectoryService\n * @throws IOException If the initialization failed\n */\n void init( DirectoryService service ) throws IOException;\n\n\n /**\n * Write the changes on disk\n * \n * @throws IOException If the write failed\n */\n void sync() throws IOException;\n\n\n /**\n * Destroy the logs. \n * \n * @throws IOException If we can't destroy the logs\n */\n void destroy() throws IOException;\n\n\n /**\n * Gets the current revision of the server (a.k.a. the HEAD revision).\n *\n * @return the current revision of the server\n */\n long getCurrentRevision();\n\n\n /**\n * Records a change as a forward LDIF and the authorized principal\n *\n * @param principal The principal who is logging the change\n * @param revision The operation revision\n * @param forward The change to log\n * @return <code>true</code> if the entry has been written\n */\n boolean log( LdapPrincipal principal, long revision, LdifEntry forward );\n\n\n /**\n * Records a ack for a change\n *\n * @param revision The change revision which is acked\n * @return <code>true</code> if the ack has been written\n */\n boolean ack( long revision );\n\n\n /**\n * Records a nack for a change\n *\n * @param revision The change revision which is nacked\n * @return <code>true</code> if the nack has been written\n */\n boolean nack( long revision );\n\n\n /**\n * The file name to use as the journal file. Default to \n * 'journal.ldif'\n * @param fileName the fileName to set\n */\n void setFileName( String fileName );\n\n\n /**\n * The working directory on which the journal file will be stored. Default\n * to 'server-work'\n * @param workingDirectory The working directory in which the journal file\n * will be stored\n */\n void setWorkingDirectory( String workingDirectory );\n}",
"synchronized public void notifyFileChanged() {\n if (timer != null) {\n timer.cancel();\n }\n timer = new Timer();\n timer.schedule(new TimerTask() {\n\n public void run() {\n timer = null;\n Message message = new Message();\n message.what = MSG_FILE_CHANGED_TIMER;\n mHandler.sendMessage(message);\n }\n\n }, 1000);\n }",
"@Override\n public void fileChanged(FileChangeEvent fileChangeEvent) throws Exception {\n\n }",
"public void onNewDirLoaded(File dirFile);",
"@Override\n public void update(String fileName) {\n //Responses or action taken after an event occured in publisher and is notified\n System.out.println(\"Email to \" + this.email + \": \\\" The file \" + fileName + \" has been modified!\");\n }",
"@Override\n\tpublic void update(Observable watchDirectory, Object arg1) {\n\n\t\tif (watchDirectory instanceof WatchDirectory) {\n\t\t\tWatchDirectory watch = (WatchDirectory) watchDirectory;\n\t\t\tlong time = watch.getTimeConfigFile();\n\t\t\tString fileChanged = watch.getFileChanged();\n\t\t\tPattern regexPhysical = Pattern.compile(\"(?:/physical\\\\d*.xml|/physical.xml|/physical\\\\d*.conf|/physical.conf)\");\n\t\t\tMatcher regexMatcherPhysical = regexPhysical.matcher(fileChanged);\n\t\t\tPattern regexVirtual = Pattern.compile(\"(?:/request\\\\d*.xml|/request.xml|/request\\\\d*.conf|/request.conf)\");\n\t\t\tMatcher regexMatcherVirtual = regexVirtual.matcher(fileChanged);\n\t\t\tif(time > this.timeStampCreatePhysicalNetwork && (regexMatcherPhysical.find())){\n\t\t\t\tthis.timeStampCreatePhysicalNetwork = time;\n\t\t\t\ttry {\n\t\t\t\t\tInputStream is = new FileInputStream(fileChanged);\n\t\t\t\t\twhile (true){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (is.available() != 0){\n\t\t\t\t\t\t\t\tis.close();\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tThread.sleep(3300);\n\t\t\t\t\tenvironmentOfServers.initEnvironmentOfServers(fileChanged, false);\n\t\t\t\t\tThread.sleep(3300);\n\t\t\t\t\tthis.populateServerIDAndDatapathidToServer();\n\t\t\t\t\tThread.sleep(3300);\n\t\t\t\t} \n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tthis.canInitEnvironmentOfTenants = true;\n\t\t\t}\n\t\t\tif(time > this.timeStampCreateVirtualNetwork && (regexMatcherVirtual.find())){\n\n\t\t\t\tthis.timeStampCreateVirtualNetwork = time;\n\t\t\t\twhile(true){\n\t\t\t\t\tif(this.canInitEnvironmentOfTenants){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tInputStream is = null;\n\t\t\t\ttry {\n\t\t\t\t\tis = new FileInputStream(fileChanged);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\twhile (true){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (is.available() != 0){\n\t\t\t\t\t\t\tis.close();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n//\t\t\t\ttry {\n//\t\t\t\t\tif(environmentOfTenants.initEnvironmentOfTenantsRequest(fileChanged, this.environmentOfServers, this.socket, this.clientChangeInfoOrquestrator)){\n//\t\t\t\t\t\t//TODO uncomment\n//\t\t\t\t\t\tthis.handleIOFSwitches();\n//\t\t\t\t\t\tthis.populateInfoSwitchTenantMap2();\n//\t\t\t\t\t\tfor(int i = 0; i < this.linkArrayList.size(); i++){\n//\t\t\t\t\t\t\tthis.populateInfoLinks(this.linkArrayList.get(i));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tthis.populateDatapathIdSwitchSrcSwitchDstLinkMap();\n//\t\t\t\t\t\t//TODO uncomment\n//\t\t\t\t\t\tthis.insertAllFlowsProactivily(this.environmentOfTenants, start);\n//\t\t\t\t\t}\n//\t\t\t\t} catch (Exception e){\n//\t\t\t\t\te.printStackTrace();\n//\t\t\t\t}\n//\t\t\t\tlog.info(\"Finish!!!!\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void reportFiles(Observable<RepositoryStatusFileInformation> files) {\n \n }",
"public void run() {\n /* lookup file's lastModified date */\n long lastModified = this.monitoredFile.lastModified();\n \n \n /* if the lastModified > prev lastModified date, notify listener */\n if (lastModified != this.lastModified) {\n log.debug(String.format(\"File last modified %d and known last \" +\n \t\t\"modified %d\", lastModified, this.lastModified));\n this.lastModified = lastModified;\n fireFileChangeEvent(this.listener, this.fileName);\n }\n }",
"@Override\r\n\t\t\tpublic void onPropertyChange(String... paths) {\n\t\t\t\t\r\n\t\t\t}",
"public interface StorageListener {\n\n /***\n * <p>Event listener for all starge node changes.</p>\n *\n * @param event the type of event causing the call\n * @param oldNode the old node content\n * @param newNode the new node content\n */\n void gotStorageChange(EventType event, Node oldNode, Node newNode);\n\n}",
"void onDownloadsChanged();",
"void onDownloadsChanged();",
"public interface Observer {\n\tpublic abstract void update(ArrayList<Document> documents);\n}",
"public void directoryChange( int type, Set fileSet );",
"public interface NotifyMediaChange {\r\n public void notificarCantImages (int cantImages);\r\n public void fin();\r\n}",
"private void notifyChange() {\n\t\tif (OllieProvider.isImplemented()) {\n\t\t\tOllie.getContext().getContentResolver().notifyChange(OllieProvider.createUri(getClass(), id), null);\n\t\t}\n\t}",
"public interface UpdateDownloadListener {\n /**\n * Invoked when download starts.\n */\n public void downloadStarted();\n\n /**\n * Invoked when download progress changes.\n *\n * @param downloaded\n * the number of downloaded bytes.\n * @param total\n * the total size of data.\n */\n public void downloadProgress(long downloaded, long total, long bytesPerSecond, long secondsLeft);\n\n /**\n * Invoked when download completes.\n *\n * @param f\n * the downloaded installer file.\n */\n public void downloadCompleted(File f);\n\n /**\n * Invoked when download fails for some reason.\n *\n * @param t\n * the optional exception object that caused this download to fail.\n */\n public void downloadFailed(Throwable t);\n}",
"protected void fileHasChanged(File file) {\n NSMutableSet observers = (NSMutableSet)_observersByFilePath.objectForKey(cacheKeyForFile(file));\n if (observers == null)\n log.warn(\"Unable to find observers for file: {}\", file);\n else {\n NSNotification notification = new NSNotification(FileDidChange, file);\n for (Enumeration e = observers.objectEnumerator(); e.hasMoreElements();) {\n _ObserverSelectorHolder holder = (_ObserverSelectorHolder)e.nextElement();\n try {\n holder.selector.invoke(holder.observer, notification);\n } catch (Exception ex) {\n log.error(\"Catching exception when invoking method on observer: {}\", ex, ex);\n }\n }\n registerLastModifiedDateForFile(file); \n }\n }",
"public void managerOutputModified(ManagerEvent e);",
"void notifyAllAboutChange();",
"public interface MDDChannelListener {\r\n /**\r\n * Called on receipt of CHANNEL events\r\n * @param channel String containing the name of the channel\r\n * @param title String containing the title of the program\r\n * @param subtitle String containing the subtitle of the program\r\n */\r\n public void onChannel(String channel, String title, String subtitle);\r\n /**\r\n * Called on receipt of PROGRESS events\r\n * @param pos int representing current position\r\n */\r\n public void onProgress(int pos);\r\n /**\r\n * Called on receipt of EXIT event\r\n */\r\n public void onExit();\r\n}",
"@SuppressWarnings(\"unchecked\")\n\tprivate void watchDirForNewFiles(Path dir) {\n\t\ttry (WatchService watcher = FileSystems.getDefault().newWatchService()) {\n\t\t\t// register for events on new files\n\t\t\tWatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE);\n\t\t\tlogger.info(\"Starting to watch on dir: \" + dir);\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\t// wait for key to be signaled\n\t\t\t\t\tkey = watcher.take();\n\t\t\t\t} catch (InterruptedException x) {\n\t\t\t\t\t// Executor shuts down by interrupting\n\t\t\t\t\tlogger.fine(\"watch dir (inotify) interrupted... shutting down\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tfor (WatchEvent<?> event : key.pollEvents()) {\n\t\t\t\t\t// an OVERFLOW event can occur, if events are lost or\n\t\t\t\t\t// discarded.\n\t\t\t\t\tif (event.kind() == OVERFLOW) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tWatchEvent.Kind<?> kind = event.kind();\n\n\t\t\t\t\t// The filename is the context of the event.\n\t\t\t\t\tPath newPath = ((WatchEvent<Path>) event).context();\n\t\t\t\t\tlogger.info(\"Event kind: \" + event.kind().name() + \" file: \" + newPath);\n\n\t\t\t\t\tif (kind == ENTRY_CREATE) {\n\t\t\t\t\t\tSubmittedFile file = new SubmittedFile(newPath);\n\t\t\t\t\t\tfile.setState(State.CREATED);\n\t\t\t\t\t\tcreatedFilesMap.put(newPath.getFileName().toString(), \n\t\t\t\t\t\t\t\tfile);\n\t\t\t\t\t}\n\t\t\t\t\telse if (kind == ENTRY_DELETE)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Intermediate stage, before it is transferred.\n\t\t\t\t\t\tSubmittedFile file = createdFilesMap.get(newPath.getFileName().toString());\n\t\t\t\t\t\tif (file != null){\n\t\t\t\t\t\t\tfile.setState(State.DELETED);\n\t\t\t\t\t\t\tfile.setTimeStamp(Instant.now());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Reset the key -- this step is critical if you want to\n\t\t\t\t// receive further watch events. If the key is no longer valid,\n\t\t\t\t// the directory is inaccessible so exit the loop.\n\t\t\t\tif (!key.reset()) {\n\t\t\t\t\tlogger.severe(\"watch service problem. reset key failed\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.severe(\"watch service problem: \" + e.getMessage());\n\t\t\tlogger.log(Level.FINE, \"\", e);\n\t\t}\n\n\t\t// finished - either by exception, or by key reset.\n\t}",
"void onWorkingDirectoryChanged();",
"public void notifyChanged(Notification n){\n\t \n\t super.notifyChanged(n); // the superclass handles adding/removing this Adapter to new Books\n\t \n\t // find out the type of the notifier which could be either 'LanguageDefinition' or 'Library'\n\t Object notifier = n.getNotifier();\n\t if (notifier instanceof ConcurrentLanguageDefinition) {\n\t handleLanguageDefinitionNotification(n);\n\t } else if (notifier instanceof DomainModelProject) {\n\t handleDomainModelProjectNotification(n);\n\t } else if (notifier instanceof XTextEditorProject) {\n\t \thandleXTextProjectNotification(n);\n\t } else if (notifier instanceof SiriusEditorProject) {\n\t \thandleSiriusEditorProjectNotification(n);\n\t } else if (notifier instanceof SiriusAnimatorProject) {\n\t \thandleSiriusAnimatorProjectNotification(n);\n\t } else if (notifier instanceof MoCCProject) {\n\t handleMoCProjectNotification(n);\n\t } else if (notifier instanceof DSAProject) {\n\t handleDSAProjectNotification(n);\n\t } else if (notifier instanceof DSEProject) {\n\t handleDSEProjectNotification(n);\n\t }\n\t \n\t \n\t }",
"public interface FileSystem {\n\n /**\n * Add the specified file system entry (file or directory) to this file system\n *\n * @param entry - the FileSystemEntry to add\n */\n public void add(FileSystemEntry entry);\n\n /**\n * Return the List of FileSystemEntry objects for the files in the specified directory path. If the\n * path does not refer to a valid directory, then an empty List is returned.\n *\n * @param path - the path of the directory whose contents should be returned\n * @return the List of FileSystemEntry objects for all files in the specified directory may be empty\n */\n public List listFiles(String path);\n\n /**\n * Return the List of filenames in the specified directory path. The returned filenames do not\n * include a path. If the path does not refer to a valid directory, then an empty List is\n * returned.\n *\n * @param path - the path of the directory whose contents should be returned\n * @return the List of filenames (not including paths) for all files in the specified directory\n * may be empty\n * @throws AssertionError - if path is null\n */\n public List listNames(String path);\n\n /**\n * Delete the file or directory specified by the path. Return true if the file is successfully\n * deleted, false otherwise. If the path refers to a directory, it must be empty. Return false\n * if the path does not refer to a valid file or directory or if it is a non-empty directory.\n *\n * @param path - the path of the file or directory to delete\n * @return true if the file or directory is successfully deleted\n * @throws AssertionError - if path is null\n */\n public boolean delete(String path);\n\n /**\n * Rename the file or directory. Specify the FROM path and the TO path. Throw an exception if the FROM path or\n * the parent directory of the TO path do not exist; or if the rename fails for another reason.\n *\n * @param fromPath - the source (old) path + filename\n * @param toPath - the target (new) path + filename\n * @throws AssertionError - if fromPath or toPath is null\n * @throws FileSystemException - if the rename fails.\n */\n public void rename(String fromPath, String toPath);\n\n /**\n * Return the formatted directory listing entry for the file represented by the specified FileSystemEntry\n *\n * @param fileSystemEntry - the FileSystemEntry representing the file or directory entry to be formatted\n * @return the the formatted directory listing entry\n */\n public String formatDirectoryListing(FileSystemEntry fileSystemEntry);\n\n //-------------------------------------------------------------------------\n // Path-related Methods\n //-------------------------------------------------------------------------\n\n /**\n * Return true if there exists a file or directory at the specified path\n *\n * @param path - the path\n * @return true if the file/directory exists\n * @throws AssertionError - if path is null\n */\n public boolean exists(String path);\n\n /**\n * Return true if the specified path designates an existing directory, false otherwise\n *\n * @param path - the path\n * @return true if path is a directory, false otherwise\n * @throws AssertionError - if path is null\n */\n public boolean isDirectory(String path);\n\n /**\n * Return true if the specified path designates an existing file, false otherwise\n *\n * @param path - the path\n * @return true if path is a file, false otherwise\n * @throws AssertionError - if path is null\n */\n public boolean isFile(String path);\n\n /**\n * Return true if the specified path designates an absolute file path. What\n * constitutes an absolute path is dependent on the file system implementation.\n *\n * @param path - the path\n * @return true if path is absolute, false otherwise\n * @throws AssertionError - if path is null\n */\n public boolean isAbsolute(String path);\n\n /**\n * Build a path from the two path components. Concatenate path1 and path2. Insert the file system-dependent\n * separator character in between if necessary (i.e., if both are non-empty and path1 does not already\n * end with a separator character AND path2 does not begin with one).\n *\n * @param path1 - the first path component may be null or empty\n * @param path2 - the second path component may be null or empty\n * @return the path resulting from concatenating path1 to path2\n */\n public String path(String path1, String path2);\n\n /**\n * Returns the FileSystemEntry object representing the file system entry at the specified path, or null\n * if the path does not specify an existing file or directory within this file system.\n *\n * @param path - the path of the file or directory within this file system\n * @return the FileSystemEntry containing the information for the file or directory, or else null\n */\n public FileSystemEntry getEntry(String path);\n\n /**\n * Return the parent path of the specified path. If <code>path</code> specifies a filename,\n * then this method returns the path of the directory containing that file. If <code>path</code>\n * specifies a directory, the this method returns its parent directory. If <code>path</code> is\n * empty or does not have a parent component, then return an empty string.\n * <p/>\n * All path separators in the returned path are converted to the system-dependent separator character.\n *\n * @param path - the path\n * @return the parent of the specified path, or null if <code>path</code> has no parent\n * @throws AssertionError - if path is null\n */\n public String getParent(String path);\n\n}",
"public interface Listener {\n void onPackageChanged(String str, int i);\n }",
"@Override\n\tpublic void fileDeliveryServiceListUpdate() {\n\t\t\n\t}",
"public interface FileStoreInterface {\r\n boolean isAuthenticated();\r\n @Nullable\r\n List<String> get(String path);\r\n void archive(String path, List<String> lines);\r\n void startLogin(Activity caller, int i);\r\n void deauthenticate();\r\n void browseForNewFile(Activity act, String path, FileSelectedListener listener, boolean txtOnly);\r\n void modify(String mTodoName, List<String> original,\r\n List<String> updated,\r\n List<String> added,\r\n List<String> removed);\r\n int getType();\r\n void setEol(String eol);\r\n boolean isSyncing();\r\n public boolean initialSyncDone();\r\n void invalidateCache();\r\n void sync();\r\n String readFile(String file);\r\n boolean supportsSync();\r\n public interface FileSelectedListener {\r\n void fileSelected(String file);\r\n }\r\n}",
"long getLastChanged();",
"List<ChangedFile> getChangedFiles(Project project);",
"public interface ChangedListener {\n\n\n public void onMenuChanged(List<Menu> menus);\n\n}",
"@Override\r\n\tpublic void notifyJarChange(List<Jar> changedJars) {\n\r\n\t}",
"public interface ChangeHandling {\r\n}",
"public interface FileSystemEntry {\n public long getCount();\n public long getSize();\n public String getName();\n}",
"public interface DirectoryService {\n\n List<File> searchByName(String name);\n\n List<File> searchByExtension(String extension);\n\n Long getDirectorySize(File directory, boolean recursive);\n\n void appendLinesToFile(File file, List<String> lines);\n\n void zip(File fileToZip);\n\n void unZip(File fileToZip);\n\n void delete(File toDelete);\n}",
"public interface IFTPOperationListener {\n\n /**\n * Called when ftp login is done.\n */\n void loginDone();\n\n /**\n * Called when info are being fetched for a remote file\n *\n * @param remotePath The remote file or folder path\n */\n void fetchingInfo(String remotePath);\n\n /**\n * Called when a file listing is being done\n *\n * @param remoteFolder The remote folder path\n */\n void listingFiles(String remoteFolder);\n\n /**\n * Called before a file is being uploaded.\n *\n * @param path The path of the file\n */\n void uploadingFile(String path);\n\n /**\n * Called when a file is uploaded\n *\n * @param path The remote file path\n */\n void fileUploaded(String path);\n\n /**\n * Called when a folder is being uploaded\n *\n * @param remoteFolder Called when the folder is being uploaded\n */\n void uploadingFolder(String remoteFolder);\n\n /**\n * Called when a folder is uploaded\n *\n * @param remoteFolder The remote folder path\n */\n void folderUploaded(String remoteFolder);\n\n /**\n * Called when a file is being downloaded\n *\n * @param path The path of the file\n */\n void downloadingFile(String path);\n\n /**\n * Called when a remote file is downloaded\n *\n * @param path The remote file path\n */\n void fileDownloaded(String path);\n\n /**\n * Called when a folder is being downloaded\n *\n * @param remoteFolder The remote folder being downloaded\n */\n void downloadingFolder(String remoteFolder);\n\n /**\n * Called when a remote folder is downloaded\n *\n * @param remoteFolder The remote folder path\n */\n void folderDownloaded(String remoteFolder);\n\n /**\n * Called when a remote folder is created\n *\n * @param remoteFolder The remote folder path\n */\n void folderCreated(String remoteFolder);\n\n /**\n * Called when a remote folder is deleted\n *\n * @param remoteFolder The remote folder path\n */\n void folderDeleted(String remoteFolder);\n\n /**\n * Called when a remote file is delete\n *\n * @param path The remote file path\n */\n void fileDeleted(String path);\n\n /**\n * Called when ftp logout is done.\n */\n void logoutDone();\n\n\n}",
"public interface EndPointListener {\n /**\n * @param storeId\n * @param spaceId\n * @param contentId\n * @param backupContentId\n * @param localFilePath\n */\n void contentBackedUp(String storeId,\n String spaceId,\n String contentId,\n String backupContentId,\n String localFilePath);\n\n /**\n * @param storeId\n * @param spaceId\n * @param contentId\n * @param localFilePath\n */\n void contentAdded(String storeId,\n String spaceId,\n String contentId,\n String localFilePath);\n\n /**\n * @param storeId\n * @param spaceId\n * @param contentId\n * @param localFilePath\n */\n void contentUpdated(String storeId,\n String spaceId,\n String contentId,\n String localFilePath);\n\n /**\n * @param storeId\n * @param spaceId\n * @param contentId\n */\n void contentDeleted(String storeId,\n String spaceId,\n String contentId);\n\n /**\n * @param storeId\n * @param spaceId\n * @param contentId\n * @param absPath\n */\n void contentUpdateIgnored(String storeId,\n String spaceId,\n String contentId,\n String absPath);\n}",
"@Override\n public void fileStatusesChanged() {\n assertDispatchThread();\n LOG.debug(\"FileEditorManagerImpl.MyFileStatusListener.fileStatusesChanged()\");\n final VirtualFile[] openFiles = getOpenFiles();\n for (int i = openFiles.length - 1; i >= 0; i--) {\n final VirtualFile file = openFiles[i];\n LOG.assertTrue(file != null);\n ApplicationManager.getApplication().invokeLater(() -> {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"updating file status in tab for \" + file.getPath());\n }\n updateFileStatus(file);\n }, IdeaModalityState.NON_MODAL, myProject.getDisposed());\n }\n }",
"public void handleModified(ModifiedEvent source) {}",
"public interface MessageReceivedListener {\n\t\n\t/**\n\t * Called when new command/message received\n\t * @param msg Command/message as String\n\t */\n\tpublic void OnMessageReceived(String msg);\n\t\n\t/**\n\t * Called when new file is incoming.\n\t * @param length Total length of data expected to be received\n\t * @param downloaded Total length of data actually received so far\n\t */\n\tpublic void OnFileIncoming(int length);\n\t\n\t/**\n\t * Called when more data of a file has been transfered\n\t * @param data Byte array of data received\n\t * @param read The lenght of the data received as int\n\t * @param length Total length of data expected to be received\n\t * @param downloaded Total length of data actually received so far\n\t */\n\tpublic void OnFileDataReceived(byte[] data,int read, int length, int downloaded);\n\t\n\t/**\n\t * Called when file transfer is complete\n\t * @param got\n\t * @param expected\n\t */\n\tpublic void OnFileComplete();\n\t\n\t/**\n\t * Called when an error occur\n\t */\n\tpublic void OnConnectionError();\n\t\n\t/**\n\t * Called when socket has connected to the server\n\t */\n\tpublic void OnConnectSuccess();\n}",
"@Override\r\n\tpublic void notifyObservers() {\n\t\t\r\n\t}",
"public interface TreeChangeHandler extends EventHandler {\r\n\t\r\n\t/**\r\n\t * Handles the tree change event.\r\n\t * @param event the tree change event.\r\n\t */\r\n\tvoid onTreeChange(TreeChangeEvent event);\r\n\t\r\n}",
"@Override\n public void run() {\n\n\n try {\n WatchService watchService = FileSystems.getDefault().newWatchService();\n Path path = Paths.get(INPUT_FILES_DIRECTORY);\n\n path.register( watchService, StandardWatchEventKinds.ENTRY_CREATE); //just on create or add no modify?\n\n WatchKey key;\n while ((key = watchService.take()) != null) {\n for (WatchEvent<?> event : key.pollEvents()) {\n\n String fileName = event.context().toString();\n notifyController.processDetectedFile(fileName);\n\n }\n key.reset();\n }\n\n } catch (Exception e) {\n //Logger.getGlobal().setUseParentHandlers(false);\n //Logger.getGlobal().log(Level.SEVERE, e.toString(), e);\n\n }\n }",
"private static void AddFileMonitor(MemoryCacheMetaInfo meta) throws IOException {\n // if(meta.CacheType == MemoryCacheType.File)\n // {\n // Path myDir = Paths.get(meta.FilePath);\n // WatchService watcher = myDir.getFileSystem().newWatchService();\n // while (true)\n // {\n // try {\n // WatchKey watchKey = myDir.register(watcher,StandardWatchEventKinds.ENTRY_MODIFY) ;\n // for (WatchEvent<?> event : watchKey.pollEvents()) {\n // WatchEvent<Path> watchEvent = (WatchEvent<Path>) event;\n // WatchEvent.Kind<Path> kind = watchEvent.kind();\n //\n // System.out.println(watchEvent.context() + \", count: \" +\n // watchEvent.count() + \", event: \" + watchEvent.kind());\n // // prints (loop on the while twice)\n // // servers.cfg, count: 1, event: ENTRY_MODIFY\n // // servers.cfg, count: 1, event: ENTRY_MODIFY\n //\n // switch (kind.name()) {\n // case \"ENTRY_MODIFY\":\n // //handleModify(watchEvent.context()); // reload configuration class\n // break;\n // case \"ENTRY_DELETE\":\n // //handleDelete(watchEvent.context()); // do something else\n // break;\n // default:\n // System.out.println(\"Event not expected \" + event.kind().name());\n // }\n // }\n // }\n // catch (IOException e) {\n // e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n // }\n // }\n // }\n }",
"public interface ChronicleUpdatable {\n public void setFileNames(List<String> files);\n\n public void addTimeMillis(long l);\n\n public void incrMessageRead();\n\n public void incrTcpMessageRead();\n\n AtomicLong tcpMessageRead();\n\n AtomicLong count1();\n\n AtomicLong count2();\n}",
"@Override\n public void notify(String newFileContent) {\n Repository.getRepositoryInstance().updateStockOrders(newFileContent);\n//end of modifiable zone..................E/a170c128-ca49-4fc4-abdd-43b714481007\n }",
"public interface PropertyChangeListener<T>\n{\n /**\n * Callback function when there is a change in any property that starts with key\n * It's upto the implementation to handle the following different cases 1) key\n * is a simple key and does not have any children. PropertyStore.getProperty(key) must\n * be used to retrieve the value; 2) key is a prefix and has children.\n * PropertyStore.getPropertyNames(key) must be used to retrieve all the children keys.\n * Its important to know that PropertyStore will not be able to provide the\n * delta[old value,new value] or which child was added/deleted. The\n * implementation must take care of the fact that there might be callback for\n * every child thats added/deleted. General way applications handle this is\n * keep a local cache of keys and compare against the latest keys.\n * \n * @param key\n */\n void onPropertyChange(String key);\n}",
"public interface UpDateDownloadListener {\n void start();\n void onProgressChanged(int progress,String downloadUrl);\n void onFinished(long completeSize,String downloadUrl);\n void onFailure();\n}",
"public interface NotificationManager {\n\n\tvoid sendTicketCreateNotification(Ticket ticket);\n\n\tvoid sendTicketChangeNotification(TicketChange ticketChange);\n\n\tvoid sendCommentNotification(Comment comment);\n\n\tvoid sendAttachmentNotification(Attachment attachment);\n\n}",
"public void notifyObservers();",
"public void notifyObservers();",
"public void notifyObservers();",
"public void pathChanged(){\r\n ctrlDomain.pathChanged();\r\n }",
"public DirectoryWatchService() throws IOException {\n\t\tthis.watcher = FileSystems.getDefault().newWatchService();\n\t\tthis.keys = new HashMap<>();\n\t\tthis.listeners = new ConcurrentHashMap<>();\n\t\tThread t = new Thread(\"DirectoryWatcher\") {\n\t\t\tpublic void run() {\n\t\t\t\tprocessEvents();\n\t\t\t}\n\t\t};\n\t\tt.setDaemon(true);\n\t\tt.start();\n\t}",
"public interface Observer {\n public void update(String context);\n\n}",
"public interface Notify\n\t{\n\t\t/**\n\t\t * Notifies of mailbox status change.\n\t\t * @param mb the mailbox whose status has changed.\n\t\t * @param state the state object passed in the register\n\t\t * method.\n\t\t * @param closed true if the mailbox timeout has expired and\n\t\t * the mailbox is now closed to delivery, false if a message\n\t\t * has arrived.\n\t\t */\n\t\tpublic void mailboxStatus( Mailbox mb, Object state, boolean closed );\n\t}",
"public void checkIfFilesHaveChanged(NSNotification n) {\n int checkPeriod = checkFilesPeriod();\n \n if (!developmentMode && (checkPeriod == 0 || System.currentTimeMillis() - lastCheckMillis < 1000 * checkPeriod)) {\n return;\n }\n \n lastCheckMillis = System.currentTimeMillis();\n \n log.debug(\"Checking if files have changed\");\n for (Enumeration e = _lastModifiedByFilePath.keyEnumerator(); e.hasMoreElements();) {\n File file = new File((String)e.nextElement());\n if (file.exists() && hasFileChanged(file)) {\n fileHasChanged(file);\n }\n }\n }",
"@Override\n\tprotected HashSet<String> getAllChangedFileName(){\n\t\treturn null;\n\t}",
"public interface IFileTransferListener {\n\n /** String that will be used in onComplete if transfer finished without error. */\n public static final String STATUS_PASS = \"pass\";\n /** String that will be used in onComplete if transfer finished due to an error. */\n public static final String STATUS_FAIL = \"fail\";\n\n /**\n * Called when the file has been transferred. Refer to <a\n * href=\"http://developers.box.net/w/page/12923951/ApiFunction_Upload-and-Download\">ApiFunction_Upload-and-Download</a> for details.\n * \n * @param status\n * status string indicating completion status(pass, fail...)\n */\n void onComplete(String status);\n\n /**\n * Called when the file transfer was canceled.\n */\n void onCanceled();\n\n /**\n * Called periodically during the download. You can use this to monitor transfer progress. Refer to <a\n * href=\"http://developers.box.net/w/page/12923951/ApiFunction_Upload-and-Download\">ApiFunction_Upload-and-Download</a> for details.\n * \n * @param bytesTransferred\n * bytes transferred for now\n */\n void onProgress(long bytesTransferred);\n\n /**\n * Called when IOException is thrown.\n * \n * @param e\n * exception\n */\n void onIOException(final IOException e);\n}",
"private void updateFiles() {\n\t}",
"@Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n }",
"@Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n }",
"public interface ProjectDiagramListener {\n\n /**\n * Listener method. Whenever any publishable change occurs, this method of all listeners is invoked.\n *\n * @param change is an object holding info about the change\n *\n * @see cz.cvut.promod.services.projectService.treeProjectNode.ProjectDiagramChange\n */\n public void changePerformed(final ProjectDiagramChange change);\n}",
"public interface ReceiverObserver {\n\n void update(DataNotification notification);\n}",
"protected final void notifyContentChanged() {\n // notify all listeners (including parents)\n for (DialogModuleChangeListener listener : listeners) {\n listener.onContentChanged();\n }\n }",
"private void fireContentModelModified(final String id, final String xmlData) throws SystemException {\r\n for (final ResourceListener contentModelListener : this.contentModelListeners) {\r\n contentModelListener.resourceModified(id, xmlData);\r\n }\r\n }",
"public interface Observer {\r\n \r\n /**\r\n * This method allows to update.\r\n */\r\n void update();\r\n}",
"public static void FileSystemMonitor() throws Exception {\n String path = \"d:/df8600data\";\r\n \r\n\t // watch mask, specify events you care about,\r\n\t // or JNotify.FILE_ANY for all events.\r\n\t int mask = JNotify.FILE_CREATED | \r\n\t JNotify.FILE_DELETED | \r\n\t JNotify.FILE_MODIFIED | \r\n\t JNotify.FILE_RENAMED;\r\n \r\n\t \r\n\t // watch subtree?\r\n\t boolean watchSubtree = true;\r\n\r\n\t // add actual watch\r\n\t int watchID = JNotify.addWatch(path, mask, watchSubtree, new Listener());\r\n\t \r\n\r\n\t // sleep a little, the application will exit if you\r\n\t // don't (watching is asynchronous), depending on your\r\n\t // application, this may not be required\r\n\t while (true) Thread.sleep(10000);\r\n\r\n\t // to remove watch the watch\r\n\t /*\r\n\t boolean res = JNotify.removeWatch(watchID);\r\n\t \r\n\t if (!res) {\r\n\t // invalid watch ID specified.\r\n\t }\r\n\t */\r\n\t }",
"public interface Listener{\n\t\tpublic void notify(Map<String,Serializable> datas);\n\t}",
"@Override\n public void receivedReply(final ListFilesReply reply) {\n }",
"interface ConfigWatcher {\n\n /**\n * Called when receiving an update on virtual host configurations.\n */\n void onConfigChanged(ConfigUpdate update);\n\n void onError(Status error);\n }",
"void notifyObservers();",
"void notifyObservers();",
"public void notifyObservers() {}",
"public Date getDateModified();",
"public void projectWorkDirChanged() { }",
"public void projectWorkDirChanged() { }",
"public interface ILocalizationListener {\r\n\t/**\r\n\t * Does something when localization changes\r\n\t */\r\n\tvoid localizationChanged();\r\n}",
"public void notifyConfigChange() {\n }",
"@Override\n public void doUpdate(NotificationMessage notification) {\n \n }",
"public void watchDir(Path path) throws IOException, InterruptedException { \n try (WatchService watchService = FileSystems.getDefault().newWatchService()) {\n \n //2. Registering Objects with the Watch Service.\n path.register(watchService, StandardWatchEventKinds.ENTRY_CREATE,\n StandardWatchEventKinds.ENTRY_MODIFY, StandardWatchEventKinds.ENTRY_DELETE);\n /*\n * 3. Waiting for the Incoming Events.\n * start an infinite loop\n */\n while (true) {\n\n /*\n * 4.Getting a Watch Key.\n * retrieve and remove the next watch key\n */\n final WatchKey key = watchService.take();\n\n /*\n * 5. Retrieving Pending Events for a Key.\n * get list of pending events for the watch key * \n */\n for (WatchEvent<?> watchEvent : key.pollEvents()) {\n \n /*\n * 6. Retrieving the Event Type and Count.\n * get the kind of event (create, modify, delete) * \n */\n final Kind<?> kind = watchEvent.kind();\n\n //handle OVERFLOW event\n if (kind == StandardWatchEventKinds.OVERFLOW) {\n continue;\n }\n\n /*\n * 7. Retrieving the File Name Associated with an Event.\n * get the filename for the event * \n */\n final WatchEvent<Path> watchEventPath = (WatchEvent<Path>) watchEvent;\n final Path filename = watchEventPath.context();\n\n //print it out\n out.println(kind + \" -> \" + filename);\n }\n \n /*\n * 8. Putting the Key Back in Ready State.\n * reset the key\n */ \n boolean valid = key.reset();\n\n //exit loop if the key is not valid (if the directory was deleted, for example)\n if (!valid) {\n break;\n }\n }\n }\n }",
"protected void initModifiedListeners()\n\t{\n\t\tif (path != null)\n\t\t{\n\t\t\tpath.addModifiedListener(this);\n\t\t}\n\t}",
"public interface SettingsListener {\n void changed();\n}",
"void notificationReceived(Notification notification);",
"@Override\r\n\tprotected void processDirectorySelectionChange(String paramString) {\n\r\n\t}",
"@Override\n protected void registerCustomListeners(@NotNull MessageBusConnection connection) {\n connection.subscribe(EncodingManagerListener.ENCODING_MANAGER_CHANGES, (document, propertyName, oldValue, newValue) -> {\n if (propertyName.equals(EncodingManagerImpl.PROP_CACHED_ENCODING_CHANGED)) {\n updateForDocument(document);\n }\n });\n\n connection.subscribe(VirtualFileManager.VFS_CHANGES, new BulkVirtualFileListenerAdapter(new VirtualFileListener() {\n @Override\n public void propertyChanged(@NotNull VirtualFilePropertyEvent event) {\n if (VirtualFile.PROP_ENCODING.equals(event.getPropertyName())) {\n updateForFile(event.getFile());\n }\n }\n }));\n }",
"public interface IndexChangeListener\n\t{\n\t\t/** Index was updated with files or files were removed */\n\t\tpublic void onIndexUpdate();\n\n\t\t/** Index was reset - created or deleted */\n\t\tpublic void onIndexReset();\n\t}",
"@Override\n\t\t\t\tpublic void fileTransferRecv(LinphoneCore lc, LinphoneChatMessage message,\n\t\t\t\t\t\tLinphoneContent content, byte[] buffer, int size) {\n\t\t\t\t\t\n\t\t\t\t}",
"public interface SingleDocumentListener {\n\t/**\n\t * Called when Modify flag of model is changed\n\t * @param model observed\n\t */\n\tvoid documentModifyStatusUpdated(SingleDocumentModel model);\n\n\t/**\n\t * Called when File path of model is changed\n\t * @param model observed\n\t */\n\tvoid documentFilePathUpdated(SingleDocumentModel model);\n}",
"@Override\n\tpublic void NotifyObserver() {\n\n\t}",
"protected void indicateModified() {\n invalidationListenerManager.callListeners(this);\n }",
"public void updateContent(Map<String, ContentChange> files);"
] | [
"0.6231132",
"0.6224237",
"0.6224237",
"0.6055289",
"0.6048795",
"0.6048541",
"0.59764856",
"0.5959437",
"0.5949575",
"0.587927",
"0.5816691",
"0.58024603",
"0.5794209",
"0.5768025",
"0.5669812",
"0.5613689",
"0.554619",
"0.5529858",
"0.5529023",
"0.5529023",
"0.55275637",
"0.55080116",
"0.550307",
"0.5498519",
"0.5490567",
"0.5489359",
"0.547573",
"0.54742384",
"0.5473004",
"0.5451283",
"0.54452074",
"0.54376554",
"0.54362416",
"0.54339814",
"0.54141325",
"0.54110175",
"0.5408945",
"0.5394632",
"0.539154",
"0.53741485",
"0.53708524",
"0.53683424",
"0.5335045",
"0.5329985",
"0.53231025",
"0.5321155",
"0.5320301",
"0.5316601",
"0.5310608",
"0.53032297",
"0.52950925",
"0.5294486",
"0.5280903",
"0.52759385",
"0.5271177",
"0.5238454",
"0.522695",
"0.52257395",
"0.52257395",
"0.52257395",
"0.5225491",
"0.5219688",
"0.52175075",
"0.5209826",
"0.5209818",
"0.520028",
"0.51939136",
"0.51932406",
"0.5186143",
"0.5186143",
"0.5185972",
"0.51832384",
"0.5182989",
"0.5181564",
"0.5180556",
"0.51758385",
"0.5170133",
"0.5165854",
"0.5162964",
"0.51611674",
"0.51611674",
"0.51452726",
"0.5144981",
"0.5143873",
"0.5143873",
"0.51298684",
"0.51283985",
"0.5119775",
"0.51164114",
"0.511568",
"0.51072127",
"0.51069987",
"0.5102648",
"0.5092127",
"0.5089326",
"0.5080086",
"0.5079439",
"0.50772893",
"0.50704205",
"0.50657254"
] | 0.7135439 | 0 |
Indication that some file or files have been changed. | public void directoryChange( int type, Set fileSet ); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkIfFilesHaveChanged(NSNotification n) {\n int checkPeriod = checkFilesPeriod();\n \n if (!developmentMode && (checkPeriod == 0 || System.currentTimeMillis() - lastCheckMillis < 1000 * checkPeriod)) {\n return;\n }\n \n lastCheckMillis = System.currentTimeMillis();\n \n log.debug(\"Checking if files have changed\");\n for (Enumeration e = _lastModifiedByFilePath.keyEnumerator(); e.hasMoreElements();) {\n File file = new File((String)e.nextElement());\n if (file.exists() && hasFileChanged(file)) {\n fileHasChanged(file);\n }\n }\n }",
"public boolean changed() {\r\n\t\treturn changed;\r\n\t}",
"void handleChanged(Collection<AGStoredFile> existingFiles, Collection<AGStoredFile> changedFiles);",
"public boolean isChanged()\r\n\t{\r\n\t\treturn changed;\r\n\t}",
"public synchronized boolean hasChanged() {\n return changed;\n }",
"@Override\n\tpublic boolean hasChanged() {\n\t\treturn this.changed;\n\t}",
"private void changed() {\n // Ok to have a race here, see the field javadoc.\n if (!changed)\n changed = true;\n }",
"private void verifyChanges() {\n System.out.println(\"Verify changes\"); \n }",
"@Override\n public void fileChanged(FileChangeEvent fileChangeEvent) throws Exception {\n\n }",
"public void isChanged()\n\t{\n\t\tchange = true;\n\t}",
"long getLastChanged();",
"public boolean hasChanges() {\n return !(changed.isEmpty() && defunct.isEmpty());\n }",
"public boolean isChanged() {\r\n return isChanged;\r\n }",
"public boolean hasChanges();",
"protected synchronized void setChanged() {\n changed = true;\n }",
"public boolean hasChanged();",
"public boolean hasChanged();",
"private void dialogChanged() {\n\t\tString fileName = getFileName();\n\t\tString dirStr = getPathStr();\n\n\t\tif (dirStr.length() == 0) {\n\t\t\tupdateStatus(\"Directory must be specified\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (fileName == null || fileName.length() == 0) {\n\t\t\tupdateStatus(\"File name must be specified\");\n\t\t\treturn;\n\t\t}\n\t\tif (fileName.replace('\\\\', '/').indexOf('/', 1) > 0) {\n\t\t\tupdateStatus(\"File name must be valid\");\n\t\t\treturn;\n\t\t}\n\t\tupdateStatus(null);\n\t}",
"boolean isOssModified();",
"public boolean wasChangeDetected() {\n return bChangeDetected;\n }",
"public void markChanged()\n \t{\n \t\tbChanged=true;\n \t}",
"protected void fileHasChanged(File file) {\n NSMutableSet observers = (NSMutableSet)_observersByFilePath.objectForKey(cacheKeyForFile(file));\n if (observers == null)\n log.warn(\"Unable to find observers for file: {}\", file);\n else {\n NSNotification notification = new NSNotification(FileDidChange, file);\n for (Enumeration e = observers.objectEnumerator(); e.hasMoreElements();) {\n _ObserverSelectorHolder holder = (_ObserverSelectorHolder)e.nextElement();\n try {\n holder.selector.invoke(holder.observer, notification);\n } catch (Exception ex) {\n log.error(\"Catching exception when invoking method on observer: {}\", ex, ex);\n }\n }\n registerLastModifiedDateForFile(file); \n }\n }",
"public boolean isChanged() {\n return this.changed;\n }",
"@Override\n\tprotected HashSet<String> getAllChangedFileName(){\n\t\treturn null;\n\t}",
"public boolean hasStatusChanged() {\n return typeCase_ == 5;\n }",
"private void setNewStatusIfNeeded() {\n \t\tfor(FileDiffDirectory dir : directories ) {\n \t\t\tif (dir.getState() != DiffState.SAME) {\n \t\t\t\tsetState(DiffState.CHANGED);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t\t\n \t\tfor(FileDiffFile file : files ) {\n \t\t\tif (file.getState() != DiffState.SAME) {\n \t\t\t\tsetState(DiffState.CHANGED);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t}",
"private void updateFiles() {\n\t}",
"@Test\r\n public void testGetChangedFileList() throws IOException {\n helper.exportRevChangedFiles(PJ_ROOT, 1, LOCAL_ROOT);\r\n helper.exportRevChangedFiles(PJ_ROOT, 4, LOCAL_ROOT);\r\n //helper.exportRevChangedFiles(PJ_ROOT, -1, LOCAL_ROOT);\r\n //helper.exportRevChangedFiles(9, 9, true);\r\n }",
"public boolean updated()\r\n\t{\r\n\t\treturn bChanged;\r\n\t}",
"public void changed(boolean changed) {\r\n\t\tthis.changed = changed;\r\n\t}",
"public boolean hasStatusChanged() {\n return typeCase_ == 5;\n }",
"@Override\n\tpublic void setChanged() {\n\t\tthis.changed = true;\n\t}",
"@Override\n public void fileStatusesChanged() {\n assertDispatchThread();\n LOG.debug(\"FileEditorManagerImpl.MyFileStatusListener.fileStatusesChanged()\");\n final VirtualFile[] openFiles = getOpenFiles();\n for (int i = openFiles.length - 1; i >= 0; i--) {\n final VirtualFile file = openFiles[i];\n LOG.assertTrue(file != null);\n ApplicationManager.getApplication().invokeLater(() -> {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"updating file status in tab for \" + file.getPath());\n }\n updateFileStatus(file);\n }, IdeaModalityState.NON_MODAL, myProject.getDisposed());\n }\n }",
"public boolean changeMade()\n {\n return isChanged;\n }",
"private void setDataFileChanged(String newPath) {\r\n \t\t// set file to be reloaded if changed\r\n \t\tif ((null == dataFile && !newPath.equals(\"\"))\r\n \t\t\t\t|| (null != dataFile && !dataFile.equals(newPath))) {\r\n \t\t\treloadFile = true;\r\n \t\t}\r\n \t\t// copy new value\r\n \t\tdataFile = newPath;\r\n \t\t// add log\r\n \t\tif (localLOGV) {\r\n \t\t\tLog.i(TAG, \"Reload file set to \" + String.valueOf(reloadFile));\r\n \t\t}\r\n \t}",
"private boolean checkForChange(File pFileToCheck) {\n if (pFileToCheck.isDirectory()) {\n //pFileToCheck is a directory. Call yourself recursively for each file withing this directory.\n for (File f : pFileToCheck.listFiles()) {\n return checkForChange(f);\n }\n } else {\n //check if mFileMap contains this file\n if (!mFileMap.containsKey(pFileToCheck)) {\n //add this file to mFileMap, store the lastModified timestamp and return \"modified\"-status\n mFileMap.put(pFileToCheck, pFileToCheck.lastModified());\n return true;\n } else {\n //check stored lastModified timestamp with the current timestamp returned by the file object\n long lastModified = mFileMap.get(pFileToCheck);\n if (lastModified < pFileToCheck.lastModified()) {\n return true;\n }\n }\n }\n //nothing has changed\n return false;\n }",
"@Override\n public void fileStatusChanged(@Nonnull final VirtualFile file) {\n assertDispatchThread();\n if (isFileOpen(file)) {\n updateFileStatus(file);\n }\n }",
"boolean isModified();",
"boolean isModified();",
"@Override\n\tfinal public boolean hasDoneChanges() {\n\t\treturn false;\n\t}",
"public boolean hasFileChanged(File file) {\n if (file == null)\n throw new RuntimeException(\"Attempting to check if a null file has been changed\");\n Object previousCacheValue = _lastModifiedByFilePath.objectForKey(cacheKeyForFile(file));\n return previousCacheValue == null || !previousCacheValue.equals(cacheValueForFile(file));\n }",
"public void setDirty() {\r\n\t\tif (LOG.isLoggable(Level.FINE)) { LOG.fine(\"setDirty\"); }\r\n\r\n \tif(clean) { fireFileCleanStatusChangedEvent(new FileChangeEvent(eventSource, false)); }\r\n \tfireFileChangedEvent(new FileChangeEvent(this, false));\r\n \tclean = false;\r\n }",
"public void printModified() {\n System.out.println(\"\\n\"\n + \"=== Modifications Not Staged For Commit ===\");\n }",
"public void testChanges(String filePath) {\n Object[] fileObjectArray = fetchTextFile(filePath);\n String newFile = prepareText(fileObjectArray);\n System.out.println(newFile);\n }",
"public boolean isPathChanged() {\r\n return ctrlDomain.isPathChanged();\r\n }",
"boolean hasStatusChanged();",
"public boolean isModified();",
"public boolean isModified();",
"public boolean modified() {\r\n\t\treturn modified;\r\n\t}",
"public void checkUpdateFileComment() {\r\n\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\tif (this.fileCommentTabItem != null && this.fileCommentTabItem.isFileCommentChanged()) this.fileCommentTabItem.setFileComment();\r\n\t\t}\r\n\t\telse { // if the percentage is not up to date it will updated later\r\n\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tif (DataExplorer.this.fileCommentTabItem != null && DataExplorer.this.fileCommentTabItem.isFileCommentChanged()) DataExplorer.this.fileCommentTabItem.setFileComment();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}",
"boolean hasChangeStatus();",
"boolean hasUpdateInodeFile();",
"synchronized public void notifyFileChanged() {\n if (timer != null) {\n timer.cancel();\n }\n timer = new Timer();\n timer.schedule(new TimerTask() {\n\n public void run() {\n timer = null;\n Message message = new Message();\n message.what = MSG_FILE_CHANGED_TIMER;\n mHandler.sendMessage(message);\n }\n\n }, 1000);\n }",
"public static int getChangedFilesInProjectOption() {\r\n\t\treturn ProjectUIPlugin.getChangedFilesInProjectOption();\r\n\t}",
"protected boolean isDataChanged() {\n\n\t\treturn true;\n\t}",
"private boolean canChangeDocuments() {\n\n // If the text is modified, give the user a chance to\n // save it. Otherwise return true.\n\n if (fDocument.isModified()) {\n byte save = askSave(this, getTitle());\n if (save == YES) {\n return doSave();\n }\n else {\n return save == NO;\n }\n }\n else {\n return true;\n }\n }",
"protected boolean handleDirtyConflict() {\r\n\t\treturn MessageDialog.openQuestion(getSite().getShell(),\r\n\t\t\t\tgetString(\"_UI_FileConflict_label\"),\r\n\t\t\t\tgetString(\"_WARN_FileConflict\"));\r\n\t}",
"private void dialogChanged() {\n\t\tIResource container = ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t.findMember(new Path(getContainerName().get(\"ProjectPath\")));\n\n\t\tif(!containerSourceText.getText().isEmpty() && !containerTargetText.getText().isEmpty())\n\t\t{\n\t\t\tokButton.setEnabled(true);\n\t\t}\n\n\t\tif (getContainerName().get(\"ProjectPath\").length() == 0) {\n\t\t\tupdateStatus(\"File container must be specified\");\n\t\t\treturn;\n\t\t}\n\t\tif (container == null\n\t\t\t\t|| (container.getType() & (IResource.PROJECT | IResource.FOLDER)) == 0) {\n\t\t\tupdateStatus(\"File container must exist\");\n\t\t\treturn;\n\t\t}\n\t\tif (!container.isAccessible()) {\n\t\t\tupdateStatus(\"Project must be writable\");\n\t\t\treturn;\n\t\t}\n\t\tupdateStatus(null);\n\t}",
"private boolean changed(File installDir, File backupDir, File installFile)\n throws IOException {\n\n // To get a file in srcdir but then in destdir, replace the srcdir path with\n // destdir path in srcfile\n String srcdirPath = installDir.getAbsolutePath();\n String destdirPath = backupDir.getAbsolutePath();\n File backupFile = new File(installFile.getAbsolutePath().replace(\n srcdirPath, destdirPath));\n\n // if the file is not in backup dir it has been added\n if (!backupFile.exists()) {\n updateLog.logMessage(getClass().getName(),\n \"File added \" + installFile.getPath());\n return true;\n }\n\n // do a file compare\n boolean changed = !FileUtils.contentEquals(installFile, backupFile);\n if (changed) {\n updateLog.logMessage(getClass().getName(),\n \"File changed \" + installFile.getPath());\n }\n return changed;\n }",
"public void changed() {\n // from ChangeHandler\n configSave.enable();\n }",
"public boolean isChanged() {\n return this.editorPane.getChangedProperty();\n }",
"List<ChangedFile> getChangedFiles(Project project);",
"private static boolean needsUpdate(File file, File oldFile, JsonObject old_manifest, JsonObject obj, long size, String hash) {\n try {\n boolean check1 = !oldFile.exists();\n if (check1) return true;\n boolean check2 = !file.exists();\n if (check2) return true;\n boolean check3 = file.length() != size;\n if (check3) return true;\n boolean check4 = old_manifest == null;\n if (check4) return true;\n boolean check5 = old_manifest.get(\"files\") == null;\n if (check5) return true;\n boolean check6 = getHashFromPath(old_manifest.get(\"files\").getAsJsonArray(), obj.get(\"path\").getAsString()) == null;\n if (check6) return true;\n boolean check7 = !getHashFromPath(old_manifest.get(\"files\").getAsJsonArray(), obj.get(\"path\").getAsString()).equals(hash);\n if (check7) return true;\n\n return false;\n } catch (Exception ex) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n ex.printStackTrace(pw);\n log(sw.toString());\n return true;\n }\n }",
"private boolean isDirty()\r\n {\r\n //\r\n return _modified;\r\n }",
"public final void CanNotBeChanged () {\n\t\tSystem.out.println(\"Can not be Changed\");\n\t}",
"protected synchronized void clearChanged() {\n changed = false;\n }",
"@Override\n\tpublic int getFileStatus() {\n\t\treturn 0;\n\t}",
"Boolean getIsChanged();",
"public boolean hasChangeSetComputed() {\n File changelogFile = new File(getRootDir(), \"changelog.xml\");\n return changelogFile.exists();\n }",
"private void findChangeMarkerFile() {\n if (new File(pathsProvider.getLocalProgramTempDir(), \"dbchangemarker.txt\").exists()) {\n if (hasMetadataChange) System.out.print(\"Found previous changes.\\n\");\n hasMetadataChange = true;\n }\n }",
"protected void indicateModified() {\n invalidationListenerManager.callListeners(this);\n }",
"public final synchronized void setChanged() {\n\t\tsuper.setChanged ();\n }",
"public void changedUpdate(DocumentEvent e)\n {\n performFlags();\n }",
"public int getChanged () {\n int d = getDiff () * 2;\n int s = getSize () * 2;\n\n for (int i = 0; i < references.length; i++) {\n if (references[i] != null) {\n d += references[i].getDiff ();\n s += references[i].getSize ();\n }\n }\n \n // own cluster change is twice as much important than \n // those referenced\n int ret = d * 100 / s;\n if (ret == 0 && d > 0) {\n ret = 1;\n }\n return ret;\n }",
"public boolean isChangeType()\n {\n return hasChanges;\n }",
"public void tableRefChanged() {\r\n\t\t// clear the table Element so it will be recreated\r\n\t\ttableElement = null;\r\n\t\t\r\n\t\t// tell the files that this table has changed\r\n\t\tif (refFiles != null) {\r\n\t\t\tfor(ReferenceFile refFile : refFiles) {\r\n\t\t\t\trefFile.setUpdated(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void testCheckinFile() throws Exception {\n System.out.print(\".. Testing checking in a file ..\");\n String filesystem = \"VSS \" + workingDirectory + File.separator + \"Work\";\n Node filesystemNode = new Node(new ExplorerOperator().repositoryTab().getRootNode(), filesystem);\n Node A_FileNode = new Node( filesystemNode, \"A_File [Locally Modified] (\" + userName + \")\");\n new Action(VERSIONING_MENU + \"|\" + CHECK_IN, CHECK_IN).perform(A_FileNode);\n CheckinCommandOperator checkinCommand = new CheckinCommandOperator(\"A_File.java\");\n checkinCommand.setChangeDescription(\"Three lines have changed.\");\n checkinCommand.ok();\n Thread.sleep(2000);\n A_FileNode = new Node(filesystemNode, \"A_File [Current]\");\n File A_File = new File(workingDirectory + File.separator + \"Work\" + File.separator + \"A_File.java\");\n if (A_File.canWrite()) captureScreen(\"Error: A_File.java remained read-write after check in.\");\n System.out.println(\". done !\");\n }",
"public void changed() {\n this.fireContentsChanged(this, 0, this.getSize() - 1);\n }",
"void showchange() {\n\t\tif (printstatus != change)\n\t\t\tprintln(\">>>> \" + printoldline + \" CHANGED FROM <br/>\");\n\t\tprintstatus = change;\n\t\toutput+=oldinfo.symbol[printoldline].showSymbol();\n\t\toutput+=\"<br/>\";\n\t\tanyprinted = true;\n\t\tprintoldline++;\n\t}",
"public void diffsChanged(IDiffChangeEvent event, IProgressMonitor monitor) {\n \t\tIPath[] removed = event.getRemovals();\n \t\tIDiff[] added = event.getAdditions();\n \t\tIDiff[] changed = event.getChanges();\n \t\t// Only adjust the set of the rest. The others will be handled by the collectors\n \t\ttry {\n \t\t\tgetTheRest().beginInput();\n \t\t\tfor (int i = 0; i < removed.length; i++) {\n \t\t\t\tIPath path = removed[i];\n \t\t\t\tgetTheRest().remove(path);\n \t\t\t}\n \t\t\tfor (int i = 0; i < added.length; i++) {\n \t\t\t\tIDiff diff = added[i];\n \t\t\t\t// Only add the diff if it is not already in another set\n \t\t\t\tif (!isContainedInSet(diff)) {\n \t\t\t\t\tgetTheRest().add(diff);\n \t\t\t\t}\n \t\t\t}\n \t\t\tfor (int i = 0; i < changed.length; i++) {\n \t\t\t\tIDiff diff = changed[i];\n \t\t\t\t// Only add the diff if it is already contained in the free set\n \t\t\t\tif (getTheRest().getDiff(diff.getPath()) != null) {\n \t\t\t\t\tgetTheRest().add(diff);\n \t\t\t\t}\n \t\t\t}\n \t\t} finally {\n \t\t\tgetTheRest().endInput(monitor);\n \t\t}\n \t\tif (checkedInCollector != null)\n \t\t\tcheckedInCollector.handleChange(event);\n \t}",
"public void setChanged(boolean isChanged)\r\n\t{\r\n\t\tchanged = isChanged;\r\n\t}",
"Object getUptodatefile();",
"public boolean wasDataUpdated() {\n\t\treturn true;\n\t}",
"private static boolean isProperNotification( final FilePath filePath )\r\n {\r\n String oldName = filePath.getName();\r\n String newName = (filePath.getVirtualFile() == null) ? \"\" : filePath.getVirtualFile().getName();\r\n String oldParent = filePath.getVirtualFileParent().getPath();\r\n String newParent = filePath.getPath().substring( 0, filePath.getPath().length() - oldName.length() - 1 );\r\n return (newParent.equals( oldParent ) && newName.equals( oldName ) );\r\n }",
"public void reload() {\n\t\tif (file.lastModified() <= fileModified)\n\t\t\treturn;\n\t\n\t\treadFile();\n\t}",
"public boolean containsChanges() {\n return genClient.containsChanges();\n }",
"@Override\n public void update(String fileName) {\n //Responses or action taken after an event occured in publisher and is notified\n System.out.println(\"Email to \" + this.email + \": \\\" The file \" + fileName + \" has been modified!\");\n }",
"public boolean isDirty();",
"@Test\n\tpublic void testHasUnsavedChangesModifiedFile() throws Exception {\n\t\tIRodinFile rodinFile = createRodinFile(\"P/x.test\");\n\t\tRodinTestRoot root = (RodinTestRoot) rodinFile.getRoot();\n\t\tcreateNEPositive(root, \"foo\", null);\n\t\tassertUnsavedChanges(rodinFile, true);\n\n\t\t// Should report the same after closing the file.\n\t\trodinFile.close();\n\t\tassertUnsavedChanges(rodinFile, true);\n\t}",
"public void testModifyFile() throws Exception {\n System.out.print(\".. Testing file modification ..\");\n String filesystem = \"VSS \" + workingDirectory + File.separator + \"Work\";\n Node filesystemNode = new Node(new ExplorerOperator().repositoryTab().getRootNode(), filesystem);\n Node A_FileNode = new Node( filesystemNode, \"A_File [Current] (\" + userName + \")\");\n BufferedWriter writer = new BufferedWriter(new FileWriter(workingDirectory + File.separator + \"Work\" + File.separator + \"A_File.java\"));\n writer.write(\"/** This is testing A_File.java file.\\n */\\n public class Testing_File {\\n int i;\\n }\\n\");\n writer.flush();\n writer.close();\n new OpenAction().perform(A_FileNode);\n new Action(VERSIONING_MENU + \"|\" + REFRESH, REFRESH).perform(A_FileNode);\n Thread.sleep(5000);\n A_FileNode = new Node( filesystemNode, \"A_File [Locally Modified] (\" + userName + \")\");\n System.out.println(\". done !\");\n }",
"public boolean hasChanged()\n {\n return map.hasChanged();\n }",
"void willDisplayUpdate(String change) throws RemoteException;",
"public boolean isDataModified() {\r\n\t\tint stat = getPageDataStoresStatus();\r\n\r\n\t\tif (stat == DataStoreBuffer.STATUS_MODIFIED)\r\n\t\t\treturn true;\r\n\t\telse if (stat == DataStoreBuffer.STATUS_NEW_MODIFIED)\r\n\t\t\treturn true;\r\n\t\telse if (stat == DataStoreBuffer.STATUS_NEW)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"public boolean hasStackFrameChanged() {\n\t\treturn lineNumber != oldLineNumber;\n\t}",
"private boolean isModified( File file ) {\r\n\t\tString dateFromClient = request.getHeaderFields().get( HeaderFields.IF_MODIFIED_SINCE );\r\n\t\tif ( dateFromClient == null )\r\n\t\t\treturn true;\r\n\t\t// Remove last three significant digits, because convert date from\r\n\t\t// String to long lose last three significant digits.\r\n\t\tlong lastModified = ( file.lastModified() / 1000L ) * 1000L;\r\n\t\ttry {\r\n\t\t\tDate clientDate = ( Date ) Utils.DATE_FORMATE.parse( dateFromClient );\r\n\t\t\treturn lastModified > clientDate.getTime();\r\n\t\t} catch ( Exception e ) {\r\n\t\t\t// If there is exception, assume file is modified\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public void changedUpdate(DocumentEvent evt, FoldHierarchyTransaction transaction) {\n }",
"private boolean userMadeChanges() {\n\t\treturn userMadeChanges(null);\n\t}",
"void confAltered(String path, ChangeType changeType);",
"@Test\n\tpublic void testIsConsistentModifiedFile() throws Exception {\n\t\tIRodinFile rodinFile = createRodinFile(\"P/x.test\");\n\t\tRodinTestRoot root = (RodinTestRoot) rodinFile.getRoot();\n\t\tcreateNEPositive(root, \"foo\", null);\n\t\tassertFalse(\"modified file should not be consistent\", \n\t\t\t\trodinFile.isConsistent());\n\n\t\t// Should report the same after closing the file.\n\t\trodinFile.close();\n\t\tassertFalse(\"modified file should not be consistent\", \n\t\t\t\trodinFile.isConsistent());\n\t}",
"String getUpdated();",
"public String getModified() {\r\n if (modified)\r\n return \"1\";\r\n else\r\n return \"0\";\r\n }"
] | [
"0.7425166",
"0.69121295",
"0.6898267",
"0.678224",
"0.6753396",
"0.67261523",
"0.66964537",
"0.6679893",
"0.6660698",
"0.66406673",
"0.65935576",
"0.656504",
"0.6560547",
"0.6535372",
"0.6510002",
"0.6482167",
"0.6482167",
"0.6471271",
"0.6443682",
"0.6417533",
"0.641685",
"0.63984",
"0.639531",
"0.63624686",
"0.6339175",
"0.6335915",
"0.6332425",
"0.6327063",
"0.63061434",
"0.6299713",
"0.6291407",
"0.6272064",
"0.62657505",
"0.6234093",
"0.62221056",
"0.61898273",
"0.6176586",
"0.6140936",
"0.6140936",
"0.61072797",
"0.61004114",
"0.6092947",
"0.6077602",
"0.6070331",
"0.6063435",
"0.6033789",
"0.60318214",
"0.60318214",
"0.60299075",
"0.602586",
"0.5982623",
"0.59738374",
"0.59441745",
"0.59384984",
"0.59206975",
"0.5901634",
"0.5898793",
"0.5883549",
"0.5866772",
"0.58470994",
"0.5829505",
"0.5824493",
"0.5818797",
"0.58117086",
"0.580198",
"0.5795199",
"0.5778102",
"0.5777456",
"0.5769274",
"0.5743288",
"0.57323396",
"0.5727532",
"0.5715654",
"0.57016665",
"0.5690288",
"0.5685179",
"0.56842244",
"0.56790954",
"0.56745917",
"0.56653786",
"0.5658683",
"0.5658186",
"0.56549174",
"0.56547654",
"0.5653246",
"0.56532013",
"0.5640552",
"0.5638729",
"0.56341726",
"0.563316",
"0.561235",
"0.5592487",
"0.5591514",
"0.5584783",
"0.55744475",
"0.55517507",
"0.5549382",
"0.5542461",
"0.55416614",
"0.5537014",
"0.5524884"
] | 0.0 | -1 |
Indication that the scanner was unable to view the contents of the directory | void unableToListContents(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n\t\tSystem.out.println(\"Error Accessing File\"+file.toAbsolutePath());\n\t\tSystem.out.println(exc.getLocalizedMessage());\n\t\t\n\t\t\n\t\t\n\t\treturn super.visitFileFailed(file, exc);\n\t}",
"private static void checkAccess(File directory) throws IOException {\n checkAccess(directory, true); \n }",
"private void checkDirectory() {\n\t\tif( getDirectory()==null ) {\n\t\t\tthrow new LuceneIndexAccessException(\"The directory is not specified\");\n\t\t}\n\t}",
"@Override\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n LOG.warn(\"An IOException occurred while reading a file on path {} with message: {}\", file, exc.getMessage());\n LOG.debug(\"An IOException occurred while reading a file on path {} with message: {}\", file,\n LOG.isDebugEnabled() ? exc : null);\n return FileVisitResult.CONTINUE;\n }",
"boolean getFileErr();",
"public static void handleFileNotFoundException() {\n System.out.println(\"\\tUnfortunately, I could not detect any files in the database!\");\n System.out.println(\"\\tBut don't worry sir.\");\n System.out.println(\"\\tI will create the files you might be needing later.\");\n Duke.jarvis.printDivider();\n }",
"public static void couldNotReadFromFile(QWidget parent){\n \t\tQMessageBox.information(parent, \"Info\", \"En error oppsto.\"+\n \t\t\t\t\"\\nKunne ikke skrive fra fil.\");\n \t}",
"private static void file_not_found(String filename, int errno)\n\t\t\tthrows FileNotFoundException {\n\t\tswitch (errno) {\n\t\tcase ENOENT:\n\t\t\tthrow new FileNotFoundException(filename + \": not found\");\n\t\tcase ENOTDIR:\n\t\t\tthrow new FileNotFoundException(\"a component in path of \"\n\t\t\t\t\t+ filename + \" is not directory\");\n\t\t}\n\t}",
"private void showInformationAboutBrokenFile(Shell shell) {\n\t\tMessageDialog\n \t.openInformation(\n \t\t shell, \n \t\t \"Info\",\n \t\t \"There was error during test cases generation, make sure selected file is correct!\");\n\t}",
"public FileVisitResult visitFileFailed(Path file, IOException e) {\r\n\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t}",
"public FileVisitResult visitFileFailed(Path file, IOException e) {\r\n\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t}",
"public FileVisitResult visitFileFailed(Path file, IOException e) {\r\n\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t}",
"@Test\n\tpublic void testInvalidDirectory() {\n\t\tString invalidDirectory = \"\";\n\t\tString[] args = { invalidDirectory, \"debug\" };\n\t\tTypeFinder.main(args);\n\t\tString expected = TypeFinder.INVALID_PATH_ERROR_MESSAGE + FileManager.lineSeparator;\n\t\tString results = errContent.toString();\n\t\tassertEquals(expected, results);\n\t}",
"public void onFileFolderOpenFailed(File file);",
"private void showInformationAboutWrongFile(Shell shell) {\n\t\tMessageDialog\n \t.openInformation(\n \t\t shell, \n \t\t \"Info\",\n \t\t \"Please select a *.\" + TestCasePersister.FILE_EXTENSION + \" file\");\n\t}",
"private void checkFileStatus() throws CustomException, IOException\n\t{\n\t\t//For all .mgf files\n\t\tfor (int i=0; i<mgfFiles.size(); i++)\n\t\t{\n\n\t\t\tString resultFileName = \n\t\t\t\t\tmgfFiles.get(i).substring(0,mgfFiles.get(i).lastIndexOf(\".\"))+\"_Results.csv\";\n\t\t\t//TODO: Cannot write files if checking for file. \n\t\t\t/*\n\t\t\tif (isFileUnlocked(resultFileName))\n\t\t\t\tthrow new CustomException(\"Please close \"+resultFileName, null);\n\t\t\t */\n\t\t}\n\n\t}",
"@Override\n public String getMessage() {\n return \"File not found.\";\n }",
"public void errorFileEscenario() {\n\t\tvisorEscenario.errorFileEscenario();\t\n\t}",
"@Test(expected = PipelineException.class)\n public void testNonExistentDirectory() throws FileNotFoundException {\n\n KicIngester.ingestScpFiles(KicIngester.getScpFiles(\n findNonExistentDirectory(), SCP_FILENAME_PATTERN));\n }",
"@Test\n public void testLsDirectoryDoesNotExist() {\n FileTree myTree = new FileTree();\n String[] paths = {\"file\"};\n String result = \"\";\n try {\n result = myTree.ls(false, paths);\n } catch (InvalidPathException e1) {\n assertTrue(true);\n }\n\n }",
"public static void printReadFileIdentificationError() {\n System.out.println(Message.READ_FILE_IDENTIFICATION_ERROR);\n }",
"@Override\n public void fileNotFound(String path, Throwable cause) {\n headers.put(CONTENT_TYPE, MediaType.getType(\".html\"));\n send404NotFound(ctx, headers, \"404 NOT FOUND\".getBytes(), true);\n }",
"public void corruptedFileErrorMessage() {\n System.out.println(\"The file (\" + INVENTORY_FILE_PATH + \") is corrupted!\\n\"\n + \"Please exit the program and delete the corrupted file before trying to access Inventory Menu!\");\n }",
"@Override\n public boolean isDir() { return true; }",
"public DataAccessException() {\n super(\"File cannot be opened or read. Please check!\");\n }",
"protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please set the path to the Rhapsody Project !\");\n else\n if(value.length()<4)\n warning(\"isn't the path too short?\");\n else {\n \tFile file = new File(value);\n \tif (file.isDirectory()) {\n \t\terror(\"you entered a directory please select the *.rpy file !\");\n \t} else \n \t\t//TODO add more checks\n \t\tok();\n }\n\n }",
"private void reportMissingFile(JavaClass javaClass) {\n\t\tstatus.add(new Status(IStatus.ERROR, status.getPlugin(), 1, pattern\n\t\t\t\t+ \": A sourcefile for the \\\"\" + javaClass.className() + \"\\\" \"\n\t\t\t\t+ (javaClass.isInterface() ? \"interface\" : \"class\")\n\t\t\t\t+ \" is missing. Try to generate code or update the model.\"\n\t\t\t\t+ \" \", null));\n\t}",
"public List<FileWithFaultLocations> getFaultyFiles();",
"@Override\n\t\t\tpublic boolean onError(MediaPlayer mp, int what, int extra) {\n\t\t\t\tif (mOpenFailedCounter < 10 && mPlayListLen > 1) {\n\t\t\t\t\tmOpenFailedCounter++;\n\t\t\t\t\tLog.w(TAG,\n\t\t\t\t\t\t\t\"Failed to open file for playback. Try count: \"\n\t\t\t\t\t\t\t\t\t+ mOpenFailedCounter);\n\t\t\t\t\tgotoNext(false);\n\t\t\t\t} else {\n\t\t\t\t\tmOpenFailedCounter = 0;\n\t\t\t\t\tstop(true);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}",
"public static int checkDir ( String dir, boolean read_only, String provider ) {\n\t \n\t final File f = new File ( SextanteGUI.getSextantePath() + File.separator + dir ); \n\t \n\t if ( f.exists() ) {\n\t\t if ( f.isFile() ) {\n\t\t\t JOptionPane.showMessageDialog(null, \n\t\t\t\t\t Sextante.getText(\"portable_dir_error\") + \" \" + f.getAbsolutePath() + \".\\n\" + \n\t\t\t\t\t Sextante.getText(\"portable_dir_is_file\") + \"\\n\" +\n\t\t\t\t\t Sextante.getText(\"portable_provider_not_usable\") + \" <html></i>\" + provider + \"+</i>+</html>.\"\n\t\t\t\t\t , \"Inane warning\", JOptionPane.WARNING_MESSAGE);\n\t\t\t return ( 3 );\n\t\t }\n\t\t if ( read_only ) {\n\t\t\t if ( f.canRead() ) {\n\t\t\t\t return ( 0 );\n\t\t\t }\t\t\t\t \n\t\t }\n\t\t if ( f.canWrite() ) {\n\t\t\t return ( 0 );\n\t\t }\n\t\t if ( read_only ) {\n\t\t\t JOptionPane.showMessageDialog(null, \n\t\t\t\t\t Sextante.getText(\"portable_dir_error\") + \" \" + f.getAbsolutePath() +\n\t\t\t\t\t Sextante.getText(\"portable_dir_error_ro\") + \"\\n\" + \":\" +\n\t\t\t\t\t Sextante.getText(\"portable_dir_no_access\") + \"\\n\" +\n\t\t\t\t\t Sextante.getText(\"portable_provider_not_usable\") + \" <html></i>\" + provider + \"+</i>+</html>.\"\n\t\t\t\t\t , \"Inane warning\", JOptionPane.WARNING_MESSAGE);\n\t\t } else {\n\t\t\t JOptionPane.showMessageDialog(null, \n\t\t\t\t\t Sextante.getText(\"portable_dir_error\") + \" \" + f.getAbsolutePath() +\n\t\t\t\t\t Sextante.getText(\"portable_dir_error_rw\") + \"\\n\" + \":\" +\n\t\t\t\t\t Sextante.getText(\"portable_dir_no_access\") + \"\\n\" +\n\t\t\t\t\t Sextante.getText(\"portable_provider_not_usable\") + \" <html></i>\" + provider + \"+</i>+</html>.\"\n\t\t\t\t\t , \"Inane warning\", JOptionPane.WARNING_MESSAGE);\t\t\t \n\t\t }\n\t\t return ( 2 );\t\t \n\t }\n\t \n\t /* directory does not exist: attempt to create it */\n\t if ( f.mkdir() == false ) {\n\t\t JOptionPane.showMessageDialog(null, \n\t\t\t\t Sextante.getText(\"portable_dir_error\") + \" \" + f.getAbsolutePath() + \".\\n\" + \n\t\t\t\t Sextante.getText(\"portable_dir_no_create\") + \"\\n\" +\n\t\t\t\t Sextante.getText(\"portable_provider_not_usable\") + \" <html></i>\" + provider + \"+</i>+</html>.\"\n\t\t\t\t , \"Inane warning\", JOptionPane.WARNING_MESSAGE);\t\t \n\t\t return ( 1 );\n\t }\n\t \n\t return ( 0 );\n }",
"public boolean isDir() { return false; }",
"public static void printFileError() {\n printLine();\n System.out.println(\" Oops! Something went wrong with duke.txt\");\n printLine();\n }",
"private void checkFile() {\n \ttry {\n \t\tdata = new BufferedReader(\n \t\t\t\t new FileReader(textFile));\n \t\t\n \t}\n \tcatch(FileNotFoundException e)\n \t{\n \t\tSystem.out.println(\"The mentioned File is not found.\");\n System.out.println(\"\");\n\t\t\tSystem.exit(1);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"The following error occured while reading the file.\");\n\t\t\tex.printStackTrace();\n\t\t\tSystem.exit(2);\n\t\t}\n }",
"protected void handleLs() {\r\n\t\tSystem.out.printf(\"Listing available files.%n\");\r\n\r\n\t\tFile[] availableFiles = new File(fileBase).listFiles();\r\n\r\n\t\tif (availableFiles == null) {\r\n\t\t\tSystem.err.printf(\"%s is not a directory.%n\", fileBase);\r\n\t\t\tsendMessage(String.valueOf(ERROR));\r\n\t\t} else {\r\n\t\t\tsendMessage(String.valueOf(availableFiles.length));\r\n\r\n\t\t\t/* send each file name */\r\n\t\t\tfor (File file : availableFiles) {\r\n\t\t\t\tsendMessage(file.getName());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override protected void failed(Throwable e) {\n logger.log(Level.WARNING, \"couldn't load \" + getFile(), e);\n String msg = getResourceMap().getString(\"loadFailedMessage\", getFile());\n String title = getResourceMap().getString(\"loadFailedTitle\");\n int type = JOptionPane.ERROR_MESSAGE;\n JOptionPane.showMessageDialog(app.getFrame().getFrame(), msg, title, type);\n }",
"@Override\n public void onTransferIOError(TransferDiskIOErrorAlert alert) {\n }",
"protected void validateFile() {\r\n\t\tFile f = new File(FileUltil.joinPath(dOutputFolder, dFileName));\r\n\t\tif (f.exists() && !f.isDirectory()) {\r\n\t\t\tdFileName = \"Copy of \" + dFileName;\r\n\t\t\tvalidateFile();\r\n\t\t}\r\n\t}",
"protected void checkOpen() throws IOException {\n if (this.stopRequested.get() || this.abortRequested) {\n throw new IOException(\"Server not running\");\n }\n if (!fsOk) {\n throw new IOException(\"File system not available\");\n }\n }",
"public boolean errorFound()\r\n\t{\r\n\t\t\r\n\t}",
"private FileValidationReport createFileNotAccessibleReport() {\n\t\tFileValidationReport fileValRep = new FileValidationReport();\n\t\tfileValRep.setValidationOutcome(ValidationOutcome.NOT_VALID);\n\t\tfileValRep.setFitsExecutionOutcome(ExecutionOutcome.DID_NOT_RUN);\n\t\tfileValRep.setVeraPdfExecutionOutcome(ExecutionOutcome.DID_NOT_RUN);\n\t\tfileValRep.getErrorMessages().add(\"File can not be accessed\");\n\t\treturn fileValRep;\n\t}",
"@Override\n\tpublic int getFileStatus() {\n\t\treturn 0;\n\t}",
"public abstract boolean isDirectory() throws AccessException;",
"private void validateSource(SourcePointer.FileSource src) {\n File f = src.path.toFile();\n if (!f.exists() || !f.canRead()) {\n throw new SolrException(\n ErrorCode.BAD_REQUEST,\n String.format(\n Locale.US, \"File at %s either does not exist or cannot be read.\", src.path));\n }\n }",
"static void walkTheDir(){ \n\t try (Stream<Path> paths = Files.walk(Paths.get(\"/ownfiles/tullverketCert/source\"))) {\n\t \t paths\n\t \t .filter(Files::isRegularFile)\n\t \t //.forEach(System.out::println);\n\t \t .forEach( e ->{\n\t \t \t\tSystem.out.println(e);\n\t \t \t\tSystem.out.println(e.getParent());\n\t \t \t\t\n\t \t \t});\n\t \t \n \t}catch (Exception e) { \n\t System.out.println(\"Exception: \" + e); \n\t } \n\t }",
"private void validateSearch(File directory, File output) {\r\n\t\t\t// validate task directory\r\n\t\t\tif (directory == null)\r\n\t\t\t\tthrow new NullPointerException(\r\n\t\t\t\t\t\"Task directory cannot be null.\");\r\n\t\t\telse if (directory.isDirectory() == false)\r\n\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\tString.format(\"Task directory \\\"%s\\\" must be a directory.\",\r\n\t\t\t\t\t\tdirectory.getAbsolutePath()));\r\n\t\t\telse if (directory.canRead() == false)\r\n\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\tString.format(\"Task directory \\\"%s\\\" must be readable.\",\r\n\t\t\t\t\t\tdirectory.getAbsolutePath()));\r\n\t\t\t// validate output file\r\n\t\t\tif (output == null)\r\n\t\t\t\tthrow new NullPointerException(\"Output file cannot be null.\");\r\n\t\t\telse if (output.exists())\r\n\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\tString.format(\"Output file \\\"%s\\\" must not exist before \" +\r\n\t\t\t\t\t\t\"analyzing task results.\", output.getAbsolutePath()));\r\n\t\t}",
"private void checkFileSystemResource(UserRequest ureq) {\n\n if (FolderCommandStatus.STATUS_FAILED == FolderCommandHelper.sanityCheck(getWindowControl(), folderComponent)) {\n folderComponent.updateChildren();\n }\n\n VFSItem item = VFSManager.resolveFile(folderComponent.getRootContainer(), ureq.getModuleURI());\n\n if (FolderCommandStatus.STATUS_FAILED == FolderCommandHelper.sanityCheck2(getWindowControl(), folderComponent, ureq, item)) {\n folderComponent.setCurrentContainerPath(folderComponent.getCurrentContainerPath());\n }\n\n }",
"private void scanAllDirectories()\n throws IOException, InstanceNotFoundException {\n\n int errcount = 0;\n final StringBuilder b = new StringBuilder();\n for (ObjectName key : scanmap.keySet()) {\n final DirectoryScannerMXBean s = scanmap.get(key);\n try {\n if (state == STOPPED) return;\n s.scan();\n } catch (Exception ex) {\n LOG.log(Level.FINE,key + \" failed to scan: \"+ex,ex);\n errcount++;\n append(b,\"\\t\",ex);\n }\n }\n if (errcount > 0) {\n b.insert(0,\"scan partially performed with \"+errcount+\" error(s):\");\n throw new RuntimeException(b.toString());\n }\n }",
"public void handleNotSupportVideoFile() {\n ToastUtils.makeText((Context) this.mActivity, (int) R.string.video_editor_not_support_tips);\n if (this.mData != null) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"file\", this.mData.toString());\n GallerySamplingStatHelper.recordCountEvent(\"video_editor\", \"video_editor_not_support\", hashMap);\n }\n exit();\n }",
"private File findNonExistentDirectory() throws FileNotFoundException {\n final int MAX_TRIES = 10000;\n for (int i = 0; i < MAX_TRIES; i++) {\n File dir = new File(TMP_DIR_BASE + i);\n if (!dir.exists()) {\n return dir;\n }\n }\n\n throw new FileNotFoundException(\"Directories from \" + TMP_DIR_BASE\n + \"/0 to \" + TMP_DIR_BASE + \"/\" + MAX_TRIES + \" already exist\");\n }",
"private void check() {\n Path pathroot = getPath();\n // check the path is file or directory\n checkFileOrDirectory(pathroot);\n }",
"static void viewFiles()\r\n\t {\n\t\t File directoryPath = new File(\"D:\\\\java_project\");\r\n\t File filesList[] = directoryPath.listFiles();\r\n System.out.println(\"List of files and directories in the specified directory:\");\r\n\t for(File file : filesList) \r\n\t {\r\n\t System.out.println(\"File name: \"+file.getName());\r\n\t System.out.println(\"File path: \"+file.getAbsolutePath());\r\n\t System.out.println(\"Size :\"+file.getTotalSpace());\r\n\t System.out.println(\"last time file is modified :\"+new Date(file.lastModified()));\r\n System.out.println(\" \");\r\n\t }\r\n }",
"public boolean check_file_status(String StTextFileName) throws Exception\r\n\t{\r\n\t\t//try\r\n\t//\t{\r\n\t\t\tFile file = new File(StTextFileName);\r\n\r\n\t\t\tif (file.exists() == false)\r\n\t\t\t{\r\n\t\t\t JOptionPane.showMessageDialog(frame ,\"~~ WARNING ~~ \\n \\n The selected file is not a valid file... \\n Please Select Another File . \\n \",\"WARNING\",JOptionPane.ERROR_MESSAGE); //JOptionPane.WARNING_MESSAGE);\r\n \t\t\t l = new log(\"warning\",\"File\",\"<\"+StSourceFileName+\">\"+ \" Not Exist, Please Select Another File .\"); //info\r\n \t\t\t return false;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t l = new log(\"info\",\"File\",\"<\"+StSourceFileName+\">\" + \" Exist\");\t\t\t \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (file.isDirectory() == true)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(frame ,\"~~ WARNING ~~ \\n \\n The selected file is not a valid file... \\n Please Select Another File . \\n \",\"WARNING\",JOptionPane.ERROR_MESSAGE); //JOptionPane.WARNING_MESSAGE);\t\t\t\r\n\t\t\t\tl = new log(\"warning\",\"File\",\"<\"+StTextFileName+\">\"+ \" is not a File, Please Select Another File .\" );\t\t\t\t\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t//File Exist + is a file.\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n/*\t\t\tstr = null;\r\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(StTextFileName));\r\n\t\t\t\r\n\r\n\t\t\twhile ((str = in.readLine()) != null)\r\n\t\t\t{\r\n\t\t\t\tintTotalLineNumber++;\r\n\t\t\t\tintTotalCharInFile = intTotalCharInFile + str.length();\r\n\t\t\t}\r\n\t\t\tin.close();\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\t//l = new log(\"warning\",\"File\",\"<\"+StTextFileName+\">\"+ \" is not a File, Please Select Another File \" + e + \".\" );\r\n\t\t\tJOptionPane.showMessageDialog(frame ,\"~~ WARNING ~~ \\n \\n The selected file is not a valid file... \\n Please Select Another File . \\n \",\"WARNING\",JOptionPane.ERROR_MESSAGE); //JOptionPane.WARNING_MESSAGE);\t\t\t\r\n\t\t\tl = new log(\"warning\",\"File\",\"<\"+StTextFileName+\">\"+ \" is not a File, Please Select Another File .\" );\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t\t}\r\n*/\r\n\t\t\t\t\r\n//\t\treturn true;\r\n\t}",
"private void showInvalidFileFormatError()\n {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Image Load Error\");\n alert.setHeaderText(null);\n alert.setContentText(\"The file was not recognized as an image file.\");\n\n alert.showAndWait();\n }",
"private static void checkAccess(File directory, boolean isWriteable) throws IOException {\n if(!directory.exists()) {\n if(directory.mkdirs()) {\n logger.debug(\"Created directory [{}]\", directory.getCanonicalPath());\n } else {\n throw new IOException(\"Could not create directory \" +\n \"[\"+directory.getCanonicalPath()+\"], \" +\n \"make sure you have the proper \" +\n \"permissions to create, read & write \" +\n \"to the file system\");\n }\n }\n // Find if we can write to the record root directory\n if(!directory.canRead())\n throw new IOException(\"Cant read from : \"+directory.getCanonicalPath());\n if(isWriteable) {\n if(!directory.canWrite())\n throw new IOException(\"Cant write to : \"+directory.getCanonicalPath());\n }\n }",
"private String validatePathToDir(String pathToDir) throws NotDirectoryException {\n if (Files.isDirectory(Path.of(pathToDir))){\n return pathToDir;\n }\n else {\n throw new NotDirectoryException(\"The path given to the directory is not good\");\n }\n }",
"public void showLoadingError() {\n System.out.println(\"Duke has failed to load properly.\");\n }",
"private void checkEtd(File path) {\n\tresetColors();\n\n\tif (!path.exists()){\n\t etdFilesOk = false;\n\t tdbFilesField.setBackground(errorColor);\n\t errorMessageLabel.setText(\"The specified directory does not exist.\");\n\t return;\n\t}\n\n\tString[] files = path.list();\n\tint etdFilesCount = 0;\n\n\tfor (int i = 0; i < files.length; i++){\n\t if (files[i].matches(\"^.+\\\\.etd$\")){\n\t\tetdFilesCount++;\n\t }\n\t}\n\n\tif (etdFilesCount > 0) {\n\t etdFilesOk = true;\n\t}\n\telse {\n\t tdbFilesField.setBackground(errorColor);\n\t errorMessageLabel.setText(\"No .etd files found in the specified directory.\");\n\t etdFilesOk = false;\n\t}\n }",
"public String processCDUP() {\n boolean upOK = false;\n String retour = null;\n int lastSlash = currentDir.lastIndexOf(\"/\");\n String currentUp = currentDir.substring(0, lastSlash);\n System.out.println(currentUp);\n if (currentUp.contains(root)) {\n upOK = true;\n }\n File wanted = new File(currentUp);\n if (wanted.exists() && upOK) {\n System.out.println(\"File exist\");\n currentDir = currentUp;\n retour = \"250 Requested file action okay, completed.\";\n ps.println(\"250 Requested file action okay, completed.\");\n } else {\n if (!upOK) {\n System.out.println(\"Illegal acces\");\n retour = \"550 Illegal access\";\n ps.println(\"550 Illegal access\");\n } else {\n System.out.println(\"File doesn't exist\");\n retour = \"550 Doesn't exist\";\n ps.println(\"550 Doesn't exist\");\n }\n }\n return retour;\n }",
"private void checkPermission() {\n if (ContextCompat.checkSelfPermission(MainActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);\n }\n }",
"@ExceptionHandler(value=FileNotFound.class)\n\tpublic void resolveException(String ex,HttpServletResponse response) {\n\t\ttry {\n\t\t\tresponse.getOutputStream().println(\"Warning: File vuoto\\nException message: \"+ex);\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t}\n\t}",
"void fileTransferFailed(IMSession session, String requestId, ReasonInfo reason);",
"public static void printReadFileAddTaskError() {\n System.out.println(Message.READ_FILE_ADD_TASK_ERROR);\n }",
"public void checkFile() {\n\t\tFile file = new File(\"src/Project11Problem1Alternative/names.txt\");\n\t\tSystem.out.println(file.exists() ? \"Exists!\" : \"Doesn't exist!\");\n\t\tSystem.out.println(file.canRead() ? \"Can read!\" : \"Can't read!\");\n\t\tSystem.out.println(file.canWrite() ? \"Can write!\" : \"Can't write!\");\n\t\tSystem.out.println(\"Name: \" + file.getName());\n\t\tSystem.out.println(\"Path: \" + file.getPath());\n\t\tSystem.out.println(\"Size: \" + file.length() + \" bytes\");\n\t}",
"public void testNonExistentFile() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n boolean success =\n job.processFile(NON_EXISTENT_FILE, new ByteArrayOutputStream());\n assertEquals(\"Should record exactly one exception\",\n job.getExceptionArray().length, 1);\n assertFalse(\"Should fail on missing file\", success);\n }",
"private void checkFileOrDirectory(Path pathroot) {\n if (Files.notExists(pathroot)) { // Checking path is valid path or the path is exist\n System.out.println(\"Not a valid Path \" + pathroot);\n } else if (Files.isDirectory(pathroot)) {// checking path contains file if contain file display message\n System.out.println(\"It is Directory\");\n } else {\n System.out.println(\"This is File\"); // printing the path is directory\n }\n }",
"@Test\n public void accessDeniedFile() throws CommandException {\n ExportCommand command = new ExportCommand(\".txt\", \"C:/Windows/a\");\n command.setData(model, null, null, null);\n if (os.indexOf(\"win\") > 0) {\n assertEquals(command.execute(), new CommandException(MESSAGE_ACCESS_DENIED));\n }\n }",
"@Test(groups={\"it\"})\r\n\tpublic void testTestNGFailedFilePresent() throws Exception {\r\n\t\t\r\n\t\texecuteSubTest(1, new String[] {\"com.seleniumtests.it.stubclasses.StubTestClassForDriverTest\"}, ParallelMode.METHODS, new String[] {\"testDriverWithFailure\"});\r\n\t\t\r\n\t\t// check files are there\r\n\t\tAssert.assertTrue(Paths.get(SeleniumTestsContextManager.getGlobalContext().getOutputDirectory(), \"testng-failed.xml\").toFile().isFile());\r\n\t\t\r\n\t}",
"@Override\n\t\t\t\t\t\tpublic void failed() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载失败\");\n\t\t\t\t\t\t}",
"public void process() throws Exception {\n\tFile curDir = new File(pathToInputFolder);\n\tFile[] filesList = curDir.listFiles();\n\tlist=list(filesList);\n\t\n\tif(list.length==0) System.out.println(\"No file in the specified directory\");\n\n\t}",
"@Override\r\n\tpublic void networkErrorHappened() {\r\n\t\t//Tracker\r\n\t\tTracker.getInstance().trackPageView(\"directory/searchView/network_error\");\r\n\t\t\r\n\t\tInputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\r\n\t\timm.hideSoftInputFromWindow(mInputBar.getWindowToken(), 0);\r\n\t\t\r\n\t\tmLayout.setText(getString(R.string.directory_network_error));\r\n\t\t\r\n\t\tmAdapter = new ArrayAdapter<String>(getApplicationContext(), R.layout.sdk_list_entry, R.id.sdk_list_entry_text, new ArrayList<String>());\r\n\r\n\t\tmListView.setAdapter(mAdapter);\r\n\t\tmListView.invalidate();\r\n\t}",
"@Test\n public void testGetDirectoryDoesNotExist() {\n FileTree myTree = new FileTree();\n String[] file = {\"file1\"};\n boolean result = false;\n try {\n String name = myTree.getDirectory(file[0]).getName();\n } catch (NotDirectoryException e) {\n result = true;\n }\n assertTrue(result);\n }",
"@GetMapping(\"/access-denied\")\n\tpublic String displayAccessDeniedPage() {\n\t\treturn \"error/access-denied\";\n\t}",
"@Test\n public void testFileInDirectoryFileDoesNotExists() {\n\n assertFalse(parent.fileInDirectory(\"file1\"));\n }",
"public void invalidSkip() {\n JOptionPane.showMessageDialog(frame, \"Invalid skip\", \"Invalid skip\", JOptionPane.ERROR_MESSAGE);\n\n }",
"@Test\n public void testCdDoesNotExsist() {\n FileTree myTree = new FileTree();\n boolean result = false;\n try{\n myTree.cd(\"/test\");\n }\n catch (NotDirectoryException e){\n result = true;\n }\n assertTrue(result);\n }",
"@Test\n public void accessDeniedFolder() throws CommandException {\n ExportCommand command = new ExportCommand(\".txt\", \"C:/Windows/a\");\n command.setData(model, null, null, null);\n if (os.indexOf(\"win\") > 0) {\n assertEquals(command.execute(), new CommandException(MESSAGE_ACCESS_DENIED));\n }\n }",
"public boolean verifyFileOrDirectory(String path, boolean showErrors) throws IOException{\r\n\t\tFile directory = new File(path);\r\n\t\tif(!directory.canRead()){\r\n\t\t\tif(showErrors) throw new IOException(REPERTOIRE_NON_VISIBLE);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\r\n\t}",
"@Override\r\n\tpublic void tooManyResults(int nb) {\r\n\t\tmLayout.setText( getString(R.string.directory_too_many_results_warning) );\r\n\t}",
"private void openDownloadedFolder() {\n if (new CheckForSDCard().isSDCardPresent()) {\n\n //Get Download Directory File\n File apkStorage = new File(\n Environment.getExternalStorageDirectory() + \"/\"\n + Utils.downloadDirectory);\n\n //If file is not present then display Toast\n if (!apkStorage.exists())\n Toast.makeText(MainActivity.this, \"Right now there is no directory. Please download some file first.\", Toast.LENGTH_SHORT).show();\n\n else {\n\n //If directory is present Open Folder\n\n /** Note: Directory will open only if there is a app to open directory like File Manager, etc. **/\n\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath()\n + \"/\" + Utils.downloadDirectory);\n intent.setDataAndType(uri, \"file/*\");\n startActivity(Intent.createChooser(intent, \"Open Download Folder\"));\n }\n\n } else\n Toast.makeText(MainActivity.this, \"Oops!! There is no SD Card.\", Toast.LENGTH_SHORT).show();\n\n\n }",
"private static int m2538d(Context context) {\n try {\n File file = new File(Log.m2547a(context, Log.f1857e));\n if (file.exists()) {\n return file.list().length;\n }\n return 0;\n } catch (Throwable th) {\n BasicLogHandler.m2542a(th, \"StatisticsManager\", \"getFileNum\");\n return 0;\n }\n }",
"@Override\n\tpublic void onDeviceFileListGetFailed(FunDevice funDevice) {\n\n\t}",
"public boolean isDir() { return _entry==null; }",
"boolean shouldAllowMissingSourceDir() {\n return allowMissingSourceDir;\n }",
"public static void printReadFileDateError() {\n System.out.println(Message.READ_FILE_DATE_ERROR);\n }",
"public void scan() throws ScanErrorException\n {\n while(! eof)\n {\n Token next = nextToken();\n if (next != null)\n System.out.println(next);\n }\n\n try\n {\n in.close();\n }\n catch (IOException e)\n {\n System.err.println(\"Catastrophic File IO error.\\n\" + e);\n System.exit(1); \n //exit with nonzero exit code to indicate catastrophic error\n }\n }",
"public static int checkFile ( String file, boolean read_only, String provider ) {\n\t \n\t final File f = new File ( SextanteGUI.getSextantePath() + File.separator + file ); \n\t \n\t if ( f.exists() ) {\n\t\t if ( f.isDirectory() ) {\n\t\t\t JOptionPane.showMessageDialog(null, \n\t\t\t\t\t Sextante.getText(\"portable_file_error\") + \" \" + f.getAbsolutePath() + \".\\n\" + \n\t\t\t\t\t Sextante.getText(\"portable_file_is_dir\") + \"\\n\" +\n\t\t\t\t\t Sextante.getText(\"portable_provider_not_usable\") + \" <html></i>\" + provider + \"+</i>+</html>.\"\n\t\t\t\t\t , \"Inane warning\", JOptionPane.WARNING_MESSAGE);\n\t\t\t return ( 3 );\n\t\t }\n\t\t if ( read_only ) {\n\t\t\t if ( f.canRead() ) {\n\t\t\t\t return ( 0 );\n\t\t\t }\t\t\t\t \n\t\t }\n\t\t if ( f.canWrite() ) {\n\t\t\t return ( 0 );\n\t\t }\n\t\t if ( read_only ) {\n\t\t\t JOptionPane.showMessageDialog(null, \n\t\t\t\t\t Sextante.getText(\"portable_file_error\") + \" \" + f.getAbsolutePath() +\n\t\t\t\t\t Sextante.getText(\"portable_file_error_ro\") + \"\\n\" + \":\" +\n\t\t\t\t\t Sextante.getText(\"portable_file_no_access\") + \"\\n\" +\n\t\t\t\t\t Sextante.getText(\"portable_provider_not_usable\") + \" <html></i>\" + provider + \"+</i>+</html>.\"\n\t\t\t\t\t , \"Inane warning\", JOptionPane.WARNING_MESSAGE);\n\t\t } else {\n\t\t\t JOptionPane.showMessageDialog(null, \n\t\t\t\t\t Sextante.getText(\"portable_file_error\") + \" \" + f.getAbsolutePath() +\n\t\t\t\t\t Sextante.getText(\"portable_file_error_rw\") + \"\\n\" + \":\" +\n\t\t\t\t\t Sextante.getText(\"portable_file_no_access\") + \"\\n\" +\n\t\t\t\t\t Sextante.getText(\"portable_provider_not_usable\") + \" <html></i>\" + provider + \"+</i>+</html>.\"\n\t\t\t\t\t , \"Inane warning\", JOptionPane.WARNING_MESSAGE);\t\t\t \n\t\t }\n\t\t return ( 2 );\t\t \n\t }\n\t \n\t return ( 1 );\n }",
"@Test\n\tpublic void testBadRead(){\n\t\ttry{\n\t\t\tXMLReader reader = new XMLReader(\"nonExistent\");\n\t\t\treader.close();\n\t\t\tfail(\"XMLReader should not have been able to read nonexistent file\");\n\t\t} catch (FileNotFoundException e){\n\t\t}\n\t}",
"@Test\n public void AppFileError() {\n try{\n App.main(new String[]{TEST_PATH + \"asdfghjkl-nice.dot\",\"1\"});\n }catch(RuntimeException re){\n assertEquals(re.getMessage(),\"Input file does not exist\");\n }\n }",
"void fileReceiveFailed(IMSession session, String requestId, String fileId, ReasonInfo reason);",
"@Override\r\n\tpublic InputStream getFile(String filepath) throws FileSystemUtilException {\r\n\t\t\r\n\t\tthrow new FileSystemUtilException(\"000000\",null,Level.ERROR,null);\t\r\n\r\n\t}",
"public interface DirectoryChangeListener\n{\n /** Addition of files */\n public static final int ADDITION = 1;\n\n /** Removal of files */\n public static final int REMOVAL = 2;\n\n /** Modification of files */\n public static final int MODIFICATION = 3;\n\n /**\n * Indication that some file or files have been changed.\n *\n * @param type Type of change to the directory\n * @param fileSet a Set of files\n */\n public void directoryChange( int type, Set fileSet );\n\n /**\n * Indication that the scanner was unable to view the contents of the directory\n */\n void unableToListContents();\n}",
"private void checkDirHistory(VssProject project) {\r\n try {\r\n File dirHistory = getVss().getDirHistory(project);\r\n BufferedReader r = Util.openReader(dirHistory, config.getLogEncoding());\r\n try {\r\n String s;\r\n while ((s = r.readLine()) != null) {\r\n if (s.endsWith(\" recovered\")\r\n || s.endsWith(\" destroyed\")\r\n || s.endsWith(\" branched\")\r\n || s.endsWith(\" shared\")\r\n || s.indexOf(\" renamed to \") != -1\r\n ) {\r\n incrementalWarning = true;\r\n break;\r\n }\r\n }\r\n } finally {\r\n r.close();\r\n }\r\n } catch (IOException e) {\r\n throw new VssException(e);\r\n }\r\n }",
"@Override\n public boolean isDirectory(File directory) {\n\treturn false;\n }",
"public void execute_downloadSelectNotesCommand_veryInvalidFileIndex() {\n DownloadSelectNotesCommand command = new DownloadSelectNotesCommand(INCORRECT_USERNAME,\n INCORRECT_PASSWORD, CORRECT_MODULE_CODE, VERY_INCORRECT_FILE_INDEX);\n assertCommandFailure(command, model, commandHistory, Messages.MESSAGE_FILE_INDEX_ERROR\n + DownloadSelectNotesCommand.NEWLINE_SEPARATOR + DownloadSelectNotesCommand.MESSAGE_USAGE);\n }",
"public void unknownFile(final PrintWriter errout, final String file)\n {\n printMessage(errout, Level.ERROR, \"unknown_file\", \"Tidy\", file);\n }",
"@Test(timeout = 4000)\n public void test22() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/A_X-0;;JLT_;1IJDVA.XML\");\n FileSystemHandling.createFolder(evoSuiteFile0);\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n File file0 = fileUtil0.getAccessories(\"X-0;;JLT_;1iJdvA\", arrayList0);\n assertNotNull(file0);\n assertTrue(file0.canWrite());\n assertEquals(\"A_X-0;;JLT_;1IJDVA.XML\", file0.getName());\n }",
"@ExceptionHandler(StorageFileNotFoundException.class)\n public ResponseEntity<?> handleStorageFileNotFound(StorageFileNotFoundException exc) {\n return ResponseEntity.notFound().build();\n }",
"DukeFileWriteException(String errorMsg, String displayMsg) {\n super(errorMsg, displayMsg);\n }",
"private boolean canRead() {\n\t\treturn fileStatus;\n\t}",
"private void processCurrentMediaError(Exception ex){\n logger.error(Thread.currentThread().getName() + \" can't open [\" + streamSpec.getAudioMedias().get(0) + \"], skipping file\", ex);\n consumeMedia(0);\n frameIterator = SilentMediaReader.getInstance();\n updateCurrentMedia(null);\n status = Status.PLAYING_SILENCE;\n for (StreamListener listener : streamListeners) {\n listener.mediaChanged();\n }\n }"
] | [
"0.6387748",
"0.6063948",
"0.5993267",
"0.59331876",
"0.5879806",
"0.5845094",
"0.58070564",
"0.5746762",
"0.5660292",
"0.5656003",
"0.5656003",
"0.5656003",
"0.5611992",
"0.55668485",
"0.5561394",
"0.5532373",
"0.5492942",
"0.54357356",
"0.54259956",
"0.5401421",
"0.5395001",
"0.5352033",
"0.5346205",
"0.5312793",
"0.5309451",
"0.5286378",
"0.5274011",
"0.5224234",
"0.52207816",
"0.52106476",
"0.5178422",
"0.5166365",
"0.51342565",
"0.5120742",
"0.5110534",
"0.5104746",
"0.5090482",
"0.5071703",
"0.50599736",
"0.50597316",
"0.505021",
"0.504369",
"0.5029918",
"0.5029112",
"0.5012616",
"0.5006436",
"0.50042903",
"0.49961048",
"0.4996099",
"0.49812618",
"0.49792492",
"0.49773097",
"0.49656084",
"0.49493182",
"0.49463552",
"0.49434835",
"0.49419302",
"0.49402383",
"0.4929811",
"0.49168947",
"0.4910169",
"0.4903889",
"0.4902538",
"0.48991415",
"0.48986742",
"0.4896658",
"0.48942757",
"0.48823974",
"0.4878255",
"0.48749104",
"0.48634022",
"0.4848261",
"0.48474988",
"0.48421368",
"0.47932014",
"0.47915864",
"0.47766313",
"0.47743413",
"0.4771687",
"0.47655135",
"0.4761363",
"0.47570795",
"0.47551268",
"0.47549936",
"0.4754479",
"0.47531447",
"0.47516397",
"0.4748774",
"0.47483784",
"0.47446033",
"0.47364798",
"0.47284055",
"0.47183496",
"0.47182336",
"0.47144607",
"0.47142363",
"0.47113988",
"0.47075257",
"0.47035384",
"0.47023955"
] | 0.47349864 | 91 |
Only relevant for MessageType.REQUEST_TRUMPF | public void setSchiebenAllowed(boolean isSchiebenAllowed) {
this.isSchiebenAllowed = isSchiebenAllowed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"teledon.network.protobuffprotocol.TeledonProtobufs.TeledonRequest.Type getType();",
"net.iGap.proto.ProtoRequest.Request getRequest();",
"protected String getRequestMessage() {\n NbaTXRequestVO nbaTXRequest = new NbaTXRequestVO();\n nbaTXRequest.setTransType(NbaOliConstants.TC_TYPE_MIBFOLLOWUP);\n nbaTXRequest.setTransMode(NbaOliConstants.TC_MODE_ORIGINAL);\n nbaTXRequest.setBusinessProcess(NbaUtils.getBusinessProcessId(getUser()));\n //create txlife with default request fields\n NbaTXLife nbaTXLife = new NbaTXLife(nbaTXRequest);\n TXLife tXLife = nbaTXLife.getTXLife();\n UserAuthRequestAndTXLifeRequest userAuthRequestAndTXLifeRequest = tXLife.getUserAuthRequestAndTXLifeRequest();\n userAuthRequestAndTXLifeRequest.deleteUserAuthRequest();\n TXLifeRequest tXLifeRequest = userAuthRequestAndTXLifeRequest.getTXLifeRequestAt(0);\n \tnbaTXLife.getTXLife().setVersion(NbaOliConstants.OLIFE_VERSION_39_02); \n \tOLifE olife = nbaTXLife.getTXLife().getUserAuthRequestAndTXLifeRequest().getTXLifeRequestAt(0).getOLifE();\n \tolife.setVersion(NbaOliConstants.OLIFE_VERSION_39_02); \n\n tXLifeRequest.setPrimaryObjectID(CARRIER_PARTY_1);\n tXLifeRequest.setMaxRecords(getMibFollowUpMaxRecords());\n tXLifeRequest.setStartRecord(getStartRecord().intValue());\n tXLifeRequest.setStartDate(NbaUtils.addDaysToDate(getStartDate(),-1));\n tXLifeRequest.setEndDate(NbaUtils.addDaysToDate(getEndDate(),-1));\n tXLifeRequest.setTestIndicator(getTestIndicator());\n MIBRequest mIBRequest = new MIBRequest();\n tXLifeRequest.setMIBRequest(mIBRequest);\n MIBServiceDescriptor mIBServiceDescriptor = new MIBServiceDescriptor();\n MIBServiceDescriptorOrMIBServiceConfigurationID mIBServiceDescriptorOrMIBServiceConfigurationID = new MIBServiceDescriptorOrMIBServiceConfigurationID();\n mIBServiceDescriptorOrMIBServiceConfigurationID.addMIBServiceDescriptor(mIBServiceDescriptor);\n mIBRequest.setMIBServiceDescriptorOrMIBServiceConfigurationID(mIBServiceDescriptorOrMIBServiceConfigurationID);\n mIBServiceDescriptor.setMIBService(NbaOliConstants.TC_MIBSERVICE_CHECKING);\n OLifE oLifE = tXLifeRequest.getOLifE();\n Party party = new Party();\n oLifE.addParty(party);\n party.setId(CARRIER_PARTY_1);\n party.setPartyTypeCode(NbaOliConstants.OLIX_PARTYTYPE_CORPORATION);\n party.setPersonOrOrganization(new PersonOrOrganization());\n party.getPersonOrOrganization().setOrganization(new Organization());\n Carrier carrier = new Carrier();\n party.setCarrier(carrier);\n carrier.setCarrierCode(getCurrentCarrierCode());\n String responseMessage = nbaTXLife.toXmlString();\n if (getLogger().isDebugEnabled()) {\n getLogger().logDebug(\"TxLife 404 Request Message:\\n \" + responseMessage);\n }\n return responseMessage;\n }",
"com.indosat.eai.catalist.standardInputOutput.RequestType getRequest();",
"@Override\n\tpublic String createMsg_request() {\n\t\treturn null;\n\t}",
"pb4server.AskFightInfoAskReq getAskFightInfoAskReq();",
"public String getRequestMessage()\r\n/* 34: */ {\r\n/* 35:26 */ return this.requestMessage;\r\n/* 36: */ }",
"@Override\r\n\t\t\tprotected Vector prepareRequests(ACLMessage request) {\n\t\t\t\tString incomingRequestKey = (String) ((AchieveREResponder) parent).REQUEST_KEY;\r\n\t\t\t\tACLMessage incomingRequest = (ACLMessage) getDataStore().get(incomingRequestKey);\r\n\t\t\t\t// Prepare the request to forward to the responder\r\n\t\t\t\tSystem.out.println(\"Agent \"+getLocalName()+\": Forward the request to \"+bestOffer.getName());\r\n\t\t\t\tACLMessage outgoingRequest = new ACLMessage(ACLMessage.REQUEST);\r\n\t\t\t\toutgoingRequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\t\toutgoingRequest.addReceiver(bestOffer);\r\n\t\t\t\toutgoingRequest.setContent(incomingRequest.getContent());\r\n\t\t\t\toutgoingRequest.setReplyByDate(incomingRequest.getReplyByDate());\r\n\t\t\t\tVector v = new Vector(1);\r\n\t\t\t\tv.addElement(outgoingRequest);\r\n\t\t\t\treturn v;\r\n\t\t\t}",
"proto.MessagesProtos.ClientRequest.MessageType getType();",
"netty.framework.messages.TestMessage.TestRequest getRequest();",
"pb4server.GiveRansomAskReq getGiveRansomAskReq();",
"pb4server.FireFightAskReq getFireFightAskReq();",
"TransmissionProtocol.Request getRequest(int index);",
"public String getRequestType() { return this.requestType; }",
"TxnRequestProto.TxnRequest getTxnrequest();",
"protected byte[] onRequest(String topic, String item, int uFmt)\n {\n return null;\n }",
"java.util.List<TransmissionProtocol.Request> \n getRequestList();",
"pb4client.TransportRequest getReq(int index);",
"pb4server.BuffBagAskReq getBuffBagAskReq();",
"private void generalRequest(LocalRequestType type) {\n\n\t\tPosition carPosition = null;\n\n\t\tif (Storage.getInstance().getCarPosition().isPresent()) {\n\t\t\tcarPosition = Storage.getInstance().getCarPosition().get();\n\t\t}\n\n\t\tLocalRequest request = new LocalRequest(\"id\" + this.requestIndex, type, Storage.getInstance().getUserPosition(),\n\t\t\t\tcarPosition, this.privateReplyChannel);\n\t\tthis.requestIndex++;\n\t\tGson gson = new GsonBuilder().create();\n\t\tString json = gson.toJson(request);\n\t\ttry {\n\t\t\tchannel.basicPublish(R.LOCAL_INTERACTIONS_CHANNEL, \"\", null, json.getBytes());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n\tpublic String viewmessage_request() {\n\t\treturn null;\n\t}",
"private LoanProtocol ProcessTransferRequest(LoanProtocol protocol)\n\t{\n\t\t// only change the type of the protocol to answer\n\t\tprotocol.setType(messageType.TransferAnswer);\n\t\treturn protocol;\n\t}",
"@Override\n\tpublic String getRequestType() {\n\t\treturn null;\n\t}",
"public int getR_RequestType_ID();",
"pb4server.TransportResAskReq getTransportResAskReq();",
"@Override\n public Type getType() {\n return Type.TypeRequest;\n }",
"pb4server.FindBuffIsHaveAskReq getFindBuffIsHaveAskReq();",
"io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Request getRequest();",
"long requestId();",
"long requestId();",
"java.util.List<? extends TransmissionProtocol.RequestOrBuilder> \n getRequestOrBuilderList();",
"private void parseCompleteReqMessage() {\r\n byte result = _partialMessage.get(0);\r\n byte opCode = _partialMessage.get(1);\r\n byte numberOfParams = _partialMessage.get(2);\r\n\r\n /* cursor of bytes within 'message'. Parameters start at position 2 */\r\n int messageIndex = 3;\r\n int availableChars = (int) _partialMessage.size();\r\n\r\n List<String> paramList = new ArrayList<>();\r\n String param;\r\n\r\n for (byte i = 0; (i < numberOfParams) && (messageIndex < availableChars); i++) {\r\n param = \"\";\r\n\r\n /* collect data up to terminator */\r\n while ((messageIndex < availableChars) &&\r\n (_partialMessage.get(messageIndex) != '\\0')) {\r\n param += (char)((byte)(_partialMessage.get(messageIndex)));\r\n ++ messageIndex;\r\n }\r\n\r\n /* skip after terminator */\r\n if (messageIndex < availableChars) {\r\n ++ messageIndex;\r\n }\r\n\r\n paramList.add( param);\r\n }\r\n\r\n _replyDispatcher.onReplyReceivedForRequest(opCode, result, paramList);\r\n }",
"public int getMsgType(){\r\n return localMsgType;\r\n }",
"pb4server.ArenaFightAskReq getArenaFightAskReq();",
"@Override\r\n\tprotected byte[] handleSpecificRequest(String request) {\r\n\t\tif (!Utils.isEmpty(request)) {\r\n\t\t\tlogger.info(\"$$$$$$$$$$$$Message received at Tracking Server:\" + request);\r\n\t\t\tif (request.startsWith(NODE_REQUEST_TO_SERVER.FILE_LIST.name())) {\r\n\t\t\t\thandleFileUpdateMessage(request);\r\n\t\t\t\treturn Utils.stringToByte(SharedConstants.COMMAND_SUCCESS);\r\n\t\t\t} else if (request.startsWith(NODE_REQUEST_TO_SERVER.FIND.name())) {\r\n\t\t\t\tString peers = handleFindFileRequest(request);\r\n\t\t\t\treturn Utils.stringToByte((Utils.isEmpty(peers) ? SharedConstants.COMMAND_FAILED\r\n\t\t\t\t\t\t: SharedConstants.COMMAND_SUCCESS) + SharedConstants.COMMAND_PARAM_SEPARATOR + peers);\r\n\r\n\t\t\t} else if (request.startsWith(NODE_REQUEST_TO_SERVER.FAILED_PEERS.name())) {\r\n\t\t\t\thandleFailedPeerRequest(request);\r\n\t\t\t\treturn Utils.stringToByte(SharedConstants.COMMAND_SUCCESS);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn Utils.stringToByte(SharedConstants.INVALID_COMMAND);\r\n\r\n\t}",
"public PBFTReply createNullReplyMessage(PBFTRequest request){\n return new PBFTReply(request, null, getLocalServerID(), getCurrentViewNumber());\n }",
"com.exacttarget.wsdl.partnerapi.QueryRequestMsgDocument.QueryRequestMsg getQueryRequestMsg();",
"public synchronized void handle(PBFTRequest r){\n \n Object lpid = getLocalServerID();\n\n JDSUtility.debug(\"[handle(request)] s\" + lpid + \", at time \" + getClockValue() + \", received \" + r);\n\n StatedPBFTRequestMessage loggedRequest = getRequestInfo().getStatedRequest(r);\n \n /* if the request has not been logged anymore and it's a old request, so it was garbage by checkpoint procedure then I must send a null reply */\n if(loggedRequest == null && getRequestInfo().isOld(r)){\n IProcess client = new BaseProcess(r.getClientID());\n PBFTReply reply = new PBFTReply(r, null, lpid, getCurrentViewNumber());\n emit(reply, client);\n return;\n \n }\n \n try{\n /*if the request is new and hasn't added yet then it'll be added */\n if(loggedRequest == null){\n /* I received a new request so a must log it */\n loggedRequest = getRequestInfo().add(getRequestDigest(r), r, RequestState.WAITING);\n loggedRequest.setRequestReceiveTime(getClockValue());\n }\n\n /* if I have a entry in request log but I don't have the request then I must update my request log. */\n if(loggedRequest.getRequest() == null) loggedRequest.setRequest(r);\n \n /*if the request was served the I'll re-send the related reply if it has been logged yet.*/\n if(loggedRequest.getState().equals(RequestState.SERVED)){\n JDSUtility.debug(\"[handle(request)] s\" + lpid + \" has already served \" + r);\n\n /* retransmite the reply when the request was already served */\n PBFTReply reply = getRequestInfo().getReply(r);\n IProcess client = new BaseProcess(r.getClientID());\n emit(reply, client);\n return;\n }\n \n /* If I'm changing then I'll do nothing more .*/\n if(changing()) return;\n\n PBFTPrePrepare pp = getPrePreparebackupInfo().get(getCurrentViewNumber(), getCurrentPrimaryID(), loggedRequest.getDigest());\n\n if(pp != null && !isPrimary()){\n /* For each digest in backuped pre-prepare, I haven't all request then it'll be discarded. */\n DigestList digests = new DigestList();\n for(String digest : pp.getDigests()){\n if(!getRequestInfo().hasRequest(digest)){\n digests.add(digest);\n }\n }\n \n if(digests.isEmpty()){\n handle(pp);\n getPrePreparebackupInfo().rem(pp);\n return;\n } \n }\n\n boolean committed = loggedRequest.getState().equals( RequestState.COMMITTED );\n \n// /* if my request was commit and it hasn't been served yet I must check the stated of the request */\n if(committed){\n tryExecuteRequests();\n return;\n }\n \n /* performs the batch procedure if the server is the primary replica. */\n if(isPrimary()){\n JDSUtility.debug(\"[handle(request)] s\" + lpid + \" (primary) is executing the batch procedure for \" + r + \".\");\n batch();\n }else{\n /* schedules a timeout for the arriving of the pre-prepare message if the server is a secundary replica. */\n scheduleViewChange();\n }//end if is primary\n \n }catch(Exception e){\n e.printStackTrace();\n }\n }",
"entities.Torrent.ChunkRequest getChunkRequest();",
"@Property\n public native MintRequestType getRequestType ();",
"@Override\n\tpublic void receiveRequest() {\n\n\t}",
"private synchronized void processWpsNeeded(int nRequestType, int nTbfMs)\n {\n /* look at the type of WPS request and start/stop the Wifi fix session*/\n if (Config.LOGD)\n {\n Log.d(TAG,\"WPS NEEDED request type: \"+nRequestType+\" tbf: \"+nTbfMs);\n }\n Message wpsMsg = Message.obtain(mHandler, nRequestType);\n wpsMsg.arg1 = nTbfMs;\n mHandler.sendMessage(wpsMsg);\n }",
"public static String getRequestType(){\n return requestType;\n }",
"java.util.List<pb4client.TransportRequest> \n getReqList();",
"public OtherResponse sendMT(String mobilenumber, String message, String shortcode, int carrierid, int campaignid, Date sendat, String msgfxn, int priority, String fteu, float tariff) throws PrepException, SQLException, JAXBException, SAXException, MalformedURLException, IOException{\n String response;\n\n if(canSendMT(mobilenumber)){\n //System.out.print(\"User with mobile number:\"+mobilenumber+\" exist!\");\n\n String mt_request_xml = createXml(mobilenumber, message, shortcode, carrierid, campaignid, sendat, msgfxn, priority, fteu, tariff);\n response = postMT(mt_request_xml);\n\n com.novartis.xmlbinding.mt_response.Response res = getResponse(response);\n\n\n\n List<String> statusmsg = getStatusmessage(response);\n\n return new OtherResponse(res.getStatus(), statusmsg);\n }\n else{//if user not registerd or opted-in send back message on how to register for GetOnTrack\n String registerMsg = \"Novartis Pharmaceuticals Corp: You have to register for the GetOnTrack BP Tracker to use the service. Didn't mean to? Call 877-577-7726 for more information\";\n String mt_request_xml = createXml(mobilenumber, registerMsg, shortcode, carrierid, campaignid, sendat, msgfxn, priority, fteu, tariff);\n response = postMT(mt_request_xml);\n com.novartis.xmlbinding.mt_response.Response res = getResponse(response);\n //com.novartis.xmlbinding.mt_response.Response res = getResponse(\"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?><response><mts><mt><mobilenumber>\"+mobilenumber+\"</mobilenumber></mt></mts><status>FAIL</status><statusmessage><exceptions><exception>User not opted in for SMS</exception></exceptions></statusmessage></response>\");\n\n\n //System.out.print(\"User with mobile number:\"+mobilenumber+\" does not exist!\");\n List<String> statusmsg = getStatusmessage(response);\n\n return new OtherResponse(res.getStatus(), statusmsg);\n }\n\n }",
"public ZserioType getRequestType()\n {\n return requestType;\n }",
"public ch.iec.tc57._2011.schema.message.RequestMessageType addNewRequestMessage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ch.iec.tc57._2011.schema.message.RequestMessageType target = null;\n target = (ch.iec.tc57._2011.schema.message.RequestMessageType)get_store().add_element_user(REQUESTMESSAGE$0);\n return target;\n }\n }",
"public int getRequestState() {\n\t\treturn _tempNoTiceShipMessage.getRequestState();\n\t}",
"pb4server.SendNoticeToLeaderAskReq getSendNoticeToLeaderAskReq();",
"pb4server.WorldChatAskReq getWorldChatAskReq();",
"@Override\n\tprotected void updateTargetRequest() {\n\t}",
"public String request(ViaRequestPacketEntity packet);",
"pb4server.MassSpeedAskReq getMassSpeedAskReq();",
"public ProtocolResult getRequest() {\n\t\t\n\t\tif( hasReachedTimeout() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.2\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\tif (isParticipant() && (getState() == RequestProtocolState.NOT_STARTED)) {\n\t\t\t\t\n\t\t\t\tACLMessage message = getRefAclAgent().getACLMessage(EnumFipaProtocol.FIPA_REQUEST, Performative.REQUEST);\n\t\t\t\t\n\t\t\t\tif (message != null) {\n\t\t\t\t\tinitiate(message.getSender(), getRefAclAgent().getAddress());\n\t\t\t\t\t\n\t\t\t\t\tsetConversationId(message.getConversationId());\n\t\t\t\t\tsetState(RequestProtocolState.WAITING_REQUEST);\n\t\t\t\t\t\n\t\t\t\t\tresetStartedTime();\n\t\t\t\t\t\n\t\t\t\t\treturn new ProtocolResult(message.getSender(), Performative.REQUEST, message.getContent().getContent().toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (isInitiator()) {\n\t\t\t\taddError(Locale.getString(\"FipaRequestProtocol.3\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\telse {\n\t\t\t\taddError(Locale.getString(\"FipaRequestProtocol.4\")); //$NON-NLS-1$\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"pb4server.WalkSpeedAskReq getWalkSpeedAskReq();",
"protected void processRequest(String input) {\r\n\t \r\n\t String[] variables = input.split(\",\");\r\n\t Message myMessage = new Message(variables[0], Integer.valueOf(variables[1]),Integer.valueOf(variables[2]), variables[3],Integer.valueOf(variables[4]), Boolean.parseBoolean(variables[5]), variables[6]);\r\n\t String action = myMessage.getAction();\r\n\t switch (action) {\r\n\tcase \"Setup\":\r\n\t\tmyMessage.setAction(\"Nothing\");\r\n\t\tthis.myItems = new ArrayList<Message>();\r\n\t\tmyItems.add(myMessage);\r\n\t\tbreak;\r\n\tcase \"Buy\":\r\n\t\tbreak;\r\n\r\n\tcase \"Bid\":\r\n\t\tbreak;\r\n\t\t\r\n\t\t\r\n\t\r\n\tcase \"TimeOut\":\r\n\t\tbreak;\r\n\t\r\n\t//Continue without any action\r\n\tcase \"Nothing\":\r\n\t\tbreak;\r\n\t}\r\n\t \r\n\t \r\n\t \r\n\t return;\r\n }",
"private DatagramPacket getRequestPacket() {\n String requestFile = \"REQUEST \", filePath;\n DatagramPacket packet;\n if (ip != null) {\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n System.out.print(\"Enter file name: \");\n filePath = reader.readLine();\n try {\n fileSavePath = filePath.substring(0, filePath.indexOf(\".\")) + \"_copy\" \n + filePath.substring(filePath.indexOf(\".\"));\n } catch(StringIndexOutOfBoundsException e) {\n System.out.println(\"Time: \" + System.currentTimeMillis() + \"\\t\" + \n \"Warning file has no extension\");\n fileSavePath = filePath + \"_copy\";\n }\n requestFile += filePath + \"\\n\\r\";\n byte[] data = requestFile.getBytes();\n packet = new DatagramPacket(data, data.length, ip, port);\n return packet;\n } catch (IOException ex) {\n Logger.getLogger(FClientSAW.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return null;\n }",
"com.exacttarget.wsdl.partnerapi.QueryRequestMsgDocument.QueryRequestMsg addNewQueryRequestMsg();",
"@Override\n public RequestInput getRequestMessage()\n {\n return new RequestRocketLauncher(checkAvailableMode(), checkPlayersBasicMode(), checkRocketJumpColors(), checkSquareToMoveBasicMode(), allSquaresNoMove());\n\n }",
"private int ParseRQ(byte[] buf, StringBuffer requestedFile) {\n // See \"TFTP Formats\" in TFTP specification for the RRQ/WRQ request contents\n StringBuilder stringBuilder = new StringBuilder();\n\n for (int i = 2; i < buf.length; i++) {\n\n if ((char) buf[i] == '\\0') {\n break;\n } else {\n stringBuilder.append((char) buf[i]);\n }\n }\n\n requestedFile.append(stringBuilder.toString());\n ByteBuffer wrap = ByteBuffer.wrap(buf);\n int opcode = wrap.getShort();\n\n return opcode;\n }",
"@Override\n\t\tpublic String getTimeoutMessage() {\n\t\t\treturn \"req\";\n\t\t}",
"pb4server.AddDecreeAskReq getAddDecreeAskReq();",
"public void reqbkpkt(byte[]req) \r\n\t{\n\r\n\r\n\t}",
"private int ParseRQ(byte[] buf, StringBuffer requestedFile, StringBuffer mode)\n {\n // See \"TFTP Formats\" in TFTP specification for the RRQ/WRQ request contents\n\n ByteBuffer wrap= ByteBuffer.wrap(buf);\n short opcode = wrap.getShort();\n\n // We can now parse the request message for opcode and requested file as:\n\n int readBytes = 2;// where readBytes is the number of bytes read into the byte array buf.\n\n //filename is followed by 1 byte of 0s\n while (buf[readBytes] != 0)\n readBytes ++;\n\n String fileName = new String(buf, 2, readBytes-2); //converts readBytes to the length of the filename\n\n requestedFile.append(fileName); //Store the filename in the StringBuffer\n\n //parse transfer mode, we are supposed to do that but I am not sure what to use it for atm\n\n readBytes ++; //\"step over\" 0 that signified the end of the filename\n int offset = readBytes; //save the offset for mode\n\n //mode is followed by 1 byte of 0s\n while (buf[readBytes] != 0)\n readBytes ++;\n\n //readBytes - offset give length of the mode; saving the mode in lower case for convenience\n mode.append(new String(buf, offset, readBytes - offset).toLowerCase());\n System.out.println(\"OPCODE: \" + opcode);\n System.out.println(\"FILENAME: \" + fileName);\n System.out.println(\"MODE: \" + mode);\n return opcode;\n }",
"@Override\r\n public boolean isRequest() {\n return false;\r\n }",
"void requestId(long requestId);",
"void requestId(long requestId);",
"@Override\n\tprotected void reqError(Message msg) {\n\t\tsuper.reqError(msg);\n\t\tswitch (msg.arg1) {\n\t\tcase FusionCode.REQUEST_QRYGRPMEMBER:\n\t\tcase FusionCode.REQUEST_ADDRINGTOGROUP:\n\t\tcase FusionCode.REQUEST_ADDNEWGROUP:\n\t\tcase FusionCode.REQUEST_QRYGRP:\n\t\t}\n\t\tstopPbarU();\n\t}",
"ChatRecord.Req getChatRecordReq();",
"pb4server.Walk4ScoutAskReq getWalk4ScoutAskReq();",
"private List<TOMMessage> getRequestsToRelay() {\n\n List<TOMMessage> messages = lcManager.getCurrentRequestTimedOut();\n\n if (messages == null) {\n\n messages = new LinkedList<>();\n }\n\n // Include requests from STOP messages in my own STOP message\n List<TOMMessage> messagesFromSTOP = lcManager.getRequestsFromSTOP();\n if (messagesFromSTOP != null) {\n\n for (TOMMessage m : messagesFromSTOP) {\n\n if (!messages.contains(m)) {\n\n messages.add(m);\n }\n }\n }\n\n logger.debug(\"I need to relay \" + messages.size() + \" requests\");\n\n return messages;\n }",
"@Override\n public void receiveRequest(final Request request) {\n\n }",
"public void beforeSendingeGainChatRequest();",
"teledon.network.protobuffprotocol.TeledonProtobufs.TeledonResponse.Type getType();",
"pb4server.EatPoisonNumAskReq getEatPoisonNumAskReq();",
"public void handleSend(ActionEvent actionEvent) {\r\n String to=textFieldTo.getText();\r\n try{\r\n Long idto = Long.parseLong(to);\r\n\r\n FriendshipRequest request = new FriendshipRequest();\r\n Tuple<Long,Long> f = new Tuple<>(user.getId(), idto);\r\n request.setId(f);\r\n\r\n service.addRequest(request);\r\n showMessage(Alert.AlertType.CONFIRMATION,\"Request sent!\",\"Request is now pending!\");\r\n\r\n textFieldTo.clear();\r\n\r\n\r\n }catch(NumberFormatException exception){\r\n showMessage(Alert.AlertType.ERROR,\"Error\",exception.toString());\r\n }catch (ServiceException exception){\r\n showMessage(Alert.AlertType.ERROR,\"Error\",exception.toString());\r\n }\r\n }",
"@Override\n\tpublic void processRequest(RequestEvent requestEvent) {\n\t\t requestEvent.getServerTransaction();\n\t\tSystem.out.println(\"Sending ------------------------------------------------------------------------------------------\");\n\t\tSystem.out.println(\"[]:\"+requestEvent.toString());\n\t}",
"private void clearFriendlistReq() {\n if (reqCase_ == 9) {\n reqCase_ = 0;\n req_ = null;\n }\n }",
"public boolean addPutRequest( CellMessage msg , RequestImpl req ){\n // assign a new bitfile to this request\n //\n String group = req.getStorageGroup() ;\n String bfid = new Bfid().toString() ;\n long size = req.getFileSize() ;\n req.setBfid( bfid ) ;\n \n say( \"addPutRequest : bfid=\"+bfid+\";group=\"+group+\";size=\"+size ) ;\n \n BitfileId bitfile = new BitfileId( bfid , size ) ;\n bitfile.setParameter( req.getParameter() ) ;\n //\n // store the bitfile into the database\n try{\n _dataBase.storeBitfileId( group , bitfile ) ;\n }catch( DatabaseException dbe ){\n String error = \"StorageGroup not found : \"+group ;\n req.setReturnValue( 11 , error ) ;\n msg.revertDirection() ;\n esay( \"Sending problem : \"+error ) ;\n try{\n sendMessage( msg ) ;\n }catch(Exception ee ){\n esay( \"PANIC : can't return error msg to \"+msg.getDestinationPath() ) ;\n }\n return false ;\n }\n //\n // send the first BB-OK\n //\n CellPath bbReplyPath = (CellPath)msg.getSourceAddress().clone() ;\n bbReplyPath.revert() ;\n try{\n sendMessage( new CellMessage( bbReplyPath , req ) ) ;\n }catch(Exception nrtc ){\n esay( \"Door cell seems to have disappeared\" ) ;\n return false ;\n }\n \n return true ;\n \n }",
"com.google.protobuf.ByteString\n getRequestBytes();",
"com.randomm.server.ProtoBufMessage.Message.InputType getType();",
"private void clearGetTokenReq() {\n if (reqCase_ == 4) {\n reqCase_ = 0;\n req_ = null;\n }\n }",
"private void getUnsettledTransactionListRequest() {\r\n\t\tBasicXmlDocument document = new BasicXmlDocument();\r\n\t\tdocument.parseString(\"<\" + TransactionType.GET_UNSETTLED_TRANSACTION_LIST.getValue()\r\n\t\t\t\t+ \" xmlns = \\\"\" + XML_NAMESPACE + \"\\\" />\");\r\n\r\n\t\taddAuthentication(document);\r\n\r\n\t\tcurrentRequest = document;\r\n\t}",
"pb4server.ResurgenceAskReq getResurgenceAskReq();",
"com.indosat.eai.catalist.standardInputOutput.RequestType addNewRequest();",
"private String requesttosend() throws IOException {\n\t\tsender.sendMsg(Constants.REQSEND);\r\n\t\t//等待接收的返回状态\r\n\t\treturn sender.getMsg();\r\n\t}",
"@Override\r\n\t\tpublic void action() {\n\t\t\t\r\n\t\t\tACLMessage request = new ACLMessage (ACLMessage.REQUEST);\r\n\t\t\trequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\trequest.addReceiver(new AID(\"BOAgent\",AID.ISLOCALNAME));\r\n\t\t\trequest.setLanguage(new SLCodec().getName());\t\r\n\t\t\trequest.setOntology(RequestOntology.getInstance().getName());\r\n\t\t\tInformMessage imessage = new InformMessage();\r\n\t\t\timessage.setPrice(Integer.parseInt(price));\r\n\t\t\timessage.setVolume(Integer.parseInt(volume));\r\n\t\t\ttry {\r\n\t\t\t\tthis.agent.getContentManager().fillContent(request, imessage);\r\n\t\t\t} catch (CodecException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (OntologyException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tthis.agent.addBehaviour(new AchieveREInitiator(this.agent, request)\r\n\t\t\t{\t\t\t\r\n\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = -8866775600403413061L;\r\n\r\n\t\t\t\tprotected void handleInform(ACLMessage inform)\r\n\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}",
"AddFriendFromOther.Rsp getAddFriendFromOtherRsp();",
"@Override\n\tpublic void action() {\n\n\t\tif(this.step.equals(STATE_INIT))\n\t\t{\n\t\t\tthis.nbVoters = 0;\n\t\t\tthis.nbAsynchronousPlayers = 0;\n\t\t\tthis.globalResults = new VoteResults();\n\t\t\tthis.agentSender = null;\n\t\t\tthis.request = null;\n\t\t\tthis.currentTime = -1;\n\t\t\tthis.results = new VoteResults();\n\t\t\tthis.nextStep = STATE_RECEIVE_REQUEST;\n\n\n\t\t}\n\n\t\telse if(this.step.equals(STATE_RECEIVE_REQUEST))\n\t\t{\n\t\t\t/*** reception demande de vote **/\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"VOTE_REQUEST\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message != null)\n\t\t\t{\n\t\t\t\tthis.agentSender = message.getSender();\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\n\t\t\t\t\t//System.err.println(\"[RQST INITIAL] \"+message.getContent());\n\n\t\t\t\t\tthis.request = mapper.readValue(message.getContent(), VoteRequest.class);\n\t\t\t\t\tthis.request.setLocalVoteResults(this.results);\n\t\t\t\t\tthis.results.initWithChoice(this.request.getChoices());\n\n\t\t\t\t\tFunctions.newActionToLog(\"Début vote \"+this.request.getRequest(),this.myAgent, this.controllerAgent.getGameid());\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tthis.nextStep = SEND_REQUEST_GLOBAL_VOTE_RESULTS;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\n\t\t\t}\n\n\t\t}\n\t\telse if(this.step.equals(SEND_REQUEST_GLOBAL_VOTE_RESULTS))\n\t\t{\n\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\tif(!agents.isEmpty())\n\t\t\t{\n\t\t\t\tACLMessage message = new ACLMessage(ACLMessage.REQUEST);\n\t\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\t\tfor(AID aid : agents)\n\t\t\t\t{\n\t\t\t\t\tmessage.addReceiver(aid);\n\t\t\t\t}\n\t\t\t\tmessage.setConversationId(\"GLOBAL_VOTE_RESULTS\");\n\n\t\t\t\tthis.myAgent.send(message);\n\t\t\t}\n\n\t\t\tthis.nextStep = RECEIVE_REQUEST_GLOBAL_VOTE_RESULTS;\n\t\t}\n\t\telse if(this.step.equals(RECEIVE_REQUEST_GLOBAL_VOTE_RESULTS))\n\t\t{\n\t\t\t/*** reception demande de vote **/\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"GLOBAL_VOTE_RESULTS\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message != null)\n\t\t\t{\n\n\t\t\t\t//System.out.println(\"CTRL Reception de global results\");\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tthis.globalResults = mapper.readValue(message.getContent(), VoteResults.class);\n\t\t\t\t\tthis.request.setGlobalCitizenVoteResults(this.globalResults);\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tthis.nextStep = STATE_GET_SIMPLE_SUSPICION;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\n\t\t\t}\n\t\t}\t\t\n\t\telse if(this.step.equals(STATE_SEND_REQUEST))\n\t\t{\n\t\t\tACLMessage messageRequest = new ACLMessage(ACLMessage.REQUEST);\n\t\t\tmessageRequest.setSender(this.myAgent.getAID());\n\t\t\tmessageRequest.setConversationId(\"VOTE_REQUEST\");\n\n\t\t\tint reste = this.request.getAIDVoters().size()-this.nbVoters;\n\t\t\tif(false )// reste >= Data.MAX_SYNCHRONOUS_PLAYERS)\n\t\t\t{\n\t\t\t\t/** hybrid synchronous mode **/\n\t\t\t\tthis.nbAsynchronousPlayers = (int) (Math.random()*Math.min(Data.MAX_SYNCHRONOUS_PLAYERS-1, (reste-1)))+1;\n\t\t\t\t//System.err.println(\"HYDBRID ASYNCRHONOUS ENABLED BECAUSE TOO MANY PARTICIPANTS \"+this.nbAsynchronousPlayers+\" in //\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.nbAsynchronousPlayers = 1;\n\t\t\t}\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\n\t\t\tString json =\"\";\n\n\t\t\ttry {\t\t\n\t\t\t\tjson = mapper.writeValueAsString(this.request);\t\n\t\t\t\tSystem.err.println(\"[RQST] \"+json);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmessageRequest.setContent(json);\n\t\t\tfor(int i = 0; i<this.nbAsynchronousPlayers; ++i)\n\t\t\t{\n\t\t\t\t//System.err.println(\"DK ENVOI REQUEST \"+this.request.getAIDVoters().get(this.nbVoters+i).getLocalName());\n\t\t\t\tmessageRequest.addReceiver(this.request.getAIDVoters().get(this.nbVoters+i));\t\n\t\t\t}\n\n\t\t\tthis.myAgent.send(messageRequest);\n\n\t\t\tthis.nextStep = STATE_RECEIVE_INFORM;\n\t\t}\n\t\telse if(this.step.equals(STATE_RECEIVE_INFORM))\n\t\t{\n\t\t\tif(this.currentTime == -1)\n\t\t\t{\n\t\t\t\tthis.currentTime = System.currentTimeMillis();\n\t\t\t}\n\n\t\t\tif(System.currentTimeMillis() - this.currentTime > 3000)\n\t\t\t{\n\t\t\t\tthis.currentTime = -1;\n\t\t\t\tACLMessage wakeup = new ACLMessage(ACLMessage.UNKNOWN);\n\t\t\t\twakeup.setSender(this.myAgent.getAID());\n\t\t\t\tif(nbVoters < this.request.getVoters().size())\n\t\t\t\t{\n\t\t\t\t\twakeup.addReceiver(this.request.getAIDVoters().get(nbVoters));\n\t\t\t\t\twakeup.setConversationId(\"WAKEUP\");\n\t\t\t\t\tthis.myAgent.send(wakeup);\n\n\t\t\t\t\tSystem.out.println(\"Relance du joueur \"+this.request.getAIDVoters().get(nbVoters).getLocalName()+\" ...\");\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"VOTE_INFORM\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message!=null)\n\t\t\t{\n\t\t\t\tthis.currentTime = -1;\n\t\t\t\t++this.nbVoters;\n\t\t\t\t--this.nbAsynchronousPlayers;\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\tVoteResults res = new VoteResults();\n\t\t\t\ttry {\n\t\t\t\t\tres = mapper.readValue(message.getContent(), VoteResults.class);\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tAID aidPlayer = message.getSender();\n\n\t\t\t\tthis.results.add(res);\n\n\t\t\t\tif(this.request.getRequest().equals(\"CITIZEN_VOTE\")&&\n\t\t\t\t\t\tDFServices.containsGameAgent(aidPlayer, \"PLAYER\", \"MAYOR\", this.myAgent, this.controllerAgent.getGameid()))\n\t\t\t\t{\n\t\t\t\t\t/** poids double **/\n\t\t\t\t\tthis.results.add(res);\n\t\t\t\t\tthis.globalResults.add(res);\n\t\t\t\t}\n\n\n\t\t\t\t//envoi du resultat partiel \n\t\t\t\tString json = \"\";\n\t\t\t\tmapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tjson = mapper.writeValueAsString(this.results);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tACLMessage msg = new ACLMessage(ACLMessage.AGREE);\n\t\t\t\tmsg.setContent(json);\n\t\t\t\tmsg.setSender(this.myAgent.getAID());\n\t\t\t\tmsg.setConversationId(\"NEW_VOTE_RESULTS\");\n\n\t\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tif(!agents.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfor(AID aid : agents)\n\t\t\t\t\t{\n\t\t\t\t\t\tmsg.addReceiver(aid);\n\t\t\t\t\t}\n\t\t\t\t\tthis.myAgent.send(msg);\n\t\t\t\t}\n\n\t\t\t\t///\tSystem.err.println(\"\\nSV : \"+this.nbVoters+\"/\"+this.request.getAIDVoters().size());\n\n\t\t\t\tif(this.nbVoters >= this.request.getAIDVoters().size())\n\t\t\t\t{\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\t//System.err.println(\"SV next step\");\n\t\t\t\t\tthis.nextStep = STATE_RESULTS;\n\t\t\t\t}\n\t\t\t\telse if(this.nbAsynchronousPlayers > 0)\n\t\t\t\t{\n\t\t\t\t\t//System.err.println(\"SV waiting other\");\n\t\t\t\t\tthis.nextStep = STATE_RECEIVE_INFORM;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"SV send request to other\");\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\t\n\t\t\t}\n\t\t}\n\n\n\t\telse if(this.step.equals(STATE_GET_SIMPLE_SUSPICION))\n\t\t{\n\t\t\tACLMessage messageRequest = new ACLMessage(ACLMessage.REQUEST);\n\t\t\tmessageRequest.setSender(this.myAgent.getAID());\n\t\t\tmessageRequest.setConversationId(\"GET_SIMPLE_SUSPICION\");\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\n\t\t\tString json =\"\";\n\n\t\t\ttry {\t\t\n\t\t\t\tjson = mapper.writeValueAsString(this.request);\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmessageRequest.setContent(json);\n\t\t\tfor(AID aid : this.request.getAIDVoters()){\n\t\t\t\tmessageRequest.addReceiver(aid);\t\n\t\t\t}\n\n\t\t\tthis.nbVoters = 0;\n\t\t\tthis.myAgent.send(messageRequest);\n\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t}\n\t\telse if(this.step.equals(STATE_ADD_SIMPLE_SUSPICION))\n\t\t{\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"GET_SIMPLE_SUSPICION\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message!=null)\n\t\t\t{\n\t\t\t\t++this.nbVoters;\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\tSuspicionScore suspicionScore = new SuspicionScore();\n\t\t\t\ttry {\n\t\t\t\t\tsuspicionScore = mapper.readValue(message.getContent(), SuspicionScore.class);\n\t\t\t\t\t//System.err.println(\"ADD PARTIAL SUSPICION \\n\"+message.getContent());\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tAID aidPlayer = message.getSender();\n\t\t\t\tthis.request.getCollectiveSuspicionScore().addSuspicionScoreGrid(aidPlayer.getName(), suspicionScore);\n\n\t\t\t\tif(this.nbVoters>= this.request.getAIDVoters().size())\n\t\t\t\t{\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\tSystem.err.println(\"SUSPICION COLLECTIVE \\n \"+this.request.getCollectiveSuspicionScore().getScore());\n\n\t\t\t\t\t//sort random\n\t\t\t\t\tCollections.shuffle(this.request.getVoters());\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t\t\tblock(1000);\n\t\t\t}\n\t\t}\n\n\t\telse if(this.step.equals(STATE_RESULTS))\n\t\t{\n\t\t\tthis.finalResults = this.results.getFinalResults();\n\n\t\t\t/** equality ? **/\n\t\t\tif(this.finalResults.size() == 1)\n\t\t\t{\n\t\t\t\tthis.nextStep = STATE_SEND_RESULTS;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//defavorisé le bouc emmissaire\n\t\t\t\tList<AID> scapegoats = DFServices.findGamePlayerAgent(Roles.SCAPEGOAT, this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tList<String> nameScapegoats = new ArrayList<String>();\n\t\t\t\tfor(AID scapegoat : scapegoats)\n\t\t\t\t{\n\t\t\t\t\tnameScapegoats.add(scapegoat.getName());\n\t\t\t\t}\n\t\t\t\tfor(String scapegoat : nameScapegoats)\n\t\t\t\t{\n\t\t\t\t\tif(this.finalResults.contains(scapegoat))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(this.request.isVoteAgainst())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.finalResults = nameScapegoats;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.finalResults.size()>1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.finalResults.remove(scapegoat);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(this.lastResults != null && this.lastResults.equals(this.finalResults))\n\t\t\t\t{\n\t\t\t\t\t/** interblocage **/\n\t\t\t\t\tArrayList<String> tmp = new ArrayList<String>();\n\n\t\t\t\t\t//System.err.println(\"INTERBLOCAGE\");\n\n\t\t\t\t\t/** random choice **/\n\t\t\t\t\ttmp.add(this.finalResults.get((int)Math.random()*this.finalResults.size()));\t\t\t\t\n\t\t\t\t\tthis.finalResults = tmp;\n\n\t\t\t\t\tthis.nextStep = STATE_SEND_RESULTS;\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// new vote with finalists\n\t\t\t\t\tthis.request.setChoices(this.finalResults);\n\n\t\t\t\t\t//sort random\n\t\t\t\t\tCollections.shuffle(this.request.getVoters());\n\n\t\t\t\t\tthis.results = new VoteResults();\n\t\t\t\t\tthis.results.initWithChoice(this.request.getChoices());\n\t\t\t\t\tthis.request.setLocalVoteResults(this.results);\n\t\t\t\t\tthis.lastResults = this.finalResults;\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(this.step.equals(STATE_SEND_RESULTS))\n\t\t{\n\t\t\tif(this.finalResults.isEmpty())\n\t\t\t{\n\t\t\t\tSystem.err.println(\"ERROR\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"RESULTS => \"+this.finalResults.get(0));\n\t\t\t}\n\n\t\t\t//envoi resultat final + maj global vote\n\t\t\tif(this.request.getRequest().equals(\"CITIZEN_VOTE\"))\n\t\t\t{\n\t\t\t\tString json = \"\";\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tjson = mapper.writeValueAsString(this.results);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tACLMessage message = new ACLMessage(ACLMessage.AGREE);\n\t\t\t\tmessage.setContent(json);\n\t\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\t\tmessage.setConversationId(\"NEW_CITIZEN_VOTE_RESULTS\");\n\n\t\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tif(!agents.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfor(AID aid : agents)\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage.addReceiver(aid);\n\t\t\t\t\t}\n\t\t\t\t\tthis.myAgent.send(message);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tACLMessage message = new ACLMessage(ACLMessage.INFORM);\n\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\tmessage.addReceiver(this.agentSender);\n\t\t\tmessage.setConversationId(\"VOTE_RESULTS\");\n\t\t\tmessage.setContent(this.finalResults.get(0));\n\n\n\t\t\tString name = this.finalResults.get(0);\n\n\t\t\tif(!this.request.isAskRequest()){\n\t\t\t\tint index = name.indexOf(\"@\");\n\t\t\t\tname = name.substring(0, index);\n\t\t\t\tFunctions.newActionToLog(\"Vote : \"+name, this.getAgent(), this.controllerAgent.getGameid());\n\t\t\t}\n\t\t\t\n\n\t\t\tthis.myAgent.send(message);\t\n\t\t\tthis.nextStep = STATE_INIT;\n\t\t}\n\n\n\n\t\tif(!this.nextStep.isEmpty())\n\t\t{\n\t\t\tthis.step = this.nextStep;\n\t\t\tthis.nextStep =\"\";\n\t\t}\n\n\n\t}",
"protected byte[] onRequest(String topic, String item, int uFmt, long hconv)\n {\n return onRequest(topic, item, uFmt);\n }",
"public void setMsgType(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n \r\n if (param==java.lang.Integer.MIN_VALUE) {\r\n localMsgTypeTracker = false;\r\n \r\n } else {\r\n localMsgTypeTracker = true;\r\n }\r\n \r\n this.localMsgType=param;\r\n \r\n\r\n }",
"protected void enqueue(StdPeerMessage message)\n {\n// if (DEBUG) {\n// if (message.type == StdPeerMessage.REQUEST) {\n// System.out.println(System.nanoTime() + \" [stdpc] enqueue: req \" + message.index + \" \" + (message.begin >> 14));\n// } else {\n// System.out.println(\"[stdpc] enqueue: \" + message.type);\n// }\n// }\n\n if (message.type == StdPeerMessage.CHOKE)\n {\n // remove reply messages with piece (block) data\n // from the send queue (due to spec)\n for (int i = sendQueue.size() - 1; 0 <= i; i--) {\n StdPeerMessage pm = sendQueue.get(i);\n if (pm.type == StdPeerMessage.PIECE) {\n sendQueue.remove(i);\n TorrentStorage.Block block = (TorrentStorage.Block) message.params;\n block.release();\n pmCache.release(pm);\n }\n }\n // set choke status\n choke = true;\n // send choke asap\n sendQueue.add(0, message);\n }\n else if (message.type == StdPeerMessage.CANCEL)\n {\n // remove the linked request if it's still in the queue\n for (int i = sendQueue.size() - 1; 0 <= i; i--) {\n StdPeerMessage pm = sendQueue.get(i);\n if ((pm.type == StdPeerMessage.REQUEST)\n && (pm.index == message.index)\n && (pm.begin == message.begin)\n && (pm.length == message.length)) // this check is redundant as length is fixed\n {\n sendQueue.remove(i);\n pmCache.release(pm);\n // don't really enqueue CANCEL as the linked request\n // has been found and removed\n pmCache.release(message);\n return;\n }\n }\n // send asap\n sendQueue.add(0, message);\n }\n else {\n if (message.type == StdPeerMessage.INTERESTED) {\n interested = true;\n }\n else if (message.type == StdPeerMessage.NOT_INTERESTED) {\n interested = false;\n }\n else if (message.type == StdPeerMessage.UNCHOKE) {\n choke = false;\n }\n\n // enqueue message\n sendQueue.add(message);\n }\n\n// sendQueue.forEach(pm -> System.out.println(\" -x> \" + System.identityHashCode(pm) + pm.type + \" ,\" + pm.index +\",\" + pm.begin +\",\" + pm.length) );\n\n }",
"@Override\n\t\t\tpublic void onDataCallBack(String request, int code) {\n\t\t\t\tLog.e(\"NewFriendsAdapter\", \"UploadMessageBox:\"+code);\n\t\t\t\tif(code == 0){\n\t\t\t\t\t//DolphinApp.getInstance().notifyMsgRTC2Family(msgInfo.getFamilyId());\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void onDataCallBack(String request, int code) {\n\t\t\t\tLog.e(\"NewFriendsAdapter\", \"UploadMessageBox:\"+code);\n\t\t\t\tif(code == 0){\n\t\t\t\t\t//DolphinApp.getInstance().notifyMsgRTC2Family(msgInfo.getFamilyId());\n\t\t\t\t}\n\t\t\t}",
"MovilizerRequest getRequestFromString(String requestString);",
"public interface Request extends Message\n\t{\n String DESTINATION = \"aether.message.dest\";\n }",
"public boolean hasReqMessage() {\n return fieldSetFlags()[1];\n }",
"private PredictRequest() {\n\t}",
"EchoedRequestType createEchoedRequestType();",
"com.google.protobuf.ByteString getResponseMessage();",
"@Override\r\n\t\t\tpublic void onRequest() {\n\t\t\t\t\r\n\t\t\t}"
] | [
"0.6382167",
"0.618543",
"0.60145843",
"0.59550065",
"0.59145665",
"0.5902934",
"0.5881971",
"0.57874",
"0.5749575",
"0.5724409",
"0.57226175",
"0.57022375",
"0.5697641",
"0.56933796",
"0.5675074",
"0.5671904",
"0.56493086",
"0.563941",
"0.5612684",
"0.5601459",
"0.5590655",
"0.55877274",
"0.55761415",
"0.55629635",
"0.5562158",
"0.5551952",
"0.5541609",
"0.55299515",
"0.55104285",
"0.55104285",
"0.54803437",
"0.5476188",
"0.5463572",
"0.5446308",
"0.5442736",
"0.5435857",
"0.54292864",
"0.5417923",
"0.5409621",
"0.540629",
"0.54054224",
"0.54025257",
"0.53983724",
"0.53740674",
"0.53721875",
"0.5319831",
"0.5317997",
"0.53137505",
"0.53068393",
"0.529872",
"0.52754956",
"0.5274927",
"0.52737457",
"0.5266411",
"0.52636385",
"0.52418363",
"0.52395606",
"0.52352554",
"0.52300066",
"0.52294534",
"0.5227892",
"0.5226018",
"0.5222597",
"0.52190167",
"0.52106917",
"0.5200252",
"0.5200252",
"0.519944",
"0.51981455",
"0.51708245",
"0.51700574",
"0.51565653",
"0.5155737",
"0.5155554",
"0.51486015",
"0.5145085",
"0.5134431",
"0.5126205",
"0.5120521",
"0.5116746",
"0.51137847",
"0.5100392",
"0.50969106",
"0.50908214",
"0.50905013",
"0.5089232",
"0.50890875",
"0.5086047",
"0.5079353",
"0.5079215",
"0.5077762",
"0.50716144",
"0.50687635",
"0.50687635",
"0.50683796",
"0.5064503",
"0.506359",
"0.5060614",
"0.5050595",
"0.50505793",
"0.5044332"
] | 0.0 | -1 |
Only relevant for MessageType.REQUEST_TRUMPF | public boolean isSchiebenAllowed() {
return isSchiebenAllowed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"teledon.network.protobuffprotocol.TeledonProtobufs.TeledonRequest.Type getType();",
"net.iGap.proto.ProtoRequest.Request getRequest();",
"protected String getRequestMessage() {\n NbaTXRequestVO nbaTXRequest = new NbaTXRequestVO();\n nbaTXRequest.setTransType(NbaOliConstants.TC_TYPE_MIBFOLLOWUP);\n nbaTXRequest.setTransMode(NbaOliConstants.TC_MODE_ORIGINAL);\n nbaTXRequest.setBusinessProcess(NbaUtils.getBusinessProcessId(getUser()));\n //create txlife with default request fields\n NbaTXLife nbaTXLife = new NbaTXLife(nbaTXRequest);\n TXLife tXLife = nbaTXLife.getTXLife();\n UserAuthRequestAndTXLifeRequest userAuthRequestAndTXLifeRequest = tXLife.getUserAuthRequestAndTXLifeRequest();\n userAuthRequestAndTXLifeRequest.deleteUserAuthRequest();\n TXLifeRequest tXLifeRequest = userAuthRequestAndTXLifeRequest.getTXLifeRequestAt(0);\n \tnbaTXLife.getTXLife().setVersion(NbaOliConstants.OLIFE_VERSION_39_02); \n \tOLifE olife = nbaTXLife.getTXLife().getUserAuthRequestAndTXLifeRequest().getTXLifeRequestAt(0).getOLifE();\n \tolife.setVersion(NbaOliConstants.OLIFE_VERSION_39_02); \n\n tXLifeRequest.setPrimaryObjectID(CARRIER_PARTY_1);\n tXLifeRequest.setMaxRecords(getMibFollowUpMaxRecords());\n tXLifeRequest.setStartRecord(getStartRecord().intValue());\n tXLifeRequest.setStartDate(NbaUtils.addDaysToDate(getStartDate(),-1));\n tXLifeRequest.setEndDate(NbaUtils.addDaysToDate(getEndDate(),-1));\n tXLifeRequest.setTestIndicator(getTestIndicator());\n MIBRequest mIBRequest = new MIBRequest();\n tXLifeRequest.setMIBRequest(mIBRequest);\n MIBServiceDescriptor mIBServiceDescriptor = new MIBServiceDescriptor();\n MIBServiceDescriptorOrMIBServiceConfigurationID mIBServiceDescriptorOrMIBServiceConfigurationID = new MIBServiceDescriptorOrMIBServiceConfigurationID();\n mIBServiceDescriptorOrMIBServiceConfigurationID.addMIBServiceDescriptor(mIBServiceDescriptor);\n mIBRequest.setMIBServiceDescriptorOrMIBServiceConfigurationID(mIBServiceDescriptorOrMIBServiceConfigurationID);\n mIBServiceDescriptor.setMIBService(NbaOliConstants.TC_MIBSERVICE_CHECKING);\n OLifE oLifE = tXLifeRequest.getOLifE();\n Party party = new Party();\n oLifE.addParty(party);\n party.setId(CARRIER_PARTY_1);\n party.setPartyTypeCode(NbaOliConstants.OLIX_PARTYTYPE_CORPORATION);\n party.setPersonOrOrganization(new PersonOrOrganization());\n party.getPersonOrOrganization().setOrganization(new Organization());\n Carrier carrier = new Carrier();\n party.setCarrier(carrier);\n carrier.setCarrierCode(getCurrentCarrierCode());\n String responseMessage = nbaTXLife.toXmlString();\n if (getLogger().isDebugEnabled()) {\n getLogger().logDebug(\"TxLife 404 Request Message:\\n \" + responseMessage);\n }\n return responseMessage;\n }",
"com.indosat.eai.catalist.standardInputOutput.RequestType getRequest();",
"@Override\n\tpublic String createMsg_request() {\n\t\treturn null;\n\t}",
"pb4server.AskFightInfoAskReq getAskFightInfoAskReq();",
"public String getRequestMessage()\r\n/* 34: */ {\r\n/* 35:26 */ return this.requestMessage;\r\n/* 36: */ }",
"@Override\r\n\t\t\tprotected Vector prepareRequests(ACLMessage request) {\n\t\t\t\tString incomingRequestKey = (String) ((AchieveREResponder) parent).REQUEST_KEY;\r\n\t\t\t\tACLMessage incomingRequest = (ACLMessage) getDataStore().get(incomingRequestKey);\r\n\t\t\t\t// Prepare the request to forward to the responder\r\n\t\t\t\tSystem.out.println(\"Agent \"+getLocalName()+\": Forward the request to \"+bestOffer.getName());\r\n\t\t\t\tACLMessage outgoingRequest = new ACLMessage(ACLMessage.REQUEST);\r\n\t\t\t\toutgoingRequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\t\toutgoingRequest.addReceiver(bestOffer);\r\n\t\t\t\toutgoingRequest.setContent(incomingRequest.getContent());\r\n\t\t\t\toutgoingRequest.setReplyByDate(incomingRequest.getReplyByDate());\r\n\t\t\t\tVector v = new Vector(1);\r\n\t\t\t\tv.addElement(outgoingRequest);\r\n\t\t\t\treturn v;\r\n\t\t\t}",
"proto.MessagesProtos.ClientRequest.MessageType getType();",
"netty.framework.messages.TestMessage.TestRequest getRequest();",
"pb4server.GiveRansomAskReq getGiveRansomAskReq();",
"pb4server.FireFightAskReq getFireFightAskReq();",
"TransmissionProtocol.Request getRequest(int index);",
"public String getRequestType() { return this.requestType; }",
"TxnRequestProto.TxnRequest getTxnrequest();",
"protected byte[] onRequest(String topic, String item, int uFmt)\n {\n return null;\n }",
"java.util.List<TransmissionProtocol.Request> \n getRequestList();",
"pb4client.TransportRequest getReq(int index);",
"pb4server.BuffBagAskReq getBuffBagAskReq();",
"private void generalRequest(LocalRequestType type) {\n\n\t\tPosition carPosition = null;\n\n\t\tif (Storage.getInstance().getCarPosition().isPresent()) {\n\t\t\tcarPosition = Storage.getInstance().getCarPosition().get();\n\t\t}\n\n\t\tLocalRequest request = new LocalRequest(\"id\" + this.requestIndex, type, Storage.getInstance().getUserPosition(),\n\t\t\t\tcarPosition, this.privateReplyChannel);\n\t\tthis.requestIndex++;\n\t\tGson gson = new GsonBuilder().create();\n\t\tString json = gson.toJson(request);\n\t\ttry {\n\t\t\tchannel.basicPublish(R.LOCAL_INTERACTIONS_CHANNEL, \"\", null, json.getBytes());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n\tpublic String viewmessage_request() {\n\t\treturn null;\n\t}",
"private LoanProtocol ProcessTransferRequest(LoanProtocol protocol)\n\t{\n\t\t// only change the type of the protocol to answer\n\t\tprotocol.setType(messageType.TransferAnswer);\n\t\treturn protocol;\n\t}",
"@Override\n\tpublic String getRequestType() {\n\t\treturn null;\n\t}",
"public int getR_RequestType_ID();",
"pb4server.TransportResAskReq getTransportResAskReq();",
"@Override\n public Type getType() {\n return Type.TypeRequest;\n }",
"pb4server.FindBuffIsHaveAskReq getFindBuffIsHaveAskReq();",
"io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Request getRequest();",
"long requestId();",
"long requestId();",
"java.util.List<? extends TransmissionProtocol.RequestOrBuilder> \n getRequestOrBuilderList();",
"private void parseCompleteReqMessage() {\r\n byte result = _partialMessage.get(0);\r\n byte opCode = _partialMessage.get(1);\r\n byte numberOfParams = _partialMessage.get(2);\r\n\r\n /* cursor of bytes within 'message'. Parameters start at position 2 */\r\n int messageIndex = 3;\r\n int availableChars = (int) _partialMessage.size();\r\n\r\n List<String> paramList = new ArrayList<>();\r\n String param;\r\n\r\n for (byte i = 0; (i < numberOfParams) && (messageIndex < availableChars); i++) {\r\n param = \"\";\r\n\r\n /* collect data up to terminator */\r\n while ((messageIndex < availableChars) &&\r\n (_partialMessage.get(messageIndex) != '\\0')) {\r\n param += (char)((byte)(_partialMessage.get(messageIndex)));\r\n ++ messageIndex;\r\n }\r\n\r\n /* skip after terminator */\r\n if (messageIndex < availableChars) {\r\n ++ messageIndex;\r\n }\r\n\r\n paramList.add( param);\r\n }\r\n\r\n _replyDispatcher.onReplyReceivedForRequest(opCode, result, paramList);\r\n }",
"public int getMsgType(){\r\n return localMsgType;\r\n }",
"pb4server.ArenaFightAskReq getArenaFightAskReq();",
"@Override\r\n\tprotected byte[] handleSpecificRequest(String request) {\r\n\t\tif (!Utils.isEmpty(request)) {\r\n\t\t\tlogger.info(\"$$$$$$$$$$$$Message received at Tracking Server:\" + request);\r\n\t\t\tif (request.startsWith(NODE_REQUEST_TO_SERVER.FILE_LIST.name())) {\r\n\t\t\t\thandleFileUpdateMessage(request);\r\n\t\t\t\treturn Utils.stringToByte(SharedConstants.COMMAND_SUCCESS);\r\n\t\t\t} else if (request.startsWith(NODE_REQUEST_TO_SERVER.FIND.name())) {\r\n\t\t\t\tString peers = handleFindFileRequest(request);\r\n\t\t\t\treturn Utils.stringToByte((Utils.isEmpty(peers) ? SharedConstants.COMMAND_FAILED\r\n\t\t\t\t\t\t: SharedConstants.COMMAND_SUCCESS) + SharedConstants.COMMAND_PARAM_SEPARATOR + peers);\r\n\r\n\t\t\t} else if (request.startsWith(NODE_REQUEST_TO_SERVER.FAILED_PEERS.name())) {\r\n\t\t\t\thandleFailedPeerRequest(request);\r\n\t\t\t\treturn Utils.stringToByte(SharedConstants.COMMAND_SUCCESS);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn Utils.stringToByte(SharedConstants.INVALID_COMMAND);\r\n\r\n\t}",
"public PBFTReply createNullReplyMessage(PBFTRequest request){\n return new PBFTReply(request, null, getLocalServerID(), getCurrentViewNumber());\n }",
"com.exacttarget.wsdl.partnerapi.QueryRequestMsgDocument.QueryRequestMsg getQueryRequestMsg();",
"public synchronized void handle(PBFTRequest r){\n \n Object lpid = getLocalServerID();\n\n JDSUtility.debug(\"[handle(request)] s\" + lpid + \", at time \" + getClockValue() + \", received \" + r);\n\n StatedPBFTRequestMessage loggedRequest = getRequestInfo().getStatedRequest(r);\n \n /* if the request has not been logged anymore and it's a old request, so it was garbage by checkpoint procedure then I must send a null reply */\n if(loggedRequest == null && getRequestInfo().isOld(r)){\n IProcess client = new BaseProcess(r.getClientID());\n PBFTReply reply = new PBFTReply(r, null, lpid, getCurrentViewNumber());\n emit(reply, client);\n return;\n \n }\n \n try{\n /*if the request is new and hasn't added yet then it'll be added */\n if(loggedRequest == null){\n /* I received a new request so a must log it */\n loggedRequest = getRequestInfo().add(getRequestDigest(r), r, RequestState.WAITING);\n loggedRequest.setRequestReceiveTime(getClockValue());\n }\n\n /* if I have a entry in request log but I don't have the request then I must update my request log. */\n if(loggedRequest.getRequest() == null) loggedRequest.setRequest(r);\n \n /*if the request was served the I'll re-send the related reply if it has been logged yet.*/\n if(loggedRequest.getState().equals(RequestState.SERVED)){\n JDSUtility.debug(\"[handle(request)] s\" + lpid + \" has already served \" + r);\n\n /* retransmite the reply when the request was already served */\n PBFTReply reply = getRequestInfo().getReply(r);\n IProcess client = new BaseProcess(r.getClientID());\n emit(reply, client);\n return;\n }\n \n /* If I'm changing then I'll do nothing more .*/\n if(changing()) return;\n\n PBFTPrePrepare pp = getPrePreparebackupInfo().get(getCurrentViewNumber(), getCurrentPrimaryID(), loggedRequest.getDigest());\n\n if(pp != null && !isPrimary()){\n /* For each digest in backuped pre-prepare, I haven't all request then it'll be discarded. */\n DigestList digests = new DigestList();\n for(String digest : pp.getDigests()){\n if(!getRequestInfo().hasRequest(digest)){\n digests.add(digest);\n }\n }\n \n if(digests.isEmpty()){\n handle(pp);\n getPrePreparebackupInfo().rem(pp);\n return;\n } \n }\n\n boolean committed = loggedRequest.getState().equals( RequestState.COMMITTED );\n \n// /* if my request was commit and it hasn't been served yet I must check the stated of the request */\n if(committed){\n tryExecuteRequests();\n return;\n }\n \n /* performs the batch procedure if the server is the primary replica. */\n if(isPrimary()){\n JDSUtility.debug(\"[handle(request)] s\" + lpid + \" (primary) is executing the batch procedure for \" + r + \".\");\n batch();\n }else{\n /* schedules a timeout for the arriving of the pre-prepare message if the server is a secundary replica. */\n scheduleViewChange();\n }//end if is primary\n \n }catch(Exception e){\n e.printStackTrace();\n }\n }",
"entities.Torrent.ChunkRequest getChunkRequest();",
"@Property\n public native MintRequestType getRequestType ();",
"@Override\n\tpublic void receiveRequest() {\n\n\t}",
"private synchronized void processWpsNeeded(int nRequestType, int nTbfMs)\n {\n /* look at the type of WPS request and start/stop the Wifi fix session*/\n if (Config.LOGD)\n {\n Log.d(TAG,\"WPS NEEDED request type: \"+nRequestType+\" tbf: \"+nTbfMs);\n }\n Message wpsMsg = Message.obtain(mHandler, nRequestType);\n wpsMsg.arg1 = nTbfMs;\n mHandler.sendMessage(wpsMsg);\n }",
"public static String getRequestType(){\n return requestType;\n }",
"java.util.List<pb4client.TransportRequest> \n getReqList();",
"public OtherResponse sendMT(String mobilenumber, String message, String shortcode, int carrierid, int campaignid, Date sendat, String msgfxn, int priority, String fteu, float tariff) throws PrepException, SQLException, JAXBException, SAXException, MalformedURLException, IOException{\n String response;\n\n if(canSendMT(mobilenumber)){\n //System.out.print(\"User with mobile number:\"+mobilenumber+\" exist!\");\n\n String mt_request_xml = createXml(mobilenumber, message, shortcode, carrierid, campaignid, sendat, msgfxn, priority, fteu, tariff);\n response = postMT(mt_request_xml);\n\n com.novartis.xmlbinding.mt_response.Response res = getResponse(response);\n\n\n\n List<String> statusmsg = getStatusmessage(response);\n\n return new OtherResponse(res.getStatus(), statusmsg);\n }\n else{//if user not registerd or opted-in send back message on how to register for GetOnTrack\n String registerMsg = \"Novartis Pharmaceuticals Corp: You have to register for the GetOnTrack BP Tracker to use the service. Didn't mean to? Call 877-577-7726 for more information\";\n String mt_request_xml = createXml(mobilenumber, registerMsg, shortcode, carrierid, campaignid, sendat, msgfxn, priority, fteu, tariff);\n response = postMT(mt_request_xml);\n com.novartis.xmlbinding.mt_response.Response res = getResponse(response);\n //com.novartis.xmlbinding.mt_response.Response res = getResponse(\"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?><response><mts><mt><mobilenumber>\"+mobilenumber+\"</mobilenumber></mt></mts><status>FAIL</status><statusmessage><exceptions><exception>User not opted in for SMS</exception></exceptions></statusmessage></response>\");\n\n\n //System.out.print(\"User with mobile number:\"+mobilenumber+\" does not exist!\");\n List<String> statusmsg = getStatusmessage(response);\n\n return new OtherResponse(res.getStatus(), statusmsg);\n }\n\n }",
"public ZserioType getRequestType()\n {\n return requestType;\n }",
"public ch.iec.tc57._2011.schema.message.RequestMessageType addNewRequestMessage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ch.iec.tc57._2011.schema.message.RequestMessageType target = null;\n target = (ch.iec.tc57._2011.schema.message.RequestMessageType)get_store().add_element_user(REQUESTMESSAGE$0);\n return target;\n }\n }",
"public int getRequestState() {\n\t\treturn _tempNoTiceShipMessage.getRequestState();\n\t}",
"pb4server.SendNoticeToLeaderAskReq getSendNoticeToLeaderAskReq();",
"pb4server.WorldChatAskReq getWorldChatAskReq();",
"@Override\n\tprotected void updateTargetRequest() {\n\t}",
"public String request(ViaRequestPacketEntity packet);",
"pb4server.MassSpeedAskReq getMassSpeedAskReq();",
"public ProtocolResult getRequest() {\n\t\t\n\t\tif( hasReachedTimeout() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.2\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\tif (isParticipant() && (getState() == RequestProtocolState.NOT_STARTED)) {\n\t\t\t\t\n\t\t\t\tACLMessage message = getRefAclAgent().getACLMessage(EnumFipaProtocol.FIPA_REQUEST, Performative.REQUEST);\n\t\t\t\t\n\t\t\t\tif (message != null) {\n\t\t\t\t\tinitiate(message.getSender(), getRefAclAgent().getAddress());\n\t\t\t\t\t\n\t\t\t\t\tsetConversationId(message.getConversationId());\n\t\t\t\t\tsetState(RequestProtocolState.WAITING_REQUEST);\n\t\t\t\t\t\n\t\t\t\t\tresetStartedTime();\n\t\t\t\t\t\n\t\t\t\t\treturn new ProtocolResult(message.getSender(), Performative.REQUEST, message.getContent().getContent().toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (isInitiator()) {\n\t\t\t\taddError(Locale.getString(\"FipaRequestProtocol.3\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\telse {\n\t\t\t\taddError(Locale.getString(\"FipaRequestProtocol.4\")); //$NON-NLS-1$\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"pb4server.WalkSpeedAskReq getWalkSpeedAskReq();",
"protected void processRequest(String input) {\r\n\t \r\n\t String[] variables = input.split(\",\");\r\n\t Message myMessage = new Message(variables[0], Integer.valueOf(variables[1]),Integer.valueOf(variables[2]), variables[3],Integer.valueOf(variables[4]), Boolean.parseBoolean(variables[5]), variables[6]);\r\n\t String action = myMessage.getAction();\r\n\t switch (action) {\r\n\tcase \"Setup\":\r\n\t\tmyMessage.setAction(\"Nothing\");\r\n\t\tthis.myItems = new ArrayList<Message>();\r\n\t\tmyItems.add(myMessage);\r\n\t\tbreak;\r\n\tcase \"Buy\":\r\n\t\tbreak;\r\n\r\n\tcase \"Bid\":\r\n\t\tbreak;\r\n\t\t\r\n\t\t\r\n\t\r\n\tcase \"TimeOut\":\r\n\t\tbreak;\r\n\t\r\n\t//Continue without any action\r\n\tcase \"Nothing\":\r\n\t\tbreak;\r\n\t}\r\n\t \r\n\t \r\n\t \r\n\t return;\r\n }",
"private DatagramPacket getRequestPacket() {\n String requestFile = \"REQUEST \", filePath;\n DatagramPacket packet;\n if (ip != null) {\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n System.out.print(\"Enter file name: \");\n filePath = reader.readLine();\n try {\n fileSavePath = filePath.substring(0, filePath.indexOf(\".\")) + \"_copy\" \n + filePath.substring(filePath.indexOf(\".\"));\n } catch(StringIndexOutOfBoundsException e) {\n System.out.println(\"Time: \" + System.currentTimeMillis() + \"\\t\" + \n \"Warning file has no extension\");\n fileSavePath = filePath + \"_copy\";\n }\n requestFile += filePath + \"\\n\\r\";\n byte[] data = requestFile.getBytes();\n packet = new DatagramPacket(data, data.length, ip, port);\n return packet;\n } catch (IOException ex) {\n Logger.getLogger(FClientSAW.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return null;\n }",
"com.exacttarget.wsdl.partnerapi.QueryRequestMsgDocument.QueryRequestMsg addNewQueryRequestMsg();",
"@Override\n public RequestInput getRequestMessage()\n {\n return new RequestRocketLauncher(checkAvailableMode(), checkPlayersBasicMode(), checkRocketJumpColors(), checkSquareToMoveBasicMode(), allSquaresNoMove());\n\n }",
"private int ParseRQ(byte[] buf, StringBuffer requestedFile) {\n // See \"TFTP Formats\" in TFTP specification for the RRQ/WRQ request contents\n StringBuilder stringBuilder = new StringBuilder();\n\n for (int i = 2; i < buf.length; i++) {\n\n if ((char) buf[i] == '\\0') {\n break;\n } else {\n stringBuilder.append((char) buf[i]);\n }\n }\n\n requestedFile.append(stringBuilder.toString());\n ByteBuffer wrap = ByteBuffer.wrap(buf);\n int opcode = wrap.getShort();\n\n return opcode;\n }",
"@Override\n\t\tpublic String getTimeoutMessage() {\n\t\t\treturn \"req\";\n\t\t}",
"pb4server.AddDecreeAskReq getAddDecreeAskReq();",
"public void reqbkpkt(byte[]req) \r\n\t{\n\r\n\r\n\t}",
"private int ParseRQ(byte[] buf, StringBuffer requestedFile, StringBuffer mode)\n {\n // See \"TFTP Formats\" in TFTP specification for the RRQ/WRQ request contents\n\n ByteBuffer wrap= ByteBuffer.wrap(buf);\n short opcode = wrap.getShort();\n\n // We can now parse the request message for opcode and requested file as:\n\n int readBytes = 2;// where readBytes is the number of bytes read into the byte array buf.\n\n //filename is followed by 1 byte of 0s\n while (buf[readBytes] != 0)\n readBytes ++;\n\n String fileName = new String(buf, 2, readBytes-2); //converts readBytes to the length of the filename\n\n requestedFile.append(fileName); //Store the filename in the StringBuffer\n\n //parse transfer mode, we are supposed to do that but I am not sure what to use it for atm\n\n readBytes ++; //\"step over\" 0 that signified the end of the filename\n int offset = readBytes; //save the offset for mode\n\n //mode is followed by 1 byte of 0s\n while (buf[readBytes] != 0)\n readBytes ++;\n\n //readBytes - offset give length of the mode; saving the mode in lower case for convenience\n mode.append(new String(buf, offset, readBytes - offset).toLowerCase());\n System.out.println(\"OPCODE: \" + opcode);\n System.out.println(\"FILENAME: \" + fileName);\n System.out.println(\"MODE: \" + mode);\n return opcode;\n }",
"@Override\r\n public boolean isRequest() {\n return false;\r\n }",
"void requestId(long requestId);",
"void requestId(long requestId);",
"@Override\n\tprotected void reqError(Message msg) {\n\t\tsuper.reqError(msg);\n\t\tswitch (msg.arg1) {\n\t\tcase FusionCode.REQUEST_QRYGRPMEMBER:\n\t\tcase FusionCode.REQUEST_ADDRINGTOGROUP:\n\t\tcase FusionCode.REQUEST_ADDNEWGROUP:\n\t\tcase FusionCode.REQUEST_QRYGRP:\n\t\t}\n\t\tstopPbarU();\n\t}",
"ChatRecord.Req getChatRecordReq();",
"pb4server.Walk4ScoutAskReq getWalk4ScoutAskReq();",
"private List<TOMMessage> getRequestsToRelay() {\n\n List<TOMMessage> messages = lcManager.getCurrentRequestTimedOut();\n\n if (messages == null) {\n\n messages = new LinkedList<>();\n }\n\n // Include requests from STOP messages in my own STOP message\n List<TOMMessage> messagesFromSTOP = lcManager.getRequestsFromSTOP();\n if (messagesFromSTOP != null) {\n\n for (TOMMessage m : messagesFromSTOP) {\n\n if (!messages.contains(m)) {\n\n messages.add(m);\n }\n }\n }\n\n logger.debug(\"I need to relay \" + messages.size() + \" requests\");\n\n return messages;\n }",
"@Override\n public void receiveRequest(final Request request) {\n\n }",
"public void beforeSendingeGainChatRequest();",
"teledon.network.protobuffprotocol.TeledonProtobufs.TeledonResponse.Type getType();",
"pb4server.EatPoisonNumAskReq getEatPoisonNumAskReq();",
"public void handleSend(ActionEvent actionEvent) {\r\n String to=textFieldTo.getText();\r\n try{\r\n Long idto = Long.parseLong(to);\r\n\r\n FriendshipRequest request = new FriendshipRequest();\r\n Tuple<Long,Long> f = new Tuple<>(user.getId(), idto);\r\n request.setId(f);\r\n\r\n service.addRequest(request);\r\n showMessage(Alert.AlertType.CONFIRMATION,\"Request sent!\",\"Request is now pending!\");\r\n\r\n textFieldTo.clear();\r\n\r\n\r\n }catch(NumberFormatException exception){\r\n showMessage(Alert.AlertType.ERROR,\"Error\",exception.toString());\r\n }catch (ServiceException exception){\r\n showMessage(Alert.AlertType.ERROR,\"Error\",exception.toString());\r\n }\r\n }",
"@Override\n\tpublic void processRequest(RequestEvent requestEvent) {\n\t\t requestEvent.getServerTransaction();\n\t\tSystem.out.println(\"Sending ------------------------------------------------------------------------------------------\");\n\t\tSystem.out.println(\"[]:\"+requestEvent.toString());\n\t}",
"private void clearFriendlistReq() {\n if (reqCase_ == 9) {\n reqCase_ = 0;\n req_ = null;\n }\n }",
"public boolean addPutRequest( CellMessage msg , RequestImpl req ){\n // assign a new bitfile to this request\n //\n String group = req.getStorageGroup() ;\n String bfid = new Bfid().toString() ;\n long size = req.getFileSize() ;\n req.setBfid( bfid ) ;\n \n say( \"addPutRequest : bfid=\"+bfid+\";group=\"+group+\";size=\"+size ) ;\n \n BitfileId bitfile = new BitfileId( bfid , size ) ;\n bitfile.setParameter( req.getParameter() ) ;\n //\n // store the bitfile into the database\n try{\n _dataBase.storeBitfileId( group , bitfile ) ;\n }catch( DatabaseException dbe ){\n String error = \"StorageGroup not found : \"+group ;\n req.setReturnValue( 11 , error ) ;\n msg.revertDirection() ;\n esay( \"Sending problem : \"+error ) ;\n try{\n sendMessage( msg ) ;\n }catch(Exception ee ){\n esay( \"PANIC : can't return error msg to \"+msg.getDestinationPath() ) ;\n }\n return false ;\n }\n //\n // send the first BB-OK\n //\n CellPath bbReplyPath = (CellPath)msg.getSourceAddress().clone() ;\n bbReplyPath.revert() ;\n try{\n sendMessage( new CellMessage( bbReplyPath , req ) ) ;\n }catch(Exception nrtc ){\n esay( \"Door cell seems to have disappeared\" ) ;\n return false ;\n }\n \n return true ;\n \n }",
"com.google.protobuf.ByteString\n getRequestBytes();",
"com.randomm.server.ProtoBufMessage.Message.InputType getType();",
"private void clearGetTokenReq() {\n if (reqCase_ == 4) {\n reqCase_ = 0;\n req_ = null;\n }\n }",
"private void getUnsettledTransactionListRequest() {\r\n\t\tBasicXmlDocument document = new BasicXmlDocument();\r\n\t\tdocument.parseString(\"<\" + TransactionType.GET_UNSETTLED_TRANSACTION_LIST.getValue()\r\n\t\t\t\t+ \" xmlns = \\\"\" + XML_NAMESPACE + \"\\\" />\");\r\n\r\n\t\taddAuthentication(document);\r\n\r\n\t\tcurrentRequest = document;\r\n\t}",
"pb4server.ResurgenceAskReq getResurgenceAskReq();",
"com.indosat.eai.catalist.standardInputOutput.RequestType addNewRequest();",
"private String requesttosend() throws IOException {\n\t\tsender.sendMsg(Constants.REQSEND);\r\n\t\t//等待接收的返回状态\r\n\t\treturn sender.getMsg();\r\n\t}",
"@Override\r\n\t\tpublic void action() {\n\t\t\t\r\n\t\t\tACLMessage request = new ACLMessage (ACLMessage.REQUEST);\r\n\t\t\trequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\trequest.addReceiver(new AID(\"BOAgent\",AID.ISLOCALNAME));\r\n\t\t\trequest.setLanguage(new SLCodec().getName());\t\r\n\t\t\trequest.setOntology(RequestOntology.getInstance().getName());\r\n\t\t\tInformMessage imessage = new InformMessage();\r\n\t\t\timessage.setPrice(Integer.parseInt(price));\r\n\t\t\timessage.setVolume(Integer.parseInt(volume));\r\n\t\t\ttry {\r\n\t\t\t\tthis.agent.getContentManager().fillContent(request, imessage);\r\n\t\t\t} catch (CodecException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (OntologyException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tthis.agent.addBehaviour(new AchieveREInitiator(this.agent, request)\r\n\t\t\t{\t\t\t\r\n\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = -8866775600403413061L;\r\n\r\n\t\t\t\tprotected void handleInform(ACLMessage inform)\r\n\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}",
"AddFriendFromOther.Rsp getAddFriendFromOtherRsp();",
"@Override\n\tpublic void action() {\n\n\t\tif(this.step.equals(STATE_INIT))\n\t\t{\n\t\t\tthis.nbVoters = 0;\n\t\t\tthis.nbAsynchronousPlayers = 0;\n\t\t\tthis.globalResults = new VoteResults();\n\t\t\tthis.agentSender = null;\n\t\t\tthis.request = null;\n\t\t\tthis.currentTime = -1;\n\t\t\tthis.results = new VoteResults();\n\t\t\tthis.nextStep = STATE_RECEIVE_REQUEST;\n\n\n\t\t}\n\n\t\telse if(this.step.equals(STATE_RECEIVE_REQUEST))\n\t\t{\n\t\t\t/*** reception demande de vote **/\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"VOTE_REQUEST\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message != null)\n\t\t\t{\n\t\t\t\tthis.agentSender = message.getSender();\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\n\t\t\t\t\t//System.err.println(\"[RQST INITIAL] \"+message.getContent());\n\n\t\t\t\t\tthis.request = mapper.readValue(message.getContent(), VoteRequest.class);\n\t\t\t\t\tthis.request.setLocalVoteResults(this.results);\n\t\t\t\t\tthis.results.initWithChoice(this.request.getChoices());\n\n\t\t\t\t\tFunctions.newActionToLog(\"Début vote \"+this.request.getRequest(),this.myAgent, this.controllerAgent.getGameid());\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tthis.nextStep = SEND_REQUEST_GLOBAL_VOTE_RESULTS;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\n\t\t\t}\n\n\t\t}\n\t\telse if(this.step.equals(SEND_REQUEST_GLOBAL_VOTE_RESULTS))\n\t\t{\n\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\tif(!agents.isEmpty())\n\t\t\t{\n\t\t\t\tACLMessage message = new ACLMessage(ACLMessage.REQUEST);\n\t\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\t\tfor(AID aid : agents)\n\t\t\t\t{\n\t\t\t\t\tmessage.addReceiver(aid);\n\t\t\t\t}\n\t\t\t\tmessage.setConversationId(\"GLOBAL_VOTE_RESULTS\");\n\n\t\t\t\tthis.myAgent.send(message);\n\t\t\t}\n\n\t\t\tthis.nextStep = RECEIVE_REQUEST_GLOBAL_VOTE_RESULTS;\n\t\t}\n\t\telse if(this.step.equals(RECEIVE_REQUEST_GLOBAL_VOTE_RESULTS))\n\t\t{\n\t\t\t/*** reception demande de vote **/\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"GLOBAL_VOTE_RESULTS\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message != null)\n\t\t\t{\n\n\t\t\t\t//System.out.println(\"CTRL Reception de global results\");\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tthis.globalResults = mapper.readValue(message.getContent(), VoteResults.class);\n\t\t\t\t\tthis.request.setGlobalCitizenVoteResults(this.globalResults);\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tthis.nextStep = STATE_GET_SIMPLE_SUSPICION;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\n\t\t\t}\n\t\t}\t\t\n\t\telse if(this.step.equals(STATE_SEND_REQUEST))\n\t\t{\n\t\t\tACLMessage messageRequest = new ACLMessage(ACLMessage.REQUEST);\n\t\t\tmessageRequest.setSender(this.myAgent.getAID());\n\t\t\tmessageRequest.setConversationId(\"VOTE_REQUEST\");\n\n\t\t\tint reste = this.request.getAIDVoters().size()-this.nbVoters;\n\t\t\tif(false )// reste >= Data.MAX_SYNCHRONOUS_PLAYERS)\n\t\t\t{\n\t\t\t\t/** hybrid synchronous mode **/\n\t\t\t\tthis.nbAsynchronousPlayers = (int) (Math.random()*Math.min(Data.MAX_SYNCHRONOUS_PLAYERS-1, (reste-1)))+1;\n\t\t\t\t//System.err.println(\"HYDBRID ASYNCRHONOUS ENABLED BECAUSE TOO MANY PARTICIPANTS \"+this.nbAsynchronousPlayers+\" in //\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.nbAsynchronousPlayers = 1;\n\t\t\t}\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\n\t\t\tString json =\"\";\n\n\t\t\ttry {\t\t\n\t\t\t\tjson = mapper.writeValueAsString(this.request);\t\n\t\t\t\tSystem.err.println(\"[RQST] \"+json);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmessageRequest.setContent(json);\n\t\t\tfor(int i = 0; i<this.nbAsynchronousPlayers; ++i)\n\t\t\t{\n\t\t\t\t//System.err.println(\"DK ENVOI REQUEST \"+this.request.getAIDVoters().get(this.nbVoters+i).getLocalName());\n\t\t\t\tmessageRequest.addReceiver(this.request.getAIDVoters().get(this.nbVoters+i));\t\n\t\t\t}\n\n\t\t\tthis.myAgent.send(messageRequest);\n\n\t\t\tthis.nextStep = STATE_RECEIVE_INFORM;\n\t\t}\n\t\telse if(this.step.equals(STATE_RECEIVE_INFORM))\n\t\t{\n\t\t\tif(this.currentTime == -1)\n\t\t\t{\n\t\t\t\tthis.currentTime = System.currentTimeMillis();\n\t\t\t}\n\n\t\t\tif(System.currentTimeMillis() - this.currentTime > 3000)\n\t\t\t{\n\t\t\t\tthis.currentTime = -1;\n\t\t\t\tACLMessage wakeup = new ACLMessage(ACLMessage.UNKNOWN);\n\t\t\t\twakeup.setSender(this.myAgent.getAID());\n\t\t\t\tif(nbVoters < this.request.getVoters().size())\n\t\t\t\t{\n\t\t\t\t\twakeup.addReceiver(this.request.getAIDVoters().get(nbVoters));\n\t\t\t\t\twakeup.setConversationId(\"WAKEUP\");\n\t\t\t\t\tthis.myAgent.send(wakeup);\n\n\t\t\t\t\tSystem.out.println(\"Relance du joueur \"+this.request.getAIDVoters().get(nbVoters).getLocalName()+\" ...\");\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"VOTE_INFORM\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message!=null)\n\t\t\t{\n\t\t\t\tthis.currentTime = -1;\n\t\t\t\t++this.nbVoters;\n\t\t\t\t--this.nbAsynchronousPlayers;\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\tVoteResults res = new VoteResults();\n\t\t\t\ttry {\n\t\t\t\t\tres = mapper.readValue(message.getContent(), VoteResults.class);\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tAID aidPlayer = message.getSender();\n\n\t\t\t\tthis.results.add(res);\n\n\t\t\t\tif(this.request.getRequest().equals(\"CITIZEN_VOTE\")&&\n\t\t\t\t\t\tDFServices.containsGameAgent(aidPlayer, \"PLAYER\", \"MAYOR\", this.myAgent, this.controllerAgent.getGameid()))\n\t\t\t\t{\n\t\t\t\t\t/** poids double **/\n\t\t\t\t\tthis.results.add(res);\n\t\t\t\t\tthis.globalResults.add(res);\n\t\t\t\t}\n\n\n\t\t\t\t//envoi du resultat partiel \n\t\t\t\tString json = \"\";\n\t\t\t\tmapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tjson = mapper.writeValueAsString(this.results);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tACLMessage msg = new ACLMessage(ACLMessage.AGREE);\n\t\t\t\tmsg.setContent(json);\n\t\t\t\tmsg.setSender(this.myAgent.getAID());\n\t\t\t\tmsg.setConversationId(\"NEW_VOTE_RESULTS\");\n\n\t\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tif(!agents.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfor(AID aid : agents)\n\t\t\t\t\t{\n\t\t\t\t\t\tmsg.addReceiver(aid);\n\t\t\t\t\t}\n\t\t\t\t\tthis.myAgent.send(msg);\n\t\t\t\t}\n\n\t\t\t\t///\tSystem.err.println(\"\\nSV : \"+this.nbVoters+\"/\"+this.request.getAIDVoters().size());\n\n\t\t\t\tif(this.nbVoters >= this.request.getAIDVoters().size())\n\t\t\t\t{\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\t//System.err.println(\"SV next step\");\n\t\t\t\t\tthis.nextStep = STATE_RESULTS;\n\t\t\t\t}\n\t\t\t\telse if(this.nbAsynchronousPlayers > 0)\n\t\t\t\t{\n\t\t\t\t\t//System.err.println(\"SV waiting other\");\n\t\t\t\t\tthis.nextStep = STATE_RECEIVE_INFORM;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"SV send request to other\");\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tblock(1000);\t\n\t\t\t}\n\t\t}\n\n\n\t\telse if(this.step.equals(STATE_GET_SIMPLE_SUSPICION))\n\t\t{\n\t\t\tACLMessage messageRequest = new ACLMessage(ACLMessage.REQUEST);\n\t\t\tmessageRequest.setSender(this.myAgent.getAID());\n\t\t\tmessageRequest.setConversationId(\"GET_SIMPLE_SUSPICION\");\n\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\n\t\t\tString json =\"\";\n\n\t\t\ttry {\t\t\n\t\t\t\tjson = mapper.writeValueAsString(this.request);\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmessageRequest.setContent(json);\n\t\t\tfor(AID aid : this.request.getAIDVoters()){\n\t\t\t\tmessageRequest.addReceiver(aid);\t\n\t\t\t}\n\n\t\t\tthis.nbVoters = 0;\n\t\t\tthis.myAgent.send(messageRequest);\n\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t}\n\t\telse if(this.step.equals(STATE_ADD_SIMPLE_SUSPICION))\n\t\t{\n\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM),\n\t\t\t\t\tMessageTemplate.MatchConversationId(\"GET_SIMPLE_SUSPICION\"));\n\n\t\t\tACLMessage message = this.myAgent.receive(mt);\n\t\t\tif(message!=null)\n\t\t\t{\n\t\t\t\t++this.nbVoters;\n\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\tSuspicionScore suspicionScore = new SuspicionScore();\n\t\t\t\ttry {\n\t\t\t\t\tsuspicionScore = mapper.readValue(message.getContent(), SuspicionScore.class);\n\t\t\t\t\t//System.err.println(\"ADD PARTIAL SUSPICION \\n\"+message.getContent());\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tAID aidPlayer = message.getSender();\n\t\t\t\tthis.request.getCollectiveSuspicionScore().addSuspicionScoreGrid(aidPlayer.getName(), suspicionScore);\n\n\t\t\t\tif(this.nbVoters>= this.request.getAIDVoters().size())\n\t\t\t\t{\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\tSystem.err.println(\"SUSPICION COLLECTIVE \\n \"+this.request.getCollectiveSuspicionScore().getScore());\n\n\t\t\t\t\t//sort random\n\t\t\t\t\tCollections.shuffle(this.request.getVoters());\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.nextStep = STATE_ADD_SIMPLE_SUSPICION;\n\t\t\t\tblock(1000);\n\t\t\t}\n\t\t}\n\n\t\telse if(this.step.equals(STATE_RESULTS))\n\t\t{\n\t\t\tthis.finalResults = this.results.getFinalResults();\n\n\t\t\t/** equality ? **/\n\t\t\tif(this.finalResults.size() == 1)\n\t\t\t{\n\t\t\t\tthis.nextStep = STATE_SEND_RESULTS;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//defavorisé le bouc emmissaire\n\t\t\t\tList<AID> scapegoats = DFServices.findGamePlayerAgent(Roles.SCAPEGOAT, this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tList<String> nameScapegoats = new ArrayList<String>();\n\t\t\t\tfor(AID scapegoat : scapegoats)\n\t\t\t\t{\n\t\t\t\t\tnameScapegoats.add(scapegoat.getName());\n\t\t\t\t}\n\t\t\t\tfor(String scapegoat : nameScapegoats)\n\t\t\t\t{\n\t\t\t\t\tif(this.finalResults.contains(scapegoat))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(this.request.isVoteAgainst())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.finalResults = nameScapegoats;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(this.finalResults.size()>1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.finalResults.remove(scapegoat);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(this.lastResults != null && this.lastResults.equals(this.finalResults))\n\t\t\t\t{\n\t\t\t\t\t/** interblocage **/\n\t\t\t\t\tArrayList<String> tmp = new ArrayList<String>();\n\n\t\t\t\t\t//System.err.println(\"INTERBLOCAGE\");\n\n\t\t\t\t\t/** random choice **/\n\t\t\t\t\ttmp.add(this.finalResults.get((int)Math.random()*this.finalResults.size()));\t\t\t\t\n\t\t\t\t\tthis.finalResults = tmp;\n\n\t\t\t\t\tthis.nextStep = STATE_SEND_RESULTS;\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// new vote with finalists\n\t\t\t\t\tthis.request.setChoices(this.finalResults);\n\n\t\t\t\t\t//sort random\n\t\t\t\t\tCollections.shuffle(this.request.getVoters());\n\n\t\t\t\t\tthis.results = new VoteResults();\n\t\t\t\t\tthis.results.initWithChoice(this.request.getChoices());\n\t\t\t\t\tthis.request.setLocalVoteResults(this.results);\n\t\t\t\t\tthis.lastResults = this.finalResults;\n\t\t\t\t\tthis.nbVoters = 0;\n\t\t\t\t\tthis.nextStep = STATE_SEND_REQUEST;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(this.step.equals(STATE_SEND_RESULTS))\n\t\t{\n\t\t\tif(this.finalResults.isEmpty())\n\t\t\t{\n\t\t\t\tSystem.err.println(\"ERROR\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"RESULTS => \"+this.finalResults.get(0));\n\t\t\t}\n\n\t\t\t//envoi resultat final + maj global vote\n\t\t\tif(this.request.getRequest().equals(\"CITIZEN_VOTE\"))\n\t\t\t{\n\t\t\t\tString json = \"\";\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tjson = mapper.writeValueAsString(this.results);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tACLMessage message = new ACLMessage(ACLMessage.AGREE);\n\t\t\t\tmessage.setContent(json);\n\t\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\t\tmessage.setConversationId(\"NEW_CITIZEN_VOTE_RESULTS\");\n\n\t\t\t\tList<AID> agents = DFServices.findGameControllerAgent(\"ENVIRONMENT\", this.myAgent, this.controllerAgent.getGameid());\n\t\t\t\tif(!agents.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfor(AID aid : agents)\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage.addReceiver(aid);\n\t\t\t\t\t}\n\t\t\t\t\tthis.myAgent.send(message);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tACLMessage message = new ACLMessage(ACLMessage.INFORM);\n\t\t\tmessage.setSender(this.myAgent.getAID());\n\t\t\tmessage.addReceiver(this.agentSender);\n\t\t\tmessage.setConversationId(\"VOTE_RESULTS\");\n\t\t\tmessage.setContent(this.finalResults.get(0));\n\n\n\t\t\tString name = this.finalResults.get(0);\n\n\t\t\tif(!this.request.isAskRequest()){\n\t\t\t\tint index = name.indexOf(\"@\");\n\t\t\t\tname = name.substring(0, index);\n\t\t\t\tFunctions.newActionToLog(\"Vote : \"+name, this.getAgent(), this.controllerAgent.getGameid());\n\t\t\t}\n\t\t\t\n\n\t\t\tthis.myAgent.send(message);\t\n\t\t\tthis.nextStep = STATE_INIT;\n\t\t}\n\n\n\n\t\tif(!this.nextStep.isEmpty())\n\t\t{\n\t\t\tthis.step = this.nextStep;\n\t\t\tthis.nextStep =\"\";\n\t\t}\n\n\n\t}",
"protected byte[] onRequest(String topic, String item, int uFmt, long hconv)\n {\n return onRequest(topic, item, uFmt);\n }",
"public void setMsgType(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n \r\n if (param==java.lang.Integer.MIN_VALUE) {\r\n localMsgTypeTracker = false;\r\n \r\n } else {\r\n localMsgTypeTracker = true;\r\n }\r\n \r\n this.localMsgType=param;\r\n \r\n\r\n }",
"protected void enqueue(StdPeerMessage message)\n {\n// if (DEBUG) {\n// if (message.type == StdPeerMessage.REQUEST) {\n// System.out.println(System.nanoTime() + \" [stdpc] enqueue: req \" + message.index + \" \" + (message.begin >> 14));\n// } else {\n// System.out.println(\"[stdpc] enqueue: \" + message.type);\n// }\n// }\n\n if (message.type == StdPeerMessage.CHOKE)\n {\n // remove reply messages with piece (block) data\n // from the send queue (due to spec)\n for (int i = sendQueue.size() - 1; 0 <= i; i--) {\n StdPeerMessage pm = sendQueue.get(i);\n if (pm.type == StdPeerMessage.PIECE) {\n sendQueue.remove(i);\n TorrentStorage.Block block = (TorrentStorage.Block) message.params;\n block.release();\n pmCache.release(pm);\n }\n }\n // set choke status\n choke = true;\n // send choke asap\n sendQueue.add(0, message);\n }\n else if (message.type == StdPeerMessage.CANCEL)\n {\n // remove the linked request if it's still in the queue\n for (int i = sendQueue.size() - 1; 0 <= i; i--) {\n StdPeerMessage pm = sendQueue.get(i);\n if ((pm.type == StdPeerMessage.REQUEST)\n && (pm.index == message.index)\n && (pm.begin == message.begin)\n && (pm.length == message.length)) // this check is redundant as length is fixed\n {\n sendQueue.remove(i);\n pmCache.release(pm);\n // don't really enqueue CANCEL as the linked request\n // has been found and removed\n pmCache.release(message);\n return;\n }\n }\n // send asap\n sendQueue.add(0, message);\n }\n else {\n if (message.type == StdPeerMessage.INTERESTED) {\n interested = true;\n }\n else if (message.type == StdPeerMessage.NOT_INTERESTED) {\n interested = false;\n }\n else if (message.type == StdPeerMessage.UNCHOKE) {\n choke = false;\n }\n\n // enqueue message\n sendQueue.add(message);\n }\n\n// sendQueue.forEach(pm -> System.out.println(\" -x> \" + System.identityHashCode(pm) + pm.type + \" ,\" + pm.index +\",\" + pm.begin +\",\" + pm.length) );\n\n }",
"@Override\n\t\t\tpublic void onDataCallBack(String request, int code) {\n\t\t\t\tLog.e(\"NewFriendsAdapter\", \"UploadMessageBox:\"+code);\n\t\t\t\tif(code == 0){\n\t\t\t\t\t//DolphinApp.getInstance().notifyMsgRTC2Family(msgInfo.getFamilyId());\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void onDataCallBack(String request, int code) {\n\t\t\t\tLog.e(\"NewFriendsAdapter\", \"UploadMessageBox:\"+code);\n\t\t\t\tif(code == 0){\n\t\t\t\t\t//DolphinApp.getInstance().notifyMsgRTC2Family(msgInfo.getFamilyId());\n\t\t\t\t}\n\t\t\t}",
"MovilizerRequest getRequestFromString(String requestString);",
"public interface Request extends Message\n\t{\n String DESTINATION = \"aether.message.dest\";\n }",
"public boolean hasReqMessage() {\n return fieldSetFlags()[1];\n }",
"private PredictRequest() {\n\t}",
"EchoedRequestType createEchoedRequestType();",
"com.google.protobuf.ByteString getResponseMessage();",
"@Override\r\n\t\t\tpublic void onRequest() {\n\t\t\t\t\r\n\t\t\t}"
] | [
"0.6382167",
"0.618543",
"0.60145843",
"0.59550065",
"0.59145665",
"0.5902934",
"0.5881971",
"0.57874",
"0.5749575",
"0.5724409",
"0.57226175",
"0.57022375",
"0.5697641",
"0.56933796",
"0.5675074",
"0.5671904",
"0.56493086",
"0.563941",
"0.5612684",
"0.5601459",
"0.5590655",
"0.55877274",
"0.55761415",
"0.55629635",
"0.5562158",
"0.5551952",
"0.5541609",
"0.55299515",
"0.55104285",
"0.55104285",
"0.54803437",
"0.5476188",
"0.5463572",
"0.5446308",
"0.5442736",
"0.5435857",
"0.54292864",
"0.5417923",
"0.5409621",
"0.540629",
"0.54054224",
"0.54025257",
"0.53983724",
"0.53740674",
"0.53721875",
"0.5319831",
"0.5317997",
"0.53137505",
"0.53068393",
"0.529872",
"0.52754956",
"0.5274927",
"0.52737457",
"0.5266411",
"0.52636385",
"0.52418363",
"0.52395606",
"0.52352554",
"0.52300066",
"0.52294534",
"0.5227892",
"0.5226018",
"0.5222597",
"0.52190167",
"0.52106917",
"0.5200252",
"0.5200252",
"0.519944",
"0.51981455",
"0.51708245",
"0.51700574",
"0.51565653",
"0.5155737",
"0.5155554",
"0.51486015",
"0.5145085",
"0.5134431",
"0.5126205",
"0.5120521",
"0.5116746",
"0.51137847",
"0.5100392",
"0.50969106",
"0.50908214",
"0.50905013",
"0.5089232",
"0.50890875",
"0.5086047",
"0.5079353",
"0.5079215",
"0.5077762",
"0.50716144",
"0.50687635",
"0.50687635",
"0.50683796",
"0.5064503",
"0.506359",
"0.5060614",
"0.5050595",
"0.50505793",
"0.5044332"
] | 0.0 | -1 |
String site = "siete.gursky.sk"; | public static void main(String[] args) {
String site = "www.ics.upjs.sk";
int port = 80;
Socket socket = null;
try {
socket = new Socket(site, port);
OutputStream os = socket.getOutputStream();
PrintWriter pw = new PrintWriter(os);
InputStream is = socket.getInputStream();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
// poslanie poziadavky
pw.println("GET / HTTP/1.1");
pw.println("Host: "+site);
pw.println();
// odoslanie dat ktore su pripavene v streame
pw.flush();
// spravovanie poziadavky
String riadok;
while ((riadok = br.readLine()) != null) {
System.out.println(riadok);
}
} catch (IOException e) {
e.printStackTrace();
} finally {
if (socket != null) {
try {
socket.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSite();",
"String getWebsite();",
"String getInternetseite();",
"public Siteword(String site) {\r\n\t this.site = site;\r\n }",
"public String getSite() {\r\n return site;\r\n }",
"public String getSite() {\r\n return site;\r\n }",
"public String getSite() {\n return site;\n }",
"public String getSiteUrl();",
"public void setSite(String site) {\n\t\tthis.site = site.trim();\r\n\t}",
"public String getSiteNameReguex();",
"private static String getServerUrl() {\n\t\treturn \"http://jfabricationgames.ddns.net:5715/genesis_project_server/genesis_project/genesis_project/\";\n\t}",
"public static String getWebsite() {\n\t \treturn website;\n\t }",
"public String getWebsite() {\n return website;\n }",
"public String getWebsite() {\n return website;\n }",
"public java.lang.CharSequence getSite() {\n return site;\n }",
"public static String getTestsiteurl() {\n\t\treturn testsiteurl;\n\t}",
"@Test\n public void test_site() throws AppException {\n assertEquals(getSite(\"desktop_web\"),\"desktop web\");\n assertEquals(getSite(\"mobile_web\"),\"mobile web\");\n }",
"public String getShSite() {\n return shSite;\n }",
"public int getClientSite () {\n return clientSite;\n }",
"public void setSite(java.lang.CharSequence value) {\n this.site = value;\n }",
"public java.lang.CharSequence getSite() {\n return site;\n }",
"@Override\n\tpublic String getSiteUrl() {\n\t\treturn null;\n\t}",
"boolean isSite271(String url) {\n if (url.startsWith(\"http://pay.88vipbet.com/onlinePay\")) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public java.lang.String getWebsite () {\n\t\treturn website;\n\t}",
"public void setSite(String site) {\r\n this.site = site == null ? null : site.trim();\r\n }",
"public void setSite(String site) {\r\n this.site = site == null ? null : site.trim();\r\n }",
"public String getSzSite() {\n return szSite;\n }",
"String getHost();",
"public void testWebsite(String site) {\r\n\t\tdriver.findElement(website).sendKeys(site);\r\n\t\t\t\r\n\t\t}",
"public void setWebsite(String website) {\n this.website = website;\n }",
"public void setWebsite(String website) {\n this.website = website;\n }",
"public String getSiteUrl() {\n return siteUrl;\n }",
"public void setSite(String site) {\n this.site = site == null ? null : site.trim();\n }",
"private static void fillSourceSite() {\r\n\t\tsourceSites.add(\"http://hom.nfe.fazenda.gov.br/portal/WebServices.aspx\");\r\n\t\tsourceSites.add(\"http://www.nfe.fazenda.gov.br/portal/WebServices.aspx\");\r\n\t\tsourceSites.add(\"http://www.cte.fazenda.gov.br/webservices.aspx\");\r\n\t\tsourceSites.add(\"http://hom.cte.fazenda.gov.br/webservices.aspx\");\r\n\t\tsourceSites.add(\"https://mdfe-portal.sefaz.rs.gov.br/Site/Servicos\");\r\n\t}",
"String getServerUrl();",
"String getUrl();",
"String getUrl();",
"String getUrl();",
"String getUrl();",
"String getUrl();",
"public String getGameWebsite() {\n return gameWebsite;\n }",
"public String getUrl()\n\t\t{\n\t\t\treturn \"https://www.zohoapis.eu\";\n\t\t}",
"public static String getDotUrl()\n {\n return \"http://log.tusumobi.com/dot\";\n }",
"public void setWebsite (java.lang.String website) {\n\t\tthis.website = website;\n\t}",
"public String getWebsite() {\n return mWebsite;\n }",
"public void wapTinyurl() {\n String url = \"http://m.nuomi.com/mianyang/deal/l5kkhcqr\";\r\n Pattern p = Pattern.compile(\"^http://\\\\w+\\\\.nuomi\\\\.com/\\\\w+/deal/(\\\\w+$)\");\r\n Matcher m = p.matcher(url);\r\n if (m.find()) {\r\n p(m.group(1));\r\n }\r\n }",
"boolean isGaotongPay(String url) {\n if (url.startsWith(\"http://wgtj.gaotongpay.com/\")) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public ISite getSite() throws AstrometryException;",
"public static void traduitSiteFrancais() {\n\t\t\n\t}",
"public String getUrl(String service)\n {\n return myServerUrls.get(service);\n }",
"public String getHost();",
"public String getHost();",
"public String getCourseWebsite() {\n\t\tPattern p = Pattern.compile(\"Kursushjemmeside:\");\n\t\tMatcher m = p.matcher(bodyText);\n\t\t\n\t\tString closingIn = \"\";\n\t\ttry {\n\t\t\tif (m.find()) closingIn = bodyText.substring(m.start(), m.end()+100);\n\t\t} catch (Exception e) {\n\t\t\t//Do nothing\n\t\t}\n\t\t\n\t\t//Try to find some kind of link near the \"Kursushjemmeside\".\n\t\tPattern httpFind = Pattern.compile(\"http.*?\\\\s\");\n\t\tMatcher httpMatch = httpFind.matcher(closingIn);\n\t\treturn (httpMatch.find()) ? httpMatch.group().trim() : \"No Website Found\"; \n\t}",
"public String getSourceSite() {\n return sourceSite;\n }",
"public String getUrl()\n\t\t{\n\t\t\treturn \"https://sandbox.zohoapis.eu\";\n\t\t}",
"public static String getWebsiteBase( String url, IOntologyModel universitiesOntologyModel ) {\r\n if( url == null ) {\r\n return null;\r\n }; // if\r\n \r\n // the url would have to be at least 8 chars long (because it would have \"http://\" or \"https://\")\r\n int httpPosition = url.startsWith( \"http://\" ) ? 7 : -1;\r\n httpPosition = url.startsWith( \"https://\" ) ? 8 : httpPosition;\r\n if( httpPosition == -1 ) {\r\n System.out.println( \"WHATISTHIS--url(1),getWebsiteBase: \" + url );\r\n return null;\r\n }; // if\r\n \r\n int slashPosition = url.indexOf( \"/\", httpPosition );\r\n if( slashPosition == -1 ) {\r\n if( url.endsWith( \"/\" ) == false ) { \r\n url += \"/\";\r\n }; // if\r\n slashPosition = url.indexOf( \"/\", httpPosition );\r\n if( slashPosition == -1 ) {\r\n System.out.println( \"WHATISTHIS--url(2),getWebsiteBase: \" + url );\r\n return null;\r\n }; // if\r\n }; // if\r\n \r\n int pos = 0;\r\n String ret = url.substring( 0, slashPosition );\r\n String portEnding[] = { \":8080\", \":8000\" };\r\n IInstanceNode instanceNode = null;\r\n \r\n // fix any url with useless port ending\r\n for( String port : portEnding ) {\r\n if( ret.endsWith( port ) ) {\r\n ret = ret.substring( 0, ret.length() - port.length() );\r\n }; // if\r\n }; // for\r\n \r\n // handle \".edu\" ending\r\n String eduCases[] = { \".edu\", \".edu.ar\", \".edu.au\", \".edu.br\", \".edu.cn\", \".edu.eg\", \r\n \".edu.hk\", \".edu.kw\", \".edu.lb\", \".edu.my\", \r\n \".edu.ng\", \".edu.om\", \".edu.pl\", \".edu.sg\", \".edu.tr\", \".edu.tw\", \".edu.uy\", \r\n \r\n \".ac.ae\", \".ac.at\", \".ac.bd\", \".ac.be\", \".ac.cn\", \".ac.cr\", \".ac.cy\", \r\n \".ac.il\", \".ac.in\", \".ac.jp\", \".ac.kr\", \".ac.nz\", \".ac.ru\", \".ac.th\", \".ac.uk\", \".ac.yu\", \".ac.za\" };\r\n \r\n // search for possible 'edu/ac' match\r\n for( String edu : eduCases ) {\r\n if( ret.endsWith( edu ) ) {\r\n pos = ret.lastIndexOf( \".\", ret.length() - edu.length() - 1 );\r\n pos = pos == -1 ? httpPosition : pos + 1; // for cases such as http://uga.edu/~ana\r\n ret = \"http://www.\" + ret.substring( pos ) + \"/\";\r\n \r\n // now, look it up in the universities\r\n instanceNode = universitiesOntologyModel.getInstanceNode( ret );\r\n if( instanceNode != null ) {\r\n return ret;\r\n }; // if\r\n //TODO\r\n //System.out.println( \"WHATISTHIS--url(3),getWebsiteBase: \" + ret );\r\n return null;\r\n }; // if\r\n }; // for\r\n \r\n // maybe there's a match on universitiesOntology\r\n String pieces[] = ret.substring( httpPosition ).split( \"\\\\.\" );\r\n if( pieces != null && pieces.length >= 2 ) {\r\n String tmp = \"http://www.\" + pieces[ pieces.length - 2 ] + \".\" + pieces[ pieces.length - 1 ] + \"/\";\r\n instanceNode = universitiesOntologyModel.getInstanceNode( tmp );\r\n if( instanceNode != null ) {\r\n return tmp;\r\n }; // if\r\n }; // if\r\n \r\n //TODO\r\n //System.out.println( \"WHATISTHIS--url(4),getWebsiteBase: \" + ret );\r\n return null;\r\n }",
"String getServerBaseURL();",
"public void setSite(boolean site) {\n this.site = site;\n }",
"public String getWebsite(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, WEBSITE);\n\t}",
"public String getShijiangfenshuurl() {\n return shijiangfenshuurl;\n }",
"public String getSiteNumber()\n {\n \treturn siteNumber;\n }",
"String url();",
"public String getServiceSite() {\r\n\t\treturn serviceSite;\r\n\t}",
"public String getSiteName() {\n return siteName;\n }",
"public String getNameSite(){\n return this.mFarm.getNameSite();\n }",
"public void sendeSpielerWeg(String spieler);",
"@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarSustento\";\r\n\t}",
"URL getUrl();",
"String getDomain();",
"private String makeServerUrl(){\n\t\tURL url = null;\n\t\t\n\t\t//Make sure we have a valid url\n\t\tString complete = this.preferences.getString(\"server\", \"\");\n\t\ttry {\n\t\t\turl = new URL( complete );\n\t\t} catch( Exception e ) {\n\t\t\tonCreateDialog(DIALOG_INVALID_URL).show();\n\t\t\treturn null;\n\t\t}\n\t\treturn url.toExternalForm();\n\t}",
"public void irNoSiteN11 (){\n driver.get(URLbase);\n }",
"String host();",
"@Override\n public String getWeb() {\n return web;\n }",
"private String getSiteReference(Site site) {\r\n\tString siteId = site.getId();\r\n\tString val2 = contentHostingService.getSiteCollection(siteId);\r\n\tString refString = contentHostingService.getReference(val2);\r\n\treturn refString;\r\n }",
"public String getSITE_ID() {\n\t\treturn SITE_ID;\n\t}",
"public String getWebsite()\n\t{\n\t\treturn getWebsite( getSession().getSessionContext() );\n\t}",
"public static void traduitSiteAnglais() {\n\t\t\n\t}",
"public String getServerUrl()\n {\n return null;\n }",
"boolean isZXPay(String url) {\n if (url.startsWith(\"https://zhongxin.junka.com/\")) {\r\n return true;\r\n }\r\n return false;\r\n }",
"GetSiteResult getSite(GetSiteRequest getSiteRequest);",
"public String getShijiangneirongurl() {\n return shijiangneirongurl;\n }",
"S getServer();",
"String getNetzanbieter();",
"java.lang.String getHost();",
"java.lang.String getHost();",
"@Given(\"^the correct web address$\")\n\tpublic void the_correct_web_address() {\n\t \n\t}",
"public Site getSite() {\n return site;\n }",
"public String getSiteid() {\n return siteid;\n }",
"@Override\n public String getRequester() {\n return \"http://S-PEPS.gov.xx\";\n }",
"private static String getURL(String link) {\n\t\treturn \"https://en.wikipedia.org/wiki/\" + link;\n\t}",
"public String getSiteName() {\r\n\t\treturn siteName;\r\n\t}",
"public static void main(String[] args) {\n boolean httpUrl = StringUtil.isHttpUrl(\"https://www.bequgexs.com\");\r\n System.out.println(httpUrl);\r\n\t}",
"public Site getSite() {\n\t\treturn site;\n\t}",
"public String siteName() {\n return this.siteName;\n }",
"public void setSite(Site aSite) {\n this.site = aSite;\n }",
"public String getSiteName() {\n\t\treturn siteName;\n\t}",
"String getIntegHost();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();"
] | [
"0.70777094",
"0.69384897",
"0.6785438",
"0.6624684",
"0.6324488",
"0.6324488",
"0.6307313",
"0.6272223",
"0.60857576",
"0.5973567",
"0.5961791",
"0.59253633",
"0.58781946",
"0.58781946",
"0.5872049",
"0.58565116",
"0.58328",
"0.581141",
"0.57960147",
"0.57803756",
"0.57589984",
"0.5704599",
"0.56990206",
"0.569864",
"0.5652306",
"0.5652306",
"0.56464607",
"0.56314695",
"0.56222653",
"0.56163687",
"0.56163687",
"0.56091607",
"0.55921113",
"0.55920064",
"0.5568614",
"0.5563137",
"0.5563137",
"0.5563137",
"0.5563137",
"0.5563137",
"0.5524703",
"0.54896724",
"0.5486612",
"0.5472781",
"0.5462616",
"0.5443068",
"0.54348326",
"0.54178137",
"0.54127216",
"0.53850776",
"0.5371408",
"0.5371408",
"0.5349411",
"0.53383464",
"0.53342974",
"0.53232557",
"0.5317474",
"0.53157437",
"0.5314091",
"0.5307613",
"0.53063774",
"0.52971345",
"0.5295301",
"0.5268414",
"0.5260412",
"0.5256396",
"0.5255247",
"0.52324957",
"0.5231482",
"0.52222604",
"0.5215216",
"0.52116656",
"0.5206674",
"0.51974046",
"0.51967466",
"0.5180052",
"0.517736",
"0.5176507",
"0.51706433",
"0.51639414",
"0.5159917",
"0.5159769",
"0.51406324",
"0.5138442",
"0.5138442",
"0.5135422",
"0.51323634",
"0.51134366",
"0.5105966",
"0.50997585",
"0.5076391",
"0.5075899",
"0.50674766",
"0.50609964",
"0.5057455",
"0.50406224",
"0.5037247",
"0.50232476",
"0.50232476",
"0.50232476"
] | 0.5549852 | 40 |
Must inject a stage | public SceneDragFlowers(Stage theStage, View view) {
this.stage = theStage;
this.theStage = theStage;
this.view = view;
iv1 = new ImageView();
imc = new ViewDragFlowersController(this.theStage);
imc = new ViewDragFlowersController(this.stage);
// iv1 = new ImageView();
// imc = new ViewDragFlowersController(this.theStage);
// imc = new ViewDragFlowersController(this.stage);
imageDataList.clear();
s = new Stage();
//selection of plants after screening
FXMLLoader loader = FxUtils.getLoader("/fxml/s4_1.fxml");
Parent root = null;
try {
root = loader.load();
} catch (IOException e) {
e.printStackTrace();
}
limitMouseShowController = loader.getController();
Scene scene = new Scene(root);
s.setScene(scene);
s.setAlwaysOnTop(true);
for(Integer index:Data.plants_select){
Plant p = Data.filters.get(index);
ImageData imageData = new ImageData(p.getTemplateImg(),index,p.getGardenWidth(),p.getGardenHeight(),p);
imageDataList.add(imageData);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void setStage(int stage) {\n\r\n\t}",
"@Override \n public void start(Stage stage) throws Exception {\n \tBeanContext.getStage(\"a\").show();\n }",
"abstract Resource<Controller> setupStage(Stage stage);",
"public void setStage(Stage stage) {\r\n this.stage = stage;\r\n }",
"public void setStage(Stage stage) {\n this.stage = stage;\n }",
"public void setStage(Stage stage) {\n this.stage = stage;\n }",
"public void setStage(int stage) {\r\n\t\tthis.stage = stage;\r\n\t}",
"@Override\n\tpublic void start(Stage arg0) throws Exception \n\t{\t\t\n\n\t}",
"public void setStage(Stage stage) {\n\t\tthis.stage = stage;\n\t}",
"@Override\n\tpublic void buildStageByStyle(Stage stage, BaseController root) {\n\t\t\n\t}",
"public Stage getStage() {\n return stage;\n }",
"public Stage getStage() {\n return stage;\n }",
"public Stage getStage() {\n return stage;\n }",
"public Stage getStage() {\n return stage;\n }",
"String getStage();",
"public void setStage(Stage ventana) {\n\t\t\n\t}",
"@Override\r\n public StageDto updateStage(StageDto stageDto) {\n return null;\r\n }",
"public void setStage(Stage currStage) \n\t{\n\t\t// We do not create a new stage because we want to reference of the stage being passed in\n\t\tcurrentStage = currStage;\n\t}",
"public ProcessingStage getStage();",
"public void launch(String stage) {\n\t\tnew JFXPanel();\n\t\tresult = new FutureTask(new Callable(){\n \n @Override\n public Object call() throws Exception {\n StagedProduction prod=(StagedProduction)Class.forName(stage).getConstructor().newInstance();\n return (prod.produce());\n }\n \n \n });\n Platform.runLater(result);\n\t}",
"@java.lang.Override\n public int getStageValue() {\n return stage_;\n }",
"private void addStage(Stage s) {\r\n\t\tstages[num_stages] = s;\r\n\t\tnum_stages++;\r\n\t}",
"@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\n\t}",
"public void addStage(PipelineStage stag) {\r\n\t\tSystem.out.println(\"Adding stage \" + stag);\r\n\t\tstages.add(stag);\r\n\t}",
"public Game(Stage s){\n\t\tmyStage = s;\n\t}",
"public void addNewStage() {\n\t\tif (stage != 0 && getCurrentActions().isEmpty()) { // This should be validated by the command\n\t\t\tthrow new IllegalStateException(\"Cannot progress stage without actions\");\n\t\t}\n\n\t\tstage = amountOfStages\n\t\t\t\t+ 1; // The stage that is being edited may not be the latest so make sure not to duplicate\n\t\tamountOfStages++;\n\t\tstagesOfActions.putIfAbsent(stage, new LinkedHashMap<>());\n\t\tstageJsons.putIfAbsent(stage, new JsonObject());\n\t}",
"@Override\n\tpublic void setStage(java.lang.String stage) {\n\t\t_scienceApp.setStage(stage);\n\t}",
"void start(Stage primaryStage);",
"@Override\n public void start(Stage stage) throws Exception {//method inside Application abstract class\n displayClock(stage);\n }",
"@Override\r\n public void start(Stage stage) throws Exception \r\n {\r\n \r\n IData Data = new DataFacade();\r\n IBusiness Business = new BusinessFacade();\r\n IPresentation UI = PresentationFacade.getUI(); //new PresentationFacade();\r\n \r\n Business.injectData(Data);\r\n UI.injectBusiness(Business);\r\n UI.start();\r\n // Sagsbehandler: tota // abcabc\r\n // Admin: admin // 12345\r\n // Borger: borgar30 // 12345\r\n // Sekratær: ras // rass\r\n\r\n }",
"public static void setStage(Stage stage) {\n PageSwitcher.stage = stage;\n }",
"@Override\r\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\r\n\t}",
"abstract boolean processStage(Stage stage, Object data);",
"@java.lang.Override\n public int getStageValue() {\n return stage_;\n }",
"@Override\n public void start(Stage theStage) throws IOException {\n IntCodeGame game = new IntCodeGame(theStage);\n }",
"public StagePosition makeStagePosition();",
"public void setStageProgression(float stageProgression)\n\t{\n\t\tthis.stageProgression = stageProgression;\n\t}",
"public void add_stage() {\r\n\t\tif (this.controller.getSelectedCatagory() == null)\r\n\t\t\treturn;\r\n\t\tString name = JOptionPane.showInputDialog(this,\r\n\t \t\"Choose a name for the stage\",\r\n\t \"Name Stage\", 1);\r\n\t if (name == null) {\r\n\t \treturn;\r\n\t }\r\n\t // If the stage cannot be added, inform the user\r\n\t\tif (!controller.addStage(name)) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A Stage with that name already exists\");\r\n\t\t}\r\n\t}",
"private void setPrimaryStage(Stage pStage) {\n GUI.pStage = pStage;\n }",
"public void setStage(){\n if(id < 3)\n stage = 1;\n if(id >= 3 && id < 6)\n stage = 2;\n if(id >= 6 && id < 9)\n stage = 3;\n if(id >= 9)\n stage = 4;\n }",
"@Override\n public void start (Stage stage) throws IOException {\n init.start(stage);\n myScene = view.makeScene(50,50);\n stage.setScene(myScene);\n stage.show();\n }",
"@Override\n\tpublic void start(Stage stage) throws Exception {\n\t\tStackPane pane = new StackPane();\n\t\tScene scene = new Scene(pane);\n\t\tfirstLevel();\n\t\tpane.getChildren().add(mRoot);\n\t\tstage.setScene(scene);\n\t\t\n\t\t\n\t}",
"final Stage getLocalStage() {\n\t\t// retrnamos la etapa actual\n\t\treturn this.localStage;\n\t}",
"@Override\n public void start(final Stage stage) {\n\tLabel label = new Label(\" The key to making programs fast\\n\" +\n\t\t\t\" is to make them do practically nothing.\\n\" +\n\t\t\t\" -- Mike Haertel\");\t\n\tCircle circle = new Circle(160, 120, 30);\n\tPolygon polygon = new Polygon(160, 120, 200, 220, 120, 220);\n\tGroup group = new Group(label, circle, polygon);\n Scene scene = new Scene(group,320,240);\n stage.setScene(scene);\n\tstage.setTitle(\"CS 400: The Key\");\n stage.show();\n }",
"@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tnew VoogaChooser(primaryStage);\n\t}",
"public void setProdutoStage(Stage produtoStage) {\n\t\tthis.produtoStage = produtoStage;\n\t}",
"public void start(Stage mainStage) throws IOException { \r\n\r\n\t}",
"public void setSTAGE(BigDecimal STAGE) {\r\n this.STAGE = STAGE;\r\n }",
"@Test\n\tvoid testInitStage() {\n\t\tstage.initStage();\n\t\tassertEquals(400, (stage.getBoxes().get(0).getX()));\n\t\tassertEquals(250, (stage.getBoxes().get(0).getY()));\n\t\tassertEquals(250, stage.getCoins().get(0).getX());\n\t\tassertEquals(210, stage.getCoins().get(0).getY());\n\t\tassertEquals(40, stage.getCat().getX());\n\t\tassertEquals(250, stage.getCat().getY());\n\t\tassertEquals(600, stage.getGhosts().get(0).getX());\n\t\tassertEquals(210, stage.getGhosts().get(0).getY());\n\t\tassertEquals(400, stage.getBird().getX());\n\t\tassertEquals(160, stage.getBird().getY());\n\n\t}",
"@Override\r\n public void start(Stage primaryStage) {\n }",
"public void start(Stage mainStage) {\r\n\t\t\r\n\t}",
"public void start(Stage mainStage) {\n\t\t\n\t}",
"@Override\r\n\tpublic Node visitStages(StagesContext ctx) {\n\t\treturn super.visitStages(ctx);\r\n\t}",
"public static Stage getMainStage(){\r\n return mainStage;\r\n }",
"public abstract Stage getNextStage(int score);",
"@Override\n\tpublic void start(Stage stage) throws Exception {\n\t\tinstance = this;\n\t\tmainStage = stage;\n\t\tHemsProps.init(hemsPropsPath);\n\t\t\n\t\t//decide if data upload mode or normal production\n\t\tif (!IS_DATA_UPLOAD_MODE) {\n\t\t\tstage.setScene(createScene(loadMainPane()));\n\t\t\tstage.setTitle(windowTitle);\n\t\t\tstage.show();\n\n\t\t} else {\n\t\t\tDataCreator();\n\t\t}\n\t}",
"public void nextStage() {\n\t\tcurrentStage.setActive(false);\n\t\tcurrentStageNumber++;\n\t\tchildren.add(currentStage = new Stage(this, StageLocations.mesta2, currentStageNumber));\n\t}",
"public void setPrimaryStage(Stage s) {\n primaryStage = s;\n }",
"public void setCurrStage(Vector4f currStage)\n\t{\n\t\tthis.currStage = currStage;\n\t}",
"public DraftKit_GUI(Stage initPrimaryStage) {\n primaryStage = initPrimaryStage;\n }",
"public int getCurrentStage() {\n return currentStage;\n }",
"public void prepareStageEvents(Stage stage)\n {\n System.out.println(\"Preparing stage events...\");\n\n this.stage = stage;\n\n stage.setOnCloseRequest(new EventHandler<WindowEvent>() {\n public void handle(WindowEvent we) {\n System.out.println(\"Close button was clicked!\");\n stage.close();\n }\n });\n }",
"private void setStage() {\n\t\tstage = new Stage();\n\t\tstage.setScene(myScene);\n\t\tstage.setTitle(title);\n\t\tstage.show();\n\t\tstage.setResizable(false);\n//\t\tstage.setOnCloseRequest(e -> {\n//\t\t\te.consume();\n//\t\t});\n\t}",
"@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\ttry {\n\t\t\tStartFactory start = new StartFactory(primaryStage);\n\t\t\tstart.init();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n\tpublic void setStageController(StageController stageController) {\n\t\tmyController = stageController;\r\n\t}",
"@Override\r\n public void start(Stage stage) throws Exception {\r\n \r\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"FXMLDocument.fxml\"));\r\n Parent root = loader.load();\r\n FXMLDocumentController controller = loader.getController();\r\n controller.injectBusiness(business);\r\n \r\n Scene scene = new Scene(root);\r\n \r\n stage.setScene(scene);\r\n stage.show();\r\n }",
"@Test\n public void testStart() {\n System.out.println(\"start\");\n Stage primaryStage = null;\n Register_FX instance = null;\n instance.start(primaryStage);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"private void initStage() {\n stage = new Stage();\n stage.setTitle(\"Attentions\");\n stage.setScene(new Scene(root));\n stage.sizeToScene();\n }",
"@Override\n public void start(Stage stage){\n // set the stage\n this.stage = stage;\n\n // set the scenes\n mainScene();\n inputScene();\n\n // set the stage attributes\n stage.setTitle(\"Maze solver\");\n stage.setWidth(VisualMaze.DISPLAY_WIDTH);\n stage.setHeight(VisualMaze.DISPLAY_HEIGHT + 200);\n stage.setScene(main);\n\n // display the app\n stage.show();\n }",
"public void start(Stage stage) {\r\n // Setting our primaryStage variable to the stage given to us by init()\r\n primaryStage = stage;\r\n // Retrieving the primary scene (the first thing we want the user to see)\r\n Scene primaryScene = getPrimaryScene();\r\n // Setting the title of the stage, basically what the window says on the top left\r\n primaryStage.setTitle(\"SeinfeldMemeCycler\");\r\n // Setting the scene\r\n primaryStage.setScene(primaryScene);\r\n // Displaying the stage\r\n primaryStage.show();\r\n }",
"public void setStage(Stage currentStage)\n\t{\n\t\tthis.thisStage = currentStage;\n\t\tthisStage.setOnCloseRequest(new EventHandler<WindowEvent>() {\n\t\t\tpublic void handle(WindowEvent t) {\n\t\t\t\t//Platform.exit();\n\t\t\t}\n\t\t});\n\t}",
"private void closeStage() {\n ImmutableSet<FlowTableOperation> stage = currentStage.build();\n if (!stage.isEmpty()) {\n listBuilder.add(stage);\n }\n }",
"public Stage retrieveStage()\n {\n return gameStage;\n }",
"@Override // Override the start method in the Application class\r\n /**\r\n * Start method for layout building\r\n */\r\n public void start(Stage primaryStage)\r\n {\n Scene scene = new Scene(pane, 370, 200);\r\n primaryStage.setTitle(\"Sales Conversion\"); // Set the stage title\r\n primaryStage.setScene(scene); // Place the scene in the stage\r\n primaryStage.show(); // Display the stage\r\n }",
"@Override\r\n public void render() {\n \r\n stage.act();\r\n stage.draw();\r\n }",
"private void evaluateStage(){\n switch (currentStage){\n case EGG: if (getLifetime() >= ModelSettings.brood_lifetime_egg)\n currentStage = LARVAE;\n break;\n case LARVAE: if (getLifetime() >= ModelSettings.brood_lifetime_larvae)\n currentStage = PUPAE;\n break;\n case PUPAE: if (getLifetime() >= ModelSettings.brood_lifetime_pupae)\n System.out.println(\"This pupae is now an adult!\");\n //TODO trigger manager\n break;\n }\n }",
"private void start (final Stage stage) throws IOException{\n Parent pa = FXMLLoader.load(getClass().getResource(\"/toeicapp/EditQuestion.fxml\"));\n Scene scene = new Scene(pa);\n scene.setFill(Color.TRANSPARENT);\n stage.setTitle(\"Cập nhật Câu hỏi\"); \n stage.setScene(scene);\n stage.show();\n }",
"@Override\n public void start(Stage stage) {\n\n ModelImpl model = new ModelImpl(PuzzleLibrary.create());\n ControllerImpl controller = new ControllerImpl(model);\n Clues clues = model.GetClues();\n PuzzelView puzzle = new PuzzelView(controller, model, stage);\n model.addObserver(puzzle);\n stage.setScene(puzzle.getScene());\n stage.show();\n\n // GridPane g = new GridPane();\n // Scene scene = new Scene(g, 1000, 1000);\n // scene.getStylesheets().add(\"style/stylesheet.css\");\n // stage.setScene(scene);\n\n }",
"public WindowLoader(Stage primaryStage) {\n\t\tw = primaryStage;\n\t}",
"@Override\r\n\tpublic void start(Stage stage) throws Exception {\r\n\t\t\r\n\t\tthis.stage = stage;\r\n\t\t\r\n\t\tstage.setTitle(windowName);\r\n\r\n\t\tPlatform.setImplicitExit(false);\r\n\r\n\t\tFXMLLoader loader = new FXMLLoader();\r\n\r\n\t\tloader.setClassLoader(this.getClass().getClassLoader());\r\n\t\t\r\n\t\tParent box = loader.load(new ByteArrayInputStream(fxml.getBytes()));\r\n\t\t\r\n\t\tcontroller = loader.getController();\r\n\t\t\r\n\t\tcontroller.setGUI(this);\r\n\r\n\t\tscene = new Scene(box);\r\n\t\t\r\n\t\tscene.setFill(Color.TRANSPARENT);\r\n\r\n\t\tif (this.customTitleBar)\r\n\t\t\tstage.initStyle(StageStyle.UNDECORATED);\r\n\t\t\r\n\t\tif (this.css != null)\r\n\t\t\tscene.getStylesheets().add(this.css.toExternalForm());\r\n\t\tstage.setScene(scene);\r\n\t\t\r\n\t\tstage.setResizable(false);\r\n\r\n\t\tstage.setOnCloseRequest(new EventHandler<WindowEvent>() {\r\n\r\n\t @Override\r\n\t public void handle(WindowEvent event) {\r\n\t Platform.runLater(new Runnable() {\r\n\r\n\t @Override\r\n\t public void run() {\r\n\t endScript();\r\n\t }\r\n\t });\r\n\t }\r\n\t });\r\n\t\t\r\n\t}",
"public Stage returnStage() {\n\t\t\treturn stage;\n\t\t}",
"private boolean isStageRequired(final String stage) {\n return mRegistrationResponse != null\n && isRequired(stage)\n && !isCompleted(stage);\n }",
"@Override\n public void start( Stage primaryStage ) throws Exception {\n primaryStage.setTitle(\"Battleship\");\n primaryStage.setScene(createScene());\n primaryStage.show();\n }",
"final void setLocalStage(final Stage newStage) {\n\t\t// almacenamos la nueva etapa\n\t\tthis.localStage = newStage;\n\t\t// mostramos un mensaje\n\t\tthis.getLogger().debug(\"Changing Local Stage to: \" + this.getLocalStage());\n\t}",
"@Override\r\n\tpublic void start(Stage s) throws Exception {\n\t\tc=new Container();\r\n\t\tthis.st=s;\r\n\t\tc.setFs(new FirstScreen(st,c));\r\n\t\tthis.sc=new Scene(c.getFs(), 800,600);\r\n\t\tst.setScene(sc);\r\n\t\tst.setTitle(\"Main Window\");\r\n\t\tst.show();\r\n\t}",
"public Builder setStageValue(int value) {\n stage_ = value;\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }",
"public void start(Stage myStage) { \n \n System.out.println(\"Inside the start() method.\"); \n \n // Give the stage a title. \n myStage.setTitle(\"JavaFX Skeleton.\"); \n \n // Create a root node. In this case, a flow layout \n // is used, but several alternatives exist. \n FlowPane rootNode = new FlowPane(); \n \n // Create a scene. \n Scene myScene = new Scene(rootNode, 300, 200); \n \n // Set the scene on the stage. \n myStage.setScene(myScene); \n \n // Show the stage and its scene. \n myStage.show(); \n }",
"protected AbstractPipelineStage(StageType type) {\r\n\t\tthis.type = type;\r\n\t}",
"@Override\n\tpublic java.lang.String getStage() {\n\t\treturn _scienceApp.getStage();\n\t}",
"public void nextStage(){\n\t\tif (this.stage >= MAX_STAGES){\n\t\t\treturn;\n\t\t}\n\t\tthis.stage++;\n\t\trepaint(); // Update stage.\n\t}",
"@Override\n\tpublic void start(Stage stage) throws Exception {\n\t\tSideMenu sidemenu = new SideMenu(canvas);\n\t\tgridpane.add(sidemenu, 0, 0);\n\t\tgridpane.add(canvas, 1, 0);\n\t\t\n\t\tScene scene = new Scene(gridpane);\n\t\t\n\t\tstage.setScene(scene);\n\t\tstage.sizeToScene();\n\t\t\n\t\tstage.setTitle(\"Make your own Dot Drawing - By Joeri\");\n\t\tstage.show();\n\t\t\n\t\tstage.setMinWidth(stage.getWidth());\n\t\tstage.setMinHeight(stage.getHeight());\n\t}",
"@Override\n public void start(Stage stage) throws Exception {\n final Rectangle rectBasicTimeline = new Rectangle(100, 50, 100, 50);\n rectBasicTimeline.setFill(Color.RED);\n\n Group p = new Group();\n Scene scene = new Scene(p);\n stage.setScene(scene);\n stage.setWidth(500);\n stage.setHeight(500);\n\n p.getChildren().add(rectBasicTimeline);\n stage.show();\n\n // -------------- Set up a timeline with an event that moves rect\n // Animation\n final Timeline timeline = new Timeline();\n timeline.setCycleCount(Timeline.INDEFINITE);\n\n EventHandler<ActionEvent> onFinished = new EventHandler<ActionEvent>() {\n public void handle(ActionEvent t) {\n System.out.println(\"Calling setX\");\n rectBasicTimeline.setX(rectBasicTimeline.getX() + 10);\n }\n };\n\n final KeyFrame kf = new KeyFrame(Duration.millis(1000), onFinished);\n timeline.getKeyFrames().add(kf);\n timeline.play();\n\n }",
"public void setEditingStage(int stage) {\n\t\tif (amountOfStages < stage) {\n\t\t\tthrow new IllegalArgumentException(\"Attempting to switch to stage which does not exist\");\n\t\t}\n\n\t\tthis.stage = stage;\n\t}",
"public void start(Stage mainStage) throws Exception{\r\n\t\tcreatePane();\r\n\t\tcreateStage(mainStage);\r\n\t\tmainStag = mainStage;\r\n\t\tmainStag.show();\r\n\t}",
"@Override\n public void start(Stage stage) throws Exception {\n LaunchOptions options = new LaunchOptions(false);\n if (options.skipLauncher) {\n log.warn(\"Launcher was skipped\");\n launchGame(options);\n } else {\n stage.setScene(new Launcher(stage, options));\n stage.centerOnScreen();\n stage.show();\n }\n }",
"@Override\n public void start(Stage stage) throws IOException {\n logInfo();\n\n scene = new Scene(loadFXML(\"mainView\"));\n stage.setScene(scene);\n stage.setTitle(\"OzoMorph\");\n stage.show();\n }",
"@Override\r\n public void start(Stage primaryStage) throws Exception{\n primaryStage.setTitle(\"Color switch\");\r\n Gameplay obj1 = new Gameplay();\r\n obj1.mainmenu(primaryStage);\r\n// pane.getChildren().add(new Polygon(10,20,30,10,20,30));\r\n\r\n }",
"public static Stage getPrimaryStage() {\n return pStage;\n }",
"public void setStage(GameStage stage) {\n\t\tif (stage == GameStage.DEAL) {\n\t\t\thands.clear();\n\t\t\tHand hand = new Hand();\n\t\t\tthis.addHand(hand);\n\t\t\tthis.activeHand = null;\n\t\t}\n\t\tfor (Hand hand : hands) {\n\t\t\tGameStage handStage = hand.getStage();\n\t\t\tif (handStage != GameStage.UNACTIVE && handStage.compareTo(stage) < 0) {\n\t\t\t\thand.setStage(stage);\n\t\t\t}\n\t\t}\n\t\tthis.stage = stage;\n\t}",
"void createStage(Stage stage){\n\t\tstage.setHeight(background.getHeight()+25);//displays full image (1)\r\n\t\tstage.setWidth(background.getWidth());\r\n\t\tshowBackground.setFitWidth(stage.getWidth());\r\n\t\tshowBackground.setFitHeight(stage.getHeight()-23);//displays full image (1)\r\n\t\r\n\t\tstage.setAlwaysOnTop(true);\r\n\t\tstage.setResizable(false);\r\n\t\t\r\n\t\t//launches first window in center of screen. \r\n\t\tstage.centerOnScreen();\r\n\t\tstage.setScene(mainScene);\r\n\t\tstage.setTitle(\"Don't Play Games in Class\");\r\n\t\t//supposed to prevent window from being moved\r\n\t\t\r\n\t\t//removes minimize, maximize and close buttons\r\n\t\t//unused because replacing the \r\n\t\t//stage.initStyle(StageStyle.UNDECORATED);\r\n\t\t\r\n\t\t//removes minimize and maximize button\r\n\t\tstage.initStyle(StageStyle.UTILITY);\r\n\t\t\r\n\t\t//replaces the closed window in the center of the screen.\r\n\t\tRespawn launch = new Respawn();\r\n\t\tstage.setOnCloseRequest(launch);\r\n\t}",
"private Optional<List<Stage>> toStages(Holder.Stage stage) {\n if (stage.isSyntheticStage()) {\n log.debug(\"Discarding synthetic stage\");\n return Optional.empty();\n }\n\n Status stageStatus =\n Status.valueOf(parseEnum(Status.getDescriptor(), stage.getStatus().toUpperCase()));\n Stage.Builder stageBuilder = Stage.newBuilder().setType(stage.getType()).setStatus(stageStatus);\n\n List<Stage> returnList = new ArrayList<>();\n String cloudProvider = stage.getContext().getCloudProvider();\n if (StringUtils.isNotEmpty(cloudProvider)) {\n stageBuilder.setCloudProvider(toCloudProvider(cloudProvider));\n returnList.add(stageBuilder.build());\n } else if (StringUtils.isNotEmpty(stage.getContext().getNewState().getCloudProviders())) {\n // Create and Update Application operations can specify multiple cloud providers in 1\n // operation.\n String[] cloudProviders = stage.getContext().getNewState().getCloudProviders().split(\",\");\n for (String cp : cloudProviders) {\n returnList.add(stageBuilder.clone().setCloudProvider(toCloudProvider(cp)).build());\n }\n } else {\n returnList.add(stageBuilder.build());\n }\n\n return Optional.of(returnList);\n }"
] | [
"0.728171",
"0.70838714",
"0.69048536",
"0.69004864",
"0.68575746",
"0.68575746",
"0.68400806",
"0.67833436",
"0.67694134",
"0.6656387",
"0.65575707",
"0.6471828",
"0.6471828",
"0.6471828",
"0.64578605",
"0.64241034",
"0.6414154",
"0.6405136",
"0.6385071",
"0.63640034",
"0.6329216",
"0.63231426",
"0.62792903",
"0.6235586",
"0.61667705",
"0.6166235",
"0.6153513",
"0.6147141",
"0.61297",
"0.61238635",
"0.61233264",
"0.61223614",
"0.61142075",
"0.6105885",
"0.608995",
"0.60835433",
"0.60773563",
"0.60264707",
"0.600716",
"0.59910583",
"0.5979003",
"0.5972162",
"0.5953858",
"0.59130585",
"0.588786",
"0.58759296",
"0.58465576",
"0.5840635",
"0.5838566",
"0.5822969",
"0.57856995",
"0.57701176",
"0.5766549",
"0.57603806",
"0.5749046",
"0.57379425",
"0.57364196",
"0.5734278",
"0.572528",
"0.5711322",
"0.5709574",
"0.57079965",
"0.5697848",
"0.5696716",
"0.56920475",
"0.5668462",
"0.56638575",
"0.5663537",
"0.5658002",
"0.56538165",
"0.5641568",
"0.56331164",
"0.5622094",
"0.5621047",
"0.5611764",
"0.56103057",
"0.5601975",
"0.5595143",
"0.5590097",
"0.5575702",
"0.5575568",
"0.5570505",
"0.55672",
"0.55582714",
"0.5548035",
"0.5530141",
"0.5522951",
"0.55219865",
"0.551989",
"0.55187875",
"0.55061054",
"0.5505503",
"0.55021065",
"0.54814726",
"0.5475349",
"0.5474609",
"0.54695255",
"0.54654837",
"0.5461827",
"0.54485625",
"0.54477733"
] | 0.0 | -1 |
Returns the codec name for the encoding process. | String getCodec() {
return codec;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName()\n {\n return codecInfo.getName();\n }",
"public String getName() {\r\n\t\t\treturn \"MyCodec\";\r\n\t\t}",
"public String getName() {\n return CODEC_NAME;\n }",
"Codec getCurrentCodec();",
"public Codec getCodec();",
"public final Codec getCodec()\n\t{\n\t\treturn codec;\n\t}",
"public AbstractVCFCodec getCodec();",
"String getEncoding();",
"public String getVideoCodec() {\n return videoCodec;\n }",
"public String getAudioCodec() {\n return audioCodec;\n }",
"public String getMediaFormatEncoding() {\r\n\t\treturn this.getMedia() + \" - \" + this.getFormat() + \" - \" + this.getEncoding();\r\n\r\n\t}",
"public String getCharsetName() {\r\n\t\tif (charsetName == null) {\r\n\t\t\tcharsetName = DEFAULT_CHARSET_NAME;\r\n\t\t}\r\n\t\treturn charsetName;\r\n\t}",
"public static CodecInfo getCodecForType(String mimeType, boolean isEncoder)\n {\n for(CodecInfo codec : codecs)\n {\n if( !codec.isBanned()\n && codec.mediaType.equals(mimeType)\n && codec.codecInfo.isEncoder() == isEncoder )\n {\n return codec;\n }\n }\n return null;\n }",
"@TargetApi(Build.VERSION_CODES.JELLY_BEAN)\n private static MediaCodecInfo chooseVideoEncoder(String name) {\n\n int nbCodecs = MediaCodecList.getCodecCount();\n\n for (int i = 0; i < nbCodecs; i++) {\n MediaCodecInfo mci = MediaCodecList.getCodecInfoAt(i);\n if (!mci.isEncoder()) {\n continue;\n }\n String[] types = mci.getSupportedTypes();\n for (int j = 0; j < types.length; j++) {\n if (types[j].equalsIgnoreCase(VCODEC)) {\n LogUtil.i(TAG, String.format(\"vencoder %s types: %s\", mci.getName(), types[j]));\n if (name == null) {\n return mci;\n }\n if (mci.getName().contains(name)) {\n return mci;\n }\n }\n }\n }\n return null;\n }",
"private static MediaCodecInfo selectCodec(String mimeType) {\n int numCodecs = MediaCodecList.getCodecCount();\n for (int i = 0; i < numCodecs; i++) {\n MediaCodecInfo codecInfo = MediaCodecList.getCodecInfoAt(i);\n\n if (!codecInfo.isEncoder()) {\n continue;\n }\n\n String[] types = codecInfo.getSupportedTypes();\n for (int j = 0; j < types.length; j++) {\n if (types[j].equalsIgnoreCase(mimeType)) {\n return codecInfo;\n }\n }\n }\n return null;\n }",
"String getCharset();",
"public String getDeclaredEncoding();",
"public ProtocolCodecFactory getCodecFactory()\n {\n return CODEC_FACTORY;\n }",
"public java.lang.String getCodingSchemeName() {\n return codingSchemeName;\n }",
"Charset getEncoding();",
"public static Codec getDefault() {\n return defaultCodec;\n }",
"public String getEncoderId() {\n return this.mEncoderId;\n }",
"public String getEncoding() {\n return encoding;\n }",
"public String getFormatCode() {\n if (format == null) return \"MP4\";\n switch(format) {\n case \"Windows Media\": return \"WMV\";\n case \"Flash Video\": return \"FLV\";\n case \"MPEG-4\": return \"MP4\";\n case \"Matroska\": return \"MKV\";\n case \"AVI\": return \"AVI\";\n default: return \"MP4\";\n }\n }",
"public String getEncoding() {\n return encoding;\n }",
"public String getEncoding() {\n return encoding;\n }",
"public String getEncoding() {\n return encoding;\n }",
"public String getEncoding() {\r\n\t\treturn encoding;\r\n\t}",
"public String getEncoding() {\n\t\treturn (encoding != null && !encoding.isEmpty()) ? encoding : System.getProperty(\"file.encoding\"); //NOI18N\n\t}",
"public String getEncoding() {\n\t\treturn encoding;\n\t}",
"java.lang.String getCodeName();",
"public String getJavaEncoding();",
"public String getProtocolName()\n {\n return Resources.getString(\"plugin.dictaccregwizz.PROTOCOL_NAME\");\n }",
"public String getEncoding () {\n return encoding;\n }",
"public String getCoderegion() {\n return (String) getAttributeInternal(CODEREGION);\n }",
"public java.lang.String getCodeName() {\n java.lang.Object ref = codeName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n codeName_ = s;\n }\n return s;\n }\n }",
"public String getEncoding() {\n return null;\n }",
"public String getEncoding() {\n\t\treturn this.encoding;\n\t}",
"public String getEncoding()\n\t\t{\n\t\t\treturn m_encoding;\n\t\t}",
"public static String getName() {\n\t\treturn _asmFileStr;\n\t}",
"public static String getOutputFormatClassName(HudiFileFormat baseFileFormat) {\n switch (baseFileFormat) {\n case PARQUET:\n case HFILE:\n return MAPRED_PARQUET_OUTPUT_FORMAT_NAME;\n case ORC:\n return ORC_OUTPUT_FORMAT_NAME;\n default:\n throw new RuntimeException(\"No OutputFormat for base file format \" + baseFileFormat);\n }\n }",
"com.google.protobuf.ByteString\n getCodeNameBytes();",
"public String getEncoding() {\n return encoding;\n }",
"public String getCompressorName()\n {\n return useCompression() ? compressor.getClass().getSimpleName() : \"none\";\n }",
"public String getCodename() {\n return codename;\n }",
"public String getAudioEncoding() {\n return audioEncoding;\n }",
"public java.lang.String getCodeName() {\n java.lang.Object ref = codeName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n codeName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"String getPlatformName();",
"public final PlatformName getPlatformName() {\n return configuration.getApplicationProfile().getPlatformName();\n }",
"public String getEncoding() {\n \t return null;\n \t }",
"public String getEncoding() {\n \t return null;\n \t }",
"public String getJCEProviderName() {\n/* 196 */ return this.signatureAlgorithm.engineGetJCEProviderName();\n/* */ }",
"com.google.protobuf.ByteString\n getDatabaseNameBytes();",
"com.google.protobuf.ByteString\n getDatabaseNameBytes();",
"com.google.protobuf.ByteString\n getDatabaseNameBytes();",
"com.google.protobuf.ByteString\n getDatabaseNameBytes();",
"public String getCpuName() {\r\n if(isMips32()) {\r\n return getArchNameForCompiler();\r\n } else {\r\n return pic_.getArchitecture().toLowerCase();\r\n }\r\n }",
"public String getEncoding() {\r\n return \"B\";\r\n }",
"public String getAlgorithmName ()\n {\n return algName; //(new String (algName + \" --> Input Stream : \" + this.inputName));\n }",
"public String getCodingMode() {\n return this.codingMode;\n }",
"public String getFileEncoding() {\n return fileEncoding;\n }",
"public String getSigAlgName()\n {\n Provider prov = Security.getProvider(BouncyCastleProvider.PROVIDER_NAME);\n\n if (prov != null)\n {\n String algName = prov.getProperty(\"Alg.Alias.Signature.\" + this.getSigAlgOID());\n\n if (algName != null)\n {\n return algName;\n }\n }\n\n Provider[] provs = Security.getProviders();\n\n //\n // search every provider looking for a real algorithm\n //\n for (int i = 0; i != provs.length; i++)\n {\n String algName = provs[i].getProperty(\"Alg.Alias.Signature.\" + this.getSigAlgOID());\n if (algName != null)\n {\n return algName;\n }\n }\n\n return this.getSigAlgOID();\n }",
"public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}",
"public Charset getPreferredCharset();",
"private static CharsetEncoder getCoder(String charset) throws UnsupportedEncodingException\n\t{\n\t\tcharset = charset.toLowerCase();\t\t\n\t\tif (charset.equals(\"iso-8859-1\") || charset.equals(\"latin1\"))\t\t\t\n\t\t\treturn new Latin1Encoder();\n\t\tif (charset.equals(\"utf-8\") || charset.equals(\"utf8\"))\t\t\t\n\t\t\treturn new UTF8Encoder();\n\t\t\n\t\tthrow new UnsupportedEncodingException(\"unsupported encoding \"+charset);\n\t}",
"public static String getSymbolLookupProjectName() {\n\t\tIPreferenceStore prefs = Activator.getDefault().getPreferenceStore();\n\t\tString name = prefs.getString(GHIDRA_SYMBOL_LOOKUP_PROJECT_NAME);\n\t\tif (name.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn name;\n\t}",
"EncodingEnum getEncoding();",
"public String getFileEncoding() {\n return fileEncoding;\n }",
"private static Charset lookup(String enc) {\n try {\n if (enc != null && Charset.isSupported(enc)) {\n return Charset.forName(enc);\n }\n } catch (IllegalArgumentException ex) {\n // illegal charset name\n // unsupport charset\n }\n return null;\n }",
"@java.lang.Override\n public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() {\n com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result =\n com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_);\n return result == null\n ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED\n : result;\n }",
"public String getArchNameForCompiler() {\r\n return getArch().name().toLowerCase().replace('_', '.');\r\n }",
"public abstract String getSigAlgName();",
"String getContentEncoding();",
"public static String getProjectCharset(IProject project){\r\n\t\ttry {\r\n\t\t\tString charset = project.getDefaultCharset();\r\n\t\t\tif(charset.equals(\"MS932\")){\r\n//\t\t\t\tcharset = \"Shift_JIS\";\r\n\t\t\t\tcharset = \"Windows-31J\";\r\n\t\t\t}\r\n\t\t\treturn charset;\r\n\t\t} catch(Exception ex){\r\n\t\t\tHTMLPlugin.logException(ex);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public String getAlgorithmName() {\n\t}",
"com.google.protobuf.ByteString\n getChannelNameBytes();",
"public String getName() {\n\t\treturn JWLC.nativeHandler().wlc_output_get_name(this.to());\n\t}",
"public java.lang.CharSequence getRcodename() {\n return rcodename;\n }",
"public void setCodec(Codec codec);",
"@java.lang.Override\n public int getEncodingValue() {\n return encoding_;\n }",
"public String getJarName() {\r\n\t\tURL clsUrl = getClass().getResource(getClass().getSimpleName() + \".class\");\r\n\t\tif (clsUrl != null) {\r\n\t\t\ttry {\r\n\t\t\t\tjava.net.URLConnection conn = clsUrl.openConnection();\r\n\t\t\t\tif (conn instanceof java.net.JarURLConnection) {\r\n\t\t\t\t\tjava.net.JarURLConnection connection = (java.net.JarURLConnection) conn;\r\n\t\t\t\t\tString path = connection.getJarFileURL().getPath();\r\n\t\t\t\t\t// System.out.println (\"Path = \"+path);\r\n\t\t\t\t\tint index = path.lastIndexOf('/');\r\n\t\t\t\t\tif (index >= 0)\r\n\t\t\t\t\t\tpath = path.substring(index + 1);\r\n\t\t\t\t\treturn path;\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tprotected String getAlgorithmName() {\n\t\treturn \"capture\";\r\n\t}",
"public String getJarfileName()\n {\n return mcVersion.name() +'-'+name+'-'+modVersion;\n }",
"String getStreamName();",
"public java.lang.CharSequence getRcodename() {\n return rcodename;\n }",
"@java.lang.Override\n public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() {\n com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result =\n com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_);\n return result == null\n ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED\n : result;\n }",
"public default String getCharset() {\n return Constants.CHARSET_UTF8;\n }",
"public String algorithmName();",
"public static final String getProcessName() {\n\t\treturn NAME;\n\t}",
"private String getOutputFileName() {\n String filename = VideoCapture.getSelf().getOutputFileName();\n return VideoCapture.getSelf().appDir.getPath()+\"/\"+filename+\".mp4\";\n }",
"String process_name () throws BaseException;",
"public String getName()\r\n\t{\r\n\r\n\t\treturn ALGORITHM_NAME;\r\n\t}",
"public void setCodec(Codec codec) {\n this.codec = codec;\n }",
"String platform();",
"@Override\n\tpublic EncodingType getEncodingType() {\n\t\treturn EncodingType.CorrelationWindowEncoder;\n\t}",
"String getServerConnectionChannelName();",
"@java.lang.Override\n public int getEncodingValue() {\n return encoding_;\n }",
"private CompressionCodec getCompressionCodec() throws Exception {\n try {\n Constructor<?> constructor = Class.forName(compressionCodec).getConstructor();\n return (CompressionCodec)constructor.newInstance();\n } catch (Exception e) {\n throw new Exception(e);\n }\n }",
"public static List<CodecInfo> getSupportedCodecs()\n {\n return Collections.unmodifiableList(codecs);\n }",
"String getOutputFormat();"
] | [
"0.7551275",
"0.72941095",
"0.6954335",
"0.6637718",
"0.65589577",
"0.6222327",
"0.60403925",
"0.5901766",
"0.5765627",
"0.57514876",
"0.5691227",
"0.56359506",
"0.55945",
"0.5574429",
"0.5568488",
"0.55170095",
"0.5499391",
"0.5476708",
"0.5470215",
"0.54428256",
"0.53871363",
"0.5379374",
"0.53276",
"0.5324817",
"0.53212655",
"0.53212655",
"0.53212655",
"0.5304262",
"0.52994865",
"0.5290944",
"0.5272249",
"0.5252409",
"0.524733",
"0.52391756",
"0.52383846",
"0.5226756",
"0.52233875",
"0.52056503",
"0.5194015",
"0.5187798",
"0.5179612",
"0.51634663",
"0.5155477",
"0.5148958",
"0.51457024",
"0.5143481",
"0.5130872",
"0.5130824",
"0.51245147",
"0.5101307",
"0.5101307",
"0.50688195",
"0.50613475",
"0.50613475",
"0.50613475",
"0.50613475",
"0.5032052",
"0.5025164",
"0.50189817",
"0.50110674",
"0.49600053",
"0.49570227",
"0.49514827",
"0.49458325",
"0.4943235",
"0.49423885",
"0.4937013",
"0.49322748",
"0.49300003",
"0.49215668",
"0.4921284",
"0.49204388",
"0.4918931",
"0.48920316",
"0.48826832",
"0.488265",
"0.48806345",
"0.48686287",
"0.48596698",
"0.485388",
"0.4853792",
"0.48508352",
"0.48468256",
"0.4842966",
"0.48343074",
"0.4833217",
"0.48249185",
"0.48246464",
"0.4814499",
"0.48124543",
"0.47952875",
"0.47870806",
"0.4786799",
"0.47850376",
"0.4783088",
"0.47792915",
"0.47772315",
"0.4760918",
"0.47516865",
"0.47499973"
] | 0.689763 | 3 |
Returns the the forced tag/fourcc value for the video stream. | String getTag() {
return tag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getVideoCodec() {\n return videoCodec;\n }",
"public String getVideoCompressionType() {\n return videoCompressionType;\n }",
"private VideoMode getVideoMode( ){\n\t\t \n\n\t\t\n\t\tif (!this.device.isFile() )\n//\t\t\treturn stream.getSensorInfo().getSupportedVideoModes().get(0);\n//\t\telse\n\t\t\treturn stream.getSensorInfo().getSupportedVideoModes().get(5);\n\t\treturn null;\n\t}",
"public int getVideoJittcomp();",
"public String getVideoDevice();",
"@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)\n public MediaFormat getEncoderFormat() {\n return super.getEncoderVideoFormat(MIME_TYPE, mWidth, mHeight, mBitRate, FRAME_RATE, IFRAME_INTERVAL);\n }",
"public String getVideoDisplayFilter();",
"public String getVideoPreset();",
"public int getVideoDscp();",
"public VideoDefinition getPreferredVideoDefinition();",
"public static String getVideoSource(){\r\n\r\n return pref.getString(\"VideoMode\", \"MP4\");\r\n }",
"@java.lang.Override\n public com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption getMpegCenc() {\n if (encryptionModeCase_ == 6) {\n return (com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption) encryptionMode_;\n }\n return com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption\n .getDefaultInstance();\n }",
"public C40994w getValue() {\n return videoRecordNewActivity.f107324j;\n }",
"public String getVideoStreamName() {\n return videoStreamName;\n }",
"public int getVideoState() {\n return this.mVideoState;\n }",
"public String getBitstreamMode() {\n return this.bitstreamMode;\n }",
"public String getVideo() {\n return video;\n }",
"public String mo1736b() {\n return \"video\";\n }",
"@java.lang.Override\n public com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption getMpegCenc() {\n if (mpegCencBuilder_ == null) {\n if (encryptionModeCase_ == 6) {\n return (com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption)\n encryptionMode_;\n }\n return com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption\n .getDefaultInstance();\n } else {\n if (encryptionModeCase_ == 6) {\n return mpegCencBuilder_.getMessage();\n }\n return com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption\n .getDefaultInstance();\n }\n }",
"@DISPID(1093) //= 0x445. The runtime will prefer the VTID if present\n @VTID(14)\n java.lang.String media();",
"public String getMsCV() {\n return this.msCV;\n }",
"public int getVideoPort();",
"public long getVideoPosition() {\n return videoPosition;\n }",
"public CamMode getCamMode() {\n NetworkTableEntry camMode = m_table.getEntry(\"camMode\");\n double cam = camMode.getDouble(0.0);\n CamMode mode = CamMode.getByValue(cam);\n return mode;\n }",
"public int getProfileQuality() {\n String videoQualityKey;\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n if (isCameraFrontFacing()) {\n videoQualityKey = Keys.KEY_VIDEO_QUALITY_FRONT;\n } else {\n videoQualityKey = Keys.KEY_VIDEO_QUALITY_BACK;\n }\n int videoQuality = settingsManager.getInteger(SettingsManager.SCOPE_GLOBAL, videoQualityKey).intValue();\n Tag tag = TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Selected video quality for '\");\n stringBuilder.append(videoQuality);\n Log.d(tag, stringBuilder.toString());\n return videoQuality;\n }",
"public VideoDefinition getCurrentPreviewVideoDefinition();",
"public String getSupportedVideoModes();",
"public String initialVideoQuality() {\n int backCameraId = CameraHolder.instance().getBackCameraId();\n String defaultStr = null;\n if (mCameraId == backCameraId) {\n// defaultStr = mContext.getString(R.string.pref_back_video_quality_default);\n defaultStr = SystemProperties.get(BACK_CAMERA_DEFAULT_VIDEO_QUALITY_VALUE,\"\");\n } else {\n// defaultStr = mContext.getString(R.string.pref_front_video_quality_default);\n defaultStr = SystemProperties.get(FRONT_CAMERA_DEFAULT_VIDEO_QUALITY_VALUE,\"\");\n }\n int quality = 0;\n if(defaultStr == null || defaultStr.length() < 1) {\n ArrayList<String> supprotedQuality = getSupportedVideoQuality();\n String[] candidateArray = (mCameraId == backCameraId) ?\n mContext.getResources().getStringArray(R.array.pref_video_quality_entryvalues) :\n mContext.getResources().getStringArray(R.array.pref_front_video_quality_entryvalues);\n\n for(String candidate:candidateArray) {\n if(supprotedQuality.indexOf(candidate) >= 0) {\n defaultStr = candidate;\n break;\n }\n }\n }\n if(defaultStr != null) {\n quality = Integer.valueOf(defaultStr);\n if (CamcorderProfile.hasProfile(mCameraId, quality)) {\n SharedPreferences.Editor editor = ComboPreferences\n .get(mContext).edit();\n editor.putString(KEY_VIDEO_QUALITY, defaultStr);\n editor.apply();\n return defaultStr;\n }\n }\n return Integer.toString(CamcorderProfile.QUALITY_HIGH);\n }",
"public AbstractVCFCodec getCodec();",
"public String getFormatCode() {\n if (format == null) return \"MP4\";\n switch(format) {\n case \"Windows Media\": return \"WMV\";\n case \"Flash Video\": return \"FLV\";\n case \"MPEG-4\": return \"MP4\";\n case \"Matroska\": return \"MKV\";\n case \"AVI\": return \"AVI\";\n default: return \"MP4\";\n }\n }",
"public String getVicarFormat() {\n\t\treturn vicarFormat;\n\t}",
"public int getVid() {\r\n return vid;\r\n }",
"public int getVideobitrate() {\n return videobitrate;\n }",
"public double getVideoWidth() {\n return getElement().getVideoWidth();\n }",
"Codec getCurrentCodec();",
"public final MediaFormat mo41565Ux() {\n AppMethodBeat.m2504i(12848);\n C4990ab.m7416i(\"MicroMsg.VideoCodecConfig\", \"targetWidth:\" + this.eTi + \", targetHeight:\" + this.eTj + \", bitrate:\" + this.bitrate + \", frameRate:\" + this.eTk + \", colorFormat:\" + this.eTl + \", iFrameInterval:\" + this.eTm);\n MediaFormat createVideoFormat = MediaFormat.createVideoFormat(this.MIME_TYPE, this.eTi, this.eTj);\n MediaCodecInfo mediaCodecInfo = this.eTo;\n if (mediaCodecInfo == null) {\n C25052j.dWJ();\n }\n C25052j.m39375o(createVideoFormat, \"mediaFormat\");\n mo33813a(mediaCodecInfo, createVideoFormat);\n mediaCodecInfo = this.eTo;\n if (mediaCodecInfo == null) {\n C25052j.dWJ();\n }\n C25052j.m39376p(mediaCodecInfo, \"codecInfo\");\n C25052j.m39376p(createVideoFormat, \"mediaFormat\");\n try {\n if (C1443d.m3068iW(21)) {\n CodecCapabilities capabilitiesForType = mediaCodecInfo.getCapabilitiesForType(this.MIME_TYPE);\n if (capabilitiesForType != null) {\n EncoderCapabilities encoderCapabilities = capabilitiesForType.getEncoderCapabilities();\n if (encoderCapabilities != null) {\n if (encoderCapabilities.isBitrateModeSupported(1)) {\n C4990ab.m7416i(C18579a.TAG, \"support vbr bitrate mode\");\n createVideoFormat.setInteger(\"bitrate-mode\", 1);\n } else if (encoderCapabilities.isBitrateModeSupported(2)) {\n C4990ab.m7416i(C18579a.TAG, \"support cbr bitrate mode\");\n createVideoFormat.setInteger(\"bitrate-mode\", 2);\n } else {\n C4990ab.m7416i(C18579a.TAG, \"both vbr and cbr bitrate mode not support!\");\n }\n }\n }\n }\n } catch (Exception e) {\n C4990ab.m7413e(C18579a.TAG, \"trySetBitRateMode error: %s\", e.getMessage());\n }\n createVideoFormat.setInteger(FFmpegMetadataRetriever.METADATA_KEY_VARIANT_BITRATE, this.bitrate);\n createVideoFormat.setInteger(\"frame-rate\", this.eTk);\n createVideoFormat.setInteger(\"color-format\", this.eTl);\n createVideoFormat.setInteger(\"i-frame-interval\", this.eTm);\n AppMethodBeat.m2505o(12848);\n return createVideoFormat;\n }",
"public VideoQuality getVideoQuality() {\n\t\treturn mQuality;\n\t}",
"public Integer getVid() {\n return vid;\n }",
"public String getCarFrameNum() {\n\t\treturn carFrameNum;\n\t}",
"public double getVideoLength(){\n\t\treturn videoLength;\n\t}",
"float getVideoCaptureRateFactor();",
"public int getOverrodeVideoDuration() {\n return this.mMaxVideoDurationInMs;\n }",
"public String getCtvTag() {\n\t\treturn ctvTag;\n\t}",
"private ContenidoVideo getContenido() {\n\t\tif (rdbtnPelicula.isSelected() == true) {\n\t\t\treturn ContenidoVideo.PELICULA;\n\t\t} else if (rdbtnSerie.isSelected() == true) {\n\t\t\treturn ContenidoVideo.SERIE;\n\t\t} else\n\t\t\treturn ContenidoVideo.CORTO;\n\t}",
"public String getName()\n {\n return codecInfo.getName();\n }",
"@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"RC channel 4 value\"\n )\n public final int chan4Raw() {\n return this.chan4Raw;\n }",
"public AVT getFormat()\n {\n return m_format_avt;\n }",
"public int getPreviewFormat() {\n return pixelFormatForCameraFormat(get(\"preview-format\"));\n }",
"public String getName() {\n return CODEC_NAME;\n }",
"public java.lang.String getVid() {\r\n return localVid;\r\n }",
"@java.lang.Override\n public boolean hasMpegCenc() {\n return encryptionModeCase_ == 6;\n }",
"@java.lang.Override\n public boolean hasMpegCenc() {\n return encryptionModeCase_ == 6;\n }",
"VideoStatus getStatus();",
"public java.lang.String getMode() {\n java.lang.Object ref = mode_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n mode_ = s;\n }\n return s;\n }\n }",
"public String getMediaFormatEncoding() {\r\n\t\treturn this.getMedia() + \" - \" + this.getFormat() + \" - \" + this.getEncoding();\r\n\r\n\t}",
"String getCodec() {\n return codec;\n }",
"public String getAudioVideoCopyrightFlag() {\n return (String)getAttributeInternal(AUDIOVIDEOCOPYRIGHTFLAG);\n }",
"protected ByteOrder getByteOrder() {\n return mTiffStream.getByteOrder();\n }",
"private final void m126208g() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n if (!this.f102568b.mIsFromDraft || !this.f102568b.hasStickers()) {\n boolean a = C39804em.m127437a(this.f102568b.videoWidth(), this.f102568b.videoHeight());\n if (a) {\n i = this.f102568b.videoWidth();\n } else {\n int[] k = C36964i.m118935k();\n if (k != null) {\n i3 = k[0];\n } else {\n i3 = 720;\n }\n i = m125903a(C7551d.m23567d(this.f102568b.videoWidth(), i3));\n }\n this.f102569c = i;\n if (a) {\n i2 = this.f102568b.videoHeight();\n } else {\n double d = (double) this.f102569c;\n Double.isNaN(d);\n i2 = (int) (Math.ceil(d / 9.0d) * 16.0d);\n }\n this.f102570d = i2;\n return;\n }\n if (this.f102568b.mVideoCanvasWidth > 0) {\n i4 = this.f102568b.mVideoCanvasWidth;\n } else {\n i4 = this.f102568b.videoWidth();\n }\n this.f102569c = i4;\n if (this.f102568b.mVideoCanvasHeight > 0) {\n i5 = this.f102568b.mVideoCanvasHeight;\n } else {\n i5 = this.f102568b.videoHeight();\n }\n this.f102570d = i5;\n }",
"public String getCompMode ()\n {\n return compMode;\n }",
"public int getTag()\n {\n return this.m_descriptor[0] & 0xFF;\n }",
"public String getVideoResolution() {\n //Camera.Size s = mCamera.getParameters().getPreviewSize();\n //return s.width + \"x\" + s.height;\n if (mProfile == null)\n return null;\n return mProfile.videoFrameWidth + \"x\" + mProfile.videoFrameHeight;\n }",
"public String getMode() {\n if (_avTable.get(ATTR_MODE) == null\n || _avTable.get(ATTR_MODE).equals(\"\")) {\n _avTable.noNotifySet(ATTR_MODE, \"ssb\", 0);\n }\n\n return _avTable.get(ATTR_MODE);\n }",
"String getVideoId() {\r\n return videoId;\r\n }",
"public int getPreviewFrameRate() {\n return getInt(\"preview-frame-rate\");\n }",
"public java.lang.String getCvNumber() {\r\n return cvNumber;\r\n }",
"public VideoDisplay<MBFImage> getDisplay() {\n\t\treturn videoFrame;\n\t}",
"public VideoDefinition getPreviewVideoDefinition();",
"String getVideoId() {\n return videoId;\n }",
"public String getName()\n {\n return \"buffermode\";\n }",
"public DsByteString getCompactToken() {\n return sCompactToken;\n }",
"public float getMediaVoti() {\r\n\t\treturn mediaVoti;\r\n\t}",
"Integer getFrameRate() {\n return frameRate;\n }",
"@java.lang.Override\n public com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryptionOrBuilder\n getMpegCencOrBuilder() {\n if (encryptionModeCase_ == 6) {\n return (com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption) encryptionMode_;\n }\n return com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption\n .getDefaultInstance();\n }",
"public java.lang.String getMode() {\n java.lang.Object ref = mode_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n mode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public VideoChannel getVideoChannel()\n {\n WeakReference<VideoChannel> wvc = this.weakVideoChannel;\n return wvc != null ? wvc.get() : null;\n }",
"public Codec getCodec();",
"int getOneof1280();",
"public int value() { return mode; }",
"public boolean hasVar264() {\n return fieldSetFlags()[265];\n }",
"public int getTagConvertType()\r\n\t{\r\n\t\treturn CONV_CUSTOM;\r\n\t}",
"public int getFlvValue() {\n return flvValue;\n }",
"public String getWmode() {\n\t\tif (null != this.wmode) {\n\t\t\treturn this.wmode;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"wmode\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public int getStereo() {\n return this.stereo;\n }",
"public java.lang.String getMediaType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MEDIATYPE$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(MEDIATYPE$18);\n }\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public Tag readTag() {\n Tag tag = null;\n if(currentFrame >= frames.size()) {\n return tag;\n }\n\n try {\n lock.acquire();\n\n //get the current frame\n MP4Frame frame = frames.get(currentFrame);\n if (frame != null) {\n// LogU.d(\"currentFrame= \" + currentFrame + \" frame \"+ frame);\n int sampleSize = frame.getSize();\n int time = (int) Math.round(frame.getTime() * 1000.0);\n //Log.d(TAG,\"Read tag - dst: {} base: {} time: \" + new Object[]{frameTs, baseTs, time});\n long samplePos = frame.getOffset();\n //Log.d(TAG,\"Read tag - samplePos \" + samplePos);\n //determine frame type and packet body padding\n byte type = frame.getType();\n\n //create a byte buffer of the size of the sample\n ByteBuffer data = ByteBuffer.allocate(sampleSize);\n try {\n //prefix is different for keyframes\n\n // do we need to add the mdat offset to the sample position?\n dataSource.position(samplePos);\n // read from the channel\n dataSource.read(data);\n } catch (IOException e) {\n e.printStackTrace();\n }\n // chunk the data\n ByteBuffer payload = ByteBuffer.wrap(data.array());\n // create the tag\n tag = new Tag(type, time, payload.limit(), payload, prevFrameSize);\n // set the frame / tag size\n prevFrameSize = tag.getBodySize();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n lock.release();\n }\n LogU.d(\"read tag currentFrame \"+ currentFrame + \" finish frame size \" + tag.getBodySize());\n return tag;\n }",
"public boolean videoSupported();",
"java.lang.String getBitrate();",
"public int getMonochrome() {\n return monochrome;\n }",
"public static String initialVideoQuality(Context context, int currentCameraId) {\n int backCameraId = CameraHolder.instance().getBackCameraId();\n String defaultStr = null;\n if (currentCameraId == backCameraId) {\n// defaultStr = context.getString(R.string.pref_back_video_quality_default);\n defaultStr = SystemProperties.get(BACK_CAMERA_DEFAULT_VIDEO_QUALITY_VALUE,\"\");\n } else {\n// defaultStr = context.getString(R.string.pref_front_video_quality_default);\n defaultStr = SystemProperties.get(FRONT_CAMERA_DEFAULT_VIDEO_QUALITY_VALUE,\"\");\n }\n int quality = 0;\n if(defaultStr == null || defaultStr.length() < 1) {\n ArrayList<String> supprotedQuality = getSupportedVideoQuality();\n String[] candidateArray = (currentCameraId == backCameraId) ? \n context.getResources().getStringArray(R.array.pref_video_quality_entryvalues):\n context.getResources().getStringArray(R.array.pref_front_video_quality_entryvalues);\n for(String candidate:candidateArray) {\n if(supprotedQuality.indexOf(candidate) >= 0) {\n defaultStr = candidate;\n break;\n }\n }\n }\n\n if(defaultStr != null) {\n quality = Integer.valueOf(defaultStr);\n if (CamcorderProfile.hasProfile(currentCameraId, quality)) {\n SharedPreferences.Editor editor = ComboPreferences\n .get(context).edit();\n editor.putString(KEY_VIDEO_QUALITY, defaultStr);\n editor.apply();\n return defaultStr;\n }\n }\n return Integer.toString(CamcorderProfile.QUALITY_HIGH);\n }",
"public String getDump()\n {\n String dump = \"Video status:\\n\";\n\n dump += \"Read mode: \" + videocard.graphicsController.readMode + \"\\n\";\n dump += \"Write mode: \" + videocard.graphicsController.writeMode + \"\\n\";\n \n // dump += \"Graphics mode: \" + ...\n // dump += \"Text mode: \" + ...\n \n return dump;\n }",
"@java.lang.Override\n public com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryptionOrBuilder\n getMpegCencOrBuilder() {\n if ((encryptionModeCase_ == 6) && (mpegCencBuilder_ != null)) {\n return mpegCencBuilder_.getMessageOrBuilder();\n } else {\n if (encryptionModeCase_ == 6) {\n return (com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption)\n encryptionMode_;\n }\n return com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption\n .getDefaultInstance();\n }\n }",
"public boolean videoAdaptiveJittcompEnabled();",
"public float getCompressorCurrent() {\n return CompressorJNI.getCompressorCurrent(m_pcm);\n }",
"public final Codec getCodec()\n\t{\n\t\treturn codec;\n\t}",
"public final DsByteString getTokenC() {\n return BS_ACCEPT_ENCODING_TOKEN;\n }",
"public String getCvv() {\n return cvv;\n }",
"public short getHeader() {\n \n if (this == CHAT) {\n return Outgoing.ChatMessageComposer;\n } else if (this == SHOUT) {\n return Outgoing.ShoutMessageComposer;\n } else if (this == WHISPER) {\n return Outgoing.WhisperMessageComposer;\n }\n \n return -1;\n }",
"public final long get_mode_timestamp () {\n\t\treturn mode_timestamp;\n\t}",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption,\n com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption.Builder,\n com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryptionOrBuilder>\n getMpegCencFieldBuilder() {\n if (mpegCencBuilder_ == null) {\n if (!(encryptionModeCase_ == 6)) {\n encryptionMode_ =\n com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption\n .getDefaultInstance();\n }\n mpegCencBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption,\n com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption.Builder,\n com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryptionOrBuilder>(\n (com.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption)\n encryptionMode_,\n getParentForChildren(),\n isClean());\n encryptionMode_ = null;\n }\n encryptionModeCase_ = 6;\n onChanged();\n return mpegCencBuilder_;\n }",
"@TargetApi(Build.VERSION_CODES.JELLY_BEAN)\n private static MediaCodecInfo chooseVideoEncoder(String name) {\n\n int nbCodecs = MediaCodecList.getCodecCount();\n\n for (int i = 0; i < nbCodecs; i++) {\n MediaCodecInfo mci = MediaCodecList.getCodecInfoAt(i);\n if (!mci.isEncoder()) {\n continue;\n }\n String[] types = mci.getSupportedTypes();\n for (int j = 0; j < types.length; j++) {\n if (types[j].equalsIgnoreCase(VCODEC)) {\n LogUtil.i(TAG, String.format(\"vencoder %s types: %s\", mci.getName(), types[j]));\n if (name == null) {\n return mci;\n }\n if (mci.getName().contains(name)) {\n return mci;\n }\n }\n }\n }\n return null;\n }"
] | [
"0.6433128",
"0.59544945",
"0.59379786",
"0.5919537",
"0.58990574",
"0.5832006",
"0.570005",
"0.56655943",
"0.5630752",
"0.5573512",
"0.5543284",
"0.5508006",
"0.5502332",
"0.54745054",
"0.54134667",
"0.54055226",
"0.53068227",
"0.52979255",
"0.52708745",
"0.526711",
"0.52667063",
"0.5226563",
"0.5217037",
"0.51904625",
"0.51816076",
"0.51664114",
"0.51557755",
"0.51384157",
"0.5136051",
"0.513033",
"0.5127778",
"0.5119386",
"0.5117101",
"0.51121366",
"0.51083666",
"0.50956",
"0.5086042",
"0.5074656",
"0.50586903",
"0.5025865",
"0.500588",
"0.5003966",
"0.4987616",
"0.49867544",
"0.49790412",
"0.49741688",
"0.49673468",
"0.4958239",
"0.4951022",
"0.49475107",
"0.49458352",
"0.493622",
"0.491426",
"0.48946902",
"0.48923954",
"0.48843712",
"0.48730516",
"0.48411414",
"0.48401174",
"0.483751",
"0.48355523",
"0.48350152",
"0.48300716",
"0.48275816",
"0.48235017",
"0.4819673",
"0.48178717",
"0.48126274",
"0.48047853",
"0.48047525",
"0.4797833",
"0.47909066",
"0.47839218",
"0.4779653",
"0.4769834",
"0.4760858",
"0.47525936",
"0.47521535",
"0.47503522",
"0.47400436",
"0.47394323",
"0.47355822",
"0.4730399",
"0.4728027",
"0.47257897",
"0.47249973",
"0.47094846",
"0.47067448",
"0.4706478",
"0.47050467",
"0.47015086",
"0.4698455",
"0.46908835",
"0.46881452",
"0.46823567",
"0.4678394",
"0.46738616",
"0.46619847",
"0.46601522",
"0.46576527",
"0.4654975"
] | 0.0 | -1 |
Sets the forced tag/fourcc value for the video stream. | public void setTag(String tag) {
this.tag = tag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPreferredVideoDefinition(VideoDefinition vdef);",
"@TargetApi(16)\n public void setDefaultVideoStill() {\n Drawable drawable = this.view.getResources().getDrawable(R.drawable.default_video_still);\n if (drawable instanceof LayerDrawable) {\n LayerDrawable layerDrawable = (LayerDrawable) drawable;\n for (int i = 0; i < layerDrawable.getNumberOfLayers(); i++) {\n Drawable drawable2 = layerDrawable.getDrawable(i);\n if (drawable2 != null) {\n drawable2.setLevel(1);\n }\n }\n }\n this.view.setBackground(drawable);\n this.view.setVisibility(0);\n this.view.requestLayout();\n this.eventEmitter.emit(EventType.DID_SET_VIDEO_STILL);\n }",
"public void setVideoDscp(int dscp);",
"public void enableVideoPreview(boolean val);",
"public void setVide() {\n\t\tvide = true;\n\t}",
"public void setVideoDevice(String id);",
"public void setVideoOutEnabled(boolean enabled)\n {\n final String funcName = \"setVideoOutEnabled\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"enabled=%s\", Boolean.toString(enabled));\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n videoOutEnabled = enabled;\n }",
"public void setPreviewVideoDefinition(VideoDefinition vdef);",
"private void configurarCodec(){\n\n\t\t// Necessario para utilizar o Processor como um Player.\n\t\tprocessor.setContentDescriptor(null);\n\n\n\t\tfor (int i = 0; i < processor.getTrackControls().length; i++) {\n\n\t\t\tif (processor.getTrackControls()[i].getFormat() instanceof VideoFormat) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\t// Instantiate and set the frame access codec to the data flow path.\n\t\t\t\t\tTrackControl videoTrack = processor.getTrackControls()[i];\n\t\t\t\t\tCodec codec[] = { new CodecVideo() };\n\t\t\t\t\tvideoTrack.setCodecChain(codec);\n\t\t\t\t\tbreak;\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t}\n\n\t\tprocessor.prefetch();\n\n\t}",
"public void setVideoPort(int port);",
"public void setVideoPreset(String preset);",
"public void enableVideoCapture(boolean enable);",
"public void setMode(String value) {\n _avTable.set(ATTR_MODE, value);\n }",
"public VideoStream() {\n\t\tthis(CameraInfo.CAMERA_FACING_BACK);\n\t}",
"public void setVideoDisplayFilter(String filtername);",
"@Override\n public void ChangeMode() {\n if (getRequestedOrientation() != ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {\n\n\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n\n WindowManager.LayoutParams attrs = getWindow().getAttributes();\n attrs.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;\n getWindow().setAttributes(attrs);\n getWindow().addFlags(\n WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);\n\n\n RelativeLayout.LayoutParams layoutParams =\n new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.FILL_PARENT);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_TOP);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);\n\n videoView.setLayoutParams(layoutParams);\n otherview.setVisibility(View.GONE);\n\n ivSendGift.setVisibility(View.GONE);\n\n\n } else {\n\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\n WindowManager.LayoutParams attrs = getWindow().getAttributes();\n attrs.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN);\n getWindow().setAttributes(attrs);\n getWindow().clearFlags(\n WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);\n\n\n RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, 240);\n ivSendGift.setVisibility(View.VISIBLE);\n videoView.setLayoutParams(lp);\n otherview.setVisibility(View.VISIBLE);\n\n\n }\n }",
"public void setVideoPosition(long videoPosition) {\n this.videoPosition = videoPosition;\n }",
"public void setVideo(File video){\n\t\tthis.video = video;\n\t}",
"public VideoStream(int camera) {\n\t\tsuper();\n\t\tsetCamera(camera);\n\t}",
"public static native int freenect_set_video_mode_proxy(Pointer<libfreenectLibrary.freenect_device > dev, ValuedEnum<libfreenectLibrary.freenect_resolution > res, ValuedEnum<libfreenectLibrary.freenect_video_format > fmt);",
"public void setVid(int value) {\r\n this.vid = value;\r\n }",
"public void setVideoJittcomp(int milliseconds);",
"public void enableVideoAdaptiveJittcomp(boolean enable);",
"public void setCaptureMode(final int width, final int height, final int min_fps, final int max_fps, final int frameFormat);",
"public static void setCameraFrame() {\n\t\tCAMERA.src = VERTICES[CAMERA.v];\n\t\tVector zc = CAMERA.src.d.scale(-1).normalized();\n\t\tCAMERA.zAxis = zc;\n\t\tVector xc = MathUtils.cross(CAMERA.src.d, new Vector(0, 1, 0)).normalized();\n\t\tCAMERA.xAxis = xc;\n\t\tVector yc = MathUtils.cross(zc, xc).normalized();\n\t\tCAMERA.yAxis = yc;\n\t\t\n\t\tSystem.out.println(\"***** just set camera: \" + CAMERA.toString());\n\t}",
"public void enableVideoDisplay(boolean enable);",
"private void updateCameraParametersInitialize() {\n List<Integer> frameRates = mParameters.getSupportedPreviewFrameRates();\n if (frameRates != null) {\n Integer max = Collections.max(frameRates);\n mParameters.setPreviewFrameRate(max);\n }\n\n //mParameters.setRecordingHint(false);\n\n // Disable video stabilization. Convenience methods not available in API\n // level <= 14\n String vstabSupported = mParameters\n .get(\"video-stabilization-supported\");\n if (\"true\".equals(vstabSupported)) {\n mParameters.set(\"video-stabilization\", \"false\");\n }\n }",
"@Override\r\n\tpublic void setVideoTransmitterPower(boolean on) {\n\t\tif(transmitterOn && on) {\r\n\t\t\tif(frame==null) {\r\n\t\t\t\tcameraViewer = new PanTiltCameraGimbalViewer();\r\n\t\t\t\tframe = new JFrame();\r\n\t\t\t\tframe.add(cameraViewer);\r\n\t\t\t\tframe.setSize(300, 300);\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif(frame!=null) {\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\tframe = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.transmitterOn = on;\r\n\t\tlogger.info(\"FlightGear simulation: video power \" + on);\r\n\t}",
"public void set16BitMode() {\n/* 111 */ this.dstPixelFormat = 32859;\n/* */ }",
"public void setGlobalClockBuffer(boolean value) {\n this.gbuf = value;\n }",
"public abstract void setBufferMode(int mode);",
"public String getVideoCodec() {\n return videoCodec;\n }",
"public void setVideoCodec(String videoCodec) {\n this.videoCodec = videoCodec;\n }",
"private static void setSettingsFromPreferences(SharedPreferences sharedPref, Context context) {\n boolean hwCodec = sharedPref.getBoolean(context.getString(R.string.pref_hwcodec_key),\n Boolean.valueOf(context.getString(R.string.pref_hwcodec_default)));\n\n QBRTCMediaConfig.setVideoHWAcceleration(hwCodec);\n // Get video resolution from settings.\n int resolutionItem = Integer.parseInt(sharedPref.getString(context.getString(R.string.pref_resolution_key),\n \"0\"));\n Log.e(TAG, \"resolutionItem =: \" + resolutionItem);\n setVideoQuality(resolutionItem);\n\n // Get start bitrate.\n String bitrateTypeDefault = context.getString(R.string.pref_startbitrate_default);\n String bitrateType = sharedPref.getString(\n context.getString(R.string.pref_startbitrate_key), bitrateTypeDefault);\n if (!bitrateType.equals(bitrateTypeDefault)) {\n String bitrateValue = sharedPref.getString(context.getString(R.string.pref_startbitratevalue_key),\n context.getString(R.string.pref_startbitratevalue_default));\n int startBitrate = Integer.parseInt(bitrateValue);\n QBRTCMediaConfig.setVideoStartBitrate(startBitrate);\n }\n\n int videoCodecItem = Integer.parseInt(getPreferenceString(sharedPref, context, R.string.pref_videocodec_key, \"0\"));\n for (QBRTCMediaConfig.VideoCodec codec : QBRTCMediaConfig.VideoCodec.values()) {\n if (codec.ordinal() == videoCodecItem) {\n Log.e(TAG, \"videoCodecItem =: \" + codec.getDescription());\n QBRTCMediaConfig.setVideoCodec(codec);\n break;\n }\n }\n\n String audioCodecDescription = getPreferenceString(sharedPref, context, R.string.pref_audiocodec_key,\n R.string.pref_audiocodec_def);\n QBRTCMediaConfig.AudioCodec audioCodec = QBRTCMediaConfig.AudioCodec.ISAC.getDescription()\n .equals(audioCodecDescription) ?\n QBRTCMediaConfig.AudioCodec.ISAC : QBRTCMediaConfig.AudioCodec.OPUS;\n Log.e(TAG, \"audioCodec =: \" + audioCodec.getDescription());\n QBRTCMediaConfig.setAudioCodec(audioCodec);\n }",
"public void setVideoFragment(Fragment fragment) {\n this.videoRoom = (RoomActivityVideoFragment) fragment;\n eventHandler = new VideoEngineEventHandler();\n eventHandler.addEventHandler(this.videoRoom);\n mRtcEngine.addHandler(eventHandler);\n\n mRtcEngine.enableVideo();\n mRtcEngine.setVideoEncoderConfiguration(new VideoEncoderConfiguration(\n VideoEncoderConfiguration.VD_1280x720,\n VideoEncoderConfiguration.FRAME_RATE.FRAME_RATE_FPS_30,\n VideoEncoderConfiguration.STANDARD_BITRATE,\n VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_FIXED_PORTRAIT));\n mRtcEngine.enableLocalVideo(false);\n }",
"public void frame_SET(@MAV_FRAME int src)\n { set_bits(- 0 + src, 4, data, 208); }",
"public void setFormat(AVT v)\n {\n m_format_avt = v;\n }",
"public void setVideo(String video) {\n this.video = video;\n }",
"public void frame_SET(@MAV_FRAME int src)\n { set_bits(- 0 + src, 4, data, 192); }",
"public void setVideobitrate(int videobitrate) {\n this.videobitrate = videobitrate;\n }",
"private void setCameraParameters() {\n mParameters = mCameraDevice.getParameters();\n\n// Camera.Size previewSize = getDefaultPreviewSize(mParameters);\n//\n// //获取计算过的摄像头分辨率\n// if(previewSize != null ){\n// mPreviewWidth = previewSize.width;\n// mPreviewHeight = previewSize.height;\n// } else {\n// mPreviewWidth = 480;\n// mPreviewHeight = 480;\n// }\n// mParameters.setPreviewSize(mPreviewWidth, mPreviewHeight);\n// //将获得的Preview Size中的最小边作为视频的大小\n// mVideoWidth = mPreviewWidth > mPreviewHeight ? mPreviewHeight : mPreviewWidth;\n// mVideoHeight = mPreviewWidth > mPreviewHeight ? mPreviewHeight : mPreviewWidth;\n// if(mFFmpegFrameRecorder != null) {\n// mFFmpegFrameRecorder.setImageWidth(mVideoWidth);\n// mFFmpegFrameRecorder.setImageHeight(mVideoHeight);\n// }\n//\n// mParameters.setPreviewFrameRate(mPreviewFrameRate);\n\n List<String> supportedFocusMode = mParameters.getSupportedFocusModes();\n if(isSupported(Camera.Parameters.FOCUS_MODE_AUTO, supportedFocusMode)) {\n mParameters.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO);\n }\n\n\n mCameraDevice.setParameters(mParameters);\n\n // 设置闪光灯,默认关闭\n setVideoFlash(false);\n\n //是否支持打开/关闭闪光灯\n mSettingWindow.setFlashEnabled(isSupportedVideoFlash());\n\n mTBtnFocus.setEnabled(isSupportedFocus());\n\n layoutPreView();\n }",
"public void setAvpfMode(AVPFMode mode);",
"public void setBitstreamMode(String bitstreamMode) {\n this.bitstreamMode = bitstreamMode;\n }",
"public void setMp4Settings(Mp4Settings mp4Settings) {\n this.mp4Settings = mp4Settings;\n }",
"private void set(){\n resetBuffer();\n }",
"void adjustControllersForLiveStream(boolean isLive);",
"public void startStreaming() {\n// phoneCam.setViewportRenderingPolicy(OpenCvCamera.ViewportRenderingPolicy.OPTIMIZE_VIEW);\n phoneCam.startStreaming(320, 240, OpenCvCameraRotation.SIDEWAYS_RIGHT);\n }",
"private void configureEncoder() throws IOException\n {\n encoder = MediaCodec.createByCodecName(encoderName);\n MediaFormat mediaFormat = MediaFormat.createVideoFormat(MIME_TYPE, width, height);\n mediaFormat.setInteger(MediaFormat.KEY_BIT_RATE, BITRATE);\n mediaFormat.setInteger(MediaFormat.KEY_FRAME_RATE, FRAMERATE);\n mediaFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, encoderColorFormat);\n mediaFormat.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 1);\n encoder.configure(mediaFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);\n encoder.start();\n }",
"public void setCompatibleMode(boolean value) {\n\t\tcompatible = value;\n\t}",
"private void setupVideoConfig() {\n // In simple use cases, we only need to enable video capturing\n // and rendering once at the initialization step.\n // Note: audio recording and playing is enabled by default.\n mRtcEngine.enableVideo();\n\n // Please go to this page for detailed explanation\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af5f4de754e2c1f493096641c5c5c1d8f\n mRtcEngine.setVideoEncoderConfiguration(new VideoEncoderConfiguration(\n VideoEncoderConfiguration.VD_640x360,\n VideoEncoderConfiguration.FRAME_RATE.FRAME_RATE_FPS_15,\n VideoEncoderConfiguration.STANDARD_BITRATE,\n VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_FIXED_PORTRAIT));\n }",
"@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitOrgPRE(true);\r\n \r\n }",
"void setVResolution(short resolution);",
"public String getVideoPreset();",
"@Override\n @RequiresApi(21)\n public void init(int width, int height) {\n try {\n mediaCodec = MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_VIDEO_AVC);\n MediaFormat mediaFormat = MediaFormat.createVideoFormat(MediaFormat.MIMETYPE_VIDEO_AVC, width, height);\n mediaFormat.setInteger(MediaFormat.KEY_BIT_RATE, 2 * width *height *framerate);\n mediaFormat.setInteger(MediaFormat.KEY_FRAME_RATE, framerate);\n //yuv420p\n mediaFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, MediaCodecInfo.CodecCapabilities.COLOR_FormatYUV420Planar);\n mediaFormat.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 2);\n mediaCodec.configure(mediaFormat,null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);\n } catch (IOException e) {\n e.printStackTrace();\n initialized =false;\n }\n initialized = true;\n }",
"public static void setVideoSource(String source){\r\n\r\n editor.putString(\"VideoMode\", source);\r\n editor.commit();\r\n }",
"private void setRawMode(CaptureRequest.Builder builder) {\n if (want_raw && !previewIsVideoMode) {\n builder.set(CaptureRequest.STATISTICS_LENS_SHADING_MAP_MODE, CaptureRequest.STATISTICS_LENS_SHADING_MAP_MODE_ON);\n }\n }",
"private void setVideoURI(Uri uri, Map<String, String> headers) {\n mUri = uri;\n mHeaders = headers;\n mSeekWhenPrepared = 0;\n openVideo();\n requestLayout();\n invalidate();\n }",
"public void setFrame(int value) {\r\n this.frame = value;\r\n }",
"@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setEmitOrgPRE(false);\r\n }",
"public static void startSendVideoForce() {\n if (null != skypeConversation) {\n skypeConversation.startSendVideoForce();\n }\n }",
"private void setVideo(){\n /* if(detailsBean==null){\n showToast(\"没有获取到信息\");\n return;\n }\n UserManager.getInstance().setDetailsBean(detailsBean);\n upCallShowSetVideoData = new UpCallShowSetVideoData();\n upCallShowSetVideoData.smobile = Preferences.getString(Preferences.UserMobile,null);\n upCallShowSetVideoData.iringid = detailsBean.iringid;\n if (callShowSetVideoProtocol == null) {\n callShowSetVideoProtocol = new CallShowSetVideoProtocol(null, upCallShowSetVideoData, handler);\n callShowSetVideoProtocol.showWaitDialog();\n }\n callShowSetVideoProtocol.stratDownloadThread(null, ServiceUri.Spcl, upCallShowSetVideoData, handler,true);*/\n }",
"private void setHasTag(int value) {\n \n hasTag_ = value;\n }",
"public void setNumberOfFramesSerialize(int val) {\n timeManager.numberOfFrames = val;\n }",
"protected synchronized void setBooleanValue(String tag, boolean flag) {\n if (actualProperties != null) {\n if (flag) {\n actualProperties.put(tag, QVCSConstants.QVCS_YES);\n } else {\n actualProperties.put(tag, QVCSConstants.QVCS_NO);\n }\n }\n }",
"public void setForced(boolean b) {\n\t\tforced = b;\n\t}",
"public StdVideoH265SequenceParameterSetVui set(StdVideoH265SequenceParameterSetVui src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }",
"public void setForcedBrowserMode(String forcedBrowserMode) {\n this.forcedBrowserMode = forcedBrowserMode;\n }",
"public void setCodec(Codec codec);",
"@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(true);\r\n }",
"public void setVid(java.lang.String param) {\r\n localVidTracker = param != null;\r\n\r\n this.localVid = param;\r\n }",
"public void setVid(Integer vid) {\n this.vid = vid;\n }",
"public final void setSecureMessaging() {\n\theader[0] = (byte) (header[0] | 0x0C);\n }",
"private void setConcurrencyMode(DeployBeanDescriptor<?> desc) {\n if (desc.getConcurrencyMode() != null) {\n // concurrency mode explicitly set during deployment\n return;\n }\n if (checkForVersionProperties(desc)) {\n desc.setConcurrencyMode(ConcurrencyMode.VERSION);\n } else {\n desc.setConcurrencyMode(ConcurrencyMode.NONE);\n }\n }",
"@Override\n\tpublic void videoStart() {\n\t\t\n\t}",
"void setEmisoraRadioCambio(boolean x){\n this.emisoraRadio = x;\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_video_play);\n\n videoView = findViewById(R.id.video_view);\n// String path = Environment.getExternalStorageDirectory().getAbsolutePath()+\" Path name \";\n// videoView.setVideoPath();\n videoView.setVideoURI(Uri.parse(\"android.resource://\" + getPackageName() + \"/raw/video_transparent\"));\n\n\n MediaController mediaController = new MediaController(this);\n videoView.setMediaController(mediaController);\n mediaController.setMediaPlayer(videoView);\n\n }",
"private void updateUseFakePrecaptureMode(String flash_value) {\n if (MyDebug.LOG)\n Log.d(TAG, \"useFakePrecaptureMode: \" + flash_value);\n boolean frontscreen_flash = flash_value.equals(\"flash_frontscreen_auto\") || flash_value.equals(\"flash_frontscreen_on\");\n if (frontscreen_flash) {\n use_fake_precapture_mode = true;\n } else if (burst_type != BurstType.BURSTTYPE_NONE)\n use_fake_precapture_mode = true;\n else {\n use_fake_precapture_mode = use_fake_precapture;\n }\n if (MyDebug.LOG)\n Log.d(TAG, \"use_fake_precapture_mode set to: \" + use_fake_precapture_mode);\n }",
"@Override\n\t\t\tpublic void doMyThings() {\n\t\t\t\tsetVideoScale(SCREEN_DEFAULT);\n\t\t\t}",
"public void setCameraFov(float fov) {\n setValueInTransaction(PROP_CAMERA_FOV, fov);\n }",
"public StdVideoEncodeH264RefMemMgmtCtrlOperations set(StdVideoEncodeH264RefMemMgmtCtrlOperations src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }",
"public void setAllowDefaultCodec(boolean allowDefaultCodec) {\n this.allowDefaultCodec = allowDefaultCodec;\n }",
"public void set_standard_format () {\n\t\tf_friendly_format = false;\n\n\t\tmainshock_time = 0L;\n\t\tmainshock_mag = 0.0;\n\t\tmainshock_lat = 0.0;\n\t\tmainshock_lon = 0.0;\n\t\tmainshock_depth = 0.0;\n\n\t\treturn;\n\t}",
"@Deprecated\n public void setPreferredVideoSizeByName(String name);",
"public void setTurned(){\n\tIS_TURNED = true;\n\tvimage = turnedVimImage;\n }",
"IParser setEncodeForceResourceId(IIdType theForceResourceId);",
"public void setTag(Object tag)\n {\n fTag = tag;\n }",
"public void setParseWithXMP(boolean inValue) {\n if (alreadyParsed && doXMP != inValue) {\n throw new NuxeoException(\n \"Value of 'doXML' cannot be modified after the blob has been already parsed.\");\n }\n doXMP = inValue;\n }",
"public void setEncodingSettings( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ENCODINGSETTINGS, value);\r\n\t}",
"void setForwardFCode(int value)\n {\n forwardVector.setMotionFCode(value);\n }",
"public void setRFF_TAG(String value) {\n setAttributeInternal(RFF_TAG, value);\n }",
"public DefaultVideoFrameRenderFilter() {\n this(null);\n }",
"@Override\n public void videoStarted() {\n super.videoStarted();\n img_playback.setImageResource(R.drawable.ic_pause);\n if (isMuted) {\n muteVideo();\n img_vol.setImageResource(R.drawable.ic_mute);\n } else {\n unmuteVideo();\n img_vol.setImageResource(R.drawable.ic_unmute);\n }\n }",
"public void setMediaType( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), MEDIATYPE, value);\r\n\t}",
"private void videoRecordingPrepared() {\n Log.d(\"Camera\", \"videoRecordingPrepared()\");\n isCameraXHandling = false;\n // Keep disabled status for a while to avoid fast click error with \"Muxer stop failed!\".\n binding.capture.postDelayed(() -> binding.capture.setEnabled(true), 500);\n }",
"public final MediaFormat mo41565Ux() {\n AppMethodBeat.m2504i(12848);\n C4990ab.m7416i(\"MicroMsg.VideoCodecConfig\", \"targetWidth:\" + this.eTi + \", targetHeight:\" + this.eTj + \", bitrate:\" + this.bitrate + \", frameRate:\" + this.eTk + \", colorFormat:\" + this.eTl + \", iFrameInterval:\" + this.eTm);\n MediaFormat createVideoFormat = MediaFormat.createVideoFormat(this.MIME_TYPE, this.eTi, this.eTj);\n MediaCodecInfo mediaCodecInfo = this.eTo;\n if (mediaCodecInfo == null) {\n C25052j.dWJ();\n }\n C25052j.m39375o(createVideoFormat, \"mediaFormat\");\n mo33813a(mediaCodecInfo, createVideoFormat);\n mediaCodecInfo = this.eTo;\n if (mediaCodecInfo == null) {\n C25052j.dWJ();\n }\n C25052j.m39376p(mediaCodecInfo, \"codecInfo\");\n C25052j.m39376p(createVideoFormat, \"mediaFormat\");\n try {\n if (C1443d.m3068iW(21)) {\n CodecCapabilities capabilitiesForType = mediaCodecInfo.getCapabilitiesForType(this.MIME_TYPE);\n if (capabilitiesForType != null) {\n EncoderCapabilities encoderCapabilities = capabilitiesForType.getEncoderCapabilities();\n if (encoderCapabilities != null) {\n if (encoderCapabilities.isBitrateModeSupported(1)) {\n C4990ab.m7416i(C18579a.TAG, \"support vbr bitrate mode\");\n createVideoFormat.setInteger(\"bitrate-mode\", 1);\n } else if (encoderCapabilities.isBitrateModeSupported(2)) {\n C4990ab.m7416i(C18579a.TAG, \"support cbr bitrate mode\");\n createVideoFormat.setInteger(\"bitrate-mode\", 2);\n } else {\n C4990ab.m7416i(C18579a.TAG, \"both vbr and cbr bitrate mode not support!\");\n }\n }\n }\n }\n } catch (Exception e) {\n C4990ab.m7413e(C18579a.TAG, \"trySetBitRateMode error: %s\", e.getMessage());\n }\n createVideoFormat.setInteger(FFmpegMetadataRetriever.METADATA_KEY_VARIANT_BITRATE, this.bitrate);\n createVideoFormat.setInteger(\"frame-rate\", this.eTk);\n createVideoFormat.setInteger(\"color-format\", this.eTl);\n createVideoFormat.setInteger(\"i-frame-interval\", this.eTm);\n AppMethodBeat.m2505o(12848);\n return createVideoFormat;\n }",
"public void setFrameByFrameClock()\n {\n\tframeByFrameClock = true;\n }",
"public void setIsDefault(Byte value) {\n set(3, value);\n }",
"public void setFavoriteFlag(int flag, long videoID) {\n try {\n SQLiteDatabase database = this.getReadableDatabase();\n database.enableWriteAheadLogging();\n ContentValues contents = new ContentValues();\n contents.put(VideoTable.KEY_VIDEO_IS_FAVORITE, flag);\n database.update(VideoTable.VIDEO_TABLE, contents, VideoTable.KEY_VIDEO_ID + \"=?\", new String[]{\"\" + videoID});\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(false);\r\n }",
"public CameraSet(Controls controls, String devpath1, String devpath2) {\n this.controls = controls;\n this.cam1 = CameraServer.getInstance().startAutomaticCapture(\"Back\", devpath2);\n this.cam2 = CameraServer.getInstance().startAutomaticCapture(\"Front\", devpath1);\n\n// cam1.setResolution((int) (this.multiplier * 160), (int) (this.multiplier * 120));\n// cam2.setResolution((int) (this.multiplier * 160), (int) (this.multiplier * 120));\n\n outputStream = CameraServer.getInstance().putVideo(\"camera_set\", (int) (multiplier * 160), (int) (multiplier * 120));\n source = new Mat();\n\n }",
"void setVideoUri(@Nullable Uri uri);"
] | [
"0.5864497",
"0.5548867",
"0.5399809",
"0.5359916",
"0.522541",
"0.515488",
"0.5113455",
"0.5108119",
"0.5103394",
"0.5080021",
"0.50517255",
"0.5048094",
"0.4995954",
"0.49412894",
"0.4930813",
"0.49178374",
"0.49101597",
"0.49036643",
"0.4877863",
"0.48685735",
"0.4833184",
"0.48235416",
"0.48223823",
"0.47897243",
"0.47819927",
"0.47799915",
"0.4750373",
"0.47475827",
"0.47140506",
"0.47129565",
"0.47096312",
"0.47008583",
"0.4700482",
"0.46494716",
"0.46372688",
"0.46371725",
"0.46302631",
"0.4628221",
"0.46221066",
"0.46174878",
"0.46058705",
"0.45936486",
"0.45766562",
"0.45714495",
"0.45702648",
"0.45665777",
"0.4564669",
"0.4560477",
"0.4560302",
"0.45544547",
"0.4549637",
"0.45468667",
"0.45446685",
"0.45440015",
"0.4542803",
"0.45420283",
"0.4523333",
"0.451511",
"0.4511301",
"0.4510412",
"0.45060557",
"0.44755748",
"0.44622356",
"0.44587865",
"0.44557974",
"0.44538677",
"0.44114023",
"0.4405276",
"0.44048283",
"0.44039863",
"0.44004756",
"0.43915206",
"0.4384657",
"0.4373041",
"0.43706712",
"0.43640667",
"0.43586308",
"0.43573603",
"0.43503627",
"0.4345541",
"0.43417162",
"0.43380222",
"0.43378198",
"0.4335004",
"0.4331269",
"0.43249068",
"0.43208525",
"0.43182862",
"0.4310284",
"0.4306477",
"0.43058184",
"0.4305813",
"0.42978027",
"0.42974353",
"0.4297209",
"0.42901772",
"0.42804325",
"0.4280421",
"0.42781577",
"0.42771757",
"0.4276251"
] | 0.0 | -1 |
Returns the bitrate value for the encoding process. | Integer getBitRate() {
return bitRate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getBitrate() {\n return this.bitrate;\n }",
"public long getBitrate() {\n return bitrate;\n }",
"java.lang.String getBitrate();",
"public java.lang.String getBitrate() {\n java.lang.Object ref = bitrate_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n bitrate_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getBitrate() {\n java.lang.Object ref = bitrate_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n bitrate_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getAudiobitrate() {\n return audiobitrate;\n }",
"public com.google.protobuf.ByteString\n getBitrateBytes() {\n java.lang.Object ref = bitrate_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bitrate_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getBitrateBytes() {\n java.lang.Object ref = bitrate_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bitrate_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"com.google.protobuf.ByteString\n getBitrateBytes();",
"public void setBitrate(Integer bitrate) {\n this.bitrate = bitrate;\n }",
"public void setBitrate(int bitrate) {\n this.bitrate = bitrate;\n }",
"private void retrieveBitRate() {\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n\n HashMap<String, String> metadata = new HashMap<>();\n\n MediaMetadataRetriever mediaMetadataRetriever = new MediaMetadataRetriever();\n mediaMetadataRetriever.setDataSource(radioStation.getListenUrl(), metadata);\n //mediaMetadataRetriever.setDataSource(RadioPlayerFragment.RADIO_LOCAL_URL, metadata);\n\n bitRate = mediaMetadataRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_BITRATE);\n Log.d(LOG_TAG, \"Bitrate: \" + bitRate);\n\n sendAlert(RadioPlayerFragment.SEND_BITRATE, bitRate);\n }\n }).start();\n\n }",
"public int nextBitrate(int bitrate) {\n return bitrateArray[Math.min(getIndexbyBitrate(bitrate) + 1, NUMBER_OF_BITRATES - 1)];\n }",
"public void setBitrate(long bitrate) {\n this.bitrate = bitrate;\n }",
"public Bandwidth requestBwValue() {\n return requestBwValue;\n }",
"public float getByteRate() {\n return byteMonitor.getRate();\n }",
"public String getBitstreamMode() {\n return this.bitstreamMode;\n }",
"public static int getIntegerbpm() {\n return integerbpm;\n }",
"public int previousBitrate(int bitrate) {\n return bitrateArray[Math.max(0, getIndexbyBitrate(bitrate) - 1)];\n }",
"com.google.protobuf.ByteString\n getQualityBytes();",
"public int get_quality() {\n return (int)getUIntBEElement(offsetBits_quality(), 16);\n }",
"public Builder setBitrate(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00040000;\n bitrate_ = value;\n onChanged();\n return this;\n }",
"public int getVideobitrate() {\n return videobitrate;\n }",
"public String getBm() {\n return bm;\n }",
"public String getBm() {\n return bm;\n }",
"public static double getBitrate(long size, long max, long timeStarted, long timeNow) {\r\n\t\tif (max >= size) {\r\n\t\t\tlong milliSecondsPassed = timeNow - timeStarted;\r\n\t\t\tif (milliSecondsPassed <= 0) {\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t\tdouble secondsPassed = milliSecondsPassed / 1000.0d;\r\n\t\t\tif (secondsPassed < 1) {\r\n\t\t\t\t// interpolate size to 1 second\r\n\t\t\t\treturn 1000.0d * size / milliSecondsPassed;\r\n\t\t\t}\r\n\t\t\treturn size / secondsPassed;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"public final int getBpp() {\r\n return settings.getBpp();\r\n }",
"private int getEncoderValue(int channel) {\n\t\tif (tachoMonitorAlive()) {\n\t\t\treturn tachoMonitor.getTachoCount(channel);\n\t\t}\n\t\t// .. otherwise, query the controller to get it\n\t\tgetData(REGISTER_MAP[REG_IDX_ENCODER_CURRENT][channel], buf, 4);\n\t\treturn EndianTools.decodeIntLE(buf, 0);\n\t}",
"public Double bitsPerSecond()\n\t{\n\t\treturn getValue(DataRateUnit.BITS_PER_SEC);\n\t}",
"public static String getBitrateString(double rate) {\r\n\t\tif (rate < 0) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tint c = 0;\r\n\r\n\t\twhile ((rate > 1024) && (c < BITRATE_UNITS.length - 1)) {\r\n\t\t\trate /= 1024;\r\n\t\t\tc++; // ;-)\r\n\t\t}\r\n\t\tif (c >= 2) {\r\n\t\t\treturn (Math.round(rate * 100) / 100.0) + \" \" + BITRATE_UNITS[c];\r\n\t\t} else {\r\n\t\t\treturn (long)Math.rint(rate) + \" \" + BITRATE_UNITS[c];\r\n\t\t}\r\n\t}",
"boolean hasBitrate();",
"com.google.protobuf.ByteString\n getQualityMaxBytes();",
"public java.lang.String getQuality() {\n java.lang.Object ref = quality_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n quality_ = s;\n }\n return s;\n }\n }",
"public String getQuality()\n\t{\n\t\treturn quality.getText();\n\t}",
"public byte getValue() {\n return value;\n }",
"public boolean setDefaultBitRate(String bitrate);",
"public int getQuality() {\n return quality;\n }",
"public int getQuality() {\n return quality;\n }",
"public int getQuality() {\n return quality;\n }",
"public int getValue()\n\t{\n\t\treturn bitHolder.getValue();\n\t}",
"private float bitsToMb(float bps) {\n return bps / (1024 * 1024);\n }",
"public Bandwidth sharedBwValue() {\n return sharedBwValue;\n }",
"public PagerBaudRate getBaudRate() {\r\n\t\treturn baudRate;\r\n\t}",
"public void setAudiobitrate(int audiobitrate) {\n this.audiobitrate = audiobitrate;\n }",
"public com.google.protobuf.ByteString\n getQualityBytes() {\n java.lang.Object ref = quality_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n quality_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private void getBMBType(BufferedBitStream stream) throws InterruptedException\n {\n int code = stream.showBits(6);\n int data[];\n\n if (code >= 8) data = BMBTable[ code >>> 2 ];\n else data = BMBTable [ code + 16 ];\n\n stream.flushBits(data[1]);\n mbType = data[0];\n }",
"public int getMediaAssetScaleTypeValue() {\n return instance.getMediaAssetScaleTypeValue();\n }",
"public java.lang.String getQuality() {\n java.lang.Object ref = quality_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n quality_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Field(5) \n\tpublic AVRational frame_rate() {\n\t\treturn this.io.getNativeObjectField(this, 5);\n\t}",
"public int getFrameByteCount() {\n return mMetaData[0] * mMetaData[1] * 4;\n }",
"private void getPMBType(BufferedBitStream stream) throws InterruptedException\n {\n int code = stream.showBits(6);\n int data[];\n\n if (code >= 8) data = PMBTable[ code >>> 3];\n else data = PMBTable [ code + 8 ];\n\n stream.flushBits(data[1]);\n mbType = data[0];\n }",
"public com.google.protobuf.ByteString\n getQualityBytes() {\n java.lang.Object ref = quality_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n quality_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public byte value() {\n return value;\n }",
"Integer getFrameRate() {\n return frameRate;\n }",
"public int getRealSegmentSizeInBytes(int bitrate) {\n return (int) (bitrate * REAL_SEGMENT_DURATION / 8);\n }",
"public Integer getSsbkbm() {\n return ssbkbm;\n }",
"public static int getPCM(String name) {\n return mapPCM.get(name);\n }",
"public double getBCM(){\r\n\t\treturn bcm;\r\n\t}",
"public int IMMBYTE() {\n int reg = ROP_ARG(konami.pc);\n konami.pc = konami.pc + 1 & 0xFFFF;\n return reg & 0xFF;//insure it returns a 8bit value\n }",
"public static int getCodeBaudRate(IProject iProject) {\n String parentFunc = \"setup\"; //$NON-NLS-1$\n String childFunc = \"Serial.begin\"; //$NON-NLS-1$\n String baudRate = IndexHelper.findParameterInFunction(iProject, parentFunc, childFunc, null);\n if (baudRate == null) {\n return -1;\n }\n return Integer.parseInt(baudRate);\n\n }",
"private byte getValue() {\n\t\treturn value;\n\t}",
"public String getVideoCompressionType() {\n return videoCompressionType;\n }",
"public Long get_cachebytesservedrate() throws Exception {\n\t\treturn this.cachebytesservedrate;\n\t}",
"public int getAudioJittcomp();",
"com.google.protobuf.ByteString getValue();",
"com.google.protobuf.ByteString getValue();",
"com.google.protobuf.ByteString getValue();",
"float getDecodedAudioTimeoutMs();",
"float getDecodedAudioTimeoutMs();",
"@Override\n public byte[] getValue() {\n return MetricUtils.concat2(topologyId, getTag(), sampleRate).getBytes();\n }",
"public int getCurrentBinNum() {\n return currentBinNum;\n }",
"com.google.protobuf.ByteString getVal();",
"int getChargerCurrentRaw();",
"public double getAbandonCompressionRatio() {\r\n return abandonRatioNr / (double) abandonRatioDr;\r\n }",
"public double getSymbolBandwidth() {\n\t\treturn ((getSymbolMaxProb() - getSymbolMaxProb()) / 2D);\n\t}",
"BigInteger getPower_consumption();",
"public double getQuality() {\n return quality;\n }",
"public String getTransmitRate()\r\n\t{\r\n\t\treturn transmitRate;\r\n\t}",
"public String getDatakbn() {\r\n return datakbn;\r\n }",
"int getSmpRate();",
"public static String getHeartRateValue() {\n return heartRateValue;\n }",
"public int getVideoJittcomp();",
"public @UInt32 int getQuantizationBits();",
"@Field(7) \n\tpublic int sample_rate() {\n\t\treturn this.io.getIntField(this, 7);\n\t}",
"public long convertBandwidth(long reportedBandwidth){\n\t\t//CONVERT FROM MEGABITS TO BITS\n\t\tlong newBandwidth = reportedBandwidth * 1000;\n\t\treturn newBandwidth;\n\t}",
"public com.google.protobuf.ByteString getValue() {\n return value_;\n }",
"public com.google.protobuf.ByteString getValue() {\n return value_;\n }",
"public int getDownloadBandwidth();",
"java.lang.String getQuality();",
"public boolean hasBitrate() {\n return ((bitField0_ & 0x00008000) == 0x00008000);\n }",
"protected double ABT() {\r\n\t\tDouble output = Double.MAX_VALUE;\r\n\t\tIterator<Double> bws = this.flowBandwidth.values().iterator();\r\n\t\twhile (bws.hasNext()) {\r\n\t\t\tdouble temp = bws.next();\r\n\t\t\tif (temp < output) {\r\n\t\t\t\toutput = temp;\r\n\t\t\t\t// System.out.println(\"[GeneralSimulator.ABT]: \" + output);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// System.out.println(\"[GeneralSimulator.ABT]: succfulCount \"\r\n\t\t// + this.successfulCount);\r\n\t\treturn output * this.successfulCount;\r\n\t}",
"public Integer getSpflbm() {\n return spflbm;\n }",
"public Eac3AtmosSettings withBitrate(Integer bitrate) {\n setBitrate(bitrate);\n return this;\n }",
"public com.google.protobuf.ByteString getValue() {\n return value_;\n }",
"public com.google.protobuf.ByteString getValue() {\n return value_;\n }",
"public VideoQuality getVideoQuality() {\n\t\treturn mQuality;\n\t}",
"public Builder setBitrateBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00040000;\n bitrate_ = value;\n onChanged();\n return this;\n }",
"public boolean hasBitrate() {\n return ((bitField0_ & 0x00040000) == 0x00040000);\n }",
"public int MBR() { return mMBR; }",
"public int selectCeilBitrate(double throughput) {\n// int pre = selectFloorBitrate(Thrp);\n// return nextBitrate(pre);\n //code cũ sai trong trư�ng hợp throughput < tất cả bitrate. Khi đó nó sẽ ch�n 0, và next tức là 1. Trong khi mình muốn cái 0.\n int i = 0;\n while (i < NUMBER_OF_BITRATES - 1 && bitrateArray[i] < throughput) i++;\n return bitrateArray[i];\n }"
] | [
"0.7980609",
"0.7949534",
"0.75630736",
"0.75565135",
"0.7513492",
"0.74780035",
"0.7338219",
"0.7230595",
"0.68866694",
"0.63799447",
"0.63169223",
"0.6301786",
"0.6267581",
"0.6243332",
"0.617826",
"0.58350134",
"0.5708501",
"0.57006204",
"0.5618532",
"0.5594562",
"0.5528841",
"0.54747194",
"0.5453422",
"0.5355662",
"0.5355662",
"0.53457814",
"0.5344226",
"0.53269166",
"0.53050435",
"0.5300508",
"0.5297538",
"0.5291506",
"0.5272048",
"0.5245248",
"0.5245101",
"0.5232177",
"0.5223939",
"0.5223939",
"0.5223939",
"0.5221263",
"0.5208017",
"0.5203967",
"0.5191917",
"0.51876986",
"0.51743007",
"0.51742023",
"0.5161126",
"0.51510465",
"0.51424766",
"0.5137087",
"0.5135045",
"0.5132216",
"0.51298475",
"0.5129389",
"0.5127945",
"0.5126579",
"0.5119925",
"0.51183885",
"0.51153743",
"0.5097115",
"0.50965154",
"0.5094089",
"0.5075425",
"0.5049882",
"0.50478274",
"0.50478274",
"0.50478274",
"0.50444967",
"0.50444967",
"0.5040758",
"0.503191",
"0.5026958",
"0.5021461",
"0.50175756",
"0.5015551",
"0.5013958",
"0.50056815",
"0.5002451",
"0.5000646",
"0.49918014",
"0.49829343",
"0.49799788",
"0.4979874",
"0.49762493",
"0.49735808",
"0.4970169",
"0.4970169",
"0.49692294",
"0.49638242",
"0.49621597",
"0.49611378",
"0.4958688",
"0.4957949",
"0.49555138",
"0.49555138",
"0.49502182",
"0.49452275",
"0.4943781",
"0.49357283",
"0.4926963"
] | 0.5956767 | 15 |
Sets the bitrate value for the encoding process. If null or not specified a default value will be picked. | public void setBitRate(Integer bitRate) {
this.bitRate = bitRate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBitrate(Integer bitrate) {\n this.bitrate = bitrate;\n }",
"public void setBitrate(int bitrate) {\n this.bitrate = bitrate;\n }",
"public void setBitrate(long bitrate) {\n this.bitrate = bitrate;\n }",
"public Builder setBitrate(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00040000;\n bitrate_ = value;\n onChanged();\n return this;\n }",
"public boolean setDefaultBitRate(String bitrate);",
"@Override\n public void setBaudrate(int bitrate) throws SerialError{\n\n switch(bitrate)\n {\n case 300:\n baudrate=0x2710;\n break;\n case 600:\n baudrate=0x1388;\n break;\n case 1200:\n baudrate=0x09C4;\n break;\n case 2400:\n baudrate=0x0271;\n break;\n case 4800:\n baudrate=0x4138;\n break;\n case 9600:\n baudrate=0x4138;\n break;\n case 19200:\n baudrate=0x809C;\n break;\n case 38400:\n baudrate=0xC04E;\n break;\n case 57600:\n baudrate=0x0034;\n break;\n case 115200:\n baudrate=0x001A;\n break;\n case 460800:\n baudrate=0x4006;\n break;\n case 921600:\n baudrate=0x8003;\n break;\n default :\n throw new SerialError(\"The baudrate selected is out of scope \"+bitrate);\n }\n }",
"public Builder setBitrateBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00040000;\n bitrate_ = value;\n onChanged();\n return this;\n }",
"public void setAudiobitrate(int audiobitrate) {\n this.audiobitrate = audiobitrate;\n }",
"public long getBitrate() {\n return bitrate;\n }",
"public Integer getBitrate() {\n return this.bitrate;\n }",
"public com.google.protobuf.ByteString\n getBitrateBytes() {\n java.lang.Object ref = bitrate_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bitrate_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"java.lang.String getBitrate();",
"public java.lang.String getBitrate() {\n java.lang.Object ref = bitrate_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n bitrate_ = s;\n }\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getBitrateBytes() {\n java.lang.Object ref = bitrate_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n bitrate_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getBitrate() {\n java.lang.Object ref = bitrate_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n bitrate_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int\n setBitRate(int bitRate);",
"public Builder clearBitrate() {\n bitField0_ = (bitField0_ & ~0x00040000);\n bitrate_ = getDefaultInstance().getBitrate();\n onChanged();\n return this;\n }",
"public int getAudiobitrate() {\n return audiobitrate;\n }",
"public void set_quality(int value) {\n setUIntBEElement(offsetBits_quality(), 16, value);\n }",
"public Eac3AtmosSettings withBitrate(Integer bitrate) {\n setBitrate(bitrate);\n return this;\n }",
"public void setBitstreamMode(String bitstreamMode) {\n this.bitstreamMode = bitstreamMode;\n }",
"public Builder setQualityBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00004000;\n quality_ = value;\n onChanged();\n return this;\n }",
"public void setQuality(int value)\n\t{\n\t\tconfigManager.setQuality(value);\n\t\tupdatePreviewSize();\n\t}",
"public ParametersBuilder setMaxAudioBitrate(int maxAudioBitrate) {\n this.maxAudioBitrate = maxAudioBitrate;\n return this;\n }",
"public void setQuality(int value) {\n this.quality = value;\n }",
"public void setExpectedBandwidth(int bw);",
"public void setDownloadBandwidth(int bw);",
"public ParametersBuilder setMaxVideoBitrate(int maxVideoBitrate) {\n this.maxVideoBitrate = maxVideoBitrate;\n return this;\n }",
"public void setIsDefault(Byte value) {\n set(3, value);\n }",
"public void setUploadBandwidth(int bw);",
"public void setBandwidth(String name,\n\t\t\t int value)\n\tthrows SdpException {\n\tif (name == null)\n\t throw new SdpException(\"The name is null\");\n\telse {\n\t for (int i = 0; i < bandwidthFields.size(); i++) {\n\t\tBandwidthField bandwidthField = (BandwidthField) \n\t\t bandwidthFields.elementAt(i);\n\t\tString type = bandwidthField.getBwtype();\n\t\tif (type != null && \n\t\t type.equals(name)) \n\t\t bandwidthField.setBandwidth(value);\n\t }\n \n\t}\n }",
"public int nextBitrate(int bitrate) {\n return bitrateArray[Math.min(getIndexbyBitrate(bitrate) + 1, NUMBER_OF_BITRATES - 1)];\n }",
"private static void setSettingsFromPreferences(SharedPreferences sharedPref, Context context) {\n boolean hwCodec = sharedPref.getBoolean(context.getString(R.string.pref_hwcodec_key),\n Boolean.valueOf(context.getString(R.string.pref_hwcodec_default)));\n\n QBRTCMediaConfig.setVideoHWAcceleration(hwCodec);\n // Get video resolution from settings.\n int resolutionItem = Integer.parseInt(sharedPref.getString(context.getString(R.string.pref_resolution_key),\n \"0\"));\n Log.e(TAG, \"resolutionItem =: \" + resolutionItem);\n setVideoQuality(resolutionItem);\n\n // Get start bitrate.\n String bitrateTypeDefault = context.getString(R.string.pref_startbitrate_default);\n String bitrateType = sharedPref.getString(\n context.getString(R.string.pref_startbitrate_key), bitrateTypeDefault);\n if (!bitrateType.equals(bitrateTypeDefault)) {\n String bitrateValue = sharedPref.getString(context.getString(R.string.pref_startbitratevalue_key),\n context.getString(R.string.pref_startbitratevalue_default));\n int startBitrate = Integer.parseInt(bitrateValue);\n QBRTCMediaConfig.setVideoStartBitrate(startBitrate);\n }\n\n int videoCodecItem = Integer.parseInt(getPreferenceString(sharedPref, context, R.string.pref_videocodec_key, \"0\"));\n for (QBRTCMediaConfig.VideoCodec codec : QBRTCMediaConfig.VideoCodec.values()) {\n if (codec.ordinal() == videoCodecItem) {\n Log.e(TAG, \"videoCodecItem =: \" + codec.getDescription());\n QBRTCMediaConfig.setVideoCodec(codec);\n break;\n }\n }\n\n String audioCodecDescription = getPreferenceString(sharedPref, context, R.string.pref_audiocodec_key,\n R.string.pref_audiocodec_def);\n QBRTCMediaConfig.AudioCodec audioCodec = QBRTCMediaConfig.AudioCodec.ISAC.getDescription()\n .equals(audioCodecDescription) ?\n QBRTCMediaConfig.AudioCodec.ISAC : QBRTCMediaConfig.AudioCodec.OPUS;\n Log.e(TAG, \"audioCodec =: \" + audioCodec.getDescription());\n QBRTCMediaConfig.setAudioCodec(audioCodec);\n }",
"public void setVideobitrate(int videobitrate) {\n this.videobitrate = videobitrate;\n }",
"private void setMediaAssetScaleTypeValue(int value) {\n mediaAssetScaleType_ = value;\n }",
"public void changeBPM(String bpmValue) {\n\t\tsynth.setBPM(Integer.parseInt(bpmValue));\n\t}",
"public Builder setEncodingValue(int value) {\n encoding_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }",
"public void setVideoPreset(String preset);",
"public void setEncodingSettings( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ENCODINGSETTINGS, value);\r\n\t}",
"public void set(int value) {\n this.value = BigInteger.valueOf(value).toByteArray();\n }",
"private void setBitDepth(short encoding) {\n if (encoding == AudioFormat.ENCODING_PCM_8BIT)\n audioBundle.putInt(AudioSettings.AUDIO_BUNDLE_KEYS[20], 8);\n else if (encoding == AudioFormat.ENCODING_PCM_16BIT)\n audioBundle.putInt(AudioSettings.AUDIO_BUNDLE_KEYS[20], 16);\n else if (encoding == AudioFormat.ENCODING_PCM_FLOAT)\n audioBundle.putInt(AudioSettings.AUDIO_BUNDLE_KEYS[20], 32);\n else {\n // default or error, return \"guaranteed\" default\n audioBundle.putInt(AudioSettings.AUDIO_BUNDLE_KEYS[20], 16);\n }\n }",
"public void setSamplingRate(int value) {\n this.samplingRate = value;\n }",
"public Builder setQualityMaxBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00008000;\n qualityMax_ = value;\n onChanged();\n return this;\n }",
"public void setBandMode(String value) {\n _avTable.set(ATTR_BAND_MODE, value);\n }",
"public static void setEncodingSettings( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, ENCODINGSETTINGS, value);\r\n\t}",
"com.google.protobuf.ByteString\n getBitrateBytes();",
"public Builder setQuality(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00004000;\n quality_ = value;\n onChanged();\n return this;\n }",
"public void setFrameLimit(int value) {\n\t\tframeLimit = value;\n\t}",
"public Builder setB(int value) {\n bitField0_ |= 0x00000001;\n b_ = value;\n onChanged();\n return this;\n }",
"void setWBMaximum(java.math.BigDecimal wbMaximum);",
"public ParametersBuilder setForceHighestSupportedBitrate(boolean forceHighestSupportedBitrate) {\n this.forceHighestSupportedBitrate = forceHighestSupportedBitrate;\n return this;\n }",
"private void setMediaAssetScaleType(com.whensunset.wsvideoeditorsdk.model.MediaAssetScaleType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n mediaAssetScaleType_ = value.getNumber();\n }",
"public WriterOptions bufferSize(int value) {\n bufferSizeValue = value;\n return this;\n }",
"public void setFrameRate(Integer frameRate) {\n this.frameRate = frameRate;\n }",
"private void setBid(int value) {\n \n bid_ = value;\n }",
"public void setSampleRate(int value) {\n this.sampleRate = value;\n }",
"public void setBandWidth(double value, int subsystem) {\n _avTable.set(ATTR_BANDWIDTH, value, subsystem);\n }",
"public static void setEncodingSettings(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, ENCODINGSETTINGS, value);\r\n\t}",
"public void setCodec(Codec codec);",
"private void configureEncoder() throws IOException\n {\n encoder = MediaCodec.createByCodecName(encoderName);\n MediaFormat mediaFormat = MediaFormat.createVideoFormat(MIME_TYPE, width, height);\n mediaFormat.setInteger(MediaFormat.KEY_BIT_RATE, BITRATE);\n mediaFormat.setInteger(MediaFormat.KEY_FRAME_RATE, FRAMERATE);\n mediaFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, encoderColorFormat);\n mediaFormat.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 1);\n encoder.configure(mediaFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);\n encoder.start();\n }",
"protected void setCPUBurst(int cpuBurst) {\n\t this.cpuBurst = cpuBurst;\n\t }",
"public void setBandWidth(double b) {\n\t\tbw = b / _mySampleRate;\n\t}",
"public void setQuality(float quality);",
"public void setAdaptiveRateAlgorithm(String algorithm);",
"public void setBand(String value) {\n _avTable.set(ATTR_BAND, value);\n }",
"private void setMediaCount(int value) {\n \n mediaCount_ = value;\n }",
"public Bandwidth requestBwValue() {\n return requestBwValue;\n }",
"void scaleSampleRate(float scaleFactor) {\n if (debugFlag)\n debugPrintln(\"JSChannel: scaleSampleRate\");\n if (ais == null) {\n if (debugFlag) {\n debugPrint(\"JSChannel: Internal Error scaleSampleRate: \");\n debugPrintln(\"ais is null\");\n }\n return;\n }\n\n AudioFormat audioFormat = ais.getFormat();\n float rate = audioFormat.getSampleRate();\n\n double newRate = rate * scaleFactor;\n if (newRate > 48000.0) // clamp to 48K max\n newRate = 48000.0;\n/****\n// NOTE: This doesn't work...\n/// audioStream.setSampleRate(newRate);\n\n// need to set FloatControl.Type(SAMPLE_RATE) to new value somehow...\n\n if (debugFlag) {\n debugPrintln(\"JSChannel: scaleSampleRate: new rate = \" +\n rate * scaleFactor);\n debugPrintln(\" >>>>>>>>>>>>>>> using scaleFactor = \" +\n scaleFactor);\n }\n****/\n }",
"public void setRate(int rate) { this.rate = rate; }",
"public MediaFile(String name, String path, int audiobitrate, int videobitrate) {\n this.name = name;\n this.path = path;\n this.audiobitrate = audiobitrate;\n this.videobitrate = videobitrate;\n }",
"public void setNumberOfFramesSerialize(int val) {\n timeManager.numberOfFrames = val;\n }",
"public void setEncodingSettings(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ENCODINGSETTINGS, value);\r\n\t}",
"public Builder setNumb(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n numb_ = value;\n onChanged();\n return this;\n }",
"void setQuantizerScale(int value)\n {\n quantizerScale = value;\n }",
"public void setRate(Integer rate) {\r\n this.rate = rate;\r\n }",
"public void SetB(byte num) {\r\n\t\tm_numB = num;\r\n\t}",
"public void set(String value){\n this.value = new BigInteger(value).toByteArray();\n }",
"@Test\n public void setSampleSizeInBits_1() {\n Assertions.assertThrows(IllegalArgumentException.class, () -> {\n final int SAMPLE_SIZE_BITS = 1;\n AudioConfigManager.setSampleSizeInBits(SAMPLE_SIZE_BITS);\n assertEquals(AudioFormatConfig.sampleSizeInBits, SAMPLE_SIZE_BITS);\n });\n }",
"@Test\n public void setSampleSizeInBits_8() {\n final int SAMPLE_SIZE_BITS = 8;\n AudioConfigManager.setSampleSizeInBits(SAMPLE_SIZE_BITS);\n assertEquals(AudioFormatConfig.sampleSizeInBits, SAMPLE_SIZE_BITS);\n }",
"@Test\n public void setSampleRate_initiateValueShouldNotBeInvalid() {\n Assertions.assertDoesNotThrow(() -> {\n // AudioFormatConfig.sampleRate holds the initiate value at\n // program start.\n AudioConfigManager.setSampleRate(AudioFormatConfig.sampleRate);\n });\n }",
"public void set(int value)\n\t{\n\t\tbitHolder.setValue(value);\n\t}",
"public Builder setQualityMax(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00008000;\n qualityMax_ = value;\n onChanged();\n return this;\n }",
"public Builder setMediaAssetScaleTypeValue(int value) {\n copyOnWrite();\n instance.setMediaAssetScaleTypeValue(value);\n return this;\n }",
"public Manifest() {\n// for (int i = 0; i < NUMBER_OF_BITRATES; i++) {\n// bitrateArray[i] = i * STEP_SIZE + START_BITRATE;\n// }\n\t\tbitrateArray = new int[]{100, 150, 200, 250, 300, 400, 500, 700, 900, 1200, 1500, 2000, 2500,3000};\n }",
"public void setFeBandWidth(double value) {\n _avTable.set(ATTR_FE_BANDWIDTH, value);\n }",
"@Test\n public void setSampleSizeInBits_minus1() {\n Assertions.assertThrows(IllegalArgumentException.class, () -> {\n final int SAMPLE_SIZE_BITS = -1;\n AudioConfigManager.setSampleSizeInBits(SAMPLE_SIZE_BITS);\n assertEquals(AudioFormatConfig.sampleSizeInBits, SAMPLE_SIZE_BITS);\n });\n }",
"public Builder setRate(int value) {\n \n rate_ = value;\n onChanged();\n return this;\n }",
"public void setCodec(Codec codec) {\n this.codec = codec;\n }",
"public void setRate();",
"public void setQuality(Integer quality) {\n this.quality = quality;\n }",
"private void configurarCodec(){\n\n\t\t// Necessario para utilizar o Processor como um Player.\n\t\tprocessor.setContentDescriptor(null);\n\n\n\t\tfor (int i = 0; i < processor.getTrackControls().length; i++) {\n\n\t\t\tif (processor.getTrackControls()[i].getFormat() instanceof VideoFormat) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\t// Instantiate and set the frame access codec to the data flow path.\n\t\t\t\t\tTrackControl videoTrack = processor.getTrackControls()[i];\n\t\t\t\t\tCodec codec[] = { new CodecVideo() };\n\t\t\t\t\tvideoTrack.setCodecChain(codec);\n\t\t\t\t\tbreak;\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t}\n\n\t\tprocessor.prefetch();\n\n\t}",
"public int setParameter(int param, byte[] baValue) throws IllegalStateException\n {\n DsLog.log1(LOG_TAG, \"setParameter param:\" + param + \", baValue:\" + byteArrayToString(baValue));\n return audioEffect.setParameter(param, baValue);\n }",
"public void setBandwidth(long bandwidth) {\n data.setBandwidth(bandwidth);\n List<FlowPath> subPaths = getSubPaths();\n if (subPaths != null) {\n subPaths.forEach(path -> path.getData().setBandwidth(bandwidth));\n }\n }",
"public abstract void setRate();",
"public void setCriteria(Byte value) {\n set(12, value);\n }",
"public void setAverageBits(int bits) {\n }",
"public void setDefaultParameters() {\n\t\toptions = 0;\n\t\toutBits = null;\n\t\ttext = new byte[0];\n\t\tyHeight = 3;\n\t\taspectRatio = 0.5f;\n\t}",
"public BandwidthLimiter(int maxRate, int threadNum) {\n if (threadNum > 1) {\n maxRate = maxRate / threadNum;\n }\n this.setMaxRate(maxRate);\n }",
"public void setSourcelimit(Byte sourcelimit) {\n this.sourcelimit = sourcelimit;\n }",
"public Builder setSpeed(int value) {\n bitField0_ |= 0x00000800;\n speed_ = value;\n onChanged();\n return this;\n }"
] | [
"0.7469844",
"0.7443502",
"0.7325381",
"0.7324264",
"0.72921515",
"0.66743857",
"0.66434497",
"0.6165613",
"0.5987272",
"0.59859437",
"0.57946855",
"0.57159376",
"0.5667305",
"0.5655577",
"0.5602102",
"0.55793774",
"0.5468589",
"0.5444471",
"0.53300965",
"0.5300627",
"0.5285979",
"0.52572435",
"0.52456546",
"0.5164298",
"0.51494014",
"0.5131527",
"0.51013803",
"0.5090026",
"0.5063662",
"0.50619966",
"0.50332767",
"0.5033215",
"0.5009891",
"0.50040555",
"0.50017875",
"0.50009847",
"0.4989674",
"0.4976763",
"0.49398237",
"0.49351314",
"0.49018404",
"0.48982206",
"0.48960948",
"0.4867339",
"0.48456725",
"0.48418343",
"0.48410252",
"0.48267725",
"0.4818094",
"0.4814809",
"0.48121986",
"0.48019418",
"0.47860274",
"0.4779924",
"0.4775547",
"0.4759537",
"0.47476938",
"0.4720707",
"0.47092435",
"0.47029582",
"0.47011742",
"0.46977445",
"0.46833378",
"0.46808165",
"0.46797597",
"0.4669919",
"0.4669656",
"0.46635666",
"0.46470633",
"0.4643756",
"0.46316433",
"0.46184114",
"0.46116766",
"0.460028",
"0.45854303",
"0.45773393",
"0.45729843",
"0.457213",
"0.45632708",
"0.45570877",
"0.45394102",
"0.4526645",
"0.45215392",
"0.4521186",
"0.45120582",
"0.45059785",
"0.44967365",
"0.44791496",
"0.44747227",
"0.44731796",
"0.44728097",
"0.44620058",
"0.44538876",
"0.444973",
"0.4447351",
"0.44466782",
"0.44441718",
"0.44433427",
"0.44432035",
"0.4439775"
] | 0.55061525 | 16 |
Returns the frame rate value for the encoding process. | Integer getFrameRate() {
return frameRate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Field(5) \n\tpublic AVRational frame_rate() {\n\t\treturn this.io.getNativeObjectField(this, 5);\n\t}",
"public float getFramesPerSecond() {\n return 1 / frametime;\n }",
"public float getByteRate() {\n return byteMonitor.getRate();\n }",
"public int getPreviewFrameRate() {\n return getInt(\"preview-frame-rate\");\n }",
"float getVideoCaptureRateFactor();",
"public double getFrameTime() {\n\n\t\t// Convert from milliseconds to seconds\n\t\treturn getInteger(ADACDictionary.FRAME_TIME) / 1000;\n\n\t}",
"@Override\n\tpublic float getFrameRate() {\n\t\treturn fps;\n\t}",
"public double getSpeedPerFrame(){\r\n\t\treturn speed;\r\n\t}",
"public float getFrameRate() { return 1000f/_interval; }",
"public int getAudiobitrate() {\n return audiobitrate;\n }",
"public int getSamplingRate( ) {\r\n return samplingRate;\r\n }",
"@Override\n\tpublic float getTimePerFrame() {\n\t\treturn tpf;\n\t}",
"public double getFps() {\n return fps;\n }",
"public float getRate() {\n\treturn durationStretch * nominalRate;\n }",
"public long getBitrate() {\n return bitrate;\n }",
"public int getSamplingRate() {\n return samplingRate;\n }",
"public Integer getBitrate() {\n return this.bitrate;\n }",
"public double getFrameDuration();",
"public static double timePer1000Byte(int frameSize, double frameRate) {\r\n return 1E6 / (frameSize * frameRate); \r\n }",
"@HaxeMethodBody(\n\t\t\"{% if extra.fps %}return {{ extra.fps }};{% else %}return 60;{% end %}\"\n\t)\n\tpublic static int getFramesPerSecond() {\n\t\treturn 60;\n\t}",
"public float getRate() {\n\t\treturn rate;\n\t}",
"public double getFPS() {\n return fps;\n }",
"public int getRate() {\n return rate_;\n }",
"public Integer getRate() {\r\n return rate;\r\n }",
"public double getFPS() {\n\t\treturn frequency;\n\t}",
"public int getRate() {\n return rate_;\n }",
"public float getCountRate() {\n return countMonitor.getRate();\n }",
"public float getRate(){\r\n return rate;\r\n }",
"public double getConversionRate() {\n return conversionRate;\n }",
"Integer getBitRate() {\n return bitRate;\n }",
"public synchronized int getFPS() {\n return fps;\n }",
"@Field(7) \n\tpublic int sample_rate() {\n\t\treturn this.io.getIntField(this, 7);\n\t}",
"public Float getCploadRate() {\r\n return cploadRate;\r\n }",
"double getRate();",
"public Long get_cachebytesservedrate() throws Exception {\n\t\treturn this.cachebytesservedrate;\n\t}",
"private double updateFrameRate(long now) {\n long oldFrameTime = frameTimes[frameTimeIndex];\n frameTimes[frameTimeIndex] = now;\n frameTimeIndex = (frameTimeIndex + 1) % frameTimes.length;\n if (numFrameTimes < frameTimes.length) {\n numFrameTimes++;\n }\n long elapsedNanos = now - oldFrameTime;\n long elapsedNanosPerFrame = elapsedNanos / numFrameTimes;\n double frameRate = 1_000_000_000.0 / elapsedNanosPerFrame;\n return frameRate;\n }",
"int getSmpRate();",
"public double getRate() {\n\t\treturn rate;\n\t}",
"public String getTransmitRate()\r\n\t{\r\n\t\treturn transmitRate;\r\n\t}",
"public double getRate() {\n return rate;\n }",
"public double getRate() {\n return rate;\n }",
"public float getPreferredFramerate();",
"public Double bytesPerSecond()\n\t{\n\t\treturn getValue(DataRateUnit.BYTES_PER_SEC);\n\t}",
"public Integer getSampleRate() {\n return this.sampleRate;\n }",
"double getPlaybackSpeed();",
"Integer networkTickRate();",
"public int getRate() {\r\n return Integer.parseInt(RATES[Rate]);\r\n }",
"private int mRead() {\n\t\t// read in a full buffer of bytes from the file\n\t\tint bytesRead = rawBytes.length;\n\t\tif (loop) {\n\t\t\treadBytesLoop();\n\t\t} else {\n\t\t\tbytesRead = readBytes();\n\t\t}\n\t\t// convert them to floating point\n\t\tint frameCount = bytesRead / format.getFrameSize();\n\t\tsynchronized (buffer) {\n\t\t\tbuffer.setSamplesFromBytes(rawBytes, 0, format, 0, frameCount);\n\t\t}\n\n\t\treturn frameCount;\n\t}",
"String getFPS();",
"public int getSampleRate() {\n for (int rate : new int[]{8000, 11025, 16000, 22050, 44100, 48000}) {\n int buffer = AudioRecord.getMinBufferSize(rate, channel_in, format);\n if (buffer > 0)\n return rate;\n }\n return -1;\n }",
"public Double bitsPerSecond()\n\t{\n\t\treturn getValue(DataRateUnit.BITS_PER_SEC);\n\t}",
"public PagerBaudRate getBaudRate() {\r\n\t\treturn baudRate;\r\n\t}",
"@java.lang.Override\n public com.google.protobuf.UInt64Value getFramesCount() {\n return framesCount_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : framesCount_;\n }",
"public int getFrameCount() {\n return frameCount;\n }",
"public double getRate() {\r\n\t\treturn (getRate(0)+getRate(1))/2.0;\r\n\t}",
"public int getFrames() {\r\n return frames;\r\n }",
"@Field(5) \n\tpublic AVBufferSrcParameters frame_rate(AVRational frame_rate) {\n\t\tthis.io.setNativeObjectField(this, 5, frame_rate);\n\t\treturn this;\n\t}",
"public int getFps() {\n\t\treturn fpsTemp;\n\t}",
"@Generated\n @Selector(\"animationSpeed\")\n @NFloat\n public native double animationSpeed();",
"public int getTargetFPS() {\r\n return fps;\r\n }",
"public int getVideobitrate() {\n return videobitrate;\n }",
"private int m18349l() {\n if (this.f16622p) {\n int minBufferSize = AudioTrack.getMinBufferSize(this.f16625s, this.f16626t, this.f16627u);\n C8514e.m20490b(minBufferSize != -2);\n return C8509F.m20433a(minBufferSize * 4, ((int) m18337c(250000)) * this.f16589I, (int) Math.max((long) minBufferSize, m18337c(750000) * ((long) this.f16589I)));\n }\n int rate = m18332b(this.f16627u);\n if (this.f16627u == 5) {\n rate *= 2;\n }\n return (int) ((((long) rate) * 250000) / 1000000);\n }",
"public float getSampleRate();",
"public int getSampleRate() {\n return sampleRate;\n }",
"private void retrieveBitRate() {\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n\n HashMap<String, String> metadata = new HashMap<>();\n\n MediaMetadataRetriever mediaMetadataRetriever = new MediaMetadataRetriever();\n mediaMetadataRetriever.setDataSource(radioStation.getListenUrl(), metadata);\n //mediaMetadataRetriever.setDataSource(RadioPlayerFragment.RADIO_LOCAL_URL, metadata);\n\n bitRate = mediaMetadataRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_BITRATE);\n Log.d(LOG_TAG, \"Bitrate: \" + bitRate);\n\n sendAlert(RadioPlayerFragment.SEND_BITRATE, bitRate);\n }\n }).start();\n\n }",
"int getMPPerSecond();",
"public Rate rate() {\n _initialize();\n return rate;\n }",
"public Bandwidth requestBwValue() {\n return requestBwValue;\n }",
"public Rational getAudioSampleRate();",
"public void setFrameRate(Integer frameRate) {\n this.frameRate = frameRate;\n }",
"double getTransRate();",
"public JSlider getFramesPerWavelengthSlider() {\n return framesPerWavelength;\n }",
"public int getFPS() {\n\t\treturn renderer.getFps();\n\t}",
"public Double throttleRate() {\n return this.throttleRate;\n }",
"@XmlElement(name = \"numberOfFrames\")\n public int getNumberOfFramesSerialize() {\n return timeManager.numberOfFrames;\n }",
"float getDecodedAudioTimeoutMs();",
"float getDecodedAudioTimeoutMs();",
"public static float getConsumeRate() {\n return consumerate;\n }",
"java.lang.String getBitrate();",
"public int getFrameDelay() {\n\t\treturn frameDelay;\n\t}",
"public com.google.protobuf.UInt64Value getFramesCount() {\n if (framesCountBuilder_ == null) {\n return framesCount_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : framesCount_;\n } else {\n return framesCountBuilder_.getMessage();\n }\n }",
"public static String getHeartRateValue() {\n return heartRateValue;\n }",
"public int uploadingProgressBarGetRate() {\n return uploadingProgressBar.getProgress();\n }",
"int getHeartRate();",
"public FXImageSink requestFrameRate(double rate) {\n requestRate = (int) Math.round(rate);\n sink.setCaps(Caps.fromString(buildCapsString()));\n return this;\n }",
"public float getFrequency() {\n Integer sR = (Integer)sampleRate.getSelectedItem();\n int intST = sR.intValue();\n int intFPW = framesPerWavelength.getValue();\n\n return (float)intST/(float)intFPW;\n }",
"public int getSampleRate() {\r\n\treturn SAMPLES_IN_SECOND;\r\n}",
"public Long get_cacheresponsebytesrate() throws Exception {\n\t\treturn this.cacheresponsebytesrate;\n\t}",
"public java.lang.String getBitrate() {\n java.lang.Object ref = bitrate_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n bitrate_ = s;\n }\n return s;\n }\n }",
"double getPWMRate();",
"public float getSpeed() {\n return this.speedValue;\n }",
"public java.lang.String getBitrate() {\n java.lang.Object ref = bitrate_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n bitrate_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public static int getTimeFrames() {\n return Atlantis.getBwapi().getFrameCount();\n }",
"public int getFrameByteCount() {\n return mMetaData[0] * mMetaData[1] * 4;\n }",
"public float getPeriodicRateChange() {\n return periodicRateChange;\n }",
"@Override\n\tpublic double calRate() {\n\t\treturn 0.9f;\n\t}",
"@java.lang.Override\n public float getDecodedAudioTimeoutMs() {\n return decodedAudioTimeoutMs_;\n }",
"@java.lang.Override\n public float getDecodedAudioTimeoutMs() {\n return decodedAudioTimeoutMs_;\n }",
"int getFramesCount();",
"public static String getCurrentSpeed() {\r\n\t\treturn currentSpeed;\r\n\t}"
] | [
"0.7369261",
"0.7140313",
"0.69640565",
"0.67749447",
"0.666679",
"0.666231",
"0.66140914",
"0.65595365",
"0.65148365",
"0.64737743",
"0.63402456",
"0.633762",
"0.63339955",
"0.63046277",
"0.62965703",
"0.62626266",
"0.62476283",
"0.62316126",
"0.6224292",
"0.61886495",
"0.6186335",
"0.6167283",
"0.612596",
"0.61196625",
"0.61164844",
"0.6099862",
"0.60941887",
"0.60830724",
"0.6082022",
"0.60768276",
"0.60633516",
"0.6061357",
"0.6041825",
"0.6029071",
"0.59800136",
"0.59780395",
"0.59742266",
"0.5928693",
"0.5918047",
"0.59130305",
"0.59130305",
"0.5908202",
"0.5875507",
"0.5853843",
"0.5840954",
"0.58341885",
"0.58331114",
"0.5827216",
"0.5818836",
"0.580439",
"0.58014834",
"0.5799142",
"0.5789279",
"0.5777004",
"0.5770619",
"0.5770502",
"0.5760447",
"0.57557017",
"0.5751326",
"0.57450163",
"0.572761",
"0.571662",
"0.5711616",
"0.57072127",
"0.56911916",
"0.56906974",
"0.56811607",
"0.5674543",
"0.567004",
"0.56584066",
"0.56494266",
"0.5633469",
"0.5631908",
"0.56311315",
"0.56279343",
"0.5623965",
"0.5623965",
"0.5615673",
"0.56123954",
"0.5612237",
"0.56106323",
"0.5609772",
"0.5609092",
"0.5609075",
"0.557856",
"0.5559479",
"0.5546548",
"0.55288863",
"0.5516795",
"0.5512579",
"0.55077755",
"0.5503059",
"0.5495565",
"0.54875165",
"0.54869735",
"0.5485513",
"0.5480028",
"0.5480028",
"0.5479376",
"0.54593545"
] | 0.73906636 | 0 |
Sets the frame rate value for the encoding process. If null or not specified a default value will be picked. | public void setFrameRate(Integer frameRate) {
this.frameRate = frameRate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Field(5) \n\tpublic AVBufferSrcParameters frame_rate(AVRational frame_rate) {\n\t\tthis.io.setNativeObjectField(this, 5, frame_rate);\n\t\treturn this;\n\t}",
"public void setPreferredFramerate(float fps);",
"public void setPreviewFrameRate(int fps) {\n set(\"preview-frame-rate\", fps);\n }",
"public boolean setDefaultBitRate(String bitrate);",
"public FXImageSink requestFrameRate(double rate) {\n requestRate = (int) Math.round(rate);\n sink.setCaps(Caps.fromString(buildCapsString()));\n return this;\n }",
"public void setFrameRate(float aValue) { setInterval(Math.round(1000/aValue)); }",
"public void setSamplingRate(int value) {\n this.samplingRate = value;\n }",
"public void Init(float frame_rate, long time)\n\t{\n\t\tthis.frame_rate = frame_rate;\n\t\n\t}",
"public void setRate(int rate) { this.rate = rate; }",
"@Override\n public void setBaudrate(int bitrate) throws SerialError{\n\n switch(bitrate)\n {\n case 300:\n baudrate=0x2710;\n break;\n case 600:\n baudrate=0x1388;\n break;\n case 1200:\n baudrate=0x09C4;\n break;\n case 2400:\n baudrate=0x0271;\n break;\n case 4800:\n baudrate=0x4138;\n break;\n case 9600:\n baudrate=0x4138;\n break;\n case 19200:\n baudrate=0x809C;\n break;\n case 38400:\n baudrate=0xC04E;\n break;\n case 57600:\n baudrate=0x0034;\n break;\n case 115200:\n baudrate=0x001A;\n break;\n case 460800:\n baudrate=0x4006;\n break;\n case 921600:\n baudrate=0x8003;\n break;\n default :\n throw new SerialError(\"The baudrate selected is out of scope \"+bitrate);\n }\n }",
"public void setRate(Integer rate) {\r\n this.rate = rate;\r\n }",
"private void setCaptureRate(float captureRate) {\n float minDiff = Float.MAX_VALUE;\n int bestMatch = 0;\n for (int i = 0; i < frameRateList.size(); i++) {\n final float inListInterval = frameRateList.get(i);\n final float diff = Math.abs(inListInterval - captureRate);\n if (diff < minDiff) {\n minDiff = diff;\n bestMatch = i;\n }\n }\n numberPicker.setValue(bestMatch);\n }",
"public void setRate();",
"public void setRate(float rate) {\n\t\tthis.rate = rate;\n\t}",
"protected void setFps(double fps) {\n this.fps = fps;\n }",
"public void setSampleRate(float rate)\n {\n samplingDelay = (int)(ONE_SECOND/rate);\n }",
"public void setBitRate(Integer bitRate) {\n this.bitRate = bitRate;\n }",
"public <T extends Number> void setSpeedPerFrame(T speed){\r\n\t\tif(speed.doubleValue() <= 0){\r\n\t\t\tthis.speed = 1;\r\n\t\t\tSystem.err.println(\"Negative Speed, resulting to a speed of 1!\");\r\n\t\t}else{\r\n\t\t\tthis.speed = speed.doubleValue();\r\n\t\t}\r\n\t}",
"public void setFixedPlaybackRate(int fps) {\n mFixedFrameDurationUsec = ONE_MILLION / fps;\n }",
"public void setSampleRate(int value) {\n this.sampleRate = value;\n }",
"private void setFrameRate(int newFPS){\n\t if(prevFrameRate != newFPS){\n\t\t prevFrameRate = newFPS;\n\t\t frameRate(newFPS);\n\t }\n }",
"private void setFPS(int fps) {\n this.fps = fps;\n }",
"public void setFrame(int value) {\r\n this.frame = value;\r\n }",
"public void setBitrate(int bitrate) {\n this.bitrate = bitrate;\n }",
"public void setFrameLimit(int value) {\n\t\tframeLimit = value;\n\t}",
"public void setClockRate(double clockRate) {\r\n CompUtils.checkLessThanEqZero(clockRate);\r\n this.clockRate = clockRate;\r\n }",
"public void setBitrate(Integer bitrate) {\n this.bitrate = bitrate;\n }",
"public abstract void setRate();",
"void scaleSampleRate(float scaleFactor) {\n if (debugFlag)\n debugPrintln(\"JSChannel: scaleSampleRate\");\n if (ais == null) {\n if (debugFlag) {\n debugPrint(\"JSChannel: Internal Error scaleSampleRate: \");\n debugPrintln(\"ais is null\");\n }\n return;\n }\n\n AudioFormat audioFormat = ais.getFormat();\n float rate = audioFormat.getSampleRate();\n\n double newRate = rate * scaleFactor;\n if (newRate > 48000.0) // clamp to 48K max\n newRate = 48000.0;\n/****\n// NOTE: This doesn't work...\n/// audioStream.setSampleRate(newRate);\n\n// need to set FloatControl.Type(SAMPLE_RATE) to new value somehow...\n\n if (debugFlag) {\n debugPrintln(\"JSChannel: scaleSampleRate: new rate = \" +\n rate * scaleFactor);\n debugPrintln(\" >>>>>>>>>>>>>>> using scaleFactor = \" +\n scaleFactor);\n }\n****/\n }",
"public void setFPS(int fps)\r\n\t{\r\n\t\tthis.fps = fps;\r\n\t}",
"public void setFPS(double frequency) {\n\t\tif (frequency > MAX_FREQUENCY) {\n\t\t\tfrequency = MAX_FREQUENCY;\n\t\t}\n\t\tif (frequency < MIN_FREQUENCY) {\n\t\t\tfrequency = MIN_FREQUENCY;\n\t\t}\n\t\tthis.frequency = frequency;\n\t}",
"@Generated\n @Selector(\"setAnimationSpeed:\")\n public native void setAnimationSpeed(@NFloat double value);",
"public void setBitrate(long bitrate) {\n this.bitrate = bitrate;\n }",
"public void setFrameTime (float frameTime) {\n\t\tthis.frameTime = frameTime;\n\t}",
"@Field(5) \n\tpublic AVRational frame_rate() {\n\t\treturn this.io.getNativeObjectField(this, 5);\n\t}",
"public int\n setBitRate(int bitRate);",
"Integer getFrameRate() {\n return frameRate;\n }",
"public void setStaticPictureFps(float fps);",
"public void setSamplingRate( int samplingRate ) {\r\n this.samplingRate = samplingRate;\r\n }",
"void setPWMRate(double rate);",
"public void setConversionRate(double value) {\n this.conversionRate = value;\n }",
"public Builder setRate(int value) {\n \n rate_ = value;\n onChanged();\n return this;\n }",
"public void setTargetFPS(int fps) {\r\n this.fps = fps;\r\n Display.setSwapInterval(fps);\r\n }",
"private void setFPS() {\n fpsLabel.setText(Integer.toString((int)speedSlider.getValue()) + \" FPS\");\n timeline.setRate(speedSlider.getValue());\n }",
"public void setDefaultStandardRate(Rate rate)\r\n {\r\n m_defaultStandardRate = rate;\r\n }",
"public void setSpeed(float val) {speed = val;}",
"public void setDefaultOvertimeRate(Rate rate)\r\n {\r\n m_defaultOvertimeRate = rate;\r\n }",
"public void setNumberOfFramesSerialize(int val) {\n timeManager.numberOfFrames = val;\n }",
"public void setSpeed(int value) {\n speed = value;\n if (speed < 40) {\n speedIter = speed == 0 ? 0 : speed / 4 + 1;\n speedWait = (44 - speed) * 3;\n fieldDispRate = 20;\n listDispRate = 20;\n } else if (speed < 100) {\n speedIter = speed * 2 - 70;\n fieldDispRate = (speed - 40) * speed / 50;\n speedWait = 1;\n listDispRate = 1000;\n } else {\n speedIter = 10000;\n fieldDispRate = 2000;\n speedWait = 1;\n listDispRate = 4000;\n }\n }",
"float getVideoCaptureRateFactor();",
"@Test\n public void sampleRateChangeChangesFrameRate() {\n assertEquals(AudioFormatConfig.frameRate, AudioFormatConfig.sampleRate);\n AudioConfigManager.setSampleRate(16000f);\n assertEquals(AudioFormatConfig.frameRate, AudioFormatConfig.sampleRate);\n AudioConfigManager.setSampleRate(44100f);\n assertEquals(AudioFormatConfig.frameRate, AudioFormatConfig.sampleRate);\n }",
"public void setFPS(int fps) {\n\t\trenderer.setFps(fps);\n\t}",
"public void setRateLimiter(RateLimiter rateLimiter) {\n this.rateLimiter = rateLimiter;\n }",
"public void setTurnRate (float rate)\n {\n if (rate > 0) {\n _turnRate = rate;\n } else {\n clearTurnRate();\n }\n }",
"public void setTargetFPS(int fps) \n\t{\n\t\ttarget_update = fps;\n\t\tideal_time = NANO / target_update;\n\t}",
"public BandwidthLimiter(int maxRate, int threadNum) {\n if (threadNum > 1) {\n maxRate = maxRate / threadNum;\n }\n this.setMaxRate(maxRate);\n }",
"void setPlaybackSpeed(float speed);",
"public void uploadingProgressBarSet(int processRate) {\n uploadingProgressBar.setProgress(processRate);\n }",
"public void setSampleRate(Integer sampleRate) {\n this.sampleRate = sampleRate;\n }",
"public void setRateLimiter(RateLimiter rateLimiter) {\n this.rateLimiter = rateLimiter;\n }",
"public void setRate(float wpm) {\n\tif (wpm > 0 && wpm < 1000) {\n\t setDurationStretch(nominalRate / wpm);\n\t}\n }",
"public void setSampleRate(float sampleRate) {\n\t\tif (sampleRate <= 0) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Invalid samplerate for FloatSampleBuffer.\");\n\t\t}\n\t\tif (this.sampleRate != sampleRate) {\n\t\t\tthis.sampleRate = sampleRate;\n\t\t\t// remove cache\n\t\t\tlastConvertToByteArrayFormat = null;\n\t\t}\n\t}",
"public float getPreferredFramerate();",
"public void setSampleRate(int sampleRate) {\r\n\t\tthis.sampleRate = sampleRate;\r\n\t}",
"public void setVideobitrate(int videobitrate) {\n this.videobitrate = videobitrate;\n }",
"public synchronized void setMaxRate(int maxRate)\n throws IllegalArgumentException {\n if (maxRate < 0) {\n throw new IllegalArgumentException(\"maxRate can not less than 0\");\n }\n this.maxRate = maxRate;\n if (maxRate == 0) {\n this.timeCostPerChunk = 0;\n } else {\n this.timeCostPerChunk = (1000000000L * CHUNK_LENGTH)\n / (this.maxRate * KB);\n }\n }",
"public void updateFrameRate(int frameRate) {\n HwGradualBrightnessAlgo hwGradualBrightnessAlgo = this.mHwGradualBrightnessAlgo;\n if (hwGradualBrightnessAlgo != null) {\n hwGradualBrightnessAlgo.updateFrameRate(frameRate);\n }\n }",
"public AnimationFX setSpeed(double value) {\n this.timeline.setRate(value);\n return this;\n }",
"public void setCploadRate(Float cploadRate) {\r\n this.cploadRate = cploadRate;\r\n }",
"public void setRate(double newRate) {\n this.rate = newRate;\n }",
"public float getFramesPerSecond() {\n return 1 / frametime;\n }",
"public int getPreviewFrameRate() {\n return getInt(\"preview-frame-rate\");\n }",
"public void setQuality(int value)\n\t{\n\t\tconfigManager.setQuality(value);\n\t\tupdatePreviewSize();\n\t}",
"public Builder setMPPerSecond(int value) {\n bitField0_ |= 0x00000020;\n mPPerSecond_ = value;\n onChanged();\n return this;\n }",
"void setCurrentFrame(int frameNum) {\n this.currFrame = frameNum;\n }",
"public void setBounceRate(Double bounceRate) {\r\n this.bounceRate = bounceRate;\r\n }",
"public Builder setBitrate(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00040000;\n bitrate_ = value;\n onChanged();\n return this;\n }",
"public void setCaptureMode(final int width, final int height, final int min_fps, final int max_fps, final int frameFormat);",
"abstract void setCaptureParameters(int width, int height, int frameRate,\n android.hardware.Camera.Parameters cameraParameters);",
"public void setLearningRate(double rate);",
"public void setBaudRate(long baudRate) throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_SetBaudRate(ftHandle, (int) baudRate));\n }",
"public Builder setSpeed(int value) {\n bitField0_ |= 0x00000080;\n speed_ = value;\n onChanged();\n return this;\n }",
"public void setAudiobitrate(int audiobitrate) {\n this.audiobitrate = audiobitrate;\n }",
"public void setSpeed(int speed) {\n thread.setSpeed(speed);\n }",
"public float getFrameRate() { return 1000f/_interval; }",
"private void setParameters(int width, int height, int bitRate) {\n if ((width % 16) != 0 || (height % 16) != 0) {\n Log.w(TAG, \"WARNING: width or height not multiple of 16\");\n }\n mWidth = width;\n mHeight = height;\n mBitRate = bitRate;\n mFrame = new byte[mWidth * mHeight * 3 / 2];\n }",
"public void setDecayRate(double newDecayRate ){\n\n decayRate= newDecayRate;\n}",
"public void setSpeed(double multiplier);",
"@Override\n\tpublic float getFrameRate() {\n\t\treturn fps;\n\t}",
"public void setGrowthRate(int growthRate) {\n growthRate /= 100;\n this.growthRate = growthRate;\n }",
"public void setUploadBandwidth(int bw);",
"public Builder setSpeed(int value) {\n bitField0_ |= 0x00000800;\n speed_ = value;\n onChanged();\n return this;\n }",
"public void setAdaptiveRateAlgorithm(String algorithm);",
"public Builder setSpeed(int value) {\n bitField0_ |= 0x00001000;\n speed_ = value;\n onChanged();\n return this;\n }",
"public Builder setSpeed(int value) {\n bitField0_ |= 0x00001000;\n speed_ = value;\n onChanged();\n return this;\n }",
"public Builder setSpeed(int value) {\n bitField0_ |= 0x00001000;\n speed_ = value;\n onChanged();\n return this;\n }",
"public static void setSpeedScalingFactor(double speedFactor)\n\t{\n\t\tspeedScalingFactor = speedFactor;\n\t//\telse speedScalingFactor = SpeedBasedDetection.DEF_SCALING_FACTOR;\n\t\t//\t\tSystem.out.println(\"speedScalingFactor: \"+speedScalingFactor);\n\t\t//Prefs.speedScalingFactor = speedScalingFactor;\n\t}",
"public void setSpeed(int value) {\n this.speed = value;\n }",
"@Field(7) \n\tpublic AVBufferSrcParameters sample_rate(int sample_rate) {\n\t\tthis.io.setIntField(this, 7, sample_rate);\n\t\treturn this;\n\t}",
"protected void setMoveRate(long moveRate) {\r\n\t\tthis.moveRate = moveRate;\r\n\t}"
] | [
"0.6576991",
"0.65516263",
"0.6455676",
"0.644893",
"0.6435355",
"0.6384848",
"0.6303036",
"0.623396",
"0.6185576",
"0.61362416",
"0.60973203",
"0.6062027",
"0.6043953",
"0.60346013",
"0.6022474",
"0.6021211",
"0.59927535",
"0.5987713",
"0.5960035",
"0.594406",
"0.59257376",
"0.59130913",
"0.58915627",
"0.5879361",
"0.5865054",
"0.5854547",
"0.5842434",
"0.58237886",
"0.5812145",
"0.58057284",
"0.57685226",
"0.5748428",
"0.57427824",
"0.5739754",
"0.5722771",
"0.56884193",
"0.56420636",
"0.5610261",
"0.5590556",
"0.55630946",
"0.5551547",
"0.5545014",
"0.5537074",
"0.55360484",
"0.55081165",
"0.5503955",
"0.5502339",
"0.54645956",
"0.54642546",
"0.5448218",
"0.54474837",
"0.54242104",
"0.54112864",
"0.54076964",
"0.5399501",
"0.53963196",
"0.5395246",
"0.5374745",
"0.53728837",
"0.53720754",
"0.5343478",
"0.53346723",
"0.5331191",
"0.53265023",
"0.53161484",
"0.5306103",
"0.53031397",
"0.5288044",
"0.52614236",
"0.5257087",
"0.5252434",
"0.5243646",
"0.5243399",
"0.5224374",
"0.5220562",
"0.5220525",
"0.5218639",
"0.5218629",
"0.5218151",
"0.518573",
"0.5179154",
"0.51790464",
"0.5178023",
"0.51691705",
"0.51683044",
"0.5158977",
"0.51509833",
"0.5149691",
"0.5147762",
"0.5135513",
"0.51346636",
"0.51242715",
"0.51189536",
"0.5117415",
"0.5117124",
"0.5117124",
"0.5103426",
"0.5073932",
"0.50682956",
"0.5055349"
] | 0.7654033 | 0 |
Returns the video size for the encoding process. | VideoSize getSize() {
return size;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getVideoLength(){\n\t\treturn videoLength;\n\t}",
"@NonNull\n public VideoSize getVideoSize() {\n throw new UnsupportedOperationException(\"getVideoSize is not implemented\");\n }",
"public double getVideoWidth() {\n return getElement().getVideoWidth();\n }",
"public String getVideoResolution() {\n //Camera.Size s = mCamera.getParameters().getPreviewSize();\n //return s.width + \"x\" + s.height;\n if (mProfile == null)\n return null;\n return mProfile.videoFrameWidth + \"x\" + mProfile.videoFrameHeight;\n }",
"public double getVideoHeight() {\n return getElement().getVideoHeight();\n }",
"@Override\n\t\tpublic int getVideoWidth() {\n\t\t\tif (mServicePlayerEngine != null) {\n\t\t\t\treturn mServicePlayerEngine.getVideoWidth();\n\t\t\t}\n\t\t\treturn 0;\n\t\t}",
"public String getSize() {\n return \"size: \" + movieData.size();\n }",
"public int GetSize() {\n\t\tif(this.V == 0) {\n\t\t\t\n\t\t\t// Read from settings file\n\t\t\ttry {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"settings.txt\"));\n\t\t\t\tString line;\n\t\t\t\tif((line = br.readLine()) != null) {\n\t\t\t\t\tthis.V = Integer.parseInt(line.split(\" \")[1]);\n\t\t\t\t}\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn this.V;\n\t}",
"public int getVideoWidth(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn 0;\r\n \t\treturn mediaplayer.getVideoWidth();\r\n \t}",
"public int getFrameByteCount() {\n return mMetaData[0] * mMetaData[1] * 4;\n }",
"@Override\n\t\tpublic int getVideoHeight() {\n\t\t\tif (mServicePlayerEngine != null) {\n\t\t\t\treturn mServicePlayerEngine.getVideoHeight();\n\t\t\t}\n\t\t\treturn 0;\n\t\t}",
"public String getVmSize() {\n return vmSize;\n }",
"public int getOverrodeVideoDuration() {\n return this.mMaxVideoDurationInMs;\n }",
"public int getVideoHeight(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn 0;\r\n \t\treturn mediaplayer.getVideoHeight();\r\n \t}",
"public static int size_quality() {\n return (16 / 8);\n }",
"@Schema(example = \"2186\", description = \"Size of the image in bytes.\")\n public Long getSize() {\n return size;\n }",
"@Override\n\tpublic int getMoviePlayLength(int movieID) {\n\t\treturn moviePlayLength;\n\t}",
"public long getSize() {\n\t\treturn this.payloadSize; // UTF-16 => 2 bytes per character\n\t}",
"public Long sizeInKB() {\n return this.sizeInKB;\n }",
"public String getSize() {\n return size;\n }",
"public String getSize() {\n return size;\n }",
"public static byte getSize() {\n return SIZE;\n }",
"public int getVicarPixelSize() {\n\t\treturn vicarPixelSize;\n\t}",
"public static int size_length() {\n return (8 / 8);\n }",
"public int getFrameLength() {\n return frameLength;\n }",
"public int size() {\n return 4 + value.length + BufferUtil.paddingLength(value.length, 4);\n }",
"public String getSize() {\r\n return size;\r\n }",
"public float getSize() {\n return bufSize;\n }",
"public Size getPreviewSize() {\n String pair = get(\"preview-size\");\n if (pair == null)\n return null;\n String[] dims = pair.split(\"x\");\n if (dims.length != 2)\n return null;\n\n return new Size(Integer.parseInt(dims[0]),\n Integer.parseInt(dims[1]));\n\n }",
"public int getAmountOfVideosThatWillBeSaved(){\n\t\treturn (int) (Math.ceil((videoLength/videoIterationLength)));\n\t}",
"public VideoQuality getVideoQuality() {\n\t\treturn mQuality;\n\t}",
"public int encodedSize(BackendService adVar) {\n return adVar.unknownFields().mo132944h();\n }",
"public long getSize() {\n long size = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n size += encoder.size();\n }\n }\n \n return size;\n }",
"public int getDecodedStreamLength() {\n/* 567 */ return this.stream.getInt(COSName.DL);\n/* */ }",
"public static native int freenect_get_video_buffer_size(Pointer<libfreenectLibrary.freenect_device > dev);",
"public int sizeInBytes() {\n\t\treturn this.actualsizeinwords * 8;\n\t}",
"public int getFrameSize();",
"public int getRealSegmentSizeInBytes(int bitrate) {\n return (int) (bitrate * REAL_SEGMENT_DURATION / 8);\n }",
"public static int totalSize_data() {\n return (480 / 8);\n }",
"public Size getSize() {\n return size;\n }",
"public long getFileSize(){\n\t return new File(outputFileName).length();\n }",
"public long getSize() {\n\t\treturn size;\n\t}",
"public int getEncodedSize() {\n return encoded.length;\n }",
"public long getSize()\n {\n return getLong(\"Size\");\n }",
"public long getSize() {\n return size;\n }",
"public long getSize() {\n return size;\n }",
"public long getSize() {\n return size;\n }",
"public long getSize() {\n return size;\n }",
"public long getSize() {\r\n\t\treturn size;\r\n\t}",
"public int getDecodedStreamLength()\n {\n return this.stream.getInt(COSName.DL);\n }",
"public long getSize() {\n return size;\n }",
"public float getPixelSize() {\n\n\t\tfloat pixelSize = 0;\n\t\tfloat zoom = getFloat(ADACDictionary.ZOOM);\n\n\t\t// Get calibration factor (CALB)\n\t\tString calString = extrasMap.get(ExtrasKvp.CALIB_KEY);\n\n\t\t// Some wholebody images have height > width. Typically 1024x512.\n\t\t// Crocodile eats the biggest.\n\t\tshort height = getHeight();\n\t\tshort width = getWidth();\n\t\tshort dim = height > width ? height : width;\n\n\t\tif (dim > 0 && calString != null) {\n\n\t\t\ttry {\n\n\t\t\t\tfloat cal = Float.parseFloat(calString);\n\n\t\t\t\t// Now calculate the pixel size\n\t\t\t\tpixelSize = (1024 * cal) / (dim * zoom);\n\n\t\t\t} catch (NumberFormatException e) {\n\n\t\t\t\tlogger.log(\"Unable to parse calibration factor\");\n\t\t\t\tpixelSize = getRoughPixelSize();\n\n\t\t\t}\n\t\t} else {\n\t\t\tpixelSize = getRoughPixelSize();\n\t\t}\n\n\t\treturn pixelSize;\n\n\t}",
"public int getLength() {\n return mySize.getLength();\n }",
"public long getSize() {\r\n return size;\r\n }",
"public MediaSize getMediaSizeDefault() {\n\t\tMediaSize retValue = Language.getLoginLanguage().getMediaSize();\n\t\tif (retValue == null)\n\t\t\tretValue = MediaSize.ISO.A4;\n\t\tlog.fine(retValue.toString());\n\t\treturn retValue;\n\t}",
"public int getPlayLength()\n\t{\n\t\treturn playbackLength;\n\t}",
"public int getVideoDscp();",
"@ApiModelProperty(example = \"3615\", value = \"Numeric value in bytes\")\n /**\n * Numeric value in bytes\n *\n * @return size Integer\n */\n public Integer getSize() {\n return size;\n }",
"public final com.francetelecom.admindm.model.Parameter getParamSize() {\n\t\treturn paramSize;\n\t}",
"@JsonIgnore public String getServingSize() {\n return (String) getValue(\"servingSize\");\n }",
"@Override\n public final synchronized TerminalSize getTerminalSize() throws IOException {\n TerminalSize size = findTerminalSize();\n onResized(size);\n return size;\n }",
"private static int getBufferSize() {\n\t\tint result = -1;\n\n\t\t// see if the system property is set\n\t\tString property = System.getProperty(BUFFER_SIZE_PROPERTY);\n\t\tif (property != null && !property.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tresult = Integer.parseInt(property);\n\t\t\t}\n\t\t\tcatch (NumberFormatException e) {\n\t\t\t\tLOGGER.log(Level.WARNING, \"invalid buffer size: \" + property);\n\t\t\t}\n\t\t}\n\n\t\t// overrule negative or unspecified values with a 4 MB buffer (yes, I know that's a lot, but we want\n\t\t// quality output, right?)\n\t\tif (result < 0) {\n\t\t\tresult = 4 * 1024 * 1024;\n\t\t}\n\n\t\treturn result;\n\t}",
"public final int mo98357e() {\n if (this.f102325a) {\n return mo98355c();\n }\n return this.f102568b.videoWidth();\n }",
"public long estimateSize() {\n/* 1448 */ return this.est;\n/* */ }",
"private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}",
"public int getSizeBytes() {\n if (getDataType() == DataType.SEQUENCE)\n return getDataType().getSize();\n else if (getDataType() == DataType.STRING)\n return getDataType().getSize();\n else if (getDataType() == DataType.STRUCTURE)\n return size * members.getStructureSize();\n // else if (this.isVariableLength())\n // return 0; // do not know\n else\n return size * getDataType().getSize();\n }",
"public final long getSize() { return size; }",
"public int length()\n\t{\n\t\tif ( properties != null && properties.containsKey(\"ogg.length.bytes\") )\n\t\t{\n\t\t\tlengthInMillis = VobisBytes2Millis((Integer)properties.get(\"ogg.length.bytes\"));\n\t\t\tSystem.out.println(\"GOT LENGTH: \"+lengthInMillis);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlengthInMillis = -1;\n\t\t}\n\t\treturn (int)lengthInMillis;\n\t}",
"public int encodedSize(ZABEMobileNetwork jVar) {\n return jVar.unknownFields().mo132944h();\n }",
"@Override\r\n public void getVideoSize(Point outSize)\r\n {\r\n outSize.set(videoSize.x, videoSize.y);\r\n }",
"public Long getVolumeSizeInBytes() {\n return this.volumeSizeInBytes;\n }",
"public long getSize() {\n return mSize;\n }",
"public float getSize() {\n return size;\n }",
"public void determineFileSize() {\n \t//Creating scanner object\n \tScanner scan = new Scanner(System.in);\n \tSystem.out.println(\"Please enter the path of the file you'd like to determint the size of\");\n \t\n \t//Capturing file path as filePath variable\n \tString filePath = scan.next();\n \t//using Java Nio\n \tPath path = Paths.get(filePath);\n\t\t\n \ttry {\n\t\t\tLong fileSize = Files.size(path);\n\t\t\tSystem.out.println(String.format(\"%s, bytes\", fileSize));\n\t\t\tSystem.out.println(String.format(\"%s, kilobytes\", fileSize/1024));\n\n\t\t\t\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \tscan.close();\n \t\n }",
"static Dimension frameSize(String env) {\n\t\tString s = System.getProperty(env, \"0\");\n\t\tint x = s.indexOf('x'), high = 600;\n\n\t\tif (x >= 0) {\n\t\t\thigh = Integer.parseInt(s.substring(x + 1));\n\t\t\ts = s.substring(0, x);\n\t\t}\n\t\treturn new Dimension(Integer.parseInt(s), high);\n\t}",
"public double getOutputSizeInBytes()\n {\n return totalSize;\n }",
"public static int getSIZE() {\n return SIZE;\n }",
"public Integer getFileSize(Long key) {\n File file = new File(MUSIC_FILE_PATH + File.separator + key + \".mp3\");\n return (int)file.length();\n }",
"public float getSize() {\n\t\treturn size;\n\t}",
"public long getSize() {\n return size.get();\n }",
"public int getSize() {\n\t\treturn width + length;\n\t}",
"public int getWindowsSize() {\n return this.SVBEngine.getWindowsSize();\n }",
"int getServerPayloadSizeBytes();",
"public String getEngineSize() {\r\n return ENGINE_SIZE[engineSize]; }",
"int getCurrentSize();",
"public int getResultSize() {\r\n return getAttributeAsInt(\"resultSize\");\r\n }",
"public float getSize()\n {\n return size;\n }",
"public long size() {\n return this.filePage.getSizeInfile();\n }",
"public double getFrameWidth() { return isRSS()? getFrame().width : getWidth(); }",
"public static int resHeight() {\n\t\t\n\t\treturn (int)resolution.getHeight();\n\t}",
"String getPreviewSizePref();",
"public static int size_estLength() {\n return (8 / 8);\n }",
"public int getUploadBandwidth();",
"public int getDesiredSize()\n\t{\n\t\treturn desiredSize;\n\t}",
"public Integer getVolumeSize() {\n return this.volumeSize;\n }",
"public long getSize();",
"public final int getSize() {\n return size;\n }",
"public double getFrameHeight() { return isRSS()? getFrame().height : getHeight(); }",
"public static int getLocalVideoDuration(String videoPath) {\n int duration;\n try {\n MediaMetadataRetriever mmr = new MediaMetadataRetriever();\n mmr.setDataSource(videoPath);\n duration = Integer.parseInt(mmr.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION));\n } catch (Exception e) {\n e.printStackTrace();\n return 0;\n }\n return duration;\n }",
"short getPaperSize();"
] | [
"0.73474646",
"0.7305607",
"0.7065796",
"0.68892884",
"0.6767713",
"0.6689852",
"0.65930015",
"0.6499203",
"0.6374994",
"0.63712627",
"0.632363",
"0.6242987",
"0.6199378",
"0.6175237",
"0.61409646",
"0.60747766",
"0.6010726",
"0.5996573",
"0.596738",
"0.5961663",
"0.5961663",
"0.5954343",
"0.59435904",
"0.5940765",
"0.5931988",
"0.59315306",
"0.59180576",
"0.59175766",
"0.5889311",
"0.5877101",
"0.5864127",
"0.58561796",
"0.58551544",
"0.5849743",
"0.58095974",
"0.5805573",
"0.58045954",
"0.5790386",
"0.5789686",
"0.5778991",
"0.5778006",
"0.5774591",
"0.5766175",
"0.57658726",
"0.5764011",
"0.5764011",
"0.5764011",
"0.5764011",
"0.5762679",
"0.5756975",
"0.5754136",
"0.5732044",
"0.5727227",
"0.5725007",
"0.57219803",
"0.5718908",
"0.5701611",
"0.56992424",
"0.56884617",
"0.5684593",
"0.56697893",
"0.5664894",
"0.56633127",
"0.5659947",
"0.5654218",
"0.5650184",
"0.56493264",
"0.5647793",
"0.5646184",
"0.56458",
"0.5645653",
"0.564529",
"0.564001",
"0.56377494",
"0.56315804",
"0.5629538",
"0.56292427",
"0.5625599",
"0.56237537",
"0.56206566",
"0.56197274",
"0.561239",
"0.5611594",
"0.5610569",
"0.56065035",
"0.5605295",
"0.56029046",
"0.5601647",
"0.5598523",
"0.55982137",
"0.55938214",
"0.55900234",
"0.55885935",
"0.5584718",
"0.5575957",
"0.5569388",
"0.5567812",
"0.55668855",
"0.55595815",
"0.55581254"
] | 0.7679621 | 0 |
Sets the video size for the encoding process. If null or not specified the source video size will not be modified. | public void setSize(VideoSize size) {
this.size = size;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void setRecorderVideoSize(Size size){\n\t}",
"@Deprecated\n public void setPreviewVideoSizeByName(String name);",
"@Override\r\n public void getVideoSize(Point outSize)\r\n {\r\n outSize.set(videoSize.x, videoSize.y);\r\n }",
"@Override\n\t\t\tpublic void onVideoSizeChanged(MediaPlayer mp, int width, int height) {\n\t\t\t\tLog.d(TAG, \"onVideoSizeChanged called \" + width + \":\" + height);\n\t\t\t\tif (width == 0 || height == 0) {\n\t\t Log.e(TAG, \"invalid video width(\" + width + \") or height(\" + height + \")\");\n\t\t return;\n\t\t }\n\t\t mVideoWidth = width;\n\t\t mVideoHeight = height;\n\t\t playMedia(true);\n\t\t\t}",
"default void onVideoSizeChanged(int oldWidth, int oldHeight, int width, int height) {\n }",
"private void setDimension() {\n float videoProportion = getVideoProportion();\n int screenWidth = getResources().getDisplayMetrics().widthPixels;\n int screenHeight = getResources().getDisplayMetrics().heightPixels;\n float screenProportion = (float) screenHeight / (float) screenWidth;\n ViewGroup.LayoutParams lp = mVideoPlayer.getLayoutParams();\n\n if (videoProportion < screenProportion) {\n lp.height = screenHeight;\n lp.width = (int) ((float) screenHeight / videoProportion);\n } else {\n lp.width = screenWidth;\n lp.height = (int) ((float) screenWidth * videoProportion);\n }\n mVideoPlayer.setLayoutParams(lp);\n }",
"public void setSize(@Nullable String size) {\n this.size = size;\n }",
"public void setSize(int _size)\r\n {\r\n size = _size;\r\n }",
"@Override\n\t\t\tpublic void onVideoSizeChanged(MediaPlayer mp, int width,\n\t\t\t\t\tint height) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onVideoSizeChanged(MediaPlayer mp, int width,\n\t\t\t\t\tint height) {\n\t\t\t\t\n\t\t\t}",
"@Deprecated\n public void setPreferredVideoSizeByName(String name);",
"public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }",
"@Override\n public void onVideoSizeChanged(MediaPlayer mp, int width, int height) {\n adjustSize(mVideoView, width, height, DisplayType.CENTER_INSIDE);\n //adjustSize(mVideoView, width, height, DisplayType.CENTER_CROP);\n //adjustSize(mVideoView, width, height, DisplayType.CENTER);\n //adjustSize(mVideoView, width, height, DisplayType.FIT_XY);\n }",
"public void setSize(RMSize aSize) { setSize(aSize.width, aSize.height); }",
"public void setSize(PlayerSize size) {\n if (size == this.size) {\n return; // Return, already sized like that\n }\n\n PlayerSize oldSize = this.size;\n this.size = size;\n\n updateSizeSafely(getView());\n\n if (mListener != null) {\n mListener.onPlayerSizeChanged(size, oldSize);\n }\n }",
"public void setFrameSize();",
"public void setSize(int size) {\r\n _size = size;\r\n }",
"public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}",
"public void setSize(String size) {\n this.size = size;\n }",
"@Override\n public void onVideoSizeChanged(MediaPlayer player, int width, int height) {\n \n }",
"public void setSize(String size) {\r\n this.size = size == null ? null : size.trim();\r\n }",
"@Override\n\tpublic void setMoviePlayLength(int moviePlayLength) {\n\t\tthis.moviePlayLength = moviePlayLength;\n\t}",
"public void setSize(int size) {\r\n this.size = size;\r\n }",
"public void setSize(int size){\n this.size = size;\n }",
"public void setLocalSize(int size);",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setSize(int size) {\n\t\t _size = size;\n\t}",
"private void setFrameSize(int width, int height){\r\n\t\tthis.framewidth=width;\r\n\t\tthis.frameheight=height;\r\n\t}",
"public void setPixelSize(String pixelSize) {\n\t\tif (pixelSize != null && !pixelSize.isEmpty()) {\n\t\t\tint parsedSize = Integer.parseInt(pixelSize);\n\n\t\t\tif (parsedSize > 0 && parsedSize <= MAX_PIXEL_SIZE) {\n\t\t\t\tthis.pixelSize = parsedSize;\n\t\t\t}\n\t\t}\n\t}",
"public void setVmSize(String vmSize) {\n this.vmSize = vmSize;\n }",
"private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}",
"@NonNull\n public VideoSize getVideoSize() {\n throw new UnsupportedOperationException(\"getVideoSize is not implemented\");\n }",
"public ParametersBuilder setMaxVideoSize(int maxVideoWidth, int maxVideoHeight) {\n this.maxVideoWidth = maxVideoWidth;\n this.maxVideoHeight = maxVideoHeight;\n return this;\n }",
"public void setSize(long value) {\n this.size = value;\n }",
"@Override\r\n public void setListener(NexVideoRenderer.IListener listener) {\r\n this.videoSizeListener = listener;\r\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(TSizeInBytes size) {\n\n\t\tthis.size = size;\n\t}",
"public void setProcedureSize(ParseTree node, int size) {\n\t\tthis.procedureDataSize.put(node, size);\n\t}",
"private void showVideoSizeOptionDialog() {\n\t\t// TODO Auto-generated method stub\n\t\tCharSequence title = res.getString(R.string.stream_set_res_vid);\n\n\t\tfinal String[] videoSizeUIString = uiDisplayResource.getVideoSize();\n\t\tif (videoSizeUIString == null) {\n\t\t\tWriteLogToDevice.writeLog(\"[Error] -- SettingView: \",\n\t\t\t\t\t\"videoSizeUIString == null\");\n\t\t\tpreviewHandler\n\t\t\t\t\t.obtainMessage(GlobalApp.MESSAGE_UPDATE_UI_VIDEO_SIZE)\n\t\t\t\t\t.sendToTarget();\n\t\t\treturn;\n\t\t}\n\t\tint length = videoSizeUIString.length;\n\n\t\tint curIdx = 0;\n\t\tUIInfo uiInfo = reflection.refecltFromSDKToUI(\n\t\t\t\tSDKReflectToUI.SETTING_UI_VIDEO_SIZE,\n\t\t\t\tcameraProperties.getCurrentVideoSize());\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (videoSizeUIString[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\tfinal String value = (String) reflection.refecltFromUItoSDK(\n\t\t\t\t\t\tUIReflectToSDK.SETTING_SDK_VIDEO_SIZE,\n\t\t\t\t\t\tvideoSizeUIString[arg1]);\n\t\t\t\targ0.dismiss();\n\t\t\t\tif (value.equals(\"2704x1524 15\")\n\t\t\t\t\t\t|| value.equals(\"3840x2160 10\")) {\n\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(\n\t\t\t\t\t\t\tcontext);\n\t\t\t\t\tbuilder.setMessage(R.string.not_support_preview);\n\t\t\t\t\tbuilder.setNegativeButton(R.string.setting_no,\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\tpreviewHandler\n\t\t\t\t\t\t\t\t\t\t\t.obtainMessage(\n\t\t\t\t\t\t\t\t\t\t\t\t\tGlobalApp.MESSAGE_UPDATE_UI_VIDEO_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t.sendToTarget();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\tbuilder.setPositiveButton(R.string.setting_yes,\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\tcameraProperties.setVideoSize(value);\n\t\t\t\t\t\t\t\t\tpreviewHandler\n\t\t\t\t\t\t\t\t\t\t\t.obtainMessage(\n\t\t\t\t\t\t\t\t\t\t\t\t\tGlobalApp.MESSAGE_UPDATE_UI_VIDEO_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t.sendToTarget();\n\t\t\t\t\t\t\t\t\tsettingValueList = getSettingValue();\n\t\t\t\t\t\t\t\t\tif (optionListAdapter == null) {\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\toptionListAdapter.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\tbuilder.create().show();\n\t\t\t\t} else {\n\t\t\t\t\tcameraProperties.setVideoSize(value);\n\t\t\t\t\tpreviewHandler.obtainMessage(\n\t\t\t\t\t\t\tGlobalApp.MESSAGE_UPDATE_UI_VIDEO_SIZE)\n\t\t\t\t\t\t\t.sendToTarget();\n\t\t\t\t\tsettingValueList = getSettingValue();\n\t\t\t\t\tif (optionListAdapter == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\toptionListAdapter.notifyDataSetChanged();\n\t\t\t\t}\n\t\t\t\t/**/\n\t\t\t}\n\t\t};\n\t\tshowOptionDialog(title, videoSizeUIString, curIdx, listener, false);\n\t}",
"public com.autodesk.ws.avro.Call.Builder setObjectSize(java.lang.Long value) {\n validate(fields()[6], value);\n this.object_size = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"public void setSize(Integer size) {\n this.size = size;\n }",
"public void setSize(int size) {\n this.size = size;\n }",
"VideoSize getSize() {\n return size;\n }",
"public void setSize(Vector2ic size){\n glfwSetWindowSize(handle, size.x(), size.y());\n this.size.set(size);\n sizeMultiplexer.handle(new WindowSizeEvent(handle, size.x(), size.y()));\n }",
"public void setVicarPixelSize(int size) {\n\t\tvicarPixelSize = size;\n\t}",
"@Element \n public void setSize(String size) {\n this.size = size;\n }",
"@Override\r\n\tpublic void onVideoSizeChanged(MediaPlayer mp, int width, int height) {\n\t\tLog.v(LOGTAG, \"onVideoSizeChanged Called\");\r\n\t}",
"public void setQuality(int value)\n\t{\n\t\tconfigManager.setQuality(value);\n\t\tupdatePreviewSize();\n\t}",
"public void updateParametersPictureSize() {\n if (this.mCameraDevice == null) {\n Log.w(TAG, \"attempting to set picture size without camera device\");\n return;\n }\n String pictureSizeKey;\n this.mCameraSettings.setSizesLocked(false);\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n if (isCameraFrontFacing()) {\n pictureSizeKey = Keys.KEY_PICTURE_SIZE_FRONT;\n } else {\n pictureSizeKey = Keys.KEY_PICTURE_SIZE_BACK;\n }\n String pictureSize = settingsManager.getString(SettingsManager.SCOPE_GLOBAL, pictureSizeKey, SettingsUtil.getDefaultPictureSize(isCameraFrontFacing()));\n Size size = new Size(960, MotionPictureHelper.FRAME_HEIGHT_9);\n if (isDepthEnabled()) {\n size = SettingsUtil.getBokehPhotoSize(this.mActivity, pictureSize);\n } else {\n size = SettingsUtil.sizeFromString(pictureSize);\n }\n this.mCameraSettings.setPhotoSize(size);\n if (ApiHelper.IS_NEXUS_5) {\n if (ResolutionUtil.NEXUS_5_LARGE_16_BY_9.equals(pictureSize)) {\n this.mShouldResizeTo16x9 = true;\n } else {\n this.mShouldResizeTo16x9 = false;\n }\n }\n if (size != null) {\n Size optimalSize;\n Tag tag;\n Size optimalSize2 = CameraUtil.getOptimalPreviewSize(this.mActivity, this.mCameraCapabilities.getSupportedPreviewSizes(), ((double) size.width()) / ((double) size.height()));\n Size original = this.mCameraSettings.getCurrentPreviewSize();\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Photo module Set preview size \");\n stringBuilder.append(size);\n stringBuilder.append(\" calculate size \");\n stringBuilder.append(optimalSize2);\n stringBuilder.append(\" original size \");\n stringBuilder.append(original);\n android.util.Log.e(\"===++++++=====\", stringBuilder.toString());\n if (isDepthEnabled()) {\n optimalSize = SettingsUtil.getBokehPreviewSize(pictureSize, false);\n } else {\n if ((size.width() == 4160 && size.height() == 1970) || (size.width() == 3264 && size.height() == 1546)) {\n optimalSize2 = new Size(1440, MotionPictureHelper.FRAME_HEIGHT_9);\n }\n optimalSize = optimalSize2;\n this.mActivity.getCameraAppUI().setSurfaceHeight(optimalSize.height());\n this.mActivity.getCameraAppUI().setSurfaceWidth(optimalSize.width());\n }\n this.mUI.setCaptureSize(optimalSize);\n Log.w(TAG, String.format(\"KPI original size is %s, optimal size is %s\", new Object[]{original.toString(), optimalSize.toString()}));\n if (!optimalSize.equals(original)) {\n tag = TAG;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"setting preview size. optimal: \");\n stringBuilder2.append(optimalSize);\n stringBuilder2.append(\"original: \");\n stringBuilder2.append(original);\n Log.v(tag, stringBuilder2.toString());\n this.mCameraSettings.setPreviewSize(optimalSize);\n this.mCameraDevice.applySettings(this.mCameraSettings);\n this.mCameraSettings = this.mCameraDevice.getSettings();\n if (this.mCameraSettings == null) {\n Log.e(TAG, \"camera setting is null ?\");\n }\n }\n if (!(optimalSize.width() == 0 || optimalSize.height() == 0)) {\n Log.v(TAG, \"updating aspect ratio\");\n this.mUI.updatePreviewAspectRatio(((float) optimalSize.width()) / ((float) optimalSize.height()));\n }\n this.mCameraSettings.setSizesLocked(true);\n tag = TAG;\n StringBuilder stringBuilder3 = new StringBuilder();\n stringBuilder3.append(\"Preview size is \");\n stringBuilder3.append(optimalSize);\n Log.d(tag, stringBuilder3.toString());\n }\n }",
"public void setSize(double size) \n {\n this.size = size;\n }",
"public void setSize(int value) {\n\t\tthis.size = value;\n\t}",
"public void setSize(int size) {\n\tthis.sizeNumber = sizeNumber;\r\n}",
"public void setVideoPort(int port);",
"protected void setMaxSize(int size) {\n maxSize = size;\n }",
"public void setSizeV(long s){\n\t\tthis.sizeV = s;\n\t}",
"public void setPreviewSize(int width, int height) {\n String v = Integer.toString(width) + \"x\" + Integer.toString(height);\n set(\"preview-size\", v);\n }",
"private void setSize(int s){\n\t\tsize = s;\n\t}",
"public void setFramingRectSize(Size framingRectSize) {\n this.framingRectSize = framingRectSize;\n }",
"public void setSize(int size);",
"public ParametersBuilder setMaxVideoBitrate(int maxVideoBitrate) {\n this.maxVideoBitrate = maxVideoBitrate;\n return this;\n }",
"public void set_size(int s);",
"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 setCameraPreviewSize(int width, int height) {\n Log.d(TAG, \"setCameraPreviewSize\");\n mIncomingWidth = width;\n mIncomingHeight = height;\n mIncomingSizeUpdated = true;\n }",
"public void setEncoderMaxLineLength(int encoderMaxLineLength) {\n this.encoderMaxLineLength = encoderMaxLineLength;\n }",
"public void setImageSizeParameter(ImageSizeParameter imageSizeParameter) {\n this.imageSizeParameter = imageSizeParameter;\n }",
"public Builder setWindowSize(long value) {\n \n windowSize_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void setAEBufferSize(int size) {\n if (size < 1000 || size > 1000000) {\n log.warning(\"ignoring unreasonable aeBufferSize of \" + size + \", choose a more reasonable size between 1000 and 1000000\");\n return;\n }\n this.aeBufferSize = size;\n prefs.putInt(\"CypressFX2.aeBufferSize\", aeBufferSize);\n }",
"@Override\n\tpublic void setBufferSize(int size) {\n\t}",
"public void setSrcCompanySize(String value) {\r\n setAttributeInternal(SRCCOMPANYSIZE, value);\r\n }",
"void setPaperSize(short size);",
"private void setMediaAssetScaleType(com.whensunset.wsvideoeditorsdk.model.MediaAssetScaleType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n mediaAssetScaleType_ = value.getNumber();\n }",
"public SynapseNotebookActivity setDriverSize(Object driverSize) {\n this.driverSize = driverSize;\n return this;\n }",
"@Test\n public void setFrameSize_4() {\n final int FRAME_SIZE = 4;\n AudioConfigManager.setFrameSize(FRAME_SIZE);\n assertEquals(AudioFormatConfig.frameSize, FRAME_SIZE);\n }",
"public void setSize(int newSize);",
"public void setSize(int newSize);",
"public Builder setMaxUploadSizeInBytes(long value) {\n \n maxUploadSizeInBytes_ = value;\n onChanged();\n return this;\n }",
"public void setWindowSize(int window_size) {\n this.window_size = window_size;\n }",
"public void setBestSize() { setSize(getBestWidth(), getBestHeight()); }",
"public void setSizeId(String sizeId) {\n this.sizeId = sizeId == null ? null : sizeId.trim();\n }",
"public ChangeVideoSizeResponse changeVideoSizeAdvance(ChangeVideoSizeAdvanceRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {\n String accessKeyId = _credential.getAccessKeyId();\n String accessKeySecret = _credential.getAccessKeySecret();\n String openPlatformEndpoint = _openPlatformEndpoint;\n if (com.aliyun.teautil.Common.isUnset(openPlatformEndpoint)) {\n openPlatformEndpoint = \"openplatform.aliyuncs.com\";\n }\n\n com.aliyun.tearpc.models.Config authConfig = com.aliyun.tearpc.models.Config.build(TeaConverter.buildMap(\n new TeaPair(\"accessKeyId\", accessKeyId),\n new TeaPair(\"accessKeySecret\", accessKeySecret),\n new TeaPair(\"type\", \"access_key\"),\n new TeaPair(\"endpoint\", openPlatformEndpoint),\n new TeaPair(\"protocol\", _protocol),\n new TeaPair(\"regionId\", _regionId)\n ));\n com.aliyun.openplatform20191219.Client authClient = new com.aliyun.openplatform20191219.Client(authConfig);\n AuthorizeFileUploadRequest authRequest = AuthorizeFileUploadRequest.build(TeaConverter.buildMap(\n new TeaPair(\"product\", \"videoenhan\"),\n new TeaPair(\"regionId\", _regionId)\n ));\n AuthorizeFileUploadResponse authResponse = new AuthorizeFileUploadResponse();\n com.aliyun.oss.models.Config ossConfig = com.aliyun.oss.models.Config.build(TeaConverter.buildMap(\n new TeaPair(\"accessKeySecret\", accessKeySecret),\n new TeaPair(\"type\", \"access_key\"),\n new TeaPair(\"protocol\", _protocol),\n new TeaPair(\"regionId\", _regionId)\n ));\n com.aliyun.oss.Client ossClient = null;\n FileField fileObj = new FileField();\n PostObjectRequest.PostObjectRequestHeader ossHeader = new PostObjectRequest.PostObjectRequestHeader();\n PostObjectRequest uploadRequest = new PostObjectRequest();\n com.aliyun.ossutil.models.RuntimeOptions ossRuntime = new com.aliyun.ossutil.models.RuntimeOptions();\n com.aliyun.openapiutil.Client.convert(runtime, ossRuntime);\n ChangeVideoSizeRequest changeVideoSizeReq = new ChangeVideoSizeRequest();\n com.aliyun.openapiutil.Client.convert(request, changeVideoSizeReq);\n authResponse = authClient.authorizeFileUploadWithOptions(authRequest, runtime);\n ossConfig.accessKeyId = authResponse.accessKeyId;\n ossConfig.endpoint = com.aliyun.openapiutil.Client.getEndpoint(authResponse.endpoint, authResponse.useAccelerate, _endpointType);\n ossClient = new com.aliyun.oss.Client(ossConfig);\n fileObj = FileField.build(TeaConverter.buildMap(\n new TeaPair(\"filename\", authResponse.objectKey),\n new TeaPair(\"content\", request.videoUrlObject),\n new TeaPair(\"contentType\", \"\")\n ));\n ossHeader = PostObjectRequest.PostObjectRequestHeader.build(TeaConverter.buildMap(\n new TeaPair(\"accessKeyId\", authResponse.accessKeyId),\n new TeaPair(\"policy\", authResponse.encodedPolicy),\n new TeaPair(\"signature\", authResponse.signature),\n new TeaPair(\"key\", authResponse.objectKey),\n new TeaPair(\"file\", fileObj),\n new TeaPair(\"successActionStatus\", \"201\")\n ));\n uploadRequest = PostObjectRequest.build(TeaConverter.buildMap(\n new TeaPair(\"bucketName\", authResponse.bucket),\n new TeaPair(\"header\", ossHeader)\n ));\n ossClient.postObject(uploadRequest, ossRuntime);\n changeVideoSizeReq.videoUrl = \"http://\" + authResponse.bucket + \".\" + authResponse.endpoint + \"/\" + authResponse.objectKey + \"\";\n ChangeVideoSizeResponse changeVideoSizeResp = this.changeVideoSizeWithOptions(changeVideoSizeReq, runtime);\n return changeVideoSizeResp;\n }",
"public void setSize(float width, float height);",
"void setSize(float w, float h) {\n _w = w;\n _h = h;\n }",
"@Override\n\tpublic void setResolution(Dimension size) {\n\n\t}",
"public ParametersBuilder setMaxVideoFrameRate(int maxVideoFrameRate) {\n this.maxVideoFrameRate = maxVideoFrameRate;\n return this;\n }",
"public void setPackageSize(int size){\r\n }",
"public void setPacketSize(BigInteger packetSize) {\n\t\tthis.packetSize = packetSize;\n\t}",
"public void setBufferSize(int size) {\n this.response.setBufferSize(size);\n }",
"public static void setSizeOfQueue(Label sizeOfQueueValue) {\n \tsizeOfQueueValue.setText(String.valueOf(Capture.getInspectionQueue().size()));\n }",
"public void setDecoderMaxLineLength(int decoderMaxLineLength) {\n this.decoderMaxLineLength = decoderMaxLineLength;\n }",
"private void resizeBuffer(int size) {\n if (size > m_maxImgBufferSize) {\n if (size > MAX_IMG_SIZE_BYTES) {\n size = MAX_IMG_SIZE_BYTES;\n }\n\n m_maxImgBufferSize = size + 100;\n m_imgBuffer = new byte[m_maxImgBufferSize];\n m_baistream = new ByteArrayInputStream(m_imgBuffer);\n }\n }",
"public FileObject size(Integer size) {\n this.size = size;\n return this;\n }",
"public void setSizeInBits(final int size) {\n\t\tthis.sizeinbits = size;\n\t}",
"public void setSizeId(Integer sizeId) {\n this.sizeId = sizeId;\n }",
"public void setSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setSize( size.x, size.y );\n }",
"public void setSurfaceSize(int width, int height) {\n // synchronized to make sure these all change atomically\n synchronized (surfaceHolder) {\n canvasWidth = width;\n canvasHeight = height;\n }\n }"
] | [
"0.69453454",
"0.6018137",
"0.59432316",
"0.59191513",
"0.5914775",
"0.58673257",
"0.5854565",
"0.58541995",
"0.58200324",
"0.58200324",
"0.58072066",
"0.57990956",
"0.57471097",
"0.5724543",
"0.5694015",
"0.5682459",
"0.56670624",
"0.56669",
"0.5622992",
"0.5614225",
"0.5595657",
"0.55735624",
"0.5571099",
"0.55688494",
"0.5541995",
"0.55384874",
"0.55384874",
"0.55355126",
"0.5526762",
"0.55266464",
"0.5515129",
"0.5506041",
"0.54934937",
"0.5476599",
"0.5466281",
"0.54568434",
"0.5450152",
"0.5450152",
"0.5450152",
"0.5450152",
"0.54421985",
"0.54089063",
"0.5408188",
"0.54066265",
"0.540317",
"0.5397355",
"0.53738314",
"0.53625035",
"0.5347823",
"0.5343025",
"0.5315134",
"0.53082454",
"0.53044325",
"0.5302207",
"0.5295774",
"0.5290624",
"0.528871",
"0.5284042",
"0.5281032",
"0.52615154",
"0.52491665",
"0.5219972",
"0.5211765",
"0.5203594",
"0.51943135",
"0.51934844",
"0.51934844",
"0.51873976",
"0.5181421",
"0.5179185",
"0.5155951",
"0.5148639",
"0.5140292",
"0.51359105",
"0.51124203",
"0.51025975",
"0.51013047",
"0.5095327",
"0.5095248",
"0.5095248",
"0.5091699",
"0.50851953",
"0.50737095",
"0.50638217",
"0.50435317",
"0.5042781",
"0.50420517",
"0.50396013",
"0.50298",
"0.50213355",
"0.5021189",
"0.5005668",
"0.5002746",
"0.49921757",
"0.49859405",
"0.4985122",
"0.4979664",
"0.49775735",
"0.49730945",
"0.49667966"
] | 0.7621905 | 0 |
The video quality value for the encoding process. If null or not specified the ffmpeg default will be used | public void setQuality(Integer quality) {
this.quality = quality;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public VideoQuality getVideoQuality() {\n\t\treturn mQuality;\n\t}",
"public String initialVideoQuality() {\n int backCameraId = CameraHolder.instance().getBackCameraId();\n String defaultStr = null;\n if (mCameraId == backCameraId) {\n// defaultStr = mContext.getString(R.string.pref_back_video_quality_default);\n defaultStr = SystemProperties.get(BACK_CAMERA_DEFAULT_VIDEO_QUALITY_VALUE,\"\");\n } else {\n// defaultStr = mContext.getString(R.string.pref_front_video_quality_default);\n defaultStr = SystemProperties.get(FRONT_CAMERA_DEFAULT_VIDEO_QUALITY_VALUE,\"\");\n }\n int quality = 0;\n if(defaultStr == null || defaultStr.length() < 1) {\n ArrayList<String> supprotedQuality = getSupportedVideoQuality();\n String[] candidateArray = (mCameraId == backCameraId) ?\n mContext.getResources().getStringArray(R.array.pref_video_quality_entryvalues) :\n mContext.getResources().getStringArray(R.array.pref_front_video_quality_entryvalues);\n\n for(String candidate:candidateArray) {\n if(supprotedQuality.indexOf(candidate) >= 0) {\n defaultStr = candidate;\n break;\n }\n }\n }\n if(defaultStr != null) {\n quality = Integer.valueOf(defaultStr);\n if (CamcorderProfile.hasProfile(mCameraId, quality)) {\n SharedPreferences.Editor editor = ComboPreferences\n .get(mContext).edit();\n editor.putString(KEY_VIDEO_QUALITY, defaultStr);\n editor.apply();\n return defaultStr;\n }\n }\n return Integer.toString(CamcorderProfile.QUALITY_HIGH);\n }",
"public void setQuality(int value) {\n this.quality = value;\n }",
"java.lang.String getQuality();",
"public int getQuality() {\n return quality;\n }",
"public int getQuality() {\n return quality;\n }",
"public int getQuality() {\n return quality;\n }",
"public float getQuality();",
"public void setQuality(float quality);",
"public int getProfileQuality() {\n String videoQualityKey;\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n if (isCameraFrontFacing()) {\n videoQualityKey = Keys.KEY_VIDEO_QUALITY_FRONT;\n } else {\n videoQualityKey = Keys.KEY_VIDEO_QUALITY_BACK;\n }\n int videoQuality = settingsManager.getInteger(SettingsManager.SCOPE_GLOBAL, videoQualityKey).intValue();\n Tag tag = TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Selected video quality for '\");\n stringBuilder.append(videoQuality);\n Log.d(tag, stringBuilder.toString());\n return videoQuality;\n }",
"public static String initialVideoQuality(Context context, int currentCameraId) {\n int backCameraId = CameraHolder.instance().getBackCameraId();\n String defaultStr = null;\n if (currentCameraId == backCameraId) {\n// defaultStr = context.getString(R.string.pref_back_video_quality_default);\n defaultStr = SystemProperties.get(BACK_CAMERA_DEFAULT_VIDEO_QUALITY_VALUE,\"\");\n } else {\n// defaultStr = context.getString(R.string.pref_front_video_quality_default);\n defaultStr = SystemProperties.get(FRONT_CAMERA_DEFAULT_VIDEO_QUALITY_VALUE,\"\");\n }\n int quality = 0;\n if(defaultStr == null || defaultStr.length() < 1) {\n ArrayList<String> supprotedQuality = getSupportedVideoQuality();\n String[] candidateArray = (currentCameraId == backCameraId) ? \n context.getResources().getStringArray(R.array.pref_video_quality_entryvalues):\n context.getResources().getStringArray(R.array.pref_front_video_quality_entryvalues);\n for(String candidate:candidateArray) {\n if(supprotedQuality.indexOf(candidate) >= 0) {\n defaultStr = candidate;\n break;\n }\n }\n }\n\n if(defaultStr != null) {\n quality = Integer.valueOf(defaultStr);\n if (CamcorderProfile.hasProfile(currentCameraId, quality)) {\n SharedPreferences.Editor editor = ComboPreferences\n .get(context).edit();\n editor.putString(KEY_VIDEO_QUALITY, defaultStr);\n editor.apply();\n return defaultStr;\n }\n }\n return Integer.toString(CamcorderProfile.QUALITY_HIGH);\n }",
"public double getQuality() {\n return quality;\n }",
"public void setQuality(int quality) {\n this.quality = quality;\n }",
"public void setQuality(int quality) {\n this.quality = quality;\n }",
"java.lang.String getQualityMax();",
"public java.lang.String getQuality() {\n java.lang.Object ref = quality_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n quality_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getQuality() {\n java.lang.Object ref = quality_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n quality_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Builder setQuality(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00004000;\n quality_ = value;\n onChanged();\n return this;\n }",
"public String getQuality()\n\t{\n\t\treturn quality.getText();\n\t}",
"public com.google.protobuf.ByteString\n getQualityBytes() {\n java.lang.Object ref = quality_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n quality_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public int get_quality() {\n return (int)getUIntBEElement(offsetBits_quality(), 16);\n }",
"public com.google.protobuf.ByteString\n getQualityBytes() {\n java.lang.Object ref = quality_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n quality_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getVideoPreset();",
"public void setQuality(int value)\n\t{\n\t\tconfigManager.setQuality(value);\n\t\tupdatePreviewSize();\n\t}",
"public Builder setQualityBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00004000;\n quality_ = value;\n onChanged();\n return this;\n }",
"public void set_quality(int value) {\n setUIntBEElement(offsetBits_quality(), 16, value);\n }",
"boolean hasQualityMax();",
"public Builder setQualityMax(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00008000;\n qualityMax_ = value;\n onChanged();\n return this;\n }",
"com.google.protobuf.ByteString\n getQualityMaxBytes();",
"public java.lang.String getQualityMax() {\n java.lang.Object ref = qualityMax_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n qualityMax_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getQualityMax() {\n java.lang.Object ref = qualityMax_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n qualityMax_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"com.google.protobuf.ByteString\n getQualityBytes();",
"Quality getQ();",
"int getImageQualityPref();",
"@MavlinkFieldInfo(\n position = 7,\n unitSize = 1,\n description = \"JPEG quality. Values: [1-100].\"\n )\n public final int jpgQuality() {\n return this.jpgQuality;\n }",
"@Test(timeout = 4000)\n public void test050() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoQuality((-5305));\n int int0 = homeEnvironment0.getVideoQuality();\n assertEquals((-5305), int0);\n }",
"public void setCompressionQuality(float quality) {\n if (quality < 0.0F || quality > 1.0F) {\n throw new IllegalArgumentException(\"Quality out-of-bounds!\");\n }\n this.compressionQuality = 256 - (quality * 256);\n }",
"public com.google.protobuf.ByteString\n getQualityMaxBytes() {\n java.lang.Object ref = qualityMax_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n qualityMax_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private void getClosestSupportedQuality(Camera.Parameters parameters) {\n\n\t\t// Resolutions\n\t\tString supportedSizesStr = \"Supported resolutions: \";\n\t\tList<Size> supportedSizes = parameters.getSupportedPreviewSizes();\n\t\tfor (Iterator<Size> it = supportedSizes.iterator(); it.hasNext();) {\n\t\t\tSize size = it.next();\n\t\t\tsupportedSizesStr += size.width+\"x\"+size.height+(it.hasNext()?\", \":\"\");\n\t\t}\n\t\tLog.v(TAG,supportedSizesStr);\n\n\t\t// Frame rates\n\t\tString supportedFrameRatesStr = \"Supported frame rates: \";\n\t\tList<Integer> supportedFrameRates = parameters.getSupportedPreviewFrameRates();\n\t\tfor (Iterator<Integer> it = supportedFrameRates.iterator(); it.hasNext();) {\n\t\t\tsupportedFrameRatesStr += it.next()+\"fps\"+(it.hasNext()?\", \":\"\");\n\t\t}\n\t\t//Log.v(TAG,supportedFrameRatesStr);\n\n\t\tint minDist = Integer.MAX_VALUE, newFps = mQuality.framerate;\n\t\tif (!supportedFrameRates.contains(mQuality.framerate)) {\n\t\t\tfor (Iterator<Integer> it = supportedFrameRates.iterator(); it.hasNext();) {\n\t\t\t\tint fps = it.next();\n\t\t\t\tint dist = Math.abs(fps - mQuality.framerate);\n\t\t\t\tif (dist<minDist) {\n\t\t\t\t\tminDist = dist;\n\t\t\t\t\tnewFps = fps;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLog.v(TAG,\"Frame rate modified: \"+mQuality.framerate+\"->\"+newFps);\n\t\t\t//mQuality.framerate = newFps;\n\t\t}\n\n\t}",
"public Builder setQualityMaxBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00008000;\n qualityMax_ = value;\n onChanged();\n return this;\n }",
"public com.google.protobuf.ByteString\n getQualityMaxBytes() {\n java.lang.Object ref = qualityMax_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n qualityMax_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"boolean hasQuality();",
"boolean hasQuality();",
"private String getQuality()\n {\n \n if(high.isSelected())\n {\n return \"High\";\n }\n else if(medium.isSelected())\n {\n return \"Medium\";\n }\n else if(mild.isSelected())\n {\n return \"Mild\";\n }\n else\n {\n \n return null;\n }\n }",
"float getVideoCaptureRateFactor();",
"public String getHistologicalQuality()\r\n \t{\r\n \t\treturn histologicalQuality;\r\n \t}",
"public boolean hasQualityMax() {\n return ((bitField0_ & 0x00008000) == 0x00008000);\n }",
"public int getQuality()\n {\n int sleeplatencyScore = getSleepLatencyScore();\n int sleepDurationScore = getSleepDurationScore();\n int sleepEfficiencyScore= getSleepEfficiencyScore();\n int sleepDeepsleepRatioScore = getDeepSleepRatioScore();\n int nightTimeWakeScore = getNightTimeAwakeningScore();\n int sum = sleeplatencyScore + sleepDurationScore+ sleepEfficiencyScore+ sleepDeepsleepRatioScore+ nightTimeWakeScore;\n sum = sum *4;\n return sum;\n }",
"public String getVideoCodec() {\n return videoCodec;\n }",
"@SuppressLint(\"DefaultLocale\")\n public void executeFFmpeg() {\n realPatch = FileUtils.getFilePath(TrimmingActivity.this, videoUri);\n scale = videoView.getScale();\n viewWidth = videoView.getWidth();\n viewHeight = videoView.getHeight();\n width = (int)(viewWidth * scale);\n height = (int)(viewHeight * scale);\n positionX = (int) videoView.getRealPositionX();\n positionY = (int) videoView.getRealPositionY();\n videoWidth = videoView.getVideoWidth();\n videoHeight = videoView.getVideoHeight();\n rotate = videoView.getRotate();\n\n start = String.format(\"00:%02d:%02.2f\", trimStartTime, trimEndTime/1000f);\n dur = String.format(\"00:00:%02.2f\", videoDuration/1000f);\n\n // When need crop\n // FIXME\n if(mRatioWidth != 0) {\n // FIXME\n String filterScale = \"setsar=1:1\";\n if(mRatioWidth == 4) {\n filterScale = \"scale=640:480, setsar=1:1\";\n } else if(mRatioWidth == 3) {\n filterScale = \"scale=480:640, setsar=1:1\";\n } else if(mRatioWidth == 1) {\n filterScale = \"scale=640:640, setsar=1:1\";\n }\n\n if(rotate == 0) {\n filter = \"crop=\"+width+\":\"+height+\":\"+positionX+\":\"+positionY+ \", \" + filterScale;\n } else if(rotate == 90) {\n filter = \"crop=\"+height+\":\"+width+\":\"+positionY+\":\"+positionX + \", \" + filterScale;\n } else if(rotate == 180) {\n filter = \"crop=\"+width+\":\"+height+\":\"+(videoWidth - positionX - width)+\":\"+positionY + \", \" + filterScale;\n } else if(rotate == 270) {\n filter = \"crop=\"+height+\":\"+width+\":\"+(videoHeight - positionY - height)+\":\"+positionX + \", \" + filterScale;\n } else {\n filter = \"crop=\"+width+\":\"+height+\":\"+positionX+\":\"+positionY + \", \" + filterScale;\n }\n }\n\n\n String[] commandParams = new String[20];\n commandParams[0] = \"-y\";\n commandParams[1] = \"-i\";\n commandParams[2] = realPatch;\n commandParams[3] = \"-vcodec\";\n commandParams[4] = \"libx264\";\n commandParams[5] = \"-profile:v\";\n commandParams[6] = \"baseline\";\n commandParams[7] = \"-level\";\n commandParams[8] = \"3.1\";\n commandParams[9] = \"-b:v\";\n commandParams[10] = \"1000k\";\n commandParams[11] = \"-ss\";\n commandParams[12] = start;\n commandParams[13] = \"-t\";\n commandParams[14] = dur;\n commandParams[15] = \"-c:a\";\n commandParams[16] = \"copy\";\n commandParams[17] = outputPatch;\n commandParams[18] = \"-vf\";\n commandParams[19] = filter;\n\n try {\n fFmpeg.execute(commandParams, new ExecuteBinaryResponseHandler(){\n @Override\n public void onSuccess(String message) {\n super.onSuccess(message);\n }\n\n @Override\n public void onProgress(String message) {\n Log.e(\"VideoCronProgress\", message);\n }\n\n @Override\n public void onFailure(String message) {\n Log.e(\"VideoCompressor\", message);\n }\n\n @Override\n public void onStart() {\n super.onStart();\n }\n\n @Override\n public void onFinish() {\n super.onFinish();\n Log.e(\"VideoCronProgress\", \"finnished\");\n }\n });\n } catch (FFmpegCommandAlreadyRunningException e) {\n e.printStackTrace();\n }\n\n }",
"public boolean hasQuality() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }",
"public boolean hasQualityMax() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"@Override\n public boolean isProblematicVideoQuality(@NonNull CameraInfoInternal cameraInfo,\n @NonNull Quality quality) {\n if (isHuaweiMate20() || isHuaweiMate20Pro()) {\n return quality == Quality.UHD;\n } else if (isVivoY91i()) {\n // On Y91i, the HD and FHD resolution is problematic with the front camera. The back\n // camera only supports SD resolution.\n return quality == Quality.HD || quality == Quality.FHD;\n } else if (isHuaweiP40Lite()) {\n return cameraInfo.getLensFacing() == LENS_FACING_FRONT\n && (quality == Quality.FHD || quality == Quality.HD);\n }\n return false;\n }",
"public String getVideoDisplayFilter();",
"public static int offset_quality() {\n return (48 / 8);\n }",
"private static void setSettingsFromPreferences(SharedPreferences sharedPref, Context context) {\n boolean hwCodec = sharedPref.getBoolean(context.getString(R.string.pref_hwcodec_key),\n Boolean.valueOf(context.getString(R.string.pref_hwcodec_default)));\n\n QBRTCMediaConfig.setVideoHWAcceleration(hwCodec);\n // Get video resolution from settings.\n int resolutionItem = Integer.parseInt(sharedPref.getString(context.getString(R.string.pref_resolution_key),\n \"0\"));\n Log.e(TAG, \"resolutionItem =: \" + resolutionItem);\n setVideoQuality(resolutionItem);\n\n // Get start bitrate.\n String bitrateTypeDefault = context.getString(R.string.pref_startbitrate_default);\n String bitrateType = sharedPref.getString(\n context.getString(R.string.pref_startbitrate_key), bitrateTypeDefault);\n if (!bitrateType.equals(bitrateTypeDefault)) {\n String bitrateValue = sharedPref.getString(context.getString(R.string.pref_startbitratevalue_key),\n context.getString(R.string.pref_startbitratevalue_default));\n int startBitrate = Integer.parseInt(bitrateValue);\n QBRTCMediaConfig.setVideoStartBitrate(startBitrate);\n }\n\n int videoCodecItem = Integer.parseInt(getPreferenceString(sharedPref, context, R.string.pref_videocodec_key, \"0\"));\n for (QBRTCMediaConfig.VideoCodec codec : QBRTCMediaConfig.VideoCodec.values()) {\n if (codec.ordinal() == videoCodecItem) {\n Log.e(TAG, \"videoCodecItem =: \" + codec.getDescription());\n QBRTCMediaConfig.setVideoCodec(codec);\n break;\n }\n }\n\n String audioCodecDescription = getPreferenceString(sharedPref, context, R.string.pref_audiocodec_key,\n R.string.pref_audiocodec_def);\n QBRTCMediaConfig.AudioCodec audioCodec = QBRTCMediaConfig.AudioCodec.ISAC.getDescription()\n .equals(audioCodecDescription) ?\n QBRTCMediaConfig.AudioCodec.ISAC : QBRTCMediaConfig.AudioCodec.OPUS;\n Log.e(TAG, \"audioCodec =: \" + audioCodec.getDescription());\n QBRTCMediaConfig.setAudioCodec(audioCodec);\n }",
"public String getSrcQualityRating() {\r\n return (String) getAttributeInternal(SRCQUALITYRATING);\r\n }",
"@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)\n public MediaFormat getEncoderFormat() {\n return super.getEncoderVideoFormat(MIME_TYPE, mWidth, mHeight, mBitRate, FRAME_RATE, IFRAME_INTERVAL);\n }",
"public void setSrcQualityRating(String value) {\r\n setAttributeInternal(SRCQUALITYRATING, value);\r\n }",
"public void setVideoPreset(String preset);",
"@MavlinkFieldInfo(\n position = 7,\n unitSize = 1,\n description = \"JPEG quality. Values: [1-100].\"\n )\n public final Builder jpgQuality(int jpgQuality) {\n this.jpgQuality = jpgQuality;\n return this;\n }",
"public boolean hasQuality() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }",
"public Builder setQuality(int percent) {\n if (percent > 0 || percent < 100) {\n this.quality = percent;\n }\n return this;\n }",
"public String computeQualityChangeExpression() {\n\t\tif (getQualityChangeExpression() != null)\n\t\t\treturn getQualityChangeExpression();\n\n\t\tif (category.getQualityChangeExpression() != null)\n\t\t\treturn category.getQualityChangeExpression();\n\n\t\treturn null;\n\t}",
"public String getVideoResolution() {\n //Camera.Size s = mCamera.getParameters().getPreviewSize();\n //return s.width + \"x\" + s.height;\n if (mProfile == null)\n return null;\n return mProfile.videoFrameWidth + \"x\" + mProfile.videoFrameHeight;\n }",
"public int getMediaAssetScaleTypeValue() {\n return mediaAssetScaleType_;\n }",
"public static int size_quality() {\n return (16 / 8);\n }",
"public VideoDefinition getPreferredVideoDefinition();",
"private void configureEncoder() throws IOException\n {\n encoder = MediaCodec.createByCodecName(encoderName);\n MediaFormat mediaFormat = MediaFormat.createVideoFormat(MIME_TYPE, width, height);\n mediaFormat.setInteger(MediaFormat.KEY_BIT_RATE, BITRATE);\n mediaFormat.setInteger(MediaFormat.KEY_FRAME_RATE, FRAMERATE);\n mediaFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, encoderColorFormat);\n mediaFormat.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 1);\n encoder.configure(mediaFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);\n encoder.start();\n }",
"public Builder clearQualityMax() {\n bitField0_ = (bitField0_ & ~0x00008000);\n qualityMax_ = getDefaultInstance().getQualityMax();\n onChanged();\n return this;\n }",
"public Builder clearQuality() {\n bitField0_ = (bitField0_ & ~0x00004000);\n quality_ = getDefaultInstance().getQuality();\n onChanged();\n return this;\n }",
"public final MediaFormat mo41565Ux() {\n AppMethodBeat.m2504i(12848);\n C4990ab.m7416i(\"MicroMsg.VideoCodecConfig\", \"targetWidth:\" + this.eTi + \", targetHeight:\" + this.eTj + \", bitrate:\" + this.bitrate + \", frameRate:\" + this.eTk + \", colorFormat:\" + this.eTl + \", iFrameInterval:\" + this.eTm);\n MediaFormat createVideoFormat = MediaFormat.createVideoFormat(this.MIME_TYPE, this.eTi, this.eTj);\n MediaCodecInfo mediaCodecInfo = this.eTo;\n if (mediaCodecInfo == null) {\n C25052j.dWJ();\n }\n C25052j.m39375o(createVideoFormat, \"mediaFormat\");\n mo33813a(mediaCodecInfo, createVideoFormat);\n mediaCodecInfo = this.eTo;\n if (mediaCodecInfo == null) {\n C25052j.dWJ();\n }\n C25052j.m39376p(mediaCodecInfo, \"codecInfo\");\n C25052j.m39376p(createVideoFormat, \"mediaFormat\");\n try {\n if (C1443d.m3068iW(21)) {\n CodecCapabilities capabilitiesForType = mediaCodecInfo.getCapabilitiesForType(this.MIME_TYPE);\n if (capabilitiesForType != null) {\n EncoderCapabilities encoderCapabilities = capabilitiesForType.getEncoderCapabilities();\n if (encoderCapabilities != null) {\n if (encoderCapabilities.isBitrateModeSupported(1)) {\n C4990ab.m7416i(C18579a.TAG, \"support vbr bitrate mode\");\n createVideoFormat.setInteger(\"bitrate-mode\", 1);\n } else if (encoderCapabilities.isBitrateModeSupported(2)) {\n C4990ab.m7416i(C18579a.TAG, \"support cbr bitrate mode\");\n createVideoFormat.setInteger(\"bitrate-mode\", 2);\n } else {\n C4990ab.m7416i(C18579a.TAG, \"both vbr and cbr bitrate mode not support!\");\n }\n }\n }\n }\n } catch (Exception e) {\n C4990ab.m7413e(C18579a.TAG, \"trySetBitRateMode error: %s\", e.getMessage());\n }\n createVideoFormat.setInteger(FFmpegMetadataRetriever.METADATA_KEY_VARIANT_BITRATE, this.bitrate);\n createVideoFormat.setInteger(\"frame-rate\", this.eTk);\n createVideoFormat.setInteger(\"color-format\", this.eTl);\n createVideoFormat.setInteger(\"i-frame-interval\", this.eTm);\n AppMethodBeat.m2505o(12848);\n return createVideoFormat;\n }",
"public ParametersBuilder setMaxVideoFrameRate(int maxVideoFrameRate) {\n this.maxVideoFrameRate = maxVideoFrameRate;\n return this;\n }",
"public String getVideoCompressionType() {\n return videoCompressionType;\n }",
"public boolean setDefaultBitRate(String bitrate);",
"public void setPreferredVideoDefinition(VideoDefinition vdef);",
"@Override\n public void eCGSignalQuality(int value, int timestamp) {\n }",
"public void setVideoDisplayFilter(String filtername);",
"public void setHistologicalQuality(String histologicalQuality)\r\n \t{\r\n \t\tthis.histologicalQuality = histologicalQuality;\r\n \t}",
"public void setCompressParams(CompressFormat compressFormat, int quality)\n {\n this.mCompressFormat = compressFormat;\n this.mCompressQuality = quality;\n }",
"private static double getOEEQuality(Batch batch) {\n double quality = ((double) batch.getAccepted()) / (((double) batch.getAccepted()) + ((double) batch.getDefect()));\n\n return quality;\n }",
"public int getPreviewFrameRate() {\n return getInt(\"preview-frame-rate\");\n }",
"public static int offsetBits_quality() {\n return 48;\n }",
"public void setVideoCodec(String videoCodec) {\n this.videoCodec = videoCodec;\n }",
"public JavaImageConverter (SProperties props) {\n Runtime rt = Runtime.getRuntime ();\n long max = rt.maxMemory ();\n\tmaxImageSize = max / 4;\n\tString sq = props.getProperty (\"quality\", STD_QUALITY);\n\tquality = Float.parseFloat (sq);\n }",
"public float getPreferredFramerate();",
"public EnhanceVideoQualityResponse enhanceVideoQualityAdvance(EnhanceVideoQualityAdvanceRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {\n String accessKeyId = _credential.getAccessKeyId();\n String accessKeySecret = _credential.getAccessKeySecret();\n String openPlatformEndpoint = _openPlatformEndpoint;\n if (com.aliyun.teautil.Common.isUnset(openPlatformEndpoint)) {\n openPlatformEndpoint = \"openplatform.aliyuncs.com\";\n }\n\n com.aliyun.tearpc.models.Config authConfig = com.aliyun.tearpc.models.Config.build(TeaConverter.buildMap(\n new TeaPair(\"accessKeyId\", accessKeyId),\n new TeaPair(\"accessKeySecret\", accessKeySecret),\n new TeaPair(\"type\", \"access_key\"),\n new TeaPair(\"endpoint\", openPlatformEndpoint),\n new TeaPair(\"protocol\", _protocol),\n new TeaPair(\"regionId\", _regionId)\n ));\n com.aliyun.openplatform20191219.Client authClient = new com.aliyun.openplatform20191219.Client(authConfig);\n AuthorizeFileUploadRequest authRequest = AuthorizeFileUploadRequest.build(TeaConverter.buildMap(\n new TeaPair(\"product\", \"videoenhan\"),\n new TeaPair(\"regionId\", _regionId)\n ));\n AuthorizeFileUploadResponse authResponse = new AuthorizeFileUploadResponse();\n com.aliyun.oss.models.Config ossConfig = com.aliyun.oss.models.Config.build(TeaConverter.buildMap(\n new TeaPair(\"accessKeySecret\", accessKeySecret),\n new TeaPair(\"type\", \"access_key\"),\n new TeaPair(\"protocol\", _protocol),\n new TeaPair(\"regionId\", _regionId)\n ));\n com.aliyun.oss.Client ossClient = null;\n FileField fileObj = new FileField();\n PostObjectRequest.PostObjectRequestHeader ossHeader = new PostObjectRequest.PostObjectRequestHeader();\n PostObjectRequest uploadRequest = new PostObjectRequest();\n com.aliyun.ossutil.models.RuntimeOptions ossRuntime = new com.aliyun.ossutil.models.RuntimeOptions();\n com.aliyun.openapiutil.Client.convert(runtime, ossRuntime);\n EnhanceVideoQualityRequest enhanceVideoQualityReq = new EnhanceVideoQualityRequest();\n com.aliyun.openapiutil.Client.convert(request, enhanceVideoQualityReq);\n authResponse = authClient.authorizeFileUploadWithOptions(authRequest, runtime);\n ossConfig.accessKeyId = authResponse.accessKeyId;\n ossConfig.endpoint = com.aliyun.openapiutil.Client.getEndpoint(authResponse.endpoint, authResponse.useAccelerate, _endpointType);\n ossClient = new com.aliyun.oss.Client(ossConfig);\n fileObj = FileField.build(TeaConverter.buildMap(\n new TeaPair(\"filename\", authResponse.objectKey),\n new TeaPair(\"content\", request.videoURLObject),\n new TeaPair(\"contentType\", \"\")\n ));\n ossHeader = PostObjectRequest.PostObjectRequestHeader.build(TeaConverter.buildMap(\n new TeaPair(\"accessKeyId\", authResponse.accessKeyId),\n new TeaPair(\"policy\", authResponse.encodedPolicy),\n new TeaPair(\"signature\", authResponse.signature),\n new TeaPair(\"key\", authResponse.objectKey),\n new TeaPair(\"file\", fileObj),\n new TeaPair(\"successActionStatus\", \"201\")\n ));\n uploadRequest = PostObjectRequest.build(TeaConverter.buildMap(\n new TeaPair(\"bucketName\", authResponse.bucket),\n new TeaPair(\"header\", ossHeader)\n ));\n ossClient.postObject(uploadRequest, ossRuntime);\n enhanceVideoQualityReq.videoURL = \"http://\" + authResponse.bucket + \".\" + authResponse.endpoint + \"/\" + authResponse.objectKey + \"\";\n EnhanceVideoQualityResponse enhanceVideoQualityResp = this.enhanceVideoQualityWithOptions(enhanceVideoQualityReq, runtime);\n return enhanceVideoQualityResp;\n }",
"private void setMediaAssetScaleType(com.whensunset.wsvideoeditorsdk.model.MediaAssetScaleType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n mediaAssetScaleType_ = value.getNumber();\n }",
"private VideoMode getVideoMode( ){\n\t\t \n\n\t\t\n\t\tif (!this.device.isFile() )\n//\t\t\treturn stream.getSensorInfo().getSupportedVideoModes().get(0);\n//\t\telse\n\t\t\treturn stream.getSensorInfo().getSupportedVideoModes().get(5);\n\t\treturn null;\n\t}",
"public int getAudiobitrate() {\n return audiobitrate;\n }",
"public int getMediaAssetScaleTypeValue() {\n return instance.getMediaAssetScaleTypeValue();\n }",
"@TargetApi(Build.VERSION_CODES.JELLY_BEAN)\n private static MediaCodecInfo chooseVideoEncoder(String name) {\n\n int nbCodecs = MediaCodecList.getCodecCount();\n\n for (int i = 0; i < nbCodecs; i++) {\n MediaCodecInfo mci = MediaCodecList.getCodecInfoAt(i);\n if (!mci.isEncoder()) {\n continue;\n }\n String[] types = mci.getSupportedTypes();\n for (int j = 0; j < types.length; j++) {\n if (types[j].equalsIgnoreCase(VCODEC)) {\n LogUtil.i(TAG, String.format(\"vencoder %s types: %s\", mci.getName(), types[j]));\n if (name == null) {\n return mci;\n }\n if (mci.getName().contains(name)) {\n return mci;\n }\n }\n }\n }\n return null;\n }",
"public void setCaptureMode(final int width, final int height, final int min_fps, final int max_fps, final int frameFormat);",
"public double[] getQualityScores() {\n return null;\n }",
"public double[] getQualityScores() {\n return null;\n }",
"public void setPreferredFramerate(float fps);",
"private void setMediaAssetScaleTypeValue(int value) {\n mediaAssetScaleType_ = value;\n }",
"QualityScenario createQualityScenario();",
"private void readQuality ()\n{\n // Reset the quality length.\n quality.setLength ( 0 );\n\n // Skip the BQ line.\n line = ace_file.getLine ();\n\n // Read in the quality array until the first blank line.\n while ( line.length () > 0 )\n {\n // Append the current line to the sequence.\n quality.append ( line.toString ().trim () + \" \" );\n\n // Get the next line of the ace file.\n line = ace_file.getLine ();\n } /* while */\n\n // Create a SequenceQuality entry for the Contig sequence.\n xml_file.write_XML_entry ( \"SequenceQuality\" );\n xml_file.write_XML_field ( \"sequence_quality_type\", \"Phrap\" );\n\n // Create the sequence_quality field.\n xml_file.write_XML_qual_field ( \"sequence_quality\", quality.toString () );\n\n // End the SequenceQuality table entry.\n xml_file.write_XML_entry_end ();\n\n // End the Sequence table entry.\n xml_file.write_XML_entry_end ();\n\n // Write the AlignmentSequence entry for the Contig sequence.l\n writeAlignmentSequence ( null, contigName.toString (), 1, contig.length (),\n contig.length (), \"+\", 1, contig.length () );\n}",
"public double resolution(final Slit slit, final double imgQuality) {\n return resolution(slit);\n }"
] | [
"0.7100335",
"0.67562556",
"0.6708635",
"0.6672213",
"0.65948117",
"0.65948117",
"0.65948117",
"0.6574975",
"0.6567878",
"0.6512133",
"0.6480046",
"0.64619726",
"0.64452654",
"0.64452654",
"0.6371396",
"0.6324697",
"0.6277203",
"0.6199683",
"0.6197626",
"0.61727923",
"0.6135272",
"0.6079202",
"0.6054931",
"0.60381854",
"0.5918176",
"0.5875128",
"0.5855725",
"0.58535707",
"0.5833192",
"0.5809702",
"0.580045",
"0.57901096",
"0.57579803",
"0.5727867",
"0.56945443",
"0.5687822",
"0.5678131",
"0.5661528",
"0.5639064",
"0.5637897",
"0.5574645",
"0.5568935",
"0.5568935",
"0.55032575",
"0.5478287",
"0.5452426",
"0.545037",
"0.54055196",
"0.537738",
"0.53685004",
"0.53579724",
"0.5349614",
"0.52890193",
"0.5272594",
"0.52718544",
"0.5253525",
"0.5235033",
"0.5183456",
"0.5180985",
"0.51629233",
"0.5145628",
"0.514506",
"0.51375395",
"0.51338536",
"0.51301634",
"0.5118056",
"0.5116918",
"0.5103267",
"0.5078269",
"0.5071098",
"0.5019245",
"0.50161886",
"0.5006309",
"0.49987617",
"0.4965705",
"0.49591956",
"0.49369285",
"0.4922295",
"0.49171418",
"0.49167112",
"0.48876882",
"0.48562494",
"0.4845855",
"0.48239133",
"0.4823844",
"0.48102495",
"0.48003885",
"0.47997907",
"0.4793769",
"0.47850478",
"0.47775188",
"0.47526792",
"0.47329092",
"0.47320843",
"0.47320843",
"0.47296757",
"0.47091684",
"0.46795243",
"0.46615353",
"0.4659716"
] | 0.6413269 | 14 |
Creates a new coordinating test case with the specified name. | public SustainedTestCase(String name)
{
super(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TestCase(String name) {\n\t\tsetName(name);\n\t}",
"public void createTestCase(String testName) {\r\n\t\tif (!active) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (testName == null || testName.isEmpty()) {\r\n\t\t\tthrow new ConfigurationException(\"testName must not be null or empty\");\r\n\t\t}\r\n\t\t\r\n\t\tif (applicationId == null) {\r\n\t\t\tcreateApplication();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tJSONObject testJson = getJSonResponse(Unirest.post(url + TESTCASE_API_URL)\r\n\t\t\t\t\t.field(\"name\", testName)\r\n\t\t\t\t\t.field(\"application\", applicationId));\r\n\t\t\ttestCaseId = testJson.getInt(\"id\");\r\n\t\t} catch (UnirestException | JSONException e) {\r\n\t\t\tthrow new SeleniumRobotServerException(\"cannot create test case\", e);\r\n\t\t}\r\n\t}",
"public PlanillaTest(String name) {\n\t\tsuper(name);\n\t}",
"@Test\n public void test_create_scenario() {\n try {\n TestData X = new TestData(\"project2.opt\");\n String new_name = \"new_scenario\";\n X.project.create_scenario(new_name);\n assertNotNull(X.project.get_scenario_with_name(new_name));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }",
"public GridTest(String name) {\n\t\tsuper(name);\n\t}",
"Case createCase();",
"public TestCase(String name) {\n fName= name;\n }",
"Testcase createTestcase();",
"public TestIdentityActionTest(String name) {\n\t\tsuper(name);\n\t}",
"public GuidanceTest(String name) {\n\t\tsuper(name);\n\t}",
"@Test\n public void createNewCase_withNoAddressTypeForEstab() throws Exception {\n doCreateNewCaseTest(\n \"Floating palace\", EstabType.OTHER, AddressType.SPG, CaseType.SPG, AddressLevel.U);\n }",
"public uCoursesTest(String name) {\n\t\tsuper(name);\n\t}",
"public SwitchLookupTest(String name) {\n super(name);\n }",
"@Test\n\tpublic void constructortest() {\n\t\tMainDish dessertTest = new MainDish(\"quiche\");\n\t\tassertTrue(dessertTest.getName().equals(\"quiche\"));\n\t}",
"@Test\n \tpublic void testCreateMindProject() throws Exception {\n \t\tString name = \"Test\" ; //call a generator which compute a new name\n \t\tGTMenu.clickItem(\"File\", \"New\", FRACTAL_MIND_PROJECT);\n \t\tGTShell shell = new GTShell(Messages.MindProjectWizard_window_title);\n \t\t//shell.findTree().selectNode(\"Mind\",FRACTAL_MIND_PROJECT);\n \t\t//shell.findButton(\"Next >\").click();\n \t\tshell.findTextWithLabel(\"Project name:\").typeText(name);\n \t\tshell.close();\n \t\t\n \t\tTestMindProject.assertMindProject(name);\t\t\n \t}",
"public FuncionInternaTest(String name) {\n\t\tsuper(name);\n\t}",
"public TestCase(String name)\r\n {\r\n super(name);\r\n resetIO();\r\n }",
"public NodeTest(String name) {\n\t\tsuper(name);\n\t}",
"public void createCase(CreateCaseRequest request) {\n Desk.with(getActivity())\n .getCaseProvider()\n .createCase(request, new CaseProvider.CreateCaseCallback() {\n @Override\n public void onCaseCreated(Case deskCase) {\n if (getParent() != null) {\n getParent().onCaseCreated(deskCase);\n }\n }\n\n @Override\n public void onCreateCaseError(ErrorResponse error) {\n if (getParent() != null) {\n getParent().onCreateCaseError(error);\n }\n }\n });\n }",
"public TreeTest(String name) {\r\n super(name);\r\n }",
"public TabletTest(String name) {\n\t\tsuper(name);\n\t}",
"public void createProject(String name) {\n Project project = new Project(name);\n Leader leader = new Leader(this, project);\n project.addLeader(leader);\n }",
"public SampleJUnit(String name) {\r\n\t\tsuper(name);\r\n\t}",
"public PresentationTest(String name) {\n\t\tsuper(name);\n\t}",
"public PinYouConTest(String testName) {\n\t\tsuper(testName);\n\t}",
"public void testWizards() {\n // open new file wizard\n NewFileWizardOperator nfwo = NewFileWizardOperator.invoke();\n nfwo.selectProject(\"SampleProject\");\n nfwo.selectCategory(\"Java\");\n nfwo.selectFileType(\"Java Class\");\n // go to next page\n nfwo.next();\n // create operator for the next page\n NewJavaFileNameLocationStepOperator nfnlso = new NewJavaFileNameLocationStepOperator();\n nfnlso.txtObjectName().typeText(\"MyNewClass\");\n // finish wizard\n //nfnlso.finish();\n // cancel wizard\n nfnlso.cancel();\n }",
"private static Scenario createTestScenario(final Config config) {\n\t\tMutableScenario scenario = (MutableScenario) ScenarioUtils.loadScenario(config);\n\t\tNetwork network = createLessSymmetricTestNetwork();\n\t\tscenario.setNetwork(network);\n\n\t\t// Creating test opportunities (facilities); one on each link with same ID as link and coord on center of link\n\t\tfinal ActivityFacilities opportunities = scenario.getActivityFacilities();\n\t\tActivityFacility facility1 = opportunities.getFactory().createActivityFacility(Id.create(\"1\", ActivityFacility.class), new Coord(200, 0));\n\t\topportunities.addActivityFacility(facility1);\n\t\tActivityFacility facility2 = opportunities.getFactory().createActivityFacility(Id.create(\"2\", ActivityFacility.class), new Coord(200, 200));\n\t\topportunities.addActivityFacility(facility2);\n\t\tscenario.getConfig().facilities().setFacilitiesSource(FacilitiesConfigGroup.FacilitiesSource.setInScenario);\n\t\treturn scenario;\n\t}",
"public DefaultDetailWindowTest(String name) {\n super(name);\n }",
"public SokobanServiceTest(String name) {\n\t\tsuper(name);\n\t}",
"public AxiomTest(String name) {\n\t\tsuper(name);\n\t}",
"public CanvasCCPTestSuite() {\r\n\t\tCorePlugin.getDefault().getPreferenceStore().setValue(BridgePointPreferencesStore.USE_DEFAULT_NAME_FOR_CREATION,true);\r\n\t\taddTestSuite(CanvasCopyPasteTests.class);\r\n\t\taddTestSuite(CanvasCCPTestsSuite.class);\r\n\t\taddTestSuite(CanvasCutTests.class);\r\n\t\taddTestSuite(CanvasCopyTests.class);\r\n\t\taddTestSuite(CanvasStateMachineCopyPasteTests.class);\r\n\t\tTestSuite testSuite = new ModelRecreationTestSuite();\r\n\t\taddTest(testSuite);\r\n\t}",
"public static UseCase createUseCase(final Class<?> testClass) {\n\t\tString description = \"\";\n\t\tString name = createUseCaseName(testClass);\n\t\tDocuDescription docuDescription = testClass.getAnnotation(DocuDescription.class);\n\t\tif (docuDescription != null) {\n\t\t\tdescription = docuDescription.description();\n\t\t}\n\t\t// Create use case\n\t\tUseCase useCase = new UseCase();\n\t\tuseCase.setName(name);\n\t\tuseCase.setDescription(description);\n\t\tuseCase.addDetail(\"webtestClass\", testClass.getName());\n\t\treturn useCase;\n\t}",
"public LTest(String name) {\r\n\t\tsuper(name);\r\n\t}",
"public VirtualMachineTest(String name) {\r\n\t\tsuper(name);\r\n\t}",
"public void testNewFile() {\n // create a new package\n // \"Java Classes\"\n String javaClassesLabel = Bundle.getString(\"org.netbeans.modules.java.project.Bundle\", \"Templates/Classes\");\n NewJavaFileWizardOperator.create(SAMPLE_PROJECT_NAME, javaClassesLabel, \"Java Package\", null, SAMPLE1_PACKAGE_NAME);\n // wait package node is created\n Node sample1Node = new Node(new SourcePackagesNode(SAMPLE_PROJECT_NAME), SAMPLE1_PACKAGE_NAME);\n\n // create a new classes\n\n NewFileWizardOperator.invoke(sample1Node, javaClassesLabel, \"Java Main Class\");\n NewJavaFileNameLocationStepOperator nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(SAMPLE1_CLASS_NAME);\n nameStepOper.finish();\n // check class is opened in Editor\n new EditorOperator(SAMPLE1_FILE_NAME);\n NewFileWizardOperator.invoke(sample1Node, javaClassesLabel, \"Java Main Class\");\n nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(SAMPLE2_CLASS_NAME);\n nameStepOper.finish();\n // check class is opened in Editor and then close all documents\n new EditorOperator(SAMPLE2_FILE_NAME).closeAllDocuments();\n }",
"public IndentRulesTestCase(String name) {\n super(name);\n }",
"public void createCourse(String courseName, int courseCode){}",
"public ProcessorTest(String name) {\n\t\tsuper(name);\n\t}",
"public static Project creer(String name){\n\t\treturn new Project(name);\n\t}",
"public void testChangeName() {\n System.out.println(\"changeName\");\n String expResult = \"Anu\";\n //String result = new changeName('Anu', \"Shar\");\n assertEquals(expResult, result);\n }",
"public String createCaseWithSpecifiedType(\n String TOS,\n String caseTypeName) throws Exception {\n UserContext old = UserContext.get();\n CaseMgmtContext oldCmc = null;\n Subject sub = Subject.getSubject(AccessController.getContext());\n String ceURI = null;\n\n try {\n ceURI = filenet.vw.server.Configuration.GetCEURI(null, null);\n Connection connection = Factory.Connection.getConnection(ceURI);\n\n // setting up user context\n UserContext uc = new UserContext();\n uc.pushSubject(sub);\n UserContext.set(uc);\n\n EntireNetwork entireNetwork = Factory.EntireNetwork.fetchInstance(connection, null);\n\n if (entireNetwork == null) {\n Exception e = new Exception(\"Cannot log in to \" + ceURI);\n logException(e);\n }\n\n // retrieve target object store\n Domain domain = entireNetwork.get_LocalDomain();\n ObjectStore targetOS = (ObjectStore) domain.fetchObject(\n ClassNames.OBJECT_STORE,\n TOS,\n null);\n\n // setting up CaseMmgtContext for Case API\n SimpleVWSessionCache vwSessCache = new SimpleVWSessionCache();\n CaseMgmtContext cmc = new CaseMgmtContext(vwSessCache, new SimpleP8ConnectionCache());\n oldCmc = CaseMgmtContext.set(cmc);\n\n // retrieve case type info\n ObjectStoreReference targetOsRef = new ObjectStoreReference(targetOS);\n CaseType caseType = CaseType.fetchInstance(targetOsRef, caseTypeName);\n\n // create a new instance of case type\n Case pendingCase = Case.createPendingInstance(caseType);\n pendingCase.save(RefreshMode.REFRESH, null, ModificationIntent.MODIFY);\n String caseId = pendingCase.getId().toString();\n\n return caseId;\n } catch (Exception e) {\n logException(e);\n return null;\n } finally {\n if (oldCmc != null) {\n CaseMgmtContext.set(oldCmc);\n }\n\n if (old != null) {\n UserContext.set(old);\n }\n }\n }",
"private int createNewTest(String testName) {\r\n\t\tint newTestId = -1;\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tPreparedStatement pStat = dbConnection.prepareStatement(\"insert into tests (name) VALUES (?)\", Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tpStat.setString(1, testName);\r\n\t\t\tpStat.execute();\r\n\r\n\t\t\tResultSet rs = pStat.getGeneratedKeys();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tnewTestId = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tpStat.close();\r\n\t\t} catch (SQLException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn newTestId;\r\n\t}",
"protected void createSuite(String parent, String bootstrapSuitePath, String[] classPath, Boolean littleEndian, String suiteName) {\n StringBuffer buffer = new StringBuffer();\n appendSuiteCreatorCommand(buffer, bootstrapSuitePath);\n appendSuiteCreatorOptions(buffer, parent, bootstrapSuitePath, classPath, littleEndian);\n buffer.append(\" \");\n buffer.append(suiteName);\n String command = buffer.toString();\n env.exec(command);\n }",
"public BPMNDiagramTest(String name) {\n\t\tsuper(name);\n\t}",
"public Cook(String name) {\n\t\tthis.name = name;\n\t}",
"@Test\n public void nameTest() {\n // TODO: test name\n }",
"@Test\n public void nameTest() {\n // TODO: test name\n }",
"@Test\n public void nameTest() {\n // TODO: test name\n }",
"@Test\n public void nameTest() {\n // TODO: test name\n }",
"public Candy(String name) {\n\t\tsuper(name);\n\t}",
"public SchemeTest (String name)\n {\n super (name);\n /*\n * This constructor should not be modified. Any initialization code\n * should be placed in the setUp() method instead.\n */\n }",
"@Test\n\tpublic void create() {\n\t\t// Given\n\t\tString name = \"Mark\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"0211616447\";\n\n\t\t// When\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\n\t\t// Then\n\t\tAssert.assertNotNull(customer);\n\t}",
"@Test\r\n\tpublic void testConstructor() {\r\n\t\tnew ConstructorTestClass();\r\n\t}",
"@Test\r\n\tpublic void testConstructor() {\r\n\t\tnew ConstructorTestClass();\r\n\t}",
"public FSMTest(String name) {\n\t\tsuper(name);\n\t}",
"public static ProjectCreated newCase (String aMessage, String aFileName, Object aFinder) {\n \tif (shouldInstantiate(ProjectCreated.class)) {\r\n \tProjectCreated retVal = new ProjectCreated(aMessage, aFileName, aFinder);\r\n \tretVal.announce();\r\n \treturn retVal;\r\n \t}\r\n\t\tTracer.info(aFinder, aMessage);\r\n\r\n \treturn null;\r\n }",
"public static Unit generateDummy(String className)\r\n {\r\n try\r\n {\r\n //find constructor requiring no parameters\r\n Class classToCreate = Class.forName(\"TowerDefense.\"+className);\r\n Class[] params = {};\r\n Constructor constructor = classToCreate.getConstructor(params);\r\n \r\n //create instance of object using found constructor\r\n Object[] argList = {};\r\n return (Tower)constructor.newInstance(argList);\r\n }\r\n catch (Exception e)\r\n {\r\n System.out.println(e);\r\n return null;\r\n }\r\n }",
"public ConnectionInfoTest(String name) {\r\n\t\tsuper(name);\r\n\t}",
"@Test\n\tpublic void testConstructor() {\n\t\tnew ConstructorTestClass();\n\t}",
"@Test\n\tpublic void testConstructor() {\n\t\tnew ConstructorTestClass();\n\t}",
"public void createInstance(String className, String instanceName)\r\n\t{\r\n\t\t\r\n\t\tOntClass c = obtainOntClass(className);\r\n\t\t\r\n\t\tString longName;\r\n\t\tif(instanceName.contains(\"#\"))\r\n\t\t\tlongName = instanceName;\r\n\t\tif(instanceName.contains(\":\"))\r\n\t\t\tlongName= ONT_MODEL.expandPrefix(instanceName);\r\n\t\telse\r\n\t\t\tlongName = BASE_NS + instanceName;\r\n\t\t\r\n\t\tc.createIndividual(longName);\r\n\t}",
"public Tower(String name) {\n this.name = name;\n }",
"@Test\n public void shouldCreateCase() {\n assertThat(DatabaseHelper.getCaseDao().queryForAll().size(), is(0));\n\n TestEntityCreator.createCase();\n\n // Assure that the case has been successfully created\n assertThat(DatabaseHelper.getCaseDao().queryForAll().size(), is(1));\n }",
"@Test\r\n public void testNew_doctor() {\r\n System.out.println(\"new_doctor\");\r\n doctor instance = new doctor();\r\n instance.new_doctor();\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"private ContestChannel createContestChannelForTest() {\r\n\r\n ContestChannel channel = new ContestChannel();\r\n channel.setContestChannelId(1L);\r\n channel.setDescription(\"desc\");\r\n return channel;\r\n }",
"@Test\r\n\tpublic void testStartHumanJohnFirst() {\r\n\t\tHumanPlayer john = new HumanPlayer(\"John\");\r\n\t\tComputerPlayer comp = new ComputerPlayer();\r\n\t\tGame game = new Game(john, comp);\r\n\t\t\r\n\t\tgame.startNewGame(john, comp, 12);\r\n\t\tassertEquals(\"John\", game.getCurrentPlayer().getName());\r\n\t}",
"public static void main(String[] args) {\n\t\tConstructorTest a = new ConstructorTest();\r\n\r\n\t}",
"@Test\n void createParkingLot() {\n }",
"TestViewpoint createTestViewpoint();",
"public ClimbingClubTest()\n {\n \n }",
"public WizardsTest(String testName) {\n super(testName);\n }",
"private static FuncionalidadeCustos create(String id, String name) {\n FuncionalidadeCustos result = new FuncionalidadeCustos(id, name);\n addToMap(id, result);\n return result;\n }",
"public AssociationTest(String name) {\n\t\tsuper(name);\n\t}",
"public boolean spawnNewTrain(String trainName, short trainId) {\n\t\t// check that the trainId and Name are unique\n\t\ttrains.add(new Train(trainId, trainName));\n\t\treturn true;\n\t}",
"@Test\n public void testCityReportNameSuccess(){\n City city = new City(\"London\");\n assertEquals(\"London\", city.getName());\n }",
"public void testClassName() {\n\t\tClassName name = this.compiler.createClassName(\"test.Example\");\n\t\tassertEquals(\"Incorrect package\", \"generated.officefloor.test\", name.getPackageName());\n\t\tassertTrue(\"Incorrect class\", name.getClassName().startsWith(\"Example\"));\n\t\tassertEquals(\"Incorrect qualified name\", name.getPackageName() + \".\" + name.getClassName(), name.getName());\n\t}",
"public HockeyTeamTest()\n {\n }",
"@Test\n public void goalCustomConstructor_isCorrect() throws Exception {\n\n int goalId = 11;\n int userId = 1152;\n String name = \"Test Name\";\n int timePeriod = 1;\n int unit = 2;\n double amount = 1000.52;\n\n\n //Create goal\n Goal goal = new Goal(goalId, userId, name, timePeriod, unit, amount);\n\n // Verify Values\n assertEquals(goalId, goal.getGoalId());\n assertEquals(userId, goal.getUserId());\n assertEquals(name, goal.getGoalName());\n assertEquals(timePeriod, goal.getTimePeriod());\n assertEquals(unit, goal.getUnit());\n assertEquals(amount, goal.getAmount(),0);\n }",
"public NewTestWizardPage() {\n\t\tsuper(true, \"New Groovy Test Settings\");\n\n\t\tsetTitle(\"Groovy Test Class\");\n\t\tsetDescription(\"Create a new Groovy unit test class\");\n\t}",
"public SmokeDetectorTest(String name) {\n\t\tsuper(name);\n\t}",
"@Test\n public void testSetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String name = \"\";\n\n fixture.setName(name);\n\n }",
"public CustomerTest()\n {\n }",
"public Task(String name) {\n\t\tthis.name=name;\n\t}",
"public TeamBuildTool(String name) {\n team = new Team(name);\n run();\n }",
"public void newQuest(String name) {\n\t\t//Prevent NullPointerExcpetions\n\t\tif (name == null) {\n\t\t\tbakeInstance.getLogger().info(\"[Bake] Null name for new generated quest. Falling back to default quest selection.\");\n\t\t\tnewQuest();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (QuestCfg.getString(\"quests.\" + name + \".type\", \"N/A\").equals(\"N/A\")) {\n\t\t\tbakeInstance.getLogger().info(\"[Bake] Invalid name (\" + name + \") for new generated quest. Falling back to default quest selection.\");\n\t\t\t//Invalid quest name\n\t\t\tnewQuest();\n\t\t} else {\n\t\t\t//Valid quest name\n\t\t\tactiveQuest = new Quest(QuestCfg, name);\n\t\t}\n\t}",
"@Test\n public void testCreateCustomer() {\n System.out.println(\"createCustomer\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n Customer result = instance.getCustomer(customerID);\n assertEquals(\"Gert Hansen\", result.getName());\n assertEquals(\"Grønnegade 12\", result.getAddress());\n assertEquals(\"98352010\", result.getPhone());\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }",
"@Test\n public void customerNameTest() {\n // TODO: test customerName\n }",
"public OpcDeviceTest(String name)\n {\n super(name);\n }",
"private final void createAndAddNode(String name) {\n\t}",
"public CRUDPageTest(String name) {\n\t\tsuper(name);\n\t}",
"public void testCtorAccuracy() {\r\n assertNotNull(\"Should create the instance successfully.\", log);\r\n assertEquals(NAME, log.getName());\r\n }",
"@Ignore\n @Test\n public void test_clone_scenario(){\n try {\n TestData X = new TestData(\"project2.opt\");\n X.project.clone_scenario(\"scenarioA\",\"new_scenario\");\n assertTrue(\n X.project.get_scenario_with_name(\"scenarioA\")\n .equals(X.project.get_scenario_with_name(\"new_scenario\")) );\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }",
"public static void CCommand(String name) {\n Person tempPerson = new Person(name);\n if (Interface.persons.contains(Interface.persons, tempPerson)) {\n System.out.println(\"Error: A name only can exists for a person. Either delete the existing person or create a person with different name.\");\n return;\n }\n Interface.persons = Interface.persons.add(Interface.persons, tempPerson);\n System.out.println(name + \" has been added.\");\n }",
"public String createCase(\n String caseFolderPath,\n String TOS,\n boolean create) throws Exception {\n if (create == true) {\n UserContext old = null;\n CaseMgmtContext oldCmc = null;\n\n try {\n Subject sub = Subject.getSubject(AccessController.getContext());\n String ceURI = null;\n\n ceURI = filenet.vw.server.Configuration.GetCEURI(null, null);\n Connection connection = Factory.Connection.getConnection(ceURI);\n\n // setting up user context\n old = UserContext.get();\n UserContext uc = new UserContext();\n uc.pushSubject(sub);\n UserContext.set(uc);\n\n EntireNetwork entireNetwork = Factory.EntireNetwork.fetchInstance(connection, null);\n\n if (entireNetwork == null) {\n Exception e = new Exception(\"Cannot log in to \" + ceURI);\n logException(e);\n }\n\n // retrieve target object store\n Domain domain = entireNetwork.get_LocalDomain();\n ObjectStore targetOS = (ObjectStore) domain.fetchObject(\n ClassNames.OBJECT_STORE,\n TOS,\n null);\n\n // setting up CaseMmgtContext for Case API\n SimpleVWSessionCache vwSessCache = new SimpleVWSessionCache();\n CaseMgmtContext cmc = new CaseMgmtContext(vwSessCache, new SimpleP8ConnectionCache());\n oldCmc = CaseMgmtContext.set(cmc);\n\n ObjectStoreReference targetOsRef = new ObjectStoreReference(targetOS);\n\n // retrieve case folder\n Folder caseFolder = (Folder) targetOS.fetchObject(ClassNames.FOLDER,\n caseFolderPath,\n null);\n\n // retrieve property value of 'CmAcmCaseTypeFolder'\n Folder caseTypeFolder = (Folder) caseFolder.getProperties().getObjectValue(\n \"CmAcmCaseTypeFolder\");\n // retrieve case type name\n String caseTypeName = caseTypeFolder.get_FolderName();\n CaseType caseType = CaseType.fetchInstance(targetOsRef, caseTypeName);\n\n // create a new instance of case type\n Case pendingCase = Case.createPendingInstance(caseType);\n pendingCase.save(RefreshMode.REFRESH, null, ModificationIntent.MODIFY);\n String caseId = pendingCase.getId().toString();\n\n return caseId;\n } catch (Exception e) {\n logException(e);\n return null;\n } finally {\n if (oldCmc != null) {\n CaseMgmtContext.set(oldCmc);\n }\n\n if (old != null) {\n UserContext.set(old);\n }\n }\n } else {\n return null;\n }\n }",
"LectureProject createLectureProject();",
"@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}",
"@Test\n void scCreation() {\n StandardCalc sc = new StandardCalc();\n }",
"CaseAction createCaseAction();",
"private Panino(String name) {\n this.name = name;\n }",
"public ULTest(String name) {\n\t\tsuper(name);\n\t}"
] | [
"0.6401371",
"0.6031794",
"0.5898109",
"0.5893932",
"0.5872669",
"0.5832129",
"0.5811725",
"0.55946815",
"0.553832",
"0.55258644",
"0.55198276",
"0.5494212",
"0.54863834",
"0.5469951",
"0.540139",
"0.53943145",
"0.5389672",
"0.53558916",
"0.5352325",
"0.5344667",
"0.53399736",
"0.5308726",
"0.5286562",
"0.52629864",
"0.52510554",
"0.523702",
"0.5229703",
"0.5225428",
"0.51975864",
"0.5196112",
"0.518125",
"0.5171659",
"0.51709247",
"0.5156376",
"0.5148214",
"0.5146043",
"0.5136351",
"0.51350415",
"0.5134206",
"0.5134126",
"0.5128594",
"0.50974935",
"0.50958467",
"0.5095197",
"0.50698364",
"0.5062188",
"0.5062188",
"0.5062188",
"0.5062188",
"0.50580466",
"0.5051181",
"0.50450665",
"0.5036357",
"0.5036357",
"0.50271845",
"0.49941984",
"0.4984453",
"0.49812973",
"0.49699333",
"0.49699333",
"0.49683398",
"0.49666756",
"0.49661052",
"0.49546337",
"0.49448168",
"0.49428427",
"0.49411932",
"0.49380785",
"0.49378744",
"0.49328566",
"0.4929816",
"0.48961833",
"0.48941156",
"0.48903218",
"0.4883488",
"0.4881983",
"0.48756653",
"0.4874999",
"0.48748797",
"0.48687366",
"0.4865117",
"0.48609936",
"0.4860843",
"0.48574147",
"0.48570824",
"0.48557523",
"0.48537403",
"0.48500162",
"0.48411438",
"0.48284057",
"0.48227477",
"0.48183653",
"0.48161492",
"0.48138627",
"0.4811006",
"0.48108447",
"0.48080367",
"0.48075053",
"0.47934276",
"0.47893432"
] | 0.5596766 | 7 |
Performs a single test run of the sustained test. | public void testBasicPubSub() throws Exception
{
log.debug("public void testSinglePubSubCycle(): called");
Properties testConfig = new Properties();
testConfig.put("TEST_NAME", "Perf_SustainedPubSub");
testConfig.put("SUSTAINED_KEY", SUSTAINED_KEY);
testConfig.put("SUSTAINED_NUM_RECEIVERS", Integer.getInteger("numReceives", 2));
testConfig.put("SUSTAINED_UPDATE_INTERVAL", Integer.getInteger("batchSize", 1000));
testConfig.put("SUSTAINED_UPDATE_KEY", SUSTAINED_KEY + ".UPDATE");
testConfig.put("ACKNOWLEDGE_MODE", Integer.getInteger("ackMode", AMQSession.AUTO_ACKNOWLEDGE));
log.info("Created Config: " + testConfig.entrySet().toArray());
getCircuitFactory().sequenceTest(null, null, testConfig);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void run() {\n RandomizedContext current = RandomizedContext.current();\n try {\n current.push(c.randomness);\n runSingleTest(notifier, c);\n } catch (Throwable t) {\n Rethrow.rethrow(augmentStackTrace(t)); \n } finally {\n current.pop();\n }\n }",
"protected void runTest() {\n\t\trunTest(getIterations());\n\t}",
"public TestResult run() {\n TestResult result= createResult();\n run(result);\n return result;\n }",
"@Test\n void one() {\n System.out.println(\"Executing Test 1.\");\n }",
"public static void runUsual() throws Exception {\r\n\t\ttestRun(0);\r\n\t}",
"@Test(enabled =true, groups={\"fast\",\"window.One\",\"unix.One\",\"release1.one\"})\n\tpublic void testOne(){\n\t\tSystem.out.println(\"In TestOne\");\n\t}",
"protected void doSingleServerTest(String sTest, Runnable runnable)\n {\n try\n {\n System.setProperty(\"coherence.distributed.localstorage\", \"true\");\n _startup();\n runnable.run();\n }\n finally\n {\n _shutdown();\n }\n }",
"@Test\n public void main() {\n run(\"TEST\");\n }",
"protected void doRun(Test test) {\n setMidletToNestedTests(test);\n super.doRun(test);\n }",
"public void selfTest() {\n \n \n \n /**\n * TESTING CONFIGURATION RIGHT HERE:\n */\n int total = 1; //How many tests should we run\n int start = 0; //The first test to run\n //TestStubs.storePrints(); //store prints until the end\n TestStubs.displayDebugWhileTesting(false); //shows all the debug prints (with context switches) if set to true\n \n \n //MemoryMap.selfTest();\n //Swap.selfTest();\n \n UserProcess.testing = true;\n TestStubs.debugPrint(\"SELF TESTING VMKERNEL!\");\n \n int passed = 0;\n \n for (int i = 0; i < total; i++) {\n if (runTest(i+start))\n passed += 1;\n }\n \n if (passed != total) {\n TestStubs.debugPrint(\"SOME TESTS FAILED! \" + passed + \"/\" + total + \" passed.\");\n } else {\n TestStubs.debugPrint(\"ALL TESTS PASSED! \" + passed + \"/\" + total + \" passed.\");\n }\n \n UserProcess.testing = false;\n \n\n \n //System.out.println(TestStubs.getStoredPrints());\n //TestStubs.clearAndDontStorePrints();\n \n if (passed != total) {\n System.out.flush();\n /// kernel.terminate();\n }\n \n TestStubs.disable();\n \n }",
"public TestResults run() {\n\t\treturn run(getConfiguredDuration());\n\t}",
"@Test\n public void sustainMassiveDamage() {\n }",
"@Test\n\tpublic void runSend(){\n\t\tstandard();\n\t}",
"private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }",
"private void runTest(final Node me) {\n if (!initialized) {\n initStressTest();\n }\n\n List<Row> runs = engine.getSqlTemplate().query(selectControlSql);\n\n for (Row run : runs) {\n int runId = run.getInt(\"RUN_ID\");\n int payloadColumns = run.getInt(\"PAYLOAD_COLUMNS\");\n int initialSeedSize = run.getInt(\"INITIAL_SEED_SIZE\");\n long duration = run.getLong(\"DURATION_MINUTES\");\n\n String status = engine.getSqlTemplate().queryForString(selectStatusSql, runId, me.getNodeId());\n\n if (isMasterNode(me) && StringUtils.isBlank(status)) {\n initStressTestRowOutgoing(payloadColumns, runId, initialSeedSize);\n initStressTestRowIncoming(payloadColumns);\n long commitRows = run.getLong(\"SERVER_COMMIT_ROWS\");\n long sleepMs = run.getLong(\"SERVER_COMMIT_SLEEP_MS\");\n\n engine.getSqlTemplate().update(insertStatusSql, runId, me.getNodeId(), \"RUNNING\");\n for (Node client : engine.getNodeService().findTargetNodesFor(NodeGroupLinkAction.W)) {\n engine.getSqlTemplate().update(insertStatusSql, runId, client.getNodeId(), \"RUNNING\");\n }\n\n fillOutgoing(runId, duration, commitRows, sleepMs, payloadColumns);\n\n engine.getSqlTemplate().update(updateStatusSql, \"COMPLETE\", runId, me.getNodeId());\n\n } else if (!isMasterNode(me) && !StringUtils.isBlank(status) && status.equals(\"RUNNING\")) {\n long commitRows = run.getLong(\"CLIENT_COMMIT_ROWS\");\n long sleepMs = run.getLong(\"CLIENT_COMMIT_SLEEP_MS\");\n\n fillIncoming(runId, duration, commitRows, sleepMs, payloadColumns);\n\n engine.getSqlTemplate().update(updateStatusSql, \"COMPLETE\", runId, me.getNodeId());\n }\n }\n }",
"@Test\n public void trainWithMasterSplinterTest() {\n\n }",
"public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }",
"public void soaktest() {\n\t\ttry {\n\t\t\tint errCount = 0;\n\n\t\t\tfor (int i = 1; i <= 100; i++) {\n\t\t\t\tRegression test = new Regression();\n\t\t\t\ttest0();\n\t\t\t\ttest.test1(m1);\n\t\t\t\ttest.test2(m1);\n\t\t\t\ttest.test3(m1);\n\t\t\t\ttest.test4(m1);\n\t\t\t\ttest.test5(m1);\n\t\t\t\ttest.test6(m1);\n\t\t\t\ttest.test7(m1, m2);\n\t\t\t\ttest.test8(m1);\n\t\t\t\ttest.test9(m2);\n\t\t\t\ttest.test10(m3);\n\t\t\t\ttest.test11(m1, m2);\n\t\t\t\ttest.test12(m1);\n\t\t\t\ttest.test13(m1);\n\t\t\t\ttest.test14(m1);\n\t\t\t\ttest.test15(m1);\n\t\t\t\ttest.test16(m1);\n\t\t\t\ttest.test17(m1);\n\t\t\t\ttest.test18(m4);\n\t\t\t\ttest.test19(m2, m3);\n\t\t\t\ttest.test97(m1);\n\t\t\t\tif (test.getErrors())\n\t\t\t\t\terrCount++;\n\t\t\t\tif ((i % 10) == 0) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"error count = \" + errCount + \" rounds = \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\tassertTrue(false);\n\t\t}\n\t}",
"@Override\n public void runTest() {\n }",
"public void testOneRunUnjudged() throws IOException, ClassNotFoundException, FileSecurityException {\n\n InternalContest contest = new InternalContest();\n \n initContestData(contest);\n Run run = getARun(contest);\n // Directory where test data is\n// String testDir = \"testdata\";\n// String projectPath=JUnitUtilities.locate(testDir);\n// if (projectPath == null) {\n// throw new IOException(\"Unable to locate \"+testDir);\n// }\n\n RunFiles runFiles = new RunFiles(run, loadData.getAbsolutePath());\n \n contest.addRun(run, runFiles, null);\n \n checkOutputXML(contest);\n }",
"public boolean executeStudentTests() {\n\t\treturn this.executeStudentTests;\n\t}",
"@Override\n\tpublic void runTest() throws Throwable {}",
"public void testRunning()\n\t\t{\n\t\t\tInvestigate._invData.clearStores();\n\n\t\t\tfinal WorldLocation topLeft = SupportTesting.createLocation(0, 10000);\n\t\t\ttopLeft.setDepth(-1000);\n\t\t\tfinal WorldLocation bottomRight = SupportTesting.createLocation(10000, 0);\n\t\t\tbottomRight.setDepth(1000);\n\t\t\tfinal WorldArea theArea = new WorldArea(topLeft, bottomRight);\n\t\t\tfinal RectangleWander heloWander = new RectangleWander(theArea,\n\t\t\t\t\t\"rect wander\");\n\t\t\theloWander.setSpeed(new WorldSpeed(20, WorldSpeed.Kts));\n\t\t\tfinal RectangleWander fishWander = new RectangleWander(theArea,\n\t\t\t\t\t\"rect wander 2\");\n\n\t\t\tRandomGenerator.seed(12);\n\n\t\t\tWaterfall searchPattern = new Waterfall();\n\t\t\tsearchPattern.setName(\"Searching\");\n\n\t\t\tTargetType theTarget = new TargetType(Category.Force.RED);\n\t\t\tInvestigate investigate = new Investigate(\"investigating red targets\",\n\t\t\t\t\ttheTarget, DetectionEvent.IDENTIFIED, null);\n\t\t\tsearchPattern.insertAtHead(investigate);\n\t\t\tsearchPattern.insertAtFoot(heloWander);\n\n\t\t\tfinal Status heloStat = new Status(1, 0);\n\t\t\theloStat.setLocation(SupportTesting.createLocation(2000, 4000));\n\t\t\theloStat.getLocation().setDepth(-200);\n\t\t\theloStat.setCourse(270);\n\t\t\theloStat.setSpeed(new WorldSpeed(100, WorldSpeed.Kts));\n\n\t\t\tfinal Status fisherStat = new Status(1, 0);\n\t\t\tfisherStat.setLocation(SupportTesting.createLocation(4000, 2000));\n\t\t\tfisherStat.setCourse(155);\n\t\t\tfisherStat.setSpeed(new WorldSpeed(12, WorldSpeed.Kts));\n\n\t\t\tfinal DemandedStatus dem = null;\n\n\t\t\tfinal SimpleDemandedStatus ds = (SimpleDemandedStatus) heloWander.decide(\n\t\t\t\t\theloStat, null, dem, null, null, 100);\n\n\t\t\tassertNotNull(\"dem returned\", ds);\n\n\t\t\t// ok. the radar first\n\t\t\tASSET.Models.Sensor.Lookup.RadarLookupSensor radar = new RadarLookupSensor(\n\t\t\t\t\t12, \"radar\", 0.04, 11000, 1.2, 0, new Duration(0, Duration.SECONDS),\n\t\t\t\t\t0, new Duration(0, Duration.SECONDS), 9200);\n\n\t\t\tASSET.Models.Sensor.Lookup.OpticLookupSensor optic = new OpticLookupSensor(\n\t\t\t\t\t333, \"optic\", 0.05, 10000, 1.05, 0.8, new Duration(20,\n\t\t\t\t\t\t\tDuration.SECONDS), 0.2, new Duration(30, Duration.SECONDS));\n\n\t\t\tHelo helo = new Helo(23);\n\t\t\thelo.setName(\"Merlin\");\n\t\t\thelo.setCategory(new Category(Category.Force.BLUE,\n\t\t\t\t\tCategory.Environment.AIRBORNE, Category.Type.HELO));\n\t\t\thelo.setStatus(heloStat);\n\t\t\thelo.setDecisionModel(searchPattern);\n\t\t\thelo.setMovementChars(HeloMovementCharacteristics.getSampleChars());\n\t\t\thelo.getSensorFit().add(radar);\n\t\t\thelo.getSensorFit().add(optic);\n\n\t\t\tSurface fisher2 = new Surface(25);\n\t\t\tfisher2.setName(\"Fisher2\");\n\t\t\tfisher2.setCategory(new Category(Category.Force.RED,\n\t\t\t\t\tCategory.Environment.SURFACE, Category.Type.FISHING_VESSEL));\n\t\t\tfisher2.setStatus(fisherStat);\n\t\t\tfisher2.setDecisionModel(fishWander);\n\t\t\tfisher2.setMovementChars(SurfaceMovementCharacteristics.getSampleChars());\n\n\t\t\tCoreScenario cs = new CoreScenario();\n\t\t\tcs.setScenarioStepTime(5000);\n\t\t\tcs.addParticipant(helo.getId(), helo);\n\t\t\tcs.addParticipant(fisher2.getId(), fisher2);\n\n\t\t\t// ok. just do a couple of steps, to check how things pan out.\n\t\t\tcs.step();\n\n\t\t\tSystem.out.println(\"started at:\" + cs.getTime());\n\n\t\t\tDebriefReplayObserver dro = new DebriefReplayObserver(\"./test_reports/\",\n\t\t\t\t\t\"investigate_search.rep\", false, true, true, null, \"plotter\", true);\n\t\t\tTrackPlotObserver tpo = new TrackPlotObserver(\"./test_reports/\", 300,\n\t\t\t\t\t300, \"investigate_search.png\", null, false, true, false, \"tester\",\n\t\t\t\t\ttrue);\n\t\t\tdro.setup(cs);\n\t\t\ttpo.setup(cs);\n\t\t\t//\n\t\t\tdro.outputThisArea(theArea);\n\n\t\t\tInvestigateStore theStore = Investigate._invData.firstStore();\n\n\t\t\t// now run through to completion\n\t\t\tint counter = 0;\n\t\t\twhile ((cs.getTime() < 12000000)\n\t\t\t\t\t&& (theStore.getCurrentTarget(23) == null))\n\t\t\t{\n\t\t\t\tcs.step();\n\t\t\t\tcounter++;\n\t\t\t}\n\n\t\t\t// so, we should have found our tartget\n\t\t\tassertNotNull(\"found target\", theStore.getCurrentTarget(23));\n\n\t\t\t// ok. we've found it. check that we do transition to detected\n\t\t\tcounter = 0;\n\t\t\twhile ((counter++ < 100) && (theStore.getCurrentTarget(23) != null))\n\t\t\t{\n\t\t\t\tcs.step();\n\t\t\t}\n\n\t\t\tdro.tearDown(cs);\n\t\t\ttpo.tearDown(cs);\n\n\t\t\t// so, we should have cleared our tartget\n\t\t\tassertNull(\"found target\", theStore.getCurrentTarget(23));\n\t\t\tassertEquals(\"remembered contact\", 1, theStore.countDoneTargets());\n\n\t\t}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\n\t\t\t public void AnonymousGasSmrCR_singleregister_alreatchecked(){\n\t\t\t\tReport.createTestLogHeader(\"Anonymous SMR\", \"Verify whether the anonymous Gas customer is able to do SMR journey\");\n\t\t\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRGasCRdata\");\n\t\t\t\tCrmUserProfile crmuserProfile = new TestDataHelper().getCrmUserProfile(\"CrmDetailsforSMR\");\n\t\t\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"ViewuserVerifynew\");\t\t\n\t\t\t new SubmitMeterReadAction()\n\t\t\t .openSMRpageCRGas(\"Gas\")\t\t\t \n\t\t\t .verifyAnonymousSAPGasCus_CR_Multiplereg_newuser_alertchecked(smrProfile) ;\n\t\t\t // .VerifySAPCRM_SMR(crmuserProfile,userProfile,smrProfile);\n\t\t\t \t}",
"@Override\n protected void executeTest() {\n ClientConnection<Event> harry = register(0, \"Harry\", this.monstertype, \"Active\", 1, 0);\n ClientConnection<Event> statist23 = register(1, \"Statist23\", CreatureType.KOBOLD, \"Passive\", 0, 0);\n\n assertRegisterEvent(harry.nextEvent(), 1, \"Statist23\", CreatureType.KOBOLD, \"Passive\", 0, 0);\n assertRegisterEvent(statist23.nextEvent(), 0, \"Harry\", this.monstertype, \"Active\", 1, 0);\n\n // round 1 begins\n assertRoundBegin(assertAndMerge(harry, statist23), 1);\n\n for (int i = 0; i < this.stepsBeforeTurn; i++) {\n assertActNow(assertAndMerge(harry, statist23), 0);\n harry.sendMove(Direction.EAST);\n assertMoved(assertAndMerge(harry, statist23), 0, Direction.EAST);\n }\n assertActNow(assertAndMerge(harry, statist23), 0);\n harry.sendMove(this.lastDirection);\n assertKicked(assertAndMerge(harry, statist23), 0);\n\n assertActNow(assertAndMerge(harry, statist23), 1);\n statist23.sendDoneActing();\n assertDoneActing(assertAndMerge(harry, statist23), 1);\n\n assertRoundEnd(assertAndMerge(harry, statist23), 1, 0);\n assertWinner(assertAndMerge(harry, statist23), \"Passive\");\n }",
"public static void runAllTests() {\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL());\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL(new String [] {\"100\"}));\n\t}",
"public static void testIt () {\r\n\t\tjunit.textui.TestRunner.run (suite());\r\n\t}",
"public void Run(){\n\t\t_TEST stack = new _TEST();\t\t/* TEST */\n\t\tstack.PrintHeader(ID,\"\", \"\");\t/* TEST */\n\t\t\n\t\tSetStatus(Status.RUNNING);\n\t\t\n\t\tstack.PrintTail(ID,\"\", \"\"); \t/* TEST */\n\t\t\n\t}",
"@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testTRUSS() {\n CuteNetlibCase.doTest(\"TRUSS.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }",
"@Test\r\n public void testRentOut() {\r\n }",
"@Test\n\tpublic void test1() {\n\t\tSystem.out.println(\"I am Test 1\");\n\t}",
"@Test public void runCommonTests() {\n\t\trunAllTests();\n\t}",
"public void\n performTest\n ( \n BaseMasterExt ext\n )\n throws PipelineException\n {\n ext.preUnpackTest(pPath, pAuthor, pView, pReleaseOnError, pActionOnExistence,\n pToolsetRemap, pSelectionKeyRemap, pLicenseKeyRemap, pHardwareKeyRemap); \n }",
"@Test\n public void testMain() throws Exception {\n //main function cannot be tested as it is dependant on user input\n System.out.println(\"main\");\n }",
"public void testSpock(){\n }",
"@Test\n public void testRun_Complex_Execution() {\n // TODO: TBD - Exactly as done in Javascript\n }",
"@Test\r\n public void testRent() {\r\n }",
"public void\n performTest\n ( \n BaseMasterExt ext\n )\n throws PipelineException\n {\n ext.preOfflineTest(pVersions);\n }",
"public void runBare() throws Throwable {\n Throwable exception= null;\n setUp();\n try {\n runTest();\n } catch (Throwable running) {\n exception= running;\n }\n finally {\n try {\n tearDown();\n } catch (Throwable tearingDown) {\n if (exception == null) exception= tearingDown;\n }\n }\n if (exception != null) throw exception;\n }",
"public static void selfTest() {\n\talarmTest1();\n\t// Invoke your other test methods here ...\n }",
"public void run(TestCase testCase) {\n }",
"@Test\n public void main() {\n System.out.println(\"main\");\n String[] args = null;\n SaalHelper.main(args);\n }",
"public void warmup(TestCase testCase) { \n run(testCase);\n }",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyAnonymousGasCustomer()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the anonymous SMR page for Gas customer\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRGasUserforsingleMeter\");\n new SubmitMeterReadAction()\n .openSMRpage(\"Gas\")\n .verifyServiceDeskCustomerGas(smrProfile); \n}",
"@Test\n public void fightShredderTest() {\n }",
"@LargeTest\n public void testGrain() {\n TestAction ta = new TestAction(TestName.GRAIN);\n runTest(ta, TestName.GRAIN.name());\n }",
"private void runSingleTest(final RunNotifier notifier, final TestCandidate c) {\n notifier.fireTestStarted(c.description);\n \n if (isIgnored(c)) {\n notifier.fireTestIgnored(c.description);\n return;\n }\n \n Set<Thread> beforeTestSnapshot = threadsSnapshot();\n Object instance = null;\n try {\n // Get the test instance.\n if (c.instance instanceof DeferredInstantiationException) {\n throw ((DeferredInstantiationException) c.instance).getCause();\n } else {\n instance = c.instance;\n }\n \n // Run @Before hooks.\n for (Method m : getTargetMethods(Before.class))\n invoke(m, instance);\n \n // Collect rules and execute wrapped method.\n runWithRules(c, instance);\n } catch (Throwable e) {\n boolean isKilled = runnerThreadGroup.isKilled(Thread.currentThread());\n \n // Check if it's the runner trying to kill the thread. If so,\n // there is no point in reporting such an exception back. Also,\n // if the thread's been killed, we will not run any hooks (this is\n // pretty much a situation in which the world ends).\n if (isKilled && (e instanceof ThreadDeath)) {\n // TODO: System.exit() wouldn't run any post-cleanup on hooks. A better\n // way to resolve this would be to mark a global condition to ignore\n // all the remaining tests (fail with an assumption exception saying\n // there's a boogieman around or something).\n return;\n }\n \n // Augment stack trace and inject a fake stack entry with seed information.\n if (!isKilled) {\n e = augmentStackTrace(e);\n if (e instanceof AssumptionViolatedException) {\n notifier.fireTestAssumptionFailed(new Failure(c.description, e));\n } else {\n notifier.fireTestFailure(new Failure(c.description, e));\n }\n }\n }\n \n // Run @After hooks if an instance has been created.\n if (instance != null) {\n for (Method m : getTargetMethods(After.class)) {\n try {\n invoke(m, instance);\n } catch (Throwable t) {\n t = augmentStackTrace(t);\n notifier.fireTestFailure(new Failure(c.description, t));\n }\n }\n }\n \n // Dispose of resources at test scope.\n RandomizedContext.current().closeResources(\n new ResourceDisposal(notifier, c.description), LifecycleScope.TEST);\n \n // Check for run-away threads at the test level.\n ThreadLeaks tl = onElement(ThreadLeaks.class, defaultThreadLeaks, c.method, suiteClass);\n checkLeftOverThreads(notifier, LifecycleScope.TEST, tl, c.description, beforeTestSnapshot);\n \n // Process uncaught exceptions, if any.\n runnerThreadGroup.processUncaught(notifier, c.description);\n }",
"public static void main(String[] args) {\n\t\trun();\n\t\t//runTest();\n\n\t}",
"@Test\n\tpublic void testMain() {\n\t}",
"@Test\r\n\tpublic void testSanity() {\n\t}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyThankYouSurveyInAnonymousSMR(){\t\t\t\t\t\t \n\t Report.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the anonymous SMR page for Gas customer\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRUser\");\n\tnew SubmitMeterReadAction()\n\t.openSMRpage(\"Gas\")\n\t.verifyAnonymousSAPGasCustomer(smrProfile)\t\t\n\t//.verifySapIsu(smrProfile)\n\t.verifyMeterReadConfirmation(smrProfile);\n\t//.verifyThankYouSurveyPage(smrProfile);\n\t//.verifyAnonymousSAPGasCustomer(smrProfile);\n\n\n}",
"@Test\n public void simpleUse(){\n }",
"public void TestMain(){\n SampleStatements();\n TestMyPow();\n }",
"private void runTest(String path, int key){\n\t\t\n\t\tsaveTestList(path); \n\t\tgetSelectedPanel().clearResults();\n\t\tcontroller.runTest(path,key);\n\t}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifySAPElectricCustomer_old()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the SAP SMR page for Electric customer\");\nSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRElectricityUserforsingleMeter\");\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage(\"Electricity\")\n\t\t//.verifyAnonymousSAPElecCustomersRewrite(smrProfile)\n\t\t.verifyAnonymousSAPElectricCustomers(smrProfile)\n\t\t.verifyLeadTable(smrProfile);\n\t\n}",
"@Test\n\tvoid test() {\n\t\t\n\t}",
"protected void runTestCase(Statement testRoutine) throws Throwable {\n Throwable e = null;\n setUp();\n try {\n runTest(testRoutine);\n } catch (Throwable running) {\n e = running;\n } finally {\n try {\n tearDown();\n } catch (Throwable tearingDown) {\n if (e == null) e = tearingDown;\n }\n }\n if (e != null) throw e;\n }",
"public void testSingleTask()\n throws Exception {\n checkNumPersistedTasks(0);\n \n // Schedule a single-execution task\n TestTask task = new TestTask();\n long now = System.currentTimeMillis();\n task.setExecTime(new Date(now + 1000));\n Mailbox mbox = TestUtil.getMailbox(USER_NAME);\n task.setMailboxId(mbox.getId());\n ScheduledTaskManager.schedule(task);\n \n // Make sure the task is persisted\n checkNumPersistedTasks(1);\n Thread.sleep(1250);\n \n assertEquals(\"TestTask was not called\", 1, task.getNumCalls());\n checkNumPersistedTasks(0);\n }",
"public static void runTests() {\n\t\tResult result = JUnitCore.runClasses(TestCalculator.class);\n\n\t}",
"@Test\n public void testTimelyTest() {\n }",
"public static void cover() {\n\t\tSystem.out.println(\"cover method\");\n\t\ttest();\n\t}",
"protected void doStressTest(String sTest, String sCacheMain, String sCacheAux,\n ValueExtractor extractor, CompositeKeyCreator keyCreator,\n int nServers, int cRollingRestart)\n {\n try\n {\n System.setProperty(\"coherence.distributed.localstorage\", \"false\");\n _startup();\n doStressTest_(sTest, sCacheMain, sCacheAux, extractor, keyCreator, nServers, cRollingRestart);\n }\n finally\n {\n _shutdown();\n }\n }",
"public void test() {\n\t}",
"@Override\n public void setTestUnit(){ sorcerer1 = new Sorcerer(10,5,new Location(0,0));}",
"protected void runBeforeTest() {}",
"@Test\n public void test() {\n\n testBookExample();\n // testK5();\n // testK3_3();\n }",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifySAPElecCustomer()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the SAP SMR page for Electricity customer\");\n//SMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRGasUserforsingleMeter\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRElectricityUserforsingleMeter\");\n\t\t new SubmitMeterReadAction()\n\t\t .openSMRpage(\"Electricity\")\n\t\t.verifyAnonymousSAPElecCustomersRewrite(smrProfile);\n}",
"private void test() {\n\n\t}",
"@Test\r\n void testMistrustAlwaysCooperate() {\r\n AlwaysCooperate testStrat = new AlwaysCooperate();\r\n Mistrust testStrat2 = new Mistrust();\r\n ArrayList<Integer> payoffs = new ArrayList<>(Arrays.asList(3, 5, 0, 1));\r\n Game game = new Game(testStrat, testStrat2, 3, payoffs);\r\n game.playGame();\r\n assertEquals(testStrat2.getPoints(), 11, \"Mistrust strategy not functioning correctly\");\r\n }",
"private void runAllTests(){\n System.out.println(\"------ RUNNING TESTS ------\\n\");\n testAdd(); // call tests for add(int element)\n testGet(); // tests if the values were inserted correctly\n testSize(); // call tests for size()\n testRemove(); // call tests for remove(int index)\n testAddAtIndex(); // call tests for add(int index, int element)\n\n // This code below will test that the program can read the file\n // and store the values into an array. This array will then be sorted\n // by the insertionSort and it should write the sorted data back into the file\n\n testReadFile(); // call tests for readFile(String filename)\n testInsertionSort(); // call tests for insertionSort()\n testSaveFile(); // call tests for saveFile(String filename)\n System.out.println(\"\\n----- TESTING COMPLETE ----- \");\n }",
"public void run() {\n super.run();\n if (needToExit((TestSuite)this.suite)) {\n Log.log(J2meTestRunner.class, \"Exit requested\");\n if (midlet instanceof CoverageReporter) {\n CoverageManager.writeReport(\"file://localhost/\");\n }\n midlet.notifyDestroyed();\n }\n }",
"@Test\n public void test9MLog_Siebel_SingleRun() throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IOException, IllegalAccessException {\n String logPath_base = \"/home/xiaohe/workspace/DATA/FakeData4TestingPerf/Pub_fake.log\";\n// Common.testLog_multiTimes(logPath_base, 5, true); //eager eval\n\n// Common.testLog_multiTimes(logPath_base, 1, false); //lazy eval\n\n// String logPath_base = \"/home/xiaohe/workspace/DATA/ldccComplete_MonpolyStyle\";\n\n String[] args = new String[]{\"./test/count/insert.sig\", \"./test/count/insert.fl\", logPath_base};\n Main.main(args);\n\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 }",
"@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\ttest(tests);\n }",
"public void run() {\n block5 : {\n if (this.testMethod.isIgnored()) {\n this.notifier.fireTestIgnored(this.description);\n return;\n }\n this.notifier.fireTestStarted(this.description);\n try {\n long timeout = this.testMethod.getTimeout();\n if (timeout > 0) {\n this.runWithTimeout(timeout);\n break block5;\n }\n this.runTest();\n }\n finally {\n this.notifier.fireTestFinished(this.description);\n }\n }\n }",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyAnonymousElectricCustomer()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the anonymous SMR page for Electric customer\");\nSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRElectricityUserforsingleMeter\");\n\nnew SubmitMeterReadAction()\n\t.openSMRpage(\"Electricity\")\n\t.verifyElectricityServiceDeskCustomer(smrProfile)\n\t.verifyLeadTable(smrProfile); \t\n}",
"public final void doTest() {\n\n constructTestPlan();\n calculator.start();\n resultViewer.start();\n\n // Run Test Plan\n getJmeter().configure(testPlanTree);\n ((StandardJMeterEngine)jmeter).run();\n }",
"private JumbleResult runInitialTests(List testClassNames) {\n mMutationCount = countMutationPoints();\n if (mMutationCount == -1) {\n return new InterfaceResult(mClassName);\n }\n \n Class[] testClasses = new Class[testClassNames.size()];\n for (int i = 0; i < testClasses.length; i++) {\n try {\n testClasses[i] = Class.forName((String) testClassNames.get(i));\n } catch (ClassNotFoundException e) {\n // test class did not exist\n return new MissingTestsTestResult(mClassName, testClassNames, mMutationCount);\n }\n }\n \n try {\n // RED ALERT - heinous reflective execution of the initial tests in\n // another classloader\n assert Debug.println(\"Parent. Starting initial run without mutating\");\n MutatingClassLoader jumbler = new MutatingClassLoader(mClassName, createMutater(-1));\n Class suiteClazz = jumbler.loadClass(\"jumble.fast.TimingTestSuite\");\n Object suiteObj = suiteClazz.getDeclaredConstructor(new Class[] {List.class }).newInstance(new Object[] {testClassNames });\n Class trClazz = jumbler.loadClass(TestResult.class.getName());\n Class jtrClazz = jumbler.loadClass(JUnitTestResult.class.getName());\n Object trObj = jtrClazz.newInstance();\n suiteClazz.getMethod(\"run\", new Class[] {trClazz }).invoke(suiteObj, new Object[] {trObj });\n boolean successful = ((Boolean) trClazz.getMethod(\"wasSuccessful\", new Class[] {}).invoke(trObj, new Object[] {})).booleanValue();\n assert Debug.println(\"Parent. Finished\");\n \n // Now, if the tests failed, can return straight away\n if (!successful) {\n if (mVerbose) {\n System.err.println(trObj);\n }\n return new BrokenTestsTestResult(mClassName, testClassNames, mMutationCount);\n }\n \n // Set the test runtime so we can calculate timeouts when running the\n // mutated tests\n mTotalRuntime = ((Long) suiteClazz.getMethod(\"getTotalRuntime\", new Class[] {}).invoke(suiteObj, new Object[] {})).longValue();\n \n // Store the test suite information serialized in a temporary file so\n // FastJumbler can load it.\n Object order = suiteClazz.getMethod(\"getOrder\", new Class[] {Boolean.TYPE }).invoke(suiteObj, new Object[] {Boolean.valueOf(mOrdered) });\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(mTestSuiteFile));\n oos.writeObject(order);\n oos.close();\n \n } catch (RuntimeException e) {\n throw e;\n } catch (Exception e) {\n RuntimeException r = new IllegalStateException(\"Problem using reflection to set up run under another classloader\");\n r.initCause(e);\n throw r;\n }\n \n return null;\n }",
"@Test\r\n\tpublic void testGetFirst() {\n\t}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void siteNormalUptoAndAbove3Meters(){\n\tReport.createTestLogHeader(\"SubmitMeterRead\", \"Validates whether address displayed for particular meter is Site address for normal account for less than 3 meters\");\n\t SMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"MeterReadCollectiveAndElec\");\n\t new SubmitMeterReadAction()\n\t \t.BgbnavigateToLogin()\n\t .BgbloginDetails(smrProfile)\n\t .clickManageAccountLinkWithAccNo(smrProfile)\n\t .submitMeterReadLink(smrProfile)\n\t .smrNormalSite(smrProfile);\n}",
"public void test25() throws Exception {\n runTestInDirectory(\"regression\");\n }",
"@Test\n public void functionalityTest() {\n new TestBuilder()\n .setModel(MODEL_PATH)\n .setContext(new ModelImplementationGroup3())\n .setPathGenerator(new RandomPath(new EdgeCoverage(100)))\n .setStart(\"e_GoToPage\")\n .execute();\n }",
"@Test\n public void enemySustainMassiveDamage() {\n }",
"public SingleTestRunner(long id, PerfTest test) {\n this.test = test;\n this.id = id;\n }",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\n\t\t\t public void AnonymousGasSmrCR_singleregister_noalrertchecked(){\n\t\t\t\tReport.createTestLogHeader(\"Anonymous SMR\", \"Verify whether the anonymous Gas customer is able to do SMR journey without alret\");\n\t\t\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRGasCRdata\");\n\t\t\t new SubmitMeterReadAction()\n\t\t\t .openSMRpageCRGas(\"Gas\")\t\t\t \n\t\t\t .verifyAnonymousSAPGasCus_CR_Multiplereg_newuser_alretnonchecked(smrProfile); \n\t\t\t \t}",
"@Test\n public void testSuccess() {\n }",
"@Test\n\tpublic void bmainTestOne() {\n\t\tAssert.assertEquals(\"Test1\", \"Test1\");\n\t\tSystem.out.println(\"This is main Test 2\");\n\t}",
"public static void main(String[] args) {\r\n\r\n\t\ttry {\r\n\t\t\tDatabaseManager.setPatternNumber(1);\r\n\t\t\tDatabaseManager.getSingleton().openConnection();\r\n\r\n\t\t\tSingleTableCreator.dropAllTables();\r\n\t\t\tSingleTableCreator.createTables();\r\n\t\t\tSingleTableCreator.addTestRows();\r\n\r\n\t\t\tTestEVERYTHING.testRunAllTheTests();\r\n\r\n\t\t\tSystem.out.println(\"ya done diddly did it\");\r\n\r\n\t\t\tDatabaseManager.getSingleton().closeConnection();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tDatabaseException.detectError(e, \"Runnable - Single\");\r\n\t\t}\r\n\t}",
"@Test\n public void sidTest() {\n // TODO: test sid\n }",
"public SustainedTestCase(String name)\n {\n super(name);\n }",
"public void testDumbJUnit() {\n }",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void smrImplausibleMeterReadSubmitOverlayforSingleMeterAndSAPVerification(){\n\tReport.createTestLogHeader(\"SubmitMeterRead\", \"Validates whether the overlay appears for implausible meter read submission for one meter\");\n\t SMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"MeterReadCollectiveAndElec\");\n\t new SubmitMeterReadAction()\n\t \t .BgbnavigateToLogin()\n\t .BgbloginDetails(smrProfile)\n\t .clickManageAccountLinkWithAccNo(smrProfile)\n\t .submitMeterReadLink(smrProfile)\n\t .verifyMultiDialImplausibleReads(smrProfile)\n\t .submitButton()\n\t .overlay();\n}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void smrConfirmationPageWithinMRGas(){\n\tReport.createTestLogHeader(\"SubmitMeterRead\", \"Validates meter read submission and Email to customer\");\n\t SMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SMRLoggedin\");\n\t new SubmitMeterReadAction()\n\t \t .BgbnavigateToLogin()\n\t .BgbloginDetails(smrProfile)\n\t .clickManageAccountLinkWithAccNo(smrProfile)\n\t .submitMeterReadLink(smrProfile)\n\t .enterMultiDialReads(smrProfile)\n\t .overlay()\n\t .emailConfirmation()\n\t .verifyAuditLeadTable(smrProfile);\n}",
"@LargeTest\n public void testArtistic1() {\n TestAction ta = new TestAction(TestName.ARTISTIC_1);\n runTest(ta, TestName.ARTISTIC_1.name());\n }",
"@Test //covers loop test with one pass through the loop\n\tpublic void exampleTest() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"+5 Dexterity Vest\", 10, 20));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has decreased by one\n\t\tassertEquals(\"Failed quality for Dexterity Vest\", 19, quality);\n\t}",
"public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}",
"public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}",
"public void run() {\n assertEquals(sendQuery(\"SFO\"), 7);\n assertEquals(sendQuery(\"RHV\"), 1);\n assertEquals(sendQuery(\"xyzzy\"), 0);\n }",
"public static void main(String[] args) {\n\t\tdeferTest();\n\t}",
"@Ignore\r\n @Test\r\n public void speedTest() throws InterruptedException {\n for (int i = 0; i < 10; i++) {\r\n singleSpeedTest();\r\n }\r\n }"
] | [
"0.7007881",
"0.6695879",
"0.66712445",
"0.6583166",
"0.6484851",
"0.6252381",
"0.6215978",
"0.62072974",
"0.61911684",
"0.6185179",
"0.61444753",
"0.6135787",
"0.6125861",
"0.61159295",
"0.6115085",
"0.60742635",
"0.60374814",
"0.60239387",
"0.60184085",
"0.5981549",
"0.59728235",
"0.59721476",
"0.5968093",
"0.5961797",
"0.5931492",
"0.5930902",
"0.5915778",
"0.59118026",
"0.5902211",
"0.5889736",
"0.588738",
"0.5887162",
"0.58733773",
"0.58666396",
"0.58588994",
"0.58584446",
"0.5831679",
"0.5829006",
"0.5828921",
"0.5824566",
"0.58080894",
"0.57942337",
"0.57891124",
"0.57842565",
"0.5782808",
"0.57757723",
"0.5769558",
"0.57658565",
"0.57642704",
"0.57626325",
"0.57534313",
"0.57528263",
"0.5727881",
"0.5720582",
"0.57170075",
"0.5716873",
"0.57087165",
"0.57077587",
"0.57051694",
"0.56935585",
"0.5688066",
"0.56871593",
"0.5678025",
"0.56760186",
"0.56648725",
"0.5660433",
"0.5658343",
"0.56538624",
"0.564986",
"0.5648655",
"0.5641576",
"0.56390494",
"0.5637878",
"0.5635541",
"0.5630708",
"0.56249034",
"0.5623977",
"0.56201667",
"0.56175166",
"0.561146",
"0.5610486",
"0.56064487",
"0.56056315",
"0.5602958",
"0.5602428",
"0.55980897",
"0.55788285",
"0.55697507",
"0.5562541",
"0.5559939",
"0.55481225",
"0.55451936",
"0.5544933",
"0.55434424",
"0.55386335",
"0.5534235",
"0.55292946",
"0.55292946",
"0.5528182",
"0.5525269",
"0.5522893"
] | 0.0 | -1 |
Accepts a late joining client into this test case. The client will be enlisted with a control message with the 'CONTROL_TYPE' field set to the value 'LATEJOIN'. It should also provide values for the fields: CLIENT_NAME A unique name for the new client. CLIENT_PRIVATE_CONTROL_KEY The key for the route on which the client receives its control messages. | public void lateJoin(Message message) throws JMSException
{
throw new RuntimeException("Not implemented.");
/*
// Extract the joining clients details from its join request message.
TestClientDetails clientDetails = new TestClientDetails();
clientDetails.clientName = message.getStringProperty("CLIENT_NAME");
clientDetails.privateControlKey = message.getStringProperty("CLIENT_PRIVATE_CONTROL_KEY");
// Register the joining client, but do block for confirmation as cannot do a synchronous receivers during this
// method call, as it may have been called from an 'onMessage' method.
assignReceiverRole(clientDetails, new Properties(), false);
*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void joinNewClient() {\r\n\t\t\tString clientName = _clientView.getUserName();\r\n\t\t\tif(clientName == null)\r\n\t\t\t\treturn;\r\n\t\t\t_clientModel.connectToServer();\r\n\t\t\t_clientModel.joinChat(clientName);\r\n\t\t}",
"private void handleNewClientProxyEvent(NewClientProxyEvent event) throws AppiaEventException {\n \t\tevent.loadMessage();\n \t\tSystem.out.println(\"Received a new client from a server\");\n \n \t\t//Get the parameters\n \t\tString groupId = event.getClient().getGroup().id;\n \n \t\t//Add the client as a future client\n \t\tVsClientManagement.addAsFutureClient(groupId, event.getClient());\n \n \t\t//I ask if I have some client in that group\n \t\tif( VsClientManagement.hasSomeClientConnectedToServer(groupId, listenAddress)){\n \t\t\tSystem.out.println(\"I have clients to ask to shut up\");\n \n \t\t\t//I need to ask my attached clients for them to Block\t\n \t\t\tVsGroup group = VsClientManagement.getVsGroup(groupId);\n \t\t\tShutUpStubEvent shutUpEvent = new ShutUpStubEvent(groupId);\n \t\t\tsendStubEvent(shutUpEvent, group);\n \t\t}\n \n \t\t//If I don't have no clients in that group\n \t\telse{\n \t\t\tSystem.out.println(\"I have no clients for group: \" + groupId + \" so I can send the blockOk\");\n \n \t\t\t//Get my version for this group\n \t\t\tint viewVersion = VsClientManagement.getVsGroup(groupId).getCurrentVersion();\n \n \t\t\t//I may send directly the BlockOkProxy event to me and the other server\n \t\t\tBlockOkProxyEvent blockedOkProxy = new BlockOkProxyEvent(groupId, myEndpt, viewVersion);\n \t\t\tsendToOtherServers(blockedOkProxy);\n \t\t\tsendToMyself(blockedOkProxy);\n \t\t}\n \t}",
"Client join(Participant participant);",
"private void handleLeaveClientProxyEvent(LeaveClientProxyEvent event) throws AppiaEventException {\n \t\tevent.loadMessage();\n \t\tacquireClientsViewUpdateLock();\n \n \t\tSystem.out.println(\"A server said me that clients:\");\n \t\tfor(VsClient client : event.getFutureDeadClients()){\n \t\t\tSystem.out.println(client.getClientAddress());\n \t\t}\n \t\tSystem.out.println(\"are leaving from group: \" + event.getGroupId());\n \n \t\t//Get the parameters\n \t\tString groupId = event.getGroupId();\n \t\tList<VsClient> futureDeadClients = event.getFutureDeadClients();\n \n \t\tif(futureDeadClients.size() > 0){\n \t\t\t//This deads will also be our deads\n \t\t\tVsClientManagement.addFutureDead(futureDeadClients, groupId);\n \n \t\t\t//Remove the client from our list\t\n \t\t\tVsClientManagement.removeClient(futureDeadClients, groupId);\n \t\t\tVsClientManagement.printClients(groupId);\n \t\t}\n \n \t\t//I ask if I have some client in that group\n \t\tif( VsClientManagement.hasSomeClientConnectedToServer(groupId, listenAddress)){\n \t\t\tSystem.out.println(\"I have clients to ask to shut up\");\n \n \t\t\t//I need to ask my attached clients for them to Block\t\n \t\t\tVsGroup group = VsClientManagement.getVsGroup(groupId);\n \t\t\tShutUpStubEvent shutUpEvent = new ShutUpStubEvent(groupId);\n \t\t\tsendStubEvent(shutUpEvent, group);\n \t\t}\n \n \t\t//If I don't have no clients in that group\n \t\telse{\n \t\t\tSystem.out.println(\"I have no clients for group: \" + groupId + \" so I can send the blockOk\");\n \n \t\t\t//Get my version for this group\n \t\t\tint viewVersion = VsClientManagement.getVsGroup(groupId).getCurrentVersion();\n \n \t\t\t//I may send directly the BlockOkProxy event to me and the other server\n \t\t\tBlockOkProxyEvent blockedOkProxy = new BlockOkProxyEvent(groupId, myEndpt, viewVersion);\n \t\t\tsendToOtherServers(blockedOkProxy);\n \t\t\tsendToMyself(blockedOkProxy);\n \t\t}\n \t}",
"private void handleGroupInitStubEvent(GroupInitStubEvent event) throws AppiaEventException {\n \t\tevent.loadMessage();\n \n \t\tSystem.out.println(\"Received a new client connecting to me for group: \" + event.getGroup().id);\n \n \t\t//Let's get the arguments\n \t\tEndpt clientEndpt = event.getEndpoint();\n \n \n \t\t//Let's create the client\n \t\tVsClient newClient = new VsClient(clientEndpt, \n \t\t\t\tevent.getGroup(), (InetSocketAddress) event.source, listenAddress);\n \n \t\t//Let's warn everybody that a client wishes to Join\n \t\tNewClientProxyEvent newClientProxyEvent = new NewClientProxyEvent(newClient, clientEndpt);\n \t\tsendToOtherServers(newClientProxyEvent);\n \t\tsendToMyself(newClientProxyEvent);\n \t}",
"private void enterRoom() {\n connect();\n\n clientName = nameTextFiled.getText();\n try {\n toServer.writeInt(ENTERROOM);\n toServer.writeUTF(clientName);\n toServer.flush();\n report(\"Client ----> Server: \" + ENTERROOM + \" \" + clientId + \" \" + nameTextFiled.getText());\n\n clientFrame.setTitle(clientName);\n btnNewGame.setEnabled(true);\n\n// loginPanel.setVisible(false);\n// centerPanel.setVisible(true);\n // disable the login frame component\n nameTextFiled.removeActionListener(clientAction);\n nameTextFiled.setEnabled(false);\n btnEnterRoom.removeActionListener(clientAction);\n btnEnterRoom.setEnabled(false);\n\n // close the login frame\n loginFrame.setVisible(false);\n loginFrame.dispose();\n\n // open the client frame\n clientFrame.setVisible(true);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void addLisenter(DuduClient client)\n {\n\n }",
"Client createNewClient(Client client);",
"@Test\n public void whenSendOtherMessageThenOracleDontUnderstand() {\n this.testClient(\n Joiner.on(LN).join(\n \"Hello, dear friend, I'm a oracle.\",\n \"\",\n \"I don't understand you.\",\n \"\",\n \"\"\n ),\n Joiner.on(LN).join(\n \"Hello oracle\",\n \"How're you?\",\n \"Exit\",\n \"\"\n )\n );\n }",
"public void addNewClient(NicknameRequest message, ClientHandler clientHandler) {\n\n VirtualView virtualView = new VirtualView(clientHandler);\n String nickname = message.getSenderUsername();\n\n //first player logged in\n if (clientHandlerMap.size() == 0) {\n\n clientHandlerMap.put(nickname, clientHandler);\n onMessage(message);\n clientHandler.setNickname(nickname);\n gameManager.addVirtualView(nickname, virtualView);\n virtualView.showLoginOutput(true, true, false);\n virtualView.askPlayerNumber();\n }\n\n //first player already connected.\n else if (isSizeSet) {\n\n RealPlayer potentialFound = findRegisteredMatch(nickname);\n\n //First: check if it's a known name.\n if (potentialFound != null) {\n\n //Second: check if the player is disconnected.\n if (!potentialFound.getPlayerState().isConnected()) {\n\n //The player matched is currently offline, he can reconnect.\n clientHandlerMap.put(nickname, clientHandler);\n reconnectKnownPlayer(nickname, virtualView);\n }\n\n //The player who has the same name is currently connected. Nickname rejected.\n else if (potentialFound.getPlayerState().isConnected()) {\n\n virtualView.showError(\"Name already in use, join with a different one!\");\n clientHandler.sameNameDisconnect();\n }\n }\n\n if (potentialFound == null) {\n\n //The nickname is not known. If the game hasn't started yet he can connect.\n if(!gameManager.isGameStarted()) {\n\n clientHandlerMap.put(nickname, clientHandler);\n gameManager.addVirtualView(nickname, virtualView);\n onMessage(message);\n clientHandler.setNickname(nickname);\n virtualView.showLoginOutput(true, true, false);\n\n } else {\n\n //Nickname not known but game started, connection can't happen.\n virtualView.showError(\"The game is started, you can't connect now!\");\n clientHandler.disconnect();\n }\n }\n } else {\n\n //Joining when the game is being set is forbidden.\n virtualView.showError(\"You can't join when the lobby is being set!\");\n clientHandler.disconnect();\n }\n }",
"public void addClient() {\n String name = getToken(\"Enter client company: \");\n String address = getToken(\"Enter address: \");\n String phone = getToken(\"Enter phone: \");\n Client result;\n result = warehouse.addClient(name, address, phone);\n if (result == null) {\n System.out.println(\"Client could not be added.\");\n }\n System.out.println(result);\n }",
"public void clientResolved (Name username, ClientObject clobj) {\n BootstrapData data = new BootstrapData();\n data.clientOid = clobj.getOid();\n data.services = EditorServer.invmgr.bootlist;\n\n // and configure the client to operate using the server's\n // distributed object manager\n _client.getContext().getClient().gotBootstrap(\n data, EditorServer.omgr);\n }",
"@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}",
"@Override public void clientAcceptIncomingGame(Rental rental)\r\n throws RemoteException, SQLException {\r\n gameListClientModel.clientAcceptIncomingGame(rental);\r\n }",
"private boolean joinGame() throws RemoteException{\n\t\tgui.showLoginWindow(playerDetails);\n\n\t\twhile(!gui.isUserDataAvailable()){\n\t\t\t// wait for user to enter details\n\t\t\tDebug.log(\"MainMenu\", \"waiting for player details\");\n\t\t\ttry{\n\t\t\t\tThread.sleep(1000);\n\t\t\t}catch(InterruptedException e){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t}\n\t\t}\n\t\tplayerDetails = gui.getPlayerDetails();\n\t\tDebug.log(\"MainMenu\", \"player details received!\");\n\n\t\tif(playerDetails == null) quitGame(false); // quit if player declined/cancelled to enter details\n\n\t\t/* Get preferred position */\n\t\tpreferredPosition = gui.getPreferredPosition();\n\n\t\t/* Register this client as Callback */\n\t\treturn server.connect(this, myHost, myPort, preferredPosition, false, playerDetails.getFirstName(), playerDetails.getSurname(),\n\t\t\t\tplayerDetails.getAddress(), playerDetails.getPhone(), playerDetails.getUsername(), playerDetails.getPassword());\n\t}",
"public void newLobby(ClientHandler firstClient, String nickname, int number) {\n clientToNames.put(firstClient, nickname);\n namesToClient.put(nickname, firstClient);\n nicknames.add(nickname);\n firstClient.setNickname(nickname);\n view.setNamesToClient(nickname, firstClient, false);\n\n firstClient.registerObserver(this);\n view.registerObserver(this);\n\n System.out.println(nickname + \" has joined the lobby number \" + lobbyID);\n\n playersNumber = number;\n\n System.out.println(\"The lobby number \"+ lobbyID +\" will contain \" + playersNumber + \" players\");\n\n view.waitingRoom(firstClient);\n\n firstClient.send(new InitialSetup());\n }",
"public void add(ClientHandler clientHandler, String nickname) {\n clientHandler.setNickname(nickname);\n\n for(String nick: nicknames){\n namesToClient.get(nick).send(new SendMessage(Constants.ANSI_BLUE + nickname + \" joins the game. \"+(nicknames.size()+1)+\" players have already joined this Lobby.\"+Constants.ANSI_RESET));\n }\n\n clientToNames.put(clientHandler, nickname);\n namesToClient.put(nickname, clientHandler);\n nicknames.add(nickname);\n view.setNamesToClient(nickname, clientHandler, false);\n\n clientHandler.registerObserver(this);\n\n if(nicknames.size()<playersNumber){\n view.waitingRoom(clientHandler);\n } else {\n view.waitingRoom(clientHandler);\n view.prepareTheLobby();\n }\n\n System.out.println(nickname + \" has joined the lobby number \" + lobbyID);\n\n clientHandler.send(new InitialSetup());\n }",
"private void select(ActionEvent e){\r\n // Mark this client as an existing client since they are in the list\r\n existingClient = true;\r\n // To bring data to Management Screen we will modify the text fields\r\n NAME_FIELD.setText(client.getName());\r\n ADDRESS_1_FIELD.setText(client.getAddress1());\r\n ADDRESS_2_FIELD.setText(client.getAddress2());\r\n CITY_FIELD.setText(client.getCity());\r\n ZIP_FIELD.setText(client.getZip());\r\n COUNTRY_FIELD.setText(client.getCountry());\r\n PHONE_FIELD.setText(client.getPhone());\r\n // client.setAddressID();\r\n client.setClientID(Client.getClientID(client.getName(), client.getAddressID()));\r\n // Pass client information to Client Management Screen\r\n currClient = client;\r\n back(e);\r\n }",
"private void processInviteToEstablishControlSocket(final Message msg) {\n final String readString = \n (String) msg.getProperty(P2PConstants.SECRET_KEY);\n final byte[] readKey = Base64.decodeBase64(readString);\n final byte[] writeKey = CommonUtils.generateKey();\n final String sdp = (String) msg.getProperty(P2PConstants.SDP);\n final ByteBuffer offer = ByteBuffer.wrap(Base64.decodeBase64(sdp));\n final String offerString = MinaUtils.toAsciiString(offer);\n log.info(\"Processing offer: {}\", offerString);\n \n final OfferAnswer offerAnswer;\n try {\n offerAnswer = this.offerAnswerFactory.createAnswerer(\n new ControlSocketOfferAnswerListener(msg.getFrom(), readKey, writeKey), false);\n }\n catch (final OfferAnswerConnectException e) {\n // This indicates we could not establish the necessary connections \n // for generating our candidates.\n log.warn(\"We could not create candidates for offer: \" + sdp, e);\n \n final Message error = newError(msg);\n xmppConnection.sendPacket(error);\n return;\n }\n final byte[] answer = offerAnswer.generateAnswer();\n final long tid = (Long) msg.getProperty(P2PConstants.TRANSACTION_ID);\n \n // TODO: This is a throwaway key here since the control socket is not\n // encrypted as of this writing.\n final Message inviteOk = newInviteOk(tid, answer, writeKey);\n final String to = msg.getFrom();\n inviteOk.setTo(to);\n log.info(\"Sending CONTROL INVITE OK to {}\", inviteOk.getTo());\n XmppUtils.goOffTheRecord(to, xmppConnection);\n xmppConnection.sendPacket(inviteOk);\n \n offerAnswer.processOffer(offer);\n log.debug(\"Done processing CONTROL XMPP INVITE!!!\");\n }",
"public void updateClient(){\n\n System.out.println(\"Update client with ID: \");\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());\n System.out.println(\"Enter new characteristics: \");\n System.out.println(\"Name: \");\n String newName = bufferRead.readLine();\n System.out.println(\"Age: \");\n int newAge = Integer.parseInt(bufferRead.readLine());\n System.out.println(\"Membership type: \");\n String newMembershipType = bufferRead.readLine();\n\n Client newClient = new Client(newName, newAge, newMembershipType);\n newClient.setId(id);\n this.ctrl.updateClient(newClient);\n\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }",
"@FXML\n\tpublic void enableClient(ActionEvent event) {\n\t\tif (!txtIdDisableClient.getText().isEmpty()) {\n\t\t\tClient client = restaurant.returnClientId(txtIdDisableClient.getText());\n\t\t\tif (client != null) {\n\t\t\t\ttry {\n\t\t\t\t\tclient.setCondition(Condition.ACTIVE);\n\t\t\t\t\trestaurant.saveClientsData();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"El cliente ha sido habilitado\");\n\t\t\t\t\tdialog.setTitle(\"Cliente habilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t\ttxtIdDisableClient.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se ha podido guardar el nuevo estado del Cliente\");\n\t\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Este cliente no existe\");\n\t\t\t\tdialog.setTitle(\"Error, objeto no existente\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}",
"@Override\r\n \tpublic void clientConnectedCallback(RoMClient newClient) {\r\n \t\t// Add new client and start listening to this one\r\n \t\tthis.clients.addClient(newClient);\r\n \r\n \t\t// Create the ReceiveClientCommandThread for this client\r\n \t\tReceiveClientCommandThread receiveCommandThread = new ReceiveClientCommandThread(newClient, this, this);\r\n \t\treceiveCommandThread.start();\r\n \r\n \t\t// Create the CommandQueue Thread for this client\r\n \t\tClientCommandQueueThread commandQueueThread = new ClientCommandQueueThread(newClient);\r\n \t\tcommandQueueThread.start();\r\n \t}",
"@FXML\n private void handleNewClient() {\n \n boolean okClicked = mainApp.showNewClient();\n if (okClicked) {\n //refresh the list / select all in DB\n informationsClients.setItems(clientManager.getClientData());\n }\n }",
"void onAfterClientStateChange(Participant client, State previousState);",
"public static void sycNewTraderClient() {\n\t\tString key = \"123\";\n\t\ttry {\n\t\t\tif(newTradeServiceLock.tryLock(5, TimeUnit.SECONDS)){\n\t\t\t\ttry{\n\t\t\t\t\tif(mapTradeService.containsKey(key)){\n\t\t\t\t\t\t//客户端发起重连,但是服务端没有断开\n\t\t\t\t\t}\n\t\t\t\t}finally{\n\t\t\t\t\tnewTradeServiceLock.unlock();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.err.println(\"线程已经超时返回! key : \"+key);\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}",
"public void connectFinish(Client client) {\n dialog.dismiss();\n if (client != null) {\n game.setClient(client);\n showMessage(\"Connection established!\");\n EditText name = (EditText) findViewById(R.id.name);\n game.sendMessage(new PlayerDetailsMessage(name.getText().toString()));\n setupRoles();\n } else {\n showMessage(\"Connection failed...\");\n }\n }",
"@Override\n public void clientCompanyLeve(Messages.MarketClientCompanyQuit msg) {\n isLeaving = true;\n }",
"public PartnerAPICallbackHandler(Object clientData){\n this.clientData = clientData;\n }",
"public void initiate(TelnetClient client) {\n\t}",
"@Override\n public void onInitializeClient() {\n KeyBinding keyBinding = new KeyBinding(\n \"config.advancedchat.key.openlog\",\n InputUtil.Type.KEYSYM,\n GLFW.GLFW_KEY_Y,\n \"category.advancedchat.keys\"\n );\n KeyBindingHelper.registerKeyBinding(keyBinding);\n ClientTickEvents.START_CLIENT_TICK.register(s -> {\n if (keyBinding.wasPressed()) {\n // s.openScreen(new ExampleScreen());\n open();\n }\n });\n }",
"public abstract void onClientConnect(ClientWrapper client);",
"@Test\n public void shouldListExpectedClient() {\n OrgClientsListPage theClientsPage = open(OrgClientsListPage.class, organization.getName());\n theClientsPage.entriesContainer().shouldHave(text(client.getName()));\n }",
"public void updateClientParty()\n\t{\n\t\tfor(int i = 0; i < getParty().length; i++)\n\t\t\tupdateClientParty(i);\n\t}",
"public void initializeClientSkills()\n\t{\n\t\tServerMessage skillLevels = new ServerMessage(ClientPacket.SKILL_LVL_UP);\n\t\tskillLevels.addInt(getTrainingLevel());\n\t\tskillLevels.addInt(getBreedingLevel());\n\t\tskillLevels.addInt(getFishingLevel());\n\t\tskillLevels.addInt(getCoordinatingLevel());\n\t\tgetSession().Send(skillLevels);\n\t}",
"public void clientConnected(WonderlandClientSender sender, \n \t WonderlandClientID clientID, Properties properties) {\n \tlogger.fine(\"client connected...\");\n }",
"private void addClients() {\n while (true) {\n Client client = readClient();\n if (client == null || client.getId() < 0) {\n break;\n }\n try {\n ctrl.addClient(client);\n } catch (ValidatorException e) {\n e.printStackTrace();\n }\n }\n }",
"public void saluteTheClient(){\n Waiter w = (Waiter) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = w.getWaiterID();\n \tstate_fields[1] = w.getWaiterState();\n\n Message m_toServer = new Message(0, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n\t\t\t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n \t}\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n w.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }",
"public HandleClient(IndicatorServer s, IndicatorLink l) {\r\n\t\tthis.link = l;\r\n\t\tthis.server = s;\r\n\t}",
"private void newLeaseRequest(Messenger messenger) throws IOException {\r\n \r\n if (null == messenger) {\r\n if (LOG.isEnabledFor(Priority.WARN)) {\r\n LOG.warn(\"Could not get messenger for seed RDV\");\r\n }\r\n throw new IOException(\"Could not connect to seed RDV\");\r\n }\r\n\r\n Message msg = new Message();\r\n // The request simply includes the local peer advertisement.\r\n msg.replaceMessageElement(\"jxta\", new TextDocumentMessageElement(ConnectRequest, getPeerAdvertisementDoc(), null));\r\n messenger.sendMessage(msg, pName, pParam);\r\n }",
"public static void initializeClientList() {\r\n\t\tClient newClient1 = new Client(1, \"Bob Jones\", \"Brokerage\");\r\n\t\tclientList.add(newClient1);\r\n\t\t\r\n\t\tClient newClient2 = new Client(2, \"Sarah Davis\", \"Retirement\");\r\n\t\tclientList.add(newClient2);\r\n\t\t\r\n\t\tClient newClient3 = new Client(3, \"Amy Friendly\", \"Brokerage\");\r\n\t\tclientList.add(newClient3);\r\n\t\t\r\n\t\tClient newClient4 = new Client(4, \"Johnny Smith\", \"Brokerage\");\r\n\t\tclientList.add(newClient4);\r\n\t\t\r\n\t\tClient newClient5 = new Client(5, \"Carol Spears\", \"Retirement\");\r\n\t\tclientList.add(newClient5);\r\n\t}",
"public void addClient(Client newClient) {\r\n\t\tthis.allClients.add(newClient);\r\n\t}",
"public void joinGame(Socket clientSocket){\n\t\t//spawn a new thread that would listen to this client's requests\n\t\tClientListener listener = new ClientListener(clientSocket);\n\t\t\n\t\tsynchronized (joinGameLock) {\n\t\t\t//Will be used by session to get answers from client\n\t\t\tclientListeners.add(listener);\n\t\t\t\n\t\t\t//add socket to collection of connected clientSockets\n\t\t\tconnectedClientSockets.add(clientSocket);\n\t\t\t\n\t\t\t//start the clientListener thread to listen for game inputs\n\t\t\tlistener.start(); \n\t\t\t\n\t\t\tif(connectedClientSockets.size()==MIN_PLAYERS){\n\t\t\t\t//Session is ready to be started. Wake up the session thread to start game. \n\t\t\t\tjoinGameLock.notifyAll();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//signal the client that they have joined the gameSession\n\t\tString message = String.format(\"@joinAck %d\", this.sessionID);\n\t\tsendMsgToSocket(message, clientSocket);\n\t\t\n\t}",
"public void approveClient(Client client) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n client.setForbidden(false);\n dbb.overwriteClient(client);\n dbb.commit();\n dbb.closeConnection();\n }",
"public void makeClient() {\n try {\n clienteFacade.create(cliente);\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Cliente creado exitosamente\", null));\n } catch (Exception e) {\n System.err.println(\"Error en la creacion del usuario: \" + e.getMessage());\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_FATAL, e.getMessage(), null));\n }\n }",
"public void updateClient()\n\t{\n\t\t// TODO\n\t}",
"@FXML\n\tpublic void disableClient(ActionEvent event) {\n\t\tif (!txtIdDisableClient.getText().equals(\"\")) {\n\t\t\tClient client = restaurant.returnClientId(txtIdDisableClient.getText());\n\n\t\t\tif (client != null) {\n\n\t\t\t\ttry {\n\t\t\t\t\tclient.setCondition(Condition.INACTIVE);\n\t\t\t\t\trestaurant.saveClientsData();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"El cliente ha sido deshabilitado\");\n\t\t\t\t\tdialog.setTitle(\"Cliente Deshabilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t\ttxtIdDisableClient.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se ha podido guardar el nuevo estado del Cliente\");\n\t\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Este cliente no existe\");\n\t\t\t\tdialog.setTitle(\"Error, objeto no existente\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}",
"@Override\n public void initializeClient(Consumer<IClientItemExtensions> consumer) {\n super.initializeClient(consumer);\n consumer.accept(new IClientItemExtensions() {\n\n @Override\n public BlockEntityWithoutLevelRenderer getCustomRenderer()\n {\n return NarutoRenderEvents.NARUTO_RENDERER;\n }\n\n @Override\n public HumanoidModel getHumanoidArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlot armorSlot, HumanoidModel _default) {\n return armorModel;\n }\n });\n }",
"public void create(Client client) {\n\n try {\n try {\n Subject.doAs(LoginController.getLoginContext().getSubject(), new MyPrivilegedAction(\"CLIENT\", Permission.CREATE));\n super.saveOrUpdate(client);\n updateObservers(StringRessources.MSG_CLIENT_SUCCES);\n updateObservers(client);\n } catch (AccessControlException e) {\n e.printStackTrace();\n updateObservers(StringRessources.MSG_PRIVILEGES);\n }\n } catch (DataAccessLayerException e) {\n updateObservers(StringRessources.MSG_CLIENT_ERREUR);\n } catch (Exception e) {\n updateObservers(StringRessources.MSG_CLIENT_ERREUR);\n }\n }",
"void leave(Client client);",
"@Override\r\n\tpublic void addclient(Client client) {\n\t\t\r\n\t}",
"private void displayNewClient(final MeshDisplayClient clientToDisplay) {\n \tMeshDisplayControllerApplictaion appObject = (MeshDisplayControllerApplictaion)LiveMeshEventControllerActivity.this.getApplicationContext();\n \tMeshDisplayControllerEngine meshDisplayEngine = appObject.getAppMeshDisplayControllerEngine();\n\t\tif(clientToDisplay.id.equalsIgnoreCase(meshDisplayEngine.getReservedControllerName()) ) {\n\t\t\treturn;\n\t\t}\n\t\teventDisplayArea = (ViewGroup)findViewById(R.id.mainEventDisplayArea);\n\t\tLayoutInflater inflater = (LayoutInflater)getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tView clientPhoneView = inflater.inflate(R.layout.client_display_layout, null);\n\t\t\n\t\t//Create offset for display to stop it landing on top of the last one - should update to remove any\n\t\t//hard coded values\n\t\tint offsetMultiplier = clientDisplayMap.size();\n\t\tint viewWidth = 150; //clientPhoneView.getWidth();\n\t\tint viewHeight = 220; //clientPhoneView.getHeight();\n\t\tint topMargin = 50;\n\t\tint eventDisplayWidth = eventDisplayArea.getWidth();\n\t\tint eventDisplayHeight = eventDisplayArea.getHeight();\n\t\tint leftMargin = 50 + (viewWidth*(1+offsetMultiplier));\n\t\t\n\t\t//If the top row is full just add everything in the next row in approx the same location and\n\t\t//the user can drag them to where they want them\n\t\tif (leftMargin > (eventDisplayWidth - viewWidth)) {\n\t\t\tint randomAdjuster = 20 + (int)(Math.random() * ((50 - 20) + 1));\n\t\t\tleftMargin = 50 + randomAdjuster;\n\t\t\ttopMargin = 50 + viewHeight + 20 + randomAdjuster;\n\t\t}\n\n\t RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(150, 220);\n\t layoutParams.leftMargin = leftMargin;\n\t layoutParams.topMargin = topMargin;\n\t layoutParams.bottomMargin = -250;\n\t layoutParams.rightMargin = -250;\n\t clientPhoneView.setLayoutParams(layoutParams);\n\t \n\t //Set the client id display\n\t TextView clientIdTextView = (TextView)clientPhoneView.findViewById(id.clientIDTextView);\n\t clientIdTextView.setText(clientToDisplay.id);\n\t \n\t //Set the text to display in the edit text and set the edit text listener\n\t EditText displayEditText = (EditText)clientPhoneView.findViewById(id.clientDisplayEditText);\n\t displayEditText.setText(clientToDisplay.textToDisplay);\n\t displayEditText.addTextChangedListener(new TextWatcher(){\n\t public void afterTextChanged(Editable s) {\n\t \t//New text entered - create a new task to send the text to the server\n\t \tLog.d(\"LiveMeshEventControllerActivity displayEditText.addTextChangedListener\", \"Text changed: \" + s.toString());\n\t \tString newText = s.toString();\n\t \tif (TextUtils.isEmpty(newText)) {\n\t \t\tnewText = \"%20\";\n\t \t}\n\t \tLog.d(\"LiveMeshEventControllerActivity displayEditText.addTextChangedListener\", \"newText: \" + s.toString());\n\t \tsetTextTask = new SetTextForDeviceTask();\n\t \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n\t \t\tsetTextTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, clientToDisplay.id, newText);\n\t \t} else {\n\t \t\tsetTextTask.execute(clientToDisplay.id, newText);\n\t \t}\n\n\t }\n\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t });\n\n\t clientPhoneView.setOnTouchListener(this);\n\t eventDisplayArea.addView(clientPhoneView);\n\t clientDisplayMap.put(clientToDisplay.id, clientPhoneView);\n\t}",
"public void reAdd(ClientHandler client, String nickname) {\n client.setNickname(nickname);\n\n for(String nick : nicknames) {\n namesToClient.get(nick).send(new SendMessage(nickname + \" is back.\"));\n }\n\n clientToNames.put(client, nickname);\n namesToClient.put(nickname, client);\n nicknames.add(nickname);\n view.setNamesToClient(nickname, client, true);\n\n playersNumber++;\n\n client.registerObserver(this);\n\n System.out.println(nickname + \" is back in the lobby number \" + lobbyID);\n }",
"@Override\n\tpublic void createClient() {\n\t\t\n\t}",
"void clientConnected(Client client);",
"private void bluetoothClientProcessing(){\n\n\t\tif( client != null ){\n\t\t\tbyte keyReceive = client.receiveByte() ;\n\n\t\t\tif( keyReceive == DataTransmiting.SOFTKEY_RIGHT ||\n\t\t\t\tkeyReceive == DataTransmiting.KEY_FIRE\t){\n \n\t\t\t\tshouldStop=true;\n\t // midlet.setCurrLevel(currlevel);+\n\t midlet.playGameAgain( currlevel ,isBluetoothMode );\n\n\t\t\t}\n\t\t\telse if( keyReceive == DataTransmiting.MESSAGE_EXIT_GAME ){\n\t\t\t\tmidlet.setAlert(\"The device disconnected\") ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrlevel = keyReceive ;\n\t\t\t}\n\t\t\t\n\n\t\t}\n\t}",
"public void situateRequest(LoginRequest login, int clientRevision) {\n Response resp = responseFor(login);\n if(resp == Response.LOGIN) {\n PlayerDefinition def = login.getCredentials().toDefinition();\n def = LoadableContext.load(def);\n ReferencedPerson r = null;\n if(def != null)\n r = loginSession.getPlayer(def.getStaticIndex());\n if(r != null) {\n r.setUsername(def.getUsername());\n resp = Response.ONLINE;\n } else\n resp = def == null ?\n Response.INVALID_DETAILS : currentlyLogging.contains(def.getUsername()) ?\n Response.ONLINE : Response.LOGIN;\n if(resp == Response.LOGIN) {\n Player player = protocol.createPlayer(login, def);\n if(!managingCommercialRequest(player, login)) {\n finishPlayerLogin(resp, player);\n }\n return;\n }\n }\n AbstractProtocol.sendLoginResponse(login, resp);\n }",
"public ClientEditPage createNewClient() throws Exception {\n if (isNotAt()) {\n goTo();\n }\n newClientButton.click();\n Thread.sleep(Browser.getDelayAfterNewItemClick());\n return Pages.getClientEditPage();\n }",
"private void handleLeaveStubEvent(LeaveStubEvent event) throws AppiaEventException {\n \t\tevent.loadMessage();\n \n \t\t//See if I can have now leave events\n \t\tacquireClientsViewUpdateLock();\n \n \t\tSystem.out.println(\"Removing client: \" + event.getEndpoint() + \" from group: \" + event.getGroupId());\n \n \t\t//Lets get the neccessary arguments\n \t\tString groupId = event.getGroupId();\n \t\tVsClient vsClient = VsClientManagement.getVsGroup(groupId).getVsClient(event.getEndpoint());\n \n \t\t//Let's warn everybody that a client wishes to leave\n \t\tLeaveClientProxyEvent leaveProxyEvent = new LeaveClientProxyEvent(vsClient, groupId);\n \t\tsendToOtherServers(leaveProxyEvent);\n \t\tsendToMyself(leaveProxyEvent);\n \t}",
"@Test(priority = 6, enabled = false)\n\tpublic void deActivateClientTest() throws IOException, InterruptedException, AWTException {\n\t\tString validateSearchResult = ac.deActivateClient();\n\t\tAssert.assertEquals(validateSearchResult, \"0\");\n\t}",
"@Test\n public void whenSendHalloThenReceivesAlsoGreets() {\n this.testClient(\n String.format(\"Hello, dear friend, I'm a oracle.%s%s\", LN, LN),\n Joiner.on(LN).join(\n \"Hello oracle\",\n \"Exit\",\n \"\"\n )\n );\n }",
"@FXML\n\tpublic void handleDevientClient(){\n\t\tselProspect = prospectTable.getSelectionModel().getSelectedItem();\n\t\tif (selProspect != null) {\n\t\t\tdevientClient = 1;\n\t\t\tClientOverviewController.presser = true;\n\t\t\tMenuPrincipaleController.a = 1;\n\t\t\t\n\t\t\tClient tempClient = new Client();\n\t\t\tboolean okClicked = mainApp.showClientFormulaire(tempClient);\n\t\t\t\n\t if (okClicked) {\n\t \tProspectOverviewController.devientClient = 0;\n\t mainApp.getProspectData().remove(selProspect);\n\t File file2 = mainApp.getProspectFilePath();\n\t if (file2 != null) {\n\t mainApp.saveProspectDataToFile(file2);}\n\t mainApp.showMenuClient();\n\t mainApp.getClientData().add(tempClient);\n\t Client.clientCompteur ++;\n\t \n\t }\n\t\t} else {\n\t\t\t// Si aucune ligne sélectionné, message d'erreur.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"Pas de sélection\");\n alert.setHeaderText(\"Aucun prospect sélectionner\");\n alert.setContentText(\"Veuillez sélectionner un prospect.\");\n alert.showAndWait();\n }\n\t}",
"private void loginClient() throws IOException {\n\t\tString instanceID = UUID.randomUUID().toString();\r\n\t\tString loginName = fromClient.readLine();\r\n\t\t\r\n\t\tif (clientTable.has(loginName)) {\r\n\t\t\tString password = fromClient.readLine();\r\n\t\t\t\r\n\t\t\tif (!clientTable.testPassword(loginName, password)) toClient.println(Commands.INVALID_PASSWORD);\r\n\t\t\telse {\r\n\t\t\t\tReport.behaviour(loginName + \" has connected\");\r\n\t\t\t\t\r\n\t\t\t\t//tells the client the connection was a success\r\n\t\t\t\ttoClient.println(Commands.CONNECTION_SUCCESS);\r\n\t\t\t\t\r\n\t\t\t\t//adds a running queue to the account\r\n\t\t\t\tclientTable.addQueue(loginName, instanceID);\r\n\t\t\t\t\r\n\t\t\t\t//create threads\r\n\t\t\t\tmakeThreads(loginName, instanceID);\r\n\t\t\t}\r\n\t\t} \r\n\t\t\r\n\t\t//send error messages if the login was unsuccessful\r\n\t\telse toClient.println(Commands.USER_NOT_FOUND);\r\n\t}",
"@FXML\n\tpublic void createClient(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString names = txtClientNames.getText();\n\t\tString surnames = txtClientSurnames.getText();\n\t\tString id = txtClientId.getText();\n\t\tString adress = txtClientAdress.getText();\n\t\tString phone = txtClientPhone.getText();\n\t\tString observations = txtClientObservations.getText();\n\n\t\tif (!names.equals(empty) && !surnames.equals(empty) && !id.equals(empty) && !adress.equals(empty)\n\t\t\t\t&& !phone.equals(empty) && !observations.equals(empty)) {\n\t\t\tcreateClient(names, surnames, id, adress, phone, observations, 1);\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"public void enableClient(){\r\n try{\r\n oos.writeObject(new DataWrapper(DataWrapper.CTCODE, new ControlToken(ControlToken.ENABLECODE)));\r\n oos.flush();\r\n } catch(IOException ioe) {\r\n ioe.printStackTrace();\r\n }\r\n }",
"public static void increaseNumberOfClients()\n {\n ++numberOfClients;\n }",
"protected void updateClient() throws IOException {\n System.out.print(\"Please enter new name => \");\n String newName = br.readLine();\n\n System.out.print(\"Please enter new second name => \");\n String surname = br.readLine();\n\n int age = inputAge();\n String email = inputEmail();\n String phone = inputPhone();\n\n if (clientService.updateClient(((ClientServiceImpl) clientService).getClientId(), newName, surname, age, email, phone)) {\n System.out.println(\"Client was updated\");\n } else {\n System.out.println(\"Client wasn't updated\");\n }\n\n }",
"@Test(priority = 5, enabled = false)\n\tpublic void SearchAddedClientTest() throws IOException, InterruptedException, AWTException {\n\t\tString validateSearchResult = ac.validatesClientsearchresult();\n\t\tAssert.assertEquals(validateSearchResult, \"1\");\n\t}",
"protected void serveClient() {\r\n\t\tif (lineIn == null || lineOut == null) {\r\n\t\t\tSystem.err.printf(\"I/O has not been set up.%n\");\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tString clientRequest;\r\n\t\t\t\tStringTokenizer args;\r\n\r\n\t\t\t\t// control loop, receiving client requests\r\n\t\t\t\twhile (!exitRecieved) {\r\n\t\t\t\t\t// PRESENT PROMPT\r\n\t\t\t\t\tsendMessage(PROMPT);\r\n\r\n\t\t\t\t\t// ACCEPT & PROCESS INPUT\r\n\t\t\t\t\tclientRequest = receiveMessage();\r\n\t\t\t\t\targs = new StringTokenizer(clientRequest);\r\n\t\t\t\t\tprocessCommand(args);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tSystem.err.printf(\"IO Error receiving client input: %s%n\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void initiateClient(){\n btnNewGame.addActionListener(clientAction);\n btnNewGame.setActionCommand(\"NEWGAME\");\n btnQuit.addActionListener(clientAction);\n btnQuit.setActionCommand(\"QUIT\");\n btnResign.addActionListener(clientAction);\n btnResign.setActionCommand(\"RESIGN\");\n btnSendMsg.addActionListener(clientAction);\n btnSendMsg.setActionCommand(\"CHAT\");\n\n setButtons(false);\n btnNewGame.setEnabled(false);\n boardComponent.initiate();\n }",
"@Override\n\tpublic void run() {\n\t\tSocket s = null;\n\t\tDataOutputStream dos = null;\n\t\tDataInputStream dis = null;\n\t\tString clientName = \"\";\n\t\tString userid = null;\n\t\tString password = null;\n\t\t\n\t\ttry {\n\t\t\ts = ss.accept(); // wait for a client\n\t\t\tnew Thread(this).start(); // make a thread to connect the NEXT client - somewhat recursive\n\t\t\tdis = new DataInputStream(s.getInputStream());\n\t\t\tString firstMsg = dis.readUTF();\n\t\t\tdos = new DataOutputStream(s.getOutputStream());\n\t\t\t\n\t\t\t// validate connection \n\t\t\tif (firstMsg.charAt(0) == '\\u0274') { // char startsWith()\n\t\t\t\tfirstMsg = firstMsg.substring(1); // drop unicode char\n\t\t\t\tint slashOffset = firstMsg.indexOf(\"/\");\n\t\t\t\tuserid = firstMsg.substring(0, slashOffset).toLowerCase();\n\t\t\t\tpassword = firstMsg.substring(slashOffset + 1);\n\t\t\t\tSystem.out.println(userid + \" is attempting to join with password \" + password);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdos.writeUTF(\"Invalid protocol. \" + \"Are you calling the right address and port?\");\n\t\t\t\tdos.close(); // close connection\n\t\t\t\tSystem.out.println(\"Invalid 1st msg received: \" + firstMsg);\n\t\t\t\treturn; // kill this client thread\n\t\t\t}\n\t\t\t\n\t\t\t// validate username then get chatName from this collection: \n\t\t\tif (authorizedClients.containsKey(userid)) clientName = authorizedClients.get(userid);\n\t\t\t else { //The submitted userid is not in the collection...\n\t\t\t\t dos.writeUTF(\"user id \" + userid + \" is not authorized to join the PrivateChatRoom.\");\n\t\t\t\t System.out.println(userid + \" is not authorized to join.\");\n\t\t\t\t dos.close(); // hang up.\n\t\t\t\t return; // and kill this client thread\n\t\t\t }\n\t\t\tif (clients.containsKey(clientName)) {\n\t\t\t\t dos.writeUTF(clientName + \" is already in the chat room. Cannot be joined from two locations concurrently.\");\n\t\t\t\t System.out.println(\"Received join request for a userid (\" + userid + \"=\" + clientName + \" that is already in the chat room.\" );\n\t\t\t\t dos.close(); // hang up.\n\t\t\t\t return; // and kill this client thread\n\t\t\t}\n\t\t\telse { // process this request\n\t\t\t\tSystem.out.println(clientName + \" is joining.\"); // trace\n\t\t\t\tsendToAllClients(\"Welcome to \" + clientName + \" who has just joined the chat room!\"); // let everyone know you're flossing\n\t\t\t\tclients.put(clientName, dos); // add to collection\n\t\t\t}\n\t\t\tObjectOutputStream oos = null;\n\t\t\tif (!passwords.containsKey(userid)) // stored password not found\n\t\t\t\t\t { // That's OK! This is just a first-time join!\n\t\t\t\t\t passwords.put(userid, password);//add to collection\n\t\t\t\t\t //And save the updated passwords collection to disk:\n\t\t\t\t\t oos= new ObjectOutputStream(new FileOutputStream(\"ChatRoomPasswords.ser\"));\n\t\t\t\t\t oos.writeObject(passwords);\n\t\t\t\t\t oos.close();\n\t\t\t\t\t }\n\t\t\t\t\t else // a stored password for this userid is found\n\t\t\t\t\t {\n\t\t\t\t\t String storedPassword = passwords.get(userid);\n\t\t\t\t\t if(!storedPassword.equals(password))\n\t\t\t\t\t {\n\t\t\t\t\t dos.writeUTF(\"Join rejected. The submitted password does not match the password stored for this user id.\");\n\t\t\t\t\t return; // and kill this client's thread.\n\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\tdos.writeUTF(\"Welcome to the chat room \" + clientName + \"!\");\t\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Client connection failure: \" + e);\n\t\t\tif (s.isConnected()) {\n\t\t\t\ttry {\n\t\t\t\t\ts.close(); // hang up\n\t\t\t\t}\n\t\t\t\tcatch (IOException ioe){\n\t\t\t\t\t// Already hung up\n\t\t\t\t}\n\t\t\t} // end if\n\t\t} // end catch\n\t\t\n\t\t// Send Receive loop\n\t\ttry {\n\t\t\twhile (true) {\n\t\t\t\tString inChat = dis.readUTF();\n\t\t\t\tString outChat = clientName + \" says: \" + inChat;\n\t\t\t\tSystem.out.println(outChat); // trace\n\t\t\t\tsendToAllClients(outChat); // send it to everyone\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ioe){ // leave processing\n\t\t\tSystem.out.println(clientName + \" is leaving.\"); // trace\n\t\t\tsendToAllClients(\"Goodbye to \" + clientName + \" who has just left the chat room!\"); // let everyone know you're leaving\n\t\t\tclients.remove(clientName); // remove from collection\n\t\t\treturn; // kill thread since we're done now for w/e reason\n\t\t}\n\t}",
"private void addSTOPedRequestsToClientManager() {\n\n List<TOMMessage> messagesFromSTOP = lcManager.getRequestsFromSTOP();\n if (messagesFromSTOP != null) {\n\n logger.debug(\"Adding to client manager the requests contained in STOP messages\");\n\n for (TOMMessage m : messagesFromSTOP) {\n tom.requestReceived(m, false);\n\n }\n }\n\n }",
"public static void inregistrareClient(Medic m, Client c){\r\n List<Client> clienti = m.getClienti();\r\n clienti.add(c);\r\n m.setClienti(clienti);\r\n audit(\"Inregitrare client\");\r\n }",
"public static void ChangeCustomerChoice(Boolean tConnection) {\r\n\t\tboolean connection = tConnection; \r\n\r\n \tScanner scnr = new Scanner(System.in);\r\n\t\tint changechoice, newservice, cycled;\r\n\t\tcycled = 0;\r\n\t\tchangechoice = 0;\r\n\t\tnewservice = 0;\r\n\t\t\r\n\t\tif(connection == true) {\r\n\t\t\tclientListUpdater();\r\n\t\t}\r\n\t\t\r\n\t\tDisplayInfo(connection);\r\n\t\t\r\n\t\tSystem.out.println(\"\\r\\nEnter the number of the client that you wish to change\");\r\n\t\t\r\n\t\tdo {\r\n \t\tif( (changechoice < 1 || changechoice > clientList.size()) && cycled != 0) {\r\n \t\t\tSystem.out.println(\"That client does not exist. Try again.\");\r\n \t\t}\r\n\t\t while(!scnr.hasNextInt()) {\r\n\t\t \tSystem.out.println(\"Client change options are integers only\");\r\n\t\t \tscnr.next();\t\r\n\t\t }\r\n \t\tcycled = 1;\r\n \t\tchangechoice = scnr.nextInt();\r\n\t\t} while(changechoice < 1 || changechoice > clientList.size());\r\n\t\t\r\n\t\tSystem.out.println(\"\\r\\nEnter the client's new service choice (1 = Brokerage, 2 = Retirement)\");\r\n\t\t\r\n\t\tcycled = 0;\r\n\t\t\r\n\t\tdo {\r\n\t\t\tif((newservice < 1 || newservice > 2) && cycled != 0) {\r\n\t\t\t\tSystem.out.println(\"Client choice can only be 1 or 2 (1 = Brokerage, 2 = Retirement)\\r\\nTry again.\");\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twhile(!scnr.hasNextInt()) {\r\n\t\t\t\tSystem.out.println(\"Client choice are integer only, Try again.\");\r\n\t\t\t\tscnr.next();\r\n\t\t\t}\r\n\t\t\tcycled = 1;\r\n\t\t\tnewservice = scnr.nextInt();\r\n\t\t} while(newservice < 1 || newservice > 2);\r\n\t\t\r\n\t\tString servString = \"\";\r\n\t\tif(newservice == 1) {\r\n\t\t\tservString = \"Brokerage\";\r\n\t\t} else if(newservice == 2) {\r\n\t\t\tservString = \"Retirement\";\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Error: Client could not be entered\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif(connection == true) {\r\n\t\t\tserverConnector.updateClientChoice(changechoice, servString);\r\n\t\t\tclientListUpdater();\r\n\r\n\t\t} else {\r\n\t\t\tclientList.get(changechoice-1).setClientServ(servString);\r\n\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public String ajouterClient(){\n\t\tClient cAjout=cliService.ajouterClient(client);\r\n\t\t\r\n\t\tif(cAjout.getIdClient()!=0){\r\n\t\r\n\t\r\n\t\t\t\r\n\t\t\treturn \"accueilClient\";\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\tnew FacesMessage(\"L'ajout a échoué\"));\r\n\t\t\treturn \"creationClient\";\r\n\t\t}\r\n\t}",
"private void createClient() {\n tc = new TestClient();\n }",
"public void youWinByAbandonment() {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEndedByAbandonment(\"YOU WON BECAUSE YOUR OPPONENTS HAVE ABANDONED!!\");\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending ended by abandonment error\");\n }\n }",
"Client addClient(Client client) throws BaseException;",
"private static void setupNavigateKeyRecord(Concourse client) {\n client.add(\"name\", \"foo\", 1);\n client.add(\"friends\", Link.to(2), 1);\n client.add(\"name\", \"bar\", 2);\n }",
"private static void setupNavigateKeysRecord(Concourse client) {\n client.add(\"name\", \"foo\", 1);\n client.add(\"friends\", Link.to(2), 1);\n client.add(\"name\", \"bar\", 2);\n client.add(\"friends\", Link.to(3), 2);\n client.add(\"friends\", Link.to(4), 2);\n client.add(\"name\", \"raghav\", 3);\n client.add(\"name\", \"jeff\", 4);\n }",
"public void onClick$editClientButton() {\n\n\t\tClient client = buildClient();\n\t\tclient.setId(clientToEdit.getId());\n\n\t\tClientService clientService = ServiceLocator.getClientService();\n\n\t\ttry {\n\t\t\tclientService.saveOrUpdate(client);\n\t\t} catch (Exception e) {\n\t\t\tmessageLabel.setValue(\"Error al crear el cliente\");\n\t\t\tLOGGER.error(e);\n\t\t}\n\t\tExecutions.sendRedirect(\"queryClients.zul\");\n\t\tmessageLabel.setValue(\"Cliente creado exitosamente.\");\n\t}",
"public static void Display(Bank bank)\n {\n int choice;\n System.out.println(\"********** Bank Menu **********\");\n System.out.println(\"1- Add New Client\");\n System.out.println(\"2- List All Accounts / Clients\");\n System.out.println(\"3- Withdraw / Deposit\");\n System.out.println(\"4- Exit\");\n choice = input.nextInt();\n do {\n\n switch (choice) {\n case 1:\n //create new client\n System.out.println(\"Please select what type of client you'd like (1 for client , 2 for commercial client )\");\n int choice2 = input.nextInt();\n if(choice2 == 1)\n {\n Client client = new Client();\n System.out.println(\"Please enter your name\");\n input.nextLine(); //This is needed to pick up the new line\n String value = input.nextLine();\n client.setName(value);\n System.out.println(\"Please enter your Address\");\n value = input.nextLine();\n client.setAddress(value);\n System.out.println(\"Please enter your nationalID\");\n int number = input.nextInt();\n client.setNationalID(number);\n System.out.println(\"Please enter your phone number\");\n number = input.nextInt();\n client.setPhone(number);\n System.out.println(\"Please select what type of account you'd like (1 for normal, 2 for special)\");\n number = input.nextInt();\n if(number==1){\n Account account = new Account();\n client.setaccount(account);\n account.setbalance(0);\n System.out.println(\"Please enter your account_number\");\n number = input.nextInt();\n account.setaccount_number(number);\n }\n else\n {\n SpecialAccount special = new SpecialAccount();\n client.setaccount(special);\n special.setbalance(0);\n System.out.println(\"Please enter your account_number\");\n number = input.nextInt();\n special.setaccount_number(number);\n }\n\n bank.AddClient(client);\n }\n else\n {\n CommercialClient client = new CommercialClient();\n System.out.println(\"Please enter your name\");\n input.nextLine(); //This is needed to pick up the new line\n String value = input.nextLine();\n client.setName(value);\n System.out.println(\"Please enter your Address\");\n value = input.nextLine();\n client.setAddress(value);\n System.out.println(\"Please enter your nationalID\");\n int number = input.nextInt();\n client.setNationalID(number);\n System.out.println(\"Please enter your phone\");\n number = input.nextInt();\n client.setPhone(number);\n System.out.println(\"Please enter your commercial ID\");\n number = input.nextInt();\n client.setC_ID(number);\n System.out.println(\"Please enter what type of account you'd like (1 for normal, 2 for special)\");\n number = input.nextInt();\n if(number==1){\n Account account = new Account();\n client.setaccount(account);\n account.setbalance(0);\n System.out.println(\"Please enter your account_number\");\n number = input.nextInt();\n account.setaccount_number(number);\n }\n else\n {\n SpecialAccount special = new SpecialAccount();\n client.setaccount(special);\n special.setbalance(0);\n System.out.println(\"Please enter your account_number\");\n number = input.nextInt();\n special.setaccount_number(number);\n }\n bank.AddClient(client);\n }\n\n\n break;\n case 2:\n //list all\n bank.DisplayClient();\n break;\n case 3:\n //withdraw\n System.out.println(\"Please provide us with your phone number\");\n long phone = input.nextLong();\n Client c1 = bank.findClient(phone);\n if(c1==null)\n break;\n int option;\n System.out.println();\n System.out.println(\"1- Withdraw\");\n System.out.println(\"2- Deposit\");\n option = input.nextInt();\n if (option == 1) {\n System.out.println(\"how much would you like to withdraw\");\n double val1 = input.nextDouble();\n c1.getaccount().withdraw(val1);\n } else {\n System.out.println(\"how much would you like to deposit?\");\n double val2 = input.nextDouble();\n c1.getaccount().deposit(val2); }\n break;\n case 4:\n System.exit(0);\n break;\n default:\n System.out.println(\"Please choose from 1 to 4\");\n }\n System.out.println(\"********** Bank Menu **********\");\n System.out.println(\"1- Add New Client\");\n System.out.println(\"2- List All Accounts / Clients\");\n System.out.println(\"3- Withdraw / Deposit\");\n System.out.println(\"4- Exit\");\n choice = input.nextInt();\n }while (choice != 4);\n\n\n }",
"protected void makeClientMissed() {\n\t\tArrayList<String> key = new ArrayList<String>();\r\n\r\n\t\tkey.add(\"id\");\r\n\r\n\t\tArrayList<String> value = new ArrayList<String>();\r\n\r\n\t\tvalue.add(GlobalVariable.TrainerSessionId);\r\n\r\n\t\tSystem.out.println(\"se\" + GlobalVariable.TrainerSessionId);\r\n\r\n\t\td.showCustomSpinProgress(TrainerHomeActivity.this);\r\n\r\n\t\tString url = Constants.WEBSERVICE_URL+\"/webservice/missed\";\r\n\r\n\t\tcallWebService = new AsyncTaskCall(\r\n\t\t\t\tTrainerHomeActivity.this,\r\n\t\t\t\tTrainerHomeActivity.this,\r\n\t\t\t\t1,\r\n\t\t\t\turl,\r\n\t\t\t\tkey, value);\r\n\t\tcallWebService.execute();\r\n\r\n\t\tDialogView.customSpinProgress\r\n\t\t\t\t.setOnCancelListener(new OnCancelListener() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tcallWebService.cancel(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t}",
"@Bean\n @ConditionalOnBean(CuratorFramework.class)\n public LeaderInitiatorFactoryBean leaderInitiatorFactory(\n final CuratorFramework client,\n final ZookeeperLeadershipProperties zookeeperLeadershipProperties\n ) {\n final LeaderInitiatorFactoryBean factoryBean = new LeaderInitiatorFactoryBean();\n factoryBean.setClient(client);\n factoryBean.setPath(zookeeperLeadershipProperties.getPath());\n factoryBean.setRole(\"cluster\");\n return factoryBean;\n }",
"public void acceptClient() {\n if (mBluetoothAdapter.getScanMode() != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, DISCOVERABLE_DURATION);\n mContext.startActivity(discoverableIntent);\n }\n\n stop();\n\n mAcceptThread = new AcceptThread();\n mAcceptThread.start();\n }",
"public void readFromClient() {\n Thread t = new Thread(() -> {\n while (connected) {\n try {\n Message fromClient;\n synchronized (C2SMessages){\n if (C2SMessages.size() > 0){\n fromClient = (Message) C2SMessages.get(0);\n C2SMessages.remove(0);\n if( !(fromClient instanceof PingMessage) ) {\n if (myTurn) {\n answer = fromClient;\n answerReady = true;\n synchronized (lock){\n lock.notifyAll();\n }\n } else {\n send(new WrongTurnMessage());\n }\n }\n }\n if (C2SMessages.isEmpty())\n C2SMessages.wait();\n }\n } catch (NullPointerException | IllegalArgumentException | InterruptedException e) {\n System.out.println(\"[LOCAL-HANDLER] \"+userNickname+\"-local connection closed\");\n closeConnection();\n notifyDisconnection(this);\n break;\n }\n }\n });\n t.start();\n }",
"private void networkClient(java.awt.event.MouseEvent evt) {\n\t\tgameChoice = 'c';\n\t\twindowComplete = true;\n\t}",
"private DhcpLease requestLeaseRenewing(@NonNull MacAddress macAddr,\n @NonNull Inet4Address clientAddr) throws DhcpLeaseRepository.DhcpLeaseException {\n // Renewing: clientAddr filled in, no reqAddr\n return requestLease(macAddr, clientAddr, INETADDR_UNSPEC /* reqAddr */, HOSTNAME_NONE,\n true /* sidSet */);\n }",
"@Test\n public void testClient(){\n received=false;\n uut=new ChatMessageRequest(\"test\",\"test2\",\"test\",MessageTypes.MATCH);\n uut.clientHandle(null,new TestUtilizer());\n assertTrue(received);\n }",
"@Override\n public Long addClient(ContentValues values, Location a, Location locationA, Utils.Action<Long> action) {\n\n Client client = ContentValuesToCourse(values);\n clients.add(client);\n return client.getClientId();\n\n\n }",
"@FXML\n private void handleManageClients(ActionEvent event) {\n try {\n LOGGER.log(Level.INFO, \"Redirecting to ClientManagement window.\");\n FXMLLoader loader = new FXMLLoader(getClass()\n .getResource(\"/reto2desktopclient/view/ClientManagement.fxml\"));\n Parent root = (Parent) loader.load();\n //Getting window controller.\n ClientManagementController controller = (loader.getController());\n controller.setStage(stage);\n //Initializing stage.\n controller.initStage(root);\n } catch (IOException ex) {\n LOGGER.log(Level.SEVERE, \"Could not switch to ClientManagement window: {0}\", ex.getMessage());\n showErroAlert(\"Could not switch to Client Management window due to an\"\n + \" unexpected error, please try later.\");\n }\n }",
"private void listaClient() {\n\t\t\r\n\t\tthis.listaClient.add(cliente);\r\n\t}",
"@Test\n public void testFailureParUsedByOtherClient() throws Exception {\n // create client dynamically\n String victimClientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.FALSE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation victimOidcCRep = getClientDynamically(victimClientId);\n String victimClientSecret = victimOidcCRep.getClientSecret();\n assertEquals(Boolean.FALSE, victimOidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(victimOidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n assertEquals(OIDCLoginProtocol.CLIENT_SECRET_BASIC, victimOidcCRep.getTokenEndpointAuthMethod());\n\n authManageClients();\n\n String attackerClientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation attackerOidcCRep = getClientDynamically(attackerClientId);\n assertEquals(Boolean.TRUE, attackerOidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(attackerOidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n assertEquals(OIDCLoginProtocol.CLIENT_SECRET_BASIC, attackerOidcCRep.getTokenEndpointAuthMethod());\n\n // Pushed Authorization Request\n oauth.clientId(victimClientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(victimClientId, victimClientSecret);\n assertEquals(201, pResp.getStatusCode());\n String requestUri = pResp.getRequestUri();\n\n // Authorization Request with request_uri of PAR\n // remove parameters as query strings of uri\n // used by other client\n oauth.clientId(attackerClientId);\n oauth.redirectUri(null);\n oauth.scope(null);\n oauth.responseType(null);\n oauth.requestUri(requestUri);\n String state = oauth.stateParamRandom().getState();\n oauth.stateParamHardcoded(state);\n UriBuilder b = UriBuilder.fromUri(oauth.getLoginFormUrl());\n driver.navigate().to(b.build().toURL());\n OAuthClient.AuthorizationEndpointResponse errorResponse = new OAuthClient.AuthorizationEndpointResponse(oauth);\n Assert.assertFalse(errorResponse.isRedirected());\n }",
"private void getClientList(ActionEvent e){\r\n new ClientList().Display();\r\n }",
"private void handleBlockOkStubEvent(BlockOkStubEvent event) throws AppiaEventException {\n \t\tevent.loadMessage();\n \t\tSystem.out.println(\"Received BlockOkStubEvent from: \" + event.source);\n \n \t\t//Get the parameters\n \t\tString groupId = event.getGroupId();\n \t\tEndpt clientEndpt = event.getEndpoint();\n \t\tint viewVersion = VsClientManagement.getVsGroup(groupId).getCurrentVersion();\n \n \t\t//Mute the client\n \t\tVsClientManagement.muteClient(groupId, clientEndpt);\n \n \t\t//Servers enconter themselfs in mute mode\n \t\tif(this.flushMode == true){\n \t\t\t//We need to check if EVERY client attached to me is quiet\t\n \t\t\tboolean allMuted = VsClientManagement.checkIfEveryAllAttachedToMeClientAreMute(listenAddress);\n \n \t\t\tif(allMuted == true){\n \t\t\t\tSystem.out.println(\"All my clients are muted\");\n \n \t\t\t\t//I may send the pending block ok\n \t\t\t\tpendingBlockOk.go();\n \n \t\t\t}\n \t\t}\n \n \t\telse if(this.flushMode == false){\n \n \t\t\t//Let's see if all clients have said BlockOk\n \t\t\tboolean allGroupMuted = VsClientManagement.checkIfAllInGroupAttachedToMeClientAreMute(groupId, listenAddress);\n \n \t\t\t//If all clients in the group are muted\n \t\t\tif(allGroupMuted){\n \t\t\t\tSystem.out.println(\"Hurray every client in group: \" + groupId +\" is muted\");\n \n \t\t\t\t// We may send our leaveProxyEvent to the other servers\t\n \t\t\t\tBlockOkProxyEvent blockedOkProxy = new BlockOkProxyEvent(groupId, myEndpt, viewVersion);\n \t\t\t\tsendToOtherServers(blockedOkProxy);\n \n \t\t\t\t//And also send to myself\n \t\t\t\tsendToMyself(blockedOkProxy);\n \n \t\t\t\treturn;\n \t\t\t}\n \n \t\t\t//In this case we still have to wait on other clients\n \t\t\telse{\n \t\t\t\tSystem.out.println(\"Still waiting on other clients\");\n \t\t\t}\n \t\t}\n \t}",
"@SideOnly(Side.CLIENT)\n private void channelEndClient()\n {\n }",
"@Test(groups = {\"Regression\", \"IntakeLender\"})\t\n\tpublic void RemoveLoanTaskfee_clients() throws InterruptedException {\n\t\t// Login to the BLN with provided credentials\n\t\tHomePage homePage = new HomePage(d);\n\t\t// Login to BLN Application\n\t\thomePage.logIntoBLN();\n\t\t// Navigating to MyProfile Tab\n\t\tUsers Users1 = homePage.navigateToUsers();\n\t\tUsers1.select_intakeLender();\n\t\tClients Clients1 = homePage.navigateToClients();\n\t\tClients1.validateHeaderNav();\n\t\t\n\t}",
"@Override\r\n\tpublic void updateclient(Client client) {\n\t\t\r\n\t}",
"@Test\n public void testClientJoinLeaveConsensus() throws Exception {\n testClientJoinLeave(ConsensusProfile.builder().withMembers(\"1\", \"2\", \"3\").withDataPath(new File(new File(AbstractAtomixTest.DATA_DIR, \"join-leave\"), \"1\")).build(), ConsensusProfile.builder().withMembers(\"1\", \"2\", \"3\").withDataPath(new File(new File(AbstractAtomixTest.DATA_DIR, \"join-leave\"), \"2\")).build(), ConsensusProfile.builder().withMembers(\"1\", \"2\", \"3\").withDataPath(new File(new File(AbstractAtomixTest.DATA_DIR, \"join-leave\"), \"3\")).build());\n }",
"public void logon ()\n {\n ClientResolutionListener clr = new ClientResolutionListener() {\n public void clientResolved (Name username, ClientObject clobj) {\n // fake up a bootstrap; I need to expose the mechanisms in\n // Presents that create it in a network environment\n BootstrapData data = new BootstrapData();\n data.clientOid = clobj.getOid();\n data.services = EditorServer.invmgr.bootlist;\n\n // and configure the client to operate using the server's\n // distributed object manager\n _client.getContext().getClient().gotBootstrap(\n data, EditorServer.omgr);\n }\n\n public void resolutionFailed (Name username, Exception reason) {\n log.log(Level.WARNING, \"Failed to resolve client [who=\" +\n username + \"].\", reason);\n // TODO: display this error\n }\n };\n EditorServer.clmgr.resolveClientObject(new Name(\"editor\"), clr);\n }",
"private void handleBlockOk(BlockOk ok) throws AppiaEventException {\n \t\t//Get the necessary arguments\n \t\tList<VsClient> allMyClients = VsClientManagement.getClientstAttachedTo(listenAddress);\n \n \t\t//Enter flush mode\n \t\tflushMode = true;\n \t\tSystem.out.println(\"Received a BlockOk ( a normal one )\");\n \n \t\t//Lock clientsViewManagement here with a lock\n \t\tacquireClientsViewUpdateLock(); //So no new clients/servers can join the group\n \n \t\t//Clean the update controls I have received\n \t\tUpdateManager.cleanUpdateViews();\n \n \t\t//Send to all client in all groups a blockOk request\n \t\t//I ask if I have some client in that group\n \n \t\t//If I have at least one client to shut\n \t\tif(allMyClients.size() >= 1){\n \t\t\t//I will store the block ok event\n \t\t\tpendingBlockOk = ok;\n \t\t\tSystem.out.println(\"I have a pending blockOk to send. Wait for client to shut upo\");\n \n \t\t\t//And for each client, i'll ask them to shut up\n \t\t\tfor (VsClient client : allMyClients){\n \t\t\t\tVsGroup group = VsClientManagement.getVsGroup(client.getGroup().id);\n \t\t\t\tShutUpStubEvent shutUpEvent = new ShutUpStubEvent(client.getGroup().id);\n \t\t\t\tsendStubEvent(shutUpEvent, group);\n \t\t\t}\n \t\t}\n \n \t\t//If I have no clients to warn\n \t\telse{\n \t\t\t//I may send right way the block OK\n \t\t\tok.go();\n \t\t\tSystem.out.println(\"I have no clients, sending blockOk\");\n \t\t}\n \t}"
] | [
"0.62847906",
"0.55877024",
"0.55218494",
"0.5461128",
"0.53093",
"0.52637976",
"0.5248513",
"0.5157254",
"0.5133544",
"0.51197064",
"0.50784355",
"0.5012124",
"0.500927",
"0.49990484",
"0.49979058",
"0.4979952",
"0.49771446",
"0.49590546",
"0.49087006",
"0.48974088",
"0.48924133",
"0.48876503",
"0.4862979",
"0.4847433",
"0.4835885",
"0.4820488",
"0.47422406",
"0.47407058",
"0.47396868",
"0.4717765",
"0.47170025",
"0.4700105",
"0.4673848",
"0.46687168",
"0.46654177",
"0.46573198",
"0.46499172",
"0.46385735",
"0.46327466",
"0.46288085",
"0.46151936",
"0.46137065",
"0.46099934",
"0.46098503",
"0.46011773",
"0.46004987",
"0.45999697",
"0.45888844",
"0.456436",
"0.455467",
"0.4543606",
"0.45435262",
"0.4540406",
"0.4539809",
"0.45370924",
"0.45341158",
"0.4521744",
"0.45195708",
"0.45116505",
"0.45101148",
"0.45036763",
"0.44932973",
"0.449059",
"0.44876212",
"0.44861126",
"0.4474617",
"0.44706112",
"0.44588768",
"0.445446",
"0.44514737",
"0.4448561",
"0.44378763",
"0.44363582",
"0.4433903",
"0.44272542",
"0.4423661",
"0.44130436",
"0.44087887",
"0.44073886",
"0.4405351",
"0.44001645",
"0.43998235",
"0.43872836",
"0.438117",
"0.43783274",
"0.43779162",
"0.43774182",
"0.4352699",
"0.43455124",
"0.43452665",
"0.43448994",
"0.43440285",
"0.43414047",
"0.43366542",
"0.43259332",
"0.4325486",
"0.43254375",
"0.43250793",
"0.43197024",
"0.43176058"
] | 0.5914192 | 1 |
Should provide a translation from the junit method name of a test to its test case name as known to the test clients that will run the test. The purpose of this is to convert the JUnit method name into the correct test case name to place into the test invite. For example the method "testP2P" might map onto the interop test case name "TC2_BasicP2P". | public String getTestCaseNameForTestMethod(String methodName)
{
return "Perf_SustainedPubSub";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected String testName(FrameworkMethod method)\n {\n return method.getName() + getName();\n }",
"@Test\n public void testGetName() {\n assertEquals(hero.getName(), \"hero\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }",
"public void setTestMethodName(String name) {\n m_testMethodName = name;\n }",
"@Test\n public void testSetName() {\n \n hero.setName(\"cheyo\");\n assertEquals(hero.getName(), \"cheyo\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }",
"public String getTestMethodName() {\n return m_testMethodName;\n }",
"@Test\n public void nameTest() {\n // TODO: test name\n }",
"@Test\n public void nameTest() {\n // TODO: test name\n }",
"@Test\n public void nameTest() {\n // TODO: test name\n }",
"@Test\n public void nameTest() {\n // TODO: test name\n }",
"@Test\n public void whenGetNameThenReturnResult() {\n String expected = underTest.getName();\n assertThat(expected, is(\"UnderTest\"));\n }",
"@Test\n public void testGetLastAttackTitle() {\n \n assertEquals(hero.getLastAttackTitle(), \"The starting battle specs are:\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n }",
"@Test\n public void testTrackerNaming() {\n }",
"public static void setTestName(String rnTest)\n\t{\n\t\trnTestName = rnTest;\n\t\tlogger.info(\"set test case name\");\n\t\t\n\t}",
"@Test\n void setName() {\n\n }",
"protected String getMethodSpecificTestDataFileName() {\r\n StringBuffer result = new StringBuffer()\r\n .append(TESTDATA+\"/\")\r\n .append(getClassNameWithoutPackage())\r\n .append(\"_\")\r\n .append(getName())\r\n .append(\".xml\");\r\n return result.toString();\r\n }",
"@Test\n void setName() {\n }",
"@Test\n public void testName() {\n\n }",
"protected String getName() {\n return testClass.getName();\n }",
"@Test\r\n public void testSetName() {\r\n\r\n }",
"public void setTestname(String testname) {\n this.testname = testname;\n }",
"public static String getTestCaseClassName() {\n\t\tStackTraceElement stackTraceElements[] = (new Throwable()).getStackTrace();\n\t\tfor (StackTraceElement e : stackTraceElements) {\n\t\t\tString s = e.toString();\n\t\t\tif (s.contains(\"com.textura.cpm.testsuites\")) {\n\t\t\t\tint endMethod = s.lastIndexOf('(');\n\t\t\t\tint beginMethod = s.lastIndexOf('c', endMethod);\n\t\t\t\tif (beginMethod < 0 || beginMethod >= endMethod) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString caseName = s.substring(beginMethod, endMethod);\n\t\t\t\ttry {\n\t\t\t\t\tInteger.parseInt(caseName.substring(1));\n\t\t\t\t\treturn s;\n\t\t\t\t} catch (Exception a) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}",
"@Override\n\t\tpublic String getTestName() {\n\t\t\treturn null;\n\t\t}",
"@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}",
"@Test\n public void testGetPower() {\n assertEquals(hero.getPower(), 100);\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }",
"@Test\n public void testSetLastAttackTitle() {\n hero.setLastAttackTitle(\"Your end stats are:\");\n assertEquals(hero.getLastAttackTitle(), \"Your end stats are:\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }",
"@Test\n public void testGetMagic() {\n assertEquals(hero.getMagic(), 100);\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n \n }",
"public String getTestname() {\n return testname;\n }",
"public void setTestMethod(JUnitTestCase testCase) {\n\t\tthis.testCase = testCase;\n\t\tthis.testMethod = testCase.getMethodName();\n\t\tthis.outputFilename = new File(getDirectoryFinder().getBuildDirectory(), testType+ \".\" +testMethod +\".out\").getAbsolutePath();\n\t}",
"public void testChangeName() {\n System.out.println(\"changeName\");\n String expResult = \"Anu\";\n //String result = new changeName('Anu', \"Shar\");\n assertEquals(expResult, result);\n }",
"@Test\n public void testSetText() {\n writeBanner(getMethodName());\n }",
"@org.junit.Test\n public void setName() {\n }",
"@Test\n public void customerNameTest() {\n // TODO: test customerName\n }",
"public static String getName(String methodName) {\n\t\tString[] splitMethodName = methodName.split(\"(?<=.)(?=\\\\p{Lu})\");\n\t\tString strMethodName = Arrays.toString(splitMethodName);\n\t\tstrMethodName = strMethodName.substring(1, strMethodName.length() - 1);\n\t\tString covertMethodName = strMethodName.replace(\",\", \"\").replace(\"verify \", \"\");\n\t\treturn covertMethodName;\n\t}",
"protected void setTestName( String name ) {\n\t\ttestName = name;\n\t}",
"@Test\n public void userNameTest() {\n // TODO: test userName\n }",
"public FunctionsTest( String testName )\r\n {\r\n super( testName );\r\n }",
"public static String currentMethodName() {\n String fm = CURRENT_TEST.get();\n if (fm != null) {\n return fm;\n } else {\n return \"<no current test>\";\n }\n }",
"private String getJiraTestCaseName() {\n String summary = issue.substring(issue.indexOf(\"summary\"), issue.indexOf(\"timetracking\"));\n name = summary.substring(summary.indexOf(\"TC\"));\n name = name.substring(0, name.indexOf(\"\\\",\"));\n return name;\n }",
"public void setTestMethod(JUnitTestCase testCase) {\n\t\tthis.testCase = testCase;\n\t\tthis.testMethod = testCase.getMethodName();\n\t\tthis.outputFilename = new File(\n\t\t\t\tgetDirectoryFinder().getBuildDirectory(), testType + \".\"\n\t\t\t\t\t\t+ testMethod + \".out\").getAbsolutePath();\n\t}",
"public static String getValidATXName(final String testName) {\n String validATXName = \"DefaultTestName\";\n if (testName != null && StringUtils.countMatches(testName, \"_\") != testName.length()) {\n validATXName = testName;\n\n final Map<String, String> specialCharMap = new HashMap<>();\n specialCharMap.put(\"ä\", \"ae\");\n specialCharMap.put(\"Ä\", \"Ae\");\n specialCharMap.put(\"ö\", \"oe\");\n specialCharMap.put(\"Ö\", \"Oe\");\n specialCharMap.put(\"ü\", \"ue\");\n specialCharMap.put(\"Ü\", \"Ue\");\n specialCharMap.put(\"ß\", \"ss\");\n specialCharMap.put(\"-\", \"_\");\n specialCharMap.put(\"\\\\.\", \"_\");\n specialCharMap.put(\" \", \"\");\n\n // Replace special chars\n for (final Entry<String, String> specialChar : specialCharMap.entrySet()) {\n validATXName = validATXName.replaceAll(specialChar.getKey(), specialChar.getValue());\n }\n\n // Remove coherent underscores\n validATXName = removeCoherentUnderscores(validATXName);\n\n // Add 'i' char if test name starts with digit\n if (Character.isDigit(validATXName.charAt(0))) {\n validATXName = String.format(\"i%s\", validATXName);\n }\n }\n return validATXName;\n }",
"@Test\n public void ruleNameTest() {\n // TODO: test ruleName\n }",
"public void junitTestStarted(String name) { }",
"public void junitTestStarted(String name) { }",
"public TestCase(String name) {\n fName= name;\n }",
"public TestCase addMessage( String message );",
"public TestIdentityActionTest(String name) {\n\t\tsuper(name);\n\t}",
"@org.junit.Test\n public void casing()\n {\n assertEquals(\"simple\", \"Just A Test\",\n Encodings.toWordUpperCase(\"just a test\"));\n assertEquals(\"spaces\", \" Just A TeST \",\n Encodings.toWordUpperCase(\" just A teST \"));\n assertEquals(\"start\", \"Start With Lower. Case\",\n Encodings.toWordUpperCase(\"start with lower. case\"));\n assertEquals(\"word\", \"Test\", Encodings.toWordUpperCase(\"test\"));\n assertEquals(\"word\", \"Test\", Encodings.toWordUpperCase(\"Test\"));\n // Does not work on the server\n //assertEquals(\"word\", \"Faer��n\",\n //Encodings.toWordUpperCase(\"faer��n\"));\n assertEquals(\"brackets\", \"Test (Test)\",\n Encodings.toWordUpperCase(\"test (test)\"));\n assertEquals(\"empty\", \"\", Encodings.toWordUpperCase(\"\"));\n }",
"@Test\n public void testSetHealth() {\n assertEquals(hero.getHealth(), 100);\n System.out.println(testName.getMethodName() + \" PASSED.\");\n\n }",
"private void generate_test_code()\n {\n int I;\n DataType[] ParamTypes = m_Problem.getParamTypes();\n DataType ReturnType = m_Problem.getReturnType();\n TestCase[] Cases = m_Problem.getTestCases();\n StringBuffer Code = new StringBuffer();\n\n Code.append(\"private:\\n\");\n\n // Generate the vector output function\n Code.append(\"\\ttemplate <typename T> string print_array(const vector<T> &V) { ostringstream os; os << \\\"{ \\\"; for (typename vector<T>::const_iterator iter = V.begin(); iter != V.end(); ++iter) os << \\'\\\\\\\"\\' << *iter << \\\"\\\\\\\",\\\"; os << \\\" }\\\"; return os.str(); }\\n\\n\");\n\n // Generate the verification function\n generate_verification_code(Code, ReturnType);\n\n // Generate the individual test cases\n Code.append(\"\\n\");\n\n /*\n * Generate the test wrapper function that can call\n * either all or individual test cases. (-1 for all)\n */\n Code.append(\"public:\\n\");\n Code.append(\"\\tvoid run_test(int Case) { \\n\");\n Code.append(\"\\t\\tint n = 0;\\n\\n\");\n for (I = 0; I < Cases.length; ++I)\n generate_test_case(I, Code, ParamTypes, ReturnType, Cases[I]);\n // next\n Code.append(\"\\t}\\n\");\n\n // Insert the cut tags\n Code.insert(0, k_BEGINCUT);\n Code.append(k_ENDCUT);\n\n m_Tags.put(k_TESTCODE, Code.toString());\n }",
"@Test\n public void testAttack() {\n enemy.attack(1, enemy);\n assertEquals(enemy.getHealth(), 90);\n \n hero.attack(2, hero);\n assertEquals(hero.getHealth(), 85);\n \n \n System.out.println(testName.getMethodName() + \" PASSED.\");\n }",
"TestClassExecutionResult assertTestPassed(String name, String displayName);",
"@Test\n public void videoNameTest() {\n // TODO: test videoName\n }",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"public static String getTestCaseName(String sTestCaseName)\n\t{\n\t\tlogger.info(\"Parasing test case name\");\n\t\tString value = sTestCaseName;\n\t\t\n\t\tint posi = value.indexOf(\"@\");\n\t\t\n\t\tvalue = value.substring(0,posi);\n\t\t\n\t\tposi = value.lastIndexOf(\".\");\n\t\t\n\t\tvalue = value.substring(posi+1);\n\t\tlogger.info(\"test case name parased successfully\");\n\t\treturn value;\n\t}",
"TestSelection includeTest(String testClass, String testMethod);",
"@Test\npublic void TC11(){\n\n}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"onTestSuccess -> Test Name: \"+result.getName());\r\n\t}",
"public void testGetPresentationName() {\n assertEquals(\"Incorrect name!\", \"Cut Comment Action\", this.action.getPresentationName());\n }",
"@Test\n public void groupNameTest() {\n // TODO: test groupName\n }",
"@Test\r\n public void d_method() \r\n {\r\n\t System.out.println(\"My name is Shramana Roy\");\r\n\t \r\n }",
"@Test\n public void displayNameTest() {\n // TODO: test displayName\n }",
"@Test\n public void dspNamesTest() {\n // TODO: test dspNames\n }",
"public ParamNameTest(String testName) {\n super(testName);\n }",
"@Test\n\tpublic void testFtoC(){\n\t}",
"public void testModifyName() {\r\n FaceRecognizer1 fr1 = new FaceRecognizer1();\r\n String name = \"Hiran N\";\r\n String expResult = \"Hiran_N\";\r\n String result = fr1.modifyName(name);\r\n assertEquals(expResult, result);\r\n }",
"public Method getTestMethod()\r\n {\r\n return method.getMethod();\r\n }",
"String getMethodName();",
"String getMethodName();",
"@Test\n public void testSetName() {\n service.setName(\"ServiceNew\");\n assertEquals(\"ServiceNew\", service.getName());\n \n }",
"@Test\n public void testSetMagic() {\n hero.setMagic(45);\n assertEquals(hero.getMagic(), 45);\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }",
"Testcase createTestcase();",
"@ParameterizedTest\n // This is the way how to point to a method from another class use pound character\n @MethodSource(value = \"com.junit5tests.ParamsProvider#sourceClassStream_StringDouble\")\n public void methodFromClassSourceStream_StringDouble(String param1, double param2){\n System.out.println(\"param1 = \" + param1 + \", param2 = \" + param2);\n }",
"@Test\n void getArgString() {\n }",
"public String getTestName() {\n return testURL;\n }",
"TestClassExecutionResult assertTestsExecuted(String... testNames);",
"@Test\n\tpublic void bmainTestOne() {\n\t\tAssert.assertEquals(\"Test1\", \"Test1\");\n\t\tSystem.out.println(\"This is main Test 2\");\n\t}",
"@Test\n public void testGetHealth() {\n \n assertEquals(hero.getHealth(), 100);\n System.out.println(testName.getMethodName() + \" PASSED.\");\n }",
"private String getJiraTestCaseComponent() {\n component = name.replace(\"TC - \", \"\");\n component = component.substring(0, component.indexOf(\":\"));\n return component;\n }",
"@Test\n\tpublic void testCtoF(){\n\t}",
"public void setTestSetName(String testSetName) {\n this.testSetName = testSetName;\n }",
"@Test\n public void testGetName() {\n String result = service.getName();\n assertEquals(\"Servis\", result);\n \n }",
"public void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(result.getName()+\"**********Test Success.............This is result.getName\");\r\n\t\t\r\n\t}",
"@Test\n void testToString() {\n }",
"@Override\n\tpublic void test(String t) {\n\t\t\n\t}",
"@Test //TEST TWO\n void testlowerRabbitName()\n {\n Rabbit_RegEx rabbit_Name = new Rabbit_RegEx();\n rabbit_Name.setRabbitName(\"snowflake\");\n assertTrue(rabbit_Name.getRabbitName().matches(\"[A-Za-z-]*\"));\n }",
"protected String getTestName(File configFile, Properties configProps) {\n if (configProps.containsKey(TEST_NAME)) {\n return configProps.getProperty(TEST_NAME);\n } else {\n int lastSlash = configFile.getAbsolutePath().lastIndexOf('/');\n int secondToLastSlash = configFile.getAbsolutePath().lastIndexOf(\n '/', lastSlash - 1);\n return configFile.getAbsolutePath().substring(\n secondToLastSlash + 1, lastSlash);\n }\n }",
"@Test\n public void testGetName()\n {\n assertThat(m_SUT.getName(), is(\"test name\"));\n }",
"@Test\n public void renameFileTest(){\n fail();\n }",
"@Test// Execute 5 \n\t public void googleTitleTest() {\n\t\t System.out.println(\"google Title test\");\n\t }",
"@Test\n\tvoid testLectureChaineCaracteres() {\n\t}",
"@Override\n protected String getMethodName() {\n return suitename() + \"-\" + super.getMethodName();\n }",
"public String runTest( String input ){\n\t\tString response = null;\n\t\t// Deals with cases where this component reference is not wired\n\t\tif( reference1 != null ) {\n\t\t\tString response1 = reference1.operation1(input);\n\t\t\t\n\t\t\tresponse = testName + \" \" + input + \" \" + response1;\n\t\t} else {\n\t\t\tresponse = testName + \" \" + input + \" no invocation\";\n\t\t}\t// end if\n\t\t\n\t\treturn response;\n\t}",
"@Test\n public void serviceAccountNameTest() {\n // TODO: test serviceAccountName\n }",
"public void testClassName() {\n\t\tClassName name = this.compiler.createClassName(\"test.Example\");\n\t\tassertEquals(\"Incorrect package\", \"generated.officefloor.test\", name.getPackageName());\n\t\tassertTrue(\"Incorrect class\", name.getClassName().startsWith(\"Example\"));\n\t\tassertEquals(\"Incorrect qualified name\", name.getPackageName() + \".\" + name.getClassName(), name.getName());\n\t}",
"private String generateJUnitTestCasesSkeletonCode(List<TestCaseList> testCases, ProductMaster product, String packageName, String refClassName, String destinationDirectory, int nameSource, String testExecutionEngine, String testStepOption) {\n\t\tJCodeModel codeModel = new JCodeModel();\r\n\t\tString message = null;\r\n\t\ttry {\r\n\t\t\tif (testExecutionEngine == null)\r\n\t\t\t\ttestExecutionEngine = TAFConstants.TESTENGINE_SEETEST;\r\n\t\t\tlog.info(\"Test Execution Engine : \" + testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\tJClass junitAfterReference = null;\r\n\t\t\tJClass junitBeforeReference = null;\r\n\t\t\tJClass junitTestReference = null;\r\n\t\t\tJClass junitFixMethodOrderReference = null;\r\n\t\t\tJClass junitMethodSortersReference = null;\r\n\t\t\tjunitAfterReference = codeModel.ref(\"org.junit.After\");\r\n\t\t\tjunitBeforeReference = codeModel.ref(\"org.junit.Before\");\r\n\t\t\tjunitTestReference = codeModel.ref(\"org.junit.Test\");\r\n\t\t\tjunitFixMethodOrderReference = codeModel.ref(\"org.junit.FixMethodOrder\");\r\n\t\t\tjunitMethodSortersReference = codeModel.ref(\"org.junit.runners.MethodSorters\");\r\n\r\n\t\t\tfor (TestCaseList testCase : testCases) {\r\n\r\n\t\t\t\t// 1. Create the class for the test case\r\n\t\t\t\tString testCaseName = null;\r\n\t\t\t\tString classPackageName = null;\r\n\t\t\t\tif (testCase.getTestCaseScriptFileName() == null || testCase.getTestCaseScriptFileName().trim().isEmpty()) {\r\n\t\t\t\t\ttestCaseName = ScriptGeneratorUtilities.getTestCaseClassName(testCase.getTestCaseName(), testCase.getTestCaseId(), testCase.getTestCaseCode(), nameSource);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttestCaseName = testCase.getTestCaseScriptFileName();\r\n\t\t\t\t\tif(testCaseName.contains(\".java\")){\r\n\t\t\t\t\t\ttestCaseName = testCaseName.replace(testCaseName.substring(testCaseName.lastIndexOf(\".\")),\"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (testCase.getTestCaseScriptQualifiedName() == null || testCase.getTestCaseScriptQualifiedName().trim().isEmpty()) {\r\n\t\t\t\t\tclassPackageName = packageName;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tclassPackageName = testCase.getTestCaseScriptQualifiedName();\r\n\t\t\t\t}\r\n\t\t\t\tJDefinedClass testCaseClass = codeModel._class(classPackageName + \".\" + testCaseName);\r\n\t\t\t\tJDocComment classComment = testCaseClass.javadoc();\r\n\t\t\t\tString javadocCommentClass = \"Automation Script for Testcase : \" + testCase.getTestCaseName()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Product \t\t\t: \" + product.getProductDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Testcase ID\t\t: \" + testCase.getTestCaseId()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Testcase Code \t: \" + testCase.getTestCaseCode()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Description \t\t: \" + testCase.getTestCaseDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test case type \t: \" + testCase.getTestCaseType()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Script Type \t\t: \" + TAFConstants.TESTSCRIPT_TYPE_JUNIT\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test Execution Engine \t: \" + testExecutionEngine\r\n\t\t\t\t\t\t+ \"\\n\" + \"Code generated by TAF on \t: \" + new Date(System.currentTimeMillis());\r\n\t\t\t\tclassComment.append(javadocCommentClass);\r\n\t\t\t\ttestCaseClass.annotate(junitFixMethodOrderReference).param(\"value\", MethodSorters.NAME_ASCENDING);\r\n\r\n\t\t\t\ttestCaseClass = addClassVariablesForTestCaseClass(codeModel, testCaseClass, testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (testStepOption == null)\r\n\t\t\t\t\ttestStepOption = \"SINGLE_METHOD\";\r\n\t\t\t\t// 4. Add methods for the test steps of the test case\r\n\t\t\t\t// 4.a Add the setup and tear down methods\r\n\t\t\t\tJMethod setUpMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"setUp\");\r\n\t\t\t\tJDocComment methodComment1 = setUpMethod.javadoc();\r\n\t\t\t\tString commentString = \"Setup method for testcase\";\r\n\t\t\t\tmethodComment1.append(commentString);\r\n\t\t\t\tsetUpMethod = constructSetUpMethodForTestCase(setUpMethod, testExecutionEngine, refClassName, testCaseName);\r\n\t\t\t\tsetUpMethod.annotate(junitBeforeReference);\r\n\t\t\t\t\r\n\t\t\t\tJMethod tearDownMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"tearDown\");\r\n\t\t\t\tJDocComment methodComment2 = tearDownMethod.javadoc();\r\n\t\t\t\tcommentString = \"Teardown method for the testcase\";\r\n\t\t\t\tmethodComment2.append(commentString);\r\n\t\t\t\ttearDownMethod = constructTearDownMethodForTestCase(tearDownMethod, testExecutionEngine);\r\n\t\t\t\ttearDownMethod.annotate(junitAfterReference);\r\n\t\t\t\t\r\n\t\t\t\tList<TestCaseStepsList> testSteps = testCaseService.listTestCaseSteps(testCase.getTestCaseId());\r\n\t\t\t\tif (testSteps == null || testSteps.isEmpty()) {\r\n\t\t\t\t\tlog.debug(\"No steps in the testcase : \" + testCaseName);\r\n\t\t\t\t\tJMethod testCaseMethod = testCaseClass.method(JMod.PUBLIC, void.class, testCaseName + \"_Test\");\r\n\t\t\t\t\ttestCaseMethod.annotate(junitTestReference);\r\n\t\t\t\t\ttestCaseMethod = constructDefaultTestCaseMethodForTestCase(testCaseMethod, testExecutionEngine, testCase);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(testStepOption.contains(\"SEPARATE_METHOD\")) {\r\n\t\t\t\t\t\tJMethod mainTestStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"mainTest\");\r\n\t\t\t\t\t\tmainTestStepMethod.annotate(junitTestReference);\r\n\t\t\t\t\t\tString stepMethod = \"\";\r\n\t\t\t\t\t\tfor (TestCaseStepsList testStep : testSteps) {\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString testStepName = ScriptGeneratorUtilities.getTestStepMethodName(testCaseName, testStep.getTestStepName(), testStep.getTestStepId(), testStep.getTestStepCode(), 1 );\r\n\t\t\t\t\t\t\tJMethod testStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, testStepName);\r\n\t\t\t\t\t\t\ttestStepMethod = constructTestStepMethodForTestCase(testStepMethod, testExecutionEngine, refClassName, testCaseName, testStepName, testStep);\r\n\t\t\t\t\t\t\tstepMethod = testStepName+\"();\";\r\n\t\t\t\t\t\t\tmainTestStepMethod.body().directStatement(stepMethod);\r\n\t\t\t\t\t\t\tstepMethod = \"\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tJMethod singleTestStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, testCaseName + \"_Test\");\r\n\t\t\t\t\t\tsingleTestStepMethod.annotate(junitTestReference);\r\n\t\t\t\t\t\tfor (TestCaseStepsList testStep : testSteps) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString testStepName = ScriptGeneratorUtilities.getTestStepMethodName(testCaseName, testStep.getTestStepName(), testStep.getTestStepId(), testStep.getTestStepCode(), 1 );\r\n\t\t\t\t\t\t\tsingleTestStepMethod = addTestStepForSingleTestStepMethodForTestCase(singleTestStepMethod, testExecutionEngine, refClassName, testCaseName, testStepName, testStep);\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\t\tFile sourceFile = new File(destinationDirectory);\r\n\t\t\t\tif (!sourceFile.exists()) {\r\n\t\t\t\t\tlog.info(\"Created Directory for source code generation : \" + destinationDirectory);\r\n\t\t\t\t\tsourceFile.mkdirs();\r\n\t\t\t\t}\r\n\t\t\t\tcodeModel.build(sourceFile);\r\n\t\t\t\tString CLASS_PACKAGE_NAME_FOLDER = classPackageName.replace(\".\", File.separator);\r\n\t\t\t\tlog.info(\"CLASS_PACKAGE_NAME_FOLDER : \" + CLASS_PACKAGE_NAME_FOLDER);\r\n\t\t\t\tmessage = sourceFile.getAbsolutePath() + File.separator + CLASS_PACKAGE_NAME_FOLDER + File.separator + testCaseName + \".java\";\r\n\t\t\t}\r\n\t\t} catch (JClassAlreadyExistsException e) {\r\n\t\t\tlog.error(\"Unable to generate testcase ref source code class\", e);\r\n\t\t\tmessage = \"Failed : Unable to generate testcase ref source code class\";\r\n\t\t} catch (IOException io) {\r\n\t\t\tlog.error(\"Unable to create file in file system\", io);\r\n\t\t\tmessage = \"Failed : Unable to create file in file system\";\r\n\t\t}\r\n\t\t\r\n\t\tlog.debug(\"Success : Generated Testcases source code framework.\" );\r\n\t\treturn message;\r\n\r\n\t}",
"public void testexecute(String test) throws Exception;",
"TestClassExecutionResult assertTestFailed(String name, String displayName, Matcher<? super String>... messageMatchers);"
] | [
"0.6938125",
"0.65149325",
"0.6466278",
"0.6270188",
"0.62338614",
"0.6132667",
"0.6132667",
"0.6132667",
"0.6132667",
"0.5941047",
"0.59037066",
"0.58954436",
"0.58939123",
"0.58791",
"0.5835574",
"0.5822178",
"0.57985455",
"0.57811666",
"0.57712114",
"0.5770224",
"0.57601005",
"0.5750914",
"0.5742917",
"0.56950635",
"0.56893396",
"0.56774694",
"0.5660716",
"0.5646828",
"0.5613884",
"0.5605916",
"0.5589368",
"0.5564378",
"0.5564292",
"0.55555767",
"0.5541834",
"0.55406934",
"0.5538744",
"0.5531812",
"0.552341",
"0.5512659",
"0.5508081",
"0.54987794",
"0.54987794",
"0.54541206",
"0.54528064",
"0.54101425",
"0.5404513",
"0.5399961",
"0.53915584",
"0.53791755",
"0.5357979",
"0.53504705",
"0.53474927",
"0.53474927",
"0.53474927",
"0.53474927",
"0.5346589",
"0.5321604",
"0.5304876",
"0.53047466",
"0.52988577",
"0.52855945",
"0.5278226",
"0.52763003",
"0.5251906",
"0.5251721",
"0.52512157",
"0.5248256",
"0.5239144",
"0.52310324",
"0.52310324",
"0.5228891",
"0.52194476",
"0.5217842",
"0.5217495",
"0.52102953",
"0.5207269",
"0.5202682",
"0.52008015",
"0.51884526",
"0.51688224",
"0.5164435",
"0.51448905",
"0.5143763",
"0.51327497",
"0.51129633",
"0.5112127",
"0.5111664",
"0.5111424",
"0.51024985",
"0.5100522",
"0.50953156",
"0.509501",
"0.5087938",
"0.5053938",
"0.50528663",
"0.5048282",
"0.5047412",
"0.5047174",
"0.5043431"
] | 0.7151798 | 0 |
System.setProperty("webdriver.ie.driver","F:\\IdeaProjectsWork\\selenium2\\drivers\\chromedriver.exe"); WebDriver wb = new InternetExplorerDriver(); | public void openIe(){
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static WebDriver ie()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.ie.driver\",System.getProperty(\"user.dir\")+\"\\\\IE\\\\IEDriverServer.exe\");\r\n\t\tgk = new InternetExplorerDriver();\r\n\t\treturn gk;\r\n\t}",
"private WebDriver createInternetExplorerDriver() {\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\tcapabilities.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, true);\n\t\tsetDriverPropertyIfRequired(\"webdriver.ie.driver\", \"IEDriverServer.exe\");\n\t\t_driver = new InternetExplorerDriver(capabilities);\n\t\treturn _driver;\n\t}",
"@Test\n\tpublic void ieOptions()\t{\n\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"INFO\"); \n\t\t//System.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"FATAL\"); \n\t\t//System.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"ERROR\"); \n\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGFILE_PROPERTY, \"D:\\\\IE.log\");\n\t // System.setProperty(InternetExplorerDriverService.IE_DRIVER_SILENT_PROPERTY, \"true\");\n\t\tInternetExplorerOptions options = new InternetExplorerOptions();\n\t\t//options.setPageLoadStrategy(\"\");\n\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_EXE_PROPERTY, \"D:\\\\Selenium Drivers\\\\IEDriverServer.exe\");\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\n\t\t// Enable proxy but will enable in system settings\n/*\n\t\tString PROXY = \"83.209.94.89:44557\";\n\t Proxy proxy = new Proxy();\n\t proxy.setAutodetect(false);\n\t proxy.setProxyType(Proxy.ProxyType.MANUAL);\n\t proxy.setSocksProxy(PROXY);\n\t cap.setCapability(CapabilityType.PROXY, proxy);\n\t\t options.merge(cap);\n*/\t\t\n\t\t\n\t\tWebDriver driver = new InternetExplorerDriver(options);\n \tdriver.get(\"https://192.163.254.17/\");\n \t// Get rid of https allow page - standard code\n\t\tdriver.get(\"javascript:document.getElementById('overridelink').click();\");\n\t}",
"@Test\r\n\tpublic void f()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C://Data_Program//Selenium_Dependencies//chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t}",
"@BeforeClass\n\tpublic void initializebrowser() throws InterruptedException {\n\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", Chrome);\n\t\t// driver = new ChromeDriver(); \n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-extensions\");\n\t\toptions.addArguments(\"test-type\");\n\t\toptions.addArguments(\"--disable-popup-blocking\");\n\t\tdriver = new ChromeDriver(options);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(common.URL);\n\t\tThread.sleep(3000);\n\n\t\t\n\t\t/*DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\t \n\t\t //Method and Description - void setCapability(java.lang.String capabilityName, boolean value)\n\t\t capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\t \n\t\t //Among the facilities provided by the System class are standard input, standard output, and error output streams; access to externally defined \"properties\"; a means of loading files and libraries; and a utility method for quickly copying a portion of an array.\n\t\t System.setProperty(\"webdriver.ie.driver\", common.IE);\n\t\t \n\t\t //InternetExplorerDriver(Capabilities capabilities)\n\t\t WebDriver driver = new InternetExplorerDriver(capabilities);\n\t\t \n\t\t driver.manage().window().maximize();\n\t\t driver.get(common.URL);\n\t\t Thread.sleep(3000);*/\n\t\t\n\t}",
"@Test\n\tpublic void launchConfiguredInternetExplorer() {\n\n\t\tSystem.setProperty(\"webdriver.ie.driver\", \"C:\\\\Java Libraries\\\\drivers\\\\IEDriverServer.exe\");\n\n//\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"INFO\");\n//\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"FATAL\");\n//\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGLEVEL_PROPERTY,\"ERROR\");\n//\t\t\n//\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_LOGFILE_PROPERTY,\"null\");// you can replace the null with the location where you want the log\n//\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_SILENT_PROPERTY,\"true\");\n\t\t\n\t\tInternetExplorerOptions options = new InternetExplorerOptions();\n\t\t\n//\t\toptions.setPageLoadStrategy(PageLoadStrategy.NONE); - this is not supported by IE\n\t\t\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\n\t\tcap.setAcceptInsecureCerts(true);\n\t\tcap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\n\t\t\n\t\t//Standard code to set the Proxy in IE.\n//\t\tString PROXY = \"83.209.94.89:44557\";\n//\t\tProxy proxy = new Proxy();\n//\t\tproxy.setAutodetect(false);\n//\t\tproxy.setProxyType(Proxy.ProxyType.MANUAL);\n//\t\tproxy.setSocksProxy(PROXY);\n//\t\tcap.setCapability(CapabilityType.PROXY,proxy);\n//\t\toptions.merge(cap);\n\t\t\n\t\tWebDriver driver = new InternetExplorerDriver(options);\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n//\t\tdriver.get(\"https://autoapp.citronglobal.com/index.php\");\n\t\tdriver.get(\"https://google.com\");\n\t\t// Certificate Error handling\n\t\tdriver.get(\"javascript:document.getElementById('overridelink').click();\"); // this is standard piece of code which is required to handle certificate error\n\t\tdriver.findElement(By.id(\"username\")).sendKeys(\"admin\");;\n\t\tdriver.manage().window().maximize();\n//\t\tdriver.quit();\n\t\t\n\n\t}",
"private void setIEDriver() throws Exception {\n\t\tcapabilities = DesiredCapabilities.internetExplorer();\n\t\t// capabilities.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\t// capabilities.setCapability(\"ignoreZoomSetting\", true);\n\t\t// capabilities.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION,\n\t\t// true);\n\t\tcapabilities.setJavascriptEnabled(true);\n\n\t\tInternetExplorerOptions ieOptions = new InternetExplorerOptions();\n\t\tieOptions.destructivelyEnsureCleanSession();\n\t\tieOptions.ignoreZoomSettings();\n\t\tieOptions.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\tieOptions.merge(capabilities);\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" IE-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}",
"@Before\n public void start(){\n DesiredCapabilities caps = new DesiredCapabilities();\n driver = new FirefoxDriver(new FirefoxBinary(new File(\"C:\\\\Program Files (x86)\\\\Nightly\\\\firefox.exe\")), new FirefoxProfile(), caps);\n wait = new WebDriverWait(driver, 10);\n\n //IE\n// DesiredCapabilities caps = new DesiredCapabilities();\n// caps.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, true);\n// WebDriver driver = new InternetExplorerDriver(caps);\n\n\n }",
"private static WebDriver launchInternetExplorer()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\tURL IEDriverURL = BrowserDriver.class.getResource(\"/drivers/IEDriverServer.exe\");\n\t\tFile file = new File(IEDriverURL.getFile()); \n\t\tSystem.setProperty(InternetExplorerDriverService.IE_DRIVER_EXE_PROPERTY, file.getAbsolutePath());\n\t\t\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\tcapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\n\t\treturn new InternetExplorerDriver(capabilities);\n\t\t}\n\t\n\t\t\n\t}",
"public void Open_Browser() \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\");\r\n\t\t//Brower initiation\r\n\t\tdriver=new ChromeDriver();\r\n\t\t//maximize browser window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\r\n\t}",
"public void setChromeDriver(){\n System.setProperty(\"webdriver.chrome.driver\", browserDriverPath);\n seleniumDriver = new ChromeDriver();\n }",
"public static WebDriver startBrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\t\n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\t WebDriver driver = new ChromeDriver();\n\t\t \n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\tdriver.get(\"http://techfios.com/test/107/\");\n\t\treturn driver;\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.ie.driver\", \"F:\\\\Training\\\\SeleniumSupport\\\\IEDriverServer.exe\");\r\n\t\tWebDriver driver = new InternetExplorerDriver();\r\n\r\n\t\t\r\n\t\t//WebDriver driver = new FirefoxDriver();\r\n\t\t//driver.get(\"https://www.google.co.in/\");\r\n\t\tdriver.navigate().to(\"https://www.google.co.in/\");\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.close();\r\n\t\t//driver.quit();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"@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 setWebdriver() throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\tcurrentDir + fileSeparator + \"lib\" + fileSeparator + \"chromedriver.exe\");\n\t\tcapability = DesiredCapabilities.chrome();\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-extensions\");\n\t\toptions.addArguments(\"disable-infobars\");\n\t\tcapability.setCapability(ChromeOptions.CAPABILITY, options);\n\t\tdriver = new ChromeDriver(capability);\n\t\tdriver.manage().deleteAllCookies();\n\t\t_eventFiringDriver = new EventFiringWebDriver(driver);\n\t\t_eventFiringDriver.get(getUrl());\n\t\t_eventFiringDriver.manage().window().maximize();\n\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 setChromeDriverProperty() {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\automation_new_code\\\\onfs.alip.accounting\\\\BrowserDriver/chromedriver.exe\");\n\t\t}",
"public static void main(String[] args) {\n\n\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\COMPAQ\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\n\nWebDriver driver =new ChromeDriver();\n\n//WebDriverWait wait = new WebDriverWait(driver, 40);\n\n driver.get(\"http://qatestingtips.com/\");\n\t\n\n}",
"public static void main(String[] args) {\nString browser=\"ff\";\nif (browser.equals(\"chrome\")) {\n\tWebDriverManager.chromedriver().setup();\n\t// System.setProperty(\"webdriver.chrome.driver\", \"/Users/user/Downloads/chromedriver\");\n\tdriver=new ChromeDriver();\n}\nelse if (browser.equals(\"ff\")) {\n\tWebDriverManager.firefoxdriver().setup();\n\tdriver=new FirefoxDriver();\n}\nelse\n\tif (browser.equals(\"IE\")) {\n\t\tWebDriverManager.iedriver().setup();\n\t\tdriver=new InternetExplorerDriver();\n\t}\n\telse\n\t\tif (browser.equals(\"opera\")) {\n\t\t\tWebDriverManager.operadriver().setup();\n\t\t\tdriver=new OperaDriver();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"no defined driver\");\n\t\t}\n\n\ndriver.get(\"https://google.com\");\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n\n\n\t}",
"@Test\r\n\tpublic void launch_browser()\r\n\t{ \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://TESTING TOOLS - SOFTWARES/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.javatpoint.com/\");\r\n\t\t// remove all cookies\r\n\t\t//driver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t}",
"@BeforeTest\r\n\tpublic void operBrowser(){\n\t\td1=Driver.getBrowser();\r\n\t\tWebDriverCommonLib wlib=new WebDriverCommonLib();\r\n\t\td1.get(Constant.url);\r\n\t\twlib.maximizeBrowse();\r\n\t\twlib.WaitPageToLoad();\r\n\t}",
"@BeforeTest\r\n\tpublic void launch()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Yogini\\\\chromedriver\\\\chromedriver.exe\"); //location of browser in local drive\r\n\t\tWebDriver driver = new ChromeDriver(); \r\n\t\tdriver.get(tobj.url);\r\n\t\tSystem.out.println(\"Before test, browser is launched\");\r\n\t}",
"@Test\r\n\tpublic void testcase() throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\chromedriver.exe\");\r\n\t\t\r\n\t\t//Step2: Launch the browser\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\t\r\n\t\t//Setp3: Launch URL\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t\t\r\n\t\tThread.sleep(2000);\r\n\t\t\r\n\t\tdriver.close();\t\r\n\r\n\t}",
"private void setLocalWebdriver() {\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setJavascriptEnabled(true);\n capabilities.setCapability(\"handlesAlerts\", true);\n switch (getBrowserId(browser)) {\n case 0:\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n driver.set(new InternetExplorerDriver(capabilities));\n break;\n case 1:\n driver.set(new FirefoxDriver(capabilities));\n break;\n case 2:\n driver.set(new SafariDriver(capabilities));\n break;\n case 3:\n driver.set(new ChromeDriver(capabilities));\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n }",
"@Before\n public void setWebDriver() throws IOException {\n System.setProperty(\"webdriver.chrome.driver\", DRIVER_PATH);\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.addArguments(\"start-maximized\");\n driver = new ChromeDriver(chromeOptions);\n }",
"@BeforeTest\n\n public void setup() {\n\n \t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Lenovo 1\\\\eclipse-workspace\\\\firstTestProject\\\\src\\\\test\\\\resources\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n\n /* System.setProperty(\"webdriver.gecko.driver\", \"C:\\\\Users\\\\Lenovo 1\\\\eclipseprojects\\\\seleniumTestProject\\\\src\\\\test\\\\resources\\\\geckodriver.exe\");\n driver = new FirefoxDriver();*/\n\n\n// System.setProperty(\"webdriver.chrome.driver\", \"/home/ushani/Selenium_ProjectWS/TwoBulls/seleniumTestProject/src/test/resources/chromedriver\");\n// WebDriver driver = new ChromeDriver();\n\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\n driver.get(\"http://www.google.com\");\n }",
"@BeforeTest\n public void setup() {\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\User\\\\IdeaProjects\\\\LoginToJira\\\\chromedriver.exe\");\n // Create a new instance of the Chrome driver\n this.driver = new ChromeDriver();\n }",
"@BeforeTest\r\n public void launchBrowser() {\n System.setProperty(\"webdriver.chrome.driver\", ChromePath);\r\n driver= new ChromeDriver();\r\n driver.manage().window().maximize();\r\n driver.get(titulo);\r\n }",
"public void setDriver(String browserName){\r\n\t \r\n\t\t if(browserName==null){\r\n\t\t\t browserName=\"firefox\";\r\n\t\t\t \r\n\t\t }\r\n\t\t if(browserName.equalsIgnoreCase(\"firefox\")){\r\n\t\t\t \r\n\t\t\t System.setProperty(\"webdriver.gecko.driver\", FIREFOX_DRIVER_PATH);\r\n\t\t\t \r\n\t\t\t driver= new FirefoxDriver();\r\n\t\t\t \r\n\t\t }\r\n\t\t \r\n\t\t if(browserName.equalsIgnoreCase(\"chrome\")){\r\n\t\t\t \r\n\t\t\t System.setProperty(\"webdriver.chrome.driver\",CHROME_DRIVER_PATH);\r\n\t\t\t \r\n\t\t\t driver= new ChromeDriver();\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t if(browserName.equalsIgnoreCase(\"ie\")){\r\n\t\t\t \r\n\t\t\t System.setProperty(\"webdriver.ie.driver\",IE_DRIVER_PATH);\r\n\t\t\t \r\n\t\t\t driver= new InternetExplorerDriver();\r\n\t\t\t \r\n\t\t }\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"@BeforeTest\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PSQA\\\\Desktop\\\\driver\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.booking.com/\");\n\t\n\t\t\n\t\tdriver.manage().window().maximize();\n\t\tThread.sleep(100);\n\t\t\n}",
"public void getDriver() {\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver = new ChromeDriver();\n\t}",
"public WebDriver browserSetup() throws IOException\r\n\t{ \r\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tSystem.out.println(\"1.Chrome\\n2.Firefox \\nEnter your choice:\");\r\n\t\tString choice=br.readLine();\r\n\t\t\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\t//To start Chrome Driver\r\n\t\tcase \"1\":\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Test Automation\\\\Software\\\\chrome\\\\New Version\\\\chromedriver.exe\");\r\n\t\t ChromeOptions options=new ChromeOptions();\r\n\t\t options.addArguments(\"--disable-notifications\");\r\n\t\t driver=new ChromeDriver(options);\r\n\t\t break;\r\n\t\t\r\n\t\t//To start Firefox Driver\r\n\t\tcase \"2\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\***\\\\drivers\\\\geckodriver.exe\");\r\n\t\t\tdriver=new FirefoxDriver();\r\n\t\t\tbreak;\r\n\t\t} \r\n\t\t\r\n\t\tdriver.get(url);\r\n\t\t\r\n\t\t//To maximize the window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(8, TimeUnit.SECONDS);\r\n\t\t\r\n\t\treturn driver;\r\n\t}",
"@ BeforeTest \n\tpublic void Amazon() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\resources\\\\chromedriver.exe\"); // to make the path portable create folder reources and put the element to it \n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.amazon.com/\");\n\t\tSystem.out.println(driver.getCurrentUrl());\t\n\t\tdriver.manage().window().maximize();\n\n}",
"public static void setup(String browser) throws Exception{\n if(browser.equalsIgnoreCase(\"firefox\")){\n \tFile pathToBinary = new File(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox 41\\\\firefox.exe\");\n \tFirefoxBinary binary = new FirefoxBinary(pathToBinary);\n \tFirefoxDriver driver = new FirefoxDriver(binary, new FirefoxProfile());\n \t\n \t//System.setProperty(\"webdriver.firefox.driver\",\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n \t/*DesiredCapabilities capabilies = DesiredCapabilities.firefox();\t\t\t\n capabilies.getBrowserName();\n capabilies.getVersion();*/\n \t\t\t\n \t//create Firefox instance\t \n //driver = new FirefoxDriver(); \n System.out.println(\"Browser Used: \"+browser);\n }\t \n //Check if parameter passed is 'Chrome'\n // https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/chrome/ChromeOptions.html\n // http://www.programcreek.com/java-api-examples/index.php?api=org.openqa.selenium.remote.DesiredCapabilities (Singleton)\n else if(browser.equalsIgnoreCase(\"chrome\")){\t \t \n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n ChromeOptions opt = new ChromeOptions();\n opt.setBinary(\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n opt.setExperimentalOption(\"Browser\", \"Chrome\");\n opt.getExperimentalOption(\"version\");\n \n// DesiredCapabilities capabilies = DesiredCapabilities.chrome();\n// capabilies.setBrowserName(\"chrome\");\n// capabilies.setPlatform(Platform.WINDOWS);\n// capabilies.setVersion(\"38\");\n// DesiredCapabilities capabilities = new DesiredCapabilities();\n \n //Create Chrome instance\n driver = new ChromeDriver(opt);\t \n }\n \n //Check if parameter passed is 'Safari'\t\n else if(browser.equalsIgnoreCase(\"safari\")){\t \t \n \tSystem.setProperty(\"webdriver.safari.driver\",\"C:/safaridriver.exe\");\n \t\n \t//System.setProperty(\"webdriver.safari.noinstall\", \"true\");\n \tdriver = new SafariDriver();\n \t\n /*\tSafariOptions options = new SafariOptions();\n \tSafariDriver driver = new SafariDriver(options);\n \tDesiredCapabilities capabilities = DesiredCapabilities.safari();\n \tcapabilities.setCapability(SafariOptions.CAPABILITY, options);*/\n }\n \n //Check if parameter passed is 'IE'\t \n else if(browser.equalsIgnoreCase(\"ie\")){\n \t//String IE32 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_32.exe\"; //IE 32 bit\n\t\t\tString IE64 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_64.exe\"; //IE 64 bit\n \tSystem.setProperty(\"webdriver.ie.driver\",IE64);\n \t\n /* \tDesiredCapabilities capabilies = DesiredCapabilities.internetExplorer();\n \tcapabilies.setBrowserName(\"ie\");\n capabilies.getBrowserName();\n capabilies.getPlatform();\n capabilies.getVersion();*/\n \n \t//Create IE instance\n \tdriver = new InternetExplorerDriver();\n }\t \n else{\t \n //If no browser passed throw exception\t \n throw new Exception(\"Browser is not correct\");\t \n }\t \n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\n\t}",
"private static WebDriver getIEDriver() {\n\t\treturn null;\n\t}",
"@Override\n public RemoteWebDriver getDriver() {\n\n File ieFile = new File(Config.getProperty(Config.IE_PATH));\n System.setProperty(\"webdriver.ie.driver\", ieFile.getAbsolutePath());\n\n DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n capabilities.setCapability(\n InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n true);\n capabilities.setJavascriptEnabled(true);\n return new InternetExplorerDriver(capabilities);\n }",
"public void openBrowser() {\n ResourceBundle config = ResourceBundle.getBundle(\"config\");\n\n config.getString(\"browser\").equalsIgnoreCase(\"Chrome\");\n System.setProperty(\"webdriver.chrome.driver\", \"src/Drivers/chromedriver_76.0.exe\");\n driver = new ChromeDriver();\n\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n// driver.get(config.getString(\"URL\"));\n driver.manage().window().maximize();\n }",
"public void setup(){\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"//Users//bpat12//Downloads//chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tSystem.out.println(\"launch browser\");\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tdriver.get(url);\n\t}",
"public static void ChromeExePathSetUp() {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \r\n\t\t\t\t\"D:\\\\VisionITWorkspace\\\\dependencies\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tReporter.log(\"Chrome Exe path Set up\", true);\r\n\t}",
"@Test\n public void test() throws MalformedURLException {\n System.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\drivers\\\\chromedriver.exe\"); \n WebDriver driver=new ChromeDriver();\n // WebDriver driver=new RemoteWebDriver(url,cap);\n driver.manage().window().maximize(); \n driver.get(\"https://curiedoctorapp.firebaseapp.com\");\n System.out.println(\"The title is\"+ driver.getTitle());\n driver.quit();\n \n }",
"public static void openBrowser() {\r\n\t\tString browser = prop.getProperty(\"browserType\").toLowerCase();\r\n\r\n\t\ttry {\r\n\t\t\tif (browser.equals(\"chrome\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"chromeName\"), prop.getProperty(\"chromePath\"));\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ff\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"FFName\"), prop.getProperty(\"FFPath\"));\r\n\t\t\t\tdriver = new FirefoxDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ie\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"IEName\"), prop.getProperty(\"IEPath\"));\r\n\t\t\t\tdriver = new InternetExplorerDriver();\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t}\r\n\t}",
"@Parameters(\"browser\")\n private void switchBrowser(String browser) {\n if (browser.equals(DRIVER_TYPE.IE.name())) {\n System.setProperty(\"webdriver.ie.driver\", \"src/test/resources/driver/IEDriverServer.exe\");\n driver = new InternetExplorerDriver();\n } else {\n System.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/driver/chromedriver.exe\");\n driver = new ChromeDriver();\n }\n }",
"public static void main(String[] args) throws IOException {\n\r\n\r\n\t WebDriver driver;\r\n\t ChromeOptions options=new ChromeOptions();\r\n\t options.addArguments(\"C:\\\\chromedriver.exe\"); \r\n\t\tDesiredCapabilities capabilities=DesiredCapabilities.chrome();\r\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY,options);\r\n\t\tdriver=new RemoteWebDriver(new URL(\"http://192.168.71.1:5555/wd/hub\"),capabilities);\r\n driver.get(\"http://www.baidu.com\");\r\n \r\n \r\n \r\n//\t\tWebDriver driver;\r\n//\t\tProfilesIni allProfiles =new ProfilesIni();\r\n// FirefoxProfile profile=allProfiles.getProfile(\"default\");\r\n// DesiredCapabilities capabilities=DesiredCapabilities.firefox();\r\n//\t\tdriver=new RemoteWebDriver(new URL(\"http://192.168.71.1:5555/wd/hub\"),capabilities);\r\n//\t\tdriver.get(\"http://www.baidu.com\");\r\n\t}",
"@BeforeClass\n\tpublic void setUp() throws MalformedURLException, AWTException{\n\t\tString filepath_driver=Reader.extract(\"chromedriver.exe\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", filepath_driver);\n driver = new ChromeDriver(); \n driver.get(\"http://baladyapps.momra.gov.sa/Eservices/Pages/MyRequests.aspx\");\n \n Robot r = new Robot(); \n r.keyPress(KeyEvent.VK_ESCAPE); \n r.keyRelease(KeyEvent.VK_ESCAPE);\n \n \n \n \n\t}",
"@Test\r\n\tpublic void tc1(){\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\tdriver=new ChromeDriver();\r\n\t\tdriver.get(\"https://www.seleniumhq.org/download/\");\r\n\t\tString title = driver.getTitle();\r\n\t\tSystem.out.println(title);\r\n\t\tdriver.close();\r\n\t}",
"@Parameters({\"browser\"})\n\t@BeforeMethod\n\tpublic final void setDriver(String browser) throws Exception{\n\t\tsetBrowser = browser;\n\t\tswitch(browser){\n\t\t\n\t\tcase \"chrome\":\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\twebDriver.set(new ChromeDriver());\n\t\tbreak;\n\t\t\n\t\tcase \"firefox\":\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\twebDriver.set(new FirefoxDriver());\n\t\tbreak;\n\t\t\n\t\tcase \"ie\":\n\t\t\tWebDriverManager.edgedriver().setup();\n\t\t\twebDriver.set(new EdgeDriver());\n\t\tbreak;\n\t\t\n\t\tcase \"edge\":\n\t\t\t/*EdgeOptions options = new EdgeOptions();\n\t\t\t//options.setProxy(proxy)\n*/\t\t\tSystem.setProperty(\"webdriver.edge.driver\", resourcePath+\"Drivers/MicrosoftWebDriver.exe\");\n\t\t\tWebDriver driver = new EdgeDriver();\n\t\t\t//WebDriverManager.edgedriver().setup();\n\t\t\twebDriver.set(driver);\n\t\tbreak;\n\t\t\n\t\tcase \"safari\":\n\t\t\twebDriver.set(new SafariDriver());\n\t\t\n\t\t}\n\t}",
"public static WebDriver chrome()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\Chrome\\\\chromedriver.exe\");\r\n\t\tgk = new ChromeDriver();\r\n\t\treturn gk;\r\n\t}",
"@BeforeTest\r\n\tpublic void beforeTest() throws MalformedURLException {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PDC2B-Training.pdc2b\\\\Downloads\\\\Selenium Drivers\\\\BrowserDriver\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(5000, TimeUnit.SECONDS);\r\n\t}",
"public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\n\n // create object for using selenium driver;\n WebDriver driver=new ChromeDriver();\n\n //open browser\n driver.get(\"http://amazon.com\");// bumu exlaydu\n //driver.get(\"http://google.com\");\n // open website\n System.out.println(driver.getTitle());\n\n\n\n\n }",
"public GoogleAutomation() {\n\t\t\n\t\t//The setProperty() method of Java system class sets the property of the system which is indicated by a key.\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"driver//chromedriver.exe\");\n\t\t\n\t\t//initilize webDriver \n\t\twebDriver = new ChromeDriver();\n\t}",
"@Test \n public void executSessionThree(){\n System.out.println(\"open the browser: chrome III\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }",
"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}",
"public void browser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/Driver/chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();// maximize the window\n\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\n\t}",
"@BeforeMethod\n\tpublic void setUp() throws Exception{\n\n\t\tDesiredCapabilities chromecap= DesiredCapabilities.chrome();\n\t\tchromecap.setBrowserName(\"chrome\");\n\t\tchromecap.setPlatform(Platform.WINDOWS);\n\t\tdriver= new RemoteWebDriver(new URL(\"http://localhost:4444/wd/hub\"), chromecap);\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t}",
"@BeforeClass\n\tpublic void nav()\n\t{\n\t\tChromeOptions chromeoptions = new ChromeOptions();\n\t\tchromeoptions.addArguments(\"--start-maximized\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"c:\\\\Program Files\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.americanexpress.com/\");\n\t}",
"@BeforeTest\n\tpublic void beforeTest() {\n\t\t\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\".\\\\lib\\\\geckodriver.exe\");\n\t\tdriver = new FirefoxDriver(); \n//\t\tSystem.setProperty(\"webdriver.ie.driver\",\".\\\\lib\\\\IEDriverServer.exe\");\n//\t\tdriver = new InternetExplorerDriver();\n\t\t\n//\t\tSystem.setProperty(\"webdriver.chrome.driver\",\".\\\\lib\\\\chromedriver.exe\");\n//\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t}",
"@Parameters(\"browser\")\n\t@BeforeMethod\n\tpublic void launchBrowser(String browser) throws InterruptedException{\n\t\tif(browser.equalsIgnoreCase(\"firefox\")) {\n\t\t\t \n\t\t\t driver = new FirefoxDriver();\n\t\t \n\t\t // If browser is IE, then do this\t \n\t\t \n\t\t }else if (browser.equalsIgnoreCase(\"ie\")) { \n\t\t \n\t\t\t // Here I am setting up the path for my IEDriver\n\t\t \n\t\t\t System.setProperty(\"webdriver.ie.driver\", \"C://Users//sudt//Downloads//IEDriverServer_x64_2.53.1//IEDriverServer (2).exe\");\n\t\t \n\t\t\t driver = new InternetExplorerDriver();\n\t\t \n\t\t } \n\t\t else if (browser.equalsIgnoreCase(\"chrome\")){\n\t\t\t System.setProperty(\"webdriver.chrome.driver\", \"C://Users//sudt//Downloads//chromedriver_win32//chromedriver.exe\");\n\t\t\t driver = new ChromeDriver();\n\t\t }\n\t\t else {\n throw new IllegalArgumentException(\"The Browser Type is Undefined\");\n }\n\n\t\tdriver.get(\"https://www.xero.com/us/\");\n\t\tdriver.manage().window().maximize();\n\t\n\t\n\t}",
"public static void main(String[] args) {\n\t\r\n\t PropertyFetcher prop = new PropertyFetcher();\r\n\t \r\n\t \r\n\t \r\n\t \r\nWebDriver driver=new ChromeDriver(); \r\nSystem.setProperty(\"webdriver.chrome.driver\", \"C:/Users/Kumarshobhitsoni/workspace/SeleniumPractice/chromedriver.exe\");\r\n//System.out.println(prop.getProperty(\"URL\"));\r\ndriver.get(prop.fetchProp(\"URL\"));\r\n\r\n//System.out.println(\"Hiii\");\r\n\r\n\t}",
"private void setWebDriver() {\n if (Boolean.valueOf(System.getProperty(\"LOCAL_DRIVER\"))) {\n setLocalWebdriver();\n } else if (Boolean.valueOf(System.getProperty(\"REMOTE_DRIVER\"))) {\n setRemoteWebdriver();\n } else if (Boolean.valueOf(System.getProperty(\"SAUCE_DRIVER\"))) {\n setSauceWebdriver();\n } else {\n throw new WebDriverException(\"Type of driver not specified!!!\");\n }\n this.driver.get().manage().timeouts()\n .implicitlyWait(10, TimeUnit.SECONDS);\n if (browser.equalsIgnoreCase(\"internet explorer\")|browser.equalsIgnoreCase(\"firefox\")|browser.equalsIgnoreCase(\"chrome\")|browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t//we only want to maximise the browser window for desktop browser, not devices.\n \tthis.driver.get().manage().window().maximize();\n\t\t}\n }",
"@BeforeClass\n public static void setup() {\n String driverPath = \"\";\n System.setProperty(\"webdriver.chrome.driver\", driverPath);\n driver = new ChromeDriver();\n driver.manage().window().maximize();\n }",
"public static void main(String[] args) {\nSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\Users\\\\v-poori\\\\Desktop\\\\selenium\\\\geckodriver-v0.11.1-win64\\\\geckodriver.exe\");\n\tdriver = new FirefoxDriver();\n\tdriver.manage().window().maximize();\n\n\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\t\n\tdriver.get(\"https://www.google.co.in/\");\n\t}",
"protected void setDriver() throws Exception {\n\t\tswitch (browser.split(\"[-]\")[0].toLowerCase()) {\n\t\tcase \"firefox\":\n\t\t\tsetFirefoxDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\t// runDocker();\n\t\t\tsetChromeDriver();\n\t\t\tbreak;\n\t\tcase \"ie\":\n\t\t\tsetIEDriver();\n\t\t\tbreak;\n\t\tcase \"edge\":\n\t\t\tsetEdgeDriver();\n\t\t\tbreak;\n\t\tcase \"safari\":\n\t\t\tsetSafariDriver();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tsetChromeDriver();\n\t\t\tbreak;\n\t\t}\n\t\tgetDriver().manage().window().maximize(); // Maximize the browser.\n\t\tgetDriver().manage().timeouts().implicitlyWait(defaultImplicitWaitTime, TimeUnit.SECONDS);\n\t}",
"private void setRemoteWebdriver() {\n\n switch (getBrowserId(browser)) {\n case 0:\n capabilities = DesiredCapabilities.internetExplorer();\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n break;\n case 1:\n\t\tFirefoxProfile profile = new FirefoxProfile();\n \tprofile.setEnableNativeEvents(true);\n capabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(FirefoxDriver.PROFILE, profile);\n \tcapabilities.setJavascriptEnabled(true);\n \tcapabilities.setCapability(\"marionette\", false);\n \tcapabilities.setCapability(\"acceptInsecureCerts\", true);\n break;\n case 2:\n capabilities = DesiredCapabilities.safari();\n break;\n case 3:\n capabilities = DesiredCapabilities.chrome();\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n capabilities.setCapability(\"javascriptEnabled\", true);\n capabilities.setCapability(\"platform\", platform);\n capabilities.setCapability(\"version\", version);\n capabilities.merge(extraCapabilities);\n\n try {\n this.driver.set(new RemoteWebDriver(new URL(\"http://\"\n + System.getProperty(\"GRID_HOST\") + \":\"\n + System.getProperty(\"GRID_PORT\") + \"/wd/hub\"),\n capabilities));\n } catch (MalformedURLException e) {\n LOGGER.log(Level.INFO,\n \"MalformedURLException in setRemoteWebdriver() method\", e);\n }\n }",
"public static void main(String[] args) {\nWebDriver driver = new FirefoxDriver();\nSystem.out.println(\"hai\");\ndriver.get(\"https://www.google.com\");\nSystem.out.println(driver.getTitle());\ndriver.close();\n\t}",
"@Before\r\n\tpublic void setup() {\r\n\t\tSystem.out.println(\"Before\");\r\n\t\t//System.setProperty(\"webdriver.chrome.driver\", \"C:/Users/Admin/Desktop/Chromedriver.exe\");\r\n\t\t//driver = new ChromeDriver();\r\n\t}",
"@BeforeClass\n\tpublic static void configureDriver(){\n\t\tif(driver == null) {\n\t\t\tif(Constants.browserName.equalsIgnoreCase(\"chrome\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\rober\\\\Documents\\\\WebDrivers\\\\chromedriver_win32-89\"\n\t\t\t\t\t\t+ \"\\\\chromedriver.exe\");\n\t\t\t\tdriver = new ChromeDriver();\n\t\t\t} else if(Constants.browserName.equalsIgnoreCase(\"firefox\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\rober\\\\Documents\\\\WebDrivers\\\\chromedriver_win32-89\"\n\t\t\t\t\t\t+ \"\\\\geckodriver.exe\");\n\t\t\t\tdriver = new FirefoxDriver();\n\t\t\t} else if(Constants.browserName.equalsIgnoreCase(\"edge\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.edge.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\rober\\\\Documents\\\\WebDrivers\\\\chromedriver_win32-89\"\n\t\t\t\t\t\t+ \"\\\\msedgedriver.exe\");\n\t\t\t\tdriver = new EdgeDriver();\n\t\t\t} else if(Constants.browserName.equalsIgnoreCase(\"ie\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\rober\\\\Documents\\\\WebDrivers\\\\chromedriver_win32-89\"\n\t\t\t\t\t\t+ \"\\\\IEDriver.exe\");\n\t\t\t\tdriver = new InternetExplorerDriver();\n\t\t\t}\n\t\t}\n\t\t\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.manage().timeouts().implicitlyWait(20,TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tdriver.get(Constants.url);\n\t\t\n\t}",
"public void setUpDriver(final String browser) throws MalformedURLException{\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString gridUrl=System.getProperty(\"gridurl\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//check if parameter passed from TestNg is 'firefox'\r\n\t\t\r\n//\t\tif (BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n//\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t if(StringUtils.isNotEmpty(gridUrl)){\r\n//\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t }\r\n//\t\t else{\r\n//\t\t\t driver =new FirefoxDriver(capabilities);\r\n//\t\t }\r\n\t\t \r\n\t\t\r\n\t\tif(BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n\t\t\t\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t \r\n\t\t\t final String firebugpath1=\"src//main//resource//firepath-0.9.7.1-fx.xpi\";\r\n\t\t\t final String firebugpath =\"src//main//resource//firebug-1.12.8.xpi\";\r\n\t\t\t FirefoxProfile profile=new FirefoxProfile();\r\n//\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\r\n\t\t\t \r\n\t\t\t try{\r\n\t\t\t\t profile.addExtension(new File(firebugpath));\r\n\t\t\t\t profile.addExtension(new File(firebugpath1));\t \r\n\t\t\t }catch (IOException e){\r\n\t\t\t\t logger.error(\"Exception:\",e);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t profile.setPreference(\"extensions.firebug.allpagesActivation\", \"on\");\r\n//\t\t\t capabilities.setCapability(FirefoxDriver.PROFILE,profile);\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\t\t\t //if (StringUtils.isNotEmpty(gridUrl)){\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t}else if(BrowserLib.CHROME.equalsIgnoreCase(browser)){\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.chrome();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new ChromeDriver();\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t \r\n\t\t}else if(BrowserLib.INTERNET_EXP.equalsIgnoreCase(browser)){\r\n//\t\t\tset path to iedriver.exe you may need to download it from 32 bits\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.setProperty(\"webDriver.ie.driver\", System.getProperty(\"user.dir\")+\"/src/main/resource/\"+ \"IEDriverserver.exe\");\r\n//\t\t\t create ie instance\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.internetExplorer();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t\t if (StringUtils.isNotEmpty(gridUrl)){\r\n// \t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t\t }else{\r\n//\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n//\t\t\t }\r\n\t\t\t if(gridUrl.isEmpty()){\r\n\t\t\t\t driver =new InternetExplorerDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t}else{\r\n//\t\t\tif no browser passed throw exception\r\n\t\t\tthrow new UnsupportBrowserException();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tthis.driver.manage().deleteAllCookies();\r\n\t\tthis.browserMaximize();\r\n\t\tthis.driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}",
"public WebDriver createWebDriverInstance(String Browser) throws MalformedURLException\n\t{\n\t\tif(d==null && Browser.equals(\"Firefox\"))\n\t\t{\n\n\t\t\td = new FirefoxDriver();\n\t\t\tlogger.info(\"--FireFox Browser has opened \");\n\t\t}\n\n\t\telse if(d==null && Browser.equals(\"Chrome\"))\n\t\t{\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.addArguments(\"start-maximized\");\n\t\t\tDesiredCapabilities capabilities = new DesiredCapabilities(DesiredCapabilities.chrome());\n\t\t\tcapabilities.setCapability (CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcapabilities.setCapability (ChromeOptions.CAPABILITY,options);\n\t\t\tChromeDriverManager.getInstance().setup();\n\t\t\t\n\t\t\t//Don't Remember Passwords by default\n\t\t\tMap<String, Object> prefs = new HashMap<String, Object>();\n\t\t\tprefs.put(\"credentials_enable_service\", false);\n\t\t\tprefs.put(\"profile.password_manager_enabled\", false);\n\t\t\toptions.setExperimentalOption(\"prefs\", prefs);\n\t\t\t/*\n\t\t\tString path =System.getProperty(\"user.dir\")+File.separator+\"chromedriver.exe\";\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", path);\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();*/\n\t\t\td = new ChromeDriver(capabilities);\n\t\t\tlogger.info(\"--Chrome Browser has opened \");\n\t\t}\n\n\t\telse if (d==null && Browser.equals(\"IE\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", true);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\telse if (d==null && Browser.equals(\"IE32bit\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer_32bit.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(\n\t\t\t\t\tInternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n\t\t\t\t\ttrue);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", false);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\treturn d;\n\n\n\t}",
"public static void main(String[] args) \r\n\t{\n\t\tString path=\"browser_drivers\\\\chromedriver.exe\";\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", path);\r\n\t\tWebDriver driver=new ChromeDriver(); //Launch browser\r\n\t\tdriver.get(\"http://seleniumhq.org\"); //Load webpage\r\n\t\tdriver.manage().window().maximize(); //maximize browser window\r\n\t\t\r\n\t\t\r\n\t\tString Exp_url=\"https://www.seleniumhq.org/\";\r\n\t\t\r\n\t\t//Capture runtime url\r\n\t\tString Runtime_url=driver.getCurrentUrl();\r\n\t\t\t\t\r\n\t\tif(Runtime_url.equals(Exp_url))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Expected url presented for selenium homepage\");\r\n\t\t\t\r\n\t\t\tWebElement Download_tab=driver.findElement(By.xpath(\"//a[@title='Get Selenium']\"));\r\n\t\t\tDownload_tab.click();\r\n\t\t\t\r\n\t\t\tif(driver.getCurrentUrl().contains(\"download/\"))\r\n\t\t\t\tSystem.out.println(\"expected url presented, Downlaod page verified\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"expected url not presented, download page not verified\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Wrong url presnted for selenium hompage\");\r\n\t\t}\r\n\t\r\n\t}",
"@Before\n public void Setup() { //this is done before every test, chrome driver is saved in a specific location\n\n System.setProperty(\"webdriver.chrome.driver\",\n Constant.CROMEDRIVER);\n\n driver = new ChromeDriver();\n }",
"public static void main(String[] args) throws InterruptedException {\n WebDriverManager.chromedriver().setup();\n ChromeDriver driver = new ChromeDriver(); // ChromeDriver is a reference type\n //RemoteWebDriver driver = new SafariDriver();\n //RemoteWebDriver driver = new ChromeDriver();\n //RemoteWebDriver driver = new InternetExplorerDriver(); //RemoteWebDriver is the parent of webdrivers\n //They all inherited RemoteWebDriver. It is called polymorphism\n\n //In selenium, everything starts from Webdriver interface\n //If I want to open a web page I just call this driver and I use methods from the driver\n //here we used get() method. Every single script always start with get() method.\n //It is like key to open the door. Get will open website first\n driver.get(\"http://google.com\");\n driver.manage().window().maximize(); //to maximize the browser\n //driver.manage().window().fullscreen();\n\n Thread.sleep(3000); //for demo, wait 3 seconds. If you use this add throws declaration. This is why we used throws InterruptedException\n\n //method that returns page title. You can also see it as tab name, in the browser\n String title = driver.getTitle(); //returns <title>Some title</title> text. It is actual title\n String expectedTitle = \"Google\"; //It is expected title\n System.out.println(\"Title is...\"+ title);\n\n if (expectedTitle.equalsIgnoreCase(title)){ //expected title is equal to actual title\n System.out.println(\"TEST PASSED!\");\n }else {\n System.out.println(\"TEST FAILED\");\n }\n\n //go to another website within the same window\n driver.navigate().to(\"http://amazon.com\");\n //amazon has long title so we just used contain method not equals\n if (driver.getTitle().toLowerCase().contains(\"amazon\")){\n System.out.println(\"TEST PASSED!\");\n }else {\n System.out.println(\"TEST FAILED!\");\n }\n\n //comeback to google. Instead of writing if statement,line 32, we can write this method\n driver.navigate().back();\n Thread.sleep(3000); //adding 3 sec between the navigating Google to Amazon\n verifyEquals(driver.getTitle(), \"Google\"); //calling verifyEquals method, line 55, checking if page title is equals to Google\n\n //move forward in the browser history, again going to amazon\n driver.navigate().forward();\n Thread.sleep(3000);\n\n System.out.println(\"Title: \"+driver.getTitle()); //Title is a String\n System.out.println(\"URL: \"+ driver.getCurrentUrl()); // to get URL, URL is a String\n\n driver.navigate().refresh(); //to reload page\n Thread.sleep(3000);\n //must be at the end\n driver.close(); //to close browser\n }",
"public static WebDriver setUp() {\n\t\n \t\n \tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\"); //if it doesn't work we can check with user.dir...\n \tdriver = new ChromeDriver(); //launch the Browser it opens empty page\n \tdriver.manage().window().maximize();\n \tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); //to wait globally\n \tdriver.get(\"http://166.62.36.207/humanresources/symfony/web/index.php/auth/login\");\n \t \n \treturn driver; //return object of the driver \t\n}",
"public static void openBrowser()\n\t{\n\t\tdriver = DriverSetup.getWebDriver(ReadPropertiesFile.getBrowser());\n\t\tdriver.get(ReadPropertiesFile.getURL());\n\t\tlog.info(\"Opening Browser\");\n\t\tlog.info(\"Practo website is launched \");\n\t}",
"@Test \n public void executSessionOne(){\n\t System.out.println(\"open the browser: chrome\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }",
"public static void initialization() throws InterruptedException, FileNotFoundException {\n\n String browserName = prop.getProperty(\"browser\");\n if (browserName.equalsIgnoreCase(\"chrome\")) {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n } else if (browserName.equalsIgnoreCase(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n }\n driver.manage().window().maximize();\n String url = prop.getProperty(\"url\");\n driver.get(url);\n driver.manage().timeouts().pageLoadTimeout(Util_Constants.IMPLICIT_WAIT, TimeUnit.SECONDS);\n\n\n }",
"private void setChromeDriver() throws Exception {\n\t\t// boolean headless = false;\n\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\n\t\tchromePrefs.put(\"download.default_directory\", BasePage.myTempDownloadsFolder);\n\t\tchromeOptions.setExperimentalOption(\"prefs\", chromePrefs);\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\n\t\tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\tchromeOptions.addArguments(\"--disable-extensions\");\n\t\tchromeOptions.addArguments(\"start-maximized\");\n\n\t\t/*\n\t\t * To set headless mode for chrome. Would need to make it conditional\n\t\t * from browser parameter Does not currently work for all tests.\n\t\t */\n\t\t// chromeOptions.setHeadless(true);\n\n\t\tif (runLocation.toLowerCase().equals(\"smartbear\")) {\n\t\t\tReporter.log(\"-- SMARTBEAR: standard capabilities. Not ChromeOptions\", true);\n\t\t\tcapabilities = new DesiredCapabilities();\n\t\t} else {\n\t\t\tcapabilities = DesiredCapabilities.chrome();\n\t\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\t\t}\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t \n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" Chrome-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}",
"@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }",
"public static ChromeDriver intiChrome() throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:/ChromeServer/chromedriver.exe\");\n\t\t// WebDriver driver = new ChromeDriver();\n\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t// 设置为 headless 模式 (必须)\n\t\t// chromeOptions.addArguments(\"--headless\");\n\t\t// 设置浏览器窗口打开大小 (非必须)\n\t\t// chromeOptions.addArguments(\"--window-size=1980,1068\");\n\t\tChromeDriver driver = new ChromeDriver(chromeOptions);\n\t\treturn driver;\n\t}",
"@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}",
"public void initiateBrowser(String browser) {\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\t\tString current_dir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(os);\n\t\tSystem.out.println(current_dir);\n\t\tswitch (browser) {\n\t\tcase \"ie\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", current_dir + \"/drivers/IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tif (os.contains(\"linux\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/linuxdrivers/chromedriver\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\n\t\t\t\toptions.setBinary(\"/usr/bin/google-chrome\");\n\t\t\t\toptions.addArguments(\"--headless\");\n\t\t\t} else if (os.contains(\"windows\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/chromedriver.exe\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\t\t\t}\n\t\t\toptions.addArguments(\"test-type\");\n\t\t\toptions.addArguments(\"disable-popup-blocking\");\n\t\t\tdriver = new ChromeDriver(options);\n\n\t\t\tdriver.manage().window().maximize();\n\t\t\tbreak;\n\t\tcase \"firefox\":\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t}",
"public void initialization()\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Mrunal\\\\chromedriver.exe\");\n\t\n\t\tif(prop.getProperty(\"browser\").contains(\"chrome\"))\n\t\t driver = new ChromeDriver();\n\t\t \n\t\t driver.manage().deleteAllCookies();\n\t\t driver.manage().timeouts().pageLoadTimeout(2000, TimeUnit.MILLISECONDS);\n\t\t driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n\n\t\t driver.get(prop.getProperty(\"url\"));\n\t\t driver.manage().window().maximize();\n\t\t driver.manage().timeouts().implicitlyWait(8, TimeUnit.SECONDS);\n\t\t \n\t}",
"@Before\r\n\tpublic void OpenChrome() {\n\t\tconfig = new ConfigReader();\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",config.getChromePath());\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\texPages = new ExpediaPages(driver);\r\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\t\t\n\t\tSystem.setProperty(\"webdriver.ie.driver\",\"C:\\\\Selenium\\\\IEDriverServer_x64_3.150.1\\\\IEDriverServer.exe\");\n\t\t\n\t\tWebDriver ie = new InternetExplorerDriver();\n\t\t\n\t\tie.get(\"https://facebook.com\");\n\t\t\n\t\tThread.sleep(5000);\n\t\t\n\t\tSystem.out.println(ie.getTitle());\n\t\t\n\t\tie.close();\n\t\t\n\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\t\t\r\n\t\tDesiredCapabilities cap=new DesiredCapabilities();\r\n\t\tcap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\r\n\t\t//WebDriver dr=new FirefoxDriver();\r\n\t\t//dr.get(\"https:www.cacert.org/\");\r\n\t\t\r\n\t\t/*System.setProperty(\"webdriver.ie.driver\", \"C:\\\\ProgramData\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Google Chrome.lnk\");\r\n\t\t\r\n\t\tWebDriver dr=new InternetExplorerDriver();\r\n\t\tThread.sleep(2000);\r\n\t\tdr.get(\"https:www.cacert.org/\");*/\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"F:\\\\Selenium prgm\\\\SelEx\\\\chromedriver.exe\");\r\n\t\t\tWebDriver dr=new ChromeDriver(cap);\r\n\t\t\tdr.get(\"https:www.cacert.org/\");\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\t\t\r\n\t\tChromeOptions options = new ChromeOptions(); \r\n\t\t\t\toptions.addArguments(\"disable-infobars\");\r\n\t\t\t\t//System.setProperty(\"webdriver.ie.driver\", \"C:\\\\Users\\\\ext.cvelakaturichowd\\\\Downloads\\\\IEDriverServer_Win32_3.9.0\\\\IEDriverServer.exe\");\r\n\t\t\t\t//System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\ext.cvelakaturichowd\\\\Downloads\\\\chromedriver_win32\\\\chromeDriver.exe\");\r\n\t\t\t\t//WebDriver driver = new InternetExplorerDriver();\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\ext.cvelakaturichowd\\\\Downloads\\\\chromedriver_win32 (1)\\\\chromeDriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\t//driver.manage().timeouts().implicitlyWait(200,TimeUnit.SECONDS);\r\n\t\t\t\tdriver.get(\"http://10.13.44.170:8075/\"); \r\n\t\t\t\t//driver.manage().timeouts().implicitlyWait(20,TimeUnit.SECONDS);\r\n\t\t\t\tdriver.findElement(By.id(\"UserName\")).sendKeys(\"ext.cvelakaturichowd\");\r\n\t\t\t\tdriver.findElement(By.id(\"Password\")).sendKeys(\"Abc99abc\");\r\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"form0\\\"]/table/tbody/tr[2]/td[4]/input\")).submit();\r\n\t\t\t\t//driver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS);\r\n\t\t\t\tWebDriverWait wait = new WebDriverWait(driver, 15);\r\n\t\t\t\twait.until(ExpectedConditions.elementToBeClickable(By.xpath(\"//*[@id=\\\"Menu\\\"]/li[1]/a\")));\r\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"Menu\\\"]/li[1]/a\")).click(); \r\n\t\t\t\t//driver.findElement(By.xpath(\"//*[@id=\\\"ToolBar\\\"]/a\")).click();\r\n\t\t\t\t//driver.findElement(By.id(\"UICustomerName\")).sendKeys(\"pp\");\r\n\t\t\t\t//driver.findElement(By.xpath(\"//*[@id=\\\"ToolBar\\\"]/a[2]\")).click();\r\n\t\t\t\tThread.sleep(10000);\r\n\t\t\t\t//driver.findElement(By.xpath(\".//a[contains(text(),'3')]\")).click();\r\n\t\t\t\t//driver.findElement(By.xpath(\"//*[@id=\\\"grdCustomerList\\\"]/div[2]/table/tbody/tr[3]/td[1]/a[1]/img\")).click();\r\n\t\t\t\t//*[@id=\"grdCustomerList\"]/div[2]/table/tbody/tr[3]/td[1]/a[1]/img\r\n\t\t\t\t//driver.findElement(By.xpath(\"//*[@id=\\\"grdCustomerList\\\"]/div[2]/table/tbody/tr[3]/td[1]/a[1]/img\")).click();\r\n\t\t\t\t//driver.findElement(By.xpath(\"//*[@id=\\\"ToolBar\\\"]/a[3]\")).click();\r\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"grdCustomerList\\\"]//th[2]//span[@class='k-icon k-filter']\")).click();\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\twait.until(ExpectedConditions.elementToBeClickable(By.xpath(\"//div[2]//div[1]/span[1]//span[2]\"))).click();\r\n\t\t\t\tActions act = new Actions(driver);\r\n\t\t\t\t WebElement element = driver.findElement(By.xpath(\"//div[2]//div[2]/div/ul/li[6]\"));\r\n\t\t\t\t Thread.sleep(2000);\r\n\t\t\t\t act.moveToElement(element).click().perform();\r\n\t\t\t\t Thread.sleep(1000);\r\n\t\t\t\t driver.findElement(By.xpath(\".//div[2]//span[2]//input[@class='k-formatted-value k-input']\")).sendKeys(\"20\");\r\n\t\t\t\t driver.findElement(By.xpath(\"//div[2]//div[1]//div[2]//button[1]\")).click();\r\n\t\t\t\t \r\n\t\t\t\t wait.until(ExpectedConditions.elementToBeClickable(By.xpath(\"//*[@id=\\\"grdCustomerList\\\"]//tr[3]/td[1]/a[1]/img[1]\"))).click();\r\n\t\t\t\t//driver.findElement(By.xpath(\"//*[@id=\\\"grdCustomerList\\\"]//tr[3]//td[1]//a[1]/img[1]\")).click();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//*[@id=\"grdCustomerList\"]//tr[3]/td[1]/a[1]/img\r\n\t\t\t\t\t\r\n\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"ToolBar\\\"]/a[3]\")).click();\r\n\t\t\t\t//driver.close();\r\n\t\t\t\r\n\t\t\t}",
"private WebDriver getDriver() {\n return new ChromeDriver();\n }",
"public void setUpMethod(){\n driver = WebDriverFactory.getDriver(\"Chrome\");\n //maximize the page\n driver.manage().window().maximize();\n //implicit wait\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n }",
"@BeforeTest\n\tpublic void LaunchBrowser() {\n\t\t driver = init(\"URL_JQuery\");\n\t\t// driver.get(\"https://jqueryui.com/autocomplete/\");\n\t\t driver.switchTo().frame(0);\n\t\t jq = new JQueryAutocompletePage(driver);\n\t\t \n\t}",
"@Test\n public void test1(){\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver2 = new ChromeDriver();\n\n\n\n driver2.get(url);\n bekle(2000);\n driver2.quit();\n\n\n\n }",
"public static void main(String[] args) throws Exception{\n\n WebDriverManager.chromedriver().setup();\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"http://practice.cybertekschool.com/open_new_tab\");\n\n Thread.sleep(4000);\n\n //driver.close(); //expected to close the original one\n driver.quit(); //all window will be closed\n\n\n\n\n }",
"public static void main(String[] args) {\n\t\nSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\vishal mittal\\\\Downloads\\\\chromedriver_win32 (16)\\\\chromedriver.exe\");\n\t\t\n// 2 . creating a reference object for interface WebDriver and access the child class \n\t\t// ChromeDriver -- chromebrowser\n\t\n\t\t// we have to import this class and interface from selenium packages\n\t\t\n\t\tWebDriver driver = new ChromeDriver();\n\t\t\n// get() method : to open our application URL on the browser\n\t\t\n\t\tdriver.get(\"https://www.h2kinfosys.com/\");\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Parameters(\"browser\")\n\t \n @BeforeTest\n // Passing Browser parameter from TestNG xml\n \n public void beforeTest(String browser){\n\t if(browser.equalsIgnoreCase(\"firefox\")){\n\t driver = new FirefoxDriver();\n\t \n\t }// If browser is IE, then do this\n\t else if (browser.equalsIgnoreCase(\"ie\")){ \n\t // Here I am setting up the path for my IEDriver\n\t System.setProperty(\"webdriver.ie.driver\", \"E:\\\\IEDriverServer.exe\");\n\t driver = new InternetExplorerDriver();\n\t } \n\t // Doesn't the browser type, lauch the Website\n\t browserHelper.setUp(driver);\n\t }",
"@BeforeTest // which will be executed first before all the test methods\n@Parameters(\"browser\") //@Parameter is used to pass the values(during run time) to the test methods as arguments using .xml file\npublic void setup(String browser) throws Exception{\n \n//Check if parameter passed as 'chrome'\nif (browser.equalsIgnoreCase(\"chrome\")){\n//set path to chromedriver.exe\nSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\mouleeswaranb\\\\\\\\\\\\\\\\eclipse-workspace_Selenium learning_6127\\\\\\\\\\\\\\\\SeleniumProject\\\\\\\\\\\\\\\\drivers\\\\\\\\\\\\\\\\chromedriver.exe\");\ndriver = new ChromeDriver(); \n}\n\nelse{\n//If no browser passed throw exception\nthrow new Exception(\"Browser is not correct\");\n}\ndriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n}",
"@BeforeMethod\n\tpublic void setUp() {\n\t\tString driverByOS = \"\";\n\t\tif (System.getProperty(\"os.name\").equals(\"Windows 10\")) {\n\t\t\tdriverByOS = \"Drivers/chromedriver.exe\";\n\t\t} \n\t\telse {\n\t\t\tdriverByOS = \"Drivers/chromedriver\";\n\t\t}\n\t\t//para saber en qué sistema Operativo estamos corriendo el proyecto.\n\t\tSystem.out.println(System.getProperty(\"os.name\"));\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverByOS);\n\t\t//Utilizando headless browser HB\n\t\t/*-HB\n\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\tchromeOptions.addArguments(\"--headless\");\n\t\tdriver = new ChromeDriver(chromeOptions);\n\t\tHB-*/\n\t\tdriver = new ChromeDriver();\n\t\t//driver.manage().window().maximize(); //esto es para maximizar la ventana del navegador\n\t\t//driver.manage().window().fullscreen(); //esto es para poner en fullscreen la ventana del navegador\n\t\t/*driver.manage().window().setSize(new Dimension(200,200));\n\t\tfor (int i = 0; i <= 800; i++) {\n\t\t\tdriver.manage().window().setPosition(new Point(i,i));\n\t\t}*/\n\t\t//driver.manage().window().setPosition(new Point(800,200)); //posicionando la ventana del navegador\n\t\tdriver.navigate().to(\"http://newtours.demoaut.com/\");\n\t\t//Este codigo de abajo permite abrir otra ventana en el navegador\n\t\t//JavascriptExecutor javaScriptExecutor = (JavascriptExecutor)driver;\n\t\t//String googleWindow = \"window.open('http://www.google.com')\";\n\t\t//javaScriptExecutor.executeScript(googleWindow);\n\t\t//tabs = new ArrayList<String> (driver.getWindowHandles());\n\t\t/*try {\n\t\t\tThread.sleep(5000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//Helpers helper = new Helpers();\n\t\t//helper.sleepSeconds(4);\n\t}",
"@BeforeMethod\r\n\tpublic void Setup()\r\n\t{\n\t\tString strBrowserName=objConfig.getProperty(\"browser\");\r\n\t\tif(strBrowserName.equalsIgnoreCase(\"CHROME\"))\r\n\t\t{\r\n\t\t\tobjDriver=new ChromeDriver();\r\n\t\t}\r\n\t\telse if(strBrowserName.equalsIgnoreCase(\"FIREFOX\"))\r\n\t\t{\r\n\t\t\tobjDriver=new FirefoxDriver();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tobjDriver=new InternetExplorerDriver();\r\n\t\t}\r\n\t\t\r\n\t\t//To open the URL\r\n\t\t\r\n\t\tobjDriver.get(objConfig.getProperty(\"url\"));\r\n\t\t\r\n\t\t//To maximize the browser window.\r\n\t\tif(objConfig.getBooleanProperty(\"runFullScreen\"))\r\n\t\t\tobjDriver.manage().window().maximize();\r\n\r\n\t\t//To set the implicit wait time\r\n\t\tobjDriver.manage().timeouts().implicitlyWait(objConfig.getLongProperty(\"implicitTimeoutInSeconds\"), TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"D:/workspace/chromedriver\");\r\n\t\t //System.setProperty(\"webdriver.chrome.driver\", ...);\r\n\t\t \r\n\t\t System.setProperty(\"selenide.browser\", \"Chrome\");\r\n\t\t Configuration.browser=\"chrome\";\r\n\t\t open(\"http://google.com\");\r\n\t\t //$(By.id(\"registerLink\")).pressEnter();\r\n\t\t }",
"public static void main(String[] args) {\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\DRIVERS\\\\chrome driver\\\\chromedriver.exe\");\r\n\tWebDriver\tdriver = new ChromeDriver();// creating object referring to interface to call methods in interface \r\n\tdriver.get(\"https://www.google.com/\"); \t// hit url on browsera\r\n\tSystem.out.println(driver.getCurrentUrl()); // to validate if you are landed on correct url\r\n\tSystem.out.println(driver.getTitle());\t\t// to validate title of page\r\n\tSystem.out.println(driver.getPageSource());\r\n\tdriver.get(\"http://yahoo.com\");\r\n\tdriver.navigate().back();\r\n\tdriver.navigate().forward();\r\n//\tdriver.close(); \t//Close the current window, quitting the browser if it's the last window currently open\r\n//\tdriver.quit();\t\t// Quits this driver, closing every associated window (this will close all browsers windows which are opened by selenium script\r\n\r\n//\t//\tfor locators ID, name, classname,linktext, xpath, css\r\n//\tdriver.get(\"https://www.facebook.com/\");\r\n//\tdriver.findElement(By.id(\"email\")).sendKeys(\"mounika\");\r\n\t\r\n//\t//driver.findElement(By.name(\"pass\")).sendKeys(\"maggie\");\r\n\t\r\n//\t//driver.findElement(By.xpath(\"//input[@type='password']\")).sendKeys(\"mounika\");\r\n\t\r\n//\tdriver.findElement(By.cssSelector(\"input[type='password']\")).sendKeys(\"pass\"); // difference between xpath and ccs is in css we wont use // and @ , give space or don't mention in the place of * not need of mentioning tag in css\r\n//\t// css 1)tagname#id or #id 2)tagname.classname\r\n//\tdriver.findElement(By.id(\"loginbutton\")).click();\r\n//\tdriver.findElement(By.linkText(\"Forgotten password?\")).click();\r\n//\t// selenium will not accept classname will spaces it will throw error compound class name is not permitted \r\n//\tSystem.out.println(\"pass\");\r\n//\t//driver.quit();\r\n//\t// regular expression when attribute value is changing and some part is constant and when it is very long\r\n//\tdriver.get(\"http://rediff.com\");\r\n//\tdriver.findElement(By.cssSelector(\"a[title*='Sign in']\")).click(); // regular expression for css same as normal css except * symbol\r\n//\tdriver.findElement(By.xpath(\"//input[@id='login1']\")).sendKeys(\"hello\");\r\n//\tdriver.findElement(By.cssSelector(\"input#password\")).sendKeys(\"goodbye\");\r\n//\tdriver.findElement(By.xpath(\"//input[contains(@name,'procee')]\")).click(); //regular expression for xpath it uses contains\r\n\t// if we need to move to particular column in row using css (write css till row space childtagname:nth-child(3) ( child(3) is the coulmns on which we will be performing \r\n\t//eg:table.findElements(By.className(\"div[class='rt-tr-group'] div:nth-child(3)\")\r\n\t\t\t// note : how to transverse to one sibling to another sibling write xpath till firstlsibling/following-sibling::tagnameofnextsibling\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\t}",
"@Before\n public void setUp() throws Exception {\n URL = \"https://www.facebook.com/\";\n\t//baseUrl = \"https://www.katalon.com/\";\n System.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Documentos\\\\Java Drivers\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n // driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n }",
"public static void chromeTest() throws Exception{\n driver = BrowserFactory.getDriver(\"chrome\");\n Thread.sleep(2000);\n\n driver.get(\"http://google.com\");\n Thread.sleep(3000);\n String title = driver.getTitle();\n driver.navigate().to(\"https://etsy.com\");\n Thread.sleep(2000);\n String title2 = driver.getTitle();\n driver.navigate().back();\n title = driver.getTitle();\n Thread.sleep(2000);\n driver.navigate().to(\"https://etsy.com\");\n title2 = driver.getTitle();\n driver.quit();\n }",
"public WebDriver initializeDriver() {\n System.setProperty(\"webdriver.chrome.driver\", projectPath + \"//src//main//resources//chromedriver\");\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n return driver;\n }"
] | [
"0.7850258",
"0.7577228",
"0.747196",
"0.74694955",
"0.74226505",
"0.7413448",
"0.73786545",
"0.73276615",
"0.7322609",
"0.72543514",
"0.7201365",
"0.7158204",
"0.7141559",
"0.71120584",
"0.7081619",
"0.70530105",
"0.70463365",
"0.7017418",
"0.69967216",
"0.6955521",
"0.6913004",
"0.68188334",
"0.6815351",
"0.68060076",
"0.6805654",
"0.6780201",
"0.6761039",
"0.6725857",
"0.67040545",
"0.67032903",
"0.6693141",
"0.6684603",
"0.6676848",
"0.66665035",
"0.66650915",
"0.66519",
"0.6650342",
"0.6647437",
"0.663476",
"0.659157",
"0.65895295",
"0.6589129",
"0.6560558",
"0.6556333",
"0.6553249",
"0.6534426",
"0.6527481",
"0.65213114",
"0.651514",
"0.6513688",
"0.6512778",
"0.65125644",
"0.65017396",
"0.6501361",
"0.64927703",
"0.64798385",
"0.64598763",
"0.64506626",
"0.64485806",
"0.64442825",
"0.6439845",
"0.6425944",
"0.6423347",
"0.64155024",
"0.64037055",
"0.6403561",
"0.63987505",
"0.6380806",
"0.637551",
"0.6370677",
"0.6369499",
"0.6364065",
"0.63624847",
"0.6353795",
"0.6349221",
"0.6338076",
"0.63350797",
"0.6329322",
"0.6325597",
"0.63253033",
"0.631733",
"0.63159966",
"0.63158625",
"0.63126594",
"0.63057446",
"0.63056874",
"0.63031566",
"0.6300341",
"0.6299519",
"0.62944496",
"0.62930125",
"0.6287003",
"0.62863183",
"0.6280051",
"0.62783575",
"0.6275112",
"0.6267489",
"0.6265868",
"0.62625283",
"0.6255662"
] | 0.6390923 | 67 |
d. konstruktor v. VerschluesseltWriter ruft lediglich den konstruktor der basisklasse FilterWriter auf, FilterWriter erwartet als argument ein Writerobjekt, | protected VerschluesseltWriter(Writer out) { // FilterWriter arbeitet immer mit Writer-Objekt zusammen, FilterWriter verschlüsselt, Writer übernimmt schreibvorgang
super(out);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"CompressingMessageWriter(MessageWriter wr) {\n this.writer = wr;\n }",
"void addGeneralBloomFilter(BloomFilterWriter bfw);",
"public void setWriter(Writer writer) {\n this.writer = writer;\n }",
"public static Writeable getWriteable (OutputFilter filter,Writeable out)\n {\n filter.setSink (out);\n return (Writeable) filter.getSink ();\n }",
"void setFilter(Filter f);",
"@Test\n public void shouldFilterTheFirstMessageAndLogTheSecond() {\n ILogger logger = new SysoutLogger();\n IFilter filter = new FilterLogStartingWith(\"w\");\n ILogger filterLogger = new FilterLogger(filter, logger);\n\n filterLogger.log(\"hello\");\n filterLogger.log(\"world\");\n assertThat(outContent.toString(), is(\"world\" + System.getProperty(\"line.separator\")));\n\n // TODO: Enhance functional interface Logger to take a filter and to have no more FilterLogger\n }",
"Filter getFilter();",
"java.lang.String getFilter();",
"public Writer addGzipWriter(String id) throws IOException {\n\t\tGZIPOutputStream gzos = new GZIPOutputStream(outputStream);\n\t\trks.add(id + \"Stream\");\n\t\trvs.add(gzos);\n\t\tWriter w = new OutputStreamWriter(gzos, \"UTF-8\");\n\t\trks.add(id + \"Writer\");\n\t\trvs.add(w);\n\t\treturn w;\n\t}",
"void decorate(Writer out, String content) throws IOException;",
"public static Writer wrapWriter(StyledPrintWriter w) {\n return new WrappedWriter(w);\n }",
"public void addFilterToCreator(ViewerFilter filter);",
"public void addFilter(int index, MessageFilter filter);",
"public static interface Writer {\n /**\n * Write object.\n *\n * @param writer Writer.\n * @param obj Object.\n * @param err Error.\n */\n public void write(BinaryRawWriterEx writer, Object obj, Throwable err);\n\n /**\n * Determines whether this writer can write given data.\n *\n * @param obj Object.\n * @param err Error.\n * @return Value indicating whether this writer can write given data.\n */\n public boolean canWrite(Object obj, Throwable err);\n }",
"public void addFilterToReader(ViewerFilter filter);",
"protected void setOutputFilter(OutputFilter filter) {\n this.outputFilter = filter;\n }",
"protected void genWriter() {\n\t\t\n\t\tfixWriter_h();\n\t\tfixWriter_cpp();\n\t}",
"private static PrintWriter erstelleWriterInDatei(File datei)\r\n\t{\r\n\t\tPrintWriter schreiber = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tschreiber = new PrintWriter(datei);\r\n\t\t} catch (FileNotFoundException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn schreiber;\r\n\t}",
"void setFilter(String filter);",
"public void appendFeatureHolderStyle(FeatureFilter filter)\n\t{\n\t\tif(this.filter instanceof AndFilter)\n\t\t{\n\t\t\t((AndFilter)this.filter).add(filter);\n\t\t}\n\t\telse if(this.filter != null)\n\t\t{\n\t\t\tthis.filter = new AndFilter(this.filter, filter);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.filter = filter;\n\t\t}\n\t\t\n\t\tthis.valid = false;\n\t}",
"String getFilter();",
"void registerFilterListener(FilterListener listener);",
"public void testCreateProxy() throws Exception {\n XMLStreamWriter result = openFilteredWriter(new StringWriter(), factory);\n\n assertNotNull(result);\n }",
"@Override\n\tpublic void doFilter(ServletRequest request, ServletResponse response,\n\t\t\tFilterChain chain) throws IOException, ServletException {\n\t\t\n\t}",
"public interface Filter {\n\n}",
"public WebWriteCollector(final Writer writer, final String format) {\n this.writer = writer;\n this.format = format;\n }",
"@Override\n public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Filter filter) {\n return null;\n }",
"@Override\n\tpublic void filterChange() {\n\t\t\n\t}",
"protected IndexWriter getWriter(boolean wipeIndex) throws IOException {\n Directory dir = FSDirectory.open(Paths.get(indexFolder));\n Analyzer analyzer = new StandardAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n\n if (wipeIndex) {\n iwc.setOpenMode(OpenMode.CREATE);\n } else {\n iwc.setOpenMode(OpenMode.CREATE_OR_APPEND);\n }\n\n IndexWriter writer = new IndexWriter(dir, iwc);\n return writer;\n }",
"public void onEncodeSerialData(StreamWriter streamWriter) {\n }",
"@Override\n\tprotected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}",
"public interface Writer extends Transformer {\n\n /**\n * Writes an entity to the outputstream\n *\n * @param response an outcoming response\n * @param request an incoming provider\n */\n void writeTo(InternalResponse<?> response, InternalRequest<?> request);\n\n /**\n * Figures out whether is writer compatible for the given route\n *\n * @param route compared route\n * @return returns {@code true} if the writer is compatible with the given route\n */\n boolean isWriterCompatible(InternalRoute route);\n\n}",
"public abstract void filter();",
"@Override\r\n\tpublic void setLogWriter(PrintWriter arg0) throws SQLException {\n\r\n\t}",
"public Writer getWriter(String cliParameter) {\n Writer writer = null;\n if(\"csv\".equals(cliParameter)){\n writer = new WriterCSV();\n }\n \n return writer;\n }",
"public Object accept(FilterVisitor visitor, Object extraData) {\n \treturn visitor.visit(this,extraData);\n }",
"protected void setQWForFiles(Writer writer)\r\n\t{\r\n\t\tqw = new CountingQuietWriter(writer, errorHandler);\r\n\t}",
"public void addFilter(MessageFilter filter);",
"public void setDataWriter(DataWriter dataWriter);",
"public final Writer wrapAsRawWriter()\n {\n return mWriter.wrapAsRawWriter();\n }",
"protected FileExtensionFilter()\n\t{\n\t}",
"public String getFilter();",
"FilterInfo addFilter(String filtercode, String filter_type, String filter_name, String disableFilterPropertyName, String filter_order);",
"public BufferedWriter saveSearch(BufferedWriter buffer) throws IOException {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }",
"public void addBusinessFilterToReader(ViewerFilter filter);",
"@Override\n public boolean shouldFilter() {\n return true;\n }",
"public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}",
"public void addBusinessFilterToCreator(ViewerFilter filter);",
"@Override\n public boolean setFilter(String filterId, Filter filter) {\n return false;\n }",
"public Writer getWriter(final Writer out, Map args) throws TemplateModelException {\n \t\r\n \tfinal StringBuffer buffer = new StringBuffer();\r\n\t\treturn new Writer() {\r\n\t\t\tpublic void write(char cbuf[], int off, int len) {\r\n\t\t \t\tbuffer.append(cbuf, off, len);\r\n\t\t \t}\r\n\r\n\t\t\tpublic void flush() throws IOException {\r\n\t\t \t\tout.flush();\r\n\t\t \t}\r\n\t\t \t\r\n\t\t\tpublic void close() throws IOException {\r\n\t\t \t\tStringBuffer transformedBuffer = transform(buffer);\r\n\t\t \t\tout.write(transformedBuffer.toString());\r\n\t\t \t\tout.flush();\r\n\t\t\t}\r\n\r\n\t\t}; \t\r\n }",
"public void addFilterToMethods(ViewerFilter filter);",
"@Override public Filter getFilter() { return null; }",
"@Override\n public int filterOrder() {\n return 1;\n }",
"@Override\n public int filterOrder() {\n return 1;\n }",
"public abstract Filter<T> filter();",
"void setFilter(final PropertiedObjectFilter<O> filter);",
"@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}",
"void filterChanged(Filter filter);",
"public void setFilter(Filter f){\r\n\t\tthis.filtro = new InputFilter(f);\r\n\t}",
"@FunctionalInterface\n protected interface StreamWriter<TargetType> {\n void accept(TargetType source, RevisionDataOutput output) throws IOException;\n }",
"public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}",
"public void bufferedReaderWriterExample() throws IOException {\n\t\t\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(FILE_NAME));\n\t\t\tbw = new BufferedWriter(new FileWriter(\"files/myfile.writer.csv\"));\n\t\t\t\n\t\t\tString line = \"\";\n\t\t\t\n\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\tbw.write(line.replaceAll(\"a\", \"REDACTED\") + \"\\n\");\n\t\t\t}\n\t\t} finally {\n\t\t\tbr.close();\n\t\t\tbw.close();\n\t\t}\n\t}",
"public final Writer wrapAsTextWriter()\n {\n return mWriter.wrapAsTextWriter();\n }",
"@RequestMapping(\n value = \"/filterWines\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE\n )\n public ResponseEntity filterWinesColor(@RequestBody FilterDTO filterDTO) {\n WineBody wineBody = null;\n WineColor wineColor = null;\n WineSugar wineSugar = null;\n WineFlavor wineFlavor = null;\n if(filterDTO.getWineBody() != null)\n wineBody = WineBody.valueOf(filterDTO.getWineBody());\n if(filterDTO.getWineColor() != null)\n wineColor = WineColor.valueOf(filterDTO.getWineColor());\n if(filterDTO.getWineFlavor() != null)\n wineFlavor = WineFlavor.valueOf(filterDTO.getWineFlavor());\n if(filterDTO.getWineSugar() != null)\n wineSugar = WineSugar.valueOf(filterDTO.getWineSugar());\n\n List<Wine> wines = this.droolsService.filterWines(wineBody, wineColor, wineSugar, wineFlavor);\n\n List<WineDTO> wineDTOS = new ArrayList<>();\n for(Wine wine: wines)\n wineDTOS.add(new WineDTO(wine));\n\n return new ResponseEntity<>(wineDTOS, HttpStatus.OK);\n }",
"public void setWriter(final Writer writer) {\n this.writer = writer;\n }",
"String getFilterName();",
"public Collection<WriterProxy> getMatchedWriters() {\r\n\t\treturn writerProxies.values();\r\n\t}",
"@Override\n public XMLEventWriter createXMLEventWriter(Writer w, String enc)\n throws XMLStreamException\n {\n return new Stax2EventWriterImpl(createSW(null, w, enc, false));\n }",
"public void doFilter(ServletRequest arg0, ServletResponse arg1,\r\n\t\t\tFilterChain arg2) throws IOException, ServletException {\n\t\t HttpServletRequest httpreq = (HttpServletRequest)arg0;\r\n\t if (httpreq.getMethod().equals(\"POST\")) {\r\n\t \targ0.setCharacterEncoding(\"utf-8\");\r\n\t } else {\r\n\t \targ0 = new Request(httpreq);\r\n\t }\r\n\t arg2.doFilter(arg0, arg1);\r\n\t}",
"private BufferedWriter abrirArquivoEscrita() {\n\t\ttry{\n\t\t\tBufferedWriter file = null;\n\t\t\tfile = new BufferedWriter(new FileWriter(caminho));\n\t\t\treturn file;\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}",
"@Override\n\tpublic String dofilter(String str) {\n\t\tfor(Filter f : filters){\n\t\t\tstr = f.dofilter(str);\n\t\t}\t\t\n\t\treturn str;\n\t}",
"public void setWriter(Writer xmlWriter) \r\n\t{\r\n\twriter = xmlWriter;\r\n\treturn;\r\n\t}",
"int writerIndex();",
"public void addFilterToAttributes(ViewerFilter filter);",
"public ConcatFilter() {\n super();\n }",
"public void addFilterToComboRO(ViewerFilter filter);",
"@Override\n public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Class<? extends Filter> filterClass) {\n return null;\n }",
"private PrintWriter getWriter(String signature) throws IOException {\n\n\tFile f = signature2file.get(signature);\n\n\tif (f == null) {\n\n\t throw new IllegalStateException(\"Supposed to have file name for \"\n\t\t + signature + \", but don't???\");\n\t}\n\n\t// Create a FileWriter with 'append'\n\treturn new PrintWriter(new FileWriter(f, true));\n }",
"@Override\n\tpublic ResponseWriter createResponseWriter(Writer writer, String contentTypeList, String characterEncoding) {\n\t\treturn new Html5ResponseWriter(super.createResponseWriter(writer, contentTypeList, characterEncoding));\n\t}",
"protected void addFilter(TableViewer viewer) {\n\t\t//0.6f entspricht einer minimalen durchschnittlichen Bewertung von 3 Punkten\n\t\tviewer.addFilter(new RatingFilter(0.6f));\n\t}",
"public static void filter() throws IOException {\n\t\tHashSet<String> wikimid = new HashSet<String>();\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_midWidTypeNameAlias);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\twikimid.add(l[0]);\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t\tD.p(\"wiki id size is\", wikimid.size());\r\n\t\t}\r\n\t\tDelimitedWriter dw = new DelimitedWriter(Main.file_visible + \".filter\");\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible);\r\n\t\t\t//DelimitedReader dr = new DelimitedReader(Main.dir+\"/temp\");\r\n\t\t\tString[] l;\r\n\t\t\tint count = 0, write = 0;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tcount++;\r\n\t\t\t\tif (l[3].equals(\"/m/06x68\")) {\r\n\t\t\t\t\tD.p(l[3]);\r\n\t\t\t\t}\r\n\t\t\t\tif (count % 100000 == 0) {\r\n\t\t\t\t\tD.p(\"count vs write\", count, write);\r\n\t\t\t\t}\r\n\t\t\t\tString rel = l[2];\r\n\t\t\t\tif (rel.startsWith(\"/type/\") || rel.startsWith(\"/user/\") || rel.startsWith(\"/common/\")\r\n\t\t\t\t\t\t|| rel.startsWith(\"/base/\")) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (l[0].startsWith(\"s\") && !wikimid.contains(l[1])) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (l[0].startsWith(\"j\") && (!wikimid.contains(l[1]) || !wikimid.contains(l[3]))) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tdw.write(l);\r\n\t\t\t\twrite++;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tdw.close();\r\n\t\tSort.sort(Main.file_visible + \".filter\", Main.file_visible + \".filter.sbmid\", Main.dir,\r\n\t\t\t\tnew Comparator<String[]>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn arg0[1].compareTo(arg1[1]);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t//\t\tSort.sort(Main.file_visible + \".filter\", Main.file_visible + \".filter.sbmid2\", Main.dir,\r\n\t\t//\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\r\n\t\t//\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\r\n\t\t//\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\treturn arg0[3].compareTo(arg1[3]);\r\n\t\t//\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t});\r\n\t\t//\t\tSort.sort(Main.file_visible + \".filter\", Main.file_visible + \".filter.sbrel\", Main.dir,\r\n\t\t//\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\r\n\t\t//\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\r\n\t\t//\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\treturn arg0[2].compareTo(arg1[2]);\r\n\t\t//\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t});\r\n\t}",
"public java.lang.String getFilter() {\n return filter;\n }",
"@Override\n public Writer getOutputStreamWriter() throws IOException {\n return new OutputStreamWriter(getOutputStream());\n }",
"public Filter () {\n\t\tsuper();\n\t}",
"private void setupWriter() {\n output = new StringWriter();\n writer = new PrintWriter(output);\n }",
"public KSCrashReportFilterJSONEncode() {\n this(-1);\n }",
"public void setWriter(String writer) {\r\n this.writer = writer == null ? null : writer.trim();\r\n }",
"private FormatFilter(final Function<ImageReaderWriterSpi, String[]> property) {\n this.property = property;\n }",
"private NodeRecordFilter makeNodeNameFilterHandler() {\n\t\tfinal WindowReference windowReference = _mainWindowReference;\n\t\t\n\t\tfinal JTextField nodeFilterField = (JTextField)windowReference.getView( \"NodeFilterField\" );\n\t\tfinal NodeRecordNameFilter nameFilter = new NodeRecordNameFilter();\n\t\t\n\t\tfinal FreshProcessor nodeFilterProcessor = new FreshProcessor();\n\t\tnodeFilterField.getDocument().addDocumentListener( new DocumentListener() {\n\t\t\t public void changedUpdate( final DocumentEvent event ) {\n\t\t\t\t\tnodeFilterProcessor.post( new NodeNameFilterOperation( nodeFilterField.getText(), nameFilter) );\n\t\t\t }\n\t\t\t public void insertUpdate( final DocumentEvent event ) {\n\t\t\t\t\tnodeFilterProcessor.post( new NodeNameFilterOperation( nodeFilterField.getText(), nameFilter) );\n\t\t\t }\n\t\t\t public void removeUpdate( final DocumentEvent event ) {\n\t\t\t\t\tnodeFilterProcessor.post( new NodeNameFilterOperation( nodeFilterField.getText(), nameFilter) );\n\t\t\t }\n\t\t});\n\t\t\n\t\t\n\t\tfinal JButton clearButton = (JButton)windowReference.getView( \"NodeNameFilterClearButton\" );\n\t\tclearButton.addActionListener( new ActionListener() {\n\t\t\tpublic void actionPerformed( final ActionEvent event ) {\n\t\t\t\tnodeFilterField.setText( \"\" );\n\t\t\t}\n\t\t});\n\t\t\n\t\treturn nameFilter;\n\t}",
"FeedbackFilter getFilter();",
"public interface Filter {\n\n /**\n * Determines whether or not a word may pass through this filter.\n * @param word test word\n * @return TRUE if word may pass, FALSE otherwise\n */\n public boolean pass(String word);\n\n /**\n * Generates a new filter based on the provided\n * definition.\n * @param x definition\n * @return reference to newly-generated filter\n */\n public Filter spawn(String x);\n\n}",
"public OutputStream createOutputStream(COSName filter) throws IOException {\n/* 225 */ return this.stream.createOutputStream((COSBase)filter);\n/* */ }",
"public void write(Writer writer) {\n this.write(writer, 0);\n }",
"public static void writeDontCloseStream(Element document,Writer writerW) throws IOException\r\n {\n XMLWriter writer = new XMLWriter(writerW);\r\n writer.write( document );\r\n }",
"private void attachFilter(Appender<ILoggingEvent> appender, FilterInfo fi){\n if(!appender.getCopyOfAttachedFiltersList().contains(fi.filter)){\n appender.addFilter(fi.filter);\n }\n }",
"public void addBusinessFilterToMethods(ViewerFilter filter);",
"public abstract JsonWriter newWriter(Writer writer);",
"public String getWriter() {\r\n return writer;\r\n }",
"boolean getHasWriteBehindWriter();"
] | [
"0.57527155",
"0.54902226",
"0.5376068",
"0.52921754",
"0.5257207",
"0.52523285",
"0.52518064",
"0.52277863",
"0.51930743",
"0.5172009",
"0.51683694",
"0.5145282",
"0.51385987",
"0.5132412",
"0.51319534",
"0.5117118",
"0.5112095",
"0.5085174",
"0.50827616",
"0.5081371",
"0.50661373",
"0.5056417",
"0.50554395",
"0.50517493",
"0.5041353",
"0.50353044",
"0.50204694",
"0.50145924",
"0.50099033",
"0.5008328",
"0.5002513",
"0.49993852",
"0.49724144",
"0.4971376",
"0.49670672",
"0.49651062",
"0.4963611",
"0.4963276",
"0.49610198",
"0.49539584",
"0.494649",
"0.49370047",
"0.49362776",
"0.49360183",
"0.49302173",
"0.49258688",
"0.4925648",
"0.492552",
"0.49228173",
"0.49180233",
"0.4917477",
"0.49095657",
"0.4909559",
"0.4909559",
"0.4883642",
"0.48830158",
"0.4880443",
"0.48779505",
"0.48779044",
"0.48662096",
"0.4863668",
"0.4861447",
"0.4860127",
"0.48599687",
"0.48543954",
"0.48537108",
"0.48494953",
"0.48488694",
"0.4847046",
"0.484478",
"0.48354113",
"0.48307097",
"0.48262593",
"0.4819321",
"0.48171958",
"0.48125255",
"0.48104048",
"0.48086765",
"0.48081487",
"0.4806082",
"0.48060504",
"0.48017538",
"0.47894406",
"0.47845164",
"0.4781533",
"0.4776173",
"0.47749573",
"0.4773452",
"0.47673315",
"0.47633213",
"0.47615036",
"0.4760355",
"0.47577554",
"0.47576344",
"0.4755436",
"0.4753261",
"0.4751778",
"0.47512695",
"0.47493392",
"0.47476953"
] | 0.7241586 | 0 |
TODO Autogenerated method stub | @Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) {
MessageComments.this.finish();
}
return super.onKeyDown(keyCode, event);
} | {
"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 |
/ SYNSETS and HYPERNYMS are filenames for the input files. | public WordNet(String synsets, String hypernyms) {
synsetStream = new In(synsets);
hypernymStream = new In(hypernyms);
// go through all synsets
while (synsetStream != null && synsetStream.hasNextLine()) {
synsetString = synsetStream.readLine();
String[] synsetStrLine = synsetString.split(",");
Integer id = Integer.parseInt(synsetStrLine[0]);
String[] synsetsArray = synsetStrLine[1].split("\\s+");
sFile.put(id, synsetsArray);
}
for (String[] nounSet : sFile.values()) {
for (String str : nounSet) {
sNounSet.add(str);
}
}
while (hypernymStream != null && hypernymStream.hasNextLine()) {
hypernymString = hypernymStream.readLine();
String[] hyponymArray = hypernymString.split(",");
Integer synsetID = Integer.parseInt(hyponymArray[0]);
TreeSet hyponymSet = new TreeSet();
for (int i = 1; i < hyponymArray.length; i++) {
Integer hyponymID = Integer.parseInt(hyponymArray[i]);
if (hFile.containsKey(synsetID)) {
hFile.get(synsetID).add(hyponymID);
} else {
hyponymSet.add(hyponymID);
hFile.put(synsetID, hyponymSet);
}
}
}
theDigraph = new Digraph(sFile.size());
for (Integer key : hFile.keySet()) {
for (Object curr : hFile.get(key)) {
theDigraph.addEdge(key, (int) curr);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setupFiles() {\n File inputDataFile = new File(inputFileName);\n try {\n inputFile = new Scanner(inputDataFile);\n FileWriter outputDataFileOA = new FileWriter(outputFileNameOA);\n FileWriter outputDataFileLL = new FileWriter(outputFileNameLL);\n outputFileOA = new PrintWriter(outputDataFileOA);\n outputFileLL = new PrintWriter(outputDataFileLL);\n outputFileOA.println(\"Output from open addressing hash table:\");\n outputFileOA.println();\n outputFileLL.println(\"Output from linked list hash table:\");\n outputFileLL.println();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public WordNet(String synsetFilename, String hyponymFilename) {\n\n synset = new HashMap<Integer, ArrayList<String>>();\n synsetRev = new HashMap<ArrayList<String>, Integer>();\n hyponym = new ArrayList<ArrayList<Integer>>();\n // hyponym = new HashMap<Integer,ArrayList<Integer>>();\n\n In syn = new In(synsetFilename);\n In hypo = new In(hyponymFilename);\n\n while (!syn.isEmpty()) {\n String line = syn.readLine();\n String[] split1 = line.split(\",\");\n int stempkey = Integer.parseInt(split1[0]);\n String syns = split1[1];\n String[] temps = syns.split(\" \");\n ArrayList<String> stempval = new ArrayList<String>();\n for (String s : temps) {\n stempval.add(s);\n }\n synset.put(stempkey, stempval);\n synsetRev.put(stempval, stempkey);\n }\n\n while (!hypo.isEmpty()) {\n String line = hypo.readLine();\n String[] arrayOfStrings = line.split(\",\");\n ArrayList<Integer> integersAL = new ArrayList<Integer>();\n for (int i = 0; i < arrayOfStrings.length; i++) {\n integersAL.add(Integer.parseInt(arrayOfStrings[i]));\n }\n hyponym.add(integersAL);\n\n // ArrayList<Integer> valuesAL = new ArrayList<Integer>();\n // for (Integer i : integersAL) {\n // valuesAL.add(i);\n // }\n // int comma1 = line.indexOf(\",\");\n // int htempkey = Integer.parseInt(line.substring(0,comma1));\n // String sub = line.substring(comma1 + 1);\n // String[] arrayOfStrings = sub.split(\",\");\n // hyponym.put(htempkey, integersAL);\n }\n }",
"public WordNet(String synsetFilename, String hyponymFilename) {\n synsets = new TreeMap<Integer, TreeSet<String>>();\n numVertices = 0;\n In syns = new In(synsetFilename);\n while (syns.hasNextLine()) {\n numVertices++;\n String line = syns.readLine();\n String[] split1 = line.split(\",\");\n String[] split2 = split1[1].split(\" \");\n TreeSet<String> hs = new TreeSet<String>();\n for (String s: split2) {\n hs.add(s);\n }\n synsets.put(Integer.parseInt(split1[0]), hs);\n }\n dg = new Digraph(numVertices);\n In hyms = new In(hyponymFilename);\n while (hyms.hasNextLine()) {\n String line = hyms.readLine();\n String[] split = line.split(\"[, ]+\");\n int v = Integer.parseInt(split[0]);\n for (int i = 1; i < split.length; i++) {\n dg.addEdge(v, Integer.parseInt(split[i]));\n }\n }\n }",
"public WordNet(String synsetFilename, String hyponymFilename) {\n\n File hyponymPath = new File(hyponymFilename);\n Scanner s;\n try {\n s = new Scanner(hyponymPath);\n while (s.hasNextLine()) {\n String currLine = s.nextLine();\n hyponymParse(currLine);\n }\n } catch (FileNotFoundException ex) {\n System.out.println(\"Could not find \" + hyponymFilename);\n } \n File synsetPath = new File(synsetFilename);\n try {\n s = new Scanner(synsetPath);\n while (s.hasNextLine()) {\n String currLine = s.nextLine();\n synsetParse(currLine);\n numberOfSynsets += 1;\n }\n } catch (FileNotFoundException ex) {\n System.out.println(\"Could not find \" + synsetFilename);\n } \n g = new Digraph(numberOfSynsets);\n Set<Integer> keys = hyponymMap.keySet();\n for (Integer k : keys) {\n ArrayList<Integer> al = hyponymMap.get(k);\n for (Integer i : al) {\n g.addEdge(k, i);\n }\n }\n }",
"public WordNet(String synsetFilename, String hyponymFilename) {\n In synsets = new In(synsetFilename);\n In hyponyms = new In(hyponymFilename);\n int count = 0;\n while (synsets.hasNextLine()) {\n String line = synsets.readLine();\n String[] linesplit = line.split(\",\");\n String[] wordsplit = linesplit[1].split(\" \");\n Set<String> synset = new HashSet<String>();\n Set<Integer> wordIndexes = new HashSet<Integer>();\n for (int i = 0; i < wordsplit.length; i += 1) {\n synset.add(wordsplit[i]);\n if (wnetsi.containsKey(wordsplit[i])) {\n wordIndexes = wnetsi.get(wordsplit[i]);\n wordIndexes.add(Integer.parseInt(linesplit[0]));\n wnetsi.put(wordsplit[i], wordIndexes);\n } else {\n wordIndexes.add(Integer.parseInt(linesplit[0]));\n wnetsi.put(wordsplit[i], wordIndexes);\n }\n }\n wnetis.put(Integer.parseInt(linesplit[0]), synset);\n count += 1;\n }\n \n \n \n String[] allVerts = hyponyms.readAllLines();\n g = new Digraph(count);\n for (int i = 0; i < allVerts.length; i += 1) {\n String[] linesplit = allVerts[i].split(\",\");\n for (int j = 0; j < linesplit.length; j += 1) {\n g.addEdge(Integer.parseInt(linesplit[0]), Integer.parseInt(linesplit[j]));\n }\n }\n \n }",
"private void getFiles() {\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inputFileName);\n\t\t\tinputBuffer = new BufferedReader(fr);\n\n\t\t\tFileWriter fw = new FileWriter(outputFileName);\n\t\t\toutputBuffer = new BufferedWriter(fw);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found: \" + e.getMessage());\n\t\t\tSystem.exit(-2);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-3);\n\t\t}\n\t}",
"public WordNet(String synsetFilename, String hyponymFilename) {\n In synsetScanner = new In(synsetFilename);\n\n synsetNouns = new HashMap<Integer, ArrayList<String>>();\n nouns = new HashSet<String>();\n\n while (synsetScanner.hasNextLine()) {\n ArrayList<String> synsetArrayList = new ArrayList<String>();\n String row = synsetScanner.readLine();\n String[] tokens = row.split(\",\");\n String[] synset = tokens[1].split(\" \");\n for (int i = 0; i < synset.length; i++) {\n synsetArrayList.add(synset[i]);\n nouns.add(synset[i]);\n }\n synsetNouns.put(Integer.parseInt(tokens[0]), synsetArrayList);\n }\n\n In hyponymScanner = new In(hyponymFilename);\n hyponym = new Digraph(synsetNouns.size());\n while (hyponymScanner.hasNextLine()) {\n String row = hyponymScanner.readLine();\n String[] tokens = row.split(\",\");\n for (int i = 1; i < tokens.length; i++) {\n hyponym.addEdge(Integer.parseInt(tokens[0]), Integer.parseInt(tokens[i]));\n }\n }\n }",
"void setFileName(String inputFileName)\n {\n this.inputFileName = inputFileName;\n }",
"public void setTableSchema(List<String> tableNames, List<String> oringinalTableNames){\n tableSchemaMap = new HashMap<>();\n tableSchemaDir = databaseDir + File.separator + \"schema.txt\";\n HashMap<String,String> tableNamesOringinalTableNamesMap = new HashMap<>();\n for(int i = 0; i < tableNames.size(); i++) {\n tableNamesOringinalTableNamesMap.put(tableNames.get(i),oringinalTableNames.get(i));\n }\n //System.out.println(\"tableNamesOringinalTableNamesMap:\"+tableNamesOringinalTableNamesMap);\n try\n {\n FileReader fr = new FileReader(tableSchemaDir);\n BufferedReader br = new BufferedReader(fr);\n String nextline;\n String[] oneSchema;\n while((nextline = br.readLine()) != null)\n {\n oneSchema = nextline.split(\" \");\n String SchemaName = oneSchema[0];\n for(String tableNamesOringinalTableNamesMapKey:tableNamesOringinalTableNamesMap.keySet())\n {\n if(tableNamesOringinalTableNamesMap.get(tableNamesOringinalTableNamesMapKey).equals(SchemaName)){\n String[] newSchema = oneSchema.clone();\n newSchema[0] = tableNamesOringinalTableNamesMapKey;\n for(int i = 1; i < oneSchema.length; i++)\n newSchema[i] = tableNamesOringinalTableNamesMapKey + \".\" + newSchema[i];\n //String newSchemaName = tableNamesOringinalTableNamesMap.get(tableNamesOringinalTableNamesMapKey);\n tableSchemaMap.put(newSchema[0],newSchema);\n //System.out.println(\"tableSchemaMap:\"+ tableSchemaMap);\n }\n }\n }\n }\n catch (Exception e)\n {\n System.err.println(\"Failed to open file\");\n e.printStackTrace();\n }\n }",
"private void readGraphsFromFiles() {\n\n\n \t\ttry {\t\n\t\t\t// where to find SN files\n\t\t\tString fileName = \"./networks/SN_20000\";\n\t\t\tint numberSNs = 5;\n\t\t\t\n\t\t\t// TODO CHANGE! IT IS JUST FOR TESTING. OUT OF MEMORY\n\t\t\tfileNamesGraphs = new String[numberSNs];\n\t\t\tfileNamesGraphs [0]= fileName + \"_0.001.dgs\";\n\t\t\tfileNamesGraphs [1]= fileName + \"_0.002.dgs\";\n\t\t\tfileNamesGraphs [2]= fileName + \"_0.003.dgs\";\n\t\t\tfileNamesGraphs [3]= fileName + \"_0.004.dgs\";\n\t\t\tfileNamesGraphs [4]= fileName + \"_0.005.dgs\";\n\t\t\t//files [5]= fileName + \"_0.001.dgs\";\n\t\t\t//files [6]= fileName + \"_0.001.dgs\";\n\t\t\t//files [7]= fileName + \"_0.001.dgs\";\n\t\t\t//files [8]= fileName + \"_0.001.dgs\";\n\t\t\t//files [9]= fileName + \"_0.001.dgs\";\n\n\t long time1 = System.currentTimeMillis( );\n\n\t\t\t// first create a list of Graphs\n\t\t\tthis.graphsFromFiles = new ArrayList<Graph>();\t\n\t\t\t\n\t\t\tfor (int i = 0; i < numberSNs; i++) {\n\t\t\t\tGraph graphFromFile;\n\t\t\t\tgraphFromFile = new SingleGraph(\"SN\" + i);\n\t\t\t\tthis.graphsFromFiles.add(graphFromFile);\n\t\t\t}\n\t\t\n\t\t\tFileSourceDGS fileSource = new FileSourceDGS();\n\t\t\t\t\t\n\t\t\tfor (int i = 0; i < numberSNs; i++) {\n\t\t\t\tfileSource.addSink(this.graphsFromFiles.get(i));\t\t\t\t\n\t\t\t\tfileSource.readAll(fileNamesGraphs[i]);\n\t\t\t\tfileSource.removeSink(this.graphsFromFiles.get(i));\t\t\t\n\t\t\t}\t\t\n\t\t\t\n\t\t\tlong time2 = System.currentTimeMillis( );\n\t\t\tSystem.out.println(\"readGraphsFromFiles: \" + (double)(time2 - time1)/1000 \n\t\t\t\t\t+ \"s for reading the SN files\");\n\t \n\t\t\t\n\t\t} catch (IOException e) {\n\t\t \tSystem.out.println(\"Error when reading SN files\");\n\t\t}\n\t\t\t\t\t\n\t}",
"protected void addContentHMetisInFilePath() {\n\t\tPTNetlist ptNetlist = this.getNetlister().getPTNetlist();\n\t\tString newline = System.lineSeparator();\n\t\tMap<PTNetlistNode, Integer> vertexIntegerMap = this.getVertexIntegerMap();\n\t\tList<String> fileContent = new ArrayList<String>();\n\t\t// vertices\n\t\tPTNetlistNode src = null;\n\t\tPTNetlistNode dst = null;\n\t\tInteger srcInteger = null;\n\t\tInteger dstInteger = null;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < ptNetlist.getNumEdge(); i++){\n\t\t\tPTNetlistEdge edge = ptNetlist.getEdgeAtIdx(i);\n\t\t\tif (PTNetlistEdgeUtils.isEdgeConnectedToPrimary(edge)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttemp ++;\n\t\t\tsrc = edge.getSrc();\n\t\t\tdst = edge.getDst();\n\t\t\tsrcInteger = vertexIntegerMap.get(src);\n\t\t\tdstInteger = vertexIntegerMap.get(dst);\n\t\t\tfileContent.add(srcInteger + \" \" + dstInteger + newline);\n\t\t}\n\t\ttry {\n\t\t\tOutputStream outputStream = new FileOutputStream(this.getHMetisInFile());\n\t\t\tWriter outputStreamWriter = new OutputStreamWriter(outputStream);\n\t\t\t// Format of Hypergraph Input File\n\t\t\t// header lines are: [number of edges] [number of vertices] \n\t\t\t//\t\tsubsequent lines give each edge, one edge per line\n\t\t\toutputStreamWriter.write(temp + \" \" + vertexIntegerMap.size() + newline);\n\t\t\tfor (int i = 0; i < fileContent.size(); i++) {\n\t\t\t\toutputStreamWriter.write(fileContent.get(i));\n\t\t\t}\t\t\t\n\t\t\toutputStreamWriter.close();\n\t\t\toutputStream.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void initOntology() {\n\n\tontology = ModelFactory.createDefaultModel();\n\t\t\t\n\ttry \n\t{\n\t\t//ontology.read(new FileInputStream(\"ontology.ttl\"),null,\"TTL\");\n\t\tontology.read(new FileInputStream(\"Aminer-data.ttl\"),null,\"TTL\");\n\t\t//ontology.read(new FileInputStream(\"SO data.ttl\"),null,\"TTL\");\n\t} \n\tcatch (FileNotFoundException e) \n\t{\n\t\tSystem.out.println(\"Error creating ontology model\" +e.getMessage());\n\t\te.printStackTrace();\n\t}\n\t\t\t\n\t\t\n\t}",
"private static Map<String, List<List<String>>>[] splitYagoDataIntoDocumentSets(File yagoInputFile) {\r\n\t\tMap<String, List<List<String>>> trainData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testaData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testbData = new HashMap<String, List<List<String>>>();\r\n\t\t\r\n\t\tBufferedReader reader = FileUtil.getFileReader(yagoInputFile.getAbsolutePath());\r\n\t\ttry {\r\n\t\t\tString documentName = null;\r\n\t\t\tString documentSet = null;\r\n\t\t\tList<List<String>> documentLines = null;\r\n\t\t\tList<String> sentenceLines = null;\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tif (line.startsWith(\"-DOCSTART-\")) {\r\n\t\t\t\t\tif (documentSet != null) {\r\n\t\t\t\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString docId = line.substring(\"-DOCSTART- (\".length(), line.length() - 1);\r\n\t\t\t\t\tString[] docIdParts = docId.split(\" \");\r\n\t\t\t\t\tdocumentName = docIdParts[0] + \"_\" + docIdParts[1];\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (docIdParts[0].endsWith(\"testa\"))\r\n\t\t\t\t\t\tdocumentSet = \"testa\";\r\n\t\t\t\t\telse if (docIdParts[0].endsWith(\"testb\"))\r\n\t\t\t\t\t\tdocumentSet = \"testb\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tdocumentSet = \"train\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tdocumentLines = new ArrayList<List<String>>();\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else if (line.trim().length() == 0) {\r\n\t\t\t\t\tdocumentLines.add(sentenceLines);\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsentenceLines.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tMap<String, List<List<String>>>[] returnData = new HashMap[3];\r\n\t\treturnData[0] = trainData;\r\n\t\treturnData[1] = testaData;\r\n\t\treturnData[2] = testbData;\r\n\t\t\r\n\t\treturn returnData;\r\n\t}",
"private boolean loadDataFiles(Connection conn, String prefix, String[] files) {\n int errors, processed;\n errors = processed = 0;\n for (int i = 0; i < files.length; i++) {\n if (files[i].endsWith(\".data\") && files[i].startsWith(prefix)){\n processed++;\n String tablename = files[i].substring(0, files[i].indexOf(\".\"));\n String sql = DBHelper.loadTableString(tablename, data_dir + \"/\" + files[i]);\n try {\n PreparedStatement loadStmt = conn.prepareStatement(sql);\n loadStmt.execute();\n loadStmt.close();\n } catch (java.sql.SQLException e) {\n logger.log(\"Error executing \" + sql);\n logger.log(e);\n errors++;\n }\n try {\n String synonym = getSynonym(tablename);\n if (synonym != null) {\n sql = \"create synonym \" + synonym + \" for \" + tablename;\n PreparedStatement loadStmt = conn.prepareStatement(sql);\n loadStmt.execute();\n }\n }catch (Exception e) {\n /* This is ok to ignore as synonym might already exist */\n logger.log(\"Ok to ignore exception below\");\n logger.log(e);\n }\n logger.log(\"Successfully executed: \" + sql);\n }\n }\n if (processed == 0) {\n logger.log(\"Could not files matching files :\" + prefix +\"*.data\");\n return (false);\n }\n /* Only return an error if number of processed files == errors */\n if (errors == processed) {\n logger.log(\"\" + errors + \" errors processing \" + processed + \"files\");\n return (false);\n }\n return (true);\n }",
"public static void main(String[] args) throws IOException {\n SortedMap<String, File> consensuses = new TreeMap<String, File>();\n SortedMap<String, File> descriptors = new TreeMap<String, File>();\n SortedMap<String, File> votes = new TreeMap<String, File>();\n Stack<File> files = new Stack<File>();\n files.add(new File(\"descriptors\"));\n while (!files.isEmpty()) {\n File file = files.pop();\n String filename = file.getName();\n if (file.isDirectory()) {\n files.addAll(Arrays.asList(file.listFiles()));\n } else if (filename.endsWith(\"-consensus\")) {\n consensuses.put(filename, file);\n } else if (filename.endsWith(\"-votes\")) {\n votes.put(filename, file);\n } else if (filename.endsWith(\"-serverdesc\")) {\n descriptors.put(filename, file);\n }\n }\n System.out.println(\"We found \" + consensuses.size()\n + \" consensus files, \" + votes.size() + \" vote files, and \"\n + descriptors.size() + \" server descriptor files.\");\n\n /* Parse consensuses in an outer loop and the referenced votes and\n * descriptors in inner loops. Write the results to disk as soon as\n * we can to avoid keeping many things in memory. */\n SortedMap<String, String> bandwidthAuthorities =\n new TreeMap<String, String>();\n bandwidthAuthorities.put(\"27B6B5996C426270A5C95488AA5BCEB6BCC86956\",\n \"ides\");\n bandwidthAuthorities.put(\"80550987E1D626E3EBA5E5E75A458DE0626D088C\",\n \"urras\");\n bandwidthAuthorities.put(\"D586D18309DED4CD6D57C18FDB97EFA96D330566\",\n \"moria1\");\n bandwidthAuthorities.put(\"ED03BB616EB2F60BEC80151114BB25CEF515B226\",\n \"gabelmoo\");\n bandwidthAuthorities.put(\"49015F787433103580E3B66A1707A00E60F2D15B\",\n \"maatuska\");\n BufferedWriter bw = new BufferedWriter(new FileWriter(\n \"bandwidth-comparison.csv\"));\n bw.write(\"validafter,fingerprint,nickname,category,\"\n + \"descriptorbandwidth,consensusbandwidth\");\n for (String bandwidthAuthority : bandwidthAuthorities.values()) {\n bw.write(\",\" + bandwidthAuthority + \"bandwidth\");\n }\n bw.write(\"\\n\");\n for (File consensusFile : consensuses.values()) {\n System.out.println(\"Parsing consensus \" + consensusFile.getName());\n BufferedReader brC = new BufferedReader(new FileReader(\n consensusFile));\n String lastRLine = null, lastSLine = null;\n String consensusTimestamp = consensusFile.getName().substring(0,\n \"YYYY-MM-DD-hh-mm-ss\".length());\n Map<String, Map<String, String>> measuredBandwidthsByDirSource =\n new HashMap<String, Map<String, String>>();\n\n /* Parse votes first, if we have them, and extract measured\n * bandwidths. */\n String votesFilename = consensusTimestamp + \"-votes\";\n if (votes.containsKey(votesFilename)) {\n BufferedReader brV = new BufferedReader(new FileReader(\n votes.get(votesFilename)));\n String lineV;\n Map<String, String> measuredBandwidths = null;\n while ((lineV = brV.readLine()) != null) {\n if (lineV.startsWith(\"dir-source \")) {\n String dirSource = lineV.split(\" \")[2];\n measuredBandwidths = new HashMap<String, String>();\n measuredBandwidthsByDirSource.put(dirSource,\n measuredBandwidths);\n } else if (lineV.startsWith(\"r \")) {\n lastRLine = lineV;\n } else if (lineV.startsWith(\"w \") &&\n lineV.contains(\" Measured=\")) {\n String fingerprint = Hex.encodeHexString(Base64.\n decodeBase64(lastRLine.split(\" \")[2] + \"=\"));\n String measuredBandwidth = lineV.substring(lineV.indexOf(\n \" Measured=\") + \" Measured=\".length()).split(\" \")[0];\n measuredBandwidths.put(fingerprint, measuredBandwidth);\n }\n }\n brV.close();\n }\n\n /* Parse referenced server descriptors to learn about exit policies\n * and reported bandwidths. */\n String descriptorsFilename = consensusTimestamp + \"-serverdesc\";\n Map<String, String> parsedDescriptors =\n new HashMap<String, String>();\n if (descriptors.containsKey(descriptorsFilename)) {\n BufferedReader brD = new BufferedReader(new FileReader(\n descriptors.get(descriptorsFilename)));\n Set<String> defaultRejects = new HashSet<String>();\n /* Starting with 0.2.1.6-alpha, ports 465 and 587 were allowed\n * in the default exit policy again (and therefore removed\n * from the default reject lines). */\n Set<String> optionalRejects = new HashSet<String>();\n String lineD, address = null, fingerprint = null,\n descriptorBandwidth = null;\n boolean defaultPolicy = false, comparePolicies = true;\n while ((lineD = brD.readLine()) != null) {\n if (lineD.startsWith(\"router \")) {\n address = lineD.split(\" \")[2];\n defaultRejects.clear();\n defaultRejects.addAll(Arrays.asList((\"0.0.0.0/8:*,\"\n + \"169.254.0.0/16:*,127.0.0.0/8:*,192.168.0.0/16:*,\"\n + \"10.0.0.0/8:*,172.16.0.0/12:*,$IP:*,*:25,*:119,\"\n + \"*:135-139,*:445,*:563,*:1214,*:4661-4666,*:6346-6429,\"\n + \"*:6699,*:6881-6999\").split(\",\")));\n optionalRejects.clear();\n optionalRejects.addAll(Arrays.asList(\n \"*:465,*:587\".split(\",\")));\n fingerprint = null;\n descriptorBandwidth = null;\n defaultPolicy = false;\n comparePolicies = true;\n } else if (lineD.startsWith(\"opt fingerprint \") ||\n lineD.startsWith(\"fingerprint \")) {\n fingerprint = lineD.substring(lineD.startsWith(\"opt \") ?\n \"opt fingerprint\".length() : \"fingerprint\".length()).\n replaceAll(\" \", \"\").toLowerCase();\n } else if (lineD.startsWith(\"bandwidth \")) {\n descriptorBandwidth = lineD.split(\" \")[3];\n } else if (lineD.startsWith(\"reject \") && comparePolicies) {\n String rejectPattern = lineD.substring(\"reject \".\n length());\n if (defaultRejects.contains(rejectPattern)) {\n defaultRejects.remove(rejectPattern);\n } else if (optionalRejects.contains(rejectPattern)) {\n optionalRejects.remove(rejectPattern);\n } else if (rejectPattern.equals(address + \":*\")) {\n defaultRejects.remove(\"$IP:*\");\n } else {\n comparePolicies = false;\n }\n } else if (lineD.startsWith(\"accept \") && comparePolicies) {\n if (defaultRejects.isEmpty() &&\n lineD.equals(\"accept *:*\")) {\n defaultPolicy = true;\n }\n comparePolicies = false;\n } else if (lineD.equals(\"router-signature\")) {\n if (address != null && fingerprint != null &&\n descriptorBandwidth != null) {\n parsedDescriptors.put(fingerprint, descriptorBandwidth + \",\"\n + (defaultPolicy ? \"1\" : \"0\"));\n }\n }\n }\n brD.close();\n }\n\n /* Parse r, s, and w lines from the consensus. */\n String lineC, validAfter = null;\n while ((lineC = brC.readLine()) != null) {\n if (lineC.startsWith(\"valid-after \")) {\n validAfter = lineC.substring(\"valid-after \".length());\n } else if (lineC.startsWith(\"r \")) {\n lastRLine = lineC;\n } else if (lineC.startsWith(\"s \")) {\n lastSLine = lineC;\n } else if (lineC.startsWith(\"w \")) {\n String[] parts = lastRLine.split(\" \");\n String nickname = parts[1];\n String fingerprint = Hex.encodeHexString(Base64.decodeBase64(\n parts[2] + \"=\"));\n String descriptor = Hex.encodeHexString(Base64.decodeBase64(\n parts[3] + \"=\"));\n boolean exitFlag = lastSLine.contains(\" Exit\");\n boolean guardFlag = lastSLine.contains(\" Guard\");\n String consensusBandwidth = lineC.substring(lineC.indexOf(\n \" Bandwidth=\") + \" Bandwidth=\".length()).split(\" \")[0];\n\n /* Look up whether we parsed this descriptor before. */\n boolean parsedDescriptor = false, defaultPolicy = false;\n String descriptorBandwidth = null;\n if (parsedDescriptors.containsKey(fingerprint)) {\n String parseResults = parsedDescriptors.get(fingerprint);\n parsedDescriptor = true;\n defaultPolicy = parseResults.endsWith(\"1\");\n descriptorBandwidth = parseResults.split(\",\")[0];\n }\n\n /* Write everything we know about this relay to disk. */\n String category = null;\n if (guardFlag && exitFlag && defaultPolicy) {\n category = \"Guard & Exit (default policy)\";\n } else if (!guardFlag && exitFlag && defaultPolicy) {\n category = \"Exit (default policy)\";\n } else if (guardFlag && exitFlag && !defaultPolicy) {\n category = \"Guard & Exit (non-default policy)\";\n } else if (!guardFlag && exitFlag && !defaultPolicy) {\n category = \"Exit (non-default policy)\";\n } else if (guardFlag && !exitFlag) {\n category = \"Guard\";\n } else if (!guardFlag && !exitFlag) {\n category = \"Middle\";\n }\n bw.write(validAfter + \",\" + fingerprint + \",\" + nickname + \",\"\n + category + \",\" + (parsedDescriptor ? descriptorBandwidth\n : \"NA\") + \",\" + consensusBandwidth);\n for (String bandwidthAuthority :\n bandwidthAuthorities.keySet()) {\n if (measuredBandwidthsByDirSource.containsKey(\n bandwidthAuthority) && measuredBandwidthsByDirSource.get(\n bandwidthAuthority).containsKey(fingerprint)) {\n bw.write(\",\" + measuredBandwidthsByDirSource.get(\n bandwidthAuthority).get(fingerprint));\n } else {\n bw.write(\",NA\");\n }\n }\n bw.write(\"\\n\");\n }\n }\n brC.close();\n }\n bw.close();\n }",
"static void ReadAndWriteDataSet(String folderName) throws IOException\n\t{\n\t\t\n\t\t String path = \"data\"+FS+\"data_stage_one\"+FS+folderName; // Folder path \n\t\t \n\t\t String filename, line;\n\t\t File folder = new File(path);\n\t\t File[] listOfFiles = folder.listFiles();\n\t\t BufferedReader br = null;\n\t\t for(int i=0; i < listOfFiles.length; i++)\n\t\t { \n\t\t\t System.out.println(listOfFiles[i].getName());\n\t\t\t filename = path+FS+listOfFiles[i].getName();\n\t\t\t try\n\t\t\t {\n\t\t\t\t br= new BufferedReader(new FileReader(new File(filename)));\n\t\t\t\t while((line = br.readLine())!= null)\n\t\t\t\t {\n\t\t\t\t\tfor(int j=0; j<prep.length; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(line);\n\t\t\t\t\t\twhile(st.hasMoreTokens())\n\t\t\t\t\t\t\tif(st.nextToken().equalsIgnoreCase(prep[j]))\n\t\t\t\t\t\t\t{\t//System.out.println(line);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(arr[j] == null)\n\t\t\t\t\t\t\t\t\tarr[j] = new ArrayList<String>();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tarr[j].add(line.toLowerCase().replaceAll(\"\\\\p{Punct}\",\"\").trim().replaceAll(\"\\\\s+\", \" \"));\n\t\t\t\t\t\t\t\tbreak;\n\t\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 }\n\t\t\t catch(Exception e)\n\t\t\t {\n\t\t\t\t System.err.println(\"exception: \"+e.getMessage() );\n\t\t\t\t e.printStackTrace();\n\t\t\t\t System.exit(0);\n\t\t\t }\n\t\t\t finally\n\t\t\t {\n\t\t\t\t br.close();\n\t\t\t }\n\t\t }\n\t\t \n\t\t // Writes the entire arraylist(preposition wise seperated files)\n\t\t \n\t\t WriteSeperated(folderName);\n\t\t \n\t\t for(int i=0; i<prep.length; i++)\n\t\t {\n\t\t\t arr[i].clear();\n\t\t }\n\t\t \n\t}",
"public void SetNewInputLocation(String inputFiles) \n\t{\n\t\tthis.inputFiles = inputFiles.substring(0, inputFiles.lastIndexOf((\"/\")));\n\t}",
"public void fillFilenames() {\r\n if (this.pl_LastFiles.getParam(\"nodelist-file\") != null\r\n && this.pl_LastFiles.getParam(\"edgelist-file\") != null) {\r\n this.nodefileText.setText(this.pl_LastFiles.getParam(\"nodelist-file\"));\r\n this.edgeFileText.setText(this.pl_LastFiles.getParam(\"edgelist-file\"));\r\n } else {\r\n this.nodefileText.setText(\"examples\" + System.getProperty(\"file.separator\") + \"20nodes.txt\");\r\n this.edgeFileText.setText(\"examples\" + System.getProperty(\"file.separator\") + \"20edges.txt\");\r\n }\r\n }",
"public static void main(String[] args) {\n\n System.out.println(\"\\n... MakeNetworks Arguments :<rootFileName> \"\n +\":<inputDirectory>+ :<outputDirectory> +:<extractGCC>\"\n + \":<year> :<weightType> :<useWhat> :<infoLevel>\");\n System.out.println(\"Fieldname types are:- Bus for Business and International Management\");\n System.out.println(\" - Phy for Physics & astronomy\");\n for (int i=0; i<weightTypeDescription.length; i++) {\n System.out.println(\"... weightType \"+i+\" = \"+weightTypeDescription[i]);\n } \n System.out.println(\"... useWhat: 1,3= use title, 2,3=use keywords\");\n for(int a=0; a<args.length; a++) {\n System.out.print((a==0?\"... Arguments: \":\" \")+args[a]);\n }\n System.out.println();\n \n HashSet<Integer> yearSet = new HashSet();\n HashSet<String> fieldnameSet = new HashSet();\n HashSet<Integer> weightTypeSet = new HashSet();\n HashSet<Integer> useWhatSet = new HashSet();\n \n \n int ano=0;\n //String rootFileName = \"ebrp_03_set_01_documentsTEST\";\n //String rootFileName = \"ebrp_03_set_01_documentsHARDTEST\";\n String rootFileName = \"ebrp_03_set_01_documents\";\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) {\n rootFileName=args[ano].substring(1);\n }\n System.out.println(\"--- Root of file name is \"+rootFileName);\n \n final String fileSep=System.getProperty(\"file.separator\");\n String dirBase=System.getProperty(\"user.dir\")+fileSep;\n \n //String inputDirectory =\"C:\\\\PRG\\\\JAVA\\\\Elsevier\\\\input\\\\\";\n String inputDirectory =\"C:\\\\DATA\\\\Elsevier\\\\input\\\\\";\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) inputDirectory=args[ano].substring(1); \n System.out.println(\"--- Input directory is \"+inputDirectory);\n \n String outputDirectory =\"C:\\\\DATA\\\\Elsevier\\\\output\\\\\";\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) outputDirectory=args[ano].substring(1); \n System.out.println(\"--- Output directory is \"+outputDirectory);\n \n \n boolean extractGCC=true;\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) extractGCC=(StringAsBoolean.isTrue(args[ano].charAt(1))?true:false); \n System.out.println(\"--- extracting GCC - \"+(extractGCC?\"yes\":\"no\"));\n \n int minDegreeIn=3;\n int minDegreeOut=3;\n double minWeight=0;\n System.out.println(\"--- extracting simplified GCC with min in degree - \"\n +minDegreeIn+\", min out degree - \"+minDegreeOut+\", and min weight \"+minWeight);\n \n // set up filter\n int minChar=2;\n int minL=3;\n boolean keepRejectList=true;\n ElsevierPapersFilter ipf = new ElsevierPapersFilter(minChar, minL, keepRejectList);\n \n \n if (rootFileName.equalsIgnoreCase(\"ALL\")){\n //rootFileName = \"ebrp_03_set_01_documentsHARDTEST\"; \n rootFileName = \"ebrp_03_set_01_documents\";\n yearSet.add(2002);\n yearSet.add(2006);\n yearSet.add(2010);\n fieldnameSet.add(\"Bus\"); //Business and International Management\n fieldnameSet.add(\"Phy\"); //Physics & astronomy\n weightTypeSet.add(0);\n weightTypeSet.add(1);\n useWhatSet.add(1);\n useWhatSet.add(2);\n useWhatSet.add(3);\n int infoLevelAll=-1;\n process(rootFileName, inputDirectory, outputDirectory,\n yearSet, fieldnameSet,\n weightTypeSet,\n useWhatSet,\n ipf,\n extractGCC,\n minDegreeIn, minDegreeOut, minWeight,\n infoLevelAll);\n System.exit(0);\n }\n System.out.println(\"--- file name root \"+rootFileName);\n\n int year = 2002;\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) year=Integer.parseInt(args[ano].substring(1, args[ano].length())); \n System.out.println(\"--- Year used \"+year);\n yearSet.add(year);\n\n // Bus= Business and International Management\n // Phy= Physics & astronomy\n String fieldname = \"Phy\"; \n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) fieldname=args[ano].substring(1, args[ano].length()); System.out.println(\"--- fieldname used \"+fieldname);\n fieldnameSet.add(fieldname);\n\n // 1 = total weight one for each paper, terms have equal weight, P1 in file name\n int weightType=1;\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) weightType=Integer.parseInt(args[ano].substring(1, args[ano].length())); \n if ((weightType<0) || (weightType>=weightTypeShort.length)) throw new RuntimeException(\"illegal weightType of \"+weightType+\", must be between 0 and \"+(weightTypeShort.length-1)+\" inclusive\");\n System.out.println(\"--- Weight Type \"+weightType+\" = \"+weightTypeDescription[weightType]);\n weightTypeSet.add(weightType);\n \n\n // 1,3= use title, 2,3=use keywords\n int useWhat=1;\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) useWhat=Integer.parseInt(args[ano].substring(1, args[ano].length())); \n boolean useTitle=((useWhat&1)>0);\n boolean useKeywords=((useWhat&2)>0);\n System.out.println(\"--- \"+(useTitle?\"U\":\"Not u\")+\"sing titles\");\n System.out.println(\"--- \"+(useKeywords?\"U\":\"Not u\")+\"sing keywords\");\n useWhatSet.add(useWhat);\n\n // 0 for normal, 1 for some, 2 for all debugging info, -1 for minimal\n int infoLevel=0;\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) infoLevel=Integer.parseInt(args[ano].substring(1, args[ano].length())); \n System.out.println(\"--- infoLevel=\"+infoLevel);\n boolean infoOn=(infoLevel>1);\n\n// if (args.length>ano ) if (timgraph.isOtherArgument(args[ano])) graphMLOutput=StringFilter.trueString(args[ano].charAt(1));\n\n\n process(rootFileName, inputDirectory, outputDirectory,\n yearSet, fieldnameSet,\n weightTypeSet,\n useWhatSet,\n ipf,\n extractGCC,\n minDegreeIn, minDegreeOut, minWeight,\n infoLevel);\n }",
"Source createDatasourceZ3950IdFile(Source ds, Provider prov) throws RepoxException;",
"public static void main(String[] args) throws Exception {\n File file = new File(\"e://m/iphone_cust_id_2017-09-27-14.txt\");\n Set<String> xiaoMi = readFile(file);\n Set<String> origin = readFile(new File(\"e://m/split_bug8091_default_cust_id_num545268.txt\"));\n Set<String> s3 = new HashSet<String>();\n Set<String> last = new HashSet<String>(origin.size());\n for (String custId : origin) {\n if(xiaoMi.contains(custId)) {\n last.add(custId);\n }\n }\n System.out.println(last.size());\n writeFile(last, \"e://m/iphone.txt\");\n //List<String> last = setHandle(origin, xiaoMi, s3,3);\n //System.out.println(last.size());\n }",
"abstract public Shard<Set<File>> getFilesKnowledge();",
"public SYEParser(InputStream input, String name) throws FileNotFoundException {\n super(input);\n this.filename = name;\n }",
"private void generateFileList() {\r\n \r\n for (FileSet fileSet : cmtFileSetList) {\r\n DirectoryScanner dirScanner = fileSet.getDirectoryScanner();\r\n dirScanner.scan();\r\n String[] filelist = dirScanner.getIncludedFiles();\r\n String lineSeparator = System.getProperty(\"line.separator\");\r\n String fileSeparator = System.getProperty(\"file.separator\");\r\n \r\n BufferedWriter outputFile = null;\r\n try {\r\n outputFile = new BufferedWriter(new FileWriter(input));\r\n for (String file : filelist) {\r\n outputFile.write(dirScanner.getBasedir().toString() + fileSeparator + file\r\n + lineSeparator);\r\n }\r\n } catch (IOException e) {\r\n throw new BuildException(\"Not able to generate file list for 'cmt'. \", e);\r\n } finally {\r\n try {\r\n if (outputFile != null) {\r\n outputFile.close();\r\n }\r\n } catch (IOException ex) {\r\n // ignore exception\r\n ex = null;\r\n }\r\n }\r\n }\r\n }",
"public static void main(String[] args){\n In fileSynset = new In(args[0]);\n In fileHypernyms = new In(args[1]);\n String Hypernyms = fileHypernyms.readAll();\n String Synset = fileSynset.readAll();\n WordNet Net = new WordNet(Synset, Hypernyms);\n }",
"@Override\n\tpublic java.lang.String getSrcFileName() {\n\t\treturn _scienceApp.getSrcFileName();\n\t}",
"public WordNet(String synsets, String hypernyms) throws IOException {\n\n this.synsetsMap = new HashMap<Integer, ArrayList<String>>();\n this.nounsMap = new HashMap<String, ArrayList<Integer>>();\n this.edgesMap = new HashMap<Integer, ArrayList<Integer>>();\n int graphNodes = 0; \n \n // Process synsets.txt\n BufferedReader br = new BufferedReader(new FileReader(synsets));\n String line;\n while ((line = br.readLine()) != null) {\n String[] items = line.split(\",\");\n int synsetID = Integer.parseInt(items[0]);\n String[] nouns = items[1].split(\" \");\n \n for (String noun : nouns) {\n if (!nounsMap.containsKey(noun)) {\n nounsMap.put(noun, new ArrayList<Integer>());\n }\n nounsMap.get(noun).add(synsetID);\n }\n \n if (!synsetsMap.containsKey(synsetID)) {\n synsetsMap.put(synsetID, new ArrayList<String>());\n }\n \n for (String noun : nouns) {\n synsetsMap.get(synsetID).add(noun);\n }\n graphNodes++; \n }\n br.close();\n\n // Process hypernyms.txt\n br = new BufferedReader(new FileReader(hypernyms));\n while ((line = br.readLine()) != null) {\n String[] items = line.split(\",\");\n int hypernymID = Integer.parseInt(items[0]);\n \n if (!edgesMap.containsKey(hypernymID)) {\n edgesMap.put(hypernymID, new ArrayList<Integer>());\n }\n \n for (int i = 1; i < items.length; i++) {\n edgesMap.get(hypernymID).add(Integer.parseInt(items[i]));\n }\n }\n br.close();\n \n // Construct Graph\n this.G = new Digraph(graphNodes);\n for (Map.Entry<Integer, ArrayList<Integer>> entry : edgesMap.entrySet()) {\n for (int edge : entry.getValue()) {\n this.G.addEdge(entry.getKey(), edge);\n }\n }\n \n // Check if there's a cycle\n DirectedCycle cycle = new DirectedCycle(this.G);\n if (cycle.hasCycle()) {\n throw new java.lang.IllegalArgumentException();\n }\n \n // Construct SAP \n this.sap = new SAP(this.G);\n }",
"public CreateInputFiles()\n\t{\n\t\ttry\n\t\t{\n\t\t\tEXCEL_FILE = new FileInputStream(new File(INPUT_FILE_NAME));\n\t\t\t/* Log File */\n\t\t\tLOG_WRITER = writerCreator(LOG_FILE, BLANK);\n\t\t\tLOG_WRITER.write(START_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\tSystem.out.println(NEW_LINE + START_TIME + new java.util.Date() + LINE_SEPERATOR);\n\n\t\t\t/* Service Part Creation */\n\t\t\tSERVICE_PART_WRITER = writerCreator(SERVICE_PARTS_CREATION_INPUT_FILE,\n\t\t\t\t\tSERVICE_PART_CREATION_CONFIG);\n\n\t\t\t/* Service Form Update */\n\t\t\tSERVICE_FORM_WRITER = writerCreator(SERVICE_FORM_PROPERTIES_INPUT_FILE,\n\t\t\t\t\tSERVICE_FORM_UPDATE_CONFIG);\n\n\t\t\t/* PS_UPLOAD - Service Structures Creation \n\t\t\tPS_STRUCTURE_WRITER = writerCreator(PS_STRUCTURE_CREATION_INPUT_FILE,\n\t\t\t\t\tPS_STRUCTURE_CREATION_CONFIG); */\n\n\t\t\t/* Service Structures Creation */\n\t\t\tSTRUCTURE_WRITER = writerCreator(STRUCTURE_CREATION_INPUT_FILE,\n\t\t\t\t\tSTRUCTURE_CREATION_CONFIG);\n\n\t\t\t/* EngParts' Service Form Creation and Attachment*/\n\t\t\tEP_SERVICE_FORM_WRITER = writerCreator(EP_SERVICE_FORM_CREATION_INPUT_FILE,\n\t\t\t\t\tEP_SERVICE_FORM_CREATION_CONFIG);\n\n\t\t\t/* Service Parts' Global Alternate */\n\t\t\tSP_GLOBAL_ALT_WRITER = writerCreator(SP_GLOBAL_ALT_INPUT_FILE, BLANK);\n\n\t\t\t/* Service Parts' Group ID update */\n\t\t\tSP_GROUP_ID_WRITER = writerCreator(SP_GROUP_ID_INPUT_FILE, SP_GROUP_ID_UPDATE_CONFIG);\n\n\t\t\t/* Relate Service Parts to three types of attachments*/\n\t\t\tSP_ATTACHMENT_WRITER = writerCreator(SP_ATTACHMENT_INPUT_FILE, SP_ATTACHMENT_CONFIG);\n\n\t\t\t/* Made From Relation Creation */\n\t\t\tMADE_FROM_RELATION_WRITER = writerCreator(MADE_FROM_REL_INPUT_FILE,\n\t\t\t\t\tMADE_FROM_REL_CONFIG);\n\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t\tSystem.exit(1);\n\t\t}\n\t}",
"@Override\n public void prepareRun(BatchSourceContext context) throws IOException {\n Map<String, String> arguments = new HashMap<>();\n FileSetArguments.setInputPaths(arguments, config.files);\n context.setInput(Input.ofDataset(config.fileSetName, arguments));\n }",
"@Override\n\tpublic void setup(Context context){\n\t\tfileName = ((FileSplit) context.getInputSplit()).getPath().getName();\n\t}",
"public void createFileIndexTablesInBatch(List<String> files) {\n List<String> tableNames = new ArrayList<String>();\n tableNames = RasterUtils.fileNamesToTableNames(files);\n this.sqlOptor.createFileIndexTablesInBatch(tableNames);\n }",
"public static void processFilesForValidation() {\r\n\t\t// Process each file one at a time.\r\n\t\tfor (int i = 0; i < inScanners.length; i++) {\r\n\t\t\tScanner sc = inScanners[i];\r\n\t\t\tint articleCount = 1;\r\n\t\t\t// Read the input file.\r\n\t\t\ttry {\r\n\t\t\t\twhile(sc.hasNextLine()) {\r\n\t\t\t\t\tString s = sc.nextLine();\r\n\t\t\t\t\t// If we come across an article, read its contents and add it to the file.\r\n\t\t\t\t\tif(s.startsWith(\"@ARTICLE{\")) {\r\n\t\t\t\t\t\tauthor = journal = title = year = volume = number = pages = doi = ISSN = month = \"\";\r\n\t\t\t\t\t\twhile (!s.equals(\"}\")) {\r\n\t\t\t\t\t\t\ts = sc.nextLine();\r\n\t\t\t\t\t\t\tparseValue(s);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Throw an exception if a field is missing.\r\n\t\t\t\t\t\tif (author.isEmpty() || journal.isEmpty() || title.isEmpty() || year.isEmpty() || volume.isEmpty() \r\n\t\t\t\t\t\t\t\t|| number.isEmpty() || pages.isEmpty() || doi.isEmpty() || ISSN.isEmpty() || month.isEmpty()) {\r\n\t\t\t\t\t\t\tthrow new FileInvalidException(\"One or more fields are missing.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Add the article to the file if valid.\r\n\t\t\t\t\t\tString author1 = author.replaceAll(\" and\", \",\");\r\n\t\t\t\t\t\tint andIndex = author.indexOf(\"and\");\r\n\t\t\t\t\t\tString author2 = andIndex != -1 ? author.replaceAll(author.substring(andIndex,author.length()), \"et al\") : author;\r\n\t\t\t\t\t\tString author3 = author.replaceAll(\"and\", \"&\");\r\n\t\t\t\t\r\n\t\t\t\t\t\t// IEEE\r\n\t\t\t\t\t\toutWriters[i][0].println(author1+\". \\\"\"+title+\"\\\", \"+journal+\", vol. \"+volume+\", no. \"+number+\", p. \"+pages+\", \"+month+\" \"+year+\".\\r\\n\");\r\n\t\t\t\t\t\t// ACM\r\n\t\t\t\t\t\toutWriters[i][1].println(\"[\"+articleCount+\"]\\t\"+author2+\". \"+year+\". \"+title+\". \"+journal+\". \"+volume+\", \"+number+\" (\"+year+\"), \"+pages+\". DOI:https://doi.org/\"+doi+\".\\r\\n\");\r\n\t\t\t\t\t\t// NJ\r\n\t\t\t\t\t\toutWriters[i][2].println(author3+\". \"+title+\". \"+journal+\". \"+volume+\", \"+pages+\"(\"+year+\").\\r\\n\");\r\n\t\t\t\t\t\tarticleCount++;\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\t// Close output writers once file has been read.\r\n\t\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\t\toutWriters[i][j].close();\r\n\t\t\t\t}\r\n\t\t\t\tnumValidFiles++;\r\n\t\t\t}\r\n\t\t\t// If file is invalid, close and delete the output files.\r\n\t\t\tcatch (FileInvalidException e) {\r\n\t\t\t\tSystem.out.println(\"Error: Detected Empty Field!\" \r\n\t\t\t\t\t\t + \"\\n============================\"\r\n\t\t\t + \"\\nProblem detected with input file: Latex\" + (i + 1) + \".bib\"\r\n\t\t\t\t\t\t + \"\\nFile is invalid: \" + e.getMessage() + \" Processing stopped at this point. \"\r\n\t\t\t\t\t\t + \"Other empty/missing fields may be present as well.\\n\");\r\n\t\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\t\toutWriters[i][j].close();\r\n\t\t\t\t\toutFiles[i][j].delete();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Close input file after reading.\r\n\t\t\tsc.close();\r\n\t\t}\r\n\t}",
"public void process(String pathname) {\n\t\tFile file = new File( pathname );\n\t\tString filename = file.getName();\n\t\tString source = filename.substring( 5, filename.length()-19 );\n\t\tSQLDataSourceDescriptor dsd = sqlDataSourceHandler.getDataSourceDescriptor(source);\n\t\tif (dsd == null) {\n\t\t\tlogger.log(Level.SEVERE, \"skipping: \" + pathname + \" (datasource is invalid)\");\n\t\t\treturn;\n\t\t}\n\t\tSQLDataSource ds = null;\n\t\tVDXSource vds = null;\n\t\ttry {\n\t\t\tObject ods = dsd.getSQLDataSource();\n\t\t\tif (ods != null) {\n\t\t\t\tds = dsd.getSQLDataSource();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}\n\t\t\n\t\tint defaultRank = 0;\n\t\tint lineLen1, lineLen2;\n\t\tif ( ds != null ) {\n\t\t\t// This is an SQL DataSource\n\t\t\t\n\t\t\t// Build map of channels\n\t\t\tchannelMap = new HashMap<String, Integer>();\n\t\t\tfor ( Channel ch: ds.defaultGetChannelsList(false) )\n\t\t\t\tchannelMap.put( ch.getCode(), ch.getCID() );\n\t\t\tlogger.info( \"Channels mapped: \" + channelMap.size() );\n\t\t\t\n\t\t\t// Build map of columns\n\t\t\tcolumnMap = new HashMap<String, Integer>();\n\t\t\tfor ( Column col: ds.defaultGetColumns(true,ds.getMenuColumnsFlag()) )\n\t\t\t\tcolumnMap.put( col.name, col.idx );\n\t\t\tlogger.info( \"Columns mapped: \" + columnMap.size() );\n\t\t\t\n\t\t\t// Build map of ranks\n\t\t\trankMap = new HashMap<String, Integer>();\n\t\t\tfor ( String rk: ds.defaultGetRanks() ) {\n\t\t\t\tString rkBits[] = rk.split(\":\");\n\t\t\t\tint id = Integer.parseInt(rkBits[0]);\n\t\t\t\trankMap.put( rkBits[1], id );\n\t\t\t\tif ( rkBits[3].equals(\"1\") )\n\t\t\t\t\tdefaultRank = id;\n\t\t\t}\n\t\t\tlogger.info( \"Ranks mapped: \" + rankMap.size() );\n\t\t\t\n\t\t\t// Set limits on # args per input line\n\t\t\tlineLen1 = 7;\n\t\t\tlineLen2 = 9;\n\t\t\t\n\t\t\t// Build map of supp data types\n\t\t\tsdtypeMap = new HashMap<String, Integer>();\n\t\t\tfor ( SuppDatum sdt: ds.getSuppDataTypes() )\n\t\t\t\tsdtypeMap.put( sdt.typeName, sdt.tid );\n\t\t\tlogger.info( \"Suppdata types mapped: \" + sdtypeMap.size() );\n\t\t\t\n\t\t} else {\n\t\t\t// It isn't a SQL datasource; try it as a Winston datasource\n\t\t\tDataSourceDescriptor vdsd = dataSourceHandler.getDataSourceDescriptor(source);\n\t\t\ttry {\n\t\t\t\tvds = (VDXSource)vdsd.getDataSource();\n\t\t\t\tif ( vds == null ) {\n\t\t\t\t\tlogger.log(Level.SEVERE, \"skipping: \" + pathname + \" (datasource is invalid)\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} catch (Exception e2) {\n\t\t\t\tlogger.log(Level.SEVERE, \"skipping: \" + pathname + \" (datasource is invalid)\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Build map of channels\n\t\t\tchannelMap = new HashMap<String, Integer>();\n\t\t\tfor ( gov.usgs.winston.Channel ch: vds.getChannels().getChannels() )\n\t\t\t\tchannelMap.put( ch.getCode(), ch.getSID() );\n\t\t\tlogger.info( \"Channels mapped: \" + channelMap.size() );\n\t\t\t\n\t\t\t// Set limits on # args per input line\n\t\t\tlineLen1 = lineLen2 = 7;\n\n\t\t\t// Build map of supp data types\n\t\t\tsdtypeMap = new HashMap<String, Integer>();\n\t\t\ttry {\n\t\t\t\tfor ( SuppDatum sdt: vds.getSuppDataTypes() )\n\t\t\t\t\tsdtypeMap.put( sdt.typeName, sdt.tid );\n\t\t\t\tlogger.info( \"Suppdata types mapped: \" + sdtypeMap.size() );\n\t\t\t} catch (Exception e3) {\n\t\t\t\tlogger.log(Level.SEVERE, \"skipping: \" + pathname + \" (problem reading supplemental data types)\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Access the input file\n\t\tResourceReader rr = ResourceReader.getResourceReader(pathname);\n\t\tif (rr == null) {\n\t\t\tlogger.log(Level.SEVERE, \"skipping: \" + pathname + \" (resource is invalid)\");\n\t\t\treturn;\n\t\t}\n\t\t// move to the first line in the file\n\t\tString line\t\t= rr.nextLine();\n\t\tint lineNumber\t= 0;\n\n\t\t// check that the file has data\n\t\tif (line == null) {\n\t\t\tlogger.log(Level.SEVERE, \"skipping: \" + pathname + \" (resource is empty)\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tlogger.info(\"importing: \" + filename);\n\t\t\n\t\tSuppDatum sd = new SuppDatum();\n\t\tint success = 0;\n\t\t\n\t\t// we are now at the first row of data. time to import!\n\t\tString[] valueArray = new String[lineLen2];\n\t\twhile (line != null) {\n\t\t\tlineNumber++;\n\t\t\t// Build up array of values in this line\n\t\t\t// First, we split it by quotes\n\t\t\tString[] quoteParts = line.split(\"'\", -1);\n\t\t\tif ( quoteParts.length % 2 != 1 ) {\n\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \", mismatched quotes\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// Next, walk through those parts, splitting those outside of matching quotes by comma\n\t\t\tint valueArrayLength = 0;\n\t\t\tboolean ok = true;\n\t\t\tfor ( int j=0; ok && j<quoteParts.length; j+=2 ) {\n\t\t\t\tString[] parts = quoteParts[j].split(\",\", -1);\n\t\t\t\tint k, k1 = 1, k2 = parts.length-1;\n\t\t\t\tboolean middle = true;\n\t\t\t\tif ( j==0 ) { // section before first quote\n\t\t\t\t\tmiddle = false;\n\t\t\t\t\tif ( parts.length > 1 && parts[0].trim().length() == 0 ) {\n\t\t\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \", leading comma\");\n\t\t\t\t\t\tok = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tk1 --;\n\t\t\t\t} \n\t\t\t\tif ( j==quoteParts.length-1 ) { // section after last quote\n\t\t\t\t\tmiddle = false;\n\t\t\t\t\tif ( parts.length > 1 && parts[parts.length-1].trim().length() == 0 ) {\n\t\t\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \", trailing comma\");\n\t\t\t\t\t\tok = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tk2++;\n\t\t\t\t}\n\t\t\t\tif ( middle ) {\n\t\t\t\t\tif ( parts.length == 1 ){\n\t\t\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \", missing comma between quotes\");\n\t\t\t\t\t\tok = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif ( parts[0].trim().length()!=0 ) {\n\t\t\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \", missing comma after a quote\");\n\t\t\t\t\t\tok = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif ( parts[parts.length-1].trim().length()!=0 ) {\n\t\t\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \", missing comma before a quote\");\n\t\t\t\t\t\tok = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor ( k=k1; ok && k<k2; k++ ) {\n\t\t\t\t\tif ( valueArrayLength == lineLen2 ) {\n\t\t\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \", too many elements\");\n\t\t\t\t\t\tok = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tvalueArray[valueArrayLength++] = parts[k];\n\t\t\t\t}\n\t\t\t\tif ( j+1 < quoteParts.length ) {\n\t\t\t\t\tif ( valueArrayLength == lineLen2 ) {\n\t\t\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \", too many elements\");\n\t\t\t\t\t\tok = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tvalueArray[valueArrayLength++] = quoteParts[j+1];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Line has been parsed; get next one\n\t\t\tline\t= rr.nextLine();\n\t\t\tif ( !ok )\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\t// Validate & unmap arguments\n\t\t\tif ( valueArrayLength < lineLen1 ) {\n\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \", too few elements (\" + valueArrayLength + \")\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tsd.cid = channelMap.get( valueArray[3].trim() );\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \n\t\t\t\t\t\", unknown channel: '\" + valueArray[3] + \"'\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tsd.st = Double.parseDouble( valueArray[1].trim() );\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \n\t\t\t\t\t\", invalid start time: '\" + valueArray[1] + \"'\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tString et = valueArray[2].trim();\n\t\t\t\tif ( et.length() == 0 )\n\t\t\t\t\tsd.et = Double.MAX_VALUE;\n\t\t\t\telse\n\t\t\t\t\tsd.et = Double.parseDouble( et );\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \n\t\t\t\t\t\", invalid end time: '\" + valueArray[2] + \"'\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tsd.typeName = valueArray[4].trim();\n\t\t\t\tInteger tid = sdtypeMap.get( sd.typeName );\n\t\t\t\tif ( tid == null ) {\n\t\t\t\t\tsd.color = \"000000\";\n\t\t\t\t\tsd.dl = 1;\n\t\t\t\t\tsd.tid = -1;\n\t\t\t\t} else\n\t\t\t\t\tsd.tid = tid;\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \n\t\t\t\t\t\", couldn't create type: '\" + valueArray[4] + \"'\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ( ds != null ) {\n\t\t\t\tif ( valueArrayLength > lineLen1 ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsd.colid = columnMap.get( valueArray[7].trim() );\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \n\t\t\t\t\t\t\t\", unknown column: '\" + valueArray[7] + \"'\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif ( valueArrayLength < lineLen2 ) {\n\t\t\t\t\t\tsd.rid = defaultRank;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsd.rid = rankMap.get( valueArray[8].trim() );\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \n\t\t\t\t\t\t\t\t\", unknown rank: '\" + valueArray[8] + \"'\");\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsd.colid = -1;\n\t\t\t\t\tsd.rid = -1;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsd.colid = -1;\n\t\t\t\tsd.rid = -1;\n\t\t\t}\n\t\t\tsd.name = valueArray[5].trim();\n\t\t\tsd.value = valueArray[6].trim();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsd.sdid = Integer.parseInt( valueArray[0] );\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \n\t\t\t\t\t\", unknown id: '\" + valueArray[0] + \"'\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Finally, insert/update the data\n\t\t\ttry {\n\t\t\t\tif ( ds != null ) {\n\t\t\t\t\tif ( sd.tid == -1 ) {\n\t\t\t\t\t\tsd.tid = ds.insertSuppDataType( sd );\n\t\t\t\t\t\tif ( sd.tid == 0 ) {\n\t\t\t\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \n\t\t\t\t\t\t\t\t\", problem inserting datatype\" );\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsdtypeMap.put( sd.typeName, sd.tid );\n\t\t\t\t\t\tlogger.info(\"Added supplemental datatype \" + sd.typeName );\n\t\t\t\t\t}\n\t\t\t\t\tint read_sdid = sd.sdid;\n\t\t\t\t\tif ( sd.sdid == 0 ) {\n\t\t\t\t\t\tsd.sdid = ds.insertSuppDatum( sd );\n\t\t\t\t\t} else\n\t\t\t\t\t\tsd.sdid = ds.updateSuppDatum( sd );\n\t\t\t\t\tif ( sd.sdid < 0 ) {\n\t\t\t\t\t\tsd.sdid = -sd.sdid;\n\t\t\t\t\t\tlogger.info(\"For import of line \" + lineNumber + \n\t\t\t\t\t\t\", supp data record already exists as SDID \" + sd.sdid +\n\t\t\t\t\t\t\"; will create xref record\");\n\t\t\t\t\t} else if ( sd.sdid==0 ) {\n\t\t\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \n\t\t\t\t\t\t\t\", problem \" + (read_sdid==0 ? \"insert\" : \"updat\") + \"ing supp data\" );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if ( read_sdid == 0 )\n\t\t\t\t\t\tlogger.info(\"Added supp data record SDID \" + sd.sdid);\n\t\t\t\t\telse\n\t\t\t\t\t\tlogger.info(\"Updated supp data record SDID \" + sd.sdid);\n\t\t\t\t\tif ( !ds.insertSuppDatumXref( sd ) )\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse\n\t\t\t\t\t\tlogger.info( \"Added xref for SDID \" + sd.sdid );\n\t\t\t\t} else {\n\t\t\t\t\tif ( sd.tid == -1 ) {\n\t\t\t\t\t\tsd.tid = vds.insertSuppDataType( sd );\n\t\t\t\t\t\tif ( sd.tid == 0 ) {\n\t\t\t\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \n\t\t\t\t\t\t\t\t\", problem inserting datatype\" );\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsdtypeMap.put( sd.typeName, sd.tid );\n\t\t\t\t\t\tlogger.info(\"Added supplemental datatype \" + sd.typeName );\n\t\t\t\t\t}\n\t\t\t\t\tint read_sdid = sd.sdid;\n\t\t\t\t\tif ( sd.sdid == 0 )\n\t\t\t\t\t\tsd.sdid = vds.insertSuppDatum( sd );\n\t\t\t\t\telse\n\t\t\t\t\t\tsd.sdid = vds.updateSuppDatum( sd );\n\t\t\t\t\tif ( sd.sdid < 0 ) {\n\t\t\t\t\t\tsd.sdid = -sd.sdid;\n\t\t\t\t\t\tlogger.info(\"For import of line \" + lineNumber + \n\t\t\t\t\t\t\", supp data record already exists as SDID \" + sd.sdid +\n\t\t\t\t\t\t\"; will create xref record\");\n\t\t\t\t\t} else if ( sd.sdid==0 ) {\n\t\t\t\t\t\tlogger.warning(\"Aborting import of line \" + lineNumber + \n\t\t\t\t\t\t\t\", problem \" + (read_sdid==0 ? \"insert\" : \"updat\") + \"ing supp data\" );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if ( read_sdid == 0 )\n\t\t\t\t\t\tlogger.info(\"Added supp data record SDID \" + sd.sdid);\n\t\t\t\t\telse\n\t\t\t\t\t\tlogger.info(\"Updated supp data record SDID \" + sd.sdid);\n\t\t\t\t\tif ( !vds.insertSuppDatumXref( sd ) )\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse\n\t\t\t\t\t\tlogger.info( \"Added xref for SDID \" + sd.sdid );\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.warning(\"Failed import of line \" + lineNumber + \", db failure: \" + e);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsuccess++;\n\t\t}\n\t\tlogger.info(\"\" + success + \" of \" + lineNumber + \" lines successfully processed\");\n\t}",
"public Phonetics(ArrayList<String> fileNames, ArrayList<String> inputNames) {\n\t\t// User inputs names\n\t\tinsertNames(fileNames);\n\t\tfor (int i = 0; i < inputNames.size(); i++) {\n\t\t\tString name = (inputNames.get(i));\n\t\t\tgetSimilarNames(name);\n\t\t}\n\t}",
"public WordNet(String synsets, String hypernyms) {\n\n\t\tString[] vw;\n\t\tInteger synset = 0;\n\n\t\t// step1: build noun TreeSet\n\t\tIn br = new In(synsets);\n\t\tif (!br.hasNextLine())\n\t\t\tthrow new IllegalArgumentException();\n\n\t\tdo {\n\t\t\tString line = br.readLine();\n\t\t\tsize++;\n\t\t\tvw = line.split(\",\");\n\t\t\tsynset = new Integer(vw[0]);\n\t\t\t// save the set\n\t\t\tsets.put(Integer.parseInt(vw[0]), vw[1]);\n\t\t\t// save the nouns\n\t\t\tvw = vw[1].split(\" \");\n\t\t\n\t\t\tfor (String noun: vw) {\n\t\t\t\tif (nouns.containsKey(noun))\n\t\t\t\t\tnouns.get(noun).add(synset);\n\t\t\t\telse {\n\t\t\t\t\tArrayList<Integer> al = new ArrayList<Integer>();\n\t\t\t\t\tal.add(synset);\n\t\t\t\t\tnouns.put(noun, al);\n\t\t\t\t}\n\t\t\t}\n\t\t} while (br.hasNextLine());\n\t\tbr.close();\n\n\t\t// step2: build graph\n\t\tbr = new In(hypernyms);\n\t\tDigraph dg = new Digraph(size);\n\t\tdo {\n\t\t\tString line = br.readLine();\n\t\t\tvw = line.split(\",\");\n\t\t\tfor (int i = 1; i < vw.length; i++)\n\t\t\t\tdg.addEdge(Integer.parseInt(vw[0].trim()),\n\t\t\t\t\t\tInteger.parseInt(vw[i].trim()));\n\n\t\t}while (br.hasNextLine());\n\t\t\t\n\t\tbr.close();\n\t\tDirectedCycle dc = new DirectedCycle(dg);\n\t\tif (dc.hasCycle())\n\t\t\tthrow new IllegalArgumentException();\n\n\t\tcheck(dg);\n\t\tsap = new SAP(dg);\n\n\t}",
"public WordNet(String synsets, String hypernyms) {\n if (synsets == null || hypernyms == null) {\n throw new IllegalArgumentException(\"synsets and hypernyms can't be empty\");\n }\n int lineCount = 0;\n In inputFile = new In(synsets);\n while (inputFile.hasNextLine()) {\n String aLine = inputFile.readLine();\n String[] splitArr = aLine.split(\",\");\n int synID = Integer.parseInt(splitArr[0]);\n String[] nounSyn = splitArr[1].split(\" \");\n nouns.put(synID, nounSyn);\n for (String word : nounSyn) {\n LinkedList<Integer> nounList = synsetList.get(word);\n if (nounList == null) {\n nounList = new LinkedList<Integer>();\n }\n nounList.add(synID);\n synsetList.put(word, nounList);\n\n }\n lineCount += 1;\n\n }\n inputFile.close();\n aDigraph = new Digraph(lineCount);\n In hyperInput = new In(hypernyms);\n while (hyperInput.hasNextLine()) {\n String aLine = hyperInput.readLine();\n String[] splitArr = aLine.split(\",\");\n int synID = Integer.parseInt(splitArr[0]);\n for (int i = 1; i < splitArr.length; i++) {\n aDigraph.addEdge(synID, Integer.parseInt(splitArr[i]));\n }\n }\n hyperInput.close();\n shortestCA = new ShortestCommonAncestor(aDigraph);\n\n\n }",
"@Override\n public HashMap initFileSet()\n {\n return null;\n }",
"DatasetFileService getSource();",
"public static void main(String[] args) throws IOException {\n String last = \"\";\n HashSet<String> types = new HashSet<String>();\n\n int c = 0;\n try {\n FileReader fr = new FileReader(inDir + \"fr\" + \"/wkd_uris_selection\");\n BufferedReader br = new BufferedReader(fr);\n String line;\n while ((line = br.readLine()) != null) {\n addToFile(line);\n c++;\n //if(c > 100) break;\n }\n\n fw.close();\n br.close();\n } catch (FileNotFoundException fne) {// TODO\n fne.printStackTrace();\n } catch (IOException ioe) {// TODO\n ioe.printStackTrace();\n }\n\n }",
"private static String chooseFiles(File[] listOfFiles,\n\t\t\tMap<Integer, String> availableLinkedDatasources,\n\t\t\tString extensionLower, String extensionUpper) {\n\t\tString files;\n\t\ttry {\n\t\t\tfor (int i = 0; i < listOfFiles.length; i++) {\n\t\t\t\tif (listOfFiles[i].isFile()) {\n\t\t\t\t\tfiles = listOfFiles[i].getName();\n\t\t\t\t\t//if (files.endsWith(extensionUpper) || files.endsWith(extensionUpper)) {\n\t\t\t\t\t\tavailableLinkedDatasources.put(i, files);\n\t\t\t\t\t//}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (NullPointerException npe) {\n\t\t\tSystem.err.println(\"No linked data available\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint i=0;\n\t\tfor(String s:availableLinkedDatasources.values()){\n\t\t\tSystem.out.println(\"[\"+ i +\"] \"+s);\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner in = new Scanner(System.in);\n\t\tint result = in.nextInt();\n\t\treturn availableLinkedDatasources.get(result);\n\t}",
"public static void main(String argv[])\n\tthrows FileNotFoundException, IOException {\n\n\tif (argv.length < 1) {\n\t System.err.println(\"argument: filestem\");\n\t return;\n\t}\n\n\tString filestem = argv[0];\n\n\t//DataSet d = new BinaryDataSet(filestem);\n\tDataSet d = new DataSet(filestem);\n\tClassifier c = new AdaBoostClassifier(d);\n\t\n\td.printTestPredictions(c, filestem);\n }",
"public void GenSetAnnotationONE(List<String> symb, String semsim, String ontology, String HCL,String exportfolder,String Rfile) throws Exception {\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\n\t\tDate date = new Date();\n\t\tString workspace = exportfolder+\"GSAn_\"+dateFormat.format(date)+\"/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdirs();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"\";\n\t\t\tfor( String s: this.go.subontology.keySet()) {\n\t\t\t\tif(go.allStringtoInfoTerm.get(s).name.equals(ontology)) {\n\t\t\t\t\tsub= s;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace;\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\twriteSimilarityMatrix M = new writeSimilarityMatrix(semsim);\n\t\t\t\t\n\t\t\t\tMap<String, Object> ss = M.similarityMethod(go, listTerm, ic);\n\t\t\t\tString[] tn = (String[]) ss.get(\"names\");\n\t\t\t\tDouble[][] tab = (Double[][]) ss.get(\"table\");\n\t\t\t\t\n\t\t\t\tFile f = new File( export+\"/SemanticMatrix/\");\n\t\t\t\tif(!f.exists()) {\n\t\t\t\t\tf.mkdirs();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tWrite.exportcsvONE(tn, tab, export+\"/SemanticMatrix/\"+semsim+\".csv\");\n\t\t\t\t\t\t\n\n\t\t\t\t//String[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetricONE( ic,sub,semsim, HCL, new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin,Rfile);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}",
"private static void writeToFile(List<Tuple2<String, byte[]>> inputListOfFiles, String basePath) throws IOException {\n\n\t\tbasePath = basePath+\"/structures\";\n\t\tfor(Tuple2<String, byte[]> v1: inputListOfFiles){\n\t\t\t// Get the key value pairs\n\t\t\tString pdbCode = v1._1.toLowerCase();\n\t\t\tbyte[] byteArr = v1._2;\n\t\t\t// Make the new dir \n\t\t\tFile theDir = new File(basePath+\"/\"+pdbCode.substring(1, 3));\n\t\t\tif(theDir.exists() == false){\n\t\t\t\ttheDir.mkdirs();\n\t\t\t}\n\t\t\t// Write the file\t\n\t\t\tFileOutputStream fos = null;\n\t\t\t// Try and except\n\t\t\ttry{\n\t\t\t\tfos = new FileOutputStream(basePath+\"/\"+pdbCode.substring(1, 3)+\"/\"+pdbCode);\n\t\t\t\tfos.write(byteArr);\n\t\t\t}\n\t\t\tfinally{\n\t\t\t\tfos.close();\n\t\t\t}\n\t\t}\n\t}",
"public InputSystemTests() throws URISyntaxException {\n URI uri = ClassLoader.getSystemResource(txtTestFilenameList.get(0)).toURI();\n databaseInstance.setTaxpayersInfoFilesPath(Paths.get(uri).getParent().toString());\n }",
"void setInputFile(String genoFile, String phenoFile) {\n this.genoFile = genoFile;\n this.phenoFile = phenoFile;\n this.genoHtmlName = Util.stripFileExtension(genoFile) + \"_sum_\" + new SimpleDateFormat(\"hhmmss\").format(new Date()) + \".htm\";\n this.genoSummaryCsvName = PathConstants.summaryFilesMap.get(genoFile);\n this.phenoHtmlName = Util.stripFileExtension(phenoFile) + \"_sum_\" + new SimpleDateFormat(\"hhmmss\").format(new Date()) + \".htm\";\n }",
"void read() {\n try {\n pre_list = new ArrayList<>();\n suf_list = new ArrayList<>();\n p_name = new ArrayList<>();\n stem_word = new ArrayList<>();\n\n //reading place and town name\n for (File places : place_name.listFiles()) {\n fin = new FileInputStream(places);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n place.add(temp);\n }\n\n }\n\n //reading month name\n for (File mont : month_name.listFiles()) {\n fin = new FileInputStream(mont);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n month.add(temp);\n }\n }\n\n //reading compound words first\n for (File comp_word : com_word_first.listFiles()) {\n fin = new FileInputStream(comp_word);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n comp_first.add(temp);\n }\n }\n //reading next word of the compound\n for (File comp_word_next : com_word_next.listFiles()) {\n fin = new FileInputStream(comp_word_next);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n comp_next.add(temp);\n }\n }\n //reading chi square feature\n for (File entry : chifile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n chiunion.add(temp);\n }\n newunions.clear();\n newunions.addAll(chiunion);\n chiunion.clear();\n chiunion.addAll(newunions);\n chiunion.removeAll(stop_word_list);\n chiunion.removeAll(p_name);\n chiunion.removeAll(month);\n chiunion.removeAll(place);\n }\n //reading short form from abbrivation \n for (File short_list : abbrivation_short.listFiles()) {\n fin = new FileInputStream(short_list);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n shortform.add(temp);\n }\n }\n //reading long form from the abrivation \n for (File long_list : abbrivation_long.listFiles()) {\n fin = new FileInputStream(long_list);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n longform.add(temp);\n }\n }\n //reading file from stop word\n for (File stoplist : stop_word.listFiles()) {\n fin = new FileInputStream(stoplist);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n stop_word_list.add(temp);\n }\n }\n\n //reading person name list\n for (File per_name : person_name.listFiles()) {\n fin = new FileInputStream(per_name);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n p_name.add(temp);\n }\n }\n\n //reading intersection union\n for (File entry : interfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n interunion.add(temp);\n }\n }\n newunions.clear();\n newunions.addAll(interunion);\n interunion.clear();\n interunion.addAll(newunions);\n interunion.removeAll(stop_word_list);\n interunion.removeAll(p_name);\n interunion.removeAll(month);\n interunion.removeAll(place);\n }\n // reading ig union\n for (File entry : igfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n igunion.add(temp);\n }\n }\n for (String str : igunion) {\n int index = igunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n igunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(igunion);\n igunion.clear();\n igunion.addAll(newunions);\n igunion.removeAll(stop_word_list);\n igunion.removeAll(p_name);\n igunion.removeAll(month);\n igunion.removeAll(place);\n }\n //read df uinfion\n for (File entry : dffile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n dfunion.add(temp);\n }\n }\n for (String str : dfunion) {\n int index = dfunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n dfunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(dfunion);\n dfunion.clear();\n dfunion.addAll(newunions);\n dfunion.removeAll(stop_word_list);\n dfunion.removeAll(p_name);\n dfunion.removeAll(month);\n dfunion.removeAll(place);\n }\n //reading unified model\n for (File entry : unionall_3.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n union_3.add(temp);\n }\n }\n for (String str : union_3) {\n int index = union_3.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n union_3.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(union_3);\n union_3.clear();\n union_3.addAll(newunions);\n union_3.removeAll(stop_word_list);\n union_3.removeAll(p_name);\n union_3.removeAll(month);\n union_3.removeAll(place);\n }\n //unified feature for the new model\n for (File entry : unified.listFiles()) {\n\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n newunion.add(temp);\n\n }\n for (String str : newunion) {\n int index = newunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n newunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(newunion);\n newunion.clear();\n newunion.addAll(newunions);\n newunion.removeAll(stop_word_list);\n newunion.removeAll(p_name);\n newunion.removeAll(month);\n newunion.removeAll(place);\n\n // newunion.addAll(newunions);\n }\n // reading test file and predict the class\n for (File entry : test_doc.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n file_test.add(temp);\n\n }\n newunions.clear();\n newunions.addAll(file_test);\n file_test.clear();\n file_test.addAll(newunions);\n file_test.removeAll(stop_word_list);\n file_test.removeAll(p_name);\n file_test.removeAll(month);\n file_test.removeAll(place);\n }\n //reading the whole document under economy class\n for (File entry : economy.listFiles()) {\n fill = new File(economy + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n economydocument[count1] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n economydocument[count1].add(temp);\n if (temp.length() < 2) {\n economydocument[count1].remove(temp);\n }\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n economydocument[count1].remove(temp);\n }\n }\n for (String str : economydocument[count1]) {\n int index = economydocument[count1].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n economydocument[count1].set(index, stem_word.get(i));\n }\n }\n }\n }\n economydocument[count1].removeAll(stop_word_list);\n economydocument[count1].removeAll(p_name);\n economydocument[count1].removeAll(month);\n economydocument[count1].removeAll(place);\n allecofeature.addAll(economydocument[count1]);\n ecofeature.addAll(economydocument[count1]);\n allfeature.addAll(ecofeature);\n all.addAll(allecofeature);\n count1++;\n\n }\n //reading the whole documents under education category \n for (File entry : education.listFiles()) {\n fill = new File(education + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n educationdocument[count2] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n educationdocument[count2].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n educationdocument[count2].remove(temp);\n }\n }\n }\n\n for (String str : educationdocument[count2]) {\n int index = educationdocument[count2].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n educationdocument[count2].set(index, stem_word.get(i));\n }\n }\n }\n educationdocument[count2].removeAll(stop_word_list);\n educationdocument[count2].removeAll(p_name);\n educationdocument[count2].removeAll(month);\n educationdocument[count2].removeAll(place);\n alledufeature.addAll(educationdocument[count2]);\n edufeature.addAll(educationdocument[count2]);\n allfeature.addAll(edufeature);\n all.addAll(alledufeature);\n count2++;\n }\n// //reading all the documents under sport category\n for (File entry : sport.listFiles()) {\n fill = new File(sport + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n sportdocument[count3] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n sportdocument[count3].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n sportdocument[count3].remove(temp);\n }\n }\n }\n\n for (String str : sportdocument[count3]) {\n int index = sportdocument[count3].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n sportdocument[count3].set(index, stem_word.get(i));\n }\n }\n }\n sportdocument[count3].removeAll(stop_word_list);\n sportdocument[count3].removeAll(p_name);\n sportdocument[count3].removeAll(month);\n sportdocument[count3].removeAll(place);\n allspofeature.addAll(sportdocument[count3]);\n spofeature.addAll(sportdocument[count3]);\n allfeature.addAll(spofeature);\n all.addAll(allspofeature);\n count3++;\n }\n\n// //reading all the documents under culture category\n for (File entry : culture.listFiles()) {\n fill = new File(culture + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n culturedocument[count4] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n\n culturedocument[count4].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n culturedocument[count4].remove(temp);\n }\n }\n\n }\n for (String str : culturedocument[count4]) {\n int index = culturedocument[count4].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n culturedocument[count4].set(index, stem_word.get(i));\n }\n }\n }\n culturedocument[count4].removeAll(stop_word_list);\n culturedocument[count4].removeAll(p_name);\n culturedocument[count4].removeAll(month);\n culturedocument[count4].removeAll(place);\n allculfeature.addAll(culturedocument[count4]);\n culfeature.addAll(culturedocument[count4]);\n allfeature.addAll(culfeature);\n all.addAll(allculfeature);\n count4++;\n\n }\n\n// //reading all the documents under accident category\n for (File entry : accident.listFiles()) {\n fill = new File(accident + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n accedentdocument[count5] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n accedentdocument[count5].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n accedentdocument[count5].remove(temp);\n }\n }\n\n }\n\n for (String str : accedentdocument[count5]) {\n int index = accedentdocument[count5].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n accedentdocument[count5].set(index, stem_word.get(i));\n }\n }\n }\n accedentdocument[count5].removeAll(stop_word_list);\n accedentdocument[count5].removeAll(p_name);\n accedentdocument[count5].removeAll(month);\n accedentdocument[count5].removeAll(place);\n allaccfeature.addAll(accedentdocument[count5]);\n accfeature.addAll(accedentdocument[count5]);\n allfeature.addAll(accfeature);\n all.addAll(allaccfeature);\n count5++;\n }\n\n// //reading all the documents under environmental category\n for (File entry : environmntal.listFiles()) {\n fill = new File(environmntal + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n environmntaldocument[count6] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n environmntaldocument[count6].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n environmntaldocument[count6].remove(temp);\n }\n }\n }\n\n for (String str : environmntaldocument[count6]) {\n int index = environmntaldocument[count6].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n environmntaldocument[count6].set(index, stem_word.get(i));\n }\n }\n }\n environmntaldocument[count6].removeAll(stop_word_list);\n environmntaldocument[count6].removeAll(p_name);\n environmntaldocument[count6].removeAll(month);\n environmntaldocument[count6].removeAll(place);\n allenvfeature.addAll(environmntaldocument[count6]);\n envfeature.addAll(environmntaldocument[count6]);\n allfeature.addAll(envfeature);\n all.addAll(allenvfeature);\n count6++;\n }\n\n// //reading all the documents under foreign affairs category\n for (File entry : foreign_affair.listFiles()) {\n fill = new File(foreign_affair + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n foreign_affairdocument[count7] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n foreign_affairdocument[count7].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n foreign_affairdocument[count7].remove(temp);\n }\n }\n\n }\n for (String str : foreign_affairdocument[count7]) {\n int index = foreign_affairdocument[count7].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n foreign_affairdocument[count7].set(index, stem_word.get(i));\n }\n }\n }\n foreign_affairdocument[count7].removeAll(stop_word_list);\n foreign_affairdocument[count7].removeAll(p_name);\n foreign_affairdocument[count7].removeAll(month);\n foreign_affairdocument[count7].removeAll(place);\n alldepfeature.addAll(foreign_affairdocument[count7]);\n depfeature.addAll(foreign_affairdocument[count7]);\n allfeature.addAll(depfeature);\n all.addAll(alldepfeature);\n count7++;\n }\n\n// //reading all the documents under law and justices category\n for (File entry : law_justice.listFiles()) {\n fill = new File(law_justice + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n law_justicedocument[count8] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n law_justicedocument[count8].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n law_justicedocument[count8].remove(temp);\n }\n }\n\n }\n for (String str : law_justicedocument[count8]) {\n int index = law_justicedocument[count8].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n law_justicedocument[count8].set(index, stem_word.get(i));\n }\n }\n }\n law_justicedocument[count8].removeAll(stop_word_list);\n law_justicedocument[count8].removeAll(p_name);\n law_justicedocument[count8].removeAll(month);\n law_justicedocument[count8].removeAll(month);\n alllawfeature.addAll(law_justicedocument[count8]);\n lawfeature.addAll(law_justicedocument[count8]);\n allfeature.addAll(lawfeature);\n all.addAll(alllawfeature);\n count8++;\n }\n\n// //reading all the documents under other category\n for (File entry : agri.listFiles()) {\n fill = new File(agri + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n agriculture[count9] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n agriculture[count9].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n agriculture[count9].remove(temp);\n }\n }\n\n }\n for (String str : agriculture[count9]) {\n int index = agriculture[count9].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n agriculture[count9].set(index, stem_word.get(i));\n }\n }\n }\n agriculture[count9].removeAll(stop_word_list);\n agriculture[count9].removeAll(p_name);\n agriculture[count9].removeAll(month);\n agriculture[count9].removeAll(place);\n allagrifeature.addAll(agriculture[count9]);\n agrifeature.addAll(agriculture[count9]);\n allfeature.addAll(agrifeature);\n all.addAll(allagrifeature);\n count9++;\n }\n //reading all the documents under politics category\n for (File entry : politics.listFiles()) {\n fill = new File(politics + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n politicsdocument[count10] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n politicsdocument[count10].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n politicsdocument[count10].remove(temp);\n }\n }\n }\n for (String str : politicsdocument[count10]) {\n int index = politicsdocument[count10].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n politicsdocument[count10].set(index, stem_word.get(i));\n }\n }\n }\n politicsdocument[count10].removeAll(stop_word_list);\n politicsdocument[count10].removeAll(p_name);\n politicsdocument[count10].removeAll(month);\n politicsdocument[count10].removeAll(place);\n allpolfeature.addAll(politicsdocument[count10]);\n polfeature.addAll(politicsdocument[count10]);\n allfeature.addAll(polfeature);\n all.addAll(allpolfeature);\n count10++;\n }\n //reading all the documents under science and technology category\n for (File entry : science_technology.listFiles()) {\n fill = new File(science_technology + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n science_technologydocument[count12] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n science_technologydocument[count12].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n science_technologydocument[count12].remove(temp);\n }\n }\n\n }\n for (String str : science_technologydocument[count12]) {\n int index = science_technologydocument[count12].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n science_technologydocument[count12].set(index, stem_word.get(i));\n }\n }\n }\n science_technologydocument[count12].removeAll(stop_word_list);\n science_technologydocument[count12].removeAll(p_name);\n science_technologydocument[count12].removeAll(month);\n science_technologydocument[count12].removeAll(place);\n allscifeature.addAll(science_technologydocument[count12]);\n scifeature.addAll(science_technologydocument[count12]);\n allfeature.addAll(scifeature);\n all.addAll(allscifeature);\n count12++;\n\n }\n\n //reading all the documents under health category\n for (File entry : health.listFiles()) {\n fill = new File(health + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n healthdocument[count13] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n healthdocument[count13].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n healthdocument[count13].remove(temp);\n }\n }\n }\n for (String str : healthdocument[count13]) {\n int index = healthdocument[count13].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n healthdocument[count13].set(index, stem_word.get(i));\n }\n }\n }\n healthdocument[count13].removeAll(stop_word_list);\n healthdocument[count13].removeAll(p_name);\n healthdocument[count13].removeAll(month);\n healthdocument[count13].removeAll(place);\n allhelfeature.addAll(healthdocument[count13]);\n helfeature.addAll(healthdocument[count13]);\n allfeature.addAll(helfeature);\n all.addAll(allhelfeature);\n count13++;\n }\n\n //reading all the file of relgion categories \n for (File entry : army_file.listFiles()) {\n fill = new File(army_file + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n army[count14] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n army[count14].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n army[count14].remove(temp);\n }\n }\n\n }\n for (String str : army[count14]) {\n int index = army[count14].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n army[count14].set(index, stem_word.get(i));\n }\n }\n }\n army[count14].removeAll(stop_word_list);\n army[count14].removeAll(p_name);\n army[count14].removeAll(month);\n army[count14].removeAll(place);\n allarmfeature.addAll(army[count14]);\n armfeature.addAll(army[count14]);\n allfeature.addAll(armfeature);\n all.addAll(allarmfeature);\n count14++;\n }\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n }",
"Map<String,DataSource> load(Set<String> existsDataSourceNames) throws Exception;",
"public MergeSummitFiles(String[] filenames) {\n\n // open output file\n SummitFileWriter out = new SummitFileWriter(filenames[0]);\n \n // create vector of input files\n Vector infiles = new Vector();\n for (int i=1; i<filenames.length; ++i)\n infiles.add(new SummitFileReader(filenames[i]));\n \n // set up headers\n processHeaders(infiles, out);\n \n // loop on the data records\n processRecords(infiles, out);\n \n\t\t// Files will close automatically when program exits.\n\t\t// Can't close them in code because SummitFileWriter doesn't have\n\t\t// a close-file method.\n\t}",
"public void putFile(Connection conn, File cond) throws Exception{\n\t//System.out.println(cond);\n\t//Check for LFN\n\tString LFN = cond.getLogicalFileName ( );\n\tif(LFN == null || LFN==\"\") throw new DBSException(\"Input Data Error\", \"LogicalFileName is expected.\");\n\t//Check is_file_valid\n\tint fileValid = cond.getIsFileValid( );\n if(fileValid == -1) throw new DBSException(\"Input Data Error\", \"Validation of File is expected.\");\n\t//Check if Datset already in db\n\tDataset ds = cond.getDatasetDO();\n\t//System.out.println(ds);\n\tif(ds == null)throw new DBSException(\"Input Data Error\", \"Dataset is expected.\");\n\tif(ds.getDatasetID( ) == 0){\n\t String dsName = ds.getDataset();\n\t if((dsName == null) || (dsName==\"\"))throw new DBSException(\"Input Data Error\", \"Dataset name is missing\");\n\t JSONArray dss = (new DatasetQO()).listDatasets(conn, ds);\n\t if(dss.length() != 1)\n\t\tthrow new DBSException(\"Input Data Error\", \"dataset name :\" + dsName \n\t\t+\" is not found or more than one found in the db.\");\n\t else{ \n\t\tds.setDatasetID(((Dataset)dss.getJSONObject(0)).getDatasetID());\n\t\t//ds.setDataset(((Dataset)dss.getJSONObject(0)).getDataset());\n\t }\n\t}\n //System.out.println(cond);\n\tBlock bk = cond.getBlockDO();\n\tif(bk == null) throw new DBSException(\"Input Data Error\", \"Block is expected.\");\n\tif(bk.getBlockID() == 0){\n\t String bkName = bk.getBlockName();\n\t if(bkName == null || bkName == \"\")throw new DBSException(\"Input Data Error\", \"Block name is missing\");\n\t JSONArray bks = (new BlockQO()).listBlocks(conn, bk);\n\t if(bks.length() != 1 )\n\t\tthrow new DBSException(\"Input Data Error\", \"More than one or no Blocks are found in the db with name: \"\n\t\t + bkName);\n\t else {\n\t\tbk.setBlockID(((Block)bks.getJSONObject(0)).getBlockID());\n\t\t//System.out.println(\"Block : \" + bk);\n\t }\n\t}\n\t//\n\t//System.out.println(\"Check for file_type\");\n\tFileType ft = cond.getFileTypeDO();\n if(ft == null)throw new DBSException(\"Input Data Error\", \"File type is expected.\");\n if(ft.getFileTypeID( ) == 0){\n String ftName = ft.getFileType();\n if((ftName == null) || (ftName == \"\"))throw new DBSException(\"Input Data Error\", \"File type is missing\");\n JSONArray fts = (new FileTypeQO()).listFileTypes(conn, ft);\n if(fts.length() != 1)\n throw new DBSException(\"Input Data Error\", \"File type :\" + ftName\n +\" is not found or more than one found in the db.\");\n else\n ft.setFileTypeID(((FileType)fts.getJSONObject(0)).getFileTypeID());\n }\n\t//System.out.println(\"File type: \" + ft);\n\t//check for Primary key\n\tint fileID = cond.getFileID ( );\n\tif(fileID == 0){\n\t try{\n\t\tfileID = SequenceManager.getSequence(conn, \"SEQ_FL\");\n\t\tcond. setFileID(fileID);\n\t }catch (SQLException ex) {\n\t\tthrow ex;\n\t }\n\t}\n\t//\n\t//System.out.println(\"Check for check-sum\");\n\tString cs = cond.getCheckSum();\n if(cs == null || cs == \"\")throw new DBSException(\"Input Data Error\", \"File check-sum is expected.\");\n\t//check for event_count\n\tif (cond.getEventCount() == -1) throw new DBSException(\"Input Data Error\", \"File event count is expected.\");\n\t//check for file size\n\tif(cond.getFileSize() == -1) throw new DBSException(\"Input Data Error\", \"File size is expected.\");\n\t//System.out.println(\"Check for creation_date and created_by. \\n\");\n\tlong createDate = cond.getCreationDate( );\n\tString createdBy = cond.getCreateBy( );\n\t//System.out.println(\"****File**** \" + cond);\n\tif(createDate == 0)cond.setCreationDate(DBSSrvcUtil.getEpoch());\n if(createdBy == null || createdBy==\"\")cond.setCreateBy(\"WeNeed2FindWhoDidIt\");\n\t \t\n\t//Now we are ready to insert into the dataset\n\t//System.out.println(\"Ready to insert file :\" + cond);\n\tinsertTable(conn, cond, \"FILES\");\n }",
"private static void initFileNames() {\n if (fileNames == null) {\n fileNames = new HashMap<>();\n }\n fileNames.put(\"Linked List (simple)\", \"MySimpleLinkedList\");\n fileNames.put(\"Linked List\", \"MyLinkedList\");\n fileNames.put(\"Stack\", \"MyStack\");\n fileNames.put(\"Queue\", \"MyArrayDeque\");\n fileNames.put(\"Graph\", \"MyGraph\");\n fileNames.put(\"HashTable\", \"MyHashTable\");\n fileNames.put(\"Linear Search\", \"Algorithms\");\n fileNames.put(\"Binary Search\", \"Algorithms\");\n fileNames.put(\"Bubble Sort\", \"Algorithms\");\n fileNames.put(\"Insertion Sort\", \"Algorithms\");\n fileNames.put(\"Selection Sort\", \"Algorithms\");\n fileNames.put(\"Shell Sort\", \"Algorithms\");\n fileNames.put(\"Merge Sort\", \"Algorithms\");\n fileNames.put(\"Merge Sort (in-place)\", \"Algorithms\");\n fileNames.put(\"Quick Sort\", \"Algorithms\");\n }",
"public void setSrcDatasetName(String srcDatasetName) {\r\n this.srcDatasetName = srcDatasetName;\r\n }",
"private static void loadFiles(String[] files) throws IOException {\n\t\tfor(String file : files){\n\n\t\t\t//Create reader for the file\n\t\t\tBufferedReader fileReader = new BufferedReader(new FileReader(file));\n\n\t\t\t//Create HashMap to store words and counts\n\t\t\tHashMap<String,WordCount> fileWordCounts = new HashMap<String,WordCount>();\n\t\t\tArrayList<String> sentences = new ArrayList<String>();\n\n\t\t\t//While the file still has more lines to be read from\n\t\t\twhile(fileReader.ready()){\n\n\t\t\t\t//Read a line from the file\n\t\t\t\tString fileLine = fileReader.readLine();\n\t\t\t\t//Add the line to file sentences\n\t\t\t\tsentences.add(fileLine);\n\t\t\t\t//Split the file and remove punctuation from words\n\t\t\t\tString[] fileWords = fileLine.replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase().split(\"\\\\s+\");\n\n\t\t\t\t//iterate through all words in each line\n\t\t\t\tfor (String word : fileWords)\n\t\t\t\t{\n\t\t\t\t\tWordCount count = fileWordCounts.get(word);\n\t\t\t\t\t//If word is not in file, add it \n\t\t\t\t\tif (count == null) {\n\t\t\t\t\t\tfileWordCounts.put(word,new WordCount(word));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcount.inc(); //If not, increment it\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t}\n\n\t\t\t//Add file to fileDatabase \n\t\t\tfileDatabase.map.put(file, new FileObject(file, fileWordCounts, sentences));\n\n\t\t\tfileReader.close(); // Close File\n\n\t\t}//End of For Loop reading from all files\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tString short_1_A_Path = args[0];\n\t\tString short_1_B_Path = args[1];\n\t\tString OutPutPath = args[2];\n\t\tString DataSetName = args[3];\n\t\ttry {\n\t\t\tint Num=0;\n\t\t\tString readtemp1=\"\";\n\t\t\tString readtemp2=\"\";\n\t\t\tint Short1_NumLeft=0;\n\t\t\tint Short1_NumRight=0;\n\t\t\tString encoding = \"utf-8\";\n\t\t\tFile file1 = new File(short_1_A_Path);\n\t\t\tFile file2 = new File(short_1_B_Path);\n\t\t\tif (file1.exists()&&file2.exists()) {\n\t\t\t\tInputStreamReader read1 = new InputStreamReader(new FileInputStream(file1), encoding);\n\t\t\t\tInputStreamReader read2 = new InputStreamReader(new FileInputStream(file2), encoding);\n\t\t\t\tBufferedReader bufferedReader1 = new BufferedReader(read1);\n\t\t\t\tBufferedReader bufferedReader2 = new BufferedReader(read2);\n\t\t\t\twhile ((bufferedReader1.readLine())!=null && (bufferedReader2.readLine())!= null)\n\t\t\t\t{\n\t\t\t\t\t//The second line.\n readtemp1=bufferedReader1.readLine();\n readtemp2=bufferedReader2.readLine();\t\t\t\t\t\t\n\t\t\t\t //Write left.\n\t\t\t\t\tFileWriter writer1 = new FileWriter(OutPutPath + DataSetName+\".left.fasta\",true);\n\t\t\t\t\twriter1.write(\">\"+(Short1_NumLeft++)+\"\\n\"+readtemp1+\"\\n\");\n\t\t\t\t\twriter1.close();\n\t\t\t\t\t//Write right.\t\n\t\t\t\t\tFileWriter writer2 = new FileWriter(OutPutPath + DataSetName+\".right.fasta\",true);\n\t\t\t\t\twriter2.write(\">\"+(Short1_NumRight++)+\"\\n\"+readtemp2+\"\\n\");\n\t\t\t\t\twriter2.close();\n\t\t\t\t\t//Write all.\t\n\t\t\t\t\tFileWriter writer3 = new FileWriter(OutPutPath + DataSetName+\".fasta\", true);\n\t\t\t\t\twriter3.write(\">\"+(Num)+\"\\n\"+readtemp1 +\"\\n\"+\">\"+(Num)+\"\\n\"+readtemp2+\"\\n\");\n\t\t\t\t\twriter3.close();\n\t\t\t\t\t//The third line.\n\t\t\t\t\tbufferedReader1.readLine();\n\t\t\t\t\tbufferedReader2.readLine();\n\t\t\t\t //The fourth line.\n\t\t\t\t\tbufferedReader1.readLine();\n\t\t\t\t\tbufferedReader2.readLine();\n\t\t\t\t}\n\t\t\t\tbufferedReader1.close();\n\t\t\t\tbufferedReader2.close();\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\tSystem.out.println(\"File is not exist!\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error liaoxingyu\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void readIn() throws FileNotFoundException{\n\t\tScanner sc;\n\t\tif (species.equals(\"Human\")){\n\t\t\tsc= new Scanner(PhenoGeneNetwork.class.getResourceAsStream(\"/GenePhenoEdgeList\"));\t\n\t\t}\t\t\n\t\telse{\n\t\t\tsc= new Scanner(PhenoGeneNetwork.class.getResourceAsStream(\"/GenePhenoEdgeListMouse\"));\t\n\t\t}\n\t\tnodeNameMap = new HashMap<String, CyNode>();\n\t\tproteinNameMap = new HashMap<String, CyNode>();\n\t\tphenotypeNameMap = new HashMap<String, CyNode>();\n\t\twhile (sc.hasNextLine()){\n\t\t\tString line = sc.nextLine();\n\t\t\tString [] nodes = line.split(\"\\t\");\n\t\t\tCyNode node1 = null;\n\t\t\tCyNode node2 = null;\n\t\t\t// for Node1\n\t\t\tif (nodeNameMap.containsKey(nodes[0])){\n\t\t\t\t\n\t\t\t\tnode1 = (CyNode) nodeNameMap.get(nodes[0]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tnode1 = network.addNode();\n\t\t\t\tCyRow attributes = network.getRow(node1);\n\t\t\t\tattributes.set(\"name\", nodes[0]);\n\t\t\t\tnodeNameMap.put(nodes[0], node1);\n\t\t\t\tphenotypeNameMap.put(nodes[0], node1);\t\t\t\t\n\t\t\t}\n\t\t\tif (nodeNameMap.containsKey(nodes[1])){\n\t\t\t\t\n\t\t\t\tnode2 = (CyNode) nodeNameMap.get(nodes[1]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tnode2 = network.addNode();\n\t\t\t\tCyRow attributes = network.getRow(node2);\n\t\t\t\tattributes.set(\"name\", nodes[1]);\n\t\t\t\tnodeNameMap.put(nodes[1], node2);\n\t\t\t\tproteinNameMap.put(nodes[1], node2);\n\t\t\t}\n\t\t\tif (!network.containsEdge(node1, node2)){\n\t\t\t\t\n\t\t\t\tCyEdge myEdge =network.addEdge(node1, node2, true);\n\t\t\t\tnetwork.getRow(myEdge).set(\"interaction\", \"phenotype\");\n\t\t\t\tnetwork.getRow(myEdge).set(\"name\", nodes[0]+ \" (phenotype) \" +nodes[1]);\n\t\t\t}\n\t\t\t\n\n\n\t\t}\n\n\t\tsc.close();\n\n\t}",
"String getSchemaFile();",
"public static void processOneYear(TreeSet<ebrpPublication> pubSet,\n String rootFileName, \n String outputDirectory, String inputDirectory,\n int year, String fieldname,\n int weightType,\n ElsevierPapersFilter ipf,\n boolean useTitle, boolean useKeywords,\n boolean extractGCC,\n int minDegreeIn, int minDegreeOut, double minWeight, \n int infoLevel){\n // now process titles into keywords\n //boolean showProcess=false;\n System.out.println(\"\\n--- now processing \"\n +(useTitle?\"titles\":\"\")\n +(useTitle&&useKeywords?\" and \":\"\")\n +(useKeywords?\"keywords\":\"\")+\" into keywords\");\n System.out.println(\"--- year \"+year);\n System.out.println(\"--- fieldname \"+fieldname);\n System.out.println(\"--- weight type \"+weightTypeDescription[weightType]);\n boolean showProcess=(infoLevel>1?true:false);\n TreeMap<String,String> stemMap = new TreeMap();\n// int minChar=2;\n// int minL=3;\n// boolean keepRejectList=true;\n// ElsevierPapersFilter ipf = new ElsevierPapersFilter(minChar, minL, \n// StopWords.MySQL_STOP_WORDS_EDITED, ElsevierStopStems.PHYSICS, keepRejectList);\n setUserKeywords(pubSet, stemMap, ipf, useTitle, useKeywords, showProcess);\n \n //String fileRootName=\"ebrp\";\n String sep=\"\\t\";\n String outputFileName = outputDirectory+rootFileName+\"_\"+year+\"_\"+fieldname+\"_\"+(useTitle?\"t\":\"\")+(useKeywords?\"k\":\"\")+\"_\"+ipf.abbreviation()+\"ptStemMap.dat\";\n TimUtilities.FileUtilities.FileOutput.FileOutputMap(outputFileName, sep, stemMap, true);\n outputFileName = outputDirectory+rootFileName+\"_\"+year+\"_\"+fieldname+\"_\"+(useTitle?\"t\":\"\")+(useKeywords?\"k\":\"\")+\"_\"+ipf.abbreviation()+\"ptRejectList.dat\";\n ipf.FileOutputRejectedList(outputFileName, showProcess);\n\n // now build network\n System.out.println(\"--- now building network \");\n \n stemMap.clear(); // no longer needed so free up memory\n timgraph tg=makePublicationKeywordGraph(pubSet, weightType);\n\n String subDir=\"\";\n String networkType=\"PT\"+(useTitle?\"t\":\"\")+(useKeywords?\"k\":\"\"); // P=Publication T=Term from title\n String fileRootName=rootFileName+\"_\"+year+\"_\"+fieldname+\"_\"+networkType+\"_\"+weightTypeShort[weightType];\n tg.inputName.setFileName(inputDirectory, subDir, fileRootName, \"\");\n tg.outputName.setFileName(outputDirectory, subDir, fileRootName, \"\");\n// public boolean degreeDistributionOn; // 1\n// public boolean distancesOn; // 2\n// public boolean clusteringOn; // 4\n// public boolean triangleSquareOn; // 8\n// public boolean componentsOn; // 16\n// public boolean rankingOn; // 32\n// public boolean structuralHolesOn; // 64\n// public boolean graphMLFileOn; // 128\n// public boolean pajekFileOn; // 256\n// public boolean adjacencyFileOn; // 512\n //1+2+16\n tg.outputControl.set(\"19\");\n BasicAnalysis.analyse(tg);\n \n// // create list of degree zero or one vertices\n// TreeMap<Integer,Integer> oldToNewVertexMap = new TreeMap();\n// int nextVertex=0;\n// for (int v=0; v<tg.getNumberVertices(); v++){\n// oldToNewVertexMap.put(v, (tg.getVertexDegree(v)<2)?-1:nextVertex++) ; // 0 partition to retain\n// }\n// System.out.println(\"--- keeping \"+\" vertices, eliminating \"+(tg.getNumberVertices()-nextVertex));\n// // use Projections routine which makes copy of tg with given list of vertices\n// timgraph rtg = Projections.eliminateVertexSet(tg, addToRoot, partition, numberPartitions, forceUndirected, makeUnweighted); \n \n \n // now find and produce GCC\n if (!extractGCC) {return;}\n timgraph gcc = GCC.extractGCC(tg);\n gcc.outputName.setDirectory(tg.outputName.getDirectoryFull());\n BasicAnalysis.analyse(gcc);\n \n // now simplify GCC\n if (minDegreeIn<=0 && minDegreeOut<=0 && minWeight<=0) {return;}\n boolean makeLabelled=gcc.isVertexLabelled();\n boolean makeWeighted=gcc.isWeighted();\n boolean makeVertexEdgeList=gcc.isVertexEdgeListOn();\n timgraph gccsimple = TimGraph.algorithms.Projections.minimumDegreeOrWeight(gcc, \n minDegreeIn, minDegreeOut, minWeight, \n makeLabelled, makeWeighted, makeVertexEdgeList);\n gccsimple.outputName.setDirectory(tg.outputName.getDirectoryFull());\n gccsimple.outputName.appendToNameRoot(\"MINkin\"+minDegreeIn+\"kin\"+minDegreeOut+\"w\"+String.format(\"%06.3f\", minWeight));\n BasicAnalysis.analyse(gccsimple); \n }",
"static void getMidWidNames() throws IOException {\n\t\tHashMap<String, String[]> mid2other = new HashMap<String, String[]>();\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_mid2wid);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tif (mid2other.containsKey(l[0])) {\r\n\t\t\t\t\tString[] s = mid2other.get(l[0]);\r\n\t\t\t\t\ts[1] = s[1] + \"::\" + l[1];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tString[] s = new String[5];\r\n\t\t\t\t\ts[0] = l[0] + \"\";\r\n\t\t\t\t\ts[1] = l[1] + \"\";\r\n\t\t\t\t\ts[2] = \"\";\r\n\t\t\t\t\ts[3] = \"\";\r\n\t\t\t\t\ts[4] = \"\";\r\n\t\t\t\t\tmid2other.put(l[0], s);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\t//load notable type\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_mid2notabletype);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tString mid = l[0];\r\n\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\tif (s[2].equals(\"\")) {\r\n\t\t\t\t\t\ts[2] = l[1];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ts[2] = s[2] + \"::\" + l[1];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\t//load names & alias\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbdump_2_len4);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\t// set name\r\n\t\t\t\tif (l[1].equals(\"/type/object/name\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\t\tString mid = l[0];\r\n\t\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\t\tif (s[3].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[3] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[3] = s[3] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (s[4].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[4] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[4] = s[4] + \"::\" + l[3];\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\tif (l[1].equals(\"/common/topic/alias\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\t\tString mid = l[0];\r\n\t\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\t\tif (s[4].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[4] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[4] = s[4] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\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\t//write\r\n\t\t{\r\n\t\t\tDelimitedWriter dw = new DelimitedWriter(Main.file_midWidTypeNameAlias);\r\n\t\t\tfor (Entry<String, String[]> e : mid2other.entrySet()) {\r\n\t\t\t\tdw.write(e.getValue());\r\n\t\t\t}\r\n\t\t\tdw.close();\r\n\t\t}\r\n\t}",
"public JenaDataSource(String filePath)\n\t{\n\t\tOntModel model = null;\n\t\t\n\t\tInputStream is = getClass().getResourceAsStream(filePath);\n\t\tmodel = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM);\n\t\tmodel.read(is, null, \"TTL\");\n\t\tthis.populatePrefixMappings(model);\n\t\t\n\t\tsetModel(model);\n\t}",
"public WordNet(String synsetsFile, String hypernymsFile){\n if(synsetsFile == null || hypernymsFile == null){\n throw new IllegalArgumentException();\n }\n this.nounToIdMap = new HashMap<String, ArrayList<Integer>>();\n this.IdToNounMap = new HashMap<Integer, ArrayList<String>>();\n this.IdToSynsetMap = new HashMap<Integer, String>();\n this.numberOfSynsets = 0;\n processSynsetFile(synsetsFile);\n this.wordNetDigraph = new Digraph(this.numberOfSynsets);\n \n In hypernymsIn = new In(hypernymsFile);\n while(hypernymsIn.hasNextLine()){\n String line = hypernymsIn.readLine();\n String[] list = line.split(\",\");\n int synsetId = Integer.parseInt(list[0]);\n for(int i=1; i<list.length; i++){\n int hypernym = Integer.parseInt(list[i]);\n this.wordNetDigraph.addEdge(synsetId, hypernym);\n }\n }\n checkIfRootedDigraph();\n }",
"private void extractFile() {\n try (BufferedReader buffered_reader = new BufferedReader(new FileReader(source_file))) {\n String line;\n while((line = buffered_reader.readLine()) != null) {\n String spaceEscaped = line.replace(\" \", \"\");\n //file was read, each line is one of the elements of the file_read_lines list\n //line 0 is keyword \"TELL\"\n //line 1 is the knowledge base\n //line 2 is the keyword \"ASK\"\n //line 3 is the query\n file_read_lines.add(spaceEscaped);\n }\n\n //generate list of Horn clauses (raw) from the KB raw sentence\n //replace \\/ by |\n String kbLine = file_read_lines.get(1).replace(\"\\\\/\", \"|\");\n rawClauses = Arrays.asList(kbLine.split(\";\"));\n //query - a propositional symbol\n query = file_read_lines.get(3);\n } catch (IOException e) {\n //Return error if file cannot be opened\n error = true;\n System.out.println(source_file.toString() + \" is not found!\");\n }\n }",
"public File getInputDb();",
"void setInFiles(String inFilesStr) {\n\t\tString[] result = inFilesStr.split(\",\");\n\t\tfor (int x = 0; x < result.length; x++) {\n\t\t\tString fName = result[x].trim();\n\t\t\tthis.inFiles.add(new File(fName));\n\t\t}\n\t}",
"public void createFileObjects() {\n List<String> externalFiles = abbreviationsPreferences.getExternalJournalLists();\n externalFiles.forEach(name -> openFile(Paths.get(name)));\n }",
"public WordNet(String synsets, String hypernyms) {\n if (synsets == null || hypernyms == null) throw new IllegalArgumentException();\n In synsetsFile = new In(synsets);\n synsetsNumToStr = new HashMap<>();\n synsetsStrToNum = new HashMap<>();\n while (!synsetsFile.isEmpty()) {\n String read = synsetsFile.readLine();\n String[] item = read.split(\",\");\n int id = Integer.parseInt(item[0]);\n String[] str = item[1].split(\" \");\n Queue<String> strStack = new Queue<>();\n for (String ss : str) {\n strStack.enqueue(ss);\n Queue<Integer> si;\n if (!synsetsStrToNum.containsKey(ss)) {\n si = new Queue<>();\n si.enqueue(id);\n synsetsStrToNum.put(ss, si);\n }\n else synsetsStrToNum.get(ss).enqueue(id);\n }\n synsetsNumToStr.put(id, strStack);\n }\n In hypernymsFile = new In(hypernyms);\n Digraph wnDigraph = new Digraph(synsetsNumToStr.size());\n while (!hypernymsFile.isEmpty()) {\n String[] hypID = hypernymsFile.readLine().split(\",\");\n int rootID = Integer.parseInt(hypID[0]);\n for (int i = 1; i < hypID.length; i++)\n wnDigraph.addEdge(rootID, Integer.parseInt(hypID[i]));\n }\n Stack<Integer> root = new Stack<>();\n for (int v = 0; v < wnDigraph.V(); v++)\n if (wnDigraph.outdegree(v) == 0) {\n root.push(v);\n }\n if (root.size() > 1) throw new IllegalArgumentException(\"More than 1 roots in DAG\");\n DirectedCycle dcGraph = new DirectedCycle(wnDigraph);\n if (dcGraph.hasCycle()) throw new IllegalArgumentException(\"Cycles detected in the graph\");\n wnSAP = new SAP(wnDigraph);\n }",
"public static void produceFiles(DataLoaders d, double p, String corpus) throws CompressorException, IOException{\n//\t\tsort -t$'\\t' -k5 -nr conll.ambiverse.mappings > conll.ambiverse.mappings.sorted\n//\t\tsort -t$'\\t' -k5 -nr conll.babelfy.mappings > conll.babelfy.mappings.sorted\n//\t\tsort -t$'\\t' -k5 -nr conll.tagme.mappings > conll.tagme.mappings.sorted\n\t\t\n//\t\thead -n 23865 conll.tagme.mappings > conll_tagme_train.mappings\n\t\t\n\t\tdouble prop = 0;\n\n//\t\tTreeMap<String,String> ambiverseMap = new TreeMap<String, String>(); \n//\t\tTreeMap<String,String> babelfyMap = new TreeMap<String, String>();\n//\t\tTreeMap<String,String> tagmeMap = new TreeMap<String, String>();\n//\t\t\n\t\n\t\tOutputStreamWriter Ambp = new OutputStreamWriter(new FileOutputStream(\"./resources/ds/\"+corpus+\"/ds.amb.\"+p+\".txt\"), StandardCharsets.UTF_8);\n\t\tOutputStreamWriter Babp = new OutputStreamWriter(new FileOutputStream(\"./resources/ds/\"+corpus+\"/ds.bab.\"+p+\".txt\"), StandardCharsets.UTF_8);\n\t\tOutputStreamWriter Tagp = new OutputStreamWriter(new FileOutputStream(\"./resources/ds/\"+corpus+\"/ds.tag.\"+p+\".txt\"), StandardCharsets.UTF_8);\n\t\tCSVWriter csvWriterAmbp = new CSVWriter(Ambp, ',' , '\\'', '\\\\');\n\t\tCSVWriter csvWriterBabp = new CSVWriter(Babp, ',' , '\\'', '\\\\');\n\t\tCSVWriter csvWriterTagp = new CSVWriter(Tagp, ',' , '\\'', '\\\\');\n\t\t\n\t\tBufferedReader bffReaderAmbiverse = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".ambiverse.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\tBufferedReader bffReaderBabelfy = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".babelfy.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\tBufferedReader bffReaderTagme = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".tagme.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\n\t\t\n\t\tString line=\"\";\n\t\tint countAmbiverse = 0;\n\t\twhile ((line = bffReaderAmbiverse.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tif(entity.equalsIgnoreCase(\"null\")){ \n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tString confidence = elements[4];\n\t\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\t\tString key = docid+\"\\t\"+mention+\"\\t\"+offset;\n\t\t\t\t\tcountAmbiverse++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tline=\"\";\n\t\tint countBabelfy = 0;\n\t\twhile ((line = bffReaderBabelfy.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tif(entity.equalsIgnoreCase(\"null\")){ \n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tString confidence = elements[4];\n\t\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\t\tString key = docid+\"\\t\"+mention+\"\\t\"+offset;\n\t\t\t\t\tcountBabelfy++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tline=\"\";\n\t\tint countTagme = 0;\n\t\twhile ((line = bffReaderTagme.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tmention = mention.replaceAll(\"\\\"\", \" \");\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tif(entity.equalsIgnoreCase(\"null\")){ \n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tString confidence = elements[4];\n\t\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\t\tString key = docid+\"\\t\"+mention+\"\\t\"+offset;\n\t\t\t\t\tcountTagme++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tbffReaderAmbiverse.close();\n\t\tbffReaderBabelfy.close();\n\t\tbffReaderTagme.close();\n\t\t\n/* End */\n\t\t\n\t\t\n//\t\t// *** Producing files ***//\n\t\tbffReaderAmbiverse = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".ambiverse.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\n\t\tprop = ( p/100.0 )* countAmbiverse;\n\t\t\n\t\tint count = 0;\n\t\tline=\"\";\n\t\twhile ((line = bffReaderAmbiverse.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tString confidence = elements[4];\n\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\tcount++;\n\t\t\t\tif(count <= prop ){\n\t\t\t\t\tAmbp.write(docid+\"\\t\"+mention+\"\\t\"+offset+\"\\t\"+entity+\"\\t\"+confidence+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(prop);\n\t\t\n\t\tbffReaderBabelfy = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".babelfy.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\tprop = ( p/100.0 )* countBabelfy;\n\t\tcount = 0;\n\t\tline=\"\";\n\t\twhile ((line = bffReaderBabelfy.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tString confidence = elements[4];\n\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\tcount++;\n\t\t\t\tif(count <= prop){\n\t\t\t\t\tBabp.write(docid+\"\\t\"+mention+\"\\t\"+offset+\"\\t\"+entity+\"\\t\"+confidence+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(prop);\n\t\t\n\t\tbffReaderTagme = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".tagme.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\tprop = ( p/100.0 )* countTagme;\n\t\tcount = 0;\n\t\tline=\"\";\n\t\twhile ((line = bffReaderTagme.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tString confidence = elements[4];\n\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\tcount++;\n\t\t\t\tif(count <= prop){\n\t\t\t\t\tTagp.write(docid+\"\\t\"+mention+\"\\t\"+offset+\"\\t\"+entity+\"\\t\"+confidence+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(prop);\n\t\t\n\t\tbffReaderAmbiverse.close();\n\t\tbffReaderBabelfy.close();\n\t\tbffReaderTagme.close();\n\t\t\n\t\tAmbp.close();\n\t\tBabp.close();\n\t\tTagp.close();\n\t\t\n\t\t\n\t}",
"public void importData(){\n // get all files from the given path\n File folder = new File(pathDataset);\n List<File> files = new ArrayList<>(Arrays.asList(folder.listFiles()));\n // iterate all found files\n //while(files.iterator().hasNext()){\n for (int k=0;k<files.size();k++) {\n File file = files.get(k);\n LOG.debug(file.toString());\n FileInputStream fis;\n String collectionName = FilenameUtils.getBaseName(file.getName());\n // ensure that the right MongoDB collection is selected\n mongoApi.setCurrentMongoCollection(collectionName);\n List<Document> documents = new ArrayList<>();\n String tempLine;\n int i = 0;\n try {\n fis = new FileInputStream(file);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n // Iterate all lines and use them as Strings \n // to pass them over to the current MongoDB document collection\n while ((tempLine = in.readLine()) != null) {\n if ((lines > -1) && (i >= lines)){\n break;\n }\n documents.add(Document.parse(tempLine));\n }\n LOG.debug(\"Start importing Collection\"+collectionName);\n mongoApi.getCurrentMongoCollection().insertMany(documents);\n LOG.debug(\"Finished importing Collection\"+collectionName);\n // Close streams\n in.close();\n fis.close();\n // Catch important exceptions\n } catch (FileNotFoundException ex) {\n LOG.error(\"Dataset File not found\" + ex.getMessage() + ex.getCause());\n System.exit(-1);\n } catch (IOException ex) {\n LOG.error(\"IOException: \" + ex.getMessage() + ex.getCause());\n System.exit(-1);\n }\n // end while\n }\n }",
"public static void process(String rootFileName, \n String inputDirectory, String outputDirectory, \n Set<Integer> yearSet, Set<String> fieldnameSet,\n Set<Integer> weightTypeSet,\n Set<Integer> useWhatSet, \n ElsevierPapersFilter ipf,\n boolean extractGCC,\n int minDegreeIn, int minDegreeOut, double minWeight,\n int infoLevel){\n System.out.println(\"--- Processing papers from \"+rootFileName);\n final String ext=\".dat\";\n \n String fullFileName=inputDirectory+rootFileName+ext;\n TreeSet<ebrpPublication> fullPubSet;\n ProcessPublicationList ppl = new ProcessPublicationList();\n fullPubSet = ppl.readEBRPPublicationData(fullFileName, infoLevel);\n System.out.println(\"--- Have \"+fullPubSet.size()+\" papers from \"+fullFileName);\n \n // optional paper classification\n //ClassifyPublications.classify(fullPubSet, infoLevel);\n \n int sampleFrequency=1; // <=1 means take all\n if (sampleFrequency<1) sampleFrequency=1;\n System.out.println(\"--- Taking every \"+sampleFrequency+\"th paper\");\n //if (sampleFrequency<=1) pubSet=fullPubSet;\n for (Integer year: yearSet){\n int pubNumber=0;\n TreeSet<ebrpPublication> pubSet = new TreeSet();\n for (String fieldname: fieldnameSet){\n if (fieldname.startsWith(\"P\")){ \n ipf.makeStopStemSet(ElsevierStopStems.PHYSICS);\n }\n if (fieldname.startsWith(\"B\")){ \n ipf.makeStopStemSet(ElsevierStopStems.BUSINESS);\n }\n for (ebrpPublication p: fullPubSet){\n if ((p.getYear()!=year) || (!p.fieldName.startsWith(fieldname))) continue;\n if (((pubNumber++)%sampleFrequency==0) ) pubSet.add(p);\n }\n System.out.println(\"--- Have \"+pubSet.size()+\" papers from year \"+year+\" and fieldname \"+fieldname);\n if ((infoLevel>-2) && (pubSet.size()<20)){\n int pn=0;\n for (ebrpPublication p: pubSet){\n System.out.println((pn++)+p.eid+\", \"+p.getTitle());\n }\n }\n for (Integer useWhat:useWhatSet){\n boolean useTitle=((useWhat&1)>0);\n boolean useKeywords=((useWhat&2)>0);\n System.out.println(\"--- \"+(useTitle?\"U\":\"Not u\")+\"sing titles\");\n System.out.println(\"--- \"+(useKeywords?\"U\":\"Not u\")+\"sing keywords\");\n for (Integer weightType:weightTypeSet){\n processOneYear(pubSet, rootFileName, outputDirectory, inputDirectory,\n year, fieldname, weightType, ipf,\n useTitle, useKeywords, extractGCC,\n minDegreeIn, minDegreeOut, minWeight,\n infoLevel);\n }\n }\n }// eo for fieldname\n }// eo for year\n\n }",
"private static void removeSSRs(File input){\n try(\n FileReader fRead = new FileReader(input+\".ssr\");\n BufferedReader bRead = new BufferedReader(fRead);\n FileReader fRead2 = new FileReader(input);\n BufferedReader bRead2 = new BufferedReader(fRead2)\n ){\n ArrayList<String> noSSRFilenames = new ArrayList<>();\n while (true){\n String line = bRead.readLine();\n if (line == null){\n break;\n }\n else{\n String [] nLine = line.split(\"\\t\");\n if (!nLine[0].equals(\"Name\")){\n if (!noSSRFilenames.contains(nLine[0])){\n noSSRFilenames.add(nLine[0]);\n }\n }\n }\n }\n boolean match = false;\n Sequence raw;\n String seqName = \"\";\n while (true) {\n String seqLine = bRead2.readLine();\n if (seqLine == null) {\n break;\n }\n else {\n if (seqLine.charAt(0) == '>') {\n match = false;\n for (String name : noSSRFilenames) {\n if (seqLine.equals(name)) {\n match = true;\n break;\n }\n }\n if (!match) {\n seqName = seqLine;\n }\n }\n //** Sequence objects are created and added to Metagenome\n else if(!match && seqLine.length() > DMMController.getIgnoreShortSeq() ){\n raw = new Sequence(seqName,seqLine,seqLine.length());\n sequences.add(raw);\n }\n }\n }\n }\n catch (Exception e){\n System.out.println(e.getMessage() + \"----------Remove SSRs issue\");\n }\n }",
"public static void main(String[] args) throws IOException{\n\t\tfileNames();\r\n\t}",
"abstract protected String getResultFileName();",
"public NameSurferDataBase(String filename) {\t\n\t\tnameData(filename);\n\t}",
"private static INodeFile[] verifySrcFiles(FSDirectory fsd, String[] srcs,\n INodesInPath targetIIP, FSPermissionChecker pc) throws IOException {\n Set<INodeFile> si = new LinkedHashSet<>();\n final INodeFile targetINode = targetIIP.getLastINode().asFile();\n final INodeDirectory targetParent = targetINode.getParent();\n // now check the srcs\n for (String src : srcs) {\n final INodesInPath iip = fsd.getINodesInPath4Write(src);\n // permission check for srcs\n if (pc != null) {\n fsd.checkPathAccess(pc, iip, FsAction.READ); // read the file\n fsd.checkParentAccess(pc, iip, FsAction.WRITE); // for delete\n }\n\n final INode srcINode = iip.getLastINode();\n final INodeFile srcINodeFile = INodeFile.valueOf(srcINode, src);\n // make sure the src file and the target file are in the same dir\n if (srcINodeFile.getParent() != targetParent) {\n throw new HadoopIllegalArgumentException(\"Source file \" + src\n + \" is not in the same directory with the target \"\n + targetIIP.getPath());\n }\n // source file cannot be the same with the target file\n if (srcINode == targetINode) {\n throw new HadoopIllegalArgumentException(\"concat: the src file \" + src\n + \" is the same with the target file \" + targetIIP.getPath());\n }\n\n if(srcINodeFile.getStoragePolicyID() == HdfsConstants.DB_STORAGE_POLICY_ID) {\n throw new HadoopIllegalArgumentException(\"concat: source file \" + src\n + \" is stored in DB.\");\n }\n\n // source file cannot be under construction or empty\n if(srcINodeFile.isUnderConstruction() || srcINodeFile.numBlocks() == 0) {\n throw new HadoopIllegalArgumentException(\"concat: source file \" + src\n + \" is invalid or empty or underConstruction\");\n }\n // source file's preferred block size cannot be greater than the target\n // file\n if (srcINodeFile.getPreferredBlockSize() >\n targetINode.getPreferredBlockSize()) {\n throw new HadoopIllegalArgumentException(\"concat: source file \" + src\n + \" has preferred block size \" + srcINodeFile.getPreferredBlockSize()\n + \" which is greater than the target file's preferred block size \"\n + targetINode.getPreferredBlockSize());\n }\n si.add(srcINodeFile);\n }\n \n // make sure no two files are the same\n if (si.size() < srcs.length) {\n // it means at least two files are the same\n throw new HadoopIllegalArgumentException(\n \"concat: at least two of the source files are the same\");\n }\n return si.toArray(new INodeFile[si.size()]);\n }",
"public void setupRIBFiles() {\n mRTS.mTimeMan.findAndSetEmptyDayNo();\n mRTS.mEventHandler.writeEventHeaderFile();\n mRTS.mDataLogHandler.writeDayHeaderFile();\n\n }",
"private static void addAllSynset(ArrayList<String> synsets, String chw, IDictionary dictionary) {\n\t\tWordnetStemmer stemmer = new WordnetStemmer(dictionary);\n\t\tchw = stemmer.findStems(chw, POS.NOUN).size()==0?chw:stemmer.findStems(chw, POS.NOUN).get(0);\n\t\t\n\t\tIIndexWord indexWord = dictionary.getIndexWord(chw, POS.NOUN);\n\t\tList<IWordID> sensesID = indexWord.getWordIDs();\n\t\tList<ISynsetID> relaWordID = new ArrayList<ISynsetID>();\n\t\tList<IWord> words;\n\t\t\n\t\tfor(IWordID set : sensesID) {\n\t\t\tIWord word = dictionary.getWord(set);\n\t\t\t\n\t\t\t//Add Synonym\n\t\t\trelaWordID.add(word.getSynset().getID());\n\n\t\t\t//Add Antonym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.ANTONYM));\n\t\t\t\n\t\t\t//Add Meronym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.MERONYM_MEMBER));\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.MERONYM_PART));\n\t\t\t\n\t\t\t//Add Hypernym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.HYPERNYM));\n\t\t\t\n\t\t\t//Add Hyponym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.HYPONYM));\n\t\t}\n\t\t\n\t\tfor(ISynsetID sid : relaWordID) {\n\t\t\twords = dictionary.getSynset(sid).getWords();\n\t\t\tfor(Iterator<IWord> i = words.iterator(); i.hasNext();) {\n\t\t\t\tsynsets.add(i.next().getLemma());\n\t\t\t}\n\t\t}\n\t}",
"public static void main (String[] args){\n\t\t Model model1 = ModelFactory.createDefaultModel();\n\t\t Model model2 = ModelFactory.createDefaultModel();\n\t\t // use the FileManager to find the input file\n\t\t InputStream in1 = FileManager.get().open( \"D:\\\\eclipse\\\\carta-de-exigencia-cetesb.rdf\" );\n\t\t InputStream in2 = FileManager.get().open( \"D:\\\\eclipse\\\\liminar-contra-a-usp.rdf\" );\n\t\tif (in1 == null || in2 ==null) {\n\t\t throw new IllegalArgumentException(\n\t\t \"File: \" + \"D:\\\\eclipse\\\\carta-de-exigencia-cetesb.rdf\" + \" not found\");\n\t\t}\n\n\t\t// read the RDF/XML file\n\t\tmodel1.read(in1, null);\n\t\tmodel2.read(new InputStreamReader (in2), \"\");\n\t\tModel model = model1.union(model2);\n\n\t\tmodel.write(System.out);\n\t\t// write it to standard out\n\t\t//model1.write(System.out);\n\t\t//model1.read(new InputStreamReader(in1 ), \"\"); \n\t}",
"public List<String> getFileLines() {\n\t\tspeciesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\ttissuesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tcellTypesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tdiseaseByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tquantificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tinstrumentByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tmodificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\texperimental_factorByExperiment = new TIntObjectHashMap<List<String>>();\n\n\t\tfinal List<String> ret = new ArrayList<String>();\n\t\tfinal Map<String, PexFileMapping> fileLocationsMapping = new THashMap<String, PexFileMapping>();\n\t\tfinal List<PexFileMapping> totalFileList = new ArrayList<PexFileMapping>();\n\t\tint fileCounter = 1;\n\t\t// organize the files by experiments\n\t\tfor (final Experiment experiment : experimentList.getExperiments()) {\n\n\t\t\tfinal File prideXmlFile = experiment.getPrideXMLFile();\n\t\t\tif (prideXmlFile != null) {\n\t\t\t\t// FILEMAPPINGS\n\t\t\t\t// PRIDE XML\n\t\t\t\tfinal int resultNum = fileCounter;\n\t\t\t\tfinal PexFileMapping prideXMLFileMapping = new PexFileMapping(\"result\", fileCounter++,\n\t\t\t\t\t\tprideXmlFile.getAbsolutePath(), null);\n\n\t\t\t\ttotalFileList.add(prideXMLFileMapping);\n\t\t\t\tfileLocationsMapping.put(prideXMLFileMapping.getPath(), prideXMLFileMapping);\n\n\t\t\t\t// Iterate over replicates\n\t\t\t\tfinal List<Replicate> replicates = experiment.getReplicates();\n\t\t\t\tfor (final Replicate replicate : replicates) {\n\t\t\t\t\t// sample metadatas\n\t\t\t\t\taddSampleMetadatas(resultNum, replicate);\n\n\t\t\t\t\t// PEak lists\n\t\t\t\t\tfinal List<PexFileMapping> peakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// raw files\n\t\t\t\t\tfinal List<PexFileMapping> rawFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// search engine output lists\n\t\t\t\t\tfinal List<PexFileMapping> outputSearchEngineFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// MIAPE MS and MSI reports\n\t\t\t\t\tfinal List<PexFileMapping> miapeReportFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// RAW FILES\n\t\t\t\t\tfinal List<PexFile> rawFiles = getReplicateRawFiles(replicate);\n\n\t\t\t\t\tif (rawFiles != null) {\n\t\t\t\t\t\tfor (final PexFile rawFile : rawFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(rawFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping rawFileMapping = new PexFileMapping(\"raw\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\trawFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\trawFileMappings.add(rawFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(rawFile.getFileLocation(), rawFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> RAW file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(rawFileMapping.getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// PEAK LISTS\n\t\t\t\t\tfinal List<PexFile> peakListFiles = getPeakListFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatePeakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (peakListFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : peakListFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping peakListFileMapping = new PexFileMapping(\"peak\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tpeakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\tpeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\treplicatePeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), peakListFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> PEAK LIST file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> PEAK LIST file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// prideXMLFileMapping\n\t\t\t\t\t\t\t\t// .addRelationship(peakListFileMapping\n\t\t\t\t\t\t\t\t// .getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// MIAPE MS REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSReportFiles = getMiapeMSReportFiles(replicate);\n\t\t\t\t\tif (miapeMSReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSReportFile : miapeMSReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MS report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// SEARCH ENGINE OUTPUT FILES\n\t\t\t\t\tfinal List<PexFile> searchEngineOutputFiles = getSearchEngineOutputFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatesearchEngineOutputFilesMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (searchEngineOutputFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : searchEngineOutputFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping searchEngineOutputFileMapping = new PexFileMapping(\"search\",\n\t\t\t\t\t\t\t\t\t\tfileCounter++, peakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\toutputSearchEngineFileMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\treplicatesearchEngineOutputFilesMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\t// PRIDE XML -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// MIAPE MSI REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSIReportFiles = getMiapeMSIReportFiles(replicate);\n\t\t\t\t\tif (miapeMSIReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSIReportFile : miapeMSIReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSIReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSIReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSIReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MSI report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// SEARCH ENGINE OUTPUT file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping searchEngineOutputFileMapping : replicatesearchEngineOutputFilesMappings) {\n\t\t\t\t\t\t\t\t\tsearchEngineOutputFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t// Add all to the same list and then sort by id\n\t\t\t\t\ttotalFileList.addAll(outputSearchEngineFileMappings);\n\t\t\t\t\ttotalFileList.addAll(miapeReportFileMappings);\n\t\t\t\t\ttotalFileList.addAll(peakListFileMappings);\n\t\t\t\t\ttotalFileList.addAll(rawFileMappings);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Sort the list of files\n\t\tCollections.sort(totalFileList, new Comparator<PexFileMapping>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(PexFileMapping o1, PexFileMapping o2) {\n\n\t\t\t\treturn Integer.valueOf(o1.getId()).compareTo(Integer.valueOf(o2.getId()));\n\n\t\t\t}\n\n\t\t});\n\t\tfor (final PexFileMapping pexFileMapping : totalFileList) {\n\t\t\tret.add(pexFileMapping.toString());\n\t\t}\n\t\treturn ret;\n\t}",
"HashMap<String, ?> getOutputFiles();",
"public WordNet(String synsets, String hypernyms) {\n\t\tif (synsets == null || hypernyms == null)\n\t\t\tthrow new IllegalArgumentException();\n\t\t\n\t\tidToNouns = new HashMap<Integer, String>();\n\t\tnounToId = new HashMap<String, ArrayList<Integer>>();\n\n\t\tIn in1 = new In(synsets);\n\t\tIn in2 = new In(hypernyms);\n\n\t\twhile (in1.hasNextLine()) {\n\t\t\tString line = in1.readLine();\n\t\t\tString[] parts = line.split(\",\");\n\t\t\tint id = Integer.parseInt(parts[0]);\n\t\t\tidToNouns.put(id, parts[1]);\n\n\t\t\tString[] nouns = parts[1].split(\" \");\n\t\t\tfor (String s : nouns) {\n\t\t\t\tif (nounToId.containsKey(s))\n\t\t\t\t\tnounToId.get(s).add(id);\n\t\t\t\telse {\n\t\t\t\t\tnounToId.put(s, new ArrayList<Integer>());\n\t\t\t\t\tnounToId.get(s).add(id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tgraph = new Digraph(idToNouns.size());\n\n\t\twhile (in2.hasNextLine()) {\n\t\t\tString line = in2.readLine();\n\t\t\tString[] parts = line.split(\",\");\n\t\t\tfor (int i = 1; i < parts.length; i++) {\n\t\t\t\tgraph.addEdge(Integer.parseInt(parts[0]), Integer.parseInt(parts[i]));\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!isRootedDAG(graph))\n\t\t\tthrow new IllegalArgumentException(); \n\t\t\n\t\tsap = new SAP(graph);\n\t}",
"public WordNet(String synsets, String hypernyms)\n {\n if (synsets==null || hypernyms==null) throw new IllegalArgumentException();\n h=new TreeMap<>();\n In i1=new In(synsets);\n int i=0;\n h2=new ArrayList<>();\n while(!i1.isEmpty())\n {\n String[] temp=i1.readLine().split(\",\");\n String[] temp2=temp[1].trim().split(\"\\\\s+\");\n String t=\"\";\n for (String s:temp2)\n {\n if (h.containsKey(s))\n {\n h.get(s).add(i);\n }\n else\n {\n ArrayList<Integer> a=new ArrayList<>();\n a.add(i);\n h.put(s,a);\n }\n\n t=t+s+\" \";\n }\n h2.add(t);\n i++;\n }\n\n g=new Digraph(i);\n In i2=new In(hypernyms);\n while (!i2.isEmpty())\n {\n String[] temp=i2.readLine().split(\",\");\n int j=Integer.parseInt(temp[0].trim());\n for (int k=1;k<temp.length;k++)\n g.addEdge(j, Integer.parseInt(temp[k].trim()));\n }\n\n sap=new SAP(g);\n\n //All the below lines check for Illegal Arguments\n DirectedCycle obj=new DirectedCycle(g);\n boolean b=obj.hasCycle();\n if (b) throw new IllegalArgumentException();\n\n int numberOfRoots=0;\n for (int j=0;j<g.V() && numberOfRoots < 2;j++)\n if (g.outdegree(j)==0) numberOfRoots++;\n\n //System.out.println(\"The number of roots is \"+numberOfRoots);\n if (numberOfRoots!=1) throw new IllegalArgumentException();\n }",
"static void createAuthorsFile () throws IOException {\n\t\tBufferedReader dataFile = new BufferedReader(new FileReader(DATAFILE));\n\t\tString inputLine;\n\t\t\n\t\tPrintWriter isbnLabeledDataFile = new PrintWriter(new FileWriter(ISBNLABELLEDDATAFILE));\n\t\t\n\t\tSet<String> books = new HashSet<String>();\n\t\twhile ((inputLine = dataFile.readLine()) != null) {\n\t\t\tif (inputLine.indexOf('\\t') == -1) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString[] fields = inputLine.split(\"\\t\");\n\t\t\tif (fields.length != 4) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfinal String bookId = fields[1];\n\t\t\tif (books.contains(bookId)) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tbooks.add(bookId);\n\t\t\t\tString authorString = getAuthorString(bookId);\n\t\t\t\tisbnLabeledDataFile.println(bookId + \"\\t\" + authorString);\n\t\t\t\tout.println(bookId + \"\\t\" + authorString);\n\t\t\t}\n\t\t}\n\t\tdataFile.close();\n\t\tisbnLabeledDataFile.close();\n\t}",
"private String formatSynonymListFileName(String synonymListName) {\n \t\n \tif(synonymListName.trim().endsWith(\".txt\")) {\n \t return StringUtils.replaceChars(synonymListName, ' ', '_').toLowerCase();\n \t}\n \t\n return StringUtils.replaceChars(synonymListName, ' ', '_').toLowerCase() + \".txt\";\n }",
"public WordNet(String synsets, String hypernyms)\n {\n In text = new In(synsets);\n synsetList = new ArrayList<String>();\n synsetHash = new HashMap<String, ArrayList<Integer>>();\n // parse words into array synsetList\n synsetNum = 0;\n while (!text.isEmpty())\n {\n String temp = text.readLine().split(\",\")[1];\n synsetList.add(temp);\n synsetNum++;\n }\n //initialize synsetHash with word:list of integers\n for (int i = 0; i < synsetNum; i++)\n {\n String[] stringArray = synsetList.get(i).split(\" \");\n for (String s : stringArray)\n {\n if (synsetHash.containsKey(s))\n {\n ArrayList<Integer> temp = synsetHash.get(s);\n temp.add(i);\n }\n else\n {\n ArrayList<Integer> temp = new ArrayList<Integer>();\n temp.add(i);\n synsetHash.put(s, temp);\n }\n }\n }\n\n wordGraph = new Digraph(synsetNum);\n text = new In(hypernyms);\n while (!text.isEmpty())\n {\n String[] edges = text.readLine().split(\",\");\n int mainEdge = Integer.parseInt(edges[0]);\n for (int i = 1; i < edges.length; i++)\n {\n wordGraph.addEdge(mainEdge, Integer.parseInt(edges[i]));\n }\n }\n // check if input is a rooted DAG\n int count = 0;\n for (int v = 0; v < synsetNum; v++)\n {\n if (wordGraph.outdegree(v) == 0) count++;\n if (count > 1) throw new IllegalArgumentException();\n }\n // may be redundant check, but wanna make sure\n if (count != 1) throw new IllegalArgumentException();\n\n DirectedCycle cycle = new DirectedCycle(wordGraph);\n if (cycle.hasCycle()) throw new IllegalArgumentException();\n\n shortestPath = new SAP(wordGraph);\n \n }",
"IIndexFragmentFileSet createFileSet();",
"public A4_MUX (String inputLocation) throws IOException{\r\n fileLocation = inputLocation.concat(\"server.info\");\r\n filePath = Paths.get(fileLocation); \r\n }",
"public static void main(String[] args) throws Exception {\n List<String> files = Lists.newArrayList(\n \"https://s3.amazonaws.com/nutriscopedata/ndbid-mfgorfoodgroup.tsv\",\n \"https://s3.amazonaws.com/nutriscopedata/ndbid-name.tsv\");\n\n OkHttpClient client = new OkHttpClient();\n\n Request request;\n Response response;\n for (String file: files) {\n request = new Request.Builder()\n .url(file)\n .build();\n\n response = client.newCall(request).execute();\n\n OutputStream out = new FileOutputStream(outputPath + getFilename(file));\n InputStream in = response.body().byteStream();\n\n try {\n ByteStreams.copy(in, out);\n\n }\n finally {\n response.close();\n out.flush();\n\n }\n }\n }",
"String prepareFile();",
"@Override public void outputAllNames(Set<String> files,IvyXmlWriter xw)\n{\n resolve();\n\n Set<String> done = new HashSet<String>();\n\n\n for (RebaseJavaFile jf : file_nodes) {\n // output package element\n if (files != null && !files.contains(jf.getFile().getFileName())) continue;\n\n RebaseFile rf = jf.getFile();\n String pkg = rf.getPackageName();\n if (pkg != null && pkg.length() > 0 && !done.contains(pkg)) {\n\t done.add(pkg);\n\t xw.begin(\"ITEM\");\n\t xw.field(\"HANDLE\",rf.getPackageName() + \"/\" + pkg);\n\t xw.field(\"NAME\",pkg);\n\t File f1 = new File(rf.getFileName());\n\t xw.field(\"PATH\",f1.getParent());\n\t xw.field(\"PROJECT\",rf.getProjectName());\n\t xw.field(\"SOURCE\",\"USERSOURCE\");\n\t xw.field(\"TYPE\",\"Package\");\n\t xw.end(\"ITEM\");\n }\n\n xw.begin(\"FILE\");\n xw.textElement(\"PATH\",jf.getFile().getFileName());\n\n OutputVisitor ov = new OutputVisitor(jf,xw);\n jf.getAstNode().accept(ov);\n\n xw.end(\"FILE\");\n }\n}",
"@SuppressWarnings(\"unchecked\")\n\tpublic void loadFiles(){\n\n\t\t/* Remove all names from the combo boxes to begin with */\n\t\tpath1.removeAllItems();\n\t\tpath2.removeAllItems();\n\n\t\t/* List all files in the current working directory */\n\t\tFile file = new File(\"./\");\n\t\tFile[] configs =file.listFiles();\n\n\t\t/* For every file */\n\t\tfor (int i=0;i<configs.length;i++){\n\n\t\t\t/* Retrieve the name and if it ends with .con extension then add it\n\t\t\t * to the two combo boxes */\n\t\t\tString name = configs[i].getName();\n\t\t\tif((!(name.length()<4)) && name.substring(name.length()-4).equals(\".con\")){\n\t\t\t\tpath1.addItem(name.substring(0,name.length()-4));\n\t\t\t\tpath2.addItem(name.substring(0,name.length()-4));\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void setSrcFileName(java.lang.String srcFileName) {\n\t\t_scienceApp.setSrcFileName(srcFileName);\n\t}",
"public static void scenarioOne(String input) {\n System.out.println(\"---------------------- InputFile Scenario One ----------------------\");\n\n try (Scanner s = new Scanner(new File(input))) {\n ArrayList<String> orders = new ArrayList<String>();\n while (s.hasNextLine()) {\n orders.add(s.nextLine());\n }\n s.close();\n CustomerOrderServer server = new CustomerOrderServer(orders);\n Drone drone = new Drone(1);\n\n\n StrategyBasic thewarehouse = new StrategyBasic(server, drone, 6*3600, 22*3600);\n thewarehouse.startProcessingOrder();\n\n try (FileWriter fw = new FileWriter(\"output.txt\")) {\n\n for (int i = 0; i < thewarehouse.output.size(); i++) {\n fw.write(thewarehouse.output.get(i) + \"\\n\");\n }\n fw.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n catch (Exception e) {\n System.out.println(\"FileNotFound\");\n }\n\n }",
"public void setOutputFiles(Table outputFiles) {\n\t_outputFiles = outputFiles;\n }",
"@Override\n\tpublic void loadModels(ZipInputStream zin)\n\t{\n\t\tf_xmls = new JointFtrXml[1];\n\t\ts_models = null;\n\t\tZipEntry zEntry;\n\t\tString entry;\n\t\t\t\t\n\t\ttry\n\t\t{\n\t\t\twhile ((zEntry = zin.getNextEntry()) != null)\n\t\t\t{\n\t\t\t\tentry = zEntry.getName();\n\t\t\t\t\n\t\t\t\tif (entry.equals(ENTRY_CONFIGURATION))\n\t\t\t\t\tloadDefaultConfiguration(zin);\n\t\t\t\telse if (entry.startsWith(ENTRY_FEATURE))\n\t\t\t\t\tloadFeatureTemplates(zin, Integer.parseInt(entry.substring(ENTRY_FEATURE.length())));\n\t\t\t\telse if (entry.startsWith(ENTRY_FRAMES))\n\t\t\t\t\tloadFrames(zin);\n\t\t\t\telse if (entry.equals(ENTRY_LEXICA))\n\t\t\t\t\tloadLexica(zin);\n\t\t\t\telse if (entry.startsWith(ENTRY_MODEL))\n\t\t\t\t\tloadStatisticalModels(zin, Integer.parseInt(entry.substring(ENTRY_MODEL.length())));\n\t\t\t\telse if (entry.startsWith(ENTRY_WEIGHTS))\n\t\t\t\t\tloadWeightVector(zin, Integer.parseInt(entry.substring(ENTRY_WEIGHTS.length())));\n\t\t\t}\t\t\n\t\t}\n\t\tcatch (Exception e) {e.printStackTrace();}\n\t}",
"private void inputHandle(String[] arguments) {\n\t\tif (arguments.length != 1)\n\t\t\tSystem.err.println(\"There needs to be one argument:\\n\"\n\t\t\t\t\t+ \"directory of training data set, and test file name.\");\n\t\telse {\t\t\t\n\t\t\tinputTestFile = arguments[0];\n\t\t}\n\t}",
"private void buildDS(String file) throws IOException,ParseException\n\t{\n\t\tJSONParser parser=new JSONParser();\n\t\tJSONObject config=(JSONObject)parser.parse(new FileReader(file));\n\t\taddToMap(config,this.types,\"types\");\n\t\tJSONObject groups=(JSONObject)config.get(\"combine\");\n\t\tfor(String key:(Set<String>)groups.keySet())\n\t\t{\n\t\t\tArrayList<String> temp=new ArrayList<String>();\n\t\t\taddToList(groups,temp,key);\n\t\t\tthis.groups.put(key,temp);\n\t\t}\n\t\taddToMap(config,this.rename,\"rename\");\n\t\taddToMap(config,this.format,\"format\");\n\t\taddToMap(config,this.ops,\"operation\");\n\t}",
"public static void main(String[] args) {\n String s1 = \"/Users/ElvisLee/Dropbox/workspace/drjava_workspace/algorithms/WordNet/wordnet/synsets.txt\";\n String s2 = \"/Users/ElvisLee/Dropbox/workspace/drjava_workspace/algorithms/WordNet/wordnet/hypernyms.txt\";\n WordNet wordnet = new WordNet(s1, s2);\n Outcast outcast = new Outcast(wordnet);\n for (int t = 0; t < args.length; t++) {\n In in = new In(args[t]);\n String[] nouns = in.readAllStrings();\n StdOut.println(args[t] + \": \" + outcast.outcast(nouns));\n }\n }",
"public static HashMap parseUSFM(File collectionsFile, String baseSourceDirectory, String sourceTextPath, String sTitleTag) throws IOException\n\t{\n //iterate through the source file directory and get the filenames present\n //USFM uses a predefined file format of:\n // 01GENxxxx.ptx\n HashMap books = new HashMap();\n if (baseSourceDirectory == null)\n {\n baseSourceDirectory = \"\";\n }\n \n try\n {\n System.out.println(\"Base Dir: \" + baseSourceDirectory);\n System.out.println(\"Source Path: \" + sourceTextPath);\n \n //get the list of files in the directory\n File folder = new File(baseSourceDirectory, sourceTextPath);\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < listOfFiles.length; i++) \n {\n if (listOfFiles[i].isFile()) \n {\n String sFileName = listOfFiles[i].getName();\n if (sFileName.toLowerCase().endsWith(\".\" + usfmSourceFileExtension))\n {\n System.out.println(\"File \" + listOfFiles[i].getName());\n String sFilename = folder.toString() + File.separator + listOfFiles[i].getName();\n // Add book to the lookup table\n try\n {\n\t\t\t\t// Create a new book\n\t\t\t\tBook book = new Book(collectionsFile, sFilename, STYLE_RED, fileCodepage, useRedLettering, sTitleTag);\n\t\t\t\tbook.fileName = listOfFiles[i].getName();\n\n\t\t\t\tbooks.put(book.name, book);\n\n // the \\id tag syntax:\n // \\id <CODE> (Text text text...)\n // where <CODE> \"is normally the standard 3 letter UBS/SIL scripture book abbreviation.\"\n // we allow books to be identified using the id tag if the first word matches.\n // Hence, we add a special exception here:\n // book is always added twice: once with the code, and once with\n // the full text match.\n \n if (sTitleTag.equals(\"\\\\id\") && book.name.indexOf(' ') > 0 ) {\n String bookKey = book.name;\n String bookCode = bookKey.substring(0, bookKey.indexOf(' '));\n books.put(bookCode, book);\n }\n \n\t\t\t\tbookNames.add(book.name);\n\t }\n catch (Exception e)\n {\n System.out.println(\"Error: \" + e.getMessage());\n e.printStackTrace();\n }\n }\n } \n }\n }\n catch (Exception e)\n {\n System.out.println(\"Error: \" + e.getMessage());\n e.printStackTrace();\n }\n return books;\n\t}",
"private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}",
"public void setExternalSpectrumFile(String filename);",
"public String getSrcDatasetName() {\r\n return srcDatasetName;\r\n }",
"public void processFiles(){\n\t\tfor(String fileName : files) {\n\t\t\ttry {\n\t\t\t\tloadDataFromFile(fileName);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"Can't open file: \" + fileName);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprintInOrder();\n\t\t\tstudents.clear();\n\t\t}\n\t}"
] | [
"0.5903809",
"0.5432414",
"0.53666866",
"0.5277359",
"0.52555937",
"0.5209057",
"0.5144124",
"0.5120739",
"0.50962967",
"0.5058796",
"0.50493205",
"0.5034796",
"0.50127685",
"0.4998695",
"0.49957314",
"0.4974437",
"0.49576464",
"0.49506873",
"0.4944467",
"0.4943502",
"0.4923927",
"0.4922606",
"0.49221689",
"0.49177805",
"0.4916288",
"0.4879487",
"0.48764247",
"0.4848359",
"0.48418394",
"0.4839934",
"0.48001218",
"0.47854304",
"0.47774586",
"0.4769916",
"0.4768264",
"0.4763649",
"0.47514138",
"0.47426313",
"0.47377962",
"0.47290432",
"0.47231412",
"0.47210816",
"0.47120357",
"0.4698867",
"0.46918473",
"0.46885356",
"0.46876177",
"0.46832824",
"0.4682038",
"0.46778738",
"0.4673795",
"0.4671271",
"0.46708643",
"0.46563995",
"0.46523687",
"0.46515706",
"0.46510673",
"0.46356",
"0.4635026",
"0.46295005",
"0.46253347",
"0.4621146",
"0.4619887",
"0.46165973",
"0.46099514",
"0.4608025",
"0.46073824",
"0.46037135",
"0.46024293",
"0.45990798",
"0.4598919",
"0.45958298",
"0.4594408",
"0.459194",
"0.4581091",
"0.4577609",
"0.45739654",
"0.45730737",
"0.45715785",
"0.45627365",
"0.45621574",
"0.45400774",
"0.45394906",
"0.45374793",
"0.45336846",
"0.45324916",
"0.45319095",
"0.4530496",
"0.45285589",
"0.4528024",
"0.45253152",
"0.45238373",
"0.45228276",
"0.45224372",
"0.4519264",
"0.45177245",
"0.45115116",
"0.44971144",
"0.44920662",
"0.4491175"
] | 0.5535434 | 1 |
/ Returns the set of all nouns. | public Set<String> nouns() {
return sNounSet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Set<String> nouns() {\n HashSet<String> set = new HashSet<String>();\n for (TreeSet<String> hs: synsets.values()) {\n for (String s: hs) {\n set.add(s);\n }\n }\n return set;\n }",
"public Set<String> nouns() {\n return nounSet;\n }",
"public Iterable<String> nouns()\n {\n return synsetHash.keySet();\n }",
"public Iterable<String> nouns() {\n return synsetList.keySet();\n }",
"public Iterable<String> nouns() {\n Stack<String> iter = new Stack<>();\n for (String ss : synsetsStrToNum.keySet())\n iter.push(ss);\n return iter;\n }",
"public Iterable<String> nouns() {\n return nounMap.keySet();\n }",
"public Iterable<String> nouns() {\n\t\treturn nouns.keySet();\n\t}",
"public Iterable<String> nouns() {\n return nounsMap.keySet();\n }",
"public Set<String> nouns() {\n return nouns;\n }",
"public Iterable<String> nouns() {\n\t\treturn nounToId.keySet();\n\t}",
"public Set<String> nouns() {\n return wnetsi.keySet();\n }",
"public Iterable<String> nouns() {\n return data.keySet();\n }",
"public Iterable<String> nouns(){\n return this.nounToIdMap.keySet();\n }",
"public Iterable<String> nouns()\n {\n return h.navigableKeySet();\n }",
"public Iterable<String> nouns(){\n List<String> ReturnType = new ArrayList<String>();\n for(int i =0; i< SynSets.length; i++)\n ReturnType.add(SynSets[i][0]);\n return ReturnType;\n }",
"public ArrayList<String> getNouns(HashMap<String, String> simplePOSTagged) {\n ArrayList nouns = new ArrayList();\n for(String word: simplePOSTagged.keySet()){\n if (simplePOSTagged.get(word).equals(\"noun\")){\n nouns.add(word);\n }\n }\n return nouns;\n }",
"public Set<String> hyponyms(String word) {\n Set<String> hyponyms = new HashSet<String>();\n Set<Integer> ids = new HashSet<Integer>();\n for (Integer key: synsetNouns.keySet()) {\n if (synsetNouns.get(key).contains(word)) {\n ids.add(key);\n }\n }\n Set<Integer> descendants = GraphHelper.descendants(hyponym, ids);\n for (Integer j: descendants) {\n for (String value: synsetNouns.get(j)) {\n hyponyms.add(value);\n }\n }\n return hyponyms;\n }",
"public void getNounPhrases(Parse p) {\n if (p.getType().equals(\"NN\") || p.getType().equals(\"NNS\") || p.getType().equals(\"NNP\") \n || p.getType().equals(\"NNPS\")) {\n nounPhrases.add(p.getCoveredText()); //extracting the noun parse\n }\n \n if (p.getType().equals(\"VB\") || p.getType().equals(\"VBP\") || p.getType().equals(\"VBG\")|| \n p.getType().equals(\"VBD\") || p.getType().equals(\"VBN\")) {\n \n verbPhrases.add(p.getCoveredText()); //extracting the verb parse\n }\n \n for (Parse child : p.getChildren()) {\n getNounPhrases(child);\n }\n}",
"String getSynonyms();",
"protected Iterator getNominationsSet() \n {\n return this.nominations.iterator();\n }",
"public Set<String> hyponyms(String word) {\n HashSet<String> allhyponyms = new HashSet<String>();\n int maxV = synset.size();\n // int maxV = 0;\n // for (Integer i : synset.keySet()) {\n // if (maxV < i) {\n // maxV = i;\n // }\n // }\n // maxV += 1;\n Digraph digraph = new Digraph(maxV);\n\n // ArrayList<Integer> hypoKeys = new ArrayList<Integer>();\n // for (int i = 0; i < hyponym.size(); i++) {\n // hypoKeys.add(hyponym.get(0).get(i));\n // }\n \n for (ArrayList<Integer> a : hyponym) {\n int key = a.get(0);\n for (int j = 1; j < a.size(); j++) {\n digraph.addEdge(key, a.get(j));\n }\n }\n\n // get synonyms (in same synset), ex. given \"jump\", will get \"parachuting\" as well as \"leap\"\n ArrayList<String> strArray = new ArrayList<String>();\n for (Integer k : getSynsetKeys(word)) {\n strArray.addAll(synset.get(k));\n }\n for (String str : strArray) {\n allhyponyms.add(str);\n }\n\n // for each int from set<int> with all synset IDS\n for (Integer s : GraphHelper.descendants(digraph, getSynsetKeys(word))) {\n for (String t : synset.get(s)) {\n allhyponyms.add(t);\n }\n }\n return allhyponyms;\n }",
"public static void getNounList()throws Exception{\r\n\t\tSystem.out.println(\"Start loading noun dictionary into memory...\");\r\n\t\tBufferedReader nounReader = new BufferedReader(new FileReader(NOUN_DICT));\r\n\t\tString line = null;\r\n\t\twhile((line = nounReader.readLine())!=null){\r\n\t\t\tline = line.toLowerCase();\r\n\t\t\tnounList.add(line);\r\n\t\t\tnounSet.add(line);\r\n\t\t}\r\n\t\tnounReader.close();\r\n\t\tSystem.out.println(\"Noun dictionary loaded.\");\r\n\t}",
"public Set<String> hyponyms(String word) {\n HashSet<String> set = new HashSet<String>();\n for (Integer id: synsets.keySet()) {\n TreeSet<String> hs = synsets.get(id);\n if (hs.contains(word)) {\n for (String s: hs) {\n set.add(s);\n }\n TreeSet<Integer> ids = new TreeSet<Integer>();\n ids.add(id);\n Set<Integer> desc = GraphHelper.descendants(dg, ids);\n for (Integer i: desc) {\n for (String s: synsets.get(i)) {\n set.add(s);\n }\n }\n }\n }\n return set;\n }",
"public Set<String> getWords() {\n return wordMap.keySet();\n }",
"public Set<String> getWords() {\n\t\treturn Collections.unmodifiableSet(this.invertedIndex.keySet());\n\t}",
"public boolean isNoun (String word){\n for(int i = 0; i< SynSets.length; i++){\n if(SynSets[0][1].contains(\" \"+word+\" \")) return true;\n }\n return false;\n }",
"public Set<String> getWords() {\n return wordsOccurrences.keySet();\n }",
"@Override\n\tpublic Set<String> getWordSet() {\n\t\tlock.lockReadOnly();\n\t\ttry {\n\t\t\treturn super.getWordSet();\n\t\t} finally {\n\t\t\tlock.unlockReadOnly();\n\t\t}\n\t}",
"public static Set<String> getEnglishWords()\n{\n return english_words;\n}",
"public Set<String> hyponyms(String word) {\n Set<Integer> synIDs = new TreeSet<Integer>();\n Set<Integer> synKeys = synsetMap.keySet();\n for (Integer id : synKeys) {\n if (synsetMap.get(id).contains(word)) {\n synIDs.add(id);\n }\n }\n Set<Integer> hypIDs = GraphHelper.descendants(g, synIDs);\n Set<String> result = new TreeSet<String>();\n\n for (Integer i : hypIDs) {\n ArrayList<String> al = synsetMap.get(i);\n result.addAll(al);\n }\n return result;\n }",
"public Set<String> hyponyms(String word) {\n hypernymSet = new TreeSet<String>();\n firstsIDset = new HashSet<Integer>();\n for (String[] synStrings : sFile.values()) {\n for (String synset : synStrings) {\n if (synset.equals(word)) {\n for (String synset2 : synStrings) {\n hypernymSet.add(synset2);\n }\n for (Integer key : sFile.keySet()) {\n if (sFile.get(key).equals(synStrings)) {\n firstsIDset.add(key);\n }\n }\n }\n }\n }\n\n sIDset = GraphHelper.descendants(theDigraph, firstsIDset);\n for (Integer id : sIDset) {\n synsetWordStrings = sFile.get(id);\n for (String word2 : synsetWordStrings) {\n hypernymSet.add(word2);\n }\n }\n return hypernymSet;\n }",
"static TreeSet<Noun> parseNouns(Scanner data, int declension){\n\t\tassert(declension != Values.INDEX_ENDINGS_DECLENSION_THIRD && declension != Values.INDEX_ENDINGS_DECLENSION_THIRD_I_N && declension != Values.INDEX_ENDINGS_DECLENSION_THIRD_I_N); //there's a separate function for these guys.\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Noun> output = new TreeSet<Noun>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.NOUN_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tString nominative = null;\n\t\t\tString genitive = null;\n\t\t\tchar gender = '-';\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\n\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\tchapter = Integer.parseInt(current[0]);\n\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t} catch(NumberFormatException e){ //can happen if a chapter isn't specified. Read the noun from a null chapter.\n\t\t\t\tchapter = Values.CHAPTER_VOID;\n\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\tint genderIndex = Values.getGenderIndex(gender);\n\t\t\ttrimAll(definitions);\n\t\t\tNoun currentNoun = new Noun(nominative, genitive, chapter, genderIndex, declension, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentNoun);\n\t\t\toutput.add(currentNoun);\n\t\t}\n\n\t\treturn output;\n\t}",
"public Set<NounPhrase> getEntities(String type){\n\t\tif(type.equals(\"S\") || type.equals(\"s\"))\n\t\t\treturn this.subjectSet;\n\t\telse if(type.equals(\"O\") || type.equals(\"o\"))\n\t\t\treturn this.objectSet;\n\t\telse\n\t\t\treturn null;\n\t}",
"Collection<? extends Noun> getIsEquivalent();",
"public boolean isNoun(String noun) {\n for (TreeSet<String> hs: synsets.values()) {\n for (String s: hs) {\n if (noun.equals(s)) {\n return true;\n }\n }\n }\n return false;\n }",
"public Set<String> loadAllSubstanceNames();",
"private Set<Integer> getSynsetKeys(String word) {\n HashSet<Integer> kset = new HashSet<Integer>();\n\n for (ArrayList<String> o : synsetRev.keySet()) {\n for (String p : o) {\n if (p.equals(word)) {\n kset.add(synsetRev.get(o));\n }\n }\n }\n return kset;\n }",
"public Collection<Term> getAll() {\n\t\treturn terms.values();\n\t}",
"public Set<String> honorifics();",
"public java.util.List<String> getSynonyms() {\n return synonyms;\n }",
"public Collection<String> words() {\n Collection<String> words = new ArrayList<String>();\n TreeSet<Integer> keyset = new TreeSet<Integer>();\n keyset.addAll(countToWord.keySet());\n for (Integer count : keyset) {\n words.addAll(this.countToWord.get(count));\n }\n return words;\n }",
"private void fillSet() {\r\n\t\tString regex = \"\\\\p{L}+\";\r\n\t\tMatcher matcher = Pattern.compile(regex).matcher(body);\r\n\t\twhile (matcher.find()) {\r\n\t\t\tif (!matcher.group().isEmpty()) {\r\n\t\t\t\twords.add(matcher.group());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Set<String> hyponyms(String word) {\n Set<Integer> wordIds = revrseSynsetMapper.get(word);\n Set<String> superSet = new HashSet<String>();\n Set<Integer> descendant = GraphHelper.descendants(hypGraph, wordIds);\n Iterator<Integer> iter = descendant.iterator();\n while (iter.hasNext()) {\n Set<String> string_word = synsetMapper.get(iter.next());\n Iterator<String> A = string_word.iterator();\n while (A.hasNext()) {\n superSet.add(A.next());\n }\n }\n return superSet;\n }",
"public List<String> getSynonyms() {\n return synonyms;\n }",
"public List<String> getAllWords() {\n List<String> words = new ArrayList<>();\n // get the words to the list\n getAllWords(root, \"\", 0, words);\n // and return the list of words\n return words;\n }",
"public List<String> findAllSynonyms(String gene){\n\t\tList<String> synonyms = new ArrayList<String> ();\n\t\tif (this.termSet.contains(gene)){\n\t\t\tMap<String,List<String>> geneSynonyms = this.synonymDictionary.get(gene);\n\t\t\tSet<String> keys = geneSynonyms.keySet();\n\t\t\tfor(String k:keys){\n\t\t\t\tList<String> subList = geneSynonyms.get(k);\n\t\t\t\tfor(String s:subList){\n\t\t\t\t\tsynonyms.add(s);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn synonyms;\n\t}",
"public List<Synset> getSynsets() {\n try {\n return Dictionary.getDefaultResourceInstance()\n .lookupIndexWord(WSDHelper.getPOS(this.getTargetTag()),\n this.getTargetWord())\n .getSenses();\n } catch (JWNLException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public Set<NounPhrase> getOpSet(){\n\t\tSet<NounPhrase> opSet = this.getEntConsiderPass(\"O\");\n\t\treturn opSet;\n\t}",
"Set<String> getNames();",
"public ArrayList<String> getPronouns(HashMap<String, String> simplePOSTagged) {\n ArrayList pron = new ArrayList();\n for(String word: simplePOSTagged.keySet()){\n if (simplePOSTagged.get(word).equals(\"pron\")){\n pron.add(word);\n }\n }\n return pron;\n }",
"public Set<String> hyponyms(String word) {\n Set<String> toReturn = new HashSet<String>();\n Set<Integer> wordIndexes = new HashSet<Integer>();\n wordIndexes = wnetsi.get(word);\n Set<Integer> toReturnInt = GraphHelper.descendants(g, wordIndexes);\n Object[] returnArray = toReturnInt.toArray();\n for (int i = 0; i < returnArray.length; i += 1) {\n Set<String> stringReturn = wnetis.get(returnArray[i]);\n Iterator<String> strIter = stringReturn.iterator();\n while (strIter.hasNext()) {\n toReturn.add(strIter.next());\n }\n }\n return toReturn;\n }",
"public static List<Synset> getAllHyponymSynset(IndexWord word) throws JWNLException {\n List<Synset> result=new ArrayList<>();\n\n for(Synset wordSynset:word.getSenses()){\n PointerTargetTree hyponyms = PointerUtils.getInstance().getHyponymTree(wordSynset,4);\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n LinkedList<PointerTargetTreeNode> stack = new LinkedList<>();\n if(rootnode==null){\n return result;\n }\n stack.add(rootnode);\n while(!stack.isEmpty()){\n PointerTargetTreeNode node = stack.pollLast();\n result.add(node.getSynset());\n PointerTargetTreeNodeList childList = node.getChildTreeList();\n if(childList!=null){\n for(int i=0;i<childList.size();i++){\n stack.add((PointerTargetTreeNode)childList.get(i));\n }\n }\n\n }\n\n }\n\n return result;\n }",
"public static List<Synset> getAllMeronymSynset(IndexWord word) throws JWNLException {\n List<Synset> result=new ArrayList<>();\n\n for(Synset wordSynset:word.getSenses()){\n PointerTargetTree hyponyms = PointerUtils.getInstance().getInheritedMeronyms(wordSynset,4,4);\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n LinkedList<PointerTargetTreeNode> stack = new LinkedList<>();\n if(rootnode==null){\n return result;\n }\n stack.add(rootnode);\n while(!stack.isEmpty()){\n PointerTargetTreeNode node = stack.pollLast();\n result.add(node.getSynset());\n PointerTargetTreeNodeList childList = node.getChildTreeList();\n if(childList!=null){\n for(int i=0;i<childList.size();i++){\n stack.add((PointerTargetTreeNode)childList.get(i));\n }\n }\n\n }\n\n }\n\n return result;\n }",
"@Override\n\tpublic Set<OWLEntity> getAllConcepts() {\n\t\tSet<OWLEntity> result = new HashSet<OWLEntity>();\n\t\tresult.addAll(ontology.getClassesInSignature());\n\t\tresult.addAll(ontology.getIndividualsInSignature());\n\t\treturn result;\n\t}",
"Set<String> tags();",
"public Set<String> getWordsFromWordPOSByPOSs(Set<String> POSTags) {\n\t\tSet<String> words = new HashSet<String>();\n\n\t\tif (POSTags == null) {\n\t\t\treturn words;\n\t\t}\n\n\t\tIterator<Entry<WordPOSKey, WordPOSValue>> iter = this\n\t\t\t\t.getWordPOSHolderIterator();\n\n\t\twhile (iter.hasNext()) {\n\t\t\tEntry<WordPOSKey, WordPOSValue> wordPOSEntry = iter.next();\n\t\t\tString POS = wordPOSEntry.getKey().getPOS();\n\t\t\tif (POSTags.contains(POS)) {\n\t\t\t\tString word = wordPOSEntry.getKey().getWord();\n\t\t\t\twords.add(word);\n\t\t\t}\n\t\t}\n\n\t\treturn words;\n\t}",
"private static void addAllSynset(ArrayList<String> synsets, String chw, IDictionary dictionary) {\n\t\tWordnetStemmer stemmer = new WordnetStemmer(dictionary);\n\t\tchw = stemmer.findStems(chw, POS.NOUN).size()==0?chw:stemmer.findStems(chw, POS.NOUN).get(0);\n\t\t\n\t\tIIndexWord indexWord = dictionary.getIndexWord(chw, POS.NOUN);\n\t\tList<IWordID> sensesID = indexWord.getWordIDs();\n\t\tList<ISynsetID> relaWordID = new ArrayList<ISynsetID>();\n\t\tList<IWord> words;\n\t\t\n\t\tfor(IWordID set : sensesID) {\n\t\t\tIWord word = dictionary.getWord(set);\n\t\t\t\n\t\t\t//Add Synonym\n\t\t\trelaWordID.add(word.getSynset().getID());\n\n\t\t\t//Add Antonym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.ANTONYM));\n\t\t\t\n\t\t\t//Add Meronym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.MERONYM_MEMBER));\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.MERONYM_PART));\n\t\t\t\n\t\t\t//Add Hypernym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.HYPERNYM));\n\t\t\t\n\t\t\t//Add Hyponym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.HYPONYM));\n\t\t}\n\t\t\n\t\tfor(ISynsetID sid : relaWordID) {\n\t\t\twords = dictionary.getSynset(sid).getWords();\n\t\t\tfor(Iterator<IWord> i = words.iterator(); i.hasNext();) {\n\t\t\t\tsynsets.add(i.next().getLemma());\n\t\t\t}\n\t\t}\n\t}",
"public abstract Set<String> getTerms(Document doc);",
"SortedSet<String> getNames();",
"@ApiOperation(value = \"/get_all_UserNoun\", httpMethod = \"GET\",\n\tnotes = \"special search that gets all values of UserNoun\",\n\tresponse = UserNoun.class)\n @ApiResponses(value = {\n\t\t@ApiResponse(code = 200, message =LoginACTSwaggerUIConstants.SUCCESS),\n\t @ApiResponse(code = 404, message = LoginACTSwaggerUIConstants.NOT_FOUND),\n\t @ApiResponse(code = 500, message = LoginACTSwaggerUIConstants.INTERNAL_SERVER_ERROR),\n\t @ApiResponse(code = 400, message = LoginACTSwaggerUIConstants.BAD_REQUEST),\n\t @ApiResponse(code = 412, message = LoginACTSwaggerUIConstants.PRE_CONDITION_FAILED) })\n\n\n\t@RequestMapping(method = RequestMethod.GET,value = \"/get_all_UserNoun\" ,headers=\"Accept=application/json\")\n @ResponseBody\n\tpublic List<UserNoun> get_all_UserNoun() throws Exception {\n\t\t log.setLevel(Level.INFO);\n\t log.info(\"get_all_UserNoun controller started operation!\");\n\n\t\tList<UserNoun> UserNoun_list = new ArrayList<UserNoun>();\n\n\t\tUserNoun_list = UserNoun_service.get_all_usernoun();\n\t\tlog.info(\"Object returned from get_all_UserNoun method !\");\n\t\treturn UserNoun_list;\n\n\n\t}",
"@SuppressWarnings(\"unchecked\")\r\npublic static void ruleResolvePronouns(AnnotationSet basenp, Document doc)\r\n{\n Annotation[] basenpArray = basenp.toArray();\r\n\r\n // Initialize coreference clusters\r\n int maxID = basenpArray.length;\r\n\r\n // Create an array of pointers\r\n // clust = new UnionFind(maxID);\r\n fvm = new RuleResolvers.FeatureVectorMap();\r\n ptrs = new int[maxID];\r\n clusters = new HashSet[maxID];\r\n for (int i = 0; i < clusters.length; i++) {\r\n ptrs[i] = i;\r\n HashSet<Annotation> cluster = new HashSet<Annotation>();\r\n cluster.add(basenpArray[i]);\r\n clusters[i] = cluster;\r\n }\r\n Annotation zero = new Annotation(-1, -1, -1, \"zero\");\r\n\r\n for (int i = 1; i < basenpArray.length; i++) {\r\n Annotation np2 = basenpArray[i];\r\n if (FeatureUtils.isPronoun(np2, doc)) {\r\n Annotation ant = ruleResolvePronoun(basenpArray, i, doc);\r\n if (ant != null) {\r\n np2.setProperty(Property.PRO_ANTES, ant);\r\n }\r\n else {\r\n np2.setProperty(Property.PRO_ANTES, zero);\r\n }\r\n }\r\n }\r\n}",
"public Set<Mention> mentions();",
"static TreeSet<Noun> parse3rdNouns(Scanner data){\n\n\t\tint declension = 3;\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Noun> output = new TreeSet<Noun>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.NOUN_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tString nominative = null;\n\t\t\tString genitive = null;\n\t\t\tchar gender = '-';\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\t\t\ttry{\n\t\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\t\tchapter = Integer.parseInt(current[0]);\n\t\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t\t\tdeclension = Values.INDEX_ENDINGS_DECLENSION_THIRD;\n\t\t\t\t\t//System.out.println(\"No i-stem\");\n\t\t\t\t} catch(NumberFormatException e){ //I-Stem.\n\t\t\t\t\tchapter = Integer.parseInt(current[0].substring(0, 2));\n\t\t\t\t\tnominative = current[1].split(\", \")[0];\n\t\t\t\t\tgenitive = current[1].split(\", \")[1];\n\t\t\t\t\tgender = current[1].split(\", \")[2].charAt(0);\n\t\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t\t\tdeclension = Values.INDEX_ENDINGS_DECLENSION_THIRD_I;\n\t\t\t\t\t//System.out.println(\"i-stem\");\n\t\t\t\t}\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\tint genderIndex = Values.getGenderIndex(gender);\n\t\t\ttrimAll(definitions);\n\t\t\tNoun currentNoun = new Noun(nominative, genitive, chapter, genderIndex, declension, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentNoun);\n\t\t\toutput.add(currentNoun);\n\t\t}\n\n\t\treturn output;\n\t}",
"private boolean SetRootOfSynset() {\t\t\r\n\t\tthis.roots = new ArrayList<ISynsetID>();\r\n\t\tISynset\tsynset = null;\r\n\t\tIterator<ISynset> iterator = null;\r\n\t\tList<ISynsetID> hypernyms =\tnull;\r\n\t\tList<ISynsetID>\thypernym_instances = null;\r\n\t\titerator = dict.getSynsetIterator(POS.NOUN);\r\n\t\twhile(iterator.hasNext())\r\n\t\t{\r\n\t\t\tsynset = iterator.next();\r\n \t\t\thypernyms =\tsynset.getRelatedSynsets(Pointer.HYPERNYM);\t\t\t\t\t// !!! if any of these point back (up) to synset then we have an inf. loop !!!\r\n \t\t\thypernym_instances = synset.getRelatedSynsets(Pointer.HYPERNYM_INSTANCE);\r\n \t\t\tif(hypernyms.isEmpty() && hypernym_instances.isEmpty())\r\n \t\t\t{\r\n\t\t\t\tthis.roots.add(synset.getID());\r\n\t\t\t}\r\n\t\t}\r\n\t\titerator = this.dict.getSynsetIterator(POS.VERB);\r\n\t\twhile(iterator.hasNext())\r\n\t\t{\r\n\t\t\tsynset = iterator.next();\r\n \t\t\thypernyms =\tsynset.getRelatedSynsets(Pointer.HYPERNYM);\t\t\t\t\t// !!! if any of these point back (up) to synset then we have an inf. loop !!!\r\n \t\t\thypernym_instances = synset.getRelatedSynsets(Pointer.HYPERNYM_INSTANCE);\r\n \t\t\tif(hypernyms.isEmpty() && hypernym_instances.isEmpty())\r\n \t\t\t{\r\n\t\t\t\tthis.roots.add(synset.getID());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ( this.roots.size() > 0 );\r\n\t}",
"Set<String> getDictionary();",
"private List<String> findSynonyms(String gene,String scope){\n\t\t\n\t\tList<String> li = new ArrayList<String> ();\n\t\t\n\t\tif (this.termSet.contains(gene)){\n\t\t\tfor (String str:this.synonymDictionary.get(gene).get(scope)){\n\t\t\t\tli.add(str);\n\t\t\t};\n\t\t}\n\t\treturn li;\n\t\n\t}",
"private HashSet<String> buildsetofterms(String filename)\r\n\t{\r\n\t\tString readLine, terms[];\r\n HashSet<String> fileTerms = new HashSet<String>();\r\n try \r\n {\r\n BufferedReader reader = new BufferedReader(new FileReader(filename));\r\n while ((readLine = reader.readLine()) != null)\r\n {\r\n terms = (readLine.toLowerCase().replaceAll(\"[.,:;'\\\"]\", \" \").split(\" +\"));\r\n for (String term : terms)\r\n {\r\n if (term.length() > 2 && !term.equals(\"the\"))\r\n fileTerms.add(term);\r\n }\r\n }\r\n }\r\n catch(IOException e){\r\n e.printStackTrace();\r\n }\r\n return fileTerms;\r\n }",
"public Set<String> getDistinctTagLabels(){\r\n\t\treturn new HashSet<String>(taggingService.getDistinctTagLabels());\r\n\t}",
"public static ArrayList<String> pronouns() {\n ArrayList<String> temp = new ArrayList<String>();\n Scanner pronouner;\n try {\n pronouner = new Scanner(new File(\"pronouns.txt\"));\n pronouner.useDelimiter(\", *\");\n while (pronouner.hasNext()){\n temp.add(\" \"+pronouner.next()+\" \");\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }",
"public String outcast(String[] nouns){\n if (nouns == null) {\n throw new IllegalArgumentException();\n }\n sum = new int[nouns.length];\n int maxIdx = -1;\n for (int i = 0; i < nouns.length; i++) {\n for (int j = 0; j < nouns.length; j++) {\n sum[i] += wn.distance(nouns[i], nouns[j]);\n }\n //System.out.println(sum[i]);\n maxIdx = maxIdx==-1? i : sum[maxIdx] < sum[i] ? i : maxIdx;\n }\n\n return nouns[maxIdx];\n }",
"public void setNoms(){\r\n\t\tDSElement<Verbum> w = tempWords.first;\r\n\t\tint count = tempWords.size(); // failsafe counter\r\n\t\twhile(count > 0){\r\n\t\t\tGetNom(w.getItem());\r\n\t\t\t//System.out.println(w.getItem().nom);\r\n\t\t\tw = w.getNext();\r\n\t\t\tif(w == null)\r\n\t\t\t\tw = tempWords.first;\r\n\t\t\tcount--;\r\n\t\t}\r\n\t}",
"public Set<String> nGramGenerator(String sentence, int minGram, int maxGram, boolean unigrams) {\n Set<String> out = new HashSet();\n try {\n StringReader reader = new StringReader(sentence);\n StandardTokenizer source = new StandardTokenizer(LUCENE_VERSION, reader);\n TokenStream tokenStream = new StandardFilter(LUCENE_VERSION, source);\n try (ShingleFilter sf = new ShingleFilter(tokenStream, minGram, maxGram)) {\n sf.setOutputUnigrams(unigrams);\n\n CharTermAttribute charTermAttribute = sf.addAttribute(CharTermAttribute.class);\n sf.reset();\n\n while (sf.incrementToken()) {\n out.add(charTermAttribute.toString());\n }\n\n sf.end();\n }\n\n } catch (IOException ex) {\n logger.log(Level.SEVERE, null, ex);\n }\n\n return out;\n }",
"Set<Keyword> listKeywords();",
"public boolean isNoun(String word) {\n return synsetList.containsKey(word);\n }",
"public static Set<String> getPseudos() {\n return pseudos;\n }",
"public List<String> findNarrowSynonyms(String gene){\n\t\t\n\t\treturn findSynonyms(gene, \"narrow\");\n\t}",
"public Set<Character> distincts() {\n return jumble.keySet();\n }",
"static Set<NLMeaning> extractMeanings(NLText nlText) {\n\t\tSet<NLMeaning> meanings = new HashSet();\n\t\t\n\t\tList<NLSentence> sentences = nlText.getSentences();\n\t\tNLSentence firstSentence = sentences.iterator().next();\n\t\tList<NLToken> tokens = firstSentence.getTokens();\n\t\tList<NLMultiWord> multiWords = firstSentence.getMultiWords();\n\t\tList<NLNamedEntity> namedEntities = firstSentence.getNamedEntities();\n\t\t\n\t\t// Add meanings of all tokens that are not part of multiwords or NEs\n\t\tIterator<NLToken> itToken = tokens.iterator();\n\t\twhile (itToken.hasNext()) {\n\t\t\tSet<NLMeaning> tokenMeanings = getTokenMeanings(itToken.next());\n\t\t\tif (tokenMeanings != null) {\n\t\t\t\tmeanings.addAll(tokenMeanings);\t\t\t\n\t\t\t}\n//\t\t\tNLToken token = itToken.next();\n//\t\t\tboolean hasMultiWords = token.getMultiWords() != null && !token.getMultiWords().isEmpty();\n//\t\t\tboolean hasNamedEntities = token.getNamedEntities() != null && !token.getNamedEntities().isEmpty();\n//\t\t\tif (!hasMultiWords && !hasNamedEntities) {\n//\t\t\t\tif (token.getMeanings() == null || token.getMeanings().isEmpty()) {\n//\t\t\t\t\t// This is a hack to handle a bug where the set of meanings\n//\t\t\t\t\t// is empty but there is a selected meaning.\n//\t\t\t\t\t\n//\t\t\t\t\tNLMeaning selectedMeaning = token.getSelectedMeaning();\n//\t\t\t\t\tif (selectedMeaning != null) {\n//\t\t\t\t\t\tmeanings.add(selectedMeaning);\n//\t\t\t\t\t}\n//\t\t\t\t} else {\n//\t\t\t\t\tmeanings.addAll(token.getMeanings());\n//\t\t\t\t}\n//\t\t\t}\n\t\t}\n\t\t\n\t\t// Add meanings of multiwords and NEs\n\t\tIterator<NLMultiWord> itMultiWord = multiWords.iterator();\n\t\twhile (itMultiWord.hasNext()) {\n\t\t\tNLMultiWord multiWord = itMultiWord.next();\n\t\t\tmeanings.addAll(multiWord.getMeanings());\n\t\t}\n\t\tIterator<NLNamedEntity> itNamedEntity = namedEntities.iterator();\n\t\twhile (itNamedEntity.hasNext()) {\n\t\t\tNLNamedEntity namedEntity = itNamedEntity.next();\n\t\t\tmeanings.addAll(namedEntity.getMeanings());\n\t\t}\n\t\t\n\t\treturn meanings;\n\t}",
"public static Set<String> createSet() {\n Set<String> set = new HashSet<>();\n set.add(\"lesson\");\n set.add(\"large\");\n set.add(\"link\");\n set.add(\"locale\");\n set.add(\"love\");\n set.add(\"light\");\n set.add(\"limitless\");\n set.add(\"lion\");\n set.add(\"line\");\n set.add(\"lunch\");\n set.add(\"level\");\n set.add(\"lamp\");\n set.add(\"luxurious\");\n set.add(\"loop\");\n set.add(\"last\");\n set.add(\"lie\");\n set.add(\"lose\");\n set.add(\"lecture\");\n set.add(\"little\");\n set.add(\"luck\");\n\n return set;\n }",
"public Set<OntologyScope> getRegisteredScopes();",
"public List getNominations() \n {\n final ArrayList newList = new ArrayList();\n CollectionPerformer aPerformer = new CollectionPerformer()\n {\n public void performBlock(Object listElement, Object keyValue)\n {\n newList.add(listElement);\n }\n };\n aPerformer.perform(this.nominations);\n return Collections.unmodifiableList(newList);\n }",
"@ZAttr(id=1073)\n public String[] getPrefSpellIgnoreWord() {\n return getMultiAttr(Provisioning.A_zimbraPrefSpellIgnoreWord);\n }",
"public Set<String> asList() {\n\t\treturn this.dictionary;\n\t}",
"public List<String> exhaustedSearchSynonyms(String gene){\n\t\tfor(String term:this.termSet){\n\t\t\tif (term.contains(gene)){\n\t\t\t\treturn findAllSynonyms(term);\n\t\t\t}\n\t\t}\n\t\treturn new ArrayList<String> ();\n\t}",
"public Set<String> getNLeastDistant(String word, int n) {\n\t\tthis.currentWord = word;\n\t\tSet<String> chosenCandidates = new HashSet<String>();\n\t\tPriorityQueue<String> candidates = new PriorityQueue<String>(dict.size(), new getNLeastDistantComparator());\n\t\tfor (String term : dict.keySet()) {\n\t\t\tcandidates.add(term);\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tchosenCandidates.add(candidates.poll());\n\t\t}\n\t\treturn chosenCandidates;\n\t}",
"private void getSynsets(HashSet<WordProvider.Word> words) {\n HashMap<String, String> synsets_map = new HashMap<>();\n for (WordProvider.Word word: words) {\n ArrayList<String> synsetList = new ArrayList<>(Arrays.asList(word.getSynsets().trim().split(\" \")));\n for (String synset_tag: synsetList)\n synsets_map.put(synset_tag, word.getPos());\n }\n // for each synset load the meanings in the background\n final Object[] params= {synsets_map};\n new FetchRows().execute(params);\n }",
"public boolean isNoun(String word) {\n return sNounSet.contains(word);\n }",
"@NotNull\n @Generated\n @Selector(\"tags\")\n public native NSSet<String> tags();",
"public Set<Note> getNoteSet();",
"public List<Ninja> allNinjas() {\n\t\t\t\treturn ninjaRepo.findAll();\n\t\t\t}",
"public static void main(final String[] args)\r\n {\r\n // Set the path to the data files\r\n Dictionary.initialize(\"c:/Program Files/WordNet/2.1/dict\");\r\n \r\n // Get an instance of the Dictionary object\r\n Dictionary dict = Dictionary.getInstance();\r\n \r\n // Declare a filter for all terms starting with \"car\", ignoring case\r\n TermFilter filter = new WildcardFilter(\"car*\", true);\r\n \r\n // Get an iterator to the list of nouns\r\n Iterator<IndexTerm> iter = \r\n dict.getIndexTermIterator(PartOfSpeech.NOUN, 1, filter);\r\n \r\n // Go over the list items\r\n while (iter.hasNext())\r\n {\r\n // Get the next object\r\n IndexTerm term = iter.next();\r\n \r\n // Write out the object\r\n System.out.println(term.toString());\r\n \r\n // Write out the unique pointers for this term\r\n int nNumPtrs = term.getPointerCount();\r\n if (nNumPtrs > 0)\r\n {\r\n // Print out the number of pointers\r\n System.out.println(\"\\nThis term has \" + Integer.toString(nNumPtrs) +\r\n \" pointers\");\r\n \r\n // Print out all of the pointers\r\n String[] ptrs = term.getPointers();\r\n for (int i = 0; i < nNumPtrs; ++i)\r\n {\r\n String p = Pointer.getPointerDescription(term.getPartOfSpeech(), ptrs[i]);\r\n System.out.println(ptrs[i] + \": \" + p);\r\n }\r\n }\r\n \r\n // Get the definitions for this term\r\n int nNumSynsets = term.getSynsetCount();\r\n if (nNumSynsets > 0)\r\n {\r\n // Print out the number of synsets\r\n System.out.println(\"\\nThis term has \" + Integer.toString(nNumSynsets) +\r\n \" synsets\");\r\n \r\n // Print out all of the synsets\r\n Synset[] synsets = term.getSynsets();\r\n for (int i = 0; i < nNumSynsets; ++i)\r\n {\r\n System.out.println(synsets[i].toString());\r\n }\r\n }\r\n }\r\n \r\n System.out.println(\"Demo processing finished.\");\r\n }",
"@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }",
"@Override\n\tpublic List<Nature> findNaturesIn() {\n\t\treturn natureRepository.findNaturesIn();\n\t}",
"public ArrayList<String> getWords() {\n return new ArrayList<>(words);\n }",
"public static void getSynonyms(ArrayList<String> keywords) {\n final String endpoint = \"http://www.dictionaryapi.com/api/v1/references/collegiate/xml/\";\n final String key = \"79b70eee-858c-486a-b155-a44db036bfe0\";\n try {\n for (String keyword : keywords) {\n String url = endpoint + keyword + \"?key=\" + key;\n System.out.print(\"url--\" + url);\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n String inputLine;\n StringBuffer response = new StringBuffer();\n\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n\n //print result\n System.out.println(response.toString());\n\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder;\n InputSource is;\n try {\n builder = factory.newDocumentBuilder();\n is = new InputSource(new StringReader(response.toString()));\n Document doc = builder.parse(is);\n NodeList list = doc.getElementsByTagName(\"syn\");\n System.out.println(\"synonyms\" + list.item(0).getTextContent());\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n WordNet tester = new WordNet(\"synsets.txt\", \"hypernyms.txt\");\n StdOut.println(\n \"isNoun test: This should return true and it returns \" + tester.isNoun(\"mover\"));\n StdOut.println(\"distance test: This should return 3 and it returns \" + tester\n .distance(\"African\", \"renegade\"));\n StdOut.println(\n \"sca test: This should return person individual someone somebody mortal soul and it returns \"\n + tester\n .sca(\"African\", \"renegade\"));\n\n // Commented because output is large\n //StdOut.println(\"nouns test: This should return all of the nouns and it returns \" + tester.nouns());\n\n }",
"Collection<String> names();",
"public List<HunspellAffix> getPrefixes() {\n return prefixes;\n }",
"public boolean isNoun(String word)\n {\n if (word == null) throw new NullPointerException();\n return synsetHash.containsKey(word);\n }",
"public Iterator getUnparsedEntityNames() {\n return Collections.EMPTY_LIST.iterator();\n }"
] | [
"0.8831834",
"0.8527938",
"0.83963203",
"0.8301906",
"0.826726",
"0.8241785",
"0.8219644",
"0.8215689",
"0.8159688",
"0.7954117",
"0.79155993",
"0.79063046",
"0.790294",
"0.7807326",
"0.76990277",
"0.6138356",
"0.6085979",
"0.60589516",
"0.6047883",
"0.5984802",
"0.59437203",
"0.59353775",
"0.5800681",
"0.5788576",
"0.57769305",
"0.5768274",
"0.5738226",
"0.572868",
"0.5728317",
"0.57203186",
"0.57193357",
"0.569702",
"0.56957805",
"0.5661547",
"0.5661219",
"0.5629826",
"0.5628643",
"0.5583138",
"0.5569697",
"0.5551984",
"0.5533814",
"0.55331624",
"0.5529875",
"0.55130005",
"0.5509448",
"0.54876274",
"0.54798096",
"0.54754466",
"0.5465634",
"0.5441701",
"0.5410312",
"0.53982973",
"0.5396485",
"0.53887266",
"0.53717405",
"0.53586835",
"0.5332223",
"0.5325732",
"0.5321453",
"0.5300772",
"0.5298116",
"0.5294577",
"0.52878606",
"0.5245526",
"0.52335846",
"0.52093154",
"0.52031195",
"0.5173246",
"0.5166847",
"0.51627743",
"0.51569104",
"0.51404864",
"0.5131115",
"0.5117372",
"0.51157606",
"0.5114648",
"0.50908184",
"0.5085077",
"0.50841725",
"0.50838625",
"0.50827426",
"0.5081345",
"0.5077796",
"0.5075084",
"0.5072465",
"0.5068495",
"0.5065749",
"0.5062521",
"0.5053019",
"0.5047997",
"0.5045527",
"0.50442743",
"0.50260496",
"0.50242895",
"0.5016308",
"0.501115",
"0.5009429",
"0.50035673",
"0.4993862",
"0.49910203"
] | 0.83996636 | 2 |
Returns true if WORD is a noun. WORD may be a collocation. | public boolean isNoun(String word) {
return sNounSet.contains(word);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isNoun(String word)\n {\n if (word == null) throw new NullPointerException();\n return synsetHash.containsKey(word);\n }",
"public boolean isNoun(String word) {\n if (word == null) throw new IllegalArgumentException();\n return synsetsStrToNum.containsKey(word);\n }",
"public boolean isNoun(String word) {\n\n\t\treturn nouns.containsKey(word);\n\t}",
"public boolean isNoun(String word) {\n if (word == null) {\n throw new IllegalArgumentException();\n }\n return nounMap.containsKey(word);\n }",
"public boolean isNoun(String word) {\n if (word == null) throw new IllegalArgumentException();\n return (data.containsKey(word));\n }",
"public boolean isNoun(String word) {\n return nounsMap.containsKey(word);\n }",
"public boolean isNoun(String word) {\n\t\tif (word == null)\n\t\t\tthrow new IllegalArgumentException(); \n\t\treturn nounToId.containsKey(word);\n\t}",
"public boolean isNoun(String word)\n {\n if (word==null) throw new IllegalArgumentException();\n return h.containsKey(word);\n }",
"public boolean isNoun(String word) {\n return synsetList.containsKey(word);\n }",
"public boolean isNoun(String word){\n return this.nounToIdMap.containsKey(word);\n }",
"public boolean isNoun (String word){\n for(int i = 0; i< SynSets.length; i++){\n if(SynSets[0][1].contains(\" \"+word+\" \")) return true;\n }\n return false;\n }",
"public boolean isNoun(String noun) {\n return wnetsi.containsKey(noun);\n }",
"private boolean isNoun(int i)\n\t{\n\t\tif (text.get(i).length() > 1) // Ensures word is more than one character\n\t\t{\n\t\t\tString prior = text.get(i-1);\n\t\t\tif (prior.charAt(0) == '\\\"' || prior.charAt(0) == '-' || prior.charAt(0) == '“') // Checks if \" or - is the char next to the word\n\t\t\t{\n\t\t\t\tif (text.get(i-2).charAt(0) == 10) // Checks if the char 2 spaces before the word is a newline character\n\t\t\t\t{\n\t\t\t\t\tfullStops.add(i); // Saves location for second pass\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (text.get(i-2).length() == 1 && text.get(i-3).length() == 1) // Checks if there is a one letter word before the space before the word\n\t\t\t\t{\n\t\t\t\t\tfullStops.add(i); // Saves location for second pass\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (text.get(i-3).charAt(0) == 13)\n\t\t\t\t{\n\t\t\t\t\tfullStops.add(i); // Saves location for second pass\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}\n\t\tif (prior.charAt(0) == ' ' && text.get(i-2).length() == 1 && text.get(i-2).charAt(0) != 'I') // Checks that word prior to word is not a type of full stop\n\t\t{\n\t\t\tfullStops.add(i); // Saves location for second pass\n\t\t\treturn false;\n\t\t}\n\t\tif (prior.charAt(0) == 10) //If char before word is a newline character then it is saved for another iteration\n\t\t{\n\t\t\tfullStops.add(i);\n\t\t\treturn false;\n\t\t}\n\n\t\tif (text.get(i).charAt(0) > 64 && text.get(i).charAt(0) < 91) // If starting character is uppercase then it is assumed to be a noun\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private boolean isNoun(String string){\n \t\tif (noun.contains(string))\n \t\t\treturn true;\n \t\treturn false;\n \t}",
"boolean hasWord();",
"public boolean isNoun(String noun) {\n return nouns.contains(noun);\n }",
"private static boolean isPronoun(AnalyzedTokenReadings[] tokens, int n) {\n return (tokens[n].getToken().matches(\"(d(e[mnr]|ie|as|e([nr]|ss)en)|welche[mrs]?|wessen|was)\")\n && !tokens[n - 1].getToken().equals(\"sowie\"));\n }",
"boolean checkPronoun(String headWord, Token token){\n\t\tif (Pronoun.isSomePronoun(headWord)){\n\t\t\tPronoun pn = Pronoun.valueOrNull(headWord);\n\t\t\tif (pn==null)\n\t\t\t\treturn false;\n\t\t\tif (pn.speaker == Pronoun.Speaker.FIRST_PERSON || pn.speaker == Pronoun.Speaker.SECOND_PERSON)\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\treturn true;\n\t\t} \n\t\treturn false;\n\t}",
"public boolean isNoun(String noun) {\n return nounSet.contains(noun);\n }",
"private boolean isWord(String word) {\n\t\treturn dict.isWord(word);\n\t}",
"public boolean isNoun(String noun) {\n for (TreeSet<String> hs: synsets.values()) {\n for (String s: hs) {\n if (noun.equals(s)) {\n return true;\n }\n }\n }\n return false;\n }",
"boolean isWord(String potentialWord);",
"default boolean isStopWord() {\n return meta(\"nlpcraft:nlp:stopword\");\n }",
"public static boolean containToken(String word) {\r\n\t\tfor (int i = 0; i < word.length(); i++) {\r\n\t\t\tif (!Character.isLetter(word.charAt(i))) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"boolean isNotKeyWord(String word);",
"private boolean matchesPlural(final String noun) {\n\t\tfinal boolean hasModernPlural\n\t\t\t\t= modernPlural != null && modernPlural.hasAffix(noun);\n\n\t\treturn hasModernPlural\n\t\t\t\t|| classicalPlural != null && classicalPlural.hasAffix(noun);\n\t}",
"public boolean isNthWord(String word, int n) {\n return !(n > size() || n <= 0) && words[n - 1].equalsIgnoreCase(word);\n }",
"protected boolean isChunkAtWordBoundary(TextChunk chunk, TextChunk previousChunk) {\r\n\t\treturn chunk.getLocation().isAtWordBoundary(previousChunk.getLocation());\r\n\t}",
"private boolean isWord(String word) {\n String pattern = \"^[a-zA-Z]+$\";\n if (word.matches(pattern)) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean hasWord() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@Override\n public boolean isWord(String s) {\n // TODO: Implement this method\n char[] c = s.toLowerCase().toCharArray();\n TrieNode predptr = root;\n for (int i = 0, n = c.length; i < n; i++) {\n TrieNode next = predptr.getChild(c[i]);\n if (next != null) {\n predptr = next;\n } else {\n return false;\n }\n\n }\n return predptr.endsWord();\n }",
"public static boolean isDoubloon (String word) {\n\n // convert to lowercase, set flag:\n word = word.toLowerCase();\n boolean flag = true;\n\n // Check for double pairs:\n for(int i=0; i<word.length(); i++) {\n int count=0;\n for(int j=0; j<word.length(); j++) {\n if(word.charAt(i)==word.charAt(j)) {count++;}\n }\n if (count != 2) {flag = false; break;}\n }\n return flag;\n }",
"public static Boolean hasWord(FeatureNode phr)\n\t{\n\t\tFeatureNode fn = phr.get(\"phr-head\");\n\t\twhile (fn != null)\n\t\t{\n\t\t\tFeatureNode word = fn.get(\"phr-word\");\n\t\t\tif (word != null) return true;\n\t\t\tfn = fn.get(\"phr-next\");\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasWord() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public static boolean IsWordChar(char ch)\n\t{\n\t\treturn CharInClass(ch, WordClass) || ch == ZeroWidthJoiner || ch == ZeroWidthNonJoiner;\n\t}",
"public static boolean isMixedCase(String word) {\n \t// Mixed case is a word where at least one character after the first is upper case.\n \tif(word.length() < 2)\n \t\treturn false;\n\n \tString word2 = word.substring(1);\n \treturn (!word.equals(word.toLowerCase()) && !word.equals(word.toUpperCase()) && !word2.equals(word2.toLowerCase()) && !word2.equals(word2.toUpperCase()));\n }",
"default boolean isFreeWord() {\n return meta(\"nlpcraft:nlp:freeword\");\n }",
"public boolean isDeActivationString(String word);",
"public static boolean isWord(String word) {\r\n String lower = word.toLowerCase();\r\n int start = getLetterIndex(lower, head); // to find the index for the letter appear\r\n int end = getLetterIndex(lower, tail); // to find the last index for the letter appear\r\n\r\n if (start == -1) // if does not find a letter in the string\r\n return false;\r\n\r\n while (start < end) // check the middle\r\n {\r\n if (lower.charAt(start) == '-' && lower.charAt(start + 1) == '-')// check continuous\r\n return false;\r\n if ((lower.charAt(start) < 'a' || lower.charAt(start) > 'z') && lower.charAt(start) != '-') // check the character\r\n return false;\r\n start++;\r\n }\r\n\r\n return true;\r\n }",
"public static String isNSW(String word)\n\t{\n\t\tif (sw.contains(word))\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\treturn word;\n\t}",
"public static boolean isWord(String str) {\r\n if (str == null || str.length() == 0)\r\n return false;\r\n\r\n for (int i= 0; i < str.length(); i++) {\r\n if (!Character.isJavaIdentifierPart(str.charAt(i)))\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean isStopWord(String word);",
"public boolean hasSecondWord()\r\n {\r\n return this.aSecondWord!=null;\r\n }",
"public boolean hasNE(Sentence sent) {\n if (selectCovered(NamedEntity.class, sent).size() > 0)\n return true;\n return false;\n }",
"public boolean isInSingularPluralPair(String word) {\n\t\tIterator<SingularPluralPair> iter = this.singularPluralTable.iterator();\n\n\t\twhile (iter.hasNext()) {\n\t\t\tSingularPluralPair spp = iter.next();\n\t\t\tif ((spp.getSingular().equals(word))\n\t\t\t\t\t|| (spp.getPlural().equals(word))) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean contains(String word) {\n word = word.toUpperCase();\n TrieNode node = root;\n for (int i = 0; i < word.length(); i++) {\n char ch = word.charAt(i);\n if (node.get(ch) == null) {\n return false;\n }\n node = node.get(ch);\n }\n return node.isLeaf;\n }",
"private static boolean Ncontains(String word, char a) \n {\n \t// return true of false if the String match char a\n for(int x = 0; x < word.length(); x++)\n {\n if(word.charAt(x) == a)\n return false;\n }\n return true;\n }",
"public boolean containsWord(TrieNode n, String word, boolean tf) {\n\t\tfor (TrieEdge e : n.edgesOutOf) {\n\t\t\tif (e.getEdgeName() == word.charAt(0)) {\n\t\t\t\t// if the word is longer than one character, check if there is\n\t\t\t\t// an edge leading out of the node that has the same first\n\t\t\t\t// character\n\t\t\t\tif (word.length() > 1) {\n\t\t\t\t\tint adjustedIndex = indexAfterCleanup(e.getTo());\n\t\t\t\t\ttf = containsWord(nodes.get(adjustedIndex),\n\t\t\t\t\t\t\tword.substring(1), tf);\n\t\t\t\t}\n\t\t\t\t// Base case, indicating that the word is in the trie, as long\n\t\t\t\t// as the following node is marked as terminal\n\t\t\t\telse {\n\t\t\t\t\tint adjustedIndex = indexAfterCleanup(n\n\t\t\t\t\t\t\t.getNextNodeFromEdge(word.charAt(0)));\n\t\t\t\t\tif (nodes.get(adjustedIndex).isTerminal()) {\n\t\t\t\t\t\ttf = true;\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn tf;\n\t}",
"public static boolean isUncountable(String word)\n {\n for (String w : uncountable)\n {\n if (w.equalsIgnoreCase(word))\n {\n return true;\n }\n }\n return false;\n }",
"public boolean isWord2ignore(String word);",
"public boolean isActivationString(String word);",
"public boolean hasWord( String s )\n\t{\n\t\tTrieNode cur = root;\n\t\t\n\t\tfor( int i = 0; i < s.length(); i++ )\n\t\t{\n\t\t\tint letterIndex = (int)s.charAt(i) - 97;\n\t\t\t\n\t\t\tif( cur.getLetters()[ letterIndex ] != null )\n\t\t\t\tcur = cur.getLetters()[ letterIndex ];\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn cur.isEndOfWord();\n\t}",
"public boolean ignoreWord(String word) {\n\t\t// By default we ignore all keywords that are defined in the syntax\n\t\treturn org.emftext.sdk.concretesyntax.resource.cs.grammar.CsGrammarInformationProvider.INSTANCE.getKeywords().contains(word);\n\t}",
"public boolean isStopword( char[] word ) {\n\t\t// Return true if the input word is a stopword, or false if not.\n\t\treturn false;\n\t}",
"public boolean isExcludedWord() {\n return StringUtils.startsWith(word, \"-\");\n }",
"public boolean noNl()\n \t{\n \t\treturn !isAfterNL();\n \t}",
"public boolean containsWord(String word) {\n\t\tTrieNode node = searchPrefix(word);\n\t\treturn node != null && node.isEnd();\n\t}",
"public boolean isUnique(String word) {\n String a = getAbbr(word);\n return dict.get(word) == abbr.get(a);\n }",
"public static String stemNSW(String word)\n\t{\n\t\treturn isNSW(getRoot(word.toLowerCase()));\n\t}",
"public boolean isWord(String word) {\n\t\tSystem.out.println(\"Is Word?: \" + word);\n\t\t// - Use this to test iterative implementation rather than binaryCheck implementation (runs better on small wordlists)\n\t\tfor (int i =1; i < table.size() + 1; i++) {\n\t\t\tif (table.get(i).equals(word)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t\t/*\n\t\treturn isWordBinaryCheck(word);//the binarysearch version which works poorly on the sets 100 words or less\n\t\t*/\n\t}",
"public boolean contains(String word) {\n Signature sig = new Signature(word);\n RadixTree node = find(sig);\n\n if (node != null) {\n return node.words.contains(word);\n } else {\n return false;\n }\n }",
"public static boolean IsECMAWordChar(char ch)\n\t{\n\t\treturn CharInClass(ch, ECMAWordClass);\n\t}",
"public boolean isInDictionary(String word) {\n return isInDictionary(word, Language.ENGLISH);\n }",
"public boolean isWordGuessed() {\n\t for(Letter l : letters) {\n\t if(!l.getStatus())\n\t return false;\n\t }\n\t this.displayedWord.setStatus(true);\n\t return true;\n\t}",
"public static Boolean Word(String arg){\n\t\tif(arg.matches(\"^[a-zA-ZåÅäÄöÖüÜéÉèÈ]*\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\t\n\t}",
"public boolean contains(String word) {\n return indexOf(word) > -1;\n }",
"public abstract boolean isKeyword();",
"public static boolean isFirstWordInSentence(String word) {\n return word.matches(\"\\\\p{Punct}*\\\\p{Lu}[\\\\p{L}&&[^\\\\p{Lu}]]*\");\n }",
"public boolean isAcronym(String word) {\n\t\tif (word.length() < 3) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tif (word.indexOf(\" \") == -1) {\n\t\t\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\t\tif (Character.isDigit(word.charAt(i))) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if all upper case\n\t\t\tif (Character.isUpperCase(word.charAt(1))) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t// if there is a number in the word\n\n\t\treturn false;\n\t}",
"public boolean addWord(String word) {\n // TODO: Implement this method.\n char[] c = word.toLowerCase().toCharArray();\n\n TrieNode predptr = root;\n boolean isWord = false;\n\n for (int i = 0, n = c.length; i < n; i++) {\n TrieNode next = predptr.insert(c[i]);\n\n if (next != null) {\n predptr = next;\n } else {\n predptr = predptr.getChild(c[i]);\n }\n\n if (i == n - 1) {\n if (!predptr.endsWord()) {\n size++;\n isWord = true;\n predptr.setEndsWord(true);\n }\n }\n\n }\n return isWord;\n }",
"@Override\n\tprotected boolean isStopword(String word) {\n\t\treturn this.stopwords.contains(word);\n\t}",
"public static boolean isCharacter(String word) {\r\n\t\treturn word.length() == 1;\r\n\t}",
"public boolean search(String word) {\n Node node = getNode(word);\n\n return node != null && node.isWord == true;\n }",
"public abstract boolean isStopWord(String term);",
"boolean hasKeyword();",
"public boolean contains(String word) {\r\n\r\n return dictionaryMap.containsKey(word.toUpperCase());\r\n\r\n }",
"public boolean documentContainsMorphologicalInformation(DocTheory dt) {\n for (final SentenceTheory sentenceTheory : dt.sentenceTheories()) {\n if (!sentenceTheory.morphTokenSequences().isEmpty()) {\n return true;\n }\n }\n return false;\n }",
"public boolean contains(String word) {\n\t\treturn invertedIndex.containsKey(word);\n\t}",
"public boolean isNaturalEntity() {\n return this.isNaturalEntity;\n }",
"public boolean exists(String word)\n {\n boolean rtn = false;\n\n if(word.length() > 0)\n {\n StringBuffer buff = new StringBuffer().append(\"^\");\n buff.append(word.toLowerCase()).append(\"_\");\n\n String tmp = searchLexDb(buff.toString(), true);\n if(tmp.length() > 0)\n rtn = true;\n } // fi\n\n return(rtn);\n }",
"public boolean wordExists(String word)\n\t{\n\t\t//checks to make sure the word is a word that starts with a lowercase letter, otherwise return false\n\t\tif(word.charAt(0) >= 'a' && word.charAt(0) <= 'z')\n\t\t{\n\t\t\tchar letter = word.charAt(0);\n\t\t\t\n\t\t\treturn (myDictionaryArray[(int)letter - (int)'a'].wordExists(word));\n\t\t}\n\t\t\n\t\treturn false;\t\t\n\t}",
"public boolean containsWord(String word) {\n\t\treturn index.containsKey(word);\n\t}",
"private boolean isWordValid(String word){\n\t\tif(word.isEmpty())\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public boolean containsWord(String word) {\n\t\treturn containsWord(root, word, false);\n\t}",
"public static boolean isCapitalized(String word) {\n \treturn (word.length() > 0 && Character.isUpperCase(word.charAt(0)));\n }",
"public static boolean validPronoun (Mention m, Pronoun p){\n\t\tif (p==null || m ==null)\n\t\t\treturn false;\n\t\t//System.out.printf(\"Checkeing pronoun %s\\n\",p.toString());\n\t\t//System.out.printf(\"Checking head word %s \\n\",m.headWord());\n\t\t//See if mention is a pronoun\n\t\tPronoun p2 = Pronoun.valueOrNull(m.headWord());\n\t\tif (p2!=null){\n\t\t\t//Check plurality\n\t\t\tif (!xor(p.plural,p2.plural)){\n\t\t\t\t//System.out.println(\"Plural failed\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t//Check gender\n\t\t\tif (!p.gender.isCompatible(p2.gender)){\n\t\t\t\t//System.out.println(\"gender failed\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t//Check speaker\n\t\t\tif (!p.speaker.equals(p2.speaker)){\n\t\t\t\t//System.out.println(\"speaker failed\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\t//Check plurality\n\t\t\tif (m.headToken().isNoun() && !xor(p.plural,m.headToken().isPluralNoun())){\n\t\t\t\t//System.out.println(\"Plural failed\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (Name.isName(m.headWord())) {\n\t\t\t\tif(!p.gender.isCompatible(Name.get(m.headWord()).gender))\n\t\t\t\t{\n\t\t\t\t\t//System.out.println(\"gender failed\");\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 containsWord(String lemma) {\n checkLemmaIsNotNull(lemma);\n for (Word word : words) {\n if (word.getLemma().equalsIgnoreCase(lemma)) {\n return true;\n }\n }\n return false;\n }",
"public abstract boolean isKeyword(@Nullable String text);",
"private boolean isAbbreviation(String word) {\n\n boolean abbr = true;\n String[] parts = word.split(\"\\\\.\");\n for (String part : parts) {\n if (part.length() > 1 || !Pattern.matches(\"[a-zA-Z]\", part)) {\n abbr = false;\n break;\n }\n }\n return abbr;\n }",
"public boolean search(String word) {\n TrieNode p = root;\n for (char c : word.toCharArray()) {\n int childIndex = (int)(c - 'a');\n if (p.children[childIndex] == null) {\n return false;\n }\n p = p.children[childIndex];\n }\n return p.isWord;\n }",
"boolean hasHadithText();",
"public boolean isPerson (String lemma){\n \n if (lemma.equals(\"man\")){\n return true;\n }\n\n if (this.gNet != null){\n\n List < Synset > synsets ;\n synsets = this.gNet.getSynsets(lemma);\n /*\n * check if synsnet is empty, if not empty, just continue with the block below\n * else, run some morphological analysis, and retry synset.\n * \n * This only covers the person filter. Also need to cover what is and is not a subject expression\n */\n for (Synset synset: synsets){\n List<List<Synset>> hypernyms = synset.getTransRelatedSynsets(ConRel.has_hypernym);\n for (List<Synset> hypernym: hypernyms){\n for (Synset s: hypernym){\n // ID for human / person, not living being in general and ID for group\n if (s.getId() == 34063 || s.getId() == 22562){\n return true;\n }\n }\n\n }\n }\n return false;\n }\n return false;\n }",
"public static Boolean isCompoundLeaf(FeatureNode word)\n\t{\n\t\tint cnt = 0;\n\t\tFeatureNode fn = word.get(\"phr-head\");\n\t\twhile (fn != null)\n\t\t{\n\t\t\tcnt ++;\n\t\t\tFeatureNode subf = fn.get(\"phr-head\");\n\t\t\tif (subf != null) return false;\n\t\t\tfn = fn.get(\"phr-next\");\n\t\t}\n\t\tif (cnt > 2) return true;\n\t\treturn false;\n\t}",
"public boolean search(String word) {\n if (word == null || word.length() == 0)\n return false;\n char [] letters = word.toCharArray();\n TrieNode node = root;\n for (int i=0; i < letters.length; i++) {\n int pos = letters[i] - 'a';\n if (node.son[pos] == null)\n return false;\n node = node.son[pos];\n }\n\n return node.isEnd;\n }",
"public static boolean isNCName(final String s) {\n if (s == null) {\n return false;\n } else {\n return org.apache.axis.types.NCName.isValid(s);\n }\n }",
"public boolean search(String word) {\n Node current = root;\n for (int i = 0; i < word.length(); ++i) {\n int c = word.charAt(i) - 'a';\n if (current.children[c] == null) return false;\n current = current.children[c];\n }\n return current.isWord;\n }",
"public boolean updateDataHolderNNConditionHelper(String word) {\n\t\tboolean flag = false;\n\t\t\n\t\tflag = ( (!word.matches(\"^.*\\\\b(\"+myConstant.STOP+\")\\\\b.*$\"))\n\t\t\t\t&& (!word.matches(\"^.*ly\\\\s*$\"))\n\t\t\t\t&& (!word.matches(\"^.*\\\\b(\"+myConstant.FORBIDDEN+\")\\\\b.*$\"))\n\t\t\t\t);\n\t\t\n\t\treturn flag;\n\t}",
"public boolean search(String word) {\n TrieTree point = root;\n for(int i = 0; i < word.length(); i++){\n char ch = word.charAt(i);\n if(point.getChild(ch - 'a') == null) return false;\n point = point.getChild(ch - 'a');\n }\n return point.getIsWord();\n }",
"public boolean search(String word) {\n TrieNode curr = root;\n for (char c : word.toCharArray()) {\n int idx = c - 'a';\n if (curr.children[idx] == null) {\n return false;\n }\n curr = curr.children[idx];\n }\n return curr.isWord;\n }",
"public boolean isWordFullyGuessed()\n {\n for(int i=0; i<showChar.length; i++)\n {\n if(!showChar[i]) return false;\n }\n\n return true;\n }"
] | [
"0.77742136",
"0.77333087",
"0.762379",
"0.761315",
"0.7587685",
"0.75759774",
"0.7557188",
"0.7492421",
"0.7470416",
"0.742108",
"0.73961526",
"0.69303256",
"0.6874471",
"0.6527264",
"0.65249836",
"0.63455236",
"0.61859983",
"0.6142388",
"0.61179495",
"0.6089457",
"0.6075129",
"0.60282236",
"0.57577884",
"0.5753441",
"0.5729865",
"0.57293105",
"0.5705942",
"0.5671881",
"0.5625461",
"0.5598832",
"0.55824786",
"0.55658156",
"0.556495",
"0.5538706",
"0.55376685",
"0.5461384",
"0.5456437",
"0.5430264",
"0.5400281",
"0.5396657",
"0.536893",
"0.5362639",
"0.53578013",
"0.5337599",
"0.53250337",
"0.5322674",
"0.5317335",
"0.5311889",
"0.5300259",
"0.5291",
"0.5287762",
"0.5279916",
"0.5274689",
"0.5263592",
"0.52602726",
"0.52521086",
"0.5251486",
"0.5243501",
"0.5237063",
"0.522652",
"0.5226071",
"0.522552",
"0.5216893",
"0.52118707",
"0.5210711",
"0.5207936",
"0.5195226",
"0.51901263",
"0.51731384",
"0.5168868",
"0.5152062",
"0.51466054",
"0.51381344",
"0.5126867",
"0.51225626",
"0.5116823",
"0.51083237",
"0.5088616",
"0.50831413",
"0.5061697",
"0.5040824",
"0.5037643",
"0.5035344",
"0.503155",
"0.5024931",
"0.5023866",
"0.50237864",
"0.5013",
"0.4999555",
"0.49790663",
"0.49642587",
"0.49632183",
"0.4958473",
"0.4949277",
"0.4947798",
"0.493854",
"0.4930876",
"0.4927864",
"0.49188545",
"0.4914972"
] | 0.7416715 | 10 |
Returns the set of all hypoynms of WORD. | public Set<String> hyponyms(String word) {
hypernymSet = new TreeSet<String>();
firstsIDset = new HashSet<Integer>();
for (String[] synStrings : sFile.values()) {
for (String synset : synStrings) {
if (synset.equals(word)) {
for (String synset2 : synStrings) {
hypernymSet.add(synset2);
}
for (Integer key : sFile.keySet()) {
if (sFile.get(key).equals(synStrings)) {
firstsIDset.add(key);
}
}
}
}
}
sIDset = GraphHelper.descendants(theDigraph, firstsIDset);
for (Integer id : sIDset) {
synsetWordStrings = sFile.get(id);
for (String word2 : synsetWordStrings) {
hypernymSet.add(word2);
}
}
return hypernymSet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Set<String> hyponyms(String word) {\n Set<String> hyponyms = new HashSet<String>();\n Set<Integer> ids = new HashSet<Integer>();\n for (Integer key: synsetNouns.keySet()) {\n if (synsetNouns.get(key).contains(word)) {\n ids.add(key);\n }\n }\n Set<Integer> descendants = GraphHelper.descendants(hyponym, ids);\n for (Integer j: descendants) {\n for (String value: synsetNouns.get(j)) {\n hyponyms.add(value);\n }\n }\n return hyponyms;\n }",
"public Set<String> hyponyms(String word) {\n HashSet<String> set = new HashSet<String>();\n for (Integer id: synsets.keySet()) {\n TreeSet<String> hs = synsets.get(id);\n if (hs.contains(word)) {\n for (String s: hs) {\n set.add(s);\n }\n TreeSet<Integer> ids = new TreeSet<Integer>();\n ids.add(id);\n Set<Integer> desc = GraphHelper.descendants(dg, ids);\n for (Integer i: desc) {\n for (String s: synsets.get(i)) {\n set.add(s);\n }\n }\n }\n }\n return set;\n }",
"public Set<String> hyponyms(String word) {\n Set<Integer> synIDs = new TreeSet<Integer>();\n Set<Integer> synKeys = synsetMap.keySet();\n for (Integer id : synKeys) {\n if (synsetMap.get(id).contains(word)) {\n synIDs.add(id);\n }\n }\n Set<Integer> hypIDs = GraphHelper.descendants(g, synIDs);\n Set<String> result = new TreeSet<String>();\n\n for (Integer i : hypIDs) {\n ArrayList<String> al = synsetMap.get(i);\n result.addAll(al);\n }\n return result;\n }",
"public Set<String> hyponyms(String word) {\n Set<Integer> wordIds = revrseSynsetMapper.get(word);\n Set<String> superSet = new HashSet<String>();\n Set<Integer> descendant = GraphHelper.descendants(hypGraph, wordIds);\n Iterator<Integer> iter = descendant.iterator();\n while (iter.hasNext()) {\n Set<String> string_word = synsetMapper.get(iter.next());\n Iterator<String> A = string_word.iterator();\n while (A.hasNext()) {\n superSet.add(A.next());\n }\n }\n return superSet;\n }",
"public Set<String> hyponyms(String word) {\n Set<String> toReturn = new HashSet<String>();\n Set<Integer> wordIndexes = new HashSet<Integer>();\n wordIndexes = wnetsi.get(word);\n Set<Integer> toReturnInt = GraphHelper.descendants(g, wordIndexes);\n Object[] returnArray = toReturnInt.toArray();\n for (int i = 0; i < returnArray.length; i += 1) {\n Set<String> stringReturn = wnetis.get(returnArray[i]);\n Iterator<String> strIter = stringReturn.iterator();\n while (strIter.hasNext()) {\n toReturn.add(strIter.next());\n }\n }\n return toReturn;\n }",
"public Set<String> hyponyms(String word) {\n HashSet<String> allhyponyms = new HashSet<String>();\n int maxV = synset.size();\n // int maxV = 0;\n // for (Integer i : synset.keySet()) {\n // if (maxV < i) {\n // maxV = i;\n // }\n // }\n // maxV += 1;\n Digraph digraph = new Digraph(maxV);\n\n // ArrayList<Integer> hypoKeys = new ArrayList<Integer>();\n // for (int i = 0; i < hyponym.size(); i++) {\n // hypoKeys.add(hyponym.get(0).get(i));\n // }\n \n for (ArrayList<Integer> a : hyponym) {\n int key = a.get(0);\n for (int j = 1; j < a.size(); j++) {\n digraph.addEdge(key, a.get(j));\n }\n }\n\n // get synonyms (in same synset), ex. given \"jump\", will get \"parachuting\" as well as \"leap\"\n ArrayList<String> strArray = new ArrayList<String>();\n for (Integer k : getSynsetKeys(word)) {\n strArray.addAll(synset.get(k));\n }\n for (String str : strArray) {\n allhyponyms.add(str);\n }\n\n // for each int from set<int> with all synset IDS\n for (Integer s : GraphHelper.descendants(digraph, getSynsetKeys(word))) {\n for (String t : synset.get(s)) {\n allhyponyms.add(t);\n }\n }\n return allhyponyms;\n }",
"public Set<String> getWords() {\n\t\treturn Collections.unmodifiableSet(this.invertedIndex.keySet());\n\t}",
"public static List<Synset> getAllHyponymSynset(IndexWord word) throws JWNLException {\n List<Synset> result=new ArrayList<>();\n\n for(Synset wordSynset:word.getSenses()){\n PointerTargetTree hyponyms = PointerUtils.getInstance().getHyponymTree(wordSynset,4);\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n LinkedList<PointerTargetTreeNode> stack = new LinkedList<>();\n if(rootnode==null){\n return result;\n }\n stack.add(rootnode);\n while(!stack.isEmpty()){\n PointerTargetTreeNode node = stack.pollLast();\n result.add(node.getSynset());\n PointerTargetTreeNodeList childList = node.getChildTreeList();\n if(childList!=null){\n for(int i=0;i<childList.size();i++){\n stack.add((PointerTargetTreeNode)childList.get(i));\n }\n }\n\n }\n\n }\n\n return result;\n }",
"public Set<String> getWords() {\n return wordMap.keySet();\n }",
"private Set<String> deletionHelper(String word) {\n\t\tSet<String> deletionWords = new HashSet<String>();\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\tdeletionWords.add(word.substring(0, i) + word.substring(i + 1));\n\t\t}\n\t\treturn deletionWords;\n\t}",
"public Set<String> getWords() {\n return wordsOccurrences.keySet();\n }",
"@ZAttr(id=1073)\n public String[] getPrefSpellIgnoreWord() {\n return getMultiAttr(Provisioning.A_zimbraPrefSpellIgnoreWord);\n }",
"@Override\n\tpublic Set<String> getWordSet() {\n\t\tlock.lockReadOnly();\n\t\ttry {\n\t\t\treturn super.getWordSet();\n\t\t} finally {\n\t\t\tlock.unlockReadOnly();\n\t\t}\n\t}",
"private Set<Integer> getSynsetKeys(String word) {\n HashSet<Integer> kset = new HashSet<Integer>();\n\n for (ArrayList<String> o : synsetRev.keySet()) {\n for (String p : o) {\n if (p.equals(word)) {\n kset.add(synsetRev.get(o));\n }\n }\n }\n return kset;\n }",
"public Collection<String> words() {\n Collection<String> words = new ArrayList<String>();\n TreeSet<Integer> keyset = new TreeSet<Integer>();\n keyset.addAll(countToWord.keySet());\n for (Integer count : keyset) {\n words.addAll(this.countToWord.get(count));\n }\n return words;\n }",
"private Set<String> replacementHelper(String word) {\n\t\tSet<String> replacementWords = new HashSet<String>();\n\t\tfor (char letter : LETTERS) {\n\t\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\treplacementWords.add(word.substring(0, i) + letter + word.substring(i + 1));\n\t\t\t}\n\t\t}\n\t\treturn replacementWords;\n\t}",
"@Override\r\n\t\t\tpublic Set<String> getStopWords() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"private Set<String> transpositionHelper(String word) {\n\t\tSet<String> transpositionWords = new HashSet<String>();\n\t\tfor (int i = 0; i < word.length() - 1; i++) {\n\t\t\ttranspositionWords.add(word.substring(0, i) + word.substring(i + 1, i + 2) + word.substring(i, i + 1)\n\t\t\t\t\t+ word.substring(i + 2));\n\t\t}\n\t\treturn transpositionWords;\n\t}",
"public Set<String> getStopWords() throws Exception{\n\tFile file = new File(\"stopWords/stopwords.txt\");\n\tHashSet<String> stopwords = new HashSet<>();\n\tBufferedReader br = new BufferedReader(new FileReader(file));\n\tString line;\n\twhile((line=br.readLine())!=null){\n\t\tString[] tokens = line.split(\" \");\n\t\tfor(String token : tokens){\n\t\t\tif(!stopwords.contains(token)){\n\t\t\t\tstopwords.add(token);\n\t\t\t}\n\t\t}\n\t}\n\tbr.close();\n\treturn stopwords;\n\t}",
"private StopWords() {\r\n\t\tPath source = Paths.get(\"./dat/zaustavne_rijeci.txt\");\r\n\t\ttry {\r\n\t\t\tbody = new String(Files.readAllBytes(source),\r\n\t\t\t\t\tStandardCharsets.UTF_8);\r\n\t\t} catch (IOException ignorable) {\r\n\t\t}\r\n\t\twords = new LinkedHashSet<>();\r\n\t\tfillSet();\r\n\t}",
"public synchronized Set<String> getStopWords() throws Exception {\r\n\t\t\r\n\t\tif(stopWords == null){\r\n\t\t\tMTDArquivoEnum enumerado = MTDArquivoEnum.STOP_WORDS;\r\n\t\t\tstopWords = new HashSet<String>();\r\n\t\t\tMTDIterator<String> it = enumerado.lineIterator();\r\n\t\t\twhile (it.hasNext()) {\r\n\t\t\t\tstopWords.add(it.next());\r\n\t\t\t}\r\n\t\t\tit.close();\r\n\t\t}\r\n \r\n return stopWords;\r\n }",
"public ArrayList<String> getWords() {\n return words;\n }",
"public ArrayList<String> getWords() {\n return new ArrayList<>(words);\n }",
"public ArrayList <String> getWordList () {\r\n return words;\r\n }",
"public HashSet<String> getHypernymsLexical(String linkedConcept) {\n return getHypernymsLexical(linkedConcept, Language.ENGLISH);\n }",
"public Set<String> getHyponyms(String vertex)\r\n\t{\n\t\treturn null;\r\n\t}",
"public Set<String> getLocations(String word) {\n\t\tif (this.invertedIndex.get(word) == null) {\n\t\t\treturn Collections.emptySet();\n\t\t} else {\n\t\t\treturn Collections.unmodifiableSet(this.invertedIndex.get(word).keySet());\n\t\t}\n\t}",
"public String [] get_word_array(){\n\t\treturn word_array;\n\t}",
"public Set<String> nouns() {\n HashSet<String> set = new HashSet<String>();\n for (TreeSet<String> hs: synsets.values()) {\n for (String s: hs) {\n set.add(s);\n }\n }\n return set;\n }",
"public Iterable<String> nouns()\n {\n return synsetHash.keySet();\n }",
"private Set<String> insertionHelper(String word) {\n\t\tSet<String> insertionWords = new HashSet<String>();\n\t\tfor (char letter : LETTERS) {\n\t\t\tfor (int i = 0; i <= word.length(); i++) {\n\t\t\t\tinsertionWords.add(word.substring(0, i) + letter + word.substring(i));\n\t\t\t}\n\t\t}\n\t\treturn insertionWords;\n\t}",
"public List<Integer> getShingles() {\n\t\tfor (Integer hash : hashes) { \n\t\t\tint minXor = Integer.MAX_VALUE; \n\t\t\tfor (String word : words) { \n\t\t\t\tint xorHash = word.hashCode() ^ hash; //Bitwise XOR the string hashCode with the hash \n\t\t\t\tif (xorHash < minXor) \n\t\t\t\t\tminXor = xorHash; \n\t\t\t} \n\t\t\tshingles.add(minXor); //Only store the shingle with the minimum hash for each hash function \n\t\t} \n\t\t\n\t\treturn shingles;\n\t}",
"List<T> getWord();",
"public static Set<String> getUniqueWords(String input) {\r\n HashSet<String> hSet = new HashSet<String>();\r\n ArrayList<String> words = getWords(input);\r\n for(String word: words) {\r\n if(!hSet.contains(word)) {\r\n hSet.add(word);\r\n }\r\n }\r\n return hSet;\r\n }",
"public LinkedList<String> getThemeWords(){\r\n\t\treturn this.themeWords;\r\n\t}",
"public Set<Entity> getHyponyms(Entity vertex)\r\n\t{\n\t\treturn null;\r\n\t}",
"private void fillSet() {\r\n\t\tString regex = \"\\\\p{L}+\";\r\n\t\tMatcher matcher = Pattern.compile(regex).matcher(body);\r\n\t\twhile (matcher.find()) {\r\n\t\t\tif (!matcher.group().isEmpty()) {\r\n\t\t\t\twords.add(matcher.group());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public List<String> getAllWords() {\n List<String> words = new ArrayList<>();\n // get the words to the list\n getAllWords(root, \"\", 0, words);\n // and return the list of words\n return words;\n }",
"public List<Map.Entry<String, Integer>> getWordList(){\n\t\treturn new ArrayList<>(GeneralWordCounter.entrySet());\n\t}",
"SList oddWords();",
"public static Hashtable<String,Thought> buildWordSet(Vector<Thought> words) {\r\n\t\tHashtable<String,Thought> ret = new Hashtable<String,Thought>();\r\n\t\tfor(Thought word : words) {\r\n\t\t\tret.put(word.representation, word);\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"public List<Stem> uniqueStems(char word[], int length) {\n List<Stem> stems = new ArrayList<Stem>();\n CharArraySet terms = new CharArraySet(dictionary.getVersion(), 8, dictionary.isIgnoreCase());\n if (dictionary.lookupWord(word, 0, length) != null) {\n stems.add(new Stem(word, length));\n terms.add(word);\n }\n List<Stem> otherStems = stem(word, length, null, 0);\n for (Stem s : otherStems) {\n if (!terms.contains(s.stem)) {\n stems.add(s);\n terms.add(s.stem);\n }\n }\n return stems;\n }",
"public Term[] getStopWords() {\n List<Term> allStopWords = new ArrayList<Term>();\n for (String fieldName : stopWordsPerField.keySet()) {\n Set<String> stopWords = stopWordsPerField.get(fieldName);\n for (String text : stopWords) {\n allStopWords.add(new Term(fieldName, text));\n }\n }\n return allStopWords.toArray(new Term[allStopWords.size()]);\n\t}",
"private static List<String> induceSynonims(String word) {\n\t\treturn null;\n\t}",
"private List<String> getFilteredWords() {\r\n\t\tArrayList<String> filteredWords = new ArrayList<String>(16);\r\n\t\t\r\n\t\tfor (String word : allWords) {\r\n\t\t\tif (matchesFilter(word) == true) {\r\n\t\t\t\tfilteredWords.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn filteredWords;\r\n\t}",
"public static List<Synset> getAllMeronymSynset(IndexWord word) throws JWNLException {\n List<Synset> result=new ArrayList<>();\n\n for(Synset wordSynset:word.getSenses()){\n PointerTargetTree hyponyms = PointerUtils.getInstance().getInheritedMeronyms(wordSynset,4,4);\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n LinkedList<PointerTargetTreeNode> stack = new LinkedList<>();\n if(rootnode==null){\n return result;\n }\n stack.add(rootnode);\n while(!stack.isEmpty()){\n PointerTargetTreeNode node = stack.pollLast();\n result.add(node.getSynset());\n PointerTargetTreeNodeList childList = node.getChildTreeList();\n if(childList!=null){\n for(int i=0;i<childList.size();i++){\n stack.add((PointerTargetTreeNode)childList.get(i));\n }\n }\n\n }\n\n }\n\n return result;\n }",
"SList evenWords();",
"public Set<String> nouns() {\n return wnetsi.keySet();\n }",
"private List<String> help(String s, Set<String> wordDict) {\n\t\tList<String> ret = new ArrayList<>();\n\n\t\tif (wordDict.contains(s))\n\t\t\tret.add(s);\n\t\telse\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tif (wordDict.contains(s.substring(0, i + 1))) {\n\n//\t\t\t\t\tSystem.out.println(s.substring(0, i + 1));\n\n\t\t\t\t\tList<String> tmp = help(s.substring(i + 1), wordDict);\n\t\t\t\t\tif (tmp.size() > 0) {\n\t\t\t\t\t\tret.add(s.substring(0, i + 1));\n\t\t\t\t\t\tret.addAll(tmp);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\treturn ret;\n\t}",
"public Iterable<String> getAllValidWords(BoggleBoard board) {\n m = board.rows();\n n = board.cols();\n graph = new char[m][n];\n marked = new boolean[m][n];\n for (int i = 0; i < m; ++i) {\n for (int j = 0; j < n; ++j) {\n graph[i][j] = board.getLetter(i, j);\n }\n }\n\n words = new HashSet<String>();\n for (int i = 0; i < m; ++i) {\n for (int j = 0; j < n; ++j) {\n dfs(i, j, \"\");\n }\n }\n return words;\n }",
"private ISet<String> getKeySet(IList<String> words) {\n\t\tISet<String> keySet = new ChainedHashSet<String>();\n\t\tfor (String word: words) {\n\t\t\tkeySet.add(word);\n\t\t}\n\t\treturn keySet;\n }",
"public PorterStopWords()\r\n\t{\r\n\t\tstopWordsSet.addAll( porterStopWordsSet );\r\n\t}",
"public static Set<String> getEnglishWords()\n{\n return english_words;\n}",
"public List<Word> getWordsEndingAt(int end);",
"public static Set<String> createSet() {\n Set<String> set = new HashSet<>();\n set.add(\"lesson\");\n set.add(\"large\");\n set.add(\"link\");\n set.add(\"locale\");\n set.add(\"love\");\n set.add(\"light\");\n set.add(\"limitless\");\n set.add(\"lion\");\n set.add(\"line\");\n set.add(\"lunch\");\n set.add(\"level\");\n set.add(\"lamp\");\n set.add(\"luxurious\");\n set.add(\"loop\");\n set.add(\"last\");\n set.add(\"lie\");\n set.add(\"lose\");\n set.add(\"lecture\");\n set.add(\"little\");\n set.add(\"luck\");\n\n return set;\n }",
"public Map<String, Integer> getWords()\n {\n return (Map<String, Integer>) getStateHelper().eval(PropertyKeys.words, null);\n }",
"public Iterable<String> nouns() {\n return synsetList.keySet();\n }",
"public Set<String> getWordsNotFoundByUser(){\n\n Set<String> validWordsOnBoardCopy = new HashSet<String>();\n validWordsOnBoardCopy.addAll(validWordsOnBoard);\n validWordsOnBoardCopy.removeAll(validWordsFoundByUser);\n\n return validWordsOnBoardCopy;\n }",
"protected List<String> extractHyphenatedNameList(UrlReverseResource resource) {\n return restfulComponentAnalyzer.extractHyphenatedNameList(resource.getActionType());\n }",
"public HashMap<String, TreeSet<String>> availableWords(TreeSet<String> wordSet, String dashes, char letter){\n\t\tHashMap<String, TreeSet<String>> wordList = new HashMap<String, TreeSet<String>>();\n\t\tIterator<String> iter = wordSet.iterator();\n\t\twhile(iter.hasNext()){\n\t\t\tString addWord = iter.next();\n\t\t\tString key = buildKey(dashes, addWord, letter);\n\t\t\tif(wordList.containsKey(key)){\n\t\t\t\twordSet = wordList.get(key);\n\t\t\t}\n\t\t\telse{\n\t\t\t\twordSet = new TreeSet<String>();\n\t\t\t}\n\t\t\twordSet.add(addWord);\n\t\t\twordList.put(key, wordSet);\n\t\t}\n\n\t\treturn wordList;\n\t}",
"public Iterable<String> getAllValidWords(final BoggleBoard board) {\n HashSet<String> validwords = new HashSet<>();\n for (int i = 0; i < board.rows(); i++) {\n for (int j = 0; j < board.cols(); j++) {\n boolean[][] marked = new boolean[board.rows()][board.cols()];\n String word = \"\";\n dfs(board, marked, i, j, word, validwords);\n }\n }\n return validwords;\n }",
"public WordArray getWordArray() { return wordArray; }",
"public static List<String> getUniqueWords(String phrase, Locale locale) {\n\t\tString[] parts = splitPhrase(phrase);\n\t\tList<String> uniqueParts = new Vector<String>();\n\t\t\n\t\tif (parts != null) {\n\t\t\tList<String> conceptStopWords = Context.getConceptService().getConceptStopWords(locale);\n\t\t\tfor (String part : parts) {\n\t\t\t\tif (!StringUtils.isBlank(part)) {\n\t\t\t\t\tString upper = part.trim().toUpperCase();\n\t\t\t\t\tif (!conceptStopWords.contains(upper) && !uniqueParts.contains(upper))\n\t\t\t\t\t\tuniqueParts.add(upper);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn uniqueParts;\n\t}",
"private static void demonstrateTreeOperation(IndexWord word) throws JWNLException {\n PointerTargetTree hyponyms = PointerUtils.getInstance().getHyponymTree(word.getSense(1));\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n Synset rootsynset = rootnode.getSynset();\n System.out.println(rootsynset.getWord(0).getLemma());\n PointerTargetTreeNodeList childList = rootnode.getChildTreeList();\n PointerTargetTreeNode rootnode1=(PointerTargetTreeNode)childList.get(0);\n System.out.println(rootnode1.getSynset().getWord(0).getLemma());\n System.out.println(\"Hyponyms of \\\"\" + word.getLemma() + \"\\\":\");\n hyponyms.print();\n }",
"public boolean isStringMadeofAllUniqueChars(String word) {\n if (word.length() > 128) {\n return false;\n }\n boolean[] char_set = new boolean[128];\n for (int i = 0; i < word.length(); i++) {\n int val = word.charAt(i);\n System.out.println(val);\n if (char_set[val]) {\n return false;\n }\n char_set[val] = true;\n }\n return true;\n }",
"public ArrayList<String> getWordList() {\n\t\treturn wordList;\n\t}",
"public Set<String> getStopwords() {\n return stopwords;\n }",
"private ArrayList<String> matchingWords(String word){\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor(int i=0; i<words.size();i++){\n\t\t\tif(oneCharOff(word,words.get(i))){\n\t\t\t\tlist.add(words.get(i));\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"public List<String> getRelatedWords(String word) throws IOException {\n List<String> result = new ArrayList<String>();\n IDictionary dict = new Dictionary(new File(WORDNET_LOCATION));\n try {\n dict.open();\n IStemmer stemmer = new WordnetStemmer(dict);\n for (POS pos : EnumSet.of(POS.ADJECTIVE, POS.ADVERB, POS.NOUN, POS.VERB)) {\n List<String> resultForPos = new ArrayList<String>();\n List<String> stems = new ArrayList<String>();\n stems.add(word);\n for (String stem : stemmer.findStems(word, pos)) {\n if (!stems.contains(stem))\n stems.add(stem);\n }\n for (String stem : stems) {\n if (!resultForPos.contains(stem)) {\n resultForPos.add(stem);\n IIndexWord idxWord = dict.getIndexWord(stem, pos);\n if (idxWord == null) continue;\n List<IWordID> wordIDs = idxWord.getWordIDs();\n if (wordIDs == null) continue;\n IWordID wordID = wordIDs.get(0);\n IWord iword = dict.getWord(wordID);\n \n ISynset synonyms = iword.getSynset();\n List<IWord> iRelatedWords = synonyms.getWords();\n if (iRelatedWords != null) {\n for (IWord iRelatedWord : iRelatedWords) {\n String relatedWord = iRelatedWord.getLemma();\n if (!resultForPos.contains(relatedWord))\n resultForPos.add(relatedWord);\n }\n }\n \n List<ISynsetID> hypernymIDs = synonyms.getRelatedSynsets();\n if (hypernymIDs != null) {\n for (ISynsetID relatedSynsetID : hypernymIDs) {\n ISynset relatedSynset = dict.getSynset(relatedSynsetID);\n if (relatedSynset != null) {\n iRelatedWords = relatedSynset.getWords();\n if (iRelatedWords != null) {\n for (IWord iRelatedWord : iRelatedWords) {\n String relatedWord = iRelatedWord.getLemma();\n if (!resultForPos.contains(relatedWord))\n resultForPos.add(relatedWord);\n }\n }\n }\n }\n }\n }\n }\n for (String relatedWord : resultForPos) {\n if (relatedWord.length() > 3\n && !relatedWord.contains(\"-\")\n && !result.contains(relatedWord)) {\n // TODO: Hack alert!\n // The - check is to prevent lucene from interpreting hyphenated words as negative search terms\n // Fix!\n result.add(relatedWord);\n }\n }\n }\n } finally {\n dict.close();\n }\n return result;\n }",
"String[] getReservedWords();",
"public static Set<String> getPseudos() {\n return pseudos;\n }",
"public ArrayList NegativeSentenceDetection() {\n String phraseNotation = \"RB|CC\";//@\" + phrase + \"! << @\" + phrase;\n TregexPattern VBpattern = TregexPattern.compile(phraseNotation);\n TregexMatcher matcher = VBpattern.matcher(sTree);\n ArrayList negativeLists = new ArrayList();\n while (matcher.findNextMatchingNode()) {\n Tree match = matcher.getMatch();\n Tree[] innerChild = match.children();\n for (Tree inChild : innerChild) {\n negativeLists.add(inChild.getLeaves().get(0).yieldWords().get(0).word());\n }\n }\n return negativeLists;\n }",
"HashSet<String> removeDuplicates(ArrayList<String> words) {\n\t\tHashSet<String> keywords = new HashSet<String>();\n\t\tkeywords.addAll(words);\n\t\treturn keywords;\n\t}",
"public ArrayList<MusicalPhrase> getPhrases() {\n ArrayList<MusicalPhrase> copy = new ArrayList<MusicalPhrase>(this.phrases.size());\n for (MusicalPhrase m : this.phrases) \n copy.add(m.clone());\n return copy;\n }",
"private static void splitWord() {\n\t\tint i = 1;\r\n\t\tfor(String doc : DocsTest) {\r\n\t\t\tArrayList<String> wordAll = new ArrayList<String>();\r\n\t\t\tfor (String word : doc.split(\"[,.() ; % : / \\t -]\")) {\r\n\t\t\t\tword = word.toLowerCase();\r\n\t\t\t\tif(word.length()>1 && !mathMethod.isNumeric(word)) {\r\n\t\t\t\t\twordAll.add(word);\r\n\t\t\t\t\tif(!wordList.contains(word)) {\r\n\t\t\t\t\t\twordList.add(word);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twordAll.removeAll(stopword);\r\n\t\t\tDoclist.put(i, wordAll);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\twordList.removeAll(stopword);\r\n\t}",
"public Iterable<String> getAllValidWords(BoggleBoard board) {\n boardRows = board.rows();\n boardCols = board.cols();\n boolean[][] visited = new boolean[boardRows][boardCols];\n HashSet<String> foundWords = new HashSet<>();\n for (int row = 0; row < boardRows; row++) {\n for (int col = 0; col < boardCols; col++) {\n doSearch(row, col, root, board, visited, foundWords);\n }\n }\n return foundWords;\n }",
"public static Set getAllEnzymes()\n {\n return Collections.unmodifiableSet(enzymeToPattern.keySet());\n }",
"public String getWord()\r\n\t\t{\r\n\t\t\treturn word;\r\n\t\t}",
"List<Rectangle> getWordBoundaries();",
"public JTextPane getWords() {\n\t\treturn words;\n\t}",
"public static Set<String> getHashtagList(String tweet) {\n\t\tPattern MY_PATTERN = Pattern.compile(\"#(\\\\S+)\");\n\t\tMatcher mat = MY_PATTERN.matcher(tweet);\n\t\tSet<String> strs = new HashSet<String>();\n\t\twhile (mat.find()) {\n\t\t\tString hashTag = removeSharp(mat.group(1));\n\t\t\tif (validateHashTag(hashTag))\n\t\t\t\tstrs.add(hashTag);\n\t\t}\n\t\treturn strs;\n\t}",
"@Override\r\n\t@CacheCable(key=\"'wfx:SensitiveWord'\" ,value=\"value\",expiration=24*60*60)\r\n\tpublic List<String> getAllSensitiveWord() {\n\t\treturn shopMapper.getAllSensitiveWord();\r\n\r\n\t}",
"private void exercise7() throws IOException {\n final Path resourcePath = retrieveResourcePath();\n List<String> result;\n try (BufferedReader reader = newBufferedReader(resourcePath)) {\n result = reader.lines()\n .flatMap(line -> of(line.split(WORD_REGEXP)))\n .distinct()\n .map(String::toLowerCase)\n .sorted(comparingInt(String::length))\n .collect(toList());\n }\n\n result.forEach(System.out::println);\n }",
"public Iterable<String> getAllValidWords(BoggleBoard board) {\n\t\tboolean[][] visited = new boolean[board.rows()][board.cols()];\n\t\tSet<String> results = new HashSet<>();\n\t\tTST.BacktrackTraverser<Integer> bt = tst.getTraverser();\n\t\tfor (int y = 0; y < board.rows(); y++) {\n\t\t\tfor (int x = 0; x < board.cols(); x++) {\n\t\t\t\tif (!bt.hasDown(board.getLetter(y, x))) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tvisited[y][x] = true;\n\t\t\t\tbt.down(board.getLetter(y, x));\n\t\t\t\tdfs(y, x, visited, results, board, bt);\n\t\t\t\tbt.up();\n\t\t\t\tvisited[y][x] = false;\n\t\t\t}\n\t\t}\n\n\t\treturn results;\n\t}",
"public String getWord() {\n\t\treturn word;\r\n\t}",
"public List<String> generateSentence() {\n\tList<String> sentence = new ArrayList<String>();\n\tString oldWord = START;\n\tString word = generateWord(START,oldWord).intern();\n\twhile (!word.equals(STOP)) {\n\t sentence.add(word);\n\t String temp = generateWord(oldWord,word).intern();\n\t oldWord = word;\n\t word = temp;\n\t}\n\treturn sentence;\n }",
"public Iterable<String> getAllValidWords(BoggleBoard board) {\n int rows = board.rows();\n int cols = board.cols();\n ArrayList<String> all = new ArrayList<String>();\n // 1. enumerate all strings that can be composed by adj dice\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++)\n depthFirstSearch(board, i, j, all);\n }\n\n // 2. for each string, check the longest prefix\n // 2. store the word\n wordsSoFar = all;\n return wordsSoFar;\n }",
"public Iterable<String> nouns()\n {\n return h.navigableKeySet();\n }",
"public String getWord(){\r\n\t\treturn word;\r\n\t}",
"public static List<String> getWords(String text)\n\t{\n\t\tString lower = text.toLowerCase();\n\t\tString noPunct = lower.replaceAll(\"\\\\W\", \" \");\n\t\tString noNum = noPunct.replaceAll(\"[0-9]\", \" \");\n\t\tList<String> words = Arrays.asList(noNum.split(\"\\\\s+\"));\n\t\treturn words;\n\t}",
"public ArrayList<String> wordList(){\n\t\treturn list;\n\t}",
"Set<Keyword> listKeywords();",
"public String getWord() {\n return word;\n }",
"public ArrayList<String> AIwords(){\n return wordsToDisplay;\n }",
"public MySet<PageEntry> getPagesWhichContainWord (String str) {\n\t\tMySet<PageEntry> set = new MySet<>();\n\t\t\tMyLinkedList<WordEntry> Words = (MyLinkedList<WordEntry>)(ipData.getipList()[ipData.getHashIndex(str)]);\n\t\t\tWordEntry requiredWordEntry =new WordEntry();\n\t\t\tint i = 0;\n\t\t\tfor ( i = 0 ; i<Words.size() ; i++ ) {\n\t\t\t\tif (Words.getChildat(i).getWord().equals(str)) {\n\t\t\t\t\trequiredWordEntry = Words.getChildat(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (i<Words.size()) {\n\t\t\t\tPageEntry p = new PageEntry();\n\t\t\t\tint sizeOPositions = requiredWordEntry.getListOfPositions().size();\n\t\t\t\tfor (int j = 0; j < sizeOPositions; j++) {\n\t\t\t\t\tp = requiredWordEntry.getListOfPositions().getChildat(j).getPageEntry();\n\t\t\t\t\tset.InsertAtFront(p);\n\t\t\t\t}\n\t\t\t}\n\t\treturn set;\n\t}",
"public Set<Character> distincts() {\n return jumble.keySet();\n }",
"public List<Word> getWordsWithGivenLetter(Text text, char ch) {\n\n List<Word> allWords = getTextWords(text.getBookText());\n\n List<Word> words = new ArrayList<Word>();\n\n for (int i = 0; i < allWords.size(); i++) {\n Word tempWord = new Word(allWords.get(i).getCharsSequence());\n if (logic.isWordContainChar(tempWord, ch)) {\n if (!words.contains(tempWord)) {\n words.add(tempWord);\n }\n }\n }\n\n Collections.sort(words, new WordGivenCharComparator(ch));\n\n return words;\n }",
"public Iterator<String> words();",
"String[] splitSentenceWords() {\n\t\t\tint i=0;\n\t\t\tint j=0;\n\t\t\tArrayList<String> words = new ArrayList<String>();\n\t\t\t\n\t\t\t\tString[] allWords = wordPattern.split(purePattern.matcher(sentence).replaceAll(\" \"));//.split(\"(?=\\\\p{Lu})|(\\\\_|\\\\,|\\\\.|\\\\s|\\\\n|\\\\#|\\\\\\\"|\\\\{|\\\\}|\\\\@|\\\\(|\\\\)|\\\\;|\\\\-|\\\\:|\\\\*|\\\\\\\\|\\\\/)+\");\n\t\t\tfor(String word : allWords) {\n\t\t\t\tif(word.length()>2) {\n\t\t\t\t\twords.add(word.toLowerCase());\n\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\treturn (String[])words.toArray(new String[words.size()]);\n\t\t\n\t\t}",
"private static void demonstrateListOperation(IndexWord word) throws JWNLException {\n PointerTargetNodeList hypernyms = PointerUtils.getInstance().getDirectHypernyms(word.getSense(1));\n System.out.println(\"Direct hypernyms of \\\"\" + word.getLemma() + \"\\\":\");\n for(int idx = 0; idx < hypernyms.size(); idx++){\n PointerTargetNode nn = (PointerTargetNode)hypernyms.get(idx);\n for(int wrdIdx = 0; wrdIdx < nn.getSynset().getWordsSize(); wrdIdx++){\n System.out.println(\"Syn\" + idx + \" of direct hypernyms of\\\"\" + word.getLemma() + \"\\\" : \" +\n nn.getSynset().getWord(wrdIdx).getLemma());\n }\n }\n hypernyms.print();\n }"
] | [
"0.7847745",
"0.78382015",
"0.78223026",
"0.7715138",
"0.7678951",
"0.7577437",
"0.64137936",
"0.6361525",
"0.614461",
"0.60147643",
"0.58668727",
"0.58141196",
"0.5757624",
"0.5740018",
"0.5687192",
"0.565538",
"0.56486464",
"0.5636732",
"0.56252474",
"0.561161",
"0.5577389",
"0.5545522",
"0.5518965",
"0.55011654",
"0.5483659",
"0.5474528",
"0.5428196",
"0.542045",
"0.54161763",
"0.53921145",
"0.53798884",
"0.53767",
"0.5370766",
"0.5361311",
"0.5318343",
"0.53102356",
"0.53079826",
"0.53032",
"0.53024274",
"0.5288736",
"0.52756417",
"0.5271738",
"0.5270491",
"0.5236793",
"0.52332103",
"0.52322537",
"0.52287924",
"0.5217906",
"0.5217819",
"0.51994336",
"0.51853174",
"0.5141869",
"0.5131786",
"0.5122861",
"0.5106583",
"0.508835",
"0.50846785",
"0.5082291",
"0.5076698",
"0.5075524",
"0.50747645",
"0.50726295",
"0.5057046",
"0.5050148",
"0.504771",
"0.502769",
"0.50249994",
"0.50164354",
"0.50145507",
"0.5000893",
"0.5000383",
"0.49906316",
"0.49797538",
"0.4978705",
"0.49776408",
"0.4974767",
"0.49677745",
"0.49673378",
"0.49628758",
"0.49548155",
"0.49503252",
"0.4927538",
"0.49273893",
"0.4926871",
"0.4925589",
"0.492278",
"0.4920697",
"0.4919899",
"0.49192658",
"0.49180263",
"0.49112508",
"0.49077943",
"0.49030638",
"0.49024406",
"0.4901777",
"0.48978603",
"0.48903435",
"0.48858926",
"0.48685238",
"0.48677814"
] | 0.7626676 | 5 |
Do not replace the keeper | public void setPosition(int posX, int posY) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean shouldContinueSwitchedRootFound() {\n return false;\n }",
"BSTDictionary() {\n\t\troot = null;// default root to null;\n\t}",
"@Override\n public void changeKey(Key oldKey, Key newKey){\n changeKey(this.root, oldKey, newKey);\n }",
"public KdTree() {\n root = null;\n }",
"@Override\r\n\tprotected Object getParentKey(String parentWebSafeKey) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void levelUp() {\n\n\t}",
"@Override\n \t\t\t\tpublic void doDettachFromParent() {\n \n \t\t\t\t}",
"protected boolean processSeeksCleared(){return false;}",
"public static void Reset() {\n\t\t\n\t\tArrayList<KDNode> root_buff = new ArrayList<KDNode>();\n\t\tfor(KDNode k : KDNode.RootSet()) {\n\t\t\troot_buff.add(k);\n\t\t}\n\t\t\n\t\troot_map.clear();\n\t\t\n\t\tfor(int i=0; i<root_buff.size(); i++) {\n\t\t\tKDNode ptr = root_buff.get(i);\n\t\t\t\n\t\t\tKDNode prev_ptr = ptr;\n\t\t\twhile(ptr != null) {\n\t\t\t\tptr.is_node_set = false;\n\t\t\t\tptr.space.sample_buff.clear();\n\t\t\t\tprev_ptr = ptr;\n\t\t\t\tptr = ptr.parent_ptr;\n\t\t\t}\n\t\t\t\n\t\t\troot_map.add(prev_ptr);\n\t\t}\n\t\t\n\t}",
"public void reDistributeMyKeys() {\n toDistribute = readNodeEntries();\n }",
"BSTDictionary(BSTnode<K> node) {\n\t\troot = node;// set root to node\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Test\n public void testBackdoorModificationSameKey()\n {\n testBackdoorModificationSameKey(this);\n }",
"static public void unregisterAllRoot()\n {\n java.lang.SecurityManager sm = System.getSecurityManager();\n if( sm != null )\n {\n sm.checkPermission( new RuntimePermission( \"modifyRepository\" ) );\n }\n\n rootMap.clear();\n }",
"public void setRootItem(KeyedItem rootItem){\r\n\t\troot = rootItem;\r\n\t}",
"private Node getReplacementKeyNode(Key key, Node node) {\n\t\tNode ret = node.getChild(node.getDataNumber(key));\r\n\t\t\r\n\t\twhile (!ret.isLeaf()) {\r\n\t\t\tret = ret.getChild(ret.getChildren().size() - 1);\r\n\t\t}\r\n\t\t\r\n\t\treturn ret;\r\n\t}",
"@Override\n SerializerElem preValueWrite(String key, Object value, boolean withNsPrefix, Class<?> rootClass) {\n return null;\n }",
"public void add (K key) {\n\t\tthis.root = this.addRecursively(root,key);\n\t}",
"protected boolean keepCurrentPropertyKey() {\n return newPropertyKey == null;\n }",
"public void clearAllNotClientCacheKeyOrDatabaseKey() {\n\t}",
"void setUnused(){\n assert this.used == true;\n\n //let the parent pointer remain\n this.hf = 0;\n this.used = false;\n\n }",
"@SuppressWarnings(\"ReferenceEquality\") // cannot use equals() for check whether tree is the same\n private PersistentSortedMap<K, V> mapFromTree(@Var @Nullable Node<K, V> newRoot) {\n if (newRoot == root) {\n return this;\n } else if (newRoot == null) {\n return of();\n } else {\n // Root is always black.\n newRoot = newRoot.withColor(Node.BLACK);\n return new PathCopyingPersistentTreeMap<>(newRoot);\n }\n }",
"public void hatckKickerRetract() {\n hatchkicker.set(false);\n }",
"public void unDistributeMyKeys() {\n unDistributeKeys(readNodeEntries());\n }",
"private Unescaper() {\n\n\t}",
"@Override\r\n public NavigableMap<K, V> navigableKeySet() {\n return null;\r\n }",
"public void setRootItem(Object rootItem){\r\n\t\troot = (KeyedItem)rootItem;\r\n\t}",
"public void supprimerHacker() {\n if (hacker != null) {\n g.getChildren().remove(hacker);\n\n }\n }",
"public KdTree() {\n this.root = null;\n this.size = 0;\n }",
"public void removeKey() {\n \tthis.key =null;\n \tdungeon.keyLeft().set(\"Key possession: No\\n\");\n }",
"public void visitKeylock( DevCat devCat ) {}",
"public void removeAllChildMaps()\n {\n checkState();\n super.removeAllChildMaps();\n }",
"@Override\n public boolean neverAttach() {\n return true;\n }",
"@Override\r\n\tprotected Keywords getNewObject() {\n\t\treturn null;\r\n\t}",
"public WordDictionary() {\n root = new TreeNode();\n }",
"public KdTree()\n {\n root = null;\n size = 0;\n }",
"@Override\r\n\tpublic void zjedz(Kost k) {\n\t}",
"public TreeDictionary() {\n\t\tfor (int i = 0; i < nodes.length; i++) {\n\t\t\tnodes[i] = null;\n\t\t}\n\t}",
"private void inorder() {\n inorder(root);\n }",
"public void preorder() {\n root.preorder();\n System.out.println(\"\");\n }",
"public static void setOldTree(RootedTree t) {\r\n\t\tsetOldNewickString(createNewickString(t)); // Added by Madhu, it is where I save the newick\r\n\t\t// string for the uploaded tree.\r\n\t\tSystem.out.println(\"OLD NODE:\" + getOldNewickString());\r\n\t\toldTree = t;\r\n\t}",
"@Override\n public void put(K key, V value) {\n root = putHelper(key,value,root);\n }",
"@Test\n public void testReuseforksfalse() throws Exception {\n String testName = \"reuseforksfalse\";\n EkstaziPaths.removeEkstaziDirectories(getClass(), testName);\n executeCleanTestStep(testName, 0, 1);\n }",
"@SneakyThrows\n public void deleteKeysFromMemory() {\n Preferences.userRoot().clear();\n }",
"protected WumpusMap() {\n\t\t\n\t}",
"public void lite() {\n\t\t\r\n\t\tthis.setJson(\"[]\");\r\n\t\t\r\n\t\t\r\n\t}",
"@PostConstruct\n public void postConstruct() throws KeeperException,\n InterruptedException, GeneralSecurityException {\n\n if (!initialized) {\n System.out.println(\"Initializing...\");\n ZooKeeper zk = zooKeeperClient.getZookeeper();\n\n if (zk.exists(TENANTS, null) == null) {\n zk.create(TENANTS, \"Initialized\".getBytes(),\n ACL, CreateMode.PERSISTENT);\n }\n\n if (zk.exists(LOGS, null) == null) {\n zk.create(LOGS, \"Initialized\".getBytes(),\n ACL, CreateMode.PERSISTENT);\n }\n\n try {\n Utils.encrypt(\"Test encryption key\".getBytes());\n } catch (GeneralSecurityException ex) {\n LOG.error(ex.getLocalizedMessage());\n System.err.println(\"\\n\\tError with encryption key \"\n + \"provided: '\\n\\t\\t\" + ex.getLocalizedMessage()\n + \"'\\n\\n\");\n throw ex;\n }\n\n if (zk.exists((TENANTS + \"/hiinoono\"), null) == null) {\n Tenant t = new Tenant();\n t.setName(\"hiinoono\");\n t.setJoined(Utils.now());\n User u = new User();\n u.setName(\"admin\");\n u.setJoined(Utils.now());\n u.setPassword(hash(\"hiinoonoadminWelcome1\"));\n t.getUsers().add(u);\n\n this.addTenant(t);\n }\n\n initialized = true;\n }\n\n }",
"@Override\n public V remove(K key, V value) {\n Node saveRemove = new Node(null,null);\n root = removeHelper(key,value,root,saveRemove);\n return saveRemove.value;\n }",
"@Override\n\tpublic Path load(String keyName) {\n\t\treturn null;\n\t}",
"private static void secondLevelCacheWithoutSettingAttrInXML() {\n\t\ttry(Session session = HbUtil.getSession()){\n\t\t\tBook b = session.get(Book.class, 11);\n\t\t\tSystem.out.println(\"Book details : \\n\" + b);\n\t\t}catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(Session session = HbUtil.getSession()){\n\t\t\tBook b = session.get(Book.class, 11);\n\t\t\tSystem.out.println(\"Book details : \\n\" + b);\n\t\t}catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public void resetParents() {\r\n }",
"@Override\n public void key() {\n \n }",
"public void preorder() {\n\t\tpreorder(root);\n\t}",
"public void sync() throws KeeperException, InterruptedException {\n members = zk.getChildren(thisPrefix, groupWatcher, null); // also reset the watcher\n }",
"public void DoPutInNest(Holdable p);",
"public void preorder()\n {\n preorder(root);\n }",
"public void preorder()\n {\n preorder(root);\n }",
"public MagicDictionary() {\n root=new Node();\n }",
"private void inorder() {\r\n\t\t\tinorder(root);\r\n\t\t}",
"private void maintain(){\n ArrayList<Integer> shutDown = new ArrayList<Integer>();\n for (String addr : slaveMap.keySet()){\n if (!responderList.containsKey(slaveMap.get(addr))){\n shutDown.add(slaveMap.get(addr));\n }\n }\n //print\n for (Integer id : shutDown){\n synchronized (slaveList) {\n slaveList.remove(id);\n }\n }\n //TODO: one a slave lost control, what should ArcherDFS do?\n }",
"@Override\r\n\t\tpublic boolean execute() throws KeeperException, InterruptedException {\n\t\t\treturn false;\r\n\t\t}",
"public static void lost() {\n\t\tPig.alterStorage(false);\n\t}",
"public void ignoreChildren() {\r\n this.isIgnoreChildren = true;\r\n }",
"private void clean() {\n //use iterator\n Iterator<Long> it = nodes.keySet().iterator();\n while (it.hasNext()) {\n Long node = it.next();\n if (nodes.get(node).adjs.isEmpty()) {\n it.remove();\n }\n }\n }",
"boolean k2h_unset_debug_file();",
"public RedBlackTree()\n { \n \t root = null;\n }",
"public MagicDictionary() {\n\t\troot = new TrieNode();\n\t}",
"public TreeDictionary() {\n\t\t\n\t}",
"@Override\n\tpublic void recycle()\n\t{\n\t}",
"abstract T run() throws KeeperException, InterruptedException;",
"SELLbeholder() {\n listehode = new Node(null, null);\n }",
"private void skipStaleEntries()\n {\n while (this.index < keys.size() && !HashBijectiveMap.this.containsKey(keys.get(this.index)))\n this.index++;\n }",
"private KnowledgeBase getKbase() {\n KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();\n kbuilder.add(ResourceFactory.newClassPathResource(\"getOlder.drl\", getClass()), ResourceType.DRL);\n return kbuilder.newKnowledgeBase();\n }",
"@SuppressWarnings(\"unchecked\") // Needed to stop Eclipse whining\n private void resetWithHole() {\n Entry<K, V>[] entries = new Entry[] {a, c};\n super.resetMap(entries);\n navigableMap = (NavigableMap<K, V>) getMap();\n }",
"@Override\n boolean areNestedRefsProhibited() {\n return true;\n }",
"protected ILevelBasedRegistry() {\n this.internalRegistry = new ConcurrentHashMap<>();\n }",
"protected void root(BSTNode root) {\n\t\tthis.root = (BSTNode)root;\n\t}",
"public void initOldRootTxs();",
"private void kk12() {\n\n\t}",
"void unset(K k);",
"public DogNode shelter (Dog d) {\n\t\t\tif(root == null){\r\n\t\t\t\tDogNode newDog = new DogNode(d);\r\n\t\t\t\troot = newDog;\r\n\t\t\t\treturn root;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t//recursively insert the dog into the BST\r\n\t\t\t\tinsert(d, root);\r\n\t\t\t}\r\n\r\n return root; // DON'T FORGET TO MODIFY THE RETURN IF NEED BE\r\n\t\t}",
"public void preOrder() {\n preOrder(root);\n }",
"public void markCannotBeKept() {\n cannotBeKept = true;\n }",
"public void useKey() {\n Key key = this.getInventory().getFirstKey();\n if (key != null){\n this.getInventory().removeItems(key);\n }\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}",
"private void setDeepEnabled(boolean value) {\n ArrayList<Component> components = new ArrayList<Component>();\n components.add(this);\n while (!components.isEmpty()) {\n Component com = components.remove(0);\n com.setEnabled(value);\n if (com instanceof Container) {\n Collections.addAll(components, ((Container) com).getComponents());\n }\n }\n }",
"@Test\n public void testReuseforkstrue() throws Exception {\n String testName = \"reuseforkstrue\";\n EkstaziPaths.removeEkstaziDirectories(getClass(), testName);\n executeCleanTestStep(testName, 0, 1);\n }",
"@Override\r\n public void clear(){\r\n root = null;\r\n }",
"@Override\r\n public K floorKey(final K key) {\n return null;\r\n }",
"@Override\r\n\tpublic CacheTreeNode getOneRootNode(String key) {\n\t\treturn searchTreeNode(key);\r\n\t}",
"public void delete(Key key) {\n\troot = delete(root, key);\t\n}",
"void decrementOldDepth() {\n mOldDepth--;\n }",
"@Override\n\tpublic void deneme() {\n\t\tsuper.deneme();\n\t}",
"@Override\n public void clear() {\n root = null;\n }",
"private void override() {\n AppSettings.setInstance(\n ConfigFactory.parseMap(newSettingsMap).withFallback(AppSettings.getInstance()));\n }",
"public void put(int key) { root = put(root, key); }",
"@Override\n public void clear() {\n root = new Node ('i', false, 256);\n }",
"private ContainerWithMostWater() {\n }",
"public JSONObject getKeep(){return kd;}",
"private stendhal() {\n\t}"
] | [
"0.59810674",
"0.555456",
"0.5459175",
"0.53531146",
"0.5351788",
"0.530834",
"0.52872753",
"0.5282355",
"0.52335864",
"0.5231312",
"0.5223331",
"0.5212983",
"0.52107835",
"0.51976806",
"0.5102091",
"0.5059493",
"0.50352806",
"0.50174475",
"0.50117356",
"0.49910435",
"0.49899048",
"0.49798286",
"0.49734363",
"0.49581012",
"0.4955212",
"0.49535587",
"0.4948149",
"0.4932226",
"0.49234992",
"0.4913744",
"0.4904002",
"0.49004138",
"0.4895568",
"0.48881608",
"0.48785552",
"0.48769787",
"0.48741636",
"0.48668736",
"0.48664075",
"0.48592693",
"0.48484558",
"0.48471403",
"0.48364562",
"0.48334837",
"0.48330382",
"0.48217127",
"0.48115337",
"0.48103893",
"0.48101988",
"0.48091817",
"0.48053083",
"0.48044798",
"0.4803261",
"0.48000523",
"0.47986868",
"0.47956276",
"0.47956276",
"0.4792298",
"0.47916603",
"0.47832823",
"0.47795996",
"0.4775326",
"0.47720462",
"0.47715726",
"0.47617605",
"0.47551024",
"0.47494814",
"0.4748694",
"0.47481623",
"0.47470006",
"0.47414824",
"0.47383943",
"0.47362822",
"0.47331178",
"0.47299245",
"0.47256237",
"0.4725004",
"0.4724627",
"0.47228295",
"0.4721863",
"0.47214103",
"0.4720629",
"0.47177237",
"0.47119644",
"0.47096023",
"0.4709081",
"0.47047138",
"0.4703888",
"0.4703074",
"0.47028652",
"0.47026372",
"0.47017327",
"0.47013807",
"0.46999526",
"0.46992317",
"0.46989515",
"0.46971697",
"0.46947098",
"0.46936396",
"0.46923152",
"0.46842167"
] | 0.0 | -1 |
Add a string to this SimpleMessageObject. | public void addString(String name, String value) {
STRINGS.add(new SimpleMessageObjectStringItem(name, value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"StringCursor addString(String string) throws RemoteException;",
"public void addMessage(String message);",
"private void add(String thestring) {\n\t\t\n\t}",
"public void add(String str);",
"public void add(String str);",
"public ModelMessage add(String value) {\n super.add(value);\n return this;\n }",
"public void add(String value) {\n add(value, false);\n }",
"public void add(String value);",
"org.hl7.fhir.String addNewValueString();",
"private void _add(final String value) {\n appended();\n\n buffer.encode(value);\n }",
"void add(String value);",
"public void addMessage(String message) {\r\n returnObject.addMessage(message);\r\n }",
"@Override\r\n\tpublic void addMessage(String ChatMessageModel) {\n\t\t\r\n\t}",
"private void addString(String value) {\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Adding String '\" + value + \"'\");\n }\n\n int index = stringTable.getIndex(value);\n addInt(index);\n }",
"public void add(String str) {\r\n list.add(str);\r\n }",
"@Override\n public void addMessage(String message) {\n messages.add(message);\n }",
"public ModelMessage addStringTemplate(StringTemplate template) {\n super.addStringTemplate(template);\n return this;\n }",
"public void add(StringData stringData) {\n this.webUserList.add(stringData);\n }",
"public void addMessage(String m) {\n chat.append(\"\\n\" + m);\n }",
"public void addMessage(String message) {\n\t\tthis.message = message;\n\t}",
"public static void add(String key, String string) {\n\t\tcache.add(key, string);\n\t}",
"public void addModString(String name, String string)\n {\n modules.put(name,string);\n }",
"public ModelMessage add(String key, String value) {\n super.add(key, value);\n return this;\n }",
"public void addText(String text) {\n\t\tthis.text = text;\n\t}",
"public static java.lang.String AddString (com.intersys.objects.Database db, java.lang.String inString, java.lang.String inAddString) throws com.intersys.objects.CacheException {\n com.intersys.cache.Dataholder[] args = new com.intersys.cache.Dataholder[2];\n args[0] = new com.intersys.cache.Dataholder(inString);\n args[1] = new com.intersys.cache.Dataholder(inAddString);\n com.intersys.cache.Dataholder res=db.runClassMethod(CACHE_CLASS_NAME,\"AddString\",args,com.intersys.objects.Database.RET_PRIM);\n return res.getString();\n }",
"public void writeString(String message);",
"public void addTag(String s) {\n tags.add(s);\n }",
"public void addMessage() {\n }",
"public boolean addString(final String memberString) {\n if (!strings.contains(memberString)) {\n strings.add(memberString);\n return true;\n }\n return false;\n }",
"public void addMessage(String msg){messages.add(msg);}",
"void appendMessage(String message) throws RemoteException;",
"private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}",
"public void add(String value) {\n root.add(value, true);\n }",
"public static void writeLine(String string) {\n\t\t \n\t\tif (tinObject.length() == 0) {\n\t\t\ttinObject.append(firstString);\n\t\t}\n\t\ttinObject.append(string);\n\t}",
"static void add(String s) {\n if (s != null) {\n a.add(s);\n }\n }",
"public void add(String element) {\n\t\tslist.add(element);\n\t}",
"public void addProperty(String s, Object o) {\n }",
"public void addProperty(String s, Object o) {\n }",
"public void addMessage(Object object)\r\n\t{\r\n\t\tmessageList.add(object);\r\n\t}",
"public boolean addString(String string) {\r\n\t\tboolean added = false;\r\n\t\tif (string != null && !string.trim().equals(\"\")) {\r\n\t\t\tif (this.strings == null) {\r\n\t\t\t\tthis.strings = new HashSet<String>();\r\n\t\t\t}\r\n\t\t\tString stringTrimmedLowercase = string.trim().toLowerCase();\r\n\t\t\tadded = this.strings.add(stringTrimmedLowercase);\r\n\t\t}\r\n\t\treturn added;\r\n\t}",
"public Message addMessage(Message p);",
"synchronized void add(String s) throws InterruptedException {\n\t\tmessages.add(s);\n\t\tnotifyAll();\n\t}",
"public void add(String text) {\n list.add(text);\n }",
"public void addNewLegalEntity(String string) {\n\t\t\r\n\t}",
"public void addMessage(String msg) {\n this.messages.add(msg);\n }",
"public void setString(String string) {\n this.string = string;\n }",
"public XmlProtoElementBuilder addChildText(String text) {\n element.addChild(XmlNode.newBuilder().setText(text));\n return this;\n }",
"public void addPhoneNumber(String s){\r\n\t\t// Needs to be processed further with a Phone Class\r\n\t\t// In order to get different types (Mobile/Work...etc)\r\n\t\tphone.add(s);\t\t\r\n\t}",
"public void add(final String string) throws IOException {\n\n\t\t// first store position of string in pointers file...\n\n\t\t// the first four bytes store the maximum position in this file!\n\t\tfinal long posInFile = 4 + this.max*8;\n\n\t\tStringArray.storeLongInPage(this.pointersFilename, posInFile, this.lastString);\n\n\t\t// update max also in pointers file...\n\n\t\tthis.max++;\n\n\t\tStringArray.storeIntInPage(this.pointersFilename, 0, this.max);\n\n\t\t// now store the string...\n\t\tthis.lastString = StringArray.storeStringInPage(this.stringsFilename, this.lastString, string);\n\n\t\t// and update the position into which the last string is stored!\n\n\t\tStringArray.storeLongInPage(this.stringsFilename, 0, this.lastString);\n\t}",
"public void add(String value) {\n\t\t// if consistent\n\t\tif (value != null) {\n\t\t\t// checks if contains separator\n\t\t\tif (value.contains(Constants.LINE_SEPARATOR)) {\n\t\t\t\t// splits the string by separator\n\t\t\t\t// and adds to object as array\n\t\t\t\tarray.push(ArrayString.fromOrEmpty(value.split(Constants.LINE_SEPARATOR)));\n\t\t\t} else {\n\t\t\t\t// pushes to JS array\n\t\t\t\tarray.push(value);\n\t\t\t}\n\t\t}\n\t}",
"public TupleDesc addString(String name) {\n columns.add(new TupleDescItem(Type.STRING, name));\n return this;\n }",
"public String plus(Object value) {\n return this.theString + value;\n }",
"public synchronized void AddCharacters(String s) {\n\t buffer += s;\n\t}",
"protected void addMessage(String info) {\r\n\t\tadd(MESSAGE_SYMBOL + info + \"\\n\", styles.getInfo());\r\n\t}",
"public void addMsg(String msg) {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n logger.debug(\"Add New Message -> \"+msg);\n this.messages.add(msg);\n }",
"public void addText(String str) {\r\n\t\tdialog.setText(dialog.getText()+str);\r\n\t}",
"public void setMessageString(String message_string) {\n this.message_string = message_string;\n }",
"public void Add(String item) {\n byte[] bites = Utils.hexToBytes(item);\n mpBuffer += Utils.bytesToHex(bites);\n mLenght += bites.length;\n mBackOffset = mLenght;\n }",
"boolean add(String val);",
"public StringContent(String newString)\n {\n content=newString;\n }",
"public void addChatMessage(IChatComponent p_145747_1_)\n {\n this.field_70009_b.append(p_145747_1_.getUnformattedText());\n }",
"public void addMessage(byte[] message) throws RemoteException;",
"public void addFormString(Element parent, String label, String text) {\r\n\t\tElement stringItem = mDocument.createElement(\"IppStringItem\");\r\n\t\tparent.appendChild(stringItem);\r\n\r\n\t\taddTextNode(stringItem, \"Label\", label);\r\n\r\n\t\taddTextNode(stringItem, \"Text\", text);\r\n\t}",
"@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}",
"@SuppressWarnings (\"unchecked\") public void add(String item){\n if(item==null)\n return;\n items.add(item.trim());\n }",
"public void push(String s){\n pilha.add(s);\n }",
"public void addMessage(String s) {\n s = \"• \" + s;\n\n //Split larger messages into smaller ones\n for (int i = 0; i < s.length(); i++){\n \n if (i == 31) {\n \n //Put the beginning part of the message in its own line\n messages.add(s.substring(0, i) + \" \");\n \n s = s.substring(i, s.length());\n \n //Reset for loop\n i = 0;\n\n }\n \n }\n \n //Add padding to shorter messages (helps with formating)\n while (s.length() <= 31) {\n \n s += \" \";\n \n }\n \n //Add message\n messages.add(s);\n \n //Remove old messages if we've exceeded capacity\n while (messages.size() > MESSAGES_MAX_SIZE) {\n \n messages.remove(0);\n \n }\n\n }",
"public void add(String newData) {\r\n dataTag.add(0);\r\n data.add(newData);\r\n }",
"public void text(String message) {\n text.append(message);\n }",
"public Element addText(String text) {\n Assert.isTrue(text != null, \"Text is null\");\n element.appendChild(element.getOwnerDocument().createTextNode(text));\n\n return this;\n }",
"public void write(String string) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append(string);\r\n }",
"public void addTransaction(String s) {\r\n\t\ttransactions.add(s);\r\n\t}",
"public ModelMessage addStringTemplate(String key, StringTemplate template) {\n super.addStringTemplate(key, template);\n return this;\n }",
"public synchronized void write(String message) {\n\t\tcontent.add(message);\n\n\t\tnotify();\n }",
"public abstract void addValue(String str, Type type);",
"public boolean add(String s) {\n\t\tif (s != \"\") return start.get().add(s, 0);\n\t\tAtomicBoolean result = emptyAbsent;\n\t\temptyAbsent.set(false);\n\t\treturn result.get();\n\t}",
"@Override\r\n\tpublic DTextArea add(final String value) throws DOMException {\r\n\t\tsuper.add(value) ;\r\n\t\treturn this ;\r\n\t}",
"public void addEmail(String s){\r\n\t\temail.add(s);\t\t\r\n\t}",
"public boolean add(String value){\n int index=findIndexBinary(value);\n super.add(index,value);\n return true;\n }",
"public void add_to_log(String s){\n }",
"public void add(String inputFile, String message) {\n\t\tthis.messages.add(new String[]{inputFile, message});\n\t}",
"@SuppressWarnings(\"unchecked\")\n public void writeString(String x) throws SQLException{\n //System.out.println(\"Adding :\"+x);\n attribs.add(x);\n }",
"public final Object add(final String key, final String value)\n\t{\n\t\tcheckMutability();\n\t\tfinal Object o = get(key);\n\t\tif (o == null)\n\t\t{\n\t\t\treturn put(key, value);\n\t\t}\n\t\telse if (o.getClass().isArray())\n\t\t{\n\t\t\tint length = Array.getLength(o);\n\t\t\tString destArray[] = new String[length + 1];\n\t\t\tfor (int i = 0; i < length; i++)\n\t\t\t{\n\t\t\t\tfinal Object arrayValue = Array.get(o, i);\n\t\t\t\tif (arrayValue != null)\n\t\t\t\t{\n\t\t\t\t\tdestArray[i] = arrayValue.toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\tdestArray[length] = value;\n\n\t\t\treturn put(key, destArray);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn put(key, new String[] { o.toString(), value });\n\t\t}\n\t}",
"@Override\n public void add(ChatMessage object) {\n chatMessageList.add(object);\n super.add(object);\n }",
"public boolean add(String s){\n if(count == contents.length) {\n return false;\n }\n contents[count] = s;\n count++;\n return true;\n }",
"public static java.lang.String AddString (com.intersys.objects.Database db, java.lang.String inString, java.lang.String inAddString, java.lang.String inSeparator) throws com.intersys.objects.CacheException {\n com.intersys.cache.Dataholder[] args = new com.intersys.cache.Dataholder[3];\n args[0] = new com.intersys.cache.Dataholder(inString);\n args[1] = new com.intersys.cache.Dataholder(inAddString);\n args[2] = new com.intersys.cache.Dataholder(inSeparator);\n com.intersys.cache.Dataholder res=db.runClassMethod(CACHE_CLASS_NAME,\"AddString\",args,com.intersys.objects.Database.RET_PRIM);\n return res.getString();\n }",
"public void add(String word) {\n Signature sig = new Signature(word);\n add(sig, word);\n }",
"public void addText(String text) {\n resultsText.append(text);\n }",
"public Payload add(String key, String value) {\n getData().put(key, value);\n return this;\n }",
"public abstract void append(String s);",
"void add(ByteString element);",
"public void addToLore(String additionString) {\n\t\t\n\t\tItemMeta im = this.getMeta();\n\t\t\n\t\tArrayList<String> construct = new ArrayList<>(im.getLore());\n\t\t\n\t\tfor(String s: additionString.split(\"~\")) {\n\t\t\tconstruct.add(this.plugin.color(s));\n\t\t}\n\t\t\n\t\tim.setLore(construct);\n\t\t\n\t}",
"public void enqueue(String message) {\n\t\tqueue.add (message);\n\t}",
"abstract void addMessage(Message message);",
"public void sendMessage(String s){\r\n\t\tsynchronized(msgToSend){ // synchronized to maintain thread-safety\r\n\t\t\tmsgToSend.append(s + \"\\n\");\r\n\t\t}\r\n\t}",
"public void add(String text){\n\t\thead = add(text, head ,0);\n\t}",
"public void addMessage(EventMessage message) {\n }",
"public GraphNode addObject(String obj){\n\t\tGraphNode objVar = new GraphNode(addElement(obj, 5), 5);\n\t\tauthGraph.addVertex(objVar);\n\t\treturn objVar;\n\t}",
"public void setString(String newString) {\n\tstring = newString;\n }",
"public synchronized void addContext(String s) {\n if (context == null)\n context = new ArrayList<String>();\n context.add(s);\n }"
] | [
"0.67193407",
"0.6689263",
"0.66592175",
"0.6582039",
"0.6582039",
"0.64997774",
"0.6414108",
"0.6312956",
"0.62893564",
"0.62738544",
"0.6259796",
"0.6107666",
"0.60848236",
"0.60686004",
"0.60635364",
"0.60379785",
"0.5966289",
"0.59470063",
"0.5942168",
"0.59420776",
"0.59279525",
"0.5916608",
"0.589991",
"0.585053",
"0.5849451",
"0.58259845",
"0.58139914",
"0.5802508",
"0.57929164",
"0.5779171",
"0.57765007",
"0.5758625",
"0.574546",
"0.57232285",
"0.5700849",
"0.569229",
"0.5690616",
"0.5690616",
"0.5660881",
"0.5660006",
"0.5659255",
"0.56531936",
"0.56404847",
"0.5633945",
"0.5611371",
"0.5608529",
"0.5592324",
"0.5584518",
"0.5576756",
"0.5570879",
"0.5569571",
"0.5514208",
"0.54984343",
"0.5486798",
"0.54800546",
"0.5475733",
"0.5464735",
"0.5457191",
"0.5432052",
"0.5430154",
"0.54288185",
"0.54184234",
"0.5413851",
"0.54058075",
"0.5404677",
"0.54028517",
"0.5378427",
"0.5376166",
"0.5375113",
"0.53659314",
"0.5363973",
"0.5358274",
"0.53544146",
"0.53532493",
"0.5341769",
"0.5340622",
"0.5337671",
"0.5333175",
"0.53186625",
"0.5313807",
"0.5309185",
"0.53088325",
"0.5304315",
"0.53018135",
"0.5297927",
"0.5289601",
"0.52850837",
"0.5282173",
"0.52804846",
"0.5277893",
"0.5274116",
"0.5267906",
"0.52663976",
"0.52619874",
"0.5257739",
"0.5255553",
"0.5250374",
"0.5237012",
"0.5221409",
"0.52212805"
] | 0.711119 | 0 |
Add an int to this SimpleMessageObject. | public void addInt(String name, int value) {
INTS.add(new SimpleMessageObjectIntItem(name, value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void add(int value) {\n m_value += value;\n }",
"@Override\n\tpublic int add(Message t) {\n\t\treturn 0;\n\t}",
"public final void addToPendingCount(int paramInt)\n/* */ {\n/* 526 */ U.getAndAddInt(this, PENDING, paramInt);\n/* */ }",
"public Integer add();",
"public void add(int add) {\r\n value += add;\r\n }",
"@Override\n public HangarMessages addConstraintsTypeIntegerMessage(String property) {\n assertPropertyNotNull(property);\n add(property, new UserMessage(CONSTRAINTS_TypeInteger_MESSAGE));\n return this;\n }",
"public Builder addItem(int value) {\n ensureItemIsMutable();\n item_.addInt(value);\n onChanged();\n return this;\n }",
"public void add(NestedInteger ni);",
"public void addNumber(int number) {\r\n\t\tadd(Integer.toString(number).getBytes(charset));\r\n\t}",
"void add(int value);",
"@Override\r\n\tpublic void AddItem(int n) {\n\t\tSystem.out.println(\"ADDED:\" + n);\r\n\r\n\t}",
"private void addInt(int value) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Adding int index at \" + intCount + \" value \" + value);\n }\n ensureIntArrayCapacity(intCount + 1);\n intArray[intCount] = value;\n intCount += 1;\n }",
"public void add(NestedInteger ni){}",
"public void add(PeerInt p){\n\t\tMLog.log(\"adding peer\");\n\t\tpeers.add(p);\n\t}",
"public void add(int element);",
"@Override\n\tpublic void addIntHeader(String name, int value) {\n\t}",
"@Override\n public IntType addToInt(IntType IntType) {\n int int1 = IntType.getValue();\n int int2 = this.asInt().getValue();\n return TypeFactory.getIntType(int1 + int2);\n }",
"void add(String name, int value);",
"public void add(int i) {\n\t\t\tthis.val =i;\n\t\t\t\n\t\t}",
"public void add(int number) {\n sum.add(number);\n }",
"public void addValue(int i) {\n value = value + i;\n }",
"public void addToPrimitive(int add) {\n primitiveCounter += add;\n }",
"public void add (int value) {\r\n\t\ttotal = total + value;\r\n\t\thistory = history + \" + \" + value;\r\n\t}",
"public static int addInt(int a, int b){\r\n\t\treturn a+b;\r\n\t}",
"public void add (int value) {\n\t\ttotal = total + value;\n\n\t\thistory = history + \" + \" + value;\n\t\t\n\t}",
"@Override\n\tpublic void add(Integer value) {\n\t\troot=add(root,value);\n\t\tcount++;\n\t}",
"@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}",
"public TupleDesc addInteger(String name) {\n columns.add(new TupleDescItem(Type.INTEGER, name));\n return this;\n }",
"@Override\r\n\tpublic int add() {\n\t\treturn 0;\r\n\t}",
"@Override\n public void addIntHeader(String arg0, int arg1) {\n\n }",
"public abstract void add(NestedInteger ni);",
"public void add(int value) {\n\t \tensureCapacity(size+ 1);\n\t \telementData[size] = value;\n\t \tsize++;\n\t }",
"@Override\n\t\tpublic int add(int a, int b) throws RemoteException {\n\t\t\tLog.i(TAG, \"add a = \" + a + \", b = \" + b);\n\t\t\treturn a+b;\n\t\t}",
"boolean add(int value);",
"public void add(int Item) {\n\t\t\tif (nowLength < MAXSIZE) {\n\t\t\t\tray[nowLength] = Item;\n\t\t\t\tnowLength++;\n\t\t\t}\n\t}",
"void add(int val);",
"public void addScore(int score);",
"public void add(int number) {\n numbers.put(number, numbers.getOrDefault(number, 0)+1);\n }",
"public HugeUInt add(int intArg) {\r\n HugeUInt arg = new HugeUInt(intArg);\r\n return new HugeUInt(this.add(arg));\r\n }",
"public void addElement(Integer elem){\n\t\tlist.add(elem);\n\t}",
"public void putInt(String key, int value) {\n put(key, Integer.toString(value));\n }",
"public void addNumber(int number) {\n totalNumber += number;\n availableNumber += number;\n }",
"@Override\n\tpublic int add(int a, int b) {\n\t\treturn super.add(a, b);\n\t}",
"public void add(NestedInteger ni) {\n this.nestedIntegers.add(ni);\n }",
"public void add(NestedInteger ni) {\n this.list.add(ni);\n }",
"public void add_to_score(int num){\n score+=num;\n }",
"public void addElement(Integer e){\n list.add(e);\n }",
"public void add(int propID, int i, Object obj) throws SL_Exception\n {\n switch(propID)\n {\n default:\n super.add(propID, i, obj);\n }\n }",
"public void addProperty(String key,\n int value) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n this.attributes.put(key, Integer.toString(value));\n }",
"public void add (int item)\n\t{\n\t\tadd(this.root,item);\n\t}",
"public void add(int value) {\n\t\taddRecursive(root, value);\n\t\t// System.out.print(\"root\" + String.valueOf(root.value));\n\t}",
"public void putInt(ResourceLocation name, int value) {\n data.putInt(name.toString(), value);\n }",
"public int addItem(Item i);",
"public final void addScore(int iScore) {\n\t\tscore += iScore;\n\t}",
"@Override\r\n\tpublic int addNo(int a, int b) {\n\t\treturn a+b;\r\n\t}",
"public void add(int number) {\n hash.put(number, hash.getOrDefault(number, 0) + 1);\n }",
"@Override\n\tpublic boolean addofferNum(int proId) {\n\t\tboolean b = false;\n\t\tTProject pro = tprojectmapper.selectByPrimaryKey(proId);\n\t\tpro.setOfferNum((Integer.parseInt(pro.getOfferNum())+1)+\"\");\n\t\tif(tprojectmapper.updateByPrimaryKey(pro)==1){\n\t\t\tb = true;\n\t\t}\n\t\treturn b;\n\t}",
"@Override\r\n\tpublic int add(int a,int b) {\n\t\treturn a+b;\r\n\t}",
"public void addUnreadMessageNumber() {\n this.mUnreadMessageNum++;\n }",
"public addMessage(int num) {\n\t\t\tthis.num = num;\n\t\t\tif(num == 1) {\n\t\t\t\taddMessage();\n\t\t\t}\n\t\t\telse if(num == 2) {\n\t\t\t\terrorMessage();\n\t\t\t}\n\t\t\telse if(num == 3) {\n\t\t\t\tfreeRentAllowed();\n\t\t\t}\n\t\t\telse if(num == 4) {\n\t\t\t\tlimitRental();\n\t\t\t}\n\t\t\telse if(num == 5) {\n\t\t\t\ttitleAlreadyTaken();\n\t\t\t}\n\t\t\t\n\t\t}",
"public MutableInteger(int value) {\n m_value = value;\n }",
"public void add(int value) {\n overallRoot = add(overallRoot, value);\n }",
"@Override\n\tpublic int add(int a, int b) {\n\t\treturn a+b;\n\t}",
"public void increase(int number) {\r\n this.count += number;\r\n }",
"public void increase(int number) {\r\n this.count += number;\r\n }",
"public void addValue(String variable, Integer int_value) {\n\t\tDate date = new Date();\n\t\tGregorianCalendar gc = new GregorianCalendar();\n\t\tgc.setTime(date);\n\t\tgc.add(Calendar.HOUR_OF_DAY, -6);\n\t\tdate = gc.getTime();\n\t\tDatabaseStore ds = DatabaseStore.DatabaseIntegerStore(variable,\n\t\t\t\tint_value.toString(), date);\n\t\taddQuestion(ds);\n\t}",
"@Override\n\tpublic boolean add(Integer e) {\n\t\t// TODO Auto-generated method stub\n\t\treturn false;\n\t}",
"public int addValue(byte i) {\n return foldIn(i);\n }",
"private void addMessageId(long value) {\n ensureMessageIdIsMutable();\n messageId_.addLong(value);\n }",
"public ObjectMap put(String key, int value) throws JsonException {\r\n\t\tobjectMap.put(check_Key(key), value);\r\n\t\treturn this;\r\n\t}",
"public org.hl7.fhir.Integer addNewQuantity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Integer target = null;\n target = (org.hl7.fhir.Integer)get_store().add_element_user(QUANTITY$10);\n return target;\n }\n }",
"public int putElement(Object key, int value)\r\n {\r\n return put(key, value);\r\n }",
"public void setIntValue(int v)\n {\n this.setValue(String.valueOf(v));\n }",
"public void addParseElement(String key, int value) {\n this.addParseElement(key, String.valueOf(value));\n }",
"public Int(int v) {\n value = v;\n }",
"public void add(int number) {\n map.put(number, map.getOrDefault(number, 0) + 1);\n }",
"public void addLength(int num) {\r\n this.length += num;\r\n }",
"public void addIntHeader(String s, int i) {\n\t\t\n\t}",
"Long addAmount(Integer id, Long value) throws Exception;",
"public void addToScore(int score)\n {\n this.score += score;\n }",
"public void add(NestedInteger ni) {\n\t\tif (this.list == null) {\n\t\t\tthis.list = new ArrayList<>();\n\t\t}\n\t\tthis.list.add(ni);\n\t}",
"public void putIntegerData(String key, Integer value) {\n editor.putInt(key, value);\n editor.apply();\n }",
"@Override\n\tpublic int insert(Message t) {\n\t\treturn 0;\n\t}",
"public void addCount()\n {\n \tcount++;\n }",
"public void add(){\n contador += 100;\n }",
"@Override\n public int intValue(int numId) {\n return 0;\n }",
"public MutableInt(int newval) {\n value = newval;\n }",
"public static <K> void addNumber (Map<? super K, Integer> toAdd, K key, int val) {\n if (toAdd.get(key) == null) {\n toAdd.put(key, val);\n } else {\n toAdd.put(key, toAdd.get(key) + val);\n }\n }",
"public Builder addData(int value) {\n ensureDataIsMutable();\n data_.add(value);\n onChanged();\n return this;\n }",
"public void add(int number) {\n\t if(!m.containsKey(number)) {\n\t m.put(number, 0);\n\t }\n\t int pre = m.get(number);\n\t m.put(number, pre + 1);\n\t}",
"@Override\n\tpublic void outAIntegerExpr(AIntegerExpr node) {\n\t\til.append(new PUSH(cp, Integer.valueOf(node.getNumber().getText()))); \n\n\t}",
"public Integer add(Integer a, Integer b) {\n\t\treturn a + b;\n\t}",
"public void visitIADD(IADD o){\n\t\tif (stack().peek() != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'int', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'int', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}",
"public void addItem(int value) {\n if (root == null) {\n root = new Node(value);\n } else {\n addToNode(root, value);\n }\n }",
"public void addToScore(final int theScoreAddition) {\n this.myCurrentScoreInt += theScoreAddition;\n \n if (this.myCurrentScoreInt > this.myHighScoreInt) {\n this.myHighScoreInt = this.myCurrentScoreInt; \n this.persistHighScore();\n } \n }",
"public void putInt(String key, int value, boolean commit) {\r\n\t\tputInt(Global.getContext(), key, value, commit);\r\n\t}",
"public void addValue() {\n addValue(1);\n }",
"void setIntValue(int value)\n {\n this.value = value;\n }"
] | [
"0.64030254",
"0.63831496",
"0.6303059",
"0.59734595",
"0.5952581",
"0.59415466",
"0.5938877",
"0.592998",
"0.5929075",
"0.5918129",
"0.59043956",
"0.5847197",
"0.5815436",
"0.5805484",
"0.58000875",
"0.57869375",
"0.5755678",
"0.57526916",
"0.5732534",
"0.571804",
"0.56883013",
"0.56806517",
"0.5672036",
"0.56664443",
"0.56599516",
"0.5650988",
"0.5629098",
"0.5629098",
"0.5629098",
"0.5624444",
"0.5619833",
"0.56157655",
"0.56135666",
"0.558977",
"0.55605114",
"0.5552998",
"0.5552363",
"0.55490077",
"0.5510742",
"0.5491541",
"0.5480141",
"0.5469319",
"0.5464704",
"0.54523176",
"0.54409343",
"0.54299486",
"0.5428333",
"0.5419613",
"0.5405645",
"0.5387575",
"0.53775203",
"0.53761035",
"0.5369882",
"0.5356316",
"0.53496546",
"0.53469837",
"0.53451324",
"0.53420264",
"0.53416944",
"0.5340727",
"0.5325099",
"0.53177094",
"0.5306123",
"0.53022593",
"0.52990055",
"0.52984375",
"0.52984375",
"0.5291234",
"0.5272722",
"0.52698725",
"0.52576756",
"0.5254621",
"0.525296",
"0.5252157",
"0.5243956",
"0.5243388",
"0.52424586",
"0.52276",
"0.52273995",
"0.5227266",
"0.5214637",
"0.52135134",
"0.521151",
"0.52060986",
"0.5202003",
"0.52018666",
"0.51981294",
"0.51948553",
"0.5194572",
"0.5186808",
"0.5179255",
"0.51701444",
"0.51631904",
"0.51599306",
"0.5157155",
"0.514925",
"0.5140617",
"0.51355815",
"0.51237553",
"0.51237243"
] | 0.74111164 | 0 |
Add an long to this SimpleMessageObject. | public void addLong(String name, long value) {
LONGS.add(new SimpleMessageObjectLongItem(name, value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public long addlong(long o1, long o2) {\n return o1 + o2;\n }",
"private void addMessageId(long value) {\n ensureMessageIdIsMutable();\n messageId_.addLong(value);\n }",
"@Override\n public HangarMessages addConstraintsTypeLongMessage(String property) {\n assertPropertyNotNull(property);\n add(property, new UserMessage(CONSTRAINTS_TypeLong_MESSAGE));\n return this;\n }",
"void setLong(String key, long val);",
"public void setLongValue(long v)\n {\n this.setValue(String.valueOf(v));\n }",
"public void add(Longpay longpay) {\n\t\tsm.insert(\"com.lanzhou.entity.Longpay.add\", longpay);\n\t}",
"public void addLongStat(MetricDef metric, long value){\n longMetrics.putOrAdd(metric.metricId(), value, value);\n }",
"public void setMyLong(long myLongIn) {\n myLong = myLongIn;\n }",
"void writeLong(long value);",
"public Builder addValue(long value) {\n ensureValueIsMutable();\n value_.addLong(value);\n onChanged();\n return this;\n }",
"public ByteBuf writeLong(long value)\r\n/* 557: */ {\r\n/* 558:568 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 559:569 */ return super.writeLong(value);\r\n/* 560: */ }",
"void writeLong(long v) throws IOException;",
"public void print(long someLong) {\r\n print(someLong + \"\");\r\n }",
"public static PropertyDescriptionBuilder<Long> longProperty(String name) {\n return PropertyDescriptionBuilder.start(name, Long.class, Parsers::parseLong);\n }",
"@Override\r\n\tpublic Buffer setLong(int pos, long l) {\n\t\treturn null;\r\n\t}",
"public void putLong (JSONObject target , String key , Long value){\r\n\t\tif ( value==null){\r\n\t\t\ttarget.put(key, JSONNull.getInstance());\r\n\t\t\treturn ; \r\n\t\t}\r\n\t\ttarget.put(key, new JSONNumber(value));\r\n\t}",
"String longWrite();",
"public ByteBuf writeLongLE(long value)\r\n/* 877: */ {\r\n/* 878:886 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 879:887 */ return super.writeLongLE(value);\r\n/* 880: */ }",
"public Builder addMessageId(long value) {\n copyOnWrite();\n instance.addMessageId(value);\n return this;\n }",
"long getLongValue();",
"long getLongValue();",
"private void printLongField(String name, long value, String groupName, String units) {\n sendToGanglia(name, GANGLIA_INT_TYPE, String.format(locale, \"%d\", value), groupName, units);\n }",
"public org.apache.gora.cascading.test.storage.TestRow.Builder setColumnLong(java.lang.Long value) {\n validate(fields()[2], value);\n this.columnLong = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setLongInternal(FastJsonResponse.Field<?, ?> field, String str, long j) {\n zab(field);\n SafeParcelWriter.writeLong(this.zarb, field.getSafeParcelableFieldId(), j);\n }",
"public long getMyLong() {\n return myLong;\n }",
"@Override\n public void put(String name, long value) {\n emulatedFields.put(name, value);\n }",
"public void pushLong (long aValue)\n\t{\n\t\tif (aValue == 0)\n\t\t{\n\t\t\titsVisitor.visitInsn(Opcodes.LCONST_0);\n\t\t\treturn;\n\t\t}\n\t\telse if (aValue == 1)\n\t\t{\n\t\t\titsVisitor.visitInsn(Opcodes.LCONST_1);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\titsVisitor.visitLdcInsn(new Long(aValue));\n\t}",
"public ObjectMap put(String key, long value) throws JsonException {\r\n\t\tobjectMap.put(check_Key(key), value);\r\n\t\treturn this;\r\n\t}",
"public void set_long(long param) {\n this.local_long = param;\n }",
"public abstract TimeObject add(long time, int val);",
"public int add(final long newdata) {\n\t\treturn add(newdata, wordinbits);\n\t}",
"public void setLong(String parName, long parVal) throws HibException;",
"public static JSONNumber Long(long longVal) {\n\t\tJSONNumber number = new JSONNumber( Long.toString( longVal ) );\n\t\tnumber.longVal = longVal;\n\t\treturn number;\n\t}",
"public native long __longMethod( long __swiftObject, long arg );",
"public long getLongValue() {\n return longValue_;\n }",
"public long getLongValue() {\n return longValue_;\n }",
"public long longValue() {\n return number;\n }",
"public Long getLong(String attr) {\n return (Long) super.get(attr);\n }",
"@Override\n\tpublic void onNext(Long value_long) {\n\t\tSystem.out.println(value_long);\n\t\titems.add(value_long);\n\t\t\n\t}",
"public void setAddUser(Long addUser) {\n this.addUser = addUser;\n }",
"public Builder setLongValue(long value) {\n bitField0_ |= 0x00000020;\n longValue_ = value;\n onChanged();\n return this;\n }",
"@Override // com.google.android.gms.internal.firebase_ml.zzsq, java.util.List, java.util.AbstractList\n public final /* synthetic */ void add(int i, Long l) {\n zzk(i, l.longValue());\n }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default long asLong() {\n \n return notSupportedCast(BasicTypeID.LONG);\n }",
"public void put(String key, long value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}",
"public org.apache.gora.cascading.test.storage.TestRow.Builder setUnionLong(java.lang.Long value) {\n validate(fields()[5], value);\n this.unionLong = value;\n fieldSetFlags()[5] = true;\n return this; \n }",
"public long getLong(String name) {\n Enumeration enumer = LONGS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return -1L;\n }",
"@Override\r\n\tpublic void setAddNewObjectIdentifier(String arg0, Long arg1)\r\n\t{\n\r\n\t}",
"@Override\n\tpublic int add(Message t) {\n\t\treturn 0;\n\t}",
"protected MatrixToken _add(MatrixToken rightArgument)\n\t\t\tthrows IllegalActionException {\n\t\tLongMatrixToken convertedArgument = (LongMatrixToken) rightArgument;\n\t\tlong[] result = LongArrayMath.add(\n\t\t\t\tconvertedArgument._getInternalLongArray(), _value);\n\t\treturn new LongMatrixToken(result, _rowCount, _columnCount, DO_NOT_COPY);\n\t}",
"public void addLength(int num) {\r\n this.length += num;\r\n }",
"BigInteger add(long val) {\n if (val == 0)\n return this;\n if (signum == 0)\n return valueOf(val);\n if (Long.signum(val) == signum)\n return new BigInteger(add(mag, Math.abs(val)), signum);\n int cmp = compareMagnitude(val);\n if (cmp == 0)\n return ZERO;\n int[] resultMag = (cmp > 0 ? subtract(mag, Math.abs(val)) : subtract(Math.abs(val), mag));\n resultMag = trustedStripLeadingZeroInts(resultMag);\n return new BigInteger(resultMag, cmp == signum ? 1 : -1);\n }",
"long getELong();",
"public void setLongueur(int longueur) {\r\n this.longueur = longueur;\r\n }",
"public static void setLong(String aKey, long aValue) {\n getSharedPreferences().edit().putLong(aKey, aValue).apply();\n }",
"public NBTLong(String name, long val)\n\t{\n\t\tthis.name = name;\n\t\tthis.val = val;\n\t}",
"public void setColumnLong(java.lang.Long value) {\n this.columnLong = value;\n setDirty(2);\n }",
"public void setLongValue(long value) {\n setValueIndex(getPool().findLongEntry(value, true));\n }",
"public void setUnionLong(java.lang.Long value) {\n\t throw new java.lang.UnsupportedOperationException(\"Set is not supported on tombstones\");\n\t }",
"public AbsTime add(long t2) throws ArithmeticException\n {\n return add(RelTime.factory(t2));\n }",
"public void setUnionLong(java.lang.Long value) {\n this.unionLong = value;\n setDirty(5);\n }",
"@Override\r\n\tpublic long getLong(String string) {\n\t\treturn 0;\r\n\t}",
"private void serializeLong(final long number, final StringBuffer buffer)\n {\n if ((number >= Integer.MIN_VALUE) && (number <= Integer.MAX_VALUE))\n {\n buffer.append(\"i:\");\n }\n else\n {\n buffer.append(\"d:\");\n }\n buffer.append(number);\n buffer.append(';');\n }",
"public final void mT__27() throws RecognitionException {\n try {\n int _type = T__27;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalIotLuaXtext.g:27:7: ( 'long' )\n // InternalIotLuaXtext.g:27:9: 'long'\n {\n match(\"long\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"private void setLongTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n longToken_ = value.toStringUtf8();\n }",
"private void setLongTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n longToken_ = value.toStringUtf8();\n }",
"public static long getLongProperty(String key) {\r\n\t\treturn getLongProperty(key, 0);\r\n\t}",
"public ByteBuf setLong(int index, long value)\r\n/* 295: */ {\r\n/* 296:310 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 297:311 */ return super.setLong(index, value);\r\n/* 298: */ }",
"public void addStoredTime(long timeInMilliseconds){\n mStoredTime += timeInMilliseconds;\n }",
"public void setLength(long length) { \n this.length = length; \n }",
"public void add(long key, C value) {\n if(Long.toString(key).length() != 8) {\n \t//System.out.println(\"Sequence Error: Length is not 8.\\n\");\n return;\n }\n\n //clear the old key\n try {\n this.remove(key); \n } catch(Exception e) {\n sequence.add(new Entry<C>(key, value));\n size++;\n return;\n }\n //System.out.println(\"Found duplicate for key \" + key + \".\\n\"); \n sequence.add(new Entry<C>(key, value));\n size++;\n }",
"public Long getLong(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tLong result = PrimitiveDataTypeConvertor.toLong(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"Long\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public void setLongueur(int l) {\n\t\tthis.longueur = l;\n\t}",
"public void setAInteger(final Long a) {\r\n this.aInteger = a;\r\n }",
"@Deprecated\n public void UpdateLong(String facility, String statName, boolean additive, long value);",
"public Message(long msg) {\n m_msg = msg;\n m_type = getType(msg);\n parseMessage();\n }",
"public long toLong() {\n return this.toLongArray()[0];\n }",
"public void addResult(String key, long l) {\n addResult(key, Long.toString(l));\n }",
"public Long getLongAttribute();",
"public long getLongValue() {\n if (typeCase_ == 3) {\n return (java.lang.Long) type_;\n }\n return 0L;\n }",
"public static boolean setLongValue(String propID, long v)\n {\n return SystemProps.setStringValue(propID, String.valueOf(v));\n }",
"public Builder setLongValue(long value) {\n typeCase_ = 3;\n type_ = value;\n onChanged();\n return this;\n }",
"@ApiModelProperty(value = \"Last known longitude (Only for teachers/staff)\")\n public Double getLong() {\n return _long;\n }",
"public void setUnsignedLong(\n org.apache.axis2.databinding.types.UnsignedLong param) {\n this.localUnsignedLong = param;\n }",
"public boolean isLong() {\n return _isLong;\n }",
"public long longValue() {\n return value;\n }",
"public static Long getLong2(final Envelop envelop) {\n return In.request(envelop, 2, Long.class);\n }",
"public abstract void setLongImpl(String str, double d, Resolver<Void> resolver);",
"public long getLongProperty(String key) {\n\t\treturn Long.parseLong(this.getProperty(key));\n\t}",
"public void setLongStat(MetricDef metric, long value){\n longMetrics.put(metric.metricId(), value);\n }",
"public void setId(java.lang.Long value) {\n this.id = value;\n }",
"static long add(long a, long b){\n\t\treturn a+b;\n\t}",
"@CheckReturnValue\n default long idAsLong() {\n return Long.parseUnsignedLong(id());\n }",
"public void setPeti_numero(java.lang.Long newPeti_numero);",
"public void setPeti_numero(java.lang.Long newPeti_numero);",
"long decodeLong();",
"public void setQuantity(Long quantity) {\r\n this.quantity = quantity;\r\n }",
"@Override\n public final void setValue(Long value) {\n setValue(value, true);\n }",
"public void addTime(long time)\r\n {\r\n listOfTimes.add(time);\r\n }",
"public long longValue() {\n return this.value;\n }",
"public void setData(long value) {\n this.data = value;\n }"
] | [
"0.6440436",
"0.6195634",
"0.6002304",
"0.59891814",
"0.5882787",
"0.58715445",
"0.5867311",
"0.5822121",
"0.5796342",
"0.5709788",
"0.56597596",
"0.5652365",
"0.56412363",
"0.56335235",
"0.56285983",
"0.5569891",
"0.5561121",
"0.55562145",
"0.55199283",
"0.55030894",
"0.55030894",
"0.54943895",
"0.546752",
"0.5459618",
"0.5456432",
"0.54544526",
"0.5453882",
"0.5438231",
"0.5437406",
"0.5417928",
"0.54000324",
"0.539052",
"0.53578776",
"0.5337062",
"0.5314276",
"0.5310261",
"0.53044116",
"0.5299195",
"0.5296651",
"0.52937543",
"0.52937114",
"0.5289403",
"0.5278198",
"0.5274331",
"0.52716845",
"0.52501976",
"0.5244761",
"0.5223775",
"0.51995736",
"0.51995623",
"0.51930356",
"0.51911753",
"0.518266",
"0.5177565",
"0.51649463",
"0.5163825",
"0.5134431",
"0.51081216",
"0.51010364",
"0.5098626",
"0.5094054",
"0.5090941",
"0.5086037",
"0.5086014",
"0.5086014",
"0.50844043",
"0.5083405",
"0.5079607",
"0.5072377",
"0.5072375",
"0.5067965",
"0.5063736",
"0.5063312",
"0.5057166",
"0.5053921",
"0.5051242",
"0.50440294",
"0.50435007",
"0.5040458",
"0.50402915",
"0.5027803",
"0.50231683",
"0.50214696",
"0.5020234",
"0.50167143",
"0.501428",
"0.5011943",
"0.5011842",
"0.50081354",
"0.49910706",
"0.49907997",
"0.49900174",
"0.49805745",
"0.49805745",
"0.49698463",
"0.49694034",
"0.49599037",
"0.4957482",
"0.4955101",
"0.49529162"
] | 0.74571216 | 0 |
Add a double to this SimpleMessageObject. | public void addDouble(String name, double value) {
DOUBLES.add(new SimpleMessageObjectDoubleItem(name, value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MutableDouble add(double value) {\n\t\tmDouble += value;\n\t\treturn this;\n\t}",
"public void add(final Double e) {\n data.add(e);\n }",
"public void add(MyDouble val) {\n this.setValue(this.getValue() + val.getValue());\n }",
"public void add(Double addedAmount) {\n }",
"public TupleDesc addDouble(String name) {\n columns.add(new TupleDescItem(Type.DOUBLE, name));\n return this;\n }",
"public void addDoubleStat(MetricDef metric, double value){\n doubleMetrics.putOrAdd(metric.metricId(), value, value);\n }",
"public MyDouble(double val) {\n this.setValue(val);\n }",
"public MutableDouble() {\n\t\tsuper();\n mDouble = 0;\n\t}",
"public void putDouble(String key, double value) {\n String doubleAsString = Double.toString(value);\n\n put(key, doubleAsString);\n }",
"public static JSONNumber Double(double doubleVal) {\n\t\tJSONNumber number = new JSONNumber( Double.toString( doubleVal ) );\n\t\tnumber.doubleVal = doubleVal;\n\t\treturn number;\n\t}",
"public double getDoubleValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a double.\");\n }",
"public void addValue(double value) {\r\n\t\tvalues.add(value);\r\n\t}",
"public void add(int index, double value) {\n\t\t\n\t}",
"public void putDouble (JSONObject target , String key , Double value){\r\n\t\tif ( value==null){\r\n\t\t\ttarget.put(key, JSONNull.getInstance());\r\n\t\t\treturn ; \r\n\t\t}\r\n\t\ttarget.put(key, new JSONNumber(value));\r\n\t}",
"public ByteBuf writeDouble(double value)\r\n/* 575: */ {\r\n/* 576:586 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 577:587 */ return super.writeDouble(value);\r\n/* 578: */ }",
"public DoubleValue(double num) {\n this.num = num;\n }",
"void setDouble(String key, double val);",
"public DoubleValue(double value) {\n this.value = value;\n }",
"void writeDouble(double value);",
"Double add(Double a, Double b);",
"public void addProperty(String key,\n double value) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n this.attributes.put(key, Double.toString(value));\n }",
"public double getDouble();",
"@Override\n public void put(String name, double value) {\n emulatedFields.put(name, value);\n }",
"public void add(double i)\n\t{\n\t\tthis.i += i;\n\t}",
"public Double getDouble(String attr) {\n return (Double) super.get(attr);\n }",
"public static void setDouble(String prop, double value)\n {\n props.setProperty(prop, \"\" + value);\n }",
"Double getDoubleValue();",
"public void addToJD(double x) {\n if (this.jd + x < eph.endJD)\r\n this.jd += x; \r\n \r\n // Adjust the displayed data.\r\n message = String.format(\"JD = %.2f\",jd);\r\n }",
"public void setDoubleValue(double newDouble) {\n\t\tmDouble = newDouble;\n\t}",
"void add(double val) {\r\n\t\tresult = result + val;\r\n\t}",
"public ByteBuf setDouble(int index, double value)\r\n/* 313: */ {\r\n/* 314:328 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 315:329 */ return super.setDouble(index, value);\r\n/* 316: */ }",
"public BasicDouble(double value) {\r\n\t\tsuper.value = this.value = value;\r\n\t}",
"public ObjectMap put(String key, double value) throws JsonException {\r\n\t\tobjectMap.put(check_Key(key), value);\r\n\t\treturn this;\r\n\t}",
"@Override\n\tpublic double add(double a, double b) {\n\t\treturn (a+b);\n\t}",
"public DoubleField(double value) {\n\t\tthis(\"\" + value, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY);\n\t}",
"public MyDouble() {\n this.setValue(0);\n }",
"@Override\n public InterpreterValue add(InterpreterValue v) {\n\n // If the given value is a IntegerValue create a new DoubleValue from\n // the addition-result\n if(v instanceof IntegerValue) return new DoubleValue(getValue() + ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue create a new DoubleValue from\n // the addition-result\n if(v instanceof DoubleValue) return new DoubleValue(getValue() + ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '+' is not defined for type double and \" + v.getName());\n\n }",
"public void setDoubleValue(double v)\n {\n this.setValue(String.valueOf(v));\n }",
"public double doubleValue() {\n\t\treturn mDouble;\n\t}",
"@Override\r\n\tpublic Buffer setDouble(int pos, double d) {\n\t\treturn null;\r\n\t}",
"public static void appendLast(String name, double value) {\n if (!DOUBLE_CONTAINER.containsKey(name)) {\n DOUBLE_CONTAINER.put(name, new ArrayList<>());\n }\n DOUBLE_CONTAINER.get(name).add(value);\n\n }",
"static public Object add(Object a, Object b) throws Exception {\r\n\t\t//\r\n\t\tif (a instanceof String || b instanceof String)\r\n\t\t\treturn asString(a) + asString(b);\r\n\t\treturn new Double(asNumber(a) + asNumber(b));\r\n\t}",
"public void AddMoneySaved(double moneySaved){\n MoneySaved += moneySaved;\n }",
"public double getDoubleValue()\n {\n return (double) getValue() / (double) multiplier;\n }",
"public void add (Double constant) {\n if (myCoefficients.size() == 0) {\n myCoefficients.add(constant);\n }\n else {\n double value = myCoefficients.get(0) + constant;\n myCoefficients.set(0, value);\n }\n\n }",
"public void add(double amount) {\n x += amount;\n y += amount;\n }",
"public void put(String key, double value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}",
"public double getDouble(String key)\n {\n return getDouble(key, 0);\n }",
"void addToAmount(double amount) {\n this.currentAmount += amount;\n }",
"public boolean add(Double value) {\n\t\tarr = Arrays.copyOf(arr, arr.length + 1);\n\t\tarr[arr.length - 1] = value;\n\t\treturn true;\n\t}",
"public void visitDADD(DADD o){\n\t\tif (stack().peek() != Type.DOUBLE){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'double', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.DOUBLE){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'double', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}",
"public void setDoubleValue(double doubleValueIn) {\n\t\tthis.doubleValue = doubleValueIn;\n\t}",
"public synchronized void add(DataTypeDoubleArray sample) {\n samples.add(sample);\n }",
"public void add(double x, double y) {\n\t\tadd(new GPoint(x, y));\n\t}",
"public void setNewMember(double value) {\n }",
"public DoubleField(double value, double low, double high) {\n\t\tthis(\"\" + value, low, high);\n\t}",
"public Double getDouble(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Double) extGet(key);\n\t}",
"public static double getDoubleProperty(String key) {\r\n\t\treturn getDoubleProperty(key, 0);\r\n\t}",
"void add(double p1, double p2){\n this.p1 += p1;\n this.p2 += p2;\n }",
"public void set_double(double param) {\n this.local_double = param;\n }",
"public double add(double x, double y) {\n\t\treturn x+y;\n\t}",
"public void pushDouble (double aValue)\n\t{\n\t\tif (aValue == 0)\n\t\t{\n\t\t\titsVisitor.visitInsn(Opcodes.DCONST_0);\n\t\t\treturn;\n\t\t}\n\t\telse if (aValue == 1)\n\t\t{\n\t\t\titsVisitor.visitInsn(Opcodes.DCONST_1);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\titsVisitor.visitLdcInsn(new Double(aValue));\n\t}",
"void writeDouble(double v) throws IOException;",
"public Vec2double add(Vec2double v) {\n\t\treturn new Vec2double(this.x + v.x, this.y + v.y);\n\t}",
"public double getDouble() {\r\n\t\treturn (value.getDouble());\r\n\t}",
"public\n DoubleParam\n (\n String name, \n String desc, \n Double value\n ) \n {\n super(name, desc, value);\n }",
"public void add(E element){\r\n\t\tif(lastNode==null){\r\n\t\t\tlastNode=new DoubleNode<E>(null,element,null);\r\n\t\t\tfirstNode=lastNode;\r\n\t\t\tsize++;\r\n\t\t}else{\r\n\t\t\tDoubleNode<E> newNode= new DoubleNode<E>(lastNode,element,null);\r\n\t\t\tlastNode=newNode;\r\n\t\t\tsize++;\r\n\t\t}\r\n\t}",
"public static double leerDouble() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void record(double value) {\n if (shouldRecord()) {\n recordInternal(value, time.milliseconds(), true);\n }\n }",
"@Override\n\tpublic double add(double in1, double in2) {\n\t\treturn 0;\n\t}",
"public double getDouble(String key) {\n\t\treturn Double.parseDouble(get(key));\n\t}",
"public double getDouble(String name) {\n Enumeration enumer = DOUBLES.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return -1D;\n }",
"public void setDoubleValue(double value) {\n setValueIndex(getPool().findDoubleEntry(value, true));\n }",
"public Double getDouble(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tDouble result = PrimitiveDataTypeConvertor.toDouble(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"Double\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public Double getDoubleAttribute();",
"public Double getDouble(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.DOUBLE)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Double.class);\n\t\treturn (Double)value.value;\n\t}",
"public double getDoubleValue() {\n\t\treturn value;\r\n\t}",
"public void updateDouble(String columnName, double x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateDouble(\" + quote(columnName) + \", \" + x + \"d);\");\n }\n update(columnName, ValueDouble.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }",
"public Builder setDoubleValue1(double value) {\n \n doubleValue1_ = value;\n onChanged();\n return this;\n }",
"public ResultDouble(double value) {\r\n\t\tthis.value = value;\r\n\t}",
"Rule DoubleConstant() {\n // Push 1 DoubleConstNode onto the value stack\n return Sequence(\n Sequence(\n Optional(NumericSign()),\n ZeroOrMore(Digit()),\n Sequence('.', OneOrMore(Digit())),\n MaybeScientific()),\n actions.pushDoubleConstNode());\n }",
"@Override\n\tpublic void add(double dx, double dy) {\n\t\t\n\t}",
"public void setDoubleStat(MetricDef metric, double value){\n doubleMetrics.put(metric.metricId(), value);\n }",
"public void add()\r\n {\r\n resultDoubles = Operations.addition(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }",
"public Double D(String key) throws AgentBuilderRuntimeException {\n\t\treturn getDouble(key);\n\t}",
"public final void add() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue + topMostValue);\n\t\t}\n\t}",
"public BinaryDouble(double value) {\n\t\tthis.value = value;\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 }",
"@Override\r\n\tpublic double add() {\r\n\t\tdouble outcome = firstVariable + secondVariable;\r\n\t\treturn outcome;\r\n\t\r\n\t}",
"public void updateDouble(String columnName, double x) throws SQLException\n {\n m_rs.updateDouble(columnName, x);\n }",
"@Override\n\tpublic void\n\tscalarAdd( double value )\n\t{\n\t\tdata[0] += value;\n\t\tdata[1] += value;\n\t\tdata[2] += value;\n\t}",
"public static double Add(double x, double y) \n\t{\n\t\treturn x + y;\n\t\t\n\t}",
"public\n double getProperty_double(String key)\n {\n if (key == null)\n return 0.0;\n\n String val = getProperty(key);\n\n if (val == null)\n return 0.0;\n\n double ret_double = 0.0;\n try\n {\n Double workdouble = new Double(val);\n ret_double = workdouble.doubleValue();\n }\n catch(NumberFormatException e)\n {\n ret_double = 0.0;\n }\n\n return ret_double;\n }",
"@Override\n public double nextDouble() {\n return super.nextDouble();\n }",
"public synchronized void receive(Double message) {\n\t\t}",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default double asDouble() {\n \n return notSupportedCast(BasicTypeID.DOUBLE);\n }",
"public static void singleValue(String name, double value) {\n singleValue(name,value,null);\n }",
"public void putNum(final String key, final double value) {\n this.put(key, Formatter.number(value, this.localized));\n }",
"public static double getDouble(Key key) {\n return getDouble(key, 0);\n }"
] | [
"0.71338737",
"0.7052169",
"0.6831077",
"0.6740757",
"0.6699456",
"0.634906",
"0.61984307",
"0.613102",
"0.6118506",
"0.60640866",
"0.6038152",
"0.6034647",
"0.60308594",
"0.60299677",
"0.6027878",
"0.60233986",
"0.5904865",
"0.5883352",
"0.5857198",
"0.5817655",
"0.5816227",
"0.5804719",
"0.58026916",
"0.57957613",
"0.57474595",
"0.57406914",
"0.57381463",
"0.57131577",
"0.5703981",
"0.56996655",
"0.5679209",
"0.5655874",
"0.5655168",
"0.5653156",
"0.56475323",
"0.56306124",
"0.563055",
"0.56301767",
"0.5621711",
"0.5606912",
"0.5606598",
"0.5597593",
"0.55960584",
"0.5585664",
"0.5577052",
"0.5570268",
"0.5570177",
"0.5569685",
"0.5562314",
"0.5561829",
"0.55547005",
"0.5548738",
"0.55425966",
"0.5529171",
"0.5524775",
"0.5523465",
"0.5520363",
"0.5516902",
"0.55153745",
"0.5489446",
"0.5488781",
"0.548798",
"0.5486564",
"0.5485918",
"0.54830474",
"0.5461165",
"0.5457243",
"0.54543716",
"0.54535586",
"0.54469925",
"0.54356855",
"0.54339963",
"0.54310584",
"0.54299176",
"0.54146814",
"0.5407601",
"0.5403967",
"0.54028577",
"0.5394124",
"0.53910345",
"0.53862256",
"0.5381806",
"0.5379972",
"0.5377097",
"0.5370412",
"0.53640014",
"0.5361129",
"0.5358244",
"0.53552806",
"0.5353908",
"0.5353763",
"0.53488284",
"0.53483826",
"0.5337903",
"0.5326576",
"0.53224474",
"0.53135437",
"0.53116286",
"0.5300675",
"0.52956927"
] | 0.768873 | 0 |
Add a float to this SimpleMessageObject. | public void addFloat(String name, float value) {
FLOATS.add(new SimpleMessageObjectFloatItem(name, value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void add(float var) {\n\t\t\r\n\t}",
"@Override\n public FloatType addToFloat(FloatType FloatType) {\n double float1 = this.asFloat().getValue();\n double float2 = FloatType.getValue();\n return TypeFactory.getFloatType(float1 + float2);\n }",
"public void add(float amount) {\n Money amountMoney = convertToMoney(amount);\n add(amountMoney);\n }",
"public static void addFloatData(OWLIndividual owlIndi, float 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(Float.toString(value), factory.getOWLDatatype(xsdFloat));\n\t manager.applyChange(new AddAxiom(onto, factory.getOWLDataPropertyAssertionAxiom(p, owlIndi, owlc)));\n\t}",
"FloatAttribute(String name, float value) {\r\n super(name);\r\n this.value = value;\r\n }",
"public void putFloat(ResourceLocation name, float value) {\n data.putFloat(name.toString(), value);\n }",
"public void setValue(float value)\r\n {\r\n getSemanticObject().setFloatProperty(swps_floatValue, value);\r\n }",
"public void setFloatValue(float v)\n {\n this.setValue(String.valueOf(v));\n }",
"@Override\r\n\tpublic Buffer setFloat(int pos, float f) {\n\t\treturn null;\r\n\t}",
"void writeFloat(float value);",
"@Override\n public void put(String name, float value) {\n emulatedFields.put(name, value);\n }",
"public void visitFADD(FADD o){\n\t\tif (stack().peek() != Type.FLOAT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'float', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.FLOAT){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'float', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}",
"public Value(float f) {\n aFloat = f;\n itemClass = Float.class;\n type = DataType.FLOAT;\n }",
"public void putFloatData(String key, Float value) {\n editor.putFloat(key, value);\n editor.apply();\n }",
"public void pushFloat(float aValue)\n\t{\n\t\tif (aValue == 0)\n\t\t{\n\t\t\titsVisitor.visitInsn(Opcodes.FCONST_0);\n\t\t\treturn;\n\t\t}\n\t\telse if (aValue == 1)\n\t\t{\n\t\t\titsVisitor.visitInsn(Opcodes.FCONST_1);\n\t\t\treturn;\n\t\t}\n\t\telse if (aValue == 2)\n\t\t{\n\t\t\titsVisitor.visitInsn(Opcodes.FCONST_2);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\titsVisitor.visitLdcInsn(new Float(aValue));\n\t}",
"public final void ruleFloat() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:216:2: ( ( 'Float' ) )\n // InternalMyDsl.g:217:2: ( 'Float' )\n {\n // InternalMyDsl.g:217:2: ( 'Float' )\n // InternalMyDsl.g:218:3: 'Float'\n {\n before(grammarAccess.getFloatAccess().getFloatKeyword()); \n match(input,12,FOLLOW_2); \n after(grammarAccess.getFloatAccess().getFloatKeyword()); \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 void putFloat (JSONObject target , String key , Float value){\r\n\t\tif ( value==null){\r\n\t\t\ttarget.put(key, JSONNull.getInstance());\r\n\t\t\treturn ; \r\n\t\t}\r\n\t\ttarget.put(key, new JSONNumber(value));\r\n\t}",
"public void set_float(float param) {\n this.local_float = param;\n }",
"public void setFloatValue(float value) {\n setValueIndex(getPool().findFloatEntry(value, true));\n }",
"public void setfVal(float value){\n this.fVal = value;\n }",
"public void write(float f) {\n write(String.valueOf(f));\n }",
"private static void setValueFloat(float value)\n {\n Util.valueFloat = value;\n }",
"public static void add(int a,float b){ }",
"public void put(final String key, final float value) {\n put(key, Float.toString(value));\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"float\";\r\n\t}",
"public void put(String key, float value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}",
"public void setFloat(String key, float value) {\n\t\tif (getDefault(key) != null && (Float) getDefault(key) != value)\n\t\t\tinternal.setProperty(key, Float.toString(value));\n\t\telse\n\t\t\tinternal.remove(key);\n\t}",
"public ObjectMap put(String key, float value) throws JsonException {\r\n\t\tobjectMap.put(check_Key(key), value);\r\n\t\treturn this;\r\n\t}",
"public void add(float p, float m){\n\t\tSystem.out.println(\"i am methoad with float type argument\");\n\t\tSystem.out.println(p+m);\n\t}",
"public Flt(float f) {this.f = new Float(f);}",
"public void setValue(float value) {\n this.value = value;\n }",
"public void setFloat(String name, Float value) {\n parameters.get(name).setValue(value);\n }",
"void writeFloat(float v) throws IOException;",
"public T caseFloat(org.uis.lenguajegrafico.lenguajegrafico.Float object)\n {\n return null;\n }",
"public float getFloatValue() {\n \t\treturn floatValue;\n \t}",
"public void putSmallFloat(double numberBody) throws ServiceException {\n try {\n Call<ResponseBody> call = service.putSmallFloat(numberBody);\n ServiceResponse<Void> response = putSmallFloatDelegate(call.execute(), null);\n response.getBody();\n } catch (ServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new ServiceException(ex);\n }\n }",
"public static void add(float a,int b){ }",
"FloatValue createFloatValue();",
"FloatValue createFloatValue();",
"@Test\n\tvoid testAddFloat() {\n\t\tfloat result = calculator.add(3.4F,1F);\n\t\tassertEquals(4.4,result,0.0000009536732);//delta\n\t}",
"public FloatBase(org.semanticwb.platform.SemanticObject base)\r\n {\r\n super(base);\r\n }",
"public void send(float f) {\r\n\t\tif (s != null) {\r\n\t\t\ttry {\r\n\t\t\t\tdos.writeByte(LiteServer.FLOAT_CONST);\r\n\t\t\t\tdos.writeFloat(f);\r\n\t\t\t\tif (autoFlush) {\r\n\t\t\t\t\tdos.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\t// if the socket is null\r\n\t\t}\r\n\r\n\t}",
"public float toFloat() {\n return this.toFloatArray()[0];\n }",
"public void setValue(Float value) {\n\t\tthis.value = value;\n\t}",
"public void setValue ( Float value ) {\r\n\t\tgetStateHelper().put(PropertyKeys.value, value);\r\n\t\thandleAttribute(\"value\", value);\r\n\t}",
"@Override\n public float nextFloat() {\n return super.nextFloat();\n }",
"public static JSONNumber Float(float floatVal) {\n\t\tJSONNumber number = new JSONNumber( Float.toString( floatVal ) );\n\t\tnumber.floatVal = floatVal;\n\t\treturn number;\n\t}",
"double floatField(String name, boolean isDefined, double value,\n FloatSpecification spec) throws NullField, InvalidFieldValue;",
"@Override\r\n public float floatValue() {\r\n return (float) this.m_current;\r\n }",
"public ByteBuf writeFloat(float value)\r\n/* 569: */ {\r\n/* 570:580 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 571:581 */ return super.writeFloat(value);\r\n/* 572: */ }",
"@Override\r\n public void updateValue(String s) {\r\n //Covert from string to float\r\n this.value = Float.valueOf(s);\r\n }",
"public final void setValue(final float value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void saveFloat(String key,float value)\n {\n preference.edit().putFloat(key,value).apply();\n }",
"public FloatType asFloat() {\n return TypeFactory.getIntType(toInt(this.getValue())).asFloat();\n }",
"public float getFloat(String name) {\n Enumeration enumer = FLOATS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectFloatItem item = (SimpleMessageObjectFloatItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return -1F;\n }",
"public final EObject ruleFloatDataType() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4532:28: ( (otherlv_0= 'float' () ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4533:1: (otherlv_0= 'float' () )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4533:1: (otherlv_0= 'float' () )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4533:3: otherlv_0= 'float' ()\n {\n otherlv_0=(Token)match(input,72,FOLLOW_72_in_ruleFloatDataType10328); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getFloatDataTypeAccess().getFloatKeyword_0());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4537:1: ()\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4538:5: \n {\n\n current = forceCreateModelElement(\n grammarAccess.getFloatDataTypeAccess().getFloatDataTypeAction_1(),\n current);\n \n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"protected void sendFloat(float f, String uniformName) {\n int uniformLocation = glGetUniformLocation(programID, uniformName);\n glUniform1f(uniformLocation, f);\n }",
"public float floatValue() {\n return (float) value;\n }",
"public final void mFLOAT_TYPE() throws RecognitionException {\n try {\n int _type = FLOAT_TYPE;\n // /Users/benjamincoe/HackWars/C.g:183:2: ( 'float' )\n // /Users/benjamincoe/HackWars/C.g:183:4: 'float'\n {\n match(\"float\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }",
"public void setFloat(String label, Integer v) {\n\t\t\n\t\tthis.floatDataLabelPrepare.add(label);\n\t\tthis.floatDataPrepare.add((float)v);\n\t}",
"public Float getFloat(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Float) extGet(key);\n\t}",
"@Override\n public Float plus(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs + rhs;\n\treturn res;\t\n }",
"public double addFloat(double a, double b, double c) {\n\t\treturn BigDecimal.valueOf(a).add(BigDecimal.valueOf(b).add(BigDecimal.valueOf(c))).doubleValue();\n\t}",
"public float readFloat() {\n return Float.parseFloat(readNextLine());\n }",
"public Float getFloat(String attr) {\n return (Float) super.get(attr);\n }",
"public void print(float someFloat) {\r\n print(someFloat + \"\");\r\n }",
"public void e(Float f) {\n ((b.b) this.b).e(f);\n }",
"protected void writeE(float value)\n\t{\n\t\t_buf.putFloat(value);\n\t}",
"@Override\r\n\tpublic boolean isFloat() {\r\n\t\treturn isFloatType;\r\n\t}",
"public void add(Double addedAmount) {\n }",
"@Override\n public float nextFloat() {\n nextState();\n return outputFloat();\n }",
"public float f(String key) throws AgentBuilderRuntimeException {\n\t\treturn getFloat(key).floatValue();\n\t}",
"public float evaluateAsFloat();",
"public void add(vec3 a, float b) {\r\n\t\tx = a.x + b;\r\n\t\ty = a.y + b;\r\n\t\tz = a.z + b;\r\n\t}",
"public float floatValue()\n\t\t{\n\t\t\treturn (float) doubleValue();\n\t\t}",
"public float floatValue() {\n return this.value;\n }",
"@Override\n\tpublic boolean put(Float value) {\n\t\tif (bufferCount < BUFFER_SIZE) {\n\t\t\tbuffer[bufferCount++] = value;\n\t\t} else {\n\t\t\twriteBufferToOCL();\n\t\t\tput(value);\n\t\t}\n\t\treturn true;\n\t}",
"public void setE(java.lang.Float value) {\n this.e = value;\n }",
"public static void fieldSetFloat(final Class<?> cls, final String name,\r\n final Object inst, final float value) throws SecurityException,\r\n NoSuchFieldException, IllegalArgumentException, IllegalAccessException {\r\n final Field field = jvmGetField(cls, name);\r\n field.setFloat(inst, value);\r\n }",
"public void setFloat(boolean value) {\r\n\t\tisFloatType = value;\r\n\t}",
"public void setValue(float value)\n {\n if(this.valueFloat == value)\n {\n return;\n }\n this.valueFloat = value;\n treeModel.nodeChanged(this.treeNode);\n }",
"public Float F(String key) throws AgentBuilderRuntimeException {\n\t\treturn getFloat(key);\n\t}",
"public float floatValue() {\n return (float) m_value;\n }",
"@Override\n\tpublic void fishfloat()\n\t{\n\t\tSystem.out.println(super.getName() + \" is floating\");\n\n\t}",
"Double getTotalFloat();",
"public boolean isFloat() {\n return this.data instanceof Float;\n }",
"public void setM(java.lang.Float value) {\n this.m = value;\n }",
"public ByteBuf setFloat(int index, float value)\r\n/* 307: */ {\r\n/* 308:322 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 309:323 */ return super.setFloat(index, value);\r\n/* 310: */ }",
"public final void entryRuleFloat() throws RecognitionException {\n try {\n // InternalMyDsl.g:204:1: ( ruleFloat EOF )\n // InternalMyDsl.g:205:1: ruleFloat EOF\n {\n before(grammarAccess.getFloatRule()); \n pushFollow(FOLLOW_1);\n ruleFloat();\n\n state._fsp--;\n\n after(grammarAccess.getFloatRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public Float getFloatAttribute();",
"public abstract float getValue();",
"@Nullable\r\n public Float getFloat(String key) {\r\n return getFloat(key, null);\r\n }",
"public float getFloat(String key)\n {\n return getFloat(key, 0);\n }",
"public void setFloat(String plcAddress,float value) throws Df1LibraryNativeException\n\t{\n\t\tDf1_Write_Float(plcAddress,value);\n\t}",
"public vec3 plus(float arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.add(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public final EObject ruleFloatLiteral() throws RecognitionException {\n EObject current = null;\n\n Token lv_value_1_0=null;\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1738:28: ( ( () ( (lv_value_1_0= RULE_FLOAT ) ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1739:1: ( () ( (lv_value_1_0= RULE_FLOAT ) ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1739:1: ( () ( (lv_value_1_0= RULE_FLOAT ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1739:2: () ( (lv_value_1_0= RULE_FLOAT ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1739:2: ()\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1740:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getFloatLiteralAccess().getFloatLiteralAction_0(),\n current);\n \n }\n\n }\n\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1745:2: ( (lv_value_1_0= RULE_FLOAT ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1746:1: (lv_value_1_0= RULE_FLOAT )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1746:1: (lv_value_1_0= RULE_FLOAT )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1747:3: lv_value_1_0= RULE_FLOAT\n {\n lv_value_1_0=(Token)match(input,RULE_FLOAT,FOLLOW_RULE_FLOAT_in_ruleFloatLiteral4160); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_1_0, grammarAccess.getFloatLiteralAccess().getValueFLOATTerminalRuleCall_1_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getFloatLiteralRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_1_0, \n \t\t\"FLOAT\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public void updateFloat(String columnName, float x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateFloat(\" + quote(columnName) + \", \" + x + \"f);\");\n }\n update(columnName, ValueFloat.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\r\n public Class getClassType() {\r\n return float.class;\r\n }",
"void setFloat(int index, float value) throws SQLException;",
"public static float leerFloat() {\n\t\tthrow new UnsupportedOperationException();\n\t}"
] | [
"0.67243665",
"0.6500736",
"0.6445194",
"0.6393704",
"0.63851386",
"0.63629055",
"0.6338482",
"0.6317843",
"0.6293238",
"0.628421",
"0.6279342",
"0.6268676",
"0.62454414",
"0.62353855",
"0.62304926",
"0.61946523",
"0.615715",
"0.6157147",
"0.61476505",
"0.61163896",
"0.60859865",
"0.6046757",
"0.60208976",
"0.60205257",
"0.6020127",
"0.6008428",
"0.5992652",
"0.5975513",
"0.5963693",
"0.5959327",
"0.5951365",
"0.59506196",
"0.59373635",
"0.5930836",
"0.5921535",
"0.5866736",
"0.5844141",
"0.58426636",
"0.58426636",
"0.5831144",
"0.5823385",
"0.5821528",
"0.5818367",
"0.58075726",
"0.5798167",
"0.5797889",
"0.5780746",
"0.57788336",
"0.57777375",
"0.57708776",
"0.5769518",
"0.5761545",
"0.5759915",
"0.575933",
"0.57375807",
"0.5718598",
"0.5685041",
"0.56806386",
"0.5677894",
"0.5673573",
"0.5673043",
"0.5660924",
"0.5652066",
"0.564571",
"0.5644954",
"0.56437486",
"0.5641885",
"0.5640794",
"0.5640646",
"0.56348526",
"0.5623721",
"0.5613387",
"0.5607872",
"0.55998194",
"0.55979854",
"0.5593959",
"0.55897194",
"0.5580539",
"0.55756605",
"0.55727226",
"0.5571927",
"0.5570953",
"0.55621064",
"0.5551479",
"0.5548063",
"0.5546628",
"0.554614",
"0.554415",
"0.5542538",
"0.55286115",
"0.5527489",
"0.55174553",
"0.5511478",
"0.5511339",
"0.5503272",
"0.5501226",
"0.5499707",
"0.54954463",
"0.54905224",
"0.54892015"
] | 0.77404267 | 0 |
Add a char to this SimpleMessageObject. | public void addChar(String name, char value) {
CHARS.add(new SimpleMessageObjectCharItem(name, value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addChar(char ch){\n\t\tvalue.append(ch);\n\t}",
"public void addCharacter(Character chr) {\n chars.add(chr);\n }",
"void add(char c);",
"Builder addCharacter(String value);",
"public void add(String character)\n { \n if(display.getText().equals(\"0\"))\n {\n display.setText(character);\n }\n \n else\n {\n display.setText(display.getText() + character);\n }\n }",
"private String addCharacter() {\n\t\t// Two Parameters: CharaNumber, CharaName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|chara\");\n\t\tif (!parameters[0].equals(\"0\")) {\n\t\t\ttag.append(parameters[0]);\n\t\t}\n\t\ttag.append(\":\" + parameters[1]);\n\t\treturn tag.toString();\n\n\t}",
"void writeChar(char value);",
"public void Insert(char ch) {\n sb.append(ch);\n }",
"public SingleChar(char c) {\n super(SOME, NONE);\n this.c = c;\n }",
"public void insert( final char c ) {\n\t\tbuffer.insert( cursor++, c );\n\t}",
"public void add(char ch)\n\t { if (i == b.length)\n\t { char[] new_b = new char[i+INC];\n\t for (int c = 0; c < i; c++) new_b[c] = b[c];\n\t b = new_b;\n\t }\n\t b[i++] = ch;\n\t }",
"public void Insert(char ch) {\n s.append(ch);\n }",
"public void putc(int achar){\n if(view!=null) {\n if (achar >= 0) {\n StringBuilder arf = new StringBuilder(1);\n arf.append((char) achar);\n view.append(arf);\n } else {\n //is return code from a failed stream read\n }\n }\n }",
"public void Insert(char ch)\n {\n if(stringstream.contains(ch)){\n rep.add(ch);\n }\n stringstream.add(ch);\n \n }",
"MyChar() {\n\t\tmyChar = '0';\n\t}",
"public void appendChar(char c){\n\t\ttimer.stop();\n\t\tcursorVisible = false;\n\t\tsetText(getText()+c);\n\t\ttimer.start();\n\t}",
"public void AddNewCharacter();",
"public void Insert(char ch) {\n s.append(ch);\n hashtable[ch]++;\n }",
"public void set_char(_char param) {\n this.local_char = param;\n }",
"public void add(char ch) {\n\n int count = 1;\n if (jumble.containsKey(ch)) {\n count = jumble.get(ch) + 1;\n }\n\n jumble.put(ch, count);\n total++;\n }",
"public void setChar(Character c) {\n setText(String.valueOf(c));\n }",
"public void addCharToName(char c) {\n \t\tif (state == 4) {\n \t\t\t/*\n \t\t\t * if (playerName.equals(\"PLAYER\")) { playerName = \"\"; }\n \t\t\t */\n \t\t\tif (playerName.length() < 16) {\n \t\t\t\tplayerName = playerName + c;\n \t\t\t}\n \t\t}\n \n \t}",
"public void addStrangeCharacter() {\n strangeCharacters++;\n }",
"@Override\n public void put(String name, char value) {\n emulatedFields.put(name, value);\n }",
"@Override\n public String toString() {\n return \"\" + character;\n }",
"void writeChar(final char result) throws WriterException;",
"public void print(char someChar) {\r\n print(someChar + \"\");\r\n }",
"@Override\n public void btPutChar(int value) {\n }",
"public char getChar() {\n return this.s;\n }",
"public static void addCharacter(String username, AStarCharacter character)\r\n\t{\r\n\t\tif(character != null)\r\n\t\t{\r\n\t\t\t//System.out.println(\"Server-side PUT character: \" + username + \"; Row=\" + character.getRow() + \"; Col=\" + character.getCol());\r\n\t\t}\r\n\t\tcharacters.put(username, character);\r\n\t}",
"String charWrite();",
"public void putc(char c);",
"public char getChar();",
"public SpecialChar insertSpecialChar() {\n SpecialChar specialChar = new SpecialChar();\n specialChar.setId(4491);\n specialChar.setSpecialCharA(\"! ' , . / : ; ? ^ _ ` | \"\n + \" ̄ 、 。 · ‥ … ¨ 〃 ― ∥ \ ∼ ´ ~ ˇ \" + \"˘ ˝ ˚ ˙ ¸ ˛ ¡ ¿ ː\");\n specialChar.setSpecialCharB(\"" ( ) [ ] { } ‘ ’ “ ” \"\n + \" 〔 〕 〈 〉 《 》 「 」 『 』\" + \" 【 】\");\n specialChar.setSpecialCharC(\"+ - < = > ± × ÷ ≠ ≤ ≥ ∞ ∴\"\n + \" ♂ ♀ ∠ ⊥ ⌒ ∂ ∇ ≡ ≒ ≪ ≫ √ ∽ ∝ \"\n + \"∵ ∫ ∬ ∈ ∋ ⊆ ⊇ ⊂ ⊃ ∪ ∩ ∧ ∨ ¬ ⇒ \" + \"⇔ ∀ ∃ ∮ ∑ ∏\");\n specialChar\n .setSpecialCharD(\"$ % ₩ F ′ ″ ℃ Å ¢ £ ¥ ¤ ℉ ‰ \"\n + \"€ ㎕ ㎖ ㎗ ℓ ㎘ ㏄ ㎣ ㎤ ㎥ ㎦ ㎙ ㎚ ㎛ \"\n + \"㎜ ㎝ ㎞ ㎟ ㎠ ㎡ ㎢ ㏊ ㎍ ㎎ ㎏ ㏏ ㎈ ㎉ \"\n + \"㏈ ㎧ ㎨ ㎰ ㎱ ㎲ ㎳ ㎴ ㎵ ㎶ ㎷ ㎸ ㎹ ㎀ ㎁ ㎂ ㎃ ㎄ ㎺ ㎻ ㎼ ㎽ ㎾ ㎿ ㎐ ㎑ ㎒ ㎓ ㎔ Ω ㏀ ㏁ ㎊ ㎋ ㎌ ㏖ ㏅ ㎭ ㎮ ㎯ ㏛ ㎩ ㎪ ㎫ ㎬ ㏝ ㏐ ㏓ ㏃ ㏉ ㏜ ㏆\");\n specialChar.setSpecialCharE(\"# & * @ § ※ ☆ ★ ○ ● ◎ ◇ ◆ □ ■ △ ▲\"\n + \" ▽ ▼ → ← ↑ ↓ ↔ 〓 ◁ ◀ ▷ ▶ ♤ ♠ ♡ ♥ ♧ ♣ ⊙ ◈ ▣ ◐\"\n + \" ◑ ▒ ▤ ▥ ▨ ▧ ▦ ▩ ♨ ☏ ☎ ☜ ☞ ¶ † \"\n + \"‡ ↕ ↗ ↙ ↖ ↘♭ ♩ ♪ ♬ ㉿ ㈜ № ㏇ ™ ㏂ ㏘ ℡ ® ª º\");\n\n session.save(specialChar);\n\n return specialChar;\n }",
"public void setBasicChar(BasicChar wotCharacter) {\n this.wotCharacter = wotCharacter;\n }",
"public void setCharNum(Integer charNum) {\n this.charNum = charNum;\n }",
"@Override\n public void convertCharacter(char character, StringBuilder outputTextBuilder) {\n }",
"public void addGameCharacter(GameCharacter c)\n\t{\n\t\tif (gameCharCount>=randomGameChars.length)\n\t\t{\n\t\t\tGameCharacter[] newRandomChars = Arrays.copyOf(randomGameChars,randomGameChars.length+GameCharGenModel.NUM_CHARS_BLOCK);\n\t\t\trandomGameChars = newRandomChars;\n\t\t}\n\t\t\t\n\t\trandomGameChars[gameCharCount] = c;\n\t\tgameCharCount++;\n\t}",
"@Override\n\tpublic boolean add(Character e) {\n\t\tif (!this.contains(e)) {\n\t\t\treturn super.add(e);\n\t\t} else\n\t\t\treturn false;\n\t}",
"@Override\n public void setCharacter(String character) {\n this.character = character;\n }",
"public void updateChar(int c) {\n\t\tchars = c;\n\t}",
"public UUID addChar(String charType, MyGattServerHandler charHandler) {\n\t\tiCount++;\r\n\t\t\r\n\t\tString strUUID = theBaseUUID.substring(0, 4) + new String(new char[3]).replace(\"\\0\", \"0\") + String.valueOf(iCount) + theBaseUUID.substring(8, theBaseUUID.length());\r\n\t\tUUID uuid = UUID.fromString(strUUID);\r\n\t\t\r\n\t\treturn addChar(charType, uuid, charHandler);\r\n\t\t\r\n\t}",
"public void Insert(char ch)\n {\n arr[ch]++;\n }",
"public void add(Character object) {\n characterList.add(object);\n super.add(object);\n }",
"public void insertChar(int index, String charToInsert) {\r\n\t\tcommandsQueue.add(new String[] { \"insert\", \"\" + index, charToInsert });\r\n\t}",
"CharacterTarget put(char symbol) throws PrintingException;",
"public char Get() {\n\t\treturn myChar;\n\t}",
"public void sendKey(final char c) {\n\t\tmethods.inputManager.sendKey(c);\n\t}",
"protected final void write(char c) throws IOException {\n\t\toutput.write(c);\n\t}",
"public char charValue() {\n return value;\n }",
"public CommentAction(final char c) {\n ch = c;\n }",
"public void set_char(int param) {\n this.local_char = param;\n }",
"public void Insert(char ch)\n {\n sb.insert(str.length(),ch);\n }",
"public boolean add(char c) throws Exception\n {\n \n if(this.has(c))\n return false;\n else if(c != 'M' && c != 'T' && c != 'W' && c != 'R' && c != 'F')\n {\n throw new Exception(\"This is not a day!\");\n }\n else\n {\n char[] temp = new char[days.length + 1];\n temp[temp.length - 1] = c;\n days = temp;\n return true;\n }\n }",
"@Override\n\tprotected void plus(char c, InterimResult ir)\n\t{\n\t\terror(c, ir);\n\t}",
"public abstract void add(final double col, final double row, final Character.Type type) throws Exception;",
"public void write(char c) throws XMLStreamException {\n try {\n this.writer.write(c);\n } catch (IOException e) {\n throw new XMLStreamException((Throwable) e);\n }\n }",
"public void Insert_1(char ch){\n sb.append(ch);\n if(chs[ch] == 0){\n chs[ch] = 1;\n }else{\n chs[ch]++;\n }\n }",
"@Override\n\tpublic void addLabelCharacter(int keyCode, char keyChar) {\n\t\tif (editingLabel() && getCurrentViewLabel() != null) {\n\t\t\t\tgetLabelState().setViewLabel(getCurrentViewLabel());\n\t\t\t\tgetLabelState().addCharacter(keyCode, keyChar);\t\n\t\t}\n\t}",
"protected void setSymbol(char c){\r\n\t\tthis.symbol = c;\r\n\t}",
"private static char toChar(byte theByte) {\n if (theByte < 0) {\n return (char) (256 + theByte);\n } else {\n return (char) theByte;\n }\n }",
"public void setValue(char value)\n\t{\n\t\tthis.value = value;\n\t}",
"protected final void putChar(char c)\n\t{\n\t\tif (showCaret)\n\t\t{\n\t\t\tif (displayingCaret)\n\t\t\t\ttext.setText(text.getText().substring(0, text.getText().length() - 1) + c + \"|\");\n\t\t\telse text.setText(text.getText().substring(0, text.getText().length() - 1) + c + \" \");\n\t\t}\n\t\telse text.setText(text.getText() + c);\n\t}",
"public AppendableCharSequence append(char c)\r\n/* 44: */ {\r\n/* 45: 57 */ if (this.pos == this.chars.length)\r\n/* 46: */ {\r\n/* 47: 58 */ char[] old = this.chars;\r\n/* 48: */ \r\n/* 49: 60 */ int len = old.length << 1;\r\n/* 50: 61 */ if (len < 0) {\r\n/* 51: 62 */ throw new IllegalStateException();\r\n/* 52: */ }\r\n/* 53: 64 */ this.chars = new char[len];\r\n/* 54: 65 */ System.arraycopy(old, 0, this.chars, 0, old.length);\r\n/* 55: */ }\r\n/* 56: 67 */ this.chars[(this.pos++)] = c;\r\n/* 57: 68 */ return this;\r\n/* 58: */ }",
"public void attach_charac(String charac_name, Character charac){\n charac_store.put(charac_name, charac);\n\n if(charac instanceof PlayableCharacter)\n num_p++;\n else\n num_np++;\n }",
"public void write(char c){\n\t\tbuffer[bufferPos++] = c;\n\n\t\tif(bufferPos == limit) flush();\n\t}",
"@Override\n public void characters(char[] ch, int start, int length) {\n Node current = eltStack.peek();\n if (current.getChildNodes().getLength() == 1\n && current.getChildNodes().item(0).getNodeType() == Node.TEXT_NODE) {\n Text text = (Text) current.getChildNodes().item(0);\n text.appendData(new String(ch, start, length));\n } else {\n Text text = document.createTextNode(new String(ch, start, length));\n eltStack.peek().appendChild(text);\n }\n }",
"public void insert(char i);",
"private Token(char firstChar) {\r\n\t\tthis.text += firstChar;\r\n\t}",
"private void addCharacter(AbstractCharacter character) {\n\t\tGroup g = new Group();\n\t\tg.addActor(character);\n\t\taddActor(g);\n\t}",
"@Override\n\tpublic void insertChar(char c)\n\t{\n\t\tleft.push(c);\n\t}",
"public BasicChar getBasicChar() {\n return this.wotCharacter;\n }",
"@Override\n\tprotected void plus(char c, InterimResult ir)\n\t{\n\t\tNoAction NoAction = new NoAction();\n\t\tNoAction.execute(ir, c);\n\t}",
"public void admitCharacter(Characters character) {\n characters.put(character.getTitle(), character);\n }",
"public void append(char c)\n {\n JspWriter writer = _jspC.getOut();\n try {\n writer.print(c);\n }\n catch (IOException e) {\n if (_jspC instanceof PageContext)\n RequestUtils.saveException((PageContext) _jspC, e);\n logger.error(Bundle.getString(\"Tags_WriteException\"), e);\n }\n }",
"Builder addCharacter(Person value);",
"public void setKey(char key){ this.key = key;}",
"public DateTimeFormatterBuilder appendLiteral(char c) {\r\n return append0(new CharacterLiteral(c));\r\n }",
"public void Insert(char ch)\n {\n Integer cnt= (Integer) map.get(ch);\n if(cnt==null){\n map.put(ch,1);\n }else{\n map.put(ch,cnt+1);\n }\n list.add(ch);\n }",
"public void setAsteroid(char newChar) {\r\n\t\tthis.asteroid = newChar;\r\n\t}",
"public CharStackNode(char elem, CharStackNode next) {\n //TODO add code here\n this.elem=elem;\n this.next=next;\n }",
"public void Insert(char ch)\n {\n if (map[ch] == -1) {\n map[ch] = pos;\n }\n else {\n map[ch] = -2;\n } \n pos ++;\n }",
"public synchronized void AddCharacters(String s) {\n\t buffer += s;\n\t}",
"@Command(\"AddNewKeyCharacteristics\")\n\tpublic void AddNewKeyCharacteristics(@BindingParam(\"keyCharValue\") String keyCharValue) {\n\t\tkeyCharValueList.addAll(keyCharValueList);\n\t\tSystem.out.println(keyCharValue);\n\n\t}",
"public _char get_char() {\n return local_char;\n }",
"public void setChar(char data, int row, int column) {\n\t\tcolumns[column].setChar(data, subset[row]);\n\t}",
"public char at(int pos) {\r\n return fCharBuffer.at(pos);\r\n }",
"public static void Insert(char ch)\n {\n if(first.containsKey(ch))\n first.remove(ch);\n else\n first.put(ch,1);\n\n }",
"private void putReceivedCharacter(int receivedCharacter) {\n\t\t// Handle backspace and delete by removing last char if possible\n\t\t// If too late, pass it through and let the next level handle it.\n\t\tif (receivedCharacter == 8 || receivedCharacter == 127) {\n\t\t\tint len = demodulatedTextStringBuffer.length();\n\t\t\tif (len > 0) {\n\t\t\t\tdemodulatedTextStringBuffer.setLength(len - 1);\n\t\t\t} else {\n\t\t\t\t// too late\n\t\t\t\tdemodulatedTextStringBuffer.append((char) receivedCharacter);\n\t\t\t}\n\t\t} else {\n\t\t\tdemodulatedTextStringBuffer.append((char) receivedCharacter);\n\t\t}\n\t}",
"public void add(char c, Color bgColor, Color fgColor) {\n int column = jumpCursor();\n set(c, cl, column, bgColor, fgColor);\n }",
"public void setGlyph(char c, WritingShape glyph) {\n\t\tKey<WritingShape> key = getGlyphKey(c);\n\t\tproperties.set(key, glyph);\n\t}",
"void onCharacter(Terminal terminal, char data);",
"public int getSingleChar() {\n return c;\n }",
"public void setCh(char ch) {\r\n\t\tthis.ch = ch;\r\n\t}",
"public char nextChar() throws Exception {\n currentPos++;\n return currentChar();\n }",
"public MyStringBuilder2 append(char c)\n\t{\n\t\tif(this.length == 0) {\n\t\t\tfirstC = new CNode(c);\n\t\t\tlength = 1;\n\t\t\tCNode currNode = firstC;\n\t\t\t// Create remaining nodes, copying from String. Note\n\t\t\t// how each new node is simply added to the end of the\n\t\t\t// previous one. Trace this to see what is going on.\n\t\t\tlastC = currNode;\n\t\t} else {\n\t\t\t//adds to the end\n\t\t\tCNode currNode = lastC;\n\t\t\tlastC = currNode;\n\t\t\tCNode newNode = new CNode(c);\n\t\t\tcurrNode.next = newNode;\n\t\t\tcurrNode = newNode;\n\t\t\tlength++;\n\t\t\t//sets last to point here\n\t\t\tlastC = currNode;\n\t\t}\n\t\treturn this;\n\t}",
"public ABTNode(char s) {\n this.s = s;\n }",
"@Override\n\t\t\tpublic boolean keyTyped(char character) {\n\t\t\t\treturn false;\n\t\t\t}",
"public void addSay(ArrayList<Character> sequence, Character c) {\n \tsequence.add(c);\n \treturn;\n }",
"public static Text appendText(final Element element, final char textCharacter) throws DOMException {\n\t\treturn appendText(element, String.valueOf(textCharacter)); //convert the character to a string and append it to the element\n\t}"
] | [
"0.7500758",
"0.72677326",
"0.6884533",
"0.6709243",
"0.6706084",
"0.6588438",
"0.650977",
"0.6476925",
"0.6335006",
"0.6309395",
"0.63069385",
"0.6247994",
"0.6217407",
"0.6183576",
"0.61618865",
"0.6154537",
"0.6150242",
"0.6106288",
"0.60697925",
"0.605548",
"0.60137045",
"0.59722245",
"0.5967003",
"0.5877055",
"0.585927",
"0.5851585",
"0.58454806",
"0.58266586",
"0.58232915",
"0.58167607",
"0.58073336",
"0.58059853",
"0.5792803",
"0.57863283",
"0.5757145",
"0.5742676",
"0.57224584",
"0.5709507",
"0.5706247",
"0.57009935",
"0.57000524",
"0.5697651",
"0.56976336",
"0.5691556",
"0.5676479",
"0.5670208",
"0.56693816",
"0.5652974",
"0.5652775",
"0.5649609",
"0.56319726",
"0.5621338",
"0.5615278",
"0.5609184",
"0.5602759",
"0.557725",
"0.5571346",
"0.55592436",
"0.55522627",
"0.55495787",
"0.5548145",
"0.5532125",
"0.55299085",
"0.55292875",
"0.55169535",
"0.5515054",
"0.5510342",
"0.5509983",
"0.5506545",
"0.5501165",
"0.54939735",
"0.5493518",
"0.5492513",
"0.5479278",
"0.5474788",
"0.54589325",
"0.54436934",
"0.54357386",
"0.54310673",
"0.5426889",
"0.54203075",
"0.5405871",
"0.53969157",
"0.5378524",
"0.53628355",
"0.5361309",
"0.536052",
"0.5354464",
"0.5353628",
"0.53464735",
"0.5343835",
"0.5336291",
"0.53329504",
"0.53324294",
"0.5326208",
"0.53205043",
"0.531334",
"0.52933896",
"0.5293141",
"0.52827185"
] | 0.78549975 | 0 |
Add a byte array to this SimpleMessageObject. | public void addByteArray(String name, byte[] value) {
BYTES.add(new SimpleMessageObjectByteArrayItem(name, value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void add(byte[] element);",
"public void addMessage(byte[] message) throws RemoteException;",
"public static void addBytesToArray(byte[] bytes, ArrayList<Byte> array) {\n // Add each byte to the array\n // Array is an object, so passed by reference\n for (Byte b: bytes) {\n array.add(b);\n }\n }",
"public void add(byte[] arrby) {\n ByteBuffer byteBuffer;\n ByteBuffer byteBuffer2 = byteBuffer = Blob.this.getByteBuffer();\n synchronized (byteBuffer2) {\n byteBuffer.position(Blob.this.getByteBufferPosition() + this.offset() + this.mCurrentDataSize);\n byteBuffer.put(arrby);\n this.mCurrentDataSize += arrby.length;\n return;\n }\n }",
"@Override\r\n\tpublic Buffer appendBytes(byte[] bytes) {\n\t\tthis.buffer.put( bytes );\r\n\t\treturn this;\r\n\t}",
"public void append(byte[] bytes)\n\t{\n\t\t// create a new byte array object\n\t\tByteArray combined = combineWith(bytes);\n\t\t\n\t\t// reset the array of bytes\n\t\tthis.bytes = combined.getBytes();\n\t}",
"void add(byte[] data, int offset, int length);",
"ByteArray(byte []a) {\n\tdata = a;\n }",
"public void addData(ByteArrayList bytes) {\n data.add(bytes);\n if (data.size() == 1) {\n listeners.forEach(DataReceiveListener::hasData);\n }\n listeners.forEach(DataReceiveListener::received);\n }",
"public void addData(byte[] arrby) {\n if (arrby == null) return;\n {\n try {\n if (arrby.length == 0) {\n return;\n }\n if ((int)this.len.get() + arrby.length > this.buf.length) {\n Log.w(TAG, \"setData: Input size is greater than the maximum allocated ... returning! b.len = \" + arrby.length);\n return;\n }\n this.buf.add(arrby);\n this.len.set(this.len.get() + (long)arrby.length);\n return;\n }\n catch (Exception exception) {\n Log.e(TAG, \"addData exception!\");\n exception.printStackTrace();\n return;\n }\n }\n }",
"public PacketBuilder putBytes(byte[] bytes) {\n\t\tbuffer.put(bytes);\n\t\treturn this;\n\t}",
"public synchronized void addBytes(ByteBuffer bytes) {\n\t _buffers.add(bytes);\n \n }",
"void add(ByteString element);",
"void writeByteArray(ByteArray array);",
"public void add(byte[] bytes) {\r\n\t\tint[] hashes = createHashes(bytes, this.k);\r\n\t\tfor (int hash : hashes)\r\n\t\t\tthis.bitset.set(Math.abs(hash % this.bitSetSize), true);\r\n\t\tthis.numberOfAddedElements++;\r\n\t}",
"public void setData(byte[] value) {\n this.data = ((byte[]) value);\n }",
"private void addMessageToQueue( byte[] buffer ){\n \tsynchronized (this.messages) {\n byte message[] = new byte[buffer.length\n - Constants.MESSAGE_ID_LEN - 1];\n for (int i = Constants.MESSAGE_ID_LEN + 1; i < buffer.length; i++) {\n message[i - Constants.MESSAGE_ID_LEN - 1] = buffer[i];\n }\n messages.add(message);\n }\n }",
"public void put(@NonNull final String key, final byte[] value) {\n put(key, value, -1);\n }",
"public Builder addArgsBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ensureArgsIsMutable();\n args_.add(value);\n onChanged();\n return this;\n }",
"public ByteArray(final byte[] bytes)\n\t{\n\t\t// save the byte array\n\t\tthis.bytes = bytes;\n\t}",
"public void sendBytes(byte[] msg);",
"public Builder addArgsBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureArgsIsMutable();\n args_.add(value);\n onChanged();\n return this;\n }",
"public Builder addArgsBytes(\n\t\t\t\t\tcom.google.protobuf.ByteString value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t\tcheckByteStringIsUtf8(value);\n\t\t\t\tensureArgsIsMutable();\n\t\t\t\targs_.add(value);\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}",
"@Override\n public void addMessage(byte[] message) throws RemoteException {\n Logger.getGlobal().log(Level.INFO,\"Ajout d'un message dans le composant post de nom : \" + this.getName());\n if(SerializationUtils.deserialize(message) instanceof _DefaultMessage){\n try {\n _DbConnectionManager.serializeJavaObjectToDB(this.dbConnection, message, this.getName(), _Component.postTableName);\n } catch (SQLException e1) {\n Logger.getGlobal().log(Level.SEVERE,\"Error save default message to bd in component : \" + this.getName());\n e1.printStackTrace();\n }\n }else{\n Logger.getGlobal().log(Level.INFO,\"Impossible de sauvegarder ce message, n'est pas un _DefaultMessage dans le component : \" + this.getName());\n }\n }",
"public void add(byte b) {\n\t\tif (pointer == size)\n\t\t\twriteToFile();\n\t\tstream.set(pointer++, b);\n\t\twrittenBytes++;\n\t}",
"public ByteArrayImplementation append(ByteArrayImplementation a) {\n byte[] result = new byte[data.length + a.getData().length];\n System.arraycopy(data, 0, result, 0, data.length);\n System.arraycopy(a, 0, result, data.length, a.getData().length);\n return new ByteArrayImplementation(result);\n }",
"boolean addAllByteArray(Collection<byte[]> c);",
"public void AddData(byte [] data, int size)\n\t{\t\n\t\tif (mBufferIndex + size > mBufferSize)\n\t\t{\n\t\t\tUpgradeBufferSize();\n\t\t}\n\t\t\n\t\tSystem.arraycopy(data, 0, mBuffer, mBufferIndex, size);\n\t\tmBufferIndex += size;\n\t}",
"public void append(byte b)\n\t{\n\t\tappend(new byte[]\n\t\t\t{\n\t\t\t\tb\n\t\t\t});\n\t}",
"public CloudQueueMessage(byte[] content) {\n\t\tthis(null, content, null, null, 0);\n\t}",
"void writeBytes(byte[] value);",
"public void set(byte[] value) {\n this.value = value;\n }",
"public void setData(byte[] data) {\r\n this.bytes = data;\r\n }",
"public void setObjectdata(byte[] objectdata)\n {\n\n }",
"@Override\n public void extendStream(byte[] bytes) {\n try {\n ByteArrayOutputStream outStream = new ByteArrayOutputStream();\n stream.transferTo(outStream);\n outStream.write(bytes);\n stream = new ByteArrayInputStream(outStream.toByteArray());\n } catch (IOException ex) {\n throw new RuntimeException(\"IO Exception from ByteArrayStream\");\n }\n }",
"public TByteArray(uka.transport.UnmarshalStream _stream)\n throws java.io.IOException, ClassNotFoundException\n {\n this(_stream, _SIZE);\n _stream.accept(_SIZE);\n }",
"public void setBytes(byte[] bytes) {\n this.bytes = bytes;\n }",
"public void c(byte[] object) {\n synchronized (this) {\n Object object2 = this.A;\n if (object2 != null) {\n long l10;\n object2 = new b$b(this, null);\n ((b$b)object2).a = l10 = TXCTimeUtil.generatePtsMS();\n object = this.e((byte[])object);\n ((b$b)object2).b = object;\n object = this.A;\n ((ArrayList)object).add(object2);\n }\n return;\n }\n }",
"byte[] getByteArrayField();",
"public void sendMessageAsByte(byte [] message) {\r\n try {\r\n out.writeInt(message.length);\r\n out.write(message);\r\n out.flush();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public native byte[] __byteArrayMethod( long __swiftObject, byte[] arg );",
"public void putRawData(byte []bytes){\n\t\trawData=bytes;\n\t}",
"public final void appendTo(BitArray bitArray, byte[] bArr) {\n bitArray.appendBits(this.value, this.bitCount);\n }",
"public int addValue(byte[] array) {\n int val = hashCode();\n for (byte i : array) {\n val = addValue(i);\n }\n return val;\n }",
"public int addBytes( final byte[] _bytes, final int _offset, final int _length ) {\n\n // sanity checks...\n if( _bytes == null )\n throw new IllegalArgumentException( \"Missing bytes to append\" );\n if( _length - _offset <= 0 )\n throw new IllegalArgumentException( \"Specified buffer has no bytes to append\" );\n\n // figure out how many bytes we can append...\n int appendCount = Math.min( buffer.capacity() - buffer.limit(), _length - _offset );\n\n // remember our old position, so we can put it back later...\n int pos = buffer.position();\n\n // setup to copy our bytes to the right place...\n buffer.position( buffer.limit() );\n buffer.limit( buffer.capacity() );\n\n // copy our bytes...\n buffer.put( _bytes, _offset, appendCount );\n\n // get our source and limit to the right place...\n buffer.limit( buffer.position() );\n buffer.position( pos );\n\n return appendCount;\n }",
"public void setBytes(byte[] bytes) {\r\n this.bytes = bytes;\r\n }",
"public Builder setExtraBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n extra_ = value;\n onChanged();\n return this;\n }",
"void addMessageBody(ByteBuffer msgBody);",
"@Override\n public boolean add(T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < array.length; i++) {\n newArray[i] = array[i];\n }\n newArray[size] = object;\n this.size++;\n this.array = newArray;\n return true;\n }",
"ByteArray(String s) {\n\tdata = StringConverter.hexToByte(s);\n }",
"public Builder addCommandBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ensureCommandIsMutable();\n command_.add(value);\n onChanged();\n return this;\n }",
"public void WriteMessage(byte[] message)\r\n {\r\n try {\r\n out.write(new Integer(message.length).byteValue());\r\n out.write(message);\r\n out.flush();\r\n }catch (Exception e){\r\n System.out.println(e);\r\n }\r\n }",
"private void uploadByteArray(ByteArrayOutputStream bytes, String messageType) {\n DatabaseReference databaseReference = rootReference.child(NodeNames.MESSAGES).child(currentUserId).child(chatUserId).push();\n String pushId = databaseReference.getKey();\n\n StorageReference storageReference = FirebaseStorage.getInstance().getReference();\n String folderName = messageType.equals(Constants.MESSAGE_TYPE_VIDEO)?Constants.MESSAGE_VIDEOS:Constants.MESSAGE_IMAGES;\n String fileName = messageType.equals(Constants.MESSAGE_TYPE_VIDEO)?pushId+\".mp4\":pushId+\".jpg\";\n\n StorageReference fileReference = storageReference.child(folderName).child(fileName);\n UploadTask uploadTask = fileReference.putBytes(bytes.toByteArray());\n uploadProgress(uploadTask, fileReference, pushId, messageType);\n }",
"public ByteArray()\n\t{\n\t\t// initialize the byte array\n\t\tbytes = new byte[0];\n\t}",
"public abstract byte[] toByteArray();",
"public abstract byte[] toByteArray();",
"public byte[] getBytes(){\n\t\treturn message;\n\t}",
"default NettyOutbound sendByteArray(Publisher<? extends byte[]> dataStream) {\n\t\treturn send(ReactorNetty.publisherOrScalarMap(dataStream, Unpooled::wrappedBuffer));\n\t}",
"public Builder addVerbsBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ensureVerbsIsMutable();\n verbs_.add(value);\n onChanged();\n return this;\n }",
"public boolean addField(Document document, byte[] bytes) {\n boolean result = false;\n\n if (bytes != null) {\n result = true;\n document.add(new Field(label, bytes, store));\n }\n\n return result;\n }",
"public void setData(byte[] data) {\n this.data = data;\n }",
"public void a(@NonNull byte[] bArr) {\n this.a = bArr;\n }",
"public void writeBytes(byte[] b) throws IOException {\n\t\tbaos.writeBytes(b);\n\t}",
"public void writeBinary(byte[] bytes) throws IOException {\n if (writeFrame(WebSocketMessage.OPCODE_BINARY, ByteBuffer.wrap(bytes),\n true, true) != bytes.length) {\n throw new IOException(\"IO error writing message\");\n }\n endWrite();\n }",
"@Override\n public void setMessageBytes(byte[] messageContentBytes) throws AntException {\n\n }",
"public void update(byte[] paramArrayOfbyte) throws XMLSignatureException {\n/* 207 */ this.signatureAlgorithm.engineUpdate(paramArrayOfbyte);\n/* */ }",
"public void set(byte[] arrby) {\n ByteBuffer byteBuffer;\n ByteBuffer byteBuffer2 = byteBuffer = Blob.this.getByteBuffer();\n synchronized (byteBuffer2) {\n byteBuffer.position(Blob.this.getByteBufferPosition() + this.offset());\n byteBuffer.put(arrby);\n this.mCurrentDataSize = arrby.length;\n return;\n }\n }",
"void setData(byte[] data) {\n this.data = data;\n }",
"public Builder addData(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDataIsMutable();\n data_.add(value);\n onChanged();\n return this;\n }",
"public Builder addData(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDataIsMutable();\n data_.add(value);\n onChanged();\n return this;\n }",
"public abstract void write(byte[] b);",
"public byte[] marshall();",
"public Add128(byte[] bytekey) {\n key=bytekey;\n }",
"@Override // c.d.a.m.w.b.AbstractC0024b\n public ByteBuffer b(byte[] bArr) {\n return ByteBuffer.wrap(bArr);\n }",
"void setData(byte[] data);",
"private SignatureDTO[] add(SignatureDTO[] array, SignatureDTO element) {\n Class type = (array != null ? array.getClass() : (element != null ? element.getClass() : SignatureDTO.class));\n SignatureDTO[] newArray = (SignatureDTO[]) copyArrayGrow1(array, type);\n newArray[newArray.length - 1] = element;\n return newArray;\n }",
"public ByteArray combineWith(final byte[] bytesToAppend)\n\t{\n\t\t// holds the byte array to return\n\t\tbyte[] byteReturn = new byte[bytes.length + bytesToAppend.length];\n\t\t\n\t\t// copy the first array\n\t\tfor (int i = 0; i < bytes.length; i++)\n\t\t{\n\t\t\tbyteReturn[i] = bytes[i];\n\t\t}\n\t\t\n\t\t// append the second array\n\t\tfor (int i = 0; i < bytesToAppend.length; i++)\n\t\t{\n\t\t\tbyteReturn[i + bytes.length] = bytesToAppend[i];\n\t\t}\n\t\t\n\t\t// return the new combined array\n\t\treturn new ByteArray(byteReturn);\n\t}",
"private void writeBytes( ByteBuffer byteBuffer, byte[] bytes, int len )\n {\n if ( null == bytes )\n {\n bytes = new byte[]\n {};\n }\n\n byteBuffer.put( bytes, 0, Math.min( len, bytes.length ) );\n\n // pad as necessary\n int remain = len - bytes.length;\n\n while ( remain-- > 0 )\n {\n byteBuffer.put( ( byte ) 0 );\n }\n }",
"public void write(byte b[]) throws IOException;",
"@Override\n public void payload(byte[] data) {\n \tmLastMessage.append(new String(data));\n Log.d(TAG, \"Payload received: \" + data);\n }",
"public BinaryEncoder writeBytes(byte[] bytes) throws IOException {\n writeLong(bytes.length);\n output.write(bytes, 0, bytes.length);\n return this;\n }",
"public void setContent(byte[] value) {\r\n this.content = value;\r\n }",
"public void setData(byte[] data) {\n if (data == null) {\n this.length=0;\n }\n else {\n this.data = data;\n this.length = this.data.length;\n }\n }",
"public static byte[] byteAppend(byte[] buf1, byte[] buf2) {\n byte[] ret = new byte[buf1.length + buf2.length];\n System.arraycopy(buf1, 0, ret, 0, buf1.length);\n System.arraycopy(buf2, 0, ret, buf1.length, buf2.length);\n return ret;\n }",
"public synchronized void add(E value) {\n this.array.add(value);\n }",
"void mo12206a(byte[] bArr);",
"public void setBytes(byte[] abClazz)\n {\n if (abClazz == null)\n {\n throw new IllegalArgumentException(CLASS + \".setBytes: byte array is required\");\n }\n\n init();\n m_abClazz = abClazz;\n setLoaded(false);\n }",
"public void setData(byte[] d) {\n _data = d;\n }",
"public Builder addWpaBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureWpaIsMutable();\n wpa_.add(value);\n onChanged();\n return this;\n }",
"public void addWritten(byte[] value) {\n\n writeSetLock.lock();\n writeSet.add(new TimestampValuePair(ets, value));\n writeSetLock.unlock();\n }",
"@Override\r\n\tpublic void addToBuffer(byte[] buff, int len) {\r\n\t\tbios.write(buff, 0, len);\r\n\t}",
"private void append(byte[] array, int off, int len) throws IOException {\n if(buffer == null) {\n buffer = allocator.allocate(limit);\n }\n buffer.append(array, off, len);\n }",
"public void add( Object value )\n\t{\n\t\tint n = size();\n\t\tif (addIndex >= n)\n\t\t{\n\t\t\tif (n == 0)\n\t\t\t\tn = 8;\n\t\t\telse\n\t\t\t\tn *= 2;\n\t\t\tObject narray = Array.newInstance( array.getClass().getComponentType(), n );\n\t\t\tSystem.arraycopy( array, 0, narray, 0, addIndex );\n\t\t\tarray = narray;\n\t\t}\n\t\tArray.set( array, addIndex++, value );\n\t}",
"boolean addAllByteString(Collection<? extends ByteString> c);",
"public OctopusCollectedMsg(byte[] data) {\n super(data);\n amTypeSet(AM_TYPE);\n }",
"public void write(final byte[] b) throws IOException {\n\t\twrite(b, 0, b.length);\n\t}",
"public boolean b(byte[] object) {\n int n10 = ((byte[])object).length;\n if (n10 <= 0) return false;\n n10 = ((byte[])object).length;\n int n11 = 2048;\n if (n10 > n11) {\n return false;\n }\n synchronized (this) {\n long l10;\n Object object2 = this.A;\n if (object2 == null) return true;\n n11 = 0;\n byte[] byArray = null;\n object2 = new b$b(this, null);\n ((b$b)object2).a = l10 = TXCTimeUtil.generatePtsMS();\n byArray = this.e((byte[])object);\n int n12 = ((byte[])object).length;\n object = this.a(n12, byArray);\n ((b$b)object2).b = object;\n object = this.A;\n ((ArrayList)object).add(object2);\n return true;\n }\n }",
"@Override\r\n\tpublic Buffer setBytes(int pos, byte[] b, int offset, int len) {\n\t\treturn null;\r\n\t}",
"public Builder setMessageBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n message_ = value;\n onChanged();\n return this;\n }",
"public Builder setMessageBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n message_ = value;\n onChanged();\n return this;\n }"
] | [
"0.70931244",
"0.7089087",
"0.6630769",
"0.6517952",
"0.64376944",
"0.6348364",
"0.6303147",
"0.62178427",
"0.6201925",
"0.60818535",
"0.6050506",
"0.60465944",
"0.6042712",
"0.59222144",
"0.5800396",
"0.57899374",
"0.5695997",
"0.56933814",
"0.565325",
"0.5638537",
"0.561645",
"0.5601594",
"0.55903465",
"0.5571917",
"0.55630237",
"0.5545929",
"0.5538866",
"0.55153877",
"0.5499181",
"0.54870635",
"0.5439227",
"0.5435666",
"0.5431886",
"0.54308414",
"0.542521",
"0.5394774",
"0.5393986",
"0.53601944",
"0.5335394",
"0.53274006",
"0.531618",
"0.5315539",
"0.5309725",
"0.52778536",
"0.527245",
"0.5265726",
"0.5256072",
"0.5240583",
"0.52286506",
"0.5228169",
"0.52274865",
"0.5223007",
"0.5219177",
"0.5208955",
"0.5208608",
"0.5208608",
"0.5204531",
"0.5196735",
"0.5187773",
"0.51820385",
"0.5178273",
"0.5170515",
"0.51680285",
"0.51596516",
"0.5155412",
"0.51439863",
"0.5137987",
"0.51308936",
"0.51122904",
"0.51122904",
"0.5104315",
"0.5092619",
"0.509008",
"0.5075322",
"0.50722176",
"0.5068338",
"0.50607127",
"0.5048319",
"0.5045591",
"0.5035291",
"0.50281495",
"0.50192755",
"0.50176805",
"0.4989372",
"0.49869248",
"0.4981417",
"0.49805328",
"0.49772748",
"0.49770525",
"0.49760002",
"0.497355",
"0.49714154",
"0.49655023",
"0.49633536",
"0.49554867",
"0.49544564",
"0.49509755",
"0.49498293",
"0.49479607",
"0.49479607"
] | 0.74219 | 0 |
Get the named string variable from this SimpleMessageObject | public String getString(String name) {
Enumeration enumer = STRINGS.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectStringItem item = (SimpleMessageObjectStringItem) enumer.nextElement();
if(item.getName().compareTo(name) == 0) {
return item.getValue();
}
}
return "-1";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getVariable();",
"public Variable getVariable(String name);",
"String getVarName(String name);",
"public String getVariable();",
"String getVarName();",
"String getVarName();",
"String getVarName();",
"public StructuredQName getObjectName() {\n return getVariableQName();\n }",
"public StructuredQName getVariableQName();",
"public String variable()\n\t{\n\t\treturn _var;\n\t}",
"public String getVariable()\n {\n return this.strVariable;\n }",
"@Override\n\tpublic String getValue() {\n\t\treturn name;\n\t}",
"String getTargetVariablePart();",
"public String getVariableName() {\n return _vname;\n }",
"public Name getVariable() {\n return variable;\n }",
"public String name() {\n return myStrVal;\n }",
"PropertyName getName();",
"String getPropertyName();",
"public String getVar() {\n\t\treturn state.get(PropertyKeys.var);\n\t}",
"String getValueName();",
"public String getName() { return (String)get(\"Name\"); }",
"public String getVariableName() {\n\t\treturn variableName;\n\t}",
"public String getVariableName() {\n\t\treturn variableName;\n\t}",
"java.lang.String getVarValue();",
"public String toString () {\n return nameOfVar;\n }",
"public String getStringProperty(String propertyName) ;",
"public IString getVariableIdentifier() {\n\treturn VARIABLE_IDENTIFIER.get(getNd(), this.address);\n }",
"public String getElementVarName() {\r\n\t\treturn elementVarName;\r\n\t}",
"public String getMessageName() {\n return messageName;\n }",
"public String getVariable() {\n return variable;\n }",
"public String getName() { return name.get(); }",
"public String getProperty(String name);",
"public StructuredQName getVariableQName() {\n return variableQName;\n }",
"String getSourceVariablePart();",
"public String getVariable(String _name) {\r\n\t\treturn getVariable(_name, \",\");\r\n\t}",
"java.lang.String getProperty();",
"public String getVar () {\n\t\treturn var;\n\t}",
"public String getValue() {\n\t\treturn subjectName;\n\t}",
"String getProperty(String name);",
"public java.lang.String getFromName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FROMNAME$4, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getPropertyName();",
"public YangString getNameValue() throws JNCException {\n return (YangString)getValue(\"name\");\n }",
"public YangString getNameValue() throws JNCException {\n return (YangString)getValue(\"name\");\n }",
"public String getter() {\n\t\treturn name;\n\t}",
"public String getVar()\n {\n return var;\n }",
"String getFieldName();",
"Object getProperty(String name);",
"public String getVar() {\n\t\treturn _var;\n\t}",
"public String getName() {\n/* 872 */ return CraftChatMessage.fromComponent(getHandle().getDisplayName());\n/* */ }",
"protected TopicMapObject identifyByVariable(JellyContext ctx)\n throws JellyTagException {\n\n // name of variable supplied?\n if (variable == null)\n return null;\n\n Object o = ctx.getVariable(variable);\n String identifier = \"Variable \" + variable;\n return getReference(o, identifier);\n\n }",
"String getVariableDefinition();",
"public String getName() {\r\n\t\treturn LocalizedTextManager.getDefault().getProperty(name());\r\n\t}",
"@Override\n\tprotected String getValue(final String variableName)\n\t{\n\t\treturn Strings.toString(variables.get(variableName));\n\t}",
"public String message() {\n final StringSubstitutor sub = new StringSubstitutor(this.vars);\n return sub.replace(this.message);\n }",
"public String getName(){\n\n //returns the value of the name field\n return this.name;\n }",
"public String get(String propertyName);",
"public String getName() {\n/* */ return this.field_176894_i;\n/* */ }",
"public GenericName getName() {\n return Names.parseGenericName(codeSpace, null, value);\n }",
"public String getName() {\n return (String) getValue(NAME);\n }",
"public String getsName() {\n return sName;\n }",
"public NSString name() {\n\t\treturn this.name;\n\n\t}",
"public String getProperty(final String iName) {\n return getProperty(iName, null);\n }",
"public Variable findVariable(String shortName) {\n if (shortName == null)\n return null;\n return memberHash.get(shortName);\n }",
"java.lang.String getTheMessage();",
"@Override\r\n\tpublic String getValue() {\r\n\t\tfinal StoryGroup group = ((KnowItBindingStoryGroup) this.binding)\r\n\t\t\t\t.getValue();\r\n\r\n\t\tfinal Context knowItContext;\r\n\r\n\t\tknowItContext = ContextFactory.getInstance().createContext(this, group);\r\n\r\n\t\treturn knowItContext.getName();\r\n\t}",
"public Object getValue(String name) {\n Object value = localScope.get(name);\n if ( value!=null ) {\n return value;\n }\n // if not found\n BFlatGUI.debugPrint(0, \"undefined variable \"+name);\n return null;\n }",
"@Field(1) \n\tpublic Pointer<Byte > Name() {\n\t\treturn this.io.getPointerField(this, 1);\n\t}",
"public Object getProperty(QName name) {\n\t\tString n = getFullName(name);\n\t\tObject o = content.getProperty(n);\n\t\tLOGGER.debug(\"-------------- GETTING {} as {} --------------\", n, o);\n\t\treturn o;\n\t}",
"public Variable(String name){\n this.name = name;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(NAME_PROP.get());\n }",
"private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }",
"public String getStrName() {\n return strName;\n }",
"public IExpressionValue getUserDefinedVariable(String key);",
"Node getVariable();",
"public String getSQLVariableAt(int pos) {\n\t\treturn sqlVariables[pos]; \n\t}",
"private String getVariable(IInstallableUnit iu) {\n \t\tString v = (String) variables.get(iu);\n \t\tif (v == null) {\n \t\t\t//\t\t\tv = new String(\"x\" + (variables.size() + shift) + iu.toString()); //$NON-NLS-1$\n \t\t\tv = new String(\"x\" + (variables.size() + shift)); //$NON-NLS-1$\n \t\t\tvariables.put(iu, v);\n \t\t}\n \t\treturn v;\n \t}",
"public String getName() {\r\n\t\treturn name.get();\r\n\t}",
"String getVarDeclare();",
"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}",
"public String getName() {\n\t\treturn this.data.getName();\n\t}",
"public String getName()\r\n\t{\r\n\t\treturn name; // gives the value of the name to the caller\r\n\t}",
"public TLProperty getElement(String elementName);",
"public String getNewsletterFieldName() {\n return getStringProperty(NEWSLETTER_FIELD_NAME_KEY);\n }",
"String getProperty();",
"String getProperty();",
"String getProperty();",
"public java.lang.String getName() {\n java.lang.Object ref = name_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n name_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getName() {\n java.lang.Object ref = name_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n name_ = s;\n }\n return s;\n }\n }",
"@Override\n public String getName() {\n Object ref = name_;\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 name_ = s;\n return s;\n }\n }",
"@Override\n public String getName() {\n Object ref = name_;\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 name_ = s;\n return s;\n }\n }",
"@Override\n public String getName() {\n Object ref = name_;\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 name_ = s;\n return s;\n }\n }",
"@Override\n public String getName() {\n Object ref = name_;\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 name_ = s;\n return s;\n }\n }",
"@Override\n public String getName() {\n Object ref = name_;\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 name_ = s;\n return s;\n }\n }",
"@Override\n public String getName() {\n Object ref = name_;\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 name_ = s;\n return s;\n }\n }",
"@Override\n public String getName() {\n Object ref = name_;\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 name_ = s;\n return s;\n }\n }",
"@Override\n public String getName() {\n Object ref = name_;\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 name_ = s;\n return s;\n }\n }",
"@Override\n public String getName() {\n Object ref = name_;\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 name_ = s;\n return s;\n }\n }",
"@Override\n public String getName() {\n Object ref = name_;\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 name_ = s;\n return s;\n }\n }",
"private String getVarName(GradsDimension dim) {\n for (int i = 0; i < dimNames.length; i++) {\n if (dim.getName().equalsIgnoreCase(dimNames[i])) {\n return dimVarNames[i];\n }\n }\n return dim.getName();\n }",
"public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n identifier_ = s;\n }\n return s;\n }\n }"
] | [
"0.6639147",
"0.65564054",
"0.64364964",
"0.64338404",
"0.6382847",
"0.6382847",
"0.6382847",
"0.63801694",
"0.6187191",
"0.6161502",
"0.615785",
"0.61090785",
"0.6043275",
"0.59608024",
"0.5959842",
"0.5929095",
"0.5927782",
"0.5913572",
"0.59132165",
"0.588524",
"0.5871767",
"0.5851917",
"0.5851917",
"0.5850661",
"0.58496636",
"0.5844509",
"0.5808645",
"0.5800687",
"0.57967776",
"0.57455534",
"0.5744622",
"0.5737545",
"0.571451",
"0.57091576",
"0.56966496",
"0.56959397",
"0.5679459",
"0.5678329",
"0.5677601",
"0.5666422",
"0.5640338",
"0.56294686",
"0.56294686",
"0.5627715",
"0.5619091",
"0.5595956",
"0.55888915",
"0.5577243",
"0.55608857",
"0.5541391",
"0.5535746",
"0.55352277",
"0.55339104",
"0.55287516",
"0.55266684",
"0.54995096",
"0.54919434",
"0.54771674",
"0.5473102",
"0.546748",
"0.54652375",
"0.5453723",
"0.5451621",
"0.5447762",
"0.54239774",
"0.541737",
"0.5407144",
"0.5403622",
"0.5403307",
"0.5403225",
"0.5402395",
"0.5400436",
"0.5399476",
"0.53990996",
"0.5398578",
"0.5391553",
"0.53878313",
"0.53867966",
"0.5386538",
"0.5382055",
"0.5378352",
"0.53757507",
"0.5375712",
"0.53756034",
"0.53756034",
"0.53756034",
"0.53754455",
"0.53754455",
"0.53754",
"0.53754",
"0.53754",
"0.53754",
"0.53754",
"0.53754",
"0.53754",
"0.53754",
"0.53754",
"0.53754",
"0.5375171",
"0.5373361"
] | 0.5774106 | 29 |
Get the named int variable from this SimpleMessageObject | public int getInt(String name) {
Enumeration enumer = INTS.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectIntItem item = (SimpleMessageObjectIntItem) enumer.nextElement();
if(item.getName().compareTo(name) == 0) {
return item.getValue();
}
}
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IntegerVariable getIntegerVariable(String name) {\n return integerVariableMap.get(name);\n }",
"BigInteger getFieldNumber();",
"Object getMessageId();",
"public abstract int getBindingVariable();",
"public java.lang.Integer getVar123() {\n return var123;\n }",
"public java.lang.Integer getVar123() {\n return var123;\n }",
"int value(String name);",
"public Variable getVariable(String name);",
"public java.lang.Integer getVar231() {\n return var231;\n }",
"public java.lang.Integer getVar232() {\n return var232;\n }",
"public int getPropertyInt(String key);",
"public java.lang.Integer getVar222() {\n return var222;\n }",
"public java.lang.Integer getVar231() {\n return var231;\n }",
"int getMsgid();",
"public Integer getMsgId() {\n return msgId;\n }",
"public java.lang.Integer getVar222() {\n return var222;\n }",
"public java.lang.Integer getVar232() {\n return var232;\n }",
"public IString getVariableIdentifier() {\n\treturn VARIABLE_IDENTIFIER.get(getNd(), this.address);\n }",
"String getVariable();",
"public Integer value(State state) {\n return state.lookup(variableName);\n }",
"int getMessageId();",
"public int getSignalNameNumber(String name);",
"Integer getSobjNmHi();",
"java.lang.String getMessageInfoID();",
"public int numericName()\n {\n return Factory.getID(this);\n }",
"public final int getName() { return name; }",
"public int getIdentifier();",
"public static int getStringId(String name)\n\t{\n\t\tClass<R.string> c = R.string.class;\n\t\tField f;\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tf = c.getField(name);\n\t\t\ti = f.getInt(f);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(\"RR\", e.toString());\n\t\t}\n\t\treturn i;\n\t}",
"int getIdentifier();",
"long getMessageId(int index);",
"public String get_integer_part();",
"public static int getResourceId(String variableName, Class<?> c) {\n\t\ttry {\n\t\t\tField idField = c.getField(variableName);\n\t\t\treturn idField.getInt(idField);\n\t\t} catch (Exception e) {\n\t\t\t// no field found\n\t\t\treturn -1;\n\t\t} \n\t\t\n\t}",
"public String getVariable();",
"netty.framework.messages.MsgId.MsgID getMsgID();",
"netty.framework.messages.MsgId.MsgID getMsgID();",
"public int getValue()\n {\n try\n {\n return (Integer) AlphaComposite.class.getField(name).get(null);\n }\n catch (Exception e)\n {\n return -1;\n }\n }",
"private int intvalue(JsonNode n, String name) {\n\t\treturn n.findValue(name).getIntValue();\n\t}",
"private int getValue(final String name, final String key) {\n\t\treturn Integer.parseInt(bundleConstants.getString(name + SEPERATOR + key));\n\t}",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return contentFileId;\n case 1: return documentId;\n case 2: return envelopeId;\n case 3: return errorId;\n case 4: return errorInfo;\n case 5: return errorLevel;\n case 6: return offset;\n case 7: return position;\n case 8: return processId;\n case 9: return taskId;\n case 10: return transactionId;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"java.lang.String getMessageId();",
"public Integer getMessageId() {\n\t\treturn messageId;\n\t}",
"public int get_int() {\n return local_int;\n }",
"public int getMsgid() {\n return msgid_;\n }",
"public Variable getVariable(int i) {\r\n\t\treturn getVariables().get(i);\r\n\t}",
"org.tribuo.protos.core.VariableInfoProto getInfo(int index);",
"public int getMessageNum() {\n return mMessageNum;\n }",
"public java.lang.Integer getVar253() {\n return var253;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return localId;\n case 2: return serviceId;\n case 3: return args;\n case 4: return inputs;\n case 5: return outputs;\n case 6: return timestamp;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public java.lang.Integer getVar213() {\n return var213;\n }",
"String getVarName(String name);",
"public java.lang.Integer getVar132() {\n return var132;\n }",
"private int entityValue(String name)\n\t{\n\t\treturn map.value(name);\n\t}",
"public int getMsgid() {\n return msgid_;\n }",
"public int getInt(String name)\n/* */ {\n/* 908 */ return getInt(name, 0);\n/* */ }",
"public java.lang.Integer getVar277() {\n return var277;\n }",
"public java.lang.Integer getVar42() {\n return var42;\n }",
"public java.lang.Integer getVar253() {\n return var253;\n }",
"public int getPosition()\n {\n return getInt(\"Position\");\n }",
"public java.lang.Integer getVar42() {\n return var42;\n }",
"String getVarName();",
"String getVarName();",
"String getVarName();",
"public Object getMessageId()\n {\n return getUnderlyingId(true);\n }",
"public int getM_Locator_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Locator_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public java.lang.Integer getVar258() {\n return var258;\n }",
"public int getName() {\n return mName;\n }",
"public java.lang.Integer getVar213() {\n return var213;\n }",
"long getMsgId();",
"public String variable()\n\t{\n\t\treturn _var;\n\t}",
"public int integerVarAt(int index) {\n\t\treturn storage[index];\n\t}",
"public int getMessageId() {\r\n return messageId;\r\n }",
"public int getVariable(String variable) {\n switch(variable) {\n case \"_HP\" : return (getAiOwner().getGameStats().getHp().getIntValue() * 100) / getAiOwner().getGameStats().getHp().getIntMaxValue();\n case \"_MyBodyHeight\": return getAiOwner().getTemplate().getBodyHeight();\n case \"CharIDValue\" : return getAiOwner().getTemplate().getCreatureId();\n }\n return _variables.get(variable);\n }",
"public java.lang.Integer getVar214() {\n return var214;\n }",
"public java.lang.Integer getVar277() {\n return var277;\n }",
"public java.lang.Integer getVar217() {\n return var217;\n }",
"public java.lang.Integer getVar132() {\n return var132;\n }",
"public int getM_Inventory_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Inventory_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public java.lang.Integer getVar1() {\n return var1;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return userId;\n case 1: return tweedId;\n case 2: return edgeType;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"@Override\r\n public final Integer getIdentifier() {\r\n return getIdent();\r\n }",
"public java.lang.Integer getVar244() {\n return var244;\n }",
"public java.lang.Integer getVar226() {\n return var226;\n }",
"long getMessageID();",
"long getMessageID();",
"public java.lang.Integer getVar1() {\n return var1;\n }",
"long getMessageId();",
"long getMessageId();",
"public java.lang.Integer getVar217() {\n return var217;\n }",
"public java.lang.Integer getVar258() {\n return var258;\n }",
"public java.lang.Integer getVar249() {\n return var249;\n }",
"public static int getPerson_to_play()\n {\n return person_to_play;\n }",
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return name;\n case 2: return sampleId;\n case 3: return variantSetIds;\n case 4: return created;\n case 5: return updated;\n case 6: return info;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public String getInumber(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, INUMBER);\n\t}",
"public java.lang.Integer getVar145() {\n return var145;\n }",
"public int getMessageId() {\n return messageId;\n }",
"public Integer get(int i){\n\t\treturn body[i];\n\t}",
"public int getIndex()\n {\n return getInt(\"Index\");\n }",
"public NM getGiveSubIDCounter() { \r\n\t\tNM retVal = this.getTypedField(1, 0);\r\n\t\treturn retVal;\r\n }",
"public static final\n int ccGetIntegerFieldValue(Object pxInstance, String pxFieldName)\n throws RuntimeException\n {\n if(pxInstance==null){throw E_GENERAL_GET;}\n if(!ccIsValidString(pxFieldName)){throw E_GENERAL_GET;}\n int lpRes=0;\n try {\n Field lpFiled = pxInstance.getClass().getField(pxFieldName);\n lpRes=lpFiled.getInt(pxInstance);\n }catch(Exception e){\n System.err.println(\".ccGetIntegerFieldValue()$failed_with:\"\n + e.getMessage());\n throw E_GENERAL_GET;\n }//..?\n return lpRes;\n }",
"public java.lang.Integer getVar214() {\n return var214;\n }"
] | [
"0.67780894",
"0.61659294",
"0.608388",
"0.60409224",
"0.60230166",
"0.6022587",
"0.59677815",
"0.5966762",
"0.5959674",
"0.5935027",
"0.59331435",
"0.5912516",
"0.5902977",
"0.58936995",
"0.5875794",
"0.58465403",
"0.58362687",
"0.57992274",
"0.57945836",
"0.5794478",
"0.57575226",
"0.57561505",
"0.5745813",
"0.57412624",
"0.573921",
"0.5721826",
"0.5705143",
"0.5693408",
"0.56923914",
"0.56923807",
"0.567689",
"0.56732965",
"0.56674266",
"0.5654035",
"0.5654035",
"0.564957",
"0.564631",
"0.5644587",
"0.56361395",
"0.56270653",
"0.56189877",
"0.5605675",
"0.5605373",
"0.56044054",
"0.5599133",
"0.5597301",
"0.55888283",
"0.55752784",
"0.55637324",
"0.55533254",
"0.55495393",
"0.55469644",
"0.55401206",
"0.55245394",
"0.5524314",
"0.55243075",
"0.55239195",
"0.55211926",
"0.5518265",
"0.5517042",
"0.5517042",
"0.5517042",
"0.5513444",
"0.5510077",
"0.5503799",
"0.55009675",
"0.5500586",
"0.5497985",
"0.5493728",
"0.54935825",
"0.54899174",
"0.54770637",
"0.54766345",
"0.5476133",
"0.54693854",
"0.5460597",
"0.5454382",
"0.54473525",
"0.5438569",
"0.54340506",
"0.5434019",
"0.5432242",
"0.5431298",
"0.5431298",
"0.54290354",
"0.5424279",
"0.5424279",
"0.5419448",
"0.54194355",
"0.5412753",
"0.5412088",
"0.5405229",
"0.5398524",
"0.53936523",
"0.5392007",
"0.5391667",
"0.53890216",
"0.5387528",
"0.53845704",
"0.5384028"
] | 0.6787067 | 0 |
Get the named long variable from this SimpleMessageObject | public long getLong(String name) {
Enumeration enumer = LONGS.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();
if(item.getName().compareTo(name) == 0) {
return item.getValue();
}
}
return -1L;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLongName() {\n return (String) getAttributeInternal(LONGNAME);\n }",
"String getLongName();",
"public long readVarLong() throws IOException {\n final int type = (int) this.read(2).toLong();\n return this.read(BitOutputStream.varLongDepths[type]).toLong();\n }",
"public long getLongProperty(String key) {\n\t\treturn Long.parseLong(this.getProperty(key));\n\t}",
"public long getMyLong() {\n return myLong;\n }",
"public static long getLongProperty(String key) {\r\n\t\treturn getLongProperty(key, 0);\r\n\t}",
"public long getLong(String name) {\n\t\tfinal Object val = values.get(name);\n\t\tif (val == null) {\n\t\t\tthrow new IllegalArgumentException(\"Integer value required, but not specified\");\n\t\t}\n\t\tif (val instanceof Number) {\n\t\t\treturn ((Number) val).longValue();\n\t\t}\n\t\ttry {\n\t\t\treturn Long.parseLong((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Integer value required, but found: \" + val);\n\t\t}\n\t}",
"long getLongValue();",
"long getLongValue();",
"public long getLong(@NonNull String name) {\n return getLong(name, /* defaultValue */ 0L);\n }",
"public long longValue() {\n return number;\n }",
"public int getLongueur()\n\t{\n\t\treturn longueur_;\n\t}",
"public long getLongValue() {\n return longValue_;\n }",
"public Long getLong(String name) {\n Object o = get(name);\n if (o instanceof Number) {\n return ((Number)o).longValue();\n }\n\n if (o != null) {\n try {\n return Long.parseLong(o.toString());\n }\n catch (NumberFormatException e) {}\n }\n return null;\n }",
"long getMsgId();",
"public long getLongValue() {\n return longValue_;\n }",
"org.apache.xmlbeans.XmlLong xgetMessageID();",
"public long get_long() {\n return local_long;\n }",
"public String getLongToken() {\n return instance.getLongToken();\n }",
"public String getLongToken() {\n return instance.getLongToken();\n }",
"public Long getParaToLong(String name) {\n\t\treturn toLong(request.getParameter(name), null);\n\t}",
"public long getFieldAsLong(int tag) {\n return getFieldAsLong(tag, 0);\n }",
"@Field(2) \n\tpublic long Value() {\n\t\treturn this.io.getLongField(this, 2);\n\t}",
"public Long getLongAttribute();",
"public long get() {\n\t\t\treturn get(1);\n\t\t}",
"public String getLongToken() {\n return longToken_;\n }",
"public String getLongToken() {\n return longToken_;\n }",
"private void printLongField(String name, long value, String groupName, String units) {\n sendToGanglia(name, GANGLIA_INT_TYPE, String.format(locale, \"%d\", value), groupName, units);\n }",
"public java.lang.Integer getVar222() {\n return var222;\n }",
"private long getLong() {\n longBuffer.rewind();\n archive.read(longBuffer);\n longBuffer.flip();\n return longBuffer.getLong();\n }",
"long getELong();",
"String getLongNameKey();",
"public long getLongValue() {\n if (typeCase_ == 3) {\n return (java.lang.Long) type_;\n }\n return 0L;\n }",
"public java.lang.Integer getVar222() {\n return var222;\n }",
"public int getLongueur() {\n\t\treturn this.longueur;\n\t}",
"public static PropertyDescriptionBuilder<Long> longProperty(String name) {\n return PropertyDescriptionBuilder.start(name, Long.class, Parsers::parseLong);\n }",
"Object getMessageId();",
"public long longValue() {\n return this.value;\n }",
"public Long getLong(String propertyName) {\n if (this.has(propertyName) && !this.propertyBag.isNull(propertyName)) {\n return Long.valueOf(this.propertyBag.getLong(propertyName));\n } else {\n return null;\n }\n }",
"public long longValue() {\n\t\treturn getSection().longValue();\n\t}",
"public long longValue() {\n return value;\n }",
"public long getParamAsLong(String paramName);",
"public Longitude get_long()\n {\n\treturn this._long;\n }",
"public long getLong(String key) {\n long result;\n Object value = get(key);\n if (value instanceof Long) {\n result = (Long)value;\n } else if (value instanceof String) {\n try {\n String valueString = (String)value;\n if (valueString.length() == 0) {\n result = 0;\n } else if (valueString.charAt(0) == '-') {\n result = Long.parseLong(valueString);\n } else {\n result = Long.parseUnsignedLong((String)value);\n }\n } catch (NumberFormatException exc) {\n result = 0;\n }\n } else {\n result = 0;\n }\n return result;\n }",
"@java.lang.Override\n public long getLongValue() {\n if (typeCase_ == 3) {\n return (java.lang.Long) type_;\n }\n return 0L;\n }",
"public Long getLong(String attr) {\n return (Long) super.get(attr);\n }",
"public long getLong(int pos) {\n return Tuples.toLong(getObject(pos));\n }",
"long getMessageID();",
"long getMessageID();",
"String getLongToken();",
"String getLongToken();",
"public int getLongueur() {\n return longueur;\n }",
"java.lang.String getMessageInfoID();",
"public int getLongueur() {\r\n return longueur;\r\n }",
"long getMessageId();",
"long getMessageId();",
"public long longValue() {\r\n return intValue();\r\n }",
"public NBTLong(String name, long val)\n\t{\n\t\tthis.name = name;\n\t\tthis.val = val;\n\t}",
"public java.lang.String getField1072() {\n java.lang.Object ref = field1072_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n field1072_ = s;\n return s;\n }\n }",
"public java.lang.Integer getVar253() {\n return var253;\n }",
"public String getType() {\r\n return \"Block Data Long\";\r\n }",
"public java.lang.String getField1072() {\n java.lang.Object ref = field1072_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n field1072_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Long getLong(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tLong result = PrimitiveDataTypeConvertor.toLong(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"Long\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public Long getLong(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.LONG)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Long.class);\n\t\treturn (Long)value.value;\n\t}",
"public long getLong(String key) {\n\t\tString value = getString(key);\n\t\t\n\t\ttry {\n\t\t\treturn Long.parseLong(value);\n\t\t}\n\t\tcatch( NumberFormatException e ) {\n\t\t\tthrow new IllegalStateException( \"Illegal value for long integer configuration parameter: \" + key);\n\t\t}\n\t}",
"public Long getAsLong(final String name) {\r\n Long returnValue = null;\r\n try {\r\n returnValue = Long.parseLong(getProperty(name));\r\n }\r\n catch (final NumberFormatException e) {\r\n LOGGER.error(\"Error on parsing configuration property '\" + name + \"'. Property must be a long!.\");\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on parsing configuration property '\" + name + \"'. Property must be a long!\", e);\r\n }\r\n }\r\n return returnValue;\r\n }",
"public long getIdMessage() {\r\n\t\treturn idMessage;\r\n\t}",
"public long toLong() {\n return this.toLongArray()[0];\n }",
"public java.lang.Integer getVar289() {\n return var289;\n }",
"public java.lang.Integer getVar253() {\n return var253;\n }",
"public long getValue();",
"public long getMessageId() {\n return instance.getMessageId();\n }",
"public void addLong(String name, long value) {\n LONGS.add(new SimpleMessageObjectLongItem(name, value));\n }",
"String longRead();",
"@AutoEscape\n\tpublic String getLongitud();",
"public java.lang.Integer getVar259() {\n return var259;\n }",
"java.lang.String getField1072();",
"public java.lang.Integer getVar289() {\n return var289;\n }",
"public long getLong(String key, long defaultValue);",
"@Override\r\n\tpublic long getLong(String string) {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic long getLong(int pos) {\n\t\treturn buffer.getLong(pos);\r\n\t}",
"public long getMsgId() {\n return msgId_;\n }",
"java.lang.String getMessageId();",
"public long getLongTypeValueForInternalValue(String value, long def) {\n\t\tlong r = def;\n\t\tObject o = getTypeValueForInternalValue(value);\n\t\tif (o!=null && o instanceof Long) {\n\t\t\tr = (Long) o;\n\t\t}\n\t\treturn r;\n\t}",
"public java.lang.Integer getVar232() {\n return var232;\n }",
"public final Long getMessageId( Message msg )\n\t{\n\t\treturn (Long) msg.get( _mf__messageId );\n\t}",
"public Object getMessageId()\n {\n return getUnderlyingId(true);\n }",
"long readLong();",
"public java.lang.Integer getVar132() {\n return var132;\n }",
"long decodeLong();",
"public Long L(String key) throws AgentBuilderRuntimeException {\n\t\treturn getLong(key);\n\t}",
"public abstract int read_long();",
"public java.lang.Integer getVar259() {\n return var259;\n }",
"public long upperLongValue() {\n\t\treturn getSection().upperLongValue();\n\t}",
"public long longValue();",
"public java.lang.String getField1307() {\n java.lang.Object ref = field1307_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n field1307_ = s;\n return s;\n }\n }",
"public static long getLong(String key, long i) {\n\t\tString token = getString(key);\n\t\tif (token == null) {\n\t\t\treturn i;\n\t\t}\n\t\treturn Long.parseLong(token);\n\t}",
"public Long getMessage_id() {\n return message_id;\n }",
"long getUnknown72();",
"private long getLongAttribute(Element element, String attributeName)\n {\n try\n {\n return Long.parseLong(getAttribute(element,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0L;\n }\n }"
] | [
"0.65962636",
"0.6300044",
"0.6230076",
"0.61570424",
"0.6143852",
"0.6122208",
"0.60927945",
"0.6091866",
"0.6091866",
"0.6084825",
"0.6081291",
"0.60576636",
"0.603523",
"0.6033177",
"0.5987545",
"0.5977799",
"0.5956328",
"0.5932685",
"0.59286124",
"0.59286124",
"0.5919771",
"0.591891",
"0.59119254",
"0.58910596",
"0.5881586",
"0.58754",
"0.58754",
"0.58619094",
"0.5850412",
"0.58485186",
"0.5836609",
"0.5814534",
"0.5811217",
"0.5807367",
"0.5794921",
"0.5781881",
"0.57749575",
"0.57587034",
"0.5757887",
"0.57152456",
"0.5707662",
"0.5683956",
"0.5682669",
"0.5676844",
"0.56726193",
"0.56712884",
"0.56666327",
"0.5658532",
"0.5658532",
"0.565372",
"0.565372",
"0.5653178",
"0.56393445",
"0.5631103",
"0.56208694",
"0.56208694",
"0.5619875",
"0.5615321",
"0.5607528",
"0.5605779",
"0.5595083",
"0.55939025",
"0.5587688",
"0.5586088",
"0.5563425",
"0.55602133",
"0.55435467",
"0.55374974",
"0.5534602",
"0.5534175",
"0.5532107",
"0.5521438",
"0.55154175",
"0.5508413",
"0.5504417",
"0.55010116",
"0.55005926",
"0.5499309",
"0.5498573",
"0.5494127",
"0.54899997",
"0.5489833",
"0.5485598",
"0.54849494",
"0.54842806",
"0.5483116",
"0.5472778",
"0.54714054",
"0.54577607",
"0.5447379",
"0.54466534",
"0.544457",
"0.54375225",
"0.54289716",
"0.54274595",
"0.54226434",
"0.5421381",
"0.54170585",
"0.5416545",
"0.5414825"
] | 0.72854465 | 0 |
Get the named double variable from this SimpleMessageObject | public double getDouble(String name) {
Enumeration enumer = DOUBLES.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();
if(item.getName().compareTo(name) == 0) {
return item.getValue();
}
}
return -1D;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double get (String name) {\n return this.lookup(name);\n }",
"public double getVariable(String nam) {\r\n Double val=variables.get(nam);\r\n\r\n return (val==null ? 0 : val.doubleValue());\r\n }",
"public double getDouble(String name)\n/* */ {\n/* 1015 */ return getDouble(name, 0.0D);\n/* */ }",
"public Double getDouble(String name) {\n Object o = get(name);\n if (o instanceof Number) {\n return ((Number)o).doubleValue();\n }\n\n if (o != null) {\n try {\n String string = o.toString();\n if (string != null) {\n return Double.parseDouble(string);\n }\n }\n catch (NumberFormatException e) {}\n }\n return null;\n }",
"public static double getDoubleProperty(String key) {\r\n\t\treturn getDoubleProperty(key, 0);\r\n\t}",
"public Double getDoubleAttribute();",
"public Double getDouble(String propertyName) {\n if (this.has(propertyName) && !this.propertyBag.isNull(propertyName)) {\n return new Double(this.propertyBag.getDouble(propertyName));\n } else {\n return null;\n }\n }",
"public java.lang.Double getVar246() {\n return var246;\n }",
"public double getDouble(String key)\n {\n return getDouble(key, 0);\n }",
"public Double getDouble(String attr) {\n return (Double) super.get(attr);\n }",
"public double getDouble (String variable){\r\n if (matlabEng==null) return 0.0;\r\n return matlabEng.engGetScalar(id,variable);\r\n }",
"public\n double getProperty_double(String key)\n {\n if (key == null)\n return 0.0;\n\n String val = getProperty(key);\n\n if (val == null)\n return 0.0;\n\n double ret_double = 0.0;\n try\n {\n Double workdouble = new Double(val);\n ret_double = workdouble.doubleValue();\n }\n catch(NumberFormatException e)\n {\n ret_double = 0.0;\n }\n\n return ret_double;\n }",
"public double getDouble(@NonNull String name) {\n return getDouble(name, /* defaultValue */ 0.0);\n }",
"public double getValue(String s) throws DictionaryException{\n\t\tVariable v = get(new Variable(s,0));\t\t// Try to get the dictionary entry with this identifier\n\t\tif (v != null) return v.getValue();\t\t\t// if it comes back not null, use it to access the value\n\t\tthrow new DictionaryException(\"Variable <\" + s + \"> not defined.\");\t// Else throw and exception\n\t}",
"public Double visitVariable(simpleCalcParser.VariableContext ctx){\n\t\tString varname = ctx.x.getText();\n\t\tDouble d = env.get(varname);\n\t\tif (d==null){\n\t\t\tSystem.err.println(\"Variable \" + varname + \" is not defined. \\n\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t \treturn d;\n \t}",
"public java.lang.Double getVar246() {\n return var246;\n }",
"public Double getAsDouble(String itemName, Double defaultValue);",
"public double getVariableValue(){\n\t\tObject valueKey = getEntries().keySet().stream().findFirst().orElseGet(()->{return 0d;});\n\t\tif (valueKey instanceof Double){\n\t\t\treturn (Double) valueKey;\n\t\t}\n\t\ttry {\n\t\t\tdouble value = Double.parseDouble(valueKey+\"\");\n\t\t\treturn value;\n\t\t}\n\t\tcatch (NumberFormatException ex){\n\t\t\treturn 0d;\n\t\t}\n\t}",
"Double getDoubleValue();",
"public double getDouble() {\r\n\t\treturn (value.getDouble());\r\n\t}",
"public double getFieldAsDouble(int tag) {\n return getFieldAsDouble(tag, 0);\n }",
"public double getDoubleValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a double.\");\n }",
"public double getVarValue(String variableName){\n\t\treturn var_map.get(variableName);\n\t}",
"double getDouble(String key, double defaultValue);",
"public double getDouble(String name, double defaultValue)\n/* */ {\n/* 1028 */ String value = getString(name);\n/* 1029 */ return value == null ? defaultValue : Double.parseDouble(value);\n/* */ }",
"public double getParameter(String name) {\n\t\tString parameter = this.parameters.getProperty(name);\n\t\treturn Double.parseDouble(parameter);\n\t}",
"public double getDouble(int pos) {\n return Tuples.toDouble(getObject(pos));\n }",
"public double getDouble(String name) {\n\t\tfinal Object val = values.get(name);\n\t\tif (val == null) {\n\t\t\tthrow new IllegalArgumentException(\"Float value required, but not specified\");\n\t\t}\n\t\tif (val instanceof Number) {\n\t\t\treturn ((Number) val).doubleValue();\n\t\t}\n\t\ttry {\n\t\t\treturn Double.parseDouble((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Float value required, but found: \" + val);\n\t\t}\n\t}",
"public double data (String name) {\n final DataReference data = module.getData(name);\n if (data == null) {\n Logger.missing(\"DataReference\", name);\n return 0D;\n } else {\n return data.get();\n }\n }",
"public double getDouble(String key) {\n\t\treturn Double.parseDouble(get(key));\n\t}",
"public Double getDouble(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.DOUBLE)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Double.class);\n\t\treturn (Double)value.value;\n\t}",
"public Double getDouble(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tDouble result = PrimitiveDataTypeConvertor.toDouble(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"Double\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public double getDouble();",
"public double unpackDouble() {\n return buffer.getDouble();\n }",
"public java.lang.Double getVar21() {\n return var21;\n }",
"public java.lang.Double getVar22() {\n return var22;\n }",
"public double get_double() {\n return local_double;\n }",
"public java.lang.Double getVar282() {\n return var282;\n }",
"public double getDoubleParam(String theAlias) {\n String name = getAlias(theAlias);\n\n if (!allParams.containsKey(name)) {\n System.out.println(\"Careful, you are getting the value of parameter: \" + name + \" but the parameter hasn't been added...\");\n System.exit(1);\n }\n if (!doubleParams.containsKey(name)) {\n System.out.println(\"Careful, you are getting the value of parameter: \" + name + \" but the parameter isn't a double parameter...\");\n System.exit(1);\n }\n\n return doubleParams.get(name);\n }",
"double getDouble(String key) throws KeyValueStoreException;",
"public Double getDouble(String key, Double defaultValue);",
"public Double D(String key) throws AgentBuilderRuntimeException {\n\t\treturn getDouble(key);\n\t}",
"public double doubleValue() {\n\t\treturn mDouble;\n\t}",
"public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }",
"public Double getDouble(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Double) extGet(key);\n\t}",
"public double asDouble() {\r\n\t\tif (this.what == SCALARTYPE.Integer || this.what == SCALARTYPE.Float) {\r\n\t\t\treturn (new BigDecimal(this.scalar)).doubleValue();\r\n\t\t} else\r\n\t\t\treturn 0; // ritorna un valore di default\r\n\t}",
"public Double get(String word) {\r\n\t\ttry {\r\n\t\t\treturn (Double) this.wordlist.get(word);\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public java.lang.Double getVar21() {\n return var21;\n }",
"public java.lang.Double getVar282() {\n return var282;\n }",
"public double readDouble(String message) {\r\n\t\tSystem.out.println(message);\r\n\t\treturn scanner.nextDouble();\r\n\t}",
"public java.lang.Double getVar22() {\n return var22;\n }",
"public java.lang.Double getVar111() {\n return var111;\n }",
"public double getDouble(String name)\r\n throws NumberFormatException\r\n {\r\n return Double.parseDouble(getString(name));\r\n }",
"Double getValue();",
"public double getDoubleValue1() {\n return doubleValue1_;\n }",
"public java.lang.Double getVar193() {\n return var193;\n }",
"public java.lang.Double getVar219() {\n return var219;\n }",
"public java.lang.Double getVar229() {\n return var229;\n }",
"double getDoubleValue2();",
"public java.lang.Double getVar111() {\n return var111;\n }",
"public double get(int index) {\n\t\treturn attrs.getQuick(index);\n\t}",
"public double doubleValue() {\n return this.value;\n }",
"public Variable getVariable(String name);",
"public java.lang.Double getVar238() {\n return var238;\n }",
"@Override\r\n\tpublic double getDouble(int pos) {\n\t\treturn buffer.getDouble(pos);\r\n\t}",
"public java.lang.Double getVar273() {\n return var273;\n }",
"public java.lang.Double getVar94() {\n return var94;\n }",
"public double getFieldAsDouble(int tag, int index) {\n Integer i = (Integer)fieldIndex.get(tag);\n return fields[i].getAsDouble(index);\n }",
"private double getDoubleValue(Element element, String tagName)\n {\n try\n {\n return Double.parseDouble(getValue(element,tagName));\n }\n catch (NumberFormatException exception)\n {\n return 0.0;\n }\n }",
"public double getDoubleValue1() {\n return doubleValue1_;\n }",
"public java.lang.Double getVar193() {\n return var193;\n }",
"double getDoubleValue1();",
"private double getDoubleAttribute(Element element, String attributeName)\n {\n try\n {\n return Double.parseDouble(getAttribute(element,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0.0;\n }\n }",
"public double d(String key) throws AgentBuilderRuntimeException {\n\t\treturn getDouble(key).doubleValue();\n\t}",
"public static double readDouble() {\n return Double.parseDouble(readString());\n }",
"private double getDoubleAttribute(Element element, String tagName, String attributeName)\n {\n try\n {\n return Double.parseDouble(getAttribute(element,tagName,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0.0;\n }\n }",
"double get();",
"public java.lang.Double getVar121() {\n return var121;\n }",
"public java.lang.Double getVar219() {\n return var219;\n }",
"public double getConstant(String nam) {\r\n Double val=constants.get(nam);\r\n\r\n return (val==null ? 0 : val.doubleValue());\r\n }",
"public void addDouble(String name, double value) {\n DOUBLES.add(new SimpleMessageObjectDoubleItem(name, value));\n }",
"public java.lang.Double getVar229() {\n return var229;\n }",
"public double getDoubleValue() {\n\t\treturn value;\r\n\t}",
"public abstract double read_double();",
"protected final Double getDouble(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.getDouble(key);\n }\n } catch (JSONException e) {\n }\n return null;\n }",
"public java.lang.Double getVar184() {\n return var184;\n }",
"public java.lang.Double getVar12() {\n return var12;\n }",
"public final double getDouble(final String tagToGet) {\n try {\n return Double.parseDouble(getStr(tagToGet));\n } catch (final Exception e) {\n return 0.0;\n }\n }",
"public java.lang.Double getVar220() {\n return var220;\n }",
"public java.lang.Double getVar273() {\n return var273;\n }",
"public double getDoubleValue()\n {\n return (double) getValue() / (double) multiplier;\n }",
"public Object getProperty(String attName);",
"public java.lang.Double getVar274() {\n return var274;\n }",
"public TupleDesc addDouble(String name) {\n columns.add(new TupleDescItem(Type.DOUBLE, name));\n return this;\n }",
"double getDoubleValue3();",
"private static Double getDoubleProperty(String key) {\n String value = PROPERTIES.getProperty(key);\n // if the key is not found, Properties will return null and we should return a default value\n if (value == null) {\n return 0.0;\n }\n return Double.parseDouble(value);\n }",
"double getDouble(String key) {\n double value = 0.0;\n try {\n value = mConfigurations.getDouble(key);\n } catch (JSONException e) {\n sLogger.error(\"Error retrieving double from JSONObject. @ \" + key);\n }\n return value;\n }",
"@Override\n public double get()\n {\n return unbounded.get();\n }",
"public java.lang.Double getVar292() {\n return var292;\n }",
"public java.lang.Double getVar201() {\n return var201;\n }"
] | [
"0.7001291",
"0.6613",
"0.6612665",
"0.6463214",
"0.63789636",
"0.63146687",
"0.6299322",
"0.62606084",
"0.62248063",
"0.6215357",
"0.6210177",
"0.6202087",
"0.6183793",
"0.61674905",
"0.6155109",
"0.61517596",
"0.6147444",
"0.61360484",
"0.61243767",
"0.6089077",
"0.6079165",
"0.60611224",
"0.6050567",
"0.6039527",
"0.6036614",
"0.603348",
"0.6004421",
"0.59961295",
"0.5992593",
"0.5983911",
"0.5982468",
"0.59524465",
"0.5935167",
"0.5933472",
"0.59262943",
"0.5924082",
"0.59075063",
"0.59059024",
"0.58976",
"0.5897283",
"0.5884121",
"0.58837223",
"0.5880578",
"0.5874276",
"0.58671075",
"0.5857798",
"0.58568174",
"0.58230746",
"0.58167833",
"0.5815672",
"0.5814164",
"0.58133155",
"0.5783004",
"0.57558215",
"0.5731836",
"0.57175547",
"0.5708783",
"0.56958896",
"0.5684626",
"0.56738853",
"0.56673086",
"0.5661615",
"0.56613463",
"0.56570077",
"0.56566423",
"0.56552434",
"0.56500083",
"0.5648156",
"0.56428665",
"0.5640532",
"0.5637844",
"0.56273603",
"0.562148",
"0.5620205",
"0.5609721",
"0.56075215",
"0.5602072",
"0.55966806",
"0.55924046",
"0.559108",
"0.5590622",
"0.55890024",
"0.55855393",
"0.55850065",
"0.5583436",
"0.55832845",
"0.55803543",
"0.5575125",
"0.5574383",
"0.5571578",
"0.5571154",
"0.5566786",
"0.55666614",
"0.55663913",
"0.55629426",
"0.55517095",
"0.55496395",
"0.5538008",
"0.5537279",
"0.55359006"
] | 0.7376519 | 0 |
Get the named float variable from this SimpleMessageObject | public float getFloat(String name) {
Enumeration enumer = FLOATS.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectFloatItem item = (SimpleMessageObjectFloatItem) enumer.nextElement();
if(item.getName().compareTo(name) == 0) {
return item.getValue();
}
}
return -1F;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float getFloat(String name, float defaultValue)\n/* */ {\n/* 984 */ String value = getString(name);\n/* 985 */ if (value == null) {\n/* 986 */ return defaultValue;\n/* */ }\n/* 988 */ return PApplet.parseFloat(value, defaultValue);\n/* */ }",
"public static float getFloat(String pName) {\n float out = 0f;\n try {\n out = Float.parseFloat(properties.getProperty(pName));\n } catch (Exception e) {\n out = Float.parseFloat(defaults.getProperty(pName));\n Log.debug(\"Cannot parse property: \" + pName);\n Log.debug(e);\n }\n return out;\n }",
"public Float getFloat(String name) {\n Object o = get(name);\n if (o instanceof Number) {\n return ((Number)o).floatValue();\n }\n\n if (o != null) {\n try {\n String string = o.toString();\n if (string != null) {\n return Float.parseFloat(string);\n }\n }\n catch (NumberFormatException e) {}\n }\n return null;\n }",
"public static float getFloatProperty(String key) {\r\n\t\treturn getFloatProperty(key, 0);\r\n\t}",
"public Float getFloat(String key)\n\t{\n\t\tDouble d = getDouble(key);\n\t\tif(d == null)\n\t\t\treturn null;\n\t\treturn d.floatValue();\n\t}",
"public float getFloat(String key) {\n\t\tfloat defaultValue = 0;\n\t\tif (getDefault(key) != null)\n\t\t\tdefaultValue = (Float) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tfloat value;\n\t\ttry {\n\t\t\tvalue = Float.parseFloat(sp);\n\t\t} catch (NumberFormatException ex) {\n\t\t\tsetFloat(key, defaultValue);\n\t\t\treturn defaultValue;\n\t\t}\n\t\treturn value;\n\t}",
"public float getFloat(String key)\n {\n return getFloat(key, 0);\n }",
"public Float getFloat(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Float) extGet(key);\n\t}",
"final public float getFloatAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr.Value;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public Float getFloat(String attr) {\n return (Float) super.get(attr);\n }",
"public java.lang.Float getVar23() {\n return var23;\n }",
"public Float getFloatAttribute();",
"@Nullable\r\n public Float getFloat(String key) {\r\n return getFloat(key, null);\r\n }",
"public float getFloat(int pos) {\n return Tuples.toFloat(getObject(pos));\n }",
"public float getValue()\r\n {\r\n return getSemanticObject().getFloatProperty(swps_floatValue);\r\n }",
"float getValue();",
"float getValue();",
"float getValue();",
"public Float getFloat(String key, Float defaultValue);",
"public java.lang.Float getVar23() {\n return var23;\n }",
"public float floatValue() {\n\t\treturn (float) mDouble;\n\t}",
"public float get_float() {\n return local_float;\n }",
"public float getFloat(String key, float defaultValue);",
"public Float getValue () {\r\n\t\treturn (Float) getStateHelper().eval(PropertyKeys.value);\r\n\t}",
"public float getFloat(String subExpression) {\n return (float)getNumber(subExpression);\n }",
"public float toFloat() {\n return this.toFloatArray()[0];\n }",
"public float getFloat(String name) {\n\t\tfinal Object val = values.get(name);\n\t\tif (val == null) {\n\t\t\tthrow new IllegalArgumentException(\"Float value required, but not specified\");\n\t\t}\n\t\tif (val instanceof Number) {\n\t\t\treturn ((Number) val).floatValue();\n\t\t}\n\t\ttry {\n\t\t\treturn Float.parseFloat((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Float value required, but found: \" + val);\n\t\t}\n\t}",
"final public float getFloatAttr() {\r\n\t\t\tif(mName.length() == 0)\r\n\t\t\t\treturn -1;\r\n\t\t\tif(mSaveAttr == null)\r\n\t\t\t\treturn getAttr(mName).Value;\r\n\t\t\treturn mSaveAttr.Value;\r\n\t\t}",
"public float getFieldAsFloat(int tag) {\n return getFieldAsFloat(tag, 0);\n }",
"public Float getFloatData(String key) {\n return pref.getFloat(key, 0);\n }",
"final float getFloatPropertyValue(int index) {\n return mFloatValues[index];\n }",
"public Float F(String key) throws AgentBuilderRuntimeException {\n\t\treturn getFloat(key);\n\t}",
"public java.lang.Float getVar230() {\n return var230;\n }",
"public java.lang.Float getVar221() {\n return var221;\n }",
"public java.lang.Float getVar239() {\n return var239;\n }",
"public float floatValue() {\n return (float) value;\n }",
"public java.lang.Float getVar230() {\n return var230;\n }",
"public float floatValue() {\n return this.value;\n }",
"public float floatValue() {\r\n return (float) intValue();\r\n }",
"public double getVariable(String nam) {\r\n Double val=variables.get(nam);\r\n\r\n return (val==null ? 0 : val.doubleValue());\r\n }",
"public float floatValue()\n\t\t{\n\t\t\treturn (float) doubleValue();\n\t\t}",
"public float getTrackValue(String name) {\n synchronized(tracks) {\n InputTrack track = tracks.get(name);\n return track != null ? track.getValue(this) : 0;\n }\n }",
"public float getFloat(short dictionaryKey) {\n\t\treturn floatsMap.get(dictionaryKey);\n\t}",
"public abstract float getValue();",
"String getFloat_lit();",
"public java.lang.Float getVar221() {\n return var221;\n }",
"public Float getValue() {\n\t\treturn value;\n\t}",
"public Float getValue() {\n\t\treturn value;\n\t}",
"public float getValue() {\n return value_;\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"float\";\r\n\t}",
"public float unpackFloat() {\n return buffer.getFloat();\n }",
"public java.lang.Float getVar239() {\n return var239;\n }",
"@Override\r\n public float floatValue() {\r\n return (float) this.m_current;\r\n }",
"public float floatValue() {\n return (float) m_value;\n }",
"public float getValue() {\n return value_;\n }",
"public java.lang.Float getVar131() {\n return var131;\n }",
"public float f(String key) throws AgentBuilderRuntimeException {\n\t\treturn getFloat(key).floatValue();\n\t}",
"public float getFloat(String key, float fallback)\n {\n if (key.contains(\".\"))\n {\n String[] pieces = key.split(\"\\\\.\", 2);\n DataSection section = getSection(pieces[0]);\n return section == null ? fallback : section.getFloat(pieces[1], fallback);\n }\n\n if (!data.containsKey(key)) return -1;\n Object obj = data.get(key);\n try\n {\n return Float.parseFloat(obj.toString());\n }\n catch (Exception ex)\n {\n return fallback;\n }\n }",
"public float getFloat(String property)\n\tthrows PropertiesPlusException\n\t{\n\t\tString value = getProperty(property);\n\t\tif (value == null)\n\t\t\tthrow new PropertiesPlusException(property+\" is not defined.\");\n\n\t\ttry\n\t\t{\n\t\t\treturn Float.valueOf(value);\n\t\t}\n\t\tcatch (NumberFormatException ex)\n\t\t{\n\t\t\tthrow new PropertiesPlusException(String.format(\n\t\t\t\t\t\"%s = %s cannot be converted to type double\", property, value));\n\t\t}\n\t}",
"public abstract float read_float();",
"public float get(int dim)\n {\n switch(dim)\n {\n case 0:\n {\n return fx;\n }\n case 1:\n {\n return fy;\n }\n case 2:\n {\n return fz;\n }\n default:\n {\n Log.d(\"debug1\", \"Bad Float Get to Vector.\");\n return 0.0f;\n }\n }\n }",
"public Float getFloat(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).floatValue();\n }",
"public static double readFloat() {\n return Float.parseFloat(readString());\n }",
"public float getValue() {\n return value;\n }",
"String floatRead();",
"public static float getValueFloat()\n {\n return Util.valueFloat;\n }",
"public static double getFloat(Tag tag){\n makeInstance();\n return settingsFile.getFloat(tag);\n }",
"@Override\r\n\tpublic float getFloat(int pos) {\n\t\treturn buffer.getFloat(pos);\r\n\t}",
"public float getFloatValue() {\n \t\treturn floatValue;\n \t}",
"public float getValue()\n\t{\n\t\treturn this.value;\n\t}",
"public final Float _parseFloat(JsonParser jVar, DeserializationContext gVar) throws IOException {\n JsonToken l = jVar.mo29328l();\n if (l == JsonToken.VALUE_NUMBER_FLOAT || l == JsonToken.VALUE_NUMBER_INT) {\n return Float.valueOf(jVar.mo29250F());\n }\n if (l == JsonToken.VALUE_STRING) {\n String trim = jVar.mo29334t().trim();\n if (trim.length() == 0) {\n return (Float) _coerceEmptyString(gVar, this._primitive);\n }\n if (_hasTextualNull(trim)) {\n return (Float) _coerceTextualNull(gVar, this._primitive);\n }\n char charAt = trim.charAt(0);\n if (charAt != '-') {\n if (charAt != 'I') {\n if (charAt == 'N' && _isNaN(trim)) {\n return Float.valueOf(Float.NaN);\n }\n } else if (_isPosInf(trim)) {\n return Float.valueOf(Float.POSITIVE_INFINITY);\n }\n } else if (_isNegInf(trim)) {\n return Float.valueOf(Float.NEGATIVE_INFINITY);\n }\n _verifyStringForScalarCoercion(gVar, trim);\n try {\n return Float.valueOf(Float.parseFloat(trim));\n } catch (IllegalArgumentException unused) {\n return (Float) gVar.mo31517b(this._valueClass, trim, \"not a valid Float value\", new Object[0]);\n }\n } else if (l == JsonToken.VALUE_NULL) {\n return (Float) _coerceNullToken(gVar, this._primitive);\n } else {\n if (l == JsonToken.START_ARRAY) {\n return (Float) _deserializeFromArray(jVar, gVar);\n }\n return (Float) gVar.mo31493a(this._valueClass, jVar);\n }\n }",
"public java.lang.Float getVar77() {\n return var77;\n }",
"float getEFloat();",
"@Override\r\n\tpublic float getFloat(String string) {\n\t\treturn 0;\r\n\t}",
"public float getValue() {\n\t\treturn value;\n\t}",
"public java.lang.Float getVar41() {\n return var41;\n }",
"@Api(1.0)\n @Nullable\n public Float getFloat(@NonNull String propertyName, @Nullable Float value) {\n if (getSharedPreferences().contains(propertyName)) {\n float val = value != null ? value : 0f;\n return getSharedPreferences().getFloat(propertyName, val);\n }\n return value;\n }",
"public java.lang.Float getVar248() {\n return var248;\n }",
"public java.lang.Float getVar131() {\n return var131;\n }",
"public float getMandatoryFloat(String key) throws ConfigNotFoundException;",
"public java.lang.Float getVar194() {\n return var194;\n }",
"public float floatValue() {\n return ( (Float) getAllele()).floatValue();\n }",
"double floatField(String name, boolean isDefined, double value,\n FloatSpecification spec) throws NullField, InvalidFieldValue;",
"public float getFloat(String column)\n {\n return FloatType.instance.compose(get(column));\n }",
"public Float getFloat(float defaultVal) {\n return get(ContentType.FloatType, defaultVal);\n }",
"public Variable getVariable(String name);",
"@ReflectiveMethod(name = \"m\", types = {})\n public float m(){\n return (float) NMSWrapper.getInstance().exec(nmsObject);\n }",
"public double get (String name) {\n return this.lookup(name);\n }",
"float readFloat();",
"double getFloatingPointField();",
"public T caseFloat(org.uis.lenguajegrafico.lenguajegrafico.Float object)\n {\n return null;\n }",
"public static float fieldGetFloat(final Class<?> cls, final String name,\r\n final Object inst) throws SecurityException, NoSuchFieldException,\r\n IllegalArgumentException, IllegalAccessException {\r\n final Field field = jvmGetField(cls, name);\r\n return field.getFloat(inst);\r\n }",
"public java.lang.Float getVar185() {\n return var185;\n }",
"public float getFloat() throws NoSuchElementException,\n\t NumberFormatException\n {\n\tString s = tokenizer.nextToken();\n\treturn Float.parseFloat(s);\n }",
"public java.lang.Float getVar203() {\n return var203;\n }",
"public float getFirstNumber(){\n return firstNumber;\n }",
"public java.lang.Float getVar77() {\n return var77;\n }",
"public FloatType asFloat() {\n return TypeFactory.getIntType(toInt(this.getValue())).asFloat();\n }",
"public float readFloat() {\n return Float.parseFloat(readNextLine());\n }",
"public java.lang.Float getVar266() {\n return var266;\n }"
] | [
"0.664588",
"0.6631014",
"0.654554",
"0.6521194",
"0.6504641",
"0.64254713",
"0.6397252",
"0.6372171",
"0.6359307",
"0.63137376",
"0.6302932",
"0.62878114",
"0.6281392",
"0.62564695",
"0.6206839",
"0.62048876",
"0.62048876",
"0.62048876",
"0.62040913",
"0.6202312",
"0.61971986",
"0.61931694",
"0.6169775",
"0.6169536",
"0.6158412",
"0.61572",
"0.6155155",
"0.61543244",
"0.61476684",
"0.61332047",
"0.61329913",
"0.61129004",
"0.6109092",
"0.6051299",
"0.6035099",
"0.602105",
"0.6010911",
"0.6002366",
"0.59975666",
"0.5997194",
"0.5996092",
"0.599414",
"0.59742236",
"0.59648126",
"0.5962214",
"0.595313",
"0.59281826",
"0.59281826",
"0.59270424",
"0.5900135",
"0.5898252",
"0.5895729",
"0.5889488",
"0.58891857",
"0.58842516",
"0.5882803",
"0.58784014",
"0.58540434",
"0.58472604",
"0.58364886",
"0.58273363",
"0.58242095",
"0.58235055",
"0.5819132",
"0.5815589",
"0.58133423",
"0.57946",
"0.5793443",
"0.57823443",
"0.5782019",
"0.5775746",
"0.5769271",
"0.5767092",
"0.5765207",
"0.5761747",
"0.5755772",
"0.57481134",
"0.57448775",
"0.5730311",
"0.5724665",
"0.57234997",
"0.57218397",
"0.5715641",
"0.5708337",
"0.57061017",
"0.56988955",
"0.56957877",
"0.5695343",
"0.56940085",
"0.56857926",
"0.5681186",
"0.56767917",
"0.56738406",
"0.5666451",
"0.56661236",
"0.565487",
"0.56528467",
"0.56514645",
"0.56490105",
"0.56358576"
] | 0.75795114 | 0 |
Get the named char variable from this SimpleMessageObject | public char getChar(String name) {
Enumeration enumer = CHARS.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectCharItem item = (SimpleMessageObjectCharItem) enumer.nextElement();
if(item.getName().compareTo(name) == 0) {
return item.getValue();
}
}
return (char)-1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCharName(){return charName;}",
"String getVariable();",
"public char message_type_GET()\n { return (char)((char) get_bytes(data, 0, 2)); }",
"public String getCharacter()\n\t\t{\n\t\t\treturn characterName;\n\t\t}",
"@Field(1) \n\tpublic Pointer<Byte > Name() {\n\t\treturn this.io.getPointerField(this, 1);\n\t}",
"public String getVariable();",
"public Character getChar(String name) {\n Object o = get(name);\n if (o instanceof Character) {\n return (Character)o;\n }\n\n if (o != null) {\n String string = o.toString();\n if (string != null && string.length() == 1) {\n return string.charAt(0);\n }\n }\n return null;\n }",
"public Variable getVariable(String name);",
"String getVarName();",
"String getVarName();",
"String getVarName();",
"String getVarName(String name);",
"public char getChar( String name )\n {\n char value = 0;\n if ( config != null )\n {\n value = ( char ) config.getProperty( name );\n LOG.debug( \"getChar name [{}] value [{}]\", name, value );\n }\n else\n {\n LOG.warn( \"getChar invalid config, can't read prop [{}]\", name );\n }\n return value;\n }",
"public java.lang.CharSequence getVar251() {\n return var251;\n }",
"public char Get() {\n\t\treturn myChar;\n\t}",
"@Override\n\tpublic String getValue() {\n\t\treturn name;\n\t}",
"public String variable()\n\t{\n\t\treturn _var;\n\t}",
"public java.lang.CharSequence getVar251() {\n return var251;\n }",
"public String getVariable()\n {\n return this.strVariable;\n }",
"public char getName(){\n\t\treturn tipo;\n\t}",
"public String name() {\n return myStrVal;\n }",
"@Override\n\t\t\t\tpublic String getValue() {\n\t\t\t\t\treturn pc.name();\n\t\t\t\t}",
"String getValueName();",
"public String getName() {\n/* 872 */ return CraftChatMessage.fromComponent(getHandle().getDisplayName());\n/* */ }",
"char[] getName();",
"public IString getVariableIdentifier() {\n\treturn VARIABLE_IDENTIFIER.get(getNd(), this.address);\n }",
"public Name getVariable() {\n return variable;\n }",
"String getTargetVariablePart();",
"public final String getCharacterName() {\n return characterName;\n }",
"public YangString getNameValue() throws JNCException {\n return (YangString)getValue(\"name\");\n }",
"public YangString getNameValue() throws JNCException {\n return (YangString)getValue(\"name\");\n }",
"public String getVariableName() {\n return _vname;\n }",
"public BasicChar getBasicChar() {\n return this.wotCharacter;\n }",
"public String getCharacterName() {\n return mCharacterName;\n }",
"public java.lang.CharSequence getVar9() {\n return var9;\n }",
"String getSourceVariablePart();",
"public char getValue()\n\t{\n\t\treturn value;\n\t}",
"public java.lang.CharSequence getVar9() {\n return var9;\n }",
"java.lang.String getVarValue();",
"public String getChar() {\n\t\tString asciiCode = getProperty(key_delimiter);\n\t\tCharacter c = null;\n\t\tif (asciiCode == null) {\n\t\t\tc = '|';\n\t\t} else if (asciiCode != null && asciiCode.startsWith(\"#\")\n\t\t\t\t&& asciiCode.length() > 1) {\n\t\t\tint i = Integer.valueOf(asciiCode.substring(1));\n\t\t\tc = new Character((char) i);\n\t\t} else if (asciiCode.length() == 1) {\n\t\t\tc = asciiCode.charAt(0);\n\t\t}\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif (c != null){\n\t\t\tresult = String.valueOf(c);\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public char getValue() {\n return value;\n }",
"public String getCharacter() {\n return this.state.getCharacter();\n }",
"public char getChar() {\n return this.s;\n }",
"public char getChar();",
"protected char getSymbol(){\r\n\t\treturn this.symbol;\r\n\t}",
"public _char get_char() {\n return local_char;\n }",
"public char local_name() {\n return local_name;\n }",
"public java.lang.CharSequence getVar26() {\n return var26;\n }",
"public char charValue() {\n return value;\n }",
"public String getName() { return (String)get(\"Name\"); }",
"Character getSymbol(Environment environment);",
"public java.lang.CharSequence getVar26() {\n return var26;\n }",
"public String getVariable() {\n return variable;\n }",
"public java.lang.CharSequence getVar126() {\n return var126;\n }",
"java.lang.String getField1127();",
"public char getId() {\n return this.id;\n }",
"public String getName() {\n\t\treturn JWLC.nativeHandler().wlc_output_get_name(this.to());\n\t}",
"public String getElementVarName() {\r\n\t\treturn elementVarName;\r\n\t}",
"public int get_char() {\n return local_char;\n }",
"String getPropertyName();",
"public Object getCharacteristic(String name) throws DataExchangeException;",
"public char getChar( String name, char defaultValue )\n {\n char value = 0;\n if ( config != null )\n {\n value = ( char ) config.getProperty( name );\n LOG.debug( \"getChar name [{}] value [{}]\", name, value );\n }\n else\n {\n LOG.warn( \"getChar invalid config, can't read prop [{}], using default [{}]\", name, defaultValue );\n }\n if ( value == 0 )\n {\n value = defaultValue;\n }\n return value;\n }",
"public String name_data(String name)\r\n/* 14: */ {\r\n/* 15:27 */ if (name == \"gr_id\") {\r\n/* 16:27 */ return this.config.id.name;\r\n/* 17: */ }\r\n/* 18:28 */ String[] parts = name.split(\"c\");\r\n/* 19: */ try\r\n/* 20: */ {\r\n/* 21:32 */ if (parts[0].equals(\"\"))\r\n/* 22: */ {\r\n/* 23:33 */ int index = Integer.parseInt(parts[1]);\r\n/* 24:34 */ return ((ConnectorField)this.config.text.get(index)).name;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ catch (NumberFormatException localNumberFormatException) {}\r\n/* 28:38 */ return name;\r\n/* 29: */ }",
"public java.lang.CharSequence getVar126() {\n return var126;\n }",
"public byte get_charId(){\n return character_id;\n }",
"public String getValue() {\n\t\treturn subjectName;\n\t}",
"public java.lang.CharSequence getVar44() {\n return var44;\n }",
"public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}",
"private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }",
"public java.lang.CharSequence getVar108() {\n return var108;\n }",
"public byte[] getName();",
"Node getVariable();",
"public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n identifier_ = s;\n }\n return s;\n }\n }",
"public String getSymbol() {\n Object ref = symbol_;\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 if (bs.isValidUtf8()) {\n symbol_ = s;\n }\n return s;\n }\n }",
"CharacterInfo getCharacter();",
"public String getName() {\n/* */ return this.field_176894_i;\n/* */ }",
"public char group_mlx_GET()\n { return (char)((char) get_bytes(data, 8, 1)); }",
"public char group_mlx_GET()\n { return (char)((char) get_bytes(data, 8, 1)); }",
"public StructuredQName getObjectName() {\n return getVariableQName();\n }",
"public java.lang.CharSequence getVar89() {\n return var89;\n }",
"public static char getChar(String inKey) {\r\n String string = getProperties().get(inKey).toString();\r\n char result = 0;\r\n if (string == null || string.length() < 1) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getChar: no char property for: \" + inKey);\r\n }\r\n } else {\r\n result = string.charAt(0);\r\n }\r\n\r\n if (LOG.isErrorEnabled() && string.length() > 1) {\r\n LOG.error(\"Char property for (\" + inKey + \") longer than a single char: \" + string);\r\n }\r\n\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getChar: \" + inKey + \", result \" + result);\r\n }\r\n return result;\r\n }",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"public String getName() { return name.get(); }",
"private char[] getProperty(String string) {\n\t\treturn null;\r\n\t}",
"public char getKey(){ return key;}",
"public java.lang.CharSequence getVar81() {\n return var81;\n }",
"public Character getCharacter(){\n\t\treturn get_character();\n\t}",
"public char getSymbol() {\n\t\treturn this.symbol;\n\t}",
"public java.lang.CharSequence getVar89() {\n return var89;\n }",
"public char first_message_offset_GET()\n { return (char)((char) get_bytes(data, 5, 1)); }",
"public char first_message_offset_GET()\n { return (char)((char) get_bytes(data, 5, 1)); }",
"public java.lang.CharSequence getVar44() {\n return var44;\n }",
"public java.lang.CharSequence getVar108() {\n return var108;\n }",
"public PosSymbol getName() {\n return name;\n }",
"public PosSymbol getName() {\n return name;\n }"
] | [
"0.631922",
"0.6017669",
"0.6006568",
"0.59761775",
"0.59052444",
"0.5888738",
"0.5850392",
"0.58275986",
"0.5806628",
"0.5806628",
"0.5806628",
"0.5799366",
"0.5776846",
"0.57224303",
"0.5716909",
"0.57039094",
"0.56931716",
"0.56842786",
"0.565349",
"0.5608124",
"0.55722797",
"0.55563825",
"0.5556177",
"0.5551265",
"0.55325335",
"0.55228543",
"0.5512839",
"0.55128354",
"0.55118895",
"0.55086464",
"0.55086464",
"0.55014616",
"0.5498374",
"0.54731166",
"0.54595196",
"0.5444866",
"0.5428924",
"0.5423296",
"0.54137677",
"0.53923154",
"0.5390223",
"0.53804624",
"0.5357714",
"0.53550726",
"0.53537184",
"0.5351701",
"0.53472275",
"0.5343392",
"0.53350097",
"0.53140324",
"0.5305209",
"0.53048617",
"0.53024447",
"0.5291221",
"0.5287845",
"0.5287633",
"0.528604",
"0.5279941",
"0.52785003",
"0.52566826",
"0.525077",
"0.5250637",
"0.5248131",
"0.52430767",
"0.52403474",
"0.5237269",
"0.52354705",
"0.523051",
"0.52292764",
"0.5228503",
"0.52231264",
"0.5222654",
"0.5219462",
"0.52157396",
"0.52135366",
"0.52122927",
"0.52107906",
"0.52107906",
"0.52106524",
"0.52100974",
"0.5209501",
"0.52064556",
"0.52064556",
"0.52064556",
"0.52064556",
"0.52064556",
"0.52064556",
"0.51978934",
"0.51881176",
"0.5187716",
"0.51843363",
"0.51795423",
"0.5179386",
"0.5178263",
"0.5175845",
"0.5175845",
"0.51744735",
"0.5171973",
"0.51637506",
"0.51637506"
] | 0.6619731 | 0 |
Get the named byte array variable from this SimpleMessageObject | public byte[] getByteArray(String name) {
Enumeration enumer = BYTES.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectByteArrayItem item = (SimpleMessageObjectByteArrayItem) enumer.nextElement();
if(item.getName().compareTo(name) == 0) {
return item.getValue();
}
}
byte[] noSuchArray = new byte[1];
noSuchArray[0] = (byte)-1;
return noSuchArray;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"byte[] getByteArrayField();",
"com.google.protobuf.ByteString\n getMemberOfBytes();",
"public byte[] getBytes(){\n\t\treturn message;\n\t}",
"byte[] getEByteArray();",
"public synchronized byte[] getPropertyBytes(String name)\n {\n return (byte[]) getProperties().get(name);\n }",
"public byte[] getName();",
"public byte[] value() {\n return value;\n }",
"com.google.protobuf.ByteString\n getFromBytes();",
"com.google.protobuf.ByteString\n getFromBytes();",
"byte[] byteValue() {\n\treturn data;\n }",
"public byte[] value() {\n return value;\n }",
"public byte[] getByteArray() {\n long val = getValue();\n return new byte[] {\n (byte)((val>>24) & 0xff),\n (byte)((val>>16) & 0xff),\n (byte)((val>>8) & 0xff),\n (byte)(val & 0xff) };\n }",
"@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}",
"public byte[] getByteAttachment() {\n\t\treturn byteAttachment;\n\t}",
"com.google.protobuf.ByteString\n getField1055Bytes();",
"byte[] getStructuredData(String messageData);",
"com.google.protobuf.ByteString\n getField1082Bytes();",
"com.google.protobuf.ByteString\n getField1088Bytes();",
"@Override\n\tpublic byte[] retrieve(String msgid)\n\t{\n\t\treturn null;\n\t}",
"public byte[] getAsBytes () {\r\n\t \r\n\t //code description\r\n\t \r\n\t Properties p = new Properties();\t\r\n\t return this.getAsBytes(p);\r\n\t \r\n }",
"public byte[] getBytes() {\r\n \treturn toString().getBytes();\r\n }",
"byte[] getBytes();",
"byte[] getBytes();",
"com.google.protobuf.ByteString\n getField1155Bytes();",
"com.google.protobuf.ByteString\n getField1087Bytes();",
"public byte[] getData();",
"public byte[] get(){\n return this.value;\n }",
"com.google.protobuf.ByteString\n getTheMessageBytes();",
"public byte[] getPayload();",
"public byte[] asByteArray() {\n return data;\n }",
"com.google.protobuf.ByteString\n getField1335Bytes();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"com.google.protobuf.ByteString\n getField1081Bytes();",
"public byte[] GetBytes() {\n return data;\n }",
"com.google.protobuf.ByteString\n getNameBytes();",
"com.google.protobuf.ByteString\n getNameBytes();",
"com.google.protobuf.ByteString\n getNameBytes();",
"com.google.protobuf.ByteString\n getNameBytes();",
"com.google.protobuf.ByteString\n getField1255Bytes();",
"com.google.protobuf.ByteString\n getField1982Bytes();",
"com.google.protobuf.ByteString\n getField1078Bytes();",
"public byte[] getValue() {\n return v;\n }",
"com.google.protobuf.ByteString getValue();",
"com.google.protobuf.ByteString getValue();",
"com.google.protobuf.ByteString getValue();",
"com.google.protobuf.ByteString\n getField1581Bytes();",
"public ByteArrayAttribute getValue() {\n return value;\n }",
"com.google.protobuf.ByteString\n getField1582Bytes();",
"public byte[] getByteArray(){\r\n\r\n byte[] b = new byte[0x54];\r\n\r\n System.arraycopy(PID_pointer, 0, b, 0, 4);\r\n System.arraycopy(MPID_pointer, 0, b, 4, 4);\r\n System.arraycopy(Null_pointer, 0, b, 8, 4);\r\n System.arraycopy(Portrait_pointer, 0, b, 12, 4);\r\n System.arraycopy(Class_pointer, 0, b, 16, 4);\r\n System.arraycopy(Affiliation_pointer, 0, b, 20, 4);\r\n System.arraycopy(Weaponlevel_pointer, 0, b, 24, 4);\r\n System.arraycopy(Skill1_pointer, 0, b, 28, 4);\r\n System.arraycopy(Skill2_pointer, 0, b, 32, 4);\r\n System.arraycopy(Skill3_pointer, 0, b, 36, 4);\r\n System.arraycopy(Animation1_pointer, 0, b, 40, 4);\r\n System.arraycopy(Animation2_pointer, 0, b, 44, 4);\r\n b[48] = unknownbyte1;\r\n b[49] = unknownbyte2;\r\n b[50] = unknownbyte3;\r\n b[51] = unknownbyte4;\r\n b[52] = unknownbyte5;\r\n b[53] = unknownbyte6;\r\n b[54] = level;\r\n b[55] = build;\r\n b[56] = weight;\r\n System.arraycopy(bases, 0, b, 57, 8);\r\n System.arraycopy(growths, 0, b, 65, 8);\r\n System.arraycopy(supportgrowth, 0, b, 73, 8);\r\n b[81] = unknownbyte9;\r\n b[82] = unknownbyte10;\r\n b[83] = unknownbyte11;\r\n\r\n return b;\r\n }",
"public byte[] getValue() {\n return this.value;\n }",
"com.google.protobuf.ByteString\n getField1172Bytes();",
"com.google.protobuf.ByteString\n getUserMessageBytes();",
"com.google.protobuf.ByteString\n getField1588Bytes();",
"com.google.protobuf.ByteString\n getField1182Bytes();",
"com.google.protobuf.ByteString\n getField1185Bytes();",
"com.google.protobuf.ByteString\n getField1187Bytes();",
"public void addByteArray(String name, byte[] value) {\n BYTES.add(new SimpleMessageObjectByteArrayItem(name, value));\n }",
"com.google.protobuf.ByteString\n getField1972Bytes();",
"com.google.protobuf.ByteString\n getField1282Bytes();",
"com.google.protobuf.ByteString\n getField1977Bytes();",
"com.google.protobuf.ByteString\n getField1188Bytes();",
"com.google.protobuf.ByteString\n getField1085Bytes();",
"com.google.protobuf.ByteString\n getField1089Bytes();",
"com.google.protobuf.ByteString\n getField1157Bytes();",
"com.google.protobuf.ByteString\n getField1065Bytes();",
"public byte[] getAsBytes() {\n return (byte[])data;\n }",
"com.google.protobuf.ByteString\n getField1288Bytes();",
"com.google.protobuf.ByteString\n getField1572Bytes();",
"com.google.protobuf.ByteString\n getField1051Bytes();",
"com.google.protobuf.ByteString\n getField1882Bytes();",
"public byte[] getBytes() {\n return bytes;\n }",
"com.google.protobuf.ByteString\n getField1381Bytes();",
"com.google.protobuf.ByteString\n getField1566Bytes();",
"com.google.protobuf.ByteString\n getField1189Bytes();",
"com.google.protobuf.ByteString\n getField1981Bytes();",
"com.google.protobuf.ByteString\n getField1181Bytes();",
"@Field(1)\n\tpublic byte_struct byte$() {\n\t\treturn this.io.getNativeObjectField(this, 1);\n\t}",
"private static byte[] createNameBA() {\n\t\t//Creating byte[]\n\t\tbyte[] data = new byte[SIZE_PACKET];\n\t\tByteBuffer b = ByteBuffer.wrap(data);\n\t\tb.clear();\n\n\t\t//Adding of file name bytes to the byte[]\n\t\tbyte[] nameBytes = outputFileName.getBytes();\n\t\tfor(int i = 0; i < nameBytes.length; i++) {\n\t\t\tdata[i + INDEX_CONTENT] = nameBytes[i];\t\n\t\t}\n\n\t\t//Adding headers to the byte[]\n\t\tb.rewind();\n\t\tb.putLong(0); //Save 8 bytes for checksum\n\t\tb.putInt(seqNumber); //should be 0\n\t\tb.putInt(PACKET_NAME); //should be 1 since packet type is name\n\t\tb.putInt(nameBytes.length); //number of bytes that name takes\n\n\t\t//Calculating checksum and adding to byte[]\n\t\tchecksum = new CRC32();\n\t\tchecksum.reset();\n\t\tchecksum.update(data, INDEX_SEQ, data.length - INDEX_SEQ);\n\t\tlong chksum = checksum.getValue();\n\t\tb.rewind(); //move pointer back to 0\n\t\tb.putLong(chksum); //contains checksum of INDEX_SEQ to end of packet\n\n\t\t//Return byte[]\n\t\treturn data;\n\t}",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getField1848Bytes();",
"com.google.protobuf.ByteString\n getField1587Bytes();",
"com.google.protobuf.ByteString\n getField1066Bytes();",
"com.google.protobuf.ByteString\n getField1083Bytes();",
"com.google.protobuf.ByteString\n getToBytes();",
"byte[] toByteArray() throws IOException {\n return ProtobufUtil.prependPBMagic(convert().toByteArray());\n }",
"com.google.protobuf.ByteString\n getField1337Bytes();",
"com.google.protobuf.ByteString\n getField1888Bytes();",
"public byte[] getBytes() {\n return bytes;\n }",
"public byte[] getBytes() {\r\n return bytes;\r\n }"
] | [
"0.6954729",
"0.63824236",
"0.63777643",
"0.61994416",
"0.6177977",
"0.6037978",
"0.5960609",
"0.59565115",
"0.59565115",
"0.58693707",
"0.58541244",
"0.5793045",
"0.5768207",
"0.57477283",
"0.5710034",
"0.5708774",
"0.56996053",
"0.5694504",
"0.56922495",
"0.56862783",
"0.56765664",
"0.56753814",
"0.56753814",
"0.567485",
"0.56675255",
"0.56635046",
"0.56623584",
"0.5654552",
"0.56446314",
"0.56431645",
"0.5641162",
"0.5640781",
"0.5640781",
"0.5640781",
"0.5640781",
"0.56402975",
"0.5638888",
"0.56336516",
"0.56336516",
"0.56336516",
"0.56336516",
"0.5631237",
"0.56227785",
"0.5622024",
"0.56216824",
"0.5618712",
"0.5618712",
"0.5618712",
"0.5617762",
"0.56158566",
"0.561298",
"0.56119764",
"0.5611697",
"0.560344",
"0.5598959",
"0.55965924",
"0.55959284",
"0.55868113",
"0.5586021",
"0.5583604",
"0.5580273",
"0.55800945",
"0.557273",
"0.55693173",
"0.55600435",
"0.555287",
"0.55516016",
"0.5551347",
"0.5547549",
"0.5546952",
"0.5546603",
"0.55461025",
"0.5545696",
"0.55452836",
"0.55449736",
"0.5544109",
"0.55438906",
"0.5542051",
"0.5540105",
"0.5536992",
"0.55365485",
"0.55361825",
"0.55361825",
"0.55361825",
"0.55361825",
"0.55361825",
"0.55361825",
"0.55361825",
"0.55361825",
"0.55361825",
"0.5535267",
"0.55330104",
"0.55313385",
"0.55297214",
"0.55200124",
"0.55188775",
"0.5518553",
"0.5517618",
"0.5517401",
"0.5516325"
] | 0.7362343 | 0 |
Get a stdout friendly dump of this message; useful for logging purposes. | public String dump() {
StringBuffer retVal = new StringBuffer();
if(STRINGS.size() > 0) {
Enumeration enumer = STRINGS.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectStringItem item = (SimpleMessageObjectStringItem) enumer.nextElement();
retVal.append(item.getName());
retVal.append(".s = ");
retVal.append(item.getValue());
retVal.append("\n");
}
}
if(INTS.size() > 0) {
Enumeration enumer = INTS.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectIntItem item = (SimpleMessageObjectIntItem) enumer.nextElement();
retVal.append(item.getName());
retVal.append(".i = ");
retVal.append(item.getValue());
retVal.append("\n");
}
}
if(LONGS.size() > 0) {
Enumeration enumer = LONGS.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();
retVal.append(item.getName());
retVal.append(".l = ");
retVal.append(item.getValue());
retVal.append("\n");
}
}
if(DOUBLES.size() > 0) {
Enumeration enumer = DOUBLES.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();
retVal.append(item.getName());
retVal.append(".d = ");
retVal.append(item.getValue());
retVal.append("\n");
}
}
if(FLOATS.size() > 0) {
Enumeration enumer = FLOATS.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectFloatItem item = (SimpleMessageObjectFloatItem) enumer.nextElement();
retVal.append(item.getName());
retVal.append(".f = ");
retVal.append(item.getValue());
retVal.append("\n");
}
}
if(CHARS.size() > 0) {
Enumeration enumer = CHARS.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectCharItem item = (SimpleMessageObjectCharItem) enumer.nextElement();
retVal.append(item.getName());
retVal.append(".c = ");
retVal.append(item.getValue());
retVal.append("\n");
}
}
if(BYTES.size() > 0) {
Enumeration enumer = BYTES.elements();
while(enumer.hasMoreElements()) {
SimpleMessageObjectByteArrayItem item = (SimpleMessageObjectByteArrayItem) enumer.nextElement();
retVal.append(item.getName());
retVal.append(".b[] =\n");
byte[] buffer = item.getValue();
retVal.append(DataConversions.byteArrayToHexDump(buffer));
}
}
return retVal.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMessage() {\n String message = super.getMessage();\n\n if (message == null) {\n message = \"\";\n }\n\n if (buffer != null) {\n return message + ((message.length() > 0) ? \" \" : \"\")\n + \"(Hexdump: \" + ByteBuffers.getHexdump(buffer) + ')';\n } else {\n return message;\n }\n }",
"public String debugDump() {\n stringRepresentation = \"\";\n sprint(\"SIPMessage:\");\n sprint(\"{\");\n try {\n \n Field[] fields = this.getClass().getDeclaredFields();\n for (int i = 0; i < fields.length; i++) {\n Field f = fields [i];\n Class fieldType = f.getType();\n String fieldName = f.getName();\n if (f.get(this) != null &&\n Class.forName(SIPHEADERS_PACKAGE + \".SIPHeader\").\n isAssignableFrom(fieldType) &&\n fieldName.compareTo(\"headers\") != 0 ) {\n sprint(fieldName + \"=\");\n sprint(((SIPHeader)f.get(this)).debugDump());\n }\n }\n } catch ( Exception ex ) {\n InternalErrorHandler.handleException(ex);\n }\n \n \n sprint(\"List of headers : \");\n sprint(headers.toString());\n sprint(\"messageContent = \");\n sprint(\"{\");\n sprint(messageContent);\n sprint(\"}\");\n if (this.getContent() != null) {\n sprint(this.getContent().toString());\n }\n sprint(\"}\");\n return stringRepresentation;\n }",
"@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }",
"public String toString() {\n return message;\n }",
"public String toDebugString() {\n StringBuffer str = new StringBuffer(mySelf()+\"\\n\");\n return str.toString();\n }",
"public String printMessage() {\r\n\t\tSystem.out.println(message);\r\n\t\treturn message;\r\n\t}",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public String toString() {\n\t\treturn message;\n\t}",
"public String printMsg() {\n System.out.println(MESSAGE);\n return MESSAGE;\n }",
"public String getDumpString() {\n return \"[clazz = \" + clazz + \" , name = \" + name + \" , elementType = \" + elementType + \" , primitivePointerType = \" + primitivePointerType + \"]\";\n }",
"public String toString()\r\n\t{\r\n\t\treturn message;\r\n\t}",
"public void dump()\n {\n System.out.println(toString());\n }",
"public String toString() {\n if (getMessage() != null) {\n return \"message(\" + getMessage().toString() + \")\";\n } else {\n return \"message(null)\";\n }\n }",
"public String toDebugString() {\n StringBuffer str = new StringBuffer(mySelf()+\"\\n\");\n return super.toDebugString()+str.toString();\n }",
"public String toString() {\n String s = \"Message <OctopusCollectedMsg> \\n\";\n try {\n s += \" [moteId=0x\"+Long.toHexString(get_moteId())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [count=0x\"+Long.toHexString(get_count())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [reading=0x\"+Long.toHexString(get_reading())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [quality=0x\"+Long.toHexString(get_quality())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [parentId=0x\"+Long.toHexString(get_parentId())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [reply=0x\"+Long.toHexString(get_reply())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }",
"public String toString() {\n\t\treturn getMessage();\n\t}",
"public final String toString() {\r\n final String result = String.format(\r\n \"%s(%d,%d,%d): %s\", this.source, this.line, this.start, this.end, this.message\r\n );\r\n\r\n return result.replaceAll(\"<unknown>\", \"\");\r\n }",
"public String toDebugString();",
"public String f() {\n StringWriter stringWriter = new StringWriter();\n dump(\"\", null, new PrintWriter(stringWriter), null);\n return stringWriter.toString();\n }",
"public String toString()\n\t{\n\treturn msg + \"\\t\" + \"Priority Level: \" + level + \"\\t\" + priority;\n\t}",
"private String prettyMessage() {\n Map<String, Object> map = new LinkedHashMap<>(4);\n map.put(\"type\", getType());\n map.put(\"message\", this.message);\n map.put(\"code\", getCode());\n // TODO(\"need to optimize\")\n map.put(\"data\", getData().toString());\n return JsonUtils.getGson().toJson(map);\n }",
"@Override\r\n public String dumpOf ()\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n\r\n if (evaluation != null) {\r\n sb.append(String.format(\" evaluation=%s%n\", evaluation));\r\n }\r\n\r\n Shape physical = (getShape() != null) ? getShape().getPhysicalShape() : null;\r\n if (physical != null) {\r\n sb.append(String.format(\" physical=%s%n\", physical));\r\n }\r\n\r\n if (forbiddenShapes != null) {\r\n sb.append(String.format(\" forbiddenShapes=%s%n\", forbiddenShapes));\r\n }\r\n\r\n if (timeRational != null) {\r\n sb.append(String.format(\" rational=%s%n\", timeRational));\r\n }\r\n\r\n return sb.toString();\r\n }",
"public final String toString() {\n\t\tStringWriter write = new StringWriter();\n\t\tString out = null;\n\t\ttry {\n\t\t\toutput(write);\n\t\t\twrite.flush();\n\t\t\tout = write.toString();\n\t\t\twrite.close();\n\t\t} catch (UnsupportedEncodingException use) {\n\t\t\tuse.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn (out);\n\t}",
"public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}",
"@Override\n\tpublic String toString(){\n\t\treturn this.message;\n\t}",
"@Override\n\tpublic String Dump() {\n\t\treturn null;\n\t}",
"@Override\n public String toString() {\n byte[] buffer = toBuffer();\n return (buffer == null) ? null : new String(buffer, StandardCharsets.UTF_8);\n }",
"@Override\n public String toString() {\n return message;\n }",
"public String toString() {\n String s = \"Message <ReportAckMsg> \\n\";\n try {\n s += \" [dest=0x\"+Long.toHexString(get_dest())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }",
"public String print() {\r\n System.out.println(\"TEST_MESSAGE: \" + message);\r\n return this.message;\r\n }",
"public java.lang.String toDebugString () { throw new RuntimeException(); }",
"public String toString() {\n\t\treturn String.format(\"Id: %s\\nContent: %s\\nInsertion Time: %s\\nExpiration Time: %s\\nDequeue Count: %s\\nPop Receipt: %s\\nNext Visible Time: %s\\n\",\n\t\t\t\tm_MessageId,\n\t\t\t\tthis.getAsString(),\n\t\t\t\tm_InsertionTime,\n\t\t\t\tm_ExpirationTime,\n\t\t\t\tm_DequeueCount,\n\t\t\t\tm_PopReceipt,\n\t\t\t\tm_NextVisibleTime);\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getMessageId() != null)\n sb.append(\"MessageId: \").append(getMessageId()).append(\",\");\n if (getFromEmailAddress() != null)\n sb.append(\"FromEmailAddress: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getSubject() != null)\n sb.append(\"Subject: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getEmailTags() != null)\n sb.append(\"EmailTags: \").append(getEmailTags()).append(\",\");\n if (getInsights() != null)\n sb.append(\"Insights: \").append(getInsights());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String print() {\n return print(new StringBuffer()).toString();\n }",
"public String getDump()\n {\n String dump = \"Video status:\\n\";\n\n dump += \"Read mode: \" + videocard.graphicsController.readMode + \"\\n\";\n dump += \"Write mode: \" + videocard.graphicsController.writeMode + \"\\n\";\n \n // dump += \"Graphics mode: \" + ...\n // dump += \"Text mode: \" + ...\n \n return dump;\n }",
"public static String dump(Object object) {\n return dump(object, null, 0);\n }",
"@Override\n public String dump(ConversationData conversationData) {\n return \"\";\n }",
"public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }",
"public void dump();",
"public String toMessage() {\n String mem = \"Mem: \"+memoryLoad+\"%\";\n String cpu = \" CPU: \"+cpuLoad+\"%\";\n String bat = \" Bat: \"+batteryLevel+\"%\";\n String threads = \"Threads: \"+numberOfThreads;\n String nbCM = \"BCs: \"+numberOfBCs;\n String nbConn = \"Connectors: \"+numberOfConnectors;\n String emiss = \"Sent PF:appli \"+networkPFOutputTraffic+\":\"+networkApplicationInputTraffic+\" KB/s\";\n String rec = \"Rcvd PF:appli \"+networkPFInputTraffic+\":\"+networkApplicationInputTraffic+\" KB/s\";\n return mem+\"|\"+cpu+\"|\"+threads+\"|\"+bat+\"|\"+nbCM+\"|\"+nbConn+\"|\"+emiss+\"|\"+rec; // recuperation de l'etat de l'hote\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn new String(bytes);\n\t}",
"public String dump() {\n String result = \"\";\n Iterator stackIt = framePointers.iterator();\n int frameEnd;\n int old;\n int pos = 0;\n frameEnd = (int)stackIt.next();\n if(stackIt.hasNext()) {\n frameEnd = (int)stackIt.next();\n }\n else {\n frameEnd = -1;\n }\n while(pos < runStack.size()) {\n result += \"[\";\n if(frameEnd == -1) {\n while(pos < runStack.size()-1) {\n result += runStack.get(pos) + \",\";\n pos++;\n }\n result += runStack.get(pos)+\"] \";\n pos++;\n }\n else {\n while(pos < frameEnd-1) {\n result += runStack.get(pos) + \",\";\n pos++;\n }\n if(pos < frameEnd){\n result += runStack.get(pos);\n pos++;\n }\n result += \"]\";\n }\n if(stackIt.hasNext()) {\n frameEnd = (int)stackIt.next();\n }\n else {\n frameEnd = -1;\n }\n }\n return result;\n }",
"public String toTerseString()\n {\n return TextUtils.join(\" \", new String[] {\n this.file.getPath(),\n String.valueOf(this.size),\n String.valueOf(this.blockCount),\n Integer.toHexString(this.mode.getValue()),\n String.valueOf(this.userId),\n String.valueOf(this.groupId),\n Long.toHexString(this.deviceId),\n String.valueOf(this.inode),\n String.valueOf(this.hardLinkCount),\n Long.toHexString(this.deviceIdSpecial >> 8),\n Long.toHexString(this.deviceIdSpecial & 0xff),\n String.valueOf(this.lastAccessed.getTime() / 1000),\n String.valueOf(this.lastModified.getTime() / 1000),\n String.valueOf(this.lastChanged.getTime() / 1000),\n String.valueOf(this.blockSize)\n });\n }",
"public String getMessage() {\n return message == null ? new StringBuilder().append(\"??\").append(key).append(\"??\").toString() : message;\n }",
"@Override\n public String toString() {\n try {\n return getLoggableData();\n } catch (Exception e) {\n return super.toString();\n }\n }",
"public String getOutput() {\n myLock.lock();\n try {\n return myOutput.toString();\n }\n finally {\n myLock.unlock();\n }\n }",
"public String getMessage() {\r\n\treturn messageSB.toString();\r\n }",
"public void dumpTree(String msg) {\n\t\tSystem.out.println(msg);\n\t\tSystem.out.println(((org.eclipse.etrice.runtime.java.messaging.RTObject)getRoot()).toStringRecursive());\n\t}",
"public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Attachments: \").append(getAttachments() == null ? \"null\" : getAttachments().toString()).append(\", \");\n sb.append(\"To: \").append(getTo() == null ? \"null\" : getTo()).append(\", \");\n sb.append(\"From: \").append(getFrom()).append(\", \");\n sb.append(\"ReplyTo: \").append(getReplyTo()).append(\", \");\n sb.append(\"Bcc: \").append(getBcc() == null ? \"null\" : getBcc()).append(\", \");\n sb.append(\"Cc: \").append(getCc() == null ? \"null\" : getCc()).append(\", \");\n sb.append(\"Priority: \").append(getPriority()).append(\", \");\n sb.append(\"Subject: \").append(getSubject()).append(\", \");\n sb.append(\"Message: \").append(getMessage()).append(\", \");\n sb.append(\"Html: \").append(isHtml());\n return sb.toString();\n }",
"private String getMessageSummary() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(MAIL_FROM).append(\":\").append(props.getProperty(MAIL_FROM, \"\"));\n\n\t\tif (props.containsKey(MAIL_REPLY_TO)) {\n\t\t\tsb.append(\",\").append(MAIL_REPLY_TO).append(\":\").append(props.getProperty(MAIL_REPLY_TO));\n\t\t}\n\n\t\tsb.append(\",\").append(MAIL_TO).append(\":\").append(props.getProperty(MAIL_TO));\n\n\t\tif (props.containsKey(MAIL_CC)) {\n\t\t\tsb.append(\",\").append(MAIL_CC).append(\":\").append(props.getProperty(MAIL_CC));\n\t\t}\n\n\t\tif (props.containsKey(MAIL_CC)) {\n\t\t\tsb.append(\",\").append(MAIL_BCC).append(\":\").append(props.getProperty(MAIL_BCC));\n\t\t}\n\n\t\tsb.append(\",\").append(MAIL_SUBJECT).append(\":\").append(props.getProperty(MAIL_SUBJECT, \"\"));\n\n\t\treturn sb.toString();\n\t}",
"public String toString() \r\n {\r\n \treturn new String(buf, 0, count);\r\n }",
"final public String toString() {\n StringBuffer buf = new StringBuffer() ;\n buf.append(\"{SysUpTime = \" + SnmpTimeticks.printTimeTicks(sysUpTime)) ;\n buf.append(\"} {Timestamp = \" + getDate().toString() + \"}\") ;\n return buf.toString() ;\n }",
"@Override\n public String toString() {\n return getUserName() + \" on \" + getDate() + \"\\n\" + message + \"\\nType: \" + getType();\n }",
"@Override\n public String toString() {\n return new StringBuilder()\n .append(getHeader().toString())\n .append(winLineSeparator)\n .append(getBody().toString())\n .append(unixLineSeparator)\n .toString();\n }",
"private StringBuilder createThreadDump() {\n StringBuilder string = new StringBuilder();\n string.append(\"------------------------------\\n\");\n //\n string.append(\"Entire Thread Dump:\\n\");\n ThreadInfo[] threads = ManagementFactory.getThreadMXBean().dumpAllThreads(true, true);\n\n for (ThreadInfo thread : threads) {\n writeThreadToStringBuilder(thread, string);\n }\n\n string.append(\"------------------------------\\n\");\n\n return string;\n }",
"public void dumpCommand() {\r\n System.out.println(_board);\r\n }",
"@Override\n public String toString()\n {\n return String.format(\"%s^%s\", fCode, fMessage);\n }",
"public synchronized String print() {\r\n return super.print();\r\n }",
"public String msg() {\n return null;\n }",
"public String toString(){\n\t\tString msg = \"\";\n\t\tmsg += messageInfo[0] + \" \" + messageInfo[1] + \" \" + messageInfo[2] + \"\\n\";\n\t\tif (!headerLines.isEmpty()){\n\t\t\tfor (int i = 0; i < headerLines.size(); i++){\n\t\t\t\tmsg += headerLines.get(i).get(0) + \" \" + headerLines.get(i).get(1) + \"\\n\";\n\t\t\t}\n\t\t}\n\t\tmsg += \"\\n\";\n\t\tif (entity.length > 0){\n\t\t\t\tmsg += entity;\n\t\t}\n\t\treturn msg;\n\t}",
"public String toString () {\n\t\tString retour = \"\";\n\t\t\n\t\tfor (Message m : messages) {\n\t\t\tretour += m + \"\\n\";\n\t\t}\n\t\t\n\t\treturn retour;\n\t}",
"public String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"\\nMessageDefinition (typeName: \");\n sb.append(typeName);\n sb.append(\", className: \");\n sb.append(className);\n sb.append(\")\");\n return sb.toString();\n }",
"public String toString() {\n String s = \"Message <Int8Msg> \\n\";\n try {\n s += \" [dataType=0x\"+Long.toHexString(get_dataType())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [senderNodeID=0x\"+Long.toHexString(get_senderNodeID())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [receiverNodeID=0x\"+Long.toHexString(get_receiverNodeID())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [sampleCnt=0x\"+Long.toHexString(get_sampleCnt())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [min=0x\"+Long.toHexString(get_min())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [max=0x\"+Long.toHexString(get_max())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [sum_a=0x\"+Long.toHexString(get_sum_a())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [sum_e=0x\"+Long.toHexString(get_sum_e())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }",
"public String toString() {\n/* 235 */ return \"Status = \" + this.status + \" HandshakeStatus = \" + this.handshakeStatus + \"\\nbytesConsumed = \" + this.bytesConsumed + \" bytesProduced = \" + this.bytesProduced;\n/* */ }",
"java.lang.String getLogMessage();",
"public String print() {\n\t\tString offID = getID();\n\t\tString offName = getName();\n\t\tint offAge = getAge();\n\t\tString offState = getState();\n\t\tString data = String.format(\"ID: %-15s \\t Name: %-35s \\t Age: %-15s \\t State: %s\", offID, offName, offAge, offState);\n\t\treturn data;\n\t}",
"public String toString()\n\t{\n\t\treturn (new String(wLocalBuffer)) ;\n\t}",
"public String toString() { return stringify(this, true); }",
"@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }",
"public static String logMessageDetaint(Object o) {\n return o.toString().replaceAll(\"[\\n|\\r|\\t]\", \"_\");\n }",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"public String getMessage(){\n return(message);\n }",
"public String toString() {\n String s = \"Message <RoutePacket> \\n\";\n try {\n s += \" [addr=0x\"+Long.toHexString(get_addr())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [amtype=0x\"+Long.toHexString(get_amtype())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [group=0x\"+Long.toHexString(get_group())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [length=0x\"+Long.toHexString(get_length())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [parent=0x\"+Long.toHexString(get_parent())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [hop=0x\"+Long.toHexString(get_hop())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [cost=0x\"+Long.toHexString(get_cost())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [estLength=0x\"+Long.toHexString(get_estLength())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [entries.id=\";\n for (int i = 0; i < 11; i++) {\n s += \"0x\"+Long.toHexString(getElement_entries_id(i) & 0xff)+\" \";\n }\n s += \"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [entries.receiveEst=\";\n for (int i = 0; i < 11; i++) {\n s += \"0x\"+Long.toHexString(getElement_entries_receiveEst(i) & 0xff)+\" \";\n }\n s += \"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [source=0x\"+Long.toHexString(get_source())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [seqnum=0x\"+Long.toHexString(get_seqnum())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [crc=0x\"+Long.toHexString(get_crc())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }",
"public String message() {\n return _msg;\n }",
"public String toString() {\n if (this.data.isEmpty()) {\n return super.toString();\n }\n return BytesUtil.bytes2HexString(toBinary());\n }",
"public String toString() {\n StringBuilder sb = new StringBuilder();\n\n sb.append(super.toString());\n sb.append(this.locals.toString());\n sb.append(\"At: \" + this.stage + \"stage\\n\");\n\n return sb.toString();\n }",
"public static String getStdOut(Process p) throws IOException\n {\n return IOUtils.toString(p.getInputStream());\n }",
"String getRawMessage();",
"public String toString() {\n StringBuffer buffer = new StringBuffer(getClass().getName());\n\n buffer.append(\": \");\t\t\t\t//NOI18N\n buffer.append(\" name: \");\t\t\t//NOI18N\n buffer.append(getName());\n buffer.append(\", logging level: \");\t//NOI18N\n buffer.append(toString(getLevel()));\n\n return buffer.toString();\n }",
"public PrintStream getPrintStream() {\n\t\treturn _out;\n\t}",
"public String getScreenMessage();",
"public String message() {\n final StringSubstitutor sub = new StringSubstitutor(this.vars);\n return sub.replace(this.message);\n }",
"public String toString() {\n\t\treturn toString(this);\n\t}",
"@Override\n public String toString()\n {\n \tStringBuilder sb = new StringBuilder();\n\n \tsb.append( mSDF.format( new Date() ) );\n\n \tsb.append( \" MPT1327 \" );\n \t\n \tsb.append( getParity() );\n\n \tsb.append( \" \" );\n \t\n \tsb.append( getMessage() );\n \t\n \tsb.append( getFiller( sb, 100 ) );\n \t\n \tsb.append( \" [\" + mMessage.toString() + \"]\" );\n \t\n \treturn sb.toString();\n }",
"public void dump()\r\n {\r\n dump(null);\r\n }",
"public String toString()\n {\n return Native.getNumeralString(getContext().nCtx(), getNativeObject());\n }",
"@Override\n public String toString() {\n\treturn ByteUtils.toHexString(toByteArray(), true);\n }",
"static public PrintStream getPrintStream() {\n \t return out;\n }",
"void dump(PrintStream x) {\n String str = buffer.toString();\n x.println(\"<beginning of \" + name + \" buffer>\");\n x.println(str);\n x.println(\"<end of buffer>\");\n }",
"public String toString() {\r\n\t\tStringBuilder dados = new StringBuilder();\r\n\t\tdados.append(\"!\");\r\n\t\tdados.append(this.getAlerta());\r\n\t\tdados.append(\"! \");\r\n\t\tdados.append(super.toString());\r\n\t\treturn dados.toString();\r\n\t}",
"public String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append('{');\n sb.append(\" Volume=\" + volume());\n sb.append(\" Issue=\" + issue());\n sb.append(\" Pub Date=\" + pubDate());\n sb.append('}');\n return sb.toString();\n }",
"public String toString() {\n/* 168 */ StringBuffer stringBuffer = new StringBuffer(\"Address Type: \" + this.addrType + \"\\n\");\n/* */ \n/* 170 */ stringBuffer.append(\"AddressContents: \");\n/* 171 */ for (byte b = 0; b < this.buf.length && b < 32; b++) {\n/* 172 */ stringBuffer.append(Integer.toHexString(this.buf[b]) + \" \");\n/* */ }\n/* 174 */ if (this.buf.length >= 32)\n/* 175 */ stringBuffer.append(\" ...\\n\"); \n/* 176 */ return stringBuffer.toString();\n/* */ }"
] | [
"0.6770239",
"0.67139745",
"0.65574837",
"0.64124036",
"0.6412325",
"0.6405722",
"0.6369212",
"0.6369212",
"0.6369212",
"0.6369212",
"0.6369212",
"0.6369212",
"0.6369212",
"0.6369212",
"0.6369212",
"0.63599473",
"0.6325938",
"0.6315278",
"0.63138545",
"0.63026184",
"0.630096",
"0.6295001",
"0.62572384",
"0.6253285",
"0.62499523",
"0.62190217",
"0.6191974",
"0.61056596",
"0.607681",
"0.6064066",
"0.6057358",
"0.60550535",
"0.60287064",
"0.60243356",
"0.59906006",
"0.59890187",
"0.5951617",
"0.59214705",
"0.59109753",
"0.58945525",
"0.589394",
"0.58495677",
"0.5846865",
"0.58454984",
"0.5813404",
"0.57994413",
"0.5752475",
"0.574518",
"0.57377344",
"0.57361734",
"0.57325155",
"0.5712795",
"0.5676615",
"0.5666966",
"0.5657474",
"0.565627",
"0.564803",
"0.56423587",
"0.56104815",
"0.5602155",
"0.55948406",
"0.55944645",
"0.5593654",
"0.558682",
"0.5583152",
"0.55810714",
"0.55791074",
"0.5576498",
"0.5570452",
"0.5556166",
"0.555432",
"0.5553145",
"0.55485666",
"0.55235666",
"0.55229205",
"0.5521485",
"0.552047",
"0.5516241",
"0.5509358",
"0.5508719",
"0.54990983",
"0.5497951",
"0.5496874",
"0.5492103",
"0.54706925",
"0.54670286",
"0.5466096",
"0.54649043",
"0.5461464",
"0.54558706",
"0.5454326",
"0.5445073",
"0.5442298",
"0.5437815",
"0.5437143",
"0.5436412",
"0.5435998",
"0.54332024",
"0.54319346",
"0.5431637"
] | 0.5773056 | 46 |
Get a byte array representation of the packet to send over a network. Packets that are sent in this way can e reconstructed from the byte array by passing it as an argument to createMessageObject(). | public byte[] getNetworkPacket() {
/*
The packet layout will be:
byte(datatype)|int(length of name)|byte[](name)|int(length of value)|byte[](value)|...
*/
byte[] data = new byte[2];
int currentPosition = 0;
if(STRINGS.size() > 0) {
Enumeration enumer = STRINGS.elements();
while(enumer.hasMoreElements()) {
if(currentPosition == data.length) {
data = growArray(data, 1);
}
// Add the type
data[currentPosition] = 0x73;
currentPosition++;
SimpleMessageObjectStringItem item = (SimpleMessageObjectStringItem) enumer.nextElement();
int spaceLeft = data.length - currentPosition;
byte[] name = item.getName().getBytes();
if(spaceLeft < name.length + 4) {
data = growArray(data, name.length - spaceLeft + 4);
}
//Add the length of the name
byte[] nameLength = DataConversions.getBytes(name.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = nameLength[i];
currentPosition++;
}
//Add the name
for(int i = 0 ; i < name.length ; i++) {
data[currentPosition] = name[i];
currentPosition++;
}
spaceLeft = data.length - currentPosition;
byte[] value = item.getValue().getBytes();
if(spaceLeft < value.length + 4) {
data = growArray(data, value.length - spaceLeft + 4);
}
//Add the length of the value
byte[] valueLength = DataConversions.getBytes(value.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = valueLength[i];
currentPosition++;
}
//Add the value
for(int i = 0 ; i < value.length ; i++) {
data[currentPosition] = value[i];
currentPosition++;
}
}
}
if(INTS.size() > 0) {
Enumeration enumer = INTS.elements();
while(enumer.hasMoreElements()) {
if(currentPosition == data.length) {
data = growArray(data, 1);
}
// Add the type
data[currentPosition] = 0x69;
currentPosition++;
SimpleMessageObjectIntItem item = (SimpleMessageObjectIntItem) enumer.nextElement();
int spaceLeft = data.length - currentPosition;
byte[] name = item.getName().getBytes();
if(spaceLeft < name.length + 4) {
data = growArray(data, name.length - spaceLeft + 4);
}
//Add the length of the name
byte[] nameLength = DataConversions.getBytes(name.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = nameLength[i];
currentPosition++;
}
//Add the name
for(int i = 0 ; i < name.length ; i++) {
data[currentPosition] = name[i];
currentPosition++;
}
spaceLeft = data.length - currentPosition;
byte[] value = DataConversions.getBytes(item.getValue());
if(spaceLeft < value.length + 4) {
data = growArray(data, value.length - spaceLeft + 4);
}
//Add the length of the value
byte[] valueLength = DataConversions.getBytes(value.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = valueLength[i];
currentPosition++;
}
//Add the value
for(int i = 0 ; i < value.length ; i++) {
data[currentPosition] = value[i];
currentPosition++;
}
}
}
if(LONGS.size() > 0) {
Enumeration enumer = LONGS.elements();
while(enumer.hasMoreElements()) {
if(currentPosition == data.length) {
data = growArray(data, 1);
}
// Add the type
data[currentPosition] = 0x6C;
currentPosition++;
SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();
int spaceLeft = data.length - currentPosition;
byte[] name = item.getName().getBytes();
if(spaceLeft < name.length + 4) {
data = growArray(data, name.length - spaceLeft + 4);
}
//Add the length of the name
byte[] nameLength = DataConversions.getBytes(name.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = nameLength[i];
currentPosition++;
}
//Add the name
for(int i = 0 ; i < name.length ; i++) {
data[currentPosition] = name[i];
currentPosition++;
}
spaceLeft = data.length - currentPosition;
byte[] value = DataConversions.getBytes(item.getValue());
if(spaceLeft < value.length + 4) {
data = growArray(data, value.length - spaceLeft + 4);
}
//Add the length of the value
byte[] valueLength = DataConversions.getBytes(value.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = valueLength[i];
currentPosition++;
}
//Add the value
for(int i = 0 ; i < value.length ; i++) {
data[currentPosition] = value[i];
currentPosition++;
}
}
}
if(DOUBLES.size() > 0) {
Enumeration enumer = DOUBLES.elements();
while(enumer.hasMoreElements()) {
if(currentPosition == data.length) {
data = growArray(data, 1);
}
// Add the type
data[currentPosition] = 0x64;
currentPosition++;
SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();
int spaceLeft = data.length - currentPosition;
byte[] name = item.getName().getBytes();
if(spaceLeft < name.length + 4) {
data = growArray(data, name.length - spaceLeft + 4);
}
//Add the length of the name
byte[] nameLength = DataConversions.getBytes(name.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = nameLength[i];
currentPosition++;
}
//Add the name
for(int i = 0 ; i < name.length ; i++) {
data[currentPosition] = name[i];
currentPosition++;
}
spaceLeft = data.length - currentPosition;
byte[] value = DataConversions.getBytes(item.getValue());
if(spaceLeft < value.length + 4) {
data = growArray(data, value.length - spaceLeft + 4);
}
//Add the length of the value
byte[] valueLength = DataConversions.getBytes(value.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = valueLength[i];
currentPosition++;
}
//Add the value
for(int i = 0 ; i < value.length ; i++) {
data[currentPosition] = value[i];
currentPosition++;
}
}
}
if(FLOATS.size() > 0) {
Enumeration enumer = FLOATS.elements();
while(enumer.hasMoreElements()) {
if(currentPosition == data.length) {
data = growArray(data, 1);
}
// Add the type
data[currentPosition] = 0x66;
currentPosition++;
SimpleMessageObjectFloatItem item = (SimpleMessageObjectFloatItem) enumer.nextElement();
int spaceLeft = data.length - currentPosition;
byte[] name = item.getName().getBytes();
if(spaceLeft < name.length + 4) {
data = growArray(data, name.length - spaceLeft + 4);
}
//Add the length of the name
byte[] nameLength = DataConversions.getBytes(name.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = nameLength[i];
currentPosition++;
}
//Add the name
for(int i = 0 ; i < name.length ; i++) {
data[currentPosition] = name[i];
currentPosition++;
}
spaceLeft = data.length - currentPosition;
byte[] value = DataConversions.getBytes(item.getValue());
if(spaceLeft < value.length + 4) {
data = growArray(data, value.length - spaceLeft + 4);
}
//Add the length of the value
byte[] valueLength = DataConversions.getBytes(value.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = valueLength[i];
currentPosition++;
}
//Add the value
for(int i = 0 ; i < value.length ; i++) {
data[currentPosition] = value[i];
currentPosition++;
}
}
}
if(CHARS.size() > 0) {
Enumeration enumer = CHARS.elements();
while(enumer.hasMoreElements()) {
if(currentPosition == data.length) {
data = growArray(data, 1);
}
// Add the type
data[currentPosition] = 0x63;
currentPosition++;
SimpleMessageObjectCharItem item = (SimpleMessageObjectCharItem) enumer.nextElement();
int spaceLeft = data.length - currentPosition;
byte[] name = item.getName().getBytes();
if(spaceLeft < name.length + 4) {
data = growArray(data, name.length - spaceLeft + 4);
}
//Add the length of the name
byte[] nameLength = DataConversions.getBytes(name.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = nameLength[i];
currentPosition++;
}
//Add the name
for(int i = 0 ; i < name.length ; i++) {
data[currentPosition] = name[i];
currentPosition++;
}
spaceLeft = data.length - currentPosition;
byte[] value = DataConversions.getBytes(item.getValue());
if(spaceLeft < value.length + 4) {
data = growArray(data, value.length - spaceLeft + 4);
}
//Add the length of the value
byte[] valueLength = DataConversions.getBytes(value.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = valueLength[i];
currentPosition++;
}
//Add the value
for(int i = 0 ; i < value.length ; i++) {
data[currentPosition] = value[i];
currentPosition++;
}
}
}
if(BYTES.size() > 0) {
Enumeration enumer = BYTES.elements();
while(enumer.hasMoreElements()) {
if(currentPosition == data.length) {
data = growArray(data, 1);
}
// Add the type
data[currentPosition] = 0x62;
currentPosition++;
SimpleMessageObjectByteArrayItem item = (SimpleMessageObjectByteArrayItem) enumer.nextElement();
int spaceLeft = data.length - currentPosition;
byte[] name = item.getName().getBytes();
if(spaceLeft < name.length + 4) {
data = growArray(data, name.length - spaceLeft + 4);
}
//Add the length of the name
byte[] nameLength = DataConversions.getBytes(name.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = nameLength[i];
currentPosition++;
}
//Add the name
for(int i = 0 ; i < name.length ; i++) {
data[currentPosition] = name[i];
currentPosition++;
}
spaceLeft = data.length - currentPosition;
byte[] value = item.getValue();
if(spaceLeft < value.length + 4) {
data = growArray(data, value.length - spaceLeft + 4);
}
//Add the length of the value
byte[] valueLength = DataConversions.getBytes(value.length);
for(int i = 0 ; i < 4 ; i++) {
data[currentPosition] = valueLength[i];
currentPosition++;
}
//Add the value
for(int i = 0 ; i < value.length ; i++) {
data[currentPosition] = value[i];
currentPosition++;
}
}
}
return data;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte[] toBytes()\n {\n String rep = sessionid + \"_\" + version + \"_\" + message;\n return rep.getBytes();\n }",
"public byte[] toBytes() {\n return toProtobuf().toByteArray();\n }",
"public byte[] getBytes(){\n\t\treturn message;\n\t}",
"@Override\r\n\tpublic byte[] getByte() throws Exception {\n\t\tbyte[] marshalledBytes = null;\r\n\t\tByteArrayOutputStream baOutputStream = new ByteArrayOutputStream();\r\n\t\tDataOutputStream dout = new DataOutputStream(new BufferedOutputStream(\r\n\t\t\t\tbaOutputStream));\r\n\t\tdout.write(getType());\r\n\t\tInetAddress localAddress = node.serverSocketForSending.getInetAddress()\r\n\t\t\t\t.getLocalHost();\r\n\t\tint localPortNumber = node.serverSocketForSending.getLocalPort();\r\n\t\tbyte[] byteLocalIP = localAddress.getAddress();\r\n\t\tbyte addressLength = (byte) byteLocalIP.length;\r\n\t\tdout.write(addressLength);\r\n\t\tdout.write(byteLocalIP);\r\n\t\tdout.writeInt(localPortNumber);\r\n\t\tdout.writeInt(node.nodeID);\r\n\t\tdout.flush();\r\n\t\tmarshalledBytes = baOutputStream.toByteArray();\r\n\t\tbaOutputStream.close();\r\n\t\tdout.close();\r\n\r\n\t\treturn marshalledBytes;\r\n\t}",
"public abstract byte[] toByteArray();",
"public abstract byte[] toByteArray();",
"public byte[] toBytes() {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n writeTo(os);\n } catch (IOException e) {e.printStackTrace();}\n return os.toByteArray();\n }",
"public byte[] marshall();",
"public byte[] serialize();",
"@Override\n public byte[] getBytes() throws IOException {\n byte[] marshalledBytes = null;\n\n ByteArrayOutputStream baOutStream = new ByteArrayOutputStream();\n DataOutputStream dOut = new DataOutputStream(baOutStream);\n\n dOut.writeInt(type);\n\n dOut.writeInt(ID);\n\n dOut.writeInt(totalPacketsSent);\n\n dOut.writeInt(totalPacketsRelayed);\n\n dOut.writeLong(sendSummation);\n\n dOut.writeInt(totalPacketsRcvd);\n\n dOut.writeLong(rcvSummation);\n\n dOut.flush();\n marshalledBytes = baOutStream.toByteArray();\n\n baOutStream.close();\n dOut.close();\n\n return marshalledBytes;\n }",
"public byte[] getBytes() {\r\n \treturn toString().getBytes();\r\n }",
"private static byte[] serializeRawPacket(OutPacket packet)\n\t\t\tthrows IOException\n\t{\n\t\tByteArrayDataOutput packetOut = ByteStreams.newDataOutput();\n\t\tpacket.write(packetOut);\n\t\treturn packetOut.toByteArray();\n\t}",
"public byte[] toBytes() {\n this.setHashSize(hash.length());\n this.setRequestorHashSize(requestorHash.length());\n this.setTotalSize(2 + 4 + this.getHashSize()\n + this.getRequestorHashSize() + 4+ 4);\n\t\tbyte[] data = new byte[this.getTotalSize()];\n\t\tint index = 0;\n\t\tdata[index] = this.getProtocol();\n\t\tindex++;\n System.arraycopy(BitConverter.intToBytes(this.getTotalSize(), ByteOrder.BIG_ENDIAN),\n\t\t\t\t0, data, index, 4);\n\t\tindex+=4;\n\t\tSystem.arraycopy(BitConverter.intToBytes(hashSize, ByteOrder.BIG_ENDIAN),\n\t\t\t\t0, data, index, 4);\n\t\tindex+=4;\n\t\tSystem.arraycopy(hash.getBytes(), 0, data, index, hash.length());\n\t\tindex+=hash.length();\n\t\tSystem.arraycopy(BitConverter.intToBytes(requestorHashSize, ByteOrder.BIG_ENDIAN),\n\t\t\t\t0, data, index, 4);\n\t\tindex+=4;\n\t\tSystem.arraycopy(requestorHash.getBytes(), 0, data, index, requestorHash.length());\n\t\tindex+=requestorHash.length();\n\t\tdata[index] = this.getCommand();\n\t\tindex++;\n\t\t\n\t\treturn data;\n\t}",
"public byte[] toByteArray() {\n byte[] retour;\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n try {\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(new String(hostID));\n oos.writeObject(new Integer(hostAddresses.size()));\n for (int i=0; i<hostAddresses.size(); i++) oos.writeObject(new String(hostAddresses.elementAt(i).getNormalizedAddress()));\n oos.writeObject(new Integer(cpuLoad));\n oos.writeObject(new Integer(memoryLoad));\n oos.writeObject(new Integer(batteryLevel));\n oos.writeObject(new Integer(numberOfThreads));\n oos.writeObject(new Integer(numberOfBCs));\n oos.writeObject(new Integer(numberOfConnectors));\n oos.writeObject(new Integer(numberOfConnectorsNetworkInputs));\n oos.writeObject(new Integer(numberOfConnectorsNetworkOutputs));\n oos.writeObject(new Integer(networkPFInputTraffic));\n oos.writeObject(new Integer(networkPFOutputTraffic));\n oos.writeObject(new Integer(networkApplicationInputTraffic));\n oos.writeObject(new Integer(networkApplicationOutputTraffic));\n retour = bos.toByteArray();\n }\n catch (IOException ioe) {\n System.err.println(\"Error converting a host status to byte array\");\n retour = null;\n }\n return retour;\n }",
"com.google.protobuf.ByteString\n getTheMessageBytes();",
"public abstract byte[] toBytes() throws Exception;",
"public byte [] readMessageAsByte() {\r\n byte [] data = new byte[256];\r\n int length;\r\n\r\n try {\r\n length = in.readInt();\r\n if (length > 0) {\r\n data = new byte[length];\r\n in.readFully(data, 0, data.length);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return data;\r\n }",
"com.google.protobuf.ByteString\n getMsgBytes();",
"public byte[] toByteArray() {\n/* 510 */ ByteBuffer buff = ByteBuffer.allocate(40).order(ByteOrder.LITTLE_ENDIAN);\n/* 511 */ writeTo(buff);\n/* 512 */ return buff.array();\n/* */ }",
"public Message toMessage(byte[] data) throws IOException, JMSException;",
"public byte[] toBytes () {\n return toTuple().toBytes();\n }",
"com.google.protobuf.ByteString\n getToBytes();",
"public byte[] toByteArray()\n\t{\n\t\tfinal ByteArrayOutputStream os = new ByteArrayOutputStream();\n\t\tos.write(length);\n\t\tos.write(connType);\n\t\tos.write(opt, 0, opt.length);\n\t\treturn os.toByteArray();\n\t}",
"protected abstract byte[] getCANMessage();",
"public byte[] getPayload();",
"byte[] toByteArray() throws IOException {\n return ProtobufUtil.prependPBMagic(convert().toByteArray());\n }",
"byte[] encode(IMessage message) throws IOException;",
"@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}",
"public ByteBuffer getBytesForMessage(StompFrame msg) throws CharacterCodingException {\n StringBuilder sb = new StringBuilder(msg.getWholeSTOMPMessage());\n sb.append(this._messageSeparator);\n ByteBuffer bb = this._encoder.encode(CharBuffer.wrap(sb));\n return bb;\n }",
"public abstract ByteBuffer getPacket();",
"public void sendBytes(byte[] msg);",
"@Override\n\tpublic byte[] toByteArray() throws OpException {\n\t\ttry\n\t\t{\n\t\t\treturn serialize();\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tOpException eop = new OpException(e.getMessage());\n\t\t\teop.setStackTrace(e.getStackTrace());\n\t\t\tthrow eop;\n\t\t}\n\t}",
"byte[] getBytes();",
"byte[] getBytes();",
"byte[] serialize(Serializable object);",
"public String fromPacketToString() {\r\n\t\tString message = Integer.toString(senderID) + PACKET_SEPARATOR + Integer.toString(packetID) + PACKET_SEPARATOR + type + PACKET_SEPARATOR;\r\n\t\tfor (String word:content) {\r\n\t\t\tmessage = message + word + PACKET_SEPARATOR;\r\n\t\t}\r\n\t\treturn message;\r\n\t}",
"com.google.protobuf.ByteString\n getEncodedBytes();",
"@Override\n public byte[] getPackageBytes() {\n int byteArrayLength = ArtnetPacket.ID.length + 2 + 1+1 + 1 + 1;\n byte[] bytes = new byte[byteArrayLength];\n\n //Art-Net package ID\n System.arraycopy(ArtnetPacket.ID, 0, bytes, 0, ArtnetPacket.ID.length);\n\n //op code\n byte[] opCode = ArtnetOpCodes.toByteArray(ArtnetOpCodes.OP_POLL);\n System.arraycopy(opCode, 0, bytes, ArtnetPacket.ID.length, 2);\n\n //protVer\n bytes[ArtnetPacket.ID.length + 2] = protVerHi;\n bytes[ArtnetPacket.ID.length + 2 + 1] = protVerLo;\n\n //talk to me\n bytes[ArtnetPacket.ID.length + 2 + 1 + 1] = this.talkToMe;\n\n //priority\n bytes[ArtnetPacket.ID.length + 2 + 1 + 1 + 1] = this.priority;\n\n return bytes;\n }",
"private static byte[] construct(Serializable object) {\n\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\ttry {\n\t // Wrap the ByteArrayOutputStream in an ObjectOutputStream\n\t ObjectOutputStream oos = new ObjectOutputStream(bos);\n\t // and write the objects to the stream\n\t oos.writeObject(object);\n\t oos.close();\n\t} catch (Exception e) {\n\t e.printStackTrace();\n\t throw new Error(\"Failed to write serializable data for \" + object);\n\t}\n\n\t// the bytes are now held in the ByteArrayOutputStream\n\t// so we get the bytes of the ByteArrayOutputStream\n\tbyte[] rawBytes = bos.toByteArray();\n\n\treturn rawBytes;\n\n }",
"public static byte[] serialize(Packet data) throws InvalidParameterException, UnsupportedEncodingException {\n byte[] emitter = data.getEmitter().getBytes(ENCODING);\n byte[] text = data.getText().getBytes(ENCODING);\n\n if (emitter.length > Byte.MAX_VALUE) {\n throw new InvalidParameterException(\"Emitter length exceeded\");\n }\n if (text.length > Short.MAX_VALUE) {\n throw new InvalidParameterException(\"Text length exceeded\");\n }\n\n int size = MIN_SIZE + emitter.length + text.length;\n\n ByteBuffer buffer = ByteBuffer.allocate(size)\n .putInt(size)\n .put(data.getType().code())\n .putShort(data.getId())\n .putLong(data.getTimestamp())\n .put((byte) emitter.length)\n .put(emitter)\n .putShort((short) text.length)\n .put(text);\n\n return buffer.array();\n }",
"private byte[] buildBytes() {\n byte[] message = new byte[4 + 2 + 2 + 1 + data.getLength()];\n System.arraycopy(id.getBytes(), 0, message, 0, 4);\n System.arraycopy(sq.getBytes(), 0, message, 4, 2);\n System.arraycopy(ack.getBytes(), 0, message, 6, 2);\n message[8] = flag.getBytes();\n System.arraycopy(data.getBytes(), 0, message, 9, data.getBytes().length);\n return message;\n }",
"public byte[] toByteArray() {\n byte[] array = new byte[count];\n System.arraycopy(buf, 0, array, 0, count);\n return array;\n }",
"public byte[] getPayload() throws TFTPPacketException;",
"public byte[] getData() throws ProtocolException {\n if (payload == null) {\n decodePacket();\n }\n return payload;\n }",
"public abstract byte[] getEncoded();",
"public byte[] getMQMessage() {\n\n String fullMsg = headerVersion + messageType + service + serverUser +\n serverPassword + serverAppl +\n cicsTrx +\n format( timeout, \"0000\" ) +\n format( retcode, \"00000\" ) +\n format( datalen, \"00000\" ) +\n \" \" +\n data;\n\n\n return( fullMsg.getBytes() );\n }",
"public byte[] getAsBytes() {\n return (byte[])data;\n }",
"public void sendMessageAsByte(byte [] message) {\r\n try {\r\n out.writeInt(message.length);\r\n out.write(message);\r\n out.flush();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public byte[] toBytes() {\n return PaddingUtil.pad(\n PADDING,\n ByteArrayListUtil.merge(\n contactPublicKeyBytes,\n haNonce,\n haCiphertext,\n additionalData\n )\n );\n }",
"@Override\n\tpublic byte[] encodeMsg() {\n\t\tIoBuffer buf = IoBuffer.allocate(2048).setAutoExpand(true);\n\t\t\n\t\tbuf.put(slaveId);\n\t\tbuf.put(code);\n\t\tbuf.putShort(offset);\n\t\tbuf.putShort(data);\n\t\tbuf.flip();\n\t\t\n \tbyte[] bytes = new byte[buf.remaining()];\n \tbuf.get(bytes);\n \t\n\t\treturn bytes;\n\t}",
"public byte[] getBytes() {\n return baos.toByteArray();\n }",
"com.google.protobuf.ByteString getMsg();",
"public com.google.protobuf.ByteString\n getToBytes() {\n Object ref = to_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n to_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public byte [] GetPayload(byte [] data) {\n // Construct payload as series of delimited stringsƒsƒs\n List<Byte> payload = new ArrayList<Byte>();\n for (int i =0; i != data.length; i++)\n payload.add(data[i]);\n return makeTransportPacket(payload);\n }",
"public byte[] toByteArray() {\n\t\treturn baos.toByteArray();\n\t}",
"com.google.protobuf.ByteString getPayload();",
"com.google.protobuf.ByteString getPayload();",
"public com.google.protobuf.ByteString\n getToBytes() {\n Object ref = to_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n to_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public byte[] fromMessage(Message message) throws IOException, JMSException;",
"public byte[] getByteArray(){\r\n\r\n byte[] b = new byte[0x54];\r\n\r\n System.arraycopy(PID_pointer, 0, b, 0, 4);\r\n System.arraycopy(MPID_pointer, 0, b, 4, 4);\r\n System.arraycopy(Null_pointer, 0, b, 8, 4);\r\n System.arraycopy(Portrait_pointer, 0, b, 12, 4);\r\n System.arraycopy(Class_pointer, 0, b, 16, 4);\r\n System.arraycopy(Affiliation_pointer, 0, b, 20, 4);\r\n System.arraycopy(Weaponlevel_pointer, 0, b, 24, 4);\r\n System.arraycopy(Skill1_pointer, 0, b, 28, 4);\r\n System.arraycopy(Skill2_pointer, 0, b, 32, 4);\r\n System.arraycopy(Skill3_pointer, 0, b, 36, 4);\r\n System.arraycopy(Animation1_pointer, 0, b, 40, 4);\r\n System.arraycopy(Animation2_pointer, 0, b, 44, 4);\r\n b[48] = unknownbyte1;\r\n b[49] = unknownbyte2;\r\n b[50] = unknownbyte3;\r\n b[51] = unknownbyte4;\r\n b[52] = unknownbyte5;\r\n b[53] = unknownbyte6;\r\n b[54] = level;\r\n b[55] = build;\r\n b[56] = weight;\r\n System.arraycopy(bases, 0, b, 57, 8);\r\n System.arraycopy(growths, 0, b, 65, 8);\r\n System.arraycopy(supportgrowth, 0, b, 73, 8);\r\n b[81] = unknownbyte9;\r\n b[82] = unknownbyte10;\r\n b[83] = unknownbyte11;\r\n\r\n return b;\r\n }",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}",
"public byte[] serialize() {\n try {\n ByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(this);\n return b.toByteArray();\n } catch (IOException ioe) {\n return null;\n }\n }",
"public static byte[] GetByteArrayFromObject(Object object)\n\t\t\tthrows IOException {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\tObjectOutputStream out = new ObjectOutputStream(bos);\n\t\tout.writeObject(object);\n\t\tout.close();\n\t\treturn bos.toByteArray();\n\t}",
"public byte[] Get_Data() throws IOException {\n byte[] ret = new byte[512];\n DatagramPacket packet = new DatagramPacket(ret, ret.length);\n\n socket.receive(packet);\n\n length = ret.length;\n return ret;\n }",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getFromBytes();",
"com.google.protobuf.ByteString\n getFromBytes();",
"public final ByteBuffer getPayload() {\n return this.payload.slice();\n }",
"public byte[] asByteArray() {\n return data;\n }",
"com.google.protobuf.ByteString\n getReceiverBytes();",
"public static String toByteString(byte[] array) {\n StringBuilder sb = new StringBuilder(\"{\");\n for (int i = 0; i < array.length; i++) {\n if (i > 0)\n sb.append(\" \");\n sb.append(toByteString(array[i]));\n }\n return sb.append(\"}\").toString();\n }",
"public ByteBuffer Pack(Message message) {\n ByteBuffer byteBuffer = ByteBuffer.allocate(message.GetMessageLen()+1);\n byteBuffer.put((byte) message.GetMessageLen());\n byteBuffer.put((byte) (message.getDataLen()>>8));\n byteBuffer.put((byte) message.getDataLen());\n byteBuffer.put((byte) message.getFromId());\n byteBuffer.put((byte) message.getToId());\n byteBuffer.put((byte) message.getMsgType().ordinal());\n byteBuffer.put(message.getData());\n return byteBuffer;\n }",
"public byte[] toArray()\r\n {\r\n return _stream.toByteArray();\r\n }",
"public byte[] getData();",
"private static byte[] serializePacket(String serverID, OutPacket packet)\n\t\t\tthrows IOException\n\t{\n\t\t// Header\n\t\tByteArrayDataOutput out = ByteStreams.newDataOutput();\n\t\tout.writeUTF(serverID);\n\t\tout.writeByte(Packets.getId(packet.getClass()));\n\n\t\t// Packet\n\t\tbyte[] raw = serializeRawPacket(packet);\n\t\tout.writeInt(raw.length);\n\t\tout.write(raw);\n\n\t\treturn out.toByteArray();\n\t}",
"byte[] getStructuredData(String messageData);",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"byte[] getData();",
"@Override\n public ByteBuffer buildRequestPacket() {\n\n ByteBuffer sendData = ByteBuffer.allocate(128);\n sendData.putLong(this.connectionId); // connection_id - can't change (64 bits)\n sendData.putInt(getActionNumber()); // action we want to perform - connecting with the server (32 bits)\n sendData.putInt(getTransactionId()); // transaction_id - random int we make (32 bits)\n\n return sendData;\n }",
"public static <O> byte[] toBytes(O object) {\n try (ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n ObjectOutputStream objOutputStream = new ObjectOutputStream(byteArrayOutputStream);) {\n objOutputStream.writeObject(object);\n return byteArrayOutputStream.toByteArray();\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }"
] | [
"0.68456626",
"0.66681826",
"0.6519948",
"0.6467843",
"0.64532596",
"0.64532596",
"0.64511013",
"0.6318419",
"0.6216086",
"0.6164008",
"0.6109019",
"0.61085325",
"0.6100219",
"0.6096155",
"0.60924715",
"0.6089527",
"0.6081423",
"0.6080835",
"0.6073226",
"0.6006016",
"0.5984812",
"0.5979331",
"0.5968128",
"0.5960236",
"0.59447575",
"0.5942275",
"0.59411895",
"0.5926837",
"0.591387",
"0.5893154",
"0.5865648",
"0.5854521",
"0.5851529",
"0.5851529",
"0.58208466",
"0.5815165",
"0.5813812",
"0.5795027",
"0.5743519",
"0.5738125",
"0.57263833",
"0.572103",
"0.5711767",
"0.57029754",
"0.57009995",
"0.57004005",
"0.56897587",
"0.5672259",
"0.56703144",
"0.5660745",
"0.56455517",
"0.56439304",
"0.56323904",
"0.5623271",
"0.5622472",
"0.5615811",
"0.5615811",
"0.5614675",
"0.5614347",
"0.5595197",
"0.5591212",
"0.5591212",
"0.5591212",
"0.5591212",
"0.5591212",
"0.5591212",
"0.5591212",
"0.5591212",
"0.5591212",
"0.5590625",
"0.5588498",
"0.5588473",
"0.55850613",
"0.5580968",
"0.5580968",
"0.5580968",
"0.5580968",
"0.5580968",
"0.5580968",
"0.5580968",
"0.5580968",
"0.5580968",
"0.5580968",
"0.5574161",
"0.5574161",
"0.5572106",
"0.55665666",
"0.55518043",
"0.55432993",
"0.5540844",
"0.55379957",
"0.5537063",
"0.55363953",
"0.5534607",
"0.5524815",
"0.5524815",
"0.5524815",
"0.5524815",
"0.5524537",
"0.55214906"
] | 0.662791 | 2 |
Reconstruct a SimpleMessageObject form a byte array that was created by a call to getNetworkBytes(). | public static SimpleMessageObject createMessageObject(byte[] data) {
SimpleMessageObject retVal = new SimpleMessageObject();
// data is of the form:
// byte(data type)|int(length of name)|name|int(length of value)|value
boolean keepGoing = true;
int currentPointer = 0;
while(keepGoing) {
int type = data[currentPointer];
int bytesToRead = 0;
String name;
currentPointer++;
switch(type) {
//String
case 0x73:
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
name = DataConversions.getString(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
String stringValue = DataConversions.getString(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
retVal.addString(name, stringValue);
break;
//int
case 0x69:
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
name = DataConversions.getString(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
int intValue = DataConversions.getInt(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
retVal.addInt(name, intValue);
break;
//long
case 0x6c:
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
name = DataConversions.getString(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
long longValue = DataConversions.getLong(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
retVal.addLong(name, longValue);
break;
//double
case 0x64:
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
name = DataConversions.getString(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
double doubleValue = DataConversions.getDouble(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
retVal.addDouble(name, doubleValue);
break;
//float
case 0x66:
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
name = DataConversions.getString(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
float floatValue = DataConversions.getFloat(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
retVal.addFloat(name, floatValue);
break;
//char
case 0x63:
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
name = DataConversions.getString(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
char charValue = DataConversions.getChar(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
retVal.addChar(name, charValue);
break;
//byte array
case 0x62:
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
name = DataConversions.getString(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
bytesToRead = DataConversions.getInt(data, currentPointer, 4);
currentPointer += 4;
byte[] byteValue = DataConversions.getByteArray(data, currentPointer, bytesToRead);
currentPointer += bytesToRead;
retVal.addByteArray(name, byteValue);
break;
}
if(currentPointer == data.length) {
keepGoing = false;
}
}
return retVal;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte[] fromMessage(Message message) throws IOException, JMSException;",
"com.google.protobuf.ByteString\n getFromBytes();",
"com.google.protobuf.ByteString\n getFromBytes();",
"public Message toMessage(byte[] data) throws IOException, JMSException;",
"public byte[] marshall();",
"com.google.protobuf.ByteString\n getTheMessageBytes();",
"private static byte[] construct(Serializable object) {\n\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\ttry {\n\t // Wrap the ByteArrayOutputStream in an ObjectOutputStream\n\t ObjectOutputStream oos = new ObjectOutputStream(bos);\n\t // and write the objects to the stream\n\t oos.writeObject(object);\n\t oos.close();\n\t} catch (Exception e) {\n\t e.printStackTrace();\n\t throw new Error(\"Failed to write serializable data for \" + object);\n\t}\n\n\t// the bytes are now held in the ByteArrayOutputStream\n\t// so we get the bytes of the ByteArrayOutputStream\n\tbyte[] rawBytes = bos.toByteArray();\n\n\treturn rawBytes;\n\n }",
"public abstract byte[] toByteArray();",
"public abstract byte[] toByteArray();",
"public byte[] getBytes(){\n\t\treturn message;\n\t}",
"public byte[] getNetworkPacket() {\n /*\n The packet layout will be:\n byte(datatype)|int(length of name)|byte[](name)|int(length of value)|byte[](value)|...\n */\n byte[] data = new byte[2];\n int currentPosition = 0;\n \n if(STRINGS.size() > 0) {\n Enumeration enumer = STRINGS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x73;\n currentPosition++;\n\n SimpleMessageObjectStringItem item = (SimpleMessageObjectStringItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = item.getValue().getBytes();\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(INTS.size() > 0) {\n Enumeration enumer = INTS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x69;\n currentPosition++;\n\n SimpleMessageObjectIntItem item = (SimpleMessageObjectIntItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(LONGS.size() > 0) {\n Enumeration enumer = LONGS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x6C;\n currentPosition++;\n\n SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(DOUBLES.size() > 0) {\n Enumeration enumer = DOUBLES.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x64;\n currentPosition++;\n\n SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(FLOATS.size() > 0) {\n Enumeration enumer = FLOATS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x66;\n currentPosition++;\n\n SimpleMessageObjectFloatItem item = (SimpleMessageObjectFloatItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(CHARS.size() > 0) {\n Enumeration enumer = CHARS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x63;\n currentPosition++;\n\n SimpleMessageObjectCharItem item = (SimpleMessageObjectCharItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(BYTES.size() > 0) {\n Enumeration enumer = BYTES.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x62;\n currentPosition++;\n\n SimpleMessageObjectByteArrayItem item = (SimpleMessageObjectByteArrayItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = item.getValue();\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n\n return data;\n }",
"byte[] getStructuredData(String messageData);",
"public byte[] toBytes()\n {\n String rep = sessionid + \"_\" + version + \"_\" + message;\n return rep.getBytes();\n }",
"public abstract byte[] toBytes() throws Exception;",
"static public EzMessage CreateMessageObject(byte[] packBytes) {\n\t\tif(packBytes == null)\n\t\t\treturn null;\n\t\tCodedInputStream input = CodedInputStream.newInstance(packBytes);\n\t\ttry{\n\t\t\tint nid = input.readInt32();\n\t\t\tEzMessage msg = CreateMessageObject(nid);\n\t\t\tif(msg!=null)\n\t\t\t{\n\t\t\t\tif(msg.deSerializeFromPB(input))\n\t\t\t\t\treturn msg;\n\t\t\t\telse\n\t\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmsg = CreateMessageObject(\"msg.unknown\");\n\t\t\t\tif(msg != null)\n\t\t\t\t{\n\t\t\t\t\tmsg.getKVData(\"value\").setValue(packBytes);\n\t\t\t\t\treturn msg;\n\t\t\t\t}\n\t\t\t\telse return null;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t {\n\t e.printStackTrace(); \n\t return null;\n\t }\n\t}",
"public byte[] toBytes() {\n return toProtobuf().toByteArray();\n }",
"byte[] toByteArray() throws IOException {\n return ProtobufUtil.prependPBMagic(convert().toByteArray());\n }",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"public byte[] serialize();",
"private PeerProtocolMessage readNormalMessage() throws IOException{\r\n\t\tbyte[]length=new byte[4];\r\n\t\tthis.inputStream.read(length);\r\n\t\tint lengthInt=ToolKit.bigEndianBytesToInt(length, 0);\r\n\t\tbyte[]message= new byte[lengthInt];\r\n\t\tthis.inputStream.read(message);\r\n\t\tbyte[]result=new byte[length.length+message.length];\r\n\t\tSystem.arraycopy(length, 0, result, 0, length.length);\r\n\t\tSystem.arraycopy(message, 0, result, length.length, message.length);\r\n\t\treturn PeerProtocolMessage.parseMessage(result);\r\n\t}",
"byte[] encode(IMessage message) throws IOException;",
"protected O bytesToObject(ByteBuffer data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n return bytesToObject(data.array());\r\n }",
"com.google.protobuf.ByteString\n getUserMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"public byte[] toBinary(JSONObject message) {\n\t\tString messageToConvert = message.toString();\n\t\tbyte[] converted = null;\n\t\ttry {\n\t\t\tconverted = messageToConvert.getBytes(\"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn converted;\n\t}",
"public byte[] getFileBytes(MessageObject messageObject) {\n\t\tMessageObject msgObject = winnowMessage(messageObject);\n\t\tif (messageObject.isUseTransform()) {\n\t\t\tdetransformMessageObject(messageObject);\n\t\t}\n\t\tbyte[] res = new byte[0];\n\t\tfor (MessagePart msgPart : msgObject.getMessageParts()) {\n\t\t\tres = concatByteArrays(res, msgPart.getMsg());\n\t\t}\n\t\treturn res;\n\t}",
"public byte [] readMessageAsByte() {\r\n byte [] data = new byte[256];\r\n int length;\r\n\r\n try {\r\n length = in.readInt();\r\n if (length > 0) {\r\n data = new byte[length];\r\n in.readFully(data, 0, data.length);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return data;\r\n }",
"com.google.protobuf.ByteString getObj();",
"IMessage decode(byte[] data) throws InvalidMessageException;",
"protected O bytesToObject(byte[] data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n O res = type.newInstance();\r\n try {\r\n res.load(data);\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n return res;\r\n }",
"com.google.protobuf.ByteString\n getToBytes();",
"public ByteBuffer getBytesForMessage(StompFrame msg) throws CharacterCodingException {\n StringBuilder sb = new StringBuilder(msg.getWholeSTOMPMessage());\n sb.append(this._messageSeparator);\n ByteBuffer bb = this._encoder.encode(CharBuffer.wrap(sb));\n return bb;\n }",
"@Test\n public void fullConversion() {\n Map<String, String> details = new HashMap<String, String>();\n details.put(\"key1\", \"val1\");\n details.put(\"secondkey\", \"secondval\");\n\n SimpleBasicMessage arec = new SimpleBasicMessage(\"my msg\", details);\n arec.setMessageId(new MessageId(\"12345\"));\n arec.setCorrelationId(new MessageId(\"67890\"));\n String json = arec.toJSON();\n System.out.println(json);\n assertNotNull(\"missing JSON\", json);\n\n SimpleBasicMessage arec2 = SimpleBasicMessage.fromJSON(json, SimpleBasicMessage.class);\n assertNotNull(\"JSON conversion failed\", arec2);\n assertNotSame(arec, arec2);\n assertNull(\"BasicMessage ID should not be encoded in JSON\", arec2.getMessageId());\n assertNull(\"Correlation ID should not be encoded in JSON\", arec2.getCorrelationId());\n assertEquals(\"my msg\", arec2.getMessage());\n assertEquals(2, arec2.getDetails().size());\n assertEquals(\"val1\", arec2.getDetails().get(\"key1\"));\n assertEquals(\"secondval\", arec2.getDetails().get(\"secondkey\"));\n assertEquals(arec.getMessage(), arec2.getMessage());\n assertEquals(arec.getDetails(), arec2.getDetails());\n }",
"com.google.protobuf.ByteString\n getMsgBytes();",
"private byte[] packObject(ProtocolObject obj) {\n ByteArrayOutputStream bos = new ByteArrayOutputStream(37);\n for (int i = 0; i < 5; i++) {\n \t// write header bytes...\n \tbos.write(0);\n }\n packObject(obj, bos);\n return bos.toByteArray();\n }",
"public com.google.protobuf.ByteString\n getFromBytes() {\n Object ref = from_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n from_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getFromBytes() {\n Object ref = from_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n from_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"byte[] getByteArrayField();",
"com.google.protobuf.ByteString\n getAboutRawBytes();",
"protected abstract ByteBuffer toMedia(Object object) throws BeanConversionException;",
"public static EzMessage[] CreateRpMessageObjects(byte[] byteArray) {\t\t\n\t\tCodedInputStream input = CodedInputStream.newInstance(byteArray);\n\t\ttry{\n\t\t\tint nSize = input.readInt32();\n\t\t\tif(nSize <=0)\n\t\t\t\treturn null;\n\t\t\tEzMessage[] msgs = new EzMessage[nSize];\n\t\t\tfor(int i=0;i<nSize;i++)\n\t\t\t{\n\t\t\t\tByteString msgBytes = input.readBytes();\n\t\t\t\tif(msgBytes != null && !msgBytes.isEmpty())\n\t\t\t\t\tmsgs[i] = CreateMessageObject(msgBytes.toByteArray());\n\t\t\t\telse\n\t\t\t\t\tmsgs[i] = null;\n\t\t\t}\n\t\t\treturn msgs;\n\t\t}\n\t\tcatch (Exception e)\n\t {\n\t e.printStackTrace(); \n\t return null;\n\t }\n\t}",
"public com.google.protobuf.ByteString\n getFromBytes() {\n Object ref = from_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n from_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private byte[] buildBytes() {\n byte[] message = new byte[4 + 2 + 2 + 1 + data.getLength()];\n System.arraycopy(id.getBytes(), 0, message, 0, 4);\n System.arraycopy(sq.getBytes(), 0, message, 4, 2);\n System.arraycopy(ack.getBytes(), 0, message, 6, 2);\n message[8] = flag.getBytes();\n System.arraycopy(data.getBytes(), 0, message, 9, data.getBytes().length);\n return message;\n }",
"public com.google.protobuf.ByteString\n getFromBytes() {\n Object ref = from_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n from_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static Object bytesToObject( byte[] bytes ) throws IOException, ClassNotFoundException\n {\n if( bytes == null ){\n return null;\n }\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bytes);\n ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream);\n return objectInputStream.readObject();\n }",
"com.google.protobuf.ByteString\n getEncodedBytes();",
"public ByteBuffer Pack(Message message) {\n ByteBuffer byteBuffer = ByteBuffer.allocate(message.GetMessageLen()+1);\n byteBuffer.put((byte) message.GetMessageLen());\n byteBuffer.put((byte) (message.getDataLen()>>8));\n byteBuffer.put((byte) message.getDataLen());\n byteBuffer.put((byte) message.getFromId());\n byteBuffer.put((byte) message.getToId());\n byteBuffer.put((byte) message.getMsgType().ordinal());\n byteBuffer.put(message.getData());\n return byteBuffer;\n }",
"@Test\n public void simpleConversion() {\n SimpleBasicMessage arec = new SimpleBasicMessage(\"my msg\");\n String json = arec.toJSON();\n System.out.println(json);\n assertNotNull(\"missing JSON\", json);\n\n SimpleBasicMessage arec2 = AbstractMessage.fromJSON(json, SimpleBasicMessage.class);\n assertNotNull(\"JSON conversion failed\", arec2);\n assertNotSame(arec, arec2);\n assertEquals(arec.getMessage(), arec2.getMessage());\n assertEquals(arec.getDetails(), arec2.getDetails());\n }",
"public byte[] toByteArray() {\n byte[] retour;\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n try {\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(new String(hostID));\n oos.writeObject(new Integer(hostAddresses.size()));\n for (int i=0; i<hostAddresses.size(); i++) oos.writeObject(new String(hostAddresses.elementAt(i).getNormalizedAddress()));\n oos.writeObject(new Integer(cpuLoad));\n oos.writeObject(new Integer(memoryLoad));\n oos.writeObject(new Integer(batteryLevel));\n oos.writeObject(new Integer(numberOfThreads));\n oos.writeObject(new Integer(numberOfBCs));\n oos.writeObject(new Integer(numberOfConnectors));\n oos.writeObject(new Integer(numberOfConnectorsNetworkInputs));\n oos.writeObject(new Integer(numberOfConnectorsNetworkOutputs));\n oos.writeObject(new Integer(networkPFInputTraffic));\n oos.writeObject(new Integer(networkPFOutputTraffic));\n oos.writeObject(new Integer(networkApplicationInputTraffic));\n oos.writeObject(new Integer(networkApplicationOutputTraffic));\n retour = bos.toByteArray();\n }\n catch (IOException ioe) {\n System.err.println(\"Error converting a host status to byte array\");\n retour = null;\n }\n return retour;\n }",
"public byte[] convert(Object source) {\n try {\n ByteArrayOutputStream baos = new ByteArrayOutputStream(128);\n serializer.serialize(source, baos);\n return baos.toByteArray();\n } catch (Throwable t) {\n throw new SerializationFailedException(\"Failed to serialize object using \" +\n serializer.getClass().getSimpleName(), t);\n }\n }",
"public byte[] getRawContent() {\n try {\n if (this.messageContent == null &&\n this.messageContentBytes == null &&\n this.messageContentObject == null) {\n return null;\n } else if (this.messageContentObject != null ) {\n String messageContent = this.messageContentObject.toString();\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes = messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else if ( this.messageContent != null ) {\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes =\n this.messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else {\n return messageContentBytes;\n }\n } catch (UnsupportedEncodingException ex) {\n InternalErrorHandler.handleException(ex);\n return null;\n }\n }",
"byte[] serialize(Serializable object);",
"public static byte[] GetByteArrayFromObject(Object object)\n\t\t\tthrows IOException {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\tObjectOutputStream out = new ObjectOutputStream(bos);\n\t\tout.writeObject(object);\n\t\tout.close();\n\t\treturn bos.toByteArray();\n\t}",
"public Message(MessageType messageType, byte[] payload) {\n\t this.messageType = messageType;\n\t this.payloadLength = ByteBuffer.allocate(4).putInt(payload.hashCode()).array();\n\t this.payload = payload;\n\t}",
"private DAPMessage constructFrom(DatabaseTableRecord record) {\n return DAPMessage.fromXML(record.getStringValue(CommunicationNetworkServiceDatabaseConstants.DAP_MESSAGE_DATA_COLUMN_NAME));\n }",
"public byte[] getSecureMessageSerialized() {\r\n\t\treturn this.isSecureMessageSerialized ? this.secureMessageSerialized : null;\r\n\t}",
"public void testToByteArray()\n {\n // we'll test making a couple EthernetAddresses and then check that the\n // toByteArray returns the same value in byte form as used to create it\n \n // first we'll test the null EthernetAddress\n EthernetAddress ethernet_address = new EthernetAddress(0L);\n assertEquals(\"Expected length of returned array wrong\",\n ETHERNET_ADDRESS_ARRAY_LENGTH,\n ethernet_address.toByteArray().length);\n assertEthernetAddressArraysAreEqual(\n NULL_ETHERNET_ADDRESS_BYTE_ARRAY, 0,\n ethernet_address.toByteArray(), 0);\n \n // now test a non-null EthernetAddress\n ethernet_address = new EthernetAddress(VALID_ETHERNET_ADDRESS_LONG);\n assertEquals(\"Expected length of returned array wrong\",\n ETHERNET_ADDRESS_ARRAY_LENGTH,\n ethernet_address.toByteArray().length);\n assertEthernetAddressArraysAreEqual(\n VALID_ETHERNET_ADDRESS_BYTE_ARRAY, 0,\n ethernet_address.toByteArray(), 0);\n \n // let's make sure that changing the returned array doesn't mess with\n // the wrapped EthernetAddress's internals\n byte[] ethernet_address_byte_array = ethernet_address.toByteArray();\n // we'll just stir it up a bit and then check that the original\n // EthernetAddress was not changed in the process.\n // The easiest stir is to sort it ;)\n Arrays.sort(ethernet_address_byte_array);\n assertEthernetAddressArraysAreNotEqual(\n VALID_ETHERNET_ADDRESS_BYTE_ARRAY, 0,\n ethernet_address_byte_array, 0);\n assertEthernetAddressArraysAreNotEqual(\n ethernet_address.toByteArray(), 0,\n ethernet_address_byte_array, 0);\n assertEthernetAddressArraysAreEqual(\n VALID_ETHERNET_ADDRESS_BYTE_ARRAY, 0,\n ethernet_address.toByteArray(), 0);\n }",
"public byte[] getBytes() {\r\n \treturn toString().getBytes();\r\n }",
"public static <O> byte[] toBytes(O object) {\n try (ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n ObjectOutputStream objOutputStream = new ObjectOutputStream(byteArrayOutputStream);) {\n objOutputStream.writeObject(object);\n return byteArrayOutputStream.toByteArray();\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"private static Object getObject(byte[] byteArr) throws IOException, ClassNotFoundException {\n\t\tObject object = SerializationUtils.deserialize(byteArr);\n\t\tByteArrayInputStream bis = new ByteArrayInputStream(byteArr);\n\t\tObjectInput in = new ObjectInputStream(bis);\n\t\t//return in.readObject();\n\t\treturn object;\n\t}",
"byte[] getBytes();",
"byte[] getBytes();",
"private static byte[] messageDataAndMetadata(Message message) {\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n\n try {\n IOHelper.writeByteArray(message.data, byteStream);\n IOHelper.writeInt(message.senderID, byteStream);\n IOHelper.writeInt(message.blockIndex, byteStream);\n IOHelper.writeInt(message.sequenceNumber, byteStream);\n IOHelper.writeLong(message.date, byteStream);\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return byteStream.toByteArray();\n }",
"public Message build() {\n Objects.requireNonNull(transactionIdBytes);\n\n byte[] messageBytes = new byte[MESSAGE_LEN_HEADER + length];\n\n byte[] messageTypeBytes = createMessageType();\n System.arraycopy(messageTypeBytes, 0, messageBytes, MESSAGE_POS_TYPE, MESSAGE_LEN_TYPE);\n\n byte[] lengthBytes = Bytes.intToBytes(length);\n System.arraycopy(lengthBytes, 2, messageBytes, MESSAGE_POS_LENGTH, MESSAGE_LEN_LENGTH);\n\n byte[] magicCookieBytes = Bytes.intToBytes(MAGIC_COOKIE_FIXED_VALUE);\n System.arraycopy(\n magicCookieBytes, 0, messageBytes, MESSAGE_POS_MAGIC_COOKIE, MESSAGE_LEN_MAGIC_COOKIE);\n\n System.arraycopy(\n transactionIdBytes, 0, messageBytes, MESSAGE_POS_TRANSACTION_ID,\n MESSAGE_LEN_TRANSACTION_ID);\n transactionIdBytes = null;\n\n if (attributeBytes != null && attributeBytes.length > 0) {\n System.arraycopy(\n attributeBytes, 0, messageBytes, MESSAGE_LEN_HEADER, attributeBytes.length);\n attributeBytes = null;\n }\n\n return new Message(messageBytes);\n }",
"byte[] decodeBytes();",
"public byte[] toBytes() {\n return PaddingUtil.pad(\n PADDING,\n ByteArrayListUtil.merge(\n contactPublicKeyBytes,\n haNonce,\n haCiphertext,\n additionalData\n )\n );\n }",
"public Builder setMessageBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n message_ = value;\n onChanged();\n return this;\n }",
"public Builder setMessageBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n message_ = value;\n onChanged();\n return this;\n }",
"public Builder setMessageBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n message_ = value;\n onChanged();\n return this;\n }",
"public Builder setMessageBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n message_ = value;\n onChanged();\n return this;\n }",
"com.google.protobuf.ByteString\n getMemberOfBytes();",
"com.google.protobuf.ByteString getResponseMessage();",
"public byte[] toArray()\r\n {\r\n return _stream.toByteArray();\r\n }",
"com.google.protobuf.ByteString getMsg();",
"public CBORObject EncodeToCBORObject() throws CoseException {\n CBORObject obj;\n \n obj = EncodeCBORObject();\n \n if (emitTag) {\n obj = CBORObject.FromObjectAndTag(obj, messageTag.value);\n }\n \n return obj;\n }",
"public static byte[] extract_message(byte[] hash_message)\n {\n\tbyte[] plaintext = new byte[hash_message.length - HMAC_SHA1_LEN];\n\tSystem.arraycopy(hash_message, 0, plaintext, 0, plaintext.length);\n\n\treturn plaintext;\n }",
"@Override\n public Message fromBytes(byte[] bytes) {\n try {\n String content = new String(bytes);\n LOG.debug(\"Decoding consumer message: \"+content);\n \n JsonNode node = mapper.readTree(content);\n JsonNode headers = node.get(HEADERS);\n //LOG.info(\"MD key:\"+headers.get(\"KEY\")+\" T:\"+Thread.currentThread().getName());\n if (headers == null) {\n throw new IllegalArgumentException(\"No headers given: \"+node);\n }\n JsonNode payload = node.get(PAYLOAD);\n if (payload == null) {\n throw new IllegalArgumentException(\"No payload given: \"+node);\n }\n\n MessageBuilder<JsonNode> builder = MessageBuilder.withPayload(payload);\n Iterator<Map.Entry<String, JsonNode>> fields = headers.getFields();\n while (fields.hasNext()) {\n Map.Entry<String, JsonNode> field = fields.next();\n if (!ignoredHeaders.contains(field.getKey())) {\n builder.setHeader(field.getKey(), field.getValue().getTextValue());\n }\n }\n\n return builder.build();\n\n } catch (IOException ex) {\n throw new IllegalStateException(\"Error reading message bytes\", ex);\n }\n }",
"public byte[] getByteArray(String name) {\n Enumeration enumer = BYTES.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectByteArrayItem item = (SimpleMessageObjectByteArrayItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n byte[] noSuchArray = new byte[1];\n noSuchArray[0] = (byte)-1;\n return noSuchArray;\n }",
"public static Object bytesToObject(byte[] bytes) throws IOException,\r\n ClassNotFoundException\r\n {\r\n ByteArrayInputStream bais = new ByteArrayInputStream(bytes);\r\n ObjectInputStream ois = new ObjectInputStream(bais);\r\n try\r\n {\r\n return ois.readObject();\r\n }\r\n finally\r\n {\r\n ois.close();\r\n }\r\n }",
"byte[] getEByteArray();",
"public static Object toObject(byte[] bytes) throws IOException, ClassNotFoundException\n {\n Object obj = null;\n ByteArrayInputStream bis = null;\n ObjectInputStream ois = null;\n \n try\n {\n bis = new ByteArrayInputStream(bytes);\n ois = new ObjectInputStream(bis);\n obj = ois.readObject();\n }\n finally\n {\n if (bis != null)\n {\n bis.close();\n }\n if (ois != null)\n {\n ois.close();\n }\n }\n return obj;\n }",
"com.google.protobuf.ByteString\n getS2Bytes();",
"public Builder setMessageBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n message_ = value;\n onChanged();\n return this;\n }"
] | [
"0.6615562",
"0.61733675",
"0.61733675",
"0.616724",
"0.6018671",
"0.5974388",
"0.5961823",
"0.58845055",
"0.58845055",
"0.5867804",
"0.5836893",
"0.5766852",
"0.575662",
"0.5728261",
"0.5674449",
"0.56628793",
"0.56180286",
"0.56148684",
"0.56148684",
"0.56148684",
"0.56148684",
"0.56148684",
"0.56148684",
"0.56148684",
"0.56148684",
"0.56148684",
"0.56106037",
"0.55976564",
"0.5592865",
"0.5591629",
"0.5582942",
"0.5529467",
"0.5529467",
"0.5529467",
"0.5529467",
"0.5529467",
"0.5529467",
"0.5529467",
"0.5529467",
"0.5529467",
"0.5529467",
"0.5503121",
"0.54895276",
"0.54856557",
"0.54697293",
"0.5457904",
"0.5456921",
"0.5454262",
"0.54400784",
"0.5413802",
"0.54127616",
"0.5412092",
"0.5397249",
"0.5385067",
"0.5383044",
"0.5375565",
"0.5354242",
"0.5348598",
"0.5344243",
"0.53388923",
"0.5328752",
"0.5317251",
"0.5292096",
"0.5282628",
"0.526499",
"0.52616245",
"0.5260998",
"0.52592033",
"0.5255902",
"0.5254512",
"0.5252079",
"0.52318275",
"0.5230127",
"0.52276343",
"0.52105343",
"0.5208715",
"0.52042454",
"0.51980895",
"0.51980895",
"0.51897836",
"0.51781064",
"0.51755273",
"0.5151064",
"0.5142528",
"0.5142528",
"0.5142528",
"0.5142528",
"0.51357937",
"0.5133959",
"0.513387",
"0.5133402",
"0.51276094",
"0.5120702",
"0.51183856",
"0.51111495",
"0.51059407",
"0.51040435",
"0.5101497",
"0.50991493",
"0.50967544"
] | 0.6335911 | 1 |
This class is generated by jOOQ. | @SuppressWarnings({ "all", "unchecked", "rawtypes" })
public interface IXActivity extends VertxPojo, Serializable {
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键
*/
public IXActivity setKey(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键
*/
public String getKey();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型
*/
public IXActivity setType(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型
*/
public String getType();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号
*/
public IXActivity setSerial(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号
*/
public String getSerial();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-
* 操作描述信息
*/
public IXActivity setDescription(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-
* 操作描述信息
*/
public String getDescription();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-
* 组所关联的模型identifier,用于描述
*/
public IXActivity setModelId(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-
* 组所关联的模型identifier,用于描述
*/
public String getModelId();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-
* 组所关联的模型记录ID,用于描述哪一个Model中的记录
*/
public IXActivity setModelKey(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-
* 组所关联的模型记录ID,用于描述哪一个Model中的记录
*/
public String getModelKey();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.
* 「modelCategory」- 关联的category记录,只包含叶节点
*/
public IXActivity setModelCategory(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.
* 「modelCategory」- 关联的category记录,只包含叶节点
*/
public String getModelCategory();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称
*/
public IXActivity setTaskName(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称
*/
public String getTaskName();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-
* 任务单号
*/
public IXActivity setTaskSerial(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-
* 任务单号
*/
public String getTaskSerial();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-
* 变更之前的数据(用于回滚)
*/
public IXActivity setRecordOld(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-
* 变更之前的数据(用于回滚)
*/
public String getRecordOld();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-
* 变更之后的数据(用于更新)
*/
public IXActivity setRecordNew(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-
* 变更之后的数据(用于更新)
*/
public String getRecordNew();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识
*/
public IXActivity setSigma(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识
*/
public String getSigma();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言
*/
public IXActivity setLanguage(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言
*/
public String getLanguage();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用
*/
public IXActivity setActive(Boolean value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用
*/
public Boolean getActive();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-
* 附加配置数据
*/
public IXActivity setMetadata(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-
* 附加配置数据
*/
public String getMetadata();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-
* 创建时间
*/
public IXActivity setCreatedAt(LocalDateTime value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-
* 创建时间
*/
public LocalDateTime getCreatedAt();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-
* 创建人
*/
public IXActivity setCreatedBy(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-
* 创建人
*/
public String getCreatedBy();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-
* 更新时间
*/
public IXActivity setUpdatedAt(LocalDateTime value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-
* 更新时间
*/
public LocalDateTime getUpdatedAt();
/**
* Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-
* 更新人
*/
public IXActivity setUpdatedBy(String value);
/**
* Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-
* 更新人
*/
public String getUpdatedBy();
// -------------------------------------------------------------------------
// FROM and INTO
// -------------------------------------------------------------------------
/**
* Load data from another generated Record/POJO implementing the common
* interface IXActivity
*/
public void from(IXActivity from);
/**
* Copy data into another generated Record/POJO implementing the common
* interface IXActivity
*/
public <E extends IXActivity> E into(E into);
@Override
public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {
setOrThrow(this::setKey,json::getString,"KEY","java.lang.String");
setOrThrow(this::setType,json::getString,"TYPE","java.lang.String");
setOrThrow(this::setSerial,json::getString,"SERIAL","java.lang.String");
setOrThrow(this::setDescription,json::getString,"DESCRIPTION","java.lang.String");
setOrThrow(this::setModelId,json::getString,"MODEL_ID","java.lang.String");
setOrThrow(this::setModelKey,json::getString,"MODEL_KEY","java.lang.String");
setOrThrow(this::setModelCategory,json::getString,"MODEL_CATEGORY","java.lang.String");
setOrThrow(this::setTaskName,json::getString,"TASK_NAME","java.lang.String");
setOrThrow(this::setTaskSerial,json::getString,"TASK_SERIAL","java.lang.String");
setOrThrow(this::setRecordOld,json::getString,"RECORD_OLD","java.lang.String");
setOrThrow(this::setRecordNew,json::getString,"RECORD_NEW","java.lang.String");
setOrThrow(this::setSigma,json::getString,"SIGMA","java.lang.String");
setOrThrow(this::setLanguage,json::getString,"LANGUAGE","java.lang.String");
setOrThrow(this::setActive,json::getBoolean,"ACTIVE","java.lang.Boolean");
setOrThrow(this::setMetadata,json::getString,"METADATA","java.lang.String");
setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},"CREATED_AT","java.time.LocalDateTime");
setOrThrow(this::setCreatedBy,json::getString,"CREATED_BY","java.lang.String");
setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},"UPDATED_AT","java.time.LocalDateTime");
setOrThrow(this::setUpdatedBy,json::getString,"UPDATED_BY","java.lang.String");
return this;
}
@Override
public default io.vertx.core.json.JsonObject toJson() {
io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();
json.put("KEY",getKey());
json.put("TYPE",getType());
json.put("SERIAL",getSerial());
json.put("DESCRIPTION",getDescription());
json.put("MODEL_ID",getModelId());
json.put("MODEL_KEY",getModelKey());
json.put("MODEL_CATEGORY",getModelCategory());
json.put("TASK_NAME",getTaskName());
json.put("TASK_SERIAL",getTaskSerial());
json.put("RECORD_OLD",getRecordOld());
json.put("RECORD_NEW",getRecordNew());
json.put("SIGMA",getSigma());
json.put("LANGUAGE",getLanguage());
json.put("ACTIVE",getActive());
json.put("METADATA",getMetadata());
json.put("CREATED_AT",getCreatedAt()==null?null:getCreatedAt().toString());
json.put("CREATED_BY",getCreatedBy());
json.put("UPDATED_AT",getUpdatedAt()==null?null:getUpdatedAt().toString());
json.put("UPDATED_BY",getUpdatedBy());
return json;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}",
"private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }",
"public ObjectRecord() {\n\t\tsuper(org.jooq.test.hsqldb.generatedclasses.tables.Object.OBJECT);\n\t}",
"public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }",
"public LocksRecord() {\n\t\tsuper(org.jooq.example.gradle.db.information_schema.tables.Locks.LOCKS);\n\t}",
"protected DaoRWImpl() {\r\n super();\r\n }",
"public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Row() {\n }",
"public XTestCase_64_69Dao() {\n\t\tsuper(org.jooq.examples.h2.matchers.tables.XTestCase_64_69.X_TEST_CASE_64_69, org.jooq.examples.h2.matchers.tables.pojos.XTestCase_64_69.class);\n\t}",
"private Builder() {\n super(baconhep.TTau.SCHEMA$);\n }",
"public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }",
"private Builder() {\n super(edu.pa.Rat.SCHEMA$);\n }",
"public VBookDao() {\n\t\tsuper(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK, org.jooq.test.h2.generatedclasses.tables.pojos.VBook.class);\n\t}",
"public Pojo1110110(){\r\n\t}",
"public Contact() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.person.tables.Contact.Contact);\n\t}",
"private Column() {\n }",
"private V_2603() {\n\t\tsuper(\"V_2603\", org.jooq.examples.h2.matchers.NonPublic.NON_PUBLIC);\n\t}",
"public ListSqlHelper() {\n\t\t// for bran creation\n\t}",
"private bildeBaseColumns() {\n\n }",
"@Generated(\n value = {\n \"http://www.jooq.org\",\n \"jOOQ version:3.10.8\"\n },\n comments = \"This class is generated by jOOQ\"\n)\n@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IMRelation extends Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.KEY</code>. 「key」- 关系定义的主键\n */\n public IMRelation setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.KEY</code>. 「key」- 关系定义的主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.TYPE</code>. 「type」- 关系类型 - 来自(字典)\n */\n public IMRelation setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.TYPE</code>. 「type」- 关系类型 - 来自(字典)\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPSTREAM</code>. 「upstream」- 当前关系是 upstream,表示上级\n */\n public IMRelation setUpstream(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPSTREAM</code>. 「upstream」- 当前关系是 upstream,表示上级\n */\n public String getUpstream();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.DOWNSTREAM</code>. 「downstream」- 当前关系是 downstream,表示下级\n */\n public IMRelation setDownstream(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.DOWNSTREAM</code>. 「downstream」- 当前关系是 downstream,表示下级\n */\n public String getDownstream();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.COMMENTS</code>. 「comments」- 关系定义的描述信息\n */\n public IMRelation setComments(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.COMMENTS</code>. 「comments」- 关系定义的描述信息\n */\n public String getComments();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.SIGMA</code>. 「sigma」- 统一标识\n */\n public IMRelation setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.SIGMA</code>. 「sigma」- 统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IMRelation setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.ACTIVE</code>. 「active」- 是否启用\n */\n public IMRelation setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.METADATA</code>. 「metadata」- 附加配置数据\n */\n public IMRelation setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.METADATA</code>. 「metadata」- 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.CREATED_AT</code>. 「createdAt」- 创建时间\n */\n public IMRelation setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.CREATED_AT</code>. 「createdAt」- 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.CREATED_BY</code>. 「createdBy」- 创建人\n */\n public IMRelation setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.CREATED_BY</code>. 「createdBy」- 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPDATED_AT</code>. 「updatedAt」- 更新时间\n */\n public IMRelation setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPDATED_AT</code>. 「updatedAt」- 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPDATED_BY</code>. 「updatedBy」- 更新人\n */\n public IMRelation setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPDATED_BY</code>. 「updatedBy」- 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common interface IMRelation\n */\n public void from(cn.vertxup.atom.domain.tables.interfaces.IMRelation from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common interface IMRelation\n */\n public <E extends cn.vertxup.atom.domain.tables.interfaces.IMRelation> E into(E into);\n\n default IMRelation fromJson(io.vertx.core.json.JsonObject json) {\n setKey(json.getString(\"KEY\"));\n setType(json.getString(\"TYPE\"));\n setUpstream(json.getString(\"UPSTREAM\"));\n setDownstream(json.getString(\"DOWNSTREAM\"));\n setComments(json.getString(\"COMMENTS\"));\n setSigma(json.getString(\"SIGMA\"));\n setLanguage(json.getString(\"LANGUAGE\"));\n setActive(json.getBoolean(\"ACTIVE\"));\n setMetadata(json.getString(\"METADATA\"));\n // Omitting unrecognized type java.time.LocalDateTime for column CREATED_AT!\n setCreatedBy(json.getString(\"CREATED_BY\"));\n // Omitting unrecognized type java.time.LocalDateTime for column UPDATED_AT!\n setUpdatedBy(json.getString(\"UPDATED_BY\"));\n return this;\n }\n\n\n default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"UPSTREAM\",getUpstream());\n json.put(\"DOWNSTREAM\",getDownstream());\n json.put(\"COMMENTS\",getComments());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n // Omitting unrecognized type java.time.LocalDateTime for column CREATED_AT!\n json.put(\"CREATED_BY\",getCreatedBy());\n // Omitting unrecognized type java.time.LocalDateTime for column UPDATED_AT!\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"private DbQuery() {}",
"public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }",
"private JooqUtil() {\n\n }",
"@Override\r\n\t\tpublic SQLXML createSQLXML() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public static interface Relation {\n\t\t//some relations are read-only\n\t\tpublic boolean isWriteable();\n\n\t\tpublic String getName();\n\n\t\t/**\n\t\t* Get the model for the relation. This will return a blank tuple, which will show\n\t\t* the ordered list of columns and the type for each. This is basically metadata.\n\t\t*/\n\t\tpublic Tuple getModel();\n\n\t\t/**\n\t\t* Get the number of rows (Tuples) in the relation.\n\t\t*/\n\t\tpublic int getRows();\n\n\t\t//----------------------------\n\t\t//operations on a Relation\n\t\t/**\n\t\t* projection narrows the number of columns in a relation.\n\t\t* This is the part of an sql statement that list the columns, e.g.\n\t\t*\tSELECT firstname,lastname FROM contact.\n\t\t* The contact table has a lot columns that these, but we only need these\n\t\t* two.\n\t\t*/\n\t\tpublic Relation project(Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Select narrows the number of rows returned.\n\t\t*/\n\t\tpublic Relation select(Condition c) throws RelationException;\n\n\t\t/**\n\t\t* Join this relation with another one based on the condition, and give it a name.\n\t\t* The implementation of this is complicated, because it must also create a dynamic\n\t\t* Tuple\n\t\t*/\n\t\tpublic Relation join(Relation r, Condition c, String name) throws RelationException;\n\t\t//-------------------------------\n\n\t\t/**\n\t\t* A cursor is the equivalent of a ResultSet. There may be different types\n\t\t* of Cursors depending on if this is coming directly from the database\n\t\t* or from a derived relation.\n\t\t*/\n\t\tpublic Cursor getCursor() throws RelationException;\n\n\t\t//-------------------------------\n\t\t//change data in the relation\n\t\t//I had this as part of Transaction, but I guess it belongs here.\n\t\t/**\n\t\t* Insert a Tuple into the relation. This may fail for various reasons\n\t\t* including IO problems, invalid transaction state, or constraint violations.\n\t\t* Or if the relation is read-only\n\t\t*/\n\t\tpublic Key insert(Transaction tx,Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Get the tuple that you just inserted by the Key\n\t\t*/\n\t\tpublic Tuple get(Key k) throws RelationException;\n\n\t\t/**\n\t\t* Update the relation with changed data in the Tuple.\n\t\t* The old data is stored in the _audit table.\n\t\t*/\n\t\tpublic void update(Transaction tx,Tuple old, Tuple nu) throws RelationException;\n\n\t\t/**\n\t\t* Delete the object. Must provide old state of object before doing so, so it\n\t\t* can be audited.\n\t\t*/\n\t\tpublic void delete(Transaction tx,Tuple old) throws RelationException;\n\n\t}",
"protected AbstractJoSQLFilter ()\n {\n\n }",
"public TdRuspHijo() { }",
"public VAuthorDao() {\n\t\tsuper(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR, org.jooq.test.h2.generatedclasses.tables.pojos.VAuthor.class);\n\t}",
"private GroupParticipationTable() {\n }",
"@Override\n protected Sequence newSequence(ResultSet sequenceMeta) throws SQLException {\n Sequence seq = super.newSequence(sequenceMeta);\n seq.setIdentifier(DBIdentifier.trim(seq.getIdentifier()));\n return seq;\n }",
"private Builder() {\n super(com.politrons.avro.AvroPerson.SCHEMA$);\n }",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"private RowData() {\n initFields();\n }",
"private Builder() {\n super(sparqles.avro.analytics.EPViewInteroperability.SCHEMA$);\n }",
"private TableAccessET() {\n\n }",
"public DBDocumentPackage(){\n\t\tthis.primaryKey = null;\n\t\tthis.values = new HashMap<String, Object>();\n\t}",
"private ArrowRelationSerializerTeX() {\n }",
"private Builder() {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n }",
"public DatabaseTable() { }",
"public ArangoDBVertex() {\n\t\tsuper();\n\t}",
"private Builder() {\n super(com.autodesk.ws.avro.Call.SCHEMA$);\n }",
"@Override\n protected void initResultTable() {\n }",
"private Builder() {\n super(com.twc.bigdata.views.avro.viewing_info.SCHEMA$);\n }",
"private Builder() {\n\t\t}",
"public PCreateAuthor() {\n\t\tsuper(org.jooq.SQLDialect.SYBASE, \"p_create_author\", org.jooq.test.sybase.generatedclasses.Dba.DBA);\n\t}",
"public interface DatabaseCondition extends SQLObject {\n \n}",
"public SpecialOffer() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.sales.tables.SpecialOffer.SpecialOffer);\n\t}",
"public Mytable() {\n this(DSL.name(\"mytable\"), null);\n }",
"public DocumentDao() {\n super(Document.DOCUMENT, cn.edu.nju.teamwiki.jooq.tables.pojos.Document.class);\n }",
"public Schema() {\n\t\tsuper();\n\t}",
"public DataEquivalentSetClass() {\n }",
"public RadixObjectDb() {\r\n super('r', TextUtils.EMPTY_STRING);\r\n }",
"public void formDatabaseTable() {\n }",
"private TexeraDb() {\n super(\"texera_db\", null);\n }",
"public interface DBInstanceRow extends Row {\r\n Number getInstanceNumber();\r\n\r\n void setInstanceNumber(Number value);\r\n\r\n String getInstanceName();\r\n\r\n void setInstanceName(String value);\r\n\r\n String getHostName();\r\n\r\n void setHostName(String value);\r\n\r\n String getVersion();\r\n\r\n void setVersion(String value);\r\n\r\n Date getStartupTime();\r\n\r\n void setStartupTime(Date value);\r\n\r\n String getStatus();\r\n\r\n void setStatus(String value);\r\n\r\n String getParallel();\r\n\r\n void setParallel(String value);\r\n\r\n Number getThread();\r\n\r\n void setThread(Number value);\r\n\r\n String getArchiver();\r\n\r\n void setArchiver(String value);\r\n\r\n String getLogSwitchWait();\r\n\r\n void setLogSwitchWait(String value);\r\n\r\n String getLogins();\r\n\r\n void setLogins(String value);\r\n\r\n String getShutdownPending();\r\n\r\n void setShutdownPending(String value);\r\n\r\n String getDatabaseStatus();\r\n\r\n void setDatabaseStatus(String value);\r\n\r\n String getInstanceRole();\r\n\r\n void setInstanceRole(String value);\r\n\r\n String getActiveState();\r\n\r\n void setActiveState(String value);\r\n\r\n String getBlocked();\r\n\r\n void setBlocked(String value);\r\n\r\n\r\n}",
"@Override\n\tpublic void queryData() {\n\t\t\n\t}",
"@Override\n public PlainSqlQuery<T, ID> createPlainSqlQuery() {\n return null;\n }",
"public DatasetParameterPK() {\n }",
"private JdbcTypeRegistry() {\n }",
"private Builder() {\n super(org.ga4gh.models.CallSet.SCHEMA$);\n }",
"public VoterDao() {\n super(Voter.VOTER, com.hexarchbootdemo.adapter.output.persistence.h2.generated_sources.jooq.tables.pojos.Voter.class);\n }",
"private Rows(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public ActiveRowMapper() {\n\t}",
"public interface Sqlable {\n\n Map<String, Object> getSqlMap();\n\n String getTableName();\n\n}",
"public AllFieldsTableHandler(){}",
"public void setup() {\r\n // These setters could be used to override the default.\r\n // this.setDatabasePolicy(new null());\r\n // this.setJDBCHelper(JDBCHelperFactory.create());\r\n this.setTableName(\"chm62edt_habitat_syntaxa\");\r\n this.setTableAlias(\"A\");\r\n this.setReadOnly(true);\r\n\r\n this.addColumnSpec(\r\n new CompoundPrimaryKeyColumnSpec(\r\n new StringColumnSpec(\"ID_HABITAT\", \"getIdHabitat\",\r\n \"setIdHabitat\", DEFAULT_TO_ZERO, NATURAL_PRIMARY_KEY),\r\n new StringColumnSpec(\"ID_SYNTAXA\", \"getIdSyntaxa\",\r\n \"setIdSyntaxa\", DEFAULT_TO_EMPTY_STRING,\r\n NATURAL_PRIMARY_KEY)));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"RELATION_TYPE\", \"getRelationType\",\r\n \"setRelationType\", DEFAULT_TO_NULL));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"ID_SYNTAXA_SOURCE\", \"getIdSyntaxaSource\",\r\n \"setIdSyntaxaSource\", DEFAULT_TO_EMPTY_STRING, REQUIRED));\r\n\r\n JoinTable syntaxa = new JoinTable(\"chm62edt_syntaxa B\", \"ID_SYNTAXA\",\r\n \"ID_SYNTAXA\");\r\n\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"NAME\", \"setSyntaxaName\"));\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"AUTHOR\", \"setSyntaxaAuthor\"));\r\n this.addJoinTable(syntaxa);\r\n\r\n JoinTable syntaxasource = new JoinTable(\"chm62edt_syntaxa_source C\",\r\n \"ID_SYNTAXA_SOURCE\", \"ID_SYNTAXA_SOURCE\");\r\n\r\n syntaxasource.addJoinColumn(new StringJoinColumn(\"SOURCE\", \"setSource\"));\r\n syntaxasource.addJoinColumn(\r\n new StringJoinColumn(\"SOURCE_ABBREV\", \"setSourceAbbrev\"));\r\n syntaxasource.addJoinColumn(new IntegerJoinColumn(\"ID_DC\", \"setIdDc\"));\r\n this.addJoinTable(syntaxasource);\r\n }",
"private Queries() {\n // prevent instantiation\n }",
"public interface SQLTransform {\n\n\t/**\n\t * Generate code to put into cursor, the bean property value.\n\t *\n\t * @param tableEntity entity with table to target\n\t * @param methodBuilder the method builder\n\t * @param beanClass the bean class\n\t * @param beanName the bean name\n\t * @param property the property\n\t * @param cursorName the cursor name\n\t * @param indexName the index name\n\t */\n\tvoid generateReadPropertyFromCursor(SQLiteEntity tableEntity, Builder methodBuilder, TypeName beanClass, String beanName, ModelProperty property, String cursorName, String indexName);\n\n\t/**\n\t * Used when you need to use a cursor column as select's result value. \n\t *\n\t * @param methodBuilder the method builder\n\t * @param daoDefinition the dao definition\n\t * @param paramTypeName the param type name\n\t * @param cursorName the cursor name\n\t * @param indexName the index name\n\t */\n\tvoid generateReadValueFromCursor(Builder methodBuilder, SQLiteDaoDefinition daoDefinition, TypeName paramTypeName, String cursorName, String indexName);\n\n\t/**\n\t * Generate default value, null or 0 or ''.\n\t *\n\t * @param methodBuilder the method builder\n\t */\n\tvoid generateDefaultValue(Builder methodBuilder);\n\n\t/**\n\t * Write a bean property to a content writer.\n\t *\n\t * @param methodBuilder the method builder\n\t * @param beanName the bean name\n\t * @param beanClass the bean class\n\t * @param property property to write\n\t */\n\tvoid generateWriteProperty2ContentValues(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);\n\t\n\t/**\n\t * Write a bean property into a where condition.\n\t *\n\t * @param methodBuilder the method builder\n\t * @param beanName the bean name\n\t * @param beanClass the bean class\n\t * @param property the property\n\t */\n\tvoid generateWriteProperty2WhereCondition(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);\n\n\t/**\n\t * <p>\n\t * Generate code to write parameter to where condition\n\t * </p>.\n\t *\n\t * @param methodBuilder the method builder\n\t * @param method the method\n\t * @param paramName the param name\n\t * @param paramTypeName the param type name\n\t */\n\tvoid generateWriteParam2WhereCondition(Builder methodBuilder, SQLiteModelMethod method, String paramName, TypeName paramTypeName);\n\t\n\t/**\n\t * <p>Generate code to write parameter to where statement</p>.\n\t *\n\t * @param methodBuilder the method builder\n\t * @param method the method\n\t * @param paramName the param name\n\t * @param paramType the param type\n\t * @param property the property\n\t */\n\tvoid generateWriteParam2ContentValues(Builder methodBuilder, SQLiteModelMethod method, String paramName, TypeName paramType, ModelProperty property);\n\n\t/**\n\t * Generate code to set property to null value or default value.\n\t *\n\t * @param methodBuilder the method builder\n\t * @param beanClass the bean class\n\t * @param beanName the bean name\n\t * @param property the property\n\t * @param cursorName the cursor name\n\t * @param indexName the index name\n\t */\n\tvoid generateResetProperty(Builder methodBuilder, TypeName beanClass, String beanName, ModelProperty property, String cursorName, String indexName);\n\n\t/**\n\t * Associated column type.\n\t *\n\t * @return column type as string\n\t */\n\tString getColumnTypeAsString();\n\n\t/**\n\t * Gets the column type.\n\t *\n\t * @return column type\n\t */\n\tColumnAffinityType getColumnType();\n\t\n\t/**\n\t * if true, transform can be used as convertion type in a type adapter.\n\t *\n\t * @return true, if is type adapter aware\n\t */\n\tboolean isTypeAdapterAware();\n\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 }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public LeaguePrimaryKey() {\n }",
"private Column(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@Override\n protected void initialize() {\n\n \n }",
"public OtlSourcesRViewRowImpl() {\r\n }",
"BSQL2Java2 createBSQL2Java2();",
"public interface ResultSetColumn extends OptionContainer, RelationalObject {\n\n /**\n * Identifier of this object\n */\n KomodoType IDENTIFIER = KomodoType.RESULT_SET_COLUMN;\n\n /**\n * An empty array of columns.\n */\n ResultSetColumn[] NO_COLUMNS = new ResultSetColumn[0];\n\n /**\n * The type identifier.\n */\n int TYPE_ID = ResultSetColumn.class.hashCode();\n\n /**\n * The resolver of a {@link ResultSetColumn}.\n */\n TypeResolver< ResultSetColumn > RESOLVER = new TypeResolver< ResultSetColumn >() {\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#identifier()\n */\n @Override\n public KomodoType identifier() {\n return IDENTIFIER;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#owningClass()\n */\n @Override\n public Class< ResultSetColumnImpl > owningClass() {\n return ResultSetColumnImpl.class;\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolvable(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public boolean resolvable( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n return ObjectImpl.validateType( transaction, kobject.getRepository(), kobject, CreateProcedure.RESULT_COLUMN );\n }\n\n /**\n * {@inheritDoc}\n *\n * @see org.komodo.relational.TypeResolver#resolve(org.komodo.spi.repository.Repository.UnitOfWork,\n * org.komodo.spi.repository.KomodoObject)\n */\n @Override\n public ResultSetColumn resolve( final UnitOfWork transaction,\n final KomodoObject kobject ) throws KException {\n if ( kobject.getTypeId() == ResultSetColumn.TYPE_ID ) {\n return ( ResultSetColumn )kobject;\n }\n\n return new ResultSetColumnImpl( transaction, kobject.getRepository(), kobject.getAbsolutePath() );\n }\n\n };\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n String getDatatypeName( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDefaultValue( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>description</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getDescription( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n long getLength( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>name in source</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getNameInSource( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>nullable</code> property (never <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n Nullable getNullable( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n long getPrecision( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n long getScale( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @return the value of the <code>UUID</code> option (can be empty)\n * @throws KException\n * if an error occurs\n */\n String getUuid( final UnitOfWork transaction ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newTypeName\n * the new value of the <code>datatype name</code> property (can be empty)\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_DATATYPE_NAME\n */\n void setDatatypeName( final UnitOfWork transaction,\n final String newTypeName ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDefaultValue\n * the new value of the <code>default value</code> property (can be empty)\n * @throws KException\n * if an error occurs\n */\n void setDefaultValue( final UnitOfWork transaction,\n final String newDefaultValue ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newDescription\n * the new value of the <code>description</code> property (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setDescription( final UnitOfWork transaction,\n final String newDescription ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newLength\n * the new value of the <code>datatype length</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_LENGTH\n */\n void setLength( final UnitOfWork transaction,\n final long newLength ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNameInSource\n * the new name in source (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setNameInSource( final UnitOfWork transaction,\n final String newNameInSource ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newNullable\n * the new value of the <code>nullable</code> property (can be <code>null</code>)\n * @throws KException\n * if an error occurs\n * @see Nullable#DEFAULT_VALUE\n */\n void setNullable( final UnitOfWork transaction,\n final Nullable newNullable ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newPrecision\n * the new value of the <code>datatype precision</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_PRECISION\n */\n void setPrecision( final UnitOfWork transaction,\n final long newPrecision ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newScale\n * the new value of the <code>datatype scale</code> property\n * @throws KException\n * if an error occurs\n * @see RelationalConstants#DEFAULT_SCALE\n */\n void setScale( final UnitOfWork transaction,\n final long newScale ) throws KException;\n\n /**\n * @param transaction\n * the transaction (cannot be <code>null</code> or have a state that is not {@link State#NOT_STARTED})\n * @param newUuid\n * the new value of the <code>UUID</code> option (can only be empty when removing)\n * @throws KException\n * if an error occurs\n */\n void setUuid( final UnitOfWork transaction,\n final String newUuid ) throws KException;\n\n}"
] | [
"0.60809994",
"0.60663754",
"0.59983367",
"0.5986215",
"0.56976414",
"0.5675441",
"0.5665027",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.56644076",
"0.5651796",
"0.56155443",
"0.55933553",
"0.55831534",
"0.5576209",
"0.55654675",
"0.5555242",
"0.55391544",
"0.55328906",
"0.552169",
"0.5477795",
"0.54530275",
"0.5447988",
"0.5403428",
"0.539942",
"0.5392967",
"0.53638965",
"0.5322756",
"0.53048086",
"0.5293152",
"0.52807754",
"0.52805936",
"0.5277405",
"0.52705365",
"0.52684975",
"0.5268466",
"0.5264702",
"0.5263408",
"0.52628255",
"0.52553666",
"0.52520895",
"0.5248644",
"0.52476054",
"0.5241658",
"0.52407956",
"0.52141213",
"0.5213956",
"0.5207586",
"0.5204088",
"0.5190915",
"0.51900667",
"0.5186083",
"0.5177799",
"0.51732427",
"0.5159869",
"0.5152899",
"0.51526505",
"0.51512814",
"0.5148889",
"0.51473194",
"0.51464343",
"0.51458126",
"0.5139036",
"0.51331604",
"0.5131763",
"0.5130414",
"0.512761",
"0.51233613",
"0.5121209",
"0.5113576",
"0.5110077",
"0.51045156",
"0.51045156",
"0.51045156",
"0.51045156",
"0.51045156",
"0.51045156",
"0.51036286",
"0.510352",
"0.509624",
"0.5089502",
"0.50877327",
"0.508056",
"0.50757146"
] | 0.0 | -1 |
FROM and INTO Load data from another generated Record/POJO implementing the common interface IXActivity | public void from(IXActivity from); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public <E extends IXActivity> E into(E into);",
"public RecordSet loadAllProcessingDetail(Record inputRecord);",
"private ActivityRecord setActivityRecord() {\r\n ActivityRecord actv = new ActivityRecord();\r\n actv.setActivity(sportActivity);\r\n actv.setDistance(5);\r\n actv.setTime(45L);\r\n actv.setBurnedCalories(240);\r\n actv.setUser(user);\r\n return actv;\r\n }",
"protected abstract void loadData();",
"RecordSet loadAllComponents(Record record, RecordLoadProcessor recordLoadProcessor);",
"@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IXActivity extends VertxPojo, Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public IXActivity setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public IXActivity setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public IXActivity setSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public String getSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public IXActivity setDescription(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public String getDescription();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public IXActivity setModelId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public String getModelId();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public IXActivity setModelKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public String getModelKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public IXActivity setModelCategory(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public String getModelCategory();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public IXActivity setTaskName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public String getTaskName();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public IXActivity setTaskSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public String getTaskSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public IXActivity setRecordOld(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public String getRecordOld();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public IXActivity setRecordNew(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public String getRecordNew();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public IXActivity setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IXActivity setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public IXActivity setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public IXActivity setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public IXActivity setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public IXActivity setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public IXActivity setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public IXActivity setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public void from(IXActivity from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public <E extends IXActivity> E into(E into);\n\n @Override\n public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {\n setOrThrow(this::setKey,json::getString,\"KEY\",\"java.lang.String\");\n setOrThrow(this::setType,json::getString,\"TYPE\",\"java.lang.String\");\n setOrThrow(this::setSerial,json::getString,\"SERIAL\",\"java.lang.String\");\n setOrThrow(this::setDescription,json::getString,\"DESCRIPTION\",\"java.lang.String\");\n setOrThrow(this::setModelId,json::getString,\"MODEL_ID\",\"java.lang.String\");\n setOrThrow(this::setModelKey,json::getString,\"MODEL_KEY\",\"java.lang.String\");\n setOrThrow(this::setModelCategory,json::getString,\"MODEL_CATEGORY\",\"java.lang.String\");\n setOrThrow(this::setTaskName,json::getString,\"TASK_NAME\",\"java.lang.String\");\n setOrThrow(this::setTaskSerial,json::getString,\"TASK_SERIAL\",\"java.lang.String\");\n setOrThrow(this::setRecordOld,json::getString,\"RECORD_OLD\",\"java.lang.String\");\n setOrThrow(this::setRecordNew,json::getString,\"RECORD_NEW\",\"java.lang.String\");\n setOrThrow(this::setSigma,json::getString,\"SIGMA\",\"java.lang.String\");\n setOrThrow(this::setLanguage,json::getString,\"LANGUAGE\",\"java.lang.String\");\n setOrThrow(this::setActive,json::getBoolean,\"ACTIVE\",\"java.lang.Boolean\");\n setOrThrow(this::setMetadata,json::getString,\"METADATA\",\"java.lang.String\");\n setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"CREATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setCreatedBy,json::getString,\"CREATED_BY\",\"java.lang.String\");\n setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"UPDATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setUpdatedBy,json::getString,\"UPDATED_BY\",\"java.lang.String\");\n return this;\n }\n\n\n @Override\n public default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"SERIAL\",getSerial());\n json.put(\"DESCRIPTION\",getDescription());\n json.put(\"MODEL_ID\",getModelId());\n json.put(\"MODEL_KEY\",getModelKey());\n json.put(\"MODEL_CATEGORY\",getModelCategory());\n json.put(\"TASK_NAME\",getTaskName());\n json.put(\"TASK_SERIAL\",getTaskSerial());\n json.put(\"RECORD_OLD\",getRecordOld());\n json.put(\"RECORD_NEW\",getRecordNew());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n json.put(\"CREATED_AT\",getCreatedAt()==null?null:getCreatedAt().toString());\n json.put(\"CREATED_BY\",getCreatedBy());\n json.put(\"UPDATED_AT\",getUpdatedAt()==null?null:getUpdatedAt().toString());\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"TO fromObject(CONTEXT context, final FROM obj);",
"public void setSourceRecord(ActivityRecord sourceRecord) {\n }",
"DataSet toDataSet(Object adaptee);",
"public abstract void loadData();",
"public abstract void loadData();",
"private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}",
"public abstract void fromProto(Message message, TARGET row);",
"@Override\n\tpublic void convertDaoToFrom(CommonEntity ent) {\n\t\tMovie dao=(Movie) ent;\n\t\tthis.setBackgroundImage(dao.getBackgroundImage());\n\t\tthis.setDesc(dao.getDescription());\n\t\tthis.setEmbed(dao.getEmbed());\n\t\tthis.setFeatured(dao.isFeatured());\n\t\tthis.setLatitude(dao.getMap().getLattitude());\n\t\tthis.setLongitude(dao.getMap().getLongitude());\n\t\tthis.setName(dao.getTitle());\n\t\tthis.setRank(dao.getRank());\n\t\t\n\t\t\n\t}",
"@Override\n public DataStream<Row> getDataStream(StreamExecutionEnvironment execEnv) {\n if (useExtendField) {\n metadataKeys = Arrays.stream(ReadableMetadata.values()).map(x -> x.key).collect(Collectors.toList());\n applyReadableMetadata(metadataKeys, generateProducedDataType());\n producedTypeInfo = (TypeInformation<Row>) TypeConversions.fromDataTypeToLegacyInfo(producedDataType);\n }\n\n final PulsarRowDeserializationSchema.ReadableRowMetadataConverter[] metadataConverters = metadataKeys.stream()\n .map(k ->\n Stream.of(ReadableMetadata.values())\n .filter(rm -> rm.key.equals(k))\n .findFirst()\n .orElseThrow(IllegalStateException::new))\n .map(m -> m.converter)\n .toArray(PulsarRowDeserializationSchema.ReadableRowMetadataConverter[]::new);\n\n PulsarRowDeserializationSchema pulsarDeserializationSchema =\n new PulsarRowDeserializationSchema(deserializationSchema, metadataConverters.length > 0, metadataConverters, producedTypeInfo);\n //PulsarDeserializationSchema<Row> deserializer = getDeserializationSchema();\n FlinkPulsarSource<Row> source = new FlinkPulsarSource<>(serviceUrl, adminUrl, pulsarDeserializationSchema, properties);\n //FlinkPulsarRowSource source = new FlinkPulsarRowSource(serviceUrl, adminUrl, properties, deserializer);\n switch (startupMode) {\n case EARLIEST:\n source.setStartFromEarliest();\n break;\n case LATEST:\n source.setStartFromLatest();\n break;\n case SPECIFIC_OFFSETS:\n source.setStartFromSpecificOffsets(specificStartupOffsets);\n break;\n case EXTERNAL_SUBSCRIPTION:\n MessageId subscriptionPosition = MessageId.latest;\n if (CONNECTOR_STARTUP_MODE_VALUE_EARLIEST.equals(properties.get(CONNECTOR_EXTERNAL_SUB_DEFAULT_OFFSET))) {\n subscriptionPosition = MessageId.earliest;\n }\n source.setStartFromSubscription(externalSubscriptionName, subscriptionPosition);\n }\n\n return execEnv.addSource(source).name(explainSource());\n }",
"public RecordSet loadAllProcessDetailHistory(Record inputRecord);",
"public void openOtherRecords()\n {\n Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE);\n Tour recTour = (Tour)((ReferenceField)recBooking.getField(Booking.TOUR_ID)).getReferenceRecord(this);\n super.openOtherRecords();\n }",
"protected abstract void retrievedata();",
"abstract protected T getRecordFromLine(String line) throws DataImportException ;",
"public abstract void importObj(Object obj);",
"interface ReplicateRecord {\n public ReplicateRecord mode(ConnectorMode mode);\n public ReplicateRecord record(DomainRecord record);\n public SourceRecord convert() throws Exception;\n}",
"private void loadRecordDetails() {\n updateRecordCount();\n loadCurrentRecord();\n }",
"private void extractDataPackage() {\n ArrayList<Parcelable> arrayListBundle = new ArrayList<Parcelable>();\n arrayListBundle = getIntent().getParcelableArrayListExtra(\"usersList\");\n\n UserEntity userEntity;\n StringBuilder builder = new StringBuilder();\n\n for (Parcelable bundle : arrayListBundle) {\n\n //Tracking Data by UserEntity Object ;\n userEntity = (UserEntity) bundle;\n //Set StringBuilder Object ;\n builder.append(userEntity.getId() + \" : \" + userEntity.getUsername() + \" / \" + userEntity.getEmailAddress() + \" / \" + userEntity.getPhoneNumber() + \" / \" + userEntity.getJobTitle() + \"\\n\\n\");\n }\n extractedData = builder.toString();\n }",
"@Override\n public DownLoadResumeInfoBean createFromParcel(Parcel source) {\n DownLoadResumeInfoBean downLoadResumeInfoBean = new DownLoadResumeInfoBean();\n downLoadResumeInfoBean.operate_time = source.readString();\n downLoadResumeInfoBean.resume_number = source.readString();\n downLoadResumeInfoBean.name = source.readString();\n downLoadResumeInfoBean.echo_yes = source.readString();\n downLoadResumeInfoBean.sex = source.readString();\n downLoadResumeInfoBean.year = source.readString();\n downLoadResumeInfoBean.work_beginyear = source.readString();\n downLoadResumeInfoBean.high_education = source.readString();\n downLoadResumeInfoBean.location = source.readString();\n downLoadResumeInfoBean.pic_filekey = source.readString();\n downLoadResumeInfoBean.user_id = source.readString();\n downLoadResumeInfoBean.resume_id = source.readString();\n downLoadResumeInfoBean.moremajor = source.readString();\n downLoadResumeInfoBean.operate_name = source.readString();\n downLoadResumeInfoBean.isnew = source.readString();\n return downLoadResumeInfoBean;\n }",
"public void readFromParcel(Parcel src) {\n\n\t}",
"private void loadData() {\n\n // connect the table column with the attributes of the patient from the Queries class\n id_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"pstiantID\"));\n name_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n date_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveDate\"));\n time_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveTime\"));\n\n try {\n\n // database related code \"MySql\"\n ps = con.prepareStatement(\"select * from visitInfo \");\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n // load data to the observable list\n editOL.add(new Queries(new SimpleStringProperty(rs.getString(\"id\")),\n new SimpleStringProperty(rs.getString(\"patiantID\")),\n new SimpleStringProperty(rs.getString(\"patiant_name\")),\n new SimpleStringProperty(rs.getString(\"visit_type\")),\n new SimpleStringProperty(rs.getString(\"payment_value\")),\n new SimpleStringProperty(rs.getString(\"reserve_date\")),\n new SimpleStringProperty(rs.getString(\"reserve_time\")),\n new SimpleStringProperty(rs.getString(\"attend_date\")),\n new SimpleStringProperty(rs.getString(\"attend_time\")),\n new SimpleStringProperty(rs.getString(\"payment_date\")),\n new SimpleStringProperty(rs.getString(\"attend\")),\n new SimpleStringProperty(rs.getString(\"attend_type\"))\n\n ));\n }\n\n // assigning the observable list to the table\n table_view_in_edit.setItems(editOL);\n\n ps.close();\n rs.close();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"RecordSet loadAllLayerDetail(Record inputRecord);",
"public abstract void toProto(SOURCE row, Message.Builder builder);",
"private DungeonRecord(Parcel in){\n _id = in.readLong();\n mDate = in.readString();\n mType = in.readString();\n mOutcome = in.readInt();\n mDistance = in.readInt();\n mTime = in.readInt();\n mReward = in.readString();\n mCoords = in.readString();\n mSkips = in.readString();\n\n }",
"public void from(cn.vertxup.atom.domain.tables.interfaces.IMRelation from);",
"public interface RelationActivityView extends BaseIView {\n void setFrientData(FrientBaen frientBaen);\n// void setPingBiData(PingbiBean pingBiBaen);\n}",
"public void setData(InputRecord record)\n throws SQLException\n {\n super.setData(record);\n try\n {\n long resourceClassId = record.getLong(\"resource_class_id\");\n resourceClass = coral.getSchema().getResourceClass(resourceClassId);\n if(!record.isNull(\"parent\"))\n {\n parentId = record.getLong(\"parent\");\n }\n long creatorId = record.getLong(\"created_by\");\n creator = coral.getSecurity().getSubject(creatorId);\n created = record.getDate(\"creation_time\");\n long ownerId = record.getLong(\"owned_by\");\n owner = coral.getSecurity().getSubject(ownerId);\n long modifierId = record.getLong(\"modified_by\");\n modifier = coral.getSecurity().getSubject(modifierId);\n modified = record.getDate(\"modification_time\");\n }\n catch(EntityDoesNotExistException e)\n {\n throw new SQLException(\"Failed to load Resource #\"+id, e);\n }\n }",
"public void getData(OutputRecord record)\n throws SQLException\n {\n super.getData(record);\n record.setLong(\"resource_class_id\", resourceClass.getId());\n if(parentId != -1)\n {\n record.setLong(\"parent\", parentId);\n }\n else\n {\n record.setNull(\"parent\");\n }\n record.setLong(\"created_by\", creator.getId());\n record.setTimestamp(\"creation_time\", created);\n record.setLong(\"owned_by\", owner.getId());\n record.setLong(\"modified_by\", modifier.getId());\n record.setTimestamp(\"modification_time\", modified);\n }",
"private <ResultType> void importDataToAction(Result<ResultType> data, Action action) {\n ActionImportClass actionClass = new ActionImportClass(action);\n\n for (Field field : actionClass.getAnnotatedFields()) {\n ActionImportField actionField = actionClass.getActionField(field);\n\n if (fieldQualifiesForImport(actionField)) {\n importDataToField(data, actionField);\n }\n }\n }",
"private void loadData(){\n\t\t \n\t\t model.getDataVector().clear();\n\t\t ArrayList<Person> personList = DataBase.getInstance().getPersonList();\n\t\t for(Person person : personList){\n\t\t\t addRow(person.toBasicInfoStringArray());\n\t\t }\n\t\t \n\t }",
"void populateData();",
"public static void readRecord(Calendar cal) {\n\n boolean firstLine = true;\n boolean found = false;\n String ActivityName = \" \";\n Role r;\n String Month = \" \";\n\n int Year = 0;\n\n try {\n\n Scanner x = new Scanner(new File(\"P5Calendar.csv\"));\n\n while (x.hasNext() && !found) {\n\n String[] line = x.nextLine().split(\",\");\n\n if (firstLine) {\n firstLine = false;\n continue;\n }\n\n Year = Integer.parseInt(line[0]);\n Month = line[1];\n ActivityName = line[2];\n\n r = new Role(line[3].replaceAll(\"\\\\(.*\\\\)\", \"\"),\n line[3].substring(line[3].indexOf(\"(\") + 1, line[3].indexOf(\")\")));\n\n Activity act = new Activity(Year, Month, ActivityName, r);\n\n cal.addActivity(act);\n\n }\n\n x.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public interface ImportarPolizaDTO {\r\n\t\r\n\t/**\r\n\t * Execute.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @param idSector the id sector\r\n\t * @param idUser the id user\r\n\t * @return the poliza import DTO\r\n\t */\r\n\tPolizaImportDTO execute(PolizaImportDTO importDTO, Integer idSector, String idUser);\r\n\t\r\n\t/**\r\n\t * Export reports.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @param tipo the tipo\r\n\t * @return the poliza import DTO\r\n\t */\r\n\tPolizaImportDTO exportReports(PolizaImportDTO importDTO, String tipo);\r\n\t\r\n\t\r\n\t/**\r\n\t * Generate excel.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @return the poliza import DTO\r\n\t */\r\n\tPolizaImportDTO generateExcel(PolizaImportDTO importDTO);\r\n\t\r\n\t/**\r\n\t * Generate head.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @return the list\r\n\t */\r\n\tList<PolizaExcelDTO> generateHead(PolizaImportDTO importDTO);\r\n\t\r\n\t/**\r\n\t * Generate body.\r\n\t *\r\n\t * @param importDTO the import DTO\r\n\t * @return the list\r\n\t */\r\n\tList<PolizaBody> generateBody(PolizaImportDTO importDTO);\r\n\t\r\n\t/**\r\n\t * Gets the path.\r\n\t *\r\n\t * @param cvePath the cve path\r\n\t * @return the path\r\n\t */\r\n\tString getPath(String cvePath);\r\n\t\r\n\t/**\r\n\t * Gets the mes activo.\r\n\t *\r\n\t * @param idSector the id sector\r\n\t * @return the mes activo\r\n\t */\r\n\tList<String> getMesActivo(Integer idSector);\r\n\r\n}",
"public Version1 readFromCursor(Cursor cursorFrom, Version1 bo)\n\t{\n\t\tif (bo == null) {\n\t\t\tbo = new Version1();\n\t\t}\n\t\tfinal Cursor c = cursorFrom; \n\n\t\tbo.setId(c.isNull(c.getColumnIndex(COL_ID)) ? null : c.getLong(c.getColumnIndex(COL_ID)));\n\t\tbo.setAddedInV2(c.getString(c.getColumnIndex(COL_ADDED_IN_V2)));\n\t\treturn bo;\n\t}",
"protected abstract Object toObject(InputStream inputStream, Type targetType) throws BeanConversionException;",
"@Override\n\t\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\t\t\n\t\t}",
"ActivityType loadActivityType(int id) throws DataAccessException;",
"public void linkRecords();",
"@Override\n protected void onConvertTransfer(Persona_tiene_Existencia values, DataSetEvent e) throws SQLException, UnsupportedOperationException\n {\n if (e.getDML() == insertProcedure)\n {\n e.setInt(1, values.getIdPersona());//\"vid_persona\"\n e.setInt(2, values.getEntrada());//\"ventrada\"\n e.setInt(3, values.getIdUbicacion());//\"vid_ubicacion\"\n e.setFloat(4, values.getExistencia());//\"vexistencia\"\n }\n\n else if (e.getDML() == updateProcedure)\n {\n e.setInt(1, values.getLinea_Viejo());//\"vlinea_old\"\n e.setInt(2, values.getIdPersona_Viejo());//\"vid_persona_old\"\n e.setInt(3, values.getIdPersona());//\"vid_persona_new\"\n e.setInt(4, values.getEntrada());//\"ventrada\"\n e.setInt(5, values.getIdUbicacion());//\"vid_ubicacion\"\n e.setFloat(6, values.getExistencia());//\"vexistencia\"\n }\n }",
"public static void process(final ImportMatch importMatch) {\n\t\tif (importMatch == null) {\n\t\t\treturn;\n\t\t}\n\t\tif (importMatch.fromObject == null || importMatch.liTo == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// check to see if the importMatch is null\n\t\tfor (ImportMatchDetail imd : importMatch.importMatchDetails) {\n\t\t\tif (imd.value == null) {\n\t\t\t\timportMatch.fromObject.setProperty(importMatch.liTo.getName(), null);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tOAObject obj = (OAObject) importMatch.liTo.getValue(importMatch.fromObject);\n\t\tif (obj != null) {\n\t\t\treturn; // already exists\n\t\t}\n\n\t\tfinal OAObjectInfo oi = OAObjectInfoDelegate.getOAObjectInfo(importMatch.fromObject);\n\n\t\tString sql = \"\";\n\t\tObject[] params = new Object[] {};\n\n\t\tfor (ImportMatchDetail imd : importMatch.importMatchDetails) {\n\t\t\tif (OAString.isNotEmpty(sql)) {\n\t\t\t\tsql += \" AND \";\n\t\t\t}\n\t\t\tsql += imd.propertyPath + \" = ?\";\n\t\t\tparams = OAArray.add(Object.class, params, imd.value);\n\t\t}\n\n\t\t// check to see if there is an Owner for liTo\n\t\tOALinkInfo liToOwner = null;\n\t\tfor (OALinkInfo li : importMatch.liTo.getToObjectInfo().getLinkInfos()) {\n\t\t\tif (li.getType() != OALinkInfo.TYPE_ONE) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tOALinkInfo rli = li.getReverseLinkInfo();\n\t\t\tif (rli.getType() != OALinkInfo.TYPE_MANY) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (rli.getOwner()) {\n\t\t\t\tliToOwner = li;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tOAObject objOwner = null; // owner of importMatch.liTo\n\n\t\t// this will add additional matching based on the link rules (ex: equalPropertyPath)\n\t\tfinal OAObjectInfo oiTo = importMatch.liTo.getToObjectInfo();\n\t\tfinal String[] importMatchPropertyNames = oiTo.getImportMatchPropertyNames();\n\n\t\tboolean bWasSearched = false;\n\t\tif (importMatchPropertyNames != null && importMatchPropertyNames.length > 0) {\n\t\t\tString ppFromObjectEqual = importMatch.liTo.getReverseLinkInfo().getEqualPropertyPath();\n\t\t\tString ppToObjectEqual = importMatch.liTo.getEqualPropertyPath();\n\n\t\t\tif (OAString.isNotEmpty(ppFromObjectEqual) && OAString.isNotEmpty(ppToObjectEqual)) {\n\t\t\t\tObject val = importMatch.fromObject.getProperty(ppFromObjectEqual);\n\n\t\t\t\tif (OAString.isNotEmpty(sql)) {\n\t\t\t\t\tsql += \" AND \";\n\t\t\t\t}\n\t\t\t\tsql += ppToObjectEqual + \" = ?\";\n\t\t\t\tparams = OAArray.add(params, val);\n\n\t\t\t\tif (liToOwner != null && val instanceof OAObject) {\n\t\t\t\t\tOAPropertyPath ppx = new OAPropertyPath(importMatch.liTo.getToClass(), ppToObjectEqual);\n\t\t\t\t\tif (liToOwner == ppx.getEndLinkInfo() && ppx.getLinkInfos().length == 1) {\n\t\t\t\t\t\tobjOwner = (OAObject) val;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tOALinkInfo li = oiTo.getLinkInfo(ppToObjectEqual);\n\t\t\t\tif (li != null) {\n\t\t\t\t\tOALinkInfo rli = li.getReverseLinkInfo();\n\t\t\t\t\tObject objx = rli.getValue(val);\n\t\t\t\t\tif (objx instanceof Hub) {\n\t\t\t\t\t\tHub hub = (Hub) objx;\n\n\t\t\t\t\t\tOAFinder finder = new OAFinder();\n\t\t\t\t\t\tOAQueryFilter filter = new OAQueryFilter(oiTo.getForClass(), sql, params);\n\t\t\t\t\t\tfinder.addFilter(filter);\n\t\t\t\t\t\tobj = finder.findFirst(hub);\n\n\t\t\t\t\t\tbWasSearched = true;\n\t\t\t\t\t} else if (objx instanceof OAObject) {\n\t\t\t\t\t\tOAObject oaobj = (OAObject) objx;\n\n\t\t\t\t\t\tOAFinder finder = new OAFinder();\n\t\t\t\t\t\tOAQueryFilter filter = new OAQueryFilter(oiTo.getForClass(), sql, params);\n\t\t\t\t\t\tfinder.addFilter(filter);\n\t\t\t\t\t\tobj = finder.findFirst(oaobj);\n\n\t\t\t\t\t\tbWasSearched = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!bWasSearched) {\n\t\t\tOASelect sel = new OASelect(importMatch.liTo.getToClass(), sql, params, \"\");\n\t\t\tobj = sel.next();\n\t\t\tsel.close();\n\n\t\t\tif (obj == null) {\n\t\t\t\tOAFinder finder = new OAFinder();\n\t\t\t\tOAQueryFilter filter = new OAQueryFilter(importMatch.liTo.getToClass(), sql, params);\n\t\t\t\tfinder.addFilter(filter);\n\n\t\t\t\tobj = (OAObject) OAObjectCacheDelegate.find(importMatch.liTo.getToClass(), finder);\n\t\t\t}\n\t\t}\n\n\t\tif (obj == null) {\n\t\t\tobj = (OAObject) OAObjectReflectDelegate.createNewObject(importMatch.liTo.getToClass());\n\n\t\t\tfor (ImportMatchDetail detail : importMatch.importMatchDetails) {\n\t\t\t\tcreateHierObjects(obj, OAObjectInfoDelegate.getOAObjectInfo(obj), detail.propertyPath, detail.value);\n\t\t\t}\n\n\t\t\tif (objOwner != null) {\n\t\t\t\tobj.setProperty(liToOwner.getName(), objOwner);\n\t\t\t}\n\t\t}\n\t\timportMatch.fromObject.setProperty(importMatch.liTo.getName(), obj);\n\t}",
"void saveActivityHistForAddEntity(Record inputRecord);",
"private void importData() {\n // if alarmAdapter null it's means data have not imported, yet or database is empty\n if (alarmAdapter == null) {\n // initialize database manager\n dataBaseManager = new DataBaseManager(this);\n // get Alarm ArrayList from database\n ArrayList<Alarm> arrayList = dataBaseManager.getAlarmList();\n // create Alarm adapter to display detail through RecyclerView\n alarmAdapter = new AlarmAdapter(arrayList, this);\n\n }\n }",
"OID [] importInto(OID parent) throws DatabaseException, FilterException, ShadowObjectException;",
"public void load2() throws Exception {\n String query = \"select * from catalog_snapshot where item_id = \" + item_id + \" and facility_id = '\" + facility_id + \"'\";\n query += \" and fac_item_id = '\" + this.fac_item_id + \"'\";\n DBResultSet dbrs = null;\n ResultSet rs = null;\n try {\n dbrs = db.doQuery(query);\n rs = dbrs.getResultSet();\n if (rs.next()) {\n setItemId( (int) rs.getInt(\"ITEM_ID\"));\n setFacItemId(rs.getString(\"FAC_ITEM_ID\"));\n setMaterialDesc(rs.getString(\"MATERIAL_DESC\"));\n setGrade(rs.getString(\"GRADE\"));\n setMfgDesc(rs.getString(\"MFG_DESC\"));\n setPartSize( (float) rs.getFloat(\"PART_SIZE\"));\n setSizeUnit(rs.getString(\"SIZE_UNIT\"));\n setPkgStyle(rs.getString(\"PKG_STYLE\"));\n setType(rs.getString(\"TYPE\"));\n setPrice(BothHelpObjs.makeBlankFromNull(rs.getString(\"PRICE\")));\n setShelfLife( (float) rs.getFloat(\"SHELF_LIFE\"));\n setShelfLifeUnit(rs.getString(\"SHELF_LIFE_UNIT\"));\n setUseage(rs.getString(\"USEAGE\"));\n setUseageUnit(rs.getString(\"USEAGE_UNIT\"));\n setApprovalStatus(rs.getString(\"APPROVAL_STATUS\"));\n setPersonnelId( (int) rs.getInt(\"PERSONNEL_ID\"));\n setUserGroupId(rs.getString(\"USER_GROUP_ID\"));\n setApplication(rs.getString(\"APPLICATION\"));\n setFacilityId(rs.getString(\"FACILITY_ID\"));\n setMsdsOn(rs.getString(\"MSDS_ON_LINE\"));\n setSpecOn(rs.getString(\"SPEC_ON_LINE\"));\n setMatId( (int) rs.getInt(\"MATERIAL_ID\"));\n setSpecId(rs.getString(\"SPEC_ID\"));\n setMfgPartNum(rs.getString(\"MFG_PART_NO\"));\n\n //trong 3-27-01\n setCaseQty(BothHelpObjs.makeZeroFromNull(rs.getString(\"CASE_QTY\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n HelpObjs.monitor(1,\n \"Error object(\" + this.getClass().getName() + \"): \" + e.getMessage(), null);\n throw e;\n } finally {\n dbrs.close();\n }\n return;\n }",
"public interface Activity extends EJBObject {\r\n public void setLinkCondition(String linkCondition, Vector binds) throws RemoteException;\r\n\r\n public void setData(ActivityDao attrs) throws RemoteException;\r\n\r\n public ActivityDao getData() throws RemoteException;\r\n\r\n public void insert(ActivityDao attrs) throws RemoteException, DupKeyException, UserException;\r\n\r\n public void update(ActivityDao attrs) throws RemoteException, UserException;\r\n\r\n public void delete(Vector<String> actlistID) throws RemoteException, ConstraintViolatedException, UserException;\r\n\r\n public void findByPrimaryKey(ActivityDao attrs) throws RemoteException, RowNotFoundException, UserException;\r\n\r\n public void findNext(ActivityDao attrs) throws RemoteException, FinderException, RowNotFoundException;\r\n\r\n public void findPrev(ActivityDao attrs) throws RemoteException, FinderException, RowNotFoundException;\r\n\r\n public Collection listAll() throws RemoteException, RowNotFoundException, UserException;\r\n\r\n public Collection find(ActivityDao attrs) throws RemoteException, FinderException, RowNotFoundException;\r\n\r\n public Collection findExact(ActivityDao attrs) throws RemoteException, FinderException, RowNotFoundException;\r\n\r\n public String[] lookupDesc(Object[] pkKeys) throws RemoteException, RowNotFoundException;\r\n\r\n public Collection<ActivityDao> getActivityTree(String startActivityNode) throws RemoteException, RowNotFoundException, UserException;\r\n}",
"public void loadActivitiesFromCsv(UserTrees tree, LocalDateTime timePeriodBegin, LocalDateTime timePeriodEnd) {\n\t\t\n\t\tActivity atividade;\n\t\tNode<Object> userNode, timeNode, pcNode;\n\t\tString csvLine = getNextLine();\n\t\t/*Verifies if the line is a header. ignores it if that's the case*/\n\t\tPattern p = Pattern.compile(\"/id|date|user|pc|activity/i\");\n\t\tMatcher m = p.matcher( csvLine );\n\t\tif(!m.find()) {\n\t\t\tatividade = (Activity) stringsToClass( parseCsvLine( csvLine ) );\n\t\t\t\n\t\t\tuserNode = tree.getUserNode( atividade.getUserIdentifier() );\n\t\t\ttimeNode = userNode.getChild(0);\n\t\t\tpcNode = loadPcIntoTime(timeNode, atividade.getPc());\n\t\t\tloadActivityIntoPc(pcNode, atividade);\t\n\t\t\tif(atividade.getDate().isAfter(timePeriodBegin) && atividade.getDate().isBefore(timePeriodEnd))\n\t\t\t{\n\t\t\t\ttimeNode = userNode.getChild(1);\n\t\t\t\tpcNode = loadPcIntoTime(timeNode, atividade.getPc());\n\t\t\t\tloadActivityIntoPc(pcNode, atividade);\n\t\t\t}\n\t\t}\n\t\tcsvLine = getNextLine();\n\t\twhile(csvLine != null)\n\t\t{\n\t\t\tatividade = (Activity) stringsToClass( parseCsvLine( csvLine ) );\n\t\t\tif(atividade==null)\n\t\t\t{\n\t\t\t\tcsvLine = getNextLine();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tuserNode = tree.getUserNode( atividade.getUserIdentifier() );\n\t\t\tif(userNode == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttimeNode = userNode.getChild(0);\n\t\t\tpcNode = loadPcIntoTime(timeNode, atividade.getPc());\n\t\t\tloadActivityIntoPc(pcNode, atividade);\t\n\t\t\tif(timePeriodBegin == null || timePeriodEnd == null) \n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(atividade.getDate().isAfter(timePeriodBegin) && atividade.getDate().isBefore(timePeriodEnd))\n\t\t\t{\n\t\t\t\ttimeNode = userNode.getChild(1);\n\t\t\t\tpcNode = loadPcIntoTime(timeNode, atividade.getPc());\n\t\t\t\tloadActivityIntoPc(pcNode, atividade);\n\t\t\t}\n\t\t\tcsvLine = getNextLine();\n\t\t}\n\t\t\n\t}",
"public <E extends cn.vertxup.atom.domain.tables.interfaces.IMRelation> E into(E into);",
"@Override\n public void moveToActivity(ShenFenBean.DataBean dataBean) {\n }",
"private PassedData(Parcel p) {\n this.a = p.readInt();\n this.b = p.readLong();\n this.c = p.readString();\n }",
"private void processMetadataFromLoader() {\n\n int recordCount = mdi.readInt();\n\n long currentTime = System.currentTimeMillis();\n synchronized (entities) {\n clearOldTempIndexes(currentTime);\n\n for (int i = 0; i < recordCount; i++) {\n int tempIndex = mdi.readInt();\n assert DirectProtocol.isValidTempIndex(tempIndex);\n String symbol = mdi.readCharSequence().toString().intern();\n\n ConstantIdentityKey key;\n int entityIndex = entities.get(symbol, NOT_FOUND_VALUE);\n if (entityIndex == NOT_FOUND_VALUE) {\n entityIndex = entities.size();\n key = new ConstantIdentityKey(symbol);\n entities.put(key, entityIndex);\n } else {\n key = entities.getKeyObject(symbol);\n }\n\n // Note: key is guarantied to be same object as in \"entities\" field\n tempIndexes.put(tempIndex, key);\n\n sendMetadata(symbol, entityIndex);\n }\n if (recordCount > 0) {\n lastTempIndexAdded = currentTime;\n }\n }\n }",
"@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(id);\n dest.writeInt(date);\n dest.writeString(event);\n dest.writeString(location);\n dest.writeString(startTime);\n dest.writeString(endTime);\n dest.writeString(notes);\n dest.writeByte((byte) (allDay == null ? 0 : allDay ? 1 : 2));\n dest.writeInt(bigId);\n dest.writeInt(alarm);\n }",
"public abstract void readDataItem(BDTuple tuple) throws RollbackException;",
"private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void getFromParcel(Parcel in)\n {\n this.clear();\n\n //Récupération du nombre d'objet\n int size = in.readInt();\n\n //On repeuple la liste avec de nouveau objet\n for(int i = 0; i < size; i++)\n {\n MeteoData meteoData = new MeteoData();\n meteoData.setDateDebut(in.readString());\n meteoData.setDateFin(in.readString());\n meteoData.setTemperature(in.readString());\n meteoData.setSymbole(in.readString());\n meteoData.setWindSpeed(in.readString());\n meteoData.setWindDirection(in.readString());\n meteoData.setWindDescription(in.readString());\n meteoData.setClouds(in.readString());\n meteoData.setHumidity(in.readString());\n this.add(meteoData);\n }\n\n\n }",
"public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}",
"protected void loadData()\n {\n }",
"public interface WorkoutBatch extends UnObfuscable, Parcelable{\n\n\t/**\n\t * attribute given record to this batch\n\t * @param record which is to be attributed to this batch\n\t */\n\tvoid addRecord(DistRecord record, boolean persistPoints);\n\n\t/**\n\t * @return distance covered in this batch\n\t */\n\tfloat getDistance();\n\n\t/**\n\t * adds distance in this batch\n\t */\n\tvoid addDistance(float distanceToAdd);\n\n\t/**\n\t * sets the start point for this batch\n\t * @param location\n\t */\n\tvoid setStartPoint(Location location, boolean persistPoints);\n\n\t/**\n\t * @return the epoch (in millis) at which this batch began\n\t */\n\tlong getStartTimeStamp();\n\n\t/**\n\t * @return the epoch (in millis) at which this batch ended, or 0 if the batch has not ended yet\n\t */\n\tlong getEndTimeStamp();\n\n\t/**\n\t * @return Name of the file (internal storage) in which this batche's location data is stored\n\t */\n\tString getLocationDataFileName();\n\n\t/**\n\t * @return the epoch (in millis) at which the last point of this batch was recorded\n\t */\n\tlong getLastRecordedTimeStamp();\n\n\t/**\n\t * @return elapsed time, till the batch is running, since the beginning of this batch in secs;\n\t * once the batch completes it returns the total time for which the batch was running\n\t */\n\tfloat getElapsedTime();\n\n\t/**\n\t * @return time interval in secs for which distance has been recorded\n\t */\n\tfloat getRecordedTime();\n\n\t/**\n\t * @return true if user was caught inside a vehicle for this batch, false otherwise\n\t */\n\tboolean wasInVehicle();\n\n\t/**\n\t * @return list of all points of this batch\n\t */\n\tList<WorkoutPoint> getPoints();\n\n\t/**\n\t *completes this batch and returns this after whatever post processing is required\n\t */\n\tWorkoutBatch end(boolean wasInVehicle);\n\n\t/**\n\t * Creates a Deep copy of this batch\n\t */\n\tWorkoutBatch copy();\n}",
"@Override\n public void process(StreamingInput<Tuple> stream, Tuple tuple) throws Exception {\n \t\n \t// Collect fields to add to JSON output.\n\t\tStreamSchema schema = tuple.getStreamSchema();\n \tSet<String> attributeNames = schema.getAttributeNames();\n \tJSONObject jsonFields = new JSONObject();\n\t \n\tfor (String attributeName : attributeNames) {\n\t\tif (schema.getAttribute(attributeName).getType().getMetaType() == Type.MetaType.RSTRING) {\n\t\t\tjsonFields.put(attributeName, tuple.getObject(attributeName).toString());\n\t\t} else {\n\t\t\tjsonFields.put(attributeName, tuple.getObject(attributeName));\n\t\t}\n\t}\n \n \t// Add timestamp, if specified, for time-based queries.\n \tif (timestampName != null) {\n \t\tDateFormat df = new SimpleDateFormat(\"yyyy'-'MM'-'dd'T'HH':'mm':'ss.SSSZZ\");\n \t\t\n \t\tif (attributeNames.contains(timestampName) && schema.getAttribute(timestampName).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(timestampName).equals(\"\")) {\n \t\t\tString timestampToInsert = tuple.getString(timestampName);\n \t\t\tjsonFields.put(timestampName, df.format(timestampToInsert));\n \t\t} else {\n \t\t\tjsonFields.put(timestampName, df.format(new Date(System.currentTimeMillis())));\n \t\t}\n \t}\n \t\n \t// Get index name/type/id specified inside tuple (default: from params).\n \tString indexToInsert = index;\n \tString typeToInsert = type;\n \tString idToInsert = null;\n \t\n \tif (attributeNames.contains(index) && schema.getAttribute(index).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(index).equals(\"\")) {\n \t\tindexToInsert = tuple.getString(index);\n \t}\n \t\n \tif (attributeNames.contains(type) && schema.getAttribute(type).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(type).equals(\"\")) {\n \t\ttypeToInsert = tuple.getString(type);\n \t}\n\n \tif (id != null && attributeNames.contains(id) && schema.getAttribute(id).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(id).equals(\"\")) {\n \t\tidToInsert = tuple.getString(id);\n \t}\n \t\n \tif (connectedToElasticsearch(indexToInsert, typeToInsert)) {\n \t\n \t\t// Add jsonFields to bulkBuilder.\n \tString source = jsonFields.toString();\n \t\n \tif (idToInsert != null) {\n \t\tbulkBuilder.addAction(new Index.Builder(source).index(indexToInsert).type(typeToInsert).id(idToInsert).build());\n \t} else {\n \t\tbulkBuilder.addAction(new Index.Builder(source).index(indexToInsert).type(typeToInsert).build());\n \t}\n \t\n \tcurrentBulkSize++;\n \t\n \t// If bulk size met, output jsonFields to Elasticsearch.\n \tif(currentBulkSize >= bulkSize) {\n\t \tBulk bulk = bulkBuilder.build();\n\t \tBulkResult result;\n\t \t\n\t \ttry {\n\t\t \tresult = client.execute(bulk);\n\t \t} catch (NoHttpResponseException e) {\n\t \t\t_trace.error(e);\n\t \t\treturn;\n\t \t}\n\t \t\n \t\t\tif (result.isSucceeded()) {\n \t\t\t\tlong currentNumInserts = numInserts.getValue();\n \t\t\t\tnumInserts.setValue(currentNumInserts + bulkSize);\n \t\t\t\tcurrentBulkSize = 0;\n \t\t\t} else {\n \t\t\t\tfor (BulkResultItem item : result.getItems()) {\n \t\t\t\t\tif (item.error != null) {\n \t\t\t\t\t\tnumInserts.increment();\n \t\t\t\t\t} else {\n \t\t\t\t\t\ttotalFailedRequests.increment();\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t// Clear bulkBuilder. Gets recreated in connectedToElasticsearch().\n \t\t\tbulkBuilder = null;\n \t\t\t\n \t\t\t// Get size metrics for current type.\n \t\t\tif (sizeMetricsEnabled && mapperSizeInstalled) {\n\t \t\t\tString query = \"{\\n\" +\n\t \t \" \\\"query\\\" : {\\n\" +\n\t \t \" \\\"match_all\\\" : {}\\n\" +\n\t \t \" },\\n\" +\n\t \t \" \\\"aggs\\\" : {\\n\" +\n\t \t \" \\\"size_metrics\\\" : {\\n\" +\n\t \t \" \\\"extended_stats\\\" : {\\n\" +\n\t \t \" \\\"field\\\" : \\\"_size\\\"\\n\" +\n\t \t \" }\\n\" +\n\t \t \" }\\n\" +\n\t \t \" }\\n\" +\n\t \t \"}\";\n\t \t\t\t\n\t \t Search search = new Search.Builder(query)\n\t \t .addIndex(indexToInsert)\n\t \t .addType(typeToInsert)\n\t \t .build();\n\t \t \n\t \t SearchResult searchResult = client.execute(search);\n\t \t \n\t \t if (searchResult.isSucceeded()) {\n\t\t \t ExtendedStatsAggregation sizeMetrics = searchResult.getAggregations().getExtendedStatsAggregation(\"size_metrics\");\n\t\t \t\t\t\n\t\t \t if (sizeMetrics != null) {\n\t\t \t \tif (sizeMetrics.getAvg() != null) {\n\t\t\t\t \t\t\tavgInsertSizeBytes.setValue(sizeMetrics.getAvg().longValue());\n\t\t \t \t}\n\t\t \t \tif (sizeMetrics.getMax() != null) {\n\t\t \t \t\tmaxInsertSizeBytes.setValue(sizeMetrics.getMax().longValue());\n\t\t \t \t}\n\t\t \t \tif (sizeMetrics.getMin() != null) {\n\t\t \t \t\tminInsertSizeBytes.setValue(sizeMetrics.getMin().longValue());\n\t\t \t \t}\n\t\t \t \tif (sizeMetrics.getSum() != null) {\n\t\t \t \t\tsumInsertSizeBytes.setValue(sizeMetrics.getSum().longValue());\n\t\t \t \t}\n\t\t \t }\n\t \t }\n \t\t\t}\n \t\t}\n \t}\n }",
"public RecordSet loadAllProcessingEvent(Record inputRecord, RecordLoadProcessor entitlementRLP);",
"private void readFromParcel(Parcel in) \r\n\t{\n\t\tthis.id \t\t\t= in.readInt();\r\n\t\tthis.desc\t\t\t= in.readString();\r\n\t\tthis.titulo_imagem \t= in.readString();\r\n\t\tthis.titulo_som\t\t= in.readString();\r\n\t\tthis.ext\t\t\t= in.readString();\r\n\t\tthis.tipo\t\t\t= in.readString().charAt(0);\r\n\t\tthis.cmd\t\t\t= in.readInt();\r\n\t\tthis.atalho\t\t\t= (in.readInt() == 1) ? true : false;\r\n\t\tthis.pagina\t\t\t= in.readInt();\r\n\t\tthis.ordem\t\t\t= in.readInt();\r\n\t}",
"@NonNull\n @MainThread\n protected abstract LiveData<ResultType> loadFromDb();",
"@Override\n protected void load() {\n //recordId can be null when in batchMode\n if (this.recordId != null && this.properties.isEmpty()) {\n this.sqlgGraph.tx().readWrite();\n if (this.sqlgGraph.getSqlDialect().supportsBatchMode() && this.sqlgGraph.tx().getBatchManager().isStreaming()) {\n throw new IllegalStateException(\"streaming is in progress, first flush or commit before querying.\");\n }\n\n //Generate the columns to prevent 'ERROR: cached plan must not change result type\" error'\n //This happens when the schema changes after the statement is prepared.\n @SuppressWarnings(\"OptionalGetWithoutIsPresent\")\n EdgeLabel edgeLabel = this.sqlgGraph.getTopology().getSchema(this.schema).orElseThrow(() -> new IllegalStateException(String.format(\"Schema %s not found\", this.schema))).getEdgeLabel(this.table).orElseThrow(() -> new IllegalStateException(String.format(\"EdgeLabel %s not found\", this.table)));\n StringBuilder sql = new StringBuilder(\"SELECT\\n\\t\");\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(\"ID\"));\n appendProperties(edgeLabel, sql);\n List<VertexLabel> outForeignKeys = new ArrayList<>();\n for (VertexLabel vertexLabel : edgeLabel.getOutVertexLabels()) {\n outForeignKeys.add(vertexLabel);\n sql.append(\", \");\n if (vertexLabel.hasIDPrimaryKey()) {\n String foreignKey = vertexLabel.getSchema().getName() + \".\" + vertexLabel.getName() + Topology.OUT_VERTEX_COLUMN_END;\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(foreignKey));\n } else {\n int countIdentifier = 1;\n for (String identifier : vertexLabel.getIdentifiers()) {\n PropertyColumn propertyColumn = vertexLabel.getProperty(identifier).orElseThrow(\n () -> new IllegalStateException(String.format(\"identifier %s column must be a property\", identifier))\n );\n PropertyType propertyType = propertyColumn.getPropertyType();\n String[] propertyTypeToSqlDefinition = this.sqlgGraph.getSqlDialect().propertyTypeToSqlDefinition(propertyType);\n int count = 1;\n for (String ignored : propertyTypeToSqlDefinition) {\n if (count > 1) {\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + propertyType.getPostFixes()[count - 2] + Topology.OUT_VERTEX_COLUMN_END));\n } else {\n //The first column existVertexLabel no postfix\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + Topology.OUT_VERTEX_COLUMN_END));\n }\n if (count++ < propertyTypeToSqlDefinition.length) {\n sql.append(\", \");\n }\n }\n if (countIdentifier++ < vertexLabel.getIdentifiers().size()) {\n sql.append(\", \");\n }\n }\n }\n }\n List<VertexLabel> inForeignKeys = new ArrayList<>();\n for (VertexLabel vertexLabel : edgeLabel.getInVertexLabels()) {\n sql.append(\", \");\n inForeignKeys.add(vertexLabel);\n if (vertexLabel.hasIDPrimaryKey()) {\n String foreignKey = vertexLabel.getSchema().getName() + \".\" + vertexLabel.getName() + Topology.IN_VERTEX_COLUMN_END;\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(foreignKey));\n } else {\n int countIdentifier = 1;\n for (String identifier : vertexLabel.getIdentifiers()) {\n PropertyColumn propertyColumn = vertexLabel.getProperty(identifier).orElseThrow(\n () -> new IllegalStateException(String.format(\"identifier %s column must be a property\", identifier))\n );\n PropertyType propertyType = propertyColumn.getPropertyType();\n String[] propertyTypeToSqlDefinition = this.sqlgGraph.getSqlDialect().propertyTypeToSqlDefinition(propertyType);\n int count = 1;\n for (String ignored : propertyTypeToSqlDefinition) {\n if (count > 1) {\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + propertyType.getPostFixes()[count - 2] + Topology.IN_VERTEX_COLUMN_END));\n } else {\n //The first column existVertexLabel no postfix\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + Topology.IN_VERTEX_COLUMN_END));\n }\n if (count++ < propertyTypeToSqlDefinition.length) {\n sql.append(\", \");\n }\n }\n if (countIdentifier++ < vertexLabel.getIdentifiers().size()) {\n sql.append(\", \");\n }\n }\n }\n }\n sql.append(\"\\nFROM\\n\\t\");\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(this.schema));\n sql.append(\".\");\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(EDGE_PREFIX + this.table));\n sql.append(\" WHERE \");\n //noinspection Duplicates\n if (edgeLabel.hasIDPrimaryKey()) {\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(\"ID\"));\n sql.append(\" = ?\");\n } else {\n int count = 1;\n for (String identifier : edgeLabel.getIdentifiers()) {\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(identifier));\n sql.append(\" = ?\");\n if (count++ < edgeLabel.getIdentifiers().size()) {\n sql.append(\" AND \");\n }\n\n }\n }\n if (this.sqlgGraph.getSqlDialect().needsSemicolon()) {\n sql.append(\";\");\n }\n Connection conn = this.sqlgGraph.tx().getConnection();\n if (logger.isDebugEnabled()) {\n logger.debug(sql.toString());\n }\n try (PreparedStatement preparedStatement = conn.prepareStatement(sql.toString())) {\n if (edgeLabel.hasIDPrimaryKey()) {\n preparedStatement.setLong(1, this.recordId.sequenceId());\n } else {\n int count = 1;\n for (Comparable identifierValue : this.recordId.getIdentifiers()) {\n preparedStatement.setObject(count++, identifierValue);\n }\n }\n ResultSet resultSet = preparedStatement.executeQuery();\n if (resultSet.next()) {\n loadResultSet(resultSet, inForeignKeys, outForeignKeys);\n }\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }\n }",
"public interface DataSource extends DataSourceBase {\n /***\n * @param authenticationInfo A HashMap of any authentication information that came through in the request headers from the mobile client\n * @param params a HashMap of the URL parameters included in the request.\n * @return The data source response that contains the list of data set items you want to return\n */\n DataSet getDataSet(AuthenticationInfo authenticationInfo, Parameters params);\n\n /***\n *\n * @param id The ID of the item to fetch\n * @param authenticationInfo a HashMap of any authentication information that came through in the request headers from the mobile client\n * @param parameters a HashMap of the URL parameters included in the request\n * @return The data source response that contains the data set item with the requested ID\n */\n\n DataSetItem getRecord(String id, AuthenticationInfo authenticationInfo, Parameters parameters);\n\n\n /**\n * @param queryDataItem The data set item containing the values to be searched on\n * @param authenticationInfo a HashMap of any authentication parameters that came through in the request headers\n * @param params a HashMap of the URL parameters included in the request\n * @return The data source response that contains the list of data set items which meet the search criteria\n */\n default DataSet queryDataSet(DataSetItem queryDataItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Search is not supported on this web service\");\n }\n\n /**\n * @param dataSetItem The data set item to be created\n * @param authenticationInfo a Hashmap of any authentication parameters that came through the request headers\n * @param params a HashMap of the URL parameters included in the request\n * @return The data source response that contains the newly created data set item\n */\n default RecordActionResponse createRecord(DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Create is not supported on this web service\");\n }\n\n /**\n * @param dataSetItem The data set item to be updated\n * @param authenticationInfo a HashMap of any authentication parameters that came from the request headers\n * @param params a Hashmap of the URL parameters included in the request\n * @return The DataSet that contains a single item that represents the updated item.\n */\n\n default RecordActionResponse updateRecord(DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Update is not supported on this web service\");\n }\n\n /**\n * @param dataSetItem The data set item to be validated\n * @param authenticationInfo a HashMap of any authentication parameters that came from the request headers\n * @param params a Hashmap of the URL parameters included in the request\n * @return The DataSet that contains a single item that represents the validated item.\n */\n\n default RecordActionResponse validateRecord(DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Validation is not supported on this web service\");\n }\n\n /**\n * @param dataSetItemID the data set item ID that the event is related to\n * @param event the ATEvent object\n * @param authenticationInfo a HashMap of any authentication parameters that came from the request\n * @param params a Parameters object of any URL parameters from the request\n */\n default Response updateEventForDataSetItem(String dataSetItemID, Event event, AuthenticationInfo authenticationInfo, Parameters params) {\n return Response.success();\n }\n\n /**\n * This will update a list of data set items according to the given data set item\n *\n * @param primaryKeys a list of data set item IDs to update\n * @param dataSetItem the data set item values used to update. IMPORTANT: Only the attributes that are getting bulk updated will be included.\n * @param authenticationInfo a HashMap of any authentication parameters sent in the request\n * @param params a Parameters object of any URL parameters from the request\n * @return an DataSourceResponse\n */\n default DataSet bulkUpdateDataSetItems(List<String> primaryKeys, DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Bulk update is not supported by this web service\");\n }\n\n /**\n * @param dataSetItemID the ID of the data set item to delete\n * @param authenticationInfo a HashMap of any authentication parameters sent in the request\n * @param params a Parameters object of any URL parameters from the request\n * @return\n */\n default RecordActionResponse deleteRecord(String dataSetItemID, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Delete is not supported on this web service\");\n }\n\n\n\n}",
"private <ResultType> void importDataToField(Result<ResultType> data, ActionImportField field) {\n List<Object> exportValues = getExportCandidatesForField(data, field);\n\n field.setValueIntelligently(exportValues);\n }",
"public abstract void loadFromDatabase();",
"public <E extends com.lvl6.mobsters.db.jooq.generated.tables.interfaces.ILoadTestingEvents> E into(E into);",
"@Override\n public void onClick(View v) {\n\n Intent i = new Intent(context, DetailActivity.class); //create intent to switch screen\n\n //trying to place movie into putExtra by putting it into Parcelable value (bc method can't take movie object)\n //we use Parcelable (go to AndroidStudio ref. where they have the code to allow u to use Parceler library\n //essentially, you place the implementation code into buildgradle file\n i.putExtra(\"movie\", Parcels.wrap(movie));\n //add @Parcel to Movie class and add empty constructor as shown in AU (android U) page + empty constructor\n //now you can go to DetailActivity to retrieve the whole movie object just by using an intent\n\n context.startActivity(i);\n\n }",
"public static Bundle workoutLoadFields(int inputRowID, Context mContext) {\n\n Bundle outputBundle = new Bundle();\n\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n\n String[] projection = {\n DatabaseContract.WorkoutListEntry._ID,\n DatabaseContract.WorkoutListEntry.COLUMN_ISCLIMB,\n DatabaseContract.WorkoutListEntry.COLUMN_ISGRADECODE,\n DatabaseContract.WorkoutListEntry.COLUMN_ISREPCOUNTPERSET,\n DatabaseContract.WorkoutListEntry.COLUMN_ISREPDURATIONPERSET,\n DatabaseContract.WorkoutListEntry.COLUMN_ISRESTDURATIONPERSET,\n DatabaseContract.WorkoutListEntry.COLUMN_ISSETCOUNT,\n DatabaseContract.WorkoutListEntry.COLUMN_ISMOVECOUNT,\n DatabaseContract.WorkoutListEntry.COLUMN_ISWALLANGLE,\n DatabaseContract.WorkoutListEntry.COLUMN_ISHOLDTYPE,\n DatabaseContract.WorkoutListEntry.COLUMN_ISWEIGHT};\n String whereClause = DatabaseContract.WorkoutListEntry._ID + \"=?\";\n String[] whereValue = {String.valueOf(inputRowID)};\n\n Cursor cursor = database.query(DatabaseContract.WorkoutListEntry.TABLE_NAME,\n projection,\n whereClause,\n whereValue,\n null,\n null,\n null);\n\n try {\n cursor.moveToFirst();\n\n // Get and set route name\n int idColumnOutput = cursor.getColumnIndex(DatabaseContract.WorkoutListEntry.COLUMN_ISCLIMB);\n int outputIsClimb = cursor.getInt(idColumnOutput);\n\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.WorkoutListEntry.COLUMN_ISGRADECODE);\n int outputIsGradeCode = cursor.getInt(idColumnOutput);\n\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.WorkoutListEntry.COLUMN_ISREPCOUNTPERSET);\n int outputIsRepCountPerSet = cursor.getInt(idColumnOutput);\n\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.WorkoutListEntry.COLUMN_ISREPDURATIONPERSET);\n int outputRepDurationPerSet = cursor.getInt(idColumnOutput);\n\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.WorkoutListEntry.COLUMN_ISRESTDURATIONPERSET);\n int outputIsRestDuratonPerSet = cursor.getInt(idColumnOutput);\n\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.WorkoutListEntry.COLUMN_ISSETCOUNT);\n int outputIsSetCount = cursor.getInt(idColumnOutput);\n\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.WorkoutListEntry.COLUMN_ISMOVECOUNT);\n int outputIsMoveCount = cursor.getInt(idColumnOutput);\n\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.WorkoutListEntry.COLUMN_ISWALLANGLE);\n int outputIsWallAngle = cursor.getInt(idColumnOutput);\n\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.WorkoutListEntry.COLUMN_ISHOLDTYPE);\n int outputIsHoldType = cursor.getInt(idColumnOutput);\n\n idColumnOutput = cursor.getColumnIndex(DatabaseContract.WorkoutListEntry.COLUMN_ISWEIGHT);\n int outputIsWeight = cursor.getInt(idColumnOutput);\n\n outputBundle.putInt(\"outputIsClimb\", outputIsClimb);\n outputBundle.putInt(\"outputIsGradeCode\", outputIsGradeCode);\n outputBundle.putInt(\"outputIsRepCountPerSet\", outputIsRepCountPerSet);\n outputBundle.putInt(\"outputRepDurationPerSet\", outputRepDurationPerSet);\n outputBundle.putInt(\"outputIsRestDuratonPerSet\", outputIsRestDuratonPerSet);\n outputBundle.putInt(\"outputIsSetCount\", outputIsSetCount);\n outputBundle.putInt(\"outputIsMoveCount\", outputIsMoveCount);\n outputBundle.putInt(\"outputIsWallAngle\", outputIsWallAngle);\n outputBundle.putInt(\"outputIsHoldType\", outputIsHoldType);\n outputBundle.putInt(\"outputIsWeight\", outputIsWeight);\n\n return outputBundle;\n\n } finally {\n cursor.close();\n database.close();\n }\n\n }",
"public void otherRead(IDataHolder dc);",
"public void from(com.lvl6.mobsters.db.jooq.generated.tables.interfaces.ILoadTestingEvents from);",
"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}",
"public interface ImportExport {\n public String exportUserDataAsString(Users users) throws Exception;\n public File exportUserDataAsFile(Users users)throws Exception;\n public Users importUserData() throws Exception;\n}",
"public RecordSet loadExpHistoryInfo(Record inputRecord);",
"@Override\n public void writeToParcel(Parcel dest, int flags) {\n\n }",
"private void convertData() {\n m_traces = new ArrayList<Trace>();\n\n for (final TraceList trace : m_module.getContent().getTraceContainer().getTraces()) {\n m_traces.add(new Trace(trace));\n }\n\n m_module.getContent().getTraceContainer().addListener(m_traceListener);\n\n m_functions = new ArrayList<Function>();\n\n for (final INaviFunction function :\n m_module.getContent().getFunctionContainer().getFunctions()) {\n m_functions.add(new Function(this, function));\n }\n\n for (final Function function : m_functions) {\n m_functionMap.put(function.getNative(), function);\n }\n\n m_views = new ArrayList<View>();\n\n for (final INaviView view : m_module.getContent().getViewContainer().getViews()) {\n m_views.add(new View(this, view, m_nodeTagManager, m_viewTagManager));\n }\n\n createCallgraph();\n }",
"@Override\n\t\t\tpublic void writeToParcel(Parcel arg0, int arg1) {\n\t\t\t\t\n\t\t\t}",
"@Override public void writeToParcel(Parcel dest, int flags) { }",
"private Object copy ( Object record )\n\t{\n\t try\n {\n ByteArrayOutputStream baos = new ByteArrayOutputStream ();\n ObjectOutputStream oos = new ObjectOutputStream (baos);\n oos.writeObject (record);\n \n ByteArrayInputStream bais = new ByteArrayInputStream ( baos.toByteArray () );\n ObjectInputStream ois = new ObjectInputStream (bais);\n return ois.readObject ();\n }\n catch (Exception e)\n {\n throw new RuntimeException (\"Cannot copy record \" + record.getClass() + \" via serialization \" );\n }\n\t}",
"public ArrayList<Journey> loadHistory(ArrayList<Contact> contactList, ArrayList<Road> roadList)\n\t{\n\t\t/* Requete SQL */\n\t\tCursor cursor = mainDatabase.rawQuery(\"SELECT \" + DBContract.JourneyTable.JOURNEY_ID[0] + \", \" +\n\t\t\t\tDBContract.JourneyTable.DATE[0] + \", \" + DBContract.JourneyTable.ROADNAME[0] +\n\t\t\t\t\" FROM \" + DBContract.JourneyTable.TABLE_NAME, null);\n\t\t\n\t\tArrayList<Journey> result = new ArrayList<Journey>();\n\t\t\n\t\t/* Contruction du resultat */\n\t\tif(cursor.moveToFirst())\n\t\t{\n\t\t\twhile(!cursor.isAfterLast())\n\t\t\t{\n\t\t\t\t/* Requete SQL secondaire pour construire les sous-listes de contacts */\n\t\t\t\tlong id = cursor.getLong(0);\n\t\t\t\tCursor contacts = mainDatabase.rawQuery(\"SELECT \" +\n\t\t\t\t\t\tDBContract.JourneyContactTable.CONTACT_ID[0] + \" FROM \" + DBContract.JourneyContactTable.TABLE_NAME +\n\t\t\t\t\t\t\" WHERE \" + DBContract.JourneyContactTable.JOURNEY_ID[0] + \"=\" + Long.toString(id), null);\n\t\t\t\t\n\t\t\t\t/* Construction de la liste de contact sur base de l'ArrayList contactList */\n\t\t\t\tArrayList<Contact> subList = new ArrayList<Contact>();\n\t\t\t\tif(contacts.moveToFirst())\n\t\t\t\t{\n\t\t\t\t\twhile(!contacts.isAfterLast())\n\t\t\t\t\t{\n\t\t\t\t\t\t//TODO mod -1\n\t\t\t\t\t\tLog.d(\"debug\", \"contact id found in database : \" + contacts.getLong(0));\n\t\t\t\t\t\tsubList.add(contactList.get((int) (contacts.getLong(0) - 1)));\n\t\t\t\t\t\tcontacts.moveToNext();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcontacts.close();\n\t\t\t\t\n\t\t\t\t/* Ajout du nouveau Journey a result */\n\t\t\t\tJourney newJourney;\n\t\t\t\tRoad newRoad = findByName(cursor.getString(2), roadList);\n\t\t\t\tDate newDate;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tnewDate = df.parse(cursor.getString(1));\n\t\t\t\t}\n\t\t\t\tcatch (ParseException e)\n\t\t\t\t{\n\t\t\t\t\tLog.e(\"error\", \"Unvalid date format found in Journey \" + cursor.getLong(0));\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t\tif(newRoad==null)\n\t\t\t\t{\n\t\t\t\t\tLog.e(\"error\", \"Unvalid roadName found in Journey \" + cursor.getLong(0));\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tnewJourney = new Journey(subList, newRoad, newDate);\n\t\t\t\t}\n\t\t\t\tcatch(EmptyContactListException e)\n\t\t\t\t{\n\t\t\t\t\tLog.e(\"error\", \"No contacts linked to this Journey (id:\" + cursor.getLong(0) + \")\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t\tresult.add(newJourney);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t}\n\t\tcursor.close();\n\t\t//TODO debug print\n\t\tLog.d(\"info\",\"History loaded successfully - \" + result.size() + \" entries loaded\");\n\t\treturn result;\n\t}",
"private Announcement(Parcel in) {\n _ID = in.readString();\n user_ID = in.readString();\n type = in.readString();\n name = in.readString();\n date = in.readString();\n description = in.readString();\n read = in.readString();\n }",
"public interface LoadStepDetail {\n\n void loadStepDetail(int position);\n}",
"public void loadFromDatabase(){\r\n /**\r\n * Open the file streams to the three files\r\n * Recover the state of data structures\r\n * Close the file streams\r\n */\r\n\r\n try{\r\n //Recover the state of unfinished set from unfinished.dat\r\n unfinishedFileInputStream = new FileInputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetInputStream = new ObjectInputStream(unfinishedFileInputStream);\r\n unfinished = (Set<Task>)unfinishedSetInputStream.readObject();\r\n unfinishedSetInputStream.close();\r\n unfinishedFileInputStream.close();\r\n\r\n //Recover the state of finished list from finished.dat\r\n finishedFileInputStream = new FileInputStream(FINISHED_FILE_PATH);\r\n finishedListInputStream = new ObjectInputStream(finishedFileInputStream);\r\n finished = (ArrayList<Task>)finishedListInputStream.readObject();\r\n finishedListInputStream.close();\r\n finishedFileInputStream.close();\r\n\r\n //Recover the state of activities list from activities.dat\r\n activitiesFileInputStream = new FileInputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListInputStream = new ObjectInputStream(activitiesFileInputStream);\r\n activities = (ArrayList<Activity>)activitiesListInputStream.readObject();\r\n activitiesListInputStream.close();\r\n activitiesFileInputStream.close();\r\n\r\n generateWeeklySchedule();\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"DataModel createDataModel();",
"protected void populate(EdaContext xContext, ResultSet rs) \n\tthrows SQLException, IcofException {\n\n\t\tsetId(rs.getLong(ID_COL));\n\t\tsetFromChangeReq(xContext, rs.getLong(FROM_ID_COL));\n\t\tsetToChangeReq(xContext, rs.getLong(TO_ID_COL));\n\t\tsetRelationship(rs.getString(RELATIONSHIP_COL));\n\t\tsetLoadFromDb(true);\n\n\t}",
"@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}",
"@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}",
"private void initData() {\n\t\tIntent intent = getIntent();\n\t\tjob = (Job) intent.getSerializableExtra(\"job\");\n\t\tedt_content.setText(job.getJobContent());\n\t\tedt_course.setText(job.getCourseName());\n\t}",
"private void insertData(String[] line) throws Exception {\r\n Activity newActivity = getActivity(line);\r\n if (importInputForm.getTaskBox().isSelected()) {\r\n panel.getMainTable().importActivity(newActivity);\r\n panel.getMainTable().insertRow(newActivity);\r\n } else if (importInputForm.getSubtaskBox().isSelected() && panel.getMainTable().getModel().getRowCount() != 0) {\r\n newActivity.setParentId(panel.getMainTable().getActivityIdFromSelectedRow());\r\n panel.getSubTable().importActivity(newActivity);\r\n panel.getSubTable().insertRow(newActivity);\r\n // adjust the parent task\r\n panel.getMainTable().addPomsToSelectedRow(newActivity);\r\n }\r\n }",
"private void fillData() {\n\t\tmCursor = dbHelper.getResultsByTime();\n\t\tstartManagingCursor(mCursor);\n\n\t\tdataListAdapter = new SimpleCursorAdapter(this, R.layout.row, mCursor,\n\t\t\t\tFROM, TO);\n\t\tmConversationView.setAdapter(dataListAdapter);\n\t}",
"protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;",
"public RecordSet loadAllProcessEventHistory(Record inputRecord);",
"@Override\n public D loadInBackground() {\n mData = SerializeUtils.readSerializableObject(mContext, mFilename);\n return mData;\n }",
"@Override\n\tpublic Object stringsToClass(String[] data) {\n\t\tActivity novaAtividade = new Activity();\n\t\tnovaAtividade.setId(data[0]);\n\t\t\n\t\tDateTimeFormatter formatter = new DateTimeFormatterBuilder().appendPattern(\"yyyy\")\n .parseDefaulting(ChronoField.MONTH_OF_YEAR, 1)\n .parseDefaulting(ChronoField.DAY_OF_MONTH, 1)\n .toFormatter();\n\t\tLocalDateTime dateTime = null;\n\t\ttry {\n\t\t\tdateTime = LocalDateTime.parse(data[1], formatter);\n } catch (DateTimeParseException e) {\n \treturn null;\n }\n\t\t\n\t\t\n\t\tnovaAtividade.setDate(dateTime);\n\t\tnovaAtividade.setUserIdentifier(data[2]);\n\t\tnovaAtividade.setPc(data[3]);\n\t\t\n\t\t//novaAtividade.set\n\t\tif(activityType == Activity.type.HTTP)\n\t\t{\n\t\t\tnovaAtividade.setUrl(data[4]);\n\t\t}else {\n\t\t\tif(data[4].equals(\"Connect\"))\n\t\t\t{\n\t\t\t\tnovaAtividade.setActive(true);\n\t\t\t}else\n\t\t\t{\n\t\t\t\tif(data[4].equals(\"Disconnect\")){\n\t\t\t\t\tnovaAtividade.setActive(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn novaAtividade;\n\t}",
"public void objectToEntry(Object object, TupleOutput to) {\n // Write the data to the TupleOutput (a DatabaseEntry).\n // Order is important. The first data written will be\n // the first bytes used by the default comparison routines.\n\n BaseTuple bt = (BaseTuple) object;\n\n for(int i = 0; i < r.getNumberOfAttributes(); i++) {\n if(r.getAttributeType(i) == Globals.INTEGER) {\n to.writeInt(((Integer) bt.values[i]).intValue());\n } else {\n assert r.getAttributeType(i) == Globals.STRING;\n to.writeString((String) bt.values[i]);\n }\n }\n }",
"public void readRecords(ServiceContext context, Flow flow) {\n this.context = context;\n this.flow = flow;\n this.flattener = inverseRecordMapping.createShredXml(context, flow);\n\n try {\n recordWriter.startRecordStream(context, flow);\n\n XmlPipeline pipeline = pipelineFactory.createPipeline(context,flow,defaultOutputProperties);\n\n // DEBUG\n /* ContentHandler handler = new ContentHandlerFilter(this) {\n public void startDocument() throws SAXException {\n //System.out.println(getClass().getName()+\".startDocument\");\n super.startDocument();\n }\n public void endDocument() throws SAXException {\n //System.out.println(getClass().getName()+\".endDocument\");\n super.endDocument();\n }\n }; */\n pipeline.execute(this);\n recordWriter.endRecordStream(context, flow);\n } finally {\n try {\n recordWriter.close();\n } catch (Exception e) {\n // Dont' care\n }\n }\n }"
] | [
"0.58094263",
"0.5684795",
"0.5367716",
"0.5359836",
"0.53017074",
"0.5293741",
"0.5248086",
"0.52369165",
"0.5211904",
"0.5197851",
"0.5197851",
"0.51806784",
"0.5146961",
"0.5122383",
"0.5085716",
"0.5084229",
"0.5060489",
"0.50563145",
"0.5054765",
"0.5045895",
"0.50236815",
"0.50182486",
"0.501027",
"0.5008098",
"0.4991214",
"0.49800894",
"0.4979011",
"0.49738914",
"0.49736875",
"0.49712485",
"0.49614632",
"0.49600574",
"0.49590033",
"0.49504095",
"0.49438018",
"0.49279413",
"0.49159932",
"0.49083585",
"0.4902914",
"0.48694146",
"0.48637253",
"0.48626682",
"0.48519564",
"0.48438472",
"0.48436594",
"0.48313016",
"0.48302847",
"0.4829411",
"0.4829107",
"0.4827053",
"0.4824707",
"0.48213017",
"0.48208687",
"0.48135465",
"0.4809578",
"0.48084065",
"0.48067325",
"0.48040974",
"0.47965643",
"0.47964466",
"0.47926694",
"0.4784739",
"0.47839454",
"0.47838095",
"0.47807968",
"0.47758606",
"0.47710177",
"0.4766479",
"0.47663864",
"0.47618157",
"0.4760083",
"0.47596183",
"0.47593886",
"0.47583607",
"0.475662",
"0.47534895",
"0.47533897",
"0.47427076",
"0.47361156",
"0.4733743",
"0.4733196",
"0.47244677",
"0.47160113",
"0.47061342",
"0.4695656",
"0.46955806",
"0.4694688",
"0.46937278",
"0.4691853",
"0.4690441",
"0.46879023",
"0.46835443",
"0.46808454",
"0.46775213",
"0.46740448",
"0.46686184",
"0.4664684",
"0.46592712",
"0.46555868",
"0.4650753"
] | 0.4987683 | 25 |
Copy data into another generated Record/POJO implementing the common interface IXActivity | public <E extends IXActivity> E into(E into); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ActivityRecord setActivityRecord() {\r\n ActivityRecord actv = new ActivityRecord();\r\n actv.setActivity(sportActivity);\r\n actv.setDistance(5);\r\n actv.setTime(45L);\r\n actv.setBurnedCalories(240);\r\n actv.setUser(user);\r\n return actv;\r\n }",
"private Object copy ( Object record )\n\t{\n\t try\n {\n ByteArrayOutputStream baos = new ByteArrayOutputStream ();\n ObjectOutputStream oos = new ObjectOutputStream (baos);\n oos.writeObject (record);\n \n ByteArrayInputStream bais = new ByteArrayInputStream ( baos.toByteArray () );\n ObjectInputStream ois = new ObjectInputStream (bais);\n return ois.readObject ();\n }\n catch (Exception e)\n {\n throw new RuntimeException (\"Cannot copy record \" + record.getClass() + \" via serialization \" );\n }\n\t}",
"interface ReplicateRecord {\n public ReplicateRecord mode(ConnectorMode mode);\n public ReplicateRecord record(DomainRecord record);\n public SourceRecord convert() throws Exception;\n}",
"public void setSourceRecord(ActivityRecord sourceRecord) {\n }",
"@Override\n public void moveToActivity(ShenFenBean.DataBean dataBean) {\n }",
"@Override\n\t\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\t\t\n\t\t}",
"int insert(QtActivitytype record);",
"public void copyFrom(IExportView orig)\n {\n this.copyFrom((SAUAL50S_OA) orig);\n }",
"@Override public void writeToParcel(Parcel dest, int flags) { }",
"IDataRow getCopy();",
"@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(this.title);\n\t\tdest.writeString(this.time);\n\t\tdest.writeString(this.subTitle);\n\t\tdest.writeString(this.type);\n\t\tdest.writeString(this.id);\n\t\tdest.writeString(this.operateId);\n\t\tdest.writeString(this.activityId);\n\t\tdest.writeString(this.flowInstanceId);\n\t\tdest.writeString(this.flowDetailId);\n\t\tdest.writeString(this.workItemId);\n\t\tdest.writeString(this.proxy);\n\t\tdest.writeString(this.proxyActorName);\n\t}",
"@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(id);\n dest.writeInt(date);\n dest.writeString(event);\n dest.writeString(location);\n dest.writeString(startTime);\n dest.writeString(endTime);\n dest.writeString(notes);\n dest.writeByte((byte) (allDay == null ? 0 : allDay ? 1 : 2));\n dest.writeInt(bigId);\n dest.writeInt(alarm);\n }",
"@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\n\t}",
"@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\n\t}",
"public void pasteData(PrimitiveDeepCopy pasteBuffer) {\n List<PrimitiveData> bufferCopy = new ArrayList<PrimitiveData>();\n Map<Long, Long> newNodeIds = new HashMap<Long, Long>();\n Map<Long, Long> newWayIds = new HashMap<Long, Long>();\n Map<Long, Long> newRelationIds = new HashMap<Long, Long>();\n for (PrimitiveData data: pasteBuffer.getAll()) {\n if (data.isIncomplete()) {\n continue;\n }\n PrimitiveData copy = data.makeCopy();\n copy.clearOsmMetadata();\n if (data instanceof NodeData) {\n newNodeIds.put(data.getUniqueId(), copy.getUniqueId());\n } else if (data instanceof WayData) {\n newWayIds.put(data.getUniqueId(), copy.getUniqueId());\n } else if (data instanceof RelationData) {\n newRelationIds.put(data.getUniqueId(), copy.getUniqueId());\n }\n bufferCopy.add(copy);\n }\n\n // Update references in copied buffer\n for (PrimitiveData data:bufferCopy) {\n if (data instanceof NodeData) {\n NodeData nodeData = (NodeData)data;\n\t\t\t\tnodeData.setEastNorth(nodeData.getEastNorth());\n } else if (data instanceof WayData) {\n List<Long> newNodes = new ArrayList<Long>();\n for (Long oldNodeId: ((WayData)data).getNodes()) {\n Long newNodeId = newNodeIds.get(oldNodeId);\n if (newNodeId != null) {\n newNodes.add(newNodeId);\n }\n }\n ((WayData)data).setNodes(newNodes);\n } else if (data instanceof RelationData) {\n List<RelationMemberData> newMembers = new ArrayList<RelationMemberData>();\n for (RelationMemberData member: ((RelationData)data).getMembers()) {\n OsmPrimitiveType memberType = member.getMemberType();\n Long newId = null;\n switch (memberType) {\n case NODE:\n newId = newNodeIds.get(member.getMemberId());\n break;\n case WAY:\n newId = newWayIds.get(member.getMemberId());\n break;\n case RELATION:\n newId = newRelationIds.get(member.getMemberId());\n break;\n }\n if (newId != null) {\n newMembers.add(new RelationMemberData(member.getRole(), memberType, newId));\n }\n }\n ((RelationData)data).setMembers(newMembers);\n }\n }\n\n /* Now execute the commands to add the duplicated contents of the paste buffer to the map */\n\n Main.main.undoRedo.add(new AddPrimitivesCommand(bufferCopy));\n Main.map.mapView.repaint();\n }",
"int insertSelective(QtActivitytype record);",
"RecordInfo clone();",
"public sendRecord_args(sendRecord_args other) {\n if (other.isSetRecord()) {\n this.record = new InputRecord(other.record);\n }\n }",
"public static Activity clone(Activity activity){\r\n\r\n Activity _activity = new Activity();\r\n \r\n if (activity.getActivityId() != null) {\r\n _activity.setActivityId(activity.getActivityId()); \r\n }\r\n if (activity.getDescription() != null) {\r\n _activity.setDescription(activity.getDescription());\r\n }\r\n if (activity.getHours() != null) {\r\n _activity.setHours(new BigDecimal(activity.getHours().toPlainString()));\r\n }\r\n if (activity.getTimesheet() != null) {\r\n _activity.setTimesheet(TimesheetTestUtils.clone(activity.getTimesheet()));\r\n }\r\n\r\n return _activity;\r\n }",
"@Override\r\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(this._id);\r\n dest.writeString(this.code);\r\n dest.writeString(this.company);\r\n dest.writeString(this.direction);\r\n dest.writeString(this.etaGet);\r\n dest.writeString(this.latitude);\r\n dest.writeString(this.locationEnd);\r\n dest.writeString(this.locationStart);\r\n dest.writeString(this.longitude);\r\n dest.writeString(this.name);\r\n dest.writeInt(this.order);\r\n dest.writeString(this.route);\r\n dest.writeString(this.sequence);\r\n dest.writeLong(this.updatedAt);\r\n }",
"@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IXActivity extends VertxPojo, Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public IXActivity setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public IXActivity setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public IXActivity setSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public String getSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public IXActivity setDescription(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public String getDescription();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public IXActivity setModelId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public String getModelId();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public IXActivity setModelKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public String getModelKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public IXActivity setModelCategory(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public String getModelCategory();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public IXActivity setTaskName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public String getTaskName();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public IXActivity setTaskSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public String getTaskSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public IXActivity setRecordOld(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public String getRecordOld();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public IXActivity setRecordNew(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public String getRecordNew();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public IXActivity setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IXActivity setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public IXActivity setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public IXActivity setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public IXActivity setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public IXActivity setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public IXActivity setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public IXActivity setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public void from(IXActivity from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public <E extends IXActivity> E into(E into);\n\n @Override\n public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {\n setOrThrow(this::setKey,json::getString,\"KEY\",\"java.lang.String\");\n setOrThrow(this::setType,json::getString,\"TYPE\",\"java.lang.String\");\n setOrThrow(this::setSerial,json::getString,\"SERIAL\",\"java.lang.String\");\n setOrThrow(this::setDescription,json::getString,\"DESCRIPTION\",\"java.lang.String\");\n setOrThrow(this::setModelId,json::getString,\"MODEL_ID\",\"java.lang.String\");\n setOrThrow(this::setModelKey,json::getString,\"MODEL_KEY\",\"java.lang.String\");\n setOrThrow(this::setModelCategory,json::getString,\"MODEL_CATEGORY\",\"java.lang.String\");\n setOrThrow(this::setTaskName,json::getString,\"TASK_NAME\",\"java.lang.String\");\n setOrThrow(this::setTaskSerial,json::getString,\"TASK_SERIAL\",\"java.lang.String\");\n setOrThrow(this::setRecordOld,json::getString,\"RECORD_OLD\",\"java.lang.String\");\n setOrThrow(this::setRecordNew,json::getString,\"RECORD_NEW\",\"java.lang.String\");\n setOrThrow(this::setSigma,json::getString,\"SIGMA\",\"java.lang.String\");\n setOrThrow(this::setLanguage,json::getString,\"LANGUAGE\",\"java.lang.String\");\n setOrThrow(this::setActive,json::getBoolean,\"ACTIVE\",\"java.lang.Boolean\");\n setOrThrow(this::setMetadata,json::getString,\"METADATA\",\"java.lang.String\");\n setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"CREATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setCreatedBy,json::getString,\"CREATED_BY\",\"java.lang.String\");\n setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"UPDATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setUpdatedBy,json::getString,\"UPDATED_BY\",\"java.lang.String\");\n return this;\n }\n\n\n @Override\n public default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"SERIAL\",getSerial());\n json.put(\"DESCRIPTION\",getDescription());\n json.put(\"MODEL_ID\",getModelId());\n json.put(\"MODEL_KEY\",getModelKey());\n json.put(\"MODEL_CATEGORY\",getModelCategory());\n json.put(\"TASK_NAME\",getTaskName());\n json.put(\"TASK_SERIAL\",getTaskSerial());\n json.put(\"RECORD_OLD\",getRecordOld());\n json.put(\"RECORD_NEW\",getRecordNew());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n json.put(\"CREATED_AT\",getCreatedAt()==null?null:getCreatedAt().toString());\n json.put(\"CREATED_BY\",getCreatedBy());\n json.put(\"UPDATED_AT\",getUpdatedAt()==null?null:getUpdatedAt().toString());\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\t\n\t}",
"@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeInt(id);\n\t\tdest.writeInt(user_id);\n\t\tdest.writeString(title);\n\t\tdest.writeString(description);\n\t\tdest.writeSerializable(date);\n\t\tdest.writeSerializable(created_at);\n\t\tdest.writeSerializable(updated_at);\n\t}",
"@Override\n public void writeToParcel(Parcel dest, int flags) {\n\n }",
"public void insertHistory(RecordDTO recordDTO);",
"int insert(CmsActivity record);",
"public void getData(OutputRecord record)\n throws SQLException\n {\n super.getData(record);\n record.setLong(\"resource_class_id\", resourceClass.getId());\n if(parentId != -1)\n {\n record.setLong(\"parent\", parentId);\n }\n else\n {\n record.setNull(\"parent\");\n }\n record.setLong(\"created_by\", creator.getId());\n record.setTimestamp(\"creation_time\", created);\n record.setLong(\"owned_by\", owner.getId());\n record.setLong(\"modified_by\", modifier.getId());\n record.setTimestamp(\"modification_time\", modified);\n }",
"@NoProxy\n public void copyTo(final BwEvent ev) {\n super.copyTo(ev);\n ev.setEntityType(getEntityType());\n ev.setName(getName());\n ev.setClassification(getClassification());\n ev.setDtstart(getDtstart());\n ev.setDtend(getDtend());\n ev.setEndType(getEndType());\n ev.setDuration(getDuration());\n ev.setNoStart(getNoStart());\n\n ev.setLink(getLink());\n ev.setGeo(getGeo());\n ev.setDeleted(getDeleted());\n ev.setStatus(getStatus());\n ev.setCost(getCost());\n\n BwOrganizer org = getOrganizer();\n if (org != null) {\n org = (BwOrganizer)org.clone();\n }\n ev.setOrganizer(org);\n\n ev.setDtstamp(getDtstamp());\n ev.setLastmod(getLastmod());\n ev.setCreated(getCreated());\n ev.setStag(getStag());\n ev.setPriority(getPriority());\n ev.setSequence(getSequence());\n\n ev.setLocation(getLocation());\n\n ev.setUid(getUid());\n ev.setTransparency(getTransparency());\n ev.setPercentComplete(getPercentComplete());\n ev.setCompleted(getCompleted());\n\n ev.setCategories(copyCategories());\n\n ev.setContacts(copyContacts());\n\n ev.setAttendees(cloneAttendees());\n ev.setCtoken(getCtoken());\n\n ev.setRecurrenceId(getRecurrenceId());\n ev.setRecurring(getRecurring());\n if (ev.isRecurringEntity()) {\n ev.setRrules(clone(getRrules()));\n ev.setExrules(clone(getExrules()));\n ev.setRdates(clone(getRdates()));\n ev.setExdates(clone(getExdates()));\n }\n\n ev.setScheduleMethod(getScheduleMethod());\n ev.setOriginator(getOriginator());\n\n /* Don't copy these - we always set them anyway\n if (getNumRecipients() > 0) {\n ev.setRecipients(new TreeSet<String>());\n\n for (String s: getRecipients()) {\n ev.addRecipient(s);\n }\n }*/\n\n if (getNumComments() > 0) {\n ev.setComments(null);\n\n for (final BwString str: getComments()) {\n ev.addComment((BwString)str.clone());\n }\n }\n\n if (getNumSummaries() > 0) {\n ev.setSummaries(null);\n\n for (final BwString str: getSummaries()) {\n ev.addSummary((BwString)str.clone());\n }\n }\n\n if (getNumDescriptions() > 0) {\n ev.setDescriptions(null);\n\n for (final BwLongString str: getDescriptions()) {\n ev.addDescription((BwLongString)str.clone());\n }\n }\n\n if (getNumResources() > 0) {\n ev.setResources(null);\n\n for (final BwString str: getResources()) {\n ev.addResource((BwString)str.clone());\n }\n }\n\n if (getNumXproperties() > 0) {\n ev.setXproperties(null);\n\n for (final BwXproperty x: getXproperties()) {\n ev.addXproperty((BwXproperty)x.clone());\n }\n }\n\n ev.setScheduleState(getScheduleState());\n\n //ev.setRequestStatuses(clone(getRequestStatuses()));\n\n final BwRelatedTo rt = getRelatedTo();\n if (rt != null) {\n ev.setRelatedTo((BwRelatedTo)rt.clone());\n }\n\n /* These are in x-props in 3.10\n ev.setPollMode(getPollMode());\n ev.setPollProperties(getPollProperties());\n ev.setPollAcceptResponse(getPollAcceptResponse());\n\n ev.setPollItemId(getPollItemId());\n if (!Util.isEmpty(getPollItems())) {\n for (final String s: getPollItems()) {\n ev.addPollItem(s);\n }\n }\n */\n\n ev.setPollCandidate(getPollCandidate());\n }",
"@Override\n public void writeToParcel(Parcel dest, int flags) {\n super.writeToParcel(dest, flags);\n }",
"public LearningResultHasActivityPk insert(LearningResultHasActivity dto) throws LearningResultHasActivityDaoException;",
"public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fieldset();\n\t\trelation = \toriginal.get_relation();\n\t}",
"int insert(TestActivityEntity record);",
"@Override\n public void writeToParcel(Parcel dest, int flags) {\n\n dest.writeString(title);\n dest.writeString(content);\n dest.writeString(imagePath);\n dest.writeString(participants);\n dest.writeInt(id);\n }",
"@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(this.custNo);\n\t\tdest.writeString(this.leftTimes);\n\t\tdest.writeString(this.contentMsg);\n\t\tdest.writeInt(this.contentCode);\n\t}",
"int insert(ActActivityRegister record);",
"@Override\n protected void onConvertTransfer(Persona_tiene_Existencia values, DataSetEvent e) throws SQLException, UnsupportedOperationException\n {\n if (e.getDML() == insertProcedure)\n {\n e.setInt(1, values.getIdPersona());//\"vid_persona\"\n e.setInt(2, values.getEntrada());//\"ventrada\"\n e.setInt(3, values.getIdUbicacion());//\"vid_ubicacion\"\n e.setFloat(4, values.getExistencia());//\"vexistencia\"\n }\n\n else if (e.getDML() == updateProcedure)\n {\n e.setInt(1, values.getLinea_Viejo());//\"vlinea_old\"\n e.setInt(2, values.getIdPersona_Viejo());//\"vid_persona_old\"\n e.setInt(3, values.getIdPersona());//\"vid_persona_new\"\n e.setInt(4, values.getEntrada());//\"ventrada\"\n e.setInt(5, values.getIdUbicacion());//\"vid_ubicacion\"\n e.setFloat(6, values.getExistencia());//\"vexistencia\"\n }\n }",
"public void from(IXActivity from);",
"void saveActivityHistForAddEntity(Record inputRecord);",
"public void copyFrom(IExportView orig)\n {\n this.copyFrom((SRSLF04S_OA) orig);\n }",
"DataSet toDataSet(Object adaptee);",
"int insertSelective(TestActivityEntity record);",
"public void objectToEntry(Object object, TupleOutput to) {\n // Write the data to the TupleOutput (a DatabaseEntry).\n // Order is important. The first data written will be\n // the first bytes used by the default comparison routines.\n\n BaseTuple bt = (BaseTuple) object;\n\n for(int i = 0; i < r.getNumberOfAttributes(); i++) {\n if(r.getAttributeType(i) == Globals.INTEGER) {\n to.writeInt(((Integer) bt.values[i]).intValue());\n } else {\n assert r.getAttributeType(i) == Globals.STRING;\n to.writeString((String) bt.values[i]);\n }\n }\n }",
"@Override\n\tpublic void convertDaoToFrom(CommonEntity ent) {\n\t\tMovie dao=(Movie) ent;\n\t\tthis.setBackgroundImage(dao.getBackgroundImage());\n\t\tthis.setDesc(dao.getDescription());\n\t\tthis.setEmbed(dao.getEmbed());\n\t\tthis.setFeatured(dao.isFeatured());\n\t\tthis.setLatitude(dao.getMap().getLattitude());\n\t\tthis.setLongitude(dao.getMap().getLongitude());\n\t\tthis.setName(dao.getTitle());\n\t\tthis.setRank(dao.getRank());\n\t\t\n\t\t\n\t}",
"int insertSelective(CmsActivity record);",
"@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeStringArray(new String[] {Objects.toString(this._id, null),\n this.pNote,\n this.pDate});\n }",
"public abstract void toProto(SOURCE row, Message.Builder builder);",
"int insert(ActivityHongbaoPrize record);",
"int insertSelective(ActActivityRegister record);",
"public void copyData(TrianaType source) { // not needed\n }",
"WorkoutBatch copy();",
"public Object copy_from(Object src) {\n\n GuestScienceData typedSrc = (GuestScienceData) src;\n GuestScienceData typedDst = this;\n super.copy_from(typedSrc);\n /** Full name of apk */\n typedDst.apkName = typedSrc.apkName;\n /** Type of data being sent */\n typedDst.type = (rapid.ext.astrobee.GuestScienceDataType) typedDst.type.copy_from(typedSrc.type);\n /** String to classify the kind of data */\n typedDst.topic = typedSrc.topic;\n /** Data from the apk */\n typedDst.data = (rapid.OctetSequence2K) typedDst.data.copy_from(typedSrc.data);\n\n return this;\n }",
"@Override\n public void toCopy() throws WorkflowException {\n super.toCopy();\n travelAdvancesForTrip = null;\n setTravelDocumentIdentifier(null);\n if (!(this instanceof TravelAuthorizationCloseDocument)) { // TAC's don't have advances\n initiateAdvancePaymentAndLines();\n }\n }",
"public abstract INodo copy();",
"@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeInt(history.size());\n\n\t\t// Save each chat message\n\t\tfor (ChatMessage cm : history) {\n\t\t\tdest.writeInt(cm.getIdx());\n\t\t\tdest.writeString(cm.getUser().toString());\n\t\t\tdest.writeString(cm.getMessage().toString());\n\t\t\tdest.writeLong(cm.getTimestamp());\n\t\t}\n\t}",
"void writeObj(MyAllTypesSecond aRecord, StrategyI xmlStrat);",
"private void copyData(ClientContext contextOne, ClientContext contextTwo)\r\n {\r\n TwoPlayerClientContext tpOne = (TwoPlayerClientContext) contextOne;\r\n TwoPlayerClientContext tpTwo = (TwoPlayerClientContext) contextTwo;\r\n\r\n // client needs updates on the action number, the die, \r\n // and the moveable spaces\r\n tpTwo.setActionNum(tpOne.getActionNum());\r\n tpTwo.setDie(tpOne.getDie());\r\n tpTwo.setMoveableSpaces(tpOne.getMoveableSpaces());\r\n tpTwo.setGameMap(tpOne.getMap());\r\n // copy the map\r\n// System.out.println(tpTwo.getClientID() + \" has \"\r\n// + Integer.toString(tpTwo.getMoveableSpaces().size())\r\n// + \" moveable spaces...\");\r\n// System.out.println(tpOne.getClientID() + \" has \"\r\n// + Integer.toString(tpOne.getMoveableSpaces().size())\r\n// + \" moveable spaces...\");\r\n }",
"@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(operate_time);\n dest.writeString(operate_name);\n dest.writeString(resume_number);\n dest.writeString(name);\n dest.writeString(echo_yes);\n dest.writeString(sex);\n dest.writeString(year);\n dest.writeString(work_beginyear);\n dest.writeString(high_education);\n dest.writeString(location);\n dest.writeString(pic_filekey);\n dest.writeString(user_id);\n dest.writeString(resume_id);\n dest.writeString(moremajor);\n dest.writeString(isnew);\n }",
"Model copy();",
"@Override\n public int deepCopy(AbstractRecord other)\n {\n return 0;\n }",
"private void insertData(String[] line) throws Exception {\r\n Activity newActivity = getActivity(line);\r\n if (importInputForm.getTaskBox().isSelected()) {\r\n panel.getMainTable().importActivity(newActivity);\r\n panel.getMainTable().insertRow(newActivity);\r\n } else if (importInputForm.getSubtaskBox().isSelected() && panel.getMainTable().getModel().getRowCount() != 0) {\r\n newActivity.setParentId(panel.getMainTable().getActivityIdFromSelectedRow());\r\n panel.getSubTable().importActivity(newActivity);\r\n panel.getSubTable().insertRow(newActivity);\r\n // adjust the parent task\r\n panel.getMainTable().addPomsToSelectedRow(newActivity);\r\n }\r\n }",
"public Record copy() {\n\t\treturn new Record(video, numOwned, numOut, numRentals);\n\t}",
"int insert(AttributeExtend record);",
"public sendRecord_result(sendRecord_result other) {\n }",
"@Override\n\t\t\tpublic void writeToParcel(Parcel arg0, int arg1) {\n\t\t\t\t\n\t\t\t}",
"public void setData(InputRecord record)\n throws SQLException\n {\n super.setData(record);\n try\n {\n long resourceClassId = record.getLong(\"resource_class_id\");\n resourceClass = coral.getSchema().getResourceClass(resourceClassId);\n if(!record.isNull(\"parent\"))\n {\n parentId = record.getLong(\"parent\");\n }\n long creatorId = record.getLong(\"created_by\");\n creator = coral.getSecurity().getSubject(creatorId);\n created = record.getDate(\"creation_time\");\n long ownerId = record.getLong(\"owned_by\");\n owner = coral.getSecurity().getSubject(ownerId);\n long modifierId = record.getLong(\"modified_by\");\n modifier = coral.getSecurity().getSubject(modifierId);\n modified = record.getDate(\"modification_time\");\n }\n catch(EntityDoesNotExistException e)\n {\n throw new SQLException(\"Failed to load Resource #\"+id, e);\n }\n }",
"public void insertActivityDetails(Activity ac){\n //Get the Data Repository in write mode\n SQLiteDatabase db = this.getWritableDatabase();\n //Create a new map of values, where column names are the keys\n ContentValues cValues = new ContentValues();\n cValues.put(KEY_ACT_NO, ac.getAct_no());\n cValues.put(KEY_USERNAME, ac.getUsername());\n cValues.put(KEY_ACT_NAME, ac.getAct_name());\n cValues.put(KEY_TIME_SET, ac.getTime_set());\n cValues.put(KEY_ACT_DESC, ac.getAct_desc());\n cValues.put(KEY_ACT_STATE, ac.isAct_complete());\n // Insert the new row, returning the primary key value of the new row\n long newRowId = db.insert(TABLE_Activitys,null, cValues);\n db.close();\n }",
"int insert(ProjectOtherView record);",
"public void copy() {\n\n\t}",
"@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeInt(id);\n\t\tdest.writeString(baoBeiUrl);\n\t\tdest.writeString(baoBeiName);\n\t\tdest.writeString(baoBeiPhone);\n\t\tdest.writeString(baoBeiSelect);\n\t}",
"public Object getCustomerContactActivityRecord() {\n return customerContactActivityRecord;\n }",
"private Builder(com.autodesk.ws.avro.Call other) {\n super(com.autodesk.ws.avro.Call.SCHEMA$);\n if (isValidValue(fields()[0], other.responding_product_id)) {\n this.responding_product_id = (java.lang.CharSequence) data().deepCopy(fields()[0].schema(), other.responding_product_id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.requesting_product_id)) {\n this.requesting_product_id = (java.lang.CharSequence) data().deepCopy(fields()[1].schema(), other.requesting_product_id);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.module)) {\n this.module = (java.lang.CharSequence) data().deepCopy(fields()[2].schema(), other.module);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.operation)) {\n this.operation = (java.lang.CharSequence) data().deepCopy(fields()[3].schema(), other.operation);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.suboperation)) {\n this.suboperation = (java.lang.CharSequence) data().deepCopy(fields()[4].schema(), other.suboperation);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.target_object_uri)) {\n this.target_object_uri = (java.lang.CharSequence) data().deepCopy(fields()[5].schema(), other.target_object_uri);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.object_size)) {\n this.object_size = (java.lang.Long) data().deepCopy(fields()[6].schema(), other.object_size);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.execution_time)) {\n this.execution_time = (java.lang.Integer) data().deepCopy(fields()[7].schema(), other.execution_time);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.status)) {\n this.status = (java.lang.CharSequence) data().deepCopy(fields()[8].schema(), other.status);\n fieldSetFlags()[8] = true;\n }\n }",
"protected void copyFrom(MCAlarmInfo srcInfo)\n\t{\n\t\tsetType(srcInfo.getType());\n\n\t\tsetTitle(srcInfo.getTitle());\n\n\t\tsetHour(srcInfo.getHour());\n\t\tsetMinute(srcInfo.getMinute());\n\t\tsetTimeZone(srcInfo.getTimeZone());\n\n\t\tsetData(srcInfo.getData());\n\t}",
"@Override //function was implemented as abstract in super class\n public void Set(Instruction toCopy){\n Extra temp = (Extra) toCopy; //downcast for valid assignment\n this.Price = temp.Price;\n this.Allergens = temp.Allergens;\n this.Notes = new String(temp.Notes);\n this.Density = temp.Density;\n this.Topping = new String(temp.Topping);\n this.Vegetarian = temp.Vegetarian;\n }",
"public abstract void transformReportEntry(ReportRow entry);",
"private void setToOtherActivity(){\n\n util.setArrayListToOtherActivity(intent, solicitudEnviadaDAO.getSolEnviadaDTO(), Constantes.PARCEL_LISTA_SOL_ENVIADA);\n util.setArrayListToOtherActivity(intent, solicitudRecibidaDAO.getSolRecibidaDTO(), Constantes.PARCEL_LISTA_SOL_RECIBIDA);\n util.setArrayListToOtherActivity(intent, solicitudContestadaDAO.getSolContestadaDTO(), Constantes.PARCEL_LISTA_SOL_CONTESTADA);\n util.setArrayListToOtherActivity(intent, preguntaEnviadaDAO.getListaPreguntaEnviadaDTO(), Constantes.PARCEL_LISTA_PREG_ENVIADA);\n util.setArrayListToOtherActivity(intent, preguntaRecibidaDAO.getListaPreguntaRecibidaDTO(), Constantes.PARCEL_LISTA_PREG_RECIBIDA);\n util.setArrayListToOtherActivity(intent, preguntaContestadaDAO.getListaPreguntasContestadasDTO(), Constantes.PARCEL_LISTA_PREG_CONTESTADA);\n util.setArrayListToOtherActivity(intent, puntuacionRecibidaDAO.getListaPuntuacionRecibidasDTO(), Constantes.PARCEL_LISTA_PUNT_RECIBIDA);\n\n }",
"int insert(CustomReport record);",
"int insert(PaasCustomAutomationRecord record);",
"public interface WorkoutBatch extends UnObfuscable, Parcelable{\n\n\t/**\n\t * attribute given record to this batch\n\t * @param record which is to be attributed to this batch\n\t */\n\tvoid addRecord(DistRecord record, boolean persistPoints);\n\n\t/**\n\t * @return distance covered in this batch\n\t */\n\tfloat getDistance();\n\n\t/**\n\t * adds distance in this batch\n\t */\n\tvoid addDistance(float distanceToAdd);\n\n\t/**\n\t * sets the start point for this batch\n\t * @param location\n\t */\n\tvoid setStartPoint(Location location, boolean persistPoints);\n\n\t/**\n\t * @return the epoch (in millis) at which this batch began\n\t */\n\tlong getStartTimeStamp();\n\n\t/**\n\t * @return the epoch (in millis) at which this batch ended, or 0 if the batch has not ended yet\n\t */\n\tlong getEndTimeStamp();\n\n\t/**\n\t * @return Name of the file (internal storage) in which this batche's location data is stored\n\t */\n\tString getLocationDataFileName();\n\n\t/**\n\t * @return the epoch (in millis) at which the last point of this batch was recorded\n\t */\n\tlong getLastRecordedTimeStamp();\n\n\t/**\n\t * @return elapsed time, till the batch is running, since the beginning of this batch in secs;\n\t * once the batch completes it returns the total time for which the batch was running\n\t */\n\tfloat getElapsedTime();\n\n\t/**\n\t * @return time interval in secs for which distance has been recorded\n\t */\n\tfloat getRecordedTime();\n\n\t/**\n\t * @return true if user was caught inside a vehicle for this batch, false otherwise\n\t */\n\tboolean wasInVehicle();\n\n\t/**\n\t * @return list of all points of this batch\n\t */\n\tList<WorkoutPoint> getPoints();\n\n\t/**\n\t *completes this batch and returns this after whatever post processing is required\n\t */\n\tWorkoutBatch end(boolean wasInVehicle);\n\n\t/**\n\t * Creates a Deep copy of this batch\n\t */\n\tWorkoutBatch copy();\n}",
"int insertSelective(ActivityHongbaoPrize record);",
"@Override\n public void onClick(View v) {\n\n Intent i = new Intent(context, DetailActivity.class); //create intent to switch screen\n\n //trying to place movie into putExtra by putting it into Parcelable value (bc method can't take movie object)\n //we use Parcelable (go to AndroidStudio ref. where they have the code to allow u to use Parceler library\n //essentially, you place the implementation code into buildgradle file\n i.putExtra(\"movie\", Parcels.wrap(movie));\n //add @Parcel to Movie class and add empty constructor as shown in AU (android U) page + empty constructor\n //now you can go to DetailActivity to retrieve the whole movie object just by using an intent\n\n context.startActivity(i);\n\n }",
"public Record(Record other) {\n if (other.isSetAttrs()) {\n List<AttrVal> __this__attrs = new ArrayList<AttrVal>(other.attrs.size());\n for (AttrVal other_element : other.attrs) {\n __this__attrs.add(new AttrVal(other_element));\n }\n this.attrs = __this__attrs;\n }\n }",
"@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(job_resume);\n dest.writeString(job_id);\n dest.writeString(job_name);\n dest.writeString(issue_date);\n dest.writeString(quyu);\n }",
"void fillAssignmentWithActivities(Assignment assignment);",
"int insertSelective(ResourcePojo record);",
"ActivityFieldData(ActivityField field) {\n\t\t\tthis.field = field;\n\t\t}",
"private void insertFullActivity(FormActivityDef activity, long revisionId) {\n JdbiActivity jdbiActivity = getJdbiActivity();\n JdbiActivityVersion jdbiVersion = getJdbiActivityVersion();\n ActivityI18nDao activityI18nDao = getActivityI18nDao();\n SectionBlockDao sectionBlockDao = getSectionBlockDao();\n TemplateDao templateDao = getTemplateDao();\n\n long activityId = activity.getActivityId();\n long versionId = jdbiVersion.insert(activity.getActivityId(), activity.getVersionTag(), revisionId);\n activity.setVersionId(versionId);\n\n Map<String, String> names = activity.getTranslatedNames().stream()\n .collect(Collectors.toMap(Translation::getLanguageCode, Translation::getText));\n Map<String, String> secondNames = activity.getTranslatedSecondNames().stream()\n .collect(Collectors.toMap(Translation::getLanguageCode, Translation::getText));\n Map<String, String> titles = activity.getTranslatedTitles().stream()\n .collect(Collectors.toMap(Translation::getLanguageCode, Translation::getText));\n Map<String, String> subtitles = activity.getTranslatedSubtitles().stream()\n .collect(Collectors.toMap(Translation::getLanguageCode, Translation::getText));\n Map<String, String> descriptions = activity.getTranslatedDescriptions().stream()\n .collect(Collectors.toMap(Translation::getLanguageCode, Translation::getText));\n\n List<ActivityI18nDetail> details = new ArrayList<>();\n for (var entry : names.entrySet()) {\n String isoLangCode = entry.getKey();\n String name = entry.getValue();\n details.add(new ActivityI18nDetail(\n activityId,\n isoLangCode,\n name,\n secondNames.getOrDefault(isoLangCode, null),\n titles.getOrDefault(isoLangCode, null),\n subtitles.getOrDefault(isoLangCode, null),\n descriptions.getOrDefault(isoLangCode, null),\n revisionId\n ));\n }\n\n activityI18nDao.insertDetails(details);\n activityI18nDao.insertSummaries(activityId, activity.getTranslatedSummaries());\n\n FormType formType = activity.getFormType();\n int numRows = jdbiActivity.insertFormActivity(activityId, jdbiActivity.getFormTypeId(formType));\n if (numRows != 1) {\n throw new DaoException(\"Inserted \" + numRows + \" form activity rows for activity \" + activityId);\n }\n\n sectionBlockDao.insertBodySections(activityId, activity.getSections(), revisionId);\n\n Long introductionSectionId = null;\n if (activity.getIntroduction() != null) {\n introductionSectionId = sectionBlockDao.insertSection(activityId, activity.getIntroduction(), revisionId);\n }\n\n Long closingSectionId = null;\n if (activity.getClosing() != null) {\n closingSectionId = sectionBlockDao.insertSection(activityId, activity.getClosing(), revisionId);\n }\n\n Long readonlyHintTemplateId = null;\n if (activity.getReadonlyHintTemplate() != null) {\n readonlyHintTemplateId = templateDao.insertTemplate(activity.getReadonlyHintTemplate(), revisionId);\n }\n\n Long lastUpdatedTextTemplateId = null;\n if (activity.getLastUpdatedTextTemplate() != null) {\n lastUpdatedTextTemplateId = templateDao.insertTemplate(activity.getLastUpdatedTextTemplate(), revisionId);\n }\n\n getJdbiFormActivitySetting().insert(\n activityId, activity.getListStyleHint(), introductionSectionId,\n closingSectionId, revisionId, readonlyHintTemplateId, activity.getLastUpdated(), lastUpdatedTextTemplateId,\n activity.shouldSnapshotSubstitutionsOnSubmit(), activity.shouldSnapshotAddressOnSubmit());\n }",
"void create(SportActivity activity);",
"public Record copy() {\n return new Record(\n this.id,\n this.location.copy(),\n this.score\n );\n }",
"public void update(LearningResultHasActivityPk pk, LearningResultHasActivity dto) throws LearningResultHasActivityDaoException;",
"public void linkRecords();",
"@Override\n protected void onConvertTransfer(Contrato values, DataSetEvent e) throws SQLException, UnsupportedOperationException\n {\n if (e.getDML() == insertProcedure)\n {\n e.setString(1, values.getNombre(), 45); //\"vnombre\"\n e.setBytes(2, values.getContenido());//\"vcontenido\"\n e.setString(3, values.getFormato(), 45);//\"vformato\"\n e.setInt(4, values.getLongitud());//\"vlongitud\"\n }\n }",
"@Override\r\n\tpublic void writeToParcel(Parcel dest, int flags)\r\n\t{\n\t\tdest.writeInt(this.id);\r\n\t\tdest.writeString(this.desc);\r\n\t\tdest.writeString(this.titulo_imagem);\r\n\t\tdest.writeString(this.titulo_som);\r\n\t\tdest.writeString(this.ext);\r\n\t\tdest.writeString(\"\" + this.tipo);\r\n\t\tdest.writeInt(this.cmd);\r\n\t\tdest.writeInt((this.atalho) ? 1 : 0);\r\n\t\tdest.writeInt(this.pagina);\r\n\t\tdest.writeInt(this.ordem);\r\n\t\t\r\n\t}",
"public abstract CTxDestination clone();",
"int updateByPrimaryKey(QtActivitytype record);",
"public void copyTrans(\n\t\t String called_msisdn\n\t\t,String caller_msisdn\n\t\t,String caller_subscribed_at_copy\n\t\t,String caller_type\n\t\t,String category_name\n\t\t,String copy_done\n\t\t,java.util.Date copy_time\n\t\t,String copy_type\n\t\t,String key_pressed\n\t\t,String sms_type\n\t\t,String song\n\t\t,String confirmation_mode\n\t\t,String calledOperator\n\t\t,java.util.Date timestamp\n\t) throws ReportingException {\n\t\tStringBuffer buff = new StringBuffer();\n\t\tappend(buff, timestamp);\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, \"copyTrans\", false); // transType\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, called_msisdn, false);\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, caller_msisdn, false);\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, caller_subscribed_at_copy, true);\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, caller_type, true);\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, category_name, true);\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, copy_done, true);\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, copy_time);\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, copy_type, true);\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, key_pressed, true);\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, sms_type, true);\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, song, true);\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, confirmation_mode, true);\n\t\tnextField(buff);// write field separator\n\t\tappend(buff, calledOperator, true);\n\t\twrite(buff); // write record to file\n\t}",
"public interface RelationActivityView extends BaseIView {\n void setFrientData(FrientBaen frientBaen);\n// void setPingBiData(PingbiBean pingBiBaen);\n}",
"private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}",
"@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(ID);\n\t\tdest.writeString(Title);\n\t\tdest.writeString(More);\n\t\tdest.writeString(Tag);\n\t\tdest.writeString(PosterUrl);\n\t\tdest.writeString(VideoUrl);\n\t\tdest.writeString(Director);\n\t\tdest.writeString(Actor);\n\t\tdest.writeString(Grade);\n\t\tdest.writeString(Contents);\n\t\tdest.writeString(RunningTime);\n\t\tdest.writeString(HD);\n\t\tdest.writeString(Price);\n\t}",
"public void createActivity(Activity activity) {\n\t\t\n\t}",
"@Override\n public void writeToParcel(Parcel parcel, int i) {\n }"
] | [
"0.5830915",
"0.5686493",
"0.5558873",
"0.55343103",
"0.54385334",
"0.5419849",
"0.54086494",
"0.52964157",
"0.5263006",
"0.5258386",
"0.5245648",
"0.5243196",
"0.52298254",
"0.52298254",
"0.52149534",
"0.51973015",
"0.5196039",
"0.5193707",
"0.5189421",
"0.51675606",
"0.5163435",
"0.5161619",
"0.5157316",
"0.515441",
"0.51474434",
"0.5112671",
"0.5089468",
"0.507929",
"0.50714403",
"0.50702906",
"0.50697976",
"0.5069384",
"0.50588846",
"0.5056336",
"0.5051398",
"0.503624",
"0.50327593",
"0.5027418",
"0.50272965",
"0.5019347",
"0.50158274",
"0.49979204",
"0.49956226",
"0.4995417",
"0.49891618",
"0.49890298",
"0.49851584",
"0.49705175",
"0.49382493",
"0.49293277",
"0.49217838",
"0.49151897",
"0.4902857",
"0.48962507",
"0.48930138",
"0.4885382",
"0.48806602",
"0.4878381",
"0.48774192",
"0.48765925",
"0.48722026",
"0.48657817",
"0.48597842",
"0.48572338",
"0.4846924",
"0.48399293",
"0.48301023",
"0.48213643",
"0.48191884",
"0.48025373",
"0.47970244",
"0.47934905",
"0.47922623",
"0.47846448",
"0.4783201",
"0.47769704",
"0.4776535",
"0.47741008",
"0.47707456",
"0.47667977",
"0.4766695",
"0.47458056",
"0.47441846",
"0.47393113",
"0.47344878",
"0.47333375",
"0.47226673",
"0.47204742",
"0.47177798",
"0.47177085",
"0.4716981",
"0.47169426",
"0.47167912",
"0.47124773",
"0.4711617",
"0.47076407",
"0.47046912",
"0.4703076",
"0.4701462",
"0.46993193"
] | 0.5638655 | 2 |
Created by admin on 2016/9/28. | public interface PreviewImpl {
void ilog(String msg);
void ierror(String msg);
void record(int i,boolean isRecord);
void capture(String path);
void iToast(String msg);
void showBattery(int i);
void isConnect(boolean isConnect);
void setAngleAnimation(RotateAnimation ra_swing, RotateAnimation ra_picth, RotateAnimation ra_roll, RotateAnimation ra_head);
void stop();
void setEnvironmentData(EnvironmentInfo environmentData);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\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}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public void mo38117a() {\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 }",
"@Override\n protected void initialize() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\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\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n public void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n protected void getExras() {\n }",
"public void mo4359a() {\n }",
"@Override\n protected 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\tprotected void initialize() {\n\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 nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tprotected void interr() {\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\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n public void init() {}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void func_104112_b() {\n \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 mo55254a() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void create () {\n\n\t}",
"@Override\r\n\tpublic void init() {}",
"public void autoDetails() {\n\t\t\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"public void verarbeite() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"private TMCourse() {\n\t}",
"Petunia() {\r\n\t\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t}"
] | [
"0.62064433",
"0.6115038",
"0.5982355",
"0.5960744",
"0.5946803",
"0.58601606",
"0.5834379",
"0.5792032",
"0.5792032",
"0.5782888",
"0.57707083",
"0.57518613",
"0.5749953",
"0.57483315",
"0.57380235",
"0.5731037",
"0.5731037",
"0.57166696",
"0.57121265",
"0.5683464",
"0.56419003",
"0.5629512",
"0.56221336",
"0.56132233",
"0.560616",
"0.560616",
"0.560616",
"0.560616",
"0.560616",
"0.560616",
"0.5591257",
"0.55904895",
"0.5580858",
"0.5580858",
"0.5580858",
"0.5580858",
"0.5580858",
"0.55708236",
"0.55708236",
"0.55708075",
"0.55701905",
"0.55594254",
"0.555535",
"0.554703",
"0.55421853",
"0.55397564",
"0.55359626",
"0.5531201",
"0.55240756",
"0.55172676",
"0.55172676",
"0.55172676",
"0.55155134",
"0.55115885",
"0.55115885",
"0.55115885",
"0.5511379",
"0.5510975",
"0.5510975",
"0.5510537",
"0.55085707",
"0.55085707",
"0.5507718",
"0.5506766",
"0.55022335",
"0.5498709",
"0.54972154",
"0.5487914",
"0.5487914",
"0.5487914",
"0.54824656",
"0.54801285",
"0.54777837",
"0.5469954",
"0.5469372",
"0.5463489",
"0.54552287",
"0.54552287",
"0.54552287",
"0.54552287",
"0.54552287",
"0.54552287",
"0.54552287",
"0.5453066",
"0.5444988",
"0.5444112",
"0.5438828",
"0.54270506",
"0.542544",
"0.5421586",
"0.5413747",
"0.54109305",
"0.5407246",
"0.54058844",
"0.5403534",
"0.5400612",
"0.5399804",
"0.5399552",
"0.53980166",
"0.5394502",
"0.5388452"
] | 0.0 | -1 |
/ renamed from: h | private C8006w m34406h() {
long position = (long) this.f27042e.position();
C8006w wVar = new C8006w();
wVar.mo38498b(C7997r0.m34603c(this.f27042e));
wVar.mo38494a(C7997r0.m34603c(this.f27042e));
wVar.mo38496a(this.f27041d.mo38424a((int) ((long) this.f27042e.getInt())));
if ((wVar.mo38492a() & 1) != 0) {
C8008x xVar = new C8008x(wVar);
xVar.mo38504b(C7997r0.m34601b(this.f27042e));
xVar.mo38502a(C7997r0.m34601b(this.f27042e));
this.f27042e.position((int) (position + ((long) wVar.mo38499c())));
C7952b0[] b0VarArr = new C7952b0[((int) xVar.mo38505e())];
for (int i = 0; ((long) i) < xVar.mo38505e(); i++) {
b0VarArr[i] = m34407i();
}
xVar.mo38503a(b0VarArr);
return xVar;
}
this.f27042e.position((int) (position + ((long) wVar.mo38499c())));
wVar.mo38495a(C8003u0.m34634a(this.f27042e, this.f27044g));
return wVar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void h() {}",
"public void h() {\n }",
"public abstract long h();",
"float getH() {\n return _h;\n }",
"H1 createH1();",
"@Override\n public String toString() {\n return \"H\";\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 Husdjurshotell(){}",
"public abstract int mo123249h();",
"public int getH() {\n\t\treturn h;\n\t}",
"public ho e_()\r\n/* 455: */ {\r\n/* 456:469 */ if (k_()) {\r\n/* 457:470 */ return new hy(d_());\r\n/* 458: */ }\r\n/* 459:472 */ return new hz(d_(), new Object[0]);\r\n/* 460: */ }",
"public H(String a, String b, String c, String d, String e, String f, String g, String h, X x) {\n super(a, b, c, d, e, f, g, x);\n this.h = h;\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic int getH() {\n\t\treturn 100;\n\t}",
"public double getH();",
"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 boolean h()\r\n/* 189: */ {\r\n/* 190:187 */ return this.g;\r\n/* 191: */ }",
"public void setH(int h) {\n\t\tthis.H = h;\n\t}",
"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 double utilisation(int h)\n {\n \tDouble result;\n \tDouble n1=(Math.pow(2,h))-1;\n \tresult=size()/n1;\n \treturn result;\n \t \t\n }",
"public void setH(int h) {\n this.H = h;\n\n }",
"public void setH(double h) {\n this.h = h;\n }",
"public void mo21783H() {\n }",
"public int hash2(int h, int m) {\r\n//\t\tint m = this.capability>>1 + 1;\r\n\t\treturn 1+(h%(m-1));\r\n\t}",
"public double getH_() {\n\t\treturn h_;\n\t}",
"H4 createH4();",
"public abstract long mo9743h();",
"private int h1(int p){\n\t\t return p % table.length;\n\t}",
"public void applyHorn() {\n\t\t\r\n\t}",
"public double getH() {\n return h;\n }",
"public double getH() {\n return h;\n }",
"public amj h()\r\n/* 17: */ {\r\n/* 18: 41 */ if ((this.c < 9) && (this.c >= 0)) {\r\n/* 19: 42 */ return this.a[this.c];\r\n/* 20: */ }\r\n/* 21: 44 */ return null;\r\n/* 22: */ }",
"public int indexFor(int h) {\n\t\treturn (int) (h & (allLength - 1));\n\t}",
"@Override\n\tpublic void visit(Have h) {\n\t\t// Reception de l'entier indiquant\n\t\t// l'index de la piŹce possédée par\n\t\t// le pair.\n\t\tSystem.out.println(\"visit have\");\n\t\tif (pieces == null) {\n\t\t\tpieces = new ArrayList<Integer>();\n\t\t}\n\t\tpieces.add(byteArrayToInt(h.getIndex()));\n\t}",
"public abstract C17954dh<E> mo45842a();",
"void mo1501h();",
"static int indexFor(int h, int length) {\n return h & (length-1);\r\n }",
"public int getH() {\n\t\treturn this.H;\n\t}",
"public void setH_(double h_) {\n\t\tthis.h_ = h_;\n\t}",
"public void setH(boolean h) {\n\tthis.h = h;\n }",
"protected abstract void calculateH(Node node);",
"private void attachHeader(SIPHeader h) {\n if (h == null) throw new IllegalArgumentException(\"null header!\");\n try {\n if (h instanceof SIPHeaderList) {\n SIPHeaderList hl = (SIPHeaderList) h;\n if (hl.isEmpty()) {\n return;\n }\n }\n attachHeader(h,false,false);\n } catch ( SIPDuplicateHeaderException ex) {\n // InternalErrorHandler.handleException(ex);\n }\n }",
"void mo304a(C0366h c0366h);",
"static int indexFor(int h, int length) {\n return h & (length - 1);\n }",
"public final j h() {\n return new d(this);\n }",
"C32446a mo21077h() throws Exception;",
"private HSBC() {\n\t\t\n\t\t\n\t}",
"@Hide\n private final zzs zzahx() {\n }",
"public void mo9233aH() {\n }",
"public abstract String header();",
"abstract public void header();",
"public static void hehe(){\n \n }",
"H3 createH3();",
"public void setH(Double h);",
"private HeaderUtil() {}",
"public void visit(Have h);",
"private stendhal() {\n\t}",
"private void add0(int h, int i, final String name, final String value) {\n HeaderEntry e = entries[i];\n HeaderEntry newEntry;\n entries[i] = newEntry = new HeaderEntry(h, name, value);\n newEntry.next = e;\n\n // Update the linked list.\n newEntry.addBefore(head);\n }",
"int numberofhc()\n{\n\treturn hc.size();}",
"static void dad_with_hl_internal(int h,int l){\n\t\tl+=hexa_to_deci(registers.get('L'));\n\t\tint carry = l>255?1:0;\n\t\tregisters.put('L',decimel_to_hexa_8bit(l));\n\t\th+=hexa_to_deci(registers.get('H'));\n\t\th+=carry;\n\t\tCS = h>255?true:false;\n\t\tregisters.put('H',decimel_to_hexa_8bit(h));\n\t}",
"public Void mo7069h() {\n return null;\n }",
"public Lechuga(Hamburguesa h){\n this.hamburguesa = h;\n }",
"double normalizeHeading(double h) {\n double nh = h;\n if( h>-180 && h<180 ) {\n } else if( h <= -180 ) {\n nh = h+360;\n } else if( h > 180 ) {\n nh = h-360;\n }\n return nh;\n }",
"@java.lang.Override\n public java.lang.String getH() {\n java.lang.Object ref = h_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n h_ = s;\n return s;\n }\n }",
"private static String printH(Tuple[] h){\n\t\tString answer = \"ISOMORPHISM:\\t{\";\n\t\tfor(int i = 0; i < h.length; i++){\n\t\t\tanswer = answer + h[i] + (i < h.length-1? \",\": \"\");\n\t\t}\n\t\t\n\t\tanswer = answer + \"}\";\n\t\treturn answer;\n\t}",
"double getStartH();",
"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 }",
"public String createH() {\n\t\t// Create H per the algorithm\n\t\t// Create vertices of X --- The number of vertices in X is taken from the paper\n\t\t// k = (2 + epsilon)log n\n\t\tthis.createXVertices();\n\t\t// Create edges within X (both successive and random)\n\t\tthis.createXEdges();\n\n\t\treturn \"H Created (X Vertices)\";\n\n\t}",
"public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }",
"protected void b(dh paramdh) {}",
"public interface HTableWrapper {\n\n /**\n * To get the table name.\n * \n * @return\n */\n public byte[] getName();\n\n /**\n * To get a row.\n * \n * @param get\n * @return\n * @throws IOException\n */\n public Result get(Get get) throws IOException;\n\n /**\n * To get a row using lockId.\n * \n * @param get\n * @param lockId\n * @return\n * @throws IOException\n */\n public Result get(Get get, Integer lockId) throws IOException;\n\n /**\n * To rollback a row.\n * \n * @param row\n * @param startId\n * @param lockId\n * @throws IOException\n */\n public void rollbackRow(byte[] row, long startId, Integer lockId)\n throws IOException;\n\n /**\n * To commit a row.\n * \n * @param row\n * @param startId\n * @param commitId\n * @param isDelete\n * @param lockId\n * @throws IOException\n */\n public void commitRow(byte[] row, long startId, long commitId,\n boolean isDelete, Integer lockId) throws IOException;\n\n}",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getHBytes() {\n java.lang.Object ref = h_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n h_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"HEAD createHEAD();",
"private void insertItem(Hashtable<String, List<Integer>> h, Element e) {\n\t\tString key = e.attribute(\"sourcefilepath\").getValue().replace('/', '\\\\') + e.attribute(\"sourcefile\").getValue();\r\n\t\tint line = Integer.parseInt(e.attribute(\"line\").getValue().trim());\r\n\t\tList<Integer> l = h.get(key);\r\n\t\tif(l==null){\r\n\t\t\tl = new ArrayList<Integer>();\r\n\t\t\th.put(key, l);\r\n\t\t}\r\n\t\tl.add(line);\r\n\t}",
"private Parser(FScript h,HashMap l,HashMap g, HashMap f) {\n vars=l;\n gVars=g;\n funcs=f;\n host=h;\n }",
"String getHashControl();",
"public static void printHHSV(FqImage imh){\n\t\tint\ti,j;\r\n\t\tfor( i = 0 ; i < imh.width ; i++ ){\r\n\t\t\tfor( j = 0 ; j < imh.height ; j++ ){\r\n\t\t\t\tSystem.out.print(\"h\"+imh.points[i][j].getHHSV() );\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t}",
"String mo7388hl() throws RemoteException;",
"static String d(NetLoginHandler var0)\n {\n return var0.h;\n }",
"private static char toHexDigit(int h) {\n char out;\n if (h <= 9) out = (char) (h + 0x30);\n else out = (char) (h + 0x37);\n //System.err.println(h + \": \" + out);\n return out;\n }",
"void mo7372a(C0802fh fhVar) throws RemoteException;",
"double getEndH();",
"public String getParameterFromH();",
"public interface C22383h {\n}",
"public void setH(double value) {\n this.h = value;\n }",
"public void b(ahd paramahd) {}",
"void mo35722a(C14235h hVar);",
"public abstract void mo102585a(VH vh, int i);",
"SmilHead getHead();",
"@Override\n public void computeHash(Hasher hasher) {\n }",
"HSet entrySet();",
"public HELPFit getHF(){\n return HF;\n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }",
"void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }",
"H getProfile();",
"@Override\n\tpublic String getHead(Handler h) {\n\t\tStringBuffer buf = new StringBuffer(10000);\n\t\tbuf.append(\"<!DOCTYPE html>\\n\");\n\t\t\n\t\tbuf.append(\"\\t<head>\\n\");\n\t\tbuf.append(\"\\t\\t<style>\\n\");\n\t\tbuf.append(\"\\t\\ttable { width: 100% }\\n\");\n\t\tbuf.append(\"\\t\\tth { font: bold 10pt Tahoma; }\\n\");\n\t\tbuf.append(\"\\t\\ttd { font: normal 10pt Tahoma; }\\n\");\n\t\tbuf.append(\"\\t\\th1 { font: normal 11pt Tahoma; }\\n\");\n\t\tbuf.append(\"\\t\\t</style>\\n\");\n\t\tbuf.append(\"\\t</head>\\n\");\n\t\t\n\t\tbuf.append(\"\\t<body>\\n\");\n\t\tbuf.append(\"\\t\\t<h1>\" + (new Date()) + \"\\n\");\n\t\tbuf.append(\"\\t\\t<table border=\\\"0\\\" cellpadding=\\\"5\\\" cellspacing=\\\"3\\\">\\n\");\n\t\tbuf.append(\"\\t\\t\\t<tr align=\\\"left\\\">\\n\");\n\t\tbuf.append(\"\\t\\t\\t\\t<th style=\\\"width:10%\\\">LogLevel</th>\\n\");\n\t\tbuf.append(\"\\t\\t\\t\\t<th style=\\\"width:15%\\\">Time</th>\\n\");\n\t\tbuf.append(\"\\t\\t\\t\\t<th style=\\\"width:75%\\\">LogMessage</th>\\n\");\n\t\tbuf.append(\"\\t\\t\\t</tr>\\n\");\n\t\t\n\t\treturn buf.toString();\n\t}",
"protected void a(dh paramdh) {}",
"public com.google.protobuf.ByteString\n getHBytes() {\n java.lang.Object ref = h_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n h_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n\tprotected void interr() {\n\t}",
"public int func_176881_a() {\n/* */ return this.field_176893_h;\n/* */ }"
] | [
"0.7006457",
"0.6376803",
"0.6152193",
"0.6099337",
"0.599903",
"0.5976422",
"0.5881053",
"0.5878019",
"0.5851139",
"0.5840173",
"0.58104765",
"0.57935345",
"0.5784397",
"0.577195",
"0.5760394",
"0.5758641",
"0.57195157",
"0.5717094",
"0.5712681",
"0.57083744",
"0.5691357",
"0.5675319",
"0.5654622",
"0.5647394",
"0.5633566",
"0.5630044",
"0.5611922",
"0.5607437",
"0.55959165",
"0.55954385",
"0.55954385",
"0.5585786",
"0.55847657",
"0.5573256",
"0.5557641",
"0.55522007",
"0.55487716",
"0.55462223",
"0.55379975",
"0.55343676",
"0.55202854",
"0.55091685",
"0.5500832",
"0.54957825",
"0.5495365",
"0.548653",
"0.5483489",
"0.54801226",
"0.5476092",
"0.54691756",
"0.5457996",
"0.5454038",
"0.54173815",
"0.54168785",
"0.5415112",
"0.54006886",
"0.53944254",
"0.53781533",
"0.5358132",
"0.5352097",
"0.5350295",
"0.53456247",
"0.53152686",
"0.5314088",
"0.5306762",
"0.53060544",
"0.5305655",
"0.5299146",
"0.52944684",
"0.52934664",
"0.5282273",
"0.52762216",
"0.52678543",
"0.52643436",
"0.5263177",
"0.52619565",
"0.52585053",
"0.5258431",
"0.5251732",
"0.5248985",
"0.524418",
"0.52275395",
"0.5224416",
"0.5206976",
"0.5205791",
"0.5202667",
"0.5201214",
"0.5192617",
"0.5188043",
"0.5187125",
"0.51868486",
"0.5182988",
"0.51596665",
"0.5158084",
"0.5158084",
"0.51560694",
"0.5155596",
"0.51440835",
"0.5138143",
"0.51342785",
"0.51331306"
] | 0.0 | -1 |
/ renamed from: i | private C7952b0 m34407i() {
C7952b0 b0Var = new C7952b0();
b0Var.mo38267a(C7997r0.m34601b(this.f27042e));
b0Var.mo38268a(C8003u0.m34634a(this.f27042e, this.f27044g));
if ((b0Var.mo38270b() & 33554432) == 0) {
b0Var.mo38270b();
}
return b0Var;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo17022c(int i);",
"public final void mo5394iy(int i) {\n }",
"void mo88773a(int i);",
"void mo32046rn(int i);",
"void mo54447l(int i);",
"public final void mo91727g(int i) {\n }",
"void mo1761g(int i);",
"void mo54406a(int i);",
"void mo23327tY(int i);",
"void mo1753b(int i);",
"@Override\n\tpublic void aumenta(int i) {\n\t\t\n\t}",
"private void info3(int i) {\n\t\t\n\t}",
"void mo54436d(int i);",
"void mo6247nm(int i);",
"void mo1933b(int i);",
"void mo1494c(int i);",
"void m15858a(int i);",
"void mo54437e(int i);",
"void mo1754c(int i);",
"public int i() {\n \treturn i; \n }",
"public final int getPos() { return i; }",
"void mo1755d(int i);",
"void mo54452q(int i);",
"void mo1747a(int i);",
"static int fixIndex(int i)\r\n {\r\n return i >= 0 ? i : -(i + 1);\r\n }",
"void mo21050ml(int i);",
"void mo37668e(int i);",
"public final void mo91947k(int i) {\n }",
"public abstract void mo4376b(int i);",
"public void mo5332a(int i) {\n }",
"void mo38565a(int i);",
"public String select(int i)\r\n\t {\t\t \r\n\t\t String[] arr = this.infoToArray();\r\n\t\t if(i > arr.length)\r\n\t\t {\r\n\t\t\t return \"-1\";\r\n\t\t }\r\n\t\t return arr[i-1];\r\n\t }",
"void mo22044oA(int i);",
"void mo3796b(int i);",
"void mo54446k(int i);",
"void mo66998a(int i);",
"private Index(int i) {\r\n _value = i;\r\n }",
"void mo1485a(int i);",
"void mo54448m(int i);",
"private int elementNC(int i) {\n return first + i * stride;\n }",
"public void setIndex(int i) {\n\t\t\n\t}",
"public abstract void mo4385d(int i);",
"void mo26876a(int i);",
"void mo122221a(int i);",
"private final void i() {\n }",
"public abstract void mo9814c(int i);",
"protected void dataTablePlan2(int i) {\n\t\t\r\n\t}",
"void mo27576a(int i);",
"public void mo44231a(int i) {\n }",
"void mo85a(int i);",
"void mo63039b(int i, int i2);",
"void mo17020b(int i);",
"void mo62991a(int i);",
"public void mo3350a(int i) {\n }",
"public int index(int i){\n \t\tif (i < 0 || i >= length()) throw new IllegalArgumentException();\n \t\treturn csa[i];\n \t}",
"public abstract int mo12581RU(int i);",
"public abstract void mo2156b(int i);",
"private final int m28109e(int i) {\n return i + i;\n }",
"public abstract void mo9809b(int i);",
"@Override\n public String apply(Integer i) {\n //kombinowałem długo ale nie udało mi sie wykminić jak zrobić to zadanie przy użuciu tego interfejsu funkcyjnego\n //i zrobiłem to iteracyjnie\n return null;\n }",
"public abstract int mo12574RN(int i);",
"public abstract int mo12579RS(int i);",
"void mo1763h(int i);",
"public void mo23980a(int i, String str) {\n }",
"void mo13163e(int i);",
"private int advance(int[] n, int i) {\n i += n[i];\n i%=len;\n while (i<0) i+=len;\n return i;\n }",
"public final void mo91724f(int i) {\n }",
"private int parentIndex(int i) {\n return i / 2;\n }",
"public void worked(int i) {\n\t\t\n\t}",
"public int nextIndex(int i) {\n\t\treturn (i + 1) % data.length;\n\t}",
"void mo17016a(int i);",
"public abstract void mo4361a(int i);",
"void mo1491b(int i);",
"void mo7304b(int i, int i2);",
"public int index(int i) {\n\t\tif (i < 0 || i >= text.length) throw new IndexOutOfBoundsException();\n\t\treturn r2p[i];\n\t}",
"public abstract int start(int i);",
"private int rightIndex(int i) {\n return i * 2 + 1;\n }",
"public abstract void mo9734b(int i);",
"void mo3767a(int i);",
"protected void dataTableleibie(int i) {\n\t\r\n}",
"void mo34684de(int i, int i2);",
"public void mo29749op(int i) {\n if (i == 0) {\n C6638d.this.daT.mo29698og(0);\n }\n }",
"private int leftIndex(int i) {\n return i * 2;\n }",
"public abstract AbstractC5666g mo39572a(int i);",
"C3579d mo19710g(int i) throws IOException;",
"void mo7306c(int i, int i2);",
"public abstract C14407a mo11609c(int i);",
"void mo54424b(int i);",
"public abstract int mo12582RV(int i);",
"void mo63037a(int i, int i2);",
"public abstract void mo4377b(int i, int i2);",
"public void processed(int i);",
"private int convertX(int i) {\n return i % width;\n }",
"public abstract void mo4379b(int i, zzwt zzwt);",
"public item getI() {\n return i;\n }",
"public void getResult (int i){\n\t\tString result = items.get(i).toString();\n\t\tformatText(result);\n\t System.out.println(result);\n\t}",
"public int index(int i) {\n if (i < 0 || i >= lng) {\n throw new IllegalArgumentException(\"index out of range.\");\n }\n\n return arr[i];\n }",
"void setIdx(int i);",
"public int withdraw(int i) {\n\t\treturn i;\n\t}",
"public abstract C14407a mo11604a(int i);",
"void mo54408a(int i, int i2, int i3, int i4);"
] | [
"0.6814251",
"0.6791054",
"0.67141014",
"0.67082477",
"0.6697361",
"0.6696495",
"0.66768324",
"0.66522545",
"0.66506225",
"0.66473114",
"0.6642119",
"0.66363925",
"0.6592755",
"0.65895766",
"0.65869564",
"0.65632737",
"0.6560748",
"0.65470266",
"0.6536829",
"0.65297914",
"0.65127593",
"0.64910436",
"0.6475078",
"0.6474579",
"0.6453788",
"0.6449947",
"0.64423084",
"0.643925",
"0.64370835",
"0.6435097",
"0.6393611",
"0.6377644",
"0.63709825",
"0.6361261",
"0.63309604",
"0.6324192",
"0.63111883",
"0.6308764",
"0.6303613",
"0.62915045",
"0.6283118",
"0.6279513",
"0.6277226",
"0.6260732",
"0.6252936",
"0.6244241",
"0.62374526",
"0.62289596",
"0.6224372",
"0.62223464",
"0.6217344",
"0.62157923",
"0.6201605",
"0.6201401",
"0.6192293",
"0.6187045",
"0.61829",
"0.6181645",
"0.61738485",
"0.6170852",
"0.617046",
"0.61667144",
"0.6165859",
"0.61595744",
"0.6159086",
"0.6144851",
"0.61408836",
"0.6139398",
"0.61274415",
"0.6116618",
"0.6108977",
"0.6104106",
"0.60988563",
"0.60880226",
"0.6079969",
"0.60698235",
"0.60688525",
"0.606842",
"0.60552436",
"0.60544693",
"0.60476667",
"0.6044652",
"0.60406977",
"0.603512",
"0.6025365",
"0.6022614",
"0.60220104",
"0.6019621",
"0.5996024",
"0.5991862",
"0.5989539",
"0.598887",
"0.5987865",
"0.5970536",
"0.5967256",
"0.5967037",
"0.59660614",
"0.5965706",
"0.59619015",
"0.595908",
"0.5954689"
] | 0.0 | -1 |
/ renamed from: a | public C8006w mo38275a(int i) {
long[] jArr = this.f27043f;
if (i >= jArr.length || jArr[i] == C7962d0.f27060j) {
return null;
}
this.f27042e.position((int) jArr[i]);
return m34406h();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public ByteBuffer mo38276a() {
return this.f27042e;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public void mo38277a(C7998s sVar) {
this.f27041d = sVar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public void mo38278a(String str) {
this.f27038a = str;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public void mo38279a(ByteBuffer byteBuffer) {
this.f27042e = byteBuffer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public void mo38280a(Locale locale) {
this.f27040c = locale;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public void mo38281a(short s) {
this.f27039b = s;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public void mo38282a(long[] jArr) {
this.f27043f = jArr;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: b | public short mo38283b() {
return this.f27039b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void b() {\n\n\t}",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public bb b() {\n return a(this.a);\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract void b(StringBuilder sb);",
"public void b() {\n }",
"public void b() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void b() {\n ((a) this.a).b();\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public t b() {\n return a(this.a);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract T zzm(B b);",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"public abstract void zzc(B b, int i, int i2);",
"public interface b {\n}",
"public interface b {\n}",
"private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }",
"BSubstitution createBSubstitution();",
"public void b(ahd paramahd) {}",
"void b();",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"B database(S database);",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public abstract C0631bt mo9227aB();",
"public an b() {\n return a(this.a);\n }",
"protected abstract void a(bru parambru);",
"static void go(Base b) {\n\t\tb.add(8);\n\t}",
"void mo46242a(bmc bmc);",
"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 }",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public abstract BoundType b();",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }",
"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}",
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"public abstract void zzb(B b, int i, long j);",
"public abstract void zza(B b, int i, zzeh zzeh);",
"int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }",
"public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }",
"public abstract void a(StringBuilder sb);",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public abstract void zzf(Object obj, B b);",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }",
"void mo83703a(C32456b<T> bVar);",
"public void a(String str) {\n ((b.b) this.b).d(str);\n }",
"public void selectB() { }",
"BOperation createBOperation();",
"void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }",
"public void b(String str) {\n ((b.b) this.b).e(str);\n }",
"public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }",
"public abstract void zza(B b, int i, T t);",
"public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }",
"public abstract void zza(B b, int i, long j);",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo9798a(byte b);",
"public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }",
"private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.5886636",
"0.58828026",
"0.5855491",
"0.584618",
"0.5842517",
"0.5824137",
"0.5824071",
"0.58097327",
"0.5802052",
"0.58012927",
"0.579443",
"0.5792392",
"0.57902914",
"0.5785124",
"0.57718205",
"0.57589084",
"0.5735892",
"0.5735892",
"0.5734873",
"0.5727929",
"0.5720821",
"0.5712531",
"0.5706813",
"0.56896514",
"0.56543154",
"0.5651059",
"0.5649904",
"0.56496733",
"0.5647035",
"0.5640965",
"0.5640109",
"0.563993",
"0.5631903",
"0.5597427",
"0.55843794",
"0.5583287",
"0.557783",
"0.55734867",
"0.55733293",
"0.5572254",
"0.55683887",
"0.55624336",
"0.55540246",
"0.5553985",
"0.55480546",
"0.554261",
"0.5535739",
"0.5529958",
"0.5519634",
"0.5517503",
"0.55160624",
"0.5511545",
"0.5505353",
"0.5500533",
"0.5491741",
"0.5486198",
"0.5481978",
"0.547701",
"0.54725856",
"0.5471632",
"0.5463497",
"0.5460805",
"0.5454913",
"0.5454885",
"0.54519916",
"0.5441594",
"0.5436747",
"0.5432453",
"0.5425923",
"0.5424724",
"0.54189867",
"0.54162544",
"0.54051477",
"0.53998184",
"0.53945845",
"0.53887725",
"0.5388146",
"0.5387678",
"0.53858143",
"0.53850687",
"0.5384439"
] | 0.0 | -1 |
/ renamed from: b | public void mo38284b(C7998s sVar) {
this.f27044g = sVar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void b() {\n\n\t}",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public bb b() {\n return a(this.a);\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract void b(StringBuilder sb);",
"public void b() {\n }",
"public void b() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void b() {\n ((a) this.a).b();\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public t b() {\n return a(this.a);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract T zzm(B b);",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"public abstract void zzc(B b, int i, int i2);",
"public interface b {\n}",
"public interface b {\n}",
"private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }",
"BSubstitution createBSubstitution();",
"public void b(ahd paramahd) {}",
"void b();",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"B database(S database);",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public abstract C0631bt mo9227aB();",
"public an b() {\n return a(this.a);\n }",
"protected abstract void a(bru parambru);",
"static void go(Base b) {\n\t\tb.add(8);\n\t}",
"void mo46242a(bmc bmc);",
"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 }",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public abstract BoundType b();",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }",
"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}",
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"public abstract void zzb(B b, int i, long j);",
"public abstract void zza(B b, int i, zzeh zzeh);",
"int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }",
"public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }",
"public abstract void a(StringBuilder sb);",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public abstract void zzf(Object obj, B b);",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }",
"void mo83703a(C32456b<T> bVar);",
"public void a(String str) {\n ((b.b) this.b).d(str);\n }",
"public void selectB() { }",
"BOperation createBOperation();",
"void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }",
"public void b(String str) {\n ((b.b) this.b).e(str);\n }",
"public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }",
"public abstract void zza(B b, int i, T t);",
"public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }",
"public abstract void zza(B b, int i, long j);",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo9798a(byte b);",
"public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }",
"private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.5886636",
"0.58828026",
"0.5855491",
"0.584618",
"0.5842517",
"0.5824137",
"0.5824071",
"0.58097327",
"0.5802052",
"0.58012927",
"0.579443",
"0.5792392",
"0.57902914",
"0.5785124",
"0.57718205",
"0.57589084",
"0.5735892",
"0.5735892",
"0.5734873",
"0.5727929",
"0.5720821",
"0.5712531",
"0.5706813",
"0.56896514",
"0.56543154",
"0.5651059",
"0.5649904",
"0.56496733",
"0.5647035",
"0.5640965",
"0.5640109",
"0.563993",
"0.5631903",
"0.5597427",
"0.55843794",
"0.5583287",
"0.557783",
"0.55734867",
"0.55733293",
"0.5572254",
"0.55683887",
"0.55624336",
"0.55540246",
"0.5553985",
"0.55480546",
"0.554261",
"0.5535739",
"0.5529958",
"0.5519634",
"0.5517503",
"0.55160624",
"0.5511545",
"0.5505353",
"0.5500533",
"0.5491741",
"0.5486198",
"0.5481978",
"0.547701",
"0.54725856",
"0.5471632",
"0.5463497",
"0.5460805",
"0.5454913",
"0.5454885",
"0.54519916",
"0.5441594",
"0.5436747",
"0.5432453",
"0.5425923",
"0.5424724",
"0.54189867",
"0.54162544",
"0.54051477",
"0.53998184",
"0.53945845",
"0.53887725",
"0.5388146",
"0.5387678",
"0.53858143",
"0.53850687",
"0.5384439"
] | 0.0 | -1 |
/ renamed from: c | public C7998s mo38285c() {
return this.f27041d;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
"public void c() {\n }",
"void mo17012c();",
"C2451d mo3408a(C2457e c2457e);",
"void mo88524c();",
"void mo86a(C0163d c0163d);",
"void mo17021c();",
"public abstract void mo53562a(C18796a c18796a);",
"void mo4874b(C4718l c4718l);",
"void mo4873a(C4718l c4718l);",
"C12017a mo41088c();",
"public abstract void mo70702a(C30989b c30989b);",
"void mo72114c();",
"public void mo12628c() {\n }",
"C2841w mo7234g();",
"public interface C0335c {\n }",
"public void mo1403c() {\n }",
"public static void c3() {\n\t}",
"public static void c1() {\n\t}",
"void mo8712a(C9714a c9714a);",
"void mo67924c();",
"public void mo97906c() {\n }",
"public abstract void mo27385c();",
"String mo20731c();",
"public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }",
"public interface C0939c {\n }",
"void mo1582a(String str, C1329do c1329do);",
"void mo304a(C0366h c0366h);",
"void mo1493c();",
"private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}",
"java.lang.String getC3();",
"C45321i mo90380a();",
"public interface C11910c {\n}",
"void mo57277b();",
"String mo38972c();",
"static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}",
"public static void CC2_1() {\n\t}",
"static int type_of_cc(String passed){\n\t\treturn 1;\n\t}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public void mo56167c() {\n }",
"public interface C0136c {\n }",
"private void kk12() {\n\n\t}",
"abstract String mo1748c();",
"public abstract void mo70710a(String str, C24343db c24343db);",
"public interface C0303q extends C0291e {\n /* renamed from: a */\n void mo1747a(int i);\n\n /* renamed from: a */\n void mo1749a(C0288c cVar);\n\n /* renamed from: a */\n void mo1751a(byte[] bArr);\n\n /* renamed from: b */\n void mo1753b(int i);\n\n /* renamed from: c */\n void mo1754c(int i);\n\n /* renamed from: d */\n void mo1755d(int i);\n\n /* renamed from: e */\n int mo1756e(int i);\n\n /* renamed from: g */\n int mo1760g();\n\n /* renamed from: g */\n void mo1761g(int i);\n\n /* renamed from: h */\n void mo1763h(int i);\n}",
"C3577c mo19678C();",
"public abstract int c();",
"public abstract int c();",
"public final void mo11687c() {\n }",
"byte mo30283c();",
"private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }",
"@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}",
"public interface C3196it extends C3208jc {\n /* renamed from: a */\n void mo30275a(long j);\n\n /* renamed from: b */\n C3197iu mo30281b(long j);\n\n /* renamed from: b */\n boolean mo30282b();\n\n /* renamed from: c */\n byte mo30283c();\n\n /* renamed from: c */\n String mo30285c(long j);\n\n /* renamed from: d */\n void mo30290d(long j);\n\n /* renamed from: e */\n int mo30291e();\n\n /* renamed from: f */\n long mo30295f();\n}",
"public static void mmcc() {\n\t}",
"java.lang.String getCit();",
"public abstract C mo29734a();",
"C15430g mo56154a();",
"void mo41086b();",
"@Override\n public void func_104112_b() {\n \n }",
"public interface C9223b {\n }",
"public abstract String mo11611b();",
"void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);",
"String getCmt();",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"interface C2578d {\n}",
"public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}",
"double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }",
"void mo72113b();",
"void mo1749a(C0288c cVar);",
"public interface C0764b {\n}",
"void mo41083a();",
"String[] mo1153c();",
"C1458cs mo7613iS();",
"public interface C0333a {\n }",
"public abstract int mo41077c();",
"public interface C8843g {\n}",
"public abstract void mo70709a(String str, C41018cm c41018cm);",
"void mo28307a(zzgd zzgd);",
"public static void mcdc() {\n\t}",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"C1435c mo1754a(C1433a c1433a, C1434b c1434b);",
"public interface C0389gj extends C0388gi {\n}",
"C5727e mo33224a();",
"C12000e mo41087c(String str);",
"public abstract String mo118046b();",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C0938b {\n }",
"void mo80455b();",
"public interface C0385a {\n }",
"public interface C5527c {\n /* renamed from: a */\n int mo4095a(int i);\n\n /* renamed from: b */\n C5537g mo4096b(int i);\n}",
"public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}",
"public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}"
] | [
"0.64592767",
"0.644052",
"0.6431582",
"0.6418656",
"0.64118475",
"0.6397491",
"0.6250796",
"0.62470585",
"0.6244832",
"0.6232792",
"0.618864",
"0.61662376",
"0.6152657",
"0.61496663",
"0.6138441",
"0.6137171",
"0.6131197",
"0.6103783",
"0.60983956",
"0.6077118",
"0.6061723",
"0.60513836",
"0.6049069",
"0.6030368",
"0.60263443",
"0.60089093",
"0.59970635",
"0.59756917",
"0.5956231",
"0.5949343",
"0.5937446",
"0.5911776",
"0.59034705",
"0.5901311",
"0.5883238",
"0.5871533",
"0.5865361",
"0.5851141",
"0.581793",
"0.5815705",
"0.58012",
"0.578891",
"0.57870495",
"0.5775621",
"0.57608724",
"0.5734331",
"0.5731584",
"0.5728505",
"0.57239383",
"0.57130504",
"0.57094604",
"0.570793",
"0.5697671",
"0.56975955",
"0.56911296",
"0.5684489",
"0.5684489",
"0.56768984",
"0.56749034",
"0.5659463",
"0.56589085",
"0.56573",
"0.56537443",
"0.5651912",
"0.5648272",
"0.5641736",
"0.5639226",
"0.5638583",
"0.56299245",
"0.56297386",
"0.56186295",
"0.5615729",
"0.56117755",
"0.5596015",
"0.55905765",
"0.55816257",
"0.55813104",
"0.55723965",
"0.5572061",
"0.55696625",
"0.5566985",
"0.55633485",
"0.555888",
"0.5555646",
"0.55525774",
"0.5549722",
"0.5548184",
"0.55460495",
"0.5539394",
"0.5535825",
"0.55300397",
"0.5527975",
"0.55183905",
"0.5517322",
"0.5517183",
"0.55152744",
"0.5514932",
"0.55128884",
"0.5509501",
"0.55044043",
"0.54984957"
] | 0.0 | -1 |
/ renamed from: d | public Locale mo38286d() {
return this.f27040c;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }",
"public abstract int d();",
"private void m2248a(double d, String str) {\n this.f2954c = d;\n this.f2955d = (long) d;\n this.f2953b = str;\n this.f2952a = ValueType.doubleValue;\n }",
"public int d()\n {\n return 1;\n }",
"public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }",
"void mo21073d();",
"@Override\n public boolean d() {\n return false;\n }",
"int getD();",
"public void dor(){\n }",
"public int getD() {\n\t\treturn d;\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}",
"public String getD() {\n return d;\n }",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"public final void mo91715d() {\n }",
"public D() {}",
"void mo17013d();",
"public int getD() {\n return d_;\n }",
"void mo83705a(C32458d<T> dVar);",
"public void d() {\n\t\tSystem.out.println(\"d method\");\n\t}",
"double d();",
"public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }",
"protected DNA(Population pop, DNA d) {\n\t\t// TODO: implement this\n\t}",
"public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }",
"public abstract C17954dh<E> mo45842a();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void visitTdetree(Tdetree p) {\n\n\t}",
"public abstract void mo56925d();",
"void mo54435d();",
"public void mo21779D() {\n }",
"public void d() {\n this.f20599d.a(this.f20598c);\n this.f20598c.a(this);\n this.f20601f = new a(new d());\n d.a(this.f20596a, this.f20597b, this.f20601f);\n this.f20596a.setLayoutManager(new NPALinearLayoutManager(getContext()));\n ((s) this.f20596a.getItemAnimator()).setSupportsChangeAnimations(false);\n this.f20596a.setAdapter(this.f20601f);\n this.f20598c.a(this.f20602g);\n }",
"@Override\r\n public String getStringRepresentation()\r\n {\r\n return \"D\";\r\n }",
"void mo28307a(zzgd zzgd);",
"List<String> d();",
"d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }",
"public int getD() {\n return d_;\n }",
"public void addDField(String d){\n\t\tdfield.add(d);\n\t}",
"public void mo3749d() {\n }",
"public a dD() {\n return new a(this.HG);\n }",
"public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }",
"public void mo130970a(double d) {\n SinkDefaults.m149818a(this, d);\n }",
"public abstract int getDx();",
"public void mo97908d() {\n }",
"public com.c.a.d.d d() {\n return this.k;\n }",
"private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }",
"public boolean d() {\n return false;\n }",
"void mo17023d();",
"String dibujar();",
"@Override\n\tpublic void setDurchmesser(int d) {\n\n\t}",
"public void mo2470d() {\n }",
"public abstract VH mo102583a(ViewGroup viewGroup, D d);",
"public abstract String mo41079d();",
"public void setD ( boolean d ) {\n\n\tthis.d = d;\n }",
"public Dx getDx() {\n/* 32 */ return this.dx;\n/* */ }",
"DoubleNode(int d) {\n\t data = d; }",
"DD createDD();",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"public void setD(String d) {\n this.d = d == null ? null : d.trim();\n }",
"public int d()\r\n {\r\n return 20;\r\n }",
"float getD();",
"public static int m22546b(double d) {\n return 8;\n }",
"void mo12650d();",
"String mo20732d();",
"static void feladat4() {\n\t}",
"void mo130799a(double d);",
"public void mo2198g(C0317d dVar) {\n }",
"@Override\n public void d(String TAG, String msg) {\n }",
"private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}",
"public void d(String str) {\n ((b.b) this.b).g(str);\n }",
"public abstract void mo42329d();",
"public abstract long mo9229aD();",
"public abstract String getDnForPerson(String inum);",
"public interface ddd {\n public String dan();\n\n}",
"@Override\n public void func_104112_b() {\n \n }",
"public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}",
"public void mo5117a(C0371d c0371d, double d) {\n new C0369b(this, c0371d, d).start();\n }",
"public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}",
"public final void m22595a(double d) {\n mo4383c(Double.doubleToRawLongBits(d));\n }",
"public void d() {\n this.f23522d.a(this.f23521c);\n this.f23521c.a(this);\n this.i = new a();\n this.i.a(new ae(this.f23519a));\n this.f23519a.setAdapter(this.i);\n this.f23519a.setOnItemClickListener(this);\n this.f23521c.e();\n this.h.a(hashCode(), this.f23520b);\n }",
"public Vector2d(double d) {\n\t\tthis.x = d;\n\t\tthis.y = d;\n\t}",
"DomainHelper dh();",
"private Pares(PLoc p, PLoc s, int d){\n\t\t\tprimero=p;\n\t\t\tsegundo=s;\n\t\t\tdistancia=d;\n\t\t}",
"static double DEG_to_RAD(double d) {\n return d * Math.PI / 180.0;\n }",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"private final VH m112826b(ViewGroup viewGroup, D d) {\n return mo102583a(viewGroup, d);\n }",
"public Double getDx();",
"public void m25658a(double d) {\n if (d <= 0.0d) {\n d = 1.0d;\n }\n this.f19276f = (float) (50.0d / d);\n this.f19277g = new C4658a(this, this.f19273c);\n }",
"boolean hasD();",
"public abstract void mo27386d();",
"MergedMDD() {\n }",
"@ReflectiveMethod(name = \"d\", types = {})\n public void d(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"@Override\n public Chunk d(int i0, int i1) {\n return null;\n }",
"public void d(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 47: */ {\r\n/* 48: 68 */ BlockPosition localdt = paramdt.offset(((EnumDirection)parambec.getData(a)).opposite());\r\n/* 49: 69 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 50: 70 */ if (((localbec.getType() instanceof bdq)) && (((Boolean)localbec.getData(bdq.b)).booleanValue())) {\r\n/* 51: 71 */ paramaqu.g(localdt);\r\n/* 52: */ }\r\n/* 53: */ }",
"double defendre();",
"public static int setDimension( int d ) {\n int temp = DPoint.d;\n DPoint.d = d;\n return temp;\n }",
"public Datum(Datum d) {\n this.dan = d.dan;\n this.mesec = d.mesec;\n this.godina = d.godina;\n }",
"public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}"
] | [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222",
"0.5541367",
"0.5534182",
"0.55326",
"0.550431",
"0.55041796",
"0.5500838",
"0.54946786",
"0.5475938",
"0.5466879",
"0.5449981",
"0.5449007",
"0.54464436",
"0.5439673",
"0.543565",
"0.5430978",
"0.5428843",
"0.5423923",
"0.542273",
"0.541701",
"0.5416963",
"0.54093426",
"0.53927654",
"0.53906536",
"0.53793144",
"0.53732955",
"0.53695524",
"0.5366731",
"0.53530186",
"0.535299",
"0.53408253",
"0.5333639",
"0.5326304",
"0.53250664",
"0.53214055",
"0.53208005",
"0.5316437",
"0.53121597",
"0.52979535",
"0.52763224",
"0.5270543",
"0.526045",
"0.5247397",
"0.5244388",
"0.5243049",
"0.5241726",
"0.5241194",
"0.523402",
"0.5232349",
"0.5231111",
"0.5230985",
"0.5219358",
"0.52145815",
"0.5214168",
"0.5209237",
"0.52059376",
"0.51952434",
"0.5193699",
"0.51873696",
"0.5179743",
"0.5178796",
"0.51700175",
"0.5164517",
"0.51595956",
"0.5158281",
"0.51572365",
"0.5156627",
"0.5155795",
"0.51548296",
"0.51545656",
"0.5154071",
"0.51532024",
"0.5151545",
"0.5143571",
"0.5142079",
"0.5140048",
"0.51377696",
"0.5133826",
"0.5128858",
"0.5125679",
"0.5121545"
] | 0.0 | -1 |
/ renamed from: e | public String mo38287e() {
return this.f27038a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void e() {\n\n\t}",
"public void e() {\n }",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@Override\n public void e(String TAG, String msg) {\n }",
"public String toString()\r\n {\r\n return e.toString();\r\n }",
"@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}",
"public Object element() { return e; }",
"@Override\n public void e(int i0, int i1) {\n\n }",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"private static Throwable handle(final Throwable e) {\r\n\t\te.printStackTrace();\r\n\r\n\t\tif (e.getCause() != null) {\r\n\t\t\te.getCause().printStackTrace();\r\n\t\t}\r\n\t\tif (e instanceof SAXException) {\r\n\t\t\t((SAXException) e).getException().printStackTrace();\r\n\t\t}\r\n\t\treturn e;\r\n\t}",
"void event(Event e) throws Exception;",
"Event getE();",
"public int getE() {\n return e_;\n }",
"@Override\n\tpublic void onException(Exception e) {\n\n\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(2));\r\n\t\t\t}",
"public byte e()\r\n/* 84: */ {\r\n/* 85:86 */ return this.e;\r\n/* 86: */ }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(1));\r\n\t\t\t}",
"public void toss(Exception e);",
"private void log(IndexObjectException e) {\n\t\t\r\n\t}",
"public int getE() {\n return e_;\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"private String getStacktraceFromException(Exception e) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tPrintStream ps = new PrintStream(baos);\n\t\te.printStackTrace(ps);\n\t\tps.close();\n\t\treturn baos.toString();\n\t}",
"protected void processEdge(Edge e) {\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"E \" + super.toString();\n\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(0));\r\n\t\t\t}",
"public Element getElement() {\n/* 78 */ return this.e;\n/* */ }",
"@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }",
"void mo57276a(Exception exc);",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"public Throwable getOriginalException()\n/* 28: */ {\n/* 29:56 */ return this.originalE;\n/* 30: */ }",
"@Override\r\n\t\t\tpublic void onError(Throwable e) {\n\r\n\t\t\t}",
"private void sendOldError(Exception e) {\n }",
"private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n protected void processMouseEvent(MouseEvent e) {\n super.processMouseEvent(e);\n }",
"private void printInfo(SAXParseException e) {\n\t}",
"@Override\n\t\tpublic void onError(Throwable e) {\n\t\t\tSystem.out.println(\"onError\");\n\t\t}",
"String exceptionToStackTrace( Exception e ) {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter);\n e.printStackTrace( printWriter );\n return stringWriter.toString();\n }",
"public <E> E getE(E e){\n return e;\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@PortedFrom(file = \"tSignatureUpdater.h\", name = \"vE\")\n private void vE(NamedEntity e) {\n sig.add(e);\n }",
"@Override\n\t\tpublic void onException(Exception arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}",
"protected E eval()\n\t\t{\n\t\tE e=this.e;\n\t\tthis.e=null;\n\t\treturn e;\n\t\t}",
"void showResultMoError(String e);",
"public int E() {\n \treturn E;\n }",
"@Override\r\n public void processEvent(IAEvent e) {\n\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"static public String getStackTrace(Exception e) {\n java.io.StringWriter s = new java.io.StringWriter(); \n e.printStackTrace(new java.io.PrintWriter(s));\n String trace = s.toString();\n \n if(trace==null || trace.length()==0 || trace.equals(\"null\"))\n return e.toString();\n else\n return trace;\n }",
"@Override\n public String toString() {\n return \"[E]\" + super.toString() + \"(at: \" + details + \")\";\n }",
"public static void error(boolean e) {\n E = e;\n }",
"public void out_ep(Edge e) {\r\n\r\n\t\tif (triangulate == 0 & plot == 1) {\r\n\t\t\tclip_line(e);\r\n\t\t}\r\n\r\n\t\tif (triangulate == 0 & plot == 0) {\r\n\t\t\tSystem.err.printf(\"e %d\", e.edgenbr);\r\n\t\t\tSystem.err.printf(\" %d \", e.ep[le] != null ? e.ep[le].sitenbr : -1);\r\n\t\t\tSystem.err.printf(\"%d\\n\", e.ep[re] != null ? e.ep[re].sitenbr : -1);\r\n\t\t}\r\n\r\n\t}",
"public void m58944a(E e) {\n this.f48622a = e;\n }",
"void mo43357a(C16726e eVar) throws RemoteException;",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}",
"@Override\n\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t}",
"static String getElementText(Element e) {\n if (e.getChildNodes().getLength() == 1) {\n Text elementText = (Text) e.getFirstChild();\n return elementText.getNodeValue();\n }\n else\n return \"\";\n }",
"public RuntimeException processException(RuntimeException e)\n\n {\n\treturn new RuntimeException(e);\n }",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t}",
"@java.lang.Override\n public java.lang.String getE() {\n java.lang.Object ref = e_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n e_ = s;\n return s;\n }\n }",
"protected void onEvent(DivRepEvent e) {\n\t\t}",
"protected void onEvent(DivRepEvent e) {\n\t\t}",
"protected void logException(Exception e) {\r\n if (log.isErrorEnabled()) {\r\n log.logError(LogCodes.WPH2004E, e, e.getClass().getName() + \" processing field \");\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(2));\r\n\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t}",
"com.walgreens.rxit.ch.cda.EIVLEvent getEvent();",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(4));\r\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"public e o() {\r\n return k();\r\n }",
"@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}"
] | [
"0.72328156",
"0.66032064",
"0.6412127",
"0.6362734",
"0.633999",
"0.62543726",
"0.6232265",
"0.6159535",
"0.61226326",
"0.61226326",
"0.60798717",
"0.6049423",
"0.60396963",
"0.60011584",
"0.5998842",
"0.59709895",
"0.59551716",
"0.5937381",
"0.58854383",
"0.5870234",
"0.5863486",
"0.58606255",
"0.58570576",
"0.5832809",
"0.57954526",
"0.5784194",
"0.57723534",
"0.576802",
"0.57466",
"0.57258075",
"0.5722709",
"0.5722404",
"0.57134414",
"0.56987166",
"0.5683048",
"0.5671214",
"0.5650087",
"0.56173986",
"0.56142104",
"0.56100404",
"0.5604611",
"0.55978096",
"0.5597681",
"0.55941516",
"0.55941516",
"0.55941516",
"0.5578516",
"0.55689955",
"0.5568649",
"0.5564652",
"0.5561944",
"0.5561737",
"0.5560318",
"0.555748",
"0.5550611",
"0.5550611",
"0.5550611",
"0.5550611",
"0.5547971",
"0.55252135",
"0.5523029",
"0.55208814",
"0.5516037",
"0.5512",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118227",
"0.5509796",
"0.5509671",
"0.5503605",
"0.55015326",
"0.5499632",
"0.54921895",
"0.54892236",
"0.5483562",
"0.5483562",
"0.5482999",
"0.54812574",
"0.5479943",
"0.54787004",
"0.54778624",
"0.5472073",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.5468417",
"0.54673034",
"0.54645115"
] | 0.0 | -1 |
/ renamed from: f | public long[] mo38288f() {
return this.f27043f;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void func_70305_f() {}",
"public static Forca get_f(){\n\t\treturn f;\n\t}",
"void mo84656a(float f);",
"public final void mo8765a(float f) {\n }",
"@Override\n public int f() {\n return 0;\n }",
"public void f() {\n }",
"void mo9704b(float f, float f2, int i);",
"void mo56155a(float f);",
"public void f() {\n }",
"void mo9696a(float f, float f2, int i);",
"@Override\n\tpublic void f2() {\n\t\t\n\t}",
"public void f() {\n Message q_ = q_();\n e.c().a(new f(255, a(q_.toByteArray())), getClass().getSimpleName(), i().a(), q_);\n }",
"void mo72112a(float f);",
"void mo9694a(float f, float f2);",
"void f1() {\r\n\t}",
"public amj p()\r\n/* 543: */ {\r\n/* 544:583 */ return this.f;\r\n/* 545: */ }",
"double cFromF(double f) {\n return (f-32) * 5 / 9;\n }",
"void mo34547J(float f, float f2);",
"@Override\n\tpublic void f1() {\n\n\t}",
"public void f() {\n this.f25459e.J();\n }",
"public abstract void mo70718c(String str, float f);",
"public byte f()\r\n/* 89: */ {\r\n/* 90:90 */ return this.f;\r\n/* 91: */ }",
"C3579d mo19694a(C3581f fVar) throws IOException;",
"public abstract void mo70714b(String str, float f);",
"void mo9705c(float f, float f2);",
"FunctionCall getFc();",
"@Override\n\tpublic void af(String t) {\n\n\t}",
"void mo9695a(float f, float f2, float f3, float f4, float f5);",
"public abstract void mo70705a(String str, float f);",
"void mo21075f();",
"static double transform(int f) {\n return (5.0 / 9.0 * (f - 32));\n\n }",
"private int m216e(float f) {\n int i = (int) (f + 0.5f);\n return i % 2 == 1 ? i - 1 : i;\n }",
"void mo9703b(float f, float f2);",
"public abstract int mo123247f();",
"void mo6072a(float f) {\n this.f2347q = this.f2342e.mo6054a(f);\n }",
"public float mo12718a(float f) {\n return f;\n }",
"public abstract void mo70706a(String str, float f, float f2);",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }",
"public int getF() {\n\t\treturn f;\n\t}",
"public void f()\r\n {\r\n float var1 = 0.5F;\r\n float var2 = 0.125F;\r\n float var3 = 0.5F;\r\n this.a(0.5F - var1, 0.5F - var2, 0.5F - var3, 0.5F + var1, 0.5F + var2, 0.5F + var3);\r\n }",
"void mo9698a(String str, float f);",
"private static float m82748a(float f) {\n if (f == 0.0f) {\n return 1.0f;\n }\n return 0.0f;\n }",
"static void feladat4() {\n\t}",
"public int getf(){\r\n return f;\r\n}",
"private static double FToC(double f) {\n\t\treturn (f-32)*5/9;\n\t}",
"public void a(Float f) {\n ((b.b) this.b).a(f);\n }",
"public Flt(float f) {this.f = new Float(f);}",
"static double f(double x){\n \treturn Math.sin(x);\r\n }",
"private float m23258a(float f, float f2, float f3) {\n return f + ((f2 - f) * f3);\n }",
"public double getF();",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"final void mo6072a(float f) {\n this.f2349i = this.f2348h.mo6057b(f);\n }",
"private float m87322b(float f) {\n return (float) Math.sin((double) ((float) (((double) (f - 0.5f)) * 0.4712389167638204d)));\n }",
"public void colores(int f) {\n this.f = f;\n }",
"static float m51586b(float f, float f2, float f3) {\n return ((f2 - f) * f3) + f;\n }",
"void mo3193f();",
"public void mo3777a(float f) {\n this.f1443S = f;\n }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"static void feladat9() {\n\t}",
"private double f2c(double f)\n {\n return (f-32)*5/9;\n }",
"public void e(Float f) {\n ((b.b) this.b).e(f);\n }",
"int mo9691a(String str, String str2, float f);",
"void mo196b(float f) throws RemoteException;",
"public void d(Float f) {\n ((b.b) this.b).d(f);\n }",
"static void feladat7() {\n\t}",
"public void b(Float f) {\n ((b.b) this.b).b(f);\n }",
"long mo54439f(int i);",
"public void c(Float f) {\n ((b.b) this.b).c(f);\n }",
"@java.lang.Override\n public java.lang.String getF() {\n java.lang.Object ref = f_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n f_ = s;\n return s;\n }\n }",
"public static void detectComponents(String f) {\n\t\t\n\t}",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"public void f() {\n if (this instanceof b) {\n b bVar = (b) this;\n Message q_ = bVar.q_();\n e.c().a(new f(bVar.b(), q_.toByteArray()), getClass().getSimpleName(), i().a(), q_);\n return;\n }\n f a2 = a();\n if (a2 != null) {\n e.c().a(a2, getClass().getSimpleName(), i().a(), (Message) null);\n }\n }",
"void mo54440f();",
"public int F()\r\n/* 24: */ {\r\n/* 25: 39 */ return aqt.a(0.5D, 1.0D);\r\n/* 26: */ }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public abstract int mo9741f();",
"void testMethod() {\n f();\n }",
"public static int m22547b(float f) {\n return 4;\n }",
"public float mo12728b(float f) {\n return f;\n }",
"public void mo1963f() throws cf {\r\n }",
"public abstract File mo41087j();",
"@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}",
"public abstract int f(int i2);",
"static void feladat6() {\n\t}",
"public void furyo ()\t{\n }",
"long mo30295f();",
"public void a(zf zfVar, Canvas canvas, float f, float f2) {\n }",
"public T fjern();",
"public static void feec() {\n\t}",
"@Override\n\tdouble f(double x) {\n\t\treturn x;\n\t}",
"static void feladat3() {\n\t}",
"static void feladat8() {\n\t}",
"public void mo3797c(float f) {\n this.f1455ad[0] = f;\n }",
"public abstract double fct(double x);",
"public interface b {\n boolean f(@NonNull File file);\n }",
"public void setF(){\n\t\tf=calculateF();\n\t}",
"public FI_() {\n }",
"static void feladat5() {\n\t}",
"private final void m57544f(int i) {\n this.f47568d.m63092a(new C15335a(i, true));\n }",
"public abstract long f();"
] | [
"0.7323683",
"0.65213245",
"0.649907",
"0.64541733",
"0.6415534",
"0.63602704",
"0.6325114",
"0.63194084",
"0.630473",
"0.62578535",
"0.62211406",
"0.6209556",
"0.6173324",
"0.61725706",
"0.61682224",
"0.6135272",
"0.6130462",
"0.6092916",
"0.6089471",
"0.6073019",
"0.6069227",
"0.6045645",
"0.60285485",
"0.6017334",
"0.60073197",
"0.59810024",
"0.59757596",
"0.5967885",
"0.5942414",
"0.59418225",
"0.5939683",
"0.59241796",
"0.58987755",
"0.5894165",
"0.58801377",
"0.5879881",
"0.5830818",
"0.57981277",
"0.5790314",
"0.578613",
"0.5775656",
"0.5772591",
"0.57630384",
"0.5752546",
"0.5752283",
"0.5735288",
"0.5733957",
"0.57191586",
"0.57179475",
"0.57131994",
"0.57131445",
"0.5706053",
"0.5689441",
"0.56773764",
"0.5667179",
"0.56332076",
"0.5623908",
"0.56229013",
"0.5620846",
"0.5620233",
"0.5616687",
"0.5610022",
"0.5601161",
"0.55959773",
"0.5594083",
"0.55762523",
"0.5570697",
"0.5569185",
"0.5552703",
"0.55498457",
"0.5549487",
"0.5540512",
"0.55403346",
"0.5538902",
"0.5538738",
"0.55373883",
"0.55234814",
"0.55215186",
"0.551298",
"0.5508332",
"0.5507449",
"0.55046654",
"0.550407",
"0.55029416",
"0.5494386",
"0.5493873",
"0.54900146",
"0.5487203",
"0.54866016",
"0.54843825",
"0.5478175",
"0.547722",
"0.54764897",
"0.5472811",
"0.54662675",
"0.5460087",
"0.5458977",
"0.54567033",
"0.54565614",
"0.5454854",
"0.5442333"
] | 0.0 | -1 |
/ renamed from: g | public C7998s mo38289g() {
return this.f27044g;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void g() {\n }",
"public void gored() {\n\t\t\n\t}",
"public boolean g()\r\n/* 94: */ {\r\n/* 95:94 */ return this.g;\r\n/* 96: */ }",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"public void stg() {\n\n\t}",
"public xm n()\r\n/* 274: */ {\r\n/* 275:287 */ if ((this.g == null) && (this.h != null) && (this.h.length() > 0)) {\r\n/* 276:288 */ this.g = this.o.a(this.h);\r\n/* 277: */ }\r\n/* 278:290 */ return this.g;\r\n/* 279: */ }",
"int getG();",
"private final zzgy zzgb() {\n }",
"public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }",
"private static void g() {\n h h10 = q;\n synchronized (h10) {\n h10.f();\n Object object = h10.e();\n object = object.iterator();\n boolean bl2;\n while (bl2 = object.hasNext()) {\n Object object2 = object.next();\n object2 = (g)object2;\n Object object3 = ((g)object2).getName();\n object3 = i.h.d.j((String)object3);\n ((g)object2).h((i.h.c)object3);\n }\n return;\n }\n }",
"public int g()\r\n {\r\n return 1;\r\n }",
"void mo28307a(zzgd zzgd);",
"void mo21076g();",
"void mo56163g();",
"void mo98971a(C29296g gVar, int i);",
"public int getG();",
"void mo98970a(C29296g gVar);",
"public abstract long g();",
"public com.amap.api.col.n3.al g(java.lang.String r6) {\n /*\n r5 = this;\n r0 = 0\n if (r6 == 0) goto L_0x003a\n int r1 = r6.length()\n if (r1 > 0) goto L_0x000a\n goto L_0x003a\n L_0x000a:\n java.util.List<com.amap.api.col.n3.al> r1 = r5.c\n monitor-enter(r1)\n java.util.List<com.amap.api.col.n3.al> r2 = r5.c // Catch:{ all -> 0x0037 }\n java.util.Iterator r2 = r2.iterator() // Catch:{ all -> 0x0037 }\n L_0x0013:\n boolean r3 = r2.hasNext() // Catch:{ all -> 0x0037 }\n if (r3 == 0) goto L_0x0035\n java.lang.Object r3 = r2.next() // Catch:{ all -> 0x0037 }\n com.amap.api.col.n3.al r3 = (com.amap.api.col.n3.al) r3 // Catch:{ all -> 0x0037 }\n java.lang.String r4 = r3.getCity() // Catch:{ all -> 0x0037 }\n boolean r4 = r6.equals(r4) // Catch:{ all -> 0x0037 }\n if (r4 != 0) goto L_0x0033\n java.lang.String r4 = r3.getPinyin() // Catch:{ all -> 0x0037 }\n boolean r4 = r6.equals(r4) // Catch:{ all -> 0x0037 }\n if (r4 == 0) goto L_0x0013\n L_0x0033:\n monitor-exit(r1) // Catch:{ all -> 0x0037 }\n return r3\n L_0x0035:\n monitor-exit(r1)\n return r0\n L_0x0037:\n r6 = move-exception\n monitor-exit(r1)\n throw r6\n L_0x003a:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.am.g(java.lang.String):com.amap.api.col.n3.al\");\n }",
"public int getG() {\r\n\t\treturn g;\r\n\t}",
"private Gng() {\n }",
"void mo57277b();",
"int mo98967b(C29296g gVar);",
"public void mo21782G() {\n }",
"public final void mo74763d(C29296g gVar) {\n }",
"private final java.lang.String m14284g() {\n /*\n r3 = this;\n b.h.b.a.b.b.ah r0 = r3.f8347b\n b.h.b.a.b.b.m r0 = r0.mo7065b()\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5339d\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x0056\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e\n if (r1 == 0) goto L_0x0056\n b.h.b.a.b.j.a.a.e r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e) r0\n b.h.b.a.b.e.a$c r0 = r0.mo9643H()\n b.h.b.a.b.g.i$c r0 = (p073b.p085h.p087b.p088a.p090b.p117g.C2383i.C2387c) r0\n b.h.b.a.b.g.i$f<b.h.b.a.b.e.a$c, java.lang.Integer> r1 = p073b.p085h.p087b.p088a.p090b.p112e.p114b.C2330b.f7137i\n java.lang.String r2 = \"JvmProtoBuf.classModuleName\"\n p073b.p079e.p081b.C1489j.m6969a(r1, r2)\n java.lang.Object r0 = p073b.p085h.p087b.p088a.p090b.p112e.p113a.C2288f.m11197a(r0, r1)\n java.lang.Integer r0 = (java.lang.Integer) r0\n if (r0 == 0) goto L_0x003e\n b.h.b.a.b.e.a.c r1 = r3.f8350e\n java.lang.Number r0 = (java.lang.Number) r0\n int r0 = r0.intValue()\n java.lang.String r0 = r1.mo8811a(r0)\n if (r0 == 0) goto L_0x003e\n goto L_0x0040\n L_0x003e:\n java.lang.String r0 = \"main\"\n L_0x0040:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n java.lang.String r0 = p073b.p085h.p087b.p088a.p090b.p116f.C2361g.m11709a(r0)\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0056:\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5336a\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x00a0\n boolean r0 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p094b.C1680ab\n if (r0 == 0) goto L_0x00a0\n b.h.b.a.b.b.ah r0 = r3.f8347b\n if (r0 == 0) goto L_0x0098\n b.h.b.a.b.j.a.a.j r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2638j) r0\n b.h.b.a.b.j.a.a.f r0 = r0.mo9635N()\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i\n if (r1 == 0) goto L_0x00a0\n b.h.b.a.b.d.b.i r0 = (p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i) r0\n b.h.b.a.b.i.d.b r1 = r0.mo8045e()\n if (r1 == 0) goto L_0x00a0\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n b.h.b.a.b.f.f r0 = r0.mo8042b()\n java.lang.String r0 = r0.mo9039a()\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0098:\n b.u r0 = new b.u\n java.lang.String r1 = \"null cannot be cast to non-null type org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedPropertyDescriptor\"\n r0.<init>(r1)\n throw r0\n L_0x00a0:\n java.lang.String r0 = \"\"\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p073b.p085h.p087b.p088a.C3008g.C3011c.m14284g():java.lang.String\");\n }",
"void mo16687a(T t, C4621gg ggVar) throws IOException;",
"public final void mo74759a(C29296g gVar) {\n }",
"int mo98966a(C29296g gVar);",
"void mo57278c();",
"public double getG();",
"public boolean h()\r\n/* 189: */ {\r\n/* 190:187 */ return this.g;\r\n/* 191: */ }",
"private void kk12() {\n\n\t}",
"gp(go goVar, String str) {\n super(str);\n this.f82115a = goVar;\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}",
"@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}",
"C2841w mo7234g();",
"public abstract long g(int i2);",
"public final h.c.b<java.lang.Object> g() {\n /*\n r2 = this;\n h.c.b<java.lang.Object> r0 = r2.f15786a\n if (r0 == 0) goto L_0x0005\n goto L_0x001d\n L_0x0005:\n h.c.e r0 = r2.b()\n h.c.c$b r1 = h.c.c.f14536c\n h.c.e$b r0 = r0.get(r1)\n h.c.c r0 = (h.c.c) r0\n if (r0 == 0) goto L_0x001a\n h.c.b r0 = r0.c(r2)\n if (r0 == 0) goto L_0x001a\n goto L_0x001b\n L_0x001a:\n r0 = r2\n L_0x001b:\n r2.f15786a = r0\n L_0x001d:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.coroutines.jvm.internal.ContinuationImpl.g():h.c.b\");\n }",
"void mo41086b();",
"public abstract int mo123248g();",
"public void getK_Gelisir(){\n K_Gelistir();\r\n }",
"int mo54441g(int i);",
"private static String m11g() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n stringBuilder.append(\"_ve\");\n stringBuilder.append(\"rs\");\n stringBuilder.append(\"i\");\n stringBuilder.append(\"on\");\n return stringBuilder.toString();\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);",
"public String getGg() {\n return gg;\n }",
"public void g() {\n this.f25459e.Q();\n }",
"void mo1761g(int i);",
"public abstract void bepaalGrootte();",
"public void referToGP(){\r\n\t\t//here is some code that we do not have access to\r\n\t}",
"public final i g() {\n return new i();\n }",
"public abstract void mo42331g();",
"@Override\n public void func_104112_b() {\n \n }",
"public int g2dsg(int v) { return g2dsg[v]; }",
"void NhapGT(int thang, int nam) {\n }",
"Gruppo getGruppo();",
"public void method_4270() {}",
"public abstract String mo41079d();",
"public abstract String mo118046b();",
"public void setGg(String gg) {\n this.gg = gg;\n }",
"public abstract CharSequence mo2161g();",
"void mo119582b();",
"private void strin() {\n\n\t}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public String BFS(int g) {\n\t\t//TODO\n\t}",
"void mo21073d();",
"private stendhal() {\n\t}",
"public void golpearJugador(Jugador j) {\n\t\t\n\t}",
"public void ganar() {\n // TODO implement here\n }",
"public static Object gvRender(Object... arg) {\r\nUNSUPPORTED(\"e2g1sf67k7u629a0lf4qtd4w8\"); // int gvRender(GVC_t *gvc, graph_t *g, const char *format, FILE *out)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"1bh3yj957he6yv2dkeg4pzwdk\"); // int rc;\r\nUNSUPPORTED(\"1ag9dz4apxn0w3cz8w2bfm6se\"); // GVJ_t *job;\r\nUNSUPPORTED(\"8msotrfl0cngiua3j57ylm26b\"); // g = g->root;\r\nUNSUPPORTED(\"exts51afuertju5ed5v7pdpg7\"); // /* create a job for the required format */\r\nUNSUPPORTED(\"dn6z1r1bbrtmr58m8dnfgfnm0\"); // rc = gvjobs_output_langname(gvc, format);\r\nUNSUPPORTED(\"5apijrijm2r8b1g2l4x7iee7s\"); // job = gvc->job;\r\nUNSUPPORTED(\"5wvj0ph8uqfgg8jl3g39jsf51\"); // if (rc == 999) {\r\nUNSUPPORTED(\"4lkoedjryn54aff3fyrsewwu5\"); // agerr (AGERR, \"Format: \\\"%s\\\" not recognized. Use one of:%s\\n\",\r\nUNSUPPORTED(\"2pjgp86rkudo6mihbako5yps2\"); // format, gvplugin_list(gvc, API_device, format));\r\nUNSUPPORTED(\"f3a98gxettwtewduvje9y3524\"); // return -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ect62lxc3zm51lhzifift55m\"); // job->output_lang = gvrender_select(job, job->output_langname);\r\nUNSUPPORTED(\"ewlceg1k4gs2e6syq4ear5kzo\"); // if (!(agbindrec(g, \"Agraphinfo_t\", 0, NOT(0)) && GD_drawing(g)) && !(job->flags & (1<<26))) {\r\nUNSUPPORTED(\"3yo4xyapbp7osp8uyz4kff98s\"); // \tagerrorf( \"Layout was not done\\n\");\r\nUNSUPPORTED(\"8d9xfgejx5vgd6shva5wk5k06\"); // \treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"2ai20uylya195fbdqwjy9bz0n\"); // job->output_file = out;\r\nUNSUPPORTED(\"10kpqi6pvibjsxjyg0g76lix3\"); // if (out == NULL)\r\nUNSUPPORTED(\"d47ukby9krmz2k8ycmzzynnfr\"); // \tjob->flags |= (1<<27);\r\nUNSUPPORTED(\"9szsye4q9jykqvtk0bc1r91d0\"); // rc = gvRenderJobs(gvc, g);\r\nUNSUPPORTED(\"7l8ugws8ptgtlxc1ymmh3cf18\"); // gvrender_end_job(job);\r\nUNSUPPORTED(\"a9p7yonln7g91ge7xab3xf9dr\"); // gvjobs_delete(gvc);\r\nUNSUPPORTED(\"5bc9k4vsl6g7wejc5xefc5964\"); // return rc;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}",
"void mo41083a();",
"@VisibleForTesting\n public final long g(long j) {\n long j2 = j - this.f10062b;\n this.f10062b = j;\n return j2;\n }",
"void mo72113b();",
"@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}",
"@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}",
"public void b(gy ☃) {}\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ public void a(gy ☃) {}",
"Gtr createGtr();",
"TGG createTGG();",
"public abstract String mo9239aw();",
"public void setG(boolean g) {\n\tthis.g = g;\n }",
"private static C8504ba m25889b(C2272g gVar) throws Exception {\n return m25888a(gVar);\n }",
"void mo21074e();",
"private String pcString(String g, String d) {\n return g+\"^part_of(\"+d+\")\";\n }",
"public abstract String mo13682d();",
"public void mo38117a() {\n }",
"public abstract void mo70713b();",
"public Gitlet(int a) {\n\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void draw(Graphics2D g) {\n\t\t\n\t}",
"public abstract T zzg(T t, T t2);",
"public int mo9232aG() {\n return 0;\n }",
"public void mo3286a(C0813g gVar) {\n this.f2574g = gVar;\n }",
"public void mo21787L() {\n }",
"@Override\n public String toString(){\n return \"G(\"+this.getVidas()+\")\";\n }",
"public String DFS(int g) {\n\t\t//TODO\n\t}",
"public static Object gvRenderContext(Object... arg) {\r\nUNSUPPORTED(\"6bxfu9f9cshxn0i97berfl9bw\"); // int gvRenderContext(GVC_t *gvc, graph_t *g, const char *format, void *context)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"1bh3yj957he6yv2dkeg4pzwdk\"); // int rc;\r\nUNSUPPORTED(\"1ag9dz4apxn0w3cz8w2bfm6se\"); // GVJ_t *job;\r\nUNSUPPORTED(\"8msotrfl0cngiua3j57ylm26b\"); // g = g->root;\r\nUNSUPPORTED(\"exts51afuertju5ed5v7pdpg7\"); // /* create a job for the required format */\r\nUNSUPPORTED(\"dn6z1r1bbrtmr58m8dnfgfnm0\"); // rc = gvjobs_output_langname(gvc, format);\r\nUNSUPPORTED(\"5apijrijm2r8b1g2l4x7iee7s\"); // job = gvc->job;\r\nUNSUPPORTED(\"5wvj0ph8uqfgg8jl3g39jsf51\"); // if (rc == 999) {\r\nUNSUPPORTED(\"8r1a6szpsnku0jhatqkh0qo75\"); // \t\tagerr(AGERR, \"Format: \\\"%s\\\" not recognized. Use one of:%s\\n\",\r\nUNSUPPORTED(\"2pj79j8toe6bactkaedt54xcv\"); // \t\t\t format, gvplugin_list(gvc, API_device, format));\r\nUNSUPPORTED(\"b0epxudfxjm8kichhaautm2qi\"); // \t\treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ect62lxc3zm51lhzifift55m\"); // job->output_lang = gvrender_select(job, job->output_langname);\r\nUNSUPPORTED(\"ewlceg1k4gs2e6syq4ear5kzo\"); // if (!(agbindrec(g, \"Agraphinfo_t\", 0, NOT(0)) && GD_drawing(g)) && !(job->flags & (1<<26))) {\r\nUNSUPPORTED(\"3yo4xyapbp7osp8uyz4kff98s\"); // \tagerrorf( \"Layout was not done\\n\");\r\nUNSUPPORTED(\"b0epxudfxjm8kichhaautm2qi\"); // \t\treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ex1rhur9nlj950oe8r621uxxk\"); // job->context = context;\r\nUNSUPPORTED(\"3hvm1mza6yapsb3hi7bkw03cs\"); // job->external_context = NOT(0);\r\nUNSUPPORTED(\"9szsye4q9jykqvtk0bc1r91d0\"); // rc = gvRenderJobs(gvc, g);\r\nUNSUPPORTED(\"7l8ugws8ptgtlxc1ymmh3cf18\"); // gvrender_end_job(job);\r\nUNSUPPORTED(\"dql0bth0nzsrpiu9vnffonrhf\"); // gvdevice_finalize(job);\r\nUNSUPPORTED(\"a9p7yonln7g91ge7xab3xf9dr\"); // gvjobs_delete(gvc);\r\nUNSUPPORTED(\"5bc9k4vsl6g7wejc5xefc5964\"); // return rc;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"void mo54435d();"
] | [
"0.678414",
"0.67709124",
"0.6522526",
"0.64709187",
"0.6450875",
"0.62853396",
"0.6246107",
"0.6244691",
"0.6212993",
"0.61974055",
"0.61380696",
"0.6138033",
"0.6105423",
"0.6057178",
"0.60355175",
"0.60195917",
"0.59741",
"0.596904",
"0.59063077",
"0.58127505",
"0.58101356",
"0.57886875",
"0.5771653",
"0.57483286",
"0.57415104",
"0.5739937",
"0.5737405",
"0.5734033",
"0.5716611",
"0.5702987",
"0.5702633",
"0.568752",
"0.5673585",
"0.5656889",
"0.5654594",
"0.56383264",
"0.56383264",
"0.5633443",
"0.5619376",
"0.56107736",
"0.55950445",
"0.55687404",
"0.5560633",
"0.5544451",
"0.553233",
"0.55284953",
"0.5526995",
"0.5523609",
"0.5522537",
"0.5520261",
"0.5508765",
"0.54931",
"0.5475987",
"0.5471256",
"0.5469798",
"0.54696023",
"0.5466119",
"0.5450189",
"0.5445573",
"0.54424983",
"0.54304206",
"0.5423924",
"0.54234356",
"0.5420949",
"0.54093313",
"0.53971386",
"0.53892636",
"0.53887594",
"0.5388692",
"0.53799766",
"0.5377014",
"0.5375743",
"0.53676707",
"0.53666615",
"0.53654546",
"0.536411",
"0.536411",
"0.5361922",
"0.53584075",
"0.5357915",
"0.53526837",
"0.53503513",
"0.534265",
"0.5342214",
"0.53399533",
"0.533597",
"0.5332819",
"0.5331027",
"0.5329743",
"0.5329616",
"0.5325393",
"0.53252953",
"0.5323291",
"0.53207254",
"0.5314264",
"0.53122807",
"0.53109974",
"0.5310432",
"0.53044266",
"0.5304416",
"0.5302328"
] | 0.0 | -1 |
Called when the user clicks the Send button | public void performLogin(View view) {
// Do something in response to button
Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://dev.m.gatech.edu/login/private?url=gtclicker://loggedin&sessionTransfer=window"));
startActivity(myIntent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleSendButton(ActionEvent event) {\n\n messageController.setMessageSystem(this.message.getText(), this.toUsername.getText(),this.sender);\n if (messageController.sendMessage()){\n sentValid.setVisible(true);\n sentInvalid.setVisible(false);\n\n }\n else{\n sentInvalid.setVisible(true);\n sentValid.setVisible(false);\n\n }\n\n\n }",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tSystem.out.println(\"Sent\");\n\t\t\t\t\t}",
"@Override\n public void onClick(View view) {\n send();\n }",
"public void sendClick(View view) {\n String message = input.getText().toString();\n uart.send(message);\n }",
"private void b_sendActionPerformed(java.awt.event.ActionEvent evt) { \r\n\t\tString nothing = \"\";\r\n\t\tif ((b_sendText.getText()).equals(nothing)) {\r\n\t\t\tb_sendText.setText(\"\");\r\n\t\t\tb_sendText.requestFocus();\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttry {\r\n\t\t\t\ttellEveryone(\"Server\" + \":\" + b_sendText.getText() + \":\" + \"Chat\");\r\n\t\t\t\tPrint_Writer.flush(); // flushes the buffer\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t}\r\n\t\t\tb_sendText.setText(\"\");\r\n\t\t\tb_sendText.requestFocus();\r\n\t\t}\r\n\r\n\t\tb_sendText.setText(\"\");\r\n\t\tb_sendText.requestFocus();\r\n\r\n\t}",
"public void handleSendBtn(ActionEvent actionEvent) throws IOException {\n Socket socket = ConnSocket.getInstance();\n InputStream inputStream = socket.getInputStream();\n OutputStream outputStream = socket.getOutputStream();\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream, true);\n //String [] userInfo = {textField.getText(), nameLabel.getText()};\n out.println(textField.getText());\n\n }",
"private void sendButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sendButtonActionPerformed\n String str = requestCommand.getText();\n sC.sendCommand(str); \n requestCommand.requestFocus();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tString message= txtMessage.getText();\n\t\t\t\tsend(message);\n\t\t\t}",
"@Then(\"^Click On Send Button$\")\r\n\tpublic void click_On_Send_Button() {\n\t\tnop.click(\"//*[@id=\\\"submitMessage\\\"]/span\"); \r\n\t \r\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (btn1==e.getSource()) { //만약 버튼(btn1)클릭 시 동작\n\t\t\tto = tfphone.getText(); //텍스트필드(전화번호) 값가져와서 String to로 변형\n\t\t\ttext = tftext.getText(); //텍스트 필드(텍스트) 값자겨와서 String text로 변형 \n\t\t\t\t\t\t\t\t\t\t\t\t//문자전송(인자)가 String 이기때문에 String으로 변형해줘야함\n\t\t\tExampleSend ex = new ExampleSend(); //ExampleSend클래스 객체 생성\n\t\t\tex.문자전송(to, text);\n\t\t}\n\t\tif (btn2 == e.getSource()) {\n\t\t\ttfphone.setText(\"\");\n\t\t\ttftext.setText(\"\");\n\t\t}\n\t}",
"public void onClickSend(View view) {\n //String string = editText.getText().toString();\n //serialPort.write(string.getBytes());\n //tvAppend(txtResponse, \"\\nData Sent : \" + string + \"\\n\");\n }",
"public void handleSend() {\n model.sendMail();\n view.getChildren().clear();//it \"hides the display\" of the previous view\n }",
"public void sendMessage()\r\n {\r\n MessageScreen messageScreen = new MessageScreen(_lastMessageSent);\r\n pushScreen(messageScreen);\r\n }",
"private void send() {\n Toast.makeText(this, getString(R.string.message_sent, mBody, Contact.byId(mContactId).getName()),\n Toast.LENGTH_LONG).show();\n finish(); // back to DirectShareActivity\n }",
"public void updateSendButtonText() {\r\n sendButton.setText(topModel.getSendButtonText());\r\n }",
"@OnClick(R.id.enter_chat1)\n public void sendMessage() {\n if (getView() == null) {\n return;\n }\n EditText editText = getView().findViewById(R.id.chat_edit_text1);\n sendMessageBackend(editText.getText().toString(), utils.getChatUser());\n updateListAdapter();\n editText.setText(\"\");\n }",
"public void onClickSend(View view) {\n String string = editText.getText().toString();\n serialPort.write(string.getBytes());\n tvAppend(textView, \"\\nData Sent : \" + string + \"\\n\");\n\n }",
"private void customSendBlueButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_customSendBlueButtonActionPerformed\n String custom = customMessageField.getText();\n Msg.send(\"Clicked - message: \" + custom);\n sendCustomMessage(custom, \"B\");\n }",
"public void onSendMessage(View view) {\n // get the EditText view of the layout with the id: message\n EditText messageView = (EditText) findViewById(R.id.message);\n // get the text added by the user in the EditText\n String messageText = messageView.getText().toString();\n // Create a new Intent with an action of SEND\n Intent intent = new Intent(Intent.ACTION_SEND);\n // set the MIME type for the Intent\n intent.setType(\"text/plain\");\n // Add to the Intent the text from the EditText view\n intent.putExtra(Intent.EXTRA_TEXT, messageText);\n // get the text form a string resource\n String chooserTitle = getString(R.string.chooser);\n // wrap the Intent in a chooser so Android always ask for with app to choose\n Intent chosenIntent = Intent.createChooser(intent, chooserTitle);\n // Start the activity of whatever app is available\n startActivity(chosenIntent);\n }",
"public void actionPerformed( ActionEvent ae )\n {\n if( ae.getSource() == sendButton )\n \tprocessMail(message);\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tmConnectedThread.write(\"send\");\n\t\t\t\t\tmConnectedThread.writeFile();\n\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsendEmail();\n\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_SEND);\r\n\r\n\t\t\t\t\t\ti.setType(\"message/rfc822\");\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * i.setClassName(\"com.google.android.gm\",\r\n\t\t\t\t\t\t * \"com.google.android.gm.ComposeActivityGmail\");\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ti.putExtra(Intent.EXTRA_EMAIL,\r\n\t\t\t\t\t\t\t\tnew String[] { \"info@taximobilesolutions.com\" });\r\n\r\n\t\t\t\t\t\tstartActivity(i);\r\n\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_SEND);\r\n\r\n\t\t\t\t\t\ti.setType(\"message/rfc822\");\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * i.setClassName(\"com.google.android.gm\",\r\n\t\t\t\t\t\t * \"com.google.android.gm.ComposeActivityGmail\");\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ti.putExtra(Intent.EXTRA_EMAIL,\r\n\t\t\t\t\t\t\t\tnew String[] { \"info@taximobilesolutions.com\" });\r\n\r\n\t\t\t\t\t\tstartActivity(i);\r\n\r\n\t\t\t\t\t}",
"private void createSendArea() {\n\t\tthis.btnSend = new Button(\"Envoyer\");\n\t\tthis.btnSend.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tboolean sent = window.sendMessage(message.getText());\n\t\t\t\tif(sent) {\n\t\t\t\t\tmessage.setText(\"\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\t\t\tnew JFrame(),\n\t\t\t\t\t\t\"Erreur lors de l'envoi du message...\",\n\t\t\t\t\t\t\"Dialog\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void handleSend(ActionEvent actionEvent) {\r\n String to=textFieldTo.getText();\r\n try{\r\n Long idto = Long.parseLong(to);\r\n\r\n FriendshipRequest request = new FriendshipRequest();\r\n Tuple<Long,Long> f = new Tuple<>(user.getId(), idto);\r\n request.setId(f);\r\n\r\n service.addRequest(request);\r\n showMessage(Alert.AlertType.CONFIRMATION,\"Request sent!\",\"Request is now pending!\");\r\n\r\n textFieldTo.clear();\r\n\r\n\r\n }catch(NumberFormatException exception){\r\n showMessage(Alert.AlertType.ERROR,\"Error\",exception.toString());\r\n }catch (ServiceException exception){\r\n showMessage(Alert.AlertType.ERROR,\"Error\",exception.toString());\r\n }\r\n }",
"@Override\r\n public void onClick(View v)\r\n {\n if (\"\" != mSendOnBoardEdit.getText().toString()){\r\n DJIDrone.getDjiMainController().sendDataToExternalDevice(mSendOnBoardEdit.getText().toString().getBytes(),new DJIExecuteResultCallback(){\r\n\r\n @Override\r\n public void onResult(DJIError result)\r\n {\r\n // TODO Auto-generated method stub\r\n \r\n }\r\n \r\n });\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsendSmsNew(phoneNum);\r\n\t\t\t\tsetTextSend();\r\n\t\t\t}",
"public void sendButtonClick(View v){\n String title = getText(R.string.mail_title).toString();\n String mailto = \"mailto:\" + emailAdress;\n Intent openEmailApp = new Intent(Intent.ACTION_SENDTO);\n openEmailApp.setType(\"plain/text\");\n openEmailApp.setData(Uri.parse(mailto));\n openEmailApp.putExtra(Intent.EXTRA_SUBJECT, userName + title);\n openEmailApp.putExtra(Intent.EXTRA_TEXT, evaluationMessage);\n startActivity(openEmailApp);\n }",
"@Override\n\tpublic void onMessagePlayCompleted() {\n\t\tbtnSend.setEnabled(true);\n\t}",
"@Override\n public void onClick(View view) {\n intent.putExtra(SEND_KEY,sendText.getText().toString());\n\n //Start next Activity/No data is passed back to this activity\n startActivity(intent);\n\n }",
"public void clickOnSendNotification() {\r\n\r\n\t\treportStep(\"About to click on Send Notification button \", \"INFO\");\r\n\r\n\t\tif(clickAfterWait(sendNotificationButton)) {\r\n\r\n\t\t\treportStep(\"Successfully clicked on the Send notification Button \", \"PASS\");\r\n\r\n\t\t}else {\r\n\r\n\t\t\treportStep(\"Failed to click onn the Send Notificationn Buttonn \", \"FAIL\");\r\n\t\t}\r\n\t}",
"@Override\n public void send() {\n System.out.println(\"send message by SMS\");\n }",
"public void sendMessage(View view) {\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n String message = \"You pressed the button!\";\n intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n\n }",
"@Override\n public void onClick(View view) {\n\n runOnUiThread(\n new Runnable() {\n @Override\n public void run() {\n MainActivity\n .this\n .connectionManager.getTo().println(\n MainActivity\n .this\n .send_text.getText().toString()\n );\n }\n }\n );\n\n }",
"public void sendMessage(View view) {\n\t\t// Do something in response to button\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\n\t\tstartActivity(intent);\n\n\t}",
"public JButton getSend() {\n\t\treturn send;\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttry {\n\t\t\t\t\tString body = etBody.getText().toString();\n\t\t\t\t\tTApplicatioin.multiUserChat.sendMessage(body);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString text = getCurUser() + \" : \" + textField.getText();\n\t\t\t\ttextField.setText(\"\");\n\t\t\t\tfinal ChatMessage msg = new ChatMessage();\n\t\t\t\tmsg.setMessage(text);\n\t\t\t\tmainFrame.sendMessage(msg);\n\t\t\t\t\n\t\t\t}",
"public void sendMessage (View view)\r\n\t{\r\n\t\t// Respond to the button click\r\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\r\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tSendToServer(ph);\n\t\t\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSendEmailFrame f = new SendEmailFrame();\r\n\t\t\t\tf.setVisible(true);\r\n\t\t\t}",
"private void customSendRedButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_customSendRedButtonActionPerformed\n String custom = customMessageField.getText();\n Msg.send(\"Clicked - message: \" + custom);\n sendCustomMessage(custom, \"R\");\n }",
"public boolean send() {\n\t\tif (!isValid())\n\t\t\treturn false;\n\t\tif (ActionBar.sendKey(getSlot()))\n\t\t\treturn true;\n\t\tWidgetChild main = SlotData.getMainChild(getSlot());\n\t\treturn WidgetUtil.visible(main) && EntityUtil.interact(false, main);\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==sendButton){\n\t\t\tif(!inputField.getText().trim().isEmpty()){\n\t\t\t\ttry{\n\t\t\t\t\tclient.sendRequest(inputField.getText().trim());\n\t\t\t\t}catch(Exception ee){\n\t\t\t\t\tee.printStackTrace();\n\t\t\t\t}\n\t\t\t\toutputArea.append(client.getResponse()+\"\\n\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tJOptionPane.showConfirmDialog(this, \"输入不能为空!\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tinputField.setText(\"\");\n\t\t\toutputArea.setText(\"\");\n\t\t}\n\t}",
"public void onClick(View arg0) {\n\t\t\t\tString emailAddress = \"achan17@appeyroad.org\";\r\n\t\t\t\tString emailSubject = edittextEmailSubject.getText().toString();\r\n\t\t\t\tString emailText = edittextEmailText.getText().toString();\r\n\t\t\t\tString emailAddressList[] = {emailAddress};\r\n\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_SEND); \r\n\t\t\t\tintent.setType(\"plain/text\");\r\n\t\t\t\tintent.putExtra(Intent.EXTRA_EMAIL, emailAddressList); \r\n\t\t\t\tintent.putExtra(Intent.EXTRA_SUBJECT, emailSubject); \r\n\t\t\t\tintent.putExtra(Intent.EXTRA_TEXT, emailText); \r\n\t\t\t\tstartActivity(Intent.createChooser(intent, \"Choice App to send email:\"));\r\n\t\t\t}",
"@FXML\n private void sendMessage(ActionEvent actionEvent) {\n String playerName = RiskMain.getInstance().getDomain().getPlayerName();\n System.out.println(messageInput.getText());\n String text = playerName + \": \" + messageInput.getText();\n if (RiskMain.getInstance().getDomain().isServer()) {\n this.serverInterface = RiskMain.getInstance().getDomain().getServer();\n this.serverInterface\n .sendMessageChat(RiskMain.getInstance().getDomain().getPlayerName(),\n messageInput.getText(), recipientList.getValue());\n } else {\n this.clientPlayerInterface = RiskMain.getInstance().getDomain().getClient();\n this.clientPlayerInterface.sendMessageChat(RiskMain.getInstance().getDomain().getPlayerName(),\n messageInput.getText(), recipientList.getValue());\n }\n }",
"@Override\n\tpublic void sendMessage() {\n\t\t\n\t}",
"@Step\n public void clickSendSMSButton(){\n actionWithWebElements.clickOnElement(sendSMSButton);\n }",
"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 }",
"@Override\n\t public void onClick(View v) {\n\t \t SendReqToPebble();\n\t }",
"public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}",
"private void sendTextInBox() {\n\t\tmodelAdapter.send(textFieldMessage.getText());\n\t textFieldMessage.setText(\"\");\n\t }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tEnviarMailVisMed mail = new EnviarMailVisMed();\r\n\t\t\t\tmail.setVisible(true);\r\n\t\t\t}",
"@Override\r\n\tpublic void onClick(View arg0) {\n\t\tIntent myobj=new Intent(Intent.ACTION_SENDTO,Uri.parse(\"smsto:\"+e2.getText().toString()));\r\n\t\tmyobj.putExtra(\"sms_body\",e1.getText().toString());\r\n\t\tstartActivity(myobj);\r\n\t}",
"public void goToSendCommand(View view){\n Log.i(tag, \"About to launch SendCommand\");\n Intent i = new Intent(this, SendCommand.class);\n startActivity(i);\n }",
"@Override\n public void onClick(View view) {\n String msg = mSendView.getText().toString();\n currMessage = msg;\n mSendView.setText(\"\");\n sendMessage(msg);\n refresh();\n\n }",
"@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\r\n\t\t\t{\n\t\t\t\tif (!internetConnection)\r\n\t\t\t\t{\r\n\t\t\t\t\tshowNoConnectionDialog();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\r\n\t\t\t\t\r\n\t\t\t\t// Get phoneId to attend in message\r\n\t\t\t TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);\r\n\t\t\t\tString phoneId = telephonyManager.getDeviceId(); \r\n\t\t\t \r\n\t\t\t\t// Send mail without blocking the GUI\r\n\t\t\t\tif (dataModel == null)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSendEmail sendEmail = new SendEmail(\"stellaleeuss@gmail.com\", \r\n\t\t\t \t\t\t\t\t\t\t\t\t\"AskMeAgain\", \r\n\t\t\t \t\t\t\t\t\t\t\t\tdataModel.getRecipientMail(),\r\n\t\t\t \t\t\t\t\t\t\t\t\tgetResources().getString(R.string.fogot_id_mail_subject),\r\n\t\t\t \t\t\t\t\t\t\t\t\tgetResources().getString(R.string.fogot_id_mail_text) + \" \" + phoneId + \".\");\r\n\t\t\t sendEmail.execute();\r\n\t\t\t}",
"@Override\n\tpublic void onClick(View v) {\n\t\tif(v.getId() == R.id.bSend){\n\t\t\tif(text.getText().toString()!=null){\n\t\t\t\tmsg = text.getText().toString();\n\t\t\t\tchat.append(user+\": \"+msg+\"\\n\");\n\t\t\t\tmyGame.sendPrivateChat(challenged, msg);\n\t\t\t\ttext.setText(\"\");\n\t\t\t}else{\n\t\t\t\tToast.makeText(ChatActivity.this, \"Pls Enter Text\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t//\t}else if(v.getId()==R.id){\n\t\t\t\n\t\t}\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif (!Window.Linksign) {\n\t\t\tif (BeganSign == 0) {\n\t\t\t\tBeganSign = 1;\n\t\t\t\taccept.append(\"已准备\\n\");\n\t\t\t\tWindow.f3listener.F3();\n\t\t\t\tbattleSend.Mistake = 0;\n\t\t\t} else {\n\t\t\t\tBeganSign = 0;\n\t\t\t\taccept.append(\"取消准备\\n\");\n\t\t\t\tsendText.setText(\"\");\n\t\t\t\tsendText.setEditable(false);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tout = new DataOutputStream(client.socket.getOutputStream());\n\t\t\t\tString message = \"%\" + BeganSign + \"%\" + sendText.getText()\n\t\t\t\t\t\t+ \"%\" + RegexText.duan1 + \"#\" + Window.wenben.getText()\n\t\t\t\t\t\t+ \"%0\" + \"%\" + Login.zhanghao.getText();\n\t\t\t\tQQZaiwenListener.wenbenstr = Window.wenben.getText();\n\t\t\t\tout.writeUTF(message);// 向服务器发送信息\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} else {\n\t\t\taccept.append(\"请先加入一个房间\\n\");\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSendEmailManager mng = new SendEmailManager(course, section);\r\n\t\t\t\ttry {\r\n\t\t\t\tfor (Student student : StudentArray) {\r\n\t\t\t\t\tif(mng.sendFromGMail(student.getEmail(), student.getName(), student.getCode(), student.getGrade())) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tthrow new SendFailedException(\"send failed\");\r\n\t\t\t\t\t\t\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\tJOptionPane.showMessageDialog(null, \"Send Successed\");\r\n\t\t\t\t}catch(SendFailedException ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tC2DMessaging.register(getBaseContext(), \"write2sanchit@gmail.com\");\t\t\t\n\t\t}",
"@Override\n public void onClick(View v) {\n sendMessage(phone_from_intent);\n }",
"public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tif (e.getActionCommand().equals(\"Envoyer un mail au support\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_SendMail();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n chat.receiveMessage();\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 }",
"void sendMessage() {\n\n\t}",
"@Override\n public void onClick(View view) {\n Intent i = new Intent(Intent.ACTION_SEND);\n i.setType(\"message/rfc822\");\n i.putExtra(Intent.EXTRA_EMAIL , new String[]{\"\"});\n i.putExtra(Intent.EXTRA_SUBJECT, \"\");\n i.putExtra(Intent.EXTRA_TEXT , \"\");\n try {\n startActivity(Intent.createChooser(i, \"Envoyer un mail\"));\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(MainActivity.this, \"There are no email clients installed.\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n fenetre.getClient().envoyerMessage(getMessage(), optionEnvoi); // Envoie du message\n saisieMessage.setText(\"\"); // On supprime le texte de la saisie message\n }",
"@Override\n public void onClick(View arg0) {\n Intent email = new Intent(Intent.ACTION_SEND);\n // Put essentials like email address, subject & body text\n email.putExtra(Intent.EXTRA_EMAIL,\n new String[]{\"jason_lim@rp.edu.sg\"});\n email.putExtra(Intent.EXTRA_SUBJECT,\n \"Daily Grades\");\n //email.putExtra(Intent.EXTRA_TEXT, mydb.getDailyGrade().toString());\n // This MIME type indicates email\n email.setType(\"message/rfc822\");\n // createChooser shows user a list of app that can handle\n // this MIME type, which is, email\n startActivity(Intent.createChooser(email,\n \"Choose an Email client :\"));\n\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == jb)// 发送消息\r\n\t\t{\r\n\t\t\tMessage m = new Message();\r\n\t\t\tm.setMesType(\"20\");// MessageType.message_comm_mes\r\n\t\t\tm.setSender(this.ownerId);\r\n\t\t\tm.setGetter(\"\");\r\n\t\t\tm.setCon(jtf.getText());\r\n\t\t\tthis.jta.append(\"我说:\" + jtf.getText() + \"\\r\\n\");\r\n\t\t\ttry {\r\n\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(\r\n\t\t\t\t\t\tManageClientConServerThread\r\n\t\t\t\t\t\t\t\t.getClientConServerThread(ownerId).getS()\r\n\t\t\t\t\t\t\t\t.getOutputStream());\r\n\t\t\t\toos.writeObject(m);\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"private void sendMessage() {\n Intent i = new Intent(Intent.ACTION_SEND);\n i.setType(getString(R.string.send_mail_intent_type));\n i.putExtra(Intent.EXTRA_EMAIL, new String[]{getString(R.string.send_mail_default_email)});\n i.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.send_mail_default_subject));\n i.putExtra(Intent.EXTRA_TEXT, getMessage());\n\n if (i.resolveActivity(getPackageManager()) != null) {\n startActivity(Intent.createChooser(i, getString(R.string.send_mail_chooser_title)));\n\n } else {\n showToast(R.string.alert_send_message_application_not_found);\n }\n }",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\r\n sendMessage(jTextField1.getText());\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id == R.id.action_send) {\n\n\n\n\n\n //Izprashtam Parse message\n SendParsePushMessagesAndParseObjects sendParse =\n new SendParsePushMessagesAndParseObjects();\n\n //zadavame tipa na saobshtenieto, ako ne e zadadeno veche, triabva da e samo text\n if(mMessageType == null) {\n mMessageType = ParseConstants.TYPE_TEXTMESSAGE;\n }\n\n String loveMessage = messageToSend.getText().toString();\n\n\n sendParse.send(ParseUser.getCurrentUser(),parseObjectIDs,parseUserNames,\n mMessageType,loveMessage,mMediaUri, this);\n\n\n //Message sent.Switch to main screen.\n Intent intent = new Intent(SendMessage.this,Main.class);\n //dobaviame flagove, za da ne moze usera da se varne pak kam toya ekran\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n\n }\n\n\n\n return super.onOptionsItemSelected(item);\n }",
"public void clickSendInvitationButton() throws Exception {\n\t\twdriver.findElement(By.xpath(locators.clickSendInvitationButton)).click();\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(EmailSender.fr.getText().equals(\"\"))\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(EmailSender.ES,\"Please Enter A Valid Email Address To Send From!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(EmailSender.t.getText().equals(\"\"))\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(EmailSender.ES, \"Please Enter A Valid Email Address To Send To!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(EmailSender.subj.getText().contentEquals(\"\"))\r\n\t\t{\r\n\t\t\tint b = JOptionPane.showConfirmDialog(EmailSender.ES, \"Are you sure you want to send this without a subject?\");\r\n\t\t\t\r\n\t\t\tif(b==0)\r\n\t\t\t\tJOptionPane.showMessageDialog(EmailSender.ES, \"Email Sent\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tint a = JOptionPane.showConfirmDialog(EmailSender.ES, \"Are you sure you want to send?\");\r\n\t\tif(a==0)// If yes button is pressed a is 0\r\n\t\tJOptionPane.showMessageDialog(EmailSender.ES, \"Email Sent\");\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == bt1) {\n\t\t\ttry {\n\t\t\t\tString s = tfnhap.getText();\n\t\t\t\tsenddata = new byte[s.length()];\n\t\t\t\treceivedata = new byte[1024];\n\t\t\t\tsenddata = s.getBytes();\n\t\t\t\tDatagramPacket send = new DatagramPacket(senddata, senddata.length, inet, 8892);\n\t\t\t\tmoi.send(send);\n\t\t\t\tDatagramPacket receive = new DatagramPacket(receivedata, receivedata.length);\n\t\t\t\tmoi.receive(receive);\n\t\t\t\tString kq = new String(receive.getData());\n\t\t\t\ttfkq.setText(kq);\n\n\t\t\t} catch (UnknownHostException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\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\n\t\t}\n\t\tif (e.getSource() == bt2)\n\t\t\tSystem.exit(0);\n\t}",
"@Override\n\tpublic void send() {\n\t\tSystem.out.println(\"this is send\");\n\t}",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tUri uri = Uri.parse(\"smsto://08000000123\");\n\t\t\tIntent intent = new Intent(Intent.ACTION_SENDTO, uri);\n\t\t\tintent.putExtra(\"sms_body\", \"SMS message\");\n\t\t\tstartActivity(intent);\n\t\t}",
"@Override\n public void onClick(View v) {\n \n switch (v.getId()) {\n case R.id.sendBtn:\n //Log.d(\"XXX\", \"SEND BTN\");\n if (validateFields() == false) {\n // mostro avviso errore\n CharSequence text = \"Per favore completa i campi richiesti correttamente\";\n Toast toast = Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT);\n toast.show();\n }\n else {\n sendRequestToServer();\n }\n break;\n case R.id.surname:\n // Log.d(\"XXX\", \"COGNOME EDIT TEXT\");\n break;\n case R.id.email:\n break;\n case R.id.tel:\n break;\n default:\n break;\n }\n \n }",
"public void send() {\n\t}",
"public void clickButton(View v) {\n\n // Get the text we want to send.\n EditText et = (EditText) findViewById(R.id.editText);\n String msg = et.getText().toString();\n\n // Then, we start the call.\n PostMessageSpec myCallSpec = new PostMessageSpec();\n\n\n myCallSpec.url = SERVER_URL_PREFIX + \"post_msg.json\";\n myCallSpec.context = ChatActivity.this;\n // Let's add the parameters.\n HashMap<String,String> m = new HashMap<String,String>();\n m.put(\"app_id\", MY_APP_ID);\n m.put(\"msg\", msg);\n myCallSpec.setParams(m);\n\n startSpinner();\n\n // Actual server call.\n if (uploader != null) {\n // There was already an upload in progress.\n uploader.cancel(true);\n }\n uploader = new ServerCall();\n //startSpinner();\n uploader.execute(myCallSpec);\n }",
"private void sendCustomBothActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sendCustomBothActionPerformed\n // TODO add your handling code here:\n String custom = customMessageField.getText();\n Msg.send(\"Clicked custom both - message: \" + custom);\n sendCustomMessage(custom, \"A\");\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 ClickSendApplicationButton()\n {\n\n new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(SendApplicationButton)).click();\n\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tclient.sendMessage(txtUserInput.getText().trim()+\".\");\r\n\t\t\t\ttxtUserInput.setText(\"\");\r\n\t\t\t}",
"private void sendMessage(JTextField text){\n \t\tString message = text.getText();\n \t\tfor(int i = 0; i < listeners.size(); i++)\n \t\t{\n \t\t\tboolean b = listeners.get(i).sendMessage(userName, message);\n \t\t\tif(b == false)\n \t\t\t\tSystem.out.println(\"Error, could not send\");\n \t\t}\n \t\t\n \t\ttext.setText(\"\");\n \t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tsendData(event.getActionCommand());//调用sendData方法,响应操作。\t将信息发送给客户\r\n\t\t\t\tenterField.setText(\"\"); //将输入区域置空\r\n\t\t\t}",
"private void jTextFieldTelefoneActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Message msg = new Message();\n msg.what = 1;\n add_address_handler.sendMessage(msg);\n }",
"private void sendMessage() {\n\t\tString text = myMessagePane.getText();\n\t\tMessage msg = new Message(text, myData.userName, myData.color);\n\n\t\tcommunicationsHandler.send(msg);\n\n\t\t// De-escape xml-specific characters\n\t\tXmlParser xmlParser = new XmlParser(myData);\n\t\tString outText = xmlParser.deEscapeXMLChars(msg.text);\n\t\tmsg.text = outText;\n\n\t\tmyMessagePane.setText(\"\");\n\t\tupdateMessageArea(msg);\n\n\t}",
"@Override\n public void onClick(View v) {\n if (v == mBtnSendSms) {\n String strMobileNumber = mEditTextMobileNumber.getText().toString().trim();\n String strSmeBody = mEditTextSmsBody.getText().toString().trim();\n sendSms(strMobileNumber, strSmeBody);// Send SMS Method\n }\n\n }",
"public void sendMessage(View view) {\n }",
"@Override\r\n\t public void onClick(View arg0) {\n\t screenDialog.dismiss();\r\n\t String sms = messageText.getText().toString();\r\n\t \ttry {\r\n\t\t\t\tSmsManager smsManager = SmsManager.getDefault();\r\n\t\t\t\tsmsManager.sendTextMessage(phone, null, sms, null, null);\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"SMS Sent!\",\r\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"SMS faild, please try again later!\",\r\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t }",
"public void send(View v)\r\n {\r\n \t// get the phone number from the phone number text field\r\n String phoneNumber = phoneTextField.getText().toString();\r\n // get the message from the message text box\r\n String msg = msgTextField.getText().toString(); \r\n\r\n // make sure the fields are not empty\r\n if (phoneNumber.length()>0 && msg.length()>0)\r\n {\r\n \t// call the sms manager\r\n PendingIntent pi = PendingIntent.getActivity(this, 0,\r\n new Intent(this, SendSMSActivity.class), 0);\r\n SmsManager sms = SmsManager.getDefault();\r\n \r\n // this is the function that does all the magic\r\n sms.sendTextMessage(phoneNumber, null, msg, pi, null);\r\n \r\n }\r\n else\r\n {\r\n \t// display message if text fields are empty\r\n Toast.makeText(getBaseContext(),\"All field are required\",Toast.LENGTH_SHORT).show();\r\n }\r\n\r\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tclient.sendMessage(txtUserInput.getText().trim());\r\n\t\t\t\ttxtUserInput.setText(\"\");\r\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n client.sendMessage(new QuestionAnsweredMessage(answerField.getText()));\n //mainGUI.showMainPanel();\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\ttry {\n\t\t\t\ttextfield.setEditable(false);\n\t\t\t\tconnectButton.setEnabled(false); // username can be sent only once\n\t\t\t\tclient.sendUsername(textfield.getText()); //sends the username to the server\n\t\t\t}catch(Exception a){\n\t\t\t\ta.printStackTrace();\n\t\t\t}\n\t\t}",
"private JButton initializeSendButton() {\r\n\t\tJButton sendButton = new JButton(\"Send\");\r\n\t\tsendButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// send message which taken from text field.\r\n\t\t\t\ttry {\r\n\t\t\t\t\tnotifyMessageFromUI();\r\n\t\t\t\t\tchatArea.append(messageField.getText() + \"\\n\");\r\n\t\t\t\t\tmessageField.setText(\"\");\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn sendButton;\r\n\t}",
"@Override\n\tpublic void onClick(View v) {\n\t\tIntent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); \n\t\tsharingIntent.setType(\"text/plain\");\n\t\tString shareBody = \"I scored \"+score+\" points!How much can you score?Install the game Space Prowler from the Play Store now!\";\n\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Subject Here\");\n\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\n\t\tstartActivity(Intent.createChooser(sharingIntent, \"Share via\"));\n\t\t\n\t}",
"public void email() {\n\t\t\t\temailGUI = new EmailGUI();\n\t\t\t\tpopUpWindow = emailGUI.getFrame();\n\t\t\t\tpopUpWindow.setVisible(true);\n\t\t\t\temailGUI.setListeners(new mailListener());\n\t\t\t}"
] | [
"0.7499435",
"0.7443014",
"0.7364172",
"0.7359344",
"0.72350395",
"0.7199424",
"0.7175606",
"0.7060994",
"0.7056321",
"0.70453936",
"0.70211387",
"0.69962037",
"0.69629294",
"0.6948532",
"0.6909383",
"0.6906207",
"0.68982047",
"0.68778974",
"0.68681073",
"0.6863843",
"0.6861689",
"0.6855947",
"0.6829168",
"0.6829168",
"0.68100554",
"0.68046165",
"0.67956823",
"0.6787714",
"0.6759238",
"0.6744018",
"0.6707401",
"0.66958",
"0.66871935",
"0.6678355",
"0.6667571",
"0.66640604",
"0.66591114",
"0.66564614",
"0.6653291",
"0.6642567",
"0.66410923",
"0.66404796",
"0.66232145",
"0.6618006",
"0.6606903",
"0.6584689",
"0.65797186",
"0.6561841",
"0.6553115",
"0.6547436",
"0.65393287",
"0.651663",
"0.65163577",
"0.65154856",
"0.65146697",
"0.65051925",
"0.65032166",
"0.649689",
"0.64898",
"0.64820576",
"0.6473583",
"0.6467032",
"0.64648014",
"0.64573944",
"0.64447665",
"0.6442222",
"0.644132",
"0.64410925",
"0.643406",
"0.64282733",
"0.64210963",
"0.6417911",
"0.6414698",
"0.6414396",
"0.6413563",
"0.641016",
"0.639508",
"0.639445",
"0.6391999",
"0.6384783",
"0.63731813",
"0.63719505",
"0.6367314",
"0.63578427",
"0.6350445",
"0.6348557",
"0.63472676",
"0.6341334",
"0.63188434",
"0.63171726",
"0.63163406",
"0.6311367",
"0.63065016",
"0.630519",
"0.6297565",
"0.6291595",
"0.6284345",
"0.6282653",
"0.6282092",
"0.62638575",
"0.6261625"
] | 0.0 | -1 |
PDF Merging Service Interface | public interface MergeService {
public DocMergeResponse mergePDFDocuments(DocMergeRequest request, String correlationId) throws MergeException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface PdfBookMasterRepository {\n String savePdfMaster(InputStream inputStream,String fileName,Map<String,String> metadata);\n byte[] readPdfMaster(String id);\n boolean deletePdfMaster(String id);\n}",
"@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n String description = request.getParameter(\"description\"); // Retrieves <input type=\"text\" name=\"description\">\n Part filePart = request.getPart(\"file\"); // Retrieves <input type=\"file\" name=\"file\">\n // String fileName = Paths.get(filePart.getSubmittedFileName()).getFileName().toString(); // MSIE fix.\n InputStream fileContent = filePart.getInputStream();\n \n int rand =(int)( Math.random()*1000000000);\n String sourcePath = \"C:\\\\tmp\\\\tmp_\"+rand+\".pdf\";\n\n final Path destination = Paths.get(sourcePath);\n\n File file = destination.toFile();\n if(file.exists()){\n file.delete();\n }\n Files.copy(fileContent, destination);\n\n \n String path= PDFMinerController.pdf2text(sourcePath);\n \n \n File source = new File(path);\n System.out.println(\"XML file is readable \"+source.exists());\n List<Reference> refList= ReferenceExctractor.getReferences(source);\n Parser p = new Parser();\n StyleParser hp = new StyleParser();\n ArrayList<OneChar> text = p.parse(source);\n String headline= hp.parseHeadline(text);\n //response.setContentType(\"text/xml\");\n StringBuilder sb =new StringBuilder();\n sb.append(headline).append(\"\\n\");\n System.out.println(\"Reference list size \"+refList.size());\n for(Reference ref:refList ){\n System.out.println(\"Reference \"+ref.toString());\n sb.append(ref.toString()).append(\"\\n\");\n \n \n }\n response.getWriter().println(sb.toString());\n\t\n \n if(file.exists()){\n file.delete();\n System.out.println(\"PDF file deleted\");\n }\n System.out.println(\"Source exist \"+source.exists());\n if(source.exists()){\n source.delete();\n System.out.println(\"Source File deleted\");\n }\n \n }",
"public interface PdfProvider {\n /**\n * Create a thumbnail image for a given PDF file.\n *\n * @param inputFile Input file.\n * @param outputStream OutputStream, to which the thumbnail is written. Important: Stream is not closed!\n * @param format Output file format given as a MIME type.\n * @param width Width in pixel.\n * @param height Height in pixel.\n * @param quality Quality factor for output compression.\n * @param speedHint Speed factor for conversion.\n * @throws Exception on any error opening the file, converting the file or writing to the output.\n */\n\n void createThumbNail(File inputFile, OutputStream outputStream,\n String format, int width, int height,\n ConversionCommand.CompressionQuality quality,\n ConversionCommand.SpeedHint speedHint) throws Exception;\n\n PdfDocumentInformation getDocumentInformation(File pdfFile) throws Exception;\n\n int countPages(File pdfFile) throws Exception;\n\n void createPdfFromImages(File[] imageFiles, PdfDocumentInformation documentInformation, File outputPdfFile) throws Exception;\n\n void createPdfFromImages(byte[][] imageFileByteArrays, PdfDocumentInformation documentInformation,\n int width, int height, OutputStream outputStream) throws Exception;\n}",
"public interface DetalleBoletasFragmentView {\n void getBoletasPdf(JHADocumentoWS boletaPdf);\n\n\n}",
"public void agregarMetadatos(UploadedFile ArticuloPDF, UploadedFile TablaContenidoPDF, UploadedFile cartaAprobacionPDF) throws IOException, GeneralSecurityException, DocumentException, PathNotFoundException, AccessDeniedException {\n MetodosPDF mpdf = new MetodosPDF();\n String codigoEst = this.pubEstIdentificador.getEstCodigo();\n String codigoFirma = mpdf.codigoFirma(codigoEst);\n codigoFirma = codigoFirma.trim();\n\n String nombreCartaAprob = \"Carta de Aprobacion-\" + codigoFirma;\n String nombrePublicacion = \"\";\n String nombreTablaC = \"Tabla de Contenido-\" + codigoFirma;\n\n if (this.pubTipoPublicacion.equalsIgnoreCase(\"revista\")) {\n nombrePublicacion = this.revista.getRevTituloArticulo();\n\n }\n if (this.pubTipoPublicacion.equalsIgnoreCase(\"congreso\")) {\n nombrePublicacion = this.congreso.getCongTituloPonencia();\n }\n if (this.pubTipoPublicacion.equalsIgnoreCase(\"libro\")) {\n nombrePublicacion = this.libro.getLibTituloLibro();\n\n }\n if (this.pubTipoPublicacion.equalsIgnoreCase(\"capitulo_libro\")) {\n\n nombrePublicacion = this.capituloLibro.getCaplibTituloCapitulo();\n }\n\n\n /*Obtiene la ruta de la ubicacion del servidor donde se almacenaran \n temporalmente los archivos ,para luego subirlos al Gestor Documental OpenKm */\n String realPath = FacesContext.getCurrentInstance().getExternalContext().getRealPath(\"/\");\n // String destCartaAprob = realPath + \"WEB-INF\\\\temp\\\\Tabla de Contenido.pdf\";\n String destCartaAprob = realPath + \"WEB-INF\\\\temp\\\\\" + nombreCartaAprob + \".pdf\";\n String destArticulo = realPath + \"WEB-INF\\\\temp\\\\\" + nombrePublicacion + \".pdf\";\n // String destTablaC = realPath + \"WEB-INF\\\\temp\\\\Tabla de Contenido.pdf\";\n String destTablaC = realPath + \"WEB-INF\\\\temp\\\\\" + nombreTablaC + \".pdf\";\n\n\n /* Estampa de Tiempo\n Obtiene el dia y hora actual del servidor para posteriormente adicionarlo\n como Metadato en el documento PDF/A y el Gestor Documental*/\n Date date = new Date();\n DateFormat datehourFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n String estampaTiempo = \"\" + datehourFormat.format(date);\n\n this.setPubFechaRegistro(date);\n\n /* Metodo para almacenar los metadatos de la Carte de Aprobacion , Articulo y Tabla de Contenido \n para almacenarlo en formato PDFA */\n ArrayList<tipoPDF_cargar> subidaArchivos = new ArrayList<>();\n\n /* tipoPDF_cargar cartaAprobacion = new tipoPDF_cargar();\n cartaAprobacion.setNombreArchivo(nombreCartaAprob);\n cartaAprobacion.setRutaArchivo(destCartaAprob);\n cartaAprobacion.setTipoPDF(\"cartaAprobacion\");\n cartaAprobacion.setArchivoIS(cartaAprobacionPDF.getInputstream());\n subidaArchivos.add(cartaAprobacion); */\n if (!cartaAprobacionPDF.getFileName().equalsIgnoreCase(\"\")) {\n tipoPDF_cargar cartaAprobacion = new tipoPDF_cargar();\n cartaAprobacion.setNombreArchivo(nombreCartaAprob);\n cartaAprobacion.setRutaArchivo(destCartaAprob);\n cartaAprobacion.setTipoPDF(\"cartaAprobacion\");\n cartaAprobacion.setArchivoIS(cartaAprobacionPDF.getInputstream());\n subidaArchivos.add(cartaAprobacion);;\n }\n\n if (!ArticuloPDF.getFileName().equalsIgnoreCase(\"\")) {\n tipoPDF_cargar articulo = new tipoPDF_cargar();\n articulo.setNombreArchivo(nombrePublicacion);\n articulo.setRutaArchivo(destArticulo);\n articulo.setTipoPDF(\"tipoPublicacion\");\n articulo.setArchivoIS(ArticuloPDF.getInputstream());\n subidaArchivos.add(articulo);\n }\n if (!TablaContenidoPDF.getFileName().equalsIgnoreCase(\"\")) {\n tipoPDF_cargar tablaContenido = new tipoPDF_cargar();\n tablaContenido.setNombreArchivo(nombreTablaC);\n tablaContenido.setRutaArchivo(destTablaC);\n tablaContenido.setTipoPDF(\"tablaContenido\");\n tablaContenido.setArchivoIS(TablaContenidoPDF.getInputstream());\n subidaArchivos.add(tablaContenido);\n }\n\n CrearPDFA_Metadata(subidaArchivos, estampaTiempo);\n\n String hash = mpdf.obtenerHash(destArticulo);\n\n /* Metodo para almacenar en el Gestor Documental(OPENKM), carta de aprobacion,\n el articulo en formato PDFA y la Tabla de Contenido del Articulo (formato PDFA) */\n // SubirOpenKM(rutasArchivos, nombreArchivos, estampaTiempo, codigoFirma, hash);\n SubirOpenKM(subidaArchivos, estampaTiempo, codigoFirma, hash);\n }",
"private void getPDF(){\r\n\t\t\r\n\t\tif(request.getParameter(\"exportType\").equals(PDFGenerator.EXPORT_ADMIN)){\r\n\t\t\tgetAdministration(); // pdf uses same data\r\n\t\t} else if(request.getParameter(\"exportType\").equals(PDFGenerator.EXPORT_TEACHER)){\r\n\t\t\tgetEventRegistration(); // pdf uses same data\r\n\t\t}\r\n\t\t\r\n\t\tPDFGenerator pdfGen = new PDFGenerator();\r\n\t\tpdfGen.createDocument(request, response);\r\n\t\t\r\n\t\tString eventTitle = \"all\";\r\n\t\t\r\n\t}",
"@Override\n public abstract NiceXWPFDocument merge(NiceXWPFDocument source, Iterator<NiceXWPFDocument> mergedIterator,\n XWPFRun location) throws Exception;",
"public static List<Page> processPDF(byte[] theFile, PageProcessor pp,\n int startPage, int endPage, String encoding, String password,\n List<AdjacencyGraph<GenericSegment>> adjGraphList, boolean GUI)\n throws DocumentProcessingException\n {\n\n\n boolean toConsole = false;\n if (password == null)\n password = \"\";\n if (encoding == null || encoding == \"\")\n encoding = DEFAULT_ENCODING;\n\n if (startPage == 0)\n startPage = 1;\n if (endPage == 0)\n endPage = Integer.MAX_VALUE;\n\n ByteArrayInputStream inStream = new ByteArrayInputStream(theFile);\n PDDocument document = null;\n\n try {\n\n PDFObjectExtractor extractor = new PDFObjectExtractor();\n// PDDocument document = null;\n document = PDDocument.load( inStream );\n // document.print();\n if( document.isEncrypted() )\n {\n try\n {\n document.decrypt( password );\n }\n catch( InvalidPasswordException e )\n {\n if(!(password == null || password == \"\"))//they supplied the wrong password\n {\n throw new DocumentProcessingException\n (\"Error: The supplied password is incorrect.\");\n }\n else\n {\n //they didn't suppply a password and the default of \"\" was wrong.\n throw new DocumentProcessingException\n ( \"Error: The document is encrypted.\" );\n }\n } catch (CryptographyException e) {\n throw new DocumentProcessingException(e);\n }\n }\n\n extractor.setStartPage( startPage );\n extractor.setEndPage( endPage );\n // stripper.writeText( document, output );\n\n List<PDFPage> thePages = extractor.findObjects(document);\n List<Page> theResult = new ArrayList<Page>();\n\n startPage = extractor.getStartPage();\n endPage = extractor.getEndPage();\n\n // now the DU part\n\n Iterator<PDFPage> pageIter = thePages.iterator();\n int currentPage = -1;\n while(pageIter.hasNext())\n {\n currentPage ++;\n PDFPage thePage = pageIter.next();\n\n Page resultPage = pp.processPage(thePage);\n theResult.add(resultPage);\n if (adjGraphList != null)\n adjGraphList.add(pp.getAdjGraph());\n\n }\n\n // 17.11.10 document-wide processing for headers, footers, etc.\n if (!GUI)\n theResult = pp.processDocPages(theResult, null);\n\n // move to finally block somewhere?\n if( document != null )\n {\n document.close();\n }\n return theResult;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n throw new DocumentProcessingException(e);\n }\n\n }",
"void mergeOut() {\n String outputName = outputDir + flist.get(0).getName().substring(0,\n flist.get(0).getName().lastIndexOf(\".\"));\n if (outputType.equals(\"Text\")) {\n for (int i = 0; i < files.size(); i++) {\n Process p;\n String line;\n try {\n if (files.get(i).startsWith(\"pdf\")) {\n String[] images = files.get(i).split(\"\\n\");\n FileWriter writer = new FileWriter(outputName + \".txt\", true);\n BufferedWriter bWriter = new BufferedWriter(writer);\n for (int j = 1; j < images.length; j++) {\n p = Runtime.getRuntime().exec(SCRIPT + images[j]);\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n while ((line = r.readLine()) != null) {\n bWriter.write(line);\n bWriter.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n }\n bWriter.close();\n //cleanTempImages(images);\n } else if (files.get(i).startsWith(\"err\")) {\n System.out.println(\"Error with reading pdf.\");\n //cleanTempImages(files.get(i).split(\"\\n\"));\n } else {\n p = Runtime.getRuntime().exec(SCRIPT + files.get(i));\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n FileWriter writer = new FileWriter(outputName + \".txt\", true);\n BufferedWriter bWriter = new BufferedWriter(writer);\n while ((line = r.readLine()) != null) {\n bWriter.write(line);\n bWriter.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n bWriter.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n } else if (outputType.equals(\"PDF\")) {\n PDDocument document = new PDDocument();\n for (int i = 0; i < files.size(); i++) {\n Process p;\n String line;\n try {\n if (files.get(i).startsWith(\"pdf\")) {\n String[] images = files.get(i).split(\"\\n\");\n for (int j = 1; j < images.length; j++) {\n PDPage page = new PDPage();\n document.addPage(page);\n PDPageContentStream contentStream = new PDPageContentStream(document, page);\n contentStream.beginText();\n contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n contentStream.setLeading(14.5f);\n contentStream.newLineAtOffset(25, 700);\n p = Runtime.getRuntime().exec(SCRIPT + images[j]);\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n while ((line = r.readLine()) != null) {\n contentStream.showText(line);\n contentStream.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n contentStream.endText();\n contentStream.close();\n }\n //cleanTempImages(images);\n } else if (files.get(i).startsWith(\"err\")) {\n System.out.println(\"Error with reading pdf.\");\n //cleanTempImages(files.get(i).split(\"\\n\"));\n } else {\n p = Runtime.getRuntime().exec(SCRIPT + files.get(i));\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n PDPage page = new PDPage();\n document.addPage(page);\n PDPageContentStream contentStream = new PDPageContentStream(document, page);\n contentStream.beginText();\n contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n contentStream.setLeading(14.5f);\n contentStream.newLineAtOffset(25, 700);\n while ((line = r.readLine()) != null) {\n contentStream.showText(line);\n contentStream.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n contentStream.endText();\n contentStream.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n try {\n document.save(outputName + \".pdf\");\n document.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }",
"private void createPdf(CartReceiptResponse receiptResponse, HttpServletResponse response, Locale localeObj)\n throws DocumentException, IOException {\n /* Get the output stream for writing PDF object */\n final OutputStream out = response.getOutputStream();\n Document document = new Document();\n PdfWriter writer = PdfWriter.getInstance(document, out);\n document.open();\n\n\t\t/* Start Add Image */ \n /* add Logo image based on application id Getting Image path from Resource bundle*/\n final String logoFileClasspath = getMessage(localeObj, \"pdf.receipt.logoImageUrl\");\n URL path = PdfServlet.class.getClassLoader().getResource(logoFileClasspath);\n if (null == path) {\n throw new FileNotFoundException(\"unable to find logoImage in classpath: \" + logoFileClasspath);\n }\n Image logoImage = Image.getInstance(path);\n\n\t\t/* Start of Bill Submit Section */\n PdfPTable logoImageTable = new PdfPTable(1);/* Table for the Logo Image */\n /* Logo added to PDF cell constructor */\n PdfPCell logoImageCell = new PdfPCell(logoImage);\n PdfPCell logoBlankSpaceCell = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n cellAlignment(logoImageCell, Element.ALIGN_CENTER, \"\", 0);\n cellAddingToTable(logoImageTable, logoImageCell, Rectangle.LEFT | Rectangle.TOP | Rectangle.RIGHT, 0, 0);\n\n cellAlignment(logoImageCell, Element.ALIGN_LEFT, \"\", 0);\n cellAddingToTable(logoImageTable, logoBlankSpaceCell, Rectangle.LEFT | Rectangle.RIGHT, 0, 0);\n document.add(logoImageTable);\n /* End Add Logo Image */ \n\n\t\t/* create PDF header section */\n pdfReceiptIdSection(receiptResponse, document, localeObj);\n /* Designing bill transaction information to show biller name and amount*/\n designBillTransactionInfo(receiptResponse, document, localeObj);\n /* create payment method section */\n pdfPaymentMethod(receiptResponse, document, localeObj);\n /* Appending line below the document */\n pdfInfoMessage(document, localeObj);\n /* New page creating for merging existing PdF page in to current PDF */\n document.newPage();\n try {\n getPdfFromAwsLink(writer, localeObj);/* Call to merge existing PDF to current PDf */\n } catch (final Exception e) {\n LOGGER.error(\"trouble while merging PDF disclosure\", e);\n }\n document.close();\n LOGGER.debug(\"End PDF Created \");\n }",
"public interface MergerService {\n /**\n * 封存、启封、销户 分页\n * @param map\n * @return\n */\n List<PersonsAccountNumberState> SealedPage1(Map map);\n\n /**\n * 封存、启封 销户 查询信息条数\n * @param map\n * @return\n */\n List<Map> SealedPageCount1(Map map);\n\n\n /**\n * 判断唯一性校验 封存 启封 销户 校验 不能重复操作\n * @param map\n * @return\n */\n List<Map> verification(Map map);\n\n /**\n * 校验贷款的人 不能销户 和 封存\n * @param map\n * @return\n */\n List<Map> loansVerification(Map map);\n /**\n * 封存 启封 销户 操作弹出层查询信息\n * @param map\n * @return\n * element--controller放到service层\n */\n Map operationQuery(Map map);\n\n /**\n * 获取审核信息 放入审核表中\n * @param map\n * @return\n * element 放到service层\n */\n Map unsealAudit1(Map map, HttpSession session);\n\n /**\n * 获取审核信息 添加到审核表中\n * @param map\n * @return\n * element\n */\n int unsealAuditAdd1(Map map);\n\n /**\n * 获取分页数据\n * @param map\n * @return\n */\n List<personDetail> getPage1(Map map);\n\n /**\n * 获取分页数据总数量\n * @param map\n * @return\n */\n int getPageCount1(Map map);\n\n\n //12121648查看审批\n /**\n * 审批工作类别查询\n * @return\n */\n List<Map> accraditation1();\n\n /**\n * 查询贷款记录表中的信息 录入查看审批表中\n * @param map\n * @return\n */\n List<Map> loans1(Map map);\n\n /**\n * 查询贷款记录表中的总信息条数\n * @return\n */\n int loansCount1();\n\n /**\n * 查询封存、启封、销户 记录表\n * @param map\n * @return\n */\n List<Map> breaka1(Map map);\n\n /**\n * 查询封存、启封、销户 记录表 条数\n * @return\n */\n int breakaCount1();\n\n /**\n * 查询人员转移记录表中信息 录入查看审批表中\n * @param map\n * @return\n */\n List<Map> transfer(Map map);\n\n /**\n * 查询人员转移记录表 条数\n * @return\n */\n int transferCount();\n\n /**\n * 查询公积金提取记录表\n * @param map\n * @return\n */\n List<Map> extract(Map map);\n /**\n * 查询公积金提取记录表\n * @param map\n * @return\n */\n List<Map> extract1(Map map);\n\n /**\n * 查询公积金提取记录表 条数\n * @return\n */\n int extractCount1();\n}",
"private void generarDocP(){\n generarPdf(this.getNombre());\n }",
"public PdfFileAdapter(PdfFileMapping pdfFileMapping, String downloadService) {\n\n super(pdfFileMapping, null);\n this.downloadService = downloadService;\n this.notExportedSearchableFields = new ArrayList<>();\n\n\n addPair(SOURCE, pdfFileMapping.getSource());\n addNotExportableSearchableField(CONTENT);\n\n }",
"public String checkPDFContent(File file) throws IOException {\n String extractedText =\"\";\n try{\n PDDocument doc = PDDocument.load(file);\n int totalPages = doc.getNumberOfPages();\n System.out.println(\"Total pages: \" + totalPages);\n PDFTextStripper stripper = new PDFTextStripper();\n stripper.setStartPage(1);\n stripper.setEndPage(totalPages);\n extractedText = stripper.getText(doc);\n } catch (IOException e) {\n System.out.println(\"Nu merge !\");\n e.printStackTrace();\n }\n System.out.println(extractedText);\n return extractedText;\n }",
"public void foreachPSorPDFinInputPath(ParameterHelper _aParam)\n {\n // TODO: auslagern in eine function, die ein Interface annimmt.\n String sInputPath = _aParam.getInputPath();\n File aInputPath = new File(sInputPath);\n// if (!aInputPath.exists())\n// {\n// GlobalLogWriter.println(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\");\n// assure(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\", false);\n// }\n if (aInputPath.isDirectory())\n {\n // check a whole directory\n // a whole directory\n FileFilter aFileFilter = FileHelper.getFileFilterPSorPDF();\n traverseDirectory(aFileFilter, _aParam);\n }\n else\n {\n // the inputpath contains a file\n if (sInputPath.toLowerCase().endsWith(\".ini\"))\n {\n IniFile aIniFile = new IniFile(_aParam.getInputPath());\n while (aIniFile.hasMoreElements())\n {\n String sKey = (String)aIniFile.nextElement();\n String sPath = FileHelper.getPath(_aParam.getInputPath());\n String sEntry = FileHelper.appendPath(sPath, sKey);\n File aFile = new File(sEntry);\n assure(\"File '\" + sEntry + \"' doesn't exists.\", aFile.exists(), true);\n if (aFile.exists())\n {\n callEntry(sEntry, _aParam);\n }\n }\n }\n else\n {\n // call for a single pdf/ps file\n if (sInputPath.toLowerCase().endsWith(\".ps\") ||\n sInputPath.toLowerCase().endsWith(\".pdf\") ||\n sInputPath.toLowerCase().endsWith(\".prn\"))\n {\n callEntry(sInputPath, _aParam);\n }\n else\n {\n String sInputPathWithPDF = sInputPath + \".pdf\";\n File aInputPathWithPDF = new File(sInputPathWithPDF);\n\n if (aInputPathWithPDF.exists() &&\n _aParam.getReferenceType().toLowerCase().equals(\"pdf\"))\n {\n // create PDF only if a pdf file exists and creatortype is set to PDF\n callEntry(sInputPathWithPDF, _aParam);\n }\n else\n {\n String sInputPathWithPS = sInputPath + \".ps\";\n \n File aInputPathWithPS = new File(sInputPathWithPS);\n if (aInputPathWithPS.exists())\n {\n callEntry(sInputPathWithPS, _aParam);\n }\n else\n {\n String sPath = FileHelper.getPath(sInputPath);\n String sBasename = FileHelper.getBasename(sInputPath);\n\n // there exist an index file, therefore we assume the given\n // file is already converted to postscript or pdf\n runThroughEveryReportInIndex(sPath, sBasename, _aParam);\n }\n }\n }\n }\n }\n }",
"public void convert() throws Exception\r\n\t{\n\t\tString query = \"SELECT r_object_id FROM m_mrcs_efs_central_document WHERE r_current_state = 4 OR r_current_state = 6\"; \r\n\t\t\r\n\t\tIDfSession session = null;\r\n\t\tIDfSessionManager sMgr = null;\r\n\t\ttry {\r\n\t IDfClientX clientx = new DfClientX();\r\n\r\n\t \tIDfClient client = clientx.getLocalClient();\r\n\r\n\t \tsMgr = client.newSessionManager();\r\n\r\n\t \tIDfLoginInfo loginInfoObj = clientx.getLoginInfo();\r\n\t loginInfoObj.setUser(\"mradmin\");\r\n\t loginInfoObj.setPassword(\"mr2006\");\r\n\t loginInfoObj.setDomain(null);\r\n\r\n\t sMgr.setIdentity(\"MRCS_Dev\", loginInfoObj);\r\n }\r\n catch (DfException dfe){\r\n \tdfe.printStackTrace();\r\n }\t\t\r\n /*-DEBUG-*/if (DfLogger.isDebugEnabled(this))DfLogger.debug(this, \" \", null, null);\r\n\t\t\r\n\t\t// get list of objects that are pdfs...\r\n\t\t\r\n IDfQuery qry = new DfQuery();\r\n qry.setDQL(query);\r\n\r\n IDfCollection myObj1 = (IDfCollection) qry.execute(session, IDfQuery.DF_READ_QUERY);\r\n \r\n IDfTypedObject serverConfig = session.getServerConfig();\r\n String aclDomain = serverConfig.getString(\"operator_name\");\r\n\t\tIDfACL obsoleteacl = session.getACL(aclDomain,\"mrcs_central_archived\");\r\n\t\tIDfACL retiredacl = session.getACL(aclDomain,\"mrcs_central_retired_doc\");\r\n\r\n\r\n while (myObj1.next()) \r\n {\r\n \tString curid = myObj1.getString(\"r_object_id\");\r\n \t\t// look up object\r\n \t\tIDfDocument doc = (IDfDocument)session.getObject(new DfId(curid));\r\n \t\t\r\n \t\t// check that it's not a popped off copy (i_folder_id[0] != 'Approved') seems to be the only indicator of this...\r\n \t\tIDfFolder folder = (IDfFolder)session.getObject(doc.getFolderId(0));\r\n \t\tString foldername = folder.getObjectName();\r\n \t\t\r\n \t\t// don't do this for approved copies...\r\n \t\tif (!\"Approved\".equals(foldername))\r\n \t\t{\r\n\t \t\t\r\n\t \t\t// check it's state\r\n\t \t\tString statename = doc.getCurrentStateName();\r\n\t \t\tString chronicleid = doc.getChronicleId().getId();\r\n\t \t\t// if In-Progress: simply switch the content type\r\n\t \t\tif (\"Obsolete\".equals(statename))\r\n\t \t\t{\r\n\t \t\t\tString previousquery = \"SELECT r_object_id FROM dm_document(all) where i_chronicle_id = '\"+chronicleid+\"'\";\r\n\t \t IDfQuery prevqry = new DfQuery();\r\n\t \t prevqry.setDQL(query);\r\n\t \t IDfCollection previousversions = (IDfCollection) qry.execute(session, IDfQuery.DF_READ_QUERY);\r\n\t \t while (previousversions.next()) \r\n\t \t {\r\n\t \t \t\r\n\t \t \tString previd = previousversions.getString(\"r_object_id\");\r\n\t \t \t\t// look up object\r\n\t \t \t\tIDfDocument prevdoc = (IDfDocument)session.getObject(new DfId(previd));\r\n\t \t \t\t//unlock \r\n\t \t \t\tsMgr.beginTransaction();\r\n\t \t \t\ttry { \r\n\t\t \t prevdoc.setString(\"r_immutable_flag\", \"FALSE\");\r\n\t\t \t prevdoc.save();\r\n\t\t \t \r\n\t\t \t prevdoc.fetch(prevdoc.getTypeName()); // necessary?\t \t \t\t\r\n\t\t\t \t\t\t// set flags obsolete = true,retired = false\r\n\t\t \t \t\tprevdoc.setBoolean(\"retired\",false);\r\n\t\t \t \t\tprevdoc.setBoolean(\"obsolete\",true);\r\n\t\t\t \t\t\t// set acl\r\n\t\t \t \t\tprevdoc.setACL(obsoleteacl);\r\n\t\t \t prevdoc.setString(\"r_immutable_flag\", \"TRUE\");\r\n\t\t \t \t\tprevdoc.save();\r\n\t \t \t\t} catch (Exception e) {\r\n\t \t \t\t\tsMgr.abortTransaction();\r\n\t \t \t\t\tthrow e;\r\n\t \t \t\t}\r\n\t \t \t\tsMgr.commitTransaction();\r\n\t \t }\r\n\t \t previousversions.close();\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\tif (\"Effective\".equals(statename))\r\n\t \t\t{\r\n\t \t\t\tString previousquery = \"SELECT r_object_id FROM dm_document(all) where i_chronicle_id = '\"+chronicleid+\"'\";\r\n\t \t IDfQuery prevqry = new DfQuery();\r\n\t \t prevqry.setDQL(query);\r\n\t \t IDfCollection previousversions = (IDfCollection) qry.execute(session, IDfQuery.DF_READ_QUERY);\r\n\t \t while (previousversions.next()) \r\n\t \t {\r\n\t \t \t\r\n\t \t \tString previd = previousversions.getString(\"r_object_id\");\r\n\t \t \t\t// look up object\r\n\t \t \t\tIDfDocument prevdoc = (IDfDocument)session.getObject(new DfId(previd));\r\n\t \t \t\t//unlock \r\n\t \t \t\tString currentstate = prevdoc.getCurrentStateName();\r\n\t \t \t\tif (\"Retired\".equals(currentstate))\r\n\t \t \t\t{\r\n\t\t \t \t\tsMgr.beginTransaction();\r\n\t\t \t \t\ttry { \t \t \t\t\t\r\n\t\t\t \t prevdoc.setString(\"r_immutable_flag\", \"FALSE\");\r\n\t\t\t \t prevdoc.save();\r\n\t\t\t \t prevdoc.fetch(prevdoc.getTypeName()); // necessary?\t \t \t\t\r\n\t\t\t\t \t\t\t// set flags obsolete = true,retired = false\r\n\t\t\t \t \t\tprevdoc.setBoolean(\"retired\",true);\r\n\t\t\t \t \t\tprevdoc.setBoolean(\"obsolete\",false);\r\n\t\t\t\t \t\t\t// set acl\r\n\t\t\t \t \t\tprevdoc.setACL(retiredacl);\r\n\t\t\t \t prevdoc.setString(\"r_immutable_flag\", \"TRUE\");\r\n\t\t\t \t \t\tprevdoc.save();\r\n\t\t \t \t\t} catch (Exception e) {\r\n\t\t \t \t\t\tsMgr.abortTransaction();\r\n\t\t \t \t\t\tthrow e;\r\n\t\t \t \t\t}\r\n\t\t \t \t\tsMgr.commitTransaction();\r\n\t \t \t\t}\r\n\t \t }\r\n\t \t previousversions.close();\r\n\t \t\t}\r\n\t \t\t\r\n \t\t}\r\n }\r\n myObj1.close();\r\n \r\n sMgr.release(session);\r\n\t}",
"@Override\r\n\tpublic BatchResult generatePDFOutputBatch(Map<String, PathOrUrl> templates, Map<String, Document> data, PDFOutputOptions pdfOutputOptions, BatchOptions batchOptions)\r\n\t\t\tthrows OutputServiceException {\n\t\tthrow new UnsupportedOperationException(\"Not implemented yet.\");\r\n\t}",
"@Override\r\n\tpublic void createPDF(HttpServletRequest request, OutputStream os) {\n\t\t\r\n\t}",
"public interface PDFLink {\n String getText();\n String getHref();\n int getPage();\n}",
"@Override\r\n\tpublic File createPDF() {\n\t\treturn null;\r\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n HttpSession session=request.getSession();\n response.setHeader(\"Cache-Control\",\"no-store\"); //HTTP 1.1\n response.setHeader(\"Pragma\",\"no-cache\"); //HTTP 1.0\n response.setDateHeader(\"Expires\", 0);\n response.setDateHeader(\"Last-Modified\", 0); \n try {\n boolean isMultipart = ServletFileUpload.isMultipartContent( request );\n if ( !isMultipart )\n {\n String modo=request.getParameter(\"modo\"); \n if(modo.equals(\"abrirPdf\")) {\n //if(objetoSesion.isSuperAdministrador() || objetoSesion.getPerfilSelected().getCoreDerechoSistemaList().toString().indexOf(\"D_VER_DEPOSITO\")>-1){ \n CoreDocumento documento=documentoEJBLocal.find(Integer.parseInt(request.getParameter(\"coreDocumentoId\")));\n response.setContentType(\"application/pdf\"); \n response.setHeader(\"Content-Disposition\",\"attachment; filename=\\\"\" + documento.getNombreArchivo() + \"\\\"\"); \n response.getOutputStream().write(documento.getDocumento());\n //}else\n // response.getWriter().println(\"{\\\"success\\\":false,\\\"msg\\\":\\\"Usted no cuenta con los permisos necesarios.\\\"}\");\n }\n }else{ \n ServletFileUpload upload = new ServletFileUpload(); \n try\n {\n byte[] bytes=null;\n String name=null;\n Integer documentoId=null;\n FileItemIterator iter = upload.getItemIterator( request );\n while ( iter.hasNext() )\n {\n FileItemStream item = iter.next();\n String fieldName = item.getFieldName();\n if ( fieldName.equals( \"PDFFile\" ) )\n {\n name=item.getName();\n String[] aname=name.split(\"Id=\");\n bytes = IOUtils.toByteArray( item.openStream() ); \n documentoId=Integer.parseInt(aname[1]);\n }else if(fieldName.equals( \"coreDocumentoId\" ))\n documentoId=Integer.parseInt(Streams.asString(item.openStream()));\n }\n if(documentoId!=null){\n CoreDocumento documento=documentoEJBLocal.find(documentoId);\n documento.setDocumento(bytes);\n response.getWriter().print(documentoEJBLocal.persistir(documento,\"editar\"));\n }\n }\n catch ( IOException ex )\n {\n throw ex;\n }\n catch ( Exception ex )\n {\n throw new ServletException( ex );\n }\n\n }\n }catch (Exception e) {\n if(request.getParameter(\"modo\")==null || request.getParameter(\"modo\").equals(\"listaDocumentos\"))\n response.getWriter().print(\"{\\\"data\\\":[],\\\"total\\\":0}\"); \n else\n response.getWriter().print(\"{\\\"success\\\":false,\\\"msg\\\":\\\"Error al realizar la operacion.\\\"}\");\n }\n }",
"@Override\n protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n ByteArrayOutputStream baos = createTemporaryOutputStream();\n\n // Apply preferences and build metadata.\n Document document = new Document();\n PdfWriter writer = PdfWriter.getInstance(document, baos);\n prepareWriter(model, writer, request);\n buildPdfMetadata(model, document, request);\n\n // Build PDF document.\n writer.setInitialLeading(16);\n document.open();\n buildPdfDocument(model, document, writer, request, response);\n document.close();\n\n // Flush to HTTP response.\n writeToResponse(response, baos);\n\n }",
"ByteArrayOutputStream createPDF(String pdfTextUrl);",
"@Override\r\n public void encryptPdf(String src, String dest) throws IOException, DocumentException {\n\r\n }",
"@Override\r\n\tpublic boolean writeDocument(Collection<IDataHandler> datas, Document document, PdfWriter writer,\r\n\t\t\tProgressBarFrame pBFrame) throws Exception {\n\t\tdocument.open();\r\n\t\t\r\n\t\t// Creation de la BaseFfont par defaut\r\n\t BaseFont basefont = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.EMBEDDED);\r\n\t\t// Creation de la Font concrete\r\n\t Font baseConcreteFont = new Font (basefont, 12, Font.NORMAL);\r\n\t \r\n\t\t// On creer un Iterator pour les donnees\r\n\t\tIterator<IDataHandler> datasIterator = datas.iterator();\r\n\t\t\r\n\t\t// On obtient le progres courant de la ProgressBar\r\n\t\tint counter = pBFrame.getProgress();\r\n\t\t\r\n\t\t// On definit le nombre d'increment pour la ProgressBar en fonction du nombre de donnee et de son degre d'avancement prealable\r\n\t\tint progressIncrement = ProgressBarFrame.MY_MAXIMUM - counter / datas.size();\r\n\t\t\r\n\t\t// On itere sur les parties\r\n\t\twhile (datasIterator.hasNext()) {\r\n\t\t\t\r\n\t\t\t// La partie courante\r\n\t\t\tIDataHandler currentDataPart = datasIterator.next();\r\n\t\t\t// L'iterator sur les donnees de la partie courante\r\n\t\t\tIterator<Collection<Object>> currentPartIter = currentDataPart.getDataStorage().iterator();\r\n\t\t\t\r\n\t\t\t// L'Iterator sur les types de donnees\r\n\t\t\tIterator<Object> datasTypeIter = currentPartIter.next().iterator();\r\n\t\t\t// L'Iterator sur les donnes\r\n\t\t\tIterator<Object> datasIter = currentPartIter.next().iterator();\r\n\t\t\t\r\n\t\t\t// On creer un paragraphe\r\n\t\t\tParagraph para = new Paragraph();\r\n\t\t\t\r\n\t\t\t// On ajoute le titre du paragraphe\r\n\t\t\tpara.add(new Phrase(currentDataPart.getPartTitle(), baseConcreteFont));\r\n\t\t\t// On ajoute une nouvelle ligne\r\n\t\t\tpara.add(Chunk.NEWLINE);\r\n\t\t\t\r\n\t\t\t// Tous ce qui releve des tableaux est une tentative de mise en page a l'aide de tableau mais c'est un echec\r\n\t\t\t// On cree un tableau a 2 colonnes : titre donnee\r\n\t\t\t//PdfPTable table = new PdfPTable(2);\r\n\t\t\t// On enleve les bordures (ne fonctionne pas mais bon...)\r\n\t\t\t//table.getDefaultCell().setBorder(Rectangle.NO_BORDER);\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t// On creer des float pour determiner la largeur que doivent prendre les colonnes\r\n\t\t\tfloat[] tableCellsWidths = new float[] {0f, 0f};\r\n\t\t\t\r\n\t\t\t// On creer un tableau de cellules a ajoute a la fin\r\n\t\t\tArrayList<PdfPCell> tableCells = new ArrayList<PdfPCell>();\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\t// On itere sur le type de donne\r\n\t\t\twhile (datasTypeIter.hasNext()) {\r\n\t\t\t\r\n\t\t\t\tswitch ((IDataHandler.DataType)datasTypeIter.next()) {\r\n\t\t\t\t\t// Si c'est une String\r\n\t\t\t\t\tcase STRING:\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On obtient le titre\r\n\t\t\t\t\t\t/*String stringTitle = (String)datasIter.next();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On calcul sa largeur pour la mise en page\r\n\t\t\t\t\t\tfloat titleWidth = baseConcreteFont.getCalculatedBaseFont(true).getWidthPoint(stringTitle, baseConcreteFont.getCalculatedSize()); \r\n\t\t\t\t\t\tif (titleWidth > tableCellsWidths[0]) {\r\n\t\t\t\t\t\t\ttableCellsWidths[0] = titleWidth;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// On ajoute le titre dans la premiere colonne\r\n\t\t\t\t\t\tPdfPCell title = new PdfPCell(new Phrase (stringTitle, baseConcreteFont));\r\n\t\t\t\t\t\t// On enleve les bordures\r\n\t\t\t\t\t\ttitle.setBorder(Rectangle.NO_BORDER);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttableCells.add(title);\r\n\t\r\n\t\t\t\t\t\t// On obtient la donnee correspondante\r\n\t\t\t\t\t\tString stringData = (String)datasIter.next();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On calcul sa largeur pour la mise en page\r\n\t\t\t\t\t\tfloat dataWidth = baseConcreteFont.getCalculatedBaseFont(true).getWidthPoint(stringData, baseConcreteFont.getCalculatedSize()); \r\n\t\t\t\t\t\tif (dataWidth > tableCellsWidths[1]) {\r\n\t\t\t\t\t\t\ttableCellsWidths[1] = dataWidth;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Puis on met la valeur dans la seconde colonne\r\n\t\t\t\t\t\tPdfPCell stringDataCell = new PdfPCell(new Phrase (stringData, baseConcreteFont));\r\n\t\t\t\t\t\t// On enleve les bordures\r\n\t\t\t\t\t\tstringDataCell.setBorder(Rectangle.NO_BORDER);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttableCells.add(stringDataCell);\r\n\t\t\t\t\t\t*/\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On ajoute le titre de la donnee\r\n\t\t\t\t\t\tpara.add(new Phrase ((String)datasIter.next(), baseConcreteFont));\r\n\t\t\t\t\t\t// Puis on ajoute la donnee\r\n\t\t\t\t\t\tpara.add(new Phrase ((String)datasIter.next(), baseConcreteFont));\r\n\t\t\t\t\t\t// Enfin on ajoute un saut de ligne\r\n\t\t\t\t\t\tpara.add(Chunk.NEWLINE);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t// Si c'est un graphe\r\n\t\t\t\t\tcase JFREECHART :\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On obtient le PdfContentByte du PdfWriter\r\n\t\t\t\t\t\tPdfContentByte contentByte = writer.getDirectContent();\r\n\t\t\t\t\t\t// A partir de ca, on cree un PdfTemplate avec les tailles de l'instance\r\n\t\t\t PdfTemplate template = contentByte.createTemplate(chartWidth, chartHeight);\r\n\t\t\t \r\n\t\t\t // On crer l'objet Graphics2D dans le template qui en prend toute la place\r\n\t\t\t\t\t\tGraphics2D graphics2d = new PdfGraphics2D(template, chartWidth, chartHeight);\r\n\t\t\t \r\n\t\t\t\t\t\t// On crer un Rectangle2D avec la bonne taille\r\n\t\t\t java.awt.geom.Rectangle2D rectangle2d = new java.awt.geom.Rectangle2D.Double(0, 0, chartWidth,\r\n\t\t\t \t\tchartHeight);\r\n\t\t\t \r\n\t\t\t // On obtient le graphe\r\n\t\t\t JFreeChart chart = (JFreeChart) datasIter.next();\r\n\t\t\t // On le dessine dans le rectangle a l'interieur du Graphics2D\r\n\t\t\t chart.draw(graphics2d, rectangle2d);\r\n\t\t\t \r\n\t\t\t // On libere la memoire du Graphics2D\r\n\t\t\t graphics2d.dispose();\r\n\t\t\t \r\n\t\t\t // On obtient un objet Image a partir du template\r\n\t\t\t Image chartImage = Image.getInstance(template);\r\n\t\t\t \r\n\t\t\t // Que l'on peut ajouter normalement dans le Paragraphe\r\n\t\t\t para.add(chartImage);\r\n\t\t\t // Enfin on ajoute un saut de ligne\r\n\t\t\t para.add(Chunk.NEWLINE);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t// Si c'est une Image\r\n\t\t\t\t\tcase IMAGE :\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On obtient l'objet awt.Image (different de IText.Image)\r\n\t\t\t\t\t\tjava.awt.Image image = (java.awt.Image) datasIter.next();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On le convertit en IText.Image que l'on insere dans le paragraphe\r\n\t\t\t\t\t\tpara.add(Image.getInstance(image, null));\r\n\t\t\t\t\t\tbreak;\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t// Si le type est inconnue, on lance une Exception\r\n\t\t\t\t\t\tthrow new Exception (\"data type not handled\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//para.add(Chunk.NEWLINE);\r\n\t\t\t}\r\n\t\t\t// On definit les largeurs du tableau\r\n\t\t\t/*table.setWidths(tableCellsWidths);\r\n\t\t\t\r\n\t\t\t// On ajoute toutes les cellules\r\n\t\t\tfor (PdfPCell cell : tableCells) {\r\n\t\t\t\ttable.addCell(cell);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Enfin, on ajoute le tableau au paragraphe\r\n\t\t\tpara.add(table);\r\n\t\t\t*/\r\n\t\t\t// S'il y a une suite, on ajoute une nouvelle page\r\n\t\t\tif (datasTypeIter.hasNext()) {\r\n\t\t\t\tpara.add(Chunk.NEWPAGE);\r\n\t\t\t}\r\n\t\t\t// On ajout le paragraphe au document\r\n\t\t\tdocument.add(para);\r\n\t\t\t\r\n\t\t\t// S'il y a eu un ajout de nouvelle page, on indique au Document de prevoir une nouvelle page\r\n\t\t\tif (datasTypeIter.hasNext()) {\r\n\t\t\t\tdocument.newPage();\r\n\t\t\t}\r\n\t\r\n\t\t\t// On met a jour la ProgressBar\r\n\t\t\tcounter += progressIncrement;\r\n\t\t\tpBFrame.updateBar(counter);\r\n\t\t}\r\n\t\t\r\n\t\t// A la fin, on ferme tous les flux\r\n\t\tdocument.close();\r\n\t\twriter.close();\r\n\t\r\n\t\t// Renvoie de réussite\r\n\t\treturn true;\r\n\t}",
"@InputValidation(IValidationStrategy.PROCESS.class)\r\npublic interface IFileFormatService extends IService2 {\r\n\r\n\t/**\r\n\t * Saves new file formats into storage\r\n\t * \r\n\t * @param formData\r\n\t * FileFormatFormData\r\n\t * @return the assigned FileFormatFormData\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic FileFormatFormData create(FileFormatFormData formData)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Deletes all file formats from storage having one of the assigned ids\r\n\t * \r\n\t * @param ids\r\n\t * Long[]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic void delete(Long[] ids) throws ProcessingException;\r\n\r\n\t/**\r\n\t * Modifies the assigned file format in the storage\r\n\t * \r\n\t * @param formData\r\n\t * FileFormatFormData\r\n\t * @return the assigned FileFormatFormData\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic FileFormatFormData update(FileFormatFormData formData)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Fetches all formats which belongs to the assigned file type id from\r\n\t * storage [file format id, format, file type]\r\n\t * \r\n\t * @param filetypeNr\r\n\t * Long\r\n\t * @return Object[][]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic Object[][] getFileFormats(Long filetypeNr)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Decides whether there are more than one file type the assigned file\r\n\t * format belongs to\r\n\t * \r\n\t * @param fileformat\r\n\t * String\r\n\t * @return boolean [true for multiple file format - file type connections]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic boolean isFormatMultipleAssigned(String fileformat)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Fetches the file type id for the assigned file format from storage\r\n\t * \r\n\t * @param fileformat\r\n\t * String\r\n\t * @return Long [file type id]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic Long getFiletypeForFileFormat(String fileformat)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Returns true if the assigned file format has already been stored\r\n\t * \r\n\t * @param fileformat\r\n\t * String\r\n\t * @return boolean\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic boolean isFileformatRegistered(String fileformat)\r\n\t\t\tthrows ProcessingException;\r\n\r\n\t/**\r\n\t * Fetches an Array of ids of all file types, the assigned file format\r\n\t * belongs to\r\n\t * \r\n\t * @param fileformat\r\n\t * String\r\n\t * @return Long[]\r\n\t * @throws ProcessingException\r\n\t */\r\n\tpublic Long[] getFiletypesForFileFormat(String fileformat)\r\n\t\t\tthrows ProcessingException;\r\n}",
"@Override\n protected void addFields(PdfFile source, Document doc) throws IOException {\n doc.add(createField(SOURCE, downloadService + source.getId()));\n\n String extractedText = extractText(source);\n doc.add(createField(CONTENT, extractedText));\n }",
"public interface AttachmentService {\n\n /**\n * Save a attachment.\n *\n * @param attachmentDTO the entity to save\n * @return the persisted entity\n */\n AttachmentDTO save(AttachmentDTO attachmentDTO);\n\n /**\n * Get all the attachments.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<AttachmentDTO> findAll(Pageable pageable);\n\n /**\n * Get the \"id\" attachment.\n *\n * @param id the id of the entity\n * @return the entity\n */\n AttachmentDTO findOne(Long id);\n\n /**\n * Delete the \"id\" attachment.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n *根据转运编码获取转运上传的图片\n * @param code\n * @param request\n * @return\n */\n List<AttachmentDTO> findFilesByTranshipCode(String code, HttpServletRequest request);\n\n /**\n * 修改附件的基本信息\n * @param attachmentDTO\n * @return\n */\n AttachmentDTO updateAttachment(AttachmentDTO attachmentDTO);\n}",
"protected File getDocument(String dql, String ext) {\r\n\t\tlog.error(\"====================FUN��O getDocument NA CLASSE DocumentumCoreServicesImpl==================\");\r\n\t\tlog.error(\"====================PARAMETROS RECEBIDOS================== DQL \"\r\n\t\t\t\t+ dql + \" ================== ext \" + ext);\r\n\t\tFile fileReturn = null;\r\n\r\n\t\tContentProfile contentProfile = new ContentProfile();\r\n\r\n\t\tcontentProfile.setFormatFilter(FormatFilter.SPECIFIED);\r\n\r\n\t\tcontentProfile.setFormat(ext);\r\n\t\tlog.error(\"======================= contentProfile.setFormat====== \"\r\n\t\t\t\t+ ext);\r\n\t\tcontentProfile.setContentReturnType(FileContent.class);\r\n\r\n\t\tOperationOptions operationOptions = new OperationOptions();\r\n\r\n\t\toperationOptions.setContentProfile(contentProfile);\r\n\t\tlog.error(\"======================= operationOptions.setContentProfile====== \"\r\n\t\t\t\t+ contentProfile);\r\n\t\tContentTransferProfile transferProfile = new ContentTransferProfile();\r\n\r\n\t\toperationOptions.setContentTransferProfile(transferProfile);\r\n\r\n\t\tQualification qualification1 = new Qualification(dql);\r\n\r\n\t\tObjectIdentity targetObjectIdentity1 = new ObjectIdentity(\r\n\t\t\t\tqualification1, REPOSITORY_NAME);\r\n\t\tlog.error(\"======================= targetObjectIdentity1 (qualification1, REPOSITORY_NAME)====== \"\r\n\t\t\t\t+ targetObjectIdentity1);\r\n\t\tObjectIdentitySet objIdSet = new ObjectIdentitySet();\r\n\r\n\t\tobjIdSet.addIdentity(targetObjectIdentity1);\r\n\r\n\t\tDataPackage dataPackage;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tdataPackage = this.objectService.get(objIdSet,\r\n\t\t\t\t\toperationOptions);\r\n\t\t\tlog.error(\"======================= objIdSet ====== \" + objIdSet);\r\n\t\t\tlog.error(\"======================= operationOptions ====== \"\r\n\t\t\t\t\t+ operationOptions);\r\n\r\n\t\t\tDataObject dataObject = dataPackage.getDataObjects().get(0);\r\n\t\t\tlog.error(\"======================= dataObject ====== \"\r\n\t\t\t\t\t+ dataPackage.getDataObjects().get(0));\r\n\t\t\tContent resultContent = dataObject.getContents().get(0);\r\n\t\t\tlog.error(\"======================= resultContent ====== \"\r\n\t\t\t\t\t+ dataObject.getContents().get(0));\r\n\r\n\t\t\tFileContent fileContent = (FileContent) resultContent;\r\n\t\t\tfileReturn = fileContent.getAsFile();\r\n\r\n\t\t} catch (CoreServiceException e) {\r\n\t\t\tSystem.out.println(\"CoreServiceException \\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tlogger.error(ERROR_REPOSITORIO_EMC.concat(e.getLocalizedMessage()));\r\n\t\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n CoreServiceException\");\r\n\t\t} catch (ServiceException e) {\r\n\t\t\tSystem.out.println(\"ServiceException \\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tlogger.error(ERROR_SERVICO_EMC.concat(e.getLocalizedMessage()));\r\n\t\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n ServiceException\");\r\n\r\n\t\t}\r\n\t\tlog.error(\"==================== FIM FUN��O getDocument NA CLASSE DocumentumCoreServicesImpl==================\");\r\n\r\n\t\t/*\r\n\t\t * File source = new File(fileReturn.getPath()); File dest = new\r\n\t\t * File(\"D:\\\\Temp\\\\file2.docx\"); try { FileUtils.copyFile(source, dest);\r\n\t\t * } catch (IOException e) { e.printStackTrace(); }\r\n\t\t */\r\n\r\n\t\treturn fileReturn;\r\n\r\n\t}",
"public void loadPdfFile() {\n PDFView.Configurator configurator;\n RelativeLayout relativeLayout = (RelativeLayout)this.pdfView.getParent();\n this.errorTextView = (TextView)relativeLayout.findViewById(2131296408);\n this.progressBar = (ProgressBar)relativeLayout.findViewById(2131296534);\n this.sharedPreferences = Factory.getInstance().getMainNavigationActivity().getSharedPreferences(\"AppsgeyserPrefs\", 0);\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"pdf_saved_page_\");\n stringBuilder.append(this.initialTabId);\n savedPageKey = stringBuilder.toString();\n if (this.pathFile.startsWith(\"file:///\")) {\n String string2 = this.pathFile.replace((CharSequence)\"file:///android_asset/\", (CharSequence)\"\");\n configurator = this.pdfView.fromAsset(string2);\n } else {\n boolean bl = this.pathFile.startsWith(\"http\");\n configurator = null;\n if (bl) {\n String string3 = this.pathFile;\n new LoaderPdf().execute((Object[])new String[]{string3});\n }\n }\n this.pdfView.useBestQuality(true);\n if (configurator == null) return;\n try {\n this.loadConfigurator(configurator);\n return;\n }\n catch (Exception exception) {\n exception.printStackTrace();\n this.progressBar.setVisibility(8);\n }\n }",
"public interface SendOutService {\n\n String BEAN_NAME = \"SendOutService\";\n\n /**\n * Returns all the sendInfo nodes associated with given document.\n *\n * @param document document NodeRef\n * @return list of sendInfo nodes associated with given document\n */\n List<SendInfo> getDocumentSendInfos(NodeRef document);\n\n /**\n * Update searchable send info properties according to document's sendInfo child nodes\n *\n * @param document document NodeRef\n */\n void updateSearchableSendInfo(NodeRef document);\n\n /**\n * Build searchable send info data from document's sendInfo child nodes\n *\n * @param document document NodeRef\n * @return Map with documents properties populated with document's sendInfo values\n */\n Map<QName, Serializable> buildSearchableSendInfo(NodeRef document);\n\n /**\n * Sends out document.\n * Inspects all the given recipients and based on send mode sends out the document through DVK to those who support it (based on addressbook) and through email to others.\n * Registers sendInfo child entries under document and checks if given document is a reply outgoing letter and updates originating document info if needed.\n *\n * @param document subject document for sending out\n * @param names list of recipient names\n * @param emails list of recipient email addresses\n * @param modes list of recipient send modes\n * @param idCodes TODO\n * @param fromEmail from email address\n * @param subject mail subject\n * @param content mail content text\n * @param zipIt if attachments should be zipped into single file, or sent as separate files\n * @param fileNodeRefs list of file node refs as strings to match those files which should be sent out as attachments from given document\n * @return true\n */\n boolean sendOut(NodeRef document, List<String> names, List<String> emails, List<String> modes, List<String> idCodes, List<String> encryptionIdCodes, List<X509Certificate> allCertificates, \n \t\tString fromEmail, String subject, String content, List<NodeRef> fileRefs, boolean zipIt);\n\n /** @return {@code List<Pair<recipientName, recipientRegistrationNr>> } */\n List<Pair<String, String>> forward(NodeRef document, List<String> names, List<String> emails, List<String> modes, String fromEmail, String content, List<NodeRef> fileRefs);\n\n NodeRef addSendinfo(NodeRef document, Map<QName, Serializable> props);\n\n /**\n * If updateSearchableSendInfo is false then updateSearchableSendInfo() must manually be called later\n */\n NodeRef addSendinfo(NodeRef document, Map<QName, Serializable> props, boolean updateSearchableSendInfo);\n\n List<ContentToSend> prepareContents(NodeRef document, List<NodeRef> fileRefs, boolean zipIt) throws Exception;\n \n List<ContentToSend> prepareContents(List<EmailAttachment> attachments);\n\n void addSapSendInfo(Node document, String dvkId);\n\n boolean hasDocumentSendInfos(NodeRef document);\n\n Long sendForInformation(List<String> authorityIds, Node docNode, String emailTemplate, String subject, String content);\n\n Date getEarliestSendInfoDate(NodeRef docRef);\n\n}",
"public void onStartPage(PdfWriter writer, Document document){}",
"public void cargarPdf() {\n\t\tif (pdf != null) {\n\t\t\tFacesMessage message = new FacesMessage(\"Se cargo \", pdf.getFileName() + \" correctamente.\");\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, message);\n\t\t}\n\t}",
"public static void main( String[] args ) throws Exception\n {\n if( args.length != 2 )\n {\n System.out.println(\"Usage: <input pdf> <output file>\");\n }\n else\n {\n \tFile file = new File(\"./\"+args[0]);\n \tPDDocument document = PDDocument.load(file);\n\n \t List<PDPage> documentPages = document.getDocumentCatalog().getAllPages();\n\n \t\n try\n {\n \tPDPage page = documentPages.get(0);\n //document.addPage(page);\n List annotations = page.getAnnotations();\n\n // Setup some basic reusable objects/constants\n // Annotations themselves can only be used once!\n\n float inch = 72;\n PDGamma colourGreen = new PDGamma();\n colourGreen.setG(1);\n PDGamma colourBlue = new PDGamma();\n colourBlue.setB(1);\n\n PDBorderStyleDictionary borderThick = new PDBorderStyleDictionary();\n borderThick.setWidth(inch/12); // 12th inch\n PDBorderStyleDictionary borderThin = new PDBorderStyleDictionary();\n borderThin.setWidth(inch/72); // 1 point\n PDBorderStyleDictionary borderULine = new PDBorderStyleDictionary();\n borderULine.setStyle(PDBorderStyleDictionary.STYLE_UNDERLINE);\n borderULine.setWidth(inch/72); // 1 point\n\n float pw = page.getMediaBox().getUpperRightX();\n float ph = page.getMediaBox().getUpperRightY();\n\n // Add the markup annotation, a highlight to PDFBox text\n PDFont font = PDType1Font.HELVETICA_BOLD;\n PDAnnotationTextMarkup txtMark = new PDAnnotationTextMarkup(PDAnnotationTextMarkup.SUB_TYPE_HIGHLIGHT);\n txtMark.setColour(colourBlue);\n txtMark.setConstantOpacity((float)0.1); // Make the highlight 20% transparent\n\n // Set the rectangle containing the markup\n\n float textWidth = (font.getStringWidth( \"PDFBox\" )/1000) * 18;\n PDRectangle position = new PDRectangle();\n position.setLowerLeftX(inch);\n position.setLowerLeftY( ph-inch-18 );\n position.setUpperRightX(72 + textWidth);\n position.setUpperRightY(ph-inch);\n txtMark.setRectangle(position);\n\n // work out the points forming the four corners of the annotations\n // set out in anti clockwise form (Completely wraps the text)\n // OK, the below doesn't match that description.\n // It's what acrobat 7 does and displays properly!\n float[] quads = new float[8];\n\n quads[0] = position.getLowerLeftX(); // x1\n quads[1] = position.getUpperRightY()-2; // y1\n quads[2] = position.getUpperRightX(); // x2\n quads[3] = quads[1]; // y2\n quads[4] = quads[0]; // x3\n quads[5] = position.getLowerLeftY()-2; // y3\n quads[6] = quads[2]; // x4\n quads[7] = quads[5]; // y5\n\n txtMark.setQuadPoints(quads);\n txtMark.setContents(\"Highlighted since it's important\");\n\n annotations.add(txtMark);\n\n\n \n\n // Now a square annotation\n\n PDAnnotationSquareCircle aSquare =\n new PDAnnotationSquareCircle( PDAnnotationSquareCircle.SUB_TYPE_SQUARE);\n aSquare.setContents(\"Square Annotation\");\n aSquare.setColour(colourGreen); // Outline in red, not setting a fill\n aSquare.setBorderStyle(borderThick);\n aSquare.setConstantOpacity((float)0.1);\n\n // Place the annotation on the page, we'll make this 1\" (72points) square\n // 3.5\" down, 1\" in from the right on the page\n\n position = new PDRectangle(); // Reuse the variable, but note it's a new object!\n position.setLowerLeftX(pw-(2*inch)); // 1\" in from right, 1\" wide\n position.setLowerLeftY(ph-(float)(3.5*inch) - inch); // 1\" height, 3.5\" down\n position.setUpperRightX(pw-inch); // 1\" in from right\n position.setUpperRightY(ph-(float)(3.5*inch)); // 3.5\" down\n aSquare.setRectangle(position);\n\n // add to the annotations on the page\n annotations.add(aSquare);\n\n\n\n document.save(args[1]);\n }\n finally\n {\n document.close();\n }\n }\n }",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\t//Can't use filename directly\n//\t\t\tPdfReader reader1 = new PdfReader(\"SimpleRegistrationForm.pdf\");\n//\t\t\tPdfReader reader2 = new PdfReader(\"TextFields.pdf\");\n\t\t\tPdfReader reader1 = new PdfReader(PdfTestRunner.getActivity().getResources().openRawResource(R.raw.simpleregistrationform));\n\t\t\tPdfReader reader2 = new PdfReader(PdfTestRunner.getActivity().getResources().openRawResource(R.raw.textfields));\n\t\t\tPdfCopyFields copy = new PdfCopyFields(new FileOutputStream(android.os.Environment.getExternalStorageDirectory() + java.io.File.separator + \"droidtext\" + java.io.File.separator + \"concatenatedforms.pdf\"));\n\t\t\tcopy.addDocument(reader1);\n\t\t\tcopy.addDocument(reader2);\n\t\t\tcopy.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void detectionPDF() {\n\t\tif (sourcePDF.getText().equals(\"\")){\n\t\t\tlockButton();\n\t\t\tmessage.setText(\"<html><span color='red'>Pas de PDF</span></html>\");\n\t\t}\n\t\telse{\n\t\t\tif(new File(sourcePDF.getText()).exists()){\n\t\t\t\tmessage.setText(\"<html><head><meta charset=\\\"UTF-8\\\"><span color='green'>Fichier PDF détecté</span></html>\");\n\t\t\t\tunlockButton();\n\t\t\t}\n\t\t\telse\n\t\t\t\tmessage.setText(\"<html><span color='red'>le fichier \"+ sourcePDF.getText() +\" n'existe pas</span></html>\");\n\t\t}\n\t}",
"public interface DocumentRenderer\n{\n /** Plexus lookup role. */\n String ROLE = DocumentRenderer.class.getName();\n\n /**\n * Render a document from a set of files, depending on a rendering context.\n *\n * @param files the path name Strings (relative to a common base directory)\n * of files to include in the document generation.\n * @param outputDirectory the output directory where the document should be generated.\n * @param documentModel the document model, containing all the metadata, etc.\n * If the model contains a TOC, only the files found in this TOC are rendered,\n * otherwise all files from the Collection of files will be processed.\n * If the model is null, render all files individually.\n * @throws org.apache.maven.doxia.docrenderer.DocumentRendererException if any.\n * @throws java.io.IOException if any.\n */\n void render( Collection<String> files, File outputDirectory, DocumentModel documentModel )\n throws DocumentRendererException, IOException;\n\n /**\n * Render a document from the files found in a source directory, depending on a rendering context.\n *\n * @param baseDirectory the directory containing the source files.\n * This should follow the standard Maven convention, ie containing all the site modules.\n * @param outputDirectory the output directory where the document should be generated.\n * @param documentModel the document model, containing all the metadata, etc.\n * If the model contains a TOC, only the files found in this TOC are rendered,\n * otherwise all files found under baseDirectory will be processed.\n * If the model is null, render all files from baseDirectory individually.\n * @throws org.apache.maven.doxia.docrenderer.DocumentRendererException if any\n * @throws java.io.IOException if any\n// * @deprecated since 1.1.2, use {@link #render(File, File, DocumentModel, DocumentRendererContext)}\n */\n void render( File baseDirectory, File outputDirectory, DocumentModel documentModel )\n throws DocumentRendererException, IOException;\n\n// /**\n// * Render a document from the files found in a source directory, depending on a rendering context.\n// *\n// * @param baseDirectory the directory containing the source files.\n// * This should follow the standard Maven convention, ie containing all the site modules.\n// * @param outputDirectory the output directory where the document should be generated.\n// * @param documentModel the document model, containing all the metadata, etc.\n// * If the model contains a TOC, only the files found in this TOC are rendered,\n// * otherwise all files found under baseDirectory will be processed.\n// * If the model is null, render all files from baseDirectory individually.\n// * @param context the rendering context when processing files.\n// * @throws org.apache.maven.doxia.docrenderer.DocumentRendererException if any\n// * @throws java.io.IOException if any\n// * @since 1.1.2\n// */\n// void render( File baseDirectory, File outputDirectory, DocumentModel documentModel,\n// DocumentRendererContext context )\n// throws DocumentRendererException, IOException;\n\n /**\n * Read a document model from a file.\n *\n * @param documentDescriptor a document descriptor file that contains the document model.\n * @return the document model, containing all the metadata, etc.\n * @throws org.apache.maven.doxia.docrenderer.DocumentRendererException if any\n * @throws java.io.IOException if any\n */\n DocumentModel readDocumentModel( File documentDescriptor )\n throws DocumentRendererException, IOException;\n\n /**\n * Get the output extension associated with this DocumentRenderer.\n *\n * @return the ouput extension.\n */\n String getOutputExtension();\n}",
"public static void main(String[] args) throws IOException, FileNotFoundException {\n\t\t\n\t\t\n\t\tString regex = \"[0-9]+\";\n\t\tString data = \"1313\";\n\t\tSystem.out.println(data.matches(regex));\n\t\tString regex1 = \"[0-9]+\";\n\t\tString data1 = \" 112121 sdf \";\n\t\tSystem.out.println(data1.matches(regex1));\n\t\tString []arr = data1.split(\"\\\\s\"); \n\t\tSystem.out.println(arr.length);\n\t\tSystem.out.println(data1.replaceAll(\"\\\\s+\", \" \").trim());\n\t\t\n\t\t\n\t\t/*\n\t\tFile f=new File(\"D:\\\\april.pdf\");\n\t FileInputStream fileIn;\n\t PdfReader reader;\n\t try {\n\t fileIn=new FileInputStream(f);\n\t reader=new PdfReader(fileIn);\n\t HashMap<String, String> merged=reader.getInfo();\n\t // ByteArrayInputStream bIn=new ByteArrayInputStream(merged);\n\t //BufferedReader bR=new BufferedReader(new InputStreamReader(bIn));\n\t //String line;\n\t //while ((line=bR.readLine()) != null) {\n\t //System.out.println(line);\n\t //}\n\t reader.close();\n\t fileIn.close();\n\t }\n\t catch ( IOException e) {\n\t System.err.println(\"Couldn't read file '\" );\n\t System.err.println(e);\n\t }*/\n\t\t\n\t\t\n\t\t\n\t\t\n\t/*\tfloat width = 612;\n\t\tfloat height = 792;\n\t\tfloat hX = 320, tX = 340, cX = 100;\n\t\tfloat hY = 0, tY = 580, cY = 200;\n\t\tfloat hW = width - hX, tW = width - tX, cW = 100;\n\t\tfloat hH = 80, tH = height - tY, cH = 60;\n\t\tRectangle header = new Rectangle( 150, 150);\n\t\t//\t\tRectangle totals = new Rectangle(cH, cH, cH, cH);\n\t\t//totals.setBounds(tX, tY, tW, tH);\n\t\t//Rectangle customer = new Rectangle();\n\t\t//customer.setBounds(cX, cY, cW, cH);\n\t\tPDFTextStripperByArea stripper = new PDFTextStripperByArea();\n\t\t//stripper.\n\t\t//stripper.addRegion(\"totals\", totals);\n\t\t//stripper.addRegion(\"customer\", customer);\n\t\tstripper.setSortByPosition(true);\n\t\tint j = 0;\n\t\tList pages = pd.getDocumentCatalog().getAllPages();\n\t\tfor (PDPage page : pages) {\n\t\t\tstripper.extractRegions(page);\n\t\t\tList regions = stripper.getRegions();\n\t\t\tfor (String region : regions) {\n\t\t\t\tString text = stripper.getTextForRegion(region);\n\t\t\t\tSystem.out.println(\"Region: \" + region + \" on Page \" + j);\n\t\t\t\tSystem.out.println(\"\\tText: \\n\" + text);\n\t\t\t}\n\t\t\tj++;\n\t\t}*/\n\t}",
"public interface EavropDocumentService {\n\t\n\n\t/**\n\t * Adds to the eavrop an externally received document, will potentially affect the start date of the eavrop assessment period \n\t *\n\t * @param aCommand\n\t */\n\tpublic boolean addReceivedExternalDocument(AddReceivedExternalDocumentsCommand aCommand);\n\n\t/**\n\t * Adds to the eavrop an internally received document \n\t *\n\t * @param aCommand\n\t */\n\tpublic void addReceivedInternalDocument(AddReceivedInternalDocumentCommand aCommand);\n\n\t/**\n\t * Adds to the eavrop a requested document\n\t * @param aCommand\n\t */\n\tpublic RequestedDocument addRequestedDocument(AddRequestedDocumentCommand aCommand);\n\n}",
"void process(Document document, Repository repository) throws Exception;",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(generaPDF.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(generaPDF.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void addPage(PDFPage aPage) { _pages.add(aPage); }",
"private static void pdfFilesOutput() {\n\n // make output directory if it doesn't already exist\n new File(\"output\").mkdirs();\n\n Output airportFlightCounter = new AirportFlightCounter(airports);\n Output flightInventory = new FlightInventory(flights);\n Output flightPassengerCounter = new FlightPassengerCounter(flights);\n Output mileageCounter = new MileageCounter(flights, airports);\n\n try {\n airportFlightCounter.toPDFFile();\n flightInventory.toPDFFile();\n flightPassengerCounter.toPDFFile();\n mileageCounter.toPDFFile();\n } catch (DocumentException | FileNotFoundException e) {\n logger.error(\"Could not write to one or more PDF files - please close any open instances of that file\");\n e.printStackTrace();\n }\n\n logger.info(\"Output to PDF files completed\");\n }",
"ByteArrayOutputStream createPDF(String templateName, Map<String, Object> params,\n String companyId, String notificationType);",
"private void viewDocument() throws Exception{ \r\n CoeusVector cvDataObject = new CoeusVector();\r\n HashMap hmDocumentDetails = new HashMap();\r\n hmDocumentDetails.put(\"awardNumber\", awardBaseBean.getMitAwardNumber());\r\n hmDocumentDetails.put(\"sequenceNumber\", EMPTY_STRING+awardBaseBean.getSequenceNumber());\r\n hmDocumentDetails.put(\"fileName\", awardAddDocumentForm.txtFileName.getText());\r\n hmDocumentDetails.put(\"document\", getBlobData()); \r\n cvDataObject.add(hmDocumentDetails);\r\n RequesterBean requesterBean = new RequesterBean();\r\n DocumentBean documentBean = new DocumentBean();\r\n Map map = new HashMap();\r\n map.put(\"DATA\", cvDataObject);\r\n map.put(DocumentConstants.READER_CLASS, \"edu.mit.coeus.award.AwardDocumentReader\");\r\n map.put(\"USER\", CoeusGuiConstants.getMDIForm().getUserId());\r\n map.put(\"MODULE_NAME\", \"VIEW_DOCUMENT\");\r\n documentBean.setParameterMap(map);\r\n requesterBean.setDataObject(documentBean);\r\n requesterBean.setFunctionType(DocumentConstants.GENERATE_STREAM_URL); \r\n AppletServletCommunicator appletServletCommunicator = new\r\n AppletServletCommunicator(STREAMING_SERVLET, requesterBean);\r\n appletServletCommunicator.send();\r\n ResponderBean responder = appletServletCommunicator.getResponse(); \r\n if(!responder.isSuccessfulResponse()){\r\n throw new CoeusException(responder.getMessage(),0);\r\n }\r\n map = (Map)responder.getDataObject();\r\n String url = (String)map.get(DocumentConstants.DOCUMENT_URL);\r\n if(url == null || url.trim().length() == 0 ) {\r\n CoeusOptionPane.showErrorDialog(\r\n coeusMessageResources.parseMessageKey(\"protocolUpload_exceptionCode.1009\"));\r\n return;\r\n }\r\n url = url.replace('\\\\', '/') ;\r\n try{\r\n URL urlObj = new URL(url);\r\n URLOpener.openUrl(urlObj);\r\n }catch (MalformedURLException malformedURLException) {\r\n malformedURLException.printStackTrace();\r\n }catch( Exception ue) {\r\n ue.printStackTrace() ;\r\n }\r\n }",
"public interface TLMFileCompareService {\n public CsvFileCompareRs tlmFileCompare(CsvFileCompareRq csvFileCompareRq) throws IOException;\n public CsvFileCompareRs tlmFileCompareByDB(CsvFileCompareRq csvFileCompareRq) throws IOException;\n}",
"@Override\n public void processPages(File imageFile, File outputFile) throws Exception {\n instance.setDatapath(datapath);\n instance.setLanguage(language);\n instance.setPageSegMode(Integer.parseInt(pageSegMode));\n instance.setOcrEngineMode(Integer.parseInt(ocrEngineMode));\n\n List<RenderedFormat> renderedFormats = new ArrayList<RenderedFormat>();\n\n for (String format : outputFormats.toUpperCase().split(\",\")) {\n renderedFormats.add(RenderedFormat.valueOf(format));\n }\n\n instance.createDocuments(imageFile.getPath(), outputFile.getPath(), renderedFormats);\n }",
"public interface IVerifySignatureService {\n\n\t/**\n\t * Document which contains signature internally\n\t * \n\t * @param document : document to be verified\n\t * @return : verification result status and the Token file encoded by base64\n\t */\n\tEntry<StatusType, String> verifyInternalSignature(final Document document);\n\n\t/**\n\t * Document to be verified with its external signature\n\t * \n\t * @param document : document to be verified\n\t * @param signature : its signature file\n\t * @return\n\t */\n\tEntry<StatusType, String> verifyExternalSignature(Document document, Document signature);\n}",
"public FileObject getWebservicesDD();",
"@Override\n\tpublic String exportMyPaper(HttpServletRequest request, HttpServletResponse response) {\n\t\tString line = request.getParameter(\"line\");\n\t\tString zhuzhuangtu = request.getParameter(\"pie\");\n\t\tString bingtu = request.getParameter(\"bar\");\n\t\tString listpb= request.getParameter(\"ids\");\n\t\tString pos= request.getParameter(\"pos\");\n\t\tString neg= request.getParameter(\"neg\");\n\t\tString[] netinfo = listpb.split(\",\");\n\t\tString[] poslist = pos.split(\",\");\n\t\tString[] neglist = neg.split(\",\");\n\t\tString name = request.getParameter(\"name\");\n\t\tString[] url1 = line.split(\",\");\n\t\tString u1 = url1[1];\n\t\tSystem.out.println(u1 + \"u1\");\n\t\tString[] url2 = zhuzhuangtu.split(\",\");\n\t\tString u2 = url2[1];\n\t\tString[] url3 = bingtu.split(\",\");\n\t\tString u3 = url3[1];\n\t\tbyte[] b1 = null;\n\t\ttry {\n\t\t\tb1 = new BASE64Decoder().decodeBuffer(u1);\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.info(e1.getMessage());\n\t\t\tLog.error(e1.getMessage(),e1);\n\t\t}\n\t\tbyte[] b2 = null;\n\t\ttry {\n\t\t\tb2 = new BASE64Decoder().decodeBuffer(u2);\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.info(e1.getMessage());\n\t\t\tLog.error(e1.getMessage(),e1);\n\t\t}\n\t\tbyte[] b3 = null;\n\t\ttry {\n\t\t\tb3 = new BASE64Decoder().decodeBuffer(u3);\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(e1.getMessage());\n\t\t\tLog.info(e1.getMessage());\n\t\t\tLog.error(e1.getMessage(),e1);\n\t\t}\n XWPFParagraph paragraph = null; \n XWPFTable table1 = null; \n User user = (User)request.getSession().getAttribute(\"user\");\n \n CustomXWPFDocument doc = new CustomXWPFDocument(); \n \n paragraph = doc.createParagraph();\n XWPFRun run = paragraph.createRun();\n if(name!=null&&!name.equals(\"\")){\n \t run.setText(name+\"的报纸\");\n }else{\n \t run.setText(\"我的报纸\");\n }\n run.setFontFamily(\"楷体\");\n \t\t run.setFontSize(20);\n \t\t run.setColor(\"FF0000\");\n paragraph.setAlignment(ParagraphAlignment.CENTER);\n //今日概况\n paragraph = doc.createParagraph();\n run = paragraph.createRun();\n run.setText(\"今日概况:\");\n run.setFontFamily(\"黑体\");\n \t\t run.setFontSize(14);\n XWPFTable tab = doc.createTable(3, 11);\n setTableWidth(tab, \"8200\");\n\t\t//\ttab.setCellMargins(50, 45, 50, 450);// top, left, bottom, right\n\t\t\ttab.getRow(0).getCell(0).setText(\"媒体类型\");\n\t\t\ttab.getRow(0).getCell(1).setText(\"新闻\");\n\t\t\ttab.getRow(0).getCell(2).setText(\"论坛\");\n\t\t\ttab.getRow(0).getCell(3).setText(\"贴吧\");\n\t\t\ttab.getRow(0).getCell(4).setText(\"微博\");\n\t\t\ttab.getRow(0).getCell(5).setText(\"微信\");\n\t\t\ttab.getRow(0).getCell(6).setText(\"视频\");\n\t\t\ttab.getRow(0).getCell(7).setText(\"博客\");\n\t\t\ttab.getRow(0).getCell(8).setText(\"平媒\");\n\t\t\ttab.getRow(0).getCell(9).setText(\"APP\");\n\t\t\ttab.getRow(0).getCell(10).setText(\"其他\");\n\t\t\ttab.getRow(1).getCell(0).setText(\"正面\");\n\t\t\tfor(int i=0;i<poslist.length;i++){\n\t\t\t\t \n\t\t\t\t\t tab.getRow(1).getCell(i+1).setText(poslist[i]);\n\t\t\t\t \n\t\t\t\t\n\t\t\t}\n\t\t\t/*tab.getRow(0).getCell(0).setText(poslist[0]);\n\t\t\ttab.getRow(0).getCell(1).setText(\"字段二:\");\n\t\t\ttab.getRow(0).getCell(2).setText(\"字段二:\");\n\t\t\ttab.getRow(0).getCell(3).setText(\"字段二:\");\n\t\t\ttab.getRow(0).getCell(4).setText(\"字段二:\");\n\t\t\ttab.getRow(0).getCell(5).setText(\"字段二:\");*/\n\t\t\ttab.getRow(2).getCell(0).setText(\"负面\");\n\t\t\tfor(int i=0;i<neglist.length;i++){\n\t\t\t\t\n\t\t\t\ttab.getRow(2).getCell(i+1).setText(neglist[i]);\n\t\t\t}\n\t\t\t\n\t\t\t/*tab.getRow(1).getCell(1).setText(\"字段四:\");\n\t\t\ttab.getRow(1).getCell(2).setText(\"字段四:\");\n\t\t\ttab.getRow(1).getCell(3).setText(\"字段四:\");\n\t\t\ttab.getRow(1).getCell(4).setText(\"字段四:\");\n\t\t\ttab.getRow(1).getCell(5).setText(\"字段四:\");\n */\n \n \n //全网动态列表\n paragraph = doc.createParagraph();\n run = paragraph.createRun();\n run.setText(\"全网动态:\");\n run.setFontFamily(\"黑体\");\n \t\t run.setFontSize(14);\n \t\t XWPFTable tableOne = doc.createTable(7,4);\n \t\t setTableWidth(tableOne, \"8200\");\n \t\t // tableOne.setCellMargins(50, 45, 50, 1000);\n \t\t XWPFTableRow tableOneRowOne = tableOne.getRow(0);\n \t\t \n \t\t tableOneRowOne.getCell(0).setText(\"文章标题\");\n \t\t \n \t\t tableOneRowOne.getCell(1).setText(\"文章来源\");\n \t\t tableOneRowOne.getCell(2).setText(\"发布时间\");\n \t\t tableOneRowOne.getCell(3).setText(\"是否关注\");\n \t\t \n for(int i=0;i<netinfo.length;i++){\n \t Personmanagemarticle pm = new Personmanagemarticle();\n \t pm = this.selectPersonMInfo(netinfo[i]);\n \t PersonmanagemarticleBo pb = new PersonmanagemarticleBo();\n \t if(pm!=null){\n \t\t BeanUtils.copyProperties(pm, pb);\n \t\t\t\t Date date = pm.getPubdate();\n \t\t\t\t SimpleDateFormat df=new SimpleDateFormat(\"yyyy-MM-dd\");\n \t\t\t\t String d = df.format(date);\n \t\t\t\t Date dat=new Date();\n \t\t\t\t String current = df.format(new Date());\n \t\t\t\t if(d.equals(current)){\n \t\t\t\t\t pb.setUpdatetime(DateFormatUtil.timeString(pm.getPubdate()));\n \t\t\t\t }else{\n \t\t\t\t\t pb.setUpdatetime(d);\n \t\t\t\t }\n \t\t\t\t String attention = \"\";\n \t if(pb!=null){\n \t \t if(pb.getAttention()){\n \t \t attention = \"取消关注\";\n \t }else{\n \t \t attention = \"关注\";\n \t }\n \t \t System.out.println(i);\n \t XWPFTableRow tableOneRow = tableOne.getRow(i+1);\n \t tableOne.getRow(i+1).getCell(0).setText(pb.getTitle());\n \t tableOne.getRow(i+1).getCell(1).setText(pb.getSource());\n \t tableOne.getRow(i+1).getCell(2).setText(pb.getUpdatetime());\n \ttableOne.getRow(i+1).getCell(3).setText(attention);\n \t }\n \t }\n \t\t\t \n }\n paragraph = doc.createParagraph();\n run = paragraph.createRun();\n run.setText(\"趋势分析:\");\n run.setFontFamily(\"黑体\");\n \t\t run.setFontSize(14);\n //\n paragraph = doc.createParagraph(); \n try {\n\t\t\tdoc.addPictureData(b3,XWPFDocument.PICTURE_TYPE_PNG);\n\t\t } catch (InvalidFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tLog.error(e.getMessage(),e);\n\t\t }\n doc.createPicture(paragraph,doc.getAllPictures().size()-1, 650,230,\"\");\n //table表格\n \n paragraph = doc.createParagraph();\n run = paragraph.createRun();\n run.setText(\"媒体top:\");\n run.setFontFamily(\"黑体\");\n \t\t run.setFontSize(14);\n \t\t \n \t paragraph = doc.createParagraph();\n paragraph = doc.createParagraph();\n try {\n\t\t\t doc.addPictureData(b2,XWPFDocument.PICTURE_TYPE_PNG);\n\t\t } catch (InvalidFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//System.out.println(e.getMessage());\n\t\t\tLog.info(e.getMessage());\n\t\t\tLog.error(e.getMessage(),e);\n\t\t }\n doc.createPicture(paragraph,doc.getAllPictures().size()-1, 650,300,\"\");\n paragraph = doc.createParagraph();\n run = paragraph.createRun();\n run.setText(\"媒体分布:\");\n run.setFontFamily(\"黑体\");\n \t\t run.setFontSize(14);\n paragraph = doc.createParagraph();\n try {\n\t\t\tdoc.addPictureData(b1,XWPFDocument.PICTURE_TYPE_PNG);\n\t\t } catch (InvalidFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\tLog.error(e.getMessage(),e);\n\t\t\tSystem.out.println(e.getMessage());\n\t\t }\n doc.createPicture(paragraph,doc.getAllPictures().size()-1, 650,300,\"\");\n String filename1 = new SimpleDateFormat(\"yyyyMMddhhmmss\").format(new Date()) + \".docx\";\n \t\t String url = request.getContextPath() + \"/upload/\";\n \t\t System.out.println(url);\n \t\t String path = request.getSession().getServletContext().getRealPath(\"/upload\");\n \t\t File targetFile = new File(path, filename1);\n \t\t if (!targetFile.getParentFile().exists()) {\n \t\t\ttargetFile.getParentFile().mkdirs();\n \t\t }\n \t\t if (!targetFile.exists()) {\n \t\t\ttry {\n\t\t\t\ttargetFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\tLog.error(e.getMessage(),e);\n\t\t\t}\n \t\t }\n \t\t String filename = path + \"/\" + filename1;\n \t\t OutputStream os = null;\n\t\ttry {\n\t\t\tos = new FileOutputStream(filename);\n\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\n\t\t\t//System.out.println(e.getMessage());\n\t\t\tLog.info(e.getMessage());\n\t\t\tLog.error(e.getMessage(),e);\n\t\t} \n\t\ttry {\n\t\t\tdoc.write(os);\n\t\t\tif(null!=os){\n\t\t\t\tos.flush();\n\t\t os.close();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//System.out.println(e.getMessage());\n\t\t\tLog.info(e.getMessage());\n\t\t\tLog.error(e.getMessage(),e);\n\t\t}\n \t\t System.out.println(filename);\n String addurl = \"upload/\" + filename1;\n\t\treturn addurl;\n\t}",
"public boolean printInvoicesAndEnvelopesZip(ActionMapping mapping, InvoiceReportDeliveryForm form, Collection<ContractsGrantsInvoiceDocument> list, ByteArrayOutputStream baos) throws Exception {\r\n if (CollectionUtils.isNotEmpty(list)) {\r\n ContractsGrantsInvoiceReportService reportService = SpringContext.getBean(ContractsGrantsInvoiceReportService.class);\r\n byte[] envelopes = reportService.generateListOfInvoicesEnvelopesPdfToPrint(list);\r\n byte[] report = reportService.generateListOfInvoicesPdfToPrint(list);\r\n\r\n ZipOutputStream zos = new ZipOutputStream(baos);\r\n int bytesRead;\r\n byte[] buffer = new byte[1024];\r\n CRC32 crc = new CRC32();\r\n\r\n if (ObjectUtils.isNotNull(report)) {\r\n BufferedInputStream bis = new BufferedInputStream(new ByteArrayInputStream(report));\r\n crc.reset();\r\n while ((bytesRead = bis.read(buffer)) != -1) {\r\n crc.update(buffer, 0, bytesRead);\r\n }\r\n bis.close();\r\n // Reset to beginning of input stream\r\n bis = new BufferedInputStream(new ByteArrayInputStream(report));\r\n ZipEntry entry = new ZipEntry(\"Invoices-\" + FILE_NAME_TIMESTAMP.format(new Date()) + \".pdf\");\r\n entry.setMethod(ZipEntry.STORED);\r\n entry.setCompressedSize(report.length);\r\n entry.setSize(report.length);\r\n entry.setCrc(crc.getValue());\r\n zos.putNextEntry(entry);\r\n while ((bytesRead = bis.read(buffer)) != -1) {\r\n zos.write(buffer, 0, bytesRead);\r\n }\r\n bis.close();\r\n }\r\n\r\n if (ObjectUtils.isNotNull(envelopes)) {\r\n BufferedInputStream bis = new BufferedInputStream(new ByteArrayInputStream(envelopes));\r\n crc.reset();\r\n while ((bytesRead = bis.read(buffer)) != -1) {\r\n crc.update(buffer, 0, bytesRead);\r\n }\r\n bis.close();\r\n // Reset to beginning of input stream\r\n bis = new BufferedInputStream(new ByteArrayInputStream(envelopes));\r\n ZipEntry entry = new ZipEntry(\"InvoiceEnvelopes-\" + FILE_NAME_TIMESTAMP.format(new Date()) + \".pdf\");\r\n entry.setMethod(ZipEntry.STORED);\r\n entry.setCompressedSize(envelopes.length);\r\n entry.setSize(envelopes.length);\r\n entry.setCrc(crc.getValue());\r\n zos.putNextEntry(entry);\r\n while ((bytesRead = bis.read(buffer)) != -1) {\r\n zos.write(buffer, 0, bytesRead);\r\n }\r\n bis.close();\r\n }\r\n zos.close();\r\n return true;\r\n }\r\n return false;\r\n }",
"@RequestMapping(value=\"/receiveFile\", method = RequestMethod.POST)\n public ResponseEntity<JsonResponse> receiveFile(@RequestBody JsonRequest request) {\n \n try{\n byte[] decodedContent = Base64.getDecoder().decode(request.getContent());\n\n PDFSecure pdfDoc = new PDFSecure(new ByteArrayInputStream(decodedContent), null);\n\n // Load the keystore that contains the digital id to use in signing\n FileInputStream pkcs12Stream = new FileInputStream (System.getenv(\"KEYSTORE_PATH\"));\n KeyStore store = KeyStore.getInstance(\"PKCS12\");\n \n store.load(pkcs12Stream, \"mypassword\".toCharArray());\n pkcs12Stream.close();\n\n // Create signing information\n SigningInformation signInfo = new SigningInformation (store, \"myalias\", \"mypassword\");\n\n // Customize the signature appearance\n SignatureAppearance signAppear = signInfo.getSignatureAppearance();\n\n // Create signature field on the first page\n Rectangle2D signBounds = new Rectangle2D.Double (36, 36, 144, 48);\n SignatureField signField = pdfDoc.addSignatureField(0, \"signature\", signBounds);\n\n // Apply digital signature\n pdfDoc.signDocument(signField, signInfo);\n \n ByteArrayOutputStream signedContent = new ByteArrayOutputStream();\n\n pdfDoc.saveDocument (signedContent);\n\n String encodedSignedContent = Base64.getEncoder().encodeToString(signedContent.toByteArray());\n\n log.info(request.getFileName());\n\n return new ResponseEntity<>(new JsonResponse(request.getFileName(), encodedSignedContent, \"sucess\"), HttpStatus.CREATED);\n } catch (Exception e) {\n \n e.printStackTrace();\n return new ResponseEntity<>(new JsonResponse(request.getFileName(), \"null\", \"exception\"), HttpStatus.INTERNAL_SERVER_ERROR);\n }\n\n }",
"private void selectPdf() {\n\n Intent intent = new Intent();\n intent.setType(\"application/pdf\");\n intent.setAction(Intent.ACTION_GET_CONTENT);//to fetch files\n startActivityForResult(intent,86);\n\n\n\n }",
"private static byte[] toBinary(String fo, String outputFormat) throws IOException, FOPException \r\n { \r\n \t ByteArrayOutputStream pdfOUT = null;\r\n \t //BufferedOutputStream out = null;\r\n \t InputStream templateIS = null;\r\n \t \r\n try \r\n {\r\n // configure foUserAgent as desired\r\n \r\n // Setup output stream. Note: Using BufferedOutputStream\r\n // for performance reasons (helpful with FileOutputStreams).\r\n \r\n pdfOUT = new ByteArrayOutputStream(byteBufferSize);\r\n templateIS = writeOutputStream(fo, outputFormat, pdfOUT);\r\n \r\n return pdfOUT.toByteArray();\r\n\r\n } \r\n catch (Exception e) \r\n {\r\n Debugger.printError(e);\r\n throw new SystemException(Debugger.stackTrace(e));\r\n } \r\n finally \r\n {\r\n \t if( pdfOUT != null)\r\n \t\t try{ pdfOUT.close();} catch(Exception e){}\r\n \t\t \r\n \t //if(out != null)\r\n \t//\t try{out.close(); } catch(Exception e){} \r\n \t\t \r\n \t if(templateIS != null)\r\n \t\t try{ templateIS.close(); } catch(Exception e){}\r\n \t\t \r\n }\r\n }",
"@Override\n\tpublic void createPDF(){\n File xsltFile = new File(RESOURCES_DIR + \"/pdfBook.xsl\");\n \n // the XML file which provides the input\n StreamSource xmlSource = new StreamSource(file);\n \n // create an instance of fop factory\n FopFactory fopFactory = FopFactory.newInstance();\n \n // a user agent is needed for transformation\n FOUserAgent foUserAgent = fopFactory.newFOUserAgent();\n \n // Setup output\n OutputStream out = null;\n try {\n\t\t\tout = new java.io.FileOutputStream(OUTPUT_DIR + \"/output.pdf\");\n\t\t} catch (FileNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\n try {\n // Construct fop with desired output format\n Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);\n\n // Setup XSLT\n TransformerFactory factory = TransformerFactory.newInstance();\n Transformer transformer = factory.newTransformer(new StreamSource(xsltFile));\n\n // Resulting SAX events (the generated FO) must be piped through to\n // FOP\n Result res = new SAXResult(fop.getDefaultHandler());\n\n // Start XSLT transformation and FOP processing\n // That's where the XML is first transformed to XSL-FO and then\n // PDF is created\n try {\n\t\t\t\ttransformer.transform(xmlSource, res);\n\t\t\t} catch (TransformerException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n } catch (FOPException | TransformerConfigurationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} finally {\n try {\n\t\t\t\tout.close();\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 }\n }",
"@Override\n\tpublic void buildPdfDocument(Map<String, Object> model, Document doc, PdfWriter writer,\n\t\t\tHttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tExportExam exportExam = (ExportExam) model.get(\"exportExam\");\n\t\tExportExam exportExam2 = (ExportExam) model.get(\"exportExam2\");\n\t\tListExam listExam = null;\n\t\tListExam listExam2 = null;\n\t\tif(exportExam!=null){\n\t\tlistExam = exportExam.listExam;\n\t\t}\n\t if(exportExam2!=null){\n\t\tlistExam2 = exportExam2.listExam;\n\t\t}\n\t\n\t\tString url = request.getRequestURL().toString();\n\t\tString baseURL = url.substring(0, url.length() - request.getRequestURI().length()) + request.getContextPath();\n\t\tString path = baseURL + \"/resources/fonts/vuArial.ttf\";\n\t\tFontFactory.register(path);\n\t\t\n\t\t//\"C:\\\\Users\\\\HennessyVox\\\\Downloads\\\\Compressed\\\\vuArial.ttf\"\n\t\t//Font fontHeader = FontFactory.getFont(FONT, BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);\n\t\tBaseFont base = BaseFont.createFont(path, BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);\n\t\t Font fontHeader = new Font(base, 10, Font.NORMAL);\n\t\t Font fontHeader2 = new Font(base, 10, Font.UNDERLINE);\n\t\t Font fontContent = new Font(base, 11, Font.NORMAL);\n\t\t Font fontAnswent = new Font(base, 11, Font.NORMAL, BaseColor.RED);\n\t\t Font fontTitle = new Font(base, 12, Font.BOLD);\n\t\t Font fontNumber = new Font(base, 11, Font.BOLD);\n\t\t//Font fontHeader = new Font(FontFamily.TIMES_ROMAN, 12, Font.NORMAL);\n\t String SchoolHeader = \"TRƯỜNG ĐẠI HỌC BÁCH KHOA TP HCM\";\n\t\t\n\t // Get faulty info.\n\t\n\t \n\t\ttry {\n\t\t\t\n\t\t\t if(listExam!=null){\n\t\t\t\t System.out.println(\"=============================================================\");\n\t\t\t\t int CoutExam = 1;\n\t\t\t String FacultyHeader = exportExam.getFaulty().toUpperCase();\n\t\t\t \t\n\t\t\t /// String FacultyHeader = \"KHOA KHOA HỌC VÀ KỸ THUẬT MÁY TÍNH\";\n\t\t\t String InfoStudentHeader1 = \"Họ Tên : ..........................\";\n\t\t\t String InfoStudentHeader2 = \"MSSV : ..........................\";\n\t\t\t PdfPTable table = new PdfPTable(new float[] { 75, 25 });\n\t\t\t table.setWidthPercentage(100);\n\t\t\t \n\t\t\t table.addCell(getCell(new Paragraph(SchoolHeader,fontHeader), PdfPCell.ALIGN_LEFT));\n\t\t\t \n\t\t\t table.addCell(getCell(new Paragraph(InfoStudentHeader1,fontHeader), PdfPCell.ALIGN_RIGHT));\n\t\t\t table.addCell(getCell(new Paragraph(FacultyHeader,fontHeader2), PdfPCell.ALIGN_LEFT));\n\t\t\t table.addCell(getCell(new Paragraph(InfoStudentHeader2,fontHeader), PdfPCell.ALIGN_RIGHT));\n\t\t\t table.setSpacingAfter(10);\n\t\t\t doc.add(table);\n\t\t\t \n\t\t\t // ADD title\n\t\t\t //Font fontTitle = FontFactory.getFont(FONT, BaseFont.IDENTITY_H, BaseFont.EMBEDDED);\n\t\t\t //String titleExam = \"ĐỀ KIỂM TRA CUỐI KÌ 2017\";\n\t\t\t // System.out.println(exportExam.getExamName().toUpperCase());\n\t\t\t String titleExam = exportExam.getExamName().toUpperCase();\n\t\t\t \n\t\t\t Paragraph pHeader = new Paragraph(titleExam,fontTitle);\n\t\t\t pHeader.setAlignment(Paragraph.ALIGN_CENTER);\n\t\t\t doc.add(pHeader);\n\t\t\t \n\t\t\t String SubjectExam = \"Môn Thi : \" +exportExam.getSubjectName();\n\t\t\t String CodeExam = \"Mã đề : \" + exportExam.getCode();\n\t\t\t String timeExam = \"Thời gian : \" + exportExam.getTime();\n\t\t\t Font fontSubject = new Font(base, 10, Font.NORMAL);\n\t\t\t Font fontExam = new Font(base, 10, Font.NORMAL);\n\t\t\t \n\t\t\t PdfPTable table2 = new PdfPTable(2);\n\t\t\t table2.setWidthPercentage(80);\n\t\t\t //System.out.println(Charset.forName(\"UTF-8\").encode(SchoolHeader));\n\n\t\t\t table2.addCell(getCell(new Paragraph(SubjectExam,fontSubject), PdfPCell.ALIGN_LEFT));\n\t\t\t \n\t\t\t table2.addCell(getCell(new Paragraph(timeExam,fontExam), PdfPCell.ALIGN_RIGHT));\n\t\t\t table2.addCell(getCell(new Paragraph(CodeExam,fontExam), PdfPCell.ALIGN_LEFT));\n\t\t\t table2.addCell(getCell(new Paragraph(\"\",fontHeader), PdfPCell.ALIGN_RIGHT));\n\t\t\t table2.setSpacingBefore(5);\n\t\t\t doc.add(table2);\n\t\t\t \n\t\t\t String noteExam = exportExam.getNoteExam();\n\t\t\t Font fontNote = new Font(base, 8, Font.ITALIC);\n\t\t\t \n\t\t\t Paragraph pNote = new Paragraph(noteExam, fontNote);\n\t\t\t pNote.setAlignment(Paragraph.ALIGN_MIDDLE);\n\t\t\t doc.add(pNote);\n\t\t\t PdfPTable table3 = new PdfPTable(1);\n\t\t\t table3.setSpacingBefore(5);\n\t\t\t table3.setWidthPercentage(80);\n\t\t\t Font finalExam = new Font(base, 10, Font.NORMAL);\n\t\t\t table3.addCell(getCell(new Paragraph(\"*****\",finalExam), PdfPCell.ALIGN_CENTER));\n\t\t\t doc.add(table3);\n\t\t\t\t \n\t\t\t for(int i = 0; i < listExam.blockRootQuestion.size() ; i++){\n\t\t\t\t System.out.println(\"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\n\t\t\t\t \n\t\t\t\t List listBlock = new List(List.UNORDERED);\n\t\t\t\t listBlock.setAutoindent(false);\n\t\t\t\t // listBlock.setSymbolIndent(20);\t\n\t\t\t\t listBlock.add(new ListItem(new Paragraph(listExam.blockRootQuestion.get(i).rootQuestionBlock.getContent(),fontContent)));\n\t\t\t System.out.println(\"########### Block NAME \" +listExam.blockRootQuestion.get(i).rootQuestionBlock.getContent());\n\t\t\t\t \n\t\t\t\t doc.add(listBlock);\n\t\t\t \n\t\t\t \n\t\t \tSystem.out.println(\"########### SIZE QUESTION \" +listExam.blockRootQuestion.get(i).questionList.size());\n \n\t\t\t for(int j = 0 ; j < listExam.blockRootQuestion.get(i).questionList.size(); j++){\t\n\t\t\t \tSystem.out.println(\"########### QUESTION NAME \" +listExam.blockRootQuestion.get(i).questionList.get(j).question.getContent());\n\t\t\t\t\t\t\n\t\t\t \t List listQuestion = new List(List.UNORDERED);\n\t\t\t\t\t listQuestion.setListSymbol(\"\");\n\t\t\t \t\n\t\t\t \t//SingleQuestion questionPDF = null;\n\t\t\t \t//questionPDF = listExam.blockRootQuestion.get(i).questionList.get(j);\n\t\t\t \tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\tsb.append(\"Câu \");\n\t\t\t\t\t\tsb.append(CoutExam);\n\t\t\t\t\t\tsb.append(\". \");\n\t\t\t\t\t\tString strI = sb.toString();\n\t\t\t \t//strI = new Paragraph(strI, fontNumber);\n\t\t\t \t//listQuestion.setPostSymbol(strI);\n\t\t\t \tSystem.out.println(strI);\n\t\t\t listQuestion.add(new ListItem(new Paragraph(strI + listExam.blockRootQuestion.get(i).questionList.get(j).question.getContent(), fontContent)));\n\t\t\t listQuestion.setIndentationLeft(10);\n\t\t\t doc.add(listQuestion);\n\t\t\t List listAnswerPDF = new List(List.ORDERED, List.ALPHABETICAL);\n\t\t\t for(int k = 0; k < listExam.blockRootQuestion.get(i).questionList.get(j).answerList.size(); k++){\n\t\t\t\t\t System.out.println(\"########### Answer NAME \" +listExam.blockRootQuestion.get(i).questionList.get(j).answerList.get(k).getContent());\n\t\t\t \t listAnswerPDF.add(new ListItem(new Paragraph(listExam.blockRootQuestion.get(i).questionList.get(j).answerList.get(k).getContent(), fontContent))); \t \n\t\t\t }\n\t\t\t listAnswerPDF.setIndentationLeft(25);\n\t\t\t doc.add(listAnswerPDF);\n\t\t\t CoutExam++;\n\t\t\t }\n\t\t\t doc.add( Chunk.NEWLINE ); \n\t\t\t }\n\t\t\t // doc.close();\n\t\t\t listExam =null;\n\t\t\t }\n\t\t\t /*\n\t\t\t * Export Answer\n\t\t\t */\n\t\t\telse if(listExam2!=null){\n\t\t\t\t int CoutExam = 1;\n\t\t\t\t System.out.println(\"#######################################################\");\n\t\t\t\t String FacultyHeader = exportExam2.getFaulty().toUpperCase();\n\t\t\t \t\n\t\t\t\t /// String FacultyHeader = \"KHOA KHOA HỌC VÀ KỸ THUẬT MÁY TÍNH\";\n\t\t\t\t String InfoStudentHeader1 = \"Họ Tên : ..........................\";\n\t\t\t\t String InfoStudentHeader2 = \"MSSV : ..........................\";\n\t\t\t\t PdfPTable table = new PdfPTable(new float[] { 75, 25 });\n\t\t\t\t table.setWidthPercentage(100);\n\t\t\t\t \n\t\t\t\t table.addCell(getCell(new Paragraph(SchoolHeader,fontHeader), PdfPCell.ALIGN_LEFT));\n\t\t\t\t \n\t\t\t\t table.addCell(getCell(new Paragraph(InfoStudentHeader1,fontHeader), PdfPCell.ALIGN_RIGHT));\n\t\t\t\t table.addCell(getCell(new Paragraph(FacultyHeader,fontHeader2), PdfPCell.ALIGN_LEFT));\n\t\t\t\t table.addCell(getCell(new Paragraph(InfoStudentHeader2,fontHeader), PdfPCell.ALIGN_RIGHT));\n\t\t\t\t table.setSpacingAfter(10);\n\t\t\t\t doc.add(table);\n\t\t\t\t \n\t\t\t\t // ADD title\n\t\t\t\t //Font fontTitle = FontFactory.getFont(FONT, BaseFont.IDENTITY_H, BaseFont.EMBEDDED);\n\t\t\t\t //String titleExam = \"ĐỀ KIỂM TRA CUỐI KÌ 2017\";\n\t\t\t\t // System.out.println(exportExam.getExamName().toUpperCase());\n\t\t\t\t String titleExam = exportExam2.getExamName().toUpperCase();\n\t\t\t\t \n\t\t\t\t Paragraph pHeader = new Paragraph(titleExam,fontTitle);\n\t\t\t\t pHeader.setAlignment(Paragraph.ALIGN_CENTER);\n\t\t\t\t doc.add(pHeader);\n\t\t\t\t \n\t\t\t\t String SubjectExam = \"Môn Thi : \" +exportExam2.getSubjectName();\n\t\t\t\t String CodeExam = \"Mã đề : \" + exportExam2.getCode();\n\t\t\t\t String timeExam = \"Thời gian : \" + exportExam2.getTime();\n\t\t\t\t Font fontSubject = new Font(base, 10, Font.NORMAL);\n\t\t\t\t Font fontExam = new Font(base, 10, Font.NORMAL);\n\t\t\t\t \n\t\t\t\t PdfPTable table2 = new PdfPTable(2);\n\t\t\t\t table2.setWidthPercentage(80);\n\t\t\t\t //System.out.println(Charset.forName(\"UTF-8\").encode(SchoolHeader));\n\n\t\t\t\t table2.addCell(getCell(new Paragraph(SubjectExam,fontSubject), PdfPCell.ALIGN_LEFT));\n\t\t\t\t \n\t\t\t\t table2.addCell(getCell(new Paragraph(timeExam,fontExam), PdfPCell.ALIGN_RIGHT));\n\t\t\t\t table2.addCell(getCell(new Paragraph(CodeExam,fontExam), PdfPCell.ALIGN_LEFT));\n\t\t\t\t table2.addCell(getCell(new Paragraph(\"\",fontHeader), PdfPCell.ALIGN_RIGHT));\n\t\t\t\t table2.setSpacingBefore(5);\n\t\t\t\t doc.add(table2);\n\t\t\t\t \n\t\t\t\t String noteExam = exportExam2.getNoteExam();\n\t\t\t\t Font fontNote = new Font(base, 8, Font.ITALIC);\n\t\t\t\t \n\t\t\t\t Paragraph pNote = new Paragraph(noteExam, fontNote);\n\t\t\t\t pNote.setAlignment(Paragraph.ALIGN_MIDDLE);\n\t\t\t\t doc.add(pNote);\n\t\t\t\t PdfPTable table3 = new PdfPTable(1);\n\t\t\t\t table3.setSpacingBefore(5);\n\t\t\t\t table3.setWidthPercentage(80);\n\t\t\t\t Font finalExam = new Font(base, 10, Font.NORMAL);\n\t\t\t\t table3.addCell(getCell(new Paragraph(\"*****\",finalExam), PdfPCell.ALIGN_CENTER));\n\t\t\t\t doc.add(table3);\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t for(int i = 0; i < listExam2.blockRootQuestion.size() ; i++){\n\t\t\t\t\t System.out.println(\"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\n\t\t\t\t\t \n\t\t\t\t\t List listBlock = new List(List.UNORDERED);\n\t\t\t\t\t listBlock.setAutoindent(false);\n\t\t\t\t\t // listBlock.setSymbolIndent(20);\t\n\t\t\t\t\t listBlock.add(new ListItem(new Paragraph(listExam2.blockRootQuestion.get(i).rootQuestionBlock.getContent(),fontContent)));\n\t\t\t\t System.out.println(\"########### Block NAME \" +listExam2.blockRootQuestion.get(i).rootQuestionBlock.getContent());\n\t\t\t\t\t \n\t\t\t\t\t doc.add(listBlock);\n\t\t\t\t \n\t\t\t\t \n\t\t\t \tSystem.out.println(\"########### SIZE QUESTION \" +listExam2.blockRootQuestion.get(i).questionList.size());\n\t \n\t\t\t\t for(int j = 0 ; j < listExam2.blockRootQuestion.get(i).questionList.size(); j++){\t\n\t\t\t\t \tSystem.out.println(\"########### QUESTION NAME \" +listExam2.blockRootQuestion.get(i).questionList.get(j).question.getContent());\n\t\t\t\t\t\t\t\n\t\t\t\t \t List listQuestion = new List(List.UNORDERED);\n\t\t\t\t\t\t listQuestion.setListSymbol(\"\");\n\t\t\t\t \t\n\t\t\t\t \t//SingleQuestion questionPDF = null;\n\t\t\t\t \t//questionPDF = listExam.blockRootQuestion.get(i).questionList.get(j);\n\t\t\t\t \tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\tsb.append(\"Câu \");\n\t\t\t\t\t\t\tsb.append(CoutExam);\n\t\t\t\t\t\t\tsb.append(\". \");\n\t\t\t\t\t\t\tString strI = sb.toString();\n\t\t\t\t \t//strI = new Paragraph(strI, fontNumber);\n\t\t\t\t \t//listQuestion.setPostSymbol(strI);\n\t\t\t\t \tSystem.out.println(strI);\n\t\t\t\t listQuestion.add(new ListItem(new Paragraph(strI + listExam2.blockRootQuestion.get(i).questionList.get(j).question.getContent(), fontContent)));\n\t\t\t\t listQuestion.setIndentationLeft(10);\n\t\t\t\t doc.add(listQuestion);\n\t\t\t\t List listAnswerPDF = new List(List.ORDERED, List.ALPHABETICAL);\n\t\t\t\t for(int k = 0; k < listExam2.blockRootQuestion.get(i).questionList.get(j).answerList.size(); k++){\n\t\t\t\t\t\t System.out.println(\"########### Answer NAME \" +listExam2.blockRootQuestion.get(i).questionList.get(j).answerList.get(k).getContent());\n\t\t\t\t\t\t if(listExam2.blockRootQuestion.get(i).questionList.get(j).answerList.get(k).getIssolution())\n\t\t\t\t \t listAnswerPDF.add(new ListItem(new Paragraph(listExam2.blockRootQuestion.get(i).questionList.get(j).answerList.get(k).getContent(), fontAnswent)));\n\t\t\t\t \t else \n\t\t\t\t\t \tlistAnswerPDF.add(new ListItem(new Paragraph(listExam2.blockRootQuestion.get(i).questionList.get(j).answerList.get(k).getContent(), fontContent)));\n\t\t\t\t }\n\t\t\t\t listAnswerPDF.setIndentationLeft(25);\n\t\t\t\t doc.add(listAnswerPDF);\n\t\t\t\t CoutExam++;\n\t\t\t\t }\n\t\t\t\t doc.add( Chunk.NEWLINE );\n\t\t\t\t }\n\t\t\t\t doc.close();\n\t\t\t\t listExam2=null;\n\t\t\t }\n\t\t\t model.clear();\n\t\t\t doc.close();\n\t\t\t exportExam = null;\n\t\t\t// exportExam2 = null;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR \"+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void writePDF(RMPDFWriter aWriter)\n{\n List refs = new ArrayList(getPageCount());\n PDFXTable xref = aWriter.getXRefTable();\n for(int i=0, iMax=getPageCount(); i<iMax; i++)\n refs.add(xref.getRefString(getPage(i)));\n \n // \n _dict.put(\"Kids\", refs);\n _dict.put(\"Count\", getPageCount());\n \n // \n aWriter.writeXRefEntry(_dict);\n}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"application/pdf\");\n String fileName = request.getParameter(\"license_name\");\n String ext = fileName.substring(fileName.lastIndexOf(\".\") + 1);\n String path = System.getProperty(\"user.dir\") + \"/documents/licenses/\" + fileName;\n path = path.replaceAll(\"%20\", \" \");\n if (ext.equalsIgnoreCase(\"pdf\")) {\n FileInputStream baos = new FileInputStream(path);\n\n OutputStream os = response.getOutputStream();\n\n byte buffer[] = new byte[8192];\n int bytesRead;\n\n while ((bytesRead = baos.read(buffer)) != -1) {\n os.write(buffer, 0, bytesRead);\n }\n\n os.flush();\n os.close();\n } else {\n try {\n // Document Settings //\n Document document = new Document();\n PdfWriter.getInstance(document, response.getOutputStream());\n document.open();\n\n // Loading MC //\n PdfPTable table = new PdfPTable(1);\n table.setWidthPercentage(100);\n // the cell object\n PdfPCell cell;\n\n Image img = Image.getInstance(path);\n int indentation = 0;\n float scaler = ((document.getPageSize().getWidth() - document.leftMargin() - document.rightMargin() - indentation) / img.getWidth()) * 100;\n img.scalePercent(scaler);\n //img.scaleAbsolute(80f, 80f);\n cell = new PdfPCell(img);\n cell.setBorder(Rectangle.NO_BORDER);\n table.addCell(cell);\n document.add(table);\n //-----------------------------------//\n document.close();\n } catch (DocumentException de) {\n throw new IOException(de.getMessage());\n }\n }\n\n }",
"public void PDFClient() throws FileNotFoundException, DocumentException {\n\t\t\n\t\tCustomerBLL customerBLL = new CustomerBLL();\n\t\t\n\t\tDocument document = new Document();\n\t\t\n\t\tString fileName = \"Client-report\" + countClientReports + \".pdf\";\n\t\tcountClientReports++;\n\t\tPdfWriter.getInstance(document, new FileOutputStream(fileName));\n\n\t\tdocument.open();\n\n\t\tParagraph intro = new Paragraph(\"Client Report\");\n\t\tParagraph space = new Paragraph(\" \");\n\t\tPdfPTable table = new PdfPTable(3);\n\n\t\tPdfPCell c1 = new PdfPCell(new Paragraph(\"Id\"));\n\t\tPdfPCell c2 = new PdfPCell(new Paragraph(\"Name\"));\n\t\tPdfPCell c3 = new PdfPCell(new Paragraph(\"Address\"));\n\n\t\ttable.addCell(c1);\n\t\ttable.addCell(c2);\n\t\ttable.addCell(c3);\n\n\t\tfor(Customer c: customerBLL.findAll()) {\n\t\t\tc1 = new PdfPCell(new Paragraph(String.valueOf(c.getId())));\n\t\t\tc2 = new PdfPCell(new Paragraph(c.getName()));\n\t\t\tc3 = new PdfPCell(new Paragraph(c.getAddress()));\n\t\t\t\n\t\t\ttable.addCell(c1);\n\t\t\ttable.addCell(c2);\n\t\t\ttable.addCell(c3);\n\t\t}\n\n\t\tdocument.add(intro);\n\t\tdocument.add(space);\n\t\tdocument.add(space);\n\t\tdocument.add(space);\n\t\tdocument.add(table);\n\n\t\tdocument.close();\n\t}",
"public interface DocumentService {\n Document create(Long userId, Document document);\n\n Document update(Long userId, Document document);\n\n Page<Document> findAll(Long userId, Integer documentType, RestPageRequest pageRequest);\n\n Page<Document> findAll(Long userId, Long parentId, Integer documentType, RestPageRequest pageRequest);\n\n Page<Document> findAll(Long userId, Long businessPartnerId, Integer businessPartnerType, Integer documentType, RestPageRequest pageRequest);\n\n List<Document> getAll(Long userId, Integer documentType);\n\n Document findOne(Long userId, Integer documentType, Long recordId);\n\n Document findOne(Long userId, Long recordId);\n\n Document findByDocNumber(Long userId, Integer documentType, String docNumber);\n\n Document findByOrderRefNumber(Long userId, Integer documentType, String orderRefNumber);\n\n Document findByDocNumber(Long userId, Integer documentType, Integer childDocumentType, String docNumber);\n\n void updateAmounts(Double totalTax, Double amountWithoutTax, Double totalAll, Integer quantity, Long userId, Long documentId);\n\n Double getBusinessPartnerBalance(Long userId, Long businessPartnerId);\n\n Double getDocumentAmount(Long userId, Long documentId);\n\n Double getAmountByDocumentByBusinessPartner(Long userId, Long businessPartnerId, Integer documentType, Integer childDocumentType);\n\n Double getInvoicePaymentsTotal(Long userId, Long businessPartnerId, Integer documentType, Integer childDocumentType, Long parentId);\n\n void updateDocumentBalance(Long userId, Long documentId);\n\n Double getSumByTenant(Long userId, Integer documentType, Integer status);\n\n Double getSumByTenantByDate(Long userId, Integer documentType, Integer status, DateTime startDate, DateTime endDate);\n\n Integer getQuantityByTenantByDate(Long userId, Integer documentType, Integer status, DateTime startDate, DateTime endDate);\n\n Double getSumByTenantByDateByBusinessUnit(Long userId, Integer documentType, Integer status, DateTime startDate, DateTime endDate,Long businessUnitId);\n\n Integer getQuantityByTenantByDateByBusinessUnit(Long userId, Integer documentType, Integer status, DateTime startDate, DateTime endDate,Long businessUnitId);\n\n Long countByTenant(Long userId, Integer documentType, Integer status);\n}",
"public void generarDoc(){\n generarDocP();\n }",
"public static void main(String args[]) throws IOException {\n File file = new File(\"Savoy House_2019_Price List_precios.pdf\");\n PDDocument document = PDDocument.load(file);\n\n //Instantiate PDFTextStripper class\n PDFTextStripper striper = new PDFTextStripper();\n\n //Retrieving text from PDF document\n striper.setStartPage(1);\n\n String documentText = striper.getText(document);\n //System.out.println(documentText);\n\n String[] tablica = documentText.split(\"\\n\");\n String header = \"Referencia,colección,Catalogo,Distributor Price EXW-Valencia,Distributor Price EXW-Valencia,\" +\n \"uds por caja,Peso bruto,imap price\\n\" +\n \"sku #,Family,Catalogue,CE 2019 [€] (Ready pickup 50~65 days),CE 2019 [€] (Ready pickup 20~30 days),\" +\n \"Pkg size,Packed weight [kg],online (Valid until June 30th 2019)\\n\";\n\n StringBuilder sb = new StringBuilder(header);\n\n for (int i = 0; i < tablica.length; i++) {\n if (tablica[i].trim().endsWith(\"€\")) {\n int lineLength = tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \").length;\n\n // check if 'Pkg size' is 1 (is not empty)\n if (tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \")[lineLength - 3].equals(\"1\")) {\n\n // join collection name into one record in the row\n if (lineLength == 8) {\n sb.append(tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").replaceAll(\" \", \",\") + \"\\n\");\n } else if (lineLength > 8) {\n sb.append(tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \")[0] + \",\");\n for (int j = 1; j < lineLength - 6; j++) {\n if (j < lineLength - 7) {\n sb.append(tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \")[j] + \" \");\n } else {\n sb.append(tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \")[j]);\n }\n }\n sb.append(\",\");\n\n // append other records into the row\n for (int j = lineLength - 6; j < lineLength; j++) {\n if (j < lineLength - 1) {\n sb.append(tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \")[j] + \",\");\n } else {\n sb.append(tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \")[j]);\n }\n }\n sb.append(\"\\n\");\n }\n } else {\n sb.append(\"Data missing\\n\");\n }\n }\n }\n System.out.println(sb);\n\n // write sb string as csv file\n try {\n FileWriter writer = new FileWriter(\"savoy2019.csv\", true);\n writer.write(sb.toString());\n writer.close();\n System.out.println(\"'savoy2019.csv' file created successfully\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //Closing the document\n document.close();\n }",
"public void run(Hashtable<String, Object> hashTable) throws java.lang.Exception {\r\n\tVCDocument documentToExport = (VCDocument)hashTable.get(\"documentToExport\");\r\n\tFile exportFile = fetch(hashTable,EXPORT_FILE,File.class, true);\r\n\tExtensionFilter fileFilter = fetch(hashTable,FILE_FILTER,ExtensionFilter.class, true);\r\n\t\r\n\tDocumentManager documentManager = fetch(hashTable,DocumentManager.IDENT,DocumentManager.class,true);\r\n\tString resultString = null;\r\n\tFileCloseHelper closeThis = null;\r\n\ttry{\r\n\t\tif (documentToExport instanceof BioModel) {\r\n\t\t\tif(!(fileFilter instanceof SelectorExtensionFilter)){\r\n\t\t\t\tthrow new Exception(\"Expecting fileFilter type \"+SelectorExtensionFilter.class.getName()+\" but got \"+fileFilter.getClass().getName());\r\n\t\t\t}\r\n\t\t\tBioModel bioModel = (BioModel)documentToExport;\r\n\t\t\tSimulationContext chosenSimContext = fetch(hashTable,SIM_CONTEXT,SimulationContext.class, false);\r\n\t\t\t((SelectorExtensionFilter)fileFilter).writeBioModel(documentManager, bioModel, exportFile, chosenSimContext); \r\n\t/*\t\tDELETE this after finishing validation testing\r\n\t\t\t\r\n\t\t\t// check format requested\r\n\t\t\tif (fileFilter.getDescription().equals(FileFilters.FILE_FILTER_MATLABV6.getDescription())){\r\n\t\t\t\t// matlab from application; get application\r\n\t\t\r\n\t\t\t\tSimulationContext chosenSimContext = fetch(hashTable,SIM_CONTEXT,SimulationContext.class, true);\r\n\t\t\t\t// regenerate a fresh MathDescription\r\n\t\t\t\tMathMapping mathMapping = chosenSimContext.createNewMathMapping();\r\n\t\t\t\tMathDescription mathDesc = mathMapping.getMathDescription();\r\n\t\t\t\tif(mathDesc != null && !mathDesc.isSpatial() && !mathDesc.isNonSpatialStoch()){\r\n\t\t\t\t\t// do export\r\n\t\t\t\t\tresultString = exportMatlab(exportFile, fileFilter, mathDesc);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthrow new Exception(\"Matlab export failed: NOT an non-spatial deterministic application!\");\r\n\t\t\t\t}\r\n\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_PDF)) { \r\n\t\t\t\tFileOutputStream fos = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos = new FileOutputStream(exportFile);\r\n\t\t\t\t\tdocumentManager.generatePDF(bioModel, fos);\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tif(fos != null) {\r\n\t\t\t\t\t\tfos.close();\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn; \t\t\t\t\t\t\t\t\t//will take care of writing to the file as well.\r\n\t\t\t}\r\n\t\t\t//Export a simulation to Smoldyn input file, if there are parameter scans\r\n\t\t\t//in simulation, we'll export multiple Smoldyn input files.\r\n\t\t\telse if (fileFilter.equals(FileFilters.FILE_FILTER_SMOLDYN_INPUT)) \r\n\t\t\t{ \r\n\t\t\t\tSimulation selectedSim = (Simulation)hashTable.get(\"selectedSimulation\");\r\n\t\t\t\tif (selectedSim != null) {\r\n\t\t\t\t\tint scanCount = selectedSim.getScanCount();\r\n\t\t\t\t\tif(scanCount > 1) // has parameter scan\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString baseExportFileName = exportFile.getPath().substring(0, exportFile.getPath().indexOf(\".\"));\r\n\t\t\t\t\t\tfor(int i=0; i<scanCount; i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSimulationTask simTask = new SimulationTask(new SimulationJob(selectedSim, i, null),0);\r\n\t\t\t\t\t\t\t// Need to export each parameter scan into a separate file\r\n\t\t\t\t\t\t\tString newExportFileName = baseExportFileName + \"_\" + i + SMOLDYN_INPUT_FILE_EXTENSION;\r\n\t\t\t\t\t\t\texportFile = new File(newExportFileName);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tPrintWriter pw = new PrintWriter(exportFile);\r\n\t\t\t\t\t\t\tSmoldynFileWriter smf = new SmoldynFileWriter(pw, true, null, simTask, false);\r\n\t\t\t\t\t\t\tsmf.write();\r\n\t\t\t\t\t\t\tpw.close();\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(scanCount == 1)// regular simulation, no parameter scan\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSimulationTask simTask = new SimulationTask(new SimulationJob(selectedSim, 0, null),0);\r\n\t\t\t\t\t\t// export the simulation to the selected file\r\n\t\t\t\t\t\tPrintWriter pw = new PrintWriter(exportFile);\r\n\t\t\t\t\t\tSmoldynFileWriter smf = new SmoldynFileWriter(pw, true, null, simTask, false);\r\n\t\t\t\t\t\tsmf.write();\r\n\t\t\t\t\t\tpw.close();\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\tthrow new Exception(\"Simulation scan count is smaller than 1.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\t// convert it if other format\r\n\t\t\t\tif (!fileFilter.equals(FileFilters.FILE_FILTER_VCML)) {\r\n\t\t\t\t\t// SBML or CellML; get application name\r\n\t\t\t\t\tif ((fileFilter.equals(FileFilters.FILE_FILTER_SBML_12)) || (fileFilter.equals(FileFilters.FILE_FILTER_SBML_21)) || \r\n\t\t\t\t\t\t(fileFilter.equals(FileFilters.FILE_FILTER_SBML_22)) || (fileFilter.equals(FileFilters.FILE_FILTER_SBML_23)) || \r\n\t\t\t\t\t\t(fileFilter.equals(FileFilters.FILE_FILTER_SBML_24)) || (fileFilter.equals(FileFilters.FILE_FILTER_SBML_31_CORE)) || \r\n\t\t\t\t\t\t(fileFilter.equals(FileFilters.FILE_FILTER_SBML_31_SPATIAL)) ) {\r\n\t\t\t\t\t\tSimulationContext selectedSimContext = (SimulationContext)hashTable.get(\"selectedSimContext\");\r\n\t\t\t\t\t\tSimulation selectedSim = (Simulation)hashTable.get(\"selectedSimulation\");\r\n\t\t\t\t\t\tint sbmlLevel = 0;\r\n\t\t\t\t\t\tint sbmlVersion = 0;\r\n\t\t\t\t\t\tint sbmlPkgVersion = 0;\r\n\t\t\t\t\t\tboolean bIsSpatial = false;\r\n\t\t\t\t\t\tif ((fileFilter.equals(FileFilters.FILE_FILTER_SBML_12))) {\r\n\t\t\t\t\t\t\tsbmlLevel = 1;\r\n\t\t\t\t\t\t\tsbmlVersion = 2;\r\n\t\t\t\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_SBML_21)) {\r\n\t\t\t\t\t\t\tsbmlLevel = 2;\r\n\t\t\t\t\t\t\tsbmlVersion = 1;\r\n\t\t\t\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_SBML_22)) {\r\n\t\t\t\t\t\t\tsbmlLevel = 2;\r\n\t\t\t\t\t\t\tsbmlVersion = 2;\r\n\t\t\t\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_SBML_23)) {\r\n\t\t\t\t\t\t\tsbmlLevel = 2;\r\n\t\t\t\t\t\t\tsbmlVersion = 3;\r\n\t\t\t\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_SBML_24)) {\r\n\t\t\t\t\t\t\tsbmlLevel = 2;\r\n\t\t\t\t\t\t\tsbmlVersion = 4;\r\n\t\t\t\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_SBML_31_CORE)) {\r\n\t\t\t\t\t\t\tsbmlLevel = 3;\r\n\t\t\t\t\t\t\tsbmlVersion = 1;\r\n\t\t\t\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_SBML_31_SPATIAL)) {\r\n\t\t\t\t\t\t\tsbmlLevel = 3;\r\n\t\t\t\t\t\t\tsbmlVersion = 1;\r\n\t\t\t\t\t\t\tsbmlPkgVersion = 1;\r\n\t\t\t\t\t\t\tbIsSpatial = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (selectedSim == null) {\r\n\t\t\t\t\t\t\tresultString = XmlHelper.exportSBML(bioModel, sbmlLevel, sbmlVersion, sbmlPkgVersion, bIsSpatial, selectedSimContext, null);\r\n\t\t\t\t\t\t\tXmlUtil.writeXMLStringToFile(resultString, exportFile.getAbsolutePath(), true);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tfor (int sc = 0; sc < selectedSim.getScanCount(); sc++) {\r\n\t\t\t\t\t\t\t\tSimulationJob simJob = new SimulationJob(selectedSim, sc, null);\r\n\t\t\t\t\t\t\t\tresultString = XmlHelper.exportSBML(bioModel, sbmlLevel, sbmlVersion, sbmlPkgVersion, bIsSpatial, selectedSimContext, simJob);\r\n\t\t\t\t\t\t\t\t// Need to export each parameter scan into a separate file \r\n\t\t\t\t\t\t\t\tString newExportFileName = exportFile.getPath().substring(0, exportFile.getPath().indexOf(\".xml\")) + \"_\" + sc + \".xml\";\r\n\t\t\t\t\t\t\t\texportFile.renameTo(new File(newExportFileName));\r\n\t\t\t\t\t\t\t\tXmlUtil.writeXMLStringToFile(resultString, exportFile.getAbsolutePath(), true);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_BNGL)) {\r\n\t\t\t\t\t\tRbmModelContainer rbmModelContainer = bioModel.getModel().getRbmModelContainer();\r\n\t\t\t\t\t\tStringWriter bnglStringWriter = new StringWriter();\r\n\t\t\t\t\t\tPrintWriter pw = new PrintWriter(bnglStringWriter);\r\n\t\t\t\t\t\tRbmNetworkGenerator.writeBngl(bioModel, pw);\r\n\t\t\t\t\t\tresultString = bnglStringWriter.toString();\r\n\t\t\t\t\t\tpw.close();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_NFSIM)) {\r\n\t\t\t\t\t\t// TODO: get the first thing we find for now, in the future we'll need to modify ChooseFile \r\n\t\t\t\t\t\t// to only offer the applications / simulations with bngl content\r\n\t\t\t\t\t\tSimulationContext simContexts[] = bioModel.getSimulationContexts();\r\n\t\t\t\t\t\tSimulationContext aSimulationContext = simContexts[0];\r\n\t\t\t\t\t\tSimulation selectedSim = aSimulationContext.getSimulations(0);\r\n\t\t\t\t\t\t//Simulation selectedSim = (Simulation)hashTable.get(\"selectedSimulation\");\r\n\t\t\t\t\t\tSimulationTask simTask = new SimulationTask(new SimulationJob(selectedSim, 0, null),0);\r\n\t\t\t\t\t\tlong randomSeed = 0;\t// a fixed seed will allow us to run reproducible simulations\r\n\t\t\t\t\t\t//long randomSeed = System.currentTimeMillis();\r\n\t\t\t\t\t\tNFsimSimulationOptions nfsimSimulationOptions = new NFsimSimulationOptions();\r\n\t\t\t\t\t\t// we get the data we need from the math description\r\n\t\t\t\t\t\tElement root = NFsimXMLWriter.writeNFsimXML(simTask, randomSeed, nfsimSimulationOptions);\r\n\t\t\t\t\t\tDocument doc = new Document();\r\n\t\t\t\t\t\tdoc.setRootElement(root);\r\n\t\t\t\t\t\tXMLOutputter xmlOut = new XMLOutputter();\r\n\t\t\t\t\t\tresultString = xmlOut.outputString(doc);\r\n\t\r\n\t\t\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_CELLML)) {\r\n\t\t\t\t\t\tInteger chosenSimContextIndex = (Integer)hashTable.get(\"chosenSimContextIndex\");\r\n\t\t\t\t\t\tString applicationName = bioModel.getSimulationContext(chosenSimContextIndex.intValue()).getName();\r\n\t\t\t\t\t\tresultString = XmlHelper.exportCellML(bioModel, applicationName);\r\n\t\t\t\t\t\t// cellml still uses default character encoding for now ... maybe UTF-8 in the future\r\n\t\t\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_OMEX)) {\r\n\t\t\t\t\t\t// export the entire biomodel to a SEDML file (for now, only non-spatial,non-stochastic applns)\r\n\t\t\t\t\t\tint sedmlLevel = 1;\r\n\t\t\t\t\t\tint sedmlVersion = 1;\r\n\t\t\t\t\t\tString sPath = FileUtils.getFullPathNoEndSeparator(exportFile.getAbsolutePath());\r\n\t\t\t\t\t\tString sFile = FileUtils.getBaseName(exportFile.getAbsolutePath());\r\n\t\t\t\t\t\tString sExt = FileUtils.getExtension(exportFile.getAbsolutePath());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tSEDMLExporter sedmlExporter = null;\r\n\t\t\t\t\t\tif (bioModel instanceof BioModel) {\r\n\t\t\t\t\t\t\tsedmlExporter = new SEDMLExporter(bioModel, sedmlLevel, sedmlVersion);\r\n\t\t\t\t\t\t\tresultString = sedmlExporter.getSEDMLFile(sPath);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthrow new RuntimeException(\"unsupported Document Type \" + bioModel.getClass().getName() + \" for SedML export\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(sExt.equals(\"sedx\")) {\r\n\t\t\t\t\t\t\tsedmlExporter.createManifest(sPath, sFile);\r\n\t\t\t\t\t\t\tString sedmlFileName = sPath + FileUtils.WINDOWS_SEPARATOR + sFile + \".sedml\";\r\n\t\t\t\t\t\t\tXmlUtil.writeXMLStringToFile(resultString, sedmlFileName, true);\r\n\t\t\t\t\t\t\tsedmlExporter.addSedmlFileToList(sFile + \".sedml\");\r\n\t\t\t\t\t\t\tsedmlExporter.addSedmlFileToList(\"manifest.xml\");\r\n\t\t\t\t\t\t\tsedmlExporter.createZipArchive(sPath, sFile);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tXmlUtil.writeXMLStringToFile(resultString, exportFile.getAbsolutePath(), true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// if format is VCML, get it from biomodel.\r\n\t\t\t\t\tbioModel.getVCMetaData().cleanupMetadata();\r\n\t\t\t\t\tresultString = XmlHelper.bioModelToXML(bioModel);\r\n\t\t\t\t\tXmlUtil.writeXMLStringToFile(resultString, exportFile.getAbsolutePath(), true);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}*/\r\n\t\t} else if (documentToExport instanceof MathModel) {\r\n\t\t\tMathModel mathModel = (MathModel)documentToExport;\r\n\t\t\t// check format requested\r\n\t\t\tif (fileFilter.equals(FileFilters.FILE_FILTER_MATLABV6)){\r\n\t\t\t\t//check if it's ODE\r\n\t\t\t\tif(mathModel.getMathDescription() != null && \r\n\t\t\t\t (!mathModel.getMathDescription().isSpatial() && !mathModel.getMathDescription().isNonSpatialStoch())){\r\n\t\t\t\t\tMathDescription mathDesc = mathModel.getMathDescription();\r\n\t\t\t\t\tresultString = exportMatlab(exportFile, fileFilter, mathDesc,mathModel.getOutputFunctionContext());\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthrow new Exception(\"Matlab export failed: NOT an non-spatial deterministic model.\");\r\n\t\t\t\t}\r\n\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_PDF)) { \r\n\t\t\t\tFileOutputStream fos = new FileOutputStream(exportFile);\r\n\t\t\t\tdocumentManager.generatePDF(mathModel, fos);\r\n\t\t\t\tfos.close();\r\n\t\t\t\treturn; //will take care of writing to the file as well.\r\n\t\t\t}else if (fileFilter.equals(FileFilters.FILE_FILTER_VCML)) {\r\n\t\t\t\tresultString = XmlHelper.mathModelToXML(mathModel);\r\n\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_CELLML)) {\r\n\t\t\t\tresultString = XmlHelper.exportCellML(mathModel, null);\r\n//\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_SBML_23)) {\r\n//\t\t\t\tresultString = XmlHelper.exportSBML(mathModel, 2, 3, 0, false, null, null);\r\n//\t\t\t} else if (fileFilter.equals(FileFilters.FILE_FILTER_SBML_24)) {\r\n//\t\t\t\tresultString = XmlHelper.exportSBML(mathModel, 2, 4, 0, false, null, null);\r\n\t\t\t} \r\n\t\t\t//Export a simulation to Smoldyn input file, if there are parameter scans\r\n\t\t\t//in simulation, we'll export multiple Smoldyn input files.\r\n\t\t\telse if (fileFilter.equals(FileFilters.FILE_FILTER_SMOLDYN_INPUT)) \r\n\t\t\t{ \r\n\t\t\t\tSimulation selectedSim = (Simulation)hashTable.get(\"selectedSimulation\");\r\n\t\t\t\tif (selectedSim != null) {\r\n\t\t\t\t\tint scanCount = selectedSim.getScanCount();\r\n\t\t\t\t\t//-----\r\n\t\t\t\t\tString baseExportFileName = (scanCount==1?null:exportFile.getPath().substring(0, exportFile.getPath().indexOf(\".\")));\r\n\t\t\t\t\tfor(int i=0; i<scanCount; i++){\r\n\t\t\t\t\t\tSimulationTask simTask = new SimulationTask(new SimulationJob(selectedSim, i, null),0);\r\n\t\t\t\t\t\t// Need to export each parameter scan into a separate file\r\n\t\t\t\t\t\tFile localExportFile = (scanCount==1?exportFile:new File(baseExportFileName + \"_\" + i + SMOLDYN_INPUT_FILE_EXTENSION));\r\n\t\t\t\t\t\tFileCloseHelper localCloseThis = new FileCloseHelper(localExportFile);\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\tSmoldynFileWriter smf = new SmoldynFileWriter(localCloseThis.getPrintWriter(), true, null, simTask, false);\r\n\t\t\t\t\t\t\tsmf.write();\r\n\t\t\t\t\t\t}finally{\r\n\t\t\t\t\t\t\tif(localCloseThis != null){\r\n\t\t\t\t\t\t\t\tlocalCloseThis.close();\r\n\t\t\t\t\t\t\t}\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\treturn;\r\n\t\t\t}\r\n\t\t} else if (documentToExport instanceof Geometry){\r\n\t\t\tGeometry geom = (Geometry)documentToExport;\r\n\t\t\tif (fileFilter.equals(FileFilters.FILE_FILTER_PDF)) {\r\n\t\t\t\tdocumentManager.generatePDF(geom, (closeThis = new FileCloseHelper(exportFile)).getFileOutputStream());\r\n\t\t\t}else if (fileFilter.equals(FileFilters.FILE_FILTER_VCML)) {\r\n\t\t\t\tresultString = XmlHelper.geometryToXML(geom);\r\n\t\t\t}else if (fileFilter.equals(FileFilters.FILE_FILTER_AVS)) {\r\n\t\t\t\tcbit.vcell.export.AVS_UCD_Exporter.writeUCDGeometryOnly(geom.getGeometrySurfaceDescription(),(closeThis = new FileCloseHelper(exportFile)).getFileWriter());\r\n\t\t\t}else if (fileFilter.equals(FileFilters.FILE_FILTER_STL)) {\r\n\t\t\t\t//make sure filename end with .stl\r\n\t\t\t\tFile stlFile = exportFile;\r\n\t\t\t\tif(!exportFile.getName().toLowerCase().endsWith(\".stl\")){\r\n\t\t\t\t\tstlFile = new File(exportFile.getParentFile(),exportFile.getName()+\".stl\");\r\n\t\t\t\t}\r\n\t\t\t\tcbit.vcell.geometry.surface.StlExporter.writeBinaryStl(geom.getGeometrySurfaceDescription(),(closeThis = new FileCloseHelper(stlFile)).getRandomAccessFile(\"rw\"));\r\n\t\t\t}else if (fileFilter.equals(FileFilters.FILE_FILTER_PLY)) {\r\n\t\t\t\twriteStanfordPolygon(geom.getGeometrySurfaceDescription(), (closeThis = new FileCloseHelper(exportFile)).getFileWriter());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(resultString != null){\r\n\t\t\t(closeThis = new FileCloseHelper(exportFile)).getFileWriter().write(resultString);\r\n\t\t}\r\n\t}finally{\r\n\t\tif(closeThis != null){\r\n\t\t\tcloseThis.close();\r\n\t\t}\r\n\t}\r\n}",
"public interface DocusignEnvelopeService {\n\t/**\n\t * Retrieves the envelope status by envelope id.\n\t *\n\t * @param envelopeId the envelope id\n\t * @param user the user executing the request\n\t * @return the envelope status\n\t */\n\tpublic EnvelopeStatus getEnvelopeStatus(String envelopeId, User user);\n\n\t/**\n\t * Retrieves envelope statuses for envelope within the current day.\n\t * \n\t * @param user the user to lookup envelope statuses in\n\t * @return a map of envelope ids to status codes\n\t * @throws DatatypeConfigurationException thrown if xml datatype cannot be created for request\n\t */\n\tpublic Map<String, EnvelopeStatusCode> getEnvelopeStatusesInLastDay(User user) throws DatatypeConfigurationException;\n\t\n\t/**\n\t * Retrieves a list of document pdfs linked to an envelope.\n\t *\n\t * @param envelopeId the envelope id\n\t * @param user the user executing the request\n\t * @return a list of document pdfs linked to and envelope\n\t */\n\tpublic List<DocumentPDF> getDocumentsForEnvelopeId(String envelopeId, User user);\n}",
"public void crearPDF()\r\n\t{\r\n\t\tif (!new File(ruta).exists())\r\n\t\t\t(new File(ruta)).mkdirs();\r\n\r\n\t\tFile[] files = (new File(ruta)).listFiles();\r\n\t\tString ruta = \"\";\r\n\t\tif (files.length == 0) {\r\n\t\t\truta = this.ruta + huesped + \"0\" + \".pdf\";\r\n\t\t} else {\r\n\t\t\tString path = files[files.length - 1].getAbsolutePath();\r\n\t\t\tString num = path.substring(path.length() - 5, path.length() - 4);\r\n\r\n\t\t\truta = this.ruta + huesped + (Integer.parseInt(num) + 1) + \".pdf\";\r\n\t\t}\r\n\r\n\t\tSimpleDateFormat formato = new SimpleDateFormat(\"dd/MM/YYYY\");\r\n\t\t\r\n\t\tcabecera = \"\\n\"+\"Resonance Home\" + \"\\n\"+ \r\n \"Armenia, Quindio\" + \"\\n\" + \r\n \"Colombia\" + \"\\n\\n\" + \r\n\t\t\t\t\"Fecha \" + reserva.getFecha().toString() + \"\\n\\n\\n\";\r\n\t\tcontenido = \"Reserva de hospedaje: \"+ reserva.getHospedaje().getId() + \"\\n\" + \r\n \t\"Titulo del Hospedaje: \" + reserva.getHospedaje().getTitulo() + \" \" + \"\\n\" +\r\n \t\"Dirección: \" + reserva.getHospedaje().getDireccion().getDireccion() + \", \" + reserva.getHospedaje().getDireccion().toString() + \"\\n\" +\r\n\t\t\t\t\"Anfitrion: \" + nombreAnfitrion + \"\\n\" + \"Correo: \" + emailAnfitrion + \"\\n\\n\\n\" + \"Huesped: \"\r\n\t\t\t\t+ nombreHuesped + \"\\n\" +\r\n \t\"Metodo de pago: \" + reserva.getTarjeta().getNumeroT() + \" Tarjeta de credito\" + \"\\n\\n\" +\r\n \tformato.format(reserva.getFechaInicial()) + \" hasta \"+ formato.format(reserva.getFechaFinal()) +\"\\n\\n\" +\r\n \t\"Descripcion\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalor\" + \"\\n\\n\" + \r\n\t\t\t\t\"Huespedes\" + \"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"\r\n\t\t\t\t+ reserva.getNumeroHuespedes() + \"\\n\" +\r\n\t\t\t\t\"Alojamiento\" + \"\t\t\t\t\t\t\t\t\t\t\t\t\t \" + precioCompleto + \"\\n\"\r\n\t\t\t\t+ \"Tarifa de limpieza\" + \"\t\t\t\t \t \" + precioLimpieza + \"\\n\" + \"Comision por servicio\"\r\n\t\t\t\t+ \"\t\t\t\t\t\" + precioComision + \"\\n\\n\";\r\n\t\tpiePagina = \"TOTAL \" + \" \" + \"$ \" + reserva.getValor() + \"\\n\" ;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFileOutputStream archivo = new FileOutputStream(ruta);\r\n\t\t\tDocument doc = new Document(PageSize.A5, 10, 10, 10, 10);\r\n\t\t\tPdfWriter.getInstance(doc, archivo);\r\n\t\t\tdoc.open();\r\n\t\t\tdoc.add(obtenerCabecera(cabecera));\r\n\t\t\tdoc.add(obtenerContenido(contenido));\r\n\t\t\tdoc.add(obtenerPiePagina(piePagina));\r\n\t\t\tdoc.close();\r\n\t\t\tthis.ruta = ruta;\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(\"\" + e);\r\n\t\t}\r\n\r\n\t}",
"void merge();",
"private void getPdfFromAwsLink(PdfWriter writer, Locale locale) throws Exception {\n final String disclosureFileClasspath = getMessage(locale, \"pdf.receipt.disclosure.classpath\");\n InputStream file = PdfServlet.class.getClassLoader().getResourceAsStream(disclosureFileClasspath);\n\n PdfReader reader = new PdfReader(file);\n PdfContentByte cb = writer.getDirectContent();\n int pageOfCurrentReaderPDF = 0;\n while (pageOfCurrentReaderPDF < reader.getNumberOfPages()) {\n pageOfCurrentReaderPDF++;\n PdfImportedPage page = writer.getImportedPage(reader, pageOfCurrentReaderPDF);\n cb.addTemplate(page, 0, 0);\n }\n }",
"public void description() throws Exception {\n PrintWriter pw = new PrintWriter(System.getProperty(\"user.dir\")+ \"/resources/merged_file.txt\"); \n \n // BufferedReader for obtaining the description files of the ontology & ODP\n BufferedReader br1 = new BufferedReader(new FileReader(System.getProperty(\"user.dir\")+ \"/resources/ontology_description\")); \n BufferedReader br2 = new BufferedReader(new FileReader(System.getProperty(\"user.dir\")+ \"/resources/odps_description.txt\")); \n String line1 = br1.readLine(); \n String line2 = br2.readLine(); \n \n // loop is used to copy the lines of file 1 to the other \n if(line1==null){\n\t \tpw.print(\"\\n\");\n\t }\n while (line1 != null || line2 !=null) \n { \n if(line1 != null) \n { \n pw.println(line1); \n line1 = br1.readLine(); \n } \n \n if(line2 != null) \n { \n pw.println(line2); \n line2 = br2.readLine(); \n } \n } \n pw.flush(); \n // closing the resources \n br1.close(); \n br2.close(); \n pw.close(); \n \n // System.out.println(\"Merged\"); -> for checking the code execution\n /* On obtaining the merged file, Doc2Vec model is implemented so that vectors are\n * obtained. And the, similarity ratio of the ontology description with the ODPs \n * can be found using cosine similarity \n */\n \tFile file = new File(System.getProperty(\"user.dir\")+ \"/resources/merged_file.txt\"); \t\n SentenceIterator iter = new BasicLineIterator(file);\n AbstractCache<VocabWord> cache = new AbstractCache<VocabWord>();\n TokenizerFactory t = new DefaultTokenizerFactory();\n t.setTokenPreProcessor(new CommonPreprocessor()); \n LabelsSource source = new LabelsSource(\"Line_\");\n ParagraphVectors vec = new ParagraphVectors.Builder()\n \t\t.minWordFrequency(1)\n \t .labelsSource(source)\n \t .layerSize(100)\n \t .windowSize(5)\n \t .iterate(iter)\n \t .allowParallelTokenization(false)\n .workers(1)\n .seed(1)\n .tokenizerFactory(t) \n .build();\n vec.fit();\n \n //System.out.println(\"Check the file\");->for execution of code\n PrintStream p=new PrintStream(new File(System.getProperty(\"user.dir\")+ \"/resources/description_values\")); //storing the numeric values\n \n \n Similarity s=new Similarity(); //method that checks the cosine similarity\n s.similarityCheck(p,vec);\n \n \n }",
"void selectPDF()\n {\n Intent intent=new Intent();\n intent.setType(\"application/pdf\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent,9);\n }",
"private void createPDF(OutputStream os,String htmlFileName) {\n\t\tLog.info(\"url : \"+htmlFileName);\r\n //String HTML_TO_PDF = \"D:\\\\ConvertedFile.pdf\";\r\n // OutputStream os = new FileOutputStream(HTML_TO_PDF); \r\n \r\n /* File myhtml = new File(htmlFileName);\r\n FileInputStream fileinput = null;\r\n BufferedInputStream mybuffer = null;\r\n DataInputStream datainput = null;\r\n\r\n fileinput = new FileInputStream(myhtml);\r\n mybuffer = new BufferedInputStream(fileinput);\r\n datainput = new DataInputStream(mybuffer);\r\n\r\n while (datainput.available() != 0) {\r\n \t\r\n \tif(datainput.readLine().)\r\n \tSystem.out.println(datainput.readLine());\r\n \t}\r\n*/\r\n try {\r\n\t ITextRenderer renderer = new ITextRenderer();\r\n\t Log.info(\"Skill PDF Export->Create PDF->File name: \" + htmlFileName);\r\n\t renderer.setDocument(new File(htmlFileName)); \r\n\t renderer.layout();\r\n\t renderer.createPDF(os); \r\n\t os.close();\r\n }catch (Exception e) {\r\n \tLog.error(\"Error in SkillPdfExport\",e);\r\n }\r\n\t}",
"public interface IFileService {\n ResponseJson uploadFile(MultipartHttpServletRequest request) throws IOException;\n\n ResponseJson uploadFiles(MultipartHttpServletRequest request) throws IOException;\n\n ResponseJson fileDownload(HttpServletRequest request, HttpServletResponse response,int fid) throws UnsupportedEncodingException;\n\n ResponseJson fileDelete(FileModel fileModel, HttpServletRequest request);\n\n ResponseJson findFileList(int uid);\n\n ResponseJson excelUpload(MultipartHttpServletRequest request,String type);\n\n ResponseJson findFileListByPage(int uid, PageJson pageJson);\n\n EUditorJson ueditorUploadImage(MultipartHttpServletRequest request) throws IOException;\n}",
"public static void main(String[] args) throws IOException {\n\r\n\t\tString pdfLocation = \"C:\\\\Users\\\\805268\\\\Desktop\\\\Intelligence\\\\Pdf conversion\\\\VT17-010212-01_AHU.pdf\";\r\n\t\tPdfReader reader = new PdfReader(pdfLocation);\r\n PdfReaderContentParser parser = new PdfReaderContentParser(\r\n reader);\r\n // PrintWriter out = new PrintWriter(new FileOutputStream(txt));\r\n TextExtractionStrategy strategy;\r\n String line = null;\r\n ArrayList<String> liners = new ArrayList<String>();\r\n \t\r\n for (int i = 1; i <= reader.getNumberOfPages(); i++) {\r\n \r\n \tstrategy = parser.processContent(i,\r\n new SimpleTextExtractionStrategy());\r\n \tline = strategy.getResultantText(); \r\n \tliners.add(line);\r\n }\r\n reader.close();\r\n\r\n \r\n \r\n // using apache poi text to excel converter\r\n\r\n @SuppressWarnings(\"resource\")\r\n\t\torg.apache.poi.ss.usermodel.Workbook wb = new HSSFWorkbook();\r\n CreationHelper helper = wb.getCreationHelper();\r\n Sheet sheet = wb.createSheet(\"new sheet\");\r\n \r\n //System.out.println(\"link------->\" + line);\r\n \r\n //List<String> lines = IOUtils.readLines(new StringReader(line));\r\n int q=0;\r\n for (int i = 0; i < liners.size(); i++) { \r\n \tString str[] = liners.get(i).split(\"\\n\");\r\n \tfor (int j = 0; j < str.length; j++) {\r\n \t\tRow row = sheet.createRow((short) q);\r\n \t\trow.createCell(0).setCellValue(\r\n \t\thelper.createRichTextString(str[j]));\r\n \t\tq++;\r\n }\r\n }\r\n FileOutputStream fileOut = new FileOutputStream(\r\n \"C:\\\\Users\\\\805268\\\\Desktop\\\\Intelligence\\\\Pdf conversion\\\\VT17-010212-01_AHU_Converted.xls\");\r\n wb.write(fileOut);\r\n fileOut.close();\r\n\t}",
"@Override\n public List<byte[]> searchPDFs(String keyword) {\n List<Document> searchDocs = searchDocuments(keyword);\n return docToPDFList(searchDocs);\n }",
"public static void main(String[] args) throws DocumentException, IOException {\n \t\n// // step 1\n// Document document = new Document();\n \n // step 1: creation of the document with a certain size and certain margins\n Document document = new Document(PageSize.A4, 50, 50, 50, 50);\n \n // step 2: create a writer (we have many type of writer, eg HtmlWriter, PdfWriter)\n PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(RESULT));\n \n /* step 3: BEFORE open the document we add some meta information to the document (that properties can be viewed with adobe reader or right click-properties)\n * they don't appear in the document view\n */\n document.addAuthor(\"Author Test\"); \n document.addSubject(\"This is the result of a Test.\"); \n \n // step 4\n document.open();\n \n //The com.itextpdf.text.Image is used to add images to IText PDF documents\n Image image1 = Image.getInstance(\"src/main/resources/sms.png\");\n document.add(image1);\n \n // step 5\n /*\n access at the content under the new pdf document just created (ie the writer object that i can control/move)\n PdfContentByte is the object that contains the text to write and the content of a page (it offer the methods to add content to a page)\n */\n PdfContentByte canvas = writer.getDirectContentUnder();\n \n //Sets the compression level to be used for streams written by the writer.\n writer.setCompressionLevel(0);\n canvas.saveState(); \n canvas.beginText(); \n //move the writer to tha X,Y position\n canvas.moveText(360, 788); \n canvas.setFontAndSize(BaseFont.createFont(), 12);\n \n Rectangle rectangle = new Rectangle(400, 300);\n rectangle.setBorder(2);\n document.add(rectangle);\n \n /* \n Writes something to the direct content using a convenience method\n A Phrase is a series of Chunks (A Chunk is the smallest significant part of text that can be added to a document)\n \n Conclusion: A chunk is a String with a certain Font ---> A Phrase is a series of Chunk\n Both Chunck and Font has a Font field (but if a Chunk haven't a Font uses the one of the Phrase that own it)\n */\n \n //------- Two modes to set a Phrase: --------\n \n //mode 1) set the phrase directly without a separate chunk object\n Phrase hello = new Phrase(\"Hello World3\");\n document.add(hello);\n \n //mode 2) create before a chunk, adjust it and after assign it to a Phrase(s) \n Chunk chunk2 = new Chunk(\"Setting the Font\", FontFactory.getFont(\"dar-black\"));\n chunk2.setUnderline(0.5f, -1.5f);\n \n Phrase p1 = new Phrase(chunk2);\n document.add(p1); \n \n canvas.showText(\"Hello sms\"); \n canvas.endText(); \n canvas.restoreState(); \n \n document.add(Chunk.NEWLINE);\n \n //i chunk posso aggiungerli solo tramite l'oggetto Document ?\n Chunk chunk = new Chunk(\"I'm a chunk\");\n chunk.setBackground(BaseColor.GRAY, 1f, 0.5f, 1f, 1.5f);\n document.add(chunk);\n \n /*\n * A Paragraph is a series of Chunks and/or Phrases, has the same qualities of a Phrase, but also some additional layout-parameters\n * A paragraph is a sub-section in the document. After each Paragraph a CRLF is added\n */\n Paragraph paragraph = new Paragraph(\"A:\\u00a0\");\n Chunk chunk1 = new Chunk(\"I'm a chunk1\");\n paragraph.add(chunk1);\n paragraph.setAlignment(Element.ALIGN_JUSTIFIED);\n document.add(paragraph);\n \n \n //----- Add a table to the document ------\n \n //A cell in a PdfPTable\n PdfPCell cell;\n \n PdfPTable table = new PdfPTable(2); //in argument vis the number of column\n table.setWidths(new int[]{ 1, 2 }); //the width of the first and second cell. The number of element in the array must be equal at the number of column\n \n table.addCell(\"Name:\");\n cell = new PdfPCell();\n //We can attach event at the cell\n //cell.setCellEvent(new TextFields(1));\n table.addCell(cell);\n \n table.addCell(\"Loginname:\");\n cell = new PdfPCell();\n //cell.setCellEvent(new TextFields(2));\n table.addCell(cell);\n \n table.addCell(\"Password:\");\n cell = new PdfPCell(); \n table.addCell(cell);\n \n table.addCell(\"Reason:\");\n cell = new PdfPCell(); \n cell.setFixedHeight(60);\n table.addCell(cell);\n \n document.add(table);\n \n //add an horizontal line\n LineSeparator ls = new LineSeparator(); \n ls.setLineWidth(0);\n document.add(new Chunk(ls));\n \n Anchor pdfRef = new Anchor(\"http://www.java2s.com\");\n document.add(pdfRef);\n \n // step 5\n document.close();\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\tthrows IOException, ServletException\n\t{\n Document document=null;\n\n try {\n HttpSession session = request.getSession(true);\n com.emesa.gestinm.portalframework.UserProfile oProfile=(com.emesa.gestinm.portalframework.UserProfile)session.getAttribute(\"_profile_\");\n Vector vHeader=(Vector)session.getAttribute(\"inf_header\");\n Vector vRtado=(Vector)session.getAttribute(\"inf_rtado\");\n String sNombreConsulta=(String)session.getAttribute(\"inf_nombre\");\n String sDescripcionConsulta=(String)session.getAttribute(\"inf_descripcion\");\n\n if(vHeader==null)\n vHeader=new Vector();\n if(vRtado==null)\n vRtado=new Vector();\n if(sNombreConsulta==null)\n sNombreConsulta=\"Informe\";\n if(sDescripcionConsulta==null)\n sDescripcionConsulta=\"\";\n\n // step 1: creation of a document-object\n document = new Document(PageSize.A4.rotate());\n\n // step 2:\n // we create a writer that listens to the document\n // and directs a PDF-stream to a file\n File tmpFile = new File(oProfile.getUsuario()+\"_gestinm.pdf\");\n String sOutputFile=(sOutputDir+\"/\"+tmpFile.getName()).replace('\\\\','/');\n\n PdfWriter.getInstance(document, new FileOutputStream(sOutputFile));\n\n\n //-- seh\n addMetaData(document);\n addHeader(document);\n //-- eoseh\n\n // step 3: we open the document\n document.open();\n\n // step 4: we add a paragraph to the document\n document.add(new Paragraph(sNombreConsulta+\": \"+sDescripcionConsulta,new Font(Font.TIMES_ROMAN,12)));\n\n PdfPTable table = new PdfPTable(vHeader.size());\n table.setHeaderRows(1);\n //table.setPadding(2);\n //table.setCellsFitPage(true);\n\n //---------------------\n // Cabecera...\n PdfPCell cell=null;\n for(int i=0; i<vHeader.size(); i++) {\n cell = new PdfPCell(\n new Phrase(vHeader.elementAt(i).toString(),\n new Font(Font.HELVETICA,10)\n ));\n //cell.setHeader(true);\n cell.setBackgroundColor(Color.orange);\n cell.setHorizontalAlignment(Element.ALIGN_CENTER);\n cell.setVerticalAlignment(Element.ALIGN_CENTER);\n table.addCell(cell);\n }\n\n //---------------------\n // Resultados\n Vector vRow=null;\n for(int i=0;i<vRtado.size(); i++) {\n vRow=(Vector)vRtado.elementAt(i);\n for(int j=0; j<vRow.size();j++) {\n cell=new PdfPCell(\n new Phrase((vRow.elementAt(j)==null?\"\":vRow.elementAt(j).toString()),\n new Font(Font.TIMES_ROMAN,9)\n ));\n if(i%2!=0)\n cell.setBackgroundColor(Color.LIGHT_GRAY);\n\n cell.setVerticalAlignment(Element.ALIGN_TOP);\n table.addCell(cell);\n }\n }\n\n document.add(table);\n\n String sRedirect=request.getParameter(\"redir\");\n if(sRedirect==null || sRedirect.trim().equals(\"\"))\n sRedirect=sRedirFolder+\"/pdf.jsp\";\n\n\n request.setAttribute(\"f\",sRedirFolder+\"/\"+tmpFile.getName());\n RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(sRedirect);\n dispatcher.forward(request,response);\n\n // step 5: we close the document\n document.close();\n\n }\n catch(DocumentException de) {\n System.err.println(de.getMessage());\n // step 5: we close the document\n if(document!=null)\n document.close();\n }\n catch(IOException ioe) {\n System.err.println(ioe.getMessage());\n // step 5: we close the document\n if(document!=null)\n document.close();\n }\n\n }",
"protected void concatenateResults(String dest, String[] names) throws IOException {\n PdfDocument pdfDoc = new PdfDocument(new PdfWriter(dest));\n pdfDoc.initializeOutlines();\n PdfDocument tempDoc;\n for (String name : names) {\n tempDoc = new PdfDocument(new PdfReader(name));\n tempDoc.copyPagesTo(1, tempDoc.getNumberOfPages(), pdfDoc);\n tempDoc.close();\n }\n pdfDoc.close();\n }",
"@SuppressWarnings(\"unchecked\")\n @Override\n protected void buildPdfDocument(Map<String, Object> model, Document document, PdfWriter writer,\n HttpServletRequest request, HttpServletResponse response) throws Exception {\n createNewPdfByTemplate(model,document,writer,request,response);\n\n }",
"public interface CaseDocumentsAttachmentsSearchService extends XSearchService {\n\n public XResultSet getAttachments(Map<String, String> params);\n\n}",
"public interface ProductProcessorMP0 extends ProductProcessor {\n\n\n\n\n void processFile(MultipartFile file, ContractImage contractImage, Contract contract) throws IOException, IllegalDataException;\n}",
"public void testImportPage() throws IOException\n {\n PDDocument doc1 = new PDDocument();\n PDPage page = new PDPage();\n PDPageContentStream pageContentStream = new PDPageContentStream(doc1, page);\n Bitmap bim = Bitmap.createBitmap(100, 50, Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bim);\n// Font font = new Font(\"Dialog\", Font.PLAIN, 20);\n canvas.drawText(\"PDFBox\", 10, 30, new Paint());\n PDImageXObject img = LosslessFactory.createFromImage(doc1, bim);\n pageContentStream.drawImage(img, 200, 500);\n pageContentStream.setFont(PDType1Font.HELVETICA, 20);\n pageContentStream.beginText();\n pageContentStream.setNonStrokingColor(AWTColor.blue);\n pageContentStream.newLineAtOffset(200, 600);\n pageContentStream.showText(\"PDFBox\");\n pageContentStream.endText();\n pageContentStream.close();\n doc1.addPage(page);\n Bitmap bim1 = new PDFRenderer(doc1).renderImage(0);\n\n PDDocument doc2 = new PDDocument();\n doc2.importPage(doc1.getPage(0));\n doc1.close();\n Bitmap bim2 = new PDFRenderer(doc2).renderImage(0);\n doc2.save(new ByteArrayOutputStream());\n doc2.close();\n\n assertEquals(bim1.getWidth(), bim2.getWidth());\n assertEquals(bim1.getHeight(), bim2.getHeight());\n int w = bim1.getWidth();\n int h = bim1.getHeight();\n int[] pixels1 = new int[w * h];\n bim1.getPixels(pixels1, 0, w, 0, 0, w, h);\n int[] pixels2 = new int[w * h];\n bim2.getPixels(pixels2, 0, w, 0, 0, w, h);\n assertEquals(w * h, pixels1.length);\n Assert.assertArrayEquals(pixels1, pixels2);\n }",
"@Override\n public PdfTransform<PdfDocument> getDocumentTransform(ArchivalUnit au, OutputStream os) {\n return new BaseDocumentExtractingTransform(os) {\n @Override\n public void outputCreationDate() throws PdfException {\n // Intentionally made blank\n }\n };\n }",
"public void manipulatePdf(String dest) throws IOException, SQLException {\n DatabaseConnection connection = new HsqldbConnection(\"filmfestival\");\n\n PdfDocument pdfDoc = new PdfDocument(new PdfWriter(DEST));\n Document doc = new Document(pdfDoc);\n doc.setMargins(54, 36, 36, 36);\n\n HeaderHandler headerHandler = new HeaderHandler();\n pdfDoc.addEventHandler(PdfDocumentEvent.START_PAGE, headerHandler);\n\n WatermarkHandler watermarkHandler = new WatermarkHandler();\n pdfDoc.addEventHandler(PdfDocumentEvent.END_PAGE, watermarkHandler);\n\n template = new PdfFormXObject(new Rectangle(550, 803, 30, 30));\n PdfCanvas canvas = new PdfCanvas(template, pdfDoc);\n\n\n bold = PdfFontFactory.createFont(StandardFonts.HELVETICA_BOLD);\n italic = PdfFontFactory.createFont(StandardFonts.HELVETICA_OBLIQUE);\n normal = PdfFontFactory.createFont(StandardFonts.HELVETICA);\n\n Statement stm = connection.createStatement();\n ResultSet rs = stm.executeQuery(\n \"SELECT country, id FROM film_country ORDER BY country\");\n int d = 1;\n while (rs.next()) {\n headerHandler.setHeader(rs.getString(\"country\"));\n if (1 != d) {\n doc.add(new AreaBreak());\n }\n Set<Movie> movies =\n new TreeSet<>(new MovieComparator(MovieComparator.BY_YEAR));\n movies.addAll(PojoFactory.getMovies(connection, rs.getString(\"id\")));\n for (Movie movie : movies) {\n doc.add(new Paragraph(movie.getMovieTitle()).setFont(bold));\n if (movie.getOriginalTitle() != null)\n doc.add(new Paragraph(movie.getOriginalTitle()).setFont(italic));\n doc.add(new Paragraph(String.format(\"Year: %d; run length: %d minutes\",\n movie.getYear(), movie.getDuration())).setFont(normal));\n doc.add(PojoToElementFactory.getDirectorList(movie));\n }\n d++;\n }\n\n canvas.beginText();\n try {\n canvas.setFontAndSize(PdfFontFactory.createFont(StandardFonts.HELVETICA), 12);\n } catch (IOException e) {\n e.printStackTrace();\n }\n canvas.moveText(550, 803);\n canvas.showText(Integer.toString(pdfDoc.getNumberOfPages()));\n canvas.endText();\n canvas.stroke();\n\n doc.close();\n connection.close();\n }",
"private void pdfPaymentMethod(CartReceiptResponse receiptResponse, Document document, Locale locale)\n throws DocumentException, IOException {\n\n LOGGER.debug(\"Entered in 'pdfPaymentMethod' method\");\n Double totalPaymentApplied = 0.0;\n PdfPTable paymentMethodTable = new PdfPTable(2);\n paymentMethodTable.setWidths(new int[]{200, 50});\n PdfPCell paymentMethodBlankSpaceCell = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n String message = getMessage(locale, \"pdf.receipt.paymentMethod\");\n Font font = getFont(BLACK_COLOR, FONT_SIZE_18, Font.BOLD);\n PdfPCell paymentMethodHeaderCell = new PdfPCell(new Phrase(message, font));\n cellAlignment(paymentMethodHeaderCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodHeaderCell, Rectangle.NO_BORDER, 0, 0);\n\n cellAlignment(paymentMethodBlankSpaceCell, 0, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n cellAlignment(paymentMethodBlankSpaceCell, 0, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n\n FundingSourceResponse[] fundingSources = receiptResponse.getFundingSources();\n\n if (fundingSources.length != 0) {\n for (final FundingSourceResponse aFundingSource1 : fundingSources) {\n if (aFundingSource1 != null) {\n if (aFundingSource1.getType().equalsIgnoreCase(PdfConstants.CREDIT)) {\n LOGGER.debug(\"Entered in to credits section : \" + aFundingSource1.getType());\n creditFundingSection(locale, paymentMethodTable,\n new BigDecimal(getUsedAmountFromFunding(aFundingSource1)));\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + getUsedAmountFromFunding(aFundingSource1);\n }\n }\n }\n for (final FundingSourceResponse aFundingSource : fundingSources) {\n if (aFundingSource instanceof VestaFundingSourceResponse) {\n VestaFundingSourceResponse vestaFundingSourceResponse =\n (VestaFundingSourceResponse) aFundingSource;\n String tenderType = vestaFundingSourceResponse.getTenderType();\n CardBrand cardBrand = vestaFundingSourceResponse.getCardBrand();\n if (tenderType.equalsIgnoreCase(PdfConstants.DEBIT) ||\n tenderType.equalsIgnoreCase(PdfConstants.CREDIT)) {\n PdfPCell cardNumberCell = new PdfPCell(new Phrase(getMessage(locale, \"pdf.receipt.cardPinMsg\",\n getTenderTypeForCard(tenderType,\n locale),\n getCardBrandText(cardBrand,\n locale),\n vestaFundingSourceResponse\n .getCardLast4()),\n getFont(null, FONT_SIZE_12, Font.NORMAL)));\n PdfPCell amountSectionCell = new PdfPCell(new Phrase(getFormattedAmount(new BigDecimal(\n getUsedAmountFromFunding(vestaFundingSourceResponse))),\n getFont(null, FONT_SIZE_12, Font.NORMAL)));\n cellAlignment(cardNumberCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, cardNumberCell, Rectangle.NO_BORDER, 0, 15);\n\n cellAlignment(amountSectionCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, amountSectionCell, Rectangle.NO_BORDER, 0, 0);\n chargedOnSection(locale, paymentMethodTable, paymentMethodBlankSpaceCell, receiptResponse);\n totalPaymentApplied =\n totalPaymentApplied + getUsedAmountFromFunding(vestaFundingSourceResponse);\n continue;\n }\n }\n\n if (aFundingSource != null) {\n if (getCashStatus(aFundingSource.getType())) {\n cashFundingSection(paymentMethodTable, locale, aFundingSource);\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + getUsedAmountFromFunding(aFundingSource);\n }\n }\n }\n } else {\n creditFundingSection(locale, paymentMethodTable, new BigDecimal(0));\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + 0;\n }\n\n\n calculateTotalPayment(locale, paymentMethodTable, totalPaymentApplied);\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n generatedNewCredits(locale, paymentMethodTable, receiptResponse.getCreditsGenerated());\n document.add(paymentMethodTable);\n }",
"@RequestMapping(\"/venPdf\")\r\n\tpublic String doPdfExport(ModelMap map){\r\n\t\tList<Vendor> venList=service.getAllVendors();\r\n\t\tmap.addAttribute(\"venList\",venList);\r\n\t\treturn \"VenPdfView\";\r\n\t}",
"public interface MultipleAddressBookService extends AddressBookService {\n\tAddressBook addContact(String addressBookName, String name, String phoneNumber);\n\tboolean removeContact(String addressBookName, String contactName);\n\tvoid printUniqueContacts();\n\tvoid printContacts(String addressBookName);\n\tContact getContact(String addressBookName, String contactName);\n}",
"public void addPDFDocument(emxPDFDocument_mxJPO document)\r\n {\r\n /*\r\n * Author : DJ\r\n * Date : 02/04/2003\r\n * Notes :\r\n * History :\r\n */\r\n super.add(document);\r\n }",
"public void processRequest(OAPageContext pageContext, OAWebBean webBean) {\n super.processRequest(pageContext, webBean);\n CuxDocinfoManageAMImpl pgAM = \n (CuxDocinfoManageAMImpl)pageContext.getRootApplicationModule();\n String docId = pageContext.getParameter(\"UpdateDocId\");\n if (docId == null || \"\".equals(docId)) {\n pgAM.initCreatePG();\n webBean.findChildRecursive(\"DocumentTypeName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.FALSE);\n webBean.findChildRecursive(\"CountryName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.FALSE);\n webBean.findChildRecursive(\"DocNumber\").setAttributeValue(this.RENDERED_ATTR, \n Boolean.FALSE);\n webBean.findChildRecursive(\"IsArchive\").setAttributeValue(this.RENDERED_ATTR, \n Boolean.FALSE);\n webBean.findChildRecursive(\"IsEndActive\").setAttributeValue(this.RENDERED_ATTR, \n Boolean.FALSE);\n } else {\n pgAM.initCreatePG(docId);\n webBean.findChildRecursive(\"IsArchive\").setAttributeValue(this.RENDERED_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"IsEndActive\").setAttributeValue(this.RENDERED_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"DocumentTypeName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"CountryName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"DocNumber\").setAttributeValue(this.RENDERED_ATTR, \n Boolean.TRUE);\n\n CuxDocinfoManageTVOImpl vo = pgAM.getCuxDocinfoManageTVO1();\n CuxDocinfoManageTVORowImpl row = \n (CuxDocinfoManageTVORowImpl)vo.first();\n\n if (\"CON\".equals(row.getDocTypeCode())) {\n webBean.findChildRecursive(\"DocNumber\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.FALSE);\n }\n\n /*归档后仅能失效或者取消归档*/\n if (\"Y\".equals(row.getIsArchive())) {\n webBean.findChildRecursive(\"DocNumber\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"AreaAlias\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"ProjectName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"RelationCorpName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"OtherCorpName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"LangName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"IsSigned\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"DocCopyName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"IsEvlSheet\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"SubmitterPersonName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"Remark\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n\n }\n if (\"Y\".equals(row.getIsEndActive())) {\n webBean.findChildRecursive(\"DocNumber\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"AreaAlias\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"ProjectName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"RelationCorpName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"OtherCorpName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"LangName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"IsSigned\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"DocCopyName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"IsEvlSheet\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"SubmitterPersonName\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"Remark\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"IsArchive\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n webBean.findChildRecursive(\"IsEndActive\").setAttributeValue(this.READ_ONLY_ATTR, \n Boolean.TRUE);\n\n }\n\n }\n\n }",
"protected DownloadAction.StreamInfo getStreamInfo(ActionMapping mapping,\n ActionForm form,\n HttpServletRequest request,\n HttpServletResponse response)\n throws Exception {\n String contentType = \"application/pdf\";\n System.out.println(\"\");\n\n String fileDir=\"/tratado\"; //directory where all files are created and located \n String fileName=\"/tratado.pdf\"; \n \n File file = new File(request.getRealPath(\"/WEB-INF\")+fileDir+fileName);\n\n\n FileOutputStream f = new FileOutputStream(file);\n Document document = new Document();\n\n try {\n PdfWriter writer = PdfWriter.getInstance(document, f);\n// PdfContentByte cb = writer.getDirectContent();\n Rectangle rct = new Rectangle(36, 54, 559, 788);\n //Definimos un nombre y un tamaño para el PageBox los nombres\n //posibles son: “crop”, “trim”, “art” and “bleed”.\n writer.setBoxSize(\"art\", rct);\n //HeaderFooter event = new HeaderFooter(this.getId(), this.getNumAutenticacion());\n //writer.setPageEvent(event);\n document.open();\n \n PdfContentByte cb = writer.getDirectContent();\n cb.saveState();\n cb.setColorStroke(new CMYKColor(1f, 0f, 0f, 0f));\n cb.setColorFill(new CMYKColor(1f, 0f, 0f, 0f));\n cb.rectangle(20,10,10,820);\n cb.fill();\n cb.restoreState();\n \n //Encabezado\n Font fuenteEnc = new Font(Font.getFamily(\"ARIAL\"), 10, Font.BOLD);\n Font fuenteTitulo = new Font(Font.getFamily(\"ARIAL\"), 12, Font.BOLD);\n Font fuenteText = new Font(Font.getFamily(\"ARIAL\"), 10);\n DateFormat dates = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date date = new Date();\n //Logos\n //http://upload.wikimedia.org/wikipedia/commons/2/21/USB_logo.svg USB\n \n Image usblogo = Image.getInstance(request.getRealPath(\"/interfaz/imagenes/StickerIAEAL2.png\"));\n usblogo.scaleAbsolute(100f, 50f);\n usblogo.setAbsolutePosition(430f, 740f);\n document.add(usblogo);\n \n usblogo = Image.getInstance(request.getRealPath(\"/interfaz/imagenes/logoUSB.png\"));\n usblogo.scaleAbsolute(80f, 45f);\n usblogo.setAbsolutePosition(90f, 740f);\n document.add(usblogo);\n \n\n String encabezado = \"\\nSartenejas \" + dates.format(date) + \"\\n\"\n + \"República Bolivariana de Venezuela \\n\"\n + \"Universidad Simón Bolívar \\n\"\n + \"Instituto de Altos Estudios de América Latina \\n\"\n + \"Sistema de Tratados y Acuerdos Internacionales de Venezuela\\n\";\n Paragraph pa = new Paragraph(encabezado, fuenteEnc);\n pa.setSpacingBefore(50);\n pa.setSpacingAfter(50);\n pa.setIndentationLeft(50);\n document.add(pa);\n\n // Titulo del Tratado.\n\n PdfPTable cuadro = new PdfPTable(1);\n Paragraph p = new Paragraph(\"Título: \\n\\n\\n\\n\\n\", fuenteTitulo);\n cuadro.addCell(p);\n document.add(cuadro);\n\n PdfPTable cuadro1 = new PdfPTable(2);\n\n String s = \"Fecha de Firma: \";\n p = new Paragraph(s, fuenteText);\n PdfPCell cell1 = new PdfPCell(p);\n cuadro1.addCell(cell1);\n\n s = \"Lugar de Firma: \\n\\n\\n\";\n cuadro1.addCell(new Paragraph(s, fuenteText));\n\n s = \"Fecha de Depósito: \\n\\n\\n\";\n cuadro1.addCell(new Paragraph(s, fuenteText));\n\n s = \"Entrada en Vigor: \\n\\n\\n\";\n cuadro1.addCell(new Paragraph(s, fuenteText));\n\n s = \"Fecha de Publicación en Gaceta Oficial: \\n\\n\\n\";\n cuadro1.addCell(new Paragraph(s, fuenteText));\n\n s = \"Numero de Gaceta Oficial: \\n\\n\\n\";\n cuadro1.addCell(new Paragraph(s, fuenteText));\n\n s = \"Duración: \\n\\n\\n\";\n cuadro1.addCell(new Paragraph(s, fuenteText));\n\n s = \"Período: \\n\\n\\n\";\n cuadro1.addCell(new Paragraph(s, fuenteText));\n\n s = \"Volúmen: \\n\\n\\n\";\n cuadro1.addCell(new Paragraph(s, fuenteText));\n\n s = \"Página: \\n\\n\\n\";\n cuadro1.addCell(new Paragraph(s, fuenteText));\n\n s = \"Países: \\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\";\n cuadro1.addCell(new Paragraph(s, fuenteText));\n\n s = \"Grupos: \\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\";\n cuadro1.addCell(new Paragraph(s, fuenteText));\n\n document.add(cuadro1);\n document.close();\n f.flush();\n f.close();\n } catch (Exception e) {\n //imprimimos los errores\n System.err.println(e);\n e.printStackTrace();\n }\n return new DownloadAction.FileStreamInfo(contentType, file);\n }",
"public interface WordService {\n boolean updateFile(String keyword,String FileId);\n String selectFile(String keyword);\n boolean saveFile(String keyword,String fileId);\n\n}",
"@GetMapping(value = \"/pdf\", produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<String> generatePDFReport() {\n LOGGER.info(\"Generating Fund PDF report.\");\n\n // ReportPdfExporter pdfExporter = context.getBean(ReportPdfExporter.class);\n boolean success =false;\n if(configFilter().getJasperPrint() != null) {\n pdfExporter.setJasperPrint(configFilter().getJasperPrint());\n success = pdfExporter.exportToPdf(\"fundReport.pdf\");\n }\n if (success) {\n return new ResponseEntity<>(\"PDF Report is successfully generated \", HttpStatus.OK);\n } else {\n return new ResponseEntity<>(\"PDF Report cannot be generated \", HttpStatus.OK);\n }\n }",
"private void uploadDocFiles()\n {\n fileCount = imageDragableGridView.getUpdatedImageListWithoutPlus().size() - 1;\n base64String = Helper.convertFileToByteArray(imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getPath());\n\n String filePath = \"\";\n if (imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getDocPath().isEmpty())\n {\n filePath = imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getPath();\n } else\n {\n filePath = imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getDocPath();\n }\n\n if (HelperHttp.isNetworkAvailable(getActivity()))\n\n {\n //Add parameters to request in arraylist\n ArrayList<Parameter> parameterList = new ArrayList<Parameter>();\n parameterList.add(new Parameter(\"userHash\", DataManager.getInstance().user.getUserHash(), String.class));\n parameterList.add(new Parameter(\"bas64Doc\", base64String, String.class));\n parameterList.add(new Parameter(\"fileName\", filePath, String.class));\n parameterList.add(new Parameter(\"planTaskID\", planTaskId, String.class));\n\n //create web service inputs\n DataInObject inObj = new DataInObject();\n inObj.setMethodname(\"NewSupportRequestDoc\");\n inObj.setNamespace(Constants.TEMP_URI_NAMESPACE);\n inObj.setSoapAction(Constants.TEMP_URI_NAMESPACE + \"IPlannerService/NewSupportRequestDoc\");\n inObj.setUrl(Constants.PLANNER_WEBSERVICE_URL);\n inObj.setParameterList(parameterList);\n\n //Network call\n showProgressDialog();\n new WebServiceTask(getActivity(), inObj, false, new TaskListener()\n {\n\n @Override\n public void onTaskComplete(Object result)\n {\n CustomDialogManager.showOkDialog(getActivity(), successMessage, new DialogListener()\n {\n @Override\n public void onButtonClicked(int type)\n {\n hideProgressDialog();\n if (getFragmentManager().getBackStackEntryCount() != 0)\n {\n getFragmentManager().popBackStack();\n } else\n\n {\n getActivity().finish();\n }\n }\n });\n }\n }).execute();\n } else\n {\n CustomDialogManager.showOkDialog(getActivity(), getString(R.string.no_internet_connection));\n }\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n logger.info(\"--->>>GeneradorReportesAdapter:RequestURI=\"+request.getRequestURI());\r\n String param_dynamic = request.getParameter(\"dynamic\");\r\n \r\n if(param_dynamic==null){\r\n param_dynamic=\"false\";\r\n }else if(!param_dynamic.equals(\"true\")){\r\n param_dynamic=\"false\";\r\n }\r\n String absoluteURL = \r\n request.getScheme() + \"://\" + // \"http\" + \"://\r\n request.getServerName() + // \"localhost\"\r\n \":\" + // \":\"\r\n request.getServerPort() + // \"8080\"\r\n request.getContextPath(); // \"/AMX-PAB-Web\"\r\n \r\n if(request.getRequestURI().indexOf(TSU_REPORTES_PATH)>TSU_REPORTES_PATH.length()+2){\r\n logger.info(\"--->>>GeneradorReportesAdapter:TSU Report !\");\r\n }\r\n \r\n String cveTsu = null; \r\n cveTsu = request.getRequestURI().substring(request.getRequestURI().indexOf(TSU_REPORTES_PATH)+TSU_REPORTES_PATH.length());\r\n logger.info(\"--->>>GeneradorReportesAdapter:tsuUri=\"+cveTsu);\r\n \r\n \r\n InputStream is=null;\r\n OutputStream os = null;\r\n byte[] contentPdf = null;\r\n \r\n try{\r\n logger.info(\"--->>>GeneradorReportesAdapter: calling EJB, param_dynamic=\"+param_dynamic+\", absoluteURL=\"+absoluteURL);\r\n\r\n contentPdf = generadorReportesPDF.generarReporteTSU(cveTsu,param_dynamic.equals(\"true\"), absoluteURL);\r\n \r\n logger.info(\"--->>>GeneradorReportesAdapter: after call, contentPdf=\"+contentPdf);\r\n if(contentPdf == null){\r\n throw new IOException(\"Erro generating, not generated\");\r\n }\r\n }catch(IOException ex){\r\n logger.error(\"Error Searchibg:\",ex);\r\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\r\n return;\r\n }catch(Exception ex){\r\n logger.error(\"Error Searchibg:\",ex);\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n return;\r\n }\r\n \r\n try{\r\n is=new ByteArrayInputStream(contentPdf);\r\n response.getOutputStream();\r\n\r\n response.setStatus(HttpServletResponse.SC_OK);\r\n response.setContentLength(contentPdf.length);\r\n response.setContentType(\"application/pdf\"); \r\n response.setHeader(\"Content-Disposition\", \"inline; filename=TSU_212123.PDF\");\r\n \r\n byte[] buffer = new byte[1024*32];\r\n int r;\r\n os = response.getOutputStream();\r\n logger.info(\"--->>>GeneradorReportesAdapter: contentn.length=\"+contentPdf.length);\r\n while((r = is.read(buffer, 0, buffer.length))!= -1){\r\n os.write(buffer, 0, r);\r\n os.flush();\r\n }\r\n os.close();\r\n is.close();\r\n logger.info(\"--->>>GeneradorReportesAdapter: END Dispatching !\"); \r\n }catch(IOException io){\r\n logger.error(\"Error Rendering\",io);\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n return;\r\n } \r\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n\n // creating the document object\n Document document = new Document(PageSize.A4, 30, 30, 30, 30);\n\n // creating an OutputStream\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n\n // get data from session\n LLAppMain llAppMain = new LLAppMain();\n long oidLLAppMain = FRMQueryString.requestLong(request, \"oidLLAppMain\");\n try\n {\n llAppMain = PstLLAppMain.fetchExc(oidLLAppMain);\n }\n catch(Exception e)\n {\n System.out.println(\"Exc : \"+e.toString());\n }\n \n //First Config\n String[] aTitle = {\n \"LONG LEAVE (LL) REQUEST\"\n };\n\n //Setting Footer\n String strFooterText = \"Hard Rock Hotel - Bali | \";\n boolean isUsePageFooter = false;\n String strFooterDateFormat = \"MMMM dd, yyyy\";\n\n boolean isUseLogo = true;\n \n try {\n\n // creating an instance of the writer\n PdfWriter writer = PdfWriter.getInstance(document, baos);\n \n // step 3.1: adding some metadata to the document\n document.addSubject(\"This is a subject.\");\n document.addSubject(\"This is a subject two.\"); \n \n // FOOTER\n HeaderFooter footer = new HeaderFooter(new Phrase(strFooterText+Formater.formatDate(new Date(), strFooterDateFormat), fontHeaderSmall),isUsePageFooter);\n footer.setAlignment(Element.ALIGN_RIGHT);\n footer.setBorder(Rectangle.TOP);\n footer.setBorderColor(blackColor);\n // document.setFooter(footer);\n \n // step 3.4: opening the document\n document.open();\n \n //INFORMATION\n //Header\n Table tableHeader = createHeader(aTitle,isUseLogo);\n document.add(tableHeader);\n \n //Emp Date\n Table tableEmpDetail = createEmpId(llAppMain);\n createDetail(llAppMain, tableEmpDetail);\n createApproval(llAppMain, tableEmpDetail);\n document.add(tableEmpDetail);\n \n //Menampilkan Report\n \n \n //End -- Menampilkan Report\n \n }\n catch(DocumentException de) \n {\n System.err.println(de.getMessage());\n de.printStackTrace();\n }\n\n // closing the document \n document.close();\n\n // we have written the pdfstream to a ByteArrayOutputStream, now going to write this outputStream to the ServletOutputStream\n\t// after we have set the contentlength \n response.setContentType(\"application/pdf\");\n response.setContentLength(baos.size());\n ServletOutputStream out = response.getOutputStream();\n baos.writeTo(out);\n out.flush();\n }",
"private void merge(Document doc)\n throws PSFUDNullDocumentsException,\n PSFUDMergeDocumentsException\n {\n PSFUDDocMerger merger = new PSFUDDocMerger(m_snapshotDoc, doc);\n merger.merge(this);\n }",
"public void processVendorReturnDocs(ReturnDocument rdoc) {\r\n\r\n if (rdoc.getVendorReturnDoc() != null) {\r\n ReturnDocument vdoc = rdoc.getVendorReturnDoc();\r\n try {\r\n\r\n KNSServiceLocator.getDocumentService().saveDocument(vdoc);\r\n\r\n if (!vdoc.getDocumentHeader().hasWorkflowDocument())\r\n vdoc = (ReturnDocument) KNSServiceLocator.getDocumentService()\r\n .getByDocumentHeaderId(vdoc.getDocumentNumber());\r\n\r\n vdoc.getDocumentHeader().getWorkflowDocument().routeDocument(\r\n \"Document submitted automatically\");\r\n\r\n }\r\n catch (Exception e) {\r\n throw new RuntimeException(\"Vendor document could not be routed.\");\r\n }\r\n\r\n }\r\n\r\n }",
"public void FileDownloadView(PojoPropuestaConvenio pojo) throws IOException {\n BufferedOutputStream out = null;\n try {\n String extension = null;\n String nombre = null;\n String contentType = null;\n InputStream stream = null;\n listadoDocumento = documentoService.getDocumentFindCovenio(pojo.getID_PROPUESTA());\n\n for (Documento doc : listadoDocumento) {\n if (doc.getIdTipoDocumento().getNombreDocumento().equalsIgnoreCase(TIPO_DOCUMENTO)) {\n if (getFileExtension(doc.getNombreDocumento()).equalsIgnoreCase(\"pdf\")) {\n stream = new ByteArrayInputStream(doc.getDocumento());\n nombre = doc.getNombreDocumento();\n extension = \"pdf\";\n }\n }\n }\n\n if (extension != null) {\n if (extension.equalsIgnoreCase(\"pdf\")) {\n contentType = \"Application/pdf\";\n }\n content = new DefaultStreamedContent(stream, contentType, nombre);\n } else {\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_WARN, \"Documento\", \"No se cuenta con documento firmado para descargar\"));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (out != null) {\n out.close();\n }\n }\n\n }",
"public interface ReplaceBinariesService {\n\n /**\n * Replace an existing binary.\n *\n * @param tx The transaction for the request.\n * @param userPrincipal the user performing the service\n * @param fedoraId The internal identifier of the parent.\n * @param filename The filename of the binary.\n * @param contentType The content-type header or null if none.\n * @param digests The binary digest or null if none.\n * @param size The binary size.\n * @param contentBody The request body or null if none.\n * @param externalContent The external content handler or null if none.\n */\n void perform(Transaction tx,\n String userPrincipal,\n FedoraId fedoraId,\n String filename,\n String contentType,\n Collection<URI> digests,\n InputStream contentBody,\n long size,\n ExternalContent externalContent);\n}",
"public void createPDF(Loan loan, boolean isSwedish, String path, int count, String pathname) \n throws FileNotFoundException, DocumentException {\n log.info(\"createPDF : {} -- {}\", path, isSwedish);\n\n this.isSwedish = isSwedish;\n\n switch (pathname) {\n case \"local\":\n externalPath = LOCAL_EXTERNAL_FILES;\n break;\n case \"dina-loans\":\n externalPath = REMOTE_EXTERNAL_FILES_LOANS;\n break;\n default:\n externalPath = REMOTE_EXTERNAL_FILES_AS;\n break;\n }\n\n StringBuilder sb = new StringBuilder();\n sb.append(path);\n sb.append(\"/loanrequest_\");\n sb.append(loan.getId());\n\n File summaryAdminFile = new File(sb.toString() + \"_admin.pdf\"); \n sb.append(\".pdf\");\n File summaryFile = new File(sb.toString().trim()); \n\n document = new Document(PageSize.LETTER);\n adminDocument = new Document(PageSize.LETTER);\n PdfWriter.getInstance(document, new FileOutputStream(summaryFile));\n PdfWriter.getInstance(adminDocument, new FileOutputStream(summaryAdminFile));\n document.open();\n adminDocument.open();\n\n addTitle(loan);\n addContact(loan);\n\n switch (count) {\n case 9:\n addLoanRequestForScientificPurpose(loan);\n addLoanSampleList(loan);\n if (!RequestType.Information.isInformation(loan.getType())) {\n if (RequestType.Physical.isPhysical(loan.getType())) {\n addDestructiveInformation(loan);\n } else {\n addPhotoInformation(loan);\n }\n addCITESInformation(loan);\n } break;\n case 7:\n addEducationRequest(loan);\n break;\n default:\n addCommercialInformation(loan);\n break;\n }\n\n if (!RequestType.Information.isInformation(loan.getType())) {\n addTermsOfLoanAgreement();\n }\n document.close();\n adminDocument.close();\n }",
"public interface INodeFileCabin {\r\n /**\r\n * Get Documents According to TransID or DataFlow\r\n * @param tIDorDataFlow String TRANS_ID or DATAFLOW_NAME\r\n * @param isTransID true if TransID, false if DataFlow\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (String tIDorDataFlow, boolean isTransID);\r\n\r\n /**\r\n * Get Documents According to Names in ClsNodeDocument[]\r\n * @param searchDocs ClsNodeDocument[] Search Criteria\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (ClsNodeDocument[] searchDocs);\r\n\r\n /**\r\n * Get Documents According to TransID and DataFlow\r\n * @param transID String TRANS_ID\r\n * @param dataFlow String DATAFLOW_NAME\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (String transID, String dataFlow);\r\n\r\n /**\r\n * Get Documents According to TransID and DataFlow\r\n * @param transID String TRANS_ID\r\n * @param dataFlow String DATAFLOW_NAME\r\n * @param searchDocs ClsNodeDocument[] FILE_NAME\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (String transID, String dataFlow, ClsNodeDocument[] searchDocs);\r\n\r\n /**\r\n * Get Documents According to TransID and DataFlow\r\n * @param transID String TRANS_ID\r\n * @param dataFlow String DATAFLOW_NAME\r\n * @param operation String OPERATION_NAME\r\n * @param searchDocs ClsNodeDocument[] FILE_NAME\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (String transID, String dataFlow,String[] operationArr, ClsNodeDocument[] searchDocs);\r\n /**\r\n * Upload Documents to the Database\r\n * @param docs Documents to be upload (required)\r\n * @param transID String TRANS_ID (optional, although strongly recommended)\r\n * @param status String STATUS (optional)\r\n * @param dataFlow String DATAFLOW_NAME (optional)\r\n * @param submitURL String SUBMIT_URL (optional)\r\n * @param token String SUBMIT_TOKEN (optional)\r\n * @param submitted Date SUBMIT_DATE (optional)\r\n * @param submittedTS Timestamp SUBMIT_DATE (optional)\r\n * @return boolean true if successful, false otherwise\r\n */\r\n public boolean UploadDocuments (ClsNodeDocument[] docs, String transID, String status, String dataFlow, String submitURL, String token, Date submitted, Timestamp submittedTS, String user);\r\n\r\n /**\r\n * Upload Documents to the Database\r\n * @param docs Documents to be upload (required)\r\n * @param transID String TRANS_ID (optional, although strongly recommended)\r\n * @param status String STATUS (optional)\r\n * @param dataFlow String DATAFLOW_NAME (optional)\r\n * @param submitURL String SUBMIT_URL (optional)\r\n * @param token String SUBMIT_TOKEN (optional)\r\n * @param submitted Date SUBMIT_DATE (optional)\r\n * @param submittedTS Timestamp SUBMIT_DATE (optional)\r\n * @return boolean true if successful, false otherwise\r\n */\r\n public boolean UploadHugeDocuments (ClsNodeDocument[] docs, String transID, String status, String dataFlow, String submitURL, String token, Date submitted, Timestamp submittedTS, String user);\r\n\t// WI 22695\r\n /**\r\n * Upload Documents to the Database without delete the temp file\r\n * @param docs Documents to be upload (required)\r\n * @param transID String TRANS_ID (optional, although strongly recommended)\r\n * @param status String STATUS (optional)\r\n * @param dataFlow String DATAFLOW_NAME (optional)\r\n * @param submitURL String SUBMIT_URL (optional)\r\n * @param token String SUBMIT_TOKEN (optional)\r\n * @param submitted Date SUBMIT_DATE (optional)\r\n * @param submittedTS Timestamp SUBMIT_DATE (optional)\r\n * @return boolean true if successful, false otherwise\r\n */\r\n public boolean UploadHugeDocumentsWithoutDelete (ClsNodeDocument[] docs, String transID, String status, String dataFlow, String submitURL, String token, Date submitted, Timestamp submittedTS, String user);\r\n /**\r\n * Query Documents\r\n * @param transID String TRANS_ID\r\n * @param dataFlow String DATAFLOW_NAME\r\n * @param names String[] Search Names\r\n * @return XmlDocument Return Result, null if no documents found\r\n */\r\n public XmlDocument QueryDocs (String transID, String dataFlow, String[] names);\r\n\r\n /**\r\n * Search Documents\r\n * @param docName String\r\n * @param transID String\r\n * @param domainName String\r\n * @param opName String\r\n * @param start Date\r\n * @param end Date\r\n * @return Document[]\r\n */\r\n public Document[] SearchDocuments (String docName, String transID, String domainName, String opName, Date start, Date end, String[] adminDomains, String version_no);\r\n\r\n /**\r\n * Get Unique Operations\r\n * @param domains String[] Domains Admin has rights to, null for all operations\r\n * @return String[]\r\n */\r\n public String[] GetOperationNames (String[] domains);\r\n\r\n /**\r\n * Get Document\r\n * @param fileID int\r\n * @return Document\r\n */\r\n public Document GetDocument (int fileID);\r\n\r\n /**\r\n * Get Document\r\n * @param fileID int\r\n * @return Document\r\n * The content of Document object is the temporary file path, not real data\r\n */\r\n public Document GetHugeDocument (int fileID);\r\n\r\n /**\r\n * Remove Documents\r\n * @param fileIDs int[]\r\n * @return boolean\r\n */\r\n public boolean RemoveDocuments (int[] fileIDs);\r\n\r\n /**\r\n * Remove Documents\r\n * @param transID String\r\n * @param names String[]\r\n * @return boolean\r\n */\r\n public boolean RemoveDocuments (String transID, String[] names);\r\n\r\n /**\r\n * Get Document Transanction ID\r\n * @param fileID int\r\n * @return Document\r\n */\r\n public String GetDocumentTransactionID (int fileID);\r\n\r\n /**\r\n * SaveDocument\r\n * @param fileID\r\n * @param transID\r\n * @param fileName\r\n * @param fileType\r\n * @param status\r\n * @param dataFlow\r\n * @param submitURL\r\n * @param submitToken\r\n * @param submitDate\r\n * @param content\r\n * @param user\r\n * @return String\r\n */\r\n public String SaveDocument (int fileID, String transID, String fileName, String fileType, String status, String dataFlow,\r\n String submitURL, String submitToken, Date submitDate, byte[] content, String user);\r\n\r\n /**\r\n * SaveDocument\r\n * @param fileID\r\n * @param documentID\r\n * @param transID\r\n * @param fileName\r\n * @param fileType\r\n * @param status\r\n * @param dataFlow\r\n * @param submitURL\r\n * @param submitToken\r\n * @param submitDate\r\n * @param content\r\n * @param user\r\n * @return String\r\n */\r\n public String SaveDocument (int fileID, String documentID,String transID, String fileName, String fileType, String status, String dataFlow,\r\n String submitURL, String submitToken, Date submitDate, byte[] content, String user);\r\n}",
"@Test\r\n\tpublic void testCreatePdf(){\n\t}"
] | [
"0.6031893",
"0.601406",
"0.59906906",
"0.59673697",
"0.580601",
"0.5755745",
"0.5643843",
"0.56241024",
"0.55947185",
"0.5550663",
"0.55355674",
"0.55125797",
"0.55118674",
"0.54990184",
"0.54797244",
"0.5466437",
"0.5441747",
"0.542551",
"0.5294772",
"0.5256541",
"0.5224523",
"0.52152073",
"0.51953846",
"0.51899356",
"0.5185898",
"0.5183174",
"0.5175751",
"0.5171103",
"0.5156098",
"0.51456755",
"0.5140852",
"0.5138388",
"0.5134154",
"0.51258534",
"0.5116201",
"0.51091427",
"0.5106771",
"0.50938976",
"0.5092265",
"0.50905293",
"0.50863874",
"0.5084932",
"0.50846237",
"0.5078954",
"0.50745267",
"0.5057852",
"0.50534487",
"0.5047453",
"0.503637",
"0.5030192",
"0.50279516",
"0.5022873",
"0.5015019",
"0.5013614",
"0.500673",
"0.5000978",
"0.5000297",
"0.49848214",
"0.4981008",
"0.49685732",
"0.49660373",
"0.49418363",
"0.4940576",
"0.49356547",
"0.49337408",
"0.49292964",
"0.4929181",
"0.49197757",
"0.4914639",
"0.49009317",
"0.48990783",
"0.48976994",
"0.48966652",
"0.48951447",
"0.4884319",
"0.48835325",
"0.48802912",
"0.4874632",
"0.48705646",
"0.48687983",
"0.4866765",
"0.4865462",
"0.4861394",
"0.48594087",
"0.48515964",
"0.48506197",
"0.4849307",
"0.4843085",
"0.4837126",
"0.48371154",
"0.48344383",
"0.48288193",
"0.48274592",
"0.48273864",
"0.48269066",
"0.48177004",
"0.48168117",
"0.4814044",
"0.4809169",
"0.480811"
] | 0.79789996 | 0 |
JsonWrapper wrapper = new JsonWrapper(""); | @Override
public JsonWrapper buildExtend0(JsonWrapper wrapper) {
wrapper.putString(1, StringUtil.implode(huConfirmList, ","));
wrapper.putInt(2, moFlag);
wrapper.putInt(3, toPlayCardFlag);
wrapper.putInt(4, moSeat);
if (moSeatPair != null) {
String moSeatPairVal = moSeatPair.getId() + "_" + moSeatPair.getValue();
wrapper.putString(5, moSeatPairVal);
}
if (autoDisBean != null) {
wrapper.putString(6, autoDisBean.buildAutoDisStr());
} else {
wrapper.putString(6, "");
}
if (zaiCard != null) {
wrapper.putInt(7, zaiCard.getId());
}
wrapper.putInt(8, sendPaoSeat);
wrapper.putInt(9, firstCard ? 1 : 0);
if (beRemoveCard != null) {
wrapper.putInt(10, beRemoveCard.getId());
}
wrapper.putInt(12, maxPlayerCount);
wrapper.putString("startLeftCards", startLeftCardsToJSON());
wrapper.putInt(13, ceiling);
wrapper.putInt(15, isLianBanker);
wrapper.putInt("catCardCount", catCardCount);
wrapper.putInt(17, jiaBei);
wrapper.putInt(18, jiaBeiFen);
wrapper.putInt(19, jiaBeiShu);
wrapper.putInt(20, autoPlayGlob);
wrapper.putInt(21, autoTimeOut);
JSONArray tempJsonArray = new JSONArray();
for (int seat : tempActionMap.keySet()) {
tempJsonArray.add(tempActionMap.get(seat).buildData());
}
wrapper.putString("22", tempJsonArray.toString());
wrapper.putInt(24, finishFapai);
wrapper.putInt(25, below);
wrapper.putInt(26, belowAdd);
wrapper.putInt(27, paoHu);
wrapper.putInt(28, disCardCout1);
wrapper.putInt(29, randomSeat);
wrapper.putInt(30, noDui);
wrapper.putInt(31, fanZhongZhuang);
wrapper.putInt(32, daNiaoWF);
wrapper.putInt(33, xiaoQiDuiWF);
wrapper.putInt(34, daNiaoVal);
wrapper.putInt(35, suiJiZhuang);
wrapper.putInt(36, qiangzhiHu);
return wrapper;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private JSONHelper() {\r\n\t\tsuper();\r\n\t}",
"private JSON() {\n\t}",
"@Override\n\tpublic JSONObject getJSONObject() {\n\t\treturn wrapper;\n\t}",
"public JsonFactory() { this(null); }",
"private JsonUtils() {}",
"public JSONUtils() {\n\t\tsuper();\n\t}",
"public interface JSONAdapter {\n public JSONObject toJSONObject();\n}",
"public JSONModel() {\n jo = new JSONObject();\n }",
"public static ResponseWrapper fromJson(String json)\n\t{ \n\t\tResponseWrapper response = new ResponseWrapper();\n\t\tresponse.fromJsonCore(json, \"response\", (type) -> type.getResponseContentType()); \n\t\treturn response;\n\t}",
"public JSONBuilder() {\n\t\tthis(null, null);\n\t}",
"private JsonUtils() {\n\t\tsuper();\n\t}",
"private JsonUtils() { }",
"private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }",
"public JsonField() {\n }",
"public ClaseJson() {\n }",
"public interface SmeltValueSerializationStrategy extends SmeltJSONSerializationStrategy<SmeltValueWrapper<?, ?>> {\n}",
"public JsonArray() {\n }",
"public JSONLoader() {}",
"public JSONNode() {\n map = new HashMap<>();\n }",
"public JsonUtil() {\r\n this.jsonSerializer = new JSONSerializer().transform(new ExcludeTransformer(), void.class).exclude(\"*.class\");\r\n }",
"@Override\r\n\tpublic JSONObject toJSON() {\n\t\treturn null;\r\n\t}",
"@Override\n protected JsonUtil getJsonUtil() {\n return super.getJsonUtil();\n }",
"public MinecraftJson() {\n }",
"public ParamJson() {\n\t\n\t}",
"protected abstract Object buildJsonObject(R response);",
"public static JsonAdapter.Factory nullSafe(final JsonAdapter.Factory wrappedFactory) {\n return new JsonAdapter.Factory() {\n @Override public JsonAdapter<?> create(Type type, Set<? extends Annotation> annotations, Moshi moshi) {\n JsonAdapter<?> jsonAdapter = wrappedFactory.create(type, annotations, moshi);\n if (jsonAdapter != null) {\n return jsonAdapter.nullSafe();\n }\n return null;\n }\n };\n }",
"private JsonUtil() {\n this.parser = new JSONParser();\n get_text();\n }",
"public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }",
"JsonObject raw();",
"protected abstract JSONObject build();",
"public Response() {\n objectMap = new JSONObject<>();\n }",
"public static JSONWriter getInstance(){\n\t\treturn new JSONWriter();\n\t}",
"public JSONResponse(String jsonString) {\n this.jsonString = jsonString;\n }",
"@Test(timeout = 4000)\n public void test077() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONObject jSONObject1 = jSONObject0.putOpt(\"\", jSONObject0);\n jSONObject1.getJSONObject(\"\");\n Object object0 = JSONObject.NULL;\n JSONObject jSONObject2 = new JSONObject();\n assertEquals(0, jSONObject2.length());\n }",
"public void lite() {\n\t\t\r\n\t\tthis.setJson(\"[]\");\r\n\t\t\r\n\t\t\r\n\t}",
"JSONObject toJson();",
"JSONObject toJson();",
"public interface JsonStructure\n/* */ extends JsonValue\n/* */ {\n/* */ default JsonValue getValue(String jsonPointer) {\n/* 60 */ return Json.createPointer(jsonPointer).getValue(this);\n/* */ }\n/* */ }",
"public abstract Object toJson();",
"public interface Writable {\r\n // EFFECTS: returns this as JSON object\r\n JSONObject toJson();\r\n}",
"public final native String toJson() /*-{\n // Safari 4.0.5 appears not to honor the replacer argument, so we can't do this:\n \n // var replacer = function(key, value) {\n // if (key == '__key') {\n // return;\n // }\n // return value;\n // }\n // return $wnd.JSON.stringify(this, replacer);\n \n var key = this.__key;\n delete this.__key;\n var rf = this.__rf;\n delete this.__rf;\n var gwt = this.__gwt_ObjectId;\n delete this.__gwt_ObjectId;\n // TODO verify that the stringify() from json2.js works on IE\n var rtn = $wnd.JSON.stringify(this);\n this.__key = key;\n this.__rf = rf;\n this.__gwt_ObjectId = gwt;\n return rtn;\n }-*/;",
"public void testGetJSON() {\n\t}",
"private JSONMessageFactory(){}",
"@Test(timeout = 4000)\n public void test099() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONObject jSONObject1 = new JSONObject(jSONObject0);\n JSONObject jSONObject2 = jSONObject1.putOpt(\"\", jSONObject0);\n Byte.compare((byte)42, (byte)42);\n JSONObject.quote(\"\");\n Byte.toUnsignedInt((byte)42);\n JSONObject.valueToString(jSONObject2, (-1394), (-1394));\n JSONObject jSONObject3 = new JSONObject(\"{\\n\\\"java.lang.String@0000000003\\\": {},\\n\\\"java.lang.String@0000000004\\\": \\\"java.lang.Class@0000000005\\\"\\n}\");\n String string0 = \"&<uWyN63)KiOjjs&n3\";\n JSONObject jSONObject4 = null;\n try {\n jSONObject4 = new JSONObject(\"&<uWyN63)KiOjjs&n3\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // A JSONObject text must begin with '{' at character 1 of &<uWyN63)KiOjjs&n3\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test101() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONObject jSONObject1 = new JSONObject(jSONObject0);\n assertEquals(1, jSONObject1.length());\n \n jSONObject0.toJSONArray((JSONArray) null);\n JSONObject jSONObject2 = jSONObject0.put(\"false\", (Object) \"false\");\n boolean boolean0 = jSONObject2.getBoolean(\"false\");\n assertFalse(boolean0);\n \n String string0 = JSONObject.quote(\"true\");\n assertEquals(\"\\\"true\\\"\", string0);\n }",
"public abstract T zzb(JSONObject jSONObject);",
"public JsonObject()\n\t{\n\t\tsuper(ParserUtil.OBJECT_OPEN, ParserUtil.OBJECT_CLOSE);\n\t\tsetup();\n\t}",
"public interface JsonBean {\n String toJson();\n void fromJson(String json) throws Exception;\n}",
"public JsonHttpChannel(FromJsonHttp defaultConstructor) {\n this.defaultConstructor = defaultConstructor;\n }",
"public void setWrapper(String wrapper) {\n this.wrapper = wrapper == null ? null : wrapper.trim();\n }",
"@Test(timeout = 4000)\n public void test051() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n jSONObject0.putOpt((String) null, (Object) null);\n Object object0 = JSONObject.NULL;\n assertNotNull(object0);\n }",
"public JsonRequestSerializer() {\n this(JNC.GSON);\n }",
"@Override\n\tpublic JSONObject toJson() {\n\t\treturn null;\n\t}",
"Gson() {\n }",
"public interface ApiObject {\n\n String toJson();\n\n Object fromJson(JsonObject json);\n}",
"public SearchResponse(JSONObject json) throws JSONException {\r\n super(json);\r\n }",
"@Test\n public void testEmptyStringWithoutGetMethod() {\n JsonableTestClassWithoutGetMethod jtc = Jsonable.loadFromJson(\"{}\", JsonableTestClassWithoutGetMethod.class);\n assertEquals(0, jtc.publicDouble, 0);\n assertEquals(0, jtc.publicInt);\n assertEquals(0, jtc.publicFloat, 0);\n assertNull(jtc.publicString);\n assertEquals(0, jtc.getPrivateDouble(), 0);\n assertEquals(0, jtc.getPrivateFloat(), 0);\n assertEquals(0, jtc.getPrivateInt());\n assertNull(jtc.getPrivateString());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"publicDouble\\\":0\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"publicFloat\\\":0\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"publicInt\\\":0\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"publicString\\\":\\\"\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"privateInt\\\":0\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"privateFloat\\\":0\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"privateDouble\\\":0\"));\n assertThat(jsonString, Matchers.not(Matchers.containsString(\"\\\"privateString\\\"\")));\n }",
"public interface BaseFormModel {\n JSONObject toJson();\n}",
"@Test(timeout = 4000)\n public void test024() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n String[] stringArray0 = new String[0];\n JSONObject jSONObject1 = new JSONObject(jSONObject0, stringArray0);\n assertFalse(jSONObject1.equals((Object)jSONObject0));\n }",
"void mo28373a(JSONObject jSONObject);",
"private static JsonClient toBasicJson(Client client) {\r\n\t\tJsonClient jsonClient = new JsonClient();\r\n\t\tapplyBasicJsonValues(jsonClient, client);\r\n\t\treturn jsonClient;\r\n\t}",
"@Test(timeout = 4000)\n public void test069() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n LinkedList<Float> linkedList0 = new LinkedList<Float>();\n HashMap<Boolean, Integer> hashMap0 = new HashMap<Boolean, Integer>();\n JSONObject jSONObject1 = new JSONObject((Map) hashMap0);\n JSONArray jSONArray0 = jSONObject1.toJSONArray((JSONArray) null);\n assertNull(jSONArray0);\n }",
"@Override\r\n\tpublic JSONObject buildJson() {\n\t\tJSONObject json = new JSONObject();\r\n\t\ttry {\r\n\t\t\tsetInt(json,d_type,type);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogUtil.log.error(e.getMessage(),e);\r\n\t\t}\r\n\t\treturn json;\r\n\t}",
"public String getJson();",
"public interface IExchangeableByJSON {\r\n\r\n\t/**\r\n\t * Function called when we want to convert the object to a JSON string.\r\n\t * \r\n\t * @return\r\n\t * @throws JSONException\r\n\t */\r\n\tpublic String toJSON() throws JSONException;\r\n\r\n\r\n\t/**\r\n\t * Function called when we want to fill the object from its JSON\r\n\t * representation string.\r\n\t * \r\n\t * @param json\r\n\t * @throws JSONException\r\n\t */\r\n\tpublic void fromJSON(String json) throws JSONException;\r\n\r\n}",
"public abstract JsonWriter newWriter(Writer writer);",
"@Test\r\n public void testAllowNulls() {\r\n MapJsonRenderer renderer = new MapJsonRenderer(true);\r\n JSONStringer jsonWriter = new JSONStringer();\r\n jsonWriter.addRenderer(renderer);\r\n Map<String, Object> map = new LinkedHashMap<String, Object>();\r\n map.put(\"ff\", null);\r\n jsonWriter.value(map);\r\n\r\n assertEquals(jsonWriter.toString(), \"{\\\"ff\\\":null}\");\r\n }",
"public abstract JsonElement serialize();",
"public abstract String toJson();",
"String getJson();",
"String getJson();",
"String getJson();",
"@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}",
"@Test\n public void jsonTest() {\n // TODO: test json\n }",
"private static Gson gson() {\n return JsonUtils.buildGson(gb -> gb.registerTypeAdapter(Json.class, (JsonSerializer<Json>) (json, type, jsonSerializationContext) ->\n jsonParser.parse(json.value())\n ));\n }",
"private DatasetJsonConversion() {}",
"public AuthorizationJson() {\n }",
"public abstract String toJsonString();",
"public String getWrapper() {\n return wrapper;\n }",
"JSONConverter getDefaultConverter();",
"public static Value makeJSONStr() {\n return theJSONStr;\n }",
"TorrentJsonParser getJsonParser();",
"@Test(timeout = 4000)\n public void test090() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONObject jSONObject1 = new JSONObject();\n jSONObject1.putOpt(\"\", jSONObject0);\n Byte.compare((byte)47, (byte)47);\n JSONObject.quote(\"\");\n JSONObject jSONObject2 = jSONObject1.optJSONObject(\"\");\n assertNotSame(jSONObject1, jSONObject2);\n }",
"public static Json getInstance() {\n\t\treturn instance;\n\t}",
"Wrapper() {\n this(ResponseType.SUCCESS,\"\");\n }",
"public JSONModel(final JSONObject json) {\n if (json == null) {\n throw new IllegalArgumentException(\"JSONObject argument is null\");\n }\n jo = json;\n }",
"public ChatMember(JsonObject json) {\n\n }",
"public JSONModel(final String json) throws JSONException {\n jo = new JSONObject(json);\n }",
"public ValueWrapper(Object value) {\n\t\tsuper();\n\t\tthis.value = value;\n\t}",
"public JSONUser(){\n\t}",
"@Test\n public void jsonTest(){\n }",
"@Test(timeout = 4000)\n public void test046() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n LinkedList<JSONObject> linkedList0 = new LinkedList<JSONObject>();\n JSONArray jSONArray0 = new JSONArray((Collection) linkedList0);\n JSONArray jSONArray1 = jSONObject0.toJSONArray(jSONArray0);\n assertNull(jSONArray1);\n }",
"@Test(timeout = 4000)\n public void test070() throws Throwable {\n JSONObject.doubleToString(1.0);\n JSONTokener jSONTokener0 = new JSONTokener(\"{}\");\n JSONObject jSONObject0 = new JSONObject(jSONTokener0);\n assertEquals(0, jSONObject0.length());\n }",
"@Override\n public JSONObject getRequestJSON() throws JSONException {\n return null;\n }",
"public TestRunJsonParser(){\n }",
"public static JsonObjectBuilder object() {\n return new JsonObjectBuilder();\n }",
"@Override\r\n\tpublic Object toJSonObject() {\n\t\treturn null;\r\n\t}",
"@Test(timeout = 4000)\n public void test091() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n String string0 = \"*\";\n jSONObject0.putOpt(\"*\", jSONObject0);\n StringWriter stringWriter0 = new StringWriter();\n // Undeclared exception!\n jSONObject0.write(stringWriter0);\n }",
"T fromJson(Object source);",
"private static JSONObject m91738L() {\n JSONObject jSONObject = new JSONObject();\n try {\n jSONObject.put(\"is_photo\", 1);\n } catch (JSONException unused) {\n }\n return jSONObject;\n }"
] | [
"0.7049173",
"0.6695399",
"0.66720194",
"0.63130313",
"0.6273272",
"0.6218923",
"0.61662906",
"0.6162758",
"0.6149317",
"0.6100005",
"0.6099008",
"0.6096116",
"0.6058445",
"0.6055769",
"0.59919506",
"0.5907511",
"0.5898019",
"0.5885204",
"0.587227",
"0.5818105",
"0.58122396",
"0.5785402",
"0.5768183",
"0.5753909",
"0.5728412",
"0.5707348",
"0.5684104",
"0.56763405",
"0.5659563",
"0.5655702",
"0.5634019",
"0.5625571",
"0.5617961",
"0.56051224",
"0.55819666",
"0.55796754",
"0.55796754",
"0.55585414",
"0.55508554",
"0.554875",
"0.554753",
"0.55302364",
"0.5523602",
"0.55201375",
"0.5506167",
"0.5498591",
"0.5496048",
"0.5492042",
"0.54818285",
"0.54766935",
"0.5471354",
"0.54667145",
"0.54637665",
"0.54592466",
"0.5454387",
"0.5427854",
"0.5371476",
"0.5371119",
"0.5364453",
"0.5364156",
"0.5363895",
"0.5362473",
"0.5345023",
"0.5339509",
"0.5337358",
"0.5334613",
"0.5329119",
"0.53269595",
"0.531902",
"0.53118855",
"0.53118855",
"0.53118855",
"0.53116924",
"0.5311422",
"0.5307001",
"0.5305848",
"0.53049725",
"0.5301172",
"0.529978",
"0.5295405",
"0.5287339",
"0.52865887",
"0.52856165",
"0.5281304",
"0.52672774",
"0.5261753",
"0.525914",
"0.52577376",
"0.5243433",
"0.5241367",
"0.52340376",
"0.52266985",
"0.52188754",
"0.5215725",
"0.5210781",
"0.52091527",
"0.5206999",
"0.52009654",
"0.5196358",
"0.5190861"
] | 0.53766686 | 56 |
Object o = seatMap; | @Override
public Map<Integer, PenghuziPlayer> getSeatMap() {
return seatMap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static MapObject createMapObject(){\n\t\treturn new MapObject();\n\t}",
"public interface MapObjectType {\n}",
"void setMap(Map aMap);",
"MAP createMAP();",
"public final /* synthetic */ Object a(Object obj) {\n return ((Map.Entry) obj).getValue();\n }",
"@Test\n public void test1(){\n Map map = us.selectAll(1, 1);\n System.out.println(map);\n }",
"public abstract Map<K, V> a();",
"public T caseMapType(MapType object)\n {\n return null;\n }",
"public Map instantiateBackingMap(String sName);",
"public T caseMapChart(MapChart object)\n {\n return null;\n }",
"Map<String, String> mo14888a();",
"@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}",
"public abstract Map<String, Object> toMap(T object);",
"public void setInstanceOfMapForTesting(){\n instanceOfMap = null;\n }",
"@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}",
"private Map toMap(Scriptable scriptable) {\n \t\tif (scriptable instanceof MapWrapper)\n \t\t\treturn (Map) ((MapWrapper) scriptable).unwrap();\n \t\treturn new MapAdapter(scriptable);\n \t}",
"@SuppressWarnings(\"unchecked\")\n protected void setSimpleObjects(Object obj) {\n simpleObjects = (Map<String, Object>) obj;\n }",
"static Map instanceOfMap(int typeMap)\n {\n if(instanceOfMap==null)\n instanceOfMap = new Map(typeMap);\n return instanceOfMap;\n }",
"void writeObject(Map<Object, Object> map);",
"public void reAssign(Object o) {\n\t}",
"public Map(){\r\n map = new Square[0][0];\r\n }",
"void setHashMap();",
"public T caseMapping(Mapping object) {\n\t\treturn null;\n\t}",
"public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;",
"public Object objectAt(Position position){\n return mapElement.get(position);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Seatmap)) {\n return false;\n }\n Seatmap other = (Seatmap) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"public final /* bridge */ /* synthetic */ void mo6480a(Object obj) {\n this.f9049c.mo6949a((Map) obj, this.f9047a, this.f9048b);\n }",
"public void showRestaurantDetail(Map<String, Object> objectMap);",
"public Map() {\n\t\t//intially empty\n\t}",
"public SeatLocation() {\n }",
"public MapOther() {\n }",
"public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}",
"void m21808d(Object obj);",
"protected SortedMap getSortedMap() {\n/* 65 */ return (SortedMap)this.map;\n/* */ }",
"private Map<Integer, WorldAirport> getAirportMap(){\n\t\treturn this.airports;\n\t}",
"public HashMap<String,SupplyNode> getMap(){\n return t;\n }",
"void m21805a(Object obj);",
"@Override\r\n\tpublic void saveMap() {\n\r\n\t}",
"@Test\n public void testCreateHazardousMap2() {\n Map safeMap = safeCreator.createMap('s',mapSize);\n int size = safeMap.getSize();\n String type = safeMap.getType();\n assertEquals(10,size);\n assertEquals(\"Safe\",type);\n }",
"public void noncompliant() {\n Map<COLOR, String> moodMap = new HashMap<COLOR, String>(); // Noncompliant [[sc=34;ec=62]]\n new HashMap<COLOR, String>(); // Noncompliant\n Map<COLOR, String> moodMap2 = new HashMap<>(); // Noncompliant\n Map<COLOR, String> moodMap3 = new HashMap(); // Noncompliant\n Map moodMap4 = (new HashMap<COLOR, String>()); // Noncompliant\n\n Map<COLOR, String> map;\n map = new HashMap<>(); // Noncompliant [[sc=11;ec=26]]\n }",
"void mo67921a(Object obj);",
"void m21807c(Object obj);",
"@Override\n\tpublic <S extends Map<String, Object>> S save(S arg0) {\n\t\treturn null;\n\t}",
"private static Object mapValueToJava(Object value) {\n if (value instanceof Map) {\n value = ((Map<?, ?>) value).toMap();\n } else if (value instanceof Sequence) {\n value = ((Sequence<?>) value).toMappedList();\n } else if (value instanceof net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) {\n value = ((net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) value).toMappedSet();\n }\n return value;\n }",
"Map<String, String> asMap();",
"public SimpleMap getSimpleSolidMap() {\n\t\treturn m;\n\t}",
"public MapBean getMapBean() {\n return theMap;\n }",
"public abstract Map<Integer, Station> getStations() throws DataAccessException;",
"void m21806b(Object obj);",
"@Test\n public void test12() {\n cashRegister.addPennies(99);\n cashRegister.addDimes(2);\n cashRegister.addDimes(3);\n cashRegister.addFives(10);\n cashRegister.addNickels(4);\n cashRegister.addOnes(1);\n cashRegister.addQuarters(1);\n cashRegister.addTens(5);\n Map<Integer, Integer> map = new TreeMap<Integer, Integer>();\n map.put(1000,5);\n map.put(500,10);\n map.put(100,1);\n map.put(25,1);\n map.put(10,5);\n map.put(5,4);\n map.put(1,99);\n\n assertEquals(map,cashRegister.getContents());\n Map<Integer, Integer> map1 = new TreeMap<Integer, Integer>();\n map1 = cashRegister.getContents();\n map1.put(0,1);\n assertEquals(map,cashRegister.getContents());\n }",
"public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}",
"public Player(String name, Map<Integer,Element> moves){\n this.name = name;\n this.moves = moves;\n}",
"public abstract void createMap();",
"@Test\n public void test3() {\n Map<Integer, Integer> map1 = new TreeMap<Integer, Integer>();\n assertEquals(map1, cashRegister.getContents());\n }",
"public Object map(String key, Object input);",
"public HashMap findMap(int date, int route){\n HashMap x = new HashMap<>();\n try {\n if (route==1) {\n switch (date){\n case 1:\n x = (HashMap) reservedseats1;\n break;\n case 2:\n x = (HashMap) reservedseats2;\n break;\n case 3:\n x = (HashMap) reservedseats3;\n break;\n case 4:\n x = (HashMap) reservedseats4;\n break;\n case 5:\n x = (HashMap) reservedseats5;\n break;\n }\n\n } else if (route==2) {\n switch (date){\n case 1:\n x = (HashMap) reservedseats6;\n break;\n case 2:\n x = (HashMap) reservedseats7;\n break;\n case 3:\n x = (HashMap) reservedseats8;\n break;\n case 4:\n x = (HashMap) reservedseats9;\n break;\n case 5:\n x = (HashMap) reservedseats10;\n break;\n }\n } else {\n System.out.println(\"error!\");;\n }\n\n } catch (Exception e) {\n System.out.println(\"Error!\");\n\n }\n return x; //Returns hashmap to SeatReservation Class\n }",
"protected Map<String, Object> assertMap() {\n if (type == Type.LIST) {\n throw new FlexDataWrongTypeRuntimeException(type, Type.OBJECT); \n }\n if (entryCollectionMap == null) {\n entryCollectionMap = new LinkedHashMap<String, Object>();\n type = Type.OBJECT;\n }\n return entryCollectionMap;\n }",
"public Main()\r\n\t{\r\n\t\tload=new Load();\r\n\t\tmyMap=new MyMap();\r\n\t\tload.myMap=myMap;\r\n\t}",
"Seat getSeat(int seatId);",
"public T caseMappingContainer(MappingContainer object) {\n\t\treturn null;\n\t}",
"void mo3207a(Object obj);",
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"static void func2() {\n \t\n \tvar list = List.of(\"a\");\n \t\n \tvar set = Set.of(12L, 24L, 48L);\n \t\n \tvar map = Map.of(\"a\", 1, \"b\", 2);\n \t\n \tSystem.out.println(list);\n \tSystem.out.println(set);\n \tSystem.out.println(map);\n }",
"public static <K, V> Reference2ObjectMap<K, V> singleton(K key, V value) {\n/* 271 */ return new Singleton<>(key, value);\n/* */ }",
"protected Ocean(){\n for (int i=0; i<10; i++){\n for (int j=0;j<10; j++){\n EmptySea empty = new EmptySea();\n ships[i][j] = empty;\n }\n }\n }",
"private void copyMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (map[i][j] instanceof Player) {\n\t\t\t\t\tnewMap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof BlankSpace) {\n\t\t\t\t\tnewMap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof Mho) {\n\t\t\t\t\tnewMap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof Fence) {\n\t\t\t\t\tnewMap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}",
"public void setData(Object o){}",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"public void setShip (Ship s){\n \tthis.ship=s;\n }",
"public void setMapBean(MapBean aMap) {\n theMap = aMap;\n }",
"private static void createTypeMap() {\n\n }",
"@Override\n public void returnDamageMap(DamageMap damageMap) {\n }",
"public MapDisplay getMap(){\n\t\treturn map; //gibt die Karte zurück\n\t}",
"void m21809e(Object obj);",
"private void method_278(ObjectInputStream var1) {\n var1.defaultReadObject();\n this.a = (Map)var1.readObject();\n }",
"public OwnMap() {\n super();\n keySet = new OwnSet();\n }",
"public abstract mapnik.Map createMap(Object recycleTag);",
"public abstract Map<String, Serializable> toMap();",
"public MyHashMap() {\n\n }",
"public abstract Object mo1771a();",
"@Override\n\tpublic void setSession(Map<String, Object> arg0) {\n\t\tmap=arg0;\n\t\t\n\t\t\n\t}",
"public Seat() {\n }",
"public MapTile() {}",
"public static java.util.Map singletonMap(java.lang.Object arg0, java.lang.Object arg1)\n { return null; }",
"public a mo8520o() {\n return new a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public static void main(String[] args) {\n Map<String, Set<Integer>> ms = new HashMap<>(); \n Set<Integer> s1 = new HashSet<>(Arrays.asList(1,2,3));\n Set<Integer> s2 = new HashSet<>(Arrays.asList(4,5,6));\n Set<Integer> s3 = new HashSet<>(Arrays.asList(7,8,9));\n ms.put(\"one\", s1);\n ms.put(\"two\", s2);\n ms.put(\"three\", s3);\n System.out.println(ms); \n // ch07.collections.Ch0706InterfacesVsConcrete$1\n // {one=[1, 2, 3], two=[4, 5, 6], three=[7, 8, 9]}\n\n // this is how LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>>\n // can be initially initialized\n LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>> toc =\n new LinkedHashMap<>();\n System.out.println(toc); // just using toc to get rid of eclipse warning about not using it\n \n \n\n\n\n }",
"public static org.xms.g.maps.MapView dynamicCast(java.lang.Object param0) {\n return ((org.xms.g.maps.MapView) param0);\n }",
"public HospitalMap(odms.view.user.HospitalMap view) {\n this.view = view;\n }",
"public Map<EntityPlayer, Vec3> b()\r\n/* 204: */ {\r\n/* 205:217 */ return this.k;\r\n/* 206: */ }",
"@Override\n\tpublic void setSession(Map<String, Object> arg0) {\n\t\tmap=arg0;\n\t\t\n\t}",
"public interface Map {\n\n public void createMap(World world);\n public void destroyMap(World world);\n}",
"public void setObjectAtLocation(Point p, Object o);",
"public static Map<Integer,Employee1> getEmployeeList(){\r\n\t return employees;\r\n\t \r\n }",
"public void setMapObject(Map<String, Object> mapObject) {\r\n\t\tthis.objectMap = mapObject;\r\n\t}",
"public MyHashMap() {\n map = new HashMap();\n }",
"public ObjectSet<Map.Entry<K, V>> entrySet() {\n/* 315 */ return (ObjectSet)reference2ObjectEntrySet();\n/* */ }"
] | [
"0.59315276",
"0.59196496",
"0.58523864",
"0.57098347",
"0.5612995",
"0.55956805",
"0.5593204",
"0.55923206",
"0.55632913",
"0.55475885",
"0.5544147",
"0.5542334",
"0.54520106",
"0.5417116",
"0.53345376",
"0.5326976",
"0.53086203",
"0.52517503",
"0.5229184",
"0.5206744",
"0.5188831",
"0.5187304",
"0.51833797",
"0.5174719",
"0.5170037",
"0.5167773",
"0.51636213",
"0.5155513",
"0.5151694",
"0.5147636",
"0.51476014",
"0.5140248",
"0.51280606",
"0.5125513",
"0.5113841",
"0.51117283",
"0.51110744",
"0.5060467",
"0.5054136",
"0.50526834",
"0.50518614",
"0.50469685",
"0.5044938",
"0.50344557",
"0.5017525",
"0.50137615",
"0.5010568",
"0.5009049",
"0.4998067",
"0.4989948",
"0.49892518",
"0.49873218",
"0.49698782",
"0.49569064",
"0.49538147",
"0.49452096",
"0.4940892",
"0.49321073",
"0.4929038",
"0.49069324",
"0.49059972",
"0.4904218",
"0.49029177",
"0.48901087",
"0.48863763",
"0.4882783",
"0.48825702",
"0.48823145",
"0.48823145",
"0.48823145",
"0.48823145",
"0.48817042",
"0.48736113",
"0.4863252",
"0.4862594",
"0.48605433",
"0.48549616",
"0.4853027",
"0.4848806",
"0.48426753",
"0.48379773",
"0.4832545",
"0.4831052",
"0.48254085",
"0.48230842",
"0.48148522",
"0.4810199",
"0.48072425",
"0.48067322",
"0.4806506",
"0.48055893",
"0.48044273",
"0.48035228",
"0.48024908",
"0.48019165",
"0.4798287",
"0.4797002",
"0.47915602",
"0.47904378",
"0.47901106"
] | 0.6043734 | 0 |
Criteria significaba en contrar los cursos de un profesor | @Override
public Collection<Curso> findByCriteria(String Criteria) throws Exception {
// throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
Collection<Curso> retValue = new ArrayList();
Connection c = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
c = DBUtils.getConnection();
pstmt = c.prepareStatement("select c.idcurso, c.idprofesor, p.nombre as nombreprofesor, c.nombrecurso, c.claveprofesor,"
+ " c.clavealumno from curso c, persona p\n" +
"where c.idprofesor = p.id and UPPER(p.nombre) like UPPER(?) and p.rol = 2");
pstmt.setString(1, Criteria);
rs = pstmt.executeQuery();
while (rs.next()) {
retValue.add(new Curso(rs.getInt("idcurso"), rs.getString("nombrecurso"),rs.getInt("idprofesor"), rs.getString("nombreprofesor"),rs.getString("claveprofesor"), rs.getString("clavealumno")));
}
return retValue;
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (rs != null) {
rs.close();
}
if (pstmt != null) {
pstmt.close();
}
DBUtils.closeConnection(c);
} catch (SQLException ex) {
Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);
}
}
return retValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UserPracticeSummaryCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"@Test\r\n public void Criterio60SiCumpleTest()\r\n {\r\n CriterioDeCorreccion criterio = new SesentaPorcientoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoAprobado(criterio);\r\n \r\n assertTrue(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 4);\r\n }",
"@Test\r\n public void CriterioTipoSiCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnoDeCadaTipoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoAprobado(criterio);\r\n \r\n assertTrue(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 4); \r\n }",
"@Test\r\n public void CriterioUnidadSiCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnaDeCadaUnidadCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoAprobado(criterio);\r\n \r\n assertTrue(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 4); \r\n }",
"private void checkCriteria() {\n getNextCriteria();\n if (getReferences() < 1) { // Recordar de ver que se hace con la pregunta que se ignora!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n if (firstCriteria != -1)\n firstCriteria = currentCriteria;\n drawOptions();\n if (criteriaLeft.size() == 0)\n setEndingButtons();\n return;\n } else {\n checkCriteria();\n return;\n }\n }",
"@Test\r\n public void CriterioTipoNoCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnoDeCadaTipoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoNoAprobado(criterio);\r\n \r\n assertFalse(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 0); \r\n }",
"@Test\r\n public void Criterio60NoCumpleTest()\r\n {\r\n CriterioDeCorreccion criterio = new SesentaPorcientoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoNoAprobado(criterio);\r\n \r\n assertFalse(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 0);\r\n }",
"public GenerarInformeProfesores(Curso[] cursos) {\n this.infoProfe = new InformeProfesores[5 * 16];\n\n int as = 0;\n int profe = 0;\n for (int cantidadCurso = 0; cantidadCurso < 16; cantidadCurso++) {\n for (as = 0; as < 5; as++) {\n this.infoProfe[profe] = new InformeProfesores(cursos[cantidadCurso].getAsignaturas()[as].getNombre());\n this.infoProfe[profe].setNombre(cursos[cantidadCurso].getAsignaturas()[as].getProfesor().getNombre());\n this.infoProfe[profe].setApellido(cursos[cantidadCurso].getAsignaturas()[as].getProfesor().getApellido());\n this.infoProfe[profe].setRun(cursos[cantidadCurso].getAsignaturas()[as].getProfesor().getRun());\n for (int alumnosTotal = 0; alumnosTotal < 30; alumnosTotal++) {\n\n this.infoProfe[profe].getAlumnos()[alumnosTotal].setNombre(cursos[cantidadCurso].getAlumnos()[alumnosTotal].getNombre());\n this.infoProfe[profe].getAlumnos()[alumnosTotal].setApellido(cursos[cantidadCurso].getAlumnos()[alumnosTotal].getApellido());\n this.infoProfe[profe].getAlumnos()[alumnosTotal].setRun(cursos[cantidadCurso].getAlumnos()[alumnosTotal].getRun());\n for (int j = 0; j < 5; j++) {\n if (cursos[cantidadCurso].getAlumnos()[alumnosTotal].getPromedios()[j].getAsignatura().equals(infoProfe[profe].getAsignatura())) {\n infoProfe[profe].getAlumnos()[alumnosTotal].setPromedio(cursos[cantidadCurso].getAlumnos()[alumnosTotal].getPromedios()[j].getNota());\n }\n }\n }\n profe++;\n }\n }\n\n }",
"@Override\n public Criteria getCriteria() {\n //region your codes 2\n Criteria criteria = new Criteria();\n criteria.addAnd(SiteConfineArea.PROP_NATION,Operator.EQ,searchObject.getNation()).addAnd(SiteConfineArea.PROP_PROVINCE, Operator.EQ, searchObject.getProvince()).addAnd(SiteConfineArea.PROP_CITY,Operator.EQ,searchObject.getCity());\n if (searchObject.getStatus() != null) {\n if (searchObject.getStatus().equals(SiteConfineStatusEnum.USING.getCode())) {\n //使用中\n criteria.addAnd(SiteConfineArea.PROP_END_TIME, Operator.GT, new Date());\n } else if (searchObject.getStatus().equals(SiteConfineStatusEnum.EXPIRED.getCode())) {\n criteria.addAnd(SiteConfineArea.PROP_END_TIME, Operator.LT, new Date());\n }\n }\n criteria.addAnd(SiteConfineArea.PROP_SITE_ID,Operator.EQ,searchObject.getSiteId());\n return criteria;\n //endregion your codes 2\n }",
"public static void main(String[] args) {\n\t\tArrayList<Piloto> lst = new ArrayList <Piloto>();\r\n\t\tEvaluador evaluador = new Evaluador(lst);\r\n\t\t\r\n\t\tlst.add(new Piloto(\"Jorge\", \"Gutierrez\", true, 0 ));\r\n\t\tlst.add(new Piloto(\"Nicolas\", \"Perez\", true, 10 ));\r\n\t\tlst.add(new Piloto(\"Santiago\", \"Freire\", false, 0 ));\r\n\t\tlst.add(new Piloto(\"Ana\", \"Gutierrez\", false, 1 ));\r\n\t\tlst.add(new Piloto(\"Victoria\", \"Gutierrez\", true, 0 ));\r\n\t\tlst.add(new Piloto(\"Julia\", \"Freire\", true, 0 ));\r\n\t\tlst.add(new Piloto(\"Carlos\", \"Gutierrez\", true, 1 ));\r\n\t\t\r\n /*\r\n\t\t//le gusta volar y no tiene choques \r\n\t\tfor (Piloto p : evaluador.leGustaVolarNoTieneChoques()) {\r\n System.out.println(p);\r\n }\r\n */\r\n \r\n\t\t//le gusta volar y tiene choques\r\n\t\tfor (Piloto p : evaluador.leGustaVolarTieneChoques()) {\r\n System.out.println(p);\r\n }\r\n \r\n for (Piloto p : evaluador.obtenerTodosPeroParametrizar(true, true)) {\r\n System.out.println(p);\r\n }\r\n \r\n for (Piloto p : evaluador.obtenerTodosPeroParametrizar(p -> (p.leGustaVolar && p.cantidadDeChoques > 0))) {\r\n System.out.println(p);\r\n }\r\n \r\n lst.stream()\r\n .filter(p -> (p.leGustaVolar && p.cantidadDeChoques > 0))\r\n .filter(p -> p.cantidadDeChoques == 10)\r\n .forEach(x -> System.out.println(x));\r\n \r\n\t\t\r\n /*\r\n\t\t//no le gusta volar y no tiene choques\r\n\t\tfor (Piloto p : evaluador.noLeGustaVolarNoTieneChoques()) {\r\n System.out.println(p);\r\n }\r\n\t\t\r\n\t\t//no le gusta volar y tiene choques\r\n\t\tfor (Piloto p : evaluador.noLeGustaVolarTieneChoques()) {\r\n System.out.println(p);\r\n }\r\n\t\t*/\r\n\t\t\r\n\t}",
"public InstanciaProductoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public int contarPorCriterio(Map<String, String> filters)\r\n/* 44: */ {\r\n/* 45:95 */ return this.categoriaArticuloServicioDao.contarPorCriterio(filters);\r\n/* 46: */ }",
"@Test\r\n public void CriterioUnidadNoCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnaDeCadaUnidadCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoNoAprobado(criterio);\r\n \r\n assertFalse(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 0);\r\n }",
"@Override\n public ArrayList<Propiedad> getPropiedadesFiltroCliente(String pCriterio, String pDato) throws\n SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ESTADO \"\n + \"= 'ACTIVO' AND \" + pCriterio + \" = '\" + pDato + \"'\");\n return resultado;\n }",
"private void afficheSuiv(){\n\t\ttry{ // Essayer ceci\n\t\t\tif(numCourant <= rep.taille()){\n\t\t\t\tnumCourant ++;\n\t\t\t\tPersonne e = rep.recherchePersonne(numCourant); // Rechercher la personne en fonction du numCourant\n\t\t\t\tafficherPersonne(e);\n\t\t\t}else{\n\t\t\t\tafficherMessageErreur();\n\t\t\t}\n\t\t}catch(Exception e){ // Permet de voir s'il y a cette exception\n\t\t\tafficherMessageErreur();\n\t\t\tnumCourant --;\n\t\t}\n\t}",
"public GoodsSkuCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"protected Criteria crearCriteria() {\n logger.debug(\"Criteria creado\");\n return getSesion().createCriteria(clasePersistente);\n }",
"@Override\r\n\tprotected List<Producto> filtrar(Comercio comercio) {\r\n\t\tList<Producto> resultado= new ArrayList<Producto>();\r\n\t\tfor(Producto pAct:comercio.getProductos()){\r\n\t\t\tif(pAct.presentacionesSuperanStockCritico())\r\n\t\t\t\tresultado.add(pAct);\r\n\t\t}\r\n\t\treturn resultado;\r\n\t}",
"public int contarPorCriterio(Map<String, String> filters)\r\n/* 44: */ {\r\n/* 45: 93 */ return this.maquinaDao.contarPorCriterio(filters);\r\n/* 46: */ }",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\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 void executeProcesarClasificacionLove(Map criteria);",
"private Filtro getFiltroFissiGiornoConto(Date data, int codConto) {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Filtro filtroDate = null;\n Filtro filtroInizio = null;\n Filtro filtroSincro;\n Filtro filtroVuota;\n Filtro filtroIntervallo;\n Filtro filtroFine;\n Filtro filtroConto = null;\n Modulo modConto;\n Date dataVuota;\n\n try { // prova ad eseguire il codice\n\n modConto = Progetto.getModulo(Conto.NOME_MODULO);\n\n filtroDate = new Filtro();\n\n filtroInizio = FiltroFactory.crea(Cam.dataInizioValidita.get(),\n Filtro.Op.MINORE_UGUALE,\n data);\n filtroSincro = FiltroFactory.crea(Cam.dataSincro.get(), Filtro.Op.MINORE, data);\n dataVuota = Lib.Data.getVuota();\n filtroVuota = FiltroFactory.crea(Cam.dataSincro.get(), dataVuota);\n\n filtroFine = FiltroFactory.crea(Cam.dataFineValidita.get(),\n Filtro.Op.MAGGIORE_UGUALE,\n data);\n filtroIntervallo = new Filtro();\n filtroIntervallo.add(filtroSincro);\n filtroIntervallo.add(filtroFine);\n\n filtroDate.add(filtroIntervallo);\n filtroDate.add(Filtro.Op.OR, filtroVuota);\n\n /* filtro per il conto */\n filtroConto = FiltroFactory.codice(modConto, codConto);\n\n filtro = new Filtro();\n filtro.add(filtroInizio);\n filtro.add(filtroDate);\n filtro.add(filtroConto);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }",
"public void executeProcesarClasificacion(Map criteria);",
"public TBusineCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public List getValidarCuvExistencia(Map criteria);",
"Collection<GestionPrecioDTO> findCampaniasFiltros (GestionPrecioDTO gestionPrecio,String estadoCobro);",
"private Map<String,Double> getPromedioHabilidades(Cuadrilla cuadrilla){\n\t\tSystem.out.println(\"#### getPromedioHabilidades ######\");\n\t\tdouble proprod= 0, protrae= 0, prodorm = 0, prodcaa = 0;\n\t\tint cantper = 0;\n\t\tfor (CuadrillasDetalle cd : cuadrilla.getCuadrillasDetalles()) {\n\t\t\t\n\t\t\tList<TecnicoCompetenciaDetalle> tcds = \tcd.getTecnico().getTecnicoCompetenciaDetalles();\n\t\t\tfor (TecnicoCompetenciaDetalle tcd : tcds) {\n\t\t\t\tInteger codigoComp = tcd.getCompetencia().getCodigoCompetencia();\n\t\t\t\tswitch(codigoComp){\n\t\t\t\t\tcase COMPETENCIA_PRODUCTIVIDAD:\n\t\t\t\t\t\tproprod = proprod+ tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_TRABAJO_EQUIPO:\n\t\t\t\t\t\tprotrae = protrae + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_ORIENTACION_METAS:\n\t\t\t\t\t\tprodorm = prodorm + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_CALIDAD_ATENCION:\n\t\t\t\t\t\tprodcaa = prodcaa +tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcantper++;\t\t\t\n\t\t}\n\t\t\t\t\t\n\t\t// promedio de las competencias de los tenicos de cada cuadrilla\n\t\tproprod = proprod/cantper; \n\t\tprotrae = protrae/cantper;\n\t\tprodorm = prodorm/cantper;\n\t\tprodcaa = prodcaa/cantper;\n\n\t\tMap<String, Double> mpproms = new LinkedHashMap<String,Double>();\n\t\tmpproms.put(\"proprod\", proprod);\n\t\tmpproms.put(\"protrae\", protrae);\n\t\tmpproms.put(\"prodorm\", prodorm);\n\t\tmpproms.put(\"prodcaa\", prodcaa);\n\t\n\t\treturn mpproms;\n\t\t\n\t}",
"public PanoOrderTransCriteria() {\r\n oredCriteria = new ArrayList();\r\n }",
"@Override\n public Boolean colisionoCon(Policia gr) {\n return true;\n }",
"private List<ObligacionCoactivoDTO> calcularCostasProcesales(List<ObligacionCoactivoDTO> obligaciones,\n BigDecimal valorAbsoluto, BigDecimal porcentaje) throws CirculemosNegocioException {\n // No aplica costas\n if (valorAbsoluto == null && porcentaje == null) {\n return obligaciones;\n } else if (valorAbsoluto != null) {\n // Aplica valor absoluto\n if (obligaciones.size() == 1) {\n obligaciones.get(0).setValorCostasProcesales(valorAbsoluto);\n return obligaciones;\n } else {\n BigDecimal porcentajeDeuda;\n BigDecimal totalDeuda = new BigDecimal(0);\n\n // Calculo de deuda\n for (ObligacionCoactivoDTO obligacion : obligaciones) {\n totalDeuda = totalDeuda\n .add(obligacion.getValorObligacion().add(obligacion.getValorInteresMoratorios()));\n\n }\n\n // Calculo de porcentaje y valor\n for (ObligacionCoactivoDTO obligacion : obligaciones) {\n porcentajeDeuda = ((obligacion.getValorCostasProcesales()\n .add(obligacion.getValorInteresMoratorios())).multiply(new BigDecimal(100)))\n .divide(totalDeuda);\n\n obligacion\n .setValorCostasProcesales(totalDeuda.multiply(porcentajeDeuda).divide(new BigDecimal(100)));\n\n }\n return obligaciones;\n\n }\n } else if (porcentaje != null) {\n // Aplica porcentaje de la deuda\n for (ObligacionCoactivoDTO obligacion : obligaciones) {\n obligacion.setValorCostasProcesales(\n (obligacion.getValorObligacion().add(obligacion.getValorInteresMoratorios()))\n .multiply(porcentaje).divide(new BigDecimal(100)).setScale(2,\n BigDecimal.ROUND_HALF_UP));\n\n }\n return obligaciones;\n } else {\n throw new CirculemosNegocioException(ErrorCoactivo.GenerarCoactivo.COAC_002005);\n }\n }",
"List<Professeur> getImplicatedProf(int coursId);",
"public void contabilizarConMesYProfesor(ProfesorBean profesor, int mes){\r\n GestionDetallesInformesBD.deleteDetallesInforme(profesor, mes); \r\n\r\n //Preparamos todos los datos. Lista de fichas de horario.\r\n ArrayList<FichajeBean> listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n ArrayList<FichajeRecuentoBean> listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n\r\n /**\r\n * Contabilizar horas en eventos de día completo\r\n */\r\n \r\n int segundosEventosCompletos=contabilizarEventosCompletos(listaFichajesRecuento, profesor,mes);\r\n \r\n /**\r\n * Contabilizar horas en eventos de tiempo parcial\r\n */\r\n \r\n ArrayList<EventoBean> listaEventos=GestionEventosBD.getListaEventosProfesor(false, profesor, mes);\r\n int segundosEventosParciales=contabilizarEventosParciales(listaFichajesRecuento,listaEventos, profesor, mes, \"C\");\r\n \r\n /**\r\n * Contabilizamos las horas lectivas\r\n */\r\n ArrayList<FichaBean> listaFichasLectivas=UtilsContabilizar.getHorarioCompacto(profesor, \"L\");\r\n int segundosLectivos=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasLectivas, profesor,\"L\", mes);\r\n \r\n /**\r\n * Contabilizar horas complementarias\r\n */\r\n ArrayList<FichaBean> listaFichasComplementarias=UtilsContabilizar.getHorarioCompacto(profesor, \"C\");\r\n int segundosComplementarios=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasComplementarias, profesor,\"C\", mes);\r\n \r\n /**\r\n * Contabilizamos la horas no lectivas (el resto de lo que quede en los fichajes.\r\n */\r\n int segundosNLectivos=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, true, mes);\r\n \r\n /**\r\n * Contabilizamos las horas extra añadidas al profesor\r\n */\r\n ArrayList<HoraExtraBean> listaHorasExtra=GestionHorasExtrasBD.getHorasExtraProfesor(profesor, mes);\r\n HashMap<String, Integer> tablaHorasExtra = contabilizaHorasExtra(listaHorasExtra, profesor, mes);\r\n \r\n System.out.println(\"Segundos de horas lectivas: \"+Utils.convierteSegundos(segundosLectivos));\r\n System.out.println(\"Segundos de horas complementarias: \"+Utils.convierteSegundos(segundosComplementarios));\r\n System.out.println(\"Segundos de horas no lectivas: \"+Utils.convierteSegundos(segundosNLectivos));\r\n System.out.println(\"Segundos eventos completos: \"+Utils.convierteSegundos(segundosEventosCompletos));\r\n System.out.println(\"Segundos eventos parciales: \"+Utils.convierteSegundos(segundosEventosParciales));\r\n System.out.println(\"Total: \"+Utils.convierteSegundos((segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales)));\r\n \r\n /**\r\n * Comprobacion\r\n */\r\n listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n int segundosValidacion=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, false, mes);\r\n int segundosValidacion2=segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales;\r\n System.out.println(\"Comprobacion: \"+Utils.convierteSegundos(segundosValidacion));\r\n String obser=segundosValidacion==segundosValidacion2?\"Correcto\":\"No coinciden las horas en el colegio, con las horas calculadas de cada tipo.\";\r\n \r\n segundosComplementarios+=segundosEventosCompletos;\r\n segundosComplementarios+=segundosEventosParciales;\r\n\r\n //Guardamos en la base de datos\r\n GestionInformesBD.guardaInforme(profesor, obser, segundosLectivos, segundosNLectivos, segundosComplementarios,mes);\r\n \r\n }",
"public Perso designerCible(){\r\n\t\tRandom rand = new Random();\r\n\t\tint x = rand.nextInt((int)provocGlob);\r\n\t\tboolean trouve =false;\r\n\t\tdouble cpt=0;\r\n\t\tPerso res=groupe.get(0);\r\n\t\tfor(Perso pers : groupeAble){\r\n\t\t\tcpt+=pers.getProvoc();\r\n\t\t\tif(cpt>x && !trouve){\r\n\t\t\t\tres=pers;\r\n\t\t\t\ttrouve=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn res;\r\n\t}",
"public List<MascotaExtraviadaEntity> darProcesosConRecompensaMenorA(Double precio) throws Exception{\n \n if(precio < 0){\n throw new BusinessLogicException(\"El precio de una recompensa no puede ser negativo\");\n }\n \n List<MascotaExtraviadaEntity> procesos = mascotaExtraviadaPersistence.findAll();\n List<MascotaExtraviadaEntity> procesosFiltrados = new LinkedList<>();\n \n for( MascotaExtraviadaEntity p : procesos){\n if(p.getRecompensa().getValor() <= precio){\n procesosFiltrados.add(p);\n }\n }\n \n return procesosFiltrados;\n }",
"public FacBuyerExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public List getBeneficioDeudaList(Map criteria);",
"private void llenarListadoPromocionSalarial() {\n\t\tString sql1 = \"select det.* from seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab cab on cab.id_estado_cab = det.id_estado_cab \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab\"\r\n\t\t\t\t+ \" left join seleccion.promocion_concurso_agr agr \"\r\n\t\t\t\t+ \"on agr.id_promocion_salarial = det.id_promocion_salarial\"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tagr.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor agr.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n//\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\t\t\r\n\t\tString sql2 = \"select puesto_det.* \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"on det.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab \"\r\n\t\t\t//\t+ \"join seleccion.concurso concurso \"\r\n\t\t\t//\t+ \"on concurso.id_concurso = puesto_det.id_concurso \"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t//\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarListaPromocionSalarial(sql1, sql2);\r\n\t}",
"protected Criteria(SaleClassifyGoodExample example) {\n super();\n this.example = example;\n }",
"boolean contemProfessor(Professor p);",
"@Before\n\tpublic void incoporacionDeCandidatosYProvinciasHabilitadasALaJuntaElectoral(){\n\t\tmendoza.agregarPartido(pro);\n\t\tbuenosaires.agregarPartido(pro);\n\t\trionegro.agregarPartido(pro);\n\t\tentrerios.agregarPartido(pro);\n\t\tmendoza.agregarPartido(renovador);\n\t\tbuenosaires.agregarPartido(renovador);\n\t\trionegro.agregarPartido(renovador);\n\t\tentrerios.agregarPartido(renovador);\n\t\tmendoza.agregarPartido(fpv);\n\t\tbuenosaires.agregarPartido(fpv);\n\t\trionegro.agregarPartido(fpv);\n\t\tentrerios.agregarPartido(fpv);\n\n\t\t//Incorporacion de los candidatos habilitados al centro de computos\n\t\tjuntaElectoral.agregarCandidato(macri);\t\t\n\t\tjuntaElectoral.agregarCandidato(massa);\t\t\n\t\tjuntaElectoral.agregarCandidato(scioli);\n\n\t\t//Incorporacion de las provincias habilitadas al centro de computos\n\t\tjuntaElectoral.agregarProvincia(mendoza);\n\t\tjuntaElectoral.agregarProvincia(buenosaires);\n\t\tjuntaElectoral.agregarProvincia(rionegro);\n\t\tjuntaElectoral.agregarProvincia(entrerios);\n\t}",
"public Comparator<Estado> getCompHeuristicaMasProf() {\r\n\t\tcomp = new Comparator<Estado>() {\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Estado e1, Estado e2) {\r\n\t\t\t\tInteger es1 = e1.getDistanciaManhattan() + e1.getProf();\r\n\t\t\t\tInteger es2 = e2.getDistanciaManhattan() + e2.getProf();\r\n\t\t\t\tif (es1 == es2)\r\n\t\t\t\t\treturn new Integer(e1.getProf().compareTo(e2.getProf())); // En caso de empate comparo por profundidad\r\n\t\t\t\treturn new Integer(es1.compareTo(es2));\r\n\t\t\t}\r\n\t\t};\r\n\t\treturn comp;\r\n\t}",
"public Tournee chercheSolution(int tpsLimite, ContraintesTournee contraintes, Map<String, Map<String, Chemin>> plusCourtsChemins){\n\t\t//HashMap avec l'id et le point pour pouvoir recuperer le point a partir de l'id\n\t\tHashMap<String, Intersection> intersections = new HashMap<String, Intersection>();\n\t\tIterator<PointEnlevement> itEnlev = (Iterator<PointEnlevement>)contraintes.getPointsEnlevement().iterator();\n\t\tIterator<PointLivraison> itLiv = (Iterator<PointLivraison>)contraintes.getPointsLivraison().iterator();\n\t\t\n\t\t//Remplissage HashMap des intersections \n\t\tintersections.put(contraintes.getDepot().getId(), contraintes.getDepot());\n\t\tint nbSommets = 1;\n\t\twhile(itEnlev.hasNext()) {\n\t\t\tIntersection intersec = (Intersection) itEnlev.next();\n\t\t\tintersections.put(intersec.getId(), intersec);\n\t\t\tnbSommets++;\n\t\t}\n\t\twhile(itLiv.hasNext()) {\n\t\t\tIntersection intersec = (Intersection) itLiv.next();\n\t\t\tintersections.put(intersec.getId(), intersec);\n\t\t\tnbSommets++;\n\t\t}\n\t\t\n\t\t//Initialisation de la HashMap vuDispo - contenant les attributs boolean vu et dispo\n\t\tHashMap<String, Paire> vuDispo = initVuDispo(contraintes, intersections);\n\t\t\n\t\tTournee tournee = new Tournee(contraintes);\n\t\t//Sequentiel et MinFirst\n//\t\tcalculerSimplementTournee(tournee, contraintes.getDepot().getId(), (nbSommets-1), intersections, vuDispo, plusCourtsChemins);\t\t\n\t\t\n\t\t//MinFirst + 2-Opt\n\t\tcalculerSimplementTournee(tournee, contraintes.getDepot().getId(), (nbSommets-1), intersections, vuDispo, plusCourtsChemins);\t\t\n\t\ttwoOpt(tpsLimite, System.currentTimeMillis(), tournee, plusCourtsChemins, intersections);\n\t\t\n\t\treturn tournee;\n\t}",
"public PayActinfoExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"double match(CodeBlock elemento,MatchingProfile perfil) {\n double max = 0,diff = 0,uno,dos,val;\n int i;\n for (i = 43;--i >= 0;) {\n //for (i = 0;i < 43;++i) {\n val = perfil.atributos[i];\n uno = atributos[i]*val;\n dos = elemento.atributos[i]*val;\n if (uno>dos) {\n max += uno;\n diff += (uno-dos);\n }\n else {\n max += dos;\n diff += (dos-uno);\n }\n //System.out.println(campos[i]+\" \"+(maxact-diffact)+\"/\"+maxact);\n \n }\n if (max != 0)\n max = (max-diff)/max;\n //System.out.println(\"EMPAREJADO CON VALOR \"+match);\n //ArrayList<SCoincidencia> a = new ArrayList<SCoincidencia>();\n //a.add(new SCoincidencia(this,elemento,max,0));\n //return a;\n return max;\n //System.out.println(\"BLOQUE!\");\n }",
"public GoodsExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"@Test\n\t@Category(TesteGetPromovabilitate.class)\n\tpublic void testPromovabilitate() {\n\t\tGrupa grupa=new Grupa(1078);\n\t\tfor(int i=0;i<7;i++) {\n\t\t\tStudent student=new Student(\"Valentin\");\n\t\t\tstudent.adaugaNota(4);\n\t\t\tstudent.adaugaNota(3);\n\t\t\tstudent.adaugaNota(2);\n\t\t\tgrupa.adaugaStudent(student);\n\t\t}\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tStudent student=new Student(\"Ana\");\n\t\t\tstudent.adaugaNota(7);\n\t\t\tstudent.adaugaNota(8);\n\t\t\tstudent.adaugaNota(10);\n\t\t\tgrupa.adaugaStudent(student);\n\t\t}\n\t\tassertEquals(0.41, grupa.getPromovabilitate(),0.02);\n\t}",
"double getCritChance();",
"@Override\n public Criteria getCriteria() {\n //region your codes 2\n return null;\n //endregion your codes 2\n }",
"@SuppressWarnings({ \"unchecked\" })\n\t@Override\n\tpublic Collection<LineaComercialClasificacionDTO> buscarClasificacionesLinCom(Integer codigoCompania, Long codigoLineaComercial, String estado, Map<String, DynamicCriteriaRestriction> restrictionMap)throws SICException{\n\t\t\n\t\ttry{\n\t\t\n\t\t\tthis.sessionFactory.getCurrentSession().clear();\n\t\t\tCriteria criteria = this.sessionFactory.getCurrentSession().createCriteria(LineaComercialClasificacionDTO.class, \"root\");\t\t\n\t\t\tcriteria.createAlias(\"clasificacion\", \"clasificacion\", CriteriaSpecification.LEFT_JOIN);\n\t\t\tcriteria.setProjection(Projections.projectionList()\n\t\t\t\t\t.add(Projections.property(\"clasificacion.id.codigoClasificacion\"),\"clasificacion.id.codigoClasificacion\")\n\t\t\t\t\t.add(Projections.property(\"codigoLineaComercial\"),\"codigoLineaComercial\")\n\t\t\t\t\t.add(Projections.property(\"id.codigoClasificacion\"),\"id.codigoClasificacion\")\n\t\t\t\t\t.add(Projections.property(\"idUsuarioRegistro\"),\"idUsuarioRegistro\")\n\t\t\t\t\t.add(Projections.property(\"idUsuarioModificacion\"),\"idUsuarioModificacion\")\n\t\t\t\t\t.add(Projections.property(\"fechaRegistro\"),\"fechaRegistro\")\n\t\t\t\t\t.add(Projections.property(\"id.codigoCompania\"),\"id.codigoCompania\")\n\t\t\t\t\t.add(Projections.property(\"id.codigoLineaComercialClasificacion\"),\"id.codigoLineaComercialClasificacion\")\n\t\t\t\t\t.add(Projections.property(\"clasificacion.descripcionClasificacion\"),\"clasificacion.descripcionClasificacion\")\n\t\t\t\t);\n\t\t\tcriteria.add(Restrictions.eq(\"id.codigoCompania\", codigoCompania));\n\t\t\tcriteria.add(Restrictions.eq(\"codigoLineaComercial\",codigoLineaComercial));\n\t\t\tcriteria.add(Restrictions.eq(\"estado\", estado));\n\t\t\tcriteria.add(Restrictions.eq(\"clasificacion.estadoClasificacion\", SICConstantes.ESTADO_ACTIVO_NUMERICO));\n\t\t\tcriteria.add(Restrictions.eq(\"clasificacion.valorTipoEstructura\", CorporativoConstantes.TIPO_ESTRUCTURA_COMERCIAL));\n\t\t\tcriteria.add(Restrictions.eq(\"clasificacion.codigoTipoEstructura\", TiposCatalogoConstantes.TIPO_ESTRUCTURA));\n\t\t\t\n\t\t\tif(restrictionMap != null && restrictionMap.containsKey(\"linComCla\")){\n\t\t\t\tcriteria.add(restrictionMap.get(\"linComCla\").getCriteriaRestriction());\n\t\t\t}\n\t\t\t\n\t\t\tcriteria.addOrder(Order.asc(\"clasificacion.id.codigoClasificacion\"));\n\t\t\t\n\t\t\tcriteria.setResultTransformer(new DtoResultTransformer(LineaComercialClasificacionDTO.class));\n\t\t\t\n\t\t\treturn (Collection<LineaComercialClasificacionDTO>)criteria.list();\n\t\t} catch (Exception e) {\n\t\t\tLogeable.LOG_SICV2.error(\"Error al consultar clasificaciones en lineas comerciales {0}\", e);\n\t\t\tthrow new SICException(\"Error al consultar clasificaciones en lineas comerciales\", e);\n\t\t}\n\t}",
"public void filtrarOfertas() {\n\n List<OfertaDisciplina> ofertas;\n \n ofertas = ofertaDisciplinaFacade.filtrarEixoCursoTurnoCampusQuad(getFiltrosSelecEixos(), getFiltrosSelecCursos(), turno, campus, quadrimestre);\n\n dataModel = new OfertaDisciplinaDataModel(ofertas);\n \n //Após filtrar volta os parametros para os valores default\n setFiltrosSelecEixos(null);\n setFiltrosSelecCursos(null);\n turno = \"\";\n quadrimestre = 0;\n campus = \"\";\n }",
"ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}",
"public String generateConclusion(ConclusionController objects) {\n\t\tpronoun = objects.getGender().getPronoun();\n\t\t\n\t\tArrayList<DocumentElement> list = new ArrayList<DocumentElement>();\n\t\t\n\t\tlist.add(LikesPhrase(objects.getLikes()));\n\t\tlist.add(EventGoingPhrase(objects.getGoingEvents()));\n\t\tlist.add(EventInterested(objects.getInterestedEvents()));\n\t\t\n\t\tDocumentElement par = nlgFactory.createParagraph(list);\n\t\t\n\t\treturn realiser.realise(par).getRealisation();\n\t}",
"public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }",
"@Override\n public Criteria getCriteria() {\n //region your codes 2\n Criteria criteria = Criteria.add(UserPlayerTransfer.PROP_PLAYER_ACCOUNT, Operator.IEQ,searchObject.getPlayerAccount());\n criteria = criteria.addAnd(Criteria.add(UserPlayerTransfer.PROP_IS_ACTIVE, Operator.EQ,searchObject.getIsActive()));\n criteria = criteria.addAnd(Criteria.add(UserPlayerTransfer.PROP_PLAYER_ACCOUNT, Operator.EQ,searchObject.getPlayerAccount()));\n\n return criteria;\n //endregion your codes 2\n }",
"public static Result comp2(){\n\t\t\t\n\t\t\t//Requête pour récupèrer le nombre de viols en espagne\n\t \t //requete pour recuperer les valeurs , les dates et les pays avec filtre date et pays \n\t \t// creattion d modele \n\t\t\tModel m = ModelFactory.createDefaultModel();\n\t\t\t // j'int�gre mon modele dans un autre modele inf�r� \n\t\t\tInfModel infm = ModelFactory.createRDFSModel(m);\n\t\t\t // je lis les deus fichier .RDF et .ttl pour le sujet crime \t\t\n\t\t\tString ns = \"http://www.StatisticSquade.fr#\";\n\t\t \tinfm.setNsPrefix(\"StatisticSquade\", ns);\n\t\t \t/// name space de eurostat\n\t\t \tString nsEuro = \"http://eurostat.linked-statistics.org/data/\";\n\t\t\tinfm.setNsPrefix(\"Eurostat\", nsEuro);\n\t\t\tFileManager.get().readModel(infm, rdf_file0 );\n\t\t\tFileManager.get().readModel(infm, rdf_file1 ); \n\t\t\t\n\t\t\t//Construction dynamique des requêtes\n\t\t\t/**\n\t\t\t * Récupération des pays\n\t\t\t */\n\t\t\n\t\t\t/**\n\t\t\t * \n\t\t\t * récupétation autes\n\t\t\t */\n\t\t\tString pays = Form.form().bindFromRequest().get(\"pays\");\n\t\t\tanneeDebut = Form.form().bindFromRequest().get(\"anneeDebut\");\n\t\t\tanneeFin = Form.form().bindFromRequest().get(\"anneeFin\");\n\t\t\tString sujet1 = Form.form().bindFromRequest().get(\"sujet1\");\n\t\t\tString sujet2 = Form.form().bindFromRequest().get(\"sujet2\");\n\t\t\tString [] tabAnneeDebut = anneeDebut.split(\"-\");\n\t String anneeD = tabAnneeDebut[0];\n\t int aDebut = Integer.parseInt(anneeD);\n\t String [] tabAnneeFin = anneeFin.split(\"-\");\n\t String anneeF = tabAnneeFin[0];\n\t int aFin = Integer.parseInt(anneeF);\n\t if(aFin < aDebut){\n\t \tString anneeTemp = anneeDebut;\n\t \tanneeDebut = anneeFin;\n\t \tanneeFin = anneeTemp;\n\t }\n\n\t String rdq1 = \n\t\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet1+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \"; \n\t\t \n\t\tString rdq2 = \n\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet2+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \";\n\t\t\n \n //mapping entre sujets et leurs codes\n HashMap<String,String> codeToSujet = new HashMap<String,String>();\n codeToSujet.put(\"DBURG\", \"Cambriolages dans un lieu d'habitation\");\n codeToSujet.put(\"DRUGT\", \"Trafic de stupéfiants\");\n codeToSujet.put(\"HCIDE\", \"Homicides\");\n codeToSujet.put(\"VTHFT\", \"Vols de véhicules à moteur\");\n codeToSujet.put(\"VIOLT\", \"Crimes et délits violents\");\n codeToSujet.put(\"ROBBR\", \"Vols avec violences\");\n\t\t\t\n //Execution des requêtes\n /**\n * Requête 1\n */\n Query query1 = QueryFactory.create(rdq1); \n\t QueryExecution qexec1 = QueryExecutionFactory.create(query1,m);\n\t /////////\n\t ResultSet rs1 = qexec1.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste1 = ResultSetFormatter.toList(rs1);\n\t Iterator<QuerySolution> it1 = liste1.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map1 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString1 = new ArrayList<String>();\n while(it1.hasNext()){\n \t \n \t QuerySolution elt1 = it1.next();\n String anneeElt1 = elt1.get(\"Date\").toString();\n String valeur1 = elt1.get(\"Valeur\").toString();\n String [] tabAnnee1 = anneeElt1.split(\"-\");\n String annee1 = tabAnnee1[0];\n map1.put(Integer.parseInt(annee1), valeur1);\t \n donneesString1.add(valeur1);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd1 = new TreeMap<Integer,String>(map1);\n /**\n * Requete 2\n */\n Query query2 = QueryFactory.create(rdq2); \n\t QueryExecution qexec2 = QueryExecutionFactory.create(query2,m);\n\t /////////\n\t ResultSet rs2 = qexec2.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste2 = ResultSetFormatter.toList(rs2);\n\t Iterator<QuerySolution> it2 = liste2.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map2 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString2 = new ArrayList<String>();\n while(it2.hasNext()){\n \t \n \t QuerySolution elt2 = it2.next();\n String anneeElt2 = elt2.get(\"Date\").toString();\n String valeur2 = elt2.get(\"Valeur\").toString();\n String [] tabAnnee2 = anneeElt2.split(\"-\");\n String annee2 = tabAnnee2[0];\n map2.put(Integer.parseInt(annee2), valeur2);\t \n donneesString2.add(valeur2);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd2 = new TreeMap<Integer,String>(map2);\n \n //////////\n JsonObject title = new JsonObject();\n title.put(\"text\", \"Nombre de \"+codeToSujet.get(sujet1)+\" et de \"+codeToSujet.get(sujet2));\n \n JsonObject subtitle = new JsonObject();\n subtitle.put(\"text\", pays);\n \n JsonObject xAxis = new JsonObject();\n xAxis.put(\"type\", \"value\");\n \n JsonObject titleY = new JsonObject();\n titleY.put(\"text\", \"valeurs :\");\n JsonObject yAxis = new JsonObject();\n yAxis.put(\"title\", titleY);\n yAxis.put(\"min\", 0);\n \n JsonArray series = new JsonArray();\n \n JsonObject objSerie1 = new JsonObject();\n objSerie1.put(\"name\", codeToSujet.get(sujet1));\n JsonArray data1 = new JsonArray();\n for(Entry<Integer, String> entry1 : mapOrd1.entrySet()){\n \t \n \t JsonArray eltData1 = new JsonArray();\n eltData1.add(entry1.getKey());\n eltData1.add(Integer.parseInt(entry1.getValue()));\n data1.add(eltData1);\n \n }\n objSerie1.put(\"data\",data1);\n series.add(objSerie1);\n \n \n \n JsonObject objSerie2 = new JsonObject();\n objSerie2.put(\"name\", codeToSujet.get(sujet2));\n JsonArray data2 = new JsonArray(); \n for(Entry<Integer, String> entry2 : mapOrd2.entrySet()){\n \t \n \t JsonArray eltData2 = new JsonArray();\n eltData2.add(entry2.getKey());\n eltData2.add(Integer.parseInt(entry2.getValue()));\n data2.add(eltData2);\n }\t \n objSerie2.put(\"data\",data2); \n series.add(objSerie2);\n \n \n //Ajouter au graphe\n JsonObject graphe = new JsonObject();\n graphe.put(\"title\", title);\n graphe.put(\"subtitle\", subtitle);\n graphe.put(\"xAxis\", xAxis);\n graphe.put(\"yAxis\", yAxis);\n graphe.put(\"series\", series);\n /**\n * \n * données statistiques\n */\n \n \n StatisticsComputation myStats = new StatisticsComputation(donneesString1, donneesString2);\n double covariance = myStats.covariance();\n\t\tdouble pearsonsCorrelation = myStats.pearsonsCorrelation();\n\t\tSystem.out.println(\"Ma covariance \" + covariance);\n\t\tSystem.out.println(\"Ma correlation \" + pearsonsCorrelation);\n\t\tdouble mean = myStats.mean();\n\t\tdouble standardDeviation = myStats.standardDeviation();\n\t\tSystem.out.println(\"Ma moyenne \" + mean);\n\t\tSystem.out.println(\"Mon écart-type \" + standardDeviation);\n\n /**\n * \n * Données statistiques fin\n */\n\t\t/**\n\t\t * Ajout au graphe\n\t\t */\n\t\tGraphCreation gc = new GraphCreation(\"crim_gen\");\n\t\tgc.postGraph(sujet1+\"-\"+sujet2+\"-\"+pays, sujet1+pays, sujet2+pays, anneeDebut, anneeFin, \n\t\t\t\t Double.toString(pearsonsCorrelation), Double.toString(mean), Double.toString(standardDeviation), \n\t\t\t\t Double.toString(covariance));\n\t\tgc.save();\n\t\t\n\t\tString ip = request().remoteAddress();\n ArrayList<String> listeComments = gc.getComments(sujet1+\"-\"+sujet2+\"-\"+pays, false); \n if(listeComments !=null){\n\t\tIterator<String> it = listeComments.iterator();\n\t\tList<Comment> listeCom = new ArrayList<Comment>();\n\t\twhile(it.hasNext()){\n\t\t\tString elt = it.next();\n\t\t\tString [] tab = elt.split(\";\");\n\t\t\tString nomRecup = tab[0];\n\t\t\tString dateRecup = tab[1];\n\t\t\tString contenuRecup = tab[2];\n\t\t\tComment comment1 = new Comment(nomRecup,dateRecup,contenuRecup);\n\t\t\tlisteCom.add(comment1);\n\t\t}\n\t\tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,listeCom,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n\t\treturn ok(comp2.render(g));\n }else{\n \tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,null,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n \t\treturn ok(comp2.render(g));\t\n \t\n }\n\t\t \n\t\t \n\t \t\n\t \t\n\t }",
"private String getQuerySelecaoPromocoes()\n\t{\n\t\tString result = \n\t\t\t\"SELECT \" +\n\t\t\t\" PROMOCAO.IDT_PROMOCAO, \" +\n\t\t\t\" PROMOCAO.NOM_PROMOCAO, \" +\n\t\t\t\" PROMOCAO.DAT_INICIO_VALIDADE, \" +\n\t\t\t\" PROMOCAO.DAT_FIM_VALIDADE, \" +\n\t\t\t\" PROMOCAO.VLR_MAX_CREDITO_BONUS \" +\n\t\t \"FROM \" +\n\t\t \" TBL_GER_PROMOCAO PROMOCAO \" + \n\t\t \"WHERE \" +\n\t\t \" PROMOCAO.IDT_CATEGORIA = \" + String.valueOf(ID_CATEGORIA_PULA_PULA);\n\t\t\n\t\treturn result;\n\t}",
"public String rechercheConclusionVerificationCoupefeu(int numeroBatiment) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Verification> verifications = em.createQuery(\"FROM Verification v where v.organe.batiment.numero = \"+numeroBatiment).getResultList();\n\t\tint test,i;\n\t\ttest=0;\n\t\ti=verifications.size()-1;\n\t\tString conclusion=\"--\";\n\t\tif(verifications.size()!=0){\n\t\t\twhile(test==0 && i>-1) {\n\t\t\t\tif(verifications.get(i).getOrgane() instanceof Coupefeu ){\n\t\t\t\t\ttest=1;\n\t\t\t\t}\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tif(test==1)\n\t\t\t\tconclusion=verifications.get(i+1).getConclusion();\n\t\t}\n\t\treturn conclusion;\n\t}",
"private void comprobarActividades(List<DetectedActivity> actividadesProvables){\n for( DetectedActivity activity : actividadesProvables) {\n //preguntamos por el tipo\n switch( activity.getType() ) {\n case DetectedActivity.IN_VEHICLE: {\n //preguntamos por la provabilidad de que sea esa actividad\n //si es mayor de 75 (de cien) mostramos un mensaje\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En vehiculo\");\n }\n break;\n }\n case DetectedActivity.ON_BICYCLE: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En bici\");\n }\n break;\n }\n case DetectedActivity.ON_FOOT: {\n //este lo dejamos vacio por que va implicito en correr y andar\n break;\n }\n case DetectedActivity.RUNNING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Corriendo\");\n }\n break;\n }\n case DetectedActivity.WALKING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Andando\");\n }\n break;\n }\n case DetectedActivity.STILL: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Quieto\");\n }\n break;\n }\n case DetectedActivity.TILTING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Tumbado\");\n }\n break;\n }\n\n case DetectedActivity.UNKNOWN: {\n //si es desconocida no decimos nada\n break;\n }\n }\n }\n }",
"public WithdrawalExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public void setStatoCorrente(Stato prossimo)\r\n\t{\r\n\t\tif(!(corrente==null))\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto NON attiva la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(false);\r\n\t\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"Imposto lo stato corrente: \"+prossimo.toString());\r\n\t\tcorrente=prossimo;\r\n\t\tif(!(corrente==null))\r\n\t\t{\r\n\t\t\t//System.out.println(\"Attivo le transazioni \"+corrente.getTransazioniUscenti().size());\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto ATTIVA la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"int obliczLiczbaKont()\n\t{\n\t\tListaProsumentowWrap listaProsumentowWrap= ListaProsumentowWrap.getInstance();\n\t\tArrayList<Prosument> listaProsumentow = listaProsumentowWrap.getListaProsumentow();\n\t\t\n\t\tint sum=0;\n\t\t\n\t\tint i=0;\n\t\twhile (i<listaProsumentow.size())\n\t\t{\n\t\t\tProsument prosument = listaProsumentow.get(i);\n\t\t\t\n\t\t\tif (prosument instanceof ProsumentEV)\n\t\t\t{\n\t\t\t\tsum+=2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum++;\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn sum;\n\t}",
"public GermchitExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public BhiFeasibilityStudyExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}",
"public String getIndicadorHabilitacionRuv(Map criteria);",
"public void filtroCedula(String pCedula){\n \n }",
"private ValidationResult allCriteriaSatisfied(FormCheckerElement elem) {\n\t\tfor (Criterion criterion : elem.getCriteria()) {\n\t\t\tValidationResult vr = criterion.validate(elem);\n\t\t\tif (!vr.isValid()) {\n\t\t\t\treturn vr;\n\t\t\t}\n\t\t}\n\n\t\treturn ValidationResult.ok();\n\t}",
"public void realizaProcessamentoCartaoChance() throws Exception {\n if (indiceChance == 1) {\n DeslocarJogador(jogadorAtual(), 40);\n this.listaJogadores.get(jogadorAtual()).addDinheiro(200);\n\n } else if (indiceChance == 2) {\n DeslocarJogador(jogadorAtual(), 24);\n } else if (indiceChance == 3) {\n if (this.posicoes[this.jogadorAtual()] == 40 || this.posicoes[this.jogadorAtual()] > 11) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(200);\n }\n DeslocarJogador(jogadorAtual(), 11);\n\n\n } else if (indiceChance == 4) {\n if (this.posicoes[this.jogadorAtual()] < 12 || this.posicoes[this.jogadorAtual()] > 28) {\n DeslocarJogador(jogadorAtual(), 12);\n } else {\n DeslocarJogador(jogadorAtual(), 28);\n }\n } else if (indiceChance == 5 || indiceChance == 16) {\n if (this.posicoes[jogadorAtual()] < 5 || this.posicoes[jogadorAtual()] > 35) {\n DeslocarJogador(jogadorAtual(), 5);\n } else if (this.posicoes[jogadorAtual()] < 15) {\n DeslocarJogador(jogadorAtual(), 15);\n } else if (this.posicoes[jogadorAtual()] < 25) {\n DeslocarJogador(jogadorAtual(), 25);\n } else if (this.posicoes[jogadorAtual()] < 35) {\n DeslocarJogador(jogadorAtual(), 35);\n }\n\n int jogador = this.jogadorAtual();\n Lugar lugar = this.tabuleiro.get(this.posicoes[jogador] - 1);\n String nomeDono = (String) Donos.get(this.posicoes[jogador]);\n if (this.isUmJogador(nomeDono)) {\n Jogador possivelDono = this.getJogadorByName(nomeDono);\n if (this.isPosicaoFerrovia(this.posicoes[jogador])) {\n this.print(\"\\tO dono eh \" + possivelDono.getNome());\n }\n this.pagarFerrovia(possivelDono.getId(), jogador, 50, lugar.getNome());\n }\n\n } else if (indiceChance == 6) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(50);\n } else if (indiceChance == 7) {\n DeslocarJogador(jogadorAtual(), this.posicoes[jogadorAtual()] - 3);\n this.pagarEventuaisTaxas(jogadorAtual());\n } else if (indiceChance == 8) {\n DeslocarJogador(jogadorAtual(), 10);\n adicionaNaPrisao(listaJogadores.get(jogadorAtual()));\n\n } else if (indiceChance == 9) {\n int GastosRua = this.listaJogadores.get(jogadorAtual()).getQuantidadeDeCasas() * 25;\n GastosRua = GastosRua + this.listaJogadores.get(jogadorAtual()).getQuantidadeDeHoteis() * 10;\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(GastosRua);\n } else if (indiceChance == 10) {\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(15);\n } else if (indiceChance == 11) {\n\n this.listaJogadores.get(jogadorAtual()).ganharCartaoSaidaDePrisao(\"chance\");\n this.cardChancePrisaoEmPosse = true;\n } else if (indiceChance == 12) {\n if (this.posicoes[this.jogadorAtual()] > 5) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(200);\n }\n DeslocarJogador(jogadorAtual(), 5);\n if (this.posicoes[this.jogadorAtual()] > 5) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(200);\n }\n } else if (indiceChance == 13) {\n DeslocarJogador(jogadorAtual(), 39);\n } else if (indiceChance == 14) {\n int debito = numeroDeJogadores * 50 - 50;\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(debito);\n for (int i = 0; i < numeroDeJogadores; i++) {\n if (i != jogadorAtual()) {\n this.listaJogadores.get(i).addDinheiro(50);\n }\n }\n } else if (indiceChance == 15) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(150);\n }\n\n\n\n if (indiceChance < 16) {\n indiceChance++;\n } else {\n indiceChance = 1;\n }\n }",
"private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }",
"boolean contemProfessor(String cpf);",
"public GoodsmsgExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"private DatosFacturaVO calcularAllDatosFactura(int idFactura) {\n DatosFacturaVO datosFacturaVO = null;\n try {\n Criteria criteria = getSession().createCriteria(DetalleFactura.class);\n criteria.add(Restrictions.eq(\"factura\", new Factura(idFactura)));\n List<DetalleFactura> detalleFacturas = criteria.list();\n double subtotal = 0;\n double retenciones = 0;\n for (DetalleFactura detalleFactura : detalleFacturas) {\n subtotal = subtotal + detalleFactura.getTotal();\n criteria = getSession().createCriteria(FacturaRetencion.class);\n criteria.add(Restrictions.eq(\"detalleFactura\", detalleFactura));\n List<FacturaRetencion> facturaRetencions = criteria.list();\n for (FacturaRetencion facturaRetencion : facturaRetencions) {\n retenciones = retenciones + facturaRetencion.getRetenciones().getValor();\n }\n }\n\n criteria = getSession().createCriteria(FacturaIva.class);\n criteria.add(Restrictions.eq(\"factura\", new Factura(idFactura)));\n List<FacturaIva> facturaIvas = criteria.list();\n double valorIva = 0;\n if (facturaIvas.size() > 0) {\n short idIva = facturaIvas.get(0).getIva().getId();\n Criteria criteriaIva = getSession().createCriteria(Iva.class);\n criteriaIva.add(Restrictions.eq(\"id\", idIva));\n Iva iva = (Iva) criteriaIva.uniqueResult();\n valorIva = subtotal * (iva.getPorcentaje() / 100);\n }\n double total = subtotal + valorIva;\n double totalPagar = total - retenciones;\n\n criteria = getSession().createCriteria(Abono.class);\n criteria.add(Restrictions.eq(\"factura\", new Factura(idFactura)));\n List<Abono> abonos = criteria.list();\n double valorAbonos = 0;\n double saldo = totalPagar;\n for (Abono abono : abonos) {\n valorAbonos = valorAbonos + abono.getValor();\n }\n saldo = saldo - valorAbonos;\n datosFacturaVO = new DatosFacturaVO(subtotal, valorIva, total, retenciones, totalPagar, saldo);\n } catch (Exception e) {\n return null;\n } finally {\n return datosFacturaVO;\n }\n }",
"void criteria(Criteria criteria);",
"void criteria(Criteria criteria);",
"void criteria(Criteria criteria);",
"void criteria(Criteria criteria);",
"public void addConclusions() {\n\t\tif(conclusionNumbers1.size()==0) {\n\t\t\tconclusion1=\"\";\n\t\t}\n\t\telse if(conclusionNumbers1.size()==1) {\n\t\t\tconclusion1 = \"Bacteroides was detected from sample \"+conclusionNumbers1.get(0)+\".\";\n\t\t}\n\t\telse if(conclusionNumbers1.size()==2) {\n\t\t\tconclusion1 = \"Bacteroides was detected from samples \"+conclusionNumbers1.get(0) + \" and \"+ conclusionNumbers1.get(1) + \".\";\n\t\t}\n\t\telse {\n\t\t\tconclusion1 = \"Bacteroides was detected from samples \";\n\t\t\tfor(int i=0;i<conclusionNumbers1.size()-2;i++) {\n\t\t\t\tconclusion1+=conclusionNumbers1.get(i) + \", \";\n\t\t\t}\n\t\t\tconclusion1+= conclusionNumbers1.get(conclusionNumbers1.size()-2) + \" and \"+ conclusionNumbers1.get(conclusionNumbers1.size()-1) + \".\";\n\t\t}\n\t\t\n\t\tif(conclusionNumbers2.size()==0) {\n\t\t\tconclusion2=\"\";\n\t\t}\n\t\telse if(conclusionNumbers2.size()==1) {\n\t\t\tconclusion2 = \"no Bacteroides was detected from sample \"+conclusionNumbers2.get(0)+\".\";\n\t\t}\n\t\telse if(conclusionNumbers2.size()==2) {\n\t\t\tconclusion2 = \"no Bacteroides was detected from samples \"+conclusionNumbers2.get(0) + \" and \"+ conclusionNumbers2.get(1) + \".\";\n\t\t}\n\t\telse {\n\t\t\tconclusion2 = \"no Bacteroides was detected from samples \";\n\t\t\tfor(int i=0;i<conclusionNumbers2.size()-2;i++) {\n\t\t\t\tconclusion2+=conclusionNumbers2.get(i) + \", \";\n\t\t\t}\n\t\t\tconclusion2+= conclusionNumbers2.get(conclusionNumbers2.size()-2) + \" and \"+ conclusionNumbers2.get(conclusionNumbers2.size()-1) + \".\";\n\t\t}\n\t\t\n\t}",
"public TPrizeExample() {\r\n\t\toredCriteria = new ArrayList();\r\n\t}",
"public double contagionProbability(Person p)\n\t{\n\t\tif(p.getAge()<=18)\n\t\t{\n\t\t\treturn con_18*p.contagionProbability();\n\t\t}\n\t\tif(p.getAge()>18 && p.getAge()<=55)\n\t\t{\n\t\t\treturn con_18_55*p.contagionProbability();\n\t\t}\n\t\treturn con_up55*p.contagionProbability();\n\t}",
"private double estimateCategoricalPropertyProb(TemporalElementStats stats1, String property1,\n Comparator comp,\n TemporalElementStats stats2, String property2) {\n Map<String, Map<PropertyValue, Double>> map1 =\n stats1.getCategoricalSelectivityEstimation();\n Map<String, Map<PropertyValue, Double>> map2 =\n stats2.getCategoricalSelectivityEstimation();\n Map<PropertyValue, Double> propStats1 = map1.getOrDefault(property1, null);\n Map<PropertyValue, Double> propStats2 = map2.getOrDefault(property2, null);\n // property not sampled or not considered\n if (propStats1 == null || propStats2 == null) {\n // property not considered => return 0.5\n if (!isPropertyRelevant(property1) && !isPropertyRelevant(property2)) {\n return 0.5;\n } else {\n // property not sampled => very rare => return very small value\n return 0.0001;\n }\n }\n if (comp == EQ || comp == NEQ) {\n double sum = 0.;\n for (Map.Entry<PropertyValue, Double> entry1 : propStats1.entrySet()) {\n double val1Selectivity = entry1.getValue();\n for (Map.Entry<PropertyValue, Double> entry2 : propStats2.entrySet()) {\n if (entry1.getKey().equals(entry2.getKey())) {\n double val2Selectivity = entry2.getValue();\n sum += val1Selectivity * val2Selectivity;\n }\n }\n }\n return comp == EQ ? sum : 1. - sum;\n } else {\n // shouldn't happen, categorical variables can only be compared with EQ or NEQ\n return 0.;\n }\n }",
"public TFirmwareCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"@Override\n\tpublic List<Polyvalence> getPolyvalencesByCriteria(String matriculeOp, String refArticle, Integer firstRow,\n\t\t\tInteger numRows) {\n\t\treturn null;\n\t}",
"public IncomeClassExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public boolean comprobarProfesor(int ID, String ruta)\n\t{\n\t\tboolean ret = true;\n\t\t\n\t\tif(buscarPorID(ID, ruta) == null)\n\t\t\tret = false;\n\t\t\n\t\treturn ret;\n\t}",
"public GrapheIndicateursProjet (Projet p) {\n seuils = p.getSeuilFixes() ;\n \n // pour l'echelle, on determine les mesures max de toutes les iterations\n \n \n iterations = p.getListeIt() ; \n nbIt = iterations.size() ;\n \n // calcul des maximums\n Iteration tempIt = null ;\n IndicateursIteration tempIndIt = null ;\n for (int i = 0 ; i < nbIt ; i++)\n {\n if (iterations.get(i) instanceof Iteration)\n {\n tempIt = (Iteration)iterations.get(i) ;\n tempIndIt = tempIt.getIndicateursIteration() ;\n // charges\n if (tempIndIt.getTotalCharges() > chargesMax) { chargesMax = tempIndIt.getTotalCharges() ; }\n\t\tif (tempIndIt.getChargeMoyenneParticipants() > moyenneChargesMax) { moyenneChargesMax = tempIndIt.getChargeMoyenneParticipants() ; }\n\t\tif (tempIndIt.getNombreParticipants() > participantsMax) { participantsMax = tempIndIt.getNombreParticipants() ; }\n\t\tif (tempIndIt.getNombreTachesTerminees() > tachesTermineesMax) { tachesTermineesMax = tempIndIt.getNombreTachesTerminees() ; }\n\t\tif (tempIndIt.getNombreMoyenTachesParticipants() > tachesParticipantsMax) { tachesParticipantsMax = tempIndIt.getNombreMoyenTachesParticipants() ; }\n\t\tif (tempIndIt.getDureeMoyenneTaches() > dureeMoyenneTacheMax) { dureeMoyenneTacheMax = tempIndIt.getDureeMoyenneTaches() ; }\n }\n }\n setPreferredSize(new Dimension(ITERATION_WIDTH * nbIt,440));\n\t//setBorder(new TitledBorder(new EtchedBorder(), \"toto\", 5, TitledBorder.ABOVE_TOP)) ;\n }",
"private void filtrirajPoParametrima(SelectConditionStep<?> select,\n UniverzalniParametri parametri) {\n if (parametri.getRobaKategorije() != null\n && parametri.getRobaKategorije().isGrupaPretraga() == true) {\n select.and(ROBA.GRUPAID.in(parametri.getRobaKategorije().getFieldName()));\n } else if (parametri.getRobaKategorije() != null\n && parametri.getRobaKategorije().isPodgrupaPretraga() == true) {\n select.and(ROBA.PODGRUPAID.in(parametri.getPodGrupe().stream().map(PodGrupa::getPodGrupaId)\n .collect(Collectors.toList())));\n }\n\n if (!StringUtils.isEmpty(parametri.getProizvodjac())) {\n select.and(ROBA.PROID.eq(parametri.getProizvodjac()));\n }\n\n if (!StringUtils.isEmpty(parametri.getPodgrupaZaPretragu())) {\n List<Integer> podgrupe = parametri.getPodGrupe().stream().filter(\n podGrupa -> podGrupa.getNaziv().equalsIgnoreCase(parametri.getPodgrupaZaPretragu()))\n .map(PodGrupa::getPodGrupaId).collect(Collectors.toList());\n if (!podgrupe.isEmpty()) {\n select.and(ROBA.PODGRUPAID.in(podgrupe));\n }\n }\n if (parametri.isNaStanju()) {\n select.and(ROBA.STANJE.greaterThan(new BigDecimal(0)));\n }\n }",
"@Override\n\tpublic List<Comisiones> buscar(Comisiones comisiones) {\n\t\tEntityManager manager = createEntityManager();\n\t\tCriteriaBuilder builder = manager.getCriteriaBuilder();\n\t\t\n\t\tCriteriaQuery<Comisiones> criteriaQuery = builder.createQuery(Comisiones.class);\n\t\tRoot<Comisiones> root = criteriaQuery.from(Comisiones.class);\n\t\t\n\t\t \n\t\tPredicate valor1 = builder.equal(root.get(\"region\"), comisiones.getRegion().getrEgionidpk());\n\t\tPredicate valor2 = builder.equal(root.get(\"vCodcomision\"),comisiones.getvCodcomision());\n\t\tPredicate valor3 = builder.equal(root.get(\"vNumdocapr\"),comisiones.getvNumdocapr());\n\t\tPredicate valor4 = null;\n\t\tPredicate valor6 = null; \n\t\tif(comisiones.getvDescripcion().length() >0) {\n\t\t\t valor4 = builder.like(root.get(\"vDescripcion\"), \"%\"+comisiones.getvDescripcion()+\"%\"); \n\t\t\t valor6 = builder.or(valor4);\n\t\t}else {\n\t\t\t if(comisiones.getNombrencargado().length()>0) {\n\t\t\t\t valor4 = builder.like(root.get(\"consejero\").get(\"vDesnombre\"), \"%\"+comisiones.getNombrencargado()+\"%\"); \n\t\t\t\t valor6 = builder.or(valor4);\n\t\t\t }else {\n\t\t\t\t valor6 = builder.or(valor2,valor3); \n\t\t\t }\n\t\t\t \n\t\t}\n\t\tPredicate valor7 = builder.and(valor1,valor6);\n\t\tcriteriaQuery.where(valor7);\n\t\tQuery<Comisiones> query = (Query<Comisiones>) manager.createQuery(criteriaQuery);\n\t\tList<Comisiones> resultado = query.getResultList();\n\t\tmanager.close();\n\t\treturn resultado; \n\t}",
"public StudentExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"private Criteria buildActiveCriteria(){\r\n Criteria criteria = new Criteria();\r\n criteria.addEqualTo(KRADPropertyConstants.ACTIVE, true);\r\n\r\n return criteria;\r\n }",
"private Filtro getFiltroPiattiComandabili() {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Modulo modPiatto = PiattoModulo.get();\n\n try { // prova ad eseguire il codice\n\n filtro = FiltroFactory.crea(modPiatto.getCampo(Piatto.CAMPO_COMANDA), true);\n\n } catch (Exception unErrore) { // intercetta l'errore\n new Errore(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }",
"public String rechercheConclusionVerificationPoteaux(int numeroBatiment) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Verification> verifications = em.createQuery(\"FROM Verification v where v.organe.batiment.numero = \"+numeroBatiment).getResultList();\n\t\tint test,i;\n\t\ttest=0;\n\t\ti=verifications.size()-1;\n\t\tString conclusion=\"--\";\n\t\tif(verifications.size()!=0){\n\t\t\twhile(test==0 && i>-1) {\n\t\t\t\tif(verifications.get(i).getOrgane() instanceof Poteaux ){\n\t\t\t\t\ttest=1;\n\t\t\t\t}\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tif(test==1)\n\t\t\t\tconclusion=verifications.get(i+1).getConclusion();\n\t\t}\n\t\treturn conclusion;\n\t}",
"protected void addExampleFiltering(Criteria criteria, Map params) {\n FarmIcsConversion entity = (FarmIcsConversion) params.get(FILTER);\n if (entity != null) {\n\n criteria.createAlias(\"farmer\", \"f\");\n // criteria.createAlias(\"farm\", \"fm\");\n \n \n if (!ObjectUtil.isEmpty(entity.getFarmer()) && entity.getFarmer().getId()!=0)\n criteria.add(Restrictions.eq(\"f.id\", entity.getFarmer().getId()));\n /* \n if (!ObjectUtil.isEmpty(entity.getFarm()) && entity.getFarm().getId()!=0)\n criteria.add(Restrictions.eq(\"fm.id\", entity.getFarm().getId()));*/\n \n // sorting direction\n String dir = (String) params.get(DIR);\n // sorting column\n String sort = (String) params.get(SORT_COLUMN);\n if (dir.equals(DESCENDING)) {\n // sort descending\n criteria.addOrder(Order.desc(sort));\n } else {\n // sort ascending\n criteria.addOrder(Order.asc(sort));\n }\n }\n }",
"public void calcularEntropia(){\n //Verificamos si será con la misma probabilida o con probabilidad\n //especifica\n if(contadorEstados == 0){\n //Significa que será con la misma probabilidad por lo que nosotros\n //calcularemos las probabilidades individuales\n for(int i = 0; i < numEstados; i++){\n probabilidadEstados[i] = 1.0 / numEstados;\n }\n }\n for(int i = 0; i < numEstados; i++){\n double logEstado = Math.log10(probabilidadEstados[i]);\n logEstado = logEstado * (-1);\n double logDos = Math.log10(2);\n double divisionLog = logEstado / logDos;\n double entropiaTmp = probabilidadEstados[i] * divisionLog;\n resultado += entropiaTmp;\n }\n }",
"public ZonghepingdingjieguoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public synchronized static Criteria pesquisarLikeGoogle(Criteria consulta,String variavel, String diferenciador){\n\t\tStringTokenizer tokenizer = new StringTokenizer(diferenciador);\n\t\twhile(tokenizer.hasMoreTokens()){\n\t\t\tString token = \"%\"+tokenizer.nextToken()+\"%\";\n\t\t\tconsulta.add(Expression.like(variavel, token).ignoreCase());\n\t\t}\t\n\t\treturn consulta;\t\t\n\t}",
"int countByExample(StudentCriteria example);",
"public void registraPoliticasCond (Long codPropuesta, ReformaTributariaInput reformaIn, Collection deudas, ReformaTributariaOutput reformaOut)throws Exception{\n \t\n Connection conn = null;\n CallableStatement call = null;\n try{ \n conn = this.getConnection();\n //codPropuesta=null;//prueba que pasa\n //reformaIn=null;\n \t int canal=0;\n \t int tipoConvenio=0;\n \t int garantia=0;\n\t\t \tIterator itera = deudas.iterator();\n\t\t \t//System.out.println(\"<-------------------------------------Ingreso a registrar opciones--------------------------------------->\");\n\t\t while(itera.hasNext()) {\n\t\t \t\n\t\t \tDeudaWeb elemento = (DeudaWeb) itera.next();\n\t\t \t\n\t\t \t/*System.out.println(\"codPropuesta--->\"+codPropuesta);\n\t\t \tSystem.out.println(\"getIsIntranet--->\"+reformaIn.getIsIntranet());\n\t\t \tSystem.out.println(\"getPagoTotalConvenio--->\"+reformaIn.getPagoTotalConvenio());\n\t\t \tSystem.out.println(\"getComportamientoConvenio--->\"+reformaIn.getComportamientoConvenio());\n\t\t \tSystem.out.println(\"getRutContribuyente--->\"+reformaIn.getRutContribuyente());\n\t\t \tSystem.out.println(\"getTieneGarantia--->\"+reformaIn.getTieneGarantia());\n\t\t \tSystem.out.println(\"getTipoContribuyente--->\"+elemento.getTipoContribuyente());\n\t\t \tSystem.out.println(\"getTipoFormulario--->\"+elemento.getTipoFormulario());\n\t\t \tSystem.out.println(\"getRutRol--->\"+elemento.getRutRol());\n\t\t \tSystem.out.println(\"getFolio--->\"+elemento.getFolio());\n\t\t \tSystem.out.println(\"getFechaVencimiento--->\"+elemento.getFechaVencimiento());\n\t\t \tSystem.out.println(\"getFechaAntiguedad--->\"+elemento.getFechaAntiguedad());\n\t\t \tSystem.out.println(\"getPorcentajeCondonacionMultas--->\"+elemento.getPorcentajeCondonacionMultas());\n\t\t \tSystem.out.println(\"getPorcentajeCondonacionIntereses--->\"+elemento.getPorcentajeCondonacionIntereses());\n\t\t \tSystem.out.println(\"getBeneficioPp--->\"+reformaOut.getBeneficioPp());\n\t\t \tSystem.out.println(\"getMinCuotaContado--->\"+reformaOut.getMinCuotaContado());\n\t\t \tSystem.out.println(\"getMaxCuota--->\"+reformaOut.getMaxCuota());*/\n\t\t \t\n\t\t \tcall = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.INSERTA_CONDICION_CNV(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}\");\n\t\t \t\n\t\t \t\n\t\t \t\n\t\t \t//obtengo canal\n\t\t \tif (reformaIn.getIsIntranet().booleanValue()){\n\t\t \t\tcanal=1;//presencial\n\t\t \t}else {\n\t\t \t\tcanal=2;//internet\n\t\t \t}\n\t\t \t\n\t\t \t//obtengo tipo convenio\n\t\t \tif (reformaIn.getPagoTotalConvenio().booleanValue()){\n\t\t \t\ttipoConvenio=1;//total\n\t\t \t}else{\n\t\t \t\ttipoConvenio=2;//parcial\n\t\t \t}\n\t\t \t\n\t\t \t//obtengo garantia\n\t\t \tif (reformaIn.getTieneGarantia().booleanValue()){\n\t\t \t\tgarantia=1;//con garatia\n\t\t \t}else{\n\t\t \t\tgarantia=2;//sin garantia\n\t\t \t}\n\t\t \t\n\t\t \t\n\t\t \tcall.setLong(1, codPropuesta.longValue());\n\t\t \tcall.setLong(2, canal);//canal;\n\t\t \tcall.setLong(3, tipoConvenio);//Tipo convenio Pago total-pago parcial\n\t\t \tcall.setLong(4, reformaIn.getComportamientoConvenio().longValue());//comportamiento Bueno=1 / Regular=2 / Malo=3\n\t\t \tcall.setLong(5, reformaIn.getRutContribuyente().longValue());//rut evaluado;\n\t\t \tcall.setLong(6, garantia);//embargo / o garantia\n\t\t \tcall.setLong(7, elemento.getTipoContribuyente());//cliente_tipo;\n\t\t \tcall.setLong(8, elemento.getTipoFormulario());//tipo_forulario;\n\t\t \tcall.setLong(9, elemento.getRutRol());//rut_rol;\n\t\t \tcall.setLong(10, elemento.getFolio());//form_folio;\n\t\t \tcall.setDate(11,elemento.getFechaVencimiento());//fecha_vcto;\n\t\t \tcall.setDate(12,elemento.getFechaAntiguedad());//fecha_antiguedad;\n\t\t \tcall.setLong(13, elemento.getPorcentajeCondonacionMultas());//porcentaje condonacion multas\n\t\t \tcall.setLong(14, elemento.getPorcentajeCondonacionIntereses());//porcentaje condonacion intereses\n\t\t \tcall.setLong(15, reformaOut.getBeneficioPp().longValue());//beneficio pronto pago o incentivo al pago;\n\t\t \tcall.setLong(16, reformaOut.getMinCuotaContado().longValue());//porcentaje minimo cuota contado\n\t\t \tcall.setLong(17, reformaOut.getMaxCuota().longValue());//porcentaje maximo cuotas\n\t\t \tcall.setNull(18, OracleTypes.VARCHAR);//error\n\t\t \t\n\t\t \tcall.execute();\n\t\t \t\n\t }\n\t\t \n\t\t call.close(); \n }catch (Exception e) {\n e.printStackTrace();\n }finally{\n this.closeConnection();\n }\t\t \n \t\n }",
"protected String comprobarConsumoEnergetico(Letra letra){\r\n if(getConsumoEnergetico() == Letra.A | getConsumoEnergetico() == Letra.B | getConsumoEnergetico() == Letra.C \r\n | getConsumoEnergetico() == Letra.D | getConsumoEnergetico() == Letra.E | getConsumoEnergetico() == Letra.F){\r\n return \"Consumo energetico correcto; letra correcta\";\r\n }\r\n else{\r\n return \"Consumo energetico incorrecto; letra erronea\";\r\n }\r\n}",
"public static void caso21(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso2.owl\",\"file:resources/caso2.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}",
"public PlaqueControlExample() {\n oredCriteria = new ArrayList<Criteria>();\n }"
] | [
"0.5829968",
"0.5629355",
"0.5611464",
"0.5583396",
"0.5561696",
"0.55405235",
"0.5524523",
"0.55067474",
"0.550406",
"0.54749155",
"0.54124886",
"0.54052657",
"0.54031503",
"0.54021937",
"0.53798157",
"0.5348956",
"0.53370595",
"0.53277326",
"0.53185034",
"0.531565",
"0.5301765",
"0.5297303",
"0.5287175",
"0.5285467",
"0.5283909",
"0.5269002",
"0.5261997",
"0.5255565",
"0.52395624",
"0.5227792",
"0.52078754",
"0.5206291",
"0.5205992",
"0.52004135",
"0.5200349",
"0.51995784",
"0.51907706",
"0.51825756",
"0.5182067",
"0.51729834",
"0.51686996",
"0.5164819",
"0.51519984",
"0.5145878",
"0.5135128",
"0.5104863",
"0.5104599",
"0.5102134",
"0.5099176",
"0.5093872",
"0.50902903",
"0.5083741",
"0.5082248",
"0.5078989",
"0.50735307",
"0.5073299",
"0.5070456",
"0.5068364",
"0.50628495",
"0.50620383",
"0.5057904",
"0.50526685",
"0.50498587",
"0.50442535",
"0.5043802",
"0.5037079",
"0.502916",
"0.50258034",
"0.50243765",
"0.50237894",
"0.5022382",
"0.5016991",
"0.5013407",
"0.5013407",
"0.5013407",
"0.5013407",
"0.5010406",
"0.50079525",
"0.5002661",
"0.4994999",
"0.49935314",
"0.49871394",
"0.49870527",
"0.4986077",
"0.49824074",
"0.49772498",
"0.4974254",
"0.49737135",
"0.49690902",
"0.49669924",
"0.49543697",
"0.49523997",
"0.494336",
"0.49406904",
"0.49380785",
"0.49328932",
"0.49323305",
"0.49275678",
"0.49244663",
"0.49208218"
] | 0.51624554 | 42 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.