query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
84cbb8ad23dfc5a5aef7424a511bd2fa
Send Message to Client
[ { "docid": "778e5f72d1777f89915257c907ca1c6f", "score": "0.74195004", "text": "private void sendMessage(String msg){\n\t\ttry{\n\t\t\toutput.writeObject(\"SERVER - \"+ msg);\n\t\t\toutput.flush();\n\t\t\tshowMessage(\"\\nSERVER - \" + msg);\n\t\t}catch(IOException io){\n\t\t\tchatWindow.append(\"\\n Error, can't send message\");\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "ae65cb0566c21aacf3623955a22b3fdb", "score": "0.7861993", "text": "private void sendMessageToClient(String aMessage) {\r\n\t\tmOut.println(aMessage);\r\n\t\tmOut.flush();\r\n\t}", "title": "" }, { "docid": "8eb7d465e0b9db106192a31729754092", "score": "0.78493243", "text": "private void sendMessage(String message) {\n\t\ttry {\n\t\t\toutputStream.writeObject(\"CLIENT - \" + message);\n\t\t\toutputStream.flush();\n\t\t\tshowMessage(\"\\nCLIENT - \" + message);\n\t\t} catch (IOException e) {\n\t\t\tchatWindow.append(\"\\nSomething went wrong trying to send the message\");\n\t\t}\n\t}", "title": "" }, { "docid": "18348abc503ad2a6eccb897eb98da3da", "score": "0.7827306", "text": "@Override\n public void sendMessage(String message) {\n client.sendMessage(message);\n }", "title": "" }, { "docid": "2257a82c69a578d0172b511542d49c53", "score": "0.7740788", "text": "public void sendMessage(String msg) {\n\n try {\n System.out.println(\"CLIENT: Verbinde zu Server....\");\n Socket socket = new Socket();\n socket.connect(address, 5000);\n System.out.println(\"CLIENT: Verbunden.\");\n\n // Client schreibt eine Nachricht an Server\n PrintWriter pw = new PrintWriter(new OutputStreamWriter(socket.getOutputStream()));\n pw.println(msg);\n pw.flush();\n System.out.println(\"CLIENT: Nachricht gesendet\");\n\n // Verbindung schließen\n pw.close();\n socket.close();\n System.out.println(\"CLIENT: Verbindung geschlossen\" );\n \n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "e554a0c917da8a39155da0857bbfe41e", "score": "0.7674133", "text": "public void send(String message);", "title": "" }, { "docid": "4deefd991e8d441397cce3cdb5b066e4", "score": "0.76353735", "text": "public void sendMessage(String message) {\r\n\t\t//TODO verwijderen\r\n\t\tSystem.out.println(\"Client: \" + message);\r\n\t\tout.println(message);\r\n\t}", "title": "" }, { "docid": "bab6101dfcf25e70bffb19ce341dd483", "score": "0.7609471", "text": "private void sendMessage(String message){\n try{\n output.writeObject(\"SERVER - \" + message);\n output.flush();\n showMessage(\"\\nSERVER -\" + message);\n }catch(IOException ioException){\n //chatWindow.append(\"\\n ERROR: CANNOT SEND MESSAGE, PLEASE RETRY\");\n }\n }", "title": "" }, { "docid": "e0b751cdd9687b85cc17061092495201", "score": "0.75863385", "text": "void send(Message message);", "title": "" }, { "docid": "055fda0eafa12bba6372e5dcd257d71a", "score": "0.7552707", "text": "public void send(Message msg);", "title": "" }, { "docid": "439dfeed1bc21a12ab799694bf51a4f4", "score": "0.7522554", "text": "@Override\n public void sendMessage(String msg) {\n toClient.add(msg);\n handleInput();\n }", "title": "" }, { "docid": "eb331fc5dd476789d80d61dd6d0f4d93", "score": "0.7501134", "text": "public void send(String msg);", "title": "" }, { "docid": "34b2713658539029d6cb527b49340f65", "score": "0.7492432", "text": "private void sendData(String message){\r\n try {\r\n outputStream.writeObject(\"Client>>> \" + message);\r\n outputStream.flush(); \r\n main.printMessage(\"Client>>> \" + message);\r\n } //Fin try\r\n catch (IOException ioException){ \r\n main.printMessage(\"Error typing message\");\r\n } //Fin catch \r\n \r\n }", "title": "" }, { "docid": "602f52ef59868e2b90b17c76d479ba46", "score": "0.7466664", "text": "public void send(String message) {\r\n\t\tif (myClientSocket != null) {\r\n\t\t\tmyClientSocket.put(message);\r\n\t\t} else {\r\n\t\t\tapplet.printInfo(\"You are not connected!\");\r\n\t\t\tDebg.err(\"No connection available!\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9b0c6ac77d96cf7052f3d459e6a561f9", "score": "0.7453353", "text": "@Override\n\tpublic void messageSent(Client client, Object msg) {\n\t\t\n\t}", "title": "" }, { "docid": "a0df0a5e555da3623abb6f20908f76ec", "score": "0.7429488", "text": "public void sendMessage(DataTransport message) {\r\n try {\r\n if (ishost){\r\n objectWriter = new ObjectOutputStream(connectionSocket.getOutputStream());\r\n } else {\r\n objectWriter = new ObjectOutputStream(clientSocket.getOutputStream());\r\n }\r\n objectWriter.writeObject(message);\r\n objectWriter.flush(); \r\n }\r\n catch (Exception e){\r\n System.out.println(\"Exception: sendMessage \" + e.getMessage());\r\n } \r\n }", "title": "" }, { "docid": "7325b866d82e87fa6fd0e4c266755767", "score": "0.7410954", "text": "private void sendMessage(String jsonMessage) {\n WebSocketClient client = connection.getClient();\n if (client == null) {\n logger.warn(\"Client is null! Message to be sent: \" + jsonMessage);\n return;\n }\n logger.info(\"Sent message: \" + jsonMessage);\n client.send(jsonMessage);\n }", "title": "" }, { "docid": "20db956399f7d76d1203bc9b7a4d4d47", "score": "0.7387564", "text": "private void sendMessage(String message) {\r\n\t\ttry{\r\n\t\t\toutputClient1.writeObject(message);\r\n\t\t\toutputClient1.flush();\r\n\t\t\toutputClient2.writeObject(message);\r\n\t\t\toutputClient2.flush();\r\n\t\t}\r\n\t\tcatch( IOException e ){\r\n\t\t\tserver.displayArea.append(\" \\n ERROR: I CANT SEND THAT MESSAGE\\n\" + message);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a087fc078f081971432626252710c140", "score": "0.73866993", "text": "public void sendMessage() {\n\n\t}", "title": "" }, { "docid": "aebaece6512e07ad15e1dce331afe67b", "score": "0.7377203", "text": "public synchronized void sendMessage(ServerMessage message)throws IOException{\n os.writeObject(message);\n os.flush();\n }", "title": "" }, { "docid": "63ad84684fefd9b73382e9a5ce8011cb", "score": "0.7377184", "text": "public void sendMessage(String text) {\n \tMessage msg = new Message();\n \tmsg.text = text;\n \tclient.sendTCP(msg);\n }", "title": "" }, { "docid": "9aa3befdc968630c4d6d6ac67dfef9d0", "score": "0.73576146", "text": "public void send(String message) throws IOException;", "title": "" }, { "docid": "455bb34b9459e69c9c894043828928dc", "score": "0.7333299", "text": "private void sendMessage(String message) throws IOException{\n\t\tSystem.out.println(\"envoie message \"+message);\n\t\tthis.doStream.writeBytes(message+\"\\r\\n\");\n\t\tthis.doStream.flush();\n\t\t}", "title": "" }, { "docid": "103cde6aa4e816b15c6fac9767ae96ad", "score": "0.73220897", "text": "public void send(Message message) throws RemoteException;", "title": "" }, { "docid": "18e225c0ea33ee10e31ed9d82308b57f", "score": "0.73177606", "text": "void sendMsg(String msg) {\n try {\n this.outOutputStreamToClient.writeObject(msg);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "5a2e1602657333bf5140f155189d7c86", "score": "0.73006254", "text": "public void sendMsg(){\n\t\tTransmitionHandler handler = new TransmitionHandler(this, server, rate);\n\t\thandler.start();\n\t}", "title": "" }, { "docid": "820835813b011fee71669d18342cd7b3", "score": "0.7295173", "text": "public void sendMsg(String line){\n connection.sendMessage(line);\n }", "title": "" }, { "docid": "581a0f9fe1f40c152d8014ff43cdf813", "score": "0.72429323", "text": "public void sendMessage(ActionEvent event) {\n\t\tif (connection == null) {\n\t\t\tmessages.appendText(\"Du bist noch nicht mit dem Server verbunden!\");\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tBufferedWriter buf_writer = new BufferedWriter(new OutputStreamWriter(connection.getOutputStream()));\n\t\t\t\tbuf_writer.write(send_command + send_message.getText());\n\t\t\t\tbuf_writer.newLine();\n\t\t\t\tbuf_writer.flush();\n\t\t\t\t// Notify the thread running in the background to re-load the messages.\n\t\t\t\tsynchronized (waiter) {\n\t\t\t\t\twaiter.notify();\n\t\t\t\t}\n\t\t\t\t// Clear the textfield\n\t\t\t\tsend_message.clear();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4bb885eb7287fee3c3e0fdade0f2bae6", "score": "0.7239926", "text": "public void send(byte[] message);", "title": "" }, { "docid": "807f05e58fc327568cc814d81f685f01", "score": "0.7237949", "text": "protected void sendMsg() {\n }", "title": "" }, { "docid": "2fa91498485415f346659a34b3398bc6", "score": "0.72140586", "text": "void send(JSONObject message) {\n client.sendMessage(message.toString());\n }", "title": "" }, { "docid": "320634fccc8aa1d8d3218d6095205ba1", "score": "0.7201623", "text": "public void sendMessage(String message){\n try {\n System.out.println(\"sent: \" + message);\n outputStream.write(encode(message));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "28a7fbf7315ed6d6c4cec9d1a57eab35", "score": "0.72005075", "text": "public void send(String msg) {\n out.println(msg);\n // out.write(msg);\n }", "title": "" }, { "docid": "458d94e5ac332c637bec23e6728056cd", "score": "0.7179672", "text": "SendMessage sendMessage();", "title": "" }, { "docid": "956f330a22d113c26cf8426aebe846fc", "score": "0.7175592", "text": "void sendMessage(String message);", "title": "" }, { "docid": "75e69437b1e1d8e42b924f90c4a8ea76", "score": "0.7165041", "text": "public void sendMsg(String msg)throws IOException;", "title": "" }, { "docid": "89ce87939127c8747b38f4b42af3506f", "score": "0.715174", "text": "public synchronized void sendMessage(Message message){\n\n String msg = message.serialize();\n out.println(msg);\n }", "title": "" }, { "docid": "48f2469083eb6fb220b4d62aa88651ac", "score": "0.7149569", "text": "@Override\n\tpublic void send(String message) {\n\t\t\n\t}", "title": "" }, { "docid": "cfec8212b3b7d87e19e813dbe9815732", "score": "0.71440405", "text": "public void send(Message msg) {\n\t\ttry {\n\t\t\tmsg.send(socket);\t\n\t\t\tlogger.info(\"Server sent message: \" + msg.toString());\n\t\t} catch (Exception e) { //TBD: Why not IOException?\n\t\t\te.printStackTrace();\n\t\t\tthis.token = null;\n\t\t\tthis.clientReachable = false;\n\t\t}\n\t}", "title": "" }, { "docid": "b4352b74569db027484eaa6c2a1342c6", "score": "0.7140889", "text": "public void sendMessage(String message) {\n server.sendTextMessage(TargetMode.server, getId(), message);\n }", "title": "" }, { "docid": "beec4f8ac87dd906015168c06bb007b5", "score": "0.7128266", "text": "@Override\n \tpublic void sendMessage(String message) {\n \t\t\n \t}", "title": "" }, { "docid": "2745c5a31fedbaa8e7568268e83cfc5d", "score": "0.7124517", "text": "public static void send(String message){\n System.out.println(\"Sending: \" + message);\n writer.println(message);\n writer.flush();\n }", "title": "" }, { "docid": "d4b5391612e2a0ed69d198d8cb007585", "score": "0.70781726", "text": "public void send() {\r\n\t\t\r\n\t\tinvokeNoReply(\"Send\");\r\n\t}", "title": "" }, { "docid": "18a56cd14314619aedf15a3d1c5eba0e", "score": "0.7072214", "text": "private void sendData(String message) {\n try // broadcast message to clients\n { displayMessage(\"\\nSERVER>>> \" + message);\n Set<Thread> threads = writers.keySet();\n for (Thread thread : threads) {\n writers.get(thread).writeObject(\"SERVER>>> \" + message);\n writers.get(thread).flush(); // flush output to client\n \n }\n } // end try\n catch (IOException ioException) {\n txaChatText.appendText(\"\\nError writing object\");\n } // end catch\n }", "title": "" }, { "docid": "c95da8705e60d39b56c812cb1e3c40f9", "score": "0.7066185", "text": "private void send(RaftMessage msg) {\n\t\t\ttransport.sendMessage(msg);\n\t\t}", "title": "" }, { "docid": "7f506b22633bca89e94f2ed6bab2669a", "score": "0.70621425", "text": "private void envoyerMessageAuClient(String message) {\r\n out.println(message);\r\n out.flush();\r\n }", "title": "" }, { "docid": "44c7ed4de945c69be379874ece47191b", "score": "0.7061609", "text": "void sendMessage(Message msg) {\n }", "title": "" }, { "docid": "5a11c17bc2dd00418205fd9e9b6a3dcb", "score": "0.70568836", "text": "protected void sendMessage() {\n String line;\n BufferedReader clavier = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n\t \n try {\n\tSystem.out.println(\"Tape une ligne \");\n\tline = clavier.readLine();\n\n\tline = \"[\" + this.user + \"] \" + line;\n\n\t// Remote call\n\tthis.theServer.addNewMessage(line);\n } catch (RemoteException e) {\n\tSystem.out.println(\n\t\t\t \"Problem while sending a message to the server: \" + e);\n } catch (IOException ex) {\n\tSystem.err.println (\"IO Problem \"+ex);\n }\n }\n }", "title": "" }, { "docid": "b5d7719aba49b5fcb700aea52c70e15c", "score": "0.703076", "text": "public void sendMessage(int command){\n Message.obtain(mSendServiceHandler, SEND, command, 0).sendToTarget();\n }", "title": "" }, { "docid": "a14eda5b63e317d33772628306382b28", "score": "0.7018673", "text": "public void send(String msg) {\n try {\n outputStream.writeUTF(msg);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "7dffe51eade531d8cb7bf39ed44376a5", "score": "0.701808", "text": "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "title": "" }, { "docid": "4e60ec782fd395b0d9af1311563012c4", "score": "0.70105743", "text": "@Override\n\t\tpublic void sendMessage(int message) {\n\n\t\t}", "title": "" }, { "docid": "f788826001f0c1a3b3baed4c20af132c", "score": "0.70062643", "text": "public void sendMessage(String ip) {\r\n new MyClient(this.data, ip, 5000);\r\n }", "title": "" }, { "docid": "b4d86c20ff0729eb245ed7b8a8b6804d", "score": "0.7005546", "text": "private void sendMsg(String msg){\n\tmsg=id+\" \"+msg;\n try (Socket s = new Socket()) {\n s.connect(serverAddr);\n OutputStream os = s.getOutputStream();\n os.write(msg.getBytes());\n os.flush();\n }catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }", "title": "" }, { "docid": "09c9466f1da5f46e7054c0056a7f28ee", "score": "0.69942725", "text": "@Override\n\tpublic void send(String msg) {\n\t\tmediator.broadcastMessage(msg, connectionInterface);\n\t}", "title": "" }, { "docid": "5db3df326520b04b1e180463d9e9e0c2", "score": "0.6975667", "text": "public void sendMessage (String message) {\n try {\n if (outputStream != null) {\n outputStream.writeUTF(message);\n outputStream.flush();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5aa4575b24ceec484051e987c54aaabd", "score": "0.6969722", "text": "public void send(String aMessage) throws FDZNetworkException;", "title": "" }, { "docid": "d08cf53a37491ff8dd5adcb8c3ac1a38", "score": "0.6953907", "text": "private void send(String msg) {\n if ( user != null) {\n try {\n outputStream.write(msg.getBytes());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "title": "" }, { "docid": "46d6a5b55f7d930c38eb9929cc240c94", "score": "0.6952422", "text": "public void sendData(String msg) {\n out.println(msg);\n \n // Debugging line\n System.out.println(msg);\n // Debugging line\n \n if (out.checkError()) {\n System.out.println(\"ERROR!\\nCould not deliver message to client\");\n kill();\n }\n }", "title": "" }, { "docid": "c5759c51970fd5cac758183b9ce6fc3f", "score": "0.693985", "text": "public void send(String message) {\n\t\ttry {\n\t\t\t// Send it to the server\n\t\t\tout.writeUTF(message);\n\t\t} catch( IOException ie ) { \n\t\t\tSystem.out.println( ie ); \n\t\t}\n\t}", "title": "" }, { "docid": "72b5249fa69846f12519ceec1fdbdeea", "score": "0.6937775", "text": "public void send(String message) {\n // Start thread\n new SendMessage().execute(message);\n }", "title": "" }, { "docid": "7a83629c41486c7b783d73ec695d1f5d", "score": "0.69105", "text": "public void send(String data);", "title": "" }, { "docid": "214c3c8fe2eaecfc9d705a56114907a5", "score": "0.69059217", "text": "void messageSent(MqttClient client, String localAddress, String remoteAddress, MqttMessage message);", "title": "" }, { "docid": "b7115d12b7f181e4ac9252da0121b0c5", "score": "0.6901935", "text": "@MessageMapping(\"/send\")\n public void send(@Payload ControlMessage message) throws Exception {\n LOG.debug(\"Send {}\", message);\n UdpSender.send(message.getTargetHost(), message.getTargetPort(), message.getHex());\n }", "title": "" }, { "docid": "ddf925f71db886dcde33ca06f9d59dd7", "score": "0.68981653", "text": "private void sendMessage() {\n\t\tPrintWriter writer;\n\t\ttry {\n\t\t\twriter = new PrintWriter(connectionSocket.getOutputStream(), true);\n\t\t} catch (IOException e) {\n\t\t\treturn;\n\t\t}\n\t\tif (chatInputTextField.getText().equals(\"\"))\n\t\t\treturn;\n\t\twriter.println(nickName + \": \" + chatInputTextField.getText());\n\t\tchatTextArea.appendText(\"Ty: \" + chatInputTextField.getText() + \"\\n\");\n\t\tchatInputTextField.setText(\"\");\n\t}", "title": "" }, { "docid": "13892500faceaf23a499096c08e408ba", "score": "0.6884645", "text": "public static void send(Socket client, String text) throws IOException {\n\t\tObjectOutputStream input = new ObjectOutputStream(client.getOutputStream());\n\t\tinput.writeObject(text);\n\t}", "title": "" }, { "docid": "9350e8d89551aadadd01a6061a4ff2a4", "score": "0.68827313", "text": "public void sendMessage(String message){\n\t\tthis.messageSendRecieve.sendMessage(message);\n\t}", "title": "" }, { "docid": "188170a9313c5d1279bb1cf7e588990b", "score": "0.68732363", "text": "@Override\n public void sendMessage(String message) {\n roomSocket.sendToEveryone(username,message,password); //message\n }", "title": "" }, { "docid": "54e81b8e7911c6974497c76962bd451d", "score": "0.686941", "text": "public void sendMessage(String msg) {\n\t\ttry {\n\t\t\tString messageToTransmit = msg;\n\t\t\tif (messageToTransmit == null) {\n\t\t\t\tmessageToTransmit = \"\";\n\t\t\t}\n\t\t\tthis.output.println(messageToTransmit);\n\t\t\tthis.output.flush();\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Output Stream is closed\");\n\t\t}\n\t}", "title": "" }, { "docid": "768e90341f96f11c81ee71ee2b8a6bff", "score": "0.6863182", "text": "private void sendMessage(String message){\n\n // check if connection is active\n if (mTransferService.getState() != BlueTooth_service.STATE_CONNECTED){\n Log.v(\"TASK: \", \"BT: SendMessage fail due to not connected\");\n return;\n }\n\n // Check that there's actually something to send\n if(message.length() > 0){\n // Get the message bytes and tell the Bluetooth_service to write\n byte[] send = message.getBytes();\n mTransferService.write(send);\n\n }\n }", "title": "" }, { "docid": "a90943445e961eb25da1e91fd54f9cf5", "score": "0.6858448", "text": "public void send(Message m)\n {\n Environment.passMessage(m);\n }", "title": "" }, { "docid": "dea48c4580f902dacfc41eb143702423", "score": "0.68554664", "text": "synchronized public void sendToThisClient(String _what) {\n\t\tpout.println(_what);\n\t\tpout.flush();\n\t}", "title": "" }, { "docid": "52b70818e69a36792607b33e8b9c2dfc", "score": "0.6853241", "text": "@Override\n public void sendMessage() {\n }", "title": "" }, { "docid": "92d184d122589876c8f5b2f18e5f9cd4", "score": "0.6843036", "text": "private void sendData(String message) {\n try // send object to server\n {\n output.writeObject(message);\n output.flush(); // flush data to output\n } // end try\n catch (IOException ioException) {\n System.out.println(\"Error writing object.\");\n } // end catch\n }", "title": "" }, { "docid": "aa633265f885e2fd7ac1ffdc1e51f6f8", "score": "0.6840191", "text": "void sendMessage(ChatMessaggi msg) {\n try {\n sOutput.writeObject(msg);\n\t\t}\n catch(IOException e) {\n display(\"Exception writing to server: \" + e);\n\t\t}\n\t}", "title": "" }, { "docid": "8b446a940c4a011f0b381cc3c2ef0a32", "score": "0.68369204", "text": "public void toClient(String message){\n\t\t// Added newline char to separate messages\n\t\tmessage = message + \"\\n\";\n\t\t\n\t\t// Write to Socket\n\t\tbyte [] buff;\n\t\tbuff = message.getBytes();\n\t\ttry{\n\t\t\tout.write(buff, 0, message.length());\n\t\t\tout.flush();\n\t\t} catch(IOException e){\n\t\t\t//TODO: if writing to the OutputStream gives an error, we should disconnect this client\n\t\t\tcontrol.disconnect(this);\n\t\t}\n\t}", "title": "" }, { "docid": "4db0893ad86f8963e93f63c3887563cc", "score": "0.6830932", "text": "public void sendMessage(Message message){\n PrintWriter pw = getPrintWriter(message.getRecipient());\n printToWriter( pw, message.toJson());\n }", "title": "" }, { "docid": "18ae48b5b1031ccd6bf7858e1839c8ee", "score": "0.682502", "text": "public void sendMessage(String message) {\n chatConnection.sendMessage(message);\n }", "title": "" }, { "docid": "5f9da9175c37ad9e7c889ac2b5e3ab33", "score": "0.68090737", "text": "public void sendMessage(String message, Model model)\n {\n // Synchronize the server so a conflict cannot occur.\n synchronized (server)\n {\n message = message.toUpperCase().trim();\n\n try\n {\n for (Map.Entry entry : serverListeners.entrySet()) {\n ServerListener serverListener = (ServerListener) entry.getKey();\n ObjectOutputStream output = serverListener.getOutputStream();\n\n // Write the message to tell the client what data to expect and what to do with it.\n output.writeObject(message);\n\n // Select the correct command, and send the data to the client.\n switch (message)\n {\n case \"ADD DISH\":\n case \"EDIT DISH\":\n case \"REMOVE DISH\":\n output.writeObject((Dish)model);\n break;\n\n case \"ADD POSTCODE\":\n case \"EDIT POSTCODE\":\n case \"REMOVE POSTCODE\":\n output.writeObject((Postcode)model);\n break;\n\n case \"ADD USER\":\n case \"REMOVE USER\":\n output.writeObject((User)model);\n break;\n\n // The message alone will suffice.\n case \"CLEAR DATA\":\n break;\n\n default:\n throw new IOException(\"Attempting to send unrecognised command - \" + message);\n }\n\n // Reset the ObjectOutputStream in order to ensure changes to objects update correctly.\n output.reset();\n }\n }\n catch (IOException ex)\n {\n ex.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "052740d075ace257bc7aaf0eab7edc94", "score": "0.6808902", "text": "void sendMessage(UUID senderId, String message);", "title": "" }, { "docid": "f15650d5e795bfc9f4a2c152bfb8090d", "score": "0.6804835", "text": "synchronized public void sendMessage(AuroraMessage msg) {\n this.printer.println(msg.toString());\n //this.listener.sendMessage(msg);\n }", "title": "" }, { "docid": "73a418fc42d7e53f448dea4698779685", "score": "0.6797224", "text": "public void sendMessage(String message) {\r\n\t\ttry {\r\n\t\t\tserver.broadcastMessage(new Message(nickName, message));\r\n\t\t} catch (RemoteException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4e8fb5dca3198ed798dd9a80f60ac088", "score": "0.6790294", "text": "public void sendMessage(T message) {\n ActorUtils.sendMessage(queue, message);\n }", "title": "" }, { "docid": "7c4e03564645251ca9b7fd8161823f45", "score": "0.6773572", "text": "private void send (String message) {\n if ( !message.equals(lastMessage) ) client.send(message);\n lastMessage = message;\n }", "title": "" }, { "docid": "01770209e6e4dea78279b9f3108b1bf6", "score": "0.6767354", "text": "public void send (Message message) {\n outbox.offer(message);\n }", "title": "" }, { "docid": "8030b44c73c6203d19c514b2e91cf039", "score": "0.67649907", "text": "public static void sendMessage(String message) {\n // Send Message Structure:\n // [0] length not including [0]\n // [1] message type\n Log.i(\"colin\", \"Message to Middleman: \" + message);\n String msg = message;\n byte[] bmsg = hstba(msg);\n\n // Create an array of bytes. First byte will be the\n // message length, and the next ones will be the message\n byte buf[] = new byte[bmsg.length + 1];\n\n buf[0] = (byte) bmsg.length;\n System.arraycopy(bmsg, 0, buf, 1, bmsg.length);\n\n // Now send through the output stream of the socket\n\n OutputStream out;\n try {\n out = app.sock.getOutputStream();\n try {\n out.write(buf, 0, bmsg.length + 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "0003e9370d40b7e6b42375efc060c66b", "score": "0.67629695", "text": "public void sendMessage(String temp) {\n Set<Integer> keset = this.clients.keySet();\n java.util.Iterator<Integer> iter = keset.iterator();\n while (iter.hasNext()) {\n int key = iter.next();\n Socket socket = clients.get(key);\n try {\n Writer writer = new OutputStreamWriter(socket.getOutputStream());\n writer.write(temp);\n writer.flush();\n } catch (SocketException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n } catch (IOException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "f7b7b50be7bd278633f011849915ef3a", "score": "0.6752504", "text": "private static void sendMessage( String oscCommand, int num , InetSocketAddress addr ){\r\n \r\n DatagramChannel dch = null;\r\n OSCTransmitter trns;\r\n \r\n try {\r\n dch = DatagramChannel.open();\r\n trns = new OSCTransmitter(dch, addr);\r\n \r\n \r\n /* Sending message */\r\n //System.out.println(\"Sending [OSC Command:\" + oscCommand + \"] | [Count:\"+num+\"]\\n\");\r\n trns.send( new OSCMessage( oscCommand, new Object[] {\r\n new Integer(num)\r\n }\r\n ),addr);\r\n }\r\n \r\n catch( Exception e1 ) {\r\n //TODO:Handle this exception\r\n //printException( e1 );\r\n } finally {\r\n if( dch != null ) {\r\n try {\r\n dch.close();\r\n } catch( Exception e2 ) {\r\n //TODO:Handle this exception\r\n //printException( e2 );\r\n };\r\n }\r\n }\r\n }", "title": "" }, { "docid": "3c6b04e7f593f0c246835a106b1b6d78", "score": "0.67454356", "text": "@Override\n\tpublic void SendMsg(String msg) {\n\t\t\n\t\ttry {\n\t\t\tPrintWriter pr = new PrintWriter(this.sock.getOutputStream());\n\t\t\tpr.println(msg);\n\t\t\tpr.flush();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block z\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "12a7dbb72ba0bad4632c18c2239ad7d9", "score": "0.6739752", "text": "public void sendEventAsClient(Message m) {\n\t\tclient.addEvent(m);\n\t}", "title": "" }, { "docid": "4f13bef29a54e380d38d817bde420994", "score": "0.673494", "text": "public void sendMessage(String msg) {\r\n\t\tbroker.getBrokerOutput().println(msg);\r\n\t}", "title": "" }, { "docid": "d4bb328de5976e91e78417a7a627d60b", "score": "0.67145705", "text": "public void sendMessage(Message message) throws IOException {\n if (isConnectionClosed()) {\n throw new IOException(\"Connection has been terminated.\");\n }\n\n if(out == null){out = socket.getOutputStream();}\n out.write(message.toByteArray());\n out.flush();\n }", "title": "" }, { "docid": "8d289062c330fef525ff11b6feba7f43", "score": "0.6707487", "text": "public static void sendMessage(String message) throws IOException {\n InetAddress localhost = InetAddress.getLocalHost();\n Socket socket = new Socket(localhost, ChatServer.PORT);\n\n PrintWriter toServer = new PrintWriter(socket.getOutputStream(), true);\n\n socket.shutdownInput();\n toServer.println(message);\n\n toServer.close();\n socket.close();\n }", "title": "" }, { "docid": "3c36a1277c7acabbd533b62ca0c60c55", "score": "0.67048144", "text": "private void sendToThisClient(ServerCSocket socket, Message msg) {\r\n\t\ttry {\r\n\t\t\tsocket.sendToThisClient(msg);\r\n\t\t} catch (IOException e) {\r\n\t\t\tLogger.error(\"srv> Failed to send msg to \" + socket.getClientID() + \". Closing.\");\r\n\t\t\tsocket.close(true);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f4ba9400b9d2d4e9524bcd1a908e2a55", "score": "0.6695625", "text": "void sendMessage(String message) {\n userWriter.println(message);\n }", "title": "" }, { "docid": "845ba511e0b5c8d8350d6480a01f51b5", "score": "0.6693936", "text": "public void sendMessage(String message) {\n messageSender.sendMessage(message);\n }", "title": "" }, { "docid": "5d5a7cdd8968c27c91b9581a65e973fc", "score": "0.6691385", "text": "public void send(ServerMessage message) {\n\t\tlog.debug(\"Sending message \" + message + \" to \" + players);\n\t\tMessage.sendToAll(players, message);\n\t}", "title": "" }, { "docid": "9171a4de28588ebbaf3925a84c38576b", "score": "0.66782594", "text": "public void sendMessage(String message) {\n byte[] send = message.getBytes();\n try {\n mOutStream.write(send);\n } catch (IOException e) {\n Log.e(TAG, \"Problem sending message.\", e);\n }\n }", "title": "" }, { "docid": "566abb115d0cf5322862dfd13e2d234f", "score": "0.66750455", "text": "@Override\n\tpublic void commandSent(Client client, Command cmd) {\n\t\t\n\t}", "title": "" }, { "docid": "39cb1b449aaded94718d084c2e13132a", "score": "0.66745245", "text": "@FXML\n void handleSendButton(ActionEvent event) {\n ServerInterface server = ClientBinder.getInstance();\n try {\n server.sendMessage(this.mobile, this.toMobile, textToSend.getText());\n addMessageToList(this.mobile, textToSend.getText(), 99, new Date());\n textToSend.setText(\"\");\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "7ee7e7fc74958f55e6f7ffb7f194fa54", "score": "0.6672525", "text": "public void sendMessage(Message m){\n\t\tm.senderPosition='h';\n\t\tm.senderEmpID=empID;\n\t\tSystem.out.println(\"Host adding message:\"+m);\n\t\tpendingMessages.offer(m);\n\t}", "title": "" } ]
d1ae101d88fe16e7dbb5480ad447b468
$ANTLR end "Becomes" $ANTLR start "Binding"
[ { "docid": "fa78303c7e16aad3578b28dbd7cff401", "score": "0.5913077", "text": "public final void mBinding() throws RecognitionException {\n try {\n int _type = Binding;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalAgreeLexer.g:94:9: ( ( 'B' | 'b' ) ( 'I' | 'i' ) ( 'N' | 'n' ) ( 'D' | 'd' ) ( 'I' | 'i' ) ( 'N' | 'n' ) ( 'G' | 'g' ) )\n // InternalAgreeLexer.g:94:11: ( 'B' | 'b' ) ( 'I' | 'i' ) ( 'N' | 'n' ) ( 'D' | 'd' ) ( 'I' | 'i' ) ( 'N' | 'n' ) ( 'G' | 'g' )\n {\n if ( input.LA(1)=='B'||input.LA(1)=='b' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='I'||input.LA(1)=='i' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='N'||input.LA(1)=='n' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='D'||input.LA(1)=='d' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='I'||input.LA(1)=='i' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='N'||input.LA(1)=='n' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='G'||input.LA(1)=='g' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" } ]
[ { "docid": "aa6697bcf93867adae3495ca2589dc56", "score": "0.64847016", "text": "public abstract Term bind(Term[] binding);", "title": "" }, { "docid": "969de13672d65ebe629e2a1f4fe964db", "score": "0.61696", "text": "public final void mBinding() throws RecognitionException {\n try {\n int _type = Binding;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/lexer/InternalAgreeLexer.g:53:9: ( ( 'B' | 'b' ) ( 'I' | 'i' ) ( 'N' | 'n' ) ( 'D' | 'd' ) ( 'I' | 'i' ) ( 'N' | 'n' ) ( 'G' | 'g' ) )\n // ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/lexer/InternalAgreeLexer.g:53:11: ( 'B' | 'b' ) ( 'I' | 'i' ) ( 'N' | 'n' ) ( 'D' | 'd' ) ( 'I' | 'i' ) ( 'N' | 'n' ) ( 'G' | 'g' )\n {\n if ( input.LA(1)=='B'||input.LA(1)=='b' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='I'||input.LA(1)=='i' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='N'||input.LA(1)=='n' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='D'||input.LA(1)=='d' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='I'||input.LA(1)=='i' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='N'||input.LA(1)=='n' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n if ( input.LA(1)=='G'||input.LA(1)=='g' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "38de524539e01d579a8cc29d712a1a13", "score": "0.5750585", "text": "public final void rule__InBindingKeywords__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalAgreeParser.g:29441:1: ( ( Binding ) )\n // InternalAgreeParser.g:29442:1: ( Binding )\n {\n // InternalAgreeParser.g:29442:1: ( Binding )\n // InternalAgreeParser.g:29443:1: Binding\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getInBindingKeywordsAccess().getBindingKeyword_1()); \n }\n match(input,Binding,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getInBindingKeywordsAccess().getBindingKeyword_1()); \n }\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 }", "title": "" }, { "docid": "d7b4c5c2e2c38d84582508badf73cf78", "score": "0.5688394", "text": "public scala.tools.nsc.interpreter.Results.Result bind (java.lang.String name, java.lang.String boundType, Object value, scala.collection.immutable.List<java.lang.String> modifiers) { throw new RuntimeException(); }", "title": "" }, { "docid": "13c53b8ebfd4a259f96b9067329d9489", "score": "0.5527485", "text": "public interface Binding extends PortInstance {\n\n\t/** Corresponding RequiredPort */\n\tPort getPort();\n\t\n\t/** Represents the bounded service */\n\tServiceInstance getServiceInstanceProxy();\n\t\n\tpublic boolean isValid();\n\t\n\t/**\n\t * Bind this Binding\n\t */\n\tpublic void bind(ServiceInstanceProxy serviceInstance);\n\t\n\t/** Unbind this Binding */\n\tpublic void unbind();\n\t\n\t/**\n\t * Initializes the Binding's life-cycle management\n\t */\n\tpublic void start();\n\t\n\t/**\n\t * Interrupts the Binding's life-cycle management\n\t */\n\tpublic void stop();\n\n\tComponentInstance getComponentInstance();\n}", "title": "" }, { "docid": "aba1b0cf973366ac51933077acfc9fdb", "score": "0.5522548", "text": "public VarBindingBuilder( VarBinding binding)\n {\n start( binding);\n }", "title": "" }, { "docid": "4c84831b42188cb4e8ccc8c743a218e7", "score": "0.5477425", "text": "public void setToBinding(Binding<?> binding);", "title": "" }, { "docid": "91fc315dc56d1df636e2564670bd6d04", "score": "0.536861", "text": "public interface Binding<S,P,T,D> \n extends org.balisunrise.common.Binding<S, P, T, D>{\n\n /**\n * Retorna o Suporte de Vinculo do source.\n */\n public BindingSupport<P> getSourceSupport();\n\n /**\n * Atribui o Suporte de Vinculo do source.\n */\n public void setSourceSupport(BindingSupport<P> sourceSupport);\n\n /**\n * Retorna o gatilho de vinculo do source.\n */\n public BindingTrigger getSourceTrigger();\n\n /**\n * Atribui o gatilho de vinculo do source.\n */\n public void setSourceTrigger(BindingTrigger sourceTrigger);\n\n /**\n * Retorna o Suporte de Vinculo do target.\n */\n public BindingSupport<D> getTargetSupport();\n\n /**\n * Atribui o Suporte de Vinculo do target.\n */\n public void setTargetSupport(BindingSupport<D> targetSupport);\n\n /**\n * Retorna o gatilho de vinculo do target.\n */\n public BindingTrigger getTargetTrigger();\n\n /**\n * Atribui o gatilho de vinculo do target.\n */\n public void setTargetTrigger(BindingTrigger targetTrigger);\n\n}", "title": "" }, { "docid": "c90e0cae10a3f24cb1d17b817f252f8c", "score": "0.53109485", "text": "private Bindings() {}", "title": "" }, { "docid": "9025cde4caf292b93d0481286fe15cdc", "score": "0.5299103", "text": "NamespaceBinder bind(String nsUri);", "title": "" }, { "docid": "24f7da45cc19c39c9b8fdab995bff354", "score": "0.5296371", "text": "@Override\n\tpublic void bind()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "24f7da45cc19c39c9b8fdab995bff354", "score": "0.5296371", "text": "@Override\n\tpublic void bind()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "8a191eebf2cf4d1a1b3e7a4b425a17de", "score": "0.52894187", "text": "public Binding(Variable var, Term val) {\n\tthis.var = var;\n\tthis.val = val;\n }", "title": "" }, { "docid": "cb84fa3ab5654f5ac8add21692df1a32", "score": "0.5288235", "text": "@Override\n\tpublic void bind() {\n\t\t\n\t}", "title": "" }, { "docid": "10c04cf535552a7528ac37f56ea6b016", "score": "0.5283896", "text": "public void bind();", "title": "" }, { "docid": "d21e33ff3e8b6ad36e83a2d02b96bf93", "score": "0.5239692", "text": "public void bind() {}", "title": "" }, { "docid": "8dcd37bb983924dbc2d33232908082f3", "score": "0.5214912", "text": "@Override\n\tpublic void bind() {\n\n\t}", "title": "" }, { "docid": "c7e8c6386eadbb244587b924242bd611", "score": "0.52119887", "text": "public IBinding resolveBinding();", "title": "" }, { "docid": "671d606a27d16344eda5c65e2e74942c", "score": "0.518536", "text": "public DynamicBindStatement(SourceRange sourceRange, String pathname, FullType fullType) throws SyntaxException {\n\n super(sourceRange);\n\n // Check that the arguments are acceptable.\n assert (pathname != null);\n assert (fullType != null);\n\n // Copy in the information.\n this.pathname = pathname;\n this.fullType = fullType;\n }", "title": "" }, { "docid": "23884b302883c0ad7268a37a118ba99f", "score": "0.5178303", "text": "public void setBinding( IBinding binding );", "title": "" }, { "docid": "89ea42c4ca95cbedc606bd8f562a59aa", "score": "0.51518476", "text": "ChannelBindings addBinding(ChannelBinding binding);", "title": "" }, { "docid": "3d7c037819052ca9a676f3360586e30c", "score": "0.5137242", "text": "public abstract void bind();", "title": "" }, { "docid": "e7742b6f6944b5c369e46bfc278a36b7", "score": "0.5101586", "text": "public VarBindingBuilder start( VarBinding binding)\n {\n varBinding_ =\n Optional.ofNullable( binding)\n .map( b ->\n VarBindingBuilder.with( b.getVar())\n .value( b.getValue())\n .source( b.getSource())\n .type( b.getType())\n .valid( b.isValueValid())\n .notApplicable( b.isValueNA())\n .annotations( b)\n .build())\n .orElse( new VarBinding( \"V\", IVarDef.ARG, \"?\"));\n \n return this;\n }", "title": "" }, { "docid": "dc94a349df27c937a46bf7b2502c1a00", "score": "0.50813925", "text": "public interface Binding {\n\n /**\n * The key for the provider of a binding.\n */\n String PROVIDER = \"provider\";\n\n /**\n * The key for the type of a binding.\n */\n String TYPE = \"type\";\n\n /**\n * Returns the contents of a binding entry in its raw {@code byte[]} form.\n *\n * @param key the key of the entry to retrieve\n * @return the contents of a binding entry if it exists, otherwise {@code null}\n */\n @Nullable\n byte[] getAsBytes(@NotNull String key);\n\n /**\n * Returns the name of the binding.\n *\n * @return the name of the binding\n */\n @NotNull\n String getName();\n\n /**\n * Returns the contents of a binding entry as a UTF-8 decoded {@code String}. Any whitespace is trimmed.\n *\n * @param key the key of the entry to retrieve\n * @return the contents of a binding entry as a UTF-8 decoded {@code String} if it exists, otherwise {@code null}\n */\n @Nullable\n default String get(@NotNull String key) {\n Assert.notNull(key, \"key must not be null\");\n\n byte[] value = getAsBytes(key);\n\n if (value == null) {\n return null;\n }\n\n return new String(value, StandardCharsets.UTF_8).trim();\n }\n\n /**\n * Returns the value of the {@link #PROVIDER} key.\n *\n * @return the value of the {@link #PROVIDER} key if it exists, otherwise {@code null}\n */\n @Nullable\n default String getProvider() {\n return get(PROVIDER);\n }\n\n /**\n * Returns the value of the {@link #TYPE} key.\n *\n * @return the value of the {@link #TYPE} key\n * @throws IllegalStateException if the {@link #TYPE} key does not exist.\n */\n @NotNull\n default String getType() {\n String value = get(TYPE);\n\n if (value == null) {\n throw new IllegalStateException(\"binding does not contain a type\");\n }\n\n return value;\n }\n\n}", "title": "" }, { "docid": "2c97e5ea5dbc18040d212a71017393dc", "score": "0.5016725", "text": "public IBinding getBinding();", "title": "" }, { "docid": "d0ca8bd6026a305ac887f3f1236aa0b6", "score": "0.4971484", "text": "@Override\n\tpublic void bind(GL2 gl2)\n\t{\n\n\t}", "title": "" }, { "docid": "be66505404bb57de66699f48eaa20929", "score": "0.49673465", "text": "Binding createBindings(final ScriptExecutionContext context);", "title": "" }, { "docid": "4966399fc54b04611d84020e65976cac", "score": "0.49374402", "text": "InterfaceBinding createInterfaceBinding();", "title": "" }, { "docid": "a30ccaa30a96d9861e64eac7d5b10ca0", "score": "0.4921364", "text": "public void resolveBindings(IScope scope, Bindings bindings) {\n\t\t\n\t\t\n\t\tbody.resolveBindings(scope, null);\n\t\t\n\t\t//newBindings.checkEmpty(scope, \"negation does not allow binding\");\n\t\t//bindings.checkEquals(old, scope);\n\t\t\n\t}", "title": "" }, { "docid": "12c84a26d3869640fe4ea239db070a47", "score": "0.48927367", "text": "public BindingDefinition(String name, Class primary1, Class secondary1, Class primary2, Class secondary2) {\n this(name);\n this.acceptedVariableTypeList.add(new Type(primary1, secondary1));\n this.acceptedVariableTypeList.add(new Type(primary2, secondary2));\n }", "title": "" }, { "docid": "da45ce0720c43e974341cdbdd60549e3", "score": "0.4884234", "text": "@Override\n\tpublic ElementMatcher.Junction<TypeDescription> getTypeMatcher() {\n\t\treturn nameContains(\"Binding\")\n\t\t\t.and(not(isInterface()))\n\t\t\t.and(isSubTypeOf(Binding.class));\n\t}", "title": "" }, { "docid": "ea4dc942ea999614f4453efacef43046", "score": "0.4880563", "text": "public TupleTupleBinding() {\n }", "title": "" }, { "docid": "54ad0a34a92f93ac1031efcb5514a151", "score": "0.48589224", "text": "private void bind() {\n }", "title": "" }, { "docid": "0d04174c5a2905335e02f5fe4a54ff41", "score": "0.483108", "text": "public BindingDefinition(String name, Class primary, Class secondary) {\n this(name);\n this.acceptedVariableTypeList.add(new Type(primary, secondary));\n }", "title": "" }, { "docid": "27dabc10e80d795de7ae981da5b293c4", "score": "0.48161563", "text": "Grammar createGrammar();", "title": "" }, { "docid": "a1fe1c7924f128b007189b74c23295e5", "score": "0.48007435", "text": "public final void bound() throws RecognitionException {\n int bound_StartIndex = input.index();\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 9) ) { return ; }\n\n // JavaTreeParser.g:206:5: ( ^( EXTENDS_BOUND_LIST ( type )+ ) )\n // JavaTreeParser.g:206:9: ^( EXTENDS_BOUND_LIST ( type )+ )\n {\n match(input,EXTENDS_BOUND_LIST,FOLLOW_EXTENDS_BOUND_LIST_in_bound450); if (state.failed) return ;\n\n match(input, Token.DOWN, null); if (state.failed) return ;\n // JavaTreeParser.g:206:30: ( type )+\n int cnt17=0;\n loop17:\n do {\n int alt17=2;\n int LA17_0 = input.LA(1);\n\n if ( (LA17_0==TYPE) ) {\n alt17=1;\n }\n\n\n switch (alt17) {\n \tcase 1 :\n \t // JavaTreeParser.g:206:30: type\n \t {\n \t pushFollow(FOLLOW_type_in_bound452);\n \t type();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt17 >= 1 ) break loop17;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(17, input);\n throw eee;\n }\n cnt17++;\n } while (true);\n\n\n match(input, Token.UP, null); if (state.failed) return ;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 9, bound_StartIndex); }\n\n }\n return ;\n }", "title": "" }, { "docid": "c4cf41f41295db70c8d3716f4d2d5610", "score": "0.4760638", "text": "private String makeBindingStatement(ScriptContext ctx, Set<String> attrs, boolean inferBindings) {\n if (attrs.isEmpty()) {\r\n return \"\";\r\n }\r\n \r\n // Define ScriptContext variable.\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(\"var \");\r\n sb.append(SCRIPT_CONTEXT_NAME);\r\n sb.append(\":javax.script.ScriptContext = \");\r\n sb.append(\"com.sun.tools.javafx.script.ScriptContextManager.getContext(\\\"\");\r\n sb.append(getScriptKey(ctx));\r\n sb.append(\"\\\"); \");\r\n \r\n // Define attributes as module variables.\r\n for (String attr : attrs) {\r\n Object value = ctx.getAttribute(attr);\r\n if (value != null || inferBindings) { // value==null when compiling scripts\r\n sb.append(\"var \");\r\n sb.append(attr);\r\n String type = null;\r\n if (value != null) {\r\n type = value.getClass().getCanonicalName();\r\n if (type != null) {\r\n sb.append(':');\r\n sb.append(type);\r\n }\r\n }\r\n sb.append(\" = \");\r\n sb.append(SCRIPT_CONTEXT_NAME);\r\n sb.append(\".getAttribute(\\\"\");\r\n sb.append(attr);\r\n sb.append(\"\\\")\");\r\n if (value != null) {\r\n sb.append(\" as \");\r\n sb.append(type);\r\n }\r\n sb.append(\"; \");\r\n }\r\n }\r\n \r\n return sb.toString();\r\n }", "title": "" }, { "docid": "750081adba12d00064bafd806e60ea3c", "score": "0.4734471", "text": "public VarBindingBuilder start()\n {\n return start( null);\n }", "title": "" }, { "docid": "e3a72c4acd1307127a7c41e19f020227", "score": "0.46672273", "text": "private void registerBindings(){\t\t\r\n\t}", "title": "" }, { "docid": "4f32ee4701fad969739ed341b9f58668", "score": "0.4652683", "text": "public interface RulesBinder{\n\n /**\n * Returns the context {@code ClassLoader}.\n *\n * @return The context {@code ClassLoader}\n */\n ClassLoader getContextClassLoader();\n\n /**\n * Records an error message which will be presented to the user at a later time. Unlike throwing an exception, this\n * enable us to continue configuring the Digester and discover more errors. Uses\n * {@link String#format(String, Object[])} to insert the arguments into the message.\n *\n * @param messagePattern\n * The message string pattern\n * @param arguments\n * Arguments referenced by the format specifiers in the format string\n */\n void addError(String messagePattern,Object...arguments);\n\n /**\n * Records an exception, the full details of which will be logged, and the message of which will be presented to the\n * user at a later time. If your Module calls something that you worry may fail, you should catch the exception and\n * pass it into this.\n *\n * @param t\n * The exception has to be recorded.\n */\n void addError(Throwable t);\n\n /**\n * Allows sub-modules inclusion while binding rules.\n *\n * @param rulesModule\n * the sub-module has to be included.\n */\n void install(RulesModule rulesModule);\n\n /**\n * Allows to associate the given pattern to one or more Digester rules.\n *\n * @param pattern\n * The pattern that this rule should match\n * @return The Digester rules builder\n */\n LinkedRuleBuilder forPattern(String pattern);\n\n}", "title": "" }, { "docid": "731beed7d01113d102523e53a5726716", "score": "0.46371713", "text": "@Test\n public void testIsBinding() {\n System.out.println(\"isBinding\");\n AffineAnd instance = this._instance;\n\n Vector<Double> value = new VectorReal(2);\n boolean expResult = true;\n this._constraint.testIsBinding(instance, value, expResult);\n\n value = value.setValue(0, 1.0);\n this._constraint.testIsBinding(instance, value, expResult);\n\n expResult = false;\n value = new VectorReal(2, 2.0);\n this._constraint.testIsBinding(instance, value, expResult);\n }", "title": "" }, { "docid": "61cd6d7b4d33426bc9f6d1e92464ed68", "score": "0.46352905", "text": "@Override\n public int getBindingSlot() {\n return bindingSlot;\n }", "title": "" }, { "docid": "0322da03c8d5f05bf67e970c9c2ab993", "score": "0.46267134", "text": "public static String bind(final String id, final String binding) {\n return bind(id, new String[] { binding });\n }", "title": "" }, { "docid": "b7223b4c46ef888cd1ea5769f5d404a0", "score": "0.46252134", "text": "public Binding(Object var, Object val)\r\n/* 9: */ {\r\n/* 10: 9 */ this.variable = var;\r\n/* 11:10 */ this.value = val;\r\n/* 12: */ }", "title": "" }, { "docid": "49da797eea1deb5785e42e0ebf47b550", "score": "0.46233633", "text": "public static String bind(final String id, final String binding1,\n final String binding2) {\n return bind(id, new String[] { binding1, binding2 });\n }", "title": "" }, { "docid": "fbc308c44df940254e7bcb73a790fd7c", "score": "0.46200937", "text": "@Override\n\tprotected boolean checkBinding(Binding b) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fa5ab861e9c1e4a75e6d91714ef2a919", "score": "0.4603122", "text": "public void bind(){\n \tbound = true;\n }", "title": "" }, { "docid": "d67b7a3093d9708fe00ec1a8482dcd56", "score": "0.46027285", "text": "BindingWithoutRule createBindingWithoutRule();", "title": "" }, { "docid": "c174606aca88295fa3749050a5a950d4", "score": "0.45854804", "text": "public VarBindingBuilder is( Object value)\n {\n return value( value);\n }", "title": "" }, { "docid": "fffeb4f7fedd741663c65f9d347863e8", "score": "0.45838097", "text": "public interface MyNewGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int _plus = 5;\n /** RegularExpression Id. */\n int _minus = 6;\n /** RegularExpression Id. */\n int _multiplication = 7;\n /** RegularExpression Id. */\n int _division = 8;\n /** RegularExpression Id. */\n int _mod = 9;\n /** RegularExpression Id. */\n int _assignop = 10;\n /** RegularExpression Id. */\n int _semicolon = 11;\n /** RegularExpression Id. */\n int _comma = 12;\n /** RegularExpression Id. */\n int _period = 13;\n /** RegularExpression Id. */\n int _leftparen = 14;\n /** RegularExpression Id. */\n int _rightparen = 15;\n /** RegularExpression Id. */\n int _leftbracket = 16;\n /** RegularExpression Id. */\n int _rightbracket = 17;\n /** RegularExpression Id. */\n int _leftbrace = 18;\n /** RegularExpression Id. */\n int _rightbrace = 19;\n /** RegularExpression Id. */\n int _less = 20;\n /** RegularExpression Id. */\n int _lessequal = 21;\n /** RegularExpression Id. */\n int _greater = 22;\n /** RegularExpression Id. */\n int _greaterequal = 23;\n /** RegularExpression Id. */\n int _equal = 24;\n /** RegularExpression Id. */\n int _notequal = 25;\n /** RegularExpression Id. */\n int _and = 26;\n /** RegularExpression Id. */\n int _or = 27;\n /** RegularExpression Id. */\n int _not = 28;\n /** RegularExpression Id. */\n int _boolean = 29;\n /** RegularExpression Id. */\n int _break = 30;\n /** RegularExpression Id. */\n int _class = 31;\n /** RegularExpression Id. */\n int _double = 32;\n /** RegularExpression Id. */\n int _else = 33;\n /** RegularExpression Id. */\n int _extends = 34;\n /** RegularExpression Id. */\n int _for = 35;\n /** RegularExpression Id. */\n int _if = 36;\n /** RegularExpression Id. */\n int _implements = 37;\n /** RegularExpression Id. */\n int _int = 38;\n /** RegularExpression Id. */\n int _interface = 39;\n /** RegularExpression Id. */\n int _new = 40;\n /** RegularExpression Id. */\n int _newarray = 41;\n /** RegularExpression Id. */\n int _null = 42;\n /** RegularExpression Id. */\n int _println = 43;\n /** RegularExpression Id. */\n int _readln = 44;\n /** RegularExpression Id. */\n int _return = 45;\n /** RegularExpression Id. */\n int _string = 46;\n /** RegularExpression Id. */\n int _void = 47;\n /** RegularExpression Id. */\n int _while = 48;\n /** RegularExpression Id. */\n int _booleanconstant = 49;\n /** RegularExpression Id. */\n int _id = 50;\n /** RegularExpression Id. */\n int _intconstant = 51;\n /** RegularExpression Id. */\n int _doubleconstant = 52;\n /** RegularExpression Id. */\n int _stringconstant = 53;\n /** RegularExpression Id. */\n int DIGIT = 54;\n /** RegularExpression Id. */\n int LETTER = 55;\n /** RegularExpression Id. */\n int ALPHABET = 56;\n /** RegularExpression Id. */\n int LINECOMMENT = 57;\n /** RegularExpression Id. */\n int ML_COMMENT_START = 58;\n /** RegularExpression Id. */\n int ML_COMMENT_END = 59;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_ML_COMMENT = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"=\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"||\\\"\",\n \"\\\"!\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"break\\\"\",\n \"\\\"class\\\"\",\n \"\\\"double\\\"\",\n \"\\\"else\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"for\\\"\",\n \"\\\"if\\\"\",\n \"\\\"implements\\\"\",\n \"\\\"int\\\"\",\n \"\\\"interface\\\"\",\n \"\\\"new\\\"\",\n \"\\\"newarray\\\"\",\n \"\\\"null\\\"\",\n \"\\\"println\\\"\",\n \"\\\"readln\\\"\",\n \"\\\"return\\\"\",\n \"\\\"string\\\"\",\n \"\\\"void\\\"\",\n \"\\\"while\\\"\",\n \"<_booleanconstant>\",\n \"<_id>\",\n \"<_intconstant>\",\n \"<_doubleconstant>\",\n \"<_stringconstant>\",\n \"<DIGIT>\",\n \"<LETTER>\",\n \"<ALPHABET>\",\n \"<LINECOMMENT>\",\n \"\\\"/*\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 60>\",\n };\n\n}", "title": "" }, { "docid": "0ed92e550d04efb67d77dca83fec51ca", "score": "0.4582816", "text": "public void resolveBindings(IScope scope, Bindings bindings) {\n }", "title": "" }, { "docid": "dfb4470130a25ac508d792f2b804f8c3", "score": "0.45809066", "text": "public interface StmtNode extends Node {\n\n}", "title": "" }, { "docid": "a206c1a5132ce9d16c3d99ab7fe8bf2d", "score": "0.45672444", "text": "public BindingBuilder binding() {\n\t\treturn new BindingBuilder();\n\t}", "title": "" }, { "docid": "ffe95633348bf27ee43dda493bd81c35", "score": "0.45538923", "text": "public Binding<?> getEnclosingBinding();", "title": "" }, { "docid": "570d9ca5b848e24a36140c388a67e003", "score": "0.45531657", "text": "public void visit(InstancePos term) { visit(term.bind()); }", "title": "" }, { "docid": "e3a87c855d8455abd61881368d6ee5d1", "score": "0.4537264", "text": "String getBind();", "title": "" }, { "docid": "8e8a16ef5a66a9bd4626175081b4c316", "score": "0.45366457", "text": "BindingPackage getBindingPackage();", "title": "" }, { "docid": "cfe46649bd9b719915a47b93eaca7c43", "score": "0.45275843", "text": "public static void bind(final ServiceBinder binder) {\n\n\t}", "title": "" }, { "docid": "6b209c86698603955ce88871286959ee", "score": "0.45186952", "text": "public VarBindingBuilder()\n {\n start();\n }", "title": "" }, { "docid": "d7048215e182994f16b9c3d71239990e", "score": "0.45084375", "text": "NamespaceBinder manual();", "title": "" }, { "docid": "bb3b1e744a8273ea97bb66cdfffb5501", "score": "0.45001224", "text": "@Override\n\tpublic void bindStatement() throws StandardException\n\t{\n\t\t/*\n\t\t** Grab the compiler context each time we bind just\n\t\t** to make sure we have the write one (even though\n\t\t** we are caching it).\n\t\t*/\n\t\tDataDictionary dd = getDataDictionary();\n\n\t\tString schemaName = name.getSchemaName();\n\t\tSchemaDescriptor sd = getSchemaDescriptor(name.getSchemaName());\n\t\tif (schemaName == null)\n\t\t\tname.setSchemaName(sd.getSchemaName());\n\n\t\tif (sd.getUUID() != null)\n\t\t\tspsd = dd.getSPSDescriptor(name.getTableName(), sd);\n\n\t\tif (spsd == null)\n\t\t{\n\t\t\tthrow StandardException.newException(SQLState.LANG_OBJECT_NOT_FOUND, \"STATEMENT\", name);\n\t\t}\n\n if (spsd.getType() == SPSDescriptor.SPS_TYPE_TRIGGER)\n\t\t{\n\t\t\tthrow StandardException.newException(SQLState.LANG_TRIGGER_SPS_CANNOT_BE_EXECED, name);\n\t\t}\n\t\t\n\n\t\t/*\n\t\t** This execute statement is dependent on the\n\t\t** stored prepared statement. If for any reason\n\t\t** the underlying statement is invalidated by\n\t\t** the time we get to execution, the 'execute statement'\n\t\t** will get invalidated when the underlying statement\n\t\t** is invalidated.\n\t\t*/\n\t\tgetCompilerContext().createDependency(spsd);\n\n\t}", "title": "" }, { "docid": "fc7791e9824e7f1f7d6c9abe8f6844fa", "score": "0.44945702", "text": "@Override\n\tpublic void bind(String arg0, Object arg1) throws NamingException {\n\n\t}", "title": "" }, { "docid": "16834d1e765bc4ba755a57ef4ed8d04f", "score": "0.44881055", "text": "<T> T receiveBinding(String moduleName, String playerName, Class<T> type) throws IllegalArgumentException;", "title": "" }, { "docid": "acb247bb47040cb7b47f25416e5795dd", "score": "0.4482158", "text": "void setBindings(List<ChannelBinding> bindings);", "title": "" }, { "docid": "99d3f5507c55641bef788361994220eb", "score": "0.44660535", "text": "@Override\n public void setBindingSlot(int slot) {\n bindingSlot = slot;\n }", "title": "" }, { "docid": "b2b9ef9a66899bea4b7778c5d344a8c2", "score": "0.44582486", "text": "public Binding currentBinding() {\n Frame frame = getCurrentFrame();\n return new Binding(frame, getRubyClass(), getCurrentScope(), backtrace[backtraceIndex].clone());\n }", "title": "" }, { "docid": "e17c3ea5e09d9dfc8dfaa18cba3890f0", "score": "0.44343814", "text": "public OWLIndividualList<Binding<?>> getAllBindings();", "title": "" }, { "docid": "b0abd500157d3104ee0da0ba33f4b9f3", "score": "0.44343704", "text": "public abstract int getBindingVariable();", "title": "" }, { "docid": "3772a7499ff1f40517af12c250cdd405", "score": "0.4428613", "text": "public final ShadowVariablesParser_JavaTreeParser.bound_return bound() throws RecognitionException {\r\n ShadowVariablesParser_JavaTreeParser.bound_return retval = new ShadowVariablesParser_JavaTreeParser.bound_return();\r\n retval.start = input.LT(1);\r\n\r\n int bound_StartIndex = input.index();\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 9) ) { return retval; }\r\n\r\n // JavaTreeParser.g:96:5: ( ^( EXTENDS_BOUND_LIST ( type )+ ) )\r\n // JavaTreeParser.g:96:9: ^( EXTENDS_BOUND_LIST ( type )+ )\r\n {\r\n match(input,EXTENDS_BOUND_LIST,FOLLOW_EXTENDS_BOUND_LIST_in_bound423); if (state.failed) return retval;\r\n\r\n match(input, Token.DOWN, null); if (state.failed) return retval;\r\n // JavaTreeParser.g:96:30: ( type )+\r\n int cnt17=0;\r\n loop17:\r\n do {\r\n int alt17=2;\r\n int LA17_0 = input.LA(1);\r\n\r\n if ( (LA17_0==TYPE) ) {\r\n alt17=1;\r\n }\r\n\r\n\r\n switch (alt17) {\r\n \tcase 1 :\r\n \t // JavaTreeParser.g:96:30: type\r\n \t {\r\n \t pushFollow(FOLLOW_type_in_bound425);\r\n \t type();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return retval;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t if ( cnt17 >= 1 ) break loop17;\r\n \t if (state.backtracking>0) {state.failed=true; return retval;}\r\n EarlyExitException eee =\r\n new EarlyExitException(17, input);\r\n throw eee;\r\n }\r\n cnt17++;\r\n } while (true);\r\n\r\n\r\n match(input, Token.UP, null); if (state.failed) return retval;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 9, bound_StartIndex); }\r\n\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "968300380cb203f064ee9d7d64bef5d3", "score": "0.44220588", "text": "BindingPossiblyUnresolved createBindingPossiblyUnresolved();", "title": "" }, { "docid": "fa9289400d9f5012c3b3eca8ef6eb0df", "score": "0.44203007", "text": "boolean findFreeBinding(@NotNull CoreBinding binding);", "title": "" }, { "docid": "c241daee803b78a258ed4cf70299cd77", "score": "0.4410223", "text": "@Override\n\tpublic void bind(Name arg0, Object arg1) throws NamingException {\n\n\t}", "title": "" }, { "docid": "2981795e1f85fa0278dc1d56cb2de5f4", "score": "0.4408299", "text": "public interface ScopableBindingBuilder {\r\n\t/** Sets the bindings scope to the given.\r\n\t * @param pScope The bindings scope.\r\n\t */\r\n\tvoid in(Scope pScope);\r\n\t/** Sets the bindings scope to {@link Scopes#EAGER_SINGLETON}.\r\n\t */\r\n\tvoid asEagerSingleton();\r\n}", "title": "" }, { "docid": "17ce439490189edd713b316e4e5bdb5e", "score": "0.43993923", "text": "protected Iterator<Binding> evalBindings2(Query query, DatasetGraph dataset, Binding inputBinding, Context context) {\n\n Iterator<Binding> toReturn;\n if ( query != null ) {\n Plan plan = queryEngineFactory.create(query, datasetGraph, inputBinding, context);\n toReturn = plan.iterator();\n } else {\n toReturn = Iter.singleton((null != inputBinding) ? inputBinding : BindingRoot.create());\n }\n\n return toReturn;\n }", "title": "" }, { "docid": "c01f128b161bc375c048fd73871afd4d", "score": "0.43947312", "text": "public interface BasicDeclaration extends BasicDeclarativeItem\r\n{\r\n}", "title": "" }, { "docid": "b0296e82c6de1786bcc7f12051ef3a55", "score": "0.43894604", "text": "@Override\n \tpublic void notifiedBindingDecoded(DataBinding<?> dataBinding) {\n \t}", "title": "" }, { "docid": "363f7906045b44e9674da6cbf213f908", "score": "0.4385299", "text": "public interface IASTName extends IASTNode, IName {\n\n\t/**\n\t * Constant sentinel.\n\t */\n\tpublic static final IASTName[] EMPTY_NAME_ARRAY = new IASTName[0];\n\n\t/**\n\t * Get the semantic object attached to this name. May be null if this name\n\t * has not yet been semantically resolved (@see resolveBinding)\n\t * @return <code>IBinding</code> if it has been resolved, otherwise null \n\t */\n\tpublic IBinding getBinding();\n\t\t\n\t/** \n\t * Set the semantic object for this name to be the given binding\n\t * @param binding\n\t */\n\tpublic void setBinding( IBinding binding );\n\t\n\t/**\n\t * Resolve the semantic object this name is referring to.\n\t * \n\t * @return <code>IBinding</code> binding\n\t */\n\tpublic IBinding resolveBinding();\n\n\t/**\n\t * Get the role of this name. If the name needs to be resolved to determine that and \n\t * <code>allowResolution</code> is set to <code>false</code>, then {@link IASTNameOwner#r_unclear}\n\t * is returned. \n\t * \n\t * @param allowResolution whether or not resolving the name is allowed.\n\t * @return {@link IASTNameOwner#r_definition}, {@link IASTNameOwner#r_declaration}, \n\t * \t\t {@link IASTNameOwner#r_reference}, {@link IASTNameOwner#r_unclear}.\n\t * @since 5.0\n\t */\n\tpublic int getRoleOfName(boolean allowResolution);\n\t\n\t/**\n\t * Return the completion context for this name.\n\t * \n\t * @return <code>IASTCompletionContext</code> the context for completion\n\t */\n\tpublic IASTCompletionContext getCompletionContext();\n\t\n\t/**\n\t * Determines the current linkage in which the name has to be resolved.\n\t */\n\tpublic ILinkage getLinkage();\n\t\n\t/**\n\t * Returns the image location for this name or <code>null</code> if the information is not available.\n\t * <p>\n\t * An image location can be computed when the name is either found directly in the code, is (part of) \n\t * an argument to a macro expansion or is (part of) a macro definition found in the source code.\n\t * <p>\n\t * The image location is <code>null</code>, when the name consists of multiple tokens (qualified names)\n\t * and the tokens are not found side by side in the code or if \n\t * the name is the result of a token-paste operation or the name is found in the definition of a \n\t * built-in macro.\n\t * @since 5.0\n\t */\n\tpublic IASTImageLocation getImageLocation();\n}", "title": "" }, { "docid": "5a7b90d4b461c386f9ffdd86854b8af3", "score": "0.43852285", "text": "public static TypeBinding bind(final Generator g, final IType t, final String nameHint) throws BindingException {\n final IPrimitiveType pt = t.queryInterface(IPrimitiveType.class);\n if (pt != null) {\n // primitive\n final TypeBinding r = primitiveTypeBindings.get(pt.getVarType());\n if (r != null) {\n return r;\n }\n\n throw new BindingException(Messages.UNSUPPORTED_VARTYPE.format(pt.getVarType()));\n }\n\n final IPtrType ptrt = t.queryInterface(IPtrType.class);\n if (ptrt != null) {\n // pointer type\n final IType comp = ptrt.getPointedAtType();\n final IInterfaceDecl compDecl = comp.queryInterface(IInterfaceDecl.class);\n if (compDecl != null) {\n // t = T* where T is a declared interface\n return new TypeBinding(g.getTypeName(compDecl), NativeType.ComObject, true);\n }\n\n final IDispInterfaceDecl dispDecl = comp.queryInterface(IDispInterfaceDecl.class);\n if (dispDecl != null) {\n // t = T* where T is a declared interface\n return new TypeBinding(g.getTypeName(dispDecl), NativeType.ComObject, true);\n }\n\n // t = coclass*\n final ICoClassDecl classdecl = comp.queryInterface(ICoClassDecl.class);\n if (classdecl != null) {\n // bind to its default interface\n final ITypeDecl di = g.getDefaultInterface(classdecl);\n if (di == null) {\n // no primary interface known. treat it as IUnknown\n return new TypeBinding(Com4jObject.class, NativeType.ComObject, true);\n } else {\n return new TypeBinding(g.getTypeName(di), NativeType.ComObject, true);\n }\n }\n\n final IPrimitiveType compPrim = comp.queryInterface(IPrimitiveType.class);\n if (compPrim != null) {\n // T = PRIMITIVE*\n if (compPrim.getVarType() == VarType.VT_VARIANT) {\n // T = VARIANT*\n return new TypeBinding(Object.class, NativeType.VARIANT_ByRef, true);\n }\n if (compPrim.getVarType() == VarType.VT_VOID) {\n // T = void*\n return new TypeBinding(Buffer.class, NativeType.PVOID, true);\n }\n if (compPrim.getVarType() == VarType.VT_UI2) {\n // T = ushort*\n if (isPsz(nameHint)) {\n // this is a common mistake\n return new TypeBinding(String.class, NativeType.Unicode, false);\n }\n }\n if (compPrim.getVarType() == VarType.VT_BOOL) {\n return new TypeBinding(\"Holder<Boolean>\", NativeType.VariantBool_ByRef, true);\n }\n }\n\n final ISafeArrayType at = comp.queryInterface(ISafeArrayType.class);\n if (at != null) {\n // T=SAFEARRAY(...)\n final IType comp2 = at.getComponentType();\n\n final IPrimitiveType compPrim2 = comp2.queryInterface(IPrimitiveType.class);\n if (compPrim2 != null) {\n final TypeBinding r = primitiveTypeBindings.get(compPrim2.getVarType());\n if (r != null) {\n return new TypeBinding(\"Holder<\" + r.javaType + \"[]>\", NativeType.SafeArray, true);\n }\n }\n final TypeBinding tb = TypeBinding.bind(g, comp2, null);\n if (tb.nativeType == NativeType.VARIANT) {\n return new TypeBinding(\"Holder<Object[]>\", NativeType.SafeArray, true);\n }\n }\n\n // a few other random checks\n final String name = getTypeString(ptrt);\n if (name.equals(\"_RemotableHandle*\")) {\n // marshal as the raw pointer value\n return new TypeBinding(Integer.TYPE, NativeType.Int32, true);\n }\n if (name.equals(\"GUID*\")) {\n return new TypeBinding(\"GUID\", NativeType.GUID, true);\n }\n\n // otherwise use a holder\n final TypeBinding b = bind(g, comp, null);\n if (b != null && b.nativeType.byRef() != null) {\n return b.createByRef();\n }\n }\n\n final ISafeArrayType at = t.queryInterface(ISafeArrayType.class);\n if (at != null) {\n // T=SAFEARRAY(...)\n final IType comp = at.getComponentType();\n\n final IPrimitiveType compPrim = comp.queryInterface(IPrimitiveType.class);\n if (compPrim != null) {\n final TypeBinding r = primitiveTypeBindings.get(compPrim.getVarType());\n if (r != null) {\n return new TypeBinding(r.javaType + \"[]\", NativeType.SafeArray, true);\n }\n }\n final TypeBinding tb = TypeBinding.bind(g, comp, null);\n if (tb.nativeType == NativeType.VARIANT) {\n return new TypeBinding(\"Object[]\", NativeType.SafeArray, true);\n }\n }\n\n // T = typedef\n final ITypedefDecl typedef = t.queryInterface(ITypedefDecl.class);\n if (typedef != null) {\n return bind(g, typedef.getDefinition(), nameHint);\n }\n\n // T = enum\n final IEnumDecl enumdef = t.queryInterface(IEnumDecl.class);\n if (enumdef != null) {\n // TODO: we should probably check the size of the enum.\n // there's no guarantee it's 32 bit.\n return new TypeBinding(g.getTypeName(enumdef), NativeType.Int32, true);\n }\n\n // a few other random checks\n final String name = getTypeString(t);\n if (name.equals(\"GUID\")) {\n return new TypeBinding(\"GUID\", NativeType.GUID, true);\n }\n\n final IDispInterfaceDecl disp = t.queryInterface(IDispInterfaceDecl.class);\n if (disp != null) {\n // TODO check this: this is a dispatch interface, so bind to Com4jObject?\n if (disp.getGUID().equals(COM4J.IID_IPictureDisp)) {\n return new TypeBinding(IPictureDisp.class, NativeType.ComObject, true);\n }\n if (disp.getGUID().equals(COM4J.IID_IFontDisp)) {\n return new TypeBinding(IFontDisp.class, NativeType.ComObject, true);\n }\n // TODO: not clear how we should handle this\n throw new BindingException(Messages.UNSUPPORTED_TYPE.format(getTypeString(t)));\n }\n\n final ITypeDecl declt = t.queryInterface(ITypeDecl.class);\n if (declt != null) {\n // TODO: not clear how we should handle this\n throw new BindingException(Messages.UNSUPPORTED_TYPE.format(getTypeString(t)));\n }\n\n throw new BindingException(Messages.UNSUPPORTED_TYPE.format(getTypeString(t)));\n }", "title": "" }, { "docid": "b7d99535c816bb057dd26a175c3688e9", "score": "0.4381394", "text": "public binder createBinder() throws SOIerrors\n {\n SOInf binder_soi = null;\n try\n {\n binder_soi = StdUtil.createGlobeObject((SCInf) _binder_fact.dupInf(),\n _mgr_ctx, nextName());\n }\n catch (Exception e )\n {\n e.printStackTrace();\n throw new SOIerrors_misc();\n }\n return (binder) binder_soi.swapInf(binder.infid);\n }", "title": "" }, { "docid": "25e89af86ca428da33d690e47d2b601b", "score": "0.43518853", "text": "public OrganizationStatementFormBinder() {\n super(NAMESPACE);\n }", "title": "" }, { "docid": "f050c54bae4c448476742e70b81f0af4", "score": "0.43481737", "text": "private static Binding namedBinding(Matcher matcher, final Method method) {\n\n final Binding result;\n final String metricName = matcher.group(1);\n // uncomment the line below if you are interested in the \"form\" of the metric\n // String metricForm = matcher.group(2);\n Class[] params = method.getParameterTypes();\n if (params.length != 1) {\n LOGGER.error(\"invalid-paramter-types\", method);\n result = NO_OP_BINDING;\n } else {\n\n result = new Binding() {\n //javadoc inherited\n public Object invoke(MetricGroupProxy target,\n Object[] args) {\n Map localMetrics = target.getMetrics();\n localMetrics.put(metricName, args[0]);\n // we also add, to the map, the class that caused this\n // event to be fired. This is so OSGi knows what event\n // subtype to use\n localMetrics.put(Class.class, target.getProxiedClass());\n return null;\n }\n };\n\n }\n\n return result;\n }", "title": "" }, { "docid": "6c6f237c2eea5bdfdba017eb304403ee", "score": "0.4342111", "text": "public void visit(Formal n) {\n\t\t\n\t}", "title": "" }, { "docid": "4349b9d906f7818d4232eeb649ed691e", "score": "0.43404764", "text": "public final void ruleInBindingKeywords() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalAgreeParser.g:2774:5: ( ( ( rule__InBindingKeywords__Group__0 ) ) )\n // InternalAgreeParser.g:2775:1: ( ( rule__InBindingKeywords__Group__0 ) )\n {\n // InternalAgreeParser.g:2775:1: ( ( rule__InBindingKeywords__Group__0 ) )\n // InternalAgreeParser.g:2776:1: ( rule__InBindingKeywords__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getInBindingKeywordsAccess().getGroup()); \n }\n // InternalAgreeParser.g:2777:1: ( rule__InBindingKeywords__Group__0 )\n // InternalAgreeParser.g:2777:2: rule__InBindingKeywords__Group__0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__InBindingKeywords__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getInBindingKeywordsAccess().getGroup()); \n }\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 }", "title": "" }, { "docid": "5711d78a2e637a20a21c0dfbd9dbcbf4", "score": "0.43392056", "text": "public void run(BinderConnector binderConnector);", "title": "" }, { "docid": "ea6c0aaaa6dea639148c33cc7c89fd58", "score": "0.43154606", "text": "public interface PlainLiteral extends Literal {\n\n}", "title": "" }, { "docid": "27b15d35484c4d40490995e8bb737d68", "score": "0.43043807", "text": "public static Parser createBNFGrammar() {\n Parser equals = literal(\"::=\");\n Parser ref = literal(\"<\").then(\n charNotIn(\">\").onceOrMore().translate(joinStrings)).then(\n literal(\">\"));\n Parser productionStart = ref.then(equals);\n Parser string = exact(\n literal(\"\\\"\").then(charNotIn(\"\\\"\").zeroOrMore()).then(\n literal(\"\\\"\"))).translate(joinStrings).construct(\n Text.class);\n Parser component = first(\n ref.onlyIf(not(ref.then(equals))).construct(Reference.class),\n string);\n Parser alternative = component.onceOrMore()\n .construct(Alternative.class);\n Parser production = productionStart.then(new InfixExpr(alternative\n .translate(flatten), InfixExpr.op(\"|\", concatLists)));\n Parser productions = production.onceOrMore();\n return productions;\n }", "title": "" }, { "docid": "e2c32232dd4c1dfc2a647f88c9322db5", "score": "0.4300573", "text": "public interface BindingFactory extends EFactory {\n\t/**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n * @generated\n */\n\tBindingFactory eINSTANCE = integration.binding.impl.BindingFactoryImpl.init();\n\n\t/**\n * Returns a new object of class '<em>Http Get Binding</em>'.\n * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n * @return a new object of class '<em>Http Get Binding</em>'.\n * @generated\n */\n\tHttpGetBinding createHttpGetBinding();\n\n\t/**\n * Returns a new object of class '<em>Http Put Binding</em>'.\n * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n * @return a new object of class '<em>Http Put Binding</em>'.\n * @generated\n */\n\tHttpPutBinding createHttpPutBinding();\n\n\t/**\n * Returns a new object of class '<em>Simple Url Pattern</em>'.\n * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n * @return a new object of class '<em>Simple Url Pattern</em>'.\n * @generated\n */\n\tSimpleUrlPattern createSimpleUrlPattern();\n\n\t/**\n * Returns a new object of class '<em>Rest Url Pattern</em>'.\n * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n * @return a new object of class '<em>Rest Url Pattern</em>'.\n * @generated\n */\n\tRestUrlPattern createRestUrlPattern();\n\n\t/**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n\tBindingPackage getBindingPackage();\n\n}", "title": "" }, { "docid": "c44dabf3e58aa6a1974c70114b87c294", "score": "0.42924446", "text": "boa.types.Ast.Statement getStatement();", "title": "" }, { "docid": "43e9f7eb091481aa414a49261eade0a1", "score": "0.42814428", "text": "@Override\n public void bindSequence(QName varName, XQSequence value) throws XQException {\n isClosedXQException();\n isNullXQException(varName);\n isNullXQException(value);\n if (value.isClosed()) {\n throw new XQException (\"Sequence is closed.\");\n }\n if (!isExternal(varName.getLocalPart())) {\n throw new XQException (\"The bound variable must be declared external in the prepared expression.\");\n }\n try {\n if (!value.isOnItem()) {\n value.next();\n }\n Item item = new Item(((io.zorba.api.xqj.ZorbaXQItem)value.getItem()).getZorbaItem());\n //Item item2 = new Item(item);\n //String val = item.getStringValue();\n dynamicContext.setVariable(varName.getLocalPart(), item);\n itemsBounded.add(varName.getLocalPart());\n } catch (Exception e) {\n throw new XQException (\"Error binding item: \" + varName.getLocalPart() + \" with error: \" + e.getLocalizedMessage());\n }\n }", "title": "" }, { "docid": "1889d80ea4c2a3b3b16399540f3d55fe", "score": "0.42752096", "text": "Stmt parseSmallStmt() {\n if (at(\"del\")) {\n // del_stmt: 'del' exprlist\n return new Stmt.Del(parseExprList());\n }\n if (at(\"pass\")) {\n // pass_stmt: 'pass'\n return new Stmt.Pass();\n }\n // flow_stmt: break_stmt | continue_stmt | return_stmt | raise_stmt | yield_stmt\n if (at(\"break\")) {\n // break_stmt: 'break'\n return new Stmt.Break();\n }\n if (at(\"continue\")) {\n // continue_stmt: 'continue'\n return new Stmt.Continue();\n }\n if (at(\"return\")) {\n // return_stmt: 'return' [testlist]\n return new Stmt.Return(parseOptionalTestList());\n }\n if (at(\"raise\")) {\n // raise_stmt: 'raise' [test ['from' test]]\n Expr test1 = parseTest();\n Expr test2 = null;\n if (test1 != null && at(\"from\")) {\n test2 = parseTest();\n }\n return new Stmt.Raise(test1, test2);\n }\n if (at(\"yield\")) {\n // yield_stmt: yield_expr\n return new Stmt.Yield(parseYieldExpr());\n }\n // import_stmt: import_name | import_from\n if (at(\"import\")) {\n // import_name: 'import' dotted_as_names\n return new Stmt.Import(parseDottedAsNames());\n }\n if (at(\"from\")) {\n // import_from: ('from' (('.' | '...')* dotted_name | ('.' | '...')+) 'import' ('*' | '(' import_as_names ')' | import_as_names))\n int dots = 0;\n while (true) {\n if (at(\".\")) {\n dots += 1;\n } else if (at(\"...\")) {\n dots += 3;\n } else {\n break;\n }\n }\n List<String> dottedName = null;\n if (dots == 0 || is(\"NAME\")) {\n dottedName = parseDottedName();\n }\n expect(\"import\");\n List<Stmt.NameAlias> names;\n if (at(\"*\")) {\n names = Collections.emptyList();\n } else if (at(\"(\")) {\n names = parseImportAsNames();\n expect(\")\");\n } else {\n names = parseImportAsNames();\n }\n return new Stmt.From(dots, dottedName, names);\n }\n if (at(\"global\")) {\n // global_stmt: 'global' NAME (',' NAME)*\n return new Stmt.Global(parseNames());\n }\n if (at(\"nonlocal\")) {\n // nonlocal_stmt: 'nonlocal' NAME (',' NAME)*\n return new Stmt.Nonlocal(parseNames());\n }\n if (at(\"assert\")) {\n // assert_stmt: 'assert' test [',' test]\n Expr test1 = parseTest();\n if (test1 == null) {\n throw new ParserException();\n }\n Expr test2 = at(\",\") ? parseTest() : null;\n return new Stmt.Assert(test1, test2);\n }\n return parseExprStmt();\n }", "title": "" }, { "docid": "c749f33846f82a6a8a8cc75b7f1b2137", "score": "0.42732129", "text": "public Object visit(RuleNameLiteral n, Object argu);", "title": "" }, { "docid": "fea31101ee3351f066c9f7b6190dfc87", "score": "0.42699665", "text": "InvalidAssignmentImperativeBinding createInvalidAssignmentImperativeBinding();", "title": "" }, { "docid": "707dd2c5626abd446d2614a4bc4a0ef4", "score": "0.4266064", "text": "public void bind(OperatorContext context);", "title": "" }, { "docid": "d5eb83c55c53c6f104e862394b11de3a", "score": "0.42618963", "text": "public VarBinding build()\n {\n return varBinding_;\n }", "title": "" }, { "docid": "96793b09ce636df473c263b0b29e682d", "score": "0.42602032", "text": "public void bind(String input, RemoteObjectReference remoteObj);", "title": "" }, { "docid": "0232f2529c065b4db8c5b17b55f7b978", "score": "0.42575222", "text": "private ConstraintAnchor$Type() {\n void var2_-1;\n void var1_-1;\n }", "title": "" }, { "docid": "1366897d9ee11cd2663251d84c6178f6", "score": "0.42561114", "text": "public static VarBindingBuilder with( VarBinding varBinding)\n {\n return new VarBindingBuilder( varBinding);\n }", "title": "" }, { "docid": "5099599fb8fd4a9fe24fb67195c20039", "score": "0.4256037", "text": "public final EObject rulecompoundStatement() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_0=null;\r\n Token otherlv_2=null;\r\n EObject lv_statements_1_0 = null;\r\n\r\n\r\n\r\n \tenterRule();\r\n\r\n try {\r\n // InternalPascal.g:4665:2: ( (otherlv_0= 'begin' ( (lv_statements_1_0= rulestatements ) ) otherlv_2= 'end' ) )\r\n // InternalPascal.g:4666:2: (otherlv_0= 'begin' ( (lv_statements_1_0= rulestatements ) ) otherlv_2= 'end' )\r\n {\r\n // InternalPascal.g:4666:2: (otherlv_0= 'begin' ( (lv_statements_1_0= rulestatements ) ) otherlv_2= 'end' )\r\n // InternalPascal.g:4667:3: otherlv_0= 'begin' ( (lv_statements_1_0= rulestatements ) ) otherlv_2= 'end'\r\n {\r\n otherlv_0=(Token)match(input,68,FOLLOW_40); \r\n\r\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getCompoundStatementAccess().getBeginKeyword_0());\r\n \t\t\r\n // InternalPascal.g:4671:3: ( (lv_statements_1_0= rulestatements ) )\r\n // InternalPascal.g:4672:4: (lv_statements_1_0= rulestatements )\r\n {\r\n // InternalPascal.g:4672:4: (lv_statements_1_0= rulestatements )\r\n // InternalPascal.g:4673:5: lv_statements_1_0= rulestatements\r\n {\r\n\r\n \t\t\t\t\tnewCompositeNode(grammarAccess.getCompoundStatementAccess().getStatementsStatementsParserRuleCall_1_0());\r\n \t\t\t\t\r\n pushFollow(FOLLOW_32);\r\n lv_statements_1_0=rulestatements();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t\t\t\t\tif (current==null) {\r\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getCompoundStatementRule());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tset(\r\n \t\t\t\t\t\tcurrent,\r\n \t\t\t\t\t\t\"statements\",\r\n \t\t\t\t\t\tlv_statements_1_0,\r\n \t\t\t\t\t\t\"compilador.Pascal.statements\");\r\n \t\t\t\t\tafterParserOrEnumRuleCall();\r\n \t\t\t\t\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_2=(Token)match(input,48,FOLLOW_2); \r\n\r\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getCompoundStatementAccess().getEndKeyword_2());\r\n \t\t\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n \tleaveRule();\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "1980b04463488afc81cb85e04d05a715", "score": "0.42434782", "text": "private NodeStmt parseStmt() throws SyntaxException {\n\n if(curr().equals(new Token(\"rd\"))) {\n NodeRd rd = parseRd();\n return new NodeStmtRd(rd);\n }\n \n else if(curr().equals(new Token(\"wr\"))){\n \tNodeWr wr = parseWr();\n return new NodeStmtWr(wr);\n }\n \n else if(curr().equals(new Token(\"while\"))){\n \tNodeWhileLoop whileLoop = parseWhileLoop();\n \treturn new NodeStmtWhileLoop(whileLoop);\n }\n \n else if(curr().equals(new Token(\"if\"))){\n \tNodeIfElse ifElse = parseIfElse();\n \treturn new NodeStmtIfElse(ifElse);\n }\n \n else if(curr().equals(new Token(\"begin\"))){\n \tNodeBegin begin = parseBegin();\n \treturn new NodeStmtBegin(begin);\n }\n else {\n NodeAssn assn = parseAssn();\n return new NodeStmt(assn);\n }\n }", "title": "" }, { "docid": "90f2af753b0ce230e84062a703670e9f", "score": "0.42379212", "text": "public boolean visit(TypeDeclaration node) {\n\t\t\t\tITypeBinding binding = node.resolveBinding();\n\t\t\t\tString key = binding.getName().toString();\n\t\t\t\t// adds to the declaration counter\n\t\t\t\tif(declare.containsKey(key)){\n\t\t\t\t\tint value = (int) declare.get(key);\n\t\t\t\t\tvalue++;\n\t\t\t\t\tdeclare.put(key, value);\n\t\t\t\t}else{\n\t\t\t\t\tint value = 1;\n\t\t\t\t\tdeclare.put(key, value);\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}", "title": "" } ]
e6672ddadc69eebb3aa674eeeb37f1d6
Method used to place the bet, each bet costs 10 coins deduction from wallet.
[ { "docid": "5bf07f0c18bd98171cbe373f5f6d20ac", "score": "0.59017813", "text": "public boolean placeBet(boolean freeGameHit) {\n if (freeGameHit) {\n return true;\n }\n return withdrawCoins() == 10;\n }", "title": "" } ]
[ { "docid": "50a462216eec75f25fbda749afd4a53b", "score": "0.71440923", "text": "public void placeBets(){\n System.out.println();\n System.out.println(\"Let's place your bet!\");\n System.out.println();\n for(Player player: players){\n player.placeBet(minBet, maxBet);\n }\n System.out.println();\n }", "title": "" }, { "docid": "a963d38c221cbce4a08583176ad0b03e", "score": "0.6988049", "text": "public void addBet(int betAmount) {\n if (playerCash >= betAmount) {\n playerCash -= betAmount;\n playerBet += betAmount;\n }\n }", "title": "" }, { "docid": "f82ff5f1b288e32b778be6a2c99e435c", "score": "0.65436137", "text": "boolean placeBet(Player player, int bet);", "title": "" }, { "docid": "5b15fd1d485519186fd0c41d90e04150", "score": "0.64379185", "text": "public abstract PlacedBet register(double bet, double balance, Payout payout);", "title": "" }, { "docid": "1997066c4f9e72049e14e4763a303fcb", "score": "0.6277087", "text": "public void betBJ(boolean guest) {\n\t\tdouble bet = ((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)).getBet();\n\t\tif (!blackjack.isOkBet() && blackjack.canBet(bet)) {\n\n\t\t\tblackjack.setOkBet(true);\n\t\t\tif (guest) {\n\t\t\t\tblackjack.addBet(bet);\n\t\t\t\tstartBJ();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tBet aposta = new Bet(bet, \"blackJack\");\n\t\t\ttry {\n\t\t\t\tmanager.getServer().enviarTrama(new Betting(aposta));\n\t\t\t\tSegment s = manager.getServer().obtenirTrama();\n\t\t\t\tif (!((Check) s).isOk())\n\t\t\t\t\tnew Dialeg().setWarningText(\"Bet refused\");\n\t\t\t\telse {\n\t\t\t\t\tnew Dialeg().setWarningText(\"Bet accepted\");\n\t\t\t\t\tblackjack.addBet(bet);\n\t\t\t\t\t((BlackjackView)manager.getPanel(Constants.BJ_VIEW_NAME)).updateCash(bet);\n\t\t\t\t\tstartBJ();\n\t\t\t\t}\n\t\t\t} catch (IOException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME),\n\t\t\t\t\t\"There has been an error with the bet:\\n The minimum bet is 10, or\\n You have not enough funds\",\n\t\t\t\t\t\"ERROR\", JOptionPane.PLAIN_MESSAGE);\n\t\t}\n\t}", "title": "" }, { "docid": "a78ee9663e398eb00c4ad22312f14777", "score": "0.6220511", "text": "public void placeBet(Player player, int betPoints) \n\t\t\tthrows InsufficientFundsException {\n\t\tif (betPoints > this.getPlayer(player.getPlayerId())\n\t\t\t\t.getPoints()) {\n\t\t\tthrow new InsufficientFundsException();\n\t\t}\n\t\telse if (betPoints < 1) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\telse {\n\t\t\tthis.getPlayer(player.getPlayerId()).\n\t\t\tplaceBet(betPoints);\n\t\t}\n\t}", "title": "" }, { "docid": "19278fd96d2651fd87c1f3d429e6443e", "score": "0.6217392", "text": "public void DepositMoneyInBank() {\n\n for (int i = 0; i < commands.length; i++) {\n commands[i].execute();\n storage.push(commands[i]);\n }\n }", "title": "" }, { "docid": "b2833d461b88ea9efc5535f006c85b8d", "score": "0.6198591", "text": "public void takeBetBack() {\n\t\ttotalMoney += bet;\n\t}", "title": "" }, { "docid": "7be038fcb0d68e4bf48e2aa1c306a306", "score": "0.6196142", "text": "void setBet(int bet) {\n\t\tif (bet > _money) { // all in if you bet more than you have\n\t\t\t_bet = _money;\n\t\t\t_money = 0;\n\t\t\t\n\t\t}\n\t\telse if (bet < 1) {\n\t\t\t_bet = 1;\n\t\t\t_money -= _bet;\n\t\t}\n\t\telse {\n\t\t\t_bet = bet;\n\t\t\t_money -= bet;\n\t\t}\n\t}", "title": "" }, { "docid": "d8d52839cbd6d546c2833e5a3dc95a3f", "score": "0.61844677", "text": "public final void payBills() {\n if (this.isBankrupt) {\n return;\n }\n Formulas formulas = new Formulas();\n if ((getInitialBudget() - formulas.monthlySpendings(this)) < 0) {\n setBankrupt(true);\n }\n setInitialBudget(getInitialBudget() - formulas.monthlySpendings(this));\n }", "title": "" }, { "docid": "4560a955ba912f46c11c6c8a6360d66d", "score": "0.61800444", "text": "public void setBet(double bet){\n\t\tthis.bet = bet;\n\t\ttotalMoney -= bet;\n\t}", "title": "" }, { "docid": "7282e2665fe5f8f6a4149bf9c0e288cf", "score": "0.6108777", "text": "public void deal(){\n\t\tInteger topRank;\n\t\tInteger btmRank;\n\t\tDouble[] currPercent = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};\n\t\tlastRaise = -1;\n\t\tcurrBet = 3.0;\n\t\tfor (int i = 0; i<tablePlayers.length*2+5; i++) {\n\t\t\tif (i<tablePlayers.length) {\n\t\t\t\ttablePlayers[i].setCard1(deck[i]); \n\t\t\t}\n\t\t\telse if (i<tablePlayers.length*2) {\n\t\t\t\ttablePlayers[i%tablePlayers.length].setCard2(deck[i]); \n\t\t\t}\n\t\t\telse {\n\t\t\t\ttableCards[i-tablePlayers.length*2].setRank(deck[i].getRank());\n\t\t\t\ttableCards[i-tablePlayers.length*2].setSuit(deck[i].getSuit());\n\t\t\t}\n\t\t}\n\t\t//determine each hand's winning percentage and go through first round of betting\n\t\tfor (int j = 0; j < tablePlayers.length; j++) {\n\t\t\tint i = (button + 3 + j) % 10;\n\t\t\t//if (j==0) System.out.println(\"button = \" + button + \"; first = \" + i);\n\t\t\tif (tablePlayers[i].getCard1().getRank() == 1 || tablePlayers[i].getCard2().getRank() == 1) {\n\t\t\t\ttopRank = 14;\n\t\t\t\tbtmRank = Math.max(tablePlayers[i].getCard1().getRank(), tablePlayers[i].getCard2().getRank());\n\t\t\t\tif (btmRank == 1) {\n\t\t\t\t\tbtmRank = 14;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (tablePlayers[i].getCard1().getRank() <= tablePlayers[i].getCard2().getRank()) {\n\t\t\t\t\ttopRank = tablePlayers[i].getCard2().getRank();\n\t\t\t\t\tbtmRank = tablePlayers[i].getCard1().getRank();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttopRank = tablePlayers[i].getCard1().getRank();\n\t\t\t\t\tbtmRank = tablePlayers[i].getCard2().getRank();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (topRank == btmRank) { //pocket pair\n\t\t\t\tif (topRank == 14) {\n\t\t\t\t\tcurrPercent[i] = winPercent[168];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrPercent[i] = winPercent[154 + topRank];\n\t\t\t\t}\n\t\t\t} \n\t\t\telse {\n\t\t\t\tint index = -1;\n\t\t\t\tfor (int k = 1; k < topRank-2; k++) {\n\t\t\t\t\tindex += k;\n\t\t\t\t}\n\t\t\t\tindex += btmRank-1;\n\t\t\t\tindex *= 2;\n\t\t\t\tif (tablePlayers[i].getCard1().getSuit() == tablePlayers[i].getCard2().getSuit()) {\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tcurrPercent[i] = winPercent[index];\n\t\t\t}\n\t\t\t\n\t\t\t//place first round of pre-flop bets\n\t\t\tif (currPercent[i] > 0.20) { \n\t\t\t\tbetOrRaise(i,12.,3.);\n\t\t\t}\t\t\t\n\t\t\telse if ((currPercent[i] > 0.166 && currBet <= 3.0) ) { \n\t\t\t\tbetOrRaise(i,6.,3.);\n\t\t\t}\n\t\t\telse if (currPercent[i] > preFlopCallBBOdds[i] && currBet <= 3.0) {\n\t\t\t\tcallBetOrCheck(i,3.);\n\t\t\t}\n\t\t\telse if (currPercent[i] > preFlopCallARaiseOdds[i] && currBet <= 6.0) {\n\t\t\t\tcallBetOrCheck(i,6.);\n\t\t\t}\n\t\t\telse if (currPercent[i] > preFlopCallMultiRaiseOdds[i] && currBet > 6.0) {\n\t\t\t\tcallBetOrCheck(i,12.);\n\t\t\t}\n\t\t\telse if (i == ((button + 1) % 10)) {\n\t\t\t\ttablePlayers[i].placeBet(1.0);\n\t\t\t\tpot += 1.0;\n\t\t\t\ttablePlayers[i].foldHand();\n\t\t\t}\n\t\t\telse if (i == ((button + 2) % 10)) {\n\t\t\t\ttablePlayers[i].placeBet(3.0);\n\t\t\t\tpot += 3.0;\n\t\t\t\tif (currBet > 3.0) {\n\t\t\t\t\tif (currPercent[i] > preFlopCallBBOdds[i] && currBet <= 6.0) {\n\t\t\t\t\t\tcallBetOrCheck(i,6.);\n\t\t\t\t\t}\n\t\t\t\t\telse tablePlayers[i].foldHand();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tablePlayers[i].getBet() < currBet) {\n\t\t\t\ttablePlayers[i].foldHand();\n\t\t\t}\n\t\t}\n\t\tif (lastRaise > -1) {\n\t\t\traiseCount++;\n\t\t}\n\t\t// call raises and allow for re-raises to cap\n\t\twhile (lastRaise > -1) {\n\t\t\tlastRaise = -1;\n\t\t\tfor (int j = 0; j < tablePlayers.length; j++) {\n\t\t\t\tint i = (button + 3 + j) % 10;\n\t\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\t\tif (currPercent[i] > 0.20) {\n\t\t\t\t\t\tbetOrRaise(i,12.,3.);\n\t\t\t\t\t}\n\t\t\t\t\tif (tablePlayers[i].getBet() >= currBet) {\n\t\t\t\t\t\tcontinue; //check\n\t\t\t\t\t}\n\t\t\t\t\telse if (tablePlayers[i].getBet() == currBet - 3.0 && currPercent[i] > preFlopCallBBOdds[i]) {\n\t\t\t\t\t\t//call one raise if player would have called BB\n\t\t\t\t\t\tcallBetOrCheck(i, currBet);\n\t\t\t\t\t}\n\t\t\t\t\telse if (tablePlayers[i].getBet() < currBet - 3.0 && currPercent[i] > preFlopCallMultiRaiseOdds[i]) {\n\t\t\t\t\t\t//call the multiRaise if would have called multiple raises on first action\n\t\t\t\t\t\tcallBetOrCheck(i,12.);\n\t\t\t\t\t}\n\t\t\t\t\telse tablePlayers[i].foldHand();\n\t\t\t\t}\n\t\t\t}\n//\t\t\tprintTableStatus();\n\t\t}\n//\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n//\t\t\tif (!tablePlayers[9].hasFolded()) flopsPlayed++;\n//\t\t}\n\t\t//Bet the flop\n\t\tresetPlayerBets();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\tplayersLeft++;\n\t\t\t\tflopPlayers++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) flopsSeen++;\n\t\tplayersLeft = 0;\n\t\tbetFlop();\n\t\t//Bet the turn\n\t\tresetPlayerBets();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\tplayersLeft++;\n\t\t\t\tturnPlayers++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) turnsSeen++;\n\t\tplayersLeft = 0;\n\t\tbetTurn();\n\t\t\n\t\t//Bet the river\n\t\tresetPlayerBets();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\triverPlayers++;\n\t\t\t\tplayersLeft++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) riversSeen++;\n\t\tplayersLeft = 0;\n\t\tbetRiver();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\tplayersLeft++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) showdowns++;\n\t\tplayersLeft = 0;\n\t\t\n\t}", "title": "" }, { "docid": "587de56581df320a9aba35c1dc2a9a0a", "score": "0.61022955", "text": "private void botTrading(){\n if(game.isCardPositive(game.getHighestSharePriceStock())){\n int numShares = player.getFunds()/(game.getHighestSharePriceStock().getSharePrice()+3);\n player.getShares().set(game.getIndex(game.getHighestSharePriceStock()), player.getShares().get(game.getIndex(game.getHighestSharePriceStock())) + numShares);\n player.setFunds(-numShares*(game.getHighestSharePriceStock().getSharePrice()+3));\n }\n }", "title": "" }, { "docid": "62f9dbf7a5803acebb61b808365bea56", "score": "0.6058792", "text": "void payBills();", "title": "" }, { "docid": "2042680b55e96833d7c1a3fd223e6e4b", "score": "0.5993675", "text": "public void add_bet_money(List<coins> bet,List<coins> currentmoney){\n\t\tfor(int i=0;i<currentmoney.size();i++) {\n\t\t\tcurrentmoney.get(i).qtt+=bet.get(i).qtt;\n\t\t}\n }", "title": "" }, { "docid": "1a38cf4dd13fdf3c98383c879720cb00", "score": "0.5973275", "text": "public void showBalance(){\n for(Player player: players){\n System.out.println(player + \"'s balance: \" + player.getWallet());\n }\n System.out.println();\n dealer.showProfit();\n System.out.println();\n }", "title": "" }, { "docid": "a88ce2ea78612f94640e681890a03fd5", "score": "0.5963943", "text": "private void botBuy(Stock stock, int numShares){\n player.getShares().set(game.getIndex(stock), player.getShares().get(game.getIndex(stock)) + numShares);\n player.setFunds(-numShares*(stock.getSharePrice()+3));\n System.out.println(\"purchase made\"); //rem\n }", "title": "" }, { "docid": "4fc1cdf01c0b2d2719a0cec6c71009d7", "score": "0.5960903", "text": "public void enterPayment(int coinCount, Coin coinType)\n {\n balance = balance + coinType.getValue() * coinCount;\n // your code here\n \n }", "title": "" }, { "docid": "9da50a1a732a45b108f19d40c96919e1", "score": "0.5921776", "text": "public double bet(double amount)\r\n\t{\t\r\n\t\t// amount should be less than chip, amount <= this.chip\r\n\t\tthis.bet = 0; // Add by Johnny\r\n\t\tthis.chip -= amount; // Add by Johnny\r\n\t\tthis.bet += amount;\r\n\r\n\t\treturn amount;\r\n\t}", "title": "" }, { "docid": "6d5c2a81c8cedca2f144c2c893b4f234", "score": "0.59150845", "text": "public void addPot(double bet){\r\n\t\ttotalPot += bet;\r\n\t\tSystem.out.println(\"Total money in pot: \" + money.format(checkPot()));\r\n\t}", "title": "" }, { "docid": "87ecbb52581c1278c39ff39efe8b0bb7", "score": "0.5908008", "text": "@WebMethod public void addBetMade(Account user, Bet bet, float money);", "title": "" }, { "docid": "c66a7fdf3f9faf41e2a4b7b9a407965f", "score": "0.5875448", "text": "public Wallet() {\n total_bal = 10;\n }", "title": "" }, { "docid": "56b41dff416d111d1da32a9ffe53e48e", "score": "0.58698153", "text": "public static void buyCandy3() {\n int funds = 100;\n int itemsBought = 0;\n for (int price = 10; funds >= price; price += 10) {\n //System.out.println(\"price \" + price);\n itemsBought++;\n funds -= price;\n }\n //4 items bought.\n System.out.println(itemsBought + \" items bought.\");\n //Change: $0.00\n System.out.println(\"Change: $\" + funds);\n }", "title": "" }, { "docid": "64eba62b5799555a5a42d14fb904b5d5", "score": "0.58637816", "text": "public void sendRouletteBet() {\n\t\tif (rouletteExecutor.getAposta() == null)\n\t\t\tnew Dialeg().setWarningText(\"You must bet!\");\n\t\telse {\n\t\t\tif (bool.compareAndSet(true, false)) {\n\t\t\t\ttry {\n\t\t\t\t\tmanager.getServer().enviarTrama(new Betting(rouletteExecutor.getAposta()));\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t//// e.printStackTrace();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnew Dialeg().setWarningText(\"You can't bet to the same number\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bb80457994cb72e2018d3ddc4d911be1", "score": "0.584445", "text": "public void doLogicBuy() {\n\t\tif (!player.isHuman) {\n\t\t\tif (player.money > estimatedFee * 1.5) //\n\t\t\t{\n\t\t\t\tint free = (int) (player.money - estimatedFee * 1.5);\n\t\t\t\tCell c = board.getCells().get(player.position);\n\t\t\t\tif (c instanceof TradeableCell) {\n\t\t\t\t\tTradeableCell tc = (TradeableCell) c;\n\t\t\t\t\tif (tc.getOwner() == null && tc.getPrice() < free) {\n\t\t\t\t\t\ttc.buy(player);\n\t\t\t\t\t\tboard.addMessage(\"Just bought\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8e78513730908283a337e6d4467e1950", "score": "0.58314914", "text": "void bust() {\n\t\t_loses++;\n\t\t//_money -= _bet;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "title": "" }, { "docid": "3c689ea85eb55e4984968df24a9b964c", "score": "0.5830465", "text": "public void faiBagnetto() {\n System.out.println(\"Scrivere 1 per Bagno lungo, al costo di 150 Tam\\nSeleziona 2 per Bagno corto, al costo di 70 Tam\\nSeleziona 3 per Bide', al costo di 40 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiVita += 50;\n puntiFelicita -= 30;\n soldiTam -= 150;\n }\n case 2 -> {\n puntiVita += 30;\n puntiFelicita -= 15;\n soldiTam -= 70;\n }\n case 3 -> {\n puntiVita += 10;\n puntiFelicita -= 5;\n soldiTam -= 40;\n }\n }\n checkStato();\n }", "title": "" }, { "docid": "3fd6b3464ee4bda71476fd50c24e464d", "score": "0.58253646", "text": "public void thisSlot(MyButton boton) {\n\t\tthis.boton = boton;\n\t\tDialeg dialeg = new Dialeg();\n\t\tdialeg.setInputText(\"How much money do you want to bet?\");\n\t\tif (dialeg.getAmount() != null && (dialeg.getAmount().isEmpty()\n\t\t\t\t|| !dialeg.getAmount().matches(\"[-+]?\\\\d*\\\\.?\\\\d+\") || Float.parseFloat(dialeg.getAmount()) <= 0)) {\n\t\t\tdialeg.setWarningText(\"Enter a correct amount!\");\n\t\t} else if (dialeg.getAmount() != null) {\n\t\t\tString slot = boton.getText();\n\t\t\tBet bet = new Bet(Double.parseDouble(dialeg.getAmount()), slot);\n\t\t\trouletteExecutor.setAposta(bet);\n\t\t\tbool.set(true);\n\t\t}\n\t}", "title": "" }, { "docid": "26a920e3ed5fd1173fd0691d1444dd41", "score": "0.5817681", "text": "private void buy() {\n if (asset >= S_I.getPirce()) {\n Item item = S_I.buy();\n asset -= item.getPrice();\n S_I.setAsset(asset);\n } else {\n System.out.println(\"cannot afford\");\n }\n }", "title": "" }, { "docid": "bb5c84f12d8d252819a33bd8b363865a", "score": "0.58062357", "text": "public void onBetPlaced(Bet bet);", "title": "" }, { "docid": "b0d68f79fd00492cd1819f40ab7a8053", "score": "0.57820964", "text": "@WebMethod public Bet createBet(String bet, float money, Question q) throws BetAlreadyExist;", "title": "" }, { "docid": "04652dbe5aa6e157a32b38045e8b724a", "score": "0.57682174", "text": "@Scheduled(fixedDelay = 5000)\n public void simulate() {\n Random random = new Random();\n int randomReceiver = random.nextInt(receivers.size());\n String receiverAddress = receivers.get(randomReceiver).getAddress();\n\n long amount = random.nextInt(1000000);\n walletBalance.merge(receiverAddress, amount, Long::sum);\n Transaction transaction = wallet.sendMoney(receiverAddress, amount);\n log.info(\"After transaction {} -> Receivers balances: {}\", transaction.getHash(), walletBalance);\n }", "title": "" }, { "docid": "9b41665f721000f80f70ce5838eec118", "score": "0.57678664", "text": "public void makeRounds() {\n for (int i = 0; i < nrofturns; i++) {\n int check = 0;\n // If all distributors are bankrupt we intrrerupt the simulation\n for (Distributor d : listOfDistributors.getList()) {\n if (d.isBankrupt()) {\n continue;\n }\n check = 1;\n break;\n }\n if (check == 0) {\n break;\n }\n // Auxiliary variable that will point to the best deal for the consumers\n Distributor bestDist;\n // Making the updates at the start of each month\n if (listOfUpdates.getList().get(i).getNewConsumers().size() != 0) {\n for (Consumer x : listOfUpdates.getList().get(i).getNewConsumers()) {\n listOfConsumers.getList().add(x);\n }\n }\n if (listOfUpdates.getList().get(i).getDistributorChanges().size() != 0) {\n for (DistributorChanges x : listOfUpdates.getList().get(\n i).getDistributorChanges()) {\n listOfDistributors.grabDistributorbyID(\n x.getId()).setInitialInfrastructureCost(x.getInfrastructureCost());\n }\n }\n\n // Checking if the producers have changed their costs asta ar trb sa fie update\n\n // Making the variable point to the best deal in the current round\n // while also calculating the contract price for each distributor\n bestDist = listOfDistributors.getBestDistinRound();\n // Removing the link between consumers and distributors when the contract has ended\n for (Distributor d : listOfDistributors.getList()) {\n if (d.isBankrupt()) {\n // Case in which we delete the due payment of the consumer if\n // its current distributor goes bankrupt\n for (Consumer cons : listOfConsumers.getList()) {\n if (cons.getIdofDist() == d.getId()) {\n cons.setDuepayment(0);\n cons.setMonthstoPay(0);\n cons.setIdofDist(-1);\n }\n }\n continue;\n }\n d.getSubscribedconsumers().removeIf(\n c -> c.isBankrupt() || c.getMonthstoPay() <= 0);\n }\n // Giving the non-bankrupt consumers their monthly income and getting the ones\n // without a contract a deal (the best one)\n for (Consumer c : listOfConsumers.getList()) {\n if (c.isBankrupt()) {\n continue;\n }\n c.addtoBudget(c.getMonthlyIncome());\n if (c.getMonthstoPay() <= 0 || c.getIdofDist() == -1) {\n c.setIdofDist(bestDist.getId());\n c.setMonthstoPay(bestDist.getContractLength());\n c.setToPay(bestDist.getContractPrice());\n bestDist.addSubscribedconsumer(c);\n }\n }\n // Making the monthly payments for the non-bankrupt consumers\n for (Consumer entity : listOfConsumers.getList()) {\n if (entity.isBankrupt()) {\n continue;\n }\n // If the consumer has no due payment we check if he can pay the current rate\n if (entity.getDuepayment() == 0) {\n // If he can, do just that\n if (entity.getBudget() >= entity.getToPay()) {\n entity.addtoBudget(-entity.getToPay());\n listOfDistributors.grabDistributorbyID(entity.getIdofDist()).addBudget(\n entity.getToPay());\n entity.reduceMonths();\n // Contract has ended\n if (entity.getMonthstoPay() <= 0) {\n entity.setIdofDist(-1);\n }\n } else {\n // He cannot pay so he gets a due payment\n entity.setDuepayment(entity.getToPay());\n entity.reduceMonths();\n }\n } else {\n // The consumer has a due payment\n if (entity.getMonthstoPay() == 0) {\n // He has one to a distributor with whom he has ended the contract so\n // he must make the due payment and the one to the new distributor\n int aux = (int) Math.round(Math.floor(DUECOEFF * entity.getDuepayment()));\n int idAux = entity.getIdofDist();\n entity.setIdofDist(bestDist.getId());\n entity.setToPay(bestDist.getContractPrice());\n entity.setMonthstoPay(bestDist.getContractLength());\n bestDist.addSubscribedconsumer(entity);\n // He is able to\n if (entity.getBudget() >= (aux + entity.getToPay())) {\n entity.addtoBudget(-(aux + entity.getToPay()));\n listOfDistributors.grabDistributorbyID(idAux).addBudget(\n aux);\n listOfDistributors.grabDistributorbyID(entity.getIdofDist()).addBudget(\n entity.getToPay());\n entity.reduceMonths();\n } else {\n // He has insufficient funds\n entity.setBankrupt(true);\n }\n } else {\n // His due payment is at the same distributor he has to make the monthly\n // payments\n // He can do the payments\n if (entity.getBudget()\n >= (int) Math.round(Math.floor(DUECOEFF * entity.getDuepayment())\n + entity.getToPay())) {\n entity.addtoBudget(-(int) Math.round(Math.floor(DUECOEFF\n * entity.getDuepayment()) + entity.getToPay()));\n listOfDistributors.grabDistributorbyID(entity.getIdofDist()).addBudget(\n (int) Math.round(Math.floor(DUECOEFF * entity.getDuepayment())\n + entity.getToPay()));\n entity.reduceMonths();\n } else {\n // He cannot do the payments\n entity.setBankrupt(true);\n }\n }\n }\n }\n // The non-bankrupt distributors pay their monthly rates\n for (Distributor d : listOfDistributors.getList()) {\n if (d.isBankrupt()) {\n continue;\n }\n d.reduceBudget();\n // Those who cannot, go bankrupt\n if (d.getBudget() < 0) {\n d.setBankrupt(true);\n }\n }\n\n this.roundsAdjustments(i);\n }\n }", "title": "" }, { "docid": "ff203d62559b7f4dd8fe0c4b4047d1cf", "score": "0.57445073", "text": "public static void crapsBS() {\r\n\t\tint dice1 = rand.nextInt(6) + 1;\r\n\t\tint dice2 = rand.nextInt(6) + 1;\r\n\t\tint sum = dice1 + dice2;\r\n\t\tSystem.out.printf(\"Nakon bacenih kockica brojevi su %d i %d\\n\", dice1, dice2);\r\n\t\tif (sum == 2 || sum == 3 || sum == 12) {\r\n\t\t\tSystem.out.println(\"Nazalost, izgubio si.\");\r\n\t\t} else if (sum == 7 || sum == 11) {\r\n\t\t\tSystem.out.println(\"Bravo, pobijedio si!\");\r\n\t\t} else if ((sum >= 4 && sum <= 6) || (sum >= 8 && sum <= 10)) {\r\n\t\t\tSystem.out.println(\"Point je \" + sum);\r\n\t\t\trestartBS();\r\n\t\t\tpointBS(sum);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3350a53e0a3a7e2641334d43ca758ec2", "score": "0.5735453", "text": "public void payEconomical() {\n if (this.balance >= 2.50) {\n this.balance -= 2.50;\n }\n }", "title": "" }, { "docid": "0988dce1ec7440742a5bfe924b44413e", "score": "0.57222015", "text": "public int getMoneyAfterBet() {\n moneyAfterBet = initialBudget - betAmount;\n // initialBudget = moneyAfterBet;\n return moneyAfterBet;\n\n }", "title": "" }, { "docid": "6ebdd815e25f77d39edbf4e561646645", "score": "0.5699877", "text": "public void pay(Tuple pos, Dice dice, Board board) {\n if (board.legal_entrances[pos.a][pos.b] == 0 \n || board.entrances[pos.a][pos.b] == null \n || board.entrances[pos.a][pos.b].getInUse() == false) return;\n \n Entrance entrance = board.entrances[pos.a][pos.b];\n \n // Check if entrance is player's entrance\n if (entrance.getPlayer().getID() == id) return;\n\n Player rival = entrance.getPlayer();\n HotelCard rival_hotel = entrance.getHotel();\n \n System.out.println(ANSI() + \"Player\" + id + \" is on an entrance of a Player\" + rival.getID()+ ANSI_RESET);\n\n // Roll Dice\n System.out.println(ANSI() + \"Player\" + id + \" rolls dice for payment.\" + ANSI_RESET);\n System.out.println(ANSI() + \"Player\" + id + \" please press any button\" + ANSI_RESET);\n Scanner s = new Scanner(System.in);\n String str = s.nextLine();\n int result = dice.roll();\n System.out.println(ANSI() + \"Dice Result: \" + result + ANSI_RESET);\n\n // Pay rival player\n int payment = rival_hotel.getCard().get(rival_hotel.getRank()).b * 6;\n\n // Deal falls through ----> bankrupt\n if (getMLS() <= payment) {\n payment -= getMLS();\n rival.setMLS(rival.getMLS() + payment);\n System.out.println(ANSI() + \"Player\" + id + \" pays to Player\" + rival.getID() + \" \" + payment + \" MLS.\" + ANSI_RESET);\n System.out.println(ANSI() + \"Player\" + id + \" bankrupts\" + ANSI_RESET);\n System.out.println(ANSI() + \"Player\" + rival.getID() + \" has now \" + rival.getMLS() + \" MLS.\" + ANSI_RESET);\n bankrupt(board, pos);\n return;\n }\n\n // Normal Payment\n rival.setMLS(rival.getMLS() + payment);\n setMLS(getMLS() - payment);\n System.out.println(ANSI() + \"Player\" + id + \" pays to Player\" + rival.getID() + \" \" + payment + \" MLS.\" + ANSI_RESET);\n System.out.println(ANSI() + \"Player\" + id + \" has now \" + mls + \" MLS.\" + ANSI_RESET);\n System.out.println(ANSI() + \"Player\" + rival.getID() + \" has now \" + rival.getMLS() + \" MLS.\" + ANSI_RESET);\n return;\n }", "title": "" }, { "docid": "cf8b398e1998a22fbc7627e94a829ca1", "score": "0.56786287", "text": "public void standBJ() {\n\t\tif (blackjack.isOkBet()) {\n\t\t\t((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)).standAction();\n\n\t\t\twhile (blackjack.getCount(2, false, 17)) {\n\t\t\t\t((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)).addCard(blackjack.giveCard(2), 2);\n\t\t\t}\n\n\t\t\tif (blackjack.getCount(2, true, 21)) {\n\t\t\t\tJOptionPane.showMessageDialog(((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)), \"You win!\",\n\t\t\t\t\t\t\"DEALER BUSTS\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\tblackjack.stand(true);\n\t\t\t} else {\n\t\t\t\tif (blackjack.getCount(1, true, blackjack.getCardCount(2))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)),\n\t\t\t\t\t\t\t\"You win!\", \"YOU WIN\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\t\tblackjack.stand(true);\n\t\t\t\t} else if (blackjack.getCount(1, false, blackjack.getCardCount(2))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)),\n\t\t\t\t\t\t\t\"You lose!\", \"YOU LOSE\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\t\tblackjack.stand(false);\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)),\n\t\t\t\t\t\t\t\"You push.\", \"PUSH\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresetBJTable();\n\t\t} else\n\t\t\tJOptionPane.showMessageDialog(manager.getPanel(Constants.BJ_VIEW_NAME), \"You must bet something\", \"ERROR\",\n\t\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t}", "title": "" }, { "docid": "530fefd8cde59f431448ce16fc36805b", "score": "0.5678384", "text": "public double getBet() {\n return bet;\n }", "title": "" }, { "docid": "5b90f30c93d5b4c9171a3b83bb1a2a2b", "score": "0.5673326", "text": "public static void bid(int amount) {\n\t}", "title": "" }, { "docid": "5661a118d9c8d00c75e4d720b13f2a34", "score": "0.5673136", "text": "public void subPot(double bet) {\r\n\t\ttotalPot -= bet;\r\n\t}", "title": "" }, { "docid": "8f399e367b73292079a87ce71cc7eaa1", "score": "0.567243", "text": "void makeMarketBuyOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);", "title": "" }, { "docid": "175f7d5edba6c15bb8cd37bb15fc67df", "score": "0.5654847", "text": "void bal() \r\n{\r\nSystem.out.println(\"Your current balance is:\"+money[x]);\r\n}", "title": "" }, { "docid": "6461c9d7ec55618cf7598c401784b50e", "score": "0.5653891", "text": "public void hitBJ() {\n\t\tif (blackjack.isOkBet()) {\n\t\t\tif (blackjack.getCount(1, false, 21)) {\n\t\t\t\t((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)).addCard(blackjack.giveCard(1), 1);\n\t\t\t\tif (blackjack.getCount(1, true, 21)) {\n\t\t\t\t\tblackjack.playerLoses();\n\t\t\t\t\tJOptionPane.showMessageDialog(manager.getPanel(Constants.BJ_VIEW_NAME), \"You lose!\", \"BUSTED\",\n\t\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t\t\t\t\tresetBJTable();\n\t\t\t\t}\n\t\t\t}\n\t\t} else\n\t\t\tJOptionPane.showMessageDialog(manager.getPanel(Constants.BJ_VIEW_NAME), \"You must bet something\", \"ERROR\",\n\t\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t}", "title": "" }, { "docid": "5a381b47d86b6b69954daa03bbbea32a", "score": "0.5631326", "text": "public void update(){\r\n\t\t\r\n\t\tif (this.getWillPay() == true && this.currentTroll.getBridgeColor().compareTo(\"Black\") == 0 && this.getColor().compareTo(\"Black\") != 0){\r\n\t\t\t\r\n\t\t\tthis.payToll(currentTroll);\r\n\t\t\twaitTime = waitTime - 1;\r\n\t\t\tthis.setBlackCoins(this.getBlackCoins() - 1);\r\n\t\t\tthis.setGreyCoins(this.getGreyCoins() - 1);\r\n\t\t\tthis.setWhiteCoins(this.getWhiteCoins() - 1);\r\n\t\t\t\r\n\t\t} //end if\r\n\t\t\r\n\t\tif (this.getWillPay() == true && currentTroll.getBridgeColor().compareTo(\"White\") == 0 && this.getColor().compareTo(\"White\") != 0){\r\n\t\t\t\r\n\t\t\tthis.payToll(currentTroll);\r\n\t\t\twaitTime = waitTime - 1;\r\n\t\t\tthis.setBlackCoins(this.getBlackCoins() - 1);\r\n\t\t\tthis.setGreyCoins(this.getGreyCoins() - 1);\r\n\t\t\tthis.setWhiteCoins(this.getWhiteCoins() - 1);\r\n\t\t\t\r\n\t\t} //end if\r\n\t\t\r\n\t\tif (this.getWillPay() == true && currentTroll.getBridgeColor().compareTo(\"Grey\") == 0 && this.getColor().compareTo(\"Grey\") != 0){\r\n\t\t\t\r\n\t\t\tthis.payToll(currentTroll);\r\n\t\t\twaitTime = waitTime - 1;\r\n\t\t\tthis.setBlackCoins(this.getBlackCoins() - 1);\r\n\t\t\tthis.setGreyCoins(this.getGreyCoins() - 1);\r\n\t\t\tthis.setWhiteCoins(this.getWhiteCoins() - 1);\r\n\t\t\t\r\n\t\t} //end if\r\n\t\t\r\n\t\tif(this.getWillPay() == false){\r\n\t\t\t\r\n\t\t\twaitTime = waitTime - 1;\r\n\t\t\tthis.setBlackCoins(this.getBlackCoins() - 1);\r\n\t\t\tthis.setGreyCoins(this.getGreyCoins() - 1);\r\n\t\t\tthis.setWhiteCoins(this.getWhiteCoins() - 1);\r\n\t\t\t\r\n\t\t} //end if\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6332b5df50eaa7634cb7b305b34aecd9", "score": "0.560813", "text": "@Override\n public void run() {\n int slotsUsed = 0;\n int potentialBananas = 0;\n RSItem[] items = Inventory.getAll();\n for (RSItem item : items) {\n // If this isn't a bone count it\n if (item.getID() < 6904 || item.getID() > 6907) {\n slotsUsed++;\n }\n else {\n // Item id bone amount\n // 6904 1\n // 6905 2\n // 6906 3\n // 6907 4\n potentialBananas += 1 + item.getID() - 6904;\n }\n }\n \n int slotsAvailable = 28 - slotsUsed;\n\n RSItem[] food = Inventory.find(1963);\n\n // If have bananas/peaches, deposit them, else collect bones\n if (food.length > 0) {\n // Heal and then deposit\n float eatHealth = m_settings.m_eatHealth * Skills.getActualLevel(SKILLS.HITPOINTS);\n float eatTo = m_settings.m_eatTo * Skills.getActualLevel(SKILLS.HITPOINTS);\n \n if (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatHealth) {\n // Eat\n while (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatTo) {\n food[0].click(\"Eat\");\n m_script.sleep(300, 600);\n food = Inventory.find(1963);\n }\n }\n else {\n // Deposit\n RSObject[] objs = Objects.findNearest(50, \"Food chute\");\n if (objs.length > 0) {\n while (!objs[0].isOnScreen()) {\n Walking.blindWalkTo(objs[0]);\n m_script.sleep(250);\n }\n objs[0].click(\"Deposit\");\n m_script.sleep(1200);\n }\n }\n }\n else {\n // If we have more than a full load of bananas worth of bones, cast bones to peaches\n if (potentialBananas >= slotsAvailable) {\n // Cast bones to peaches\n Magic.selectSpell(\"Bones to Bananas\");\n }\n else {\n // Collect bananas\n RSObject[] bonePiles = Objects.findNearest(10725, 10726, 10727, 10728);\n if (bonePiles.length > 0) {\n while (!bonePiles[0].isOnScreen()) {\n Walking.blindWalkTo(bonePiles[0]);\n m_script.sleep(250);\n }\n bonePiles[0].click(\"Grab\");\n m_script.sleep(150);\n }\n }\n }\n }", "title": "" }, { "docid": "e2702a519bbc33e538f76d597815e9c6", "score": "0.559477", "text": "public void buyStock(double askPrice, int shares, int tradeTime) {\n }", "title": "" }, { "docid": "8600d6e198b8513fb7ef4fadedb6d85d", "score": "0.5587812", "text": "public static void doubling()\n\t{\n\t\tbet*=2;\n\t\tplayersCards.add(deck.deal());\n\t\tcurrentValue();\n\t\ttfBet.setText(String.valueOf(bet));\n\t\tuserCardImg[playersCards.size()-1].setIcon(new ImageIcon(Gameplay.class.getResource(getCard(playersCards.get(playersCards.size()-1)))));\n\t\troundEnd();\n\t}", "title": "" }, { "docid": "28774e33ae6e4e9c8755cb7675004209", "score": "0.5587604", "text": "public void call(int player)\r\n\t{\r\n\t\tint bet=maxBet-playerBet[player];\r\n\t\tif(bet>accountValue[player])System.out.println(\"cos\");//tu powino wyjatek rzucac \r\n\t\telse\r\n\t\t{\r\n\t\t\taccountValue[player]=accountValue[player]-bet;\r\n\t\t\tplayerBet[player]+=bet;\r\n\t\t\tpool+=bet;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7a0300488a5457079d951316ae46f798", "score": "0.5585787", "text": "public void ventaBilleteMaquina1()\n {\n maquina1.insertMoney(500);\n maquina1.printTicket();\n }", "title": "" }, { "docid": "2178541818074ed50168cd34259a2c00", "score": "0.55771804", "text": "private void sendBucks() {\n\t\tconsole.printUsers(userService.getAll(currentUser.getToken()));\n\t\tSystem.out.println(\"\");\n\n\t\tBoolean validResponse = false;\n\t\tint selectedUserId = -1;\n\t\tBigDecimal transferAmount = new BigDecimal(0);\n\t\tBigDecimal zero = new BigDecimal(0);\n\t\tBigDecimal currentBalance = (accountService.getAccountBalance(currentUser.getToken()));\n\t\tTransfer transfer = new Transfer();\n\n\t\twhile (true) {\n\t\t\t// ask which user you want to send money to or exit\n\t\t\tselectedUserId = console.getUserInputInteger(\"Enter ID of user you are sending to (0 to cancel)\");\n\t\t\tif (selectedUserId == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (selectedUserId > 0 && selectedUserId <= userService.getAll(currentUser.getToken()).length) {\n\t\t\t\t// prompt for amount to send\n\t\t\t\ttransferAmount = console.getUserInputBigDecimal(\"Enter amount\");\n\t\t\t\t// transfer money\n\n\t\t\t\tif (transferAmount.compareTo(zero) == 1 && transferAmount.compareTo(currentBalance) <= 0) {\n\n\t\t\t\t\ttransfer.setFromUserId(currentUser.getUser().getId());\n\t\t\t\t\ttransfer.setToUserId(selectedUserId);\n\t\t\t\t\ttransfer.setTransferAmount(transferAmount);\n\t\t\t\t\ttransfer.setStatusOfTransferId(2);\n\t\t\t\t\ttransfer.setTypeOfTransferId(2);\n\n\t\t\t\t\t\n\t\t\t\t\ttransferService.createTransfer(currentUser.getToken(), transfer);\n\t\t\t\t\tSystem.out.println(\"\\nTransfer Complete!\");\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\\nInsufficient Funds! Please try again.\\n\");\n\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "aeab9bfac6f94741c45c62e3e86c18b1", "score": "0.55748636", "text": "@Override\n\tpublic void DepositMoney(Gamers gamer) {\n\t\tSystem.out.println(\"Lütfen yatıracağınız para miktarını giriniz\");\n\t\tint newDepositMoney;\n\t\tnewDepositMoney=sc.nextInt();\n\t\tsc.nextLine();\n\t\tgamer.setWalletBalance(gamer.getWalletBalance()+newDepositMoney);\n\t\tdbserviceadaptors.Save(gamer);\n\t\tSystem.out.println(\"Yeni bakiyeniz \"+gamer.getWalletBalance()+\" olarak güncellendi.\");\n\t\t\n\t}", "title": "" }, { "docid": "0fe4bb5bd232a7a3fc943e5ed29725bc", "score": "0.55664736", "text": "int insertBet(Account account, Bet bet) throws DAOException;", "title": "" }, { "docid": "aa09ff96ecc7c06d9eaec2fb5ed30147", "score": "0.5548335", "text": "public void getBet(int[] turnData) {\n Player player = GameEngine.activePlayer;\n\n player.changeBank(turnData[5]-turnData[4]);\n String winLose, loseMessage = \"\", fMessage = \"\";\n if(turnData[5]-turnData[4] > 0) {\n winLose = \"You won \" + turnData[5] + \" points and your score is now \";\n fMessage = \"You guessed \" + turnData[2] + \" and \" + turnData[3] + \" and you were right!\";\n }\n else if (turnData[5]-turnData[4] < 0){\n winLose = \"You lost \" + turnData[4] + \" points and your score is now \";\n loseMessage = \"Better luck next time!\";\n fMessage = \"You guessed \" + turnData[2] + \" and \" + turnData[3] + \" and the right answer is:\";\n } else {\n winLose = \"You didn't bet anything! Your score is now \";\n fMessage = \"You guessed \" + turnData[2] + \" and \" + turnData[3] + \" and the right answer is:\";\n }\n\n String[] myMessage = new String[5];\n myMessage[0] = fMessage;\n myMessage[1] = winLose + player.getBank() + \".\";\n myMessage[2] = loseMessage;\n myMessage[3] = \"\" + turnData[0];\n myMessage[4] = \"\" + turnData[1];\n\n GameMain.userInterface.setTurnMessage(myMessage);\n\n }", "title": "" }, { "docid": "185c3f8284bc1963f41922586de1469a", "score": "0.5525085", "text": "public static void gambler(int stake,int trails,int goal,int bets,int win)\n\t{\n\t\tfor(int i=0;i<trails;i++)\n\t\t{\n\t\t\tint cash=stake;\n\t\t\twhile(cash>0 && cash<goal)\n\t\t\t{\n\t\t\t\tbets++;\n\t\t\t\tif(Math.random()>0.5)\n\t\t\t\t{\n\t\t\t\t\tcash++;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tcash--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(cash==goal)\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t}\n\t\t\tSystem.out.println(win+\" win of \"+trails);\n\t\t\tSystem.out.println(\"Percentage of game \"+100.0*win/trails);\n\t\t\tSystem.out.println(\"Average of bets \"+1.0*bets/trails);\n\t\t}\n\t}", "title": "" }, { "docid": "ee5bfe4d7e757e791367744620887919", "score": "0.55227447", "text": "public void companyPayRoll(){\n calcTotalSal();\n updateBalance();\n resetHoursWorked();\n topBudget();\n }", "title": "" }, { "docid": "0c1029844f0964ccd07c804ba9b9c04a", "score": "0.55204785", "text": "public void spendAllMoney() {\n\t\tcurrentBalance = 0;\n\t}", "title": "" }, { "docid": "2b3eb0c4f3022f4e419533fa46d76601", "score": "0.5515826", "text": "private void calculateBill() {\n\t\tif (unit <= 100) {\r\n\t\t\tbill = unit * 5;\r\n\t\t}else if(unit<=200){\r\n\t\t\tbill=((unit-100)*7+500);\r\n\t\t}else if(unit<=300){\r\n\t\t\tbill=((unit-200)*10+1200);\r\n\t\t}else if(unit>300){\r\n\t\t\tbill=((unit-300)*15+2200);\r\n\t\t}\r\n\t\tSystem.out.println(\"EB amount is :\"+bill);\r\n\t}", "title": "" }, { "docid": "8d20bbab7b07012d8120178bee21653a", "score": "0.5513404", "text": "@Override\n public int howManyCoins() {\n return 7;\n }", "title": "" }, { "docid": "a376acbfd2c9e9dcdd3d3549b7ea4224", "score": "0.55128086", "text": "@Test\r\n public void test() {\r\n Configuration.getInstance().setDeductIncomeTax(false);\r\n\r\n String symbol = \"TST\";\r\n Stock stock = new Stock(symbol, \"Test Stock\");\r\n stock.setPrice(10.00);\r\n stock.setDivRate(1.00);\r\n\r\n // Initial (empty) position.\r\n Position position = new Position(stock);\r\n Assert.assertEquals(0, position.getNoOfShares());\r\n Assert.assertEquals(0.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(0.00, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // BUY 100 @ $20 ($5 costs)\r\n stock.setPrice(20.00);\r\n position.addTransaction(TestUtil.createTransaction(1, 1L, TransactionType.BUY, symbol, 100, 20.00, 5.00));\r\n Assert.assertEquals(100, position.getNoOfShares());\r\n Assert.assertEquals(2005.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(2000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(-5.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(2005.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(4.99, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(-5.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(-0.25, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // DIVIDEND 100 @ $1.00\r\n position.addTransaction(TestUtil.createTransaction(2, 2L, TransactionType.DIVIDEND, symbol, 100, 1.00, 0.00));\r\n Assert.assertEquals(100, position.getNoOfShares());\r\n Assert.assertEquals(2005.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(2000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(-5.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(2005.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(4.99, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(+95.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(+4.74, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // Price drops to $10\r\n stock.setPrice(10.00);\r\n Assert.assertEquals(100, position.getNoOfShares());\r\n Assert.assertEquals(2005.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(1000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(-1005.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(-50.12, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(2005.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(4.99, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(-905.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(-45.14, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // BUY another 100 @ $10 ($5 costs)\r\n position.addTransaction(TestUtil.createTransaction(3, 3L, TransactionType.BUY, symbol, 100, 10.00, 5.00));\r\n Assert.assertEquals(200, position.getNoOfShares());\r\n Assert.assertEquals(3010.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(2000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(-1010.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(-33.55, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(3010.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(200.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(6.64, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(-910.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(-30.23, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // Price raises to $20 again\r\n stock.setPrice(20.00);\r\n Assert.assertEquals(200, position.getNoOfShares());\r\n Assert.assertEquals(3010.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(4000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(+990.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(+32.89, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(3010.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(200.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(6.64, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(+1090.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(+36.21, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // DIVIDEND 200 @ $1.25\r\n stock.setDivRate(1.25);\r\n position.addTransaction(TestUtil.createTransaction(4, 4L, TransactionType.DIVIDEND, symbol, 200, 1.25, 0.00));\r\n Assert.assertEquals(200, position.getNoOfShares());\r\n Assert.assertEquals(3010.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(4000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(+990.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(+32.89, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(3010.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(250.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(8.31, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(350.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(+1340.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(+44.52, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // SELL 200 @ $20 ($10 costs)\r\n position.addTransaction(TestUtil.createTransaction(5, 5L, TransactionType.SELL, symbol, 200, 20.00, 10.00));\r\n Assert.assertEquals(0, position.getNoOfShares());\r\n Assert.assertEquals(0.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(3020.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(0.00, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(350.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(+1330.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(+44.04, position.getTotalReturnPercentage(), DELTA);\r\n }", "title": "" }, { "docid": "db4e450cf90e8c207f821405d43c9c26", "score": "0.55123556", "text": "public double getCurrentBet(){\r\n\t\treturn currentBet;\r\n\t}", "title": "" }, { "docid": "8ddd78e4912a82d3811d5dd74d358bf2", "score": "0.55092746", "text": "public void ventaBilleteMaquina2()\n {\n maquina2.insertMoney(600);\n maquina1.printTicket();\n }", "title": "" }, { "docid": "b9b34b05c2a0663331b92b38452a0c16", "score": "0.5493895", "text": "private void listBalances() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1a2248c1a8298af8fe4f3c5625b99ba2", "score": "0.54884905", "text": "int getBet() {\n\t\treturn _bet;\n\t}", "title": "" }, { "docid": "d09e53d783f97d670743e7bfb68d716b", "score": "0.548159", "text": "public Object creditEarningsAndPayTaxes()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 144 */ \tgetPriceFromWorld();\r\n/* 145 */ \tgetDividendFromWorld();\r\n/* */ \r\n/* */ \r\n/* 148 */ \tthis.cash -= (this.price * this.intrate - this.dividend) * this.position;\r\n/* 149 */ \tif (this.cash < this.mincash) {\r\n/* 150 */ \tthis.cash = this.mincash;\r\n/* */ }\t\r\n/* */ \r\n/* 153 */ \tthis.wealth = (this.cash + this.price * this.position);\r\n/* */ \r\n/* 155 */ \treturn this;\r\n/* */ }", "title": "" }, { "docid": "788ff897abff2f1db56f519aa792d91c", "score": "0.5466919", "text": "void makeLimitBuyOrder(AuthInfo authInfo, String pair, String price, String amount,HibtcApiCallback<Object> callback);", "title": "" }, { "docid": "5568dedc49f64f00cb3134035c39fb67", "score": "0.5466197", "text": "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "title": "" }, { "docid": "f2d719ae368cd2fdb79797e398a39311", "score": "0.54638845", "text": "public void addMoneytoPurse(Player player, double winnings) {\n player.addMoneyToPurse(winnings);\n }", "title": "" }, { "docid": "c8eed8450a963d09d2a615a860f98869", "score": "0.5461597", "text": "public void setBet(double money) throws IllegalBetException\n {\n if (bankroll >= money){\n bet = money;\n }else{\n throw new IllegalBetException(\"OoPSss!! There is not enough money to bet!\");\n }\n }", "title": "" }, { "docid": "75b26d65a4cf39cc13788680cf1a138b", "score": "0.5458761", "text": "static int rouletteSpinMartingale(int slots, int zeroes, long money, int bet) {\n\n // Initialize variables\n int min = 1;\n int max = slots;\n // Assigns number of 0s or 00s to the beginning of the wheel\n int zeroSlots = zeroes;\n int win = 0;\n long moneyLeft = money;\n long currentBet = bet;\n // Random number generator for spin within the bounds of number of slots chosen\n int random;\n\n do {\n // If number is odd or hits one of the zero slots, it is a loss and money is adjusted, bet doubled, and function called with new arguments and spins again\n random = ThreadLocalRandom.current().nextInt(min, max + 1);\n if (random % 2 == 1 || random <= zeroSlots) {\n moneyLeft = moneyLeft - currentBet;\n currentBet = currentBet * 2;\n } else {\n win++;\n }\n // Continues do/while loop if user hasn't won and can still double bet\n } while (win < 1 && moneyLeft > currentBet);\n\n // Returns a 1 for win or 0 if the user went broke\n if (win == 1) {\n return 1;\n } else {\n return 0;\n }\n\n }", "title": "" }, { "docid": "abafb3879e21e1173e57bb65021ebe04", "score": "0.5446252", "text": "public void betaal(double tebetalen) throws TeWeinigGeldException{\n if(saldo+kredietlimiet >= tebetalen){\n saldo = saldo - tebetalen;\n }\n else {\n throw new TeWeinigGeldException(\"U heeft onvoldoende saldo \");\n }\n }", "title": "" }, { "docid": "67afb1b99b4b10c5183b2aa22aa6518b", "score": "0.54434675", "text": "private void communityChest(Player currentPlayer){\n Random rand = new Random();\n int randomNum = rand.nextInt((3 - 1) + 1) + 1;\n int nextPlayer;\n if(m_currentTurn >= m_numPlayers){\n nextPlayer = 0;\n } else {\n nextPlayer = m_currentTurn+1;\n }\n\n if(randomNum == 1){\n convertTextToSpeech(\"Your new business takes off, collect 200\");\n if(m_manageFunds) {\n Log.d(\"chance add 200\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(200);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 200\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n }\n }\n if(randomNum == 2){\n convertTextToSpeech(\"Your friend hires your villa for a week, \" +\n \"collect 100 off the next player\");\n if(m_manageFunds) {\n Log.d(\"chance add 100\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(100);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 100\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n\n Log.d(\"chance subtract 100\", players.get(nextPlayer).getName() +\n String.valueOf(players.get(nextPlayer).getMoney()));\n players.get(nextPlayer).subtractMoney(100);\n Log.d(\"chance subtract 100\", players.get(nextPlayer).getName() +\n String.valueOf(players.get(nextPlayer).getMoney()));\n }\n }\n if(randomNum == 3){\n convertTextToSpeech(\"You receive a tax rebate, collect 300\");\n if(m_manageFunds) {\n Log.d(\"chance add 300\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(300);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 300\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n }\n }\n }", "title": "" }, { "docid": "87357e65f487c882e5e296e5d8e99df2", "score": "0.5443275", "text": "void updateCoefficientForBets(ArrayList<Bet> bets) throws DAOException;", "title": "" }, { "docid": "0cadb595317a306d61473d2db8e4a290", "score": "0.5442687", "text": "public void setBet(String bet) {\n\t\tthis.bet = bet;\n\t}", "title": "" }, { "docid": "2686b3f4184afcd48ab558437926b90d", "score": "0.5436768", "text": "@Override\n\tpublic void spendPoints(int points) {\n\n\t}", "title": "" }, { "docid": "bc4334df288b0c8287186fa9d8e556f4", "score": "0.5436187", "text": "private void setWallet(int dollars) {\n\t\twallet += dollars;\n\t}", "title": "" }, { "docid": "64b3109ce77d2412072bc399fa009775", "score": "0.5431442", "text": "public static void betting()\n\t{\n\t\ttfBet.setEnabled(true);\n\t\tbtnPlay.setEnabled(true);\n\t\tbtnHit.setEnabled(false);\n\t\tbtnStay.setEnabled(false);\n\t\tbtnDouble.setEnabled(false);\n\t}", "title": "" }, { "docid": "bf8f54546e8b1c98269ed1f126b774da", "score": "0.54285413", "text": "private void sendBucks() {\n\t\ttry {\n\t\t\tSystem.out.println(\"Please choose a user to send TE Bucks to:\");\n\t\t\tUser toUser;\n\t\t\tboolean isValidUser;\n\t\t\tdo {\n\t\t\t\ttoUser = (User)console.getChoiceFromOptions(userService.getUsers());\n\t\t\t\tisValidUser = ( toUser\n\t\t\t\t\t\t\t\t.getUsername()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(currentUser.getUser().getUsername())\n\t\t\t\t\t\t\t ) ? false : true;\n\n\t\t\t\tif(!isValidUser) {\n\t\t\t\t\tSystem.out.println(\"You can not send money to yourself\");\n\t\t\t\t}\n\t\t\t} while (!isValidUser);\n\t\t\t\n\t\t\t// Select an amount\n\t\t\tBigDecimal amount = new BigDecimal(\"0.00\");\n\t\t\tboolean isValidAmount = false;\n\t\t\tdo {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tamount = new BigDecimal(console.getUserInput(\"Enter An Amount (0 to cancel):\\n \"));\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tSystem.out.println(\"Please enter a numerical value\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tisValidAmount = amount.doubleValue() < userService\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getBalance(currentUserId)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.doubleValue();\n\t\t\t\tif(!isValidAmount) {\n\t\t\t\t\tSystem.out.println(\"You can not send more money than you have available!\");\n\t\t\t\t}\n\t\t\t\tif(amount.doubleValue() < 0.99 && amount.doubleValue() > 0.00) {\n\t\t\t\t\tSystem.out.println(\"You must send at least $0.99 TEB\");\n\t\t\t\t\tisValidAmount = false;\n\t\t\t\t} else if (amount.doubleValue() == 0.00) {\n\t\t\t\t\tmainMenu();\n\t\t\t\t}\n\t\t\t} while(!isValidAmount);\n\n\t\t\t// Create transfer object\n\t\t\tboolean confirmedAmount = false;\n\t\t\tString confirm = \"\";\n\t\t\tTransfer transfer = null;\n\t\t\twhile (!confirmedAmount) {\n\t\t\t\tconfirm = console.getUserInput(\"You entered: \" + amount.toPlainString() + \" TEB. Is this correct? (y/n)\");\n\t\t\t\tif (confirm.toLowerCase().startsWith(\"y\")) {\n\t\t\t\t\t// transferService to POST to server db\n\t\t\t\t\ttransfer = createTransferObj(\"Send\", \"Approved\", currentUserId, toUser.getId(), amount);\n\t\t\t\t\tboolean hasSent = transferService.sendBucks(currentUserId, toUser.getId(), transfer);\n\t\t\t\t\tif (hasSent) {\n\t\t\t\t\t\t// TODO :: Test this\n\t\t\t\t\t\tSystem.out.println(\"The code executed\");\n\t\t\t\t\t}\n\t\t\t\t\tconfirmedAmount = true;\n\t\t\t\t\tcontinue;\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Send canceled.\");\n\t\t\t\t\tconfirmedAmount = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t} \n\t\t\t}\n\t\t}catch(UserServiceException ex) {\n\t\t\tSystem.out.println(\"User Service Exception\");\n\t\t}catch(TransferServiceException ex) {\n\t\t\tSystem.out.println(\"Transfer Service Exception\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "5ca3309d33e2ddda3d15b7f4315960e0", "score": "0.542851", "text": "public void deposit(double value){\r\n balance += value;\r\n}", "title": "" }, { "docid": "82db414c6d49f01aca9283556fcb4581", "score": "0.54260355", "text": "public void draw()\r\n\t{\r\n\t\tfor(int i=1;i<accountValue.length;i++)\r\n\t\t{\r\n\t\t\taccountValue[i]+=playerBet[i];\r\n\t\t}\r\n\t\tendRund();\r\n\t}", "title": "" }, { "docid": "f0b18aa1c8b6848d847cd617a6ead44a", "score": "0.5413512", "text": "public void calculateToll(Vehicles v, ArrayList<Places> p){\n for(Places p1: p){\n if(p1.getToll() && p1.getPId()>= start && p1.getPId() <= end){\n tollbooths.add(p1.getPId());\n FeeForEachTollandTrip tt = new FeeForEachTollandTrip(isVip);\n tolltrips.add(tt);\n total += tt.calculateToll(v, p1.getPId());\n }\n }\n \n //printint the output\n /*\n Toll booths : B Amount : 20 Discount : 4 Total : 16\n */\n System.out.print(\"Tollbooths were: \");\n for(int i =0; i<tollbooths.size();i++){\n System.out.print(\" \" + tollbooths.get(i));\n }\n\n\n System.out.println();\n int amount;\n if(isVip)\n amount = (int) (total/0.8);\n else \n amount = (int)total;\n System.out.println(\"Amount is \" + amount);\n double discount = 0;\n if(isVip)\n discount = 0.2 * amount;\n System.out.println(\"Discount is \" + discount);\n System.out.println(\"Total is: \" +total);\n\n //checking if vehicle has already passed the toll before\n //if yes, nothing to be done.\n //if not, add the vehicle to the toll\n for(Places p1: p){\n if(p1.getToll() && tollbooths.contains(p1.getPId())){\n for(Vehicles v1: p1.getVehicles()){\n if(v1.getVehicleId() == v.getVehicleId()){\n break;\n }\n }\n p1.vehicles.add(v);\n }\n }\n }", "title": "" }, { "docid": "850dad5f76d3575e883fd0e98a4999f4", "score": "0.5407906", "text": "private void calcBills() {\n\t\tint changeDueRemaining = (int) this.changeDue;\n\n\t\tif (changeDueRemaining >= 20) {\n\t\t\tthis.twenty += changeDueRemaining / 20;\n\t\t\tchangeDueRemaining = changeDueRemaining % 20;\n\t\t}\n\t\tif (changeDueRemaining >= 10) {\n\t\t\tthis.ten += changeDueRemaining / 10;\n\t\t\tchangeDueRemaining = changeDueRemaining % 10;\n\t\t}\n\t\tif (changeDueRemaining >= 5) {\n\t\t\tthis.five += changeDueRemaining / 5;\n\t\t\tchangeDueRemaining = changeDueRemaining % 5;\n\t\t}\n\t\tif (changeDueRemaining >= 1) {\n\t\t\tthis.one += changeDueRemaining;\n\t\t}\n\t}", "title": "" }, { "docid": "1669448b05b15118afac93394ddd4ae7", "score": "0.5404491", "text": "void makeMarketSellOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);", "title": "" }, { "docid": "28148022a0a868dd127a5a25c4692d8d", "score": "0.54014736", "text": "public void giveJackpot(Player p){\n p.addCash(amount);\n amount = 0;\n }", "title": "" }, { "docid": "b80381f53b18a0f4c430da01c5b6965f", "score": "0.5397561", "text": "public void addBalance() {\r\n List<String> choices = new ArrayList<>();\r\n choices.add(\"10\");\r\n choices.add(\"20\");\r\n choices.add(\"50\");\r\n ChoiceDialog<String> addBalanceDialog = new ChoiceDialog<>(\"10\", choices);\r\n addBalanceDialog.setTitle(\"Add Balance\");\r\n addBalanceDialog.setContentText(\"Please enter the balance you want to add\");\r\n Optional<String> result = addBalanceDialog.showAndWait();\r\n result.ifPresent(\r\n s -> cardSelected.addMoney(Double.parseDouble(addBalanceDialog.getSelectedItem())));\r\n }", "title": "" }, { "docid": "944651c71b4d32bc67408bde86187f6b", "score": "0.539053", "text": "public void start() {\n // Bid initialized (higher the number, lower the bid rank)\n bid = 100;\n // Check if the players have token, if no token remove player from the game\n // The player remaining wins the pot\n for (int i = 0; i < numberOfPlayers; i++) {\n if (tokens.get(i) == 0) {\n players.remove(i);\n tokens.remove(i);\n cups.remove(i);\n // Add pot to the remaining player's balance\n }\n }\n numberOfPlayers = players.size();\n // Roll all five dice inside the cup for each player\n for (int i = 0; i < numberOfPlayers; i++) {\n cups.get(i).shake();\n }\n // Get the player with the highest poker dice hand\n firstPlayer = players.get(0);\n for (int i = 1; i < numberOfPlayers; i++) {\n PokerDiceHand first = cups.get(players.indexOf(firstPlayer)).getHand();\n PokerDiceHand current = cups.get(i).getHand();\n if (current.getRank() < first.getRank()) {\n firstPlayer = players.get(i);\n }\n }\n // First player's turn\n turn = firstPlayer;\n gameCup = new Cup();\n gameCup.shake();\n }", "title": "" }, { "docid": "e452fcded52465e35d67d6c82d22e450", "score": "0.53866136", "text": "public void surrender() {\n playerCash += playerBet / 2;\n\n //Play dealer's turn\n dealerTurn();\n\n //End the game and change the views\n restartGame();\n }", "title": "" }, { "docid": "b58904668930dab2163f40c6f35606ab", "score": "0.5386564", "text": "public void sell() {\n for (Company x : _market.getCompanies()) {\n if (x.getRisk() > _confidence || x.numLeft() < 3 || x.getRisk() < _confidence - 15){\n if (_stocks.get(x) == 1) {\n _stocks.remove(x);\n } else {\n _stocks.put(x, _stocks.get(x) - 1);\n }\n _money += x.getPrice();\n x.gain();\n break;\n } else {\n _happy = true;\n }\n }\n }", "title": "" }, { "docid": "0ea7e4c88aa734c3a3bb38ed0204d925", "score": "0.5384344", "text": "public void addThreePointsToTeamB(View view)\n {\n scoreTeamB = scoreTeamB + 3;\n displayTeamBScore(scoreTeamB);\n }", "title": "" }, { "docid": "b2c96ba4382b6ef63f991139a38199f9", "score": "0.53775036", "text": "public void PlaceBid(float amount, ClientHandler clientbid){\n if(amount > currentItem.getNewPrice()){\n currentItem.setNewPrice(amount);\n currentItem.setHighestBidder(clientbid);\n seconds = 0;\n displayAmount();\n }\n\n else{\n clientbid.getOutput().println(\"Needs to be greater then \" \n + currentItem.getNewPrice() + \".\\n\");\n }\n }", "title": "" }, { "docid": "11f7f7bea8785047634750f74085aec9", "score": "0.5362664", "text": "@Override\n protected void trade(){\n // An example of a random trade proposal: offer peasants in exchange of soldiers\n // Pick the id of the potential partner (without checking if it is my neighbor)\n double pertnerID = (new Random()).nextInt(42)+1;\n trade[0] = pertnerID;\n // Choose the type of good demanded (peasants - 3)\n double demandType = 3;\n trade[1] = demandType;\n // Choose the amount of demanded goods\n double demand = Math.random();\n trade[2] = demand;\n // Choose the type of good offered in exchange (peasants - 2)\n double offerType = 2;\n trade[3] = offerType;\n // Choode the amount of goods offered in exchange (random but less than my total number of peasants)\n double offer = (new Random()).nextDouble()*myTerritory.getPeasants();\n trade[4] = offer;\n\n // This procedure updated the array trade, which contains the information\n // about trade proposals of the current lord\n }", "title": "" }, { "docid": "724393a86af0d85c37cd308eea45f0ab", "score": "0.53622663", "text": "public void insertCoin(String n){\n balance.setBalance(n);\n vending_balance += balance.getBalance();\n balance.setBalance(n); // adds to balance\n }", "title": "" }, { "docid": "1237ac4e2a1fcc612ec9bbed15de1969", "score": "0.53563404", "text": "public void collectWinnings() {\n\t\tif (hand.checkBlackjack()) {\n\t\t\tdouble win = bet * 1.5;\n\t\t\ttotalMoney += (win + bet);\n\t\t} else {\n\t\t\ttotalMoney += (bet + bet);\n\t\t}\n\t}", "title": "" }, { "docid": "da90078543a6d94a2c423306ef1dca00", "score": "0.5351074", "text": "public int balup(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "title": "" }, { "docid": "8d0ec0000440cb7f78e4a717f065dfa8", "score": "0.5338837", "text": "public void refuelBoat(double amount){\n\t if(amount > 0.0 && amount < 6.0){\n\t if (amount + amountOfFuelInTheTank > capacityOfTheFuelTank)\n\t \tamountOfFuelInTheTank = capacityOfTheFuelTank;\n\t else\n\t \tamountOfFuelInTheTank += amount;\n\t }\n\t }", "title": "" }, { "docid": "d5e4552a14a0b254afa0202dd434d782", "score": "0.533458", "text": "private void payByBalance(final View v) {\n if (!SanyiSDK.getCurrentStaffPermissionById(ConstantsUtil.PERMISSION_CASHIER)) {\n\n\n Toast.makeText(activity, getString(R.string.str_common_no_privilege), Toast.LENGTH_LONG).show();\n\n return;\n }\n final CashierPayment paymentMode = new CashierPayment();\n paymentMode.paymentType = ConstantsUtil.PAYMENT_STORE_VALUE;\n paymentMode.paymentName = getString(R.string.rechargeable_card);\n if (SanyiSDK.rest.config.isMemberUsePassword) {\n MemberPwdPopWindow memberPwdPopWindow = new MemberPwdPopWindow(v, activity, new MemberPwdPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(final String pwd) {\n // TODO Auto-generated method stub\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, pwd);\n }\n });\n numPadPopWindow.show();\n\n\n }\n });\n memberPwdPopWindow.show();\n return;\n }\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, null);\n }\n });\n numPadPopWindow.show();\n }", "title": "" }, { "docid": "c7d9f4daeee6a39b11afcd17b0f7b3f8", "score": "0.53288376", "text": "private void sendBucks() {\n\t\tint userid = userID;\n\n\t\tfor (int i = 0; i < userServices.getAllUsers().length; i++) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"User: \" + userList.get(i).getId() + \"\\t\" + \"username: \" + userList.get(i).getUsername() + \"\\n\");\n\t\t}\n\n\t\tSystem.out.println(\"Select and ID you want to send TE Bucks to: \\n\");\n\n\t\tint sendTo = Integer.parseInt(scan.nextLine());\n\n\t\tSystem.out.println(\"How much money?\");\n\t\tBigDecimal money = (new BigDecimal(scan.nextLine()));\n\n\t\ttry {\n\t\t\tif (accountServices.getBalanceByAccountID(userid).compareTo(money) < 0) {\n\t\t\t\tSystem.out.println(\"You do not have enough funds to make transfer\");\n\t\t\t\tsendBucks();\n\n\t\t\t}\n\t\t} catch (AccountsServicesException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\tTransfers holder = sendTransfer(userid, sendTo, money);\n\t\taccountServices.sendMoney(userid, holder);\n\n\t\ttry {\n\t\t\tSystem.out.println(\"$\" + money + \" sent to \" + sendTo);\n\t\t\tSystem.out.println(\"New balance: $\" + accountServices.getBalanceByAccountID(userid));\n\t\t} catch (AccountsServicesException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "5f4f63d19fde17521007aedcef207027", "score": "0.53208864", "text": "private void addShares(){\n int sharesLeft = 10;\n for (int i = 0; i < 5; i++) {\n int shareAmount = (int)Math.round(Math.random()*sharesLeft);\n sharesLeft -= shareAmount;\n shares.add(i,shareAmount);\n if(i==4 && sharesLeft>0){\n int index = (int)Math.round(Math.random()*4);\n shares.set(index, shares.get(index)+sharesLeft);\n }\n }\n }", "title": "" }, { "docid": "c26e57c1055fd74d8938b17e52830728", "score": "0.53187686", "text": "public void calculateCost() {\n \tdouble costToShipPack;\n \tint numOfPacks = 1;\n \t\n \tfor(Package p: this.packages) {\n \t\tcostToShipPack = 3 + (p.calcVolume() - 1);\n \t\tthis.totalAmounts.put(\"Package \"+numOfPacks, costToShipPack);\n \t\tnumOfPacks++;\n \t}\n \t\n }", "title": "" }, { "docid": "9079480580586ab5e1000feae002e57a", "score": "0.53168637", "text": "public void define(){\n\n noOfCredits = Game.level.getCredits();\n unitsToWin = Game.level.getUnitsToWin();\n\n for (int i = 0; i <buttons.length ; i++) {\n buttons[i] = new ShopButton((Game.width/2) -\n ((noOfButtons*buttonsize)/2) -((smallSpace*\n (buttons.length-1)) /2) + ((buttonsize + smallSpace)*i),\n ((GameContainer.rowCount * GameContainer.squareSize )\n + largeSpace), buttonsize , buttonsize, i);\n }\n\n for (int i = 0; i < statsElements.length ; i++) {\n //define where the statselement should be placed.\n statsElements[i] = new ShopButton(((Game.width/2)\n - (GameContainer.columnCount*\n GameContainer.squareSize )/2 + (((GameContainer.columnCount\n *GameContainer.squareSize)/7)*3)*i ),\n (GameContainer.rowCount * GameContainer.squareSize\n ), buttonsize , buttonsize, i);\n }\n }", "title": "" } ]
7c4bb86bb1412fa062a91e764a04b1aa
Parses the commandline arguments
[ { "docid": "880d084b45a1c37999f43c6cd93cd8b2", "score": "0.6199044", "text": "private static void processArguments(String[] args) throws UnknownHostException {\n //\n // PROD indicates we should use the production network\n // TEST indicates we should use the test network\n //\n if (args[0].equalsIgnoreCase(\"TEST\")) {\n testNetwork = true;\n } else if (!args[0].equalsIgnoreCase(\"PROD\")) {\n throw new IllegalArgumentException(\"Valid options are PROD and TEST\");\n }\n //\n // A bitcoin URI will be specified if we are processing a payment request\n //\n if (args.length > 1) {\n if (args[1].startsWith(\"bitcoin:\"))\n uriString = args[1];\n else\n throw new IllegalArgumentException(\"Unrecognized command line parameter\");\n }\n }", "title": "" } ]
[ { "docid": "7f0bf94b91dca0d6933e42b4395ce2cd", "score": "0.73342115", "text": "public CommandArguments parse(String[] args) {\n ErrorSupport command = new ErrorSupport();\n command.checkLength(args);\n\n //parsing arguments\n CommandArguments arguments = new CommandArguments();\n for (int i = 0; i < args.length; i++) {\n if ((i == args.length - 1) && !args[i].equals(\"--help\")) {\n throw new IllegalArgumentException(\"Incorrect argument, --help for more information about app syntax\");\n }\n switch (args[i]) {\n case (\"--help\"):\n System.out.println(\"\\nHELP MENU \\nAvailable options and arguments: \\n \\t--latitude x \\t-enter latitude coordinate \\n \\t--longitude x\\t-enter longitude coordinate \\n \\t--sensorid x \\t-enter sensor's Id \\n \\t--apikey x \\t\\t-enter API key \\n \\t--history x \\t-enter number of hours to display from history data\\n\");\n System.exit(0);\n case (\"--latitude\"):\n i++;\n arguments.setLatitude(command.checkIsDouble(args[i]));\n break;\n case (\"--longitude\"):\n i++;\n arguments.setLongitude(command.checkIsDouble(args[i]));\n break;\n case (\"--sensorid\"):\n i++;\n arguments.setSensorId(command.checkIsInt(args[i]));\n break;\n case (\"--apikey\"):\n i++;\n arguments.setApiKey(command.checkApiKey(args[i]));\n break;\n case (\"--history\"):\n i++;\n arguments.setHistory(command.checkIsInt(args[i]));\n break;\n default:\n throw new IllegalArgumentException(\"Incorrect option, --help for more information about app syntax\");\n }\n }\n\n //checking environment API_KEY if there was no apikey in command line entered\n if (!arguments.hasApiKey() && System.getenv(\"API_KEY\") == null) {\n throw new IllegalArgumentException(\"No API Key found, check if you have entered the correct key or if there is a suitable environment variable ( API_KEY ), --help for more information about app syntax\");\n } else if (!arguments.hasApiKey()) {\n arguments.setApiKey(command.checkApiKey(System.getenv(\"API_KEY\")));\n }\n return arguments;\n }", "title": "" }, { "docid": "8b28aad74a94b523990a1d02b14c12d6", "score": "0.7331234", "text": "protected abstract void parseArgs() throws IOException;", "title": "" }, { "docid": "6a5bf66012b96e2c347f1e8879bb7d1e", "score": "0.7325522", "text": "public static void parseArgs(String[] args) {\n int argc = args.length,\n i = 0;\n\n for (; i < argc; i++) {\n if (args[i].equals(\"-d\")) {\n debug = true;\n } \n else if(args[i].equals(\"-m\")) {\n try {\n maxRandInt = Integer.parseInt(args[++i]);\n } catch(NumberFormatException e) {\n System.out.println(\n \"Maximum random value must be a valid integer!\"\n );\n usage();\n }\n } else if(args[i].equals(\"-n\")) {\n try {\n iterations = Integer.parseInt(args[++i]);\n } catch(NumberFormatException e) {\n System.out.println(\n \"Iteration value must be a valid integer!\"\n );\n usage();\n }\n } else {\n filename = args[i];\n }\n }\n\n if (filename.equals(\"\")) {\n System.out.println(\"Must supply a filename!\\n\");\n usage();\n }\n \n }", "title": "" }, { "docid": "98d84aa089b66e9c7bc480bfcd1c4290", "score": "0.7231653", "text": "void parse(String[] args);", "title": "" }, { "docid": "f76f441732ce723f6634608858a55798", "score": "0.72227126", "text": "private static void parseCommandLine(String[] args) {\r\n\t\tif (args.length != 3)\r\n\t\t\terror(\"usage: Tester server port url-file\");\r\n\t\t\t\r\n\t\tserverName = args[0];\r\n\t\tserverPort = Integer.parseInt(args[1]);\r\n\t\turlFileName = args[2];\r\n\t}", "title": "" }, { "docid": "c0284f434229aba175918ab01ab24ac2", "score": "0.7168968", "text": "protected void parseCommandLineArgs(String[] args) {\r\n // parse username/password;\r\n for(int i = 0; i < args.length; i++) {\r\n if(args[i].equals(\"-u\")) {\r\n username = args[i+1];\r\n }\r\n if(args[i].equals(\"-p\")) {\r\n password = args[i+1];\r\n }\r\n }\r\n \r\n }", "title": "" }, { "docid": "e3c9efb57eaff8cf5db362f139027f79", "score": "0.71290547", "text": "private void parseArgs(String[] args) throws ParseException\n {\n CommandLineParser parser = new PosixParser();\n cmd = parser.parse(options, args);\n }", "title": "" }, { "docid": "fd05461807e674ebbc393964900acb80", "score": "0.71097237", "text": "private static void parseArgs (String[] args) {\n\t\tint n = args.length;\n\t\tif (n != 4) {\n\t\t\tSystem.out.println(\"Usage: BuildTranslations in dbname username password\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tinPath = args[0];\n\t\tdbname = args[1];\n\t\tusername = args[2];\n\t\tpassword = args[3];\n\t}", "title": "" }, { "docid": "a595986075417a90d0953a1e9c15c474", "score": "0.7072772", "text": "public void parseArgs(final String[] args) {\n \t\tfinal CmdLineParser parser = new CmdLineParser(this);\n \n \t\ttry {\n \t\t\tparser.parseArgument(args);\n \n \t\t\tif (imageFile == null) {\n \t\t\t\tthrow new CmdLineException(parser, \"No image file given\");\n \t\t\t}\n \t\t\tif (githubUser == null) {\n \t\t\t\tthrow new CmdLineException(parser, \"No GitHub user given\");\n \t\t\t}\n \t\t}\n \t\tcatch (final CmdLineException e) {\n \t\t\tSystem.err.println(e.getMessage());\n \t\t\tSystem.err.println();\n \n \t\t\t// print usage instructions\n \t\t\tSystem.err.println(\"java -jar \" + JAR_NAME +\n \t\t\t\t\" [options...] arguments...\");\n \n \t\t\t// print the list of available options\n \t\t\tparser.printUsage(System.err);\n \t\t\tSystem.err.println();\n \n \t\t\tSystem.exit(1);\n \t\t}\n \t}", "title": "" }, { "docid": "5ccef3636d92be2b96213ba8c9a33d3d", "score": "0.705367", "text": "protected void parseArgs(String[] args) {\n // Arguments are pretty simple, so we go with a basic switch instead of having\n // yet another dependency (e.g. commons-cli).\n for (int i = 0; i < args.length; i++) {\n int nextIdx = (i + 1);\n String arg = args[i];\n switch (arg) {\n case \"--prop-file\":\n if (++i < args.length) {\n loadPropertyFile(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--schema-name\":\n if (++i < args.length) {\n DataDefinitionUtil.assertValidName(args[i]);\n\n // Force upper-case to avoid tricky-to-catch errors related to quoting names\n this.schemaName = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--grant-to\":\n if (++i < args.length) {\n DataDefinitionUtil.assertValidName(args[i]);\n\n // Force upper-case because user names are case-insensitive\n this.grantTo = args[i].toUpperCase();\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--target\":\n if (++i < args.length) {\n DataDefinitionUtil.assertValidName(args[i]);\n List<String> targets = Arrays.asList(args[i].split(\",\"));\n for (String target : targets) {\n String tmp = target.toUpperCase();\n nextIdx++;\n if (tmp.startsWith(\"BATCH\")) {\n this.grantJavaBatchSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.javaBatchSchemaName = args[nextIdx];\n i++;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n } else if (tmp.startsWith(\"OAUTH\")){\n this.grantOauthSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.oauthSchemaName = args[nextIdx];\n i++;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n } else if (tmp.startsWith(\"DATA\")){\n this.grantFhirSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.schemaName = args[nextIdx];\n i++;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n }\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--add-tenant-key\":\n if (++i < args.length) {\n this.addKeyForTenant = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--update-proc\":\n this.updateProc = true;\n break;\n case \"--check-compatibility\":\n this.checkCompatibility = true;\n break;\n case \"--drop-admin\":\n this.dropAdmin = true;\n break;\n case \"--test-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.testTenant = true;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--tenant-key\":\n if (++i < args.length) {\n this.tenantKey = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--tenant-key-file\":\n if (++i < args.length) {\n tenantKeyFileName = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--list-tenants\":\n this.listTenants = true;\n break;\n case \"--update-schema\":\n this.updateFhirSchema = true;\n this.updateOauthSchema = true;\n this.updateJavaBatchSchema = true;\n this.dropSchema = false;\n break;\n case \"--update-schema-fhir\":\n this.updateFhirSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.schemaName = args[nextIdx];\n i++;\n } else {\n this.schemaName = DATA_SCHEMANAME;\n }\n break;\n case \"--update-schema-batch\":\n this.updateJavaBatchSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.javaBatchSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--update-schema-oauth\":\n this.updateOauthSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.oauthSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--create-schemas\":\n this.createFhirSchema = true;\n this.createOauthSchema = true;\n this.createJavaBatchSchema = true;\n break;\n case \"--create-schema-fhir\":\n this.createFhirSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.schemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--create-schema-batch\":\n this.createJavaBatchSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.javaBatchSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--create-schema-oauth\":\n this.createOauthSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.oauthSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--drop-schema\":\n this.updateFhirSchema = false;\n this.dropSchema = true;\n break;\n case \"--drop-schema-fhir\":\n this.dropFhirSchema = Boolean.TRUE;\n break;\n case \"--drop-schema-batch\":\n this.dropJavaBatchSchema = Boolean.TRUE;\n break;\n case \"--drop-schema-oauth\":\n this.dropOauthSchema = Boolean.TRUE;\n break;\n case \"--pool-size\":\n if (++i < args.length) {\n this.maxConnectionPoolSize = Integer.parseInt(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--prop\":\n if (++i < args.length) {\n // properties are given as name=value\n addProperty(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--confirm-drop\":\n this.confirmDrop = true;\n break;\n case \"--allocate-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.allocateTenant = true;\n this.dropTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--drop-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.dropTenant = true;\n this.allocateTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--freeze-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.freezeTenant = true;\n this.dropTenant = false;\n this.allocateTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--drop-detached\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.dropDetached = true;\n this.dropTenant = false;\n this.allocateTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--delete-tenant-meta\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.deleteTenantMeta = true;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--dry-run\":\n this.dryRun = Boolean.TRUE;\n break;\n case \"--db-type\":\n if (++i < args.length) {\n this.dbType = DbType.from(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n switch (dbType) {\n case DERBY:\n translator = new DerbyTranslator();\n // For some reason, embedded derby deadlocks if we use multiple threads\n maxConnectionPoolSize = 1;\n break;\n case POSTGRESQL:\n translator = new PostgreSqlTranslator();\n break;\n case DB2:\n default:\n break;\n }\n break;\n default:\n throw new IllegalArgumentException(\"Invalid argument: \" + arg);\n }\n }\n }", "title": "" }, { "docid": "4c331fbfbc22b67d63c680ff9325af5e", "score": "0.7001471", "text": "public void parseCommandLine(String[] args) {\r\n\t\t// define command line options\r\n\t\tOptions options = new Options();\r\n\t\t// refresh:\r\n\t\toptions.addOption(new Option(\r\n\t\t \"refresh\", \r\n\t\t \"Tell Argus to start refreshing all files after Minstrel startup.\"));\r\n\t\t// port:\r\n\t\tOptionBuilder.withArgName(\"port\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription( \"Run NanoHTTPD on this port instead of default 8000.\" );\r\n\t\toptions.addOption(OptionBuilder.create(\"port\"));\r\n\t\t// argus:\r\n\t\tOptionBuilder.withArgName(\"url\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription( \"Use Argus at <url> instead of default localhost:8008.\" );\r\n\t\toptions.addOption(OptionBuilder.create(\"argus\"));\r\n\t\t// vlc:\r\n\t\tOptionBuilder.withArgName(\"url\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription(\"Use VLC at <url> instead of default localhost:8080.\");\r\n\t\toptions.addOption(OptionBuilder.create(\"vlc\"));\r\n\t\t// wwwroot:\r\n\t\tOptionBuilder.withArgName(\"path\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription(\"Have NanoHTTPD serve files from <path> instead of default ./wwwroot.\");\r\n\t\toptions.addOption(OptionBuilder.create(\"wwwroot\"));\r\n\t\t\r\n\t\t// parse command line options and adjust accordingly\r\n\t\tCommandLineParser parser = new GnuParser();\r\n\t\ttry {\r\n\t\t\tCommandLine line = parser.parse(options, args);\r\n\r\n\t\t\tif (line.hasOption(\"refresh\")) {\r\n\t\t\t\trefresh = new Date();\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"port\")) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tport = Integer.parseInt( line.getOptionValue(\"port\"));\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\tSystem.err.println(\"Badly formatted port number, defaulting to 8000. Reason: \" + e.getMessage());\r\n\t\t\t\t\tport = 8000;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"argus\")) {\r\n\t\t\t\targusURL = line.getOptionValue(\"argus\");\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"vlc\")) {\r\n\t\t\t\tvlcURL = line.getOptionValue(\"vlc\");\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"wwwroot\")) {\r\n\t\t\t\twwwroot = line.getOptionValue(\"wwwroot\");\r\n\t\t\t}\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.err.println(\"Command line parsing failed. Reason: \" + e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7c79c029b29a2de788ac35a7a1816c57", "score": "0.69907427", "text": "private static void parseCommandLine(String[] args) throws Exception {\n int i;\n // iterate over all options (arguments starting with '-')\n for (i = 0; i < args.length && args[i].charAt(0) == '-'; i++) {\n switch (args[i].charAt(1)) {\n // -a type = write out annotations of type a.\n case 'a':\n if (annotTypesToWrite == null)\n annotTypesToWrite = new ArrayList();\n annotTypesToWrite.add(args[++i]);\n break;\n\n // -g gappFile = path to the saved application\n case 'g':\n gappFile = new File(args[++i]);\n break;\n\n // -e encoding = character encoding for documents\n case 'e':\n encoding = args[++i];\n break;\n\n default:\n System.err.println(\"Unrecognised option \" + args[i]);\n usage();\n }\n }\n\n // set index of the first non-option argument, which we take as the first\n // file to process\n firstFile = i;\n\n // sanity check other arguments\n if (gappFile == null) {\n System.err.println(\"No .gapp file specified\");\n usage();\n }\n }", "title": "" }, { "docid": "26bb5dcd112d42e0923976d57df4f521", "score": "0.69473666", "text": "void parse(String[] args) throws Exception;", "title": "" }, { "docid": "c194c0847737e8fcb376848d9cb25060", "score": "0.6935316", "text": "public CommandLine parse(String[] args ) throws ParseException\n {\n String[] cleanArgs = CleanArgument.cleanArgs( args );\n CommandLineParser parser = new DefaultParser();\n return parser.parse( options, cleanArgs );\n }", "title": "" }, { "docid": "46b09a81018439b86431e5b6dbefda46", "score": "0.68347293", "text": "private static void parseArguments(String[] args, MiParaPipeLine p) throws IOException{\n options.addOption(\"i\", \"input-file\", true, \"FASTA input file for query sequences\");\n options.addOption(\"o\", \"output-folder\", true, \"output folder for prediction results\");\n options.addOption(\"t\", \"test\", true, \"run test example \");\n options.addOption(\"c\", \"config\", true, \"configuration file for miRPara\");\n options.addOption(\"a\", \"action\", true, \"action to perform\");\n options.addOption(\"h\", \"help \", false, \"print help\");\n\n logger.trace(\"parsing args\");\n CommandLineParser parser = new BasicParser();\n CommandLine cmd = null;\n\n \n try {\n cmd = parser.parse(options, args);\n if (cmd.hasOption(\"h\")){\n print_help();\n System.out.print(p.reportAvailableActions());\n }\n\n if (cmd.hasOption(\"t\")){ \n logger.info(\"test set to \" + cmd.getOptionValue(\"l\"));\n test = cmd.getOptionValue(\"t\").toLowerCase();\n }\n \n if (cmd.hasOption(\"i\")) {\n logger.info(\"input file set to \" + cmd.getOptionValue(\"i\"));\n p.setInputFilename(cmd.getOptionValue(\"i\"));\t\n } \n\n if (cmd.hasOption(\"o\")){\n logger.info(\"output folder is\" + cmd.getOptionValue(\"o\"));\n p.setOutputFolder(cmd.getOptionValue(\"o\"));\n }\n \n if (cmd.hasOption(\"a\")){\n logger.info(\"requested action is \" + cmd.getOptionValue(\"a\"));\n p.setAction(cmd.getOptionValue(\"a\"));\n }\n \n if (cmd.hasOption(\"c\")){\n configFile = cmd.getOptionValue(\"c\");\n logger.info(\"Configuration file is \" + configFile);\n p.setConfigFilename(configFile);\n }\n\n\n \n if(p.getConfigFilename()==null){\n throw new ParseException(\"no configuration file was specified\") ; \n }\n \n if(new File(p.getConfigFilename()).exists() == false){\n throw new IOException(\"configuration file <\" + p.getConfigFilename() + \"> does not exist\");\n } \n \n if(new File(p.getInputFilename()).exists()== false)\n {\n throw new IOException(\"input file <\" + p.getInputFilename() + \"> does not exist\");\n }\n \n if(new File(p.getOutputFolder()).exists() == false)\n {\n if (new File(p.getOutputFolder()).getParentFile().exists() == false)\n throw new IOException(\"parent file <\" + new File(p.getOutputFolder()).getParentFile() + \"> does not exist\");\n \n new File(p.getOutputFolder()).mkdir();\n logger.info(\"create results folder <\" + p.getOutputFolder() + \">\");\n }\n\n } catch (ParseException e) {\n\n logger.fatal(\"Failed to parse command line properties\", e);\n print_help();\n\n }\n\n \n }", "title": "" }, { "docid": "f3e06a6626ce11d6295ae006f268fa96", "score": "0.677944", "text": "HashMap<String, String> cliParser(String[] args){\n CmdLineParser parser = new CmdLineParser(this);\n try {\n // parse the arguments.\n parser.parseArgument(args);\n\n if (this.printHelp) {\n System.err.println(\"Usage:\");\n parser.printUsage(System.err);\n System.err.println();\n System.exit(0);\n }\n } catch( CmdLineException e ) {\n System.err.println(e.getMessage());\n System.err.println(\"java BGPCommunitiesParser.jar [options...] arguments...\");\n // print the list of available options\n parser.printUsage(System.err);\n System.err.println();\n\n // print option sample. This is useful some time\n System.err.println(\" Example: java BGPCommunitiesParser.jar\"+parser.printExample(ALL));\n System.exit(0);\n }\n\n HashMap<String, String> cliArgs = new HashMap<>();\n String[] period;\n long startTs = 0;\n long endTs = 0;\n // parse the period argument\n try{\n period = this.period.split(\",\");\n startTs = this.dateToEpoch(period[0]);\n endTs = this.dateToEpoch(period[1]);\n if (startTs >= endTs){\n System.err.println(\"The period argument is invalid. \" +\n \"The start datetime should be before the end datetime.\");\n System.exit(-1);\n }\n }\n catch (java.lang.ArrayIndexOutOfBoundsException e) {\n System.err.println(\"The period argument is invalid. \" +\n \"Please provide two comma-separated datetimes in the format YYYMMMDD.hhmm \" +\n \"(e.g. 20180124.0127,20180125.1010).\");\n System.exit(-1);\n }\n\n cliArgs.put(\"communities\", this.communities);\n cliArgs.put(\"start\", Long.toString(startTs));\n cliArgs.put(\"end\", Long.toString(endTs));\n cliArgs.put(\"collectors\", this.collectors);\n cliArgs.put(\"outdir\", this.outdir);\n cliArgs.put(\"facilities\", this.facilities);\n cliArgs.put(\"overlap\", Long.toString(this.overlap));\n return cliArgs;\n }", "title": "" }, { "docid": "bff957b828c2d5c9a9adabd6ed106cf0", "score": "0.67594874", "text": "protected void parseArgs(String[] args) throws BuildException {\n for (int i = 0; i != args.length; ++i) {\n String arg = args[i];\n boolean parsed = parseArg(arg, args, i);\n if (!parsed) {\n String message = \"Unknown option: \" + arg;\n usage(message, System.out);\n throw new BuildException(message);\n }\n }\n }", "title": "" }, { "docid": "f127039cc075e9662f8d6861cf26f374", "score": "0.6725055", "text": "private static Params parseCLI(String[] args) {\n Params params = new Params();\n\n if(args.length>1) {\n int paramIndex = 0;\n for(int i=0; i<args.length; i++) {\n String arg = args[i];\n OutputType type = OutputType.getOutputType(arg);\n if(type!=null) {\n params.outputType = type;\n paramIndex = i;\n break;\n } else if(\"-help\".equals(arg)) {\n usage();\n System.exit(0);\n }\n }\n\n params.inputFile = args[paramIndex+1];\n if(args.length>paramIndex+2) {\n params.outputFile = args[paramIndex+2];\n }\n\n } else if(args.length == 1 && \"-help\".equals(args[0])) {\n usage();\n System.exit(0);\n\n } else {\n \n System.err.println(\"Error, incorrect usage\");\n usage();\n System.exit(-1);\n\n }\n\n return params;\n }", "title": "" }, { "docid": "c40499b83fa18e0177a721ca520a3703", "score": "0.6694984", "text": "public static void main( String args[] ) {\n\n parseInput(args);\n }", "title": "" }, { "docid": "630c4d590e102685405be77ad3f76068", "score": "0.6694654", "text": "private static CommandLine parseCommandLine(String[] args) {\n Option config = new Option(CONFIG, true, \"operator config\");\n Option brokerStatsZookeeper =\n new Option(BROKERSTATS_ZOOKEEPER, true, \"zookeeper for brokerstats topic\");\n Option brokerStatsTopic = new Option(BROKERSTATS_TOPIC, true, \"topic for brokerstats\");\n Option clusterZookeeper = new Option(CLUSTER_ZOOKEEPER, true, \"cluster zookeeper\");\n Option seconds = new Option(SECONDS, true, \"examined time window in seconds\");\n options.addOption(config).addOption(brokerStatsZookeeper).addOption(brokerStatsTopic)\n .addOption(clusterZookeeper).addOption(seconds);\n\n if (args.length < 6) {\n printUsageAndExit();\n }\n\n CommandLineParser parser = new DefaultParser();\n CommandLine cmd = null;\n try {\n cmd = parser.parse(options, args);\n } catch (ParseException | NumberFormatException e) {\n printUsageAndExit();\n }\n return cmd;\n }", "title": "" }, { "docid": "655f60ef3531a3b67e1582164be986e0", "score": "0.66778135", "text": "protected P parse(String options, String[] args){\n HashMap cmdFlags = new HashMap();\n String flag;\n String nextFlag=null;\n StringBuffer errors=new StringBuffer();\n /**\n First go through options to see what should be in args\n */\n for(int which=0;which<options.length();which++){\n flag = \"-\"+options.substring(which,which+1);\n if(which+1<options.length()){\n nextFlag=options.substring(which+1,which+2);\n if (nextFlag.equals(\"-\")){\n cmdFlags.put(flag,nextFlag);\n } else\n if (nextFlag.equals(\"+\")){\n cmdFlags.put(flag,nextFlag);\n /*\n mark that it is required\n if found this will be overwritten by -\n */\n this.put(flag,nextFlag);\n } else\n //JDH changed to \"_\" from \";\" because too many cmdlines mess up ;\n if (nextFlag.equals(\"_\")){\n cmdFlags.put(flag,nextFlag);\n } else\n //JDH changed to \".\" from \":\" because too many cmdlines mess up ;\n if (nextFlag.equals(\".\")){\n cmdFlags.put(flag,\" \"); //JDH changed this from \":\"\n /*\n mark that it is required\n if found this will be overwritten by value\n JDH should use \" \" so it cannot be the same as a value\n */\n this.put(flag,\" \"); // mark that it is required\n } else {\n System.out.println(\"Bad symbol \"+nextFlag+\"in option string\");\n }\n which++;\n } else {\n System.out.println(\"Missing symbol in option string at \"+which);\n }\n }\n\n int arg=0;\n for(;arg<args.length;arg++){\n if (!args[arg].startsWith(\"-\")){\n break;\n }\n flag = args[arg];\n /*\n This should tell it to quit looking for flags or options\n */\n if (flag.equals(\"--\")){\n arg++;\n break;\n }\n if (!(cmdFlags.containsKey(flag))){\n errors.append(\"\\nbad flag \"+flag);\n continue;\n }\n if (((String)cmdFlags.get(flag)).equals(\"-\")){\n this.put(flag,\"-\");\n continue;\n }\n if (((String)cmdFlags.get(flag)).equals(\"+\")){\n this.put(flag,\"-\");// turns off the + because it was found\n continue;\n }\n if (!(arg+1<args.length)){\n errors.append(\"\\nMissing value for \"+flag);\n continue;\n }\n arg++;\n this.put(flag,args[arg]);\n }\n String[] params=null;\n params = new String[args.length - arg];\n\n int n=0;\n // reverse these so they come back in the right order!\n for(;arg<args.length;arg++){\n params[n++] = args[arg];\n }\n Iterator k = null;\n Map.Entry e = null;\n if (this.containsValue(\"+\")){\n // can iterate through to see which ones\n k = this.entrySet().iterator();\n while (k.hasNext()){\n if (\"+\".equals((String)(e=(Map.Entry)k.next()).getValue())){\n errors.append(\"\\nThe required flag \"+(String)e.getKey()+\" was not supplied.\");\n };\n }\n } \n /*\n Should change this to \" \" in accordance with remark above\n */\n //JDH changed to \" \" from \":\" in both spots below\n if (this.containsValue(\" \")){\n // can iterate through to see which ones\n k = this.entrySet().iterator();\n while (k.hasNext()){\n if (\" \".equals((String)(e=(Map.Entry)k.next()).getValue())){\n errors.append(\"\\nThe required option \"+(String)e.getKey()+\" was not supplied.\");\n }\n }\n }\n this.put(\" \",params);\n this.put(\"*\",errors.toString());\n return this;\n }", "title": "" }, { "docid": "dfea5633c1aeebc5ff0e2b747238eff0", "score": "0.66760474", "text": "private static void parseCommandLine(String[] args) throws WorkbenchException {\n commandLine = new CommandLine('-');\r\n commandLine.addOptionSpec(new OptionSpec(PROPERTIES_OPTION, 1));\r\n commandLine.addOptionSpec(new OptionSpec(DEFAULT_PLUGINS, 1));\r\n commandLine.addOptionSpec(new OptionSpec(PLUG_IN_DIRECTORY_OPTION, 1));\r\n commandLine.addOptionSpec(new OptionSpec(I18N_FILE, 1));\r\n //[UT] 17.08.2005 \r\n commandLine.addOptionSpec(new OptionSpec(INITIAL_PROJECT_FILE, 1));\r\n commandLine.addOptionSpec(new OptionSpec(STATE_OPTION, 1));\r\n try {\r\n commandLine.parse(args);\r\n } catch (ParseException e) {\r\n throw new WorkbenchException(\"A problem occurred parsing the command line: \" + e.toString());\r\n }\r\n }", "title": "" }, { "docid": "4b829db7df52c2d50f0af05819658eb2", "score": "0.6655035", "text": "public void processArgs(String[] args){\n\t\t//look for a config file \n\t\targs = appendConfigArgs(args,\"-c\");\n\t\t\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tFile forExtraction = null;\n\t\tFile configFile = null;\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'f': forExtraction = new File(args[++i]); break;\n\t\t\t\t\tcase 'v': vcfFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'b': bedFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'x': appendFilter = false; break;\n\t\t\t\t\tcase 'c': configFile = new File(args[++i]); break;\n\t\t\t\t\tcase 'd': dataDir = new File(args[++i]); break;\n\t\t\t\t\tcase 'm': maxCallFreq = Double.parseDouble(args[++i]); break;\n\t\t\t\t\tcase 'o': minBedCount = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'e': debug = true; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//config file? or local\n\t\tif (configLines != null && configFile != null){\n\t\t\tif (configLines[0].startsWith(\"-\") == false ) {\n\t\t\t\tHashMap<String, String> config = IO.loadFileIntoHashMapLowerCaseKey(configFile);\n\t\t\t\tif (config.containsKey(\"queryurl\")) queryURL = config.get(\"queryurl\");\n\t\t\t\tif (config.containsKey(\"host\")) host = config.get(\"host\");\n\t\t\t\tif (config.containsKey(\"realm\")) realm = config.get(\"realm\");\n\t\t\t\tif (config.containsKey(\"username\")) userName = config.get(\"username\");\n\t\t\t\tif (config.containsKey(\"password\")) password = config.get(\"password\");\n\t\t\t\tif (config.containsKey(\"maxcallfreq\")) maxCallFreq = Double.parseDouble(config.get(\"maxcallfreq\"));\n\t\t\t\tif (config.containsKey(\"vcffilefilter\")) vcfFileFilter = config.get(\"vcffilefilter\");\n\t\t\t\tif (config.containsKey(\"bedfilefilter\")) bedFileFilter = config.get(\"bedfilefilter\");\n\t\t\t}\n\t\t}\n\t\t//local search?\n\t\tif (queryURL == null){\n\t\t\tif (dataDir == null || dataDir.isDirectory()== false) {\n\t\t\t\tMisc.printErrAndExit(\"\\nProvide either a configuration file for remotely accessing a genomic query service or \"\n\t\t\t\t\t\t+ \"set the -d option to the Data directory created by the GQueryIndexer app.\\n\");;\n\t\t\t}\n\t\t}\n\n\t\tIO.pl(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments:\");\n\t\tIO.pl(\"\\t-f Vcfs \"+forExtraction);\n\t\tIO.pl(\"\\t-s SaveDir \"+saveDirectory);\n\t\tIO.pl(\"\\t-v Vcf File Filter \"+vcfFileFilter);\n\t\tIO.pl(\"\\t-b Bed File Filter \"+bedFileFilter);\n\t\tIO.pl(\"\\t-m MaxCallFreq \"+maxCallFreq);\n\t\tIO.pl(\"\\t-o MinBedCount \"+minBedCount);\n\t\tIO.pl(\"\\t-x Remove failing \"+(appendFilter==false));\n\t\tIO.pl(\"\\t-e Verbose \"+debug);\n\t\tif (queryURL != null){\n\t\t\tIO.pl(\"\\tQueryUrl \"+queryURL);\n\t\t\tIO.pl(\"\\tHost \"+host);\n\t\t\tIO.pl(\"\\tRealm \"+realm);\n\t\t\tIO.pl(\"\\tUserName \"+userName);\n\t\t\t//check config params\n\t\t\tif (queryURL == null) Misc.printErrAndExit(\"\\nError: failed to find a queryUrl in the config file, e.g. queryUrl http://hci-clingen1.hci.utah.edu:8080/GQuery/\");\n\t\t\tif (queryURL.endsWith(\"/\") == false) queryURL = queryURL+\"/\";\n\t\t\tif (host == null) Misc.printErrAndExit(\"\\nError: failed to find a host in the config file, e.g. host hci-clingen1.hci.utah.edu\");\n\t\t\tif (realm == null) Misc.printErrAndExit(\"\\nError: failed to find a realm in the config file, e.g. realm QueryAPI\");\n\t\t\tif (userName == null) Misc.printErrAndExit(\"\\nError: failed to find a userName in the config file, e.g. userName FCollins\");\n\t\t\tif (password == null) Misc.printErrAndExit(\"\\nError: failed to find a password in the config file, e.g. password g0QueryAP1\");\n\n\t\t}\n\t\telse IO.pl(\"\\t-d DataDir \"+dataDir);\n\t\tIO.pl();\n\n\t\t//pull vcf files\n\t\tif (forExtraction == null || forExtraction.exists() == false) Misc.printErrAndExit(\"\\nError: please enter a path to a vcf file or directory containing such.\\n\");\n\t\tFile[][] tot = new File[3][];\n\t\ttot[0] = IO.extractFiles(forExtraction, \".vcf\");\n\t\ttot[1] = IO.extractFiles(forExtraction,\".vcf.gz\");\n\t\ttot[2] = IO.extractFiles(forExtraction,\".vcf.zip\");\n\t\tvcfFiles = IO.collapseFileArray(tot);\n\t\tif (vcfFiles == null || vcfFiles.length ==0 || vcfFiles[0].canRead() == false) Misc.printExit(\"\\nError: cannot find your xxx.vcf(.zip/.gz OK) file(s)!\\n\");\n\n\t\t//check params\n\t\tif (vcfFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a vcf file filter, e.g. Hg38/Somatic/Avatar/Vcf \");\n\t\tif (bedFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a bed file filter, e.g. Hg38/Somatic/Avatar/Bed \");\n\t\tif (saveDirectory == null) Misc.printErrAndExit(\"\\nError: provide a directory to save the annotated vcf files.\");\n\t\telse saveDirectory.mkdirs();\n\t\tif (saveDirectory.exists() == false) Misc.printErrAndExit(\"\\nError: could not find your save directory? \"+saveDirectory);\n\n\t\tuserQueryVcf = new UserQuery().addRegExFileName(\".vcf.gz\").addRegExDirPath(vcfFileFilter).matchVcf();\n\t\tuserQueryBed = new UserQuery().addRegExFileName(\".bed.gz\").addRegExDirPath(bedFileFilter);\n\t}", "title": "" }, { "docid": "80ae99afd280736acdbe01be80a863a6", "score": "0.6618567", "text": "public void processArgs(String[] args){\r\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\r\n\t\tfor (int i = 0; i<args.length; i++){\r\n\t\t\tString lcArg = args[i].toLowerCase();\r\n\t\t\tMatcher mat = pat.matcher(lcArg);\r\n\t\t\tif (mat.matches()){\r\n\t\t\t\tchar test = args[i].charAt(1);\r\n\t\t\t\ttry{\r\n\t\t\t\t\tswitch (test){\r\n\t\t\t\t\tcase 'f': directory = new File(args[i+1]); i++; break;\r\n\t\t\t\t\tcase 'o': orderedFileNames = args[++i].split(\",\"); break;\r\n\t\t\t\t\tcase 'c': output = new File(args[++i]); break;\r\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\r\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e){\r\n\t\t\t\t\tSystem.out.print(\"\\nSorry, something doesn't look right with this parameter request: -\"+test);\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check to see if they entered required params\r\n\t\tif (directory==null || directory.isDirectory() == false){\r\n\t\t\tSystem.out.println(\"\\nCannot find your directory!\\n\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ceb6b158867c00c2b1bcb8d65a053561", "score": "0.6606421", "text": "private static void handleArguments(String[] args) {\n\t\t\n\t\tif ( args.length > 0 && args[0].contains(\"--help\")) {\n\t\t\tSystem.err.println (menuString);\n\t\t\tSystem.err.println(\"Example queue name are: *\");\n\t\t\tSystem.exit(0);\n\t\t} else {\n\n\t\t\tint i = 0;\n\t\t\tString arg;\n\n\t\t\twhile (i < args.length && args[i].startsWith(\"--\")) {\n\t\t\t\targ = args[i++];\n\n\t\t\t\tif (arg.contains(ECS_HOSTS_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsHosts = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_HOSTS_CONFIG_ARGUMENT + \" requires hosts value(s)\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.contains(ECS_MGMT_ACCESS_KEY_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsMgmtAccessKey = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_MGMT_ACCESS_KEY_CONFIG_ARGUMENT + \" requires an access-key value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_MGMT_SECRET_KEY_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsMgmtSecretKey = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_MGMT_SECRET_KEY_CONFIG_ARGUMENT + \" requires a secret-key value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_MGMT_PORT_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsMgmtPort = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_MGMT_PORT_CONFIG_ARGUMENT + \" requires a mgmt port value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_ALT_MGMT_PORT_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsAlternativeMgmtPort = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_ALT_MGMT_PORT_CONFIG_ARGUMENT + \" requires an alternative mgmt port value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECT_MODIFIED_OBJECT_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\trelativeObjectModifiedSinceOption = true;\n\t\t\t\t\t\tobjectModifiedSinceNoOfDays = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECT_MODIFIED_OBJECT_CONFIG_ARGUMENT + \" requires a specified number of days value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECT_DATA_CONFIG_ARGUMENT)) {\n\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tcollectData = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECT_DATA_CONFIG_ARGUMENT + \" requires a collect data value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.contains(ELASTIC_HOSTS_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\telasticHosts = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ELASTIC_HOSTS_CONFIG_ARGUMENT + \" requires hosts value(s)\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ELASTIC_PORT_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\telasticPort = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ELASTIC_PORT_CONFIG_ARGUMENT + \" requires a port value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ELASTIC_CLUSTER_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\telasticCluster = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( ELASTIC_CLUSTER_CONFIG_ARGUMENT + \" requires a cluster value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECTION_DAY_SHIFT_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\trelativeDayShift = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECTION_DAY_SHIFT_ARGUMENT + \" requires a day shift value port value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( ECS_INIT_INDEXES_ONLY_CONFIG_ARGUMENT)) { \n\t\t\t\t\tinitIndexesOnlyOption = true;\n\t\t\t\t} else if (arg.equals( XPACK_SECURITY_USER_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackUser = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SECURITY_USER_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( XPACK_SECURITY_USER_PASSWORD_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackPassword = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SECURITY_USER_PASSWORD_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( XPACK_SSL_KEY_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackSslKey = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SSL_KEY_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( XPACK_SSL_CERTIFICATE_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackSslCertificate = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SSL_CERTIFICATE_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( XPACK_SSL_CERTIFICATE_AUTH_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackSsslCertificateAuth = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SSL_CERTIFICATE_AUTH_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECT_OBJECT_DATA_NAMESPACE_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tobjectNamespace = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECT_OBJECT_DATA_NAMESPACE_ARGUMENT + \" requires namespace\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECT_OBJECT_DATA_NAME_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tbucketName = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECT_OBJECT_DATA_NAME_ARGUMENT + \" requires bucket\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"Unrecognized option: \" + arg); \n\t\t\t\t\tSystem.err.println(menuString);\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t} \n\t\t\t}\n\t\t\tif (bucketName!=null) {\n\t\t\t\tif (objectNamespace==null || \"\".equals(objectNamespace)) {\n\t\t\t\t\tSystem.err.println(ECS_COLLECT_OBJECT_DATA_NAMESPACE_ARGUMENT + \" requires namespace, \" + ECS_COLLECT_OBJECT_DATA_NAME_ARGUMENT + \" requires bucket\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(initIndexesOnlyOption) {\n\t\t\t// Check hosts\n\t\t\tif(elasticHosts.isEmpty()) {\t\n\t\t\t\tSystem.err.println(\"Missing Elastic hostname use \" + ELASTIC_HOSTS_CONFIG_ARGUMENT + \n\t\t\t\t\t\t\t\t\"<host1, host2> to specify a value\" );\n\t\t\t\treturn;\n\t\t\t}\t\n\t\t} else {\n\n\t\t\t// Check hosts\n\t\t\tif(ecsHosts.isEmpty()) {\t\n\t\t\t\tSystem.err.println(\"Missing ECS hostname use \" + ECS_HOSTS_CONFIG_ARGUMENT + \n\t\t\t\t\t\t\"<host1, host2> to specify a value\" );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// management access/user key\n\t\t\tif(ecsMgmtAccessKey.isEmpty()) {\n\t\t\t\tSystem.err.println(\"Missing managment access key use\" + ECS_MGMT_ACCESS_KEY_CONFIG_ARGUMENT +\n\t\t\t\t\t\t\"<admin-username> to specify a value\" );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// management access/user key\n\t\t\tif(ecsMgmtSecretKey.isEmpty()) {\n\t\t\t\tSystem.err.println(\"Missing management secret key use \" + ECS_MGMT_SECRET_KEY_CONFIG_ARGUMENT +\n\t\t\t\t\t\t\"<admin-password> to specify a value\" );\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d4b1888aff9beb42bb246e719d1fcf5b", "score": "0.65540123", "text": "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tSystem.out.println(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments: \"+Misc.stringArrayToString(args, \" \")+\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'b': bedFile = new File (args[i+1]); i++; break;\n\t\t\t\t\tcase 'm': minNumExons = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'a': requiredAnnoType = args[i+1]; i++; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: System.out.println(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (bedFile == null || bedFile.canRead() == false) Misc.printExit(\"\\nError: cannot find your bed file!\\n\");\t\n\t}", "title": "" }, { "docid": "a3b7750a756e6bdaee61a9d29ed0be92", "score": "0.65083754", "text": "private static Options readArguments(String[] args) {\n\t\tOptions result = new Options();\n\t\ttry {\n\t\t\tresult.numberClients = Integer.parseInt(args[0]);\n\t\t\tresult.trafficTime = Integer.parseInt(args[args.length - 1]);\n\t\t} catch (java.lang.NumberFormatException e) {\n\t\t\tSystem.err.println(\"Error while converting to integer. Did you run the program correctly?\");\n\t\t\tSystem.err.println(\"$ tgpm <c> [-w] [-s <sid>] <s>\");\n\t\t\tSystem.exit(0);\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\tSystem.err.println(\"Program requires at least TWO arguments, number of clients and active seconds.\");\n\t\t\tSystem.err.println(\"$ tgpm <c> [-w] [-s <sid>] <s>\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\tString argsString = String.join(\" \", args);\n\n\t\tif (argsString.contains(\"-w\")) {\n\t\t\tresult.writeMode = true;\n\t\t}\n\n\t\tPattern p = Pattern.compile(\"-s ([0-9]+)\");\n\t\tMatcher m = p.matcher(argsString);\n\t\tif (m.find()) {\n\t\t\tif (args.length > 3) {\n\t\t\t\tresult.storeID = Integer.parseInt(m.group(1));\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"When single store mode is enabled, the program requires AT LEAST 4 arguments.\");\n\t\t\t\tSystem.err.println(\"$ tgpm <c> [-w] [-s <sid>] <s>\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "534c7b454af44dfb3f32015ddfb87cea", "score": "0.65065706", "text": "private String parseArgs(String args[])\n {\n String fpath = null;\n \n for (String arg : args)\n {\n if (arg.startsWith(\"-\"))\n {\n // TODO: maybe add something here.\n }\n else // expect a filename.\n {\n fpath = arg;\n }\n }\n \n return fpath;\n }", "title": "" }, { "docid": "06819b9f7d975cc2dc8f359a1c3a0e22", "score": "0.6469011", "text": "void processCommandLineArguments(String[] args) throws ConfigurationException;", "title": "" }, { "docid": "98bd8835cdcab6f7933d0e6d985dd68f", "score": "0.6454427", "text": "@Test\n public void correctArgumentsReturnsArguments() {\n String projectPath = \"/pathI/\";\n String resultPath = \"/pathO/\";\n String apkPath = apkFile.getAbsolutePath();\n String filtersPath = filterFile.getAbsolutePath();\n String[] inputArgs = new String[] {\"-i\", projectPath, \"-o\", resultPath, \n \"-a\", apkPath, \"-f\", filtersPath};\n ArgumentReader sut = new ArgumentReader(inputArgs);\n\n Arguments args = sut.read();\n\n assertThat(args, notNullValue());\n assertThat(args.getProjectPath(), equalTo(projectPath));\n assertThat(args.getResultPath(), equalTo(resultPath));\n assertThat(args.getApkFilePath(), equalTo(apkPath));\n assertThat(args.getFiltersPath(), equalTo(filtersPath));\n }", "title": "" }, { "docid": "caf7dbc06884d6fd7ae84d1a8d443ce0", "score": "0.64346856", "text": "public void parse(String[] args) throws ParseException {\r\n\r\n options.addOption(configFileOption);\r\n CommandLineParser parser = new GnuParser();\r\n\r\n CommandLine line = parser.parse(options, args);\r\n if (line.hasOption(\"f\")) {\r\n configFile = line.getOptionValue(\"f\");\r\n }\r\n }", "title": "" }, { "docid": "50f8ed98c899d3b8526afb52049ac72d", "score": "0.6418957", "text": "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tString useqVersion = IO.fetchUSeqVersion();\n\t\tSystem.out.println(\"\\n\"+useqVersion+\" Arguments: \"+ Misc.stringArrayToString(args, \" \") +\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'r': bedFile = new File(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'c': haploArgs = args[++i]; break;\n\t\t\t\t\tcase 't': numberConcurrentThreads = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//check save dir\n\t\tif (saveDirectory == null) Misc.printErrAndExit(\"\\nError: cannot find your save directory!\\n\"+saveDirectory);\n\t\tsaveDirectory.mkdirs();\n\t\tif (saveDirectory.isDirectory() == false) Misc.printErrAndExit(\"\\nError: your save directory does not appear to be a directory?\\n\");\n\n\t\t//check bed\n\t\tif (bedFile == null || bedFile.canRead() == false) Misc.printErrAndExit(\"\\nError: cannot find your bed file of regions to interrogate?\\n\"+bedFile);\n\t\t\n\t\t//check args\n\t\tif (haploArgs == null) Misc.printErrAndExit(\"\\nError: please provide a gatk haplotype caller launch cmd similar to the following where you \"\n\t\t\t\t+ \"replace the $xxx with the correct path to these resources on your system:\\n'java -Xmx4G -jar $GenomeAnalysisTK.jar -T \"\n\t\t\t\t+ \"HaplotypeCaller -stand_call_conf 5 -stand_emit_conf 5 --min_mapping_quality_score 13 -R $fasta --dbsnp $dbsnp -I $bam'\\n\");\n\t\tif (haploArgs.contains(\"~\") || haploArgs.contains(\"./\")) Misc.printErrAndExit(\"\\nError: full paths in the GATK command.\\n\"+haploArgs);\n\t\tif (haploArgs.contains(\"-o\") || haploArgs.contains(\"-L\")) Misc.printErrAndExit(\"\\nError: please don't provide a -o or -L argument to the cmd.\\n\"+haploArgs);\t\n\t\n\t\t//determine number of threads\n\t\tdouble gigaBytesAvailable = ((double)Runtime.getRuntime().maxMemory())/ 1073741824.0;\n\t\t\n\t\n\t}", "title": "" }, { "docid": "3d6365049baef6cf87931c05e10728e7", "score": "0.63870716", "text": "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tString useqVersion = IO.fetchUSeqVersion();\n\t\tSystem.out.println(\"\\n\"+useqVersion+\" Arguments: \"+ Misc.stringArrayToString(args, \" \") +\"\\n\");\n\t\tString dmelCountString = null;\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'f': drssFile = new File(args[++i]); break;\n\t\t\t\t\tcase 'd': dmelCountString = args[++i]; break;\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//check\n\t\tif (drssFile == null || drssFile.exists() == false) Misc.printErrAndExit(\"\\nFailed to find your drss file!\");\n\t\tif (dmelCountString == null) Misc.printErrAndExit(\"\\nFailed to find your treatment control count string!\");\n\t\tint[] dmel = Num.parseInts(dmelCountString, Misc.COMMA);\n\t\ttreatmentCounts = dmel[0];\n\t\tcontrolCounts = dmel[1];\n\n\n\n\t}", "title": "" }, { "docid": "53967a09421ba4b5f9da3a77e5700c8b", "score": "0.63859284", "text": "public void analyseArguments(String[] args) throws ArgumentsException {\n \t\t\n for (int i=0;i<args.length;i++){ \n \n \n if (args[i].matches(\"-s\")){\n affichage = true;\n }\n else if (args[i].matches(\"-seed\")) {\n aleatoireAvecGerme = true;\n i++; \n \t// traiter la valeur associee\n try { \n seed =new Integer(args[i]);\n \n }\n catch (Exception e) {\n throw new ArgumentsException(\"Valeur du parametre -seed invalide :\" + args[i]);\n } \t\t\n }\n \n else if (args[i].matches(\"-mess\")){\n i++; \n \t// traiter la valeur associee\n messageString = args[i];\n if (args[i].matches(\"[0,1]{7,}\")) {\n messageAleatoire = false;\n nbBitsMess = args[i].length();\n \n } \n else if (args[i].matches(\"[0-9]{1,6}\")) {\n messageAleatoire = true;\n nbBitsMess = new Integer(args[i]);\n if (nbBitsMess < 1) \n throw new ArgumentsException (\"Valeur du parametre -mess invalide : \" + nbBitsMess);\n }\n else \n throw new ArgumentsException(\"Valeur du parametre -mess invalide : \" + args[i]);\n }\n \n else throw new ArgumentsException(\"Option invalide :\"+ args[i]);\n \n }\n \n }", "title": "" }, { "docid": "c0872284b22d52a1a782a1a73338313e", "score": "0.6369419", "text": "private static void parseCommandLine(String[] command) {\r\n\t\tint i = 0;\r\n\t\t\r\n\t\twhile (i < command.length) {\r\n\t\t\tif (command[i].equals(\"-f\")) { // input file\r\n\t\t\t\tdataFileName = command[i+1];\r\n\t\t\t\ti += 2;\r\n\t\t\t}\r\n\t\t\telse if (command[i].equals(\"-s\")) { // data split\r\n\t\t\t\tif (command[i+1].equals(\"simple\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.SIMPLE_SPLIT;\r\n\t\t\t\t\ttestRatio = Double.parseDouble(command[i+2]);\r\n\t\t\t\t}\r\n\t\t\t\telse if (command[i+1].equals(\"pred\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.PREDEFINED_SPLIT;\r\n\t\t\t\t\tsplitFileName = command[i+2].trim();\r\n\t\t\t\t}\r\n\t\t\t\telse if (command[i+1].equals(\"kcv\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.K_FOLD_CROSS_VALIDATION;\r\n\t\t\t\t\tfoldCount = Integer.parseInt(command[i+2]);\r\n\t\t\t\t}\r\n\t\t\t\telse if (command[i+1].equals(\"rank\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.RANK_EXP_SPLIT;\r\n\t\t\t\t\tuserTrainCount = Integer.parseInt(command[i+2]);\r\n\t\t\t\t\tminTestCount = 10;\r\n\t\t\t\t}\r\n\t\t\t\ti += 3;\r\n\t\t\t}\r\n\t\t\telse if (command[i].equals(\"-a\")) { // algorithm\r\n\t\t\t\trunAllAlgorithms = false;\r\n\t\t\t\talgorithmCode = command[i+1];\r\n\t\t\t\t\r\n\t\t\t\t// parameters for the algorithm:\r\n\t\t\t\tint j = 0;\r\n\t\t\t\twhile (command.length > i+2+j && !command[i+2+j].startsWith(\"-\")) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\talgorithmParameters = new String[j];\r\n\t\t\t\tSystem.arraycopy(command, i+2, algorithmParameters, 0, j);\r\n\t\t\t\t\r\n\t\t\t\ti += (j + 2);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fa5d95a66d633c56df8fce689d0c03cb", "score": "0.63522685", "text": "private static List<Pair<OvsDbConverter.Entry, Object>> parseArguments(\n Deque<String> arguments) {\n\n List<Pair<OvsDbConverter.Entry, Object>> args = new ArrayList<>();\n\n for (String arg; null != (arg = arguments.peek()); ) {\n arguments.pop();\n if (arg.startsWith(\"~\")) {\n arg = arg.substring(1).replace('-', '_').toLowerCase(\n Locale.ROOT);\n // Get the converter entry for this argument type.\n OvsDbConverter.Entry entry = OvsDbConverter.get(arg);\n\n // If there is no entry, thrown an exception.\n if (null == entry) {\n throw new IllegalArgumentException(\n \"Unknown argument type: \" + arg);\n }\n\n // Add the entry to the arguments list.\n if (entry.hasConverter()) {\n args.add(new Pair<>(entry, entry.convert(arguments.pop())));\n } else {\n args.add(new Pair<>(entry, null));\n }\n\n } else throw new IllegalArgumentException(\n \"Unknown argument type: \" + arg);\n }\n\n return args;\n }", "title": "" }, { "docid": "4c360590249bee8a5f4ef153dc52a7f3", "score": "0.63515055", "text": "@Override\n protected String[] ParseCmdLine(final String[] args) {\n\n final CmdLineParser clp = new CmdLineParser();\n final OptionalFlag optHelp = new OptionalFlag(\n clp, \"h?\", \"help\", \"help mode\\nprint this usage information and exit\");\n optHelp.forHelpUsage();\n final OptionalFlag optForce =\n new OptionalFlag(clp, \"f\", \"force\", \"force overwrite\");\n final OptionalFlag optDelete =\n new OptionalFlag(clp, \"d\", \"delete\", \"delete the table content first\");\n final OptionalFlag optAll = new OptionalFlag(\n clp, \"a\", \"all\",\n \"import all and synchronize changes in the document back to the datasource\");\n final OptionalFlag optSync = new OptionalFlag(\n clp, \"\", \"sync\",\n \"synchronize changes in the document back to the datasource\");\n final OptionalArgumentInteger optCommitCount =\n new OptionalArgumentInteger(clp, \"n\", \"commitcount\", \"commit count\");\n\n clp.setArgumentDescription(\n \"[[sourcefile [destinationfile]]\\n[sourcefile... targetdirectory]]\", -1,\n -1, null);\n final String[] argv = clp.getOptions(args);\n\n force = optForce.getValue(false);\n doDelete = optDelete.getValue(false);\n doSync = optAll.getValue(false) || optSync.getValue(false);\n doImport = optAll.getValue(false) || !optSync.getValue(false);\n commitCount = optCommitCount.getValue(0);\n\n return argv;\n }", "title": "" }, { "docid": "c1109525612ec7d90ba7cd529f977082", "score": "0.63311756", "text": "public static void main( String[] args )\n {\n CommandLineParser parser = new DefaultParser();\n\n // create the Options\n OptionGroup optgrp = new OptionGroup();\n optgrp.addOption(Option.builder(\"l\")\n .longOpt(\"list\")\n .hasArg().argName(\"keyword\").optionalArg(true)\n .type(String.class)\n .desc(\"List documents scraped for keyword\")\n .build());\n optgrp.addOption( Option.builder(\"r\")\n .longOpt(\"read\")\n .hasArg().argName(\"doc_id\")\n .type(String.class)\n .desc(\"Display a specific scraped document.\")\n .build());\n optgrp.addOption( Option.builder(\"a\")\n .longOpt(\"add\")\n .type(String.class)\n .desc(\"Add keywords to scrape\")\n .build());\n optgrp.addOption( Option.builder(\"s\")\n .longOpt(\"scraper\")\n .type(String.class)\n .desc(\"Start the scraper watcher\")\n .build());\n\n\n\n Options options = new Options();\n options.addOptionGroup(optgrp);\n\n options.addOption( Option.builder(\"n\")\n .longOpt(\"search-name\").hasArg()\n .type(String.class)\n .desc(\"Name of the search task for a set of keywords\")\n .build());\n\n options.addOption( Option.builder(\"k\")\n .longOpt(\"keywords\")\n .type(String.class).hasArgs()\n .desc(\"keywords to scrape. \")\n .build());\n\n options.addOption( Option.builder(\"t\")\n .longOpt(\"scraper-threads\")\n .type(Integer.class).valueSeparator().hasArg()\n .desc(\"Number of scraper threads to use.\")\n .build());\n\n //String[] args2 = new String[]{ \"--add --search-name=\\\"some thing\\\" --keywords=kw1, kw2\" };\n // String[] args2 = new String[]{ \"--add\", \"--search-name\", \"some thing new\", \"--keywords\", \"kw3\", \"kw4\"};\n // String[] args2 = new String[]{ \"--scraper\"};\n// String[] args2 = new String[]{ \"--list\"};\n\n int exitCode = 0;\n CommandLine line;\n try {\n // parse the command line arguments\n line = parser.parse( options, args );\n }\n catch( ParseException exp ) {\n System.out.println( \"Unexpected exception:\" + exp.getMessage() );\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name=<SearchTask> --keywords=<keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n System.exit(2);\n return;\n }\n\n if( line.hasOption( \"add\" ) ) {\n // Add Search Task mode\n if(!line.hasOption( \"search-name\" ) || !line.hasOption(\"keywords\")) {\n System.out.println(\"must have search name and keywords when adding\");\n System.exit(2);\n }\n String name = line.getOptionValue( \"search-name\" );\n String[] keywords = line.getOptionValues(\"keywords\");\n System.out.println(\"Got keywords: \" + Arrays.toString(keywords) );\n\n exitCode = add(name, Arrays.asList(keywords));\n\n } else if( line.hasOption( \"list\" ) ) {\n // List Keyword mode\n DataStore ds = new DataStore();\n String keyword = line.getOptionValue( \"list\" );\n System.out.println(\"Listing with keyword = `\" + keyword + \"`\");\n if(keyword == null) {\n List<String > keywords = ds.listKeywords();\n for(String kw : keywords) {\n System.out.println(kw);\n }\n exitCode=0;\n } else {\n List<SearchResult > results = ds.listDocsForKeyword(keyword);\n for(SearchResult kw : results) {\n System.out.println(kw);\n }\n }\n ds.close();\n\n } else if( line.hasOption( \"read\" ) ) {\n // Show a specific document\n String docId = line.getOptionValue( \"read\" );\n if(docId == null) {\n System.err.println(\"read option missing doc_id parameter\");\n exitCode = 2;\n } else {\n\n DataStore ds = new DataStore();\n String result = ds.read(docId);\n\n if (result == null) {\n System.err.println(\"NOT FOUND\");\n exitCode = 1;\n } else {\n System.out.println(result);\n }\n ds.close();\n }\n }\n else if( line.hasOption( \"scraper\" ) ) {\n int numThreads = 1;\n if(line.hasOption( \"scraper-threads\")) {\n String threadString = line.getOptionValue(\"scraper-threads\");\n try {\n numThreads = Integer.parseInt(threadString);\n } catch (NumberFormatException e) {\n System.out.println(\n \"unable to parse number of threads from `\" +\n threadString + \"`\");\n }\n\n }\n // Start scraper mode\n Daemon daemon = new Daemon(numThreads);\n daemon.start();\n } else {\n // generate the help statement\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name <SearchTask> --keywords <keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n exitCode = 2;\n }\n\n\n System.exit(exitCode);\n }", "title": "" }, { "docid": "a310ae9a51d07b30382b6b43324a729e", "score": "0.63284063", "text": "public static void parseArgs(String[] args) throws ConsolePreferencesException {\n\n\t\ttry{\n\t\t\t\n\t\t\tmap = new HashMap<String, String>();\n\t\t\t\n\t\t\tfor (int i = 0; i < args.length; i++) {\n\n\t\t\t\tif (args[i].equals(\"--input\")) {\n\t\t\t\t\tmap.put(INPUT_PATH, args[i + 1]);\n\t\t\t\t}\n\t\t\t\tif (args[i].equals(\"--output\")) {\n\t\t\t\t\tmap.put(OUTPUT_PATH, args[i + 1]);\n\t\t\t\t}\n\t\t\t\tif (args[i].equals(\"--preferences\")) {\n\t\t\t\t\tmap.put(PREFERENCES_PATH, args[i + 1]);\n\t\t\t\t\tp = new Properties();\n\t\t\t\t\tp.load(new FileInputStream(args[i + 1]));\n\t\t\t\t}\n\t\t\t\tif (args[i].equals(\"--sign\")) {\n\t\t\t\t\tmap.put(ACTION, ACTION_SIGN);\n\t\t\t\t}\n\t\t\t\tif (args[i].equals(\"--validate\")) {\n\t\t\t\t\tmap.put(ACTION, ACTION_VALIDATE);\n\t\t\t\t}\n\t\t\t\tif (args[i].equals(\"--xades\")) {\n\t\t\t\t\tmap.put(TYPE, TYPE_XADES);\n\t\t\t\t}\n\t\t\t\tif (args[i].equals(\"--pdf\")) {\n\t\t\t\t\tmap.put(TYPE, TYPE_PDF);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tthrow new ConsolePreferencesException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "1b4c07bac9e0d9714d92f3cc4c9aa9b9", "score": "0.6320326", "text": "public static void main(String[] args)\r\n {\r\n CommandParser parser = new CommandParser(args[0]);\r\n parser.parseFile();\r\n }", "title": "" }, { "docid": "bfa0c0c605cf130f9950454cb7b3566b", "score": "0.62856466", "text": "protected void parseArgs(String args[]) throws IllegalArgumentException, NumberFormatException\n\t{\n\t\tif(args.length != 1)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(this.getClass().getName()+\n\t\t\t\t\" <temperature (degrees C)>\");\n\t\t}\n\t\ttemperature = Double.parseDouble(args[0]);\n\t}", "title": "" }, { "docid": "7014acd3c39aac0b8cc779b5e1df8bc4", "score": "0.6274557", "text": "public boolean parseArgs(String argv[]) {\n if (argv != null) {\n for (int argc = 0; argc < argv.length; argc += 2)\n if (argv[argc].equals(\"-f\"))\n mPathname = argv[argc + 1];\n else if (argv[argc].equals(\"-d\"))\n mDiagnosticsEnabled = argv[argc + 1].equals(\"true\");\n else if (argv[argc].equals(\"-s\"))\n \tmSeparator = argv[argc + 1];\n else {\n printUsage();\n return false;\n }\n return true;\n } else\n return false;\n }", "title": "" }, { "docid": "a4d82bb4e1cc27671b076295bb4bbe24", "score": "0.6253408", "text": "static public void parseArgs(String[] args) {\r\n\r\n\t\tfor (int nA = 0; nA < args.length; nA++ ) {\r\n\t\t\tif (args[nA].length() > 7 && args[nA].substring(0,7).equals( \"--lang=\")) {\r\n\t\t\t\t//set the language to the given string\r\n\t\t\t\tTranslationBundle.setLanguage( args[nA].substring(7) );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1a46247e373173063c776eaebdcf2253", "score": "0.6252086", "text": "private void parseOptions(DataStore args) {\r\n\r\n // System.out.println(\"IN JavaWeaver.parseOptions\\n\" + args);\r\n if (args.hasValue(JavaWeaverKeys.CLEAR_OUTPUT_FOLDER)) {\r\n clearOutputFolder = args.get(JavaWeaverKeys.CLEAR_OUTPUT_FOLDER);\r\n }\r\n if (args.hasValue(JavaWeaverKeys.NO_CLASSPATH)) {\r\n noClassPath = args.get(JavaWeaverKeys.NO_CLASSPATH);\r\n }\r\n if (args.hasValue(JavaWeaverKeys.INCLUDE_DIRS)) {\r\n classPath = args.get(JavaWeaverKeys.INCLUDE_DIRS).getFiles();\r\n }\r\n if (args.hasValue(JavaWeaverKeys.OUTPUT_TYPE)) {\r\n outType = args.get(JavaWeaverKeys.OUTPUT_TYPE);\r\n }\r\n if (args.hasValue(JavaWeaverKeys.SHOW_LOG_INFO)) {\r\n loggingGear.setActive(args.get(JavaWeaverKeys.SHOW_LOG_INFO));\r\n }\r\n if (args.hasValue(JavaWeaverKeys.FORMAT)) {\r\n prettyPrint = args.get(JavaWeaverKeys.FORMAT);\r\n }\r\n\r\n if (args.hasValue(JavaWeaverKeys.REPORT)) {\r\n\r\n reportGear.setActive(args.get(JavaWeaverKeys.REPORT));\r\n }\r\n\r\n }", "title": "" }, { "docid": "39c4e72e60770f37fc982140b3b381d2", "score": "0.624286", "text": "private static void validateInputArguments(String args[]) {\n\n\t\tif (args == null || args.length != 2) {\n\t\t\tthrow new InvalidParameterException(\"invalid Parameters\");\n\t\t}\n\n\t\tString dfaFileName = args[DFA_FILE_ARGS_INDEX];\n\t\tif (dfaFileName == null || dfaFileName.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(\"Invalid file name\");\n\t\t}\n\n\t\tString delimiter = args[DELIMITER_SYMBOL_ARGS_INDEX];\n\t\tif (delimiter == null || delimiter.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(\"Invalid delimiter symbol\");\n\t\t}\n\t}", "title": "" }, { "docid": "0bbf71f3e0bfdf4210b7f19faf6c25a0", "score": "0.6238545", "text": "public ArgumentsParser(String... args) {\n this.arguments = new HashMap<>(args.length);\n this.args = Arrays.copyOf(args, args.length);\n }", "title": "" }, { "docid": "a9a8c46601280219eb4ab3a7c28d4a2d", "score": "0.6229853", "text": "private void parseArgs(String[] object) throws IllegalArgumentException {\n Object object2;\n int n;\n int n2;\n int n3 = 0;\n boolean bl = false;\n boolean bl2 = true;\n block6 : do {\n int n4 = ((Object)object).length;\n n2 = 0;\n n = ++n3;\n if (n3 >= n4) break;\n object2 = object[n3];\n if (((String)object2).equals(\"--\")) {\n n = n3 + 1;\n break;\n }\n if (((String)object2).startsWith(\"--setuid=\")) {\n if (this.mUidSpecified) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mUidSpecified = true;\n this.mUid = Integer.parseInt(((String)object2).substring(((String)object2).indexOf(61) + 1));\n continue;\n }\n if (((String)object2).startsWith(\"--setgid=\")) {\n if (this.mGidSpecified) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mGidSpecified = true;\n this.mGid = Integer.parseInt(((String)object2).substring(((String)object2).indexOf(61) + 1));\n continue;\n }\n if (((String)object2).startsWith(\"--target-sdk-version=\")) {\n if (this.mTargetSdkVersionSpecified) throw new IllegalArgumentException(\"Duplicate target-sdk-version specified\");\n this.mTargetSdkVersionSpecified = true;\n this.mTargetSdkVersion = Integer.parseInt(((String)object2).substring(((String)object2).indexOf(61) + 1));\n continue;\n }\n if (((String)object2).equals(\"--runtime-args\")) {\n bl = true;\n continue;\n }\n if (((String)object2).startsWith(\"--runtime-flags=\")) {\n this.mRuntimeFlags = Integer.parseInt(((String)object2).substring(((String)object2).indexOf(61) + 1));\n continue;\n }\n if (((String)object2).startsWith(\"--seinfo=\")) {\n if (this.mSeInfoSpecified) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mSeInfoSpecified = true;\n this.mSeInfo = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n if (((String)object2).startsWith(\"--capabilities=\")) {\n if (this.mCapabilitiesSpecified) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mCapabilitiesSpecified = true;\n if (((String[])(object2 = ((String)object2).substring(((String)object2).indexOf(61) + 1).split(\",\", 2))).length == 1) {\n this.mPermittedCapabilities = this.mEffectiveCapabilities = Long.decode((String)object2[0]).longValue();\n continue;\n }\n this.mPermittedCapabilities = Long.decode((String)object2[0]);\n this.mEffectiveCapabilities = Long.decode((String)object2[1]);\n continue;\n }\n if (((String)object2).startsWith(\"--rlimit=\")) {\n String[] arrstring = ((String)object2).substring(((String)object2).indexOf(61) + 1).split(\",\");\n if (arrstring.length != 3) throw new IllegalArgumentException(\"--rlimit= should have 3 comma-delimited ints\");\n object2 = new int[arrstring.length];\n for (n = 0; n < arrstring.length; ++n) {\n object2[n] = Integer.parseInt(arrstring[n]);\n }\n if (this.mRLimits == null) {\n this.mRLimits = new ArrayList();\n }\n this.mRLimits.add((int[])object2);\n continue;\n }\n if (((String)object2).startsWith(\"--setgroups=\")) {\n if (this.mGids != null) throw new IllegalArgumentException(\"Duplicate arg specified\");\n object2 = ((String)object2).substring(((String)object2).indexOf(61) + 1).split(\",\");\n this.mGids = new int[((String[])object2).length];\n n = ((Object[])object2).length - 1;\n do {\n if (n < 0) continue block6;\n this.mGids[n] = Integer.parseInt((String)object2[n]);\n --n;\n } while (true);\n }\n if (((String)object2).equals(\"--invoke-with\")) {\n if (this.mInvokeWith != null) throw new IllegalArgumentException(\"Duplicate arg specified\");\n ++n3;\n try {\n this.mInvokeWith = object[n3];\n }\n catch (IndexOutOfBoundsException indexOutOfBoundsException) {\n throw new IllegalArgumentException(\"--invoke-with requires argument\");\n }\n }\n if (((String)object2).startsWith(\"--nice-name=\")) {\n if (this.mNiceName != null) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mNiceName = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n if (((String)object2).equals(\"--mount-external-default\")) {\n this.mMountExternal = 1;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-read\")) {\n this.mMountExternal = 2;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-write\")) {\n this.mMountExternal = 3;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-full\")) {\n this.mMountExternal = 6;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-installer\")) {\n this.mMountExternal = 5;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-legacy\")) {\n this.mMountExternal = 4;\n continue;\n }\n if (((String)object2).equals(\"--query-abi-list\")) {\n this.mAbiListQuery = true;\n continue;\n }\n if (((String)object2).equals(\"--get-pid\")) {\n this.mPidQuery = true;\n continue;\n }\n if (((String)object2).startsWith(\"--instruction-set=\")) {\n this.mInstructionSet = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n if (((String)object2).startsWith(\"--app-data-dir=\")) {\n this.mAppDataDir = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n if (((String)object2).equals(\"--preload-app\")) {\n this.mPreloadApp = object[++n3];\n continue;\n }\n if (((String)object2).equals(\"--preload-package\")) {\n this.mPreloadPackage = object[++n3];\n this.mPreloadPackageLibs = object[++n3];\n this.mPreloadPackageLibFileName = object[++n3];\n this.mPreloadPackageCacheKey = object[++n3];\n continue;\n }\n if (((String)object2).equals(\"--preload-default\")) {\n this.mPreloadDefault = true;\n bl2 = false;\n continue;\n }\n if (((String)object2).equals(\"--start-child-zygote\")) {\n this.mStartChildZygote = true;\n continue;\n }\n if (((String)object2).equals(\"--set-api-blacklist-exemptions\")) {\n this.mApiBlacklistExemptions = (String[])Arrays.copyOfRange(object, n3 + 1, ((Object)object).length);\n n3 = ((Object)object).length;\n bl2 = false;\n continue;\n }\n if (((String)object2).startsWith(\"--hidden-api-log-sampling-rate=\")) {\n object2 = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n try {\n this.mHiddenApiAccessLogSampleRate = Integer.parseInt((String)object2);\n bl2 = false;\n }\n catch (NumberFormatException numberFormatException) {\n object = new StringBuilder();\n ((StringBuilder)object).append(\"Invalid log sampling rate: \");\n ((StringBuilder)object).append((String)object2);\n throw new IllegalArgumentException(((StringBuilder)object).toString(), numberFormatException);\n }\n }\n if (((String)object2).startsWith(\"--hidden-api-statslog-sampling-rate=\")) {\n object2 = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n try {\n this.mHiddenApiAccessStatslogSampleRate = Integer.parseInt((String)object2);\n bl2 = false;\n }\n catch (NumberFormatException numberFormatException) {\n object = new StringBuilder();\n ((StringBuilder)object).append(\"Invalid statslog sampling rate: \");\n ((StringBuilder)object).append((String)object2);\n throw new IllegalArgumentException(((StringBuilder)object).toString(), numberFormatException);\n }\n }\n if (((String)object2).startsWith(\"--package-name=\")) {\n if (this.mPackageName != null) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mPackageName = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n n = n3;\n if (!((String)object2).startsWith(\"--usap-pool-enabled=\")) break;\n this.mUsapPoolStatusSpecified = true;\n this.mUsapPoolEnabled = Boolean.parseBoolean(((String)object2).substring(((String)object2).indexOf(61) + 1));\n bl2 = false;\n } while (true);\n if (!this.mAbiListQuery && !this.mPidQuery) {\n if (this.mPreloadPackage != null) {\n if (((Object)object).length - n > 0) throw new IllegalArgumentException(\"Unexpected arguments after --preload-package.\");\n } else if (this.mPreloadApp != null) {\n if (((Object)object).length - n > 0) throw new IllegalArgumentException(\"Unexpected arguments after --preload-app.\");\n } else if (bl2) {\n if (!bl) {\n object2 = new StringBuilder();\n ((StringBuilder)object2).append(\"Unexpected argument : \");\n ((StringBuilder)object2).append((String)object[n]);\n throw new IllegalArgumentException(((StringBuilder)object2).toString());\n }\n this.mRemainingArgs = new String[((Object)object).length - n];\n object2 = this.mRemainingArgs;\n System.arraycopy(object, n, object2, 0, ((String[])object2).length);\n }\n } else if (((Object)object).length - n > 0) throw new IllegalArgumentException(\"Unexpected arguments after --query-abi-list.\");\n if (!this.mStartChildZygote) return;\n bl = false;\n object = this.mRemainingArgs;\n n = ((Object)object).length;\n n3 = n2;\n do {\n bl2 = bl;\n if (n3 >= n) break;\n if (((String)object[n3]).startsWith(\"--zygote-socket=\")) {\n bl2 = true;\n break;\n }\n ++n3;\n } while (true);\n if (!bl2) throw new IllegalArgumentException(\"--start-child-zygote specified without --zygote-socket=\");\n }", "title": "" }, { "docid": "bd21e15945121cd779a453a718ddf4cd", "score": "0.6190621", "text": "public void processArguments(String[] _args) {\r\n\t\tboolean stateRead = false;\r\n\t\tif (_args != null && _args.length > 0) {\r\n\t\t\tfor (int i = 0; i < _args.length; i++) {\r\n\t\t\t\tif (_args[i].toLowerCase().endsWith(\".xml\")) {\r\n\t\t\t\t\tstateRead = readState(resetFile = _args[i]);\r\n\t\t\t\t} else if (_args[i].equals(\"-_initialState\")) {\r\n\t\t\t\t\tstateRead = readState(resetFile = _args[++i]);\r\n\t\t\t\t} else if (_args[i].equals(\"-_noDescription\")) {\r\n\t\t\t\t\tshowDescriptionOnStart = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "b6714327a45f29e2a15ef3dde1943059", "score": "0.6187694", "text": "private boolean parseArguments(final String[] args) {\r\n final Args arg = new Args(args);\r\n boolean ok = true;\r\n try {\r\n while(arg.more() && ok) {\r\n if(arg.dash()) {\r\n final char ca = arg.next();\r\n if(ca == 'u') {\r\n final String[] s = new String[args.length - 1];\r\n System.arraycopy(args, 1, s, 0, s.length);\r\n updateTimes(s);\r\n return false;\r\n } else if(ca == 'x') {\r\n convertTopics();\r\n return false;\r\n }\r\n\r\n ok = false;\r\n }\r\n }\r\n session = new ClientSession(ctx);\r\n session.execute(new Set(Prop.INFO, true));\r\n } catch(final Exception ex) {\r\n ok = false;\r\n Main.errln(\"Please run BaseXServer for using server mode.\");\r\n ex.printStackTrace();\r\n }\r\n \r\n if(!ok) {\r\n Main.outln(\"Usage: \" + Main.name(this) + \" [options]\" + NL +\r\n \" -u[...] update submission times\" + NL +\r\n \" -x convert queries\");\r\n }\r\n return ok;\r\n }", "title": "" }, { "docid": "f4a5db78ef25ab3115f1b05434d04b23", "score": "0.6162954", "text": "@OverridingMethodsMustInvokeSuper\n protected Tool parseArguments(String[] args) throws Exception {\n for (String arg : options(args)) {\n if (arg.equals(\"--debug\")) {\n checkArgument(verbosity == Level.DEFAULT, \"Specify one of: --quiet --verbose --debug\");\n setVerbosity(Level.DEBUG);\n } else if (arg.equals(\"--verbose\")) {\n checkArgument(verbosity == Level.DEFAULT, \"Specify one of: --quiet --verbose --debug\");\n setVerbosity(Level.VERBOSE);\n } else if (arg.equals(\"--quiet\")) {\n checkArgument(verbosity == Level.DEFAULT, \"Specify one of: --quiet --verbose --debug\");\n setVerbosity(Level.QUIET);\n } else if (arg.equals(\"--pretty\")) {\n setPretty(true);\n } else {\n return unknownOption(arg);\n }\n }\n return this;\n }", "title": "" }, { "docid": "a09d2ed5b4fbd470b92adf22a4d0d55c", "score": "0.6160656", "text": "static Configuration parseArguments(String[] args) {\n \n // Global config\n GlobalConfiguration globalConfig = new GlobalConfiguration();\n \n // Module-specific options.\n List<ModuleSpecificProperty> moduleConfigs = new LinkedList<>();\n \n \n // For each argument...\n for (String arg : args) {\n arg = StringUtils.removeStart( arg, \"--\" );\n \n if( arg.equals(\"help\") ){\n Utils.writeHelp();\n return null;\n }\n if( arg.startsWith(\"as5.dir=\") || arg.startsWith(\"eap5.dir=\") || arg.startsWith(\"src.dir=\") ) {\n globalConfig.getAS5Config().setDir(StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"dest.dir=\") || arg.startsWith(\"eap6.dir=\") || arg.startsWith(\"dest.dir=\") || arg.startsWith(\"wfly.dir=\") ) {\n globalConfig.getAS7Config().setDir(StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"as5.profile=\") || arg.startsWith(\"eap5.profile=\") || arg.startsWith(\"src.profile=\") ) {\n globalConfig.getAS5Config().setProfileName(StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"dest.confPath=\") || arg.startsWith(\"eap6.confPath=\") || arg.startsWith(\"dest.conf.file=\") || arg.startsWith(\"wfly.confPath=\") ) {\n globalConfig.getAS7Config().setConfigPath(StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"dest.mgmt=\") || arg.startsWith(\"eap6.mgmt=\") || arg.startsWith(\"dest.mgmt=\") || arg.startsWith(\"wfly.mgmt=\") ) {\n parseMgmtConn( StringUtils.substringAfter(arg, \"=\"), globalConfig.getAS7Config() );\n continue;\n }\n\n if( arg.startsWith(\"app.path=\") ) {\n globalConfig.addDeploymentPath( StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"valid.skip\") ) {\n globalConfig.setSkipValidation(true);\n continue;\n }\n\n if( arg.equals(\"dry\") || arg.equals(\"dryRun\") || arg.equals(\"dry-run\") ) {\n globalConfig.setDryRun(true);\n continue;\n }\n \n if( arg.equals(\"test\") || arg.equals(\"testRun\") || arg.equals(\"test-run\") ) {\n globalConfig.setTestRun(true);\n continue;\n }\n \n if( arg.startsWith(\"report.dir=\") ) {\n globalConfig.setReportDir( StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n if( arg.startsWith(\"migrators.dir=\") || arg.startsWith(\"migr.dir=\") ) {\n globalConfig.setExternalMigratorsDir( StringUtils.substringAfter(arg, \"=\"));\n continue;\n }\n\n // User variables available in EL and Groovy in external migrators.\n if (arg.startsWith(\"userVar.\")) {\n \n // --userVar.<property.name>=<value>\n String rest = StringUtils.substringAfter(arg, \".\");\n String name = StringUtils.substringBefore(rest, \"=\");\n String value = StringUtils.substringAfter(rest, \"=\");\n \n globalConfig.getUserVars().put( name, value );\n }\n \n\n // Module-specific configurations.\n // TODO: Process by calling IMigrator instances' callback.\n if (arg.startsWith(\"conf.\")) {\n \n // --conf.<module>.<property.name>[=<value>]\n String conf = StringUtils.substringAfter(arg, \".\");\n String module = StringUtils.substringBefore(conf, \".\");\n String propName = StringUtils.substringAfter(conf, \".\");\n int pos = propName.indexOf('=');\n String value = null;\n if( pos == -1 ){\n value = propName.substring(pos+1);\n propName = propName.substring(0, pos);\n }\n \n moduleConfigs.add( new ModuleSpecificProperty(module, propName, value));\n }\n\n \n // Unrecognized.\n \n if( ! arg.contains(\"=\") ){\n // TODO: Could be AS5 or AS7 dir.\n }\n \n System.err.println(\"Warning: Unknown argument: \" + arg + \" !\");\n Utils.writeHelp();\n continue;\n }\n\n Configuration configuration = new Configuration();\n configuration.setModuleConfigs(moduleConfigs);\n configuration.setGlobalConfig(globalConfig);\n \n return configuration;\n \n }", "title": "" }, { "docid": "2eeeefb1fd0fb83a14407a6873e8a7ea", "score": "0.61471397", "text": "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'a': ucscGeneTableFileAll = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 'g': ucscGeneTableFileSelect = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 'b': barDirectory = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 'r': rApp = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 's': threshold = Float.parseFloat(args[i+1]); i++; break;\n\t\t\t\t\tcase 'e': extension = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'f': extensionToSegment = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'x': bpPositionOffSetBar = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'y': bpPositionOffSetRegion = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: Misc.printExit(\"\\nError: unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//parse text\n\t\tselectName = Misc.removeExtension(ucscGeneTableFileSelect.getName());\n\n\t}", "title": "" }, { "docid": "976bcb15a63f60d6ab741139ea518e2d", "score": "0.6144465", "text": "public static Arguments parseArgs(String args[]) {\n // Set defaults\n ArgumentBuilder builder = new ArgumentBuilder();\n builder.setFileName(args[0]);\n builder.setMode(RunMode.LOCAL);\n builder.setExampleSize(2);\n builder.setFileTemplate(FileTemplate.JAVA_DEFAUlT);\n\n for (int i = 1; i < args.length; i++) {\n switch (args[i]) {\n case \"-h\":\n case \"-help\":\n help();\n break;\n case \"-size\":\n case \"-s\":\n builder.setExampleSize(Integer.parseInt(args[i + 1]));\n i++;\n break;\n case \"-kattis\":\n builder.setMode(RunMode.KATTIS);\n break;\n case \"-local\":\n builder.setMode(RunMode.LOCAL);\n break;\n case \"-template\":\n case \"-t\":\n builder.setFileTemplate(FileTemplate.valueOf(args[i + 1].toUpperCase()));\n i++;\n break;\n }\n }\n if (builder.getMode() == RunMode.LOCAL && builder.isExampleSizeSetManual()) {\n System.out.println(\"No example size set, using default of 2.\");\n }\n return builder.build();\n }", "title": "" }, { "docid": "85306fbaa9d9894fb6e829b47c678ce7", "score": "0.61425525", "text": "private void processArgs(String[] args) throws MalformedURLException, JAXBException, IOException, URISyntaxException, Exception {\n Options options = cli.getOptions(); \n options.addOption(\"collection\", true, \"Data Collection that this Fulfillment request applies to. Defaults to 'default'.\");\n Option idOpt = new Option(\"result_id\", true, \"The result_id being requested.\");\n idOpt.setRequired(true);\n options.addOption(idOpt);\n options.addOption(\"result_part_number\", true, \"The part number being requested. Defaults to '1'.\");\n \n cli.parse(args);\n CommandLine cmd = cli.getCmd();\n\n // Handle default values.\n String collection = cmd.hasOption(\"collection\") ? cmd.getOptionValue(\"collection\") : \"default\";\n int part = cmd.hasOption(\"result_part_number\") ? Integer.parseInt(cmd.getOptionValue(\"result_part_number\")) : 1;\n \n taxiiClient = generateClient(cmd);\n \n // Prepare the message to send.\n PollFulfillment request = factory.createPollFulfillment()\n .withMessageId(MessageHelper.generateMessageId())\n .withCollectionName(collection)\n .withResultId(cmd.getOptionValue(\"result_id\"))\n .withResultPartNumber(BigInteger.valueOf(part)); \n\n doCall(cmd, request);\n \n }", "title": "" }, { "docid": "1cea4840cdee92445d5147cd9cc9195c", "score": "0.6136268", "text": "public void readArgs(String[] args)\n {\n for (int i = 0; i < args.length; i++)\n {\n open(args[i]);\n }\n setTitle();\n }", "title": "" }, { "docid": "870a670fd4f39b435ab81accfa80adbb", "score": "0.6092133", "text": "private static void validateCommandLineArguments(AutomationContext context, String extendedCommandLineArgs[])\r\n\t{\r\n\t\t//fetch the argument configuration types required\r\n\t\tCollection<IPlugin<?, ?>> plugins = PluginManager.getInstance().getPlugins();\r\n \t\tList<Class<?>> argBeanTypes = plugins.stream()\r\n\t\t\t\t.map(config -> config.getArgumentBeanType())\r\n\t\t\t\t.filter(type -> (type != null))\r\n\t\t\t\t.collect(Collectors.toList());\r\n\t\t\r\n\t\targBeanTypes = new ArrayList<>(argBeanTypes);\r\n\t\t\r\n\t\t//Add basic arguments type, so that on error its properties are not skipped in error message\r\n\t\targBeanTypes.add(AutoxCliArguments.class);\r\n\r\n\t\t//if any type is required creation command line options and parse command line arguments\r\n\t\tCommandLineOptions commandLineOptions = OptionsFactory.buildCommandLineOptions(argBeanTypes.toArray(new Class<?>[0]));\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tcommandLineOptions.parseBeans(extendedCommandLineArgs);\r\n\t\t} catch(MissingArgumentException e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\r\n\t\t\tSystem.err.println(commandLineOptions.fetchHelpInfo(COMMAND_SYNTAX));\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch(Exception ex)\r\n\t\t{\r\n\t\t\tex.printStackTrace();\r\n\t\t\tSystem.err.println(commandLineOptions.fetchHelpInfo(COMMAND_SYNTAX));\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ad8ea7f16a1e88e75a908e2534006281", "score": "0.607635", "text": "public void processArgs(final String args[]) throws OptionsException {\n\t\tOptionContainer option = null;\n\t\tint quant = -1;\n\t\tint qcount = 0;\n\t\tboolean moreData = false;\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tif (option == null) {\n\t\t\t\tif (args[i].charAt(0) != '-')\n\t\t\t\t\tthrow new OptionsException(\"Unexpected value: \" + args[i]);\n\n\t\t\t\t// see what kind of argument we have\n\t\t\t\tif (args[i].length() == 1)\n\t\t\t\t\tthrow new OptionsException(\"Illegal argument: '-'\");\n\n\t\t\t\tif (args[i].charAt(1) == '-') {\n\t\t\t\t\t// we have a long argument\n\t\t\t\t\t// since we don't accept inline values we can take\n\t\t\t\t\t// everything left in the string as argument, unless\n\t\t\t\t\t// there is a = in there...\n\t\t\t\t\tfinal String tmp = args[i].substring(2);\n\t\t\t\t\tfinal int pos = tmp.indexOf('=');\n\t\t\t\t\tif (pos == -1) {\n\t\t\t\t\t\toption = opts.get(tmp);\n\t\t\t\t\t\tmoreData = false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\toption = opts.get(tmp.substring(0, pos));\n\t\t\t\t\t\t// modify the option a bit so the code below\n\t\t\t\t\t\t// handles the moreData correctly\n\t\t\t\t\t\targs[i] = \"-?\" + tmp.substring(pos + 1);\n\t\t\t\t\t\tmoreData = true;\n\t\t\t\t\t}\n\t\t\t\t} else if (args[i].charAt(1) == 'X') {\n\t\t\t\t\t// extra argument, same as long argument\n\t\t\t\t\tfinal String tmp = args[i].substring(1);\n\t\t\t\t\tfinal int pos = tmp.indexOf('=');\n\t\t\t\t\tif (pos == -1) {\n\t\t\t\t\t\toption = opts.get(tmp);\n\t\t\t\t\t\tmoreData = false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\toption = opts.get(tmp.substring(0, pos));\n\t\t\t\t\t\t// modify the option a bit so the code below\n\t\t\t\t\t\t// handles the moreData correctly\n\t\t\t\t\t\targs[i] = \"-?\" + tmp.substring(pos + 1);\n\t\t\t\t\t\tmoreData = true;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// single char argument\n\t\t\t\t\toption = opts.get(\"\" + args[i].charAt(1));\n\t\t\t\t\t// is there more data left in the argument?\n\t\t\t\t\tmoreData = args[i].length() > 2 ? true : false;\n\t\t\t\t}\n\n\t\t\t\tif (option != null) {\n\t\t\t\t\t// make sure we overwrite previously set arguments\n\t\t\t\t\toption.resetArguments();\n\t\t\t\t\tfinal int card = option.getCardinality();\n\t\t\t\t\tif (card == CAR_ONE) {\n\t\t\t\t\t\tif (moreData) {\n\t\t\t\t\t\t\toption.addArgument(args[i].substring(2));\n\t\t\t\t\t\t\toption = null;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tquant = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (card == CAR_ZERO_ONE) {\n\t\t\t\t\t\toption.setPresent();\n\t\t\t\t\t\tqcount = 1;\n\t\t\t\t\t\tquant = 2;\n\t\t\t\t\t\tif (moreData) {\n\t\t\t\t\t\t\toption.addArgument(args[i].substring(2));\n\t\t\t\t\t\t\toption = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (card == CAR_ZERO_MANY) {\n\t\t\t\t\t\toption.setPresent();\n\t\t\t\t\t\tqcount = 1;\n\t\t\t\t\t\tquant = -1;\n\t\t\t\t\t\tif (moreData) {\n\t\t\t\t\t\t\toption.addArgument(args[i].substring(2));\n\t\t\t\t\t\t\tqcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (card == CAR_ZERO) {\n\t\t\t\t\t\toption.setPresent();\n\t\t\t\t\t\toption = null;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthrow new OptionsException(\"Unknown argument: \" + args[i]);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// store the `value'\n\t\t\t\toption.addArgument(args[i]);\n\t\t\t\tif (++qcount == quant) {\n\t\t\t\t\tquant = 0;\n\t\t\t\t\tqcount = 0;\n\t\t\t\t\toption = null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "55da18b724e0e29e847fa84792b0d83c", "score": "0.6066289", "text": "private static ArgumentsPair parseArgs(String args[]) {\n String allArgs[] = new String[] {\n PARAMETER_NEW_FORMAT,\n PARAMETER_TRANSFORM,\n PARAMETER_BASE,\n PARAMETER_BITS,\n PARAMETER_BYTES,\n PARAMETER_DIFFERENCE,\n PARAMETER_STRENGTH,\n PARAMETER_TIME\n };\n Set<String> allArgsSet = new HashSet<>(Arrays.asList(allArgs));\n ArgumentsPair argumentsPair = new ArgumentsPair();\n\n for (int i = 0; i < args.length; i++) {\n String param = args[i].substring(1);\n if (allArgsSet.contains(param)) {\n argumentsPair.paramsAdd(param);\n } else if (param.equals(PARAMETER_ALL)) {\n argumentsPair.paramsAddAll(allArgsSet);\n argumentsPair.getParams().remove(PARAMETER_NEW_FORMAT);\n argumentsPair.getParams().remove(PARAMETER_TRANSFORM);\n } else if (param.equals(PARAMETER_GENERATE)) {\n if (args.length <= i + 1) {\n System.err.println(\"Wrong -\" + PARAMETER_GENERATE + \" parameter. Use -\" + PARAMETER_GENERATE + \" keyBitLength. (keyBitLength = 512|1024)\");\n }\n else {\n int keyBitLength = Integer.valueOf(args[++i]);\n switch (keyBitLength) {\n case 1024:\n GENERATE_KEYS = true;\n GENERATED_PRIME_BIT_LENGTH = 512;\n break;\n case 512:\n GENERATE_KEYS = true;\n GENERATED_PRIME_BIT_LENGTH = 256;\n break;\n default:\n System.err.println(\"Wrong -\" + PARAMETER_GENERATE + \" parameter. Use -\" + PARAMETER_GENERATE + \" keyBitLength. (keyBitLength = 512|1024)\");\n }\n }\n } else {\n argumentsPair.filesAdd(args[i]);\n }\n }\n return argumentsPair;\n }", "title": "" }, { "docid": "6145dccbe3e0aad02c70f4ec95e11aca", "score": "0.6061367", "text": "private static TaskResultAnalysis extractArguments(String[] args) {\r\n\t\tif (args == null || args.length < 1)\r\n\t\t\treturn null;\r\n\t\tFile directory = null;\r\n\t\tFile output = null;\r\n\t\tString workflow = null;\r\n\t\tString header = null;\r\n\t\tboolean printTasks = false;\r\n\t\tfor (int i=0; i<args.length; i++) {\r\n\t\t\tString argument = args[i];\r\n\t\t\tif (argument == null)\r\n\t\t\t\treturn null;\r\n\t\t\telse if (argument.equals(\"-printTasks\"))\r\n\t\t\t\tprintTasks = true;\r\n\t\t\telse {\r\n\t\t\t\ti++;\r\n\t\t\t\tif (i >= args.length)\r\n\t\t\t\t\treturn null;\r\n\t\t\t\tString value = args[i];\r\n\t\t\t\tif (argument.equals(\"-directory\"))\r\n\t\t\t\t\tdirectory = new File(value);\r\n\t\t\t\telse if (argument.equals(\"-output\"))\r\n\t\t\t\t\toutput = new File(value);\r\n\t\t\t\telse if (argument.equals(\"-workflow\"))\r\n\t\t\t\t\tworkflow = value;\r\n\t\t\t\telse if (argument.equals(\"-header\"))\r\n\t\t\t\t\theader = value;\r\n\t\t\t\telse return null;\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treturn new TaskResultAnalysis(\r\n\t\t\t\toutput, directory, workflow, header, printTasks);\r\n\t\t} catch (Throwable error) {\r\n\t\t\tSystem.err.println(error.getMessage());\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ea42b37c6dcbbbd0ed8e1b8b23a385b6", "score": "0.60414255", "text": "private static void processArguments(String[] args) {\r\n if (args.length < 2) {\r\n IO.displayGUI(args.length + \" arguments provided.\\nPlease provide input and output files through the GUI.\");\r\n IO.chooseFiles(); // choose files with GUI\r\n } else {\r\n // Open file streams\r\n IO.openStream(args[0], args[1]);\r\n }\r\n }", "title": "" }, { "docid": "188fb376bf1dc4caee4d2d8bc28f697c", "score": "0.6039551", "text": "private void scanArgs(String [] args)\n{\n int start = 0;\n if (args.length > 0 && args[0].startsWith(\"-P\")) start = 1;\n\n while (args.length >= start + 2) {\n if (args[start].startsWith(\"-d\") && lock_file == null) { // -d <lock data file>\n\t lock_file = new File(args[start+1]);\n\t start += 2;\n }\n else if (args[start].startsWith(\"-i\") && lock_file == null) { // -i <input>\n\t lock_file = new File(args[start+1] + \".out\");\n\t start += 2;\n }\n else if (args[start].startsWith(\"-o\") && output_file == null) { // -o <output>\n\t output_file = new File(args[start+1]);\n }\n else if (args[start].startsWith(\"-t\") && input_file == null) { // -t <trace file>\n\t input_file = new File(args[start+1]);\n }\n else break;\n }\n if (args.length >= start+1) {\n if (args[start].startsWith(\"-r\")) ++start;\n }\n\n // handle socket connection and dylute as in DylockRunner\n\n if (lock_file == null) badArgs();\n if (output_file == null) {\n String fnm = lock_file.getPath();\n int idx = fnm.lastIndexOf(\".\");\n if (idx >= 0) output_file = new File(fnm.substring(0,idx) + \".pats\");\n else output_file = new File(fnm + \".pats\");\n }\n if (input_file == null) {\n String fnm = lock_file.getPath();\n int idx = fnm.lastIndexOf(\".\");\n if (idx >= 0) input_file = new File(fnm.substring(0,idx) + \".csv\");\n else input_file = new File(fnm + \".csv\");\n if (!input_file.exists()) input_file = null;\n }\n}", "title": "" }, { "docid": "b8f09a0a9e74e4e80cf2fce02357aed7", "score": "0.6034701", "text": "private void parseCommandLine(final String[] args) {\n if (args.length == 0) {\r\n System.out.println(usage);\r\n System.exit(1);\r\n }\r\n // One parameter (Run Code Metrics without Code Churn)\r\n else if (args.length == 1) {\r\n newFile = new File(args[0]);\r\n\r\n if (newFile.isDirectory()) {\r\n // One directory\r\n newFiles.parseSrcDir(newFile);\r\n } else if (newFile.isFile()) {\r\n // One file\r\n newFiles.addSrcFile(newFile);\r\n } else {\r\n System.out.println(usage);\r\n System.exit(1);\r\n }\r\n }\r\n // Two parameters calculate all Code Metrics\r\n else if (args.length == 2) {\r\n oldFile = new File(args[0]);\r\n newFile = new File(args[1]);\r\n calculateCodeChurn = true;\r\n\r\n if (oldFile.isDirectory() && newFile.isDirectory()) {\r\n // Two directories\r\n newFiles.parseSrcDir(newFile);\r\n oldFiles.parseSrcDir(oldFile);\r\n newFiles.setPath(newFile.getAbsolutePath());\r\n oldFiles.setPath(oldFile.getAbsolutePath());\r\n } else if (oldFile.isFile() && newFile.isFile()) {\r\n // Two files\r\n oldFiles.addSrcFile(oldFile);\r\n newFiles.addSrcFile(newFile);\r\n } else {\r\n System.out.println(usage);\r\n System.exit(1);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "b2295bf426959497dbe46ee6fee12d44", "score": "0.603292", "text": "protected int parseOptions(final String[] args) {\n\t\tOptions options = new Options();\n\t\toptions.addOption(\"a\", \"start\", true, \"Start an asynchronous task\");\n\t\toptions.addOption(\"h\", \"hostname\", true, \"Specify the hostname to connect to\");\n\t\toptions.addOption(\"l\", \"list\", false, \"List the available asynchronous tasks\");\n\t\toptions.addOption(\"o\", \"stop\", true, \"Stop an asynchronous task\");\n\t\toptions.addOption(\"p\", \"port\", true, \"Specify the port to connect to\");\n\t\toptions.addOption(\"i\", \"identifier\", true, \"Specify the identifier to synchronize\");\n\t\toptions.addOption(\"t\", \"attributes\", true, \"Specify the attributes pivot to synchronize (comma separated, identifier parameter required)\");\n\t\toptions.addOption(\"s\", \"status\", true, \"Get a task status\");\n\n\t\tCommandLineParser parser = new GnuParser();\n\n\t\ttry {\n\t\t\tCommandLine cmdLine = parser.parse(options, args);\n\t\t\tif ( cmdLine.hasOption(\"a\") ) {\n\t\t\t\toperation = OperationType.START;\n\t\t\t\ttaskName = cmdLine.getOptionValue(\"a\");\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"l\") ) {\n\t\t\t\toperation = OperationType.TASKS_LIST;\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"o\") ) {\n\t\t\t\toperation = OperationType.STOP;\n\t\t\t\ttaskName = cmdLine.getOptionValue(\"o\");\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"s\") ) {\n\t\t\t\toperation = OperationType.STATUS;\n\t\t\t\ttaskName = cmdLine.getOptionValue(\"s\");\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"i\") ) {\n\t\t\t\tidToSync = cmdLine.getOptionValue(\"i\");\n\t\t\t\tif(cmdLine.hasOption(\"t\")) {\n\t\t\t\t\tStringTokenizer attrsStr = new StringTokenizer(cmdLine.getOptionValue(\"t\"),\",\");\n\t\t\t\t\twhile(attrsStr.hasMoreTokens()) {\n\t\t\t\t\t\tString token = attrsStr.nextToken();\n\t\t\t\t\t\tif(token.contains(\"=\")) {\n\t\t\t\t\t\t\tattrsToSync.put(token.substring(0, token.indexOf(\"=\")), token.substring(token.indexOf(\"=\")+1));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tLOGGER.error(\"Unknown attribute name=value couple in \\\"{}\\\". Please check your parameters !\", token);\n\t\t\t\t\t\t\tprintHelp(options);\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (cmdLine.hasOption(\"t\") ) {\n\t\t\t\tLOGGER.error(\"Attributes specified, but missing identifier !\");\n\t\t\t\tprintHelp(options);\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"h\") ) {\n\t\t\t\thostname = cmdLine.getOptionValue(\"h\");\n\t\t\t} else {\n\t\t\t\thostname = \"localhost\";\n\t\t\t\tLOGGER.info(\"Hostname parameter not specified, using {} as default value.\", hostname);\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"p\") ) {\n\t\t\t\tport = cmdLine.getOptionValue(\"p\");\n\t\t\t} else {\n\t\t\t\tport = \"1099\";\n\t\t\t\tLOGGER.info(\"TCP Port parameter not specified, using {} as default value.\", port);\n\t\t\t}\n\t\t\tif (operation == OperationType.UNKNOWN ) {\n\t\t\t\tprintHelp(options);\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t} catch (ParseException e) {\n\t\t\tLOGGER.error(\"Unable to parse the options ({})\", e.toString());\n\t\t\tLOGGER.debug(e.toString(), e);\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "8113f739b6d9a46002da5118f323b682", "score": "0.60288924", "text": "public static String parseInput(String[] args) {\n\t\treturn String.join(\" \", args);\n\t}", "title": "" }, { "docid": "c9e826ea21511ef4af8be9d0ac7ebe92", "score": "0.6023744", "text": "@Test\r\n public void testCheckInput() throws Exception {\r\n System.out.println(\"checkInput\");\r\n System.out.println(\"test1\");\r\n String[] arguments = {\"1k2h3u\",\"test.txt\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\"};\r\n CommandLineArgumentParser instance =new CommandLineArgumentParser(arguments);\r\n String expResult = \"correct\";\r\n String result = instance.checkInput(arguments);\r\n assertEquals(expResult, result);\r\n \r\n System.out.println(\"test 2\");\r\n String[] arguments2 = {\"1k\",\"test.txt\",\"1\"};\r\n String expResult2 = \"correct\";\r\n String result2 = instance.checkInput(arguments2);\r\n assertEquals(expResult2, result2);\r\n \r\n System.out.println(\"test 3\");\r\n String[] arguments3 = {\"chat.txt\"};\r\n String expResult3 = \"correct\";\r\n String result3 = instance.checkInput(arguments3);\r\n assertEquals(expResult3, result3);\r\n \r\n System.out.println(\"test 4\");\r\n String[] arguments4 = {\"1k2h3u\",\"test.txt\",\"1\",\"2\",\"3\",\"4\",\"5\"};\r\n String expResult4 = \"Incorrect number of arguments\";\r\n String result4 = instance.checkInput(arguments4);\r\n assertEquals(expResult4, result4);\r\n \r\n System.out.println(\"test 5\");\r\n String[] arguments5 = {};\r\n String expResult5 = \"Need at least one argument with input file path\";\r\n String result5 = instance.checkInput(arguments5);\r\n assertEquals(expResult5, result5);\r\n }", "title": "" }, { "docid": "16f5e164d04112339745927346a9663d", "score": "0.6013073", "text": "@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }", "title": "" }, { "docid": "7dc513d8c67fbfd896dc401efeb3139b", "score": "0.5982888", "text": "private void scanArgs(String [] args)\n{\n for (int i = 0; i < args.length; ++i) {\n if (args[i].startsWith(\"-\")) {\n\t badArgs();\n }\n else badArgs();\n }\n}", "title": "" }, { "docid": "42daecc1ccff3784c136785fd4bfd65b", "score": "0.5982875", "text": "protected void handleArgs(String[] argv) throws IOException {\n String url = null, path = null, com = null;\n char c;\n boolean got_com = false;\n boolean error = false;\n edu.hkust.clap.monitor.Monitor.loopBegin(750);\nfor (int i = 0; i < argv.length; i++) { \nedu.hkust.clap.monitor.Monitor.loopInc(750);\n{\n if (argv[i].charAt(0) != '-' || argv[i].length() != 2) {\n error = true;\n break;\n }\n c = argv[i].charAt(1);\n switch(c) {\n case 'c':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n com = argv[++i].toUpperCase() + \"\\0\";\n got_com = true;\n break;\n case 'u':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n url = argv[++i];\n break;\n case 'p':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n path = argv[++i];\n break;\n case 's':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n _host_name = argv[++i];\n break;\n case 'P':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n try {\n _port = Integer.parseInt(argv[++i]);\n } catch (Exception e) {\n System.err.println(\"Invalid port number \\\"\" + argv[i] + \"\\\"\");\n _port = -1;\n error = true;\n }\n break;\n case 'v':\n ++_verbose;\n break;\n case 'h':\n usage();\n System.exit(OK);\n case 'V':\n version();\n System.exit(OK);\n default:\n error = true;\n }\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(750);\n\n if (!got_com) {\n System.err.println(\"No command specified\");\n error = true;\n }\n if (error) {\n usage();\n System.exit(FAILED);\n }\n if (_port == -1) {\n _port = PushCacheFilter.DEFAULT_PORT_NUM;\n }\n if (_host_name.length() == 0) {\n _host_name = DEFAULT_SERVER;\n }\n int ev = 0;\n try {\n switch(PushCacheProtocol.instance().parseCommand(com)) {\n case PushCacheProtocol.ADD:\n add(path, url);\n break;\n case PushCacheProtocol.DEL:\n del(url);\n break;\n case PushCacheProtocol.PRS:\n if (!isPresent(url)) {\n ev = 1;\n }\n break;\n default:\n simpleCommand(com);\n }\n } catch (IllegalArgumentException e) {\n System.err.println(e.getMessage());\n usage();\n ev = FAILED;\n }\n sendBye();\n System.exit(ev);\n }", "title": "" }, { "docid": "e6be66740b0bd50e431068ab34f06ec7", "score": "0.59658337", "text": "private void handleCommandLineArgs(final String[] args) {\n if (args.length == 1) {\n final String value;\n if (args[0].startsWith(ToolArguments.MAP_FOLDER)) {\n value = getValue(args[0]);\n } else {\n value = args[0];\n }\n final File mapFolder = new File(value);\n if (mapFolder.exists()) {\n mapFolderLocation = mapFolder;\n } else {\n log.info(\"Could not find directory: \" + value);\n }\n } else if (args.length > 1) {\n log.info(\"Only argument allowed is the map directory.\");\n }\n // might be set by -D\n if (mapFolderLocation == null || mapFolderLocation.length() < 1) {\n final String value = System.getProperty(ToolArguments.MAP_FOLDER);\n if (value != null && value.length() > 0) {\n final File mapFolder = new File(value);\n if (mapFolder.exists()) {\n mapFolderLocation = mapFolder;\n } else {\n log.info(\"Could not find directory: \" + value);\n }\n }\n }\n }", "title": "" }, { "docid": "6fc9eb64f74b0839446af4b82ef06497", "score": "0.59605044", "text": "protected void parse(CommandLine cli)\n {\n // Application ID option\n if(hasOption(cli, Opt.APPLICATION_ID, false))\n {\n applicationId = Long.parseLong(getOptionValue(cli, Opt.APPLICATION_ID));\n logOptionValue(Opt.APPLICATION_ID, applicationId);\n }\n\n // Server ID option\n if(hasOption(cli, Opt.SERVER_ID, false))\n {\n serverId = Long.parseLong(getOptionValue(cli, Opt.SERVER_ID));\n logOptionValue(Opt.SERVER_ID, serverId);\n }\n\n // Category option\n if(hasOption(cli, Opt.CATEGORY, true))\n {\n category = getOptionValue(cli, Opt.CATEGORY);\n logOptionValue(Opt.CATEGORY, category);\n }\n\n // Name option\n if(hasOption(cli, Opt.NAME, true))\n {\n name = getOptionValue(cli, Opt.NAME);\n logOptionValue(Opt.NAME, name);\n }\n }", "title": "" }, { "docid": "f6d455efc6065ac41504f5e18a4db1f7", "score": "0.5958862", "text": "public static CommandLine parseCommandLine(String[] args) {\n Options options = getOptions();\n CommandLineParser cmdLineParser = new DefaultParser();\n\n CommandLine cmdLine = null;\n try {\n cmdLine = cmdLineParser.parse(options, args);\n } catch (ParseException pe) {\n printHelp(options);\n System.exit(1);\n }\n\n if (cmdLine == null) {\n printHelp(options);\n System.exit(1);\n }\n\n if (cmdLine.hasOption(\"help\")) {\n printHelp(options);\n System.exit(0);\n }\n\n return cmdLine;\n }", "title": "" }, { "docid": "8a9762d725facbf096a478de17ebd61a", "score": "0.59427434", "text": "static void tryReadArgs(String args[]){\n\t\tif(args.length > 0) {\n\t\t\tip = args[0];\n\t\t}\n\t\tif(args.length > 1) {\n\t\t\tport = Integer.parseInt(args[1]);\n\t\t}\n\t}", "title": "" }, { "docid": "2219c22d6b25157d63c58856e895e973", "score": "0.59193814", "text": "public static void main(String args[]) throws ParseException {\n }", "title": "" }, { "docid": "b59df3b0ae1f0fbbea1bd1a40a1d30b8", "score": "0.59165156", "text": "public int parseArgs(String[] args, int i) {\r\n for (; i<args.length; ++i) {\r\n if (args[i].equals(\"-omitDeclaration\")) {\r\n setOmitDeclaration(true);\r\n }\r\n else if (args[i].equals(\"-omitEncoding\")) {\r\n setOmitEncoding(true);\r\n }\r\n else if (args[i].equals(\"-indent\")) {\r\n setIndent(args[++i]);\r\n }\r\n else if (args[i].startsWith(\"-expandEmpty\")) {\r\n setExpandEmptyElements(true);\r\n }\r\n else if (args[i].equals(\"-encoding\")) {\r\n setEncoding(args[++i]);\r\n }\r\n else if (args[i].equals(\"-newlines\")) {\r\n setNewlines(true);\r\n }\r\n else if (args[i].equals(\"-lineSeparator\")) {\r\n setLineSeparator(args[++i]);\r\n }\r\n else if (args[i].equals(\"-trimAllWhite\")) {\r\n setTrimAllWhite(true);\r\n }\r\n else if (args[i].equals(\"-textTrim\")) {\r\n setTextTrim(true);\r\n }\r\n else if (args[i].equals(\"-textNormalize\")) {\r\n setTextNormalize(true);\r\n }\r\n else {\r\n return i;\r\n }\r\n }\r\n return i;\r\n }", "title": "" }, { "docid": "1630b87a46dac7c11f8b8cd218803232", "score": "0.5880206", "text": "public ApplicationInputResult processInput(String[] args) {\n List<String> invalidInputs = new ArrayList<>();\n CommandLine clp;\n try {\n // Use the CLI parser to help us parse the input\n clp = new DefaultParser().parse(ALL_INPUT_OPTIONS, args);\n String payrollFile = null;\n if (clp.hasOption(FILE_INPUT_OPTION.getOpt())) {\n payrollFile = clp.getOptionValue(FILE_INPUT_OPTION.getOpt());\n }\n // Let's make sure we got a file\n if (!StringUtils.isBlank(payrollFile)) {\n return new ApplicationInputResult(payrollFile); // all good\n } else {\n invalidInputs.add(FILE_INPUT_OPTION.getOpt()); // add this missing argument to the result\n }\n } catch (MissingOptionException e) {\n LOGGER.error(\"The required arguments {} were missing\", e.getMissingOptions());\n List<?> missingOptions = e.getMissingOptions();\n missingOptions.forEach( missingOption -> invalidInputs.add(missingOption.toString()));\n } catch (MissingArgumentException e) {\n LOGGER.error(\"The required argument [{}] is missing its value\", e.getOption().getOpt());\n invalidInputs.add(e.getOption().getOpt());\n } catch (ParseException pe) {\n LOGGER.error(\"An exception occurred while parsing command line read of arguments: {}{}\", Arrays.toString(args), pe);\n }\n return new ApplicationInputResult(invalidInputs);\n }", "title": "" }, { "docid": "7801ee939ee7b3e20c38201d677b9452", "score": "0.5878888", "text": "@Test\n public void correctArgumentsWithoutFiltersReturnsArguments() {\n String projectPath = \"/pathI/\";\n String resultPath = \"/pathO/\";\n String apkPath = apkFile.getAbsolutePath();\n String[] inputArgs = new String[] {\"-i\", projectPath, \"-o\", resultPath, \n \"-a\", apkPath};\n ArgumentReader sut = new ArgumentReader(inputArgs);\n\n Arguments args = sut.read();\n\n assertThat(args, notNullValue());\n assertThat(args.getFiltersPath(), nullValue());\n assertThat(args.getProjectPath(), equalTo(projectPath));\n assertThat(args.getResultPath(), equalTo(resultPath));\n assertThat(args.getApkFilePath(), equalTo(apkPath));\n }", "title": "" }, { "docid": "0a96c8f70b751292c3506f21219796bd", "score": "0.58694524", "text": "private boolean parseArguments(String input) {\r\n\t\tString arguments[] = input.split(\" \");\r\n\t\tif (arguments.length == TWO_ARGUMENTS) {\r\n\t\t\tmailbox = arguments[ARRAY_SECOND_ELEMENT].trim();\r\n\t\t\tpassword = arguments[ARRAY_THIRD_ELEMENT].trim();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\t\t\r\n\t}", "title": "" }, { "docid": "8ba54bfb59f9b110c19e2ed01abe50c3", "score": "0.58636475", "text": "ImmutableList<String> mainArgs();", "title": "" }, { "docid": "bfbb9dd0ebc8cfb4b91d96101233ba58", "score": "0.5856358", "text": "static public void main(String[] args)\n {\n try {\n ParserModel parser = new ParserModel();\n\n Map<String, String> options = getOptions(args);\n\n // process received options\n \n if (hasRequiredOptionsMissing(options)) {\n throw new IllegalArgumentException(\n \"Please provide all required options: \" + String.join(\",\", requiredOptions)\n );\n }\n\n String duration = options.get(\"duration\");\n if (!isValidDuration(duration.toUpperCase())) {\n throw new IllegalArgumentException(\"Unknown duration: \" + duration);\n }\n\n String startDateStr = options.get(\"startDate\");\n LocalDateTime startDate = null;\n try {\n startDate = parser.prepareDateArgument(startDateStr);\n } catch (DateTimeParseException e) {\n throw new IllegalArgumentException(\n \"Expected date pattern: \" + ParserModel.DATE_PATTERN\n );\n }\n\n String thresholdStr = options.get(\"threshold\");\n int threshold;\n try {\n threshold = Integer.parseInt(thresholdStr);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\n \"Expected int value for threshold, actual: \" + thresholdStr\n );\n }\n\n // take action based on processed options\n // if \"accesslog\" option is provided, also process log file\n if (options.containsKey(\"accesslog\")) {\n List<LogEntry> list = parser.parse(options.get(\"accesslog\"));\n parser.saveLogEntries(list);\n }\n \n duration = duration.toUpperCase();\n Map<String, Integer> result = parser.findAboveThresholdIPs(startDate, Duration.valueOf(duration), threshold);\n\n if (result.isEmpty()) {\n System.out.println(\"No above-threshold IPs for given arguments\");\n } else {\n result.keySet().forEach((ip) -> {\n System.out.println(ip);\n });\n\n parser.logBlockedIPs(result, startDate, Duration.valueOf(duration), threshold);\n }\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "bd51e233506e8dc7b425347eb2934fb0", "score": "0.5854878", "text": "public static void handleTerminalArguments(String[] args) {\n // Used to parse command line\n CommandLineParser parser = new DefaultParser();\n\n // Used to display help and errors from the parsing\n HelpFormatter formatter = new HelpFormatter();\n\n // Options\n Options options = new Options();\n\n Option helpOption = new Option(\"h\", \"help\", false, \"Show this help message \");\n Option portOption = new Option(\"p\", \"port\", true, \"Port for the server, defaults to 2000\");\n Option clientOption = new Option(\"c\", \"client\", false, \"Start client\");\n \n options.addOption(helpOption);\n options.addOption(portOption);\n options.addOption(clientOption);\n \n try {\n CommandLine commands = parser.parse(options, args);\n\n // display help\n if (commands.hasOption(\"help\")) {\n formatter.printHelp(\"GuessingGame\", options);\n System.exit(1);\n }\n \n // Handle client\n if (commands.hasOption(\"client\")) {\n ClientGUI.run();\n } else {\n // Handle server\n if (commands.hasOption(\"port\")) {\n if (!commands.getOptionValue(\"port\").matches(\"[0-9]+\")) {\n throw new ParseException(\"Port must be a number\");\n }\n int portNumber = Integer.parseInt(commands.getOptionValue(\"port\"));\n runServer(portNumber);\n } else {\n runServer(DEFAULT_PORT);\n }\n }\n \n } catch (ParseException e) {\n // Display error if there's missing parameters\n // or some parameters don't match.\n System.out.println(e.getMessage() + \"\\n\");\n formatter.printHelp(\"GuessingGame\", options);\n System.exit(1);\n }\n }", "title": "" }, { "docid": "bf6a55afd935767ad2f0e2e9291fa567", "score": "0.5850027", "text": "private int handleOptions(String[] args) {\r\n\r\n int status = 0;\r\n\r\n if ((args == null) || (args.length == 0)) { return status; }\r\n\r\n for (int i = 0; i < args.length; i++) {\r\n if (status != 0) { return status; }\r\n\r\n if (args[i].equals(\"-h\")) {\r\n displayUsage();\r\n status = 1;\r\n } else if (args[i].equals(\"-d\") || args[i].equals(\"-discourse\")) {\r\n if (++i < args.length) {\r\n try {\r\n this.discourseId = Long.parseLong(args[i]);\r\n if (discourseId < 0) {\r\n logger.error(\"Invalid discourse id specified: \" + args[i]);\r\n status = -1;\r\n }\r\n } catch (Exception exception) {\r\n logger.error(\"Error while trying to parse discourse id. \"\r\n + \"Please check the parameter for accuracy.\");\r\n throw new IllegalArgumentException(\"Invalid discourse id specified.\");\r\n }\r\n } else {\r\n logger.error(\"A discourse id must be specified with the -discourse argument\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n } else if (args[i].equals(\"-e\") || args[i].equals(\"-email\")) {\r\n setSendEmailFlag(true);\r\n if (++i < args.length) {\r\n setEmailAddress(args[i]);\r\n } else {\r\n logger.error(\"An email address must be specified with this argument\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n } else if (args[i].equals(\"-b\") || args[i].equals(\"-batchSize\")) {\r\n if (++i < args.length) {\r\n try {\r\n this.batchSize = Integer.parseInt(args[i]);\r\n if (batchSize <= 0) {\r\n logger.error(\"The batch size must be greater than zero.\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n } catch (NumberFormatException exception) {\r\n logger.error(\"Error while trying to parse batch size: \" + args[i]);\r\n throw new IllegalArgumentException(\"Invalid batch size specified.\");\r\n }\r\n } else {\r\n logger.error(\"A batch size must be specified with the -batchSize argument\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n } else if (args[i].equals(\"-p\") || args[i].equals(\"-project\")) {\r\n if (++i < args.length) {\r\n try {\r\n this.projectId = Integer.parseInt(args[i]);\r\n if (projectId < 0) {\r\n logger.error(\"Invalid project id specified: \" + args[i]);\r\n status = -1;\r\n }\r\n } catch (Exception exception) {\r\n logger.error(\"Error while trying to parse project id. \"\r\n + \"Please check the parameter for accuracy.\");\r\n throw new IllegalArgumentException(\"Invalid project id specified.\");\r\n }\r\n } else {\r\n logger.error(\"A project id must be specified with the -project argument\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n }\r\n }\r\n\r\n return status;\r\n }", "title": "" }, { "docid": "22af96997e326a45e3ef75dd2615e860", "score": "0.5848316", "text": "public boolean parseCommand(String[] args) {\n boolean retVal = false;\n // Set the defaults.\n this.help = false;\n this.debug = false;\n this.roleFile = null;\n // Parse the command line.\n CmdLineParser parser = new CmdLineParser(this);\n try {\n parser.parseArgument(args);\n if (this.help) {\n parser.printUsage(System.err);\n } else {\n // Create the role map.\n if (this.roleFile == null) {\n this.roleMap = null;\n if (debug) System.err.println(\"Functional assignments will be output.\");\n } else {\n this.roleMap = RoleMap.load(this.roleFile);\n if (debug) System.err.format(\"%d roles loaded from %s%n\", this.roleMap.fullSize(),\n this.roleFile);\n }\n // Load the genome.\n this.genome = new Genome(this.genomeFile);\n if (debug) System.err.format(\"%s loaded from file %s%n\", this.genome,\n this.genomeFile);\n // Load the stop prediction file.\n this.orfTrackerMap = ContigOrfTracker.readPredictionFile(this.startStopFile);\n if (debug) System.err.println(\"ORF predictions loaded from \" +\n this.startStopFile + \".\");\n // Load the role maps.\n this.startRoleMap = ContigStarts.contigStartsMap(this.genome, '+', this.roleMap);\n if (debug) System.err.println(\"Start roles computed.\");\n // We made it this far, we can run the application.\n retVal = true;\n }\n } catch (CmdLineException e) {\n System.err.println(e.getMessage());\n // For parameter errors, we display the command usage.\n parser.printUsage(System.err);\n } catch (IOException e) {\n e.printStackTrace(System.err);\n }\n return retVal;\n }", "title": "" }, { "docid": "e108cad28551e78c08310424a450a454", "score": "0.5846479", "text": "public ArgumentsParser() {\n this(new String[0]);\n }", "title": "" }, { "docid": "2d64fe46debb2813015326752edfd7df", "score": "0.5844493", "text": "public void parseArguments(String queryString) {\n parseArguments(queryString, null);\n }", "title": "" }, { "docid": "2d64fe46debb2813015326752edfd7df", "score": "0.5844493", "text": "public void parseArguments(String queryString) {\n parseArguments(queryString, null);\n }", "title": "" }, { "docid": "de894cbfbe1d8a17dfdad071b89899ae", "score": "0.5837312", "text": "public static void main(String args[]){\n if(args.length> 0) {\r\n PizzaParser miPizza = new PizzaParser(args[0]);\r\n int numeroFilas = miPizza.getNumeroFilas();\r\n int numeroColumnas = miPizza.getNumeroColumnas();\r\n int numeroIngredientes = miPizza.getNumeroIngredientes();\r\n int numeroMaxCeldasPorcion = miPizza.getNumeroMaxCeldasPorcion();\r\n ArrayList<Integer> pizzaPlana = miPizza.getPizzaPlana();\r\n System.out.println(\"Caracteristicas: \");\r\n System.out.print(\"Numero de filas: \"+ String.valueOf(numeroFilas));\r\n System.out.print(\"Numero de columnas: \"+ String.valueOf(numeroColumnas));\r\n System.out.print(\"Numero de Ingredientes: \"+ String.valueOf(numeroIngredientes));\r\n System.out.print(\"Numero de maximo de celdas por porcion: \"+ String.valueOf(numeroMaxCeldasPorcion));\r\n System.out.println(\"Pizza aplanada : \");\r\n System.out.println(pizzaPlana.toString());\r\n } else {\r\n System.out.println(\"Error no hay argumentos\");\r\n }\r\n }", "title": "" }, { "docid": "148698b6e017d6d57270693e0e1dc819", "score": "0.5830647", "text": "public static void main(String[] args) throws ParseException\n {\n }", "title": "" }, { "docid": "23afa32a8f906eb3867b25053be3c13e", "score": "0.58131564", "text": "public abstract ArgumentParser makeParser();", "title": "" }, { "docid": "254fc9b8cd0ee99b7fa7a599281f4d7b", "score": "0.5806858", "text": "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "title": "" }, { "docid": "528f2f07f3e73add03968b324c4d3ed8", "score": "0.5802372", "text": "public LaunchKey parse(String[] args) {\n if (ArrayUtils.isEmpty(args) || StringUtils.isBlank(args[0])) {\n throw new RuntimeException(\"Missing path argument to Git project.\");\n }\n String target = args[0];\n boolean mergedOnly = true;\n Set<String> exclusions = new HashSet<>();\n\n String options = String.join(\" \", args).substring(target.length());\n\n if (options.contains(\"--mergedOnly\")) {\n Matcher matcher = MERGED_ONLY_REGEX.matcher(options);\n if (!matcher.matches()) {\n throw new RuntimeException(\"ERROR: Invalid 'mergedOnly' usage. Usage: --mergedOnly=<true|false>\");\n }\n mergedOnly = Boolean.parseBoolean(matcher.group(2));\n // Remove this from options\n options = options.replace(matcher.group(1), \"\");\n }\n\n if (options.contains(\"--exclude\")) {\n Matcher matcher = EXCLUDE_REGEX.matcher(options);\n if (!matcher.matches()) {\n throw new RuntimeException(\n \"ERROR: Invalid 'exclude' usage. Usage: --exclude=[<branch1>, <branch2>, ...]\");\n }\n exclusions = Arrays.stream(matcher.group(2).split(\",\"))\n .map(String::trim)\n .collect(Collectors.toSet());\n // Remove this from options\n options = options.replace(matcher.group(1), \"\");\n }\n\n if (StringUtils.isNotBlank(options)) {\n throw new RuntimeException(\"ERROR: Invalid arguments.\", new IllegalArgumentException(options.trim()));\n }\n return new LaunchKey(new Nuke(target, exclusions, mergedOnly), new BranchNuker());\n }", "title": "" }, { "docid": "db4424e633926f61899994c0740e391f", "score": "0.57895863", "text": "public void parseUserInput(String[] args)\n {\n this.args = args;\n// Class cls = this.getClass();\n Method method;\n String parameter;\n int parameterPrefix = USER_OPTION.length();\n\n for (int parameterIndex=0; parameterIndex<args.length; parameterIndex++)\n {\n // Parse the input to find the corresponding function\n try\n {\n parameter = args[parameterIndex].substring(parameterPrefix);\n method = UserInput.class.getDeclaredMethod(parameter, Integer.class);\n parameterIndex = (int) method.invoke(this, parameterIndex);\n }\n catch (NoSuchMethodException | IllegalAccessException e )\n {\n throw new RuntimeException(\"Unhandled parameter: \" + args[parameterIndex] + \"\\n\" + e);\n }\n catch (InvocationTargetException e)\n {\n// e.printStackTrace();\n throw new RuntimeException(\"Missing or wrong parameters for the option: \" + args[parameterIndex] + \"\\n\" + e);\n }\n }\n }", "title": "" }, { "docid": "46e342fd93bb22b640dbbc8eeb3014cb", "score": "0.578843", "text": "private static String[] processArgs(String[] args) {\r\n if (args.length == 0) {\r\n args = new String[1];\r\n args[0] = config.getProperty(ConfigParam.inputTrace.name());\r\n System.out.println(\"Args:\"+args[0]);\r\n } else if (args.length > 1) {\r\n System.out.println(\"Usage: [Trace_File]\");\r\n System.out.println(\"Example: ./traces/fdct_trace_without_optimization.txt\");\r\n System.out.println(\"If no arguments are given, the trace file defined in \" +\r\n configFile + \" is used.\");\r\n System.exit(1);\r\n }\r\n\r\n return args;\r\n }", "title": "" }, { "docid": "59114f503ace62cc5333f40a598adbb2", "score": "0.5774594", "text": "private static HashMap<String, String> parseArgs(String... args)\n {\n final HashMap<String, String> map = new HashMap();\n //TODO convert args to map\n String lastArg = null;\n for (String string : args)\n {\n //Store new arg\n if (string.startsWith(\"-\"))\n {\n lastArg = string.trim().replaceFirst(\"-\", \"\");\n if (lastArg.contains(\"=\"))\n {\n String[] split = lastArg.split(\"=\");\n lastArg = split[0];\n map.put(lastArg, split[1].replace(\"\\\\\\\"\", \"\"));\n continue;\n }\n map.put(lastArg, null);\n }\n else\n {\n //Store arg value, or append value\n String v = map.get(lastArg);\n if (v == null)\n {\n v = string;\n }\n else\n {\n v += \",\" + string;\n }\n map.put(lastArg, v);\n }\n }\n return map;\n }", "title": "" }, { "docid": "44f7eac5d8ad4e140d7604efefa3022b", "score": "0.5772942", "text": "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "title": "" }, { "docid": "fbe88f42804026da1572aaee5a697d46", "score": "0.576587", "text": "public interface CommandLineParser {\n\n CommandLine parse(Options options, String[] arguments) throws ParseException;\n CommandLine parse(Options options, String[] arguments, boolean stopAtNonOption) throws ParseException;\n\n}", "title": "" }, { "docid": "771c4b20471991377f836f233bb78f5b", "score": "0.57657945", "text": "@Test\n public void parse_invalidArgs_throwsParseException() {\n assertParseFailure(parser, INVALID_ARG, String.format(MESSAGE_INVALID_COMMAND_FORMAT,\n SortCommand.MESSAGE_USAGE));\n }", "title": "" }, { "docid": "a9bfcb96737c6462357cbc7ebd5bfe19", "score": "0.57650167", "text": "@Test(expectedExceptions=InvalidArgumentValueException.class)\n public void argumentValidationTest() {\n String[] commandLine = new String[] {\"--value\",\"521\"};\n\n parsingEngine.addArgumentSource( ValidatingArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n ValidatingArgProvider argProvider = new ValidatingArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 521, \"Argument is not correctly initialized\");\n\n // Try some invalid arguments\n commandLine = new String[] {\"--value\",\"foo\"};\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n }", "title": "" }, { "docid": "34b2edfe48a7b1dca36a55d00c3c5ad8", "score": "0.57594115", "text": "public void parse(String argscall) throws ParseException{\n Commons.log.finest(toString()+\" Parsing '\"+argscall+\"'\");\n argscall = argscall.trim();\n \n LinkedList<String> args = new LinkedList<String>();\n HashMap<String, String> kwargs = new HashMap<String, String>();\n \n if(!argscall.isEmpty()){\n int pointer=0, nextStringStart=0, nextStringEnd=0, nextSpace=0;\n String token, key, val;\n\n while(nextSpace >= 0){ \n //Find next token end point\n nextSpace = argscall.indexOf(' ', pointer);\n nextStringStart = indexOfNextUnescapedChar(argscall, '\"', pointer);\n \n if(nextStringStart < nextSpace && nextStringStart != -1){\n nextStringEnd = indexOfNextUnescapedChar(argscall, '\"', nextStringStart+1);\n if(nextStringEnd == -1)\n throw new ParseException(\"Expected \\\" but reached end of string.\");\n nextSpace = argscall.indexOf(' ', nextStringEnd+1);\n }\n\n //Extract token\n if(nextSpace == -1)token = argscall.substring(pointer);\n else token = argscall.substring(pointer, nextSpace); \n token = token.trim();\n\n //See if it's a keyword match or not\n if(KEYWORD.matcher(token).find()){\n key = token.substring(0, token.indexOf('='));\n val = token.substring(token.indexOf('=')+1);\n }else{\n key = null;\n val = token;\n }\n\n //Remove string indicators\n if(val.startsWith(\"\\\"\") && val.endsWith(\"\\\"\")){\n val = val.substring(1, val.length()-1).replaceAll(\"\\\\\\\\\\\"\", \"\\\"\");\n }\n\n //Save to queue or dict\n if(key == null) args.add(val);\n else kwargs.put(key, val);\n\n //Advance pointer\n pointer = nextSpace+1;\n }\n }\n \n for(Argument arg : chain){\n arg.parse(args, kwargs);\n }\n \n apargs = args.toArray(new String[args.size()]);\n akargs.putAll(kwargs);\n }", "title": "" }, { "docid": "7c8b52490b3890fb710cbb7955d323ad", "score": "0.57589847", "text": "private void scanArgs(String [] args)\n{\n for (int i = 0; i < args.length; ++i) {\n if (args[i].startsWith(\"-\")) {\n \n }\n else { \n root_files.add(new File(args[i]));\n }\n }\n \n if (root_files.isEmpty()) {\n root_files.add(new File(DEFAULT_FILE));\n }\n if (output_file == null) output_file = new File(OUTPUT_FILE);\n}", "title": "" }, { "docid": "5dbe77287f8a9f3299dcae1e265d0944", "score": "0.5749787", "text": "public CuratorClientArgParser( String[] commandLineArgs ) {\n confirmArgsAreGood( commandLineArgs );\n\n testing = false;\n for( int crntArg = 0; crntArg < commandLineArgs.length; crntArg++ ) {\n if( commandLineArgs[crntArg].equals(\"-host\") ) {\n host = commandLineArgs[++crntArg];\n }\n else if( commandLineArgs[crntArg].equals(\"-port\") ) {\n port = Integer.parseInt( commandLineArgs[++crntArg] );\n }\n else if( commandLineArgs[crntArg].equals(\"-in\") ) {\n inputDir = new File( commandLineArgs[++crntArg] );\n }\n else if( commandLineArgs[crntArg].equals(\"-out\") ) {\n outputDir = new File( commandLineArgs[++crntArg] );\n }\n else if( commandLineArgs[crntArg].equals(\"-mode\") ) {\n try {\n mode = CuratorClient.CuratorClientMode.fromString( commandLineArgs[++crntArg] );\n } catch ( IllegalArgumentException e ) {\n System.out.println( \"Please specify either 'PRE' or 'POST' \"\n + \"(pre-Hadoop and post-Hadoop, \"\n + \"respectively) as the mode.\");\n }\n }\n else if( commandLineArgs[crntArg].equals(\"-test\") ) {\n testing = true;\n }\n }\n\n if( outputDir == null ) {\n outputDir = new File( inputDir, \"output\" );\n }\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "95eefc6d5d1fe96ba2e002480369b4de", "score": "0.0", "text": "@Override\n\tpublic void writeLog() {\n\t\tSystem.out.println(\"文件日志记录!!\");\n\t}", "title": "" } ]
[ { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.69474965", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6676429", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.6485175", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.622455", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.6164056", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e3a701d0fdb1fef5e0afd9dc7c345fcb", "score": "0.61634105", "text": "@Override\n\tprotected void generateData() {\n\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4e49f5db36ca664153e54380025b85d4", "score": "0.6095768", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6074471", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.6028443", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.60278815", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.60087883", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5988416", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.5978686", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "9fe3f6ccb967a8bcee9106fbbd56b684", "score": "0.5974211", "text": "@Override\r\n\tpublic void properties() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.59513867", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "fcfbf321ff3e4c56b4e383ce15e49dbb", "score": "0.59429646", "text": "@Override\r\n\tpublic void obtersaida()\r\n\t{\n\t}", "title": "" }, { "docid": "482b1825ec60700f97ed42e420d69d99", "score": "0.59383935", "text": "@Override\n\tpublic void valide() {\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.59383595", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "4b7e3f693781babf82ed11447db2a554", "score": "0.5929242", "text": "@Override\n\tpublic void concentrarse() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.59280443", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9a0f5a503f38cb7c40d13ecc89073bd8", "score": "0.58973867", "text": "@Override\r\n\tpublic void getDuriation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.5863205", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "02699a98134693036160a045239bddba", "score": "0.58500654", "text": "@Override\r\n\tpublic void zwroc() {\n\r\n\t}", "title": "" }, { "docid": "46569800c9d73cd59bcbec066cdb5304", "score": "0.58491904", "text": "private void lidoInf() {\n\n\n }", "title": "" }, { "docid": "b8d886581a76c72e11ab317e6cb6e2a8", "score": "0.58308905", "text": "@Override\r\n public void rechercher() {\n }", "title": "" }, { "docid": "80b5722cdc9efe11a305e92ea813ac0f", "score": "0.5827698", "text": "@Override\r\n\tpublic void inter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "947b4ee184fe32ab14b8c244b9461c7d", "score": "0.5807026", "text": "@Override\n\tpublic void vida() {\n\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069414", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c86f446a8bd6af19f88cc011fdf2ffd4", "score": "0.5802792", "text": "public void asustar() {\n // TODO implement here\n \n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c8f75a8f93bc20d4e8695ba99b470e1d", "score": "0.580217", "text": "public void mo1684e() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.57979786", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bb30a482e2236eb664f8d8fc23724b59", "score": "0.57915", "text": "@Override\n\tprotected void initActb() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "0cc40600dd2e7cb9f56bd77995e01fc3", "score": "0.5780891", "text": "@Override\n\tpublic void Miow() {\n\t\t\n\t}", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.57797045", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "0a14b2c4ac9647e6bc7077e1e653d540", "score": "0.57781726", "text": "@Override\n \tprotected int getSize() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "7d110d5ea1b4795727b052c3f897a146", "score": "0.5776224", "text": "public void ligar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e022c47f335a39c6bdb94a0f49a4e940", "score": "0.5767807", "text": "@Override\r\n\tpublic void parar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "900d30c04323cde584c73c5ffa48d9cf", "score": "0.5757801", "text": "@Override\n\t\tpublic void visitEnd() {\n\n\t\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.57495934", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.57494617", "text": "private void Initalization() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5732932", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4da4d5cf96c032296a894fc6e8d76283", "score": "0.5718805", "text": "@Override\n\tpublic void beCagey() {\n\t\t\n\t}", "title": "" }, { "docid": "a8f4d3149e0f7a43b23b53ce69363fd6", "score": "0.57184815", "text": "public void mo5202b() {\n }", "title": "" }, { "docid": "c2a6308317d4e5fc230ea7d2fb55fc1b", "score": "0.5715011", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" } ]
719b36e207507a17481dec6f408def49
Function to store info on local storage
[ { "docid": "d19e80c7c48ca391d34d40994568ef3b", "score": "0.64545965", "text": "private void storeInfo(User user) {\n LocalStorage localStorage = null;\n if (getActivity() != null) localStorage = LocalStorage.getInstance(getActivity());\n\n if (localStorage == null) return;\n localStorage.storeUserId(user.get_id());\n }", "title": "" } ]
[ { "docid": "e104adcbc21ea424b9ef63f08d6de377", "score": "0.694594", "text": "private void saveData() {\n int musicID = songsUtils.getCurrentMusicID();\n sharedPrefsUtils.writeSharedPrefs(\"audio_session_id\", getCurrentMediaPlayer().getAudioSessionId());\n try {\n sharedPrefsUtils.writeSharedPrefs(\"musicID\", musicID);\n sharedPrefsUtils.writeSharedPrefs(\"title\", songsUtils.queue().get(musicID).getTitle());\n sharedPrefsUtils.writeSharedPrefs(\"artist\", songsUtils.queue().get(musicID).getArtist());\n sharedPrefsUtils.writeSharedPrefs(\"album\", songsUtils.queue().get(musicID).getAlbum());\n sharedPrefsUtils.writeSharedPrefs(\"albumid\", songsUtils.queue().get(musicID).getAlbumID());\n sharedPrefsUtils.writeSharedPrefs(\"raw_path\", songsUtils.queue().get(musicID).getPath());\n sharedPrefsUtils.writeSharedPrefs(\"duration\", songsUtils.queue().get(musicID).getDuration());\n sharedPrefsUtils.writeSharedPrefs(\"durationInMS\", getCurrentMediaPlayer().getDuration());\n } catch (Exception e) {\n Log.d(TAG, \"Unable to save song info in persistent storage. MusicID \" + musicID);\n }\n }", "title": "" }, { "docid": "474d3b836cfecc76f6f385cafe7f1694", "score": "0.67133087", "text": "private void saveToStorage() throws IOException {\r\n storage.saveToFile(taskList.toString());\r\n }", "title": "" }, { "docid": "eee01bd3b78bdcba5aeecd32aa5c2423", "score": "0.6622237", "text": "private void saveData() {\n String name = nameEditText.getText().toString();\n String pwd = pwdEditText.getText().toString();\n //create file\n SharedPreferences preferences = getSharedPreferences(SHAREDPREFS, MODE_PRIVATE);\n //test case\n //open file\n SharedPreferences.Editor editor = preferences.edit();\n //write to file\n editor.putString(KEYNAME, name);\n editor.putString(KEYPWD, pwd);\n //save file\n editor.commit();\n }", "title": "" }, { "docid": "7cef3d23033de05a4a4df61055bf8a62", "score": "0.65941364", "text": "public void saveStorage() {\r\n try {\r\n BufferedWriter out = new BufferedWriter(new FileWriter(\"storage.txt\", false));\r\n out.write(String.valueOf(strge.getMedicine() + strge.getCritters() + strge.getMeat() + strge.getVeggies()));\r\n out.newLine();\r\n out.write(String.valueOf(strge.getMedicine()));\r\n out.newLine();\r\n out.write(String.valueOf(strge.getCritters()));\r\n out.newLine();\r\n out.write(String.valueOf(strge.getVeggies()));\r\n out.newLine();\r\n out.write(String.valueOf(strge.getMeat()));\r\n out.close();\r\n } \r\n catch (IOException e) {\r\n System.out.println(\"Problem reading file\");\r\n }\r\n \r\n }", "title": "" }, { "docid": "43c82f3d74b6398d6ee39485ecefc80b", "score": "0.6585558", "text": "private void save() {\n\t\ttry (ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(storageFile));) {\n\t\t\toos.writeObject(storageMap);\n\t\t\toos.flush();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "9ff47aa3611f8b73f097c8779bb4d215", "score": "0.6547063", "text": "public void saveInfo() {\r\n//\t\tSharedPreferences sharedPreferences = mActivity.getSharedPreferences(NameSpace.SHARED_PREF_NAME, Context.MODE_PRIVATE);\r\n//\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\r\n//\t\teditor.putString(NameSpace.CURRENT_GROUP_TYPE, mCurrentGroupType);\r\n//\t\teditor.putString(NameSpace.CURRENT_GROUP_ID, mCurrentGroupId);\r\n//\t\teditor.commit();\r\n\t}", "title": "" }, { "docid": "c4ca16bb7d830be3dc23930b15834768", "score": "0.6466376", "text": "public void saveDataToFile() {\n this.storage.saveData(this.list);\n }", "title": "" }, { "docid": "0ab0cda5b0f8a1b8d83e551aea76279b", "score": "0.6450491", "text": "public void saveState() {\n String spName = \"shared preferences\" + username;\n sharedPreferences = getSharedPreferences(spName, MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"username\", username);\n editor.putString(\"sleep sum\", String.valueOf(sleepSum));\n editor.putString(\"calorie sum\", String.valueOf(calorieSum));\n Gson gsonSleep = new Gson();\n Gson gsonFood = new Gson();\n Gson gsonSport = new Gson();\n String jsonSleep = gsonSleep.toJson(sleepEntry);\n String jsonFood = gsonFood.toJson(foodEntry);\n String jsonSport = gsonSport.toJson(sportEntry);\n editor.putString(\"sleep entry\", jsonSleep);\n editor.putString(\"food entry\", jsonFood);\n editor.putString(\"sport entry\", jsonSport);\n editor.apply();\n }", "title": "" }, { "docid": "073153bf8e9557fe682179c7a2f427e9", "score": "0.6436752", "text": "private void saveLocal() {\n\n try {\n\n Context context = InGroove.getInstance();\n\n FileOutputStream fos = context.openFileOutput(USER_FILE, Context.MODE_PRIVATE);\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos));\n Gson gson = new Gson();\n gson.toJson(user, out);\n out.flush();\n\n Log.d(\"---- USER ----\",\" Successfully saved user with name, \" + user.getName());\n\n\n } catch (FileNotFoundException e) {\n Log.d(\"---- ERRROR ----\",\" Could not save user. Caught Exception \" + e);\n } catch (IOException e) {\n Log.d(\"---- ERRROR ----\",\" Could not save user. Caught Exception \" + e);\n }\n\n }", "title": "" }, { "docid": "14224689472fada153eef551df58d4d1", "score": "0.64149576", "text": "public void persist() {\n\t \t\n\t \ttry {\n\t\t\t\tFileOutputStream arquivo = new FileOutputStream(nomeArquivo);\n\t\t\t\tObjectOutputStream gravaArquivo = new ObjectOutputStream (arquivo);\n\t\t\t\tgravaArquivo.writeObject(cache);\n\t\t\t\t\n\t\t\t\tarquivo.flush();\n\t\t\t\tgravaArquivo.flush();\n\t\t\t\t\n\t\t\t\tarquivo.close();\n\t\t\t\tgravaArquivo.close();\n\t\t\t} catch (FileNotFoundException e){\n\t\t\t\tJOptionPane.showMessageDialog(null, \"FileNotFoundException\", \"Excecao\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t \t\n\t \t\n\t \tcatch (IOException e) {\n\t \t\tJOptionPane.showMessageDialog(null, \"IOException\", \"Excecao\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t \t\n\t }", "title": "" }, { "docid": "f73fc7ad03ece74db30c37910ebaf716", "score": "0.6373398", "text": "public void storeData(){\n\t}", "title": "" }, { "docid": "86347065ce96f3d2a8a020b932766747", "score": "0.6359639", "text": "private void saveData() {\n SharedPreferences.Editor editor = preferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(petArrayList);\n editor.putString(\"PetList\", json);\n editor.apply();\n }", "title": "" }, { "docid": "db82dc8f433276e472f38a37aebb0673", "score": "0.6334386", "text": "public void saveRecent() {\n SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = sharedPrefs.edit();\n Gson gson = new Gson();\n String json = gson.toJson(recentlyLearned);\n String json2 = gson.toJson(recentlyLearnedNames);\n editor.putString(\"query_recent4\", json);\n editor.putString(\"query_recent_names\", json2);\n editor.commit();\n }", "title": "" }, { "docid": "ec6afb3c35964f2be8502eac73894ed2", "score": "0.6305791", "text": "private void save() {\n // Just going to save all values, cos fuck it.\n ageEditText = (TextView) findViewById(R.id.age);\n String age = ageEditText.getText().toString();\n EditText bio = (EditText) findViewById(R.id.bio_edit_text);\n String about = bio.getText().toString();\n //String genderInfo = gender.getText().toString();\n\n String ageUrl = LoadBalancer.RequestServerAddress()+ \"/rest/login/SaveStringPropertyToNode/\"+userId+\"/Age/\"+age;\n String aboutInfoUrl = LoadBalancer.RequestServerAddress()+ \"/rest/login/SaveStringPropertyToNode/\"+userId+\"/About/\"+about;\n //String genderInfoUrl = LoadBalancer.RequestServerAddress()+ \"/rest/login/SaveStringPropertyToNode/\"+userId+\"/Sex/\"+genderInfo;\n\n // Do the saving\n HTTPRequestHandler simpleSaver = new HTTPRequestHandler();\n // simpleSaver.SendSimpleHttpRequestAndReturnString(saveNameUrl);\n simpleSaver.SendSimpleHttpRequestAndReturnString(ageUrl);\n simpleSaver.SendSimpleHttpRequestAndReturnString(aboutInfoUrl);\n\n // simpleSaver.SendSimpleHttpRequestAndReturnString(genderInfoUrl);\n\n }", "title": "" }, { "docid": "1fabd374b99b0d34432e509086416ea7", "score": "0.6296015", "text": "public void storeData() {\r\n\r\n }", "title": "" }, { "docid": "8cd79c5b14bc545a3f0e62051e01092f", "score": "0.6271082", "text": "private void storeCellInfo(){\n String filename = \"cellInfo.data\";\n FileOutputStream fileOutputStream;\n ObjectOutputStream objectOutputStream;\n\n try {\n fileOutputStream = openFileOutput(filename, Context.MODE_PRIVATE);\n objectOutputStream = new ObjectOutputStream(fileOutputStream);\n\n objectOutputStream.writeObject(mCellphoneInfoSnapshotList);\n objectOutputStream.close();\n fileOutputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "056ed7b9e661d49a720ad4b326bb8323", "score": "0.62636966", "text": "public void saveData(){\n SavedData.isOldGame = true;\n SavedData.elapsedTime = elapsedTime;\n SavedData.player = player;\n SavedData.lvl = lvl;\n SavedData.enemies = enemies;\n }", "title": "" }, { "docid": "5fd8c9a7a2924014d510892b1c585447", "score": "0.62599015", "text": "public interface LocalStorage {\n\n void saveGames(List<MultiplayerGame> games) throws JsonProcessingException;\n void saveCurrentUser(Player player) throws JsonProcessingException;\n void saveAccessToken(CognitoTokens token) throws JsonProcessingException;\n\n List<MultiplayerGame> getAllGames() throws IOException;\n Player getCurrentUser() throws IOException;\n CognitoTokens getCurrentAccessToken() throws IOException;\n}", "title": "" }, { "docid": "b9085b72d828f811ab710c94ba12bfee", "score": "0.6259156", "text": "public void save() {\n\t\tprefs.putBoolean(\"SoundOn\", soundOn);\n\t\tprefs.putBoolean(\"MusicOn\", musicOn);\n\t\tprefs.putFloat(\"SoundVolume\", soundVol);\n\t\tprefs.putFloat(\"MusicVolume\", musicVol);\n\t\t// flush the buffer\n\t\tprefs.flush();\n\t\t\n\t\tGdx.app.log(\"PREFMGR\", \"saved\");\n\t}", "title": "" }, { "docid": "704961595072049c9466569e1c294905", "score": "0.6245268", "text": "private void saveLocally(final Context context) {\n\t\tfinal JSONObject json = toJSON();\n\n\t\tnew AsyncTask<Void, Void, Exception>() {\n\t\t\t@Override\n\t\t\tprotected Exception doInBackground(Void... unused) {\n\t\t\t\ttry {\n\t\t\t\t\tString jsonString = json.toString();\n\t\t\t\t\tSharedPreferences prefs = context.getSharedPreferences(\n\t\t\t\t\t\t\t\"favorites.json\", Context.MODE_PRIVATE);\n\t\t\t\t\tprefs.edit().putString(\"json\", jsonString).commit();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\treturn e;\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void onPostExecute(Exception error) {\n\t\t\t\tif (error != null) {\n\t\t\t\t\tToast toast = Toast.makeText(context, error.getMessage(),\n\t\t\t\t\t\t\tToast.LENGTH_LONG);\n\t\t\t\t\ttoast.show();\n\t\t\t\t}\n\t\t\t}\n\t\t}.execute();\n\t}", "title": "" }, { "docid": "dbd962ba5a6a34cf5a70e00d53ef8947", "score": "0.62330586", "text": "public void saveCache() {\n\t\t// Konvertiere alle Listen zu JSON\n\t\tGson gson = new GsonBuilder()\n\t\t\t\t.registerTypeAdapter(ListAnime.class, new ListAnimeSerializer())\n\t\t\t\t.setPrettyPrinting().create();\n\t\tString jsonComplete = gson.toJson(complete);\n\t\tString jsonWatching = gson.toJson(watching);\n\t\tString jsonStalled = gson.toJson(stalled);\n\t\tString jsonDropped = gson.toJson(dropped);\n\t\tString jsonPlanned = gson.toJson(planned);\n\t\t// speicher JSON-Repräsentation und aktuellen User\n\t\tSharedPreferences.Editor editor = prefs.edit();\n\t\teditor.putString(\"lastUser\", userName);\n\t\teditor.putBoolean(\"AnimelistCache\", true);\n\t\teditor.putString(\"AnimelistCacheKomplett\", jsonComplete);\n\t\teditor.putString(\"AnimelistCacheAmSchauen\", jsonWatching);\n\t\teditor.putString(\"AnimelistCacheKurzAufgehoert\", jsonStalled);\n\t\teditor.putString(\"AnimelistCacheAbgebrochen\", jsonDropped);\n\t\teditor.putString(\"AnimelistCacheGeplant\", jsonPlanned);\n\t\teditor.apply();\n\t\tcomplete = null;\n\t\twatching = null;\n\t\tstalled = null;\n\t\tdropped = null;\n\t\tplanned = null;\n\t}", "title": "" }, { "docid": "3d3b53d37b1c1ca79f33ae71cc0993d0", "score": "0.6205309", "text": "private static void storeInfo() {\n System.out.println(\"Please enter site name:\");\n String site = System.console().readLine();\n System.out.println(\"Please enter site username:\");\n String user = System.console().readLine();\n System.out.println(\"Please enter site password:\");\n String pass = System.console().readLine();\n final String secretKey = \"PasswordManager\";\n try {\n FileWriter myWriter = new FileWriter(\"database.txt\", true);\n myWriter.write(site + \":\" + System.getProperty(\"line.separator\"));\n myWriter.write(\"username: \" + user + System.getProperty(\"line.separator\"));\n myWriter.write(\"password: \" + encrypt(pass, secretKey) + System.getProperty(\"line.separator\"));\n myWriter.write(\"\" + System.getProperty(\"line.separator\"));\n myWriter.close();\n System.out.println(\"Successfully entered login for \" + site);\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d40769c669f02d3fbc4ba1ef04bf4ed3", "score": "0.6179022", "text": "void store();", "title": "" }, { "docid": "ea1a1745cb8f8749e8275490432326cf", "score": "0.6176592", "text": "private void saveData() {\n Log.enter();\n SharedPreferences preferenced = getActivity().getPreferences(\n Context.MODE_PRIVATE);\n \n SharedPreferences.Editor editor = preferenced.edit();\n \n editor.putInt(VENDOR, mWheelVendor.getCurrentItem());\n editor.putInt(CAMERA, mWheelCamera.getCurrentItem());\n editor.putInt(APERTURE, mWheelAperture.getCurrentItem());\n editor.putInt(FOCAL_LENGTH, mWheelFocalLength.getCurrentItem());\n editor.putInt(SUBJECT_DISTANCE, mWheelSubjectDistance.getCurrentItem());\n editor.putInt(MEASURE_UNIT, mWheelMeasureUnit.getCurrentItem());\n editor.putInt(MEASURE_RESULT_UNIT, mMeasureResultUnit);\n editor.putString(NEAR_LIMIT, mLabelNearLimitResult.getText().toString());\n editor.putString(FAR_LIMIT, mLabelFarLimitResult.getText().toString());\n editor.putString(HYPERFOCAL, mLabelHyperFocalResult.getText()\n .toString());\n editor.putString(TOTAL, mLabelTotalResutl.getText().toString());\n \n editor.commit();\n }", "title": "" }, { "docid": "531cfde7375cbcee20c98badffaf66f9", "score": "0.6162579", "text": "public static void writeLocalInfo(Context mContext,UserInfoVo userInfoVo){\n String localInfo = MySharedPrefs.readString(mContext, MySharedPrefs.FILE_USER, MySharedPrefs.KEY_LOCAL_USERINFO);\n try {\n JSONArray array;\n if (!TextUtils.isEmpty(localInfo)){\n array = new JSONArray(localInfo);\n }else{\n array = new JSONArray();\n }\n if (array.length() > 0){\n for (int i = 0 ; i < array.length() ; i++){\n if (TextUtils.equals(userInfoVo.getLocalId(),array.optString(i))){\n return;\n }\n }\n }\n array.put(array.length(),userInfoVo.getLocalId());\n MySharedPrefs.write(mContext, MySharedPrefs.FILE_USER, MySharedPrefs.KEY_LOCAL_USERINFO,array.toString());\n JSONObject jsonObject = new JSONObject();\n JSONObject data = new JSONObject();\n data.put(JsonConstans.Token,userInfoVo.getToken());\n data.put(JsonConstans.Mid,userInfoVo.getMid());\n data.put(JsonConstans.Password,userInfoVo.getPassword());\n data.put(JsonConstans.Username,userInfoVo.getUserName());\n data.put(JsonConstans.Localid,userInfoVo.getLocalId());\n jsonObject.put(userInfoVo.getLocalId(),data);\n MySharedPrefs.write(mContext, MySharedPrefs.FILE_USER, userInfoVo.getLocalId(),jsonObject.toString());\n\n MySharedPrefs.write(mContext, MySharedPrefs.FILE_USER, MySharedPrefs.KEY_LOGIN_USERINFO, data.toString());\n NextApplication.myInfo = new UserInfoVo().readMyUserInfo(mContext);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a0375ba08a3fcd98ec7df5af2f9e90a0", "score": "0.6158311", "text": "public void storeUserData(User user){\n\n //to store the userData we need to give the method\n //this allows to edit what is contained\n\n SharedPreferences.Editor spEditor=userLocalDatabase.edit();\n //What this does is updated everything is currently stored and shared preferences with the attributes of the user\n\n //now we need to store the attributes of the use which have been post on this method so:\n spEditor.putString(\"name\",user.name);\n //and we need to store its age\n spEditor.putInt(\"age\",user.age);\n //and we need to store its username\n spEditor.putString(\"username\",user.username);\n //and we need to store its password\n spEditor.putString(\"password\",user.password);\n spEditor.commit();\n }", "title": "" }, { "docid": "0001218d293f902cf632b7cc177c9416", "score": "0.6154814", "text": "public static void storePrefs(){\n\t\t// We need an Editor object to make preference changes.\n\t // All objects are from android.context.Context\n\t SharedPreferences settings = MainActivity.ctx.getSharedPreferences(MainActivity.PREFS_NAME, 0);\n\t SharedPreferences.Editor editor = settings.edit();\n\t \n\t //persist acceptedPolicy\n\t editor.putBoolean(\"acceptedPolicy\", Preferences.acceptedPolicy);\n\t //persist userId\n\t editor.putString(\"userId\", Preferences.userId);\n\n\t // Commit the edits!\n\t editor.commit();\n\t}", "title": "" }, { "docid": "45cabaa9cd63de352f0d5c0b99f5d447", "score": "0.6143379", "text": "public void saveData();", "title": "" }, { "docid": "d4073172da70204610d994c05e0a0e7e", "score": "0.6073017", "text": "private void saveUserData() {\n String savedString = mySensorManager.getSensorDataJSON();\n\n TextView reportText = (TextView) findViewById(R.id.saved_sensor_data);\n reportText.setText(\"The user input is:\\n--------------------------\\n\" + savedString);\n\n //save it to the hard drive\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = sharedPref.edit();\n\n editor.putString(savedSensorDataKey, savedString);\n editor.commit();\n\n playNextStepAudio();\n //Use this to read data from the shared preferences\n// SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n// String reportText = sharedPreferences.getString(userSavedKey, \"NOT EXISTED\");\n }", "title": "" }, { "docid": "41420fbeb22d3433d1e7073bb4bbe461", "score": "0.6059771", "text": "private void saveData() {\n\t\tUserInfo info = new UserInfo();\n\t\tinfo.setName(mNameEdit.getText().toString().trim());\n\t\tinfo.setSurname(mSurnameEdit.getText().toString().trim());\n\t\ttry {\n\t\t\tinfo.setDateOfBirth(mSdf.parse(mDateOfBirth.getText().toString()).getTime());\n\t\t} catch (ParseException e) { }\n\t\tinfo.setBio(mBioEdit.getText().toString().trim());\n\t\tinfo.setLink(mLinkEdit.getText().toString().trim());\n\t\tinfo.setEmail(mEmailEdit.getText().toString().trim());\n\t\t\n\t\tDbHelper db = new DbHelper(getActivity());\n\t\tdb.open();\t\t\n\t\tdb.updateUserInfo(info);\n\t\tdb.close();\n\t}", "title": "" }, { "docid": "42602d356d8b3cf67a6264b4bc8472ae", "score": "0.6056255", "text": "public void save(String status ,String name, String bio, String photo) {\n\n SharedPreferences sharedPref = context.getSharedPreferences(Phone,Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = sharedPref.edit();\n\n editor.putString(\"status\",status);\n editor.putString(\"name\", name);\n editor.putString(\"bio\", bio);\n editor.putString(\"photo\", photo);\n\n editor.commit();\n }", "title": "" }, { "docid": "d47629e0676d0b60f5142cb7522a2910", "score": "0.6050395", "text": "void save();", "title": "" }, { "docid": "d47629e0676d0b60f5142cb7522a2910", "score": "0.6050395", "text": "void save();", "title": "" }, { "docid": "ab8aae121cdf5a919817933b9ca09406", "score": "0.60440505", "text": "private void savePreferences() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getActivity());\n// SharedPreferences sp = getActivity().getSharedPreferences(\n// getString(R.string.saved_info), Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n editor.putString(\"username\", charTxtEdit.getText().toString());\n editor.putString(\"full_name\", nameTxtEdit.getText().toString());\n editor.putString(\"password\", pwdTxtEdit.getText().toString());\n// editor.putBoolean(\"input valid\", inputValid);\n// editor.putBoolean(\"passwords match\", passwordsMatch);\n// editor.putString(\"dialog password\", dialogPassword);\n editor.putBoolean(\"login\", true);\n editor.putBoolean(\"remember\", true);\n\n editor.commit();\n }", "title": "" }, { "docid": "47d5f52aea149d02eeebccd67b40418a", "score": "0.60229987", "text": "public void save(View view) {\n String name = et_name.getText().toString();\n String mobile = et_mobile.getText().toString();\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"key1\",name);\n editor.putString(\"key2\",mobile);\n editor.commit();\n Toast.makeText(this,\n \"Deatails saved successfully!\", Toast.LENGTH_SHORT).show();\n\n }", "title": "" }, { "docid": "675abe0777d919a54a046bbf694709fe", "score": "0.60209996", "text": "private static void saveUserInLocalStorage(User user) {\n SharedPreferences.Editor prefsEditor = mPrefs.edit();\n Gson gson = new Gson();\n String json = gson.toJson(user);\n prefsEditor.putString(Constants.CURRENT_USER_EXTRA, json);\n prefsEditor.apply();\n }", "title": "" }, { "docid": "a5c010348e948f691312ac5714b5ffb8", "score": "0.60036564", "text": "public interface ISharedPrefStorage extends IStorage {\n void storeImmediate(String key, Object toStore);\n}", "title": "" }, { "docid": "b1987d230e76acc6d8d9a9e530dce4f5", "score": "0.59949046", "text": "private void saveExpensesToStorage(List<ExpenseDTO> tempList) {\n SharedPreferences settings = getSharedPreferences(EXPENSE_SHARED_PREFERENCE_FILE, MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n\n // save the number of expenses\n editor.putInt(\"NUMBER_EXPENSES\", tempList.size());\n\n // Read each of the expenses and store it in a separate entry in the Preferences file\n // Reason for doing each separately and not as a set is to preserve the sorting order which\n // a set would not, forcing for an additional sort cost before rendering\n for (int i=0; i<tempList.size(); i++) {\n String savedExpense = ExpenseStringifier.deflateExpense(tempList.get(i));\n editor.putString(\"Expense_\" + i, savedExpense);\n }\n editor.commit();\n }", "title": "" }, { "docid": "dd1f9f45fc0d579e3b2e13f22fc2ec40", "score": "0.5986807", "text": "public void store(String filename) throws IOException;", "title": "" }, { "docid": "c5ca2421333460a93336baccfa8e1f5a", "score": "0.5983608", "text": "public void save() {\n if (!(Boolean) Configuration.getConfig(Configuration.DATASTORAGE))\n return;\n\n if (playerDataExists(uid)) {\n FileConfiguration section = MyZ.instance.getPlayerDataConfig(uid);\n List<String> stringFriends = new ArrayList<String>();\n for (UUID id : friends)\n stringFriends.add(id.toString());\n section.set(\"location\", location);\n section.set(\"player.kills\", player_kills);\n section.set(\"zombie.kills\", zombie_kills);\n section.set(\"pigman.kills\", pigman_kills);\n section.set(\"giant.kills\", giant_kills);\n section.set(\"player.kills_life\", player_kills_life);\n section.set(\"zombie.kills_life\", zombie_kills_life);\n section.set(\"pigman.kills_life\", pigman_kills_life);\n section.set(\"giant.kills_life\", giant_kills_life);\n section.set(\"player.kills_life_record\", player_kills_life_record);\n section.set(\"zombie.kills_life_record\", zombie_kills_life_record);\n section.set(\"pigman.kills_life_record\", pigman_kills_life_record);\n section.set(\"giant.kills_life_record\", giant_kills_life_record);\n section.set(\"deaths\", deaths);\n section.set(\"rank\", rank);\n section.set(\"isBleeding\", isBleeding);\n section.set(\"isPoisoned\", isPoisoned);\n section.set(\"wasKilledNPC\", wasKilledNPC);\n section.set(\"timeOfKickban\", timeOfKickban);\n section.set(\"friends\", stringFriends);\n section.set(\"heals_life\", heals_life);\n section.set(\"thirst\", thirst);\n section.set(\"clan\", clan);\n section.set(\"minutes.played\", minutes_alive);\n section.set(\"minutes.played_life\", minutes_alive_life);\n section.set(\"minutes.played_life_record\", minutes_alive_life_record);\n section.set(\"research\", research);\n section.set(\"isZombie\", isZombie);\n section.set(\"legBroken\", isBrokenLeg);\n try {\n section.save(new File(MyZ.instance.getDataFolder() + File.separator + \"data\" + File.separator\n + SQLManager.UUIDtoString(uid) + \".yml\"));\n } catch (IOException e) {\n MyZ.instance.getLogger().warning(\"Unable to save a PlayerData for \" + uid.toString() + \": \" + e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "bcbb548df5aacc35fd07cb21f80de55a", "score": "0.5968383", "text": "private void save() {\n\t\tISecurePreferences preferences = SecurePreferencesFactory.getDefault().node(OUT_KEY);\n\t\ttry {\n\t\t\tpreferences.put(IN_KEY,serialization(),true);\n\t\t\tDescartesIssuesView.resetWizard();\n\t\t} catch (StorageException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "20e92ad839fc11c172c8915831c1bec1", "score": "0.5960443", "text": "public void save() {\n sharedPreferences = getSharedPreferences(PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n Gson gson = new Gson();\n String savedProjectName = gson.toJson(projectName);\n editor.putString(\"project\", savedProjectName);\n\n editor.commit();\n Toast.makeText(this, \"Created a new project \"+projectName, Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "936a8792bb9ff691d85f7866b8c81ac5", "score": "0.59593666", "text": "private static void save() {\r\n try( FileOutputStream fos = new FileOutputStream(\"data/NTU.ser\");\r\n ObjectOutputStream oos = new ObjectOutputStream(fos);){\r\n oos.writeObject(ntu);\r\n oos.close();\r\n fos.close();\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n }", "title": "" }, { "docid": "a8542523b15e9a8e187472db56eb0fe9", "score": "0.59534717", "text": "private void saveData() {\n SharedPreferences.Editor spe = getApplicationContext().getSharedPreferences(getString(R.string.auth_preference_file_key), Context.MODE_PRIVATE).edit();\n spe.putString(\"auth_token\", authToken);\n spe.putString(\"refresh_token\", refreshToken);\n spe.apply();\n }", "title": "" }, { "docid": "23cf612bed32a937e8c4a569bc653069", "score": "0.5950296", "text": "public void storeUsersInformation(HashMap<String, String> user) {\n editor = sharedpreferences.edit();\n //Obtaining random keys form the HashMap\n ArrayList<String> keys = new ArrayList<>(user.keySet());\n for (String key : keys) {\n editor.putString(key, user.get(key));\n }\n editor.apply();\n }", "title": "" }, { "docid": "cd2277ccd675a97bf52a23a2cf28a348", "score": "0.5942702", "text": "synchronized void save_permanent_state() {\n try {\n FileOutputStream out = new FileOutputStream(savePath);\n ObjectOutputStream oos = new ObjectOutputStream(out);\n oos.writeObject(this);\n oos.close();\n } catch (IOException e) {\n utilitarios.Notificacoes_Terminal.printMensagemError(\"Erro na escrita do file\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "f0a7d6aa9dc2b8e41e0e274ea983e227", "score": "0.59362406", "text": "public void store(String key, Object data) {\n this.storage.put(key, data);\n }", "title": "" }, { "docid": "093a984f5cdd24f2d9e5f1844360aca2", "score": "0.5934459", "text": "private void saveListState() {\n\n SharedPreferences prefs = getActivity().getSharedPreferences(\n \"items\", Context.MODE_PRIVATE);\n\n StringBuilder sb = new StringBuilder();\n\n // create one \\n separated string of items\n for (int i = 0; i < dataSet.size(); i++) sb.append(dataSet.get(i)).append(\"\\n\");\n\n // save\n prefs.edit().putString(\"items\", sb.toString()).apply();\n }", "title": "" }, { "docid": "2a526d0d72478615451d975d073cc03d", "score": "0.59321624", "text": "private void retrievePersistenceAndUse(){\n ArrayList<FoodTruckData> savedData = FoodTruckStorage.getMyFoodTruckData(getActivity());\n if(savedData != null && savedData.size() > 0){\n onDataReceived(savedData);\n }\n }", "title": "" }, { "docid": "b1e5072ce238516bc9be82d89eb97e94", "score": "0.5917254", "text": "public interface StorageService {\n public void storeEntry(String entry);\n public String retrieveEntry();\n public List<String> loadFile(String path) throws IOException;\n public void saveFile(List<String> contents, String filename) throws IOException;\n public void appendLineToFile(String contents, String fileName) throws IOException;\n}", "title": "" }, { "docid": "14f589eab15cad70995666041e00e50c", "score": "0.591382", "text": "@Override\n public void onPause() {\n Editor prefsEditor = savedPrefs.edit();\n\n //Converting arrayLists into strings and saving them\n prefsEditor.putString( \"storedName\", listToString(names,30) );\n prefsEditor.putString( \"storedDate\", listToString(dates,30) );\n prefsEditor.putString( \"storedDescription\", listToString(description,300) );\n prefsEditor.commit();\n\n super.onPause();\n }", "title": "" }, { "docid": "d8dd9129b9b9d903b2b788da38ecd4da", "score": "0.5911457", "text": "public <T> void storeData(String key, T value) {\n if (this.preferences == null) {\n return;\n }\n\n SharedPreferences.Editor editor = this.preferences.edit();\n\n if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n } else if (value instanceof String) {\n editor.putString(key, (String) value);\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n } else if (value instanceof Float) {\n editor.putFloat(key, (Float) value);\n }\n\n editor.apply();\n }", "title": "" }, { "docid": "68306177336afb5029a145a0616ebb31", "score": "0.5901424", "text": "Storage storage();", "title": "" }, { "docid": "582f1dc3f49bf400ed176b635b4301bd", "score": "0.58948493", "text": "protected void saveSharedPreferences(){\r\n Log.i(\"DEBUG\", \"Called saveSharedPreferences()\");\r\n //step 0: get a SharedPreferences instance\r\n //getSharedPreferences expects a filename and mode arguments\r\n SharedPreferences sharedPreferences = getSharedPreferences(PREF_FILE_NAME, 0);\r\n\r\n //step 1: get an instance of SharedPreferences.Editor object\r\n //Editor is needed to write/save preferences in the file\r\n //calling .edit() on our SharedPreferences instance will return an Editor\r\n SharedPreferences.Editor editor = sharedPreferences.edit();\r\n\r\n //step 2: get the values you want to store..\r\n EditText idEditText = (EditText)findViewById(R.id.studentId);\r\n long studentId = Long.parseLong(idEditText.getText().toString());\r\n EditText gradeEditText = (EditText)findViewById(R.id.studentGrade);\r\n String studentGrade = gradeEditText.getText().toString();\r\n //step3 use the Editor to put info into SharedPreferences\r\n editor.putLong(\"studentID\", studentId);\r\n editor.putString(\"studentGrade\", studentGrade);\r\n //step 4: call commit to save the changes!\r\n //or else!\r\n editor.commit();\r\n\r\n }", "title": "" }, { "docid": "41dc888b9bbc6ed9b5bc714d9c4424db", "score": "0.58896315", "text": "private void saveFormData() {\n mLocationItem.setDisplayedName(mDisplayedName.getText().toString());\n if (mLatitudeLayoutName.getVisibility() == View.VISIBLE) {\n String geoJson = \"{'type':'Feature','properties':{},'geometry':{'type':'Point','coordinates':[\" + mLongitude.getText() + \",\" + mLatitude.getText() + \"]}}\";\n mLocationItem.setGeoJson(geoJson);\n }\n }", "title": "" }, { "docid": "fc75c7d2a99737849e41bdc7edab7910", "score": "0.58776003", "text": "void onSavedInfo();", "title": "" }, { "docid": "0d0843a321db9f15d01bc7d81ccf6413", "score": "0.5873438", "text": "public void saveStockData();", "title": "" }, { "docid": "a88369dcaf21bba18f488f8ae6592e7c", "score": "0.5865542", "text": "public void store(Context context){\n try {\n FileOutputStream fos = context.openFileOutput(\"DATA_FILE.dat\", Context.MODE_PRIVATE);\n PrintWriter pw = new PrintWriter(fos);\n for (Album album : albums) {\n pw.println(album.getString());\n for (Photo photo : album.photos) {\n pw.println(photo.getString());\n }\n }\n pw.close();\n }\n catch (FileNotFoundException e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a7f51e8810129ef6511e370ac8005cdf", "score": "0.5838353", "text": "public void storeTasks() {\n SharedPreferences.Editor sp_editor = sp.edit();\n sp_editor.clear();\n for (int i = 0; i < tasks.size(); i++) {\n Task t = tasks.get(i);\n sp_editor.putString(String.valueOf(i), t.getName());\n sp_editor.putString(t.getName(), t.getDetails());\n sp_editor.putBoolean(t.getName() + \"bool\", t.getComplete());\n }\n\n sp_editor.apply();\n }", "title": "" }, { "docid": "ae5e88f67cb5154d9426ffeafcf64078", "score": "0.5836069", "text": "public void saveToSharedPreferences(View view) {\n spnameStr = spnameEditText.getText().toString();\n spcompStr = spcompIDEditText.getText().toString();\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"name\", spnameStr);\n editor.putString(\"id\", spcompStr);\n editor.commit();\n\n\n Toast.makeText(this,\"Saved to Share Preferences, Please press load button to load the name and id\", Toast.LENGTH_SHORT).show();\n\n\n\n\n }", "title": "" }, { "docid": "469d2269b15b5a20a744aef08e669da3", "score": "0.58251846", "text": "private static void saveWeatherInfo(Context context, String cityname,\n\t\t\tString weathercode, String temp1, String temp2, String weatherDesp,\n\t\t\tString publishTime) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy年M月d日\", Locale.CHINA);\n\n\t\tSharedPreferences.Editor editor = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context).edit();\n\n\t\teditor.putBoolean(\"city_selected\", true);\n\t\teditor.putString(\"city_name\", cityname);\n\t\teditor.putString(\"weather_code\", weathercode);\n\t\teditor.putString(\"temp1\", temp1);\n\t\teditor.putString(\"temp2\", temp2);\n\t\teditor.putString(\"weather_desp\", weatherDesp);\n\t\teditor.putString(\"publish_time\", publishTime);\n\t\teditor.putString(\"current_date\", sdf.format(new Date()));\n\n\t\teditor.commit();\n\t}", "title": "" }, { "docid": "294c827ebf8689edb39a57b39e564c74", "score": "0.5822862", "text": "protected abstract Object store(StorageProvider storageProvider, String key, Object value) throws StorageException;", "title": "" }, { "docid": "ba2c6d03913f03228c3a99871ec97c6f", "score": "0.58224577", "text": "public void putState() {\n SharedPreferences sharedPref = getSharedPreferences(\"MyPref\", MODE_PRIVATE);\n iCountNumberOfQuestions = sharedPref.getInt(\"SavedNumberOfQuestions\", 0);\n iLevel = sharedPref.getInt(\"SavedLevel\", 1);\n }", "title": "" }, { "docid": "6fdc31ec4d3eb8c10136219068aecbb6", "score": "0.58179903", "text": "public abstract void storeData();", "title": "" }, { "docid": "0c5380d2c10874cdcf5aa7df718c7e0e", "score": "0.5812577", "text": "public void saveItemData() {\n HashMap<String, Object> data = new HashMap<>();\n data.put(\"name\", name);\n data.put(\"id\", id);\n data.put(\"locale\", localeID);\n File localeData = new File(Constants.ITEM_DATA + \"/\" + id);\n FileOutputStream fout;\n ObjectOutputStream oout;\n try {\n fout = new FileOutputStream(localeData);\n oout = new ObjectOutputStream(fout);\n oout.writeObject(data);\n fout.close();\n oout.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n //Store image into file system\n File imageData = new File(Constants.ITEM_IMAGES + \"/\" + id);\n try {\n fout = new FileOutputStream(imageData);\n picture.compress(Bitmap.CompressFormat.PNG, 100, fout); // bmp is your Bitmap instance\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "55a5336240890e260dd5003c80e418f8", "score": "0.58101374", "text": "public void saveStore(String filename) {\n try {\n FileOutputStream outputFile = new FileOutputStream(filename);\n ObjectOutputStream objectOut = new ObjectOutputStream(outputFile);\n objectOut.writeObject(this);\n\n objectOut.close();\n outputFile.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "46235c4d6c1b4af521f5a9bcf204f7d4", "score": "0.5805432", "text": "@Override\n protected void onSaveInstanceState(@NonNull Bundle outState) {\n super.onSaveInstanceState(outState);\n EditText txt = findViewById(R.id.text_Edit);\n\n outState.putString(\"storage\", txt.getText().toString());\n }", "title": "" }, { "docid": "99c32e381e6ef7738fdcdfc7e23c1d83", "score": "0.58010364", "text": "public void saveInfoToFile(SaveToFile storage){\n storage.savePerformace(this.numberOfPositivePOIs);\n }", "title": "" }, { "docid": "4fa650955f6ac1d5df32e9cff0cfe03f", "score": "0.5771499", "text": "void saveData() throws IOException {\n\t\tBufferedWriter f = new BufferedWriter(new FileWriter(file));\n\t\tfor(Student student : studentList)\n\t\t\tf.write(student.toStringStorageFormat()+\"\\n\");\n\t\tf.close();\n\t}", "title": "" }, { "docid": "5d079649ba6f39b8016cf9f949514a54", "score": "0.5742658", "text": "public interface ILocalSettingsPersister {\n\n /**\n * Writes the specified local settings to persistent storage.\n * @param localSettings The local settings to write.\n */\n void Write(LocalSettings localSettings);\n \n /**\n * Reads the local settings from persistent storage;\n * @return The local settings.\n */\n LocalSettings Read();\n}", "title": "" }, { "docid": "f628fa93446d3a1c5cb5dde3e173a998", "score": "0.57335055", "text": "private static void store(NetworkManager web) {\n\t\ttry {\n\t\t\tObjectOutputStream file = new ObjectOutputStream(new FileOutputStream(\"base_de_dados.ser\"));\n\t\t\tfile.writeObject(web);\n\t\t\tfile.flush();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {}\n\t}", "title": "" }, { "docid": "dd4af5741b23f2866e9ba5a9799e1525", "score": "0.57317215", "text": "public void saveData(User user) {\n editor = sharedPreferences.edit();\n editor.putString(\"username\", user.getUsername());//this method to save the data\n editor.putString(\"email\", user.getEmail());\n editor.putString(\"about\", user.getAbout());\n editor.putString(\"phone\", user.getPhone());\n editor.putString(\"imageUrl\", user.getImageUrl());\n editor.putBoolean(\"online\" , user.isOnline());\n\n editor.commit();\n }", "title": "" }, { "docid": "c2690dd2dcc15538f71922945a6947d2", "score": "0.57314247", "text": "public interface Storage {\n\n public String storeText(String content);\n\n}", "title": "" }, { "docid": "db850e8b16446c7de47a0922c45d1e72", "score": "0.57275337", "text": "public void SaveData(String Tag, String text) {\r\n prefsEditor.putString(Tag, text);\r\n prefsEditor.commit();\r\n }", "title": "" }, { "docid": "4fb7ff1f04993df835e21a2c0cc5b443", "score": "0.5725546", "text": "public void saveData () throws FileNotFoundException, IOException{\n data.saveData();\n }", "title": "" }, { "docid": "111739b75df5aaa4a37260dcb0cc3ae6", "score": "0.57039505", "text": "public void save() {\n synchronized (PREF_CITIES){\n // Obtenemos la referencia \"strong\" al weakContext\n Context strongContext = mContext.get();\n if (strongContext != null){\n // Sacamos las preferencias\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(strongContext);\n\n // Creamos un conjunto de ciudades\n Set<String> citiesSet = new HashSet<>();\n for (City city : mCities){\n citiesSet.add(city.getName());\n }\n\n // Las guardamos\n prefs.edit().putStringSet(PREF_CITIES, citiesSet).apply();\n }\n }\n }", "title": "" }, { "docid": "26e3e95ee3217f2cfbc3fbef9948590b", "score": "0.5701408", "text": "private void saveData() {\n InputStream in = getResources()\n .openRawResource(R.raw.stattion_list);\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(in, Charset.forName(\"UTF-8\")));\n\n String line = \"\";\n try {\n //create empty station list\n List<Stations> stations = new ArrayList<>();\n\n //read csv line by line\n while ((line = reader.readLine()) != null) {\n //split line by ,\n val stationOBJ = line.split(\",\");\n\n //set station detail to station oject\n val station = new Stations(stationOBJ[0], stationOBJ[1], stationOBJ[2],\n System.currentTimeMillis());\n\n //add station to station list\n stations.add(station);\n }\n\n //set station list to list placed in location application class\n LocationApp.instance()\n .setStationList(stations);\n }\n catch (Exception e) {\n //AndroidUtil.toast(false, e.getLocalizedMessage());\n }\n }", "title": "" }, { "docid": "7c7fba75a4962071f22fcad1c9f2dd68", "score": "0.5701018", "text": "public interface Storage extends LoanBookStorage, UserPrefsStorage {\n\n @Override\n Optional<UserPrefs> readUserPrefs() throws DataConversionException, IOException;\n\n @Override\n void saveUserPrefs(UserPrefs userPrefs) throws IOException;\n\n @Override\n Path getLoanBookFilePath();\n\n @Override\n Optional<ReadOnlyLoanBook> readLoanBook() throws DataConversionException, IOException;\n\n @Override\n void saveLoanBook(ReadOnlyLoanBook loanBook) throws IOException;\n\n /**\n * Saves the current version of the Loan Book to the hard disk.\n * Creates the data file if it is missing.\n * Raises {@link DataSavingExceptionEvent} if there was an error during saving.\n */\n void handleLoanBookChangedEvent(LoanBookChangedEvent abce);\n}", "title": "" }, { "docid": "641b4019643cf1351e71f6db507f301b", "score": "0.56849915", "text": "void store() {\n if (selected != null) {\n NbPreferences.forModule(DownloadTargetFolders.class).put(DownloadTargetFolders.PREF_DOWNLOAD_TARGET_FOLER, selected.toString());\n }\n NbPreferences.forModule(DownloadTargetFolders.class).putBoolean(DownloadTargetFolders.PREF_USE_7Z, sevenZCheckBox.isSelected());\n }", "title": "" }, { "docid": "b0acaf67c897b6508d7d8dc31c917d63", "score": "0.56825185", "text": "public void saveData() {\n AccessData.db.deleteSports(sportToEdit);\n HashMap<String,Object> map = new HashMap<>();\n map.put(\"bio\",bio_content.getText().toString());\n map.put(\"age\",date.getTime());\n map.put(\"firstname\",fname_text.getText().toString());\n map.put(\"name\", name_text.getText().toString());\n map.put(\"sports\",sportItems);\n\n AccessData.db.updateUser(AccessData.currentUser,map);\n saved=true;\n if(isChanged == true) {\n AccessData.db.addPhoto(uriUser);\n }\n }", "title": "" }, { "docid": "d3dbb5203f05c420edc43aa73ba1babc", "score": "0.56796455", "text": "private void saveAccount() {\n try {\n jsonWriter.open();\n jsonWriter.write(myAccount);\n jsonWriter.close();\n System.out.println(\"Saved \" + myAccount.getName() + \"'s account to \" + JSON_STORE);\n } catch (FileNotFoundException e) {\n System.out.println(\"Unable to write to file: \" + JSON_STORE);\n }\n }", "title": "" }, { "docid": "85aba9b779ace2dfefa20f300aeace66", "score": "0.5677411", "text": "private void saveLoginDataToLocal(LoginData loginData) {\r\n if (loginData != null) {\r\n SharedPreferences sharedPreferences = MainApplication.getInstance().\r\n getSharedPreferences(AppConstants.SHARED_PREFERENCE_NAME,\r\n Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sharedPreferences.edit();\r\n editor.putString(\"userName\", loginData.getUserName());\r\n editor.putString(\"uid\", loginData.getUid());\r\n editor.putString(\"token\", loginData.getToken());\r\n editor.putString(\"phoneNumber\", loginData.getPhoneNumber());\r\n editor.commit();\r\n }\r\n }", "title": "" }, { "docid": "096a664a446e56b58f13f63a00b8c092", "score": "0.56767", "text": "public interface Storage {\n\t/**\n\t * Stores a key/value pair.\n\t * \n\t * @param key\n\t * the key to define\n\t * @param value\n\t * the value to store\n\t * @return <code>true</code> if this call changed the existing value of\n\t * <code>key</code>\n\t */\n\tpublic boolean put(Object key, String value);\n\n\t/**\n\t * Retrieves a key/value pair.\n\t * \n\t * @param key\n\t * the key to consult\n\t * @return the String associated with that key\n\t */\n\tpublic String get(Object key);\n}", "title": "" }, { "docid": "d25b7d70811f71a008bc77d5ecb35295", "score": "0.5668321", "text": "public interface IStorage {\n\n void save(String string);\n}", "title": "" }, { "docid": "5ea53a3e797def29cccb98acb6dabc28", "score": "0.5666243", "text": "public void store(){\n\t\tfor(int id = 0; id < iter.length; id++){\n\t\t\t storage[id] = properties[id];\n\t\t}\n\t}", "title": "" }, { "docid": "a11644ff80c6f72b8c84cbb739dac5b5", "score": "0.5664247", "text": "public void saveCalculationPlatesToSharedPreferences()\n {\n SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.clear();\n\n //Gson object allows you to convert custom objects (like plate) to string\n Gson gson = new Gson();\n\n //go through the entire array list, converting each element to a string with the Gson, and storing it in the sharedPreferences.\n int listLength = calculationPlates.size();\n for(int i = 0; i < listLength; i++)\n {\n String stringRepresentation = gson.toJson(calculationPlates.get(i));\n editor.putString(KEY_SHARED_PREF_PLATES + Integer.toString(i),stringRepresentation);\n }\n //the size of the list needs to be saved into the SharedPreferences object so that the plates can be retrieved later.\n editor.putInt(KEY_SHARED_PREF_PLATE_LENGTH,listLength);\n editor.commit();\n }", "title": "" }, { "docid": "787ae66c731357f1fb0e441e8be8f004", "score": "0.5664166", "text": "void saveCacheToDisk() {\n if (cache.isEmpty())\n return;\n\n String cacheString = gson.toJson(cache);\n\n try {\n Files.writeString(Path.of(\"currency_cache.json\"),\n cacheString,\n StandardCharsets.UTF_8,\n StandardOpenOption.WRITE,\n StandardOpenOption.CREATE);\n } catch (IOException e) {\n System.err.println(\n \"There was a problem with writing to \\\"currency_cache.json\\\"\");\n }\n }", "title": "" }, { "docid": "7d7e163cee27b38aa99f26445b40d843", "score": "0.56627595", "text": "public static void saveVehicleCanInfo() {\n SharedPreferences.Editor e = (context.getSharedPreferences(\"HutchGroup\", context.MODE_PRIVATE)).edit();\n e.putString(\"odometer\", CanMessages.OdometerReading);\n e.putString(\"engine_hours\", CanMessages.EngineHours);\n e.commit();\n }", "title": "" }, { "docid": "b8c563206fc064c1c881c91e5c3ab14a", "score": "0.56624943", "text": "public void saveState() {\n\t\t\tFileOutputStream file = null;\n\t\t\ttry {\n\t\t\t\tfile = new FileOutputStream(\"PizzaInventoryServlet.state\");\n\t\t\t\tDataOutputStream prnWriter = new DataOutputStream(file);\n\t\t\t\tprnWriter.writeInt(cheese);\n\t\t\t\tprnWriter.writeInt(wheatflour);\n\t\t\t\tprnWriter.writeInt(beans);\n\t\t\t\tprnWriter.writeInt(capiscum);\n\t\t\t}\n\t\t\tcatch (IOException ignored) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tif (file != null) {\n\t\t\t\t\t\tfile.close();\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "965433c9451ddfae573ff007ea4829e5", "score": "0.5656807", "text": "void save(T data);", "title": "" }, { "docid": "494024cae0a7e94f3695100a7803bbd4", "score": "0.5653238", "text": "private void persist() {\n }", "title": "" }, { "docid": "d62494e3d29d8a0303ffb6f2cf89fa8a", "score": "0.56509346", "text": "@Override\n public void save() throws FileNotSavedException {\n storage.write();\n }", "title": "" }, { "docid": "4cf1cc1d4917e11e966cdcd7b0959cf3", "score": "0.5648662", "text": "public static void saveUser(){\n clearUser();\n SharedPreferences.Editor editor = pref.edit();\n editor.putString(userPhone, user.getPhone());\n editor.putString(userPassword, user.getPassword());\n editor.commit();\n }", "title": "" }, { "docid": "5e00fa144f9d201edd8269199d1dda07", "score": "0.56448853", "text": "public void save();", "title": "" }, { "docid": "ab9b2e9d4c18c24a5163f49aa479570d", "score": "0.56432056", "text": "public final void save() {\n GameData data = new GameData();\n try {\n data.save();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "55bbbfda3f5be231cae6b05665dc0b70", "score": "0.56430304", "text": "private static void storeContinentCountryMap() {\n\n\t\tString text = JSONUtil.getJSONString(continentCountryMap, true);\n\t\ttry {\n\t\t\tFileUtils.write(continentCountryMapJSONFile, text);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "e8340d74582ac27325312448c6ca18b4", "score": "0.56362903", "text": "private void savePlaylist(ArrayList<MusicTrack> arrayList) {\n SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(mCtx);\n SharedPreferences.Editor editor = sharedPrefs.edit();\n Gson gson = new Gson();\n\n String json = gson.toJson(arrayList);\n\n editor.putString(getString(R.string.list_name), json);\n editor.commit();\n }", "title": "" }, { "docid": "fa79ea982609bfee568f64f3a9a1e984", "score": "0.56240344", "text": "public static void storeSimpleData(Context ctx,String tag,String value)\n\t{\n\t\tSharedPreferences prefs=ctx.getSharedPreferences(preferencesName,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = prefs.edit();\n\t\teditor.putString(tag, value);\n\t\teditor.commit();\n\t}", "title": "" }, { "docid": "1b9bfba1c8e37ca18138ce9d8c1cb82b", "score": "0.56236374", "text": "public void saveData(){\n }", "title": "" }, { "docid": "de039f7c696b3d53fe2333ff0c79092d", "score": "0.5609996", "text": "private void saveAccount() {\n try (ObjectOutputStream stream = new ObjectOutputStream(openFileOutput(\"account.dat\", MODE_PRIVATE))) {\n stream.writeObject(Account.globalAccount);\n stream.writeInt(Account.globalAccount.i);\n stream.writeInt(Account.globalAccount.amountTransfer);\n\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" } ]
a1560b2d4a81de934eaa1c10ee3cba2f
Created by root on 7/9/16.
[ { "docid": "62cbf148e8cf3f62ac2c2dd4251050a5", "score": "0.0", "text": "public interface IStaticDatabase {\n\n\n String TABLE_NAME = \"static_table\";\n String COLUMN_NAME_ID = \"id\";\n String COLUMN_NAME_NAME = \"name\";\n\n\n String SELECT_ALL = \" * \";\n String SELECT = \" SELECT \";\n String FROM = \" FROM \";\n String TEXT_TYPE = \" TEXT\";\n String COMMA_SEP = \",\";\n String WHERE = \" WHERE \";\n String AND = \" AND \";\n String EQUAL_TO = \" = \";\n\n String SQL_SELECT_QUERY = SELECT + SELECT_ALL + FROM + TABLE_NAME;\n\n String SQL_CREATE_ENTRIES =\n \"CREATE TABLE \" + TABLE_NAME + \" (\" +\n COLUMN_NAME_ID + \" INTEGER PRIMARY KEY,\" +\n COLUMN_NAME_NAME + TEXT_TYPE +\n \" )\";\n\n String SQL_DELETE_ENTRIES =\n \"DROP TABLE IF EXISTS \" + TABLE_NAME;\n}", "title": "" } ]
[ { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.64033103", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.5843851", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "8e75ffe6faa994ed57c6ffb8b56296fe", "score": "0.58046174", "text": "public void xiuproof() {\n\t\t\n\t}", "title": "" }, { "docid": "ee0f5f270c3e0eea9f37c3d1e42b1161", "score": "0.5779543", "text": "public void mo12736g() {\n }", "title": "" }, { "docid": "12cb886ceb5e3e8b5a540a316317c996", "score": "0.5740187", "text": "private void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "12cb886ceb5e3e8b5a540a316317c996", "score": "0.5740187", "text": "private void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "39da14b1f6e1adac9c0b748811e78b68", "score": "0.5725354", "text": "public void mo12645zl() {\n }", "title": "" }, { "docid": "fdeab6ca2d3dd91b347a8cc2f5c862c2", "score": "0.5706652", "text": "private static void generateNew() {\n\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "35e5940d13f06d1f0d6a21cf2739c70a", "score": "0.5697803", "text": "public function() {}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5686345", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "81758c2988d9979c7d4b3fd5b3cce0e5", "score": "0.5662534", "text": "@Override\r\n\tpublic void pular() {\n\r\n\t}", "title": "" }, { "docid": "f838b13cad014e3ea632a7862aea755b", "score": "0.5621296", "text": "private void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.5559235", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55419093", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55419093", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55419093", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.55419093", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.5541709", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "a56ce606ea5cc945279ea9725eed5272", "score": "0.55319715", "text": "@Override\n\tpublic void alearga() {\n\t\t\n\t}", "title": "" }, { "docid": "5697bde38a38a77f3a0bd238fb737c11", "score": "0.55298805", "text": "@Override\n public int getDochody() {\n return 0;\n }", "title": "" }, { "docid": "b9b1accefb9dfdc03434ea65ec63d306", "score": "0.5518563", "text": "private void drow() {\n\t\t\n\t}", "title": "" }, { "docid": "b8a933b513450a6a7874821e414066eb", "score": "0.5515947", "text": "private void init() {\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5470877", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "07779d53803dc6875c03bdee2e1afeb5", "score": "0.546846", "text": "@Override\n public void ordenar() {\n }", "title": "" }, { "docid": "658e2157a962e8e3911961071abbf52d", "score": "0.54614866", "text": "protected void func_70088_a() {}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.5458635", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.54547805", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5452554", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "ab5275f8a8349457f0b804fa387ec020", "score": "0.54508007", "text": "private void initialize() {\n\t\t\t\n\t}", "title": "" }, { "docid": "f6982c872fa3d00992534a737e2e11ab", "score": "0.5421736", "text": "private static void init() {\n }", "title": "" }, { "docid": "6b0e2e41d411b76c357d16b3eb3a159c", "score": "0.5420074", "text": "protected abstract void entschuldigen();", "title": "" }, { "docid": "0b812af084ac0cb033ab904c49294fed", "score": "0.5413841", "text": "public void mo25703a() {\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5408789", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "f25d3171909f6a320f340d9072561e1d", "score": "0.54066706", "text": "private void TacherSmoking() {\n\n\t}", "title": "" }, { "docid": "5520272328fa400fa18980560e283bbe", "score": "0.5399796", "text": "private void initialize() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "fa729e301b181004ac22fa6a16b19c1b", "score": "0.5395576", "text": "@Override\n public void init()\n {\n }", "title": "" }, { "docid": "670711ee90611c4f58910df06647dfe9", "score": "0.5393101", "text": "private static void m508c() {\r\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.53917265", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.53917265", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.53917265", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.539021", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "e469334136e3a4aa278d17f0b24824a0", "score": "0.53841805", "text": "private static void resulatdo1() {\n\t\t\r\n\t}", "title": "" }, { "docid": "08bd45f7b8e2e14abf131ee7f61deb7d", "score": "0.53840667", "text": "public void func_71256_s() {\n }", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.53752226", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.53752226", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.53752226", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.53752226", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "e8868463a89178c883ee18ebd43b8a61", "score": "0.53743875", "text": "public final void mo34057y() {\n }", "title": "" }, { "docid": "f434de351aa50379517444f172381e08", "score": "0.5371191", "text": "public void bulletproof() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.53554463", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.53554463", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.53554463", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.53554463", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.53554463", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.53554463", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.53554463", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.53554463", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.53554463", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.53554463", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.53554463", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.535405", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.53502995", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "c4c8a734638d3644f7b4568ef7412a50", "score": "0.5346722", "text": "private void initialize() {\n\r\n\t}", "title": "" }, { "docid": "0dc532a19d96978e970e5069b07f56d9", "score": "0.53404844", "text": "public void mo12646zm() {\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5331187", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5331187", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5331187", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "22ac36b2371eb86809e09865575dc236", "score": "0.5326731", "text": "private static void m507b() {\r\n }", "title": "" }, { "docid": "adadf2a9a6f661ab6cd651988c01f618", "score": "0.5324305", "text": "private void initialize() {}", "title": "" }, { "docid": "4077955e82cce22d988577ca0a7978fc", "score": "0.532038", "text": "@Override\n\tpublic void dormir() {\n\n\t}", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.5320275", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5315712", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5315712", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.53107715", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "8c9bee953d6868c3de9a487d6803b3e0", "score": "0.53107274", "text": "public abstract void mo79653c();", "title": "" }, { "docid": "1b431b6b993b6f83bedbe589b6247808", "score": "0.5309204", "text": "public abstract void mo79654d();", "title": "" }, { "docid": "23d32e184a88bab31671010c45922a93", "score": "0.5305178", "text": "private void inic() {}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.5303078", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "1de1d91c192888f0e3a70817cbf900e2", "score": "0.53003526", "text": "protected static void prueba() {\n\t\t\n\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.52992034", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "15c9cae08ae101b3a04f9ff3b519ae04", "score": "0.5297662", "text": "public void mo8316a() {\n }", "title": "" }, { "docid": "4e86f604c407a96c75671f663064c24b", "score": "0.5295342", "text": "public void mo8319b() {\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5289284", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.52869284", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.52869284", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.52869284", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5285477", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5285477", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5285477", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5285477", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5285477", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5285477", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5285477", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5285477", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5285477", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "8b4f51c39d6a7d927553fa0e5ebd149c", "score": "0.5284162", "text": "public void mo9186d() {\n }", "title": "" }, { "docid": "f82ec92db72e32d9b9a983d17b3248b8", "score": "0.52801615", "text": "public abstract void mo18576vW();", "title": "" }, { "docid": "df874b61406cbb181a458ae515220156", "score": "0.5280066", "text": "public void mo12735f() {\n }", "title": "" }, { "docid": "f1be3defd1b6e608b8995eb6221bb211", "score": "0.5279417", "text": "public void init() {\n\t\t\n\t}", "title": "" }, { "docid": "f1be3defd1b6e608b8995eb6221bb211", "score": "0.5279417", "text": "public void init() {\n\t\t\n\t}", "title": "" }, { "docid": "f1be3defd1b6e608b8995eb6221bb211", "score": "0.5279417", "text": "public void init() {\n\t\t\n\t}", "title": "" } ]
5d01d45b0109d9c80b29366ee9e72512
POST /foos : Create a new foo.
[ { "docid": "9edff280572a16de9cdd8caed117f667", "score": "0.74659026", "text": "@RequestMapping(value = \"/foos\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<FooDTO> createFoo(@RequestBody FooDTO foo) throws URISyntaxException {\n log.debug(\"REST request to save Foo : {}\", foo);\n return app1FooClient.createFoo(foo);\n }", "title": "" } ]
[ { "docid": "950cc8a1052ea822dceb5b185614568e", "score": "0.64578825", "text": "@PostMapping(value=\"/\")\n\tpublic @ResponseBody String createFood(@RequestBody Food f) {\n\t\tSystem.out.println(\"In the create food method\");\n\t\tfDao.insert(f);\n\t\treturn \"Food created successfuly\";\n\t}", "title": "" }, { "docid": "cf0305d1df4771424b842dd3688e2294", "score": "0.61174816", "text": "@Test\n\tpublic void testCreateOne() {\n\t\tToDo todo = new ToDo();\n\t\ttodo.setDescription(\"Test your demo man.\");\n\n\t\tEntity<ToDo> entity = Entity.entity(todo, MediaType.APPLICATION_JSON);\n\n\t\tResponse response = target.path(\"todos\").request().buildPost(entity)\n\t\t\t\t.invoke();\n\n\t\tAssert.assertNotNull(response.getEntity());\n\t\tAssert.assertTrue((response.readEntity(ToDo.class)).getId() > -1);\n\n\t}", "title": "" }, { "docid": "2e4267c0a86df24ec8cf79ebcfddd8ff", "score": "0.6104212", "text": "@PostMapping(\"/createBook\")\n\t@ResponseBody\n\tpublic Book createBook(@RequestBody Book book) {\n\t\treturn bookService.saveBook(book); \n\t}", "title": "" }, { "docid": "b4aabfb3adb9d1595c04565822cf9a55", "score": "0.60836387", "text": "@PostMapping(\"/cars\")\n public Car createCar(@RequestBody Car car){\n return carRepository.save(car);\n }", "title": "" }, { "docid": "664e1961a7c83115182a57ad7a0c4d11", "score": "0.60740185", "text": "@POST\n Response createStudent(Student student);", "title": "" }, { "docid": "fcc2f3dbb080f0dbd052f753ff736789", "score": "0.60602385", "text": "@PostMapping(\"/books\")\r\n\tpublic Book createBook(@RequestBody Book book)\r\n\t{\r\n\t\tbook.setBookId(0);\r\n\t\treturn bookService.createBook(book);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "394574fc997e5835763a01ff202ee1fa", "score": "0.60595304", "text": "@PostMapping\n public Mono<ResponseEntity<Order>> create(@RequestBody Order order, UriComponentsBuilder uriComponentsBuilder) {\n return orderService.save(order)\n .map(savedOrder -> {\n URI location = uriComponentsBuilder.pathSegment(\"/orders/{id}\")\n .buildAndExpand(savedOrder.id())\n .toUri();\n return ResponseEntity.created(location).body(savedOrder);\n })\n // If you want to manage the exception \"by hand\", but I use an exception handler\n // (with the class ExceptionHandlers)\n// .onErrorResume(e -> Mono.just(ResponseEntity.badRequest().build()))\n ;\n }", "title": "" }, { "docid": "82879d511666c8c3c7543bc51ee080bd", "score": "0.60165125", "text": "@PostMapping(\"/books\")\n\tpublic Book createNote( @RequestBody Book book) {\n\t\treturn bookRepository.save(book);\n\t}", "title": "" }, { "docid": "2dda266e4403b10ccf80e3d853446906", "score": "0.6005165", "text": "@POST(\"/app/create\")\n Call<Integer> createAppoitement(@Body AppoitementForm appoitementForm);", "title": "" }, { "docid": "290747596ffabb620127a5006320489b", "score": "0.59964985", "text": "@POST\r\n @Path(\"/newEvent\")\r\n @Consumes(MediaType.APPLICATION_JSON)\r\n public Response createEvent(Evento evento){\r\n try {\r\n Facade pm = new Facade();\r\n pm.crearEvento(evento);\r\n return Response.ok().build();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n return Response.status(Status.NOT_FOUND).build();\r\n } catch (Exception ex) {\r\n return Response.status(Status.NOT_FOUND).build();\r\n }\r\n }", "title": "" }, { "docid": "10adf5b726e97a3bcb32aa168a0d2111", "score": "0.5994801", "text": "@PostMapping(\"/empresas\")\n @ApiOperation(\"Crea una nueva empresa.\")\n public ResponseEntity<Empresa> crearEmpresa(@RequestBody Empresa empresa) throws URISyntaxException {\n if(empresa.getId() != null){\n return new ResponseEntity<>(HttpStatus.BAD_REQUEST);\n }\n Empresa empresaCreada = servicio.crearEmpresa(empresa);\n return ResponseEntity.created(new URI(\"/api/empresas/\" + empresaCreada.getId())).body(empresaCreada);\n }", "title": "" }, { "docid": "3113cc346d7bb27a2821feb9a06ba5af", "score": "0.59938216", "text": "@Test\n\tpublic void postUser_testUserCreated_201() {\n\t\tUser user = new User(); \n\t\tuser.setName(\"Admin\"); user.setDob(new Date());\n\t\tResponse response = REQUEST\n\t\t\t\t.accept(ContentType.JSON)\n\t\t\t\t.body(user)\n\t\t\t\t.request(Method.POST, \"/users\");\n\t\tresponse.then().assertThat().statusCode(HttpStatus.SC_CREATED);\n\t\t\n\t}", "title": "" }, { "docid": "fa7a9b9e4745737ad3f50af05f9685e7", "score": "0.5954326", "text": "@Test\r\n void testCreateGroup_created(){ // POST\r\n String myJson=\"{\\\"name\\\":\\\"new_group\\\"}\";\r\n given().\r\n contentType(ContentType.JSON).\r\n body(myJson).\r\n when().\r\n post(\"/\").\r\n then().\r\n statusCode(201).\r\n body(\"id\", notNullValue(),\r\n \"name\", equalTo(\"new_group\")).\r\n header(\"Location\", notNullValue());\r\n }", "title": "" }, { "docid": "6fddf286b493d7ed3ef2643f5c55b756", "score": "0.59469515", "text": "@PostMapping(\"/crear\")\n\tpublic Usuario crear(@RequestBody Usuario usuario) {\n\t\treturn usuarioService.crear(usuario);\n\t}", "title": "" }, { "docid": "30b76d6a39cdc7d75a2ea4ac6c1c3cf3", "score": "0.593412", "text": "@PostMapping(\"/create\")\n public ResponseEntity<?> createBooks(@RequestBody Book book){\n service.createBooks(book);\n return new ResponseEntity<>(book,HttpStatus.OK);\n }", "title": "" }, { "docid": "2d00316c695d63e49f4affa84f9d4718", "score": "0.59311444", "text": "@RequestMapping(value=\"/addFood\", method=RequestMethod.POST)\r\n\tpublic void addFood(@RequestBody FavoriteFood food) {\r\n\t\tfoodService.add(food);\t\r\n\t}", "title": "" }, { "docid": "6f65fe14750c50a042c739bae6929d51", "score": "0.5894249", "text": "public T create(Map<String, String> params) throws TwilioRestException;", "title": "" }, { "docid": "32b62561175646ec89f1e50e28cc2dfa", "score": "0.58931875", "text": "@PostMapping(\"/ticket\")\n public ResponseEntity<?> create(@RequestBody TicketDTO model) {\n return ticketService.create(model);\n }", "title": "" }, { "docid": "0a1c81f0041b0babc3d7971c3ba7202c", "score": "0.5877448", "text": "public Result create(String nombre, String descripcion, Http.Request request) {\n Tipo tipo_aux = new Tipo();\n Form<Tipo> form = formFactory.form(Tipo.class);\n\n //COMPROBAMOS CONTENT TYPE NE LA CABECERA\n if (request.contentType().get().equals(\"application/json\")) {\n form = formFactory.form(Tipo.class).bindFromRequest(request);\n if (form.hasErrors()) {\n return Results.notAcceptable(form.errorsAsJson());\n } else {\n tipo_aux = form.get();\n }\n\n } else if (request.contentType().get().equals(\"application/xml\")) {\n Document doc = request.body().asXml();\n\n doc.getChildNodes().item(0).getFirstChild().getTextContent();\n tipo_aux.setNombre_tipo(doc.getFirstChild().getChildNodes().item(1).getTextContent());\n tipo_aux.setDescripcion(doc.getFirstChild().getChildNodes().item(3).getTextContent());\n\n form = formFactory.form(Tipo.class).fill(tipo_aux);\n if (form.hasErrors()) {\n return Results.notAcceptable(form.errorsAsJson());\n } else {\n tipo_aux = form.get();\n }\n } else {\n //jugamos con parametros directamente\n tipo_aux.setNombre_tipo(nombre.toString());\n tipo_aux.setDescripcion(descripcion.toString());\n form = formFactory.form(Tipo.class).fill(tipo_aux);\n if (form.hasErrors()) {\n return Results.notAcceptable(form.errorsAsJson());\n } else {\n tipo_aux = form.get();\n }\n\n }\n\n\n //PROCESAMOS LA RESPUESTA\n if (request.accepts(\"application/json\")) {\n\n\n ArrayNode respuesta = Json.newArray();\n ObjectNode succes = Json.newObject();\n ObjectNode info = Json.newObject();\n if (tipo_aux.findByName(tipo_aux.getNombre_tipo()) == null) {\n try {\n Tipo tipo = new Tipo();\n tipo = tipo_aux;\n tipo.save();\n\n succes.put(\"success\", true);\n info.put(\"info\", \"Tipo insertado con éxito!\");\n\n } catch (Exception e) {\n succes.put(\"success\", false);\n info.put(\"info\", \"Fallo al insertar el tipo!\");\n }\n\n } else {\n succes.put(\"success\", false);\n info.put(\"info\", \"Ya existe un tipo con ese nombre!\");\n }\n respuesta.add(succes);\n respuesta.add(info);\n return Results.ok(respuesta).withHeader(\"X-User-Count\", tipo_aux.findNumeroDeTipos().toString());\n\n } else if (request.accepts(\"application/xml\")) {\n String succes_aux = \"\";\n String mensaje_aux = \"\";\n if (tipo_aux.findByName(tipo_aux.getNombre_tipo()) == null) {\n try {\n Tipo tipo = new Tipo();\n tipo = tipo_aux;\n tipo.save();\n succes_aux = \"true\";\n mensaje_aux = \"Tipo insertado con éxito!\";\n } catch (Exception e) {\n succes_aux = \"false\";\n mensaje_aux = \"No se ha podido insetar el tipo\";\n }\n } else {\n succes_aux = \"false\";\n mensaje_aux = \"Ya existe un tipo con ese nombre!\";\n }\n Content content = views.xml.receta.render(succes_aux, mensaje_aux);\n\n return Results.ok(content).withHeader(\"X-User-Count\", tipo_aux.findNumeroDeTipos().toString());\n\n } else {\n return badRequest(\"Unsupported format\");\n }\n\n }", "title": "" }, { "docid": "a8d8010dbae89e707cd0fbe95c0cbe68", "score": "0.5874927", "text": "@RequestMapping(method=RequestMethod.POST, value=\"/quiz/createQuiz\")\r\n\tpublic void createQuiz(@RequestBody Question question) {\n\t\t questionService.createQuestion(question);\r\n\t}", "title": "" }, { "docid": "7b05d6ace1e385f79c585ff0d5a84f22", "score": "0.58589983", "text": "public T create(List<NameValuePair> params) throws TwilioRestException;", "title": "" }, { "docid": "f04c6ca4595d32350ce90f3c1cf92a8d", "score": "0.5847971", "text": "public String create(Patient newInstance) throws ServiceException;", "title": "" }, { "docid": "d6ac84812b4cc3bddbda8fefdf3b232d", "score": "0.5847293", "text": "@PostMapping(\"/users\")\n @ResponseStatus(HttpStatus.CREATED)\n public User createNewUser(@RequestBody User user) {\n user.setId(nextID.incrementAndGet());\n users.add(user);\n return user;\n }", "title": "" }, { "docid": "e5b69e2ff73f27520ec1eaba6e93bd77", "score": "0.58453804", "text": "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n public Response create(FilmDTO film) {\n String filmTitle = film.getTitle();\n List<Actor> actors = film.getActors();\n\n if (filmTitle == null && filmTitle == \"\") {\n return Response\n .status(Response.Status.BAD_REQUEST)\n .build();\n }\n\n manager.create(filmTitle, actors);\n \n URI href = uriInfo\n .getBaseUriBuilder()\n .path(FilmRessource.class)\n .path(FilmRessource.class, \"getActors\")\n .build(filmTitle);\n\n return Response.created(href).build();\n }", "title": "" }, { "docid": "c4f0750c1254f3b7189b22286237e57f", "score": "0.5809924", "text": "@PostMapping(\"/add\")\n\tpublic @ResponseBody String addFood(@RequestBody Food f) {\n\t\t\n\t\tFood returned = foodRepo.save(f);\n\t\t\n\t\treturn \"Success\";\n\t\t\n\t}", "title": "" }, { "docid": "ae896250e8c605624e41f5464b021758", "score": "0.5800393", "text": "@PostMapping\n public Employee create(@RequestBody Employee employee) {\n return employeeRepo.save(employee);\n }", "title": "" }, { "docid": "65fb3247c0ab500afa5eabc3eaab614b", "score": "0.57887745", "text": "@PostMapping(\"/create\")\n @ResponseStatus(HttpStatus.CREATED)\n public void create(@RequestBody MovieDto movieDto) throws Exception {\n this.movieService.create(movieDto);\n }", "title": "" }, { "docid": "fe7d92a79590fe074579a63dd27a97d2", "score": "0.57829565", "text": "@PostMapping(\"/customers\")\n public ResponseEntity createCustomer(@RequestBody Customer customer)\n throws CustomerAlreadyExistsException, CustomerCreationFailedException {\n log.info(\" > POST /customers\");\n customerService.createCustomer(customer);\n log.info(\" < POST /customers\");\n return new ResponseEntity(HttpStatus.CREATED);\n }", "title": "" }, { "docid": "f69e6608aae882ed3b3e333f773ed460", "score": "0.575054", "text": "@PostMapping(\"/createRecipe\")\n public Recipe createRecipe(@RequestBody Recipe recipe) {\n return recipeService.save(recipe);\n }", "title": "" }, { "docid": "4d2a2a4820b5dbf19fbbcaf2407b0640", "score": "0.5745857", "text": "@Test\n\tpublic void postValidation() {\n\t\t\n\t\tPOJOforPost pojo=new POJOforPost(); \n\t\tpojo.setId(7);\n\t\t\n\t\tRestAssured.given().\n\t\t\tbody(pojo).\n\t\t\twhen().\n\t\t\t\tpost().\n\t\t\tthen().\n\t\t\t\tstatusCode(200);\n\t}", "title": "" }, { "docid": "689276d71f6673eb97281272bf570951", "score": "0.57441837", "text": "public interface PostService {\n @POST(\"/posts\")\n public Call<Post> newPost(@Body Post newPost);\n}", "title": "" }, { "docid": "dcd3e698559bf9e45c8a9183247d1d0e", "score": "0.5743652", "text": "@PostMapping(\"/voluntario\")\n @ResponseBody\n public Voluntario createVoluntario(@RequestBody Voluntario voluntario){\n return voluntarioRepository.createVoluntario(voluntario);\n }", "title": "" }, { "docid": "114c9fa1cdf413f1f93ba3b234ce1553", "score": "0.5723826", "text": "@RequestMapping(value=\"/books\", method = RequestMethod.POST)\n\t@ResponseBody\n\tpublic Book createBook(@RequestBody final Book book){\n\t\tUser user = getCurrentUser();\n\t\tBook created = bookService.createBook(user, book);\n\t\treturn created;\n\t}", "title": "" }, { "docid": "dcb46bdccc1074831e685d2fd296f1f2", "score": "0.57166445", "text": "@POST\n @Timed(name = \"create-book\")\n public Response createBook(Book request) {\n\tBook savedBook = bookRepository.saveBook(request);\n\tString location = \"/books/\" + savedBook.getIsbn();\n\tBookDto bookResponse = new BookDto(savedBook);\n\t\n\tLinksDto links = new LinksDto();\n\tlinks.addLink(new LinkDto(\"view-book\", location, \"GET\"));\n\tlinks.addLink(new LinkDto(\"update-book\", location, \"PUT\"));\n\tlinks.addLink(new LinkDto(\"delete-book\", location, \"DELETE\"));\n\tlinks.addLink(new LinkDto(\"create-review\", location, \"POST\"));\n\t\n\treturn Response.ok(links).build();\n }", "title": "" }, { "docid": "160cd4741ada06fe73efe6a854d1f356", "score": "0.57156473", "text": "@PostMapping(\"/service/new\")\n\tpublic ResponseEntity<String> createService(@RequestBody ServiceVo vo) throws IntrusionException, ValidationException, InvalidInputException {\n\t\tboolean value=valid.serviceCheck(vo);\n\t\tResponseEntity<String> result = null;\n\t\tif(value) {\n\t\t\tresult=servService.save(vo);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "b8a1a4f85a7f30bcd367b489c6ea6640", "score": "0.57106894", "text": "Booking create(Booking booking);", "title": "" }, { "docid": "83c61ff957308697acba9ea612e714b4", "score": "0.56991935", "text": "@POST(\"posts\")\n public Call<Post> storePoste(@Body Post post);", "title": "" }, { "docid": "9decc0ac4119c2351cdf17f8aa36b865", "score": "0.5694886", "text": "@PostMapping(\"/cars\")\n public void createCar(@Valid @RequestBody final CarDto carDto) {\n carService.createCar(carDto);\n }", "title": "" }, { "docid": "18a0344f5158f4f28f5066eb0c825c8c", "score": "0.56888366", "text": "@POST(\"user\")\n Call<RootObject> createUser(@Body RootObject task);", "title": "" }, { "docid": "98a003090d3bfd3c1413761a88778e7d", "score": "0.5688736", "text": "@PreAuthorize(\"hasRole('ROLE_USER')\")\n @PostMapping(value = \"/create\", consumes = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<Void> createBook(Authentication auth, @RequestBody Book book) {\n Objects.requireNonNull(book);\n Library library = jwtAuthenticationManager.getUserLibrary(auth);\n if (library == null) {\n throw LibraryNullPointerException.create(jwtAuthenticationManager.getUserId(auth));\n }\n book.setLibrary(library);\n bookService.persist(book);\n final HttpHeaders headers = RestUtils.createLocationHeaderFromHomeURI(\"api/books/{id}\", book.getId());\n return new ResponseEntity<>(headers, HttpStatus.CREATED);\n }", "title": "" }, { "docid": "1ab6938e7c6b15c288766bf8d4a46333", "score": "0.5682429", "text": "@RequestMapping(\n value = \"/friend\",\n method = RequestMethod.POST)\n public Response createNewFriend(\n final @RequestBody Map<String, Object> payload) {\n //Get request parameters\n String username = (String) payload.get(\"username\");\n String friend = (String) payload.get(\"friend\");\n\n //Check if anything is missing\n if (username == null) {\n return new Error(\"Username is not valid\");\n }\n if (friend == null) {\n return new Error(\"Friend is not valid\");\n }\n\n // Create database user and get id\n DatabaseQuery dbquery = new DatabaseQuery(db.connect());\n boolean status = dbquery.addFriend(dbquery.getIdFromUsername(username),\n dbquery.getIdFromUsername(friend));\n if (status) {\n return new Response(\"Added\");\n } else {\n return new Error(\"Can't insert into database\");\n }\n\n }", "title": "" }, { "docid": "5f90bc8dd51cf7a7835e280c63837e8d", "score": "0.56792104", "text": "@Test\n public void createProduct_whenPostMethod() throws Exception {\n\n Product product = new Product();\n product.setName(\"iPhone\");\n product.setQuantity(1);\n product.setPrice(2500);\n\n given(productService.addNewProduct(product)).willReturn(product);\n\n mockMvc.perform(post(\"/api/products\")\n .contentType(MediaType.APPLICATION_JSON)\n .content(JsonUtil.toJson(product)))\n .andExpect(status().isCreated())\n .andExpect(jsonPath(\"$.name\", is(product.getName())));\n }", "title": "" }, { "docid": "23e9e48240b11c109cbad315c215977c", "score": "0.5656622", "text": "@POST(\"/api/user\")\n Call<User> saveUser(@Body User user);", "title": "" }, { "docid": "078204fb9add6feaeb56e0934f4032a4", "score": "0.5646877", "text": "@PostMapping(\"/my-orders\")\n @Timed\n public ResponseEntity<MyOrdersDTO> createMyOrders(@RequestBody MyOrdersDTO myOrdersDTO) throws URISyntaxException {\n log.debug(\"REST request to save MyOrders : {}\", myOrdersDTO);\n if (myOrdersDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"myOrders\", \"idexists\", \"A new myOrders cannot already have an ID\")).body(null);\n }\n MyOrders myOrders = myOrdersMapper.myOrdersDTOToMyOrders(myOrdersDTO);\n myOrders = myOrdersRepository.save(myOrders);\n MyOrdersDTO result = myOrdersMapper.myOrdersToMyOrdersDTO(myOrders);\n return ResponseEntity.created(new URI(\"/api/my-orders/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"myOrders\", result.getId().toString()))\n .body(result);\n }", "title": "" }, { "docid": "35fbd6c4938459251f3ee1f927476910", "score": "0.5643828", "text": "@PostMapping(\"/tasks\")\n\tpublic Task createTask(@Valid @RequestBody Task task) {\n\t return taskRepository.save(task);\n\t}", "title": "" }, { "docid": "08cdc0efb780b0cfc5242d1cc9c84cca", "score": "0.56418514", "text": "@PostMapping(consumes = \"application/json\")\n @ResponseStatus(HttpStatus.CREATED)\n public Employee create(@RequestBody @Valid Employee employee) {\n return empRepo.save(employee);\n }", "title": "" }, { "docid": "d0c2894fb0d2f8f83358b654d1648277", "score": "0.56413466", "text": "@RequestMapping(method = RequestMethod.POST, value = \"/orders\")\n public void addOrder(@RequestBody Order p) {\n try {\n orderService.add(p);\n } catch (Exception ex) {\n System.out.println(ex.toString());\n }\n }", "title": "" }, { "docid": "266d974ea58c290b0a47c76ef1c3c1d2", "score": "0.5631675", "text": "@RequestMapping(path=\"\" , method=RequestMethod.POST)\n public Auction createNewAuction(@RequestBody Auction anAuction){\n System.out.println(\"/auctions: createNewAuction for HTTP POST from the server\");\n return dao.create(anAuction);\n }", "title": "" }, { "docid": "5ef4394f5dbd3ca5fc0b0298a43d574f", "score": "0.5631066", "text": "@PostMapping(\"book\")\n\tpublic void book(@RequestBody @Valid Booking book) {\n\t\tbookService.createBooking(book);\n\t}", "title": "" }, { "docid": "1a0db4e8f8a3a06e082b942a42229652", "score": "0.56183535", "text": "@PostMapping\n public ResponseEntity<String> create(@RequestBody @Valid Voiture toCreate){\n\n int index = service.create(toCreate);\n return new ResponseEntity<>(\"Voiture créée à l'index : \" + index, HttpStatus.CREATED);\n }", "title": "" }, { "docid": "1ffdc1ecec4cd21e53b0eb203169e613", "score": "0.56077826", "text": "@POST(\"create\")\n Call<Void> registerEmployee(@Body EmployeeCUD emp);", "title": "" }, { "docid": "bd7b1d8a040a4ee819af5b07e2f4a551", "score": "0.5605777", "text": "@Test\n public void testCreate_valid() throws Exception {\n PetDTO pet = getValidPet();\n\n restMvc.perform(\n post(\"/api/pet\")\n .contentType(MediaType.APPLICATION_JSON_UTF8)\n .content(getPetJSON(pet)))\n .andExpect(status().isCreated())\n .andExpect(jsonPath(\"$.name\").value(pet.getName()));\n }", "title": "" }, { "docid": "5fa9851631423c0f707970613a2ec67e", "score": "0.560257", "text": "@PostMapping(\"/friends\")\n @Timed\n public ResponseEntity<FriendsDTO> createFriends(@RequestBody FriendsDTO friendsDTO) throws URISyntaxException {\n log.debug(\"REST request to save Friends : {}\", friendsDTO);\n if (friendsDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new friends cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n FriendsDTO result = friendsService.save(friendsDTO);\n return ResponseEntity.created(new URI(\"/api/friends/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "title": "" }, { "docid": "afa15c33f020c9f09768752a41f5874f", "score": "0.5576361", "text": "@PostMapping(\"/species\")\n public Specie createspecie(@Valid @RequestBody Specie specie) {\n return specieRepository.save(specie);\n }", "title": "" }, { "docid": "5828776dcdfc15bd5efa90a2b1c80ec0", "score": "0.5566637", "text": "@PostMapping(\"/author\")\n\tpublic Author createNote(@Valid @RequestBody Author author) {\n\t return authorDao.save(author);\n\t}", "title": "" }, { "docid": "6589418a92ceaf5b0038498541eba4f1", "score": "0.556503", "text": "public interface APIService {\n\n @POST(\"salva\")\n Call<Usuario> createUser(@Body Usuario user);\n}", "title": "" }, { "docid": "d0642c26e742fad1f0a6ebdfbf176ec4", "score": "0.5562103", "text": "@ApiResponses(value = {\n @ApiResponse(code = 201, message = \"Question created successfully\", responseHeaders = @ResponseHeader(name = \"Location\", description = \"The location of the created question\", response = URI.class)),\n @ApiResponse(code = 400, message = \"The data of the question is not valid\")\n })\n @POST\n public Response createQuestion(@Valid final Question newQuestion,\n @Context UriInfo uriInfo) {\n final Question savedQuestion = questionService.create(newQuestion);\n final Long questionId = savedQuestion.getQuestionId();\n final URI uri = uriInfo.getAbsolutePathBuilder().path(File.separator + questionId).build();\n return Response.created(uri).build();\n }", "title": "" }, { "docid": "9e02c692fb64af00f73d0ff5bce8d145", "score": "0.55594045", "text": "@POST\n @Path(\"customers/\")\n\t@Consumes(\"application/xml\")\n\tpublic Response createCustomer(Customer customer) {\n\t\tcustomer.setId(custDAO.getIdCounter().incrementAndGet());\n\t\tcustDAO.getCustomerDB().put(customer.getId(), customer);\n\t\tSystem.out.println(\"Created customer \" + customer.getId());\n\t\treturn Response.created(URI.create(\"/customers/\" + customer.getId())).build();\n\t}", "title": "" }, { "docid": "f8ec844ae2aea638af2090c729380205", "score": "0.5547377", "text": "@PostMapping(\"/esp\")\n\tpublic ResponseEntity<Object> createEspecialidad(@RequestBody Especialidad esp) {\n\t\tif (esp.getId() != null && espRepo.get(esp.getId()) == null) {\n\t\t\tespRepo.put(esp.getId(), esp);\n\t\t\treturn new ResponseEntity<>(\"La Especialidad se ha creado con éxito\", HttpStatus.CREATED);\n\t\t} else {\n\t\t\treturn new ResponseEntity<>(\"La Especialidad no se pudo crear, puede que ya exista\", HttpStatus.CREATED);\n\t\t}\n\t}", "title": "" }, { "docid": "089428c748fc4b7616d07938ba00be7a", "score": "0.55437404", "text": "@PostMapping\n public <T> ResponseEntity<T> create(\n @RequestBody @Valid CreateActorRequest actorRequest\n ) {\n return null;\n }", "title": "" }, { "docid": "2f5b0b758245e71a3e4bb09b64d16dfa", "score": "0.5541445", "text": "@Test\n public void createControllerServiceTest() throws ApiException {\n String id = null;\n ControllerServiceEntity body = null;\n // ControllerServiceEntity response = api.createControllerService(id, body);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "6cf7375014803741cd8e220606134aa0", "score": "0.5540249", "text": "@POST\n public Response create() {\n long result = sesionController.create(header);\n return Response.ok(result).build();\n }", "title": "" }, { "docid": "ff6cbb0d136b86c5b8d6073365c92134", "score": "0.5537422", "text": "public Response POSTAddRecord(JSONObject obj, String url) {\n\t\treturn given().header(\"Content-Type\", \"application/json\").body(obj.toJSONString()).when().post(url).then()\n\t\t\t\t.assertThat().statusCode(201).extract().response();\n\t}", "title": "" }, { "docid": "de29fe9ee8f85209abba42583194eb3f", "score": "0.5531083", "text": "@RequestMapping(value = \"/test1s\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Test1> create(@RequestBody Test1 test1) throws URISyntaxException {\n log.debug(\"REST request to save Test1 : {}\", test1);\n if (test1.getId() != null) {\n return ResponseEntity.badRequest().header(\"Failure\", \"A new test1 cannot already have an ID\").body(null);\n }\n Test1 result = test1Repository.save(test1);\n return ResponseEntity.created(new URI(\"/api/test1s/\" + test1.getId())).body(result);\n }", "title": "" }, { "docid": "158ad1643bbee73da22b94d9ebcfd4a0", "score": "0.5527316", "text": "@Test\n void insertProverbNewProverb() throws Exception {\n given(this.proverbService.insertProverbs(anyCollection())).willReturn(true);\n mockMvc.perform(put(PROVERB_ENDPOINT)\n .content(mapper.writeValueAsString(List.of(\n Proverb.builder().author(\"first\").proverb(\"hello\").build(),\n Proverb.builder().author(\"second\").proverb(\"world\").build())))\n .contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isCreated());\n }", "title": "" }, { "docid": "3ed801e2ff72902c4549dd8bd8519ee2", "score": "0.55245817", "text": "@POST\n @Produces(MediaType.APPLICATION_JSON)\n public Response postIt() {\n return Response.status(Response.Status.CREATED).entity(\"{\"\n + \"\\\"field_a\\\": {\"\n + \"\\\"id\\\": 123456,\"\n + \"\\\"msg\\\": \\\"Hello World.\\\"\"\n + \"}\"\n + \"}\").build();\n }", "title": "" }, { "docid": "71812b4ee7b6753a2dd00a1d790a6e07", "score": "0.55224764", "text": "@POST\n public Response createCustomer(@HeaderParam(\"x-api-key\") String token,\n @FormParam(\"name\") String name, @FormParam(\"age\") int age) throws GeneralSecurityException, IOException {\n if(validateToken(token)){\n Customer newCustomer = new Customer(name, age);\n customers.add(newCustomer);\n return Response.status(Response.Status.OK).entity(\"Succesfully added customer!\").build();\n }\n return Response.status(Response.Status.UNAUTHORIZED).entity(\"User not authenticated!\").build();\n }", "title": "" }, { "docid": "511a7c336a9f6e5b1653ab7646ffa8ab", "score": "0.5521169", "text": "@CrossOrigin\n @PostMapping(\"/offices\")\n public Office createOffice(@Valid @RequestBody Office office) {\n return officeRepository.save(office);\n }", "title": "" }, { "docid": "05ace0600acf8ab9d55a2b3bf3468609", "score": "0.5520779", "text": "@RequestMapping(value=\"/\",method=RequestMethod.POST)\r\n\tpublic Pets createPet(@Valid @RequestBody Pets pet) {\r\n\t\tpet.set_id(ObjectId.get());\r\n\t\trepository.save(pet);\r\n\t\treturn pet;\r\n\t}", "title": "" }, { "docid": "51eadf9c6cf4400c80a52fe3b5fa32fe", "score": "0.5509933", "text": "T create(T resource);", "title": "" }, { "docid": "337687c3026caf3d7955da7b90135cf9", "score": "0.5508662", "text": "public HttpPost createPost() {\n\t\treturn createPost(null, 0);\n\t}", "title": "" }, { "docid": "eb7be36594aaa50899a41519ac74e78a", "score": "0.5505294", "text": "@PostMapping(value = \"/insertpersondetails\")\npublic StudentInfo insertDummyPerson(@RequestBody StudentInfo student) {\nreturn new StudentService().addStudent(student); //calling the service\n}", "title": "" }, { "docid": "647b89c7ae8139e76b82f3c687ebe28d", "score": "0.5504497", "text": "@RequestMapping(method=RequestMethod.POST, value=\"api/tasks\")\n\tpublic TaskBO create(@RequestBody TaskVO taskVO) {\n\t\treturn tasks.create(taskVO);\n\t}", "title": "" }, { "docid": "a13ba837e11a7ebd5e60e6e1f4ad7d14", "score": "0.55031615", "text": "@PostMapping(value = {\"/artist/create\", \"/artist/create/\"})\n public ResponseEntity<?> createArtist(@RequestBody ArtistDto data) {\n\t try {\n\t\t Artist artist = artistService.createArtist(data);\n\t\t return new ResponseEntity<>(controllerHelper.convertToDto(artist), HttpStatus.CREATED);\n\t } catch (IllegalArgumentException e) {\n\t\t return new ResponseEntity<>(e, HttpStatus.BAD_REQUEST);\n\t }\n }", "title": "" }, { "docid": "7425c29b53b8c9c73e55d00fb4f63818", "score": "0.5496359", "text": "public TodoItem createTodoItem(TodoItem todoItem);", "title": "" }, { "docid": "23cc15a08b530724bfe0a45e88ac7b5d", "score": "0.5490814", "text": "T create(T entity) throws JsonProcessingException;", "title": "" }, { "docid": "3023ca46b4592a26635554bae6f178f0", "score": "0.5487602", "text": "@PostMapping(\"/produtos\")\n @Timed\n public ResponseEntity<Produto> createProduto(@RequestBody Produto produto) throws URISyntaxException {\n log.debug(\"REST request to save Produto : {}\", produto);\n if (produto.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new produto cannot already have an ID\")).body(null);\n }\n Produto result = produtoRepository.save(produto);\n return ResponseEntity.created(new URI(\"/api/produtos/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "title": "" }, { "docid": "0a1fb53c00eadc1c2c42d3870a740d4f", "score": "0.5487058", "text": "@PostMapping\n @ResponseStatus(HttpStatus.OK)\n public void create(@RequestBody wish1 wishes1) {\n wish1_Repository.save(wishes1);\n\n }", "title": "" }, { "docid": "89d71d89e7078f5a8149e0ff2484465f", "score": "0.5476886", "text": "@PostMapping(value = \"/new\", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE,\n produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<?> postNewItem(@RequestBody SimpleItem item) {\n logger.debug(\"create new item with id = {}, description = {}\", item.getId(), item.getDescription());\n // call service layer for new item\n return new ResponseEntity<>(item, HttpStatus.CREATED);\n }", "title": "" }, { "docid": "5dd435cf98c4a9416936d45a3d7b3571", "score": "0.5473921", "text": "@Path(\"/api/db/{tableName}\")\n @POST\n Response create(String json, @PathParam(value = \"tableName\") String tableName);", "title": "" }, { "docid": "37881d019aeb2a07f37ad86ce9fb4121", "score": "0.5468169", "text": "@Test\r\n public void testSave() {\r\n \ttarget.path(\"users\").request().post(Entity.json(bob));\r\n \tUser added = target.path(\"users/Bob\").request().get(User.class);\r\n \tassertEquals(added, bob);\r\n }", "title": "" }, { "docid": "38c659a44f69622245de1685b49fa9b9", "score": "0.5464391", "text": "@PostMapping(\"/ref-numeros\")\n public ResponseEntity<RefNumeroDTO> createRefNumero(@Valid @RequestBody RefNumeroDTO refNumeroDTO) throws URISyntaxException {\n log.debug(\"REST request to save RefNumero : {}\", refNumeroDTO);\n if (refNumeroDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new refNumero cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n RefNumeroDTO result = refNumeroService.save(refNumeroDTO);\n return ResponseEntity.created(new URI(\"/api/ref-numeros/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "title": "" }, { "docid": "7ab057c574e3eadf96af24f99c8609e5", "score": "0.5454144", "text": "@RequestMapping(value = \"/genres\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> create(@Valid @RequestBody Genre genre) throws URISyntaxException {\n log.debug(\"REST request to save Genre : {}\", genre);\n if (genre.getId() != null) {\n return ResponseEntity.badRequest().header(\"Failure\", \"A new genre cannot already have an ID\").build();\n }\n genreRepository.save(genre);\n return ResponseEntity.created(new URI(\"/api/genres/\" + genre.getId())).build();\n }", "title": "" }, { "docid": "83e7f05ae7a29c7b5ff50b1a87e2c7ea", "score": "0.5453358", "text": "@POST(\"/api/shipper\")\n Call<Shipper> saveShipper(@Body Shipper shipper);", "title": "" }, { "docid": "eda2769833697f352b7ea9ebd305b937", "score": "0.544094", "text": "@PutMapping\r\n @RequestMapping(\"/employeeDetails/createEmployee\")\r\n public void createEmployee(@RequestBody Employee employee) {\r\n employeeService.createEmployee(employee);\r\n }", "title": "" }, { "docid": "79ebb66cc0d8850bd33d06f0ea820aa9", "score": "0.5421571", "text": "@GetMapping(value=\"/create\")\n\tpublic String create(Model model){\n\t\tSystem.out.println(\"create form\");\n\t\t//create \"fake/temporary\" beer (id=-1) to let the client use the \"update\" view artificially\n\t\tBeer beer = new Beer(\"\", 0, 0, -1);\n\t\tmodel.addAttribute(\"beer\", beer);\n\t\treturn \"createOrUpdate\";\n\t}", "title": "" }, { "docid": "1105bf1f0cb4a36608e1f922342481e6", "score": "0.54199666", "text": "@PostMapping(value = \"/recipes/create\")\n\tpublic Recipe postRecipe(@RequestBody Recipe recipe) {\n\t\tDate date = new Date();\n\t\tRecipe _recipe = recipeRepository.save(new Recipe(recipe.getId(), recipe.getName(), date, recipe.isVeg(), recipe.getSuitable(),\n\t\t\t\trecipe.getIngredients(), recipe.getInstructions()));\n\t\treturn _recipe;\n\t}", "title": "" }, { "docid": "7053bd224d222646c0d8044d6208089e", "score": "0.5418325", "text": "DocumentModel createDocument(DocumentModel doc) throws ClientException;", "title": "" }, { "docid": "392083c76ba66f49b37abd2d35d0d740", "score": "0.54176235", "text": "public static Response createPikachu(PikachuRequest pikachuRequest){\n\n Response response = RestAssured\n .given()\n .baseUri(\"https://pokeapi.co/\")\n .basePath(\"/api\")\n .log()\n .all()\n .header(\"Content-type\",\"application/json\")\n .header(\"Accept\",\"*/*\")\n .body(pikachuRequest) //requestBody\n .post(\"/v1/pokemon/create\");\n\n return response;\n\n }", "title": "" }, { "docid": "30c45125f0ef38eaaa5c24177d1336be", "score": "0.5407342", "text": "@PostMapping(\"/ricette\")\n\tpublic RicettaCompleta createRicetta(@RequestBody CreateRicettaRequest request) {\n\t\tString autore = request.getAutore();\n\t\tString titolo = request.getTitolo();\n\t\tString preparazione = request.getPreparazione();\n\t\tlogger.info(\"REST CALL: createRicetta \" + autore + \", \" + titolo + \", \" + preparazione); \n\t\tRicettaCompleta ricetta = ricetteService.createRicetta(autore, titolo, preparazione);\n\t\treturn ricetta; \n\t}", "title": "" }, { "docid": "89788b07c9005fc7182778ef8f2ea32b", "score": "0.5406978", "text": "ResponseEntity<GameBindDTO> create(ApiGameCreateDTO form);", "title": "" }, { "docid": "01fd7d0288c3e080eaa24cfe1160e41d", "score": "0.54050106", "text": "@Test\n\tvoid testCreateOrderReturnsSuccess201() {\n\t\tString body = createOrderBody();\n\t\tString uri = String.format(\"http://localhost:%d/orders\", serverPort);\n\t\t\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\t\n\t\tHttpEntity<String> bodyEntity = new HttpEntity<>(body, headers);\n\t\t\n\t\t\n\t\t// When: the order is sent\n\t\tResponseEntity<Order> response = restTemplate.exchange(uri, HttpMethod.POST, bodyEntity, Order.class);\n\t\t\n\t\t// Then: a 201 status is returned\n\t\tassertThat(response.getStatusCode()).isEqualTo(HttpStatus.CREATED);\n\t\t\n\t\t// And: the returned order is correct\n\t\tassertThat(response.getBody()).isNotNull();\n\t\t\n\t\tOrder order = response.getBody();\n\t\tassertThat(order.getCustomer().getCustomerId()).isEqualTo(\"ROTH_GARTH\");\n\t\tassertThat(order.getModel().getModelId()).isEqualTo(JeepModel.WRANGLER);\n\t\tassertThat(order.getModel().getTrimLevel()).isEqualTo(\"Rubicon\");\n\t\tassertThat(order.getModel().getNumDoors()).isEqualTo(4);\n\t\tassertThat(order.getColor().getColorId()).isEqualTo(\"EXT_SNAZZBERRY\");\n\t\tassertThat(order.getEngine().getEngineId()).isEqualTo(\"2_0_TURBO\");\n\t\tassertThat(order.getTire().getTireId()).isEqualTo(\"255_GOODYEAR\");\n\t\tassertThat(order.getOptions()).hasSize(6);\n\t}", "title": "" }, { "docid": "cc322e579f01dc7d402b6a274a985e12", "score": "0.53991", "text": "@PostMapping(\"/childes\")\n\tpublic Child createChild(@RequestBody Child child) {\n\t\treturn childRepository.save(child);\n\t}", "title": "" }, { "docid": "ee1023732f2117dbde9a41241ac1511e", "score": "0.53965735", "text": "public boolean create(String body) throws Exception {\n\n JsonValidator validator = new JsonValidator();\n\n if(validator.isValid(body)){\n Client client = Client.create();\n WebResource webResource = client\n .resource(WAREHOUSE_URI);\n\n System.out.println(\"[INFO]---------------------------------------------\\n\"+\n \"Sending POST request to \" + String.valueOf(webResource.getURI()));\n\n ClientResponse response = webResource.type(MediaType.TEXT_PLAIN_TYPE)\n .post(ClientResponse.class, body);\n\n if(response.getStatus() == 201){\n return true;\n } else{\n System.out.println(\"Error \" + response.getStatus() + \" at resource creation...\");\n return false;\n }\n } else{\n System.out.println(\"Not a valid JSON!\");\n return false;\n }\n }", "title": "" }, { "docid": "4a1ac109b800ed293259a4e181e09479", "score": "0.5393935", "text": "DocumentModel createDocument(String type, String title) throws ClientException;", "title": "" }, { "docid": "4ed0e80e1d2b32a7d512e12b61bc72b1", "score": "0.5391064", "text": "public void create(String name);", "title": "" }, { "docid": "4731ac600a1f7ed672c350e5ba08d031", "score": "0.53886056", "text": "@PostMapping(\"/create\")\r\n\tpublic String create(@RequestBody CustomerUI customer){\n\trepository.save(new Customers(customer.getFirstName(), customer.getLastName()));\r\n\treturn \"Customer is created\";\r\n\t}", "title": "" }, { "docid": "5c0327a5861a794d785b09b8955bf124", "score": "0.5385697", "text": "void create(User user);", "title": "" }, { "docid": "8eec4055b98a056485add3634aa2b6de", "score": "0.53856444", "text": "@PostMapping(\"/notes\")\n public SimpleApp createNote(@Valid @RequestBody SimpleApp note) {\n return simpleAppRepository.save(note);\n }", "title": "" }, { "docid": "71a9ab439986de9b5bb9b1ba9e1be0ff", "score": "0.5383298", "text": "@RequestMapping(value = \"/rest/tours\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Secured(AuthoritiesConstants.ADMIN)\n @Timed\n public void create(@RequestBody Tour tour) {\n log.debug(\"REST request to save Tour : {}\", tour);\n tourRepository.save(tour);\n }", "title": "" } ]
547449db14913a1c3644ad28097da240
Checks whether an index is within bounds of current number of elements in ArrayList
[ { "docid": "2b034bdf871adf34cd658772095cd94c", "score": "0.6147377", "text": "private void withinBounds(int index) throws IndexOutOfBoundsException {\n\t\tif (index > numElements || index < 0) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "7801ad834fd87fd0dcbedb653f06344d", "score": "0.73606247", "text": "private boolean withInBounds(int index) {\r\n if ((index > size) || (index < 1)) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "9d1ef01c8808640a43c60eff6aebbc6e", "score": "0.72385436", "text": "private boolean inBounds() {\n return (source.length() - index) > 0;\n }", "title": "" }, { "docid": "7137a176c132d5a551fb90df604df782", "score": "0.68145764", "text": "private boolean isElementIndex(int index) {\n return index >= 0 && index < size;\n }", "title": "" }, { "docid": "b131a2c11a4d9de107ab06d13b66226f", "score": "0.66570055", "text": "public static boolean isListValueEscalating(List<Integer> list, Integer indexStart) {\r\n\t\tboolean result = false;\r\n\t\tif (list.size() - indexStart >= 5) {\r\n\t\t\tfor (int i = indexStart; i < list.size() - 1; i++) {\r\n\t\t\t\tif (list.get(i) > list.get(i + 1)) {\r\n\t\t\t\t\tresult = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tindexStart = list.size() - 1;\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "e22ed47395391a8ae1c350733b0996bd", "score": "0.66323465", "text": "private void checkBoundaries(int index) {\n\t\tif (index < 0 || index >= currentSize) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Index out of range!\");\n\t\t}\n\t}", "title": "" }, { "docid": "ec1b74f1e02866e0c064f46217eb9c23", "score": "0.6599443", "text": "abstract boolean validLimit (int index, int limit);", "title": "" }, { "docid": "9f698c8fbb0034474292d5c4a4132acc", "score": "0.6304674", "text": "private void checkBound(int index) {\n if (index < 0 || max > -1 && max <= index) {\n throw new IndexOutOfBoundsException(\"Index: \" + index + \", Size: \" + max);\n }\n }", "title": "" }, { "docid": "52e894490a3414cc9d85048aa2de114d", "score": "0.6276653", "text": "public abstract boolean exceedsLowerBoundbydbmIndex(int index);", "title": "" }, { "docid": "bbb2a80cc4b589abd27262caecbc7a96", "score": "0.62429297", "text": "boolean hasEndIndex();", "title": "" }, { "docid": "bbb2a80cc4b589abd27262caecbc7a96", "score": "0.62429297", "text": "boolean hasEndIndex();", "title": "" }, { "docid": "d72f218ee1e1b8d8a3ed5abd6110790c", "score": "0.6215638", "text": "public boolean isAtMaxItems() {\n return size() == getMaxItems();\n }", "title": "" }, { "docid": "ff8770fc8fdbd8d1212c26237afe9e14", "score": "0.6187853", "text": "private void checkBoundsInclusive(int index) {\n\t\t\tif (index < 0 || index > size)\n\t\t\t\tthrow new IndexOutOfBoundsException(\"Index: \" + index\n\t\t\t\t\t\t+ \", Size:\" + size);\n\t\t}", "title": "" }, { "docid": "bd4f82ce15527b37d0be1bf2d31c3abc", "score": "0.6099051", "text": "public boolean atEnd() {\n\t\treturn index == maxIndex;\n\t}", "title": "" }, { "docid": "91c20653403dd1bf8c7123b394ae828f", "score": "0.60669106", "text": "private void checkOutOfBounds(int index) {\r\n\t\tif (index < 0 || index >= size) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "19fec27b91cf3568fa7e14e294224083", "score": "0.6064198", "text": "private boolean validIndex(int i) {\n return i >= 0 && i < n;\n }", "title": "" }, { "docid": "0f06031c52d27a675f765c319c1a9601", "score": "0.6046236", "text": "private void checkBoundsExclusive(int index) {\n\t\t\tif (index < 0 || index >= size)\n\t\t\t\tthrow new IndexOutOfBoundsException(\"Index: \" + index\n\t\t\t\t\t\t+ \", Size:\" + size);\n\t\t}", "title": "" }, { "docid": "30338e0b642c6639719dc1268f940a71", "score": "0.6038371", "text": "private static void checkIndexInterval(int start, int size) {\n checkArgument(start >= 0);\n checkArgument(start+size <= Long.SIZE);\n checkArgument(size >= 0);\n }", "title": "" }, { "docid": "a442810f12154d2b6b4851f8559e28bb", "score": "0.60277474", "text": "private boolean validIndex(int index)\r\n {\r\n // The return value.\r\n // Set according to whether the index is valid or not.\r\n if (index >= songs.size())\r\n System.out.println(\"the index that you entered is NOT valid.\");\r\n return (index < songs.size());\r\n \r\n }", "title": "" }, { "docid": "3992682e95113efe1a7d8a7a51519834", "score": "0.5955518", "text": "public boolean isFull(){\n\t\t\tif(index==MAX)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "d7671f6801a018b19cee90dc783476ae", "score": "0.5947242", "text": "private boolean forwardRange(int index) {\n return offset_forward >= 0 && offset_forward <= index\n && offset_forward + limit_forward > index;\n }", "title": "" }, { "docid": "e91a70dc621ec13f68716da9f1607113", "score": "0.5928564", "text": "private void checkIndex(int r, int size) throws IndexOutOfBoundsException{\n\t\t\tif(r>size-1){throw new IndexOutOfBoundsException();}\n\t\t}", "title": "" }, { "docid": "cb1af984a5670f31d9b12f3228fb4379", "score": "0.59146816", "text": "private void checkRange(int index) {\n if (index < 0 || index >= size)\n throw new IndexOutOfBoundsException();\n }", "title": "" }, { "docid": "f311d831f01867b6ffc0d89dc6aff4c2", "score": "0.5908995", "text": "private boolean isFull() {\n\t\treturn numElem == this.list.length;\n\t}", "title": "" }, { "docid": "e2f3d993fbc376a890ff48a20d892d1d", "score": "0.58744806", "text": "@Override\r\n\t\t\tpublic boolean hasNext() {\r\n\t\t\t\treturn indexCounter <= noOfElements - 1;\r\n\t\t\t}", "title": "" }, { "docid": "191e3bda967e9af6cb7804d85c091100", "score": "0.5862673", "text": "private void rangeCheckForAdd(int index) {\r\n if (index > size || index < 0)\r\n throw new IndexOutOfBoundsException(outOfBoundsMsg(index));\r\n }", "title": "" }, { "docid": "f9b1f39cc3fa38a481b0b7e6e12e4fc4", "score": "0.58458525", "text": "public boolean isValidIndex(int pos){\n\t\treturn pos<this.length && pos >= 0;\n\t}", "title": "" }, { "docid": "47de4cf2abf3795841c090052a037483", "score": "0.5835819", "text": "private boolean ok(int index) {\n if(index >= 0 & index < length) return true;\n return false;\n }", "title": "" }, { "docid": "4616f59de54c255da698ab2db8d248d5", "score": "0.5834399", "text": "private void checkIndex(int index) {\n\t\tcheckIndex(index, 0, size - 1);\n\t}", "title": "" }, { "docid": "ab5c51f6aa3861eca83b41c1c8c492f4", "score": "0.5833675", "text": "@Override\n public boolean hasNext() {\n return (index < list.count);\n }", "title": "" }, { "docid": "a38684a2c9558589b153856814339f4c", "score": "0.58018124", "text": "public boolean isEnoughNearFrom(int size){\n return this.id >= size - 2 && this.id <= size + 2;\n }", "title": "" }, { "docid": "1546c4297466308ca49c1eac4cb91963", "score": "0.5784781", "text": "private void rangeCheck(int index) {\n if (index < 0 || index >= this.length) {\n throw new IndexOutOfBoundsException();\n }\n }", "title": "" }, { "docid": "ab8a10a38f1681d1cb06a1f6a5ba1fdb", "score": "0.5780897", "text": "private boolean isInBound(int row, int col) {\n return (row >= 0) && (row < N) && (col >= 0) && (col < N);\n }", "title": "" }, { "docid": "b609c8ae0d85aa4a4a6744b07234a580", "score": "0.57626957", "text": "public static boolean isValidIndex(int index) {\n\t\treturn -1 < index && index < 64;\n\t}", "title": "" }, { "docid": "fb97babdd97c7250b0122c05dd4ef5b9", "score": "0.5753087", "text": "private boolean overMaxOccurence()\n {\n //go through and check each number\n for (int i = 0; i < numList.size(); i++)\n {\n //check to see if it has exceeded the MAX_OCCURENCE\n if (numList.get(i) >= MAX_OCCURENCE)\n {\n return false;\n }\n }\n //if it has reached this point then none of the numbers have surpassed MAX_OCCURENCE so return true\n return true;\n }", "title": "" }, { "docid": "96fb364fcddaa84db1cbb4170d9bc763", "score": "0.5732939", "text": "public boolean hasAnotherElement() {\n\t\t\treturn counter < size;\n\t\t}", "title": "" }, { "docid": "1ab2b1140b215881c5e6ce4b5379d820", "score": "0.5731609", "text": "private boolean hasLeft(int index){\n return left(index)<=size;\n }", "title": "" }, { "docid": "e8a7ba8c3ec5e6a1b1f29935154fdfc2", "score": "0.5718231", "text": "public boolean OutOfBounds() {\n if(snake.GetHead().GetFirst() < 0 || snake.GetHead().GetFirst() > 680 ||\n snake.GetHead().GetSecond() < 0 || snake.GetHead().GetSecond() > 410)\n return true;\n \n return false;\n }", "title": "" }, { "docid": "47d14af580bc5af9b85cef711b23f0b3", "score": "0.5709376", "text": "protected boolean indexIsValid(int index) {\r\n\t\treturn ((index < numVertices) && (index >= 0));\r\n\t}", "title": "" }, { "docid": "ada53e8ac0600d04d3c04d4465097f14", "score": "0.568522", "text": "@Test\n public void testIsInvalidListIndex() {\n System.out.println(\"isInvalidListIndex\");\n String listIndex;\n int listSize = 5; \n \n //case listIndex larger than listSize\n listIndex = \"6\";\n boolean result = Validator.isValidListIndex(listSize, listIndex);\n assertFalse(\"Index outside listSize should return false\", result);\n \n //case listIndex smaller than listSize\n listIndex = \"0\";\n result = Validator.isValidListIndex(listSize, listIndex);\n assertFalse(\"Index outside listSize should return false\", result);\n \n //case listIndex not a number\n listIndex = \"1AB2\";\n result = Validator.isValidListIndex(listSize, listIndex);\n assertFalse(\"Index outside listSize should return false\", result);\n }", "title": "" }, { "docid": "8ecb7e2f42ae68acb3a98ee8de4a8eaf", "score": "0.56765515", "text": "public boolean includes(long index) {\r\n\t\tif ((index >= start) && (index <= end)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "f8850e7ecf54e1246867b7db8eee0ce8", "score": "0.56725764", "text": "@Override\n public boolean hasNext() {\n return index < size;\n }", "title": "" }, { "docid": "57b690370f715baeced3ee872dadae51", "score": "0.5669106", "text": "public boolean isInBoundary(float index){\n if(index >= getLowerBoundary() && index <= getUpperBoundary()) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "0d45389e42275ff7ab5a0054f04dd72a", "score": "0.5659807", "text": "public void verifyListIndex() {\n\t\tif (index >= this.motdLen) {\n\t\t\tindex = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "51c62917b21e82527a2079d7c0e6a0d8", "score": "0.5651868", "text": "private boolean testSize(IndexedUnsortedList<Integer> list, int expectedSize) {\n\t\ttry {\n\t\t\treturn (list.size() == expectedSize);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.printf(\"%s caught unexpected %s\\n\", \"testSize\", e.toString());\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "253359422aa0196127669debc472b5d4", "score": "0.56470114", "text": "public boolean outOfBounds() {\n return x <= -pipeWidth;\n }", "title": "" }, { "docid": "589daf36d02da4bc99ea74c491228070", "score": "0.5640762", "text": "private void rangeCheckForAdd(int index) {\n if (index < 0 || index > this.length) {\n throw new IndexOutOfBoundsException();\n }\n }", "title": "" }, { "docid": "9a0d4fe3a3701c1e45a896da34734e63", "score": "0.5639082", "text": "private void checkIndex(int index, int min, int max) {\t\t\n\t// If the index is below the minimum or above the maximum\n\t\tif (min > index || max < index) {\n\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Illegal index \" + index + \"; must be between \" + min + \" and \" + max + \"\\n\"\n\t\t\t\t+ \"ArrayIntStack : \" + toString() + \" (size=\" + size + \")\\n\"\n\t\t\t\t+ \"Capacity : \" + Arrays.toString(thisStack) + \" (capacity=\" + thisStack.length + \")\");\n\t\t}\n\t}", "title": "" }, { "docid": "a085876efe315a8e4960359a4e269546", "score": "0.56350875", "text": "public boolean isInRange(int slotnumber) {\n return slotnumber <= size;\n }", "title": "" }, { "docid": "1c09219441849842088f7229239ff1ed", "score": "0.5623675", "text": "public boolean isGreaterEqual(int A[]) \n{\n if (A[counter] >= list.get(counter2 - 1)) {\n \t // If item at index counter is larger or equal, return true\n return true;\n } \n else \n return false;\n // Otherwise return false\n\n}", "title": "" }, { "docid": "ed632f6a26d47dd0a1395f0bf0dbd6ac", "score": "0.5617137", "text": "private static boolean isTaskIndexOutOfRange(TaskList taskList, int itemIndex) {\n if (!taskList.isIndexInRange(itemIndex)) {\n System.out.println(UI.DIVIDER\n + \"The task index input is out of range!\\n\"\n + UI.DIVIDER\n + \"Try again:\"\n );\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "ffb37cd2eef14d02c822f56b1ab97ab6", "score": "0.5581814", "text": "private static boolean inBounds(int[][] field, int i) {\n return i >= 0 && i <= field.length;\n }", "title": "" }, { "docid": "2375deda822431336e7dbb96f026945b", "score": "0.55525863", "text": "private boolean isValidIndex(int index)\n\t{\n\t\tif (this.reservedList.contains(index) || this.pcMap.positionPlayed(index))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (index<0 || index>(MyDefines.NAME_LIST.length-1))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "535485977c72dce350a743ab41572975", "score": "0.5549321", "text": "private static void isSorted(ArrayList<Integer> testMe) throws Exception{\n for(int i = 1; i < testMe.size(); i++) {\n if(testMe.get(i-1) > testMe.get(i)) {\n throw new Exception(\"ArrayList unsorted, index i-1 > index i : \" + testMe.get(i-1) + \" > \" + testMe.get(i));\n }\n }\n }", "title": "" }, { "docid": "487825b7920542e92f42fc875fe3d541", "score": "0.5540636", "text": "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn currentPosition < size();\n\t\t}", "title": "" }, { "docid": "2578a7f21f979eb54b94bd75e7015604", "score": "0.5536787", "text": "private boolean hasRight(int index){\n return right(index) <= size;\n }", "title": "" }, { "docid": "45414ea219c9a947b88b5ef38504e95e", "score": "0.55366236", "text": "public abstract boolean isStartOfPeakList();", "title": "" }, { "docid": "3a9dbe0e36ec3c2de768dc51fd1233b0", "score": "0.55345756", "text": "boolean isFullyBounded();", "title": "" }, { "docid": "a4f7973c3aa22a336cdc12c986f0fccb", "score": "0.553133", "text": "boolean hasLimit();", "title": "" }, { "docid": "152bb5ed48a1f7be95927c9ad673707f", "score": "0.5528954", "text": "public boolean hasNext() {\n if (curPos >= list.length) return false;\n \n if (curCount > list[curPos]) {\n curCount = 1;\n curPos += 2;\n }\n \n return curPos < list.length;\n }", "title": "" }, { "docid": "7bf2d17325ec14bef6ca4ae2583c03fa", "score": "0.55107945", "text": "public boolean hasNext() {\n\t\t\t\tif(index<size()) {\t\t\t\t//if the index value is less than the size of the train\r\n\t\t\t\t\treturn true;\t\t\t//return true\r\n\t\t\t\t} else {\t\t\t\t\t//if the index value is outside\r\n\t\t\t\t\treturn false;\t\t\t//return false\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "cdc167452037d83a35a71907f416ecff", "score": "0.5498113", "text": "public boolean hasNext()\n {\n if (index >= clist.size())\n {\n index = (index % clist.size());\n }\n return (index < clist.size());\n \n }", "title": "" }, { "docid": "c62707045a5e7ffba59d354b5792f071", "score": "0.54958814", "text": "private boolean backwardRange(int index) {\n return offset_backward >= 0 && offset_backward <= index\n && offset_backward + limit_backward > index;\n }", "title": "" }, { "docid": "915e6c944c9ed634c0e951e05d93568d", "score": "0.5487685", "text": "private boolean isFull() {\n return size == elements.length;\n }", "title": "" }, { "docid": "d90e6fc36e4610a7c23ec4fb4d57e29f", "score": "0.5481894", "text": "public boolean areCloseEnough(int size){\n return ((this.getId() - size >= -1) && (this.getId() - size<= 2));\n }", "title": "" }, { "docid": "1b3362ed2009cc07feb4255abc252c1b", "score": "0.5461305", "text": "private void checkBounds(int i, int j) {\n if (i < 1 || j < 1 || i > N || j > N) {\n throw new IndexOutOfBoundsException(\"row index out of bounds, (i,j) = \" + \"(\" + i + \",\" + j\n + \")\");\n }\n }", "title": "" }, { "docid": "54ef7aa9cb6a4c2da2a79dfb09993130", "score": "0.5449564", "text": "public boolean isOverMaxItems() {\n return overflowItem != null;\n }", "title": "" }, { "docid": "d6042d1cf41d5aafb5e88fa640f2deee", "score": "0.54394644", "text": "private boolean isValid(int pos) {\r\n\t\treturn pos >= FRONT && pos <= size;\r\n\t}", "title": "" }, { "docid": "1b03c4ead862cd31f19988e7b72e9d0e", "score": "0.54362476", "text": "int containsAt(int e, int from);", "title": "" }, { "docid": "6d1e35217ca643f0cbfeb1c675ea25a9", "score": "0.5434947", "text": "int containsAt(int e);", "title": "" }, { "docid": "bbac823b7e1850a02f249653ac412a7f", "score": "0.54305696", "text": "private boolean inBounds(int i, int j) {\n if (i < 1 || j < 1 || i > N || j > N) {\n return false;\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "160ffcd2d41bc4e7636f57462a610a3d", "score": "0.54014623", "text": "boolean isInBounds(int x, int z);", "title": "" }, { "docid": "cdd4774ac55d33a210881bef40ea1a5d", "score": "0.536589", "text": "private boolean inBound(int x, int y){\n if(x < 0 || x >= length || y < 0 || y >= length){\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "c50f8ee6bd21a3f567e47decc4ddf127", "score": "0.5358833", "text": "private static boolean isInSubset(int[] numbers, int startIndex, int endIndex, int nextNumber) {\n\n int remainingNumber = nextNumber;\n for (int i = endIndex; i >= startIndex; i--) {\n if (remainingNumber >= numbers[i]) {\n remainingNumber -= numbers[i];\n }\n /**\n * we could already get the nextNumber by adding some numbers in the given array subset\n */\n if (remainingNumber == 0) {\n break;\n }\n }\n\n return remainingNumber == 0;\n }", "title": "" }, { "docid": "998c30070375f13db7d7b27631193861", "score": "0.53548384", "text": "private boolean checkIfMoreAndIncrease(){\n\t\tboolean result = false;\n\t\tif(count < auctionsToDisplay.size() - 1){\n\t\t\tresult = true;\n\t\t\tcount++;\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "4426734319624f32fffe509867de1da5", "score": "0.5337023", "text": "public boolean invalidArgumentChecker(List<Integer> cloms, int rowSize) {\n\t\tfor(Integer x : cloms) {\n\t\t\tif(x > rowSize) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "a7ea0bd233e38150939347efc9521888", "score": "0.5336581", "text": "public boolean withinRange(int number){\n return number > 0 && number < board.length + 1;\n }", "title": "" }, { "docid": "2e469bbc00c50542e548dddb3990afb0", "score": "0.5331832", "text": "private void checkIndex(int index) {\n if (index < 0 || index >= size) {\n throw new IndexOutOfBoundsException(\"Index: \" + index + \", Size: \" + size);\n }\n }", "title": "" }, { "docid": "31e56d7e06e2d5ad0afc7c3a07396770", "score": "0.5330393", "text": "private boolean locationInBounds(ChessLocation location) {\n return location.getRow() >= 0 && location.getRow() < 8 && location.getRow() >= 0 && location.getCol() < 8;\n }", "title": "" }, { "docid": "fcb78a176a2d190066311ef29de7735d", "score": "0.5318492", "text": "public static boolean go( List<Integer> ray)\r\n\t{\n//First check if the arraylist has at least 2 elements \nif(ray.size()>=2){\n//if it does make a for loop starting at 0and ending at the second to last element\nfor(int i =0; i<ray.size()-1;i++){\n//for each index check if it is equal to the final element \nif(ray.get(i)==ray.get(ray.size()-1)){\n//if any are return true\nreturn true;\n}\n//end for loop\n}\n//end if statement\n}\n//if true is not returned already return false\nreturn false;\n//end method\n }", "title": "" }, { "docid": "b3d3683414cd6b6f69a4417c5c602e28", "score": "0.53167576", "text": "@Override\n\tpublic boolean hasNext() {\n\t\tupdateCurrentIterator();\n\t\tlastUsedIterator = currentIterator;\n\n\t\treturn count < maxElementsCap && currentIterator.hasNext();\n\t}", "title": "" }, { "docid": "1cdd3f15375281c7678603a595e89e53", "score": "0.5315484", "text": "public abstract boolean outOfBounds(int HEIGHT, int WIDTH);", "title": "" }, { "docid": "937bfae8d2b9422d839c029b4690f8f0", "score": "0.53083146", "text": "private void checkIndex(int idx) {\n\t\tif (idx < 0 || idx >= this.size())\n\t\t\tthrow new IndexOutOfBoundsException(\"Invalid index.\");\n\n\t}", "title": "" }, { "docid": "5f96928ae19c026dd24c21fe09af2abe", "score": "0.53021556", "text": "boolean hasStartIndex();", "title": "" }, { "docid": "5f96928ae19c026dd24c21fe09af2abe", "score": "0.53021556", "text": "boolean hasStartIndex();", "title": "" }, { "docid": "84d1e62f080890d093e3918c9a7fa9b2", "score": "0.52963346", "text": "public boolean atEnd(int index, Card card)\n\t{\n\t\tif(inTableau(card))\n\t\t{\n\t\t\tif(tableau.get(index).indexOf(card) == tableau.get(index).size()-1)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c0974f9ee1cfb2f3560c9196cbc53233", "score": "0.52951545", "text": "private static boolean canJump(int[] nums) {\n\t\t\n\t\tint lastIndex = nums.length-1;\n\t\t\n\t\tfor(int i = nums.length-1; i >=0; i--) {\n\t\t\t\n\t\t\tif(i + nums[i] >= lastIndex)\n\t\t\t\tlastIndex = i;\n\t\t}\n\t\t\n\t\treturn lastIndex == 0;\n\t}", "title": "" }, { "docid": "bad54476d28ccb904d605ed8615f15dc", "score": "0.52885884", "text": "boolean hasLastIncludedIndex();", "title": "" }, { "docid": "76abafcd62eec223840da289bf7b205c", "score": "0.5268487", "text": "public static boolean canJumpToLast(int[] a) {\n if (a == null || a.length <= 1)\n return true;\n\n int maxIndex = a[0];\n for (int i = 0; i < a.length; ++i) {\n // cannot reach the end\n if (maxIndex <= i && a[i] == 0)\n return false;\n\n maxIndex = Math.max(maxIndex, i + a[i]);\n\n if (maxIndex >= a.length - 1)\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "9b28f0da617ac7cf2cb4b0c17fdb896d", "score": "0.5265606", "text": "public void outOfBounds() {\n\t\tif (this.checkOutOfBounds()) {\n\t\t\tjuego.reposicionarInfectado(this);\n\t\t}\n\t}", "title": "" }, { "docid": "0e035cfc0baa97f736f512a583e90f4c", "score": "0.52649075", "text": "private void validate(int index) {\n\t\t\tif (index < 0 || index >= size)\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\"start: \" + index + \" should be between 0 and \" + (size - 1));\n\t\t}", "title": "" }, { "docid": "9f2643b59d40035e778d1eeccad4383c", "score": "0.52633077", "text": "protected boolean isValid() {\n return (maxX > 0);\n }", "title": "" }, { "docid": "53555edca7c622f975c40b242b1b733f", "score": "0.5258622", "text": "private boolean inWrongPlace(int index) {\n return this.copyArr[index] != index + 1;\n }", "title": "" }, { "docid": "765cd692c683ff73789b2a179e06f85d", "score": "0.52444154", "text": "@Test\n public void testIsValidListIndex() {\n System.out.println(\"isValidListIndex\");\n String listIndex = \"4\";\n int listSize = 5;\n boolean result = Validator.isValidListIndex(listSize, listIndex);\n assertTrue(\"Valid integer string should return true\", result);\n }", "title": "" }, { "docid": "502a435870e3c2693fd9aca5a979b99c", "score": "0.52370435", "text": "public boolean hasNext() {\n return index < input.length;\n }", "title": "" }, { "docid": "e8bf1f4512610c3faf9de96e192e386d", "score": "0.523461", "text": "private boolean testIndexOf(IndexedUnsortedList<Integer> list, Integer element, int expectedIndex) {\n\t\ttry {\n\t\t\treturn list.indexOf(element) == expectedIndex;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.printf(\"%s caught unexpected %s\\n\", \"testIndexOf\", e.toString());\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "0872e67c275aa086998afe6a11b13f16", "score": "0.52317286", "text": "boolean hasLowerBound();", "title": "" }, { "docid": "0872e67c275aa086998afe6a11b13f16", "score": "0.52317286", "text": "boolean hasLowerBound();", "title": "" }, { "docid": "f44297f287adb274260b8d3ca1a2cf7b", "score": "0.5220863", "text": "public boolean isIndexValid();", "title": "" }, { "docid": "9a9a7c9b61a4e4950c1f095fded32fca", "score": "0.52144223", "text": "public int getIndexInRange(Integer value) {\n int index = 0;\n \n for (int i = 0; i < clist.size(); i++) {\n T current = clist.get(i);\n int less = (Integer) current - 5;\n int more = (Integer) current + 5;\n if ((value.compareTo(more) <= 0) && (value.compareTo(less) > 0)) {\n index = i;\n }\n }\n return index;\n }", "title": "" }, { "docid": "5fce3a53c28603e9a1111d49af7abfb3", "score": "0.5207646", "text": "public void checkList() \n {\n int index = 0;\n int checkSize = 0;\n Node<T> cur = _head;\n Node<T> back = null;\n \n while ( cur != null ) \n {\n if ( cur.prev != back )\n System.err.println( \"List error: bad prev @ index: \" + index );\n back = cur;\n cur = cur.next;\n checkSize++;\n index++;\n }\n int realSize = checkSize - 2; // -2: sentinels not counted in size\n if ( realSize != _size ) \n System.err.println( \"List error: #nodes != size: \" \n + realSize + \" != \" + _size + \" \" + checkSize );\n }", "title": "" } ]
efbd14c386a5c203759227162f313112
Prints message on logger before each test
[ { "docid": "30b1ba93486d516f319cf3dea290626f", "score": "0.604778", "text": "@Override\n protected void starting(Description description) {\n LOG.info(String.format(\"Starting test: %s()...\",\n description.getMethodName()));\n }", "title": "" } ]
[ { "docid": "45d08dfe6d0e1b0cfebbd9378f7b7128", "score": "0.72842443", "text": "@Before(order = 1)\n public void alwaysTheFirst(){\n LOG.info(\"Your cat is watching you\");\n }", "title": "" }, { "docid": "c7e1b8b5bdf261d5023d25ae6be7c509", "score": "0.7033854", "text": "public void postSetUp() {\n if (log.isInfoEnabled()) {\n log.info(\"####POSTSETUP {}\", getTestName());\n }\n }", "title": "" }, { "docid": "90bc1319aea0e633484a7c04e70042df", "score": "0.697122", "text": "@Before\n public void before() {\n System.out.println(\"MainTest | before\");\n }", "title": "" }, { "docid": "d27c25006130a5532d1eca3e95102557", "score": "0.6880824", "text": "@Before\n public void setUp() throws Exception {\n log = new BasicLogFactory(System.err).createLog(\"test\");\n }", "title": "" }, { "docid": "26f261a0f262c3371afde6daeddd2c26", "score": "0.68061286", "text": "@Override\n\tpublic void testRunStarted(Description description) throws Exception {\n\t\twriter = new FileWriter(\"CustomeLog.log\");\n\t\tsuper.testRunStarted(description);\n\t}", "title": "" }, { "docid": "adf698b21c8d3b962f644c445444c181", "score": "0.6773361", "text": "@Test\n public void logTest()\n {\n LoggerUtil.enableDefaultLogger(\"org.zoxweb\");\n //LoggerUtil.updateLoggingFormat(LoggerUtil.PRODUCTION_FORMAT);\n Logger log = Logger.getLogger(LoggingTest.class.getName());\n log.info(\"hello\");\n\n LoggerUtil.updateLoggingFormat(LoggerUtil.PRODUCTION_FORMAT);\n Logger log1 = Logger.getLogger(LoggerUtil.class.getName());\n\n log1.info(\"hello\");\n }", "title": "" }, { "docid": "5e0ab40dc88374820c65dee0b53de83f", "score": "0.6739772", "text": "@Override\n public void beforeTestMethod(TestContext testContext){\n \n if (log.isDebugEnabled()) {\n log.debug(\"Inicio metodo test: \" + testContext.getTestMethod().getName());\n }\n }", "title": "" }, { "docid": "fa4bc042756b1679047e11abe1b9ced1", "score": "0.6677167", "text": "@Override\t\t\n public void onStart(ITestContext context) {\n \tSystem.out.println(\"before everything\");\t\t\n }", "title": "" }, { "docid": "bde57929f799bfc687b4227347cd243e", "score": "0.6663089", "text": "@Before\n\tpublic void setup() {\n\t\tSystem.out.println(\"@@@@@@**This is setup which will run before all the tests@@@@@@@\");\n\t}", "title": "" }, { "docid": "f29dd0557ed642e4fb0c4b2b98ebe14c", "score": "0.6661566", "text": "@Before(\"logMethod()\")\n\tpublic void logCount() {\n\t\tSystem.out.println(\"The controller calls = \" + ++counter); // in this scenario this code would be replaced with Logger.log.....\n\t}", "title": "" }, { "docid": "17bf4453d77e50ef77dd0cf247aa120f", "score": "0.6580707", "text": "@Override\n\tpublic void onStart(ITestContext resultArg) {\n\t\tReporter.log(\"<div style='margin-bottom: 10px; text-align: center; padding: 10px; border-top: 1px dashed #777; border-bottom: 1px dashed #777; color: #777;'><strong>Test: \" + resultArg.getCurrentXmlTest().getName() + \"</strong></div>\"); \t\t\n\t}", "title": "" }, { "docid": "c132157907826b148833c94fddcd45e7", "score": "0.6492194", "text": "@Before\n public void setUp() {\n System.setErr(new PrintStream(out));\n System.setOut(new PrintStream(out));\n }", "title": "" }, { "docid": "97467c1ad246e696464b81be30feb076", "score": "0.6477692", "text": "@Before\n\tpublic void beforeScenario() {\n\t\tSystem.out.println(\"This will run before the every Scenario\");\n\t}", "title": "" }, { "docid": "0ffe8f1b0bc69962329e00f0a19dca32", "score": "0.64758617", "text": "private void createTestLogs(){\n OGCore.log_channelChange(null, null, null, null, null, null);\n OGCore.log_alert(null, null);\n OGCore.log_placementOverride(null, null, null, 0);\n //OGCore.log_adImpression(null);\n OGCore.log_heartbeat(null, null, null);\n\n }", "title": "" }, { "docid": "13c16063ee29fe8f55fb7d64c8dbcccb", "score": "0.6470669", "text": "@Before\n public void setUp() {\n TraceLog.reset();\n }", "title": "" }, { "docid": "07a15fc4db41478f17be5e39b1bee4a4", "score": "0.6431632", "text": "public void preTearDown() {\n if (log.isInfoEnabled()) {\n log.info(\"####PRETEARDOWN {}\", getTestName());\n }\n }", "title": "" }, { "docid": "e662650cec839baedd255089cf108aca", "score": "0.6423278", "text": "public void onStart(ITestContext context) {\n\t\tSystem.out.println(\" before Everthing\");\n\t\t\n\t}", "title": "" }, { "docid": "03e55f8175c4f375e40d5fedc8771fab", "score": "0.64194053", "text": "@Before\n public void welcome(){\n System.out.println(\"Welcome to Unit Testing\");\n }", "title": "" }, { "docid": "4513e93cbeb8a2c6f44422463df003ac", "score": "0.63872546", "text": "@Before\n\tpublic void Before() {\n\t\tthis.logger = LoggerFactory.getLogger(this.className);\n\t\tlogger.setLevel(LogLevel.WARN);\n\t\tthis.formatter = new ClassFormatter(new DateFormatter(new LevelFormatter(logger)), logger);\n\t}", "title": "" }, { "docid": "821d75ee4cd73089caeac79ea1d7ca64", "score": "0.637087", "text": "@BeforeClass\n public static void beforeClass() {\n List<Logger> loggers = Collections.<Logger>list(LogManager.getCurrentLoggers());\n loggers.add(LogManager.getRootLogger());\n for (Logger logger : loggers) {\n logger.setLevel(Level.ERROR);\n }\n LogManager.getLogger(TableEventSignaler.class).setLevel(Level.TRACE);\n }", "title": "" }, { "docid": "9bbed09c42d93a4db71b8bff4d8a815f", "score": "0.633134", "text": "@Before\n\tpublic void setUp() throws Exception {\n\t\t\n\t\ttestcount = testcount+1;\n\t\tSystem.out.println(\"Test Count \" + testcount);\n\t\tSystem.out.println(\"\");\n\t}", "title": "" }, { "docid": "26f46b63d7850f7fdaeb02addb9dd91b", "score": "0.6326846", "text": "@Override\r\n\tpublic void onStart(final ITestContext testContext) {\r\n\t\tReporter.log(\"About to begin executing Test \" + testContext.getName(), true);\r\n\t}", "title": "" }, { "docid": "db6da5cfb4b3c02dc2b802a6e77359a5", "score": "0.6322847", "text": "@Before\r\n\tpublic void Before() {\r\n\t\tSystem.out.println(\"Before\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2d4f528fe584407e1c0adfb45dd39190", "score": "0.62691164", "text": "@BeforeClass\n public static void setUp() {\n Log.getFindings().clear();\n Log.enableFailQuick(false);\n }", "title": "" }, { "docid": "732b251da0e75bc502180e8e16e451df", "score": "0.62642217", "text": "public static void setUpLogging()\r\n {\r\n logger = Logger.getLogger(\"Maze\");\r\n //SingleRandom.getInstance().setSeed(29);\r\n //logger.setLevel(Level.ALL); \r\n logger.setLevel(Level.OFF);\r\n counter = 0;\r\n chambersLeft = MAX_NUMBER_CHAMBERS;\r\n }", "title": "" }, { "docid": "650ed2c83520581532769d215e7a9aa3", "score": "0.6227101", "text": "@BeforeClass(alwaysRun=true)\n\tpublic void beforeClass() {\n\t\tSystem.out.println(\"BeforeClass\");\n\t}", "title": "" }, { "docid": "c7a65f4092a9509ed9ffd69b7d8be02e", "score": "0.62166476", "text": "@Test\n public void testLogging() throws Exception{\n log.trace(\"trace message test\");\n log.debug(\"debug message test\");\n log.info(\"info message test\");\n log.warn(\"warn message test\");\n log.error(\"error message test\");\n log.fatal(\"fatal message test\");\n\n // advanced log\n log.log(Level.WARN,\"switch levels during runtime\");\n }", "title": "" }, { "docid": "7450bf65eb8aa770e52f66a2283f19be", "score": "0.62018436", "text": "@Before\n public void setUp() throws Exception {\n Logger.getGlobal().setUseParentHandlers(false);\n }", "title": "" }, { "docid": "b1d53e26e265ab45f5f21d7a51425e7a", "score": "0.6190581", "text": "@Override\n public void beforeTestExecution(ExtensionContext context) throws Exception {\n System.out.println(\"beforeTestExecution() callback\");\n }", "title": "" }, { "docid": "afdb151166d1bc2e93060ddbe5693ab2", "score": "0.6168787", "text": "public void onTestSkipped(ITestResult arg0) {\r\n System.out.println(\"start test execution...\" + arg0.getName());\r\n }", "title": "" }, { "docid": "2f1e3fbdc74ae2b3c1eb52ed8312870e", "score": "0.6162089", "text": "public static void beforeTest() {\n\t\tgetInstance().beforeTest();\n\t}", "title": "" }, { "docid": "52c54fb0081b2b1c8280fef3f9ce812d", "score": "0.6148677", "text": "@After(\"definePackagePointCuts()\")\n public void log() {\n log.debug(\" ---- \");\n }", "title": "" }, { "docid": "aa10635db749fd4a1c58f84c0eb491a1", "score": "0.61360455", "text": "private void beginLogging() {\n try {\n /* Rename any existing file */\n myPending.startUsing(myVersionAction, null);\n } catch (Exception e) {\n /* Couldn't open the log file. Bail to stdout. */\n Trace.trace.shred(e, \"Exception has already been logged.\");\n\n myCurrent = TraceLogDescriptor.stdout;\n try { \n myCurrent.startUsing(VA_IRRELEVANT, null);\n } catch (Exception ignore) {\n assert false: \"Exceptions shouldn't happen opening stdout.\";\n }\n drainQueue();\n return;\n }\n myCurrent = myPending;\n Trace.trace.worldi(\"Logging begins on \" + myCurrent.printName() + \".\");\n myPending = (TraceLogDescriptor) myCurrent.clone();\n myCurrentSize = 0;\n drainQueue();\n }", "title": "" }, { "docid": "9af13d38cd86d9e54c0a9cca435b01b2", "score": "0.6113115", "text": "public static void testPassed(String message){\r\n\t\ttry {\r\n\t\t\tTestLogger.appInfo(message);\r\n\t\t\treporter.info(message);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tTestLogger.errorMessage(e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b4484872f8c5990ed635176666c2a6be", "score": "0.6111827", "text": "@BeforeClass\n\tpublic void setUp() {\n\t\tlogger = Logger.getLogger(\"Rest Assured API Automation Testing\");\n\t\tPropertyConfigurator.configure(\"C:\\\\Users\\\\handa\\\\Desktop\\\\WorkSpaceForAutomationProjects\\\\RestAssured\\\\src\\\\main\\\\resources\\\\Log4j.properties\");\n\t\tlogger.setLevel(Level.DEBUG);\n\t}", "title": "" }, { "docid": "58da73460958e06fd53735a37620a27c", "score": "0.61036664", "text": "@Test\n\tpublic void orderGenerateLogger() throws InterruptedException{\n\t}", "title": "" }, { "docid": "66d754b1332b66fcab12c113cc50a567", "score": "0.60965097", "text": "@Test\n\tpublic void hello() {\n\t\tAgriLogger logger = AgriCore.getLogger(\"HelloTest\");\n\t\tlogger.all(\"log_test_key\", \"Hello\", \"All\", \"Hello!\");\n\t\tlogger.info(\"log_test_key\", \"Hello\", \"Info\", \"Hello!\");\n\t\tlogger.debug(\"log_test_key\", \"Hello\", \"Debug\", \"Hello!\");\n\t\tlogger.warn(\"log_test_key\", \"Hello\", \"Warn\", \"Hello!\");\n\t\tlogger.error(\"log_test_key\", \"Hello\", \"Error\", \"Hello!\");\n\t\tlogger.severe(\"log_test_key\", \"Hello\", \"Severe\", \"Hello!\");\n\t}", "title": "" }, { "docid": "432ce708fbffaa7785ba714ba2d9368c", "score": "0.60917187", "text": "@Before\n\tpublic void pub() {\n\t\tSystem.out.println(\"before\");\n\t}", "title": "" }, { "docid": "99d23ce30235939fc3caaf06bfe9dbb1", "score": "0.60733056", "text": "@Before\r\n\tpublic void prePrueba() {\r\n\t\t// Cambio la salida de error a errContent para poder tratarlo\r\n\t\tSystem.setErr(new PrintStream(errContent));\r\n\r\n\t\t// Imprimo un separador para que los output de las pruebas sean mas claros\r\n\t\tSystem.out.println(SEPARATOR);\r\n\t}", "title": "" }, { "docid": "d093be892923c01d44f37541d8fec600", "score": "0.6068734", "text": "@Before\n public void beforeScenario(){\n System.out.println(\"//////////////////////////START OF SCENARIO//////////////////////////\");\n\n }", "title": "" }, { "docid": "f42a95d514ece287cbdd66917faa580a", "score": "0.6063713", "text": "@Test\n public void test() {\n String name = \"root\";\n String pwd = \"123456\";\n log.debug(\"this is the debug...\");\n log.info(\"hello {} ,the pwd is {}\", name, pwd);\n log.warn(\"this is the warn...\");\n log.error(\"this is the error...\");\n }", "title": "" }, { "docid": "46eece2295b6573a053cc25306626ca8", "score": "0.6061311", "text": "public static void printStart(String aTest) {\n if (Thread.currentThread() instanceof TestThread) {\n logger.debug(Thread.currentThread().getName() + \": \");\n cat.info(Thread.currentThread().getName() + \": \" + aTest + \" Start\");\n }\n\n logger.debug(\"Start of \" + aTest);\n logger.debug(\"****************************************************************\\n\");\n }", "title": "" }, { "docid": "299cf7efc43dcdca9a5326ae2e6907d7", "score": "0.6052084", "text": "@Before\n\tpublic void setup() {\n\t\tSystem.out.println(\"Setting up Test\");\n\t}", "title": "" }, { "docid": "a29bc56a01e722db1f9d184900e34361", "score": "0.6042115", "text": "@Before\n public void testInit() {\n savedStream = new ByteArrayOutputStream();\n System.setOut(new PrintStream(savedStream));\n }", "title": "" }, { "docid": "d2b06e2eecdb2dd399851f729e46c974", "score": "0.6026378", "text": "@BeforeClass\n public static void setup() {\n executorImplLogger = Logger.getLogger(EDTExecutorInternal.class);\n executorImplLogger.enableTrace();\n }", "title": "" }, { "docid": "45a3f38f746698e1bf4ceae47641e5f8", "score": "0.6020401", "text": "public void testSpeed() {\r\n CompositeLogger logger = CompositeLogger.getLogger(LoggerTest.class);\r\n logger.setEnabled(true);\r\n\r\n long time = System.currentTimeMillis();\r\n for (int i = 0; i < 10000; i++) {\r\n logger.debug(\"Test logger\");\r\n }\r\n time = System.currentTimeMillis() - time;\r\n System.out.println(\"Execution time: \" + time);\r\n //assertTrue(\"Execution time > 250ms\", time <= 250);\r\n }", "title": "" }, { "docid": "1a867e83c3ee63c679c3d860387b7802", "score": "0.5991995", "text": "@BeforeClass\n public static void beforeClass() {\n System.out.println(\"in before class\");\n }", "title": "" }, { "docid": "93110dd95534d0dd0bbccee062105a96", "score": "0.59916335", "text": "@Override\r\n\tpublic void before(Method m, Object[] args, Object target) throws Exception {\n\t\t\r\n\t\tlogger.log(Level.INFO, \"start \"+m);\r\n\t\tSystem.out.println(\"---------------------??????????????????\");\r\n\t}", "title": "" }, { "docid": "00f745691afddb4feee112309b3cbaaf", "score": "0.5991624", "text": "public void doMyStartUpStuff()\r\n\t{\r\n\t\tSystem.out.println(\"TrackCoach : Inside method doMyStartUpStuff \");\r\n\t}", "title": "" }, { "docid": "758ec8d2af0183616587bf20cea839ea", "score": "0.5981914", "text": "@Before(value=\"execution(public * get*())\")\n\tpublic void loggingBeforeAdvice() {\n\t\tSystem.out.println(\"executes before every get\");\n\t}", "title": "" }, { "docid": "37aae8c67f4c576795b391e91510391e", "score": "0.5978023", "text": "@Before\n public void setUp() throws Exception {\n System.setOut(new PrintStream(outputStream));\n System.setErr(new PrintStream(errorStream));\n }", "title": "" }, { "docid": "a854a885c94319f8549a7246eeccb1b2", "score": "0.5971318", "text": "@BeforeClass\n public static void beforeClass() {\n System.out.println(\"MainTest | beforeClass\");\n }", "title": "" }, { "docid": "9b922407b0edf195c9d16b899739f954", "score": "0.5953785", "text": "@Override\r\n\tpublic void onTestStart(ITestResult result) {\n\t\t\r\n\t\tSystem.out.println(\"Starting test : \"+ result.getMethod().getMethodName());\r\n\t}", "title": "" }, { "docid": "09dbcb3df73f4878b7a691b1dcfe2d03", "score": "0.5952679", "text": "@BeforeAll\n static void beforeAll(){\n System.out.println(\"Before All Unit Tests\");\n }", "title": "" }, { "docid": "25d18cf477886d07c9576902a2fb0642", "score": "0.59512335", "text": "@Override\n\tpublic void testStarted(Description description) throws Exception {\n\t\twriter.write(\"\\n============================================================\\n\");\n\t\twriter.write(\"Execution of \" + description.getMethodName() + \" is sarted\\n\");\n\t\tsuper.testStarted(description);\n\t}", "title": "" }, { "docid": "96aa781ef5fb3859a7336252e0dcbc75", "score": "0.5942719", "text": "@Before\n public void setUp() {\n // Create a stream to hold the output\n this.baosOut = new ByteArrayOutputStream();\n this.baosErr = new ByteArrayOutputStream();\n this.systemErr = new PrintStream(this.baosErr);\n this.systemOut = new PrintStream(this.baosOut);\n // IMPORTANT: Save the old System.out!\n this.oldSystemOut = System.out;\n this.oldSystemErr = System.err;\n // Tell Java to use your special stream\n System.setErr(this.systemErr);\n System.setOut(this.systemOut);\n }", "title": "" }, { "docid": "3a3b4169dd705d13e1f0003367fca637", "score": "0.594221", "text": "@Override\n public void beforeEach(ExtensionContext context) {\n if (run && !expectExit && (process == null || !process.isAlive())) {\n start();\n }\n\n prodModeTestResultsField.ifPresent(f -> {\n try {\n f.set(context.getRequiredTestInstance(), prodModeTestResults);\n } catch (IllegalAccessException e) {\n throw new RuntimeException(e);\n }\n });\n\n logfileField.ifPresent(f -> {\n try {\n f.set(context.getRequiredTestInstance(), logfilePath);\n } catch (IllegalAccessException e) {\n throw new RuntimeException(e);\n }\n });\n }", "title": "" }, { "docid": "de80a6a982ca52e0d0ff740987a14dff", "score": "0.5941632", "text": "public void onTestStart(ITestResult result) {\n\t\tSystem.out.println(\"Test started- \" + result.getName());\n\n\t}", "title": "" }, { "docid": "fef9845ee8a2dce6c99ab41a80783cd2", "score": "0.59295017", "text": "@Override\n public void onTestSuccess(ITestResult resultArg) { \n Reporter.log(\"</ol><div style='color: white; background: green; padding: 4px; margin-top: 15px;'><strong>SUCCES</strong></div></div>\");\n }", "title": "" }, { "docid": "31d98a6acf84d6bdf0355224795cc352", "score": "0.59184736", "text": "@BeforeMethod\n\tpublic void beforeTest() {\n\t\t// actions need to be run at beginning of every test cases\n\t}", "title": "" }, { "docid": "62311985016dae04cc9e5dc20256dfd9", "score": "0.59181744", "text": "@AfterTest (alwaysRun=true)\n\t public void afterTest() {\n\t\t Reporter.log(\"After Test:....\\n\",true);\n\t }", "title": "" }, { "docid": "be0155e57a7a01f394d0d82985fa78d1", "score": "0.5900068", "text": "@Override\n\tpublic void onTestSkipped(ITestResult result) {\n\t\tSystem.out.println(result.getName()+ \" Test Started!!\");\n\t\t\n\t}", "title": "" }, { "docid": "59c5490e6337ca26171856a735dd9416", "score": "0.5896923", "text": "@BeforeMethod\r\n\tpublic void beforeTestMethod(Method method) {\n\t\t\r\n\t logger.createNode(\"TestName: \"+method.getName()); \r\n\t \r\n//\t parent = report.createTest(method.getName());\r\n//\t child = parent.createNode(\"Test Name: \"+method.getName());\r\n\t String testMethodName = method.getName();\r\n\t logger.log(Status.INFO,\r\n\t\t\t\tMarkupHelper.createLabel(\"Testing Functionality >>> \"+testMethodName, ExtentColor.ORANGE));\r\n\r\n\t}", "title": "" }, { "docid": "14516deb5d92ced8c24a66b6adc9eda4", "score": "0.5896165", "text": "private static void earlyLog() {\n VDDLog out = new VDDLog(System.out);\n System.setOut(out);\n VDDLog err = new VDDLog(System.err);\n System.setErr(err);\n }", "title": "" }, { "docid": "168c389df88489c608283d5da7260bb3", "score": "0.5892756", "text": "@Override\t\t\n public void onTestStart(ITestResult result) {\n \tSystem.out.println(\"testcaseis going to execute\");\t\n \t\t\n }", "title": "" }, { "docid": "20cbf8c62d9b22e39bf4fe39c7db1d9f", "score": "0.5881008", "text": "public void onTestSkipped(ITestResult result) {\n\t\tSystem.out.println(\"on test skipped\");\r\n\t\tmylog.info(\"on test skipped\");\r\n\t}", "title": "" }, { "docid": "1749a73e706f2f2e3325a3f16ba1752c", "score": "0.5876818", "text": "@Override\n\tpublic void onStart(ITestContext context) {\n\t\tSystem.out.println(\"Functionality Testing Start\");\n\t}", "title": "" }, { "docid": "6e5e20c12860d435b355cdd746539453", "score": "0.58661664", "text": "@Before\n public void setUp() \n {\n meals = new InFlightMealDispatcher();\n sysOut = new ByteArrayOutputStream();\n System.setOut(new PrintStream(sysOut));\n }", "title": "" }, { "docid": "4f0a46037fa2d4e584b8d2c73e9812e1", "score": "0.5862275", "text": "@Override\n\tpublic void onTestStart(ITestResult result) {\n\t\tSystem.out.println(result.getName()+ \" Test Started!!\");\n\t\t\n\t}", "title": "" }, { "docid": "86e633638b0987b009b9aafea48c351f", "score": "0.5850261", "text": "public void onTestSuccess(ITestResult arg0) {\r\n System.out.println(\"start test execution...\" + arg0.getName());\r\n }", "title": "" }, { "docid": "507fac1a471bb3fe2dd44452f727dfa9", "score": "0.5849705", "text": "@Before\n public void setup() throws Exception {\n logger = LoggerFactory.getLogger(RabbitMqChannelImpl.class);\n ch.qos.logback.classic.Logger logbackLogger = (ch.qos.logback.classic.Logger) logger;\n appender = new ListAppender();\n logbackLogger.addAppender(appender);\n appender.start();\n }", "title": "" }, { "docid": "298143bfc504c0e36bb37545a3fa25d2", "score": "0.5841183", "text": "public static void logsToReport() {\n if ((null != logs) && !logs.isEmpty()) {\n String result = \"\";\n result += \"<fieldset>\";\n result += \"<legend>Test Case Execution</legend>\";\n result += \"<ol style=\\\"padding-left: 3em;\\\">\";\n for (String message : logs) {\n result += \"<li>\" + message +\"</li>\";\n }\n result += \"</ol>\";\n result += \"</fieldset>\";\n Reporter.log(result);\n }\n }", "title": "" }, { "docid": "f400f5e6311ca4c7b1274fd19b43e00c", "score": "0.58258057", "text": "@Test\n\tpublic void testlogAfterReset() {\n\t\tgitlet(\"init\");\n\t\tString initialCom = \"Initial commit.\"; // id is 0\n\t\t\n\t\tString dogFile = TESTING_DIR + \"dog.txt\";\n\t\tString dogText = \"Bark!\";\n\t\tcreateFile(dogFile, dogText);\n\t\tgitlet(\"add\", dogFile);\n\t\tString comMsg1 = \"Woof!\";\n\t\tgitlet(\"commit\", comMsg1); // id is 1\n\t\t\n\t\twriteFile(dogFile, \"I hate cats.\");\n\t\tgitlet(\"add\", dogFile);\n\t\tString comMsg2 = \"Dogs hate cats.\";\n\t\tgitlet(\"commit\", comMsg2); // id is 2\n\t\t\n\t\twriteFile(dogFile, \"Give me treats.\");\n\t\tgitlet(\"add\", dogFile);\n\t\tString comMsg3 = \"Feed all the dogs.\";\n\t\tgitlet(\"commit\", comMsg3); //id is 3\n\t\t\n\t\tString dogLog = gitlet(\"log\");\n\t\tassertArrayEquals(new String[] { comMsg3, comMsg2, comMsg1, initialCom }, extractCommitMessages(dogLog)); //Before reset\n\t\t\n\t\tgitlet(\"reset\", \"1\");\n\t\t\n\t\tdogLog = gitlet(\"log\");\n\t\tassertArrayEquals(new String[] { comMsg1, initialCom }, extractCommitMessages(dogLog)); //After reset\t\n\t}", "title": "" }, { "docid": "a9e22091f0f448dd8edd031025edf73d", "score": "0.5813332", "text": "private static void report() {\n System.out.println(testsPassed + \" tests PASSED\");\n if (testsFailed != 0) {\n System.out.println(testsFailed + \" tests FAILED\");\n }\n }", "title": "" }, { "docid": "e253f71c64dae0ccd60eba7dc1bb9ab1", "score": "0.5810465", "text": "@Override\n\tpublic void onTestSkipped(ITestResult resultArg) {\n\t Reporter.log(\"</ol><div style='background: yellow; padding: 4px; margin-top: 15px;'><strong>SKIPPED</strong></div></div>\");\t\n\t}", "title": "" }, { "docid": "a0fb896ce868b30d755af66df3d61996", "score": "0.58078367", "text": "@Override\r\n\tpublic void beforeInvocation(final IInvokedMethod arg0, final ITestResult arg1) {\r\n\r\n\t\tString textMsg = \"About to begin executing following method : \" + returnMethodName(arg0.getTestMethod());\r\n\r\n\t\tlogger.debug(textMsg);\r\n\r\n\t}", "title": "" }, { "docid": "3d1d1389b85f87ce5feaabe1197dfe5d", "score": "0.5803546", "text": "@Before\r\n public void setup() {\r\n out = new java.io.ByteArrayOutputStream();\r\n System.setOut(new java.io.PrintStream(out));\r\n }", "title": "" }, { "docid": "9ba61db2723130d53584b300d868ed97", "score": "0.57959795", "text": "@Test\n\tpublic void testBasicLog() {\n\t\tgitlet(\"init\");\n\t\tString commitMessage1 = \"initial commit\";\n\n\t\tString wugFileName = TESTING_DIR + \"wug.txt\";\n\t\tString wugText = \"This is a wug.\";\n\t\tcreateFile(wugFileName, wugText);\n\t\tgitlet(\"add\", wugFileName);\n\t\tString commitMessage2 = \"added wug\";\n\t\tgitlet(\"commit\", commitMessage2);\n\n\t\tString logContent = gitlet(\"log\");\n\t\tassertArrayEquals(new String[] { commitMessage2, commitMessage1 }, extractCommitMessages(logContent));\n\t}", "title": "" }, { "docid": "b49547eec516a26458d36a70eeadd88f", "score": "0.57894784", "text": "@Override\n public void testRunStarted(String runName, int testCount) {\n if (testCount == 0 && !expectedTests.isEmpty()) {\n CLog.e(\n \"Run reported 0 tests while we collected %s\",\n expectedTests.size());\n super.testRunStarted(runName, expectedTests.size());\n } else {\n super.testRunStarted(runName, testCount);\n }\n }", "title": "" }, { "docid": "ee47ae1a5d779e5b7f1510a3edfefe1a", "score": "0.57825595", "text": "public void testSingleThread()\n throws LogException, Exception\n {\n log = new XALogger(cfg);\n log.open();\n log.setAutoMark(true);\n \n prop.setProperty(\"msg.count\", \"10\");\n runWorkers(1);\n \n log.close();\n \n }", "title": "" }, { "docid": "f1b3e4a2dfcc3987494b577bd809b8d2", "score": "0.57691306", "text": "@Test\n\tpublic void testBasicLog() {\n\t\tgitlet(\"init\");\n\t\tString commitMessage1 = \"Initial commit.\"; // save the initial commit message for \n\t\t\t\t\t\t\t\t\t\t\t\t\t// final test\n\n\t\tString wugFileName = TESTING_DIR + \"wug.txt\";\n\t\tString wugText = \"This is a wug.\";\n\t\tcreateFile(wugFileName, wugText); // create file wug.txt\n\t\tgitlet(\"add\", wugFileName); // add wug.txt \n\t\tString commitMessage2 = \"added wug\"; \n\t\tgitlet(\"commit\", commitMessage2); // commit wug.txt with above message\n\n\t\tString logContent = gitlet(\"log\");\n\t\tassertArrayEquals(new String[] { commitMessage2, commitMessage1 },\n\t\t\t\textractCommitMessages(logContent));\n\t}", "title": "" }, { "docid": "4a78148c85b041b2c4e44d9be92a4fb0", "score": "0.57651037", "text": "@BeforeClass\r\n public static void begin() {\n \tSystem.out.println(\"开始测试\");\r\n \tSystem.out.println(\".\");\r\n \tSystem.out.println(\"..\");\r\n \tSystem.out.println(\"...\");\r\n \t }", "title": "" }, { "docid": "babb962bdc2d5f4ed03a7cbed8a234b8", "score": "0.576225", "text": "@Override\n\tpublic void onStart(ITestContext context) {\n\t\tSystem.out.println(context.getName()+ \" Test Started!!\");\n\t\t\n\t}", "title": "" }, { "docid": "28b61fd0dc231a18badbf941238cc8ff", "score": "0.5745897", "text": "@Override\r\n\tpublic void onTestStart(ITestResult result) {\r\n\t\ton(className,result.getTestClass().getName());\r\n\t\ttestReporter = reporter.startTest(result.getMethod().getMethodName(), \"Some description\");\r\n\t\ttestCommon.log(LogStatus.INFO, \"Starting test \" + result.getMethod().getMethodName());\r\n\t}", "title": "" }, { "docid": "05697e1357456a653e66ad62f4cc66cf", "score": "0.57445663", "text": "@Override\r\n\tpublic void onTestSuccess(ITestResult result) {\n\t\t test.log(LogStatus.PASS, \"Test passed\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b8d3abcc6564dde775ffd3ed10d22bfe", "score": "0.5741294", "text": "@BeforeTest\n\tpublic void beforeTest() throws Exception {\n\t\textent = ExtentManager.getReporter(filePath);\n\t\trowData = testcase.get(this.getClass().getSimpleName());\n\t\ttest = extent.startTest(rowData.getTestcaseId(), rowData.getTestcaseDescription()).assignCategory(\"Authoring\");\n\t}", "title": "" }, { "docid": "a3a68f552a3586caae5bf5931570af4d", "score": "0.573431", "text": "@Before\r\n\tpublic void beforeTest() {\r\n\t\toutputContent = new ByteArrayOutputStream();\r\n\t\tSystem.setOut(new PrintStream(outputContent));\r\n\t\tfilegrep = new FileGrep(searchWord);\r\n\t\tget = new FileGrep(findword);// change made\r\n\t}", "title": "" }, { "docid": "ed48e97e4a1f299bf02b7af0c9b1a476", "score": "0.5733006", "text": "private static void logErrorStopAndStopTest(){\n logger.error(\"Cannot work with element \");\n Assert.fail(\"Cannot work with element \");\n }", "title": "" }, { "docid": "a509f392c69804f1290260ba17cf58ad", "score": "0.5731816", "text": "public void testRunStarted(Description description) throws Exception {\n startTime = System.currentTimeMillis();\n }", "title": "" }, { "docid": "8a19f7b4c108d5f97041d0523a8e1f4b", "score": "0.5728836", "text": "public void startTest(Test test)\n {\n String name = \"\" ;\n if ( test instanceof TestCase )\n name = ((TestCase)test).getName() ;\n else\n name = test.toString() ;\n System.out.println(\"Test: \"+name) ; }", "title": "" }, { "docid": "0c8208b890cd46f92cd363460ac1ca40", "score": "0.5728797", "text": "@Before\r\n protected void setUp() throws Exception {\r\n super.setUp();\r\n tester = new WebTester();\r\n tester.setBaseUrl(TestHelper.getBaseURL());\r\n\r\n CustomAppender.clear();\r\n LogManager.setLogFactory(new Log4jLogFactory());\r\n\r\n authenticationInterceptorInstance = new AuthenticationInterceptor();\r\n authenticationInterceptorInstance.setLoginPageName(\"login\");\r\n authenticationInterceptorInstance.setUserSessionIdentityKey(TestHelper.KEY_FOR_LOGIN_CHECK);\r\n\r\n loggingInterceptorInstance = new LoggingInterceptor();\r\n loggingInterceptorInstance.setLogger(\"strutsLoggerName\");\r\n }", "title": "" }, { "docid": "c0d64ad21d75c1bdd21900ad900b2885", "score": "0.57256085", "text": "protected void starting(Description description) {\n LOG.info(\" \\n\\n ---> Starting test: \" + description.getMethodName());\n }", "title": "" }, { "docid": "7f91e471ef65c816f9780f2b064dd26e", "score": "0.57131875", "text": "private void log() {\n\t\tdebugLog();\n\t}", "title": "" }, { "docid": "27152ca9d4c400c006d20af54189d7f4", "score": "0.5710635", "text": "public void before() {\n }", "title": "" }, { "docid": "a5cfc2554bf2a01f5847c5bef018e731", "score": "0.5701612", "text": "public void doMyStartupStuff() {\n\t\tSystem.out.println(\"TrackCoach: inside method doMyStartupStuff\");\n\t}", "title": "" }, { "docid": "eccd46bf97080863f8d39f1e5485f8da", "score": "0.568823", "text": "public void testStarted(final String ignoredName) {\n if (isTestTracking()) myTrace.compareAndSet(null, new ConcurrentHashMap<Object, boolean[]>());\n }", "title": "" }, { "docid": "9ec5b714b28ce6bef7525676e13e24bc", "score": "0.5686492", "text": "private static void run_tests() {\n System.out.println(\"Tests all good!\");\n }", "title": "" }, { "docid": "94b9d9408cc0e3771ac942d781fecbdf", "score": "0.56803966", "text": "public static void beforeSuite() {\n\t\tgetInstance().beforeSuite();\n\t}", "title": "" } ]
4e1c79c23296814acf740d49775b1cf8
Method to check if a bean is deployed on a node in a given cluster
[ { "docid": "ab45db5fdffb4b00fa89533a5eaa4b25", "score": "0.6783179", "text": "boolean isClusterMember(Object bean, String clusterName) {\n return clusterRegistry.isClusterMember(clusterName);\n }", "title": "" } ]
[ { "docid": "e32db057f7f4f962979c6f3f6593248e", "score": "0.6379484", "text": "boolean hasReplicas();", "title": "" }, { "docid": "a4eaad76788f6b5a9766c2936324bd8c", "score": "0.6081089", "text": "private boolean isClusterInUse(Cluster cluster) {\n List<Host> hosts =\n CustomQueryUtility.queryActiveResourcesByConstraint(_dbClient, Host.class,\n ContainmentConstraint.Factory.getContainedObjectsConstraint(cluster.getId(), Host.class, \"cluster\"));\n for (Host host : hosts) {\n if (ComputeSystemHelper.isHostInUse(_dbClient, host.getId())) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "8131e3f415bd7088b1fe1ff7cbb0e49c", "score": "0.6020804", "text": "boolean hasClusterSize();", "title": "" }, { "docid": "791b5498fa4eb22a6133aff6b06d315a", "score": "0.6014189", "text": "public static boolean isAvailable() {\n\t\t\treturn Boolean.TRUE.equals(clusterAvailable.get());\n\t\t}", "title": "" }, { "docid": "5db386e98e48b55ad49a4cf8a8ff0925", "score": "0.595363", "text": "public static boolean isDeploymentServiceAvailable(NodeDeploymentServiceFactory factory)\n throws IOException, SmartFrogException {\n return factory != null && factory.isNodeDeploymentSupported();\n }", "title": "" }, { "docid": "3a19958487f4d7af52e2da536388712c", "score": "0.59277505", "text": "public boolean isClustered() {\n return remotes != null && remotes.size() > 0;\n }", "title": "" }, { "docid": "6c5df711a4d03a6ac28e115bbdc37994", "score": "0.57302123", "text": "public boolean isClusterActive() {\n return clusterActive;\n }", "title": "" }, { "docid": "64d7fa61c908082a86d00f36171bc39e", "score": "0.57085866", "text": "boolean hasClusterRadius();", "title": "" }, { "docid": "de57c6944485b58e2fad43f16ab53a27", "score": "0.568041", "text": "boolean hasUpdateConfigReplica();", "title": "" }, { "docid": "c9649dc9f4262bf6a89a45f3588b01f6", "score": "0.56527865", "text": "private void testCluster() {\n report(\"create-cluster-with-syspropport\", asadmin(\"create-cluster\", \"--systemproperties\", \"HTTP_LISTENER_PORT=3030\", \"cluster1\"));\n report(\"create-instance-with-syspropport\", asadmin(\"create-local-instance\", \"--cluster\", \"cluster1\", \"--systemproperties\", \"HTTP_LISTENER_PORT=4040\", \"instance1\"));\n\n report(\"start-local-instance-syspropport\", asadmin(\"start-local-instance\", \"instance1\"));\n String str = getURL(\"http://localhost:4040\");\n boolean success = !str.isEmpty();\n report(\"check-url-at-server-port\", success);\n\n report(\"stop-local-instance-syspropport\", asadmin(\"stop-local-instance\", \"instance1\"));\n report(\"delete-local-instance-syspropport\", asadmin(\"delete-local-instance\", \"instance1\"));\n report(\"delete-cluster-syspropport\", asadmin(\"delete-cluster\", \"cluster1\"));\n }", "title": "" }, { "docid": "0236f47e6a27bb3ce3a173afcc8a80a4", "score": "0.5646843", "text": "boolean hasIsMasterRunning();", "title": "" }, { "docid": "f263e7b92d48b68dc30766eaeafd02c7", "score": "0.56443316", "text": "private boolean existNode(String logicname) throws Exception{\n try{\n List params = new ArrayList();\n params.add(\"StorageManagerAgent\");\n params.add(getLocation(logicname));\n MethodInvoker mi = new MethodInvoker(\"DatabaseManagerAgent\",\"existNode\", true, params);\n boolean res=(Boolean)this.mc.invoke(mi);\n //05/24/2012 boolean res = (Boolean) this.owner.invoke(\"DatabaseManagerAgent\", \"existNode\", true, params); \n return res;\n } catch (CleverException e) {\n logger.error(\"Error: \" + e.getMessage());\n return false;\n }\n }", "title": "" }, { "docid": "f02967cca1241c4589cf162e9b4e7ef6", "score": "0.5637298", "text": "protected boolean isDeployed(String serviceUnitName) {\n return getServiceUnits().containsKey(serviceUnitName);\n }", "title": "" }, { "docid": "23209d4f361b5b2b3c06b9757283d58a", "score": "0.55635226", "text": "void checkDataSourceClusterSupport(String submittedClusterName) throws UnExpectedRequestException;", "title": "" }, { "docid": "9b0bf681f8de2c9a784ec34060eeb80a", "score": "0.5556892", "text": "public boolean isDeployed() {\n return isDeployed;\n }", "title": "" }, { "docid": "a88e111e2eb76d5340e36706ecd75f3d", "score": "0.5534863", "text": "boolean hasClusteringMetrics();", "title": "" }, { "docid": "a7cb93132da732da7c423b6fcec86627", "score": "0.55195296", "text": "public boolean isDiscovery();", "title": "" }, { "docid": "6eb4f3792a026f179e3e005fd1b0089c", "score": "0.5506575", "text": "private void checkCurrentNodeExist() {\n if (Config.metadata_failure_recovery.equals(\"true\")) {\n return;\n }\n\n Frontend fe = checkFeExist(selfNode.getHost(), selfNode.getPort());\n if (fe == null) {\n LOG.error(\"current node {}:{} is not added to the cluster, will exit.\"\n + \" Your FE IP maybe changed, please set 'priority_networks' config in fe.conf properly.\",\n selfNode.getHost(), selfNode.getPort());\n System.exit(-1);\n } else if (fe.getRole() != role) {\n LOG.error(\"current node role is {} not match with frontend recorded role {}. will exit\", role,\n fe.getRole());\n System.exit(-1);\n }\n }", "title": "" }, { "docid": "82875c9b05e1988270d21a541cb432f8", "score": "0.55020154", "text": "boolean hasHost();", "title": "" }, { "docid": "82875c9b05e1988270d21a541cb432f8", "score": "0.55020154", "text": "boolean hasHost();", "title": "" }, { "docid": "82875c9b05e1988270d21a541cb432f8", "score": "0.55020154", "text": "boolean hasHost();", "title": "" }, { "docid": "82875c9b05e1988270d21a541cb432f8", "score": "0.55020154", "text": "boolean hasHost();", "title": "" }, { "docid": "82875c9b05e1988270d21a541cb432f8", "score": "0.55020154", "text": "boolean hasHost();", "title": "" }, { "docid": "82875c9b05e1988270d21a541cb432f8", "score": "0.55020154", "text": "boolean hasHost();", "title": "" }, { "docid": "841d006f69ee2db6740025441b1669bc", "score": "0.545043", "text": "public boolean hasClusterSize() {\n return clusterSizeBuilder_ != null || clusterSize_ != null;\n }", "title": "" }, { "docid": "14f51cfc6c720dc0523f77eb73d57081", "score": "0.54199034", "text": "@java.lang.Override\n public boolean hasClusterSize() {\n return clusterSize_ != null;\n }", "title": "" }, { "docid": "aab3e519656a681e8c0703f7d5d2d326", "score": "0.54136", "text": "public static boolean isServerJBoss() {\n\t\treturn System.getProperty(JBOSS_PROPERTY) != null;\n\t}", "title": "" }, { "docid": "341ea32019a052880e59cdc76537d47a", "score": "0.5377147", "text": "boolean isAvailability();", "title": "" }, { "docid": "dc694997bd6e8ee041fc879c351ca68b", "score": "0.5374554", "text": "public final boolean getIsClusteredImpl() {\n return CacheHelper.IsClusteredCache(getCacheImpl());\n }", "title": "" }, { "docid": "bb3b655d2ff028a72892893163e8fd53", "score": "0.53582245", "text": "boolean hasModelDeploymentMonitoringJob();", "title": "" }, { "docid": "3fea318c1fb738349a9b72caf99458ed", "score": "0.53344405", "text": "public static boolean inServer() {\n\t\treturn isServerJBoss() || isServerTomcat();\n\t}", "title": "" }, { "docid": "56ec3dbe1c56c408cc5ab674eaec1bae", "score": "0.5322883", "text": "private boolean areDataServicesAvailable() \n throws MgmtException {\n\tNodeMgrService.Proxy nodeProxy = null;\n\ttry {\n\t nodeProxy = ServiceManager.proxyFor(ServiceManager.LOCAL_NODE);\n\t} catch (Exception ignore) {\n\t //\n\t}\n\treturn nodeProxy != null && nodeProxy.hasQuorum();\n }", "title": "" }, { "docid": "ae923e1ece218dcd3e7e4057c042fe3b", "score": "0.53148764", "text": "boolean hasLeaderHost();", "title": "" }, { "docid": "ae923e1ece218dcd3e7e4057c042fe3b", "score": "0.53148764", "text": "boolean hasLeaderHost();", "title": "" }, { "docid": "2697365cb55c0a5ec405d8d7ec162e30", "score": "0.5285996", "text": "protected boolean isDeployedKey(String key)\n {\n return _controllerNames.contains(key);\n }", "title": "" }, { "docid": "61cbcc81fd553fa13b9feb2019b2d17d", "score": "0.5278627", "text": "private boolean checkCluster(int x, int y,int color){\r\n\t\tint number = neighborNumber(color, x, y);\r\n\t\tif(number==0){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse if(number ==1){\r\n\t\t\tChip[] around = neighbors(x, y);\r\n\t\t\tfor(int i=0; i<around.length; i++){\r\n\t\t\t\tif((around[i] !=null) && around[i].getColor() == color){\r\n\t\t\t\t\tif(neighborNumber(color, around[i].getX(), around[i].getY())==0){\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "21b8601d0574ed47909628e2ec15560b", "score": "0.5248733", "text": "public boolean getRPCServerStatus(String host){\n try {\n return cassandraClusterToolsAdminStub.isRPCRunning(host);\n } catch (Exception e) {\n throw new ClusterAdminClientException(\"Error getting RPC server status\",e, log);\n }\n }", "title": "" }, { "docid": "2a5923e2523818df4cbc0d25ff3a8038", "score": "0.52306473", "text": "private boolean isModuleInstanceInUse(String moduleInstance) {\n Set services = Collections.EMPTY_SET;\n boolean returnValue = false;\n \n try {\n ServiceConfigManager scm = new ServiceConfigManager(\n ISAuthConstants.AUTHCONFIG_SERVICE_NAME, token);\n ServiceConfig oConfig = scm.getOrganizationConfig(realm, null);\n \n if (oConfig != null) {\n ServiceConfig namedConfig = \n oConfig.getSubConfig(\"Configurations\");\n if (namedConfig != null) { \n services = namedConfig.getSubConfigNames(\"*\");\n }\n }\n } catch (Exception e) {\n if (debug.messageEnabled()) {\n debug.message(\"Failed to get named sub configurations.\");\n }\n }\n \n for (Iterator it = services.iterator(); it.hasNext(); ) {\n String service = (String)it.next();\n if (debug.messageEnabled()) {\n debug.message(\"Checking \" + service + \" ...\");\n }\n if (serviceContains(service, moduleInstance)) {\n if (debug.messageEnabled()) {\n debug.message(moduleInstance + \" is used in \" + service);\n }\n returnValue = true;\n break;\n } \n }\n return returnValue;\n }", "title": "" }, { "docid": "f801775ef3458f3073c14660286dc089", "score": "0.5219861", "text": "public java.lang.Boolean getIsDeployed()\n {\n return isDeployed;\n }", "title": "" }, { "docid": "8a2f7a059800579fe63b9cc890f3c1a1", "score": "0.52138233", "text": "public boolean hasClusterRadius() {\n return clusterRadiusBuilder_ != null || clusterRadius_ != null;\n }", "title": "" }, { "docid": "5b33aa7c6c33f464880636a48e9d6a6d", "score": "0.5203193", "text": "boolean isReady(ApplicationVersionBean application) throws Exception;", "title": "" }, { "docid": "526b6e8bd988fccff3c242b5b9444394", "score": "0.5200265", "text": "protected boolean hasDocker(Pod pod) {\n PodStatus currentState = pod.getStatus();\n if (currentState != null) {\n List<ContainerStatus> containerStatuses = currentState.getContainerStatuses();\n/*\n ContainerManifest manifest = currentState.getManifest();\n if (manifest != null) {\n List<Container> containers = manifest.getContainers();\n for (Container container : containers) {\n Number memory = container.getMemory();\n if (memory != null && memory.longValue() > 0) {\n return true;\n }\n }\n }\n*/\n/*\n Map<String, ContainerStatus> info = currentState.getInfo();\n if (info != null) {\n Collection<ContainerStatus> containers = info.values();\n for (ContainerStatus container : containers) {\n DetailInfo detailInfo = container.get();\n if (detailInfo != null) {\n Map<String, Object> additionalProperties = detailInfo.getAdditionalProperties();\n if (additionalProperties != null) {\n if (additionalProperties.containsKey(\"HostConfig\")) {\n return true;\n }\n }\n }\n }\n }\n*/\n }\n return false;\n }", "title": "" }, { "docid": "c4c1d59fcc7d1dda93252f83027ad7d4", "score": "0.5196484", "text": "public boolean testAllNodeInformationProvided() {\n\t\tSet<String> repKeys = replicationPaths.keySet();\n\t\tSet<String> hostKeys = hosts.keySet();\n\t\tfor (String repKey: repKeys) {\n\t\t\tif (!hostKeys.contains(repKey)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "dc8ed2166ff5878e063bd6955466da12", "score": "0.5192372", "text": "@VisibleForTesting\n boolean registerDiscoveryService(String failureNodeHost)\n {\n // Check node host and port\n URI nodeUri = getNodeUri();\n String nodeHost = nodeUri.getHost();\n int nodePort = nodeUri.getPort();\n if (nodeHost == null || nodePort == -1) {\n throw new PrestoException(STATE_STORE_FAILURE, \"node ip and node port cannot be null\");\n }\n\n // Add Jitter under 1000 milliseonds\n try {\n Thread.sleep((long) (new SecureRandom().nextDouble() * 1000));\n }\n catch (InterruptedException e) {\n }\n\n boolean registered = false;\n boolean locked = false;\n Lock lock = null;\n StateMap<String, String> discoveryServiceMap;\n // Add retry mechanism to avoid (1) and (2)\n for (int i = 1; i <= DISCOVERY_REGISTRY_RETRY_TIMES; i++) {\n try {\n LOG.debug(\"Trying to register Discovery Service at time: %s\", i);\n lock = stateStore.getLock(DISCOVERY_SERVICE_LOCK);\n locked = lock.tryLock(DISCOVERY_REGISTRY_LOCK_TIMEOUT, TimeUnit.MILLISECONDS);\n if (locked) {\n discoveryServiceMap = (StateMap<String, String>) stateStore.getStateCollection(DISCOVERY_SERVICE);\n if (discoveryServiceMap.isEmpty() || discoveryServiceMap.containsKey(failureNodeHost)) {\n // Note coordinators can be crashed in 3 conditions while registering discovery service\n // (1) before discoveryServiceMap.clear() -> old failureNodeHost still in the discoveryServiceMap\n // (2) after discoveryServiceMap.clear() but before new node registered -> discoveryServiceMap is empty\n // (3) after new node registered -> discoveryServiceMap has new node\n if (discoveryServiceMap.containsKey(failureNodeHost)) {\n // If failure host exists\n // old discovery node info needs to be cleared first\n discoveryServiceMap.clear();\n }\n discoveryServiceMap.put(nodeHost, String.valueOf(nodePort));\n LOG.info(\"Discovery service node set with host=%s and port=%d\", nodeHost, nodePort);\n registered = true;\n }\n break;\n }\n else {\n discoveryServiceMap = (StateMap<String, String>) stateStore.getStateCollection(DISCOVERY_SERVICE);\n\n if (!discoveryServiceMap.isEmpty() && !discoveryServiceMap.containsKey(failureNodeHost)) {\n // Discovery service is updated by other coordinator\n break;\n }\n\n if (i == DISCOVERY_REGISTRY_RETRY_TIMES) {\n LOG.error(\"Discovery Service: %s is not available, either discovery service is not found or discovery service is down, please take a look\",\n discoveryServiceMap);\n break;\n }\n Thread.sleep(DISCOVERY_REGISTRY_RETRY_INTERVAL);\n }\n }\n catch (InterruptedException | RuntimeException e) {\n LOG.warn(\"registerDiscoveryService failed with following exception: %s at try times: %s\", e.getMessage(), i);\n }\n finally {\n if (locked) {\n lock.unlock();\n }\n }\n }\n return registered;\n }", "title": "" }, { "docid": "c406d583aef831d936943de208690188", "score": "0.5190937", "text": "static boolean isSingleNodeInstance(String currentPort) {\n if (currentPort.equals(REMOTE_PORT0)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "802d51a761178a11e68c3ac8d06a694f", "score": "0.51890844", "text": "protected boolean isServiceAvailable(Class clazz) {\n return felixManager.getBundleContext().getServiceReference(clazz) != null;\n }", "title": "" }, { "docid": "4440c1375dd14476b0422702d92ac1a3", "score": "0.51788306", "text": "void checkDataSourceClusterSupport(Set<String> submittedClusterNames) throws UnExpectedRequestException;", "title": "" }, { "docid": "ef257ade8203418bb2e95821dcdb7e79", "score": "0.5177805", "text": "public boolean isReplicationActive(final String iClusterName, final String iLocalNode) {\n final Collection<String> servers = getClusterConfiguration(iClusterName).field(SERVERS);\n if (servers != null && !servers.isEmpty()) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "05155259c61e78df93f3b970e0ffcb80", "score": "0.517227", "text": "boolean hasCandidateHost();", "title": "" }, { "docid": "324b1150fb45a9eb988628427a8d8a1d", "score": "0.5164685", "text": "public boolean hasNode(OWLShuntNode n){\n\t\treturn nodes.contains(n);\n\t}", "title": "" }, { "docid": "17050b8ba8206796f862096c73273807", "score": "0.5158992", "text": "public boolean isServerContainingCluster(final String server, String cluster) {\n if (cluster == null) cluster = ALL_WILDCARD;\n\n final List<String> serverList = getClusterConfiguration(cluster).field(SERVERS);\n if (serverList != null) {\n return serverList.contains(server);\n }\n return true;\n }", "title": "" }, { "docid": "ebd73fd1789212c351db076557508b02", "score": "0.5156664", "text": "private boolean isClusterInExport(Cluster cluster) {\n List<ExportGroup> exportGroups = CustomQueryUtility.queryActiveResourcesByConstraint(\n _dbClient, ExportGroup.class,\n AlternateIdConstraint.Factory.getConstraint(\n ExportGroup.class, \"clusters\", cluster.getId().toString()));\n return !exportGroups.isEmpty();\n }", "title": "" }, { "docid": "3286471ca8d45a05d84ade39247b1dd0", "score": "0.5156469", "text": "String getCluster();", "title": "" }, { "docid": "3b823437cbb4c484baa0402eca62319d", "score": "0.51481426", "text": "boolean hasBoss();", "title": "" }, { "docid": "a4ea94b8ca2518ba5249dadc04c8d0ef", "score": "0.51401556", "text": "@java.lang.Override\n public boolean hasClusterRadius() {\n return clusterRadius_ != null;\n }", "title": "" }, { "docid": "6e9f139427c3c2e6867a9582d259dd4f", "score": "0.51373214", "text": "@MBeanInfo(\"cluster name\")\n String getClusterName();", "title": "" }, { "docid": "3fcad850010b4002f5669eb748b2127f", "score": "0.5136835", "text": "ClusterInfo examineBrokerClusterInfo() throws InterruptedException, BrokerException, RemotingTimeoutException,\n RemotingSendRequestException, RemotingConnectException;", "title": "" }, { "docid": "23de5996ab0844ecad210bb87e665893", "score": "0.51105183", "text": "public boolean\ncontainsNode(SoBaseKit node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n for (int i = 0; i < getLength(); i++)\n if (getNode(i) == node)\n return true;\n\n return false;\n}", "title": "" }, { "docid": "32967bbd50e4da0b22ce99c757f5ae84", "score": "0.50962824", "text": "public boolean isExistingClassOfService(String name);", "title": "" }, { "docid": "f4fc9ca4ccb1c9b7b5a0f7192364458c", "score": "0.5091221", "text": "public boolean hasShardingConfigMap() {\r\n return regCenter.isExisted(configNode.getFullPath(ConfigurationNode.SHARDING_CONFIG_MAP_NODE_PATH));\r\n }", "title": "" }, { "docid": "1184bd86f8f82973cc8156002f1f06fc", "score": "0.5079139", "text": "boolean hasServerHost();", "title": "" }, { "docid": "ac3998a918cd56bfecaf2462bdd6ad2d", "score": "0.50678337", "text": "boolean hasGuestConfig();", "title": "" }, { "docid": "ac3998a918cd56bfecaf2462bdd6ad2d", "score": "0.50678337", "text": "boolean hasGuestConfig();", "title": "" }, { "docid": "5b38e25ea55defa19ecb626e9791a7ce", "score": "0.5061089", "text": "void availabilityTest(String clusterName) throws Exception {\n availabilityTest(100, clusterName, false, \"my-topic\", null);\n }", "title": "" }, { "docid": "644f8d61d9862729b07b1b6ec1aaf7d1", "score": "0.5038675", "text": "private boolean serviceContains(String serviceName, String moduleInstance) {\n boolean returnValue = false;\n Map dataMap = null;\n \n if (serviceName != null) {\n try {\n dataMap = AMAuthConfigUtils.getNamedConfig(serviceName,\n realm, this.token);\n } catch (Exception e) {\n if (debug.messageEnabled()) {\n debug.message(\"Failed to get named sub config attrs.\");\n }\n }\n }\n \n if (dataMap != null) {\n Set xmlConfigValues = (Set)dataMap.get(AMAuthConfigUtils.ATTR_NAME);\n if (xmlConfigValues != null && !xmlConfigValues.isEmpty()) {\n String xmlConfig = (String)xmlConfigValues.iterator().next();\n if (debug.messageEnabled()) {\n debug.message(\"service config for \" + serviceName + \" = \"\n + xmlConfig);\n } \n \n if (xmlConfig != null && xmlConfig.length() != 0) {\n Document doc = XMLUtils.toDOMDocument(xmlConfig, debug);\n if (doc != null) {\n Element vPair = doc.getDocumentElement();\n Set values = XMLUtils.getAttributeValuePair(vPair);\n for (Iterator it=values.iterator(); it.hasNext(); ) {\n String value = (String)it.next();\n if (value.startsWith(moduleInstance)) {\n returnValue = true;\n break;\n }\n }\n }\n }\n }\n }\n return returnValue;\n }", "title": "" }, { "docid": "ea41abf1ff30bfae888467ce3b2645b7", "score": "0.50302505", "text": "boolean hasService();", "title": "" }, { "docid": "563798da38974464e0f07368604e1e09", "score": "0.50223416", "text": "public boolean hasNode(java.lang.String node) {\n boolean result = false;\n for (int i = 0; i < nodeValues.length; i++) {\n if (node.equals(nodeValues[i])) {\n result = true;\n }\n }\n return result;\n }", "title": "" }, { "docid": "52e4d0957f4bccd354f89faec40a54f4", "score": "0.5009483", "text": "@GET(\"_cluster/health\")\n\tpublic Call<Object> cluster_health();", "title": "" }, { "docid": "2f371e80b1a35cd3becf0266fe8b4538", "score": "0.50026494", "text": "public boolean exists() {\r\n return container.exists();\r\n }", "title": "" }, { "docid": "46fbe26efd9ad85c66229cbbe792b1cd", "score": "0.49971205", "text": "private void checkClusterNecessity()\n \t{\n \t\tLogging.log(this, \"Checking necessity of this cluster\");\n \t\t// no further external candidates available/known (all candidates are gone) or has the last local inferior coordinator left the area?\n \t\tif ((countConnectedClusterMembers() < 1 /* do we still have cluster members? */) || (mInferiorLocalCoordinators.size() == 0 /* has the last local coordinator left this cluster? */)){\n \t\t\tLogging.log(this, \"checkClusterNecessity() detected an unneeded cluster\");\n \t\t\t\n \t\t\t/**\n \t\t\t * TRIGGER: cluster invalid\n \t\t\t */\n \t\t\teventClusterRoleInvalid();\n \t\t}\n \t}", "title": "" }, { "docid": "34ff35dab66cb4f7dfbfc854576f74f5", "score": "0.49941632", "text": "protected boolean isAdmPortRunning() {\n try {\n final URL url = new URL(String.format(\"http://%s:%s/internal/running\", getAddress(), admPort));\n info(\"Checking \" + url);\n final HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n try {\n conn.setConnectTimeout((int) TimeUnit.SECONDS.toMillis(1));\n conn.setReadTimeout((int) TimeUnit.SECONDS.toMillis(5));\n conn.setRequestMethod(\"GET\");\n conn.setRequestProperty(\"Content-Type\", \"application/json\");\n conn.setRequestProperty(\"Accept\", \"application/json\");\n conn.setRequestProperty(\"Accept-Charset\", \"UTF-8\");\n conn.setRequestProperty(\"User-Agent\", \"jboss-maven-plugin\");\n\n final int status = conn.getResponseCode();\n if (status != 200) {\n info(\"status \" + status);\n return false;\n }\n\n final String output = getResponseContent(conn);\n info(output);\n return output.contains(\"OK\");\n } finally {\n conn.disconnect();\n }\n } catch (Throwable e) {\n debug(\"Exception \" + e.getMessage());\n return false;\n }\n }", "title": "" }, { "docid": "5daca582d3f78042b94edf5ca99488b6", "score": "0.49930263", "text": "boolean hasHostInfo();", "title": "" }, { "docid": "28ba8efcc5b1eb267509b9f0e70e5393", "score": "0.49912387", "text": "void clusterOnline(ClusterNode node);", "title": "" }, { "docid": "53ac5b6c05560f43fcc1522b29eb51c6", "score": "0.49911675", "text": "public boolean isOccupied(int nodeIndex){\n\t\tfor(int i=0;i<this.nodeMapping.length;i++){\n\t\t\tif(nodeMapping[i] == nodeIndex)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5aac1da56dee0d1a66c4421c715beb93", "score": "0.4987275", "text": "boolean hasEconomySupportSupervisor();", "title": "" }, { "docid": "6b173a3049cc1afbb875a6e38a45ecec", "score": "0.49850252", "text": "public boolean isDeploymentTopologyExist(ApplicationEnvironment environment) {\n String deploymentTopologyId = DeploymentTopology.generateId(Csar.createId(environment.getApplicationId(), environment.getTopologyVersion()),\n environment.getId());\n return alienDAO.exist(DeploymentTopology.class, deploymentTopologyId);\n }", "title": "" }, { "docid": "b6725c836d9ea94ff84ec3ae44dacd78", "score": "0.4971307", "text": "public boolean isManagedBean(String name)\n {\n return (_runtimeConfig.getManagedBean(name) != null);\n }", "title": "" }, { "docid": "709bd0229b2795783cfafb841518548e", "score": "0.4969549", "text": "boolean hasJobs();", "title": "" }, { "docid": "b87ac3bd5a6230b69146312e04af2449", "score": "0.49643552", "text": "boolean hasInstanceId();", "title": "" }, { "docid": "66fa2927859fce8d29d893737aaeb4ad", "score": "0.49593747", "text": "private boolean clusterCheck(int x, int y, int playerColor) {\n\t boolean upLeft = true, left = true, downLeft = true, down = true, downRight = true, right = true, upRight = true, up = true, middle;\n\t if (machineBoard.getSquare(x-1, y-1) == playerColor) {\n\t\t upLeft = checkNeighbor(x-1, y-1, playerColor, 1);\n\t }\n\t if (machineBoard.getSquare(x-1, y) == playerColor) {\n\t\t left = checkNeighbor(x-1, y, playerColor, 1);\n\t }\n\t if (machineBoard.getSquare(x-1, y+1) == playerColor) {\n\t\t downLeft = checkNeighbor(x-1, y+1, playerColor, 1);\n\t }\n\t if (machineBoard.getSquare(x, y+1) == playerColor) {\n\t\t down = checkNeighbor(x, y+1, playerColor, 1);\n\t }\n\t if (machineBoard.getSquare(x+1, y+1) == playerColor) {\n\t\t downRight = checkNeighbor(x+1, y+1, playerColor, 1);\n\t }\n\t if (machineBoard.getSquare(x+1, y) == playerColor) {\n\t\t right = checkNeighbor(x+1, y, playerColor, 1);\n\t }\n\t if (machineBoard.getSquare(x+1, y-1) == playerColor) {\n\t\t upRight = checkNeighbor(x+1, y-1, playerColor, 1);\n\t }\n\t if (machineBoard.getSquare(x, y-1) == playerColor) {\n\t\t up = checkNeighbor(x, y-1, playerColor, 1);\n\t }\n\t middle = checkNeighbor(x, y, playerColor, 2);\n\t return !(upLeft && left && downLeft && down && downRight && right && upRight && up && middle);\n }", "title": "" }, { "docid": "d5f33efaa181adeda3dc0e628e325c17", "score": "0.49525887", "text": "boolean hasSystemInfo();", "title": "" }, { "docid": "dcdf0ee5b0ee8f483fb473ee3ebeb44a", "score": "0.49447924", "text": "ClusterEntityStatus provisioningState();", "title": "" }, { "docid": "4ed77e01985713cb191e807790ac3afd", "score": "0.4940507", "text": "boolean hasMachineDetails();", "title": "" }, { "docid": "b85b72ec2c15aa177ff3e5bf08029d80", "score": "0.49355158", "text": "public boolean hasDeployedHook() {\n\t\treturn m_deployed;\n\t}", "title": "" }, { "docid": "be51ce60aa7fad4b1655fde4fad073e9", "score": "0.49313885", "text": "boolean containsBeanDefinition(String beanName);", "title": "" }, { "docid": "b6711d226897ba646179042e675a35a3", "score": "0.49293652", "text": "public boolean checkFeatureExistInFeatureMasterOrNot(ConfigurationContext configContext ) throws FeatureMasterServiceException {\n\t\t\n\t\tlogger.debug(\"inside checkFeatureExistInFeatureMasterOrNot method \");\n\t\tint featureMasterId=0;\n\t\t\n\t\ttry {\n\t\t\tint siteNodeId=getApplicableNodeIdForSite(configContext.getTenantId(), configContext.getSiteId());\n\t\t\t\n\t\t\tIConfigPersistenceService configPersistenceService = new ConfigPersistenceServiceMySqlImpl();\n\n\t\t\tfeatureMasterId=configPersistenceService.getFeatureMasterIdByFeatureAndFeaturegroup(configContext.getFeatureName(), configContext.getFeatureGroup(), siteNodeId);\n\t\t\tlogger.debug(\"feature found in FeatureMaster with MasterNodeId : \"+featureMasterId);\n\t\t\tif(featureMasterId==0)\n\t\t\t\treturn false;\n\t\t\t\n\t\t\t\n\t\t} catch (InvalidNodeTreeException | ConfigPersistenceException e) {\n\n\t\t\tthrow new FeatureMasterServiceException(\"Failed find out Feature in Feature master \"+e);\n\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "title": "" }, { "docid": "3e1d797b9f5d6b0874615c3a69581fa0", "score": "0.49244523", "text": "private boolean isCarFileDeployed(String carFileName) throws Exception {\n\n log.info(\"waiting \" + MAX_TIME + \" millis for car deployment \" + carFileName);\n boolean isCarFileDeployed = false;\n Calendar startTime = Calendar.getInstance();\n long time;\n\n while ((time = (Calendar.getInstance().getTimeInMillis() - startTime.getTimeInMillis())) < MAX_TIME) {\n String[] applicationList = applicationAdminClient.listAllApplications();\n\n if (applicationList != null) {\n for (int i = 0; i < applicationList.length; i++) {\n if (applicationList[i].equals(carFileName)) {\n isCarFileDeployed = true;\n log.info(\"car file deployed in \" + time + \" mills\");\n return isCarFileDeployed;\n }\n }\n }\n\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n log.error(e);\n }\n }\n return isCarFileDeployed;\n }", "title": "" }, { "docid": "6d3e25cba6132ce418c199a6890a929a", "score": "0.4923061", "text": "@Test\n void shouldDetectClusterCapabilities() {\n CouchbaseBucketConfig config = readConfig(\"cluster_run_cluster_capabilities.json\");\n Map<ServiceType, Set<ClusterCapabilities>> cc = config.clusterCapabilities();\n\n assertEquals(1, cc.get(ServiceType.QUERY).size());\n assertTrue(cc.get(ServiceType.QUERY).contains(ClusterCapabilities.ENHANCED_PREPARED_STATEMENTS));\n\n assertTrue(cc.get(ServiceType.KV).isEmpty());\n assertTrue(cc.get(ServiceType.SEARCH).isEmpty());\n assertTrue(cc.get(ServiceType.ANALYTICS).isEmpty());\n assertTrue(cc.get(ServiceType.MANAGER).isEmpty());\n assertTrue(cc.get(ServiceType.VIEWS).isEmpty());\n }", "title": "" }, { "docid": "58b366767924c065af7a148e03e03cf3", "score": "0.49175173", "text": "public ClusterStatus getClusterStatus(boolean detailed) throws IOException;", "title": "" }, { "docid": "40fbf54e48e276c40726e86f1f7960ff", "score": "0.4896204", "text": "private boolean existsCellOnTheNorth(Robot robot, CellState cell) {\n\t\tint robotDiamterInCellNum = robot.getDiameterInCellNum();\n\t\tint rowID = robot.getSouthWestBlock().getRowID() - robotDiamterInCellNum;\n\t\tfor(int colOffset = 0;colOffset < robotDiamterInCellNum;colOffset++){\n\t\t\tint colID = robot.getSouthWestBlock().getColID() + colOffset;\n\t\t\tif(this.exploredMap.getCell(rowID, colID) == cell) return true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4e7843197e6919190d5918ee52966d4b", "score": "0.48954287", "text": "public static boolean isServerTomcat() {\n\t\treturn !isServerJBoss() && System.getProperty(TOMCAT_PROPERTY) != null;\n\t}", "title": "" }, { "docid": "09940e9793e5d4ffdb6513f911fc9207", "score": "0.48813272", "text": "boolean hasContainer();", "title": "" }, { "docid": "d88c2c90683b529f8f0a76ed865b7677", "score": "0.48753998", "text": "boolean hasServerName();", "title": "" }, { "docid": "4f69d5172d7090392acbdd589827f7bd", "score": "0.48749995", "text": "public boolean runNode()\n {\n //Attempt to register a connection with the job server:\n if(!register())\n {\n return false;\n }\n \n //Now set up a server socket\n try\n {\n ServerSocket ss=new ServerSocket(this.contactPort, 10);\n \n while(true)\n {\n Socket s=ss.accept();\n PrintWriter out = new PrintWriter(s.getOutputStream(), true);\n //BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));\n \n //Read the job information:\n //A job specifies its user:\n ObjectInputStream objIn=new ObjectInputStream(s.getInputStream());\n Job j=(Job) objIn.readObject();\n \n //Now determine if this is a special command job (yes, this is an awful way to encode\n //job service commands):\n if(j.getName().equals(\"stopnode\"))\n {\n if(j.getOwner().equals(admin))\n {\n out.println(\"OK\");\n out.close();\n objIn.close();\n System.err.println(\"Waiting for jobs to terminate...\");\n jp.waitAll();\n //Todo: add some logic to purge the running job list.\n break;\n }\n \n else\n {\n out.println(\"ERR\");\n }\n }\n \n else\n {\n jp.acceptJob(j);\n }\n \n out.println(\"OK\");\n objIn.close();\n out.close();\n s.close();\n }\n \n return true;\n } catch(IOException e)\n {\n System.err.println(\"Communications error. Exiting...\");\n return false;\n } catch(ClassNotFoundException ex)\n {\n System.err.println(\"Service attempted to send invalid object. Exiting...\");\n return false;\n }\n }", "title": "" }, { "docid": "00e9de370807319d7f99f1b7ffb73ef9", "score": "0.48723042", "text": "private boolean register()\n {\n try\n {\n Socket s=new Socket(this.jobAddr, this.jobPort);\n PrintWriter out = new PrintWriter(s.getOutputStream(), true);\n BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));\n\n out.write(\"node\\n\");\n out.flush(); //Just in case.\n \n this.contactPort=Integer.parseInt(in.readLine());\n System.out.println(\"Service assigned port: \"+this.contactPort);\n \n String resp=in.readLine();\n \n if(resp.equals(\"OK\"))\n {\n return true;\n }\n } catch(UnknownHostException e)\n {\n System.err.println(\"Unable to connect to job management server: \"+jobAddr);\n \n } catch(IOException ex)\n {\n System.err.println(\"Error when registering with job management server: \"+jobAddr);\n }\n \n System.err.println(\"Node cannot proceed to accept jobs.\");\n \n return false;\n }", "title": "" }, { "docid": "0015884ef81f59cbad24b95fc009cfe6", "score": "0.486603", "text": "protected void verifyCluster() throws HoneycombTestException { \n Log.INFO(\"wait for HADB to be HAFaultTolerant\"); \n waitForClusterToStart(16);\n \n /**\n * verify that hadb now has 12 active nodes\n * and 4 spare nodes \n */ \n ClusterNode master = cm.getMaster();\n ArrayList nodeList = master.readHadbmNodesStatus();\n int activeNodes = 0;\n int spareNodes = 0;\n for(int i=0; i<nodeList.size(); i++) {\n if(((String)nodeList.get(i)).contains(\"active\")) {\n activeNodes++;\n } else if(((String)nodeList.get(i)).contains(\"spare\")) {\n spareNodes++;\n }\n }\n if(activeNodes == 12 && spareNodes == 4) {\n Log.INFO(\"HADB Expansion Completed\");\n } else {\n Log.ERROR(\"HADB excepts 12 active nodes and 4 spare nodes\"); \n }\n\n try {\n // print cluster fullness and hadb object after expansion\n Log.INFO(\"Hadb Object Count and Cluster Fullness, After Expansion\");\n printStats();\n } catch(Throwable e) {\n throw new HoneycombTestException(\"Unable to print Cluster Fullness Stats: \" + e.getMessage());\n }\n \n // If this run was from a snapshot then we can verify the data placement\n // with the snapshot\n String snapshot_to_verify_against = null;\n \n if (snapshot_name != null) {\n snapshot_to_verify_against = snapshot_name;\n } else if (createdata_snapshot != null) {\n snapshot_to_verify_against = createdata_snapshot;\n }\n \n if (snapshot_to_verify_against != null) {\n Log.INFO(\"Now that sloshing has completed, need to verify snapshost: \" \n + snapshot_to_verify_against + \" against current data.\");\n snapshot_tool.verifyDataAgainstSnapshot(snapshot_to_verify_against);\n }\n \n // Other verification\n Log.INFO(\"Still missing other verification.\");\n }", "title": "" }, { "docid": "406f8c75701900b79f0c994ce6b2ee94", "score": "0.48634624", "text": "boolean hasCheckKnownHosts();", "title": "" }, { "docid": "b2d6f0da51768f711f30398efadfdaf7", "score": "0.48627687", "text": "private boolean clusterReferencesExist(final String source, final String clusterName) {\n boolean remainingClusterRefs = false;\n\n if (source != null && clusterName != null) {\n TopologyService ts = getTopologyService();\n if (ts != null) {\n for (File f : ts.getDescriptors()) {\n try {\n SimpleDescriptor sd = SimpleDescriptorFactory.parse(f.toPath().toAbsolutePath().toString());\n if (source.equals(sd.getDiscoveryAddress()) && clusterName.equals(sd.getCluster())) {\n remainingClusterRefs = true;\n break;\n }\n } catch (IOException e) {\n // Ignore these errors\n }\n }\n } else {\n remainingClusterRefs = true; // If the TopologyService is unavailable, assume references remain\n }\n }\n\n return remainingClusterRefs;\n }", "title": "" }, { "docid": "d7658c9f70c87db75a7b195540bd9ccf", "score": "0.48474923", "text": "boolean hasInstance();", "title": "" }, { "docid": "b02a9362dd3c6d8416bc07e012d17d19", "score": "0.48432627", "text": "boolean hasServiceConnected();", "title": "" } ]
df9a635142fd928e5204c1af9c1deb18
TODO known problem, try to fix later
[ { "docid": "86ad36210179167d569f0456bb63df8a", "score": "0.0", "text": "public void testGetterLazyEahcToString() throws IOException {\n doTest();\n }", "title": "" } ]
[ { "docid": "c8ceec30e6f3ebd2fb8cab39b477d3f3", "score": "0.5889942", "text": "private static void sapxep() {\n\t\t\n\t}", "title": "" }, { "docid": "663ac6f718361fb243bf093a1c7ded6a", "score": "0.5860347", "text": "@Override\r\n\tprotected void Goukakyuu() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ccaf5f7aff0d6de105f523c68f63383c", "score": "0.5688523", "text": "private void cathc() {\n\t\t\r\n\t}", "title": "" }, { "docid": "17781c799f004311d8f8ad31648157ed", "score": "0.56523794", "text": "private void identify(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7679fd1b623986eeedb64db808e99029", "score": "0.5519079", "text": "@Override\n\t\t\tpublic void fahre() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "ea4341d488d9be09cc755218b65fadf5", "score": "0.5518472", "text": "@Override\n public void preRetrieving() {\n }", "title": "" }, { "docid": "0e87d402221278c3889063822e567959", "score": "0.54562753", "text": "protected void sift() {\n\t\t\r\n\t}", "title": "" }, { "docid": "06012d51723afddd7b9003b92d7d49c3", "score": "0.53661317", "text": "protected void mo1734a() {\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.53544354", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.53544354", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "72965061656f6e9004101dfecbf046a4", "score": "0.5302761", "text": "@Override\n\tprotected void thinkSit()\n\t{\n\t}", "title": "" }, { "docid": "77bebe8f12e4ddf3e4c09948fafcdc5d", "score": "0.5282256", "text": "@Override\n protected void checkRep() {\n }", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.5269999", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.5259894", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8ac2c16a1254157c46ed1cdb437fe4f0", "score": "0.5251932", "text": "@Override\r\n\t\tpublic void ustSoyut2() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "8484f1b37a8db0941e2722db3c988008", "score": "0.52245957", "text": "public void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "4c743a5e5106c55466224d75f817448a", "score": "0.52178013", "text": "@Override\r\n\t\tpublic void ustSoyut() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.52155215", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.5174641", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "cfdf25944086a38f063107aad70f2f0b", "score": "0.516814", "text": "@Override\r\n\tprotected void visit() {\n\t}", "title": "" }, { "docid": "12cb886ceb5e3e8b5a540a316317c996", "score": "0.5152539", "text": "private void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1e56eb875969a40be9b73939843db26f", "score": "0.5149376", "text": "public void starteWuerfelaktion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4f4340003331db95a2feee0084056a02", "score": "0.51316434", "text": "@Override\n\tprotected void inicializar() {\n\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.5113412", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "d65d6c17fb978c0d576ada2c03cd49fe", "score": "0.5100171", "text": "@Override\n\tpublic void apagar() {\n\t\t\n\t}", "title": "" }, { "docid": "c0eeb7bb899cafc556cf19801d318ce5", "score": "0.5092406", "text": "@Override\n\tprotected void initFiled() {\n\t\t\n\t}", "title": "" }, { "docid": "b34cc48bcf490b840f9d5474c40ed7d7", "score": "0.508272", "text": "protected void mo3990h() {\n }", "title": "" }, { "docid": "18d768f6f48ac88822b7bb8bccfac09e", "score": "0.5081195", "text": "public void mo18903b() {\n }", "title": "" }, { "docid": "428377dd8e49bc1cf5ac0e5d064029b3", "score": "0.5060738", "text": "@Override\r\n\tpublic void preco() {\n\r\n\t}", "title": "" }, { "docid": "c8edbc2418d9526ae7d7577d77cdf305", "score": "0.50607145", "text": "private void getMeta() {\n\n\t}", "title": "" }, { "docid": "2dba4ee6ed524e88abef1361bebe0821", "score": "0.505376", "text": "@Override\n protected void grab() {\n \n }", "title": "" }, { "docid": "a1f605ca3e07976447a751ccd937b4db", "score": "0.5043686", "text": "@Override public int ataque(){\n return 0;\n }", "title": "" }, { "docid": "1010f244e972c0ea26ed77a119296c6c", "score": "0.5020882", "text": "@Override\r\n\tprotected void Mokuton() {\n\t\t\r\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.5020241", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "4e77e38d765da349111aec386882ccd9", "score": "0.50145555", "text": "private void setUpScenary1() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "57fad36f1e9515178fdc8e8afc8cc63c", "score": "0.5009473", "text": "protected boolean method_2502() {\r\n return true;\r\n }", "title": "" }, { "docid": "1dadc4f4b2753641fd8c0d1a11c96778", "score": "0.50036377", "text": "protected boolean method_4225() {\r\n return true;\r\n }", "title": "" }, { "docid": "19006c0661c5e3b653400b5da2beb934", "score": "0.49791056", "text": "@Override\n\tpublic void pintar() {\n\t\t\n\t}", "title": "" }, { "docid": "19006c0661c5e3b653400b5da2beb934", "score": "0.49791056", "text": "@Override\n\tpublic void pintar() {\n\t\t\n\t}", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.49787533", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "eda73c79e75a46b862b2fbe3c0b0ca3f", "score": "0.49755725", "text": "public final void mo90853y() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.49718696", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.4963352", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.49630755", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "f13363e9a1929d31760bbc053283bd62", "score": "0.49608073", "text": "private Helpers(){}", "title": "" }, { "docid": "887a3373b3744a5dd2f130863c6c066e", "score": "0.49584925", "text": "private void nameComponents() {\n\t\t\n\t}", "title": "" }, { "docid": "303faae25c0a66f3f32eaf157ff6b886", "score": "0.4953817", "text": "private intercomunicador () {}", "title": "" }, { "docid": "babba7b870bbd8c0ebdb2ad18c5df624", "score": "0.49536347", "text": "@Override\n\t\t\tpublic void test() {\n\n\t\t\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.49434796", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.49434796", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.49434796", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.49434796", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.49434796", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.49434796", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.49434796", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "234002381dc53604cef252b133e2c2a9", "score": "0.49399248", "text": "public void mo75313ak() {\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.4923585", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.49235773", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.49186793", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.49186793", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.49186793", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.49186793", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.49186793", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.49186793", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.49186793", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.4915343", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.4915343", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.4915343", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.4915343", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8859db52e5969a78445199a09b6486b8", "score": "0.49063653", "text": "private void X_findID() {\n\t\t\n\t}", "title": "" }, { "docid": "7cee07475845ce8a9048ca181f8a21bb", "score": "0.4904593", "text": "@Test\n\tpublic void testinterpretAllbugs() {\n\n\t}", "title": "" }, { "docid": "d193558f6562b9d2ca7df7cde14fe1cd", "score": "0.48914364", "text": "public static void use(){\n\t}", "title": "" }, { "docid": "d04504187907e1d84ed24fc616f45486", "score": "0.48849025", "text": "@Override\r\n\tpublic void inteface() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ad858dfc56484961f94263691e2e25f1", "score": "0.4884196", "text": "private void syso() {\n\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.48835856", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.48835856", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.48835856", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "95be4fdee6d995b424f0a4e840e2c875", "score": "0.48592257", "text": "@Override\r\n\tpublic void init()\r\n\t{\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.4858093", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "677e1bcc5ce2d0f98ae32478866994ca", "score": "0.48526224", "text": "@Override\n\tpublic void communiquer() {\n\t\t\n\t}", "title": "" }, { "docid": "ed27496e27bdcda6ae5f1f7b76be2188", "score": "0.48485082", "text": "@Override\n\tpublic void disparar() {\n\t\t\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.48477972", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.48455536", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.48455536", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "b086aa458043018db12ea6c8dbfcc7c2", "score": "0.4843426", "text": "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "title": "" }, { "docid": "b086aa458043018db12ea6c8dbfcc7c2", "score": "0.4843426", "text": "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "title": "" }, { "docid": "b8a933b513450a6a7874821e414066eb", "score": "0.4840482", "text": "private void init() {\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.4832253", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "675bf403552256329cc19bfb06a1a6a0", "score": "0.4831879", "text": "private static void letturaAll() {\n\n\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.48264918", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "097c4c29479efe0ca3f81a7fc01804e6", "score": "0.48218915", "text": "public abstract void mo17711c();", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.4819032", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.4819032", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.4819032", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a71f185dfaf7230b8e77ee6f6a04d21b", "score": "0.48125982", "text": "@Override\n\tvoid rr() {\n\t\t\n\t}", "title": "" }, { "docid": "5deab5d04a7e7c19ce2d7c3a2400118d", "score": "0.4808256", "text": "private static void comer() {\n\t\r\n}", "title": "" }, { "docid": "9d591aa4a723f1166afcfd275b3eaee8", "score": "0.4804615", "text": "private static int lerIdade() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "a7ada994943f62a4589674e89199475b", "score": "0.48003322", "text": "@Override\n public void init() {}", "title": "" }, { "docid": "bca19b15266618f339c5dc871aa1e030", "score": "0.47982064", "text": "public void mo1343e() {\n }", "title": "" }, { "docid": "221104e1846bc3e7baa8a12738b6cfc4", "score": "0.4797598", "text": "private void initRes() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dce7644449e683649b92f6792de9ca71", "score": "0.47930336", "text": "@Override\r\n\tprotected void initialize() {\r\n }", "title": "" } ]
03a14f76234392d6b838c771b6ab308c
Find the total number of divisors of m, return true if it's greater than the total number of divisors of all composites smaller than m, false otherwise
[ { "docid": "4000c05b1625b6141b21252766c28f59", "score": "0.7038684", "text": "public static boolean isSuperCompo(int m){\n\t\tint NoD = findNumOfDivisor(m);\n\t\t//System.out.println(m);\n\t\tif ( NoD > maxNumDivisor){\n\t\t\tmaxNumDivisor = NoD;\n\t\t\tSystem.out.println(factorMap.get(m));\n\t\t\t//System.out.println(NoD);\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" } ]
[ { "docid": "4d6e5159349f7b611878c0e67c0c80ff", "score": "0.7076227", "text": "public static int findNumOfDivisor(int m){\n\t\tHashMap<Integer,Integer> h = new HashMap<Integer,Integer>();\n\t\th = primefactor(m,h);\n\t\tfactorMap.put(m, h);\n\t\tint numOfDivisor = 1;\n\t\tfor(Integer d: h.values()){\n\t\t\tnumOfDivisor = numOfDivisor*(d+1);\n\t\t}\n\t\treturn numOfDivisor;\n\t}", "title": "" }, { "docid": "a5659662bce715d5f02bd230da4db77e", "score": "0.6836578", "text": "boolean hasDivisor();", "title": "" }, { "docid": "a5659662bce715d5f02bd230da4db77e", "score": "0.6836578", "text": "boolean hasDivisor();", "title": "" }, { "docid": "a5659662bce715d5f02bd230da4db77e", "score": "0.6836578", "text": "boolean hasDivisor();", "title": "" }, { "docid": "a855d0937c6aca8cc12a6daf3091b815", "score": "0.6270489", "text": "private static boolean enough(int x, int m, int n, int k) {\n \tint count = 0;\n \t\n \tfor (int i = 1; i <= m; i++) {\n \t\t\n \t\t// 对于第i行, 1*i, 2*i, ..., k*i, ... n*i\n \t\t// 若要 k*i <= x --> k <= x / i 也就是在i行,比k小的数的个数是x / i个, 如果n小于x / i, 则有n个\n \t\tcount += Math.min(n, x / i);\n \t}\n \t\n \treturn count >= k;\n }", "title": "" }, { "docid": "5427fbbbbaa4884359a29bd88f83784f", "score": "0.6103406", "text": "public static int countDivisors(int number) {\n if (number <= 0)\n return 0;\n \n int result = 0;\n for (int i = 1; i <= number; i++) {\n if (0 == (number % i))\n result++;\n }\n return result;\n }", "title": "" }, { "docid": "5732bd1b8dde9cf3dd5ac48d4683a820", "score": "0.6096122", "text": "public static boolean largestPrime(int m){\n int i=m;\n if (m == 2) { // makes the code more efficient by getting rid of even numbers\n return true;\n }\n if (m % 2 == 0) {\n return false;\n }\n for(int j=3;j<=Math.sqrt(i);j += 2){ //only have to check up to square root because after that all factors have already been checked once\n if(i%j == 0){\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "e38d756e655b67d901cb67f876c89b61", "score": "0.6025628", "text": "public static boolean numeroCompuesto(int n){\n\t\tint contador=0,acumulador=0;\n\t\tfor(contador=n;contador>0;contador--)\n\t\t\tif(n%contador==0)\n\t\t\t\tacumulador++;\n\t\treturn (acumulador>2)?true:false;\n\t}", "title": "" }, { "docid": "95bb5fbf75d81f7e285c9b4d104e6085", "score": "0.59905285", "text": "boolean hasNoOfChunks();", "title": "" }, { "docid": "48fe141679536fa5547bcc7e1ce6a554", "score": "0.59846795", "text": "public boolean isPossibleDivide(int[] nums, int k)\n {\n if(nums==null || nums.length<k)\n return false;\n Map<Integer,Integer> map=new HashMap<>();\n for(int i:nums)\n map.put(i,map.getOrDefault(i,0)+1);\n\n for(int i:nums)\n {\n if(map.get(i)==0)\n continue;\n int start=i;\n while(map.containsKey(start-1) && map.get(start-1)>0)\n start--;\n for(;start<=i;start++)\n {\n int t=map.get(start);\n if(t>0)\n {\n for(int vic=start;vic<k+start;vic++)\n {\n if(!map.containsKey(vic) || t>map.get(vic))\n return false;\n map.put(vic,map.get(vic)-t);\n }\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "731c3495b64d018ca31be995c2e4c39c", "score": "0.59715104", "text": "public static boolean numeroSemiperfecto(int num){\n\t\tdouble variable=2.0;\n\t\tboolean resultado=false;\n\t\twhile((num/variable>1&&num>=SumaDivisoresNumPerfecto((int)Math.round(num/variable)))&& resultado==false){\n\t\t\tif (num==SumaDivisoresNumPerfecto((int)Math.round(num/variable)))\n\t\t\t\tresultado=true;\n\t\t\telse resultado=false;\n\t\t\tvariable+=2;\n\t\t}\n\t\treturn resultado;\n\t}", "title": "" }, { "docid": "20cbe36ed5e283ae5ed462f8ad465b24", "score": "0.5936457", "text": "private int countSmallerOrEqual(int m, int n, int num) {\n int count = 0;\n for (int i = 1; i <= m; i++) {\n count += Math.min(n, num / i); // 5 / 1那么第一列应该有5个数小于等于5 但是行数可能不够5行所以取min\n }\n return count;\n }", "title": "" }, { "docid": "b93175bf3b93c7d6a14312cf42b3dcb0", "score": "0.5862094", "text": "private int numOperations(int[] nums, int m) {\n int operations = 0;\n for (final int num : nums)\n operations += (num - 1) / m;\n return operations;\n }", "title": "" }, { "docid": "9b8c92170bb7b96aca056482f9ea44f8", "score": "0.5740848", "text": "static boolean isPerfect(int num){\n int sum = 0;\n int original = num;\n\n int i = 1;\n while(i<num){\n if (original%i == 0){\n sum += i;\n }\n i++;\n }\n return sum == original;\n }", "title": "" }, { "docid": "2637093183b0e8623469bca1302b102d", "score": "0.5704937", "text": "public boolean isPossibleDivide2(int[] nums, int k) {\n if(nums.length % k != 0) { return false; }\n Map<Integer, Integer> map = new HashMap<>();\n for(int n: nums) { map.put(n, map.getOrDefault(n, 0) + 1); }\n\n PriorityQueue<Integer> pq = new PriorityQueue<>(map.keySet());\n while(!pq.isEmpty()){\n int cur = pq.poll();\n if(map.get(cur) == 0) { continue; }\n int times = map.get(cur);\n for(int i = 0; i < k; i++){\n if(!map.containsKey(cur + i) || map.get(cur + i) < times) { return false; }\n map.put(cur + i, map.get(cur + i) - times);\n }\n }\n return true;\n }", "title": "" }, { "docid": "67d9dc9f78715c3161d1498c28636508", "score": "0.56881255", "text": "static int commDiv(int a,int b)\n {\n // find gcd of a,b\n int n = gcd(a, b);\n\n // Count divisors of n.\n int result = 0;\n for (int i=1; i<=Math.sqrt(n); i++)\n {\n // if 'i' is factor of n\n if (n%i==0)\n {\n // check if divisors are equal\n if (n/i == i)\n result += 1;\n else\n result += 2;\n }\n }\n return result;\n }", "title": "" }, { "docid": "fec8d002d39a7b702d9e5e45873a5311", "score": "0.56811017", "text": "public boolean isPossibleDivide1(int[] nums, int k) {\n if (nums.length % k != 0) { return false; }\n\n Map<Integer, Integer> map = new HashMap<>();\n for (int num : nums) { map.put(num, map.getOrDefault(num, 0) + 1); }\n\n Arrays.sort(nums);\n int key;\n for (int i = 0; i < nums.length-k; i++) {\n if (map.get(nums[i]) > 0) {\n for (int j = 0; j < k; j++) {\n key = nums[i]+j;\n if (!map.containsKey(key) || map.get(key) == 0) { return false; }\n else { map.put(key, map.get(key)-1); }\n }\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "efce084b5629ffacbef9ced16873db2f", "score": "0.564061", "text": "public static int numberOfDivisors(long n) {\n int nDivisors;\n int primeFactor;\n int nPrimeFactor; // how many prime factor p n contains\n\n nDivisors = 1;\n primeFactor = 2;\n nPrimeFactor = 0;\n while (n % primeFactor == 0) {\n n /= primeFactor;\n nPrimeFactor++;\n }\n nDivisors *= nPrimeFactor + 1;\n\n primeFactor = 3;\n while (n > 1 && primeFactor <= Math.sqrt(n)) {\n nPrimeFactor = 0;\n while (n % primeFactor == 0) {\n n /= primeFactor;\n nPrimeFactor++;\n }\n nDivisors *= nPrimeFactor + 1;\n primeFactor += 2;\n }\n if (n != 1) nDivisors *= 2;\n return nDivisors;\n }", "title": "" }, { "docid": "6b638976f4c5c383bbccad9199147a30", "score": "0.56157315", "text": "private static void problem12(){\r\n int natural=0; //current natural number. \r\n int tri = 0; //triangle number. \r\n int noofdivisors=0;\r\n boolean run=true;\r\n while(run){\r\n tri += natural; //to generate the current triange number. \r\n // System.out.print(tri);\r\n /* calculating how many divisors*/\r\n for (int i=1; i<Math.sqrt(tri); i++){\r\n if(tri % i==0){\r\n noofdivisors+=2;\r\n }\r\n }\r\n // System.out.println(\"No of divisors =\"+noofdivisors);\r\n //check and break out of loop. \r\n if(noofdivisors>500 ){\r\n System.out.println(\"Problem 12 Triangle number \"+tri+\"has over 500 divisors\");\r\n System.out.println(\"It has \"+noofdivisors);\r\n run=false;\r\n }\r\n natural++; //iterate \r\n noofdivisors=0;//clear for next iteration\r\n }\r\n \r\n }", "title": "" }, { "docid": "4b3e9b48d009f9b4cba606db6f051c9a", "score": "0.56069714", "text": "private static long count(int[] array, int m) {\n\t\tTrieTree tree = buildTree(array);\n\t\tlong result = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tresult += compare(tree,m,array[i],31);\n\t\t}\n\t\t\n\t\treturn result/2;\n\t}", "title": "" }, { "docid": "ac42984309a0735c978a8b59e7872ef5", "score": "0.5568381", "text": "private static int count(int res, int pre,int m, int d) {\n\t\tif(res==0 && d<=m){\n\t\t\treturn 1;\n\t\t}\n\t\tif(d>m) return 0;\n\t\tint cnt=0;\n\t\t//计算第d个盘子最多可能的个数\n\t\tint start=res<pre?res:pre;\n\t\tfor(int i=start;i>0;i--){\n\t\t\tcnt+=count(res-i,i,m,d+1);\n\t\t}\n\t\treturn cnt;\n\t\t\n\t}", "title": "" }, { "docid": "3160572e6481e22b750d2dea6c9144ac", "score": "0.5493425", "text": "public boolean cubre(Muestra m) {\r\n boolean cubierto = true;\r\n double[] ejemplo = m.getMuest();\r\n for (int i = 0; i < this.size() && cubierto; i++) { // recorremos los selectores del complejo\r\n Selector s = this.getSelector(i);\r\n switch (s.getOperador()) {\r\n case 0: // se trata del igual\r\n double [] valor = s.getValores();\r\n cubierto = false;\r\n for (int j = 0; (j < valor.length)&&(!cubierto); j++){\r\n cubierto = (ejemplo[s.getAtributo()] == valor[j]); //en cuanto uno sea true me vale (or)\r\n }\r\n\t\t//AÑADIMOS LA SIGUIENTE CONDICION PARA CUANDO EL VALOR EXACTO NO SE ENCUENTRA\r\n\t\t//EN LA LISTA PERO AL ESTAR ENTRE LOS EXTREMOS TAMBIEN PERTENECE AL INTERVALO\r\n\t\tif(!cubierto){\r\n\t\t\tif((ejemplo[s.getAtributo()]>=valor[0]) && (ejemplo[s.getAtributo()]<=valor[valor.length-1]))cubierto=true;\r\n\t\t}\r\n /*if (!(ejemplo[s.getAtributo()] == s.getValor())) {\r\n cubierto = false;\r\n }*/\r\n break;\r\n case 1: // se trata del distinto\r\n cubierto = ejemplo[s.getAtributo()] != s.getValor();\r\n break;\r\n case 2: //menor o igual\r\n cubierto = ejemplo[s.getAtributo()] <= s.getValor();\r\n break;\r\n case 3: //mayor\r\n cubierto = ejemplo[s.getAtributo()] > s.getValor();\r\n break;\r\n }\r\n }\r\n return cubierto;\r\n }", "title": "" }, { "docid": "d9b856299af9f41c3f2b8dd9cbe4b562", "score": "0.54686534", "text": "public int numberOfFactors() {\n\n int count = 0;\n int sqrtNum = (int) Math.sqrt(number);\n\n for (int i = 1; i <= sqrtNum; i++) {\n if (number % i == 0) {\n count += 2;\n }\n }\n\n if (number % sqrtNum == 0) {\n count++;\n }\n\n return count;\n }", "title": "" }, { "docid": "0cf689b2bcdf7b2fcfc553415f1a223d", "score": "0.5468311", "text": "boolean hasCeiling();", "title": "" }, { "docid": "7c6ff0a28704c08100953c90a4a03995", "score": "0.54570675", "text": "public int numComps() {\n int numComps = 0;\n int unvisited = 0;\n DFS dfs;\n\n boolean[] visited = new boolean[this.getNumVertices()];\n\n while ((unvisited = this.remainingVertex(visited)) != -1) {\n numComps++;\n dfs = new DFS(this, unvisited);\n visited = this.mergeVisited(visited, dfs.getVisited());\n }\n\n return numComps;\n }", "title": "" }, { "docid": "4f5f79979eaf5755c580e8471506dfc6", "score": "0.54544526", "text": "public static boolean hasGroupsSizeX(int[] deck) {\n int[] count = new int[10000];\n for (int c: deck)\n count[c]++;\n \n int g = -1;\n for (int i = 0; i < 10000; ++i)\n if (count[i] > 0) {\n if (g == -1)\n g = count[i];\n else\n g = gcd(g, count[i]);\n }\n \n return g >= 2;\n }", "title": "" }, { "docid": "c3e454eb1e8da2383bb8de67fdc2b02b", "score": "0.5432656", "text": "public int findCircleNum_bfs(int[][] M) {\n int[] visited = new int[M.length];\n int count = 0;\n Deque<Integer> queue = new ArrayDeque<>();\n for (int i = 0; i < M.length; i++) {\n if (visited[i] == 0) {\n queue.offerLast(i);\n count++;\n while (!queue.isEmpty()) {\n int index = queue.pollFirst();\n visited[index] = -1;\n for (int j = 0; j < M.length; j++) {\n if (M[index][j] == 1 && visited[j] ==0 && index != j) {\n queue.offerLast(j);\n }\n }\n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "46c47d250151d081eafa06ac81c5c0c1", "score": "0.54143625", "text": "public int findCircleNum(int[][] M) {\r\n\t\tQuickUnionUF uf = new QuickUnionUF(M.length);\r\n\t\tfor (int i = 0; i < M.length; i++) {\r\n\t\t\tfor (int j = 0; j < M[i].length; j++) {\r\n\t\t\t\tif (i==j) continue;\r\n\t\t\t\tif (M[i][j]==1)\r\n\t\t\t\t\tuf.union(i, j);\r\n\t\t\t}\r\n\t\t}\r\n\t\tTreeSet<Integer> s = new TreeSet<Integer>();\r\n\t\tfor (int i = 0; i < M.length; i++) {\r\n\t\t\ts.add(uf.roots[i]);\r\n\t\t}\r\n\r\n\t\treturn s.size();\r\n\t}", "title": "" }, { "docid": "9d836ac6e6445d00c01f09b5bf560c3f", "score": "0.5409027", "text": "public static boolean haveNiceHashCodeSpread(List<Oomage> oomages, int M) {\n\n Map<Integer, ArrayList> oomageMap = new HashMap<>();\n int N = oomages.size();\n\n for (int i = 0; i < M; i++) {\n oomageMap.put(i, new ArrayList<Oomage>());\n }\n\n for (Oomage each : oomages) {\n int bucketNum = (each.hashCode() & 0x7FFFFFFF) % M;\n oomageMap.get(bucketNum).add(each);\n }\n\n for (int i = 0; i < M; i++) {\n List<Oomage> each = oomageMap.get(i);\n if (each.size() < (N/50) || each.size() > (N/2.5)) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "50c2144fd07505ce16b2d0c51f558bc8", "score": "0.5392184", "text": "boolean hasMaxHops();", "title": "" }, { "docid": "3ca42176d0ed9a6b2c0b09e560db795b", "score": "0.53914195", "text": "public static boolean solve(long n, List<Long> s) {\n // the the total number of divisions happen to n will be <even> * <whatever> + 1(this division)\n // the number is assured to be odd, then return true, \"the number can have odd count of divisions\"\n if (memorize.get(n) != null) {\n return memorize.get(n);\n }\n for (long l : s) {\n // if the division can have odd division\n boolean temp = solve(n / l, s);\n memorize.put(n / l, temp);\n if (n % l == 0 && !temp) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "31a0f729beac9a7a6cd2c709c2b9051b", "score": "0.5385429", "text": "boolean hasTotalMile();", "title": "" }, { "docid": "a55901c1451b0d885a4a61a9e5e5ca06", "score": "0.538524", "text": "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int numberOfTestCases = in.nextInt();\n LinkedHashMap<Integer, Long> amicableNumbersMap = new LinkedHashMap<Integer, Long>();\n for(int j=0;j<=100000;j++)\n {\n long sumOfDivisors = getSumOfProperDivisors(j);\n if(sumOfDivisors>j) amicableNumbersMap.put(j, sumOfDivisors);\n }\n \n for(int i=0;i<numberOfTestCases;i++)\n {\n long n = in.nextLong();\n boolean pairFound = false;\n ArrayList<Integer> list = new ArrayList<Integer>();\n for(int j=0;j<=n;j++)\n {\n if(amicableNumbersMap.containsKey(j))\n list.add(j);\n }\n \n for(int k=0;k<list.size();k++)\n {\n for(int l=k;l<list.size();l++)\n {\n if(list.get(k) + list.get(l) == n)\n {\n pairFound = true;\n break;\n }\n }\n if(pairFound) break;\n }\n if(pairFound) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }", "title": "" }, { "docid": "d7be397e6c905cdad096cef754593917", "score": "0.5376291", "text": "public boolean hasDivisor() {\n return ((bitField0_ & 0x00100000) == 0x00100000);\n }", "title": "" }, { "docid": "b2c0525e1eba973d629cbf0fce1a7293", "score": "0.536388", "text": "public static int winningHands(int m, int x, int[] a) {\n\n int count = 0;\n for (int i = 0; i < a.length; i++) {\n List<Integer> hands = new ArrayList<Integer>();\n \n for (int j = i; j < a.length; j++) {\n hands.add(a[j] % m);\n int product = 1;\n for (int hand = 0; hand < hands.size(); hand++) {\n product *= hands.get(hand);\n product %= m;\n }\n if (product == x) {count+=1;}\n }\n }\n return count;\n }", "title": "" }, { "docid": "593e4455d6beeb01596809eb317c8a43", "score": "0.5360838", "text": "public boolean hasDivisor() {\n return ((bitField0_ & 0x00100000) == 0x00100000);\n }", "title": "" }, { "docid": "41881dffbeb617fa4162f540f696ffb9", "score": "0.5303305", "text": "boolean hasCompetitiveRank();", "title": "" }, { "docid": "957baa145a4fac01de00233588bb0dff", "score": "0.53030837", "text": "public static boolean hasGroupsSizeX(int[] deck) {\n if (deck.length <2) return false;\n Map<Integer, Integer> occurrence = new HashMap<Integer, Integer>();\n for (int aDeck : deck) {\n if (occurrence.containsKey(aDeck)) {\n occurrence.put(aDeck, occurrence.get(aDeck) + 1);\n } else {\n occurrence.put(aDeck, 1);\n }\n }\n if(occurrence.values().size()==1) return true;\n\n int[] vals = (occurrence.values().stream().mapToInt(i->i).toArray());\n int gcd = gcd(vals[0], vals[1]);\n for (int i = 2; i < vals.length ; i++){\n gcd = gcd(gcd, vals[i]);\n }\n\n if(gcd!=1){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "59c50bc47da2658e893bed3a04a73358", "score": "0.5273789", "text": "private static int getPrimeNumbersCount(int num){\r\n\tint count = 0;\r\n\tfor(int i=2;i<=num;i++){\r\n\t\t// Iterate through all numbers less than or equal to num\r\n\t\tboolean isPrime=true;\r\n\t\tfor(int j=2;j<i;j++){\r\n\t\t\tif(i%j==0){\r\n\t\t\t\tisPrime=false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(isPrime)\r\n\t\t\tcount++;\r\n\t}\r\n\treturn count;\r\n}", "title": "" }, { "docid": "29efc5c5b57d63a1126383fb0aab54bc", "score": "0.5268265", "text": "public static boolean isDivisibleBy(int num, int deno) {\r\n\t\tif(deno==0) {\r\n\t\t\tthrow new IllegalArgumentException(\"Impossible to divide by \\\"0\\\".\");\r\n\t\t}\r\n\t\tif(deno==0) {\r\n\t\t\treturn false;\r\n\t\t}else {\r\n\t\treturn (num/deno) - (num % deno) == (num/deno);\r\n\t}\r\n}", "title": "" }, { "docid": "56855e9645ee21404d1380b1b353a569", "score": "0.5240153", "text": "private static long gcd(long n, long m) \r\n { \r\n long r = n % m;\r\n\r\n while (r > 0)\r\n {\r\n n = m;\r\n m = r;\r\n r = n % m;\r\n }\r\n return m;\r\n }", "title": "" }, { "docid": "08563da9566f3f2d8518cee8ed2c5347", "score": "0.52372074", "text": "public boolean hasDivisor() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "02163c2a4f2e0c34f7a2df06077fab51", "score": "0.5235089", "text": "public boolean hasDivisor() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "be2641bf6d2be42c53fb74a7b35244ce", "score": "0.5226556", "text": "public int numSets() {\n \n int theSetIs = 0;\n \n for (int m = 0; m < theLength - 2; m++) {\n for (int n = m + 1; n < theLength - 1; n++) {\n for (int p = n + 1; p < theLength; p++) {\n \n Card cardA = getCard(m);\n Card cardB = getCard(n);\n Card cardC = getCard(p);\n if (cardA.isSet(cardB, cardC)) {\n theSetIs += 1;\n }\n \n }\n }\n } \n return theSetIs; \n }", "title": "" }, { "docid": "04bc5b9c72f481e9447f4b86aae1de3a", "score": "0.5214565", "text": "int main()\n{\n int r,c,num;\n std::cin>>r>>c>>num;\n if (num<=r*c && (num<=c || (num%c==0 || num%c==1)))\n std::cout<<\"Yes\";\n else\n std::cout<<\"No\";\n}", "title": "" }, { "docid": "14ec065e1108de3a6af7c93605b2ca27", "score": "0.5205561", "text": "private static boolean isPerfect(int n) {\n\t\tint sum = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++){\n\t\t\t\n\t\t\tif(n%i == 0){//if i is a factor of n\n\t\t\t\tsum = sum + i;\n\t\t\t\t//or sum += i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (sum == n){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8509dc859bb570b3263344fe6ce12719", "score": "0.51698256", "text": "public static void isPerfect(int num) {\n\n\t\tint soma = 0;\n\t\t\n\t\tfor (int i = 1; i <= num/2; i++) {\n\n\t\t\tif (num % i == 0) {\n\t\t\t\tsoma += i;\n\n\t\t\t}\n\n\t\t}\n\n\t\tif (num == soma) {\n\t\t\tSystem.out.print(num + \" \");\n\t\t\tSystem.out.println(\"\\nÉ um número perfeito\");\n\n\t\t\tSystem.out.print(\"1\");\n\t\t\tfor (int i = 2; i < num; i++) {\n\n\t\t\t\tif (num % i == 0) {\n\t\t\t\t\tSystem.out.print(\" + \" + i);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.printf(\" = %d%n%n\", num);\n\t\t}\n\n\t}", "title": "" }, { "docid": "1c8aff72667019d2d2e23a339e667884", "score": "0.51684374", "text": "boolean hasMaxPairs();", "title": "" }, { "docid": "353764c9c3df689fe46e6d8c68e5630d", "score": "0.5164696", "text": "static\nint\ncount(\nint\nn) \n\n{ \n\n// 4 is the smallest composite number \n\nif\n(n < \n4\n) \n\nreturn\n-\n1\n; \n\n\n// stores the remainder when n is divided \n\n// by 4 \n\nint\nrem = n % \n4\n; \n\n\n// if remainder is 0, then it is perfectly \n\n// divisible by 4. \n\nif\n(rem == \n0\n) \n\nreturn\nn / \n4\n; \n\n\n// if the remainder is 1 \n\nif\n(rem == \n1\n) { \n\n\n// If the number is less then 9, that \n\n// is 5, then it cannot be expressed as \n\n// 4 is the only composite number less \n\n// than 5 \n\nif\n(n < \n9\n) \n\nreturn\n-\n1\n; \n\n\n// If the number is greater then 8, and \n\n// has a remainder of 1, then express n \n\n// as n-9 a and it is perfectly divisible \n\n// by 4 and for 9, count 1. \n\nreturn\n(n - \n9\n) / \n4\n+ \n1\n; \n\n} \n\n\n\n// When remainder is 2, just subtract 6 from n, \n\n// so that n is perfectly divisible by 4 and \n\n// count 1 for 6 which is subtracted. \n\nif\n(rem == \n2\n) \n\nreturn\n(n - \n6\n) / \n4\n+ \n1\n; \n\n\n\n// if the number is 7, 11 which cannot be \n\n// expressed as sum of any composite numbers \n\nif\n(rem == \n3\n) \n\n{ \n\nif\n(n < \n15\n) \n\nreturn\n-\n1\n; \n\n\n// when the remainder is 3, then subtract \n\n// 15 from it and n becomes perfectly \n\n// divisible by 4 and we add 2 for 9 and 6, \n\n// which is getting subtracted to make n \n\n// perfectly divisible by 4. \n\nreturn\n(n - \n15\n) / \n4\n+ \n2\n; \n\n} \n\nreturn\n0\n; \n\n}", "title": "" }, { "docid": "42b1d2e8c3e1600d212fc4bfe326cc63", "score": "0.5161144", "text": "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint min = Integer.MAX_VALUE;\n\t\tboolean bool = true;\n\t\tfor(int j = 20; j< Integer.MAX_VALUE; j++){\n\t\t\tbool = divisible(j);\n\t\t\tif(bool && j < min){\n\t\t\t\tmin = j;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min);\n\t}", "title": "" }, { "docid": "f6109b074486c08ed375a9751b121d34", "score": "0.5156455", "text": "public static boolean hasGroupsSizeX2(int[] deck) {\n int[] count = new int[10000];\n for (int card: deck) {\n count[card]++;\n }\n\n int gcd = -1;\n for ( int i = 0; i < 10000 ; i++) {\n if(count[i] > 0){\n if (gcd == -1){\n gcd = count[i];\n }\n gcd = gcd(gcd, count[i]);\n }\n }\n\n return gcd >= 2;\n }", "title": "" }, { "docid": "e44669a555ccdd3d43e04273150dc4c8", "score": "0.5137026", "text": "boolean isFactor(int n) {\n return (v % n) == 0;\n }", "title": "" }, { "docid": "c47ad5cdc19a66330b1a25853402a98c", "score": "0.5122111", "text": "float getDivisor();", "title": "" }, { "docid": "c47ad5cdc19a66330b1a25853402a98c", "score": "0.5122111", "text": "float getDivisor();", "title": "" }, { "docid": "c47ad5cdc19a66330b1a25853402a98c", "score": "0.5122111", "text": "float getDivisor();", "title": "" }, { "docid": "db5171fcacfa81a0e0862ca52a58f48d", "score": "0.511772", "text": "static boolean usingIntegerDivision(int n) {\r\n if((n / 2) * 2 == n) {\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "71e68c1baeffcabe3b3b50b1cd379af4", "score": "0.51089406", "text": "public boolean percolates() {\n return treePercolates.connected(0, n * n + 1);\n }", "title": "" }, { "docid": "5f1f69e746dae4cd637500c9fafdb748", "score": "0.51087725", "text": "public boolean hasDivisor() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "title": "" }, { "docid": "6a4e303396db539d3607866a534a4332", "score": "0.51038605", "text": "public boolean hasDivisor() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "title": "" }, { "docid": "6f1c52f32d91e3b9559228b760a9f74a", "score": "0.50973487", "text": "public int inversions() {\n int inversions = 0;\n for (int i = 0; i < 15; i++) {\n int a = grid[i];\n if (a != 0) {\n for (int j = i + 1; j < 16; j++) {\n int b = grid[j];\n if (b != 0 && a > b) {\n inversions++;\n }\n }\n }\n }\n return inversions;\n }", "title": "" }, { "docid": "0b995bc06eab6292eadd50a295a015cd", "score": "0.5083712", "text": "public static boolean isPerfect(int n) {\n int offSet;\n int value;\n int sum = 1;\n\n if (n < 2) {\n return false;\n }\n\n int i = 2;\n while (i * i <= n) {\n offSet = n / i;\n if (n % i == 0) {\n value = sum + i;\n sum = ((i * i) != n) ? (value + offSet) : value;\n }\n i++;\n }\n\n return sum == n;\n }", "title": "" }, { "docid": "8a1967847b2e51354e695893f3ef4518", "score": "0.50635815", "text": "public int findCircleNum_dfs(int[][] M) {\n if (M == null || M.length == 0 || M[0].length == 0 || M.length != M [0].length ) {\n return 0;\n }\n //int[] visited: keep tracking every visited person, if this person is already visited\n // we will keep recursive\n int[] visited = new int[M.length];\n int count = 0;\n for (int i = 0; i < M.length; i++) {\n if(visited[i] == 0) {\n //unvisited\n dfs(M,visited,i);\n count++;\n }\n }\n return count;\n }", "title": "" }, { "docid": "19dda91af8c242f925a77c74f6d0a2ab", "score": "0.50579804", "text": "public boolean percolates() {\n int bottom = (gridRoot * gridRoot) + 1;\n return ufStruct.connected(0, bottom);\n }", "title": "" }, { "docid": "903214b3c8badfe187b16bcb35856824", "score": "0.5057456", "text": "boolean hasComplainedCount();", "title": "" }, { "docid": "9306201462e8fa978af51cc50e675d58", "score": "0.50478756", "text": "public int countPrimes(int n) {\n \n \n if (n < 3) {\n return 0;\n }\n boolean[] notPrime = new boolean[n];\n int count = n / 2;\n int limit = (int)Math.ceil(Math.sqrt(n));\n // Loop only through odd numbers\n for(int i = 3; i < limit; i += 2){\n if (!notPrime[i]) {\n // Look for all the number with 2 as factor in it\n for (int j = i * i; j < n; j += 2 * i){\n if(!notPrime[j]){\n notPrime[j] = true;\n count--;\n }\n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "02d4be43c1194385bbd92a01ef8aa4bf", "score": "0.50452167", "text": "public static boolean isMajority(int []arr) {\n\t\t\n\t\tint num = MaxRepititions.maxRepititionsNum(arr);\n\t\tint count = 0;\n\t\tfor (int i = 0 ; i < arr.length - 1 ; i ++){\n\t\t\tif(arr[i] == num)\n\t\t\t\tcount ++;\n\t\t}\n\t\t\n\t\tif(count >= arr.length / 2)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "1a34385c8c4cf00ec3f23495c1d5e82f", "score": "0.5020821", "text": "public boolean more(Fraction obj){\n \n // finding the greatest common divider of the denominators of the two fractions\n int common = this.den > obj.den ? gcd(this.den, obj.den) : gcd(obj.den, this.den);\n\tint mult_this = obj.den / common; // finding the multiple for the first fraction\n\tint mult_obj = this.den / common; // finding the multiple for the second fraction\n\n if (this.num*mult_this>obj.num*mult_obj)return true;\n return false;\n }", "title": "" }, { "docid": "a4c670777942076ad8063a517c0006b2", "score": "0.5020588", "text": "public boolean percolates() {\n return uf.connected(0, (n * n + 1));\n }", "title": "" }, { "docid": "28744063a90c054e8f538f70a101cf9e", "score": "0.50121886", "text": "public boolean percolates() {\r\n\t\treturn quickunion.connected(0, n*n+1);\r\n\t}", "title": "" }, { "docid": "bd935aafb155891e885bf21ea789e0b9", "score": "0.4996524", "text": "public static int nonDivisibleSubset(int k, List<Integer> s) {\n // Write your code here\n int[] rems = new int[k];\n HashMap<Integer, Boolean> occured = new HashMap<>();\n for (Integer i : s) {\n if (occured.get(i) != null)\n continue;\n // System.out.println(i);\n\n occured.put(i, true);\n rems[i % k]++;\n }\n int ans = 0;\n for (int i = 0; i <= (k) / 2; i++) {\n // System.out.println(rems[i]);\n if ((i == (k - i))) {\n ans += (rems[i] > 0 ? 1 : 0);\n break;\n } else if (i == 0) {\n ans += (rems[i] > 0 ? 1 : 0);\n } else {\n ans += Math.max(rems[i], rems[k - i]);\n }\n }\n return ans;\n }", "title": "" }, { "docid": "3de62405cd3546b92a29db85f6df51ad", "score": "0.4986332", "text": "private int gcd(int m, int n)\n\t{\n\t\tint r;\n\t\twhile(n!=0)\n\t\t{\n\t\t\tr = m%n;\n\t\t\tm = n;\n\t\t\tn = r;\n\t\t}\n\t\treturn m;\n\t}", "title": "" }, { "docid": "5385c78fd87c047f4805b48c72e71908", "score": "0.49821296", "text": "public static boolean isPrime(BigInteger n) {\n \n //divides by 2 is never prime.\n if (n.mod(BigInteger.TWO).equals(BigInteger.ZERO)) {\n System.out.println(\"Divides by 2\");\n return false;\n }\n \n final BigInteger maxTeast = n.sqrt();\n \n Optional<BigInteger> exactDivisor = Stream.iterate(BigInteger.valueOf(3), num -> num.add(BigInteger.TWO))\n // .unordered()\n .parallel()\n .takeWhile(num -> maxTeast.compareTo(num) == 1)\n //.peek(p->{if (p.mod(BigInteger.valueOf(1)).equals(BigInteger.ZERO)){ System.out.println(p+\" checking:\"+p.bitLength());}})\n .filter(p->n.mod(p).equals(BigInteger.ZERO)).findAny();\n if (exactDivisor.isPresent()) {\n System.out.println(\"Divisor: \"+exactDivisor.get());\n }\n return exactDivisor.isEmpty();\n\n }", "title": "" }, { "docid": "68c59c372263418f66a6583dc2afa855", "score": "0.4978644", "text": "public boolean percolates(){\n\t\tboolean flag = false;\n\t\tfor(int k=1;k<=N;k++){\n\t\t\tif(isFull(N, k)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}", "title": "" }, { "docid": "3bbd21066eccc0d8073ee3b3528aad68", "score": "0.4976696", "text": "public int numberOfRoots() {\n\t\t\n\t\tif (a == 0 && b == 0 && c == 0) // if the number of roots are infinite\n\t\t\treturn 3;\n\t\t\n\t\telse if ((a == 0 && b == 0) || b * b - 4 * a * c < 0) // If there are no roots\n\t\t\treturn 0;\n\t\t\n\t\telse if (a == 0 || (b * b - 4 * a * c == 0))\n\t\t\treturn 1;\n\t\t\n\t\treturn 2;\t\n\t}", "title": "" }, { "docid": "730c5df6f4978a9e836eb71ffdb4269c", "score": "0.4969608", "text": "private int nonDivisibleSubset(int notDivisibleBy, int[] values) {\n\t\tint[] remainderCountsByRemainder = new int[notDivisibleBy];\n\n\t\t// Count the number of each remainder value\n\t\tfor(int currentValue : values) {\n\t\t\tremainderCountsByRemainder[currentValue % notDivisibleBy]++;\n\t\t}\n\n\t\tint divisibleSubsetSize = 0;\n\n\t\t// Only one zero-remainder element can be used, as two add to a zero remainder\n\t\tif(remainderCountsByRemainder[0] > 0) {\n\t\t\tdivisibleSubsetSize++;\n\t\t}\n\n\t\tboolean isEven = (notDivisibleBy % 2 == 0);\n\t\t// Only one (not-divisible-by / 2) value may be used for the same reason\n\t\tif(isEven && remainderCountsByRemainder[notDivisibleBy / 2] > 0) {\n\t\t\tdivisibleSubsetSize++;\n\t\t}\n\n\t\t// Skip the compare for remainder (not-divisible-by / 2) in even numbers\n\t\tint midpoint;\n\t\tif(isEven) {\n\t\t\tmidpoint = Math.floorDiv(notDivisibleBy, 2) - 1;\n\t\t}\n\t\telse {\n\t\t\tmidpoint = Math.floorDiv(notDivisibleBy, 2);\n\t\t}\n\n\t\t// For pairs of remainders that sum to a zero-remainder, take the largest of the two\n\t\tfor(int i = 1; i <= midpoint; i++) {\n\t\t\tfinal int j = notDivisibleBy - i;\n\t\t\tif(remainderCountsByRemainder[i] >= remainderCountsByRemainder[j]) {\n\t\t\t\tdivisibleSubsetSize += remainderCountsByRemainder[i];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdivisibleSubsetSize += remainderCountsByRemainder[j];\n\t\t\t}\n\t\t}\n\n\t\treturn divisibleSubsetSize;\n\t}", "title": "" }, { "docid": "5ae0497e0aab9f73ad908fea2bf17d4d", "score": "0.49674872", "text": "public int numComponents();", "title": "" }, { "docid": "fbd1ceb3dfefc0c7244c4f8df797b122", "score": "0.49655035", "text": "public static int countPrimes(int n) {\n int count = 0;\n\n boolean[] isCompositeNumber = new boolean[n];\n // assume all is prime number, by default every element is false\n // T -> composite number, F -> prime number\n\n // optimization, check until sqrt(n)\n // since i * j < n, when i = j, i = sqrt(n), the other half is already marked\n for (int i = 2; i < Math.sqrt(n); ++i) {\n if (!isCompositeNumber[i]) {\n for (int j = 2; i * j < n; ++j) {\n isCompositeNumber[i * j] = true;\n }\n }\n }\n\n for (int i = 2; i < n; ++i) {\n if (!isCompositeNumber[i]) {\n count++;\n }\n }\n\n return count;\n }", "title": "" }, { "docid": "c2c5cd4f759813ec36ed3183b834818e", "score": "0.49641", "text": "public static boolean isEvenlyDivisible(int num, int bound) {\n\t\tfor (int i=1; i<=bound; i++) {\n\t\t\tif (!(num%i==0)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6290c04083596f57021dffd7418b8334", "score": "0.495435", "text": "public boolean CompareSum(){\n int center=size/2,firstHalf=0,secondHalf=0;\n Integer num =0;\n\n ////////////////////even size //////////////\n if(size %2 == 0){\n\n for (int i=0; i < size ; i++){\n if(i < center){\n firstHalf +=(Integer) theData[i];\n }else\n secondHalf += (Integer) theData[i];\n }//for i\n\n\n\n }/////////////////////the end of even size///////////////////\n else { ///////////////////////odd size /////////////////////\n firstHalf+= (Integer) theData[center] / 2;\n secondHalf+= (Integer) theData[center] / 2;\n for (int i=0; i < size ; i++){\n if(i < center){\n firstHalf +=(Integer) theData[i];\n // don't want to count the center\n }else if( i > center)\n secondHalf += (Integer) theData[i];\n }//for i\n }// else\n return firstHalf == secondHalf;\n }", "title": "" }, { "docid": "83c2c367c41e2ce0fc91f9a766fa38d5", "score": "0.49339917", "text": "public int gcd(int m, int n){\r\n //System.out.println(\"M: \" + m + \" N: \" + n);\r\n if(n == 0){\r\n return m;\r\n }\r\n else{\r\n return gcd(n,m % n);\r\n }\r\n }", "title": "" }, { "docid": "7655cf6e9b3e20ff4d573c227ff11c7e", "score": "0.4933783", "text": "public static void main(String[] args) {\n int num = 0;\n while (num <= 1000){\n int i = 2;\n int count = 0;\n while(i<=num/2){\n if(num%i == 0) {\n count++;\n break;\n }\n i++;\n }\n if(count == 0 && num!=0 && num!=1){\n System.out.print(num +\" \");\n }\n num++;\n }\n }", "title": "" }, { "docid": "bc4c19b767d10aec86df38c6792c8ca6", "score": "0.49326575", "text": "@SuppressWarnings(\"WeakerAccess\")\n static long gcd(long m, long n) {\n while(m != 0) {\n long m_old = m;\n m = n % m;\n n = m_old;\n }\n return abs(n);\n }", "title": "" }, { "docid": "743527476fa20ca410bd151333b29996", "score": "0.49227482", "text": "public static HashMap<Integer,Integer> primefactor(int m, HashMap<Integer,Integer> h){\n\t\t\t\tfor (int i=2; i<=m;i++){\n\t\t\t\t\tif (m%i==0){\n\t\t\t\t\t\tint next = m/i;\n\t\t\t\t\t\tif (factorMap.containsKey(next)) {\n\t\t\t\t\t\t\th = factorMap.get(next);\n\t\t\t\t\t\t\th.put(i, h.getOrDefault(i, 0)+1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\th.put(m, h.getOrDefault(m, 0)+1);\n\t\t\t\t\t}\n\t\t\t }\n\t\t\t\treturn h;\n\t}", "title": "" }, { "docid": "703a0d73f838bd9b3e0b1b3cdbbec724", "score": "0.49152574", "text": "public boolean percolates(){\n\t\tif (WQUF.connected(N * N , N * N + 1)) return true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "17c5a27c936cfdf5c8c172506f0dae31", "score": "0.4909541", "text": "int getNoOfChunks();", "title": "" }, { "docid": "0adad3820d2f7d0dc173be89f6e80b5d", "score": "0.49088892", "text": "public int countPrimes(int n) {\n \r\n if(n<=2)\r\n return 0;\r\n \r\n boolean [] myArray = new boolean[n];// change from int array to boolean array----->works, from 100ms to 50ms\r\n int count =0;\r\n \r\n for(int p=3;p*p<n;p=p+2){ // avoid using function sqrt()\r\n for(int m=p*p;m<n;m=m+2*p){ // start from q*q\r\n if(myArray[m]==false) // ---->not improve\r\n count++;\r\n myArray[m]=true;\r\n }\r\n \r\n } \r\n \r\n return n-1-count-(n-1)/2; \r\n \r\n \r\n }", "title": "" }, { "docid": "036b050aa7a814fff854824eecc5f4ad", "score": "0.49055296", "text": "public static int numPares(int n) {\n\t\tint cont = 1;\n\t\tint t;\n\t\tfor (int i = 0; i < prim.size() && prim.get(i) * prim.get(i) <= n; i++) {\n\t\t\tint primo = prim.get(i);\n\t\t\tt = 0;\n\t\t\twhile (n % primo == 0) {\n\t\t\t\tn /= primo;\n\t\t\t\tt++;\n\t\t\t}\n\t\t\tif (t > 0)\n\t\t\t\tcont *= (2 * t + 1);\n\t\t}\n\t\tif (n > 1)\n\t\t\tcont *= (2 * 1 + 1);\n\t\treturn cont % 2 == 0 ? cont / 2 : (cont + 1) / 2;\n\t}", "title": "" }, { "docid": "973e0b5066a7aa612af099821938a06b", "score": "0.49007228", "text": "boolean hasIntToFloatQuantityDivisor();", "title": "" }, { "docid": "2cdb5229010142cb9f563e5e490cacf9", "score": "0.4900602", "text": "boolean hasRatio();", "title": "" }, { "docid": "790222cbd774d5a00b0b760827aedb57", "score": "0.49004874", "text": "private static int tauCounter(long[] factors){\r\n int c = 1;\r\n long comparator = -1;\r\n int divisors = 1;\r\n for (long prime : factors){\r\n if (prime == comparator){\r\n c++;\r\n }else{\r\n //new prime number;\r\n divisors *= (c+1); \r\n c=1;\r\n comparator = prime;\r\n }\r\n \r\n } \r\n \r\n return divisors;\r\n }", "title": "" }, { "docid": "d10a28d29efa3ae336f02ddd81d80e06", "score": "0.48908773", "text": "public boolean Primo(int numero) {\r\n if (numero == 1) {\r\n return false;\r\n } else {\r\n for (int i = 2; i <= numero; i++) {\r\n if (numero % i == 0) {\r\n if (numero == i) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "cdd956eed9e444353343cf1c12a64537", "score": "0.48899624", "text": "public static void main(String[] args) {\n\n List<Integer> a = Arrays.asList(2,6);\n List<Integer> b = Arrays.asList(24,36);\n\n\n int ans = 0;\n\n for(int j=1;j<=100;j++)\n {\n System.out.println(j);\n boolean hh = true;\n for(int bb : b)\n {\n if(bb%j!=0)\n {\n System.out.println(bb);\n hh = false;\n break;\n }\n }\n System.out.println(hh);\n if(hh)\n {\n for(int bb : a)\n {\n System.out.println(bb);\n if(j%bb!=0)\n {\n System.out.println(j);\n hh = false;\n break;\n }\n }\n\n if(hh)\n ans++;\n\n } }\n System.out.println(ans);\n }", "title": "" }, { "docid": "753eceb94358b4fec534f00541513197", "score": "0.48896345", "text": "boolean hasSoloCompetitiveRank();", "title": "" }, { "docid": "64a3863c37b3de1e79292581b3e9e8d4", "score": "0.48864967", "text": "public boolean percolates() {\r\n\t\treturn wquf.connected(N*N, N*N+1);\r\n\t}", "title": "" }, { "docid": "69592461925acaa9ba5819bf04b92c82", "score": "0.48807278", "text": "public static boolean isPerfectNumber(int input) {\n\t\t\t\t\n\t\t// Declare boolean flag as false assuming all integers \n\t\t// are not perfect until tested.\n\t\tboolean flag = false;\n\t\t\n\t\t// Begin with numbers greater than 1 since a perfect number is\n\t\t// a sum of its divisors other than itself which excludes 1. \n\t\tif (input > 1) {\t\n\t\t\t\n\t\t\t// Declare integer sum equal to 1 since all numbers\n\t\t\t// will have one as a factor.\n\t\t\tint sum = 1;\t\n\t\t\t\n\t\t\t// For-loop thru possible factors and check to see if each\n\t\t\t// possible factor is a true factor. If it is then add that \n\t\t\t//factor and its corresponding factor to the sum.\n\t\t\tfor (int i=2; i < input/i; i++ ) {\n\t\t\t\tif (input % i == 0) {\n\t\t\t\t\tsum = sum + i + (input/i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Check to see if the sum of factors does equal the input.\n\t\t\tif (sum == input)\n\t\t\t\tflag = true;\n\t\t}\n\t\t\t\t\n\t\t// Return the result.\n\t\treturn flag;\n\t}", "title": "" }, { "docid": "14b54ebe8ce69b6ec5add67fb0216571", "score": "0.48743877", "text": "public int countCluster(){\n int cCount = 0; \n outer:\n for(int i=0; i<m; i++){ \n if(ht[i] != -1){ //find start of a cluster\n cCount++;\n //count until you find the next non nil\n for(int j=i+1; j< m; j++){\n if(ht[j] == -1) {\n i = j;\n continue outer;\n }\n }\n }\n }\n return cCount;\n }", "title": "" }, { "docid": "84b9c40d0ff9d271bbae397ba46410a3", "score": "0.48700395", "text": "private static boolean isSolutionPossible(int [] bws, int m , int budgetPerServer){\r\n\t\tint serversBWs [] = new int [m];\t\r\n\t\t\r\n\t\tfor (int i = 0; i < bws.length; i++){\t\t\t\r\n\t\t\tint flag = 1;\r\n\t\t\tfor (int j = 0; j < m; j++){\t\t\t\t\r\n\t\t\t\tif((budgetPerServer-serversBWs[j]) >= bws[i]){\t\t\t\t\t\r\n\t\t\t\t\tserversBWs[j] = serversBWs[j] + bws[i];\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tflag = flag+1;\t\t\t\t\t\r\n\t\t\t\t}\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(flag>m){\t\t\t\t\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "3ba536ef574f4b3680ec06e5e6f76136", "score": "0.4864585", "text": "public boolean canPartition(int[] nums) {\n int sum = 0;\n for (int num : nums) {\n sum += num;\n }\n\n if (sum % 2 != 0) return false;\n sum /= 2;\n\n boolean[] dp = new boolean[sum + 1];\n dp[0] = true;\n for (int num : nums) {\n for (int j = sum; j > 0; j--) {\n if (j >= num) {\n dp[j] = dp[j] || dp[j - num];\n }\n }\n }\n\n return dp[sum];\n }", "title": "" }, { "docid": "5ce3b28eac7db576c42ba2b850753562", "score": "0.48601907", "text": "public static void Cond_Exercise_29(int a){\n int count = 0;\n for(count = 0 ; a>0;a = a/10){\n\n count = count + 1;\n }\n l.info(count);\n\n }", "title": "" }, { "docid": "c27a750d1ae544db8552c559a46fdc4e", "score": "0.485918", "text": "public int findCircleNum(int[][] M) {\n \tint group = 0;\n \tboolean[] visited = new boolean[M.length];\n \tfor(int i=0;i<M.length;i++) { //ensure every node is visited\n \t\tif(!visited[i]) {\n \t\t\tfindCircleNum_dfs(M, visited, i); \n \t\t\tgroup++; //increase every time when we start at a new root\n \t\t}\n \t}\n\t\treturn group;\n }", "title": "" } ]
464db481c40636824e988895d9548a8b
wrap moveBlockTo but detect the destination based on the side hit
[ { "docid": "eb3ac5da989a4fc04c70e557c07d73cd", "score": "0.0", "text": "public static BlockPos pullBlock(World worldIn, EntityPlayer player, BlockPos pos, EnumFacing face) {\n BlockPos posTowardsPlayer = pos.offset(face);\n if (moveBlockTo(worldIn, player, pos, posTowardsPlayer)) {\n return posTowardsPlayer;\n }\n else {\n return null;\n }\n }", "title": "" } ]
[ { "docid": "15cac7dd38cbf82f4a2ce86f5858a287", "score": "0.61843944", "text": "static void moveToTarget(MapLocation myLoc){\n Direction initDir = rc.getLocation().directionTo(target); //Direction chosen\n boolean hasMoved = false;\n for (int i = 0; i < MOVEMENT_GRANULARITY; i++){\n if (i == 0){ //Try the trivial case\n Direction approachDir = myLoc.directionTo(target);\n MapLocation closestApproach = target.subtract(approachDir, 1 + rc.getType().bodyRadius);\n if (rc.canMove(closestApproach)){\n try {\n //System.out.println(\"Closest Approach !!!\");\n rc.move(closestApproach);\n } catch (GameActionException e) {\n e.printStackTrace();\n }\n break;\n }\n }\n Direction chosenDir; //Direction chosen by loop\n if (i % 2 == 0){\n chosenDir = new Direction((float)(initDir.radians + (i / 2) * 2 * Math.PI / MOVEMENT_GRANULARITY));\n }\n else{\n chosenDir = new Direction((float)(initDir.radians - ((i + 1) / 2) * 2 * Math.PI / MOVEMENT_GRANULARITY));\n }\n\n if (rc.canMove(chosenDir)){\n boolean isValid = true;\n if (isValid){\n try{\n rc.move(chosenDir);\n hasMoved = true;\n break;\n }\n catch (GameActionException e){\n e.printStackTrace();\n }\n }\n }\n else if (i == 0){ //Detect if target is out of bounds\n try {\n if (rc.canSenseAllOfCircle(myLoc.add(chosenDir), rc.getType().bodyRadius) && !rc.onTheMap(myLoc.add(chosenDir), rc.getType().bodyRadius)){\n //System.out.println(\"I think I'm out of bounds\");\n //System.out.println(myLoc);\n //Target is out of bounds\n target = null;\n //Update known bounds\n updateBorders(myLoc);\n }\n } catch (GameActionException e) {\n e.printStackTrace();\n }\n }\n }\n if (visitedArr.size() >= VISITED_ARR_SIZE){\n //Alt way of checking if stuck\n float expecteddist = rc.getType().strideRadius * VISITED_ARR_SIZE;\n float actualdist = visitedArr.get(0).distanceTo(myLoc);\n if (actualdist / expecteddist < STUCK_THRESHOLD && rc.getType() != RobotType.SOLDIER && rc.getType() != RobotType.TANK && rc.getType() != RobotType.SCOUT){ //Help I'm stuck [Gardener no longer moves]\n //Not sure if this helps to avoid getting stuck\n target = null; //Reset target\n }\n visitedArr.remove(0);\n }\n visitedArr.add(rc.getLocation());\n }", "title": "" }, { "docid": "9e23a25959052927736218547b4aaf81", "score": "0.6142406", "text": "private void driveTowards(JPoint2D targetPoint) {\n\t\t\n\t}", "title": "" }, { "docid": "dae17be989e25180db7a6e32586d9188", "score": "0.6096272", "text": "public boolean move(Cave to) {\n \n if(to.isBlocked()){ \n this.modifyCave(to);\n super.move(to);\n return true; \n }\n \n else if(to.isOccupied()) { \n return false;\n }\n \n else if (to.isTeleport()) { \n super.move(to);\n return true; \n }\n \n else { \n super.move(to);\n return true; \n }\n }", "title": "" }, { "docid": "ba5044f54012325788436f1f1e55443c", "score": "0.59798896", "text": "public void moveBlock (String direction, int x, int y)\n {\n\tboolean test = true; //Sets it to true so that it only turns false if it fails the test\n\ttempX = x;\n\ttempY = y;\n\n\t//Checks what direction the block is going to move\n\tif (direction.equals (\"Left\"))\n\t{\n\t //Check for out of bounds exception\n\t if (x - 2 > -1)\n\t {\n\t\t//Tests if the block in the expected position is an impassable block\n\t\tfor (int a = 0 ; a < listOfImpassableBlocks.length ; a++)\n\t\t if (g.currentRoom [x - 2] [y].equals (listOfImpassableBlocks [a]))\n\t\t\ttest = false;\n\t\t//Checks if the tile in the excpeted if the position is a border block\n\t\tif (x - 2 == 0)\n\t\t test = false;\n\t }\n\n\t //If all the tests pass, this runs\n\t if (test)\n\t {\n\t\t//The current position of the block is set to \"none\"\n\t\tg.currentRoom [x - 1] [y] = \"none\";\n\t\t//The expected posotion of the block is set to \"block\"\n\t\tg.currentRoom [x - 2] [y] = \"block\";\n\t\t//the animation is run\n\t\tnew Thread ()\n\t\t{\n\t\t public void run ()\n\t\t {\n\t\t\tmoveBlock (\"Left\", tempX - 1, tempY, true);\n\t\t }\n\t\t}\n\t\t.start ();\n\t }\n\t //The structure of the code for the next 3 is the same\n\t}\n\telse if (direction.equals (\"Right\"))\n\t{\n\t if (x + 2 < 29)\n\t {\n\t\tfor (int a = 0 ; a < listOfImpassableBlocks.length ; a++)\n\t\t if (g.currentRoom [x + 2] [y].equals (listOfImpassableBlocks [a]))\n\t\t\ttest = false;\n\t\tif (x + 2 == 28)\n\t\t test = false;\n\t }\n\n\t if (test)\n\t {\n\t\tg.currentRoom [x + 1] [y] = \"none\";\n\t\tg.currentRoom [x + 2] [y] = \"block\";\n\t\tnew Thread ()\n\t\t{\n\t\t public void run ()\n\t\t {\n\t\t\tmoveBlock (\"Right\", tempX + 1, tempY, true);\n\t\t }\n\t\t}\n\t\t.start ();\n\t }\n\t}\n\telse if (direction.equals (\"Up\"))\n\t{\n\t if (y - 2 > -1)\n\t {\n\t\tfor (int a = 0 ; a < listOfImpassableBlocks.length ; a++)\n\t\t if (g.currentRoom [x] [y - 2].equals (listOfImpassableBlocks [a]))\n\t\t\ttest = false;\n\t\tif (y - 2 == 0)\n\t\t test = false;\n\t }\n\n\t if (test)\n\t {\n\t\tg.currentRoom [x] [y - 1] = \"none\";\n\t\tg.currentRoom [x] [y - 2] = \"block\";\n\t\tnew Thread ()\n\t\t{\n\t\t public void run ()\n\t\t {\n\t\t\tmoveBlock (\"Up\", tempX, tempY - 1, true);\n\t\t }\n\t\t}\n\t\t.start ();\n\t }\n\t}\n\telse if (direction.equals (\"Down\"))\n\t{\n\t if (y + 2 < 17)\n\t {\n\t\tfor (int a = 0 ; a < listOfImpassableBlocks.length ; a++)\n\t\t if (g.currentRoom [x] [y + 2].equals (listOfImpassableBlocks [a]))\n\t\t\ttest = false;\n\t\tif (y + 2 == 16)\n\t\t test = false;\n\t }\n\n\t if (test)\n\t {\n\t\tg.currentRoom [x] [y + 1] = \"none\";\n\t\tg.currentRoom [x] [y + 2] = \"block\";\n\t\tnew Thread ()\n\t\t{\n\t\t public void run ()\n\t\t {\n\t\t\tmoveBlock (\"Down\", tempX, tempY + 1, true);\n\t\t }\n\t\t}\n\t\t.start ();\n\t }\n\t}\n }", "title": "" }, { "docid": "6f348f49c9ab69b708b728d62eb854c1", "score": "0.59711844", "text": "public void blockHit(Block block);", "title": "" }, { "docid": "809fb3e80c64c67e3afb651701beeb62", "score": "0.59613794", "text": "public void walkToSpot() {\n Consumer<Position> moveFunc = pos -> {\n WalkingEvent event = new WalkingEvent(pos);\n event.setMinDistanceThreshold(0);\n event.setOperateCamera(true);\n\n execute(event);\n };\n\n\n if (miningPos == null) {\n for (Position pos : SPOTS) {\n if (playerCount(pos) == 0) {\n moveFunc.accept(pos);\n miningPos = pos;\n return;\n }\n }\n worlds.hopToP2PWorld();\n } else {\n moveFunc.accept(miningPos);\n }\n }", "title": "" }, { "docid": "2604086cd45d90e5e04422b05d950ea2", "score": "0.5960383", "text": "public Point checkHitChangeLocation(Point p, Velocity v) {\n double blockLeftX = this.getUpperLeft().getX();\n double blockRightX = blockLeftX + this.getWidth();\n double blockUpY = this.getUpperLeft().getY();\n double blockDownY = blockUpY + this.getHeight();\n double changeX = 0;\n double changeY = 0;\n //if it hits the left border\n if (p.getX() == blockLeftX) {\n //if it comes from the left\n if (v.getDx() > 0) {\n //take it a small step to the left\n changeX = -0.0001;\n //if it comes from the right\n } else if (v.getDx() < 0) {\n //take it a small step to the right\n changeX = 0.0001;\n }\n }\n //if it hits the right border\n if (p.getX() == blockRightX) {\n //if comes from left\n if (v.getDx() > 0) {\n //take a small step left\n changeX = -0.0001;\n //if comes from right\n } else if (v.getDx() < 0) {\n //take a small step right\n changeX = 0.0001;\n }\n }\n //if hits the upper border\n if (p.getY() == blockUpY) {\n //if come from above\n if (v.getDy() > 0) {\n //take a small step up\n changeY = -0.0001;\n //if comes from below\n } else if (v.getDy() < 0) {\n //take a small step down\n changeY = 0.0001;\n }\n }\n //if hits the lower border\n if (p.getY() == blockDownY) {\n //if comes from above\n if (v.getDy() > 0) {\n //take a small step up\n changeY = -0.0001;\n //if comes from below\n } else if (v.getDy() < 0) {\n //take small step down\n changeY = 0.0001;\n }\n }\n //create the changes needed (representing point)\n Point change = new Point(changeX, changeY);\n return change;\n }", "title": "" }, { "docid": "68256ab4d1b582f1048d5759b545a396", "score": "0.5958544", "text": "private void dAndDMove(Point e) {\n \t\tif (moveBlock != null) {\n \t\t\tdouble paWidth = this.getWidth();\n \n \t\t\t// Calculate the movement in x and the position of y. Negative Value means to\n \t\t\t// the left and positive to the right.\n \t\t\tdouble mmt_X = e.getX() - moveBlock.getRelMouseLocation().getX() - moveBlock.getX();\n \t\t\tint pos_Y = (int) Math.floor(e.getY());\n \t\t\t\n \t\t\t/********************************/\n \t\t\t// Vertical Movement\n \t\t\tcalcMBY(pos_Y);\n \t\t\t\n \t\t\t/********************************/\n \t\t\t// Horizontal Movement\n \t\t\t// 3 possiblilites: leftmost block (leftBlock is null), middle block, and rightmostblock (rightBlock is null)\n \t\t\tif (!calcMBX(e, mmt_X))\n \t\t\t\treturn;\n \t\t\t\n \t\t\t/********************************/\n \t\t\t// not the first block\n \t\t\tif (leftBlock != null) {\n \t\t\t\tleftBlock.addWidth(mmt_X);\n \t\t\t\tleftBlock.printMbTb(index - 1, \"L\");\n \t\t\t\t// Checks if the width of right Block is lower or equal then 0\n \t\t\t\tif (leftBlock.getWidth() + mmt_X <= 0) {\n \t\t\t\t\tint newIndex = 0;\n \t\t\t\t\t\n \t\t\t\t\tif (rightBlock != null) {\n \t\t\t\t\t\trightBlock.setWidth(savedWidthRight);\n \t\t\t\t\t\trightBlock.printMbTb(index + 1, \"R\");\n \t\t\t\t\t}\n \t\t\t\t\tleftBlock.setWidth(savedWidthLeft);\n \t\t\t\t\tleftBlock.printMbTb(index - 1, \"L\");\n \t\t\t\t\t\n \t\t\t\t\tleftBlock.setLocation(moveBlock.getLocation().getX() + moveBlock.getWidth(), leftBlock.getY());\n \t\t\t\t\t\n \t\t\t\t\t// Swap the moving Block and its left neighbour\n \t\t\t\t\tnewIndex = movableBlocks.swap(index, index - 1);\n \t\t\t\t\trightBlock = movableBlocks.get(newIndex + 1);\n \t\t\t\t\tif (newIndex > 0)\n \t\t\t\t\t\tleftBlock = movableBlocks.get(newIndex - 1);\n \t\t\t\t\telse\n \t\t\t\t\t\tleftBlock = null;\n \t\t\t\t\t\n \t\t\t\t\tsavedWidthRight = (int) rightBlock.getWidth();\n \t\t\t\t\tif (newIndex + 2 < movableBlocks.size()) {\n \t\t\t\t\t\tmovableBlocks.get(newIndex + 2).setLocation(rightBlock.getX() + rightBlock.getWidth(),\n \t\t\t\t\t\t\t\tmovableBlocks.get(newIndex + 2).getY());\n \t\t\t\t\t}\n \t\t\t\t\tif (leftBlock != null) {\n \t\t\t\t\t\tsavedWidthLeft = (int) leftBlock.getWidth();\n \t\t\t\t\t} else\n \t\t\t\t\t\tsavedWidthLeft = -1;\n \t\t\t\t\tindex = newIndex;\n \t\t\t\t\t\n \t\t\t\t} else {\n \n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t/********************************/\n \t\t\t// Calculate width of right block and new position\n \t\t\t// not the last block\n \t\t\tif (rightBlock != null) {\n \t\t\t\t\n \t\t\t\tdouble x_P1 = rightBlock.getLocation().getX() + mmt_X;\n \t\t\t\tif (x_P1 <= 0) {\n \t\t\t\t\tx_P1 = 0;\n \t\t\t\t\tmmt_X = 0;\n \t\t\t\t} else if (x_P1 >= paWidth)\n \t\t\t\t\tx_P1 = paWidth - rightBlock.getWidth();\n \t\t\t\trightBlock.setLocation(x_P1, rightBlock.getY());\n \t\t\t\t\n \t\t\t\trightBlock.addWidth(-mmt_X);\n \t\t\t\trightBlock.printMbTb(index + 1, \"R\");\n \n \t\t\t\t// Checks if the width of right Block is lower or equal then 0\n \t\t\t\tif (rightBlock.getWidth() - mmt_X <= 0) {\n \t\t\t\t\tint newIndex = 0;\n \t\t\t\t\t\n \t\t\t\t\tif (leftBlock != null) {\n \t\t\t\t\t\tleftBlock.setWidth(savedWidthLeft);\n \t\t\t\t\t\tleftBlock.printMbTb(index - 1, \"L\");\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\trightBlock.setWidth(savedWidthRight);\n \t\t\t\t\trightBlock.printMbTb(index + 1, \"R\");\n \t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\trightBlock.setLocation(moveBlock.getLocation().getX() + moveBlock.getWidth(), rightBlock.getY());\n \t\t\t\t\t\n \t\t\t\t\t// Swap the moving Block and its right neighbour\n \t\t\t\t\tnewIndex = movableBlocks.swap(index, index + 1);\n \n \t\t\t\t\tleftBlock = movableBlocks.get(newIndex - 1);\n \t\t\t\t\tif (newIndex + 1 < movableBlocks.size())\n \t\t\t\t\t\trightBlock = movableBlocks.get(newIndex + 1);\n \t\t\t\t\telse\n \t\t\t\t\t\trightBlock = null;\n \t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\tsavedWidthLeft = (int) leftBlock.getWidth();\n \t\t\t\t\t\n \t\t\t\t\tleftBlock.setLocation(movableBlocks.get(newIndex).getX() - leftBlock.getWidth(), leftBlock.getY());\n \n \t\t\t\t\tif (newIndex + 1 < movableBlocks.size()) {\n \t\t\t\t\t\tsavedWidthRight = (int) rightBlock.getWidth();\n \t\t\t\t\t} else\n \t\t\t\t\t\tsavedWidthRight = -1;\n \t\t\t\t\tindex = newIndex;\n \t\t\t\t} else {\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t/********************************/\n \t\t\t// Checks wether the width of left and right Blocks are lower or equal then 0\n \t\t\t// if (index > 0 && leftBlock.width <= 0) {\n \t\t\t// if (leftBlock != null && leftBlock.width <= 0) {\n \t\t\t// int newIndex = 0;\n \t\t\t//\n \t\t\t// // if (index + 1 < movableBlocks.size()) {\n \t\t\t// if (rightBlock != null) {\n \t\t\t// rightBlock.setWidth(widthRight, scaleRatio);\n \t\t\t// rightBlock.printMbTb(index + 1, \"R\");\n \t\t\t// }\n \t\t\t// leftBlock.setWidth(widthLeft, scaleRatio);\n \t\t\t// leftBlock.printMbTb(index - 1, \"L\");\n \t\t\t//\n \t\t\t// leftBlock.setX(moveBlock.getLocation().getX() + moveBlock.width);\n \t\t\t//\n \t\t\t// // Swap the moving BLock and its left neighbour\n \t\t\t// movableBlocks.swap(index, index - 1);\n \t\t\t// newIndex = index - 1;\n \t\t\t// // }\n \t\t\t//\n \t\t\t// widthRight = movableBlocks.get(newIndex + 1).width;\n \t\t\t// if (newIndex + 2 < movableBlocks.size()) {\n \t\t\t// movableBlocks.get(newIndex + 2).setX(\n \t\t\t// movableBlocks.get(newIndex + 1).getX() + movableBlocks.get(newIndex + 1).width);\n \t\t\t// }\n \t\t\t// if (newIndex > 0) {\n \t\t\t// widthLeft = movableBlocks.get(newIndex - 1).width;\n \t\t\t// } else\n \t\t\t// widthLeft = -1;\n \t\t\t// index = newIndex;\n \t\t\t//\n \t\t\t/********************************/\n \t\t\t// } else if (rightBlock != null && rightBlock.width <= 0) {\n \t\t\t// else if (index + 1 < movableBlocks.size() && movableBlocks.get(index + 1).width <= 0) {\n \t\t\t// int newIndex = 0;\n \t\t\t//\n \t\t\t// if (index > 0) {\n \t\t\t// leftBlock.setWidth(widthLeft, scaleRatio);\n \t\t\t// leftBlock.printMbTb(index - 1, \"L\");\n \t\t\t// }\n \t\t\t//\n \t\t\t// // if (index + 1 < movableBlocks.size()) {\n \t\t\t// rightBlock.setWidth(widthRight, scaleRatio);\n \t\t\t// rightBlock.printMbTb(index + 1, \"R\");\n \t\t\t//\n \t\t\t//\n \t\t\t// rightBlock.setX(moveBlock.getLocation().getX() + moveBlock.width);\n \t\t\t//\n \t\t\t// // Swap the moving BLock and its right neighbour\n \t\t\t// movableBlocks.swap(index, index + 1);\n \t\t\t// newIndex = index + 1;\n \t\t\t// // }\n \t\t\t//\n \t\t\t// widthLeft = movableBlocks.get(newIndex - 1).width;\n \t\t\t//\n \t\t\t// movableBlocks.get(newIndex - 1).setX(\n \t\t\t// movableBlocks.get(newIndex).getX() - movableBlocks.get(newIndex - 1).width);\n \t\t\t//\n \t\t\t// if (newIndex + 1 < movableBlocks.size()) {\n \t\t\t// widthRight = movableBlocks.get(newIndex + 1).width;\n \t\t\t// } else\n \t\t\t// widthRight = -1;\n \t\t\t// index = newIndex;\n \t\t\t// }\n \t\t\t\n \t\t\tlogger.debug(\"Dragged finished: index now:\" + index);\n \t\t}\n \t}", "title": "" }, { "docid": "2ca8b548d69d828ed02ed73a617474c4", "score": "0.59554785", "text": "public static void move(MapLocation target) {\n int startHash = hash(curLoc);\n int goal = hash(target);\n if (!gc.isMoveReady(curUnit.id()) || startHash == goal) {\n return;\n }\n //a*\n int movingTo = doubleHash(curLoc, target);\n if (!Player.paths.containsKey(movingTo)) {\n HashSet<Integer> closedList = new HashSet<Integer>();\n HashMap<Integer, Integer> gScore = new HashMap<Integer, Integer>();\n HashMap<Integer, Integer> fScore = new HashMap<Integer, Integer>();\n HashMap<Integer, Integer> fromMap = new HashMap<Integer, Integer>();\n PriorityQueue<Integer> openList = new PriorityQueue<Integer>(11, new Comparator<Integer>() {\n public int compare(Integer nodeA, Integer nodeB) {\n return Integer.compare(fScore.get(nodeA), fScore.get(nodeB));\n }\n });\n\n\n\n gScore.put(startHash, 0);\n fScore.put(startHash, manDistance(curLoc, target));\n openList.offer(startHash);\n while (!openList.isEmpty()) {\n int current = openList.poll();\n /*\n int remainingPath = doubleHash(current, goal);\n if (Player.paths.containsKey(remainingPath)) {\n //TODO: optimization once the killed has been fixed\n //completes the path\n int tempCur = current;\n while (tempCur != goal) {\n int tempHash = doubleHash(tempCur, goal);\n int nextNode = Player.paths.get(tempHash);\n fromMap.put(nextNode, tempCur);\n tempCur = nextNode;\n }\n current = goal;\n }*/\n\n if (current == goal) {\n HashMap<Integer, Integer> path = new HashMap<Integer, Integer>();\n HashMap<Integer, Integer> path2 = new HashMap<Integer, Integer>();\n int next = goal;\n\n int prev = -1;\n ArrayList<Integer> before = new ArrayList<Integer>();\n before.add(next);\n while (fromMap.containsKey(next)) {\n //System.out.println(print(next));\n //path.put(next, prev);\n prev = next;\n next = fromMap.get(prev);\n before.add(next);\n //Player.paths.put(doubleHash(prev, next), path);\n //Player.paths.put(doubleHash(next, prev), path);\n //TODO put in between Player.paths... a b c d e needs bc, bd, cd\n path.put(next, prev);\n path2.put(prev, next);\n }\n int temp = before.size();\n for (int j = 0; j < temp; j++) {\n for (int a = 0; a < j; a++) {\n Player.paths.put(doubleHash(before.get(j), before.get(a)), path.get(before.get(j)));\n Player.paths.put(doubleHash(before.get(a), before.get(j)), path2.get(before.get(a)));\n }\n }\n\n break;\n }\n\n int tempY = current % 69;\n int tempX = (current - tempY) / 69;\n curLoc = new MapLocation(curPlanet, tempX, tempY);\n\n //System.out.println(\"Node im on \" + print(current));\n\n closedList.add(current);\n\n //iterate through neighbors\n for (int i = 0; i < directions.length; i++) {\n int neighbor = hash(curLoc.add(directions[i]));\n //if a path is already computed for this node to the goal then dont needa compute more\n\n if (checkPassable(curLoc.add(directions[i]))) {\n if (closedList.contains(neighbor)) {\n continue;\n }\n\n int tentG = gScore.get(current) + 1;\n\n boolean contains = openList.contains(neighbor);\n if (!contains || tentG < gScore.get(neighbor)) {\n gScore.put(neighbor, tentG);\n fScore.put(neighbor, tentG + manDistance(neighbor, hash(target.getX(), target.getY())));\n\n if (contains) {\n openList.remove(neighbor);\n }\n\n openList.offer(neighbor);\n //System.out.println(\"Add: \" + print(neighbor));\n fromMap.put(neighbor, current);\n }\n }\n }\n }\n }\n //System.out.println(hash(curUnit.location().mapLocation()));\n //System.out.println(Arrays.asList(Player.paths.get(movingTo)));\n //System.out.println(Player.paths.get(movingTo).containsKey(hash(curUnit.location().mapLocation())));\n\n if (!Player.paths.containsKey(movingTo)) {\n System.out.println(\"wot borked work move\");\n //System.out.println(\"Enemy Location: \" + Integer.toString(Player.enemyLocation.getX()) + \" \" + Integer.toString(Player.enemyLocation.getY()));\n //System.out.println(\"Cur location: \" + Integer.toString(curLoc.getX()) + \" \" + Integer.toString(curLoc.getY()));\n //System.out.println(\"Target Location: \" + Integer.toString(target.getX()) + \" \" + Integer.toString(target.getY()));\n //moveAttack(target);\n return;\n }\n\n int toMove = Player.paths.get(movingTo);\n\n int y = toMove % 69;\n int x = (toMove - y) / 69;\n\n MapLocation next = new MapLocation(gc.planet(), x, y);\n Direction temp = curUnit.location().mapLocation().directionTo(next);\n if (gc.canMove(curUnit.id(), temp)) {\n gc.moveRobot(curUnit.id(), temp);\n } else {\n //blocked by something\n MapLocation tryToGoTo = curUnit.location().mapLocation().add(temp);\n if (gc.hasUnitAtLocation(tryToGoTo)) {\n Unit blockedBy = gc.senseUnitAtLocation(tryToGoTo);\n if (blockedBy.unitType() == UnitType.Factory || blockedBy.unitType() == UnitType.Rocket || blockedBy.unitType() == UnitType.Worker) {\n //if im not blocked by an attacking unit, then move aside\n moveAttack(target);\n } else {\n \tif (Player.timesReachedTarget >= 3) {\n \t\tgc.disintegrateUnit(blockedBy.id());\n \t\tmove(target);\n \t}\n }\n }\n }\n }", "title": "" }, { "docid": "38a2b1fa05cc88d6ab7eb951991c5693", "score": "0.5948838", "text": "public static void MoveToVisibleBlock(ServerPlayerEntity player) {\n\n if(!oldBarrierPos.containsKey(player.getUuid()))\n oldBarrierPos.put(player.getUuid(), BlockPos.ORIGIN);\n\n if(!oldCameraDirection.containsKey(player.getUuid()))\n oldCameraDirection.put(player.getUuid(), IsoCameraDirection.NONE);\n\n //System.out.println(\"Checking BlockPos\");\n BlockPos currentBlockPos = player.getBlockPos();\n BlockPos feetBlock = currentBlockPos.down();\n\n VillageIsland playerIsland = VillageIslandManager.INSTANCE.chunkToIsland(player.world.getChunk(player.getBlockPos()).getPos());\n if(playerIsland == null)\n return;\n IsoCameraDirection direction = ((IServerPlayerEntityExtension)player).getCameraDirection();\n BoundingBox islandBB = playerIsland.getVillageBounds();\n\n Pair<BlockPos, BlockPos> zSnapBounds = getZSnapBoundsForDirection(feetBlock, islandBB, direction);\n if(zSnapBounds == null)\n return;\n\n boolean didSpecialSnap = false;\n\n // Do vertical z snapping\n Direction verticalZSnapDirection;\n if ((verticalZSnapDirection = shouldVerticalZSnap(player, islandBB, direction)) != null) {\n didSpecialSnap = true;\n System.out.println(\"Vertical ZSnapping\");\n Pair<BlockPos, BlockPos> snapBounds = getZSnapBoundsForDirection(player.getBlockPos(), islandBB, direction);\n if(verticalZSnapDirection == Direction.DOWN){\n BlockPos snapTarget = checkBlockCollision(player, snapBounds.getLeft().down(), snapBounds.getRight().down());\n if(snapTarget != null){\n switch(direction){\n case NORTH:\n teleportSmooth(player, snapTarget.south().up(), direction); break;\n case SOUTH:\n teleportSmooth(player, snapTarget.north().up(), direction); break;\n case EAST:\n teleportSmooth(player, snapTarget.west().up(), direction); break;\n case WEST:\n teleportSmooth(player, snapTarget.east().up(), direction); break;\n }\n }\n }else{\n Pair<BlockPos, BlockPos> searchBounds = getZSnapBoundsForDirection(player.getBlockPos().up(2), islandBB, direction);\n BlockPos roof = checkBlockCollision(player, searchBounds.getLeft(), searchBounds.getRight());\n if(roof != null){\n switch(direction){\n case NORTH:\n teleportSmooth(player, roof.south().down(2), direction); break;\n case SOUTH:\n teleportSmooth(player, roof.north().down(2), direction); break;\n case EAST:\n teleportSmooth(player, roof.west().down(2), direction); break;\n case WEST:\n teleportSmooth(player, roof.east().down(2), direction); break;\n }\n }\n }\n }\n if(((IServerPlayerEntityExtension) player).getCameraDirection() != oldCameraDirection.get(player.getUuid())){\n player.world.setBlockState(oldBarrierPos.get(player.getUuid()), Blocks.AIR.getDefaultState());\n oldCameraDirection.put(player.getUuid(), ((IServerPlayerEntityExtension) player).getCameraDirection());\n }\n\n // Do edge z snapping (left/right)\n IsoCameraDirection edgeZSnapDirection;\n if((edgeZSnapDirection = shouldEdgeZSnap(player, islandBB, direction)) != null){\n didSpecialSnap = true;\n System.out.println(\"Edge ZSnapping\");\n doEdgeZSnap(player, islandBB, direction, edgeZSnapDirection);\n\n if(shouldPlaceBarrier(player, islandBB, direction)){\n System.out.println(\"Placing Barrier\");\n Pair<BlockPos, BlockPos> bounds = getZSnapBoundsForDirection(player.getBlockPos().down(), islandBB, direction);\n BlockPos footBlock = checkBlockCollision(player, bounds.getLeft(), bounds.getRight());\n // FootBlock will not be null\n player.world.setBlockState(oldBarrierPos.get(player.getUuid()), Blocks.AIR.getDefaultState());\n switch(direction){\n case NORTH:\n player.world.setBlockState(footBlock.south(), Blocks.BARRIER.getDefaultState());\n oldBarrierPos.put(player.getUuid(), footBlock.south());\n break;\n case SOUTH:\n player.world.setBlockState(footBlock.north(), Blocks.BARRIER.getDefaultState());\n oldBarrierPos.put(player.getUuid(), footBlock.north());\n break;\n case EAST:\n player.world.setBlockState(footBlock.west(), Blocks.BARRIER.getDefaultState());\n oldBarrierPos.put(player.getUuid(), footBlock.west());\n break;\n case WEST:\n player.world.setBlockState(footBlock.east(), Blocks.BARRIER.getDefaultState());\n oldBarrierPos.put(player.getUuid(), footBlock.east());\n break;\n }\n }\n\n\n }\n\n if(!didSpecialSnap){\n // Handle normal z snapping\n BlockPos teleportBase = checkBlockCollision(player, zSnapBounds.getLeft(), zSnapBounds.getRight());\n if (teleportBase != null && !teleportBase.equals(player.getBlockPos().down())) {\n System.out.println(\"Regular ZSnapping\");\n BlockPos teleportLegs = teleportBase.up();\n BlockPos teleportTorso = teleportLegs.up();\n if (player.world.getBlockState(teleportLegs).isAir() && player.world.getBlockState(teleportTorso).isAir()) {\n System.out.println(\"Moving to \" + currentBlockPos + \" : \" + feetBlock);\n teleportSmooth(player, teleportLegs, direction);\n }\n }\n }\n\n Pair<BlockPos, BlockPos> rightCollisionBounds = getZSnapBoundsForDirection(player.getBlockPos(), islandBB, direction);\n BlockPos collision = checkBlockCollision(player, rightCollisionBounds.getLeft(), rightCollisionBounds.getRight());\n if(collision != null && player.world.getBlockState(collision).getBlock() instanceof HypergateBlock){\n HypergateBlockEntity hypergateBlockEntity = (HypergateBlockEntity)player.world.getBlockEntity(collision);\n BlockPos target = hypergateBlockEntity.getTargetIsland().getSpawnpoint();\n ChunkPos targetChunk = hypergateBlockEntity.getTargetIsland().getBaseChunkPos();\n target = target.add(targetChunk.getStartX(), 0, targetChunk.getStartZ());\n System.out.println(player.chunkX + \":\" + player.chunkZ);\n if(player.isSneaking()){\n teleportSmooth(player, target, direction);\n }\n }\n }", "title": "" }, { "docid": "7caf1a3a3d5da09726ef9ff5bcc406c8", "score": "0.5920549", "text": "private void move()\n {\n if(prevDirection == null)\n {\n prevDirection = moveDirection;\n handleTexture();\n }\n\n // store the dx and dy of moveDirection for convenience\n double dx = moveDirection.getDX() * speed;\n double dy = moveDirection.getDY() * speed;\n\n // store the dx and dy of prevDirection for convenience\n double prevdx = prevDirection.getDX();\n double prevdy = prevDirection.getDY();\n\n /*\n onTile() checks are only necessary if moveDirection is a new direction not yet\n moved in. If moveDirection = prevDirection, onTile() is only needed to check for dead\n ends.\n */\n if(prevDirection != moveDirection)\n {\n // only try and move in the new direction if you're on a tile\n if (onTile())\n {\n // if the space in the new direction is open, move and then set prevDirection to the new direction\n if (!hasBlock(gameEntity.getPosition().add(BLOCK_SIZE * Math.signum(dx), BLOCK_SIZE * Math.signum(dy))))\n {\n gameEntity.getPositionComponent().translate(dx, dy);\n prevDirection = moveDirection;\n handleTexture();\n }\n else // if the space in the new direction is blocked, try and move in the previous direction\n {\n if(!hasBlock(gameEntity.getPosition().add(BLOCK_SIZE * Math.signum(prevdx), BLOCK_SIZE * Math.signum(prevdy))))\n gameEntity.getPositionComponent().translate(prevdx, prevdy);\n else // if you can't move in the previous direction, stop movement\n stopMovement();\n }\n }\n else // keep moving in the same direction until you reach a tile, so you can check the new direction again\n {\n gameEntity.getPositionComponent().translate(prevdx, prevdy);\n }\n }\n else // if moveDirection == prevDirection, you only need to check if blocks are in one direction\n {\n // if you've reached the end of a tile and there's a block in your way, stop all movement\n if(onTile() && hasBlock(gameEntity.getPosition().add(BLOCK_SIZE * Math.signum(dx), BLOCK_SIZE * Math.signum(dy))))\n stopMovement();\n else // if you can move, keep moving\n gameEntity.getPositionComponent().translate(dx, dy);\n }\n }", "title": "" }, { "docid": "72dff26a9f77d45b7f817bcb48e556b2", "score": "0.5856919", "text": "@Override\n\tpublic boolean move(int currX, int currY, int tarX, int tarY) {\n\t\t// TODO Auto-generated method stub\n\t\tArrayList<Integer[]> list = detector(currX, currY);\n\t\tInteger[] arr=new Integer[2];\n\t\tarr[0]=tarX;\n\t\tarr[1]=tarY;\n\t\tif(contains(list,arr)) {\n\t\t\tjump(currX, currY, tarX, tarY);\n\t\t\tChess.enpassant_flag=false;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4735fdd341ea57c3168c733098d149b7", "score": "0.5834188", "text": "public void move(){\r\n\t\tif(this.currentRoute.getRouteParts().get(1).equals(this.getLastRoad().getEndJunction() )) {\r\n\t\t\tthis.lastRoad.getStartJunction().checkout(this);\r\n\t\t\tcheckIn();\r\n\t\t}\r\n\t\tif(!this.currentRoutePart.equals(this.getLastRoad().getEndJunction())) {\r\n\t\t\t//System.out.println(\"-is still moving on \"+this.currentRoutePart+\", time to finish: \"+this.getTimeFromRouteStart());\r\n\t\t\tthis.currentRoute.stayOnCurrentPart(this);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.lastRoad.getStartJunction().checkout(this);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ba2052d1b9566612fe674609680620b7", "score": "0.5821935", "text": "private void moveAndReturn() {\n int movement = 0;\n double original = 0;\n if (direction == LEFT_RIGHT || direction == RIGHT_LEFT) {\n movement = x;\n original = startX;\n }\n else if (direction == UP_DOWN || direction == DOWN_UP) {\n movement = y;\n original = startY;\n }\n if ((int) Math.abs(movement - original) > distance) {\n if (!hold())\n \n }\n }", "title": "" }, { "docid": "ae6b0c3888a3d3b49617f44d804e366c", "score": "0.58208585", "text": "@Override\n public boolean moveBlock(Box pos) {\n if (super.firstTime && pos.getCounter() <= 1)\n return super.moveTwice(pos);\n else if (super.firstTime) {\n super.moveBlock(pos);\n if (pos.getCounter() == 4)\n completeTowers++;\n return true;\n } else if (super.samePosition(pos))\n return super.moveTwice(pos);\n return false;\n }", "title": "" }, { "docid": "9a0b118cc6230f97697f8f071c5510a6", "score": "0.5764606", "text": "@Override\n public void execute() {\n if(!ctx.movement.running()) {\n ctx.movement.running(ctx.movement.energyLevel() > Random.nextInt(40, 65));\n }\n if (!ctx.players.local().inMotion() || ctx.movement.destination().equals(Tile.NIL) || ctx.movement.destination().distanceTo(ctx.players.local()) < 5) {\n walker.walkPathReverse(PATH_VWEST_MINE);\n }\n }", "title": "" }, { "docid": "20d9d35073d7494d6054457a10b8150a", "score": "0.5747195", "text": "protected void makeMove() {\n\t\tint row;\n\t\tint col;\n\t\t\n\t\tfor (row = 0; row < 3; row++) {\n\t\t\tfor (col = 0; col < 3; col++) {\n\t\t\t\tif (testForBlocking(row, col)) {\n\t\t\t\t\tgetBoard().addMark(row, col, getMark());\n\t\t\t\t\tSystem.out.println(\"Bot \" + getName() + \" placed \" + getMark() + \" at row: \" + row + \", col: \" + col + \".\\n\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\t//no blocking move found, then just use random move from parent class\n\t\tsuper.makeMove();\n\n\t}", "title": "" }, { "docid": "5054923b707ccb8090c40d6b6c91d719", "score": "0.5732851", "text": "@Override\n public void processBlockWithinRadius(Spellcast cast, BlockPos blockPos, IBlockState currentState, float distance, @Nullable RayTraceResult mop)\n {\n\n World world = cast.world;\n\n IBlockState state = world.getBlockState(blockPos);\n\n if (state.getBlock() == Blocks.DRAGON_EGG)\n {\n EntityDragon dragon = new EntityDragon(world);\n\n BlockPos spawnAt = world.getTopSolidOrLiquidBlock(blockPos).up(5);\n\n dragon.setLocationAndAngles(spawnAt.getX(), spawnAt.getY(), spawnAt.getZ(), world.rand.nextFloat() * 360.0F, 0.0F);\n\n if (world.spawnEntityInWorld(dragon))\n {\n world.setBlockToAir(blockPos);\n }\n }\n }", "title": "" }, { "docid": "f01ef1a70895791a92c8dacb8074da07", "score": "0.57222825", "text": "public void genetateActionFromGivenRoute(){\n //System.out.println(\"your current direction: \" + mowerDirection);\n //System.out.println(\"you are going to this direction: \" + futureRoute.peek());\n Direction routeTopDir = futureRoute.peek();\n if (routeTopDir != null){ // it will never be null\n if (!routeTopDir.equals(mowerDirection)){\n trackMoveDistance = 0;\n //System.out.println(\"do not have to move but need to change to this direction: \" + routeTopDir);\n trackNewDirection = routeTopDir; // do not poll\n }else{\n futureRoute.poll();\n Direction routeNextDir = futureRoute.peek();\n if (routeNextDir != null && routeNextDir == routeTopDir){\n futureRoute.poll();\n trackMoveDistance = 2;\n Direction routeThirdDir = futureRoute.peek();\n if (routeThirdDir != null){\n trackNewDirection = routeThirdDir;\n }else{\n trackNewDirection = routeNextDir;\n }\n\n }else if (routeNextDir != null && routeNextDir.getCode() == routeTopDir.getCode()){\n trackMoveDistance = 1;\n trackNewDirection = routeNextDir;\n }else{\n trackMoveDistance = 1;\n trackNewDirection = routeTopDir;\n }\n }\n }\n trackAction = \"move\";\n }", "title": "" }, { "docid": "e603dc4c5f4bdddba34e17f0c901f36c", "score": "0.56879777", "text": "public void step(){\n if(path == null)return;\n\n if(currentStep == path.getLength()){\n path = null;\n currentStep = 0;\n owner.aiComplete();\n return;\n }\n\n Path.Step nextStep = path.getStep(currentStep);\n Point newPos = movementType.nextPosition(new Point(nextStep.getX()*movementType.tileSize,nextStep.getY()*movementType.tileSize),new Point(owner.getX(),owner.getY()));\n owner.setX((int)newPos.getX());\n owner.setY((int)newPos.getY());\n Rectangle current = new Rectangle(owner.getX(),owner.getY(),movementType.tileSize,movementType.tileSize);\n Rectangle small = new Rectangle(current.getCenterX(),current.getCenterY(),5,5);\n if(small.intersects(rtarget) || current.getX() == rtarget.getX() && current.getY() == rtarget.getY()){\n currentStep++;\n if(currentStep != path.getLength()){\n nextStep = path.getStep(currentStep);\n rtarget = new Rectangle(nextStep.getX()*movementType.tileSize,nextStep.getY()*movementType.tileSize,movementType.tileSize,movementType.tileSize);\n }\n\n }\n\n\n }", "title": "" }, { "docid": "ed8e3edb923b5022df45487eb9540ccc", "score": "0.568158", "text": "void snapped(int position);", "title": "" }, { "docid": "ec2168c1c098c13338741dc4895eaadd", "score": "0.5670821", "text": "synchronized public void forward(){\n walk(1);\n if(isOutside(px, py)){\n finish();\n }\n }", "title": "" }, { "docid": "8b718bcb9ac4c6d5abfc404ac8f3c631", "score": "0.56697595", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n newX = findNearestGridX(event.getX());\n newY = findNearestGridY(event.getY());\n\n playerDestinationX = convertGridToIntX(newX);\n playerDestinationY = convertGridToIntY(newY);\n\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN: {\n\n\n differenceIntX = playerDestinationX - playerPositionX;\n differenceIntY = playerDestinationY - playerPositionY;\n\n while (!(differenceIntX == 0 && differenceIntY == 0)) {\n // If further away in X value than Y from destination move in X dimension\n // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n if (abs(differenceIntX) >= abs(differenceIntY)) {\n // Move left condition\n // LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL\n if (playerDestinationX < playerPositionX) {\n if(currentMap.checkIfPortalSquare(nextLeft, playerPositionY) != null && !currentMap.checkIfPortalSquare(nextLeft, playerPositionY).isEmpty()){\n if(currentMap.checkIfPortalSquare(nextLeft, playerPositionY).equals(\"exit\")){\n openLevelSelectionScreen();\n }\n }\n if(currentMap.checkSquareBlocked((nextLeft), playerPositionY) == true) {\n stopMovement();\n }\n if(currentMap.checkSquareBlocked((nextLeft), playerPositionY) == false) {\n renderer.moveLeft();\n playerPositionX--;\n setNextPositions();\n updateJourneyDifference();\n }\n }\n // LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL\n // Move right condition\n // RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR\n if (playerDestinationX > playerPositionX) {\n // Check if next square is blocked\n if(currentMap.checkSquareBlocked((nextRight), playerPositionY) == true) {\n stopMovement();\n }\n if(currentMap.checkSquareBlocked((nextRight), playerPositionY) == false) {\n renderer.moveRight();\n playerPositionX++;\n setNextPositions();\n updateJourneyDifference();\n }\n }\n // RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR\n }\n // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n // Below is concerned with movement in Y\n // YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\n if (abs(differenceIntX) < abs(differenceIntY)) {\n // Move up condition\n // UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU\n if (playerDestinationY < playerPositionY) {\n if(currentMap.checkSquareBlocked(playerPositionX, nextUp) == true) {\n stopMovement();\n }\n if(currentMap.checkSquareBlocked(playerPositionX, nextUp) == false) {\n renderer.moveUp();\n playerPositionY--;\n setNextPositions();\n updateJourneyDifference();\n }\n }\n // UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU\n // Move down condition\n // DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n if (playerDestinationY > playerPositionY) {\n if(currentMap.checkSquareBlocked(playerPositionX, nextDown) == true) {\n stopMovement();\n }\n if(currentMap.checkSquareBlocked(playerPositionX, nextDown) == false) {\n renderer.moveDown();\n playerPositionY++;\n setNextPositions();\n updateJourneyDifference();\n }\n }\n // DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n }\n // YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\n }\n\n checkIfExitSquare();\n checkIfActionSquare();\n checkIfStairs();\n\n\n break;\n\n\n }\n case MotionEvent.ACTION_MOVE: {\n break;\n }\n case MotionEvent.ACTION_UP: {\n break;\n }\n\n }\n return false;\n }", "title": "" }, { "docid": "3220dcd9e6f563d0ce89340ba1e272de", "score": "0.5629691", "text": "@Override\n protected void onHitBlock(Vector3 block)\n {\n\n }", "title": "" }, { "docid": "42e0a8b1ad0cd7bd117e43e7e4f44182", "score": "0.56274253", "text": "@Test\n\tpublic void testIsNextToBlock() {\n\t\tif (!player.isNextToBlock(block)) {\n\t\t\tfail(\"Player should be next to block\");\n\t\t}\n\n\t\t//#2 Right side of block\n\t\tplayer.setDirection(Direction.LEFT);\n\t\tplayer.setX(512);\n\t\tif (!player.isNextToBlock(block)) {\n\t\t\tfail(\"Player should be next to block\");\n\t\t}\n\n\t\t//#3\n\t\tplayer.setY(0);\n\t\tif (player.isNextToBlock(block)) {\n\t\t\tfail(\"Player shouldn't be next to block\");\n\t\t}\n\t}", "title": "" }, { "docid": "5bd414761950de4a6524c04a7f05af4e", "score": "0.56122506", "text": "public void moveOneStep() {\n // compute the trajectory of the ball\n Point start = this.center;\n Point end = this.getVelocity().applyToPoint(start);\n Line trajectory = new Line(start, end);\n // there might be a hit with one block (or more)\n // if there is one, find the information of the closest collision\n CollisionInfo closestCollision = this.ge.getClosestCollision(trajectory);\n // check if there is one, if no- then move it to the end point\n if (closestCollision == null) {\n this.center = end;\n } else {\n Point collisionPoint = closestCollision.collisionPoint();\n // update the velocity\n Velocity newVelocity = closestCollision.getCollisionObject().hit(this, collisionPoint, this.velocity);\n this.velocity = newVelocity;\n // check if there is another collided block\n end = this.getVelocity().applyToPoint(start);\n trajectory = new Line(start, end);\n CollisionInfo anotherCollision = this.ge.getClosestCollision(trajectory);\n // there is no one\n if (anotherCollision == null) {\n this.center = this.velocity.applyToPoint(this.center);\n } else {\n // there is one\n collisionPoint = anotherCollision.collisionPoint();\n newVelocity = anotherCollision.getCollisionObject().hit(this, collisionPoint, this.velocity);\n this.velocity = newVelocity;\n this.center = this.velocity.applyToPoint(this.center);\n }\n }\n }", "title": "" }, { "docid": "bf925ceef2297ca374957aed6118ab13", "score": "0.56095076", "text": "public void performMovementLogic(){\n\t\t\n\t\t//clear things a bit\n\t\tunStableObstacle = null;\n\t\t\n\t\tif(newDestinationisGiven){\n\t\t\tnewDestinationisGiven = false;\n\t\t\t\n\t\t\tdistanceToDesination = (float)Math.sqrt((destinationX - centre.x) * (destinationX - centre.x) + (destinationY - centre.z) * (destinationY - centre.z));\n\t\t\tcalculateMovement();\n\t\t\tdestinationAngle = geometry.findAngle(centre.x, centre.z, destinationX, destinationY);\n\t\t\timmediateDestinationAngle = destinationAngle;\t\n\t\t}\n\t\t\n\t\tif(Math.abs(bodyAngle - immediateDestinationAngle) > 45 && Math.abs(bodyAngle - immediateDestinationAngle) < 315){\n\t\t\t\n\t\t\tint bodyAngleDelta = 360 - (geometry.findAngleDelta(bodyAngle, immediateDestinationAngle, bodyTurnRate) + 360)%360;\n\t\t\tbodyAngle= (bodyAngle - bodyAngleDelta + 360)%360;\n\t\t\tmovement.reset();\n\t\t\t\n\t\t}else{\n\t\t\tif(bodyAngle != immediateDestinationAngle){\n\t\t\t\tint bodyAngleDelta = 360 - (geometry.findAngleDelta(bodyAngle, immediateDestinationAngle, bodyTurnRate) + 360)%360;\n\t\t\t\tbodyAngle= (bodyAngle - bodyAngleDelta + 360)%360;\n\t\t\t}\n\t\t\t\n\t\t\tif(currentMovementStatus == hugRight || currentMovementStatus == hugLeft){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(checkIfDestinationReached() == true){\n\t\t\t\t\n\t\t\t\t\tmovement.reset();\n\t\t\t\t\tcurrentCommand = StandBy;\n\t\t\t\t\tsecondaryCommand = StandBy;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\thugWalls(); \n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(movement.x == 0 && movement.z == 0)\n\t\t\t\tcalculateMovement();\n\t\t\tif(distanceToDesination - speed <= 0){\n\t\t\t\tmovement.scale(speed - distanceToDesination);\n\t\t\t\t//validate movement\n\t\t\t\tcurrentMovementStatus = validateMovement();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(currentMovementStatus == freeToMove){\n\t\t\t\t\tresetLogicStatus();\n\t\t\t\t\tcurrentCommand = StandBy;\n\t\t\t\t\tsecondaryCommand = StandBy;\n\t\t\t\t}else{\n\n\t\t\t\t\tmovement.reset();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t//validate movement\n\t\t\t\tcurrentMovementStatus = validateMovement();\n\t\t\t\t\n\t\t\t\tif(currentMovementStatus == freeToMove){\n\t\t\t\t\tdistanceToDesination -= speed;\n\t\t\t\t}else{\n\t\t\t\t\tmovement.reset();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f1f5deb3fa4557c37cf905bdc4a9cdc0", "score": "0.55956745", "text": "@Override\n \tpublic void execute(Map p) {\n \t\tdestination = new Point(bubble.position.getX(), bubble.position.getY() + 50);\n \t\tsuper.execute(p);\n \n \t\tbubble.playSound();\n \t\t\n \t\twalker.forceStopMovement();\n \t\t//walker.animateTalking();\n \t\t\n \t\tbubble.getSprite().registerEntityModifier(new AlphaModifier(2f, 1f, 0f, new IEntityModifierListener() {\n \t\t\tpublic void onModifierStarted(IModifier<IEntity> arg0, IEntity sprite) {\t\n \t\t\t}\n \t\t\tpublic void onModifierFinished(IModifier<IEntity> arg0, IEntity sprite) {\n \t\t\t\tbubble.isFinished = true;\n \t\t\t}\n \t\t}));\n \t}", "title": "" }, { "docid": "ba8e3e379a75b03c160cef0c8035b634", "score": "0.5590302", "text": "public void jump() {\n Grid<Actor> gr = getGrid();\n if (gr == null) {\n return;\n }\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(getDirection());\n Location second = next.getAdjacentLocation(getDirection());\n if (gr.isValid(second)) {\n moveTo(second);\n } else {\n removeSelfFromGrid();\n }\n }", "title": "" }, { "docid": "584e0636732f7360353d1aa85fbbd63b", "score": "0.55668867", "text": "public void moveBlock (String direction, int x, int y, boolean tf)\n {\n\tx *= 30;\n\ty *= 30;\n\tfor (int a = 1 ; a < 31 ; a++)\n\t{\n\t if (direction.equals (\"Up\"))\n\t {\n\t\tc.drawRect (x, y - a + 1, 30, 30, new Color (153, 102, 51));\n\t\tc.drawBlock (x, y - a);\n\t }\n\t else if (direction.equals (\"Down\"))\n\t {\n\t\tc.drawRect (x, y + a - 1, 30, 30, new Color (153, 102, 51));\n\t\tc.drawBlock (x, y + a);\n\t }\n\t else if (direction.equals (\"Right\"))\n\t {\n\t\tc.drawRect (x + a - 1, y, 30, 30, new Color (153, 102, 51));\n\t\tc.drawBlock (x + a, y);\n\t }\n\t else if (direction.equals (\"Left\"))\n\t {\n\t\tc.drawRect (x - a + 1, y, 30, 30, new Color (153, 102, 51));\n\t\tc.drawBlock (x - a, y);\n\t }\n\t c.update ();\n\t try\n\t {\n\t\tThread.sleep (0);\n\t }\n\t catch (Exception e)\n\t {\n\t }\n\t}\n }", "title": "" }, { "docid": "7fcacf3a564a8a4d06699bfe31681965", "score": "0.556254", "text": "@Override\n protected void doTurn(Arena arena) {\n List<Ship> targets = this.getNearbyShips(arena);\n \n for (int index = 0; index < targets.size(); index += 1) {\n Ship other = targets.get(index);\n boolean isOnMyTeam = this.isSameTeamAs(other);\n if (isOnMyTeam == false) {\n if((other.getFirepower()>this.getHealth()&&other.getHealth()<this.getFirepower()))\n {\n Coord coord = this.getCoord();\n int x = coord.getX();\n int y = coord.getY();\n coord = other.getCoord();\n int x2 = coord.getX();\n int y2 = coord.getY();\n \n this.move(arena,Direction.EAST);\n }\n }\n }\n}", "title": "" }, { "docid": "727fdca50e93e8470277ff761936ab60", "score": "0.5555984", "text": "protected abstract boolean attemptMove(Slot primary, Slot secondary);", "title": "" }, { "docid": "e8347ab49d3f324356dc96416437a1df", "score": "0.55550075", "text": "private int getNextCoord(AgentEnvironment inEnvironment)\n\t{\n\t\t\n\t\tint x = currentPos.getX();\n\t\tint y = currentPos.getY();\n\t\t\n\t\t\n\t\t\t//System.out.println(\"x \" + x + \" goalX \" + goalX);\n\t\t\t//move right\n\t\t\tif(x < goalX)\n\t\t\t{\n\t\t\t\t//there is at least one path from here\n\t\t\t\tif(map[y][x+1]< 4 && map[y][x+1]>= 0){\n\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY(), currentPos.getX()+1);\n\t\t\t\t\treturn AgentAction.MOVE_EAST;}\n\t\t\t\t//move down\n\t\t\t\tif(y < goalY){\n\t\t\t\t\tif(map[y+1][x]< 4 && map[y+1][x]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY()+1, currentPos.getX());\n\t\t\t\t\t\treturn AgentAction.MOVE_SOUTH;\n\t\t\t\t\t}\n\t\t\t\t\t//make an unblocked move\n\t\t\t\t\tif(y != 0 && map[y-1][x]< 4 && map[y-1][x]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY()-1, currentPos.getX());\n\t\t\t\t\t\treturn AgentAction.MOVE_NORTH;\n\t\t\t\t\t}\n\t\t\t\t\tif(x != 0 && map[y][x-1]< 4 && map[y][x-1]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY(), currentPos.getX()-1);\n\t\t\t\t\t\treturn AgentAction.MOVE_WEST;\n\t\t\t\t\t}\n\t\t\t\t\t//THERE IS NO ADJACENT MOVE THAT IS UNBLOCKED, search for path out of blocked zone\n\t\t\t\t\treturn pathOut(inEnvironment,x,y);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(y != 0 && map[y-1][x]< 4 && map[y-1][x]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY()-1, currentPos.getX());\n\t\t\t\t\t\treturn AgentAction.MOVE_NORTH;\n\t\t\t\t\t}\n\t\t\t\t\t//make an unblocked move\n\t\t\t\t\tif(y!=29 && map[y+1][x]< 4 && map[y+1][x]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY()+1, currentPos.getX());\n\t\t\t\t\t\treturn AgentAction.MOVE_SOUTH;\n\t\t\t\t\t}\n\t\t\t\t\tif(x != 0 && map[y][x-1]< 4 && map[y][x-1]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY(), currentPos.getX()-1);\n\t\t\t\t\t\treturn AgentAction.MOVE_WEST;\n\t\t\t\t\t}\n\t\t\t\t\t//THERE IS NO ADJACENT MOVE THAT IS UNBLOCKED, search for path out of blocked zone\n\t\t\t\t\treturn pathOut(inEnvironment,x,y);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\t//move left\n\t\t\telse if(x > goalX)\n\t\t\t{\n\t\t\t\t//there is at least one path from here\n\t\t\t\tif(map[y][x-1]< 4 && map[y][x-1]>= 0){\n\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY(), currentPos.getX()-1);\n\t\t\t\t\treturn AgentAction.MOVE_WEST;}\n\t\t\t\t//move down\n\t\t\t\tif(y < goalY){\n\t\t\t\t\tif(map[y+1][x]< 4 && map[y+1][x]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY()+1, currentPos.getX());\n\t\t\t\t\t\treturn AgentAction.MOVE_SOUTH;\n\t\t\t\t\t}\n\t\t\t\t\t//make an unblocked move\n\t\t\t\t\tif(y != 0 && map[y-1][x]< 4 && map[y-1][x]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY()-1, currentPos.getX());\n\t\t\t\t\t\treturn AgentAction.MOVE_NORTH;\n\t\t\t\t\t}\n\t\t\t\t\tif(x != 29 && map[y][x+1]< 4 && map[y][x+1]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY(), currentPos.getX()+1);\n\t\t\t\t\t\treturn AgentAction.MOVE_EAST;\n\t\t\t\t\t}\n\t\t\t\t\t//THERE IS NO ADJACENT MOVE THAT IS UNBLOCKED, search for path out of blocked zone\n\t\t\t\t\treturn pathOut(inEnvironment,x,y);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(y != 0 && map[y-1][x]< 4 && map[y-1][x]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY()-1, currentPos.getX());\n\t\t\t\t\t\treturn AgentAction.MOVE_NORTH;\n\t\t\t\t\t}\n\t\t\t\t\t//make an unblocked move\n\t\t\t\t\tif(y!=29 && map[y+1][x]< 4 && map[y+1][x]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY()+1, currentPos.getX());\n\t\t\t\t\t\treturn AgentAction.MOVE_SOUTH;\n\t\t\t\t\t}\n\t\t\t\t\tif(x != 29 && map[y][x+1]< 4 && map[y][x+1]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY(), currentPos.getX()+1);\n\t\t\t\t\t\treturn AgentAction.MOVE_EAST;\n\t\t\t\t\t}\n\t\t\t\t\t//THERE IS NO ADJACENT MOVE THAT IS UNBLOCKED, search for path out of blocked zone\n\t\t\t\t\treturn pathOut(inEnvironment,x,y);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse // x == goalX\n\t\t\t{\n\t\t\t\t//move down\n\t\t\t\tif(y < goalY){\n\t\t\t\t\tif(map[y+1][x]< 4 && map[y+1][x]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY()+1, currentPos.getX());\n\t\t\t\t\t\treturn AgentAction.MOVE_SOUTH;\n\t\t\t\t\t}\n\t\t\t\t\tif(x != 0 && map[y][x-1]< 4 && map[y][x-1]>=0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY(), currentPos.getX()-1);\n\t\t\t\t\t\treturn AgentAction.MOVE_WEST;\n\t\t\t\t\t}\n\t\t\t\t\tif(x != 29 && map[y][x+1]< 4 && map[y][x+1]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY(), currentPos.getX()+1);\n\t\t\t\t\t\treturn AgentAction.MOVE_EAST;\n\t\t\t\t\t}\n\t\t\t\t\tif(y != 0 && map[y-1][x]< 4 && map[y-1][x]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY()-1, currentPos.getX());\n\t\t\t\t\t\treturn AgentAction.MOVE_NORTH;\n\t\t\t\t\t}\n\t\t\t\t\t//THERE IS NO ADJACENT MOVE THAT IS UNBLOCKED, search for path out of blocked zone\n\t\t\t\t\treturn pathOut(inEnvironment,x,y);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(y != 0 && map[y-1][x]< 4 && map[y-1][x]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY()-1, currentPos.getX());\n\t\t\t\t\t\treturn AgentAction.MOVE_NORTH;\n\t\t\t\t\t}\n\t\t\t\t\tif(x != 0 && map[y][x-1]< 4 && map[y][x-1]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY(), currentPos.getX()-1);\n\t\t\t\t\t\treturn AgentAction.MOVE_WEST;\n\t\t\t\t\t}\n\t\t\t\t\tif(x != 29 && map[y][x+1]< 4 && map[y][x+1]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY(), currentPos.getX()+1);\n\t\t\t\t\t\treturn AgentAction.MOVE_EAST;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\tif(y!=29 && map[y+1][x]< 4 && map[y+1][x]>= 0){\n\t\t\t\t\t\tcurrentPos.newCoordinates(currentPos.getY()+1, currentPos.getX());\n\t\t\t\t\t\treturn AgentAction.MOVE_SOUTH;\n\t\t\t\t\t}\n\t\t\t\t\t//THERE IS NO ADJACENT MOVE THAT IS UNBLOCKED, search for path out of blocked zone\n\t\t\t\t\treturn pathOut(inEnvironment,x,y);\n\t\t\t\t}\n\t\t\t}\n\t\t//no change to position\n\t\t//return AgentAction.DO_NOTHING;\n\t}", "title": "" }, { "docid": "3ac97bd007abae5256dcf572da58bd23", "score": "0.55546975", "text": "public boolean moveAndCheckDestination() {\n \t\n \tif (wait>0){\n \t\twait--;\n \t\treturn false;\n \t}\n \t\n \t//if (destination == goal.customer){\n \t//\tCalculatePath(new Position(customer.getPosition().x/personSize+1,customer.getPosition().y/personSize+1)); \n \t//}\n \t\n \tif (xPos < xDestination) {\n\t\t\txPos++;\n\t\t\tspriteCounter++;\n\t\t\tif (spriteCounter % spriteChangeSpeed == 0) {\n\t\t\t\tcurrentImage = ((PersonAgent)this.pSprites).rightSprites.get(changeSpriteCounter % ((PersonAgent)this.pSprites).rightSprites.size());\n\t\t\t\tchangeSpriteCounter++;\n\t\t\t}\n\t\t}\n\t\telse if (xPos > xDestination) {\n\t\t\txPos--;\n\t\t\tspriteCounter++;\n\t\t\tif (spriteCounter % spriteChangeSpeed == 0) {\n\t\t\t\tcurrentImage = ((PersonAgent)this.pSprites).leftSprites.get(changeSpriteCounter % ((PersonAgent)this.pSprites).leftSprites.size());\n\t\t\t\tchangeSpriteCounter++;\n\t\t\t}\t\t\t\n\t\t}\n\t\tif (yPos < yDestination) {\n\t\t\tyPos++;\n\t\t\tspriteCounter++;\n\t\t\tif (spriteCounter % spriteChangeSpeed == 0) {\n\t\t\t\tcurrentImage = ((PersonAgent)this.pSprites).downSprites.get(changeSpriteCounter % ((PersonAgent)this.pSprites).downSprites.size());\n\t\t\t\tchangeSpriteCounter++;\n\t\t\t}\n\t\t}\n\t\telse if (yPos > yDestination) {\n\t\t\tyPos--;\n\t\t\tspriteCounter++;\n\t\t\tif (spriteCounter % spriteChangeSpeed == 0) {\n\t\t\t\tcurrentImage = ((PersonAgent)this.pSprites).upSprites.get(changeSpriteCounter % ((PersonAgent)this.pSprites).upSprites.size());\n\t\t\t\tchangeSpriteCounter++;\n\t\t\t}\n\t\t}\n \n \n \n if (xfinal==xPos && yfinal ==yPos)\n { \n \txDestination = xfinal;\n \t\tyDestination = yfinal;\n \t\treturn true;\n }\n else if (xPos == xDestination && yPos == yDestination){\n \t//System.out.println(\"finished2\");\n \t/*if (previousPosition!=currentPosition && previousPosition!=null){\n \t\tpreviousPosition.release(aStar.getGrid());\n \t\tpreviousPosition = currentPosition;\n \t}*/\n\n \t//1 means we reached our destination\n \tif (path!=null && path.size()>1)\n \t\tMoveToNextPosition();\n \telse if (path!=null){\n \t\tpath=null;\n \t\t//AlertLog.getInstance().logDebug(AlertTag.RESTAURANT_LINDA, \"GUIPERSON\", \"Try to change destination\");\n \t\tif (xDestination!=xfinal || yDestination!=yfinal){\n \t\t\txDestination=xfinal;\n \t\t\tyDestination=yfinal;\n \t\t}\n \t}\n }\n \n return false;\n }", "title": "" }, { "docid": "7be8cd9842cf99c93f578c8b108898d2", "score": "0.5553361", "text": "void doForwardViolentMovement();", "title": "" }, { "docid": "d634e60a11cf9c74f61f6233b93b499d", "score": "0.55483764", "text": "@Override\r\n\t\tpublic void handle(long arg0) {\r\n\t\t\tp1.move();\r\n\t\t\tp2.move();\r\n\t\t\tb1.move();\r\n\t\t}", "title": "" }, { "docid": "d2fe96e82569dcbbf22a1877b0350001", "score": "0.554483", "text": "private void handlePlayerMovement(Direction direction) {\n\t\tPosition destination = player.getPosition().displace(direction);\n\n\t\t/* Check if we can actually walk there */\n\t\tif (isTileWalkable(destination)) {\n\t\t\t/* Check if we're going to push a block */\n\t\t\tBlockInstance block = blockInstanceAt(destination);\n\t\t\tif (null == block) {\n\t\t\t\tdoMovePlayer(destination, direction);\n\t\t\t} else if (block.getBlock().isPushable()) {\n\t\t\t\tPosition blockMoveTo = block.getPosition().displace(direction);\n\t\t\t\tif (canBlockMove(destination, block.getState(), direction)) {\n\t\t\t\t\tplayerMoveBlock(block, blockMoveTo, direction);\n\t\t\t\t\tdoMovePlayer(destination, direction);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\tplayerMoveCount++;\n\t}", "title": "" }, { "docid": "9bd87ff4bcd0a06cc319263f5d021a4b", "score": "0.55407023", "text": "public void shouldMoveNow();", "title": "" }, { "docid": "3466e6351967905d7d0e0281471d2e0d", "score": "0.5535746", "text": "public Effect applyOn(Player source, Player targetP, Square targetS, Match m) {\n Player movingPlayer= null;\n Square destination= null;\n\n List<Player> playersToShoot= new ArrayList<>();\n\n switch (setTempSquare){\n //DON'T SET\n case SET_TEMP_SQUARE_DONT: break;\n //SELECTED SQUARE\n case SET_TEMP_SQUARE_SEL_SQ: m.getCurrentAction().setChosenSquare(targetS); break;\n //SELECTED PLAYER'S SQUARE\n case SET_TEMP_SQUARE_SEL_PLAYERS_SQ:\n if(targetP != null) {\n m.getCurrentAction().setChosenSquare(targetP.getSquarePosition());\n }\n break;\n //MY SQUARE\n case SEL_TEMP_SQUARE_MY_SQ: m.getCurrentAction().setChosenSquare(source.getSquarePosition()); break;\n\n default: break;\n }\n\n switch (whoToMove){\n //NOBODY\n case WHO_TO_MOVE_NOBODY: break;\n //ME\n case WHO_TO_MOVE_ME: movingPlayer= source; break;\n //SELECTED PLAYER\n case WHO_TO_MOVE_SEL_PLAYER: movingPlayer= targetP; break;\n //LAST DAMAGED\n case WHO_TO_MOVE_LAST_DAMAGED: movingPlayer= m.getCurrentAction().getLastDamaged(); break;\n //chosen player\n case WHO_TO_MOVE_CHOSEN_PLAYER: movingPlayer= m.getCurrentAction().getChosenPlayer(); break;\n\n default: break;\n }\n\n switch (whereToMove){\n //NOWHERE\n case WHARE_TO_MOVE_NOWHERE: break;\n //SELECTED SQUARE\n case WHERE_TO_MOVE_SEL_SQ: destination= targetS; break;\n //SELECTED PLAYER'S SQUARE\n case WHERE_TO_MOVE_SEL_PLAYERS_SQ:\n if(targetP != null){\n destination= targetP.getSquarePosition();\n }\n else{\n destination= null;\n }\n break;\n //TEMP SQUARE\n case WHERE_TO_MOVE_TEMP_SQUARE:\n destination= m.getCurrentAction().getChosenSquare();\n break;\n //MY SQUARE\n case WHERE_TO_MOVE_MY_SQUARE:\n destination= source.getSquarePosition();\n break;\n default: break;\n\n }\n\n if(movingPlayer!= null && destination!= null){\n movingPlayer.setSquarePosition(destination);\n\n m.notifyPlayerUpdate(movingPlayer);\n }\n\n switch (whoToDamage){\n //NOBODY\n case WHO_TO_DAMAGE_NOBODY: break;\n //SELECTED PLAYER\n case WHO_TO_DAMAGE_SEL_PLAYER:\n if(targetP != null){\n playersToShoot.add(targetP);\n }\n break;\n //ALL IN SELECTED SQUARE\n case WHO_TO_DAMAGE_ALL_IN_SEL_SQ:\n if(targetS != null){\n playersToShoot.addAll(m.getPlayersOn(new ArrayList<Square>(Arrays.asList(targetS))));\n }\n break;\n //ALL IN SELECTED ROOM\n case WHO_TO_DAMAGE_ALL_IN_SEL_ROOM:\n if(targetS!= null){\n playersToShoot.addAll(m.getPlayersOn(targetS.getRoom().getSquaresInRoom()));\n }\n break;\n //LAST DAMAGED\n case WHO_TO_DAMAGE_LAST_DAMAGED:\n if (m.getCurrentAction().getLastDamaged() != null ){\n playersToShoot.add(m.getCurrentAction().getLastDamaged());\n }\n break;\n //ALL IN MY SQUARE\n case WHO_TO_DAMAGE_ALL_IN_MY_SQUARE:\n playersToShoot.addAll(m.getPlayersOn(new ArrayList<Square>(Arrays.asList(source.getSquarePosition()))));\n playersToShoot.remove(source);\n break;\n //ALL IN TEMP SQUARE\n case WHO_TO_DAMAGE_ALL_IN_TEMP_SQ:\n if(m.getCurrentAction().getChosenSquare() != null){\n playersToShoot.addAll(m.getPlayersOn(new ArrayList<Square>(Arrays.asList(m.getCurrentAction().getChosenSquare()))));\n }\n break;\n //ALL NEAR ME\n case WHO_TO_DAMAGE_ALL_NEAR_ME:\n playersToShoot.addAll(m.getPlayersOn(m.getLayout().getSquaresInDistanceRange(source.getSquarePosition(), 1, 1)));\n break;\n //ALL IN TEMP SQUARE EXCEPT LAST DAMAGED\n case WHO_TO_DAMAGE_ALL_TEMP_SQ_EXCPT_LAST_DAM:\n if(m.getCurrentAction().getChosenSquare() != null){\n playersToShoot.addAll(m.getPlayersOn(new ArrayList<Square>(Arrays.asList(m.getCurrentAction().getChosenSquare()))));\n }\n playersToShoot.remove(m.getCurrentAction().getLastDamaged());\n break;\n\n //SHOOTER\n case WHO_TO_DAMAGE_SHOOTER:\n playersToShoot.clear();\n playersToShoot.add(m.getCurrentPlayer());\n break;\n\n default: break;\n\n }\n\n playersToShoot.remove(source);\n\n if(damageNumber>0){\n for(Player toShoot: playersToShoot) {\n toShoot.getDamageTrack().addDamage(source, damageNumber);\n m.getCurrentAction().addDamaged(toShoot);\n toShoot.getDamageTrack().setMarkToDamages(false);\n\n m.notifyDamageUpdate(toShoot);\n }\n }\n\n if(markNumber>0){\n for(Player toShoot: playersToShoot){\n toShoot.getDamageTrack().addMark(source, markNumber);\n\n m.notifyDamageUpdate(toShoot);\n }\n }\n\n\n switch (setTempPlayer){\n case SET_TEMP_PLAYER_DONT: break; //don't set\n case SET_TEMP_PLAYER_SEL_PLAYER: m.getCurrentAction().setChosenPlayer(targetP); break; //selected player\n case SET_TEMP_PLAYER_ME: m.getCurrentAction().setChosenPlayer(source); break; //me\n default: break;\n }\n\n return effectToAdd;\n\n }", "title": "" }, { "docid": "acadcad169de3ec56e363b2d2c3ef30a", "score": "0.5525784", "text": "private void goTo(CommandContext context) throws PDKCommandException {\n if (context.hasFlag(\"id\") && context.hasFlag(\"mine\")) context.error(RED + \"You cannot use both the -id and -mine flags at the same time.\");\n\n int radius = context.hasFlag(\"radius\") ? context.getFlag(\"radius\") : context.hasFlag(\"mine\") ? -1 : 100;\n\n //if we have the ID flag, we get the value of the flag and use that redblock\n //otherwise, we need to check if we have the mine flag and if we do, we use the nearest redblock assigned to us with a max raidus of -1\n //otherwise, we use the nearest redblock with a max raidus of 100\n\n Redblock rb;\n if (context.hasFlag(\"id\")) rb = context.getFlag(\"id\");\n else rb = context.hasFlag(\"mine\")\n ? getNearestRedblock(storage.getRedblocksFiltered(rdb -> rdb.isIncomplete() && rdb.getAssignedTo() != null && rdb.getAssignedTo().equals(context.asPlayer().getUniqueId())), context.getLocation(), radius)\n : getNearestRedblock(storage.getIncompleteRedblocks(), context.getLocation(), radius);\n\n if (rb == null) context.error(RED + \"No incomplete redblock found\" + (radius > 0 ? \" in a \" + radius + \" block radius of you\" : \"\") + \" matching the given criteria.\");\n\n Essentials.getPlugin(Essentials.class).getUser(context.asPlayer().getUniqueId()).setLastLocation(context.getLocation());\n context.asPlayer().teleport(rb.getLocation().clone().add(.5,0,1.5));\n context.send(LIGHT_PURPLE + \"[Redblock] \" + GRAY + \"Successfully teleported to redblock #\" + rb.getId() + \".\");\n\n }", "title": "" }, { "docid": "057bfacaec5812792dbfd0d1e7d6a6c8", "score": "0.5524542", "text": "public abstract Element move(Element loc);", "title": "" }, { "docid": "435e1b6ac5931185418a22248f1522c3", "score": "0.5518402", "text": "@Test\n\tpublic void testCanGrabBlockPlayerLiftingBlock() {\n\t\tBlock anotherBlock = new Block(1, 2, blockMap);\n\t\tanotherBlock.setProperty(\"movable\");\n\t\tblock.setProperty(\"movable\");\n\n\t\t//Make the block that will be lifted liftable\n\t\tblock.setProperty(\"liftable\");\n\n\t\t//Begin lifting the block to the right\n\t\tplayer.setDirection(Direction.RIGHT);\n\t\tplayer.startInteraction();\n\n\t\t//Finish grabbing animation\n\t\tblock.getAnimationState().updatePosition(5);\n\t\tplayer.updatePosition(5);\n\n\t\t//Lift up the block\n\t\tplayer.liftBlock();\n\n\t\t//Finish the animation\n\t\tblock.getAnimationState().updatePosition(5);\n\t\tplayer.updatePosition(5);\n\n\t\t//Move the actors to the next positions\n\t\tblock.moveToNextPosition();\n\t\tplayer.moveToNextPosition();\n\n\t\t//Remove animations\n\t\tblock.setAnimationState(AnimationState.NONE);\n\t\tplayer.setAnimationState(AnimationState.NONE);\n\n\t\t//Insert blocks to map\n\t\tblockMap.insertBlock(block);\n\t\tblockMap.insertBlock(anotherBlock);\n\n\t\t//Check if preconditions were met\n\t\tif (!player.isLiftingBlock()) {\n\t\t\tfail(\"At this point the player should be lifting \"+block);\n\t\t}\n\n\t\t//Try to grab block on the left side and hopefully fail\n\t\tplayer.setDirection(Direction.LEFT);\n\t\tplayer.startInteraction();\n\t\tif (player.isGrabbingBlock()) {\n\t\t\tfail(\"Should not be grabbing block\");\n\t\t}\n\t}", "title": "" }, { "docid": "58127aabb3772398b0b817c4fae65079", "score": "0.55147445", "text": "protected void moveToCollideWithTiles() {\n\t\tRectangle[] sideBounds = new Rectangle[4];\n\t\tsideBounds[0] = new Rectangle(bounds.point.plus(bounds.size.x - 1, 0), new Vector(1, bounds.size.y));\n\t\tsideBounds[1] = new Rectangle(bounds.point.plus(0, bounds.size.y - 1), new Vector(bounds.size.x, 1));\n\t\tsideBounds[2] = new Rectangle(bounds.point, new Vector(1, bounds.size.y));\n\t\tsideBounds[3] = new Rectangle(bounds.point, new Vector(bounds.size.x, 1));\n\n\t\tVector newVelocity = new Vector(velocity);\n\t\t\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tcolliding[i] = false;\n\t\t\n\t\t// Check collisions to the left\n\t\tif (room.isCollidingWithTile(position.plus(velocity.x, 0), sideBounds[2], CollisionType.allSolid) &&\n\t\t\t\tvelocity.x < 0) {\n\t\t\tcolliding[2] = true;\n\t\t\t// Reduce velocity to prevent collision\n\t\t\tfor (int i = 0; i >= (int)velocity.x ; i--) {\n\t\t\t\tif (!room.isCollidingWithTile(position.plus(velocity.x - i, 0), sideBounds[2], CollisionType.allSolid)) {\n\t\t\t\t\tnewVelocity.x = velocity.x - i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (i == (int)velocity.x) {\n\t\t\t\t\tnewVelocity.x = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Check collisions to the top\n\t\tif (room.isCollidingWithTile(position.plus(0, velocity.y), sideBounds[3], CollisionType.allSolid) &&\n\t\t\t\tvelocity.y < 0) {\n\t\t\tcolliding[3] = true;\n\t\t\t// Reduce velocity to prevent collision\n\t\t\tfor (int i = 0; i >= (int)velocity.y ; i--) {\n\t\t\t\tif (!room.isCollidingWithTile(position.plus(0, velocity.y - i), sideBounds[3], CollisionType.allSolid)) {\n\t\t\t\t\tnewVelocity.y = velocity.y - i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (i == (int)velocity.y) {\n\t\t\t\t\tnewVelocity.y = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Check collisions to the right\n\t\tif (room.isCollidingWithTile(position.plus(velocity.x, 0), sideBounds[0], CollisionType.allSolid) &&\n\t\t\t\tvelocity.x > 0) {\n\t\t\tcolliding[0] = true;\n\t\t\t// Reduce velocity to prevent collision\n\t\t\tfor (int i = 0; i <= (int)velocity.x ; i++) {\n\t\t\t\tif (!room.isCollidingWithTile(position.plus(velocity.x - i, 0), sideBounds[0], CollisionType.allSolid)) {\n\t\t\t\t\tnewVelocity.x = velocity.x - i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (i == (int)velocity.x) {\n\t\t\t\t\tnewVelocity.x = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Check collisions to the bottom\n\t\tif (room.isCollidingWithTile(position.plus(0, velocity.y), sideBounds[1], CollisionType.allSolid) &&\n\t\t\t\tvelocity.y > 0) {\n\t\t\tcolliding[1] = true;\n\t\t\t// Reduce velocity to prevent collision\n\t\t\tfor (int i = 0; i <= (int)velocity.y ; i++) {\n\t\t\t\tif (!room.isCollidingWithTile(position.plus(0, velocity.y - i), sideBounds[1], CollisionType.allSolid)) {\n\t\t\t\t\tnewVelocity.y = velocity.y - i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (i == (int)velocity.y) {\n\t\t\t\t\tnewVelocity.y = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tvelocity = newVelocity;\n\t}", "title": "" }, { "docid": "95755e703cd87114acc62eac73d1ad9d", "score": "0.548357", "text": "public Point didMoveNow();", "title": "" }, { "docid": "137ad97963a43ca66b12b24d2c8ca809", "score": "0.54828954", "text": "private void makeMove() {\n Message msg = mHandler.obtainMessage(2);\n msg.arg1 = greedyMethod();\n mHandler.sendMessage(msg);\n }", "title": "" }, { "docid": "84d14c1b45d469cd3979022a6c70708c", "score": "0.5477769", "text": "private void notifyTargetBlock(TileEntity _tile, ForgeDirection _side) {\n _tile.getWorldObj().notifyBlocksOfNeighborChange(_tile.xCoord, _tile.yCoord, _tile.zCoord, Blocks.air);\n _tile.getWorldObj().notifyBlocksOfNeighborChange(\n _tile.xCoord + _side.offsetX,\n _tile.yCoord + _side.offsetY,\n _tile.zCoord + _side.offsetZ,\n Blocks.air);\n }", "title": "" }, { "docid": "f38ca50288cf7e40452aea4f1d9f9050", "score": "0.5477562", "text": "private void move(){\r\n\t\t\tx+= Math.cos(angle)*speed;\r\n\t\t\ty+= Math.sin(angle)*speed;\r\n\t\t\tif (index>=1){\r\n\t\t\t\tdouble xdist = (x-pathing[index-1])*(x-pathing[index-1]);\r\n\t\t\t\tdouble ydist = (y-pathing[index])*(y-pathing[index]);\r\n\t\t\t\t// If the distance between its current position and its target is less then a threshold, it moves on to the next point\r\n\t\t\t\t// calculating its next angle of travel.\r\n\t\t\t\tif (xdist+ydist<=30){\r\n\t\t\t\t\tindex-=2;\r\n\t\t\t\t\tif (index>=1){angle=Math.atan2(pathing[index]-(double)y, pathing[index-1]-(double)x);}}}\r\n\t\t\telse if (x>1000||x+size<0||y>1000||y-size<0){\r\n\t\t\t\t// If it has finished its path, it is removed\r\n\t\t\t\tremove=true;\r\n\t\t\t}\r\n\t\t\tif (recenthit>=0)recenthit--;\r\n\t\t}", "title": "" }, { "docid": "83f573f15f8a4a8c437a40e1468807e7", "score": "0.5472234", "text": "private static MapLocation getNearestOpenDest(MapLocation destination) throws GameActionException {\n\t\tMapLocation newDest = destination;\n\t\tint tile = Map.getTile(newDest);\n\t\tint rad = 1;\n\t\tint offset = 7;\n\t\twhile (tile == 3 || tile == 4) {\n\t\t\tnewDest = destination.add(dir[offset], rad);\n\t\t\ttile = Map.getTile(newDest);\n\t\t\tif (offset-- <= 0) {\n\t\t\t\toffset = 7;\n\t\t\t\trad++;\n\t\t\t}\n\t\t}\n\t\treturn newDest;\n\t}", "title": "" }, { "docid": "6b53c217297ffd60ac4f8a003cc12358", "score": "0.5470827", "text": "private void movementPhase(){\n\t\tNode[] moveNodes = new Node[2];\n\t\tmoveNodes = findMove();\n\t\tData.setMove(moveNodes[1].getLayer(), moveNodes[1].getPosition(), \"blue\");\n\t\tData.swapNode(moveNodes[0].getLayer(), moveNodes[0].getPosition());\n\t\tif (Data.singleTriple(moveNodes[0].getLayer(), moveNodes[0].getPosition()))\n\t\t\tData.setState(GameState.MILL);\n\t\telse Data.changeTurn();\n\t\t//check for winning\n\t\tif (Data.checkWin()){\n\t\t\tData.setState(GameState.ENDGAME);\n\t\t}\n\t\tView.update();\n\t\t\n\t}", "title": "" }, { "docid": "7b85103dd862dccab1d04d4106cc4994", "score": "0.5470579", "text": "@ Test\n\t\tpublic void testMoveRunsIntoWall() {\n\t\t\tmf.order(stub);\n\t\t\tmf.waitTillDelivered();\n\t\t\tmazeConfig = ( (StubOrder) stub).getMazeConfiguration();\n\t\t\tcells = mazeConfig.getMazecells();\n\t\t\trobot.setMaze(this.maze);\n\t\t\trobot.setMazeCells(cells);\n\t\t\t\n\t\t\tthis.robot.move(this.robot.distanceToObstacle(Direction.FORWARD) + 1, false);\n\t\t\tassertTrue(this.robot.hasStopped);\n\t\t}", "title": "" }, { "docid": "a95267cdc435064db7cf59cfbacfd74c", "score": "0.5465009", "text": "public void move()\n {\n //see if it has hit another pinball\n machine.ballCollision(this);\n \n // check if it has hit the wall\n machine.wallCollision(this);\n \n // compute new position\n currentYLocation += speedYTravel;\n currentXLocation += speedXTravel;\n }", "title": "" }, { "docid": "e8a0d17289034ae8a2ff4b97d130853c", "score": "0.5459592", "text": "public static boolean executeMove(int sideNumber, int currentXCoordinate, int currentYCoordinate, int destinationXCoordinate, int destinationYCoordinate)\n {\n boolean inputOK = false;\n //is the piece that is selected by the player their piece?\n if (selectedPiece.getSide() == sideNumber - 1)\n {\n //can landmines or pieces on headquarters be moved? \n if (selectedPiece.getRank() != RANK_LANDMINE && !(isHeadquarter(currentXCoordinate, currentYCoordinate)))\n {\n //you can move only diagonally if the current location or destination is a campsite\n if ((isCampsite(destinationXCoordinate, destinationYCoordinate) || isCampsite(currentXCoordinate, currentYCoordinate))&& Math.abs(currentXCoordinate - destinationXCoordinate) <= 1 && Math.abs(currentYCoordinate - destinationYCoordinate) <= 1)\n {\n //make appropriate judgements on the ranks of the piece, change the board, and display the adjusted board. \n inputOK = board.movePiece(currentXCoordinate, currentYCoordinate, destinationXCoordinate, destinationYCoordinate);\n displayChanges();\n }// end of if ((isCampsite(destinationXCoordinate, destinationYCoordinate) || isCampsite(currentXCoordinate, currentYCoordinate))&& Math.abs(currentXCoordinate - destinationXCoordinate) <= 1 && Math.abs(currentYCoordinate - destinationYCoordinate) <= 1)\n //if the movement doesnt involve a campsite, one may only move left, right, up, or down one block.\n else if (Math.abs(currentXCoordinate - destinationXCoordinate) <= 1 && Math.abs(currentYCoordinate - destinationYCoordinate) == 0)\n {\n inputOK = board.movePiece(currentXCoordinate, currentYCoordinate, destinationXCoordinate, destinationYCoordinate);\n displayChanges();\n }// end of else if (Math.abs(currentXCoordinate - destinationXCoordinate) <= 1 && Math.abs(currentYCoordinate - destinationYCoordinate) == 0)\n else if (Math.abs(currentXCoordinate - destinationXCoordinate) == 0 && Math.abs(currentYCoordinate - destinationYCoordinate) <= 1)\n {\n inputOK = board.movePiece(currentXCoordinate, currentYCoordinate, destinationXCoordinate, destinationYCoordinate);\n displayChanges();\n }// end of else if (Math.abs(currentXCoordinate - destinationXCoordinate) == 0 && Math.abs(currentYCoordinate - destinationYCoordinate) <= 1)\n //if the piece and its destination are on railroads then the piece may move any number of posts up, down, left, or right\n else if (onRailroad(currentXCoordinate, currentYCoordinate) && onRailroad(destinationXCoordinate, destinationYCoordinate))\n {\n //move horizontally or vertically? \n if (currentYCoordinate == destinationYCoordinate)\n {\n inputOK = movePieceOnRailroad(1, currentXCoordinate, destinationXCoordinate, destinationYCoordinate);\n displayChanges(); \n }// end of if (currentYCoordinate == destinationYCoordinate)\n else if (currentXCoordinate == destinationXCoordinate)\n {\n inputOK = movePieceOnRailroad(0, currentYCoordinate, destinationYCoordinate, destinationXCoordinate);\n displayChanges();\n }// end of else if (currentXCoordinate == destinationXCoordinate)\n }\n displayBoard(sideNumber);\n if (inputOK == true) System.out.println(\"You have finished your turn, please press enter.\");\n if (inputOK == false) System.out.println(\"You have entered invalid information, please press enter to try again.\");\n }\n else \n {\n System.out.println(\"Landmines and pieces on headquarters cannot be moved. Please try again.\");\n }// end of if (selectedPiece.getRank() != RANK_LANDMINE && !(isHeadquarter(currentXCoordinate, currentYCoordinate)))\n }\n else\n {\n System.out.println(\"Please do not attempt to move your opponent's pieces. Press Enter to try again.\");\n }// end of if (selectedPiece.getSide() == sideNumber - 1)\n return inputOK;\n }", "title": "" }, { "docid": "dface87166559c91cefa7d304eb0984e", "score": "0.5456934", "text": "public void move()\n {\n if (handler.getMouseManager().getTokenGrabbed() == this)\n {\n targetX = handler.getMouseManager().getMouseX() - (width/2) + handler.getGameCamera().getXOffset();\n targetY = handler.getMouseManager().getMouseY() - (height/2) + handler.getGameCamera().getYOffset();\n }\n else\n {\n targetX = (float) (Math.floor(x/Tile.TILEWIDTH)*Tile.TILEWIDTH);\n targetY = (float) (Math.floor(y/Tile.TILEHEIGHT)*Tile.TILEHEIGHT);\n }\n x = targetX;\n y = targetY;\n }", "title": "" }, { "docid": "26bbffa85584b8bc80131081cf533933", "score": "0.5449546", "text": "@Override\n\tpublic boolean move(Square moveHere) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "3e9f618f549b5bdf647fb21c370ac862", "score": "0.5445905", "text": "private void walkToNearestTombstone()\r\n {\r\n turnTowards (target.getX(), target.getY()); //Medic turns towards targetted tombstone\r\n move (speed); //Moves at a specified speed, in this case, 2\r\n }", "title": "" }, { "docid": "6e77efb6c2c87e499f7cd23a9486eae8", "score": "0.544449", "text": "@Override\n public void onBlockPlace(World arg0, int arg1, int arg2, int arg3) {\n\n }", "title": "" }, { "docid": "4505928254337c8eae526735aea152dc", "score": "0.5443602", "text": "public void MoveToWaypoint() {\r\n\t\tif (side != SideEnum.FRIENDLY) spotted = false;\r\n\t\tif (waypointList.getFirstWaypoint().getX() < 0) return;\t\t// Invalid waypoint or no waypoint set\r\n\t\t\r\n\t\tHexAx nextWP = waypointList.getFirstWaypoint().ConvertToAx();\t\t\r\n\t\tHexAx currentLoc = location.toHO().ConvertToAx();\t\t\r\n\t\t\r\n\t\tint deltaX = nextWP.getX() - currentLoc.getX();\r\n\t\tint deltaY = nextWP.getY() - currentLoc.getY();\r\n\t\t\r\n\t\t// GUI_NB.GCO(\"Loc: \" + currentLoc.getX() + \", \" + currentLoc.getY() + \r\n\t\t//\t\t\" Dest: \" + nextWP.getX() + \", \" + nextWP.getY() + \" || Delta: \" + deltaX + \", \" + deltaY);\r\n\t\t\r\n\t\tint moveDirection = -1;\r\n\t\t\r\n\t\tif (Math.abs(deltaX) == Math.abs(deltaY)) {\r\n\t\t\t// Move direction will be either 0 (NE) or 3 (SW)\r\n\t\t\tif (deltaX > deltaY) moveDirection = 0;\r\n\t\t\tif (deltaX < deltaY) moveDirection = 3;\r\n\t\t\tif (deltaX == deltaY) {\r\n\t\t\t\tif (deltaX > 0) moveDirection = 1;\r\n\t\t\t\telse moveDirection = 4;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (Math.abs(deltaX) > Math.abs(deltaY)){\r\n\t\t\tif (deltaX > 0) moveDirection = 1;\r\n\t\t\telse moveDirection = 4;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (deltaY > 0) moveDirection = 2;\r\n\t\t\telse moveDirection = 5;\r\n\t\t}\r\n\t\t\t\t\t\r\n\t\t// GUI_NB.GCO(\"Move dir: \" + moveDirection);\r\n\t\tif (moveDirection < 0) return;\r\n\t\t\r\n\t\t// --------------------------------------------------------\r\n\t\tMoveUnit(moveDirection);\t\t\t\t\r\n\t\t//MoveUnitSubHex(moveDirection);\r\n\t\t\r\n\t\tif (location.toHO().ConvertToAx().getX() == nextWP.getX() && location.toHO().ConvertToAx().getY() == nextWP.getY()) {\r\n\t\t\t// GUI_NB.GCO(\"Waypoint reached.\");\r\n\t\t\twaypointList.removeFirstWaypoint();\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a7048c4150e0046f1c201ae30cef1a74", "score": "0.54347974", "text": "private void moveAlongWall(Side side, double lower_limit, double upper_limit) {\n double distance = rangeSensors.getLeftDistance(100);\n if(Side.right.equals(side)) { // right side wall\n distance = rangeSensors.getRightDistance(100);\n }\n\n\n\n\n\n\n }", "title": "" }, { "docid": "251865cc446d0f0424623722fceab3d1", "score": "0.5430699", "text": "protected void move() {\n\t\tx += nx;\n\t\ty += ny;\n\t\tif (distance() > range) remove();\n\t}", "title": "" }, { "docid": "b508ea47614ff9d1c51d03542eec4a2d", "score": "0.5424098", "text": "private void calculatePositionsForDrop(BoardPosition basePosition, int alongX, int alongY) {\n\n /* \n * First of all, we have to look at each block in this shape and see if there is a valid space\n * for it to move into.\n */\n\n /* If not valid, return */\n if (!checkSideEdges(basePosition, alongX)) return;\n\n /* For initial block */\n positions_[0] = owner_.accessPosition(\n basePosition.getThisPosition().x + alongX,\n basePosition.getThisPosition().y + alongY);\n\n for (int blockPiece = 1; blockPiece < numBlocks; blockPiece++) {\n\n /* If blockPiece is < 0, display console message */\n if (blockPiece < 0) System.out.format(\"blockPiece argument < 0\\n\");\n\n /* For relative blocks */\n\n /* Clockwise */\n if (turningClockwise_) {\n positions_[blockPiece] = owner_.accessPosition(\n basePosition.getThisPosition().x + shape_.accessRelativePoints()[orientation_][blockPiece].x + alongX,\n basePosition.getThisPosition().y + shape_.accessRelativePoints()[orientation_][blockPiece].y + alongY);\n } \n }\n\n }", "title": "" }, { "docid": "9b815dd2360d88a3ef9c5be1cb935ae0", "score": "0.5423449", "text": "private int moveInOneCoordinate(int current, int target) {\n if (current == target) {\n return 0;\n }\n\n if (current > target) {\n if (current - target > speed) {\n return -speed;\n }\n } else {\n if (target - current > speed) {\n return speed;\n }\n }\n return target - current;\n }", "title": "" }, { "docid": "f3d0003b2869bd2204e4a4ddb821833c", "score": "0.54192764", "text": "@Override\n public Action getMove(CritterInfo info) {\n stepCounter++;\n\n if (info.getFront() == Neighbor.OTHER){\n // Attack if enemy is in front\n return Action.INFECT;\n } else if (info.getFront() == Neighbor.EMPTY) {\n // Hop if the way ahead is not blocked\n return Action.HOP;\n } else {\n // Turn left if the tile ahead is blocked\n return Action.LEFT;\n }\n }", "title": "" }, { "docid": "6fe247afd96acec46c060061cb51ff25", "score": "0.5417634", "text": "public void travelToSearchArea() {\n\t\tdouble[] xyt = odometer.getXYT();\n\t\tdouble x = xyt[0];\n\t\tdouble y = xyt[1];\n\n\t\tdouble toX, toY;\n\n\t\t// Travel to the corner of the search region depending on team \n\t\tif (Controller.isRedTeam()) {\n\t\t\tdouble sgX = (Controller.sgLLx + Controller.sgURx) / 2;\n\t\t\tdouble sgY = (Controller.sgLLy + Controller.sgURy) / 2;\n\n\t\t\t// Get the coordinates of the nearest search region corner\n\t\t\ttoX = x < sgX * TILE_SIZE ? Controller.sgLLx : Controller.sgURx;\n\t\t\ttoY = y < sgY * TILE_SIZE ? Controller.sgLLy : Controller.sgURy;\n\t\t} else {\n\t\t\tdouble srX = (Controller.srLLx + Controller.srURx) / 2;\n\t\t\tdouble srY = (Controller.srLLy + Controller.srURy) / 2;\n\n\t\t\t// Get the coordinates of the nearest search region corner\n\t\t\ttoX = x < srX * TILE_SIZE ? Controller.srLLx : Controller.srURx;\n\t\t\ttoY = y < srY * TILE_SIZE ? Controller.srLLy : Controller.srURy;\n\t\t}\n\n\t\ttravelTo(toX, toY);\n\n\t\t// Beep to indicate completion\n\t\tSound.beep();\n\t}", "title": "" }, { "docid": "6e5afc372f46a1485b04aa4a06ebb4dc", "score": "0.541687", "text": "public Transformable move2(double tx, double ty);", "title": "" }, { "docid": "f3d2ee584092984200f5e585f6ed5541", "score": "0.5413169", "text": "public void moveOneStep() {\n //Check where it supposes to land.\n Point newLocation = this.velocity.applyToPoint(this.center);\n //No collision puts the ball without any changes\n if (!isCollidingInTheNextMovement(newLocation)) {\n center = new Point(newLocation);\n return;\n }\n //If a hit occurred: check the new velocity.\n Line traj = new Line(this.center, newLocation);\n var collisionInfo = gameEnvironment\n .getClosestCollision(traj);\n Velocity newVelocity = collisionInfo.collisionObject().hit(\n this,\n collisionInfo.collisionPoint(),\n this.velocity\n );\n //If it hits the pedal, run the method which was built for the pedal\n if (collisionInfo.collisionObject().getClass().equals(Paddle.class)) {\n this.velocity = (((Paddle) collisionInfo.collisionObject()).hit(\n this, collisionInfo.collisionPoint(), velocity));\n Point tmp = (((Paddle) (collisionInfo.collisionObject()))\n .hit(this, collisionInfo.collisionPoint(), velocity)\n .applyToPoint(this.center));\n if (!gameEnvironment.isPointInsideCollidable(tmp)) {\n this.center = tmp;\n }\n return;\n }\n /*\n * Otherwise it hit a block. Reflect the velocity to the opposite side.\n * if there is a block hiding the way, just make a full reflection.\n */\n if (gameEnvironment.isPointInsideCollidable(\n newVelocity.applyToPoint(center))) {\n //(-velocity.dx, -velocity.dy);\n newVelocity = new Velocity(-velocity.getDx(), -velocity.getDy());\n }\n this.velocity = newVelocity;\n this.center = this.velocity.applyToPoint(this.center);\n }", "title": "" }, { "docid": "d0f6212b36db3b5f176f6442b54658d3", "score": "0.5393231", "text": "private Boolean checkBlocksCanTurn(int[] newX, int[] newY, BoardPosition newBase, int currentOrientation, int newOrientation) {\n \n for (int eachPos = 0; eachPos < numBlocks; eachPos++) {\n\n // System.out.format(\"Looking at block %d\\n\", eachPos);\n\n /* Set newX, set newY for each position for checking */\n newX[eachPos] = newBase.getThisPosition().x + shape_.accessRelativePoints()[newOrientation][eachPos].x;\n newY[eachPos] = newBase.getThisPosition().y + shape_.accessRelativePoints()[newOrientation][eachPos].y;\n\n if (!checkValidityOfTurn(newX, newY, eachPos)) return false;\n\n /* Set a reference variable to the position we're looking at */\n BoardPosition checkHere = owner_.accessPosition(newX[eachPos], newY[eachPos]);\n\n /* If there is something on this position, and it isn't the current block, return false */\n if(checkIfPositionAlreadyOccupied(checkHere, newX, newY, eachPos, currentOrientation)) return false;\n\n /* If this is a straight line and we flagged it at the edge, move right or left */\n if (flagToMoveRight_) moveRight();\n if (flagToMoveLeft_) moveLeft();\n\n }\n\n return true;\n \n }", "title": "" }, { "docid": "b04da6cc6858bb933eafda5d919338a8", "score": "0.5393071", "text": "public void onBlockPlaced(World world, int x, int y, int z, int facing)\n {\n }", "title": "" }, { "docid": "e17696665a0bf8ecfaefe18a6c2832b7", "score": "0.538975", "text": "public void calculateAction() {\n boolean isAbleToMove = checkIsAbleToMove();\n\n if (!isAbleToMove){\n return;\n } else {\n// System.out.println(\"----------------------------------------------------------------\");\n// System.out.println(\"mower is able to move... \");\n // if target still has grass and the futureRoute can produce next action:\n if (this.futureRoute != null && this.futureRoute.size() > 0 && InfoCollection.getMemory().get(futureTargetPos).getState().getCode() == 1) {\n// System.out.println(\"mower has future route and target position still has grass \");\n genetateActionFromGivenRoute();\n // analyze if generated action is valid: mower is a problem.\n boolean isValid = analyzeGeneratedActionValidity();\n if (!isValid) {\n// System.out.println(\"mower generated invalid action caused by mower, need to calculate route again \");\n calculateFutureRouteFromBFS(new Position(mowerX, mowerY), futureTargetPos); //analyzeGoAhead => analyze otherdirections within one step => analyze other directions within two steps => BFS search\n genetateActionFromGivenRoute();\n }\n\n //if future target is mowered by other mower although we still have prepared action\n } else if (this.futureRoute != null && this.futureRoute.size() > 0 && InfoCollection.getMemory().get(futureTargetPos).getState().getCode() == 0){\n // do bfs search\n bfsSearchFutureSquare(new Position(mowerX, mowerY));// avoid original pos and also other mower's target pos: using infocollection\n if (futureTargetPos != null){\n calculateFutureRouteFromBFS(new Position(mowerX, mowerY), futureTargetPos);\n genetateActionFromGivenRoute();\n }else{\n trackAction = \"turn_off\";\n }\n }else{\n //start over the whole set of analysis\n boolean hasUnknown = InfoCollection.hasUnknownDir(mowerX, mowerY);\n if (!hasUnknown) {\n// System.out.println(\"mower knows everything around it\");\n startOverAllAnalysis();\n }\n else {\n// System.out.println(\"mower has unknow around it\");\n trackAction = \"scan\";\n }\n }\n }\n }", "title": "" }, { "docid": "7976329454cfdf90753387a49ca6b55c", "score": "0.5378899", "text": "private int moveFaceTargetWrapper(double new_pos_x, double new_pos_y, double new_pos_z){ move the robot from facing the AR tag to a location such that the laser will face the target point\n // api.moveTO will be used for a minimum of 4 times and maximum 7 times\n // 3 will be returned if the robot succeeds within 4 tries\n // 6 will be returned if the robot doesn't succeed after 7 tries or if it succeeds on try 7\n\n// double new_pos_y = -9.60; // -9.75 is the y_min of KIZ\n// double new_pos_z = pos_z + 0.2/(Math.sqrt(2)) + 0.1111; // 0.1111 is laser offset, 0.2 is hypotenuse distance from AR tag to target point\n//\n if (new_pos_z >= 5.59) {\n new_pos_z = 5.55;\n } else if (new_pos_z <= 4.21 ) {\n new_pos_z = 4.25;\n }\n\n if (new_pos_x >= 11.64) {\n new_pos_x = 11.60;\n } else if (new_pos_x <= 10.26){\n new_pos_x = 10.30;\n }\n\n final int LOOP_MAX = 3; // actually this is the minimum\n final int LOOP_LIMIT = 6;\n Point point = new Point(new_pos_x, new_pos_y, new_pos_z);\n Quaternion quaternion = new Quaternion((float)(0), (float)0,\n (float)(-0.7071068), (float)0.7071068);\n\n Result result = api.moveTo(point, quaternion, true);\n\n int loopCounter = 0;\n while((!result.hasSucceeded()||(loopCounter < LOOP_MAX)) && loopCounter < LOOP_LIMIT){\n// Log.i(\"MoveTo\", \"Try again for current point\");\n result = api.moveTo(point, quaternion, true);\n ++loopCounter;\n }\n Log.i(\"MyActivity\", \"New location facing target = (\" + new_pos_x + \",\" + new_pos_y + \",\" + new_pos_z + \")\");\n return loopCounter;\n }", "title": "" }, { "docid": "4d610a58d9499b8c32e8d323ff59be77", "score": "0.53785425", "text": "@SuppressWarnings(\"unused\")\n\tprivate boolean avoidWallsAndBuildIntermediateTarget(final CatpedsimGeometry geometry,\n\t\t\tfinal PVector nextStepVectorToPosition) {\n\t\tboolean avoided = true;\n\n\t\tfloat distanceToClosestWall = Float.MAX_VALUE;\n\t\tShapeSection closestWallSection = null;\n\n\t\tfor (CatpedsimObstacle wall : geometry.getWalls()) {\n\t\t\tfor (int indexSection = 0; indexSection < wall.getObstacleSections().length; indexSection++) {\n\t\t\t\tShapeSection wallSection = wall.getObstacleSections()[indexSection];\n\n\t\t\t\ttry {\n\t\t\t\t\tif (Trigonometry.checkIfLinesIntersect(positionVector, nextStepVectorToPosition,\n\t\t\t\t\t\t\twallSection.getVectorToStartPoint(), wallSection.getVectorToEndPoint())) {\n\t\t\t\t\t\tacceleration.set(0, 0, 0);\n\t\t\t\t\t\tavoided = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (targetVector != null && Trigonometry.checkIfLinesIntersect(positionVector, targetVector,\n\t\t\t\t\t\t\twallSection.getVectorToStartPoint(), wallSection.getVectorToEndPoint())) {\n\t\t\t\t\t\tfloat distance = Trigonometry.distanceFromPointToSegment(positionVector,\n\t\t\t\t\t\t\t\twallSection.getVectorToStartPoint(), wallSection.getVectorToEndPoint());\n\n\t\t\t\t\t\tif (distance < distanceToClosestWall) {\n\t\t\t\t\t\t\tdistanceToClosestWall = distance;\n\t\t\t\t\t\t\tclosestWallSection = wallSection;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tLOGGER.warn(\"Error occured while checking the agent does not cross a wall or obstacle.\", ex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (closestWallSection != null) {\n\t\t\tfloat distance1 = PVector.dist(positionVector, closestWallSection.getVectorToStartPoint())\n\t\t\t\t\t+ PVector.dist(closestWallSection.getVectorToStartPoint(), targetVector);\n\t\t\tfloat distance2 = PVector.dist(positionVector, closestWallSection.getVectorToEndPoint())\n\t\t\t\t\t+ PVector.dist(closestWallSection.getVectorToEndPoint(), targetVector);\n\n\t\t\tif (distance1 >= distance2) {\n\t\t\t\tfinal float positionOffset = 5f;\n\t\t\t\tPVector offset = PVector.sub(closestWallSection.getVectorToEndPoint(),\n\t\t\t\t\t\tclosestWallSection.getVectorToStartPoint());\n\t\t\t\toffset.normalize();\n\t\t\t\toffset.mult(positionOffset);\n\n\t\t\t\tintermediateTargetVector = closestWallSection.getVectorToEndPoint();\n\t\t\t} else {\n\t\t\t\tfinal float positionOffset = 1.5f;\n\t\t\t\tPVector offset = PVector.sub(closestWallSection.getVectorToStartPoint(),\n\t\t\t\t\t\tclosestWallSection.getVectorToEndPoint());\n\t\t\t\toffset.normalize();\n\t\t\t\toffset.mult(positionOffset);\n\n\t\t\t\tintermediateTargetVector = closestWallSection.getVectorToStartPoint();\n\t\t\t}\n\t\t}\n\n\t\treturn avoided;\n\t}", "title": "" }, { "docid": "3e982b51a5efd8276364275cb44a3029", "score": "0.5378019", "text": "@Override\n public BuildingBlock findBlockOver() {\n return this.top;\n }", "title": "" }, { "docid": "8dc43feb293f9c5481468846d866dd4e", "score": "0.5366527", "text": "public void findMoveUnvisited() {\n\t\t\n\t\tUnvisitedTileData closestTile = sharedData.getUnvisited().get(0);\n\t\n\t\t//Find closest unvisited tile\n\t\tfor(UnvisitedTileData unvisitedTileData : sharedData.getUnvisited()) {\n\t\t\tif(unvisitedTileData.getDistance() < closestTile.getDistance()) {\n\t\t\t\tclosestTile = unvisitedTileData;\n\t\t\t\tbreak;\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t//Randomly chose from closest unvisited tiles and send value to Pathing to move to.\n\t\tpathing.moveToCoords(closestTile.getCoords());\n\t}", "title": "" }, { "docid": "59a9dfce581abe04f05f0928196ec463", "score": "0.5363378", "text": "Move getTo();", "title": "" }, { "docid": "8adf636437aea80c52a578401f0a89b6", "score": "0.5350839", "text": "public void move()\n {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n {\n return;\n }\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(getDirection());\n if (gr.isValid(next))\n {\n moveTo(next);\n }\n else\n {\n removeSelfFromGrid();\n }\n }", "title": "" }, { "docid": "91bde0ff9417458708773161562e303d", "score": "0.5347153", "text": "@Override\n public void moveFromTo(int x1, int y1, int x2, int y2) {\n\n }", "title": "" }, { "docid": "b071cbb92f80aab697d97ab4e0813672", "score": "0.5345681", "text": "@Override\n public void handle(long now) {\n double x = monster.getTileX() - CaveExplorer.getPlayerCharacter().getTileX();\n double y = monster.getTileY() - CaveExplorer.getPlayerCharacter().getTileY();\n\n // monster doesn't act if the player goes out of the search range\n if(Math.sqrt(x*x+y*y)>searchRange){\n return;\n }\n\n // walking in the direction of the player in a ~straight line\n //walkInDirectLine(x,y);\n Tile targetTile = MainGameScene.getBoard().getTiles()[CaveExplorer.getPlayerCharacter().roundTileX()][CaveExplorer.getPlayerCharacter().roundTileY()];\n findPathWithAStarAndWalk(targetTile);\n\n // monster tries to attack if the player is in range\n monster.attemptAttack();\n\n // monster fires a projectile at 0.5% chance\n if(Math.random() <= 0.005){\n Projectile spores = new DmgProjectile_SporeCarrier_Spores(5);\n spores.initiateTravel(monster, getDirToPlayer());\n }\n\n // might be moved somewhere else\n monster.toFront();\n\n }", "title": "" }, { "docid": "e9f5164e5c5ead98486d5ea5c09e932f", "score": "0.534422", "text": "private void tunnel() {\r\n\t\tif (xPos < 0 && yTile == 14) {\r\n\t\t\txPos = 27.9;\r\n\t\t}\r\n\t\telse if(xPos >= 28) {\r\n\t\t\txPos = 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ebd5247c974cd99b1d92800cf6546d6a", "score": "0.5342978", "text": "public void nextBlock()\n {\n if(isTouching(Ground.class))\n {\n setLocation(getX(), getY());\n onGround = true;\n GameScreen gamescreen = (GameScreen)getWorld();\n gamescreen.addScore(20);\n \n gamescreen.canNotSpawn(1);\n }\n if(isTouching(Blocks.class))\n {\n setLocation(getX(), getY());\n onGround = true;\n GameScreen gamescreen = (GameScreen)getWorld();\n gamescreen.addScore(20);\n \n gamescreen.canNotSpawn(1);\n }\n }", "title": "" }, { "docid": "3f314bc0ad362d7ed1d3172857c75760", "score": "0.5341469", "text": "protected void aimToDestination() {\n if (directionToDestination > direction + 2 || directionToDestination < direction - 2) {\n directionToDestination = GameUtils.getDirectionToPoint(x, y, order.destinationX, order.destinationY);\n if (direction < directionToDestination) {\n if (Math.abs(direction - directionToDestination) < 180) {\n setDirection(direction + rotationChange);\n } else {\n setDirection(direction - rotationChange);\n }\n } else {\n if (Math.abs(direction - directionToDestination) < 180) {\n setDirection(direction - rotationChange);\n } else {\n setDirection(direction + rotationChange);\n }\n }\n }\n }", "title": "" }, { "docid": "414b17f93ef085f091f061ea7e506517", "score": "0.5339598", "text": "public void calcMove(){\n Debug.beginClock(9);\n M.calcBestMove();\n Debug.endClock(9);\n }", "title": "" }, { "docid": "2ec8386ea6e47afe4923c38b2374e518", "score": "0.5338199", "text": "public void move(){\n if (this.getElevatorState() == TO_SOURCE){\n if (this.getCurrentFloor() > this.getCurrentRequest().getSourceFloor()){\n this.setCurrentFloor(this.getCurrentFloor() - 1);\n }\n else if (this.getCurrentFloor() < this.getCurrentRequest().getSourceFloor()){\n this.setCurrentFloor(this.getCurrentFloor() + 1);\n }\n else if (this.getCurrentFloor() == this.getCurrentRequest().getSourceFloor()){\n this.setElevatorState(TO_DESTINATION);\n }\n }\n else if (this.getElevatorState() == TO_DESTINATION){\n if (this.getCurrentFloor() > this.getCurrentRequest().getDestinationFloor()){\n this.setCurrentFloor(this.getCurrentFloor() - 1);\n }\n else if (this.getCurrentFloor() < this.getCurrentRequest().getDestinationFloor()){\n this.setCurrentFloor(this.getCurrentFloor() + 1);\n }\n else if (this.getCurrentFloor() == this.getCurrentRequest().getDestinationFloor()){\n this.setElevatorState(IDLE);\n }\n }\n }", "title": "" }, { "docid": "74e7e69fa33ddfa77731e2823997410f", "score": "0.53354853", "text": "@Override\n public void onBlockPlace(World arg0, int arg1, int arg2, int arg3,\n LivingEntity arg4) {\n\n }", "title": "" }, { "docid": "a818b6612ec3a0ca57403d0a6c46415e", "score": "0.53277844", "text": "public void move(){\r\n \t\t//TODO\r\n \t}", "title": "" }, { "docid": "95b7d91a766ea37652bcc038f2296fe1", "score": "0.5326617", "text": "public abstract Element move(int xoff, int yoff);", "title": "" }, { "docid": "00e91ecd7f1df0d283264c9ae44155cb", "score": "0.53232694", "text": "private void moveToPlayer() {\r\n\t\t\r\n\t\tPlayer master = sumo.getMaster();\r\n\t\t\r\n\t\t// Bats need to be constantly updated to work properly\r\n\t\tif (sumo.getEntity() instanceof Bat) {\r\n\t\t\t\r\n\t\t\tLocation moveLocation = AIUtility.randomizeLocation(master.getLocation(), maxFollowRange);\r\n\t\t\tsumo.setPath(moveLocation);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tdouble distanceToMaster = master.getLocation().distance(sumo.getEntity().getLocation());\r\n\t\t\r\n\t\t// Update location if the player is outside the follow range\r\n\t\tif (distanceToMaster > maxFollowRange) {\r\n\t\t\t\r\n\t\t\tLocation moveLocation = AIUtility.randomizeLocation(master.getLocation(), maxFollowRange);\r\n\t\t\tsumo.setPath(moveLocation);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif (sumo.getDestinationLocation() == null)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tdouble distanceToDestination = sumo.getDestinationLocation().distance(sumo.getEntity().getLocation());\r\n\t\t\r\n\t\t// If Sumo is just hanging around, then set a random chance that they'll 'wander' somewhere else\r\n\t\tif (distanceToDestination < 3) {\r\n\t\t\t\r\n\t\t\tfloat randomNumber = AIUtility.getRandomNumber(0, 20);\r\n\t\t\t\r\n\t\t\tif (randomNumber < 1) {\r\n\t\t\t\r\n\t\t\t\tLocation moveLocation = AIUtility.randomizeLocation(master.getLocation(), maxFollowRange);\r\n\t\t\t\tsumo.setPath(moveLocation);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b10cf650e6a975b25e6c68b0261f773c", "score": "0.53213745", "text": "boolean canMoveDirectly();", "title": "" }, { "docid": "ef469b2d222f6ba454f35cf70406960e", "score": "0.5315907", "text": "public boolean attemptTeleport(double x, double y, double z) {\n/* 3092 */ double d0 = this.posX;\n/* 3093 */ double d1 = this.posY;\n/* 3094 */ double d2 = this.posZ;\n/* 3095 */ this.posX = x;\n/* 3096 */ this.posY = y;\n/* 3097 */ this.posZ = z;\n/* 3098 */ boolean flag = false;\n/* 3099 */ BlockPos blockpos = new BlockPos(this);\n/* 3100 */ World world = this.world;\n/* 3101 */ Random random = getRNG();\n/* */ \n/* 3103 */ if (world.isBlockLoaded(blockpos)) {\n/* */ \n/* 3105 */ boolean flag1 = false;\n/* */ \n/* 3107 */ while (!flag1 && blockpos.getY() > 0) {\n/* */ \n/* 3109 */ BlockPos blockpos1 = blockpos.down();\n/* 3110 */ IBlockState iblockstate = world.getBlockState(blockpos1);\n/* */ \n/* 3112 */ if (iblockstate.getMaterial().blocksMovement()) {\n/* */ \n/* 3114 */ flag1 = true;\n/* */ \n/* */ continue;\n/* */ } \n/* 3118 */ this.posY--;\n/* 3119 */ blockpos = blockpos1;\n/* */ } \n/* */ \n/* */ \n/* 3123 */ if (flag1) {\n/* */ \n/* 3125 */ setPositionAndUpdate(this.posX, this.posY, this.posZ);\n/* */ \n/* 3127 */ if (world.getCollisionBoxes(this, getEntityBoundingBox()).isEmpty() && !world.containsAnyLiquid(getEntityBoundingBox()))\n/* */ {\n/* 3129 */ flag = true;\n/* */ }\n/* */ } \n/* */ } \n/* */ \n/* 3134 */ if (!flag) {\n/* */ \n/* 3136 */ setPositionAndUpdate(d0, d1, d2);\n/* 3137 */ return false;\n/* */ } \n/* */ \n/* */ \n/* 3141 */ int i = 128;\n/* */ \n/* 3143 */ for (int j = 0; j < 128; j++) {\n/* */ \n/* 3145 */ double d6 = j / 127.0D;\n/* 3146 */ float f = (random.nextFloat() - 0.5F) * 0.2F;\n/* 3147 */ float f1 = (random.nextFloat() - 0.5F) * 0.2F;\n/* 3148 */ float f2 = (random.nextFloat() - 0.5F) * 0.2F;\n/* 3149 */ double d3 = d0 + (this.posX - d0) * d6 + (random.nextDouble() - 0.5D) * this.width * 2.0D;\n/* 3150 */ double d4 = d1 + (this.posY - d1) * d6 + random.nextDouble() * this.height;\n/* 3151 */ double d5 = d2 + (this.posZ - d2) * d6 + (random.nextDouble() - 0.5D) * this.width * 2.0D;\n/* 3152 */ world.spawnParticle(EnumParticleTypes.PORTAL, d3, d4, d5, f, f1, f2, new int[0]);\n/* */ } \n/* */ \n/* 3155 */ if (this instanceof EntityCreature)\n/* */ {\n/* 3157 */ ((EntityCreature)this).getNavigator().clearPathEntity();\n/* */ }\n/* */ \n/* 3160 */ return true;\n/* */ }", "title": "" }, { "docid": "032e19632f290c5609b12a7379faec65", "score": "0.53125215", "text": "@Override\r\n public void move(final Direction direction, final String snakeId) {\n\r\n }", "title": "" }, { "docid": "2beb476470a34488df7c3228bc2225d7", "score": "0.5310687", "text": "public Place chooseHit() {\n int startX, startY;\n startX = previous.getX();\n startY = previous.getY();\n Log.d(\"SMART\",\"previous @ \" +startX+ \", \" +startY);\n if ( hadShip[startX][startY] ) {\n // can go south\n if ( possible(startX+1,startY) && !hit[startX+1][startY] )\n return previous = new Place(startX+1,startY);\n //can go north\n if ( possible(startX-1,startY) && !hit[startX-1][startY] )\n return previous = new Place(startX-1,startY);\n // can go east\n if ( possible(startX,startY+1) && !hit[startX][startY+1] )\n return previous = new Place(startX,startY);\n //can go north\n if ( possible(startX,startY-1) && !hit[startX][startY-1] )\n return previous = new Place(startX,startY-1);\n }\n return randomize();\n }", "title": "" }, { "docid": "0170508626d37ddc3a20e09ad9b61482", "score": "0.5310684", "text": "protected void scanForTarget() {\r\n\t\tfor (Player player : entity.getMap().getPlayers()) {\r\n\t\t\tfloat dX = (entity.getFootX() - player.getFootX());\r\n\t\t\tfloat dY = (entity.getFootY() - player.getFootY());\r\n\t\t\tif (dX * dX + dY * dY < this.activationZoneDist * this.activationZoneDist)//If within, set as target\r\n\t\t\t\tthis.target = player;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "27f6896c475b36b2ce1ed4a503c6fea1", "score": "0.5306253", "text": "public void move(int time) {\r\n\t\tif (this.blocked) System.out.println(this.toString() + \"\\n\\t is blocked and can't move!\");\r\n\t\telse super.move(time);\r\n\t}", "title": "" }, { "docid": "a7792906e194ddcc1c75d0d9c8b1b489", "score": "0.5298065", "text": "public synchronized Pair<Integer, Integer> dumbMove() {\n\t\tSystem.out.println(this);\n\t\tPair<Integer, Integer> nextStep = null;\n\t\tif (finalPos == null || actualPos == null)\n\t\t\treturn null;\n\t\tif (actualPos.getKey() < finalPos.getKey()) {\n\t\t\tnextStep = new Pair<Integer, Integer>(actualPos.getKey() + 1, actualPos.getValue());\n\t\t} else if (actualPos.getKey() > finalPos.getKey()) {\n\t\t\tnextStep = new Pair<Integer, Integer>(actualPos.getKey() - 1, actualPos.getValue());\n\t\t} else if (actualPos.getValue() < finalPos.getValue()) {\n\t\t\tnextStep = new Pair<Integer, Integer>(actualPos.getKey(), actualPos.getValue() + 1);\n\t\t} else if (actualPos.getValue() > finalPos.getValue()) {\n\t\t\tnextStep = new Pair<Integer, Integer>(actualPos.getKey(), actualPos.getValue() - 1);\n\t\t} else\n\t\t\treturn null;\n\n\t\tString agentId = board.fecthAgentIdInPos(nextStep);\n\t\tif (agentId.isEmpty()) {\n\t\t\treturn nextStep;\n\t\t} else {\n\t\t\tSystem.out.println(\"Ask \" + agentId + \" to move\");\n\t\t\tthis.board.getMailbox().postMessage(Integer.valueOf(agentId), \"Please move\");\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "bebd088054fc448c27ac00d899789549", "score": "0.52961576", "text": "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2fd182d5b1eba6178cd91272f35c71f", "score": "0.52937996", "text": "public abstract boolean moveIt();", "title": "" }, { "docid": "393ebe97d8959ebc313af765efd8fad3", "score": "0.52927107", "text": "public static boolean movePieceOnRailroad(int compareXorY, int currentCoordinate, int destinationCoordinate, int constantCoordinate)\n {\n if (currentCoordinate > destinationCoordinate)\n {\n //are there any pieces in the way between this current piece and its destination along the specified coordinates?\n for (int postNumber = currentCoordinate - 1; postNumber >= destinationCoordinate; postNumber--)\n {\n //coordinates of the movement will depend on whether the x or y values are being compared. If x is being compared, the constantCoordinate is a y coordinate and vice versa.\n if (compareXorY == 0)\n {\n //what if the posts in between arent on the railroad?\n if (!onRailroad(constantCoordinate, postNumber)) return false;\n //if there is a piece in between current and destination locations, the piece that has been selected will then attack that piece in the way of movement\n if (board.getPiece(constantCoordinate, postNumber) != null)\n {\n return board.movePiece(constantCoordinate, currentCoordinate, constantCoordinate, postNumber);\n }// end of if (board.getPiece(constantCoordinate, postNumber) != null)\n }// end of if (compareXorY == 0)\n else if (compareXorY == 1)\n {\n if (!onRailroad(postNumber, constantCoordinate)) return false;\n if (board.getPiece(postNumber, constantCoordinate) != null)\n {\n return board.movePiece(currentCoordinate, constantCoordinate, postNumber, constantCoordinate);\n }// end of if (board.getPiece(postNumber, constantCoordinate) != null)\n }// end of else if (compareXorY == 1)\n //what if there are no pieces in between the current position and its destination\n if (postNumber == destinationCoordinate)\n {\n if (compareXorY == 0)\n {\n return board.movePiece(constantCoordinate, currentCoordinate, constantCoordinate, destinationCoordinate);\n }// end of if (compareXorY == 0)\n else if (compareXorY == 1)\n {\n return board.movePiece(currentCoordinate, constantCoordinate, destinationCoordinate, constantCoordinate);\n }// end of else if (compareXorY == 1)\n }// end of if (postNumber == destinationCoordinate)\n }// end of for (int postNumber = currentCoordinate - 1; postNumber >= destinationCoordinate; postNumber--)\n }// end of if (currentCoordinate > destinationCoordinate)\n else if (currentCoordinate < destinationCoordinate)\n {\n //pieces in between?\n for (int postNumber = currentCoordinate + 1; postNumber <= destinationCoordinate; postNumber++)\n {\n //coordinates depend on whether x or y is being compared\n if (compareXorY == 0)\n {\n //if posts in between arent on railroads\n if (!onRailroad(constantCoordinate, postNumber)) return false;\n //if there is a piece in between\n if (board.getPiece(constantCoordinate, postNumber) != null)\n {\n return board.movePiece(constantCoordinate, currentCoordinate, constantCoordinate, postNumber);\n }// end of if (board.getPiece(constantCoordinate, postNumber) != null) \n }// end of if (compareXorY == 0)\n else if (compareXorY == 1)\n {\n if (!onRailroad(postNumber, constantCoordinate)) return false;\n if (board.getPiece(postNumber, constantCoordinate) != null)\n {\n return board.movePiece(currentCoordinate, constantCoordinate, postNumber, constantCoordinate);\n }// end of if (board.getPiece(constantCoordinate, postNumber) != null) \n }// end of if (compareXorY == 1)\n //if there are no pieces in between\n if (postNumber == destinationCoordinate)\n {\n if (compareXorY == 0)\n {\n return board.movePiece(constantCoordinate, currentCoordinate, constantCoordinate, destinationCoordinate);\n }// end of if (compareXorY == 0)\n else if (compareXorY == 1)\n {\n return board.movePiece(currentCoordinate, constantCoordinate, destinationCoordinate, constantCoordinate);\n }// end of if (compareXorY == 1)\n }// end of if (postNumber == destinationCoordinate)\n }// end of for (int postNumber = currentCoordinate + 1; postNumber <= destinationCoordinate; postNumber++)\n }// end of if (currentCoordinate < destinationCoordinate) \n return false;\n }", "title": "" }, { "docid": "17c00703d92c9083d0d94d10a3492811", "score": "0.5279439", "text": "static boolean tryBugPath(MapLocation target) throws GameActionException{\n Direction dir = rc.getLocation().directionTo(target);\n currentDistToTarget = rc.getLocation().distanceSquaredTo(target); // set every bug move\n if (rc.canMove(dir) && (rc.sensePassability(rc.getLocation().add(dir))) >= passThreshold\n && currentDistToTarget <= prevDistToTarget){\n rc.move(dir);\n bugDir = null;\n }\n else{ // blocked, move along left side of obstacle\n if (bugDir == null)\n bugDir = dir.rotateLeft();\n for (int i = 0; i < 8; ++i) {\n if (rc.canMove(bugDir) && rc.sensePassability(rc.getLocation().add(bugDir)) >= passThreshold) {\n rc.move(bugDir);\n bugDir = bugDir.rotateLeft();\n break;\n }\n bugDir = bugDir.rotateRight();\n }\n }\n prevDistToTarget = currentDistToTarget;\n return true;\n }", "title": "" }, { "docid": "8faf278a1124705bfca24ca3445c209a", "score": "0.52791643", "text": "public void moveTo(int[] endTarget) throws IllegalPositionException {\r\n\t\r\n\t\tif (isFalling()) {\r\n\t\t\tif (getAssignedTask() != null) {\r\n\t\t\t\tgetAssignedTask().interruptTask();\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!world.getCubeType(endTarget[0], endTarget[1], endTarget[2]).isPassableTerrain()) {\r\n\t\t\tif (getAssignedTask() != null) {\r\n\t\t\t\tgetAssignedTask().interruptTask();\r\n\t\t\t}\r\n\t\t\tthrow new IllegalPositionException(new double[] {(double) endTarget[0]+0.5, (double) endTarget[1]+0.5, (double) endTarget[2]+0.5});\r\n\t\t}\r\n\t\t\t\t\r\n\t\tint[] currentCubeLoc = getPositionObj().getOccupiedCube();\r\n\t\tCube currentCube = world.getCube(currentCubeLoc[0], currentCubeLoc[1], currentCubeLoc[2]);\r\n\t\t\r\n\t\tif (Arrays.equals(endTarget, currentCubeLoc)){\r\n\t\t\tif (getAssignedTask() != null) {\r\n\t\t\t\tstartNewPending();\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tglobalTarget = endTarget;\r\n\t\t\t\t\t\r\n\t\tqueue.put(world.getCube(endTarget[0], endTarget[1], endTarget[2]),0 );\t\t\r\n\t\t\r\n\t\tboolean expandingQueue = true;\r\n\r\n\t\twhile (!queue.containsKey(currentCube) && expandingQueue){\r\n\t\t\t\r\n\t\t\tHashMap<Cube,Integer> temp = new HashMap<Cube, Integer>();\r\n\t\t\tfor (HashMap.Entry<Cube, Integer> cube : queue.entrySet()){\r\n\t\t\t\tif (cube.getValue() == currentLvl){\r\n\t\t\t\t\ttemp.put(cube.getKey(), currentLvl);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint prevQLength = queue.size();\r\n\t\t\tfor (HashMap.Entry<Cube, Integer> tempCube : temp.entrySet()){\r\n\t\t\t\tsearch(tempCube.getKey().getCubePosition(),currentLvl);\r\n\t\t\t}\r\n\t\t\tint newQLength = queue.size();\r\n\t\t\tcurrentLvl += 1;\r\n\t\t\tif (prevQLength == newQLength) {\r\n\t\t\t\texpandingQueue = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (expandingQueue) {\r\n\t\t\tCube nextCube = null;\r\n\t\t\t\r\n\t\t\tfor (Cube cube : getPositionObj().getNeighbouringCubes(currentCubeLoc)){\r\n\t\t\t\tif (queue.containsKey(cube) && queue.get(cube) < currentLvl){\r\n\t\t\t\t\tcurrentLvl = queue.get(cube);\r\n\t\t\t\t\tnextCube = cube;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (nextCube == null) {\r\n\t\t\t\tfor (Cube cube : getPositionObj().getNeighbouringCubes(currentCubeLoc)){\r\n\t\t\t\t\tif (queue.containsKey(cube) && queue.get(cube) == currentLvl){\r\n\t\t\t\t\t\tcurrentLvl = queue.get(cube);\r\n\t\t\t\t\t\tnextCube = cube;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (nextCube != null) {\r\n\t\t\t\tint dx = nextCube.getCubePosition()[0]-currentCube.getCubePosition()[0];\r\n\t\t\t\tint dy = nextCube.getCubePosition()[1]-currentCube.getCubePosition()[1];\r\n\t\t\t\tint dz = nextCube.getCubePosition()[2]-currentCube.getCubePosition()[2];\r\n\t\t\t\tmoveToAdjacent(dx,dy,dz, true);\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tqueue = new HashMap<Cube, Integer>();\r\n\t\t\t\tcurrentLvl = 0;\r\n\t\t\t\tmoveTo(endTarget);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (getAssignedTask() != null) {\r\n\t\t\t\tgetAssignedTask().interruptTask();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tqueue = new HashMap<Cube, Integer>();\r\n\t\tcurrentLvl = 0;\r\n\t}", "title": "" }, { "docid": "76d1d04426f6111a701a8c79636c2a2c", "score": "0.52785087", "text": "private void bounceOnBlock(double blockSide){\n\t\t//BlockSide: 0 = left, 1 = top, 2 = right, 3 = bottom\n\n\t\tif(dir.getX() > 0){\n\t\t\t//Ball moving to the right\n\t\t\tif(dir.getY() > 0){\n\t\t\t\t//Ball moving down\n\t\t\t\tif(blockSide == 0 || blockSide == 3){\n\t\t\t\t\t//Ball hit left or bottom side of the block\n\t\t\t\t\tswitchXDir();\n\t\t\t\t} else {\n\t\t\t\t\t//Ball hit bottom or top of the block\n\t\t\t\t\tswitchYDir();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//Ball moving up\n\t\t\t\tif(blockSide == 0 || blockSide == 1){\n\t\t\t\t\t//Ball hit left or top side of the block\n\t\t\t\t\tswitchXDir();\n\t\t\t\t} else {\n\t\t\t\t\t//Ball hit bottom or top of the block\n\t\t\t\t\tswitchYDir();\n\t\t\t\t}\n\t\t\t}\n\t\t} else if(dir.getX() <= 0) {\n\t\t\t//Ball moving to the left\n\t\t\tif(dir.getY() > 0){\n\t\t\t\t//Ball moving down\n\t\t\t\tif(blockSide == 2 || blockSide == 3){\n\t\t\t\t\t//Ball hit the right or top side of the block\n\t\t\t\t\tswitchXDir();\n\t\t\t\t} else {\n\t\t\t\t\tswitchYDir();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//Ball moving up\n\t\t\t\tif(blockSide == 2 || blockSide == 1){\n\t\t\t\t\t//Ball hit the right or top side of the block\n\t\t\t\t\tswitchXDir();\n\t\t\t\t} else {\n\t\t\t\t\tswitchYDir();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c1482284d62486bdb8eb006854cfabd7", "score": "0.5271649", "text": "protected void turnAround() {\n goingRight = !goingRight;\n }", "title": "" }, { "docid": "0ad5498210417acaec0a1b83e320afd7", "score": "0.52611506", "text": "@Test\n public void testBoundsMovementSouth() {\n Board board = getLevel0Board();\n mapBoardTiles = board.getTileArray();\n\n context.executeMovements(board, board.getChip(), \"sss\");\n assertTrue(mapBoardTiles[7][4].containsChip());\n context.executeMovements(board, board.getChip(), \"assss\");\n assertTrue(mapBoardTiles[8][3].containsChip());\n\n }", "title": "" }, { "docid": "e90fc91cfce419854fceb754e0b06a20", "score": "0.52601445", "text": "public boolean moveFlow(OFMatch match, Path srcPath, Path dstPath, long cookie);", "title": "" } ]
68d381fc81363194dda16c480d562be9
/ JADX INFO: super call moved to the top of the method (can break code semantics)
[ { "docid": "301188cd8d0e87b95e082723e9d97aca", "score": "0.0", "text": "public a(SNSPreviewSelfieViewModel sNSPreviewSelfieViewModel, File file, Continuation continuation) {\n super(2, continuation);\n this.c = sNSPreviewSelfieViewModel;\n this.d = file;\n }", "title": "" } ]
[ { "docid": "c3bc7b82bc9ecd5015bdbe99b23a1ea2", "score": "0.7600753", "text": "public void method_484() {\r\n super();\r\n }", "title": "" }, { "docid": "cb77700a914077609e7c2b2f11116582", "score": "0.7415376", "text": "public void method_6349() {\r\n super.method_6349();\r\n }", "title": "" }, { "docid": "a4e0f91a4d31d1e082ad323e3764fbd3", "score": "0.7120564", "text": "public void method_1449() {\r\n super.method_1449();\r\n }", "title": "" }, { "docid": "339ae934be52830c24f3fdcba0151c67", "score": "0.70686686", "text": "protected Method() {\n\tsuper();\n\treturn;\n }", "title": "" }, { "docid": "46dd2798c1743648967eb9beb2869233", "score": "0.70116377", "text": "@Override\r\n\tprotected void method4() {\n\t\tsuper.method4();\r\n\t}", "title": "" }, { "docid": "a2ee73edf4a78bc9bcf247ff17964485", "score": "0.69600207", "text": "@Override\r\n\tprotected void xyz(){\r\n\t\tsuper.xyz();\r\n\t}", "title": "" }, { "docid": "dd5eb049b1e3fb69799e1579f6ba61ec", "score": "0.6953823", "text": "public void method_651() {\r\n super.method_651();\r\n }", "title": "" }, { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.689706", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3a3df32f04eb1c3118fc8ceb69db395d", "score": "0.68217486", "text": "@Override\n\tpublic void curar() {\n\t\t\n\t}", "title": "" }, { "docid": "9b9787eedaf8ab2866634795354c59ac", "score": "0.67617655", "text": "@Override\n\tprotected void special() {\n\n\t}", "title": "" }, { "docid": "16c30d73c1df796c0e31e93eb0f6e02e", "score": "0.67426395", "text": "@Override\r\n\tpublic void atacar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "73b8b8eec1e17eae8b8035336277ea1b", "score": "0.67006516", "text": "@Override\n\tpublic void sub() {\n\t\t\n\t}", "title": "" }, { "docid": "c22e85d8c293c23e5270f1fbdb677ea4", "score": "0.6698016", "text": "@Override\r\n protected void doo_()\r\n {\n }", "title": "" }, { "docid": "bc3a08c64e443ee86473be048cb9738a", "score": "0.6696717", "text": "private void smth() {\n\n\t\t}", "title": "" }, { "docid": "37119cc4e9f8bfa721dd02ad93ee6120", "score": "0.6671423", "text": "@Override\n\tpublic void mostrarse() {\n\t\tsuper.mostrarse();\n\t}", "title": "" }, { "docid": "657d87f4ac2918ce5fce84e83ea3855b", "score": "0.6658784", "text": "@Override\n\tpublic void arreglar() {\n\n\t}", "title": "" }, { "docid": "58c0d1fc479ed15a669ebf6f871533b3", "score": "0.6634166", "text": "@Override\r\n\tpublic void foo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6605483", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "cdf542363f5b089e84183e3d9020935f", "score": "0.6575855", "text": "@Override\n\t protected void ramana() {\n\t\t\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.6556847", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.6531764", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ad25be891046838900b37d5cdf75010b", "score": "0.65086967", "text": "@Override\r\n\tpublic void arabaGecer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80510a7a2fbd76948fe3608208e1c8df", "score": "0.6486531", "text": "public static void insane() {\n\t\t\n\t}", "title": "" }, { "docid": "6df18bf87e94283ff1dc9e42da6f5d7f", "score": "0.64778304", "text": "protected abstract void beschreiben();", "title": "" }, { "docid": "ea9e446f91664fee1580be3d45fc2e8a", "score": "0.64769936", "text": "@Override\r\n\tpublic void reagir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "241eb647f4d668109453212b73530901", "score": "0.64592516", "text": "@Override\r\n\tprotected void method3() {\n\t\tsuper.method3();\r\n\t}", "title": "" }, { "docid": "16170a7948edf0bb8a90dfe0ac4fec33", "score": "0.6443627", "text": "@Override\n\t\t\tpublic void 짜장면() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1b6ae1f9acb8e538994b7d00bae50317", "score": "0.6442175", "text": "@Override\n\tprotected void skirmish() {\n\n\t}", "title": "" }, { "docid": "95aa3a2220bec980fc9016a4426ee2b7", "score": "0.6430001", "text": "@Override\n\tpublic void comenzar() {\n\t\t\n\t}", "title": "" }, { "docid": "12fae01a3c575f170627ae223fa8d338", "score": "0.64286035", "text": "@Override\r\n\tprotected int meth() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "2d915b01ed96d52652ee91561730e3de", "score": "0.64251316", "text": "private void privateMethod() {\n // super.privateMethod();\n }", "title": "" }, { "docid": "b0be1758abfd2d1e94d68984d00c1cb4", "score": "0.64236206", "text": "@Override\n\t\t\tpublic void p2() {\n\t\t\t\tsuper.p2();\n\t\t\t}", "title": "" }, { "docid": "e9d850bb9eb68fae7e9c6737bf48eeed", "score": "0.64016646", "text": "protected void special() {\n\t}", "title": "" }, { "docid": "4b7fdd53bc82dbb20a5041a50b4fcc52", "score": "0.6374234", "text": "@Override\n\tpublic void ss() {\n\t\tsuper.ss();\n\t}", "title": "" }, { "docid": "2411b5e4c1b1026bf6364d3133caa1af", "score": "0.6366561", "text": "default void document2_OverridableSuperMethod() {\n throw new IllegalStateException(\"Cannot call it\");\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.63538253", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.63538253", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "92ca60c14b9e9bf9cfed6703c4ddea43", "score": "0.63352257", "text": "@Override\r\n\tpublic void accionar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "482d92acda26fc41523278bb982ed7e9", "score": "0.63269204", "text": "@Override\n\tpublic void platesteContactless() {\n\t\t\n\t}", "title": "" }, { "docid": "fdc4ef2b5e906714a82a75f33f832724", "score": "0.63068557", "text": "@Override\n\tpublic void cheer() {\n\t\t\n\t}", "title": "" }, { "docid": "7a9b0409fa9857434dd4705b825fd875", "score": "0.6299146", "text": "@Override\n\tpublic void method() {\n\t\t\n\t}", "title": "" }, { "docid": "7a9b0409fa9857434dd4705b825fd875", "score": "0.6299146", "text": "@Override\n\tpublic void method() {\n\t\t\n\t}", "title": "" }, { "docid": "69ade76a69c0f6c07e66b5d0e5136eb3", "score": "0.6287852", "text": "@Override\r\n\tpublic void grabar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9fea9b1bc553e2601448006c3e0a3f97", "score": "0.6262588", "text": "@Override\r\n\tpublic void foo2() {\n\t\tB.super.foo2();\r\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6261512", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2088984fb9acdebab8e561f7a2157e1", "score": "0.6255014", "text": "@Override\n\tpublic void florear() {\n\t\tsuper.florear();\n\t}", "title": "" }, { "docid": "8d4a8e8b75d2e2f907b4faad3ddffc3d", "score": "0.62499315", "text": "@Override\r\n\tprotected void pro() {\n\t\tsuper.pro();\r\n\t}", "title": "" }, { "docid": "e209517a20595deaa191e44a3de94af0", "score": "0.6246704", "text": "protected void method_2832() {\r\n super.method_2427(awt.field_4174);\r\n }", "title": "" }, { "docid": "1a0e5ed7432f278f3f68a25243b611a4", "score": "0.6238024", "text": "@Override\n\tpublic void aaa03() {\n\t\t\n\t}", "title": "" }, { "docid": "b170644b5f62da8ffc03dae1024a0a2a", "score": "0.62327456", "text": "@Override\n\tprotected void prepareImpl() {\n\t\t\n\t}", "title": "" }, { "docid": "956f04a21caacb4433b93f58d7db3da7", "score": "0.62211037", "text": "@Override\n public void method(){\n Sea.super.method();\n Air.super.method();\n }", "title": "" }, { "docid": "1230869b6ca7aedf2e9d1d69406b1024", "score": "0.6219721", "text": "@Override\n\tpublic void correr() {\n\t\t\n\t}", "title": "" }, { "docid": "7c095c57d10901c0fda3f8584611b8a8", "score": "0.61930984", "text": "@Override\n protected void init () {\n }", "title": "" }, { "docid": "f0705d77863f0fa7c516a99a8eca8134", "score": "0.61913264", "text": "private void zbudujSciezkeiRozpocznij() {\n\t\t\r\n\t}", "title": "" }, { "docid": "71e31db453c1e55dca9a1f8a2ce781ba", "score": "0.6183837", "text": "@Override\r\n\tvoid smpab2() {\n\t\tSystem.out.println(\"unimp methods is implemeted in child class\");\r\n\t}", "title": "" }, { "docid": "86cc7a250573cf92b9c0ec2841f0a3b1", "score": "0.61676776", "text": "private void boof() {}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61612153", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "be1ab6202e622f8617fafadfa80e8b14", "score": "0.6160802", "text": "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "title": "" }, { "docid": "7bee93559f0102825f5a5cc09f28432f", "score": "0.61502475", "text": "@Override\n\tpublic void method4() {\n\t\t\n\t}", "title": "" }, { "docid": "b5fddfa4076f11747eea34bf34f3e832", "score": "0.61366165", "text": "@Override\n\tpublic void baseAction() {\n\n\t}", "title": "" }, { "docid": "985cfd2e7d904b89bad6b8c1045fa0a4", "score": "0.6132787", "text": "@Override\n\tprotected void guard() {\n\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.6128689", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ae239ec4d66d28c747727af16af8d2c5", "score": "0.6118217", "text": "@Override\r\n\tpublic void preInvoke() {\n\t\t\r\n\t}", "title": "" }, { "docid": "af2c74a7b041991c3a99a767848e88b6", "score": "0.61114484", "text": "@Override\r\n\tpublic void gg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e291aff76c05742fcc8d54c2278e079f", "score": "0.61093855", "text": "@Override\r\n \tprotected void checkSubclass() {\n \t}", "title": "" }, { "docid": "c598a2e3f3aed7447c40167abd0815be", "score": "0.61008936", "text": "@Override\r\n\tpublic void kanalizasyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7f3a0dd916c6d29bd80f66e115ea816f", "score": "0.60984313", "text": "@Override\n\tpublic void obscuring() {\n\t\t\n\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.60934544", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.6092623", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.6092623", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "1536d6f34d3d9bf3eac9fdbedfc54b7c", "score": "0.6091066", "text": "@Override\r\n\t\t\tpublic void m4() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "4d5d5c56ef0c19b02a1e3771af85da2c", "score": "0.6082803", "text": "public final /* bridge */ /* synthetic */ void mo17144d() {\n super.mo17144d();\n }", "title": "" }, { "docid": "b464d5ea9cbe8efcfe293d9bc2a89b36", "score": "0.6081419", "text": "@Override\r\n\tvoid customPreExcuteDoing() {\n\r\n\t}", "title": "" }, { "docid": "084495c06f2cb3fa7d22b44a483a0614", "score": "0.6062683", "text": "@Override\n\tpublic void DoSomething() {\n\t\t\n\t}", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.6060041", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "50351fd9c92af52d86fa92fec76f4274", "score": "0.6054498", "text": "@Override\r\n\tpublic void insanGecer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4140506dba901af104a0200733dcc9f8", "score": "0.60537344", "text": "@Override\n\tpublic void methodCommon() {\n\t\t\n\t}", "title": "" }, { "docid": "c081f6b796851b26f184bf0f5bbf469c", "score": "0.6050556", "text": "@Override\n\tpublic void dientich() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.60441446", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "235772828b460a414a66709e6096b938", "score": "0.6033796", "text": "@Override\r\n protected void initialize() {\r\n }", "title": "" }, { "docid": "86178ead446ffda63d77a8bd416365ff", "score": "0.6033615", "text": "public synchronized void doSomething() {\n\n\t\tSystem.out.printf(\">>>>>>> %1$s is calling super.doSomgthing() ... ...\\n\",\n\t\t\t\tthis.getClass().getSimpleName());\n\n\t\tsuper.doSomething();\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.60323876", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.60323876", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.60323876", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.60323876", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.60323876", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.60323876", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.60323876", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.60323876", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.60323876", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "0dc9727b8f49b05d15224cbd1750c12b", "score": "0.6031068", "text": "@Override\r\n\tprotected\r\n\t void process() {\n\t\tsuper.process();\r\n\t}", "title": "" }, { "docid": "19310e0e5a51dea31db31e55387ec600", "score": "0.6026897", "text": "@Override\r\n public void method3()\r\n {\n }", "title": "" }, { "docid": "19310e0e5a51dea31db31e55387ec600", "score": "0.6026897", "text": "@Override\r\n public void method3()\r\n {\n }", "title": "" }, { "docid": "19310e0e5a51dea31db31e55387ec600", "score": "0.6026897", "text": "@Override\r\n public void method3()\r\n {\n }", "title": "" }, { "docid": "9455a0874fee2d3d3a479f17839de7fa", "score": "0.60188216", "text": "@Override\r\n\tpublic void bye() {\n\t\t\r\n\t}", "title": "" }, { "docid": "64abaa4d258c9e042f52fd7249821f80", "score": "0.6014384", "text": "public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }", "title": "" }, { "docid": "8c56ae9345924f372c714cdd7a33ffe3", "score": "0.6013136", "text": "public final /* bridge */ /* synthetic */ void mo17143c() {\n super.mo17143c();\n }", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.60078406", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "edacc691e1c745cc86b997847d58f413", "score": "0.60039616", "text": "@Override\n\t\tprotected void beforeGoOn() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "31d4487a868a7dc81dfde93aa95013c4", "score": "0.6002265", "text": "@Override\n\tprotected void initialize() {\t}", "title": "" }, { "docid": "3ae11265c94d43d371b3abfbfb21ff8a", "score": "0.6001422", "text": "@Override\n \tpublic void think() {\n \t\t\n \t\t\n \t}", "title": "" } ]
d516d01d8b607ee2c1f69db15ba90144
/System.setProperty("webdriver.chrome.driver", "/home/nagendra/Downloads/chromedriver"); WebDriver driver=new ChromeDriver(); driver.get(" + "siteid=203&co_partnerId=0&UsingSSL=1&rv4=1&ru=https%3A%2F%2F
[ { "docid": "8d6232d00688b9bc6b0c8691fb597fca", "score": "0.0", "text": "public static void main(String[] args) throws FileNotFoundException, IOException {\n\t\n\t\n MyXSSFReader reader=new MyXSSFReader(\"/src/com/example/config/DataSheet.xlsx\", \"Data\");\n \n Object[][] obj=reader.getData();\n /*for(Object[] obj1:obj) {\n \tfor(Object obj2:obj1) {\n \t\tSystem.out.print(obj2+\" \");\n \t}\n \tSystem.out.println();\n }*/\n \n for(int i=1;i<obj.length-1;i++) {\n \tfor(int j=0;j<obj[i].length-1;j++) {\n \t\tSystem.out.print(obj[i][j]+\" \");\n \t}\n \tSystem.out.println();\n }\n\t\n\n\t}", "title": "" } ]
[ { "docid": "98a8e4c895756033aa3797bfaaf95feb", "score": "0.74927443", "text": "public static void main(String[] args) {\n System.out.println(\"hello\");\n System.setProperty(\"webdriver.chrome.driver\", \"/D:/Driveri/chromedriver\");\n WebDriver obj = new ChromeDriver();\n obj.get(\"https://www.google.rs/\");\n }", "title": "" }, { "docid": "833fe13e12a74fe09649eba699984791", "score": "0.7491864", "text": "public void ChromeLaunch() {\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Personal\\\\Downloads\\\\Orange_HRM.zip (Unzipped Files)\\\\Orange_HRM\\\\src\\\\test\\\\resources\\\\Drivers\\\\chromedriver.exe\");\r\n\t\t driver = new ChromeDriver();\r\n\t\t driver.manage().window().maximize();\r\n\t }", "title": "" }, { "docid": "c87d6e58b998be6a7f9309ecc7899cc8", "score": "0.7415946", "text": "public OpenChromeDefinition() {\n System.setProperty(\"webdriver.chrome.driver\", \"D://.selenium_driver//chromedriver.exe\");\n chromeDriver = new ChromeDriver();\n chromeDriver.get(\"https://login.dev.qa-experience.com\");\n }", "title": "" }, { "docid": "24a99614e82e071a80632ed33a503dec", "score": "0.72677916", "text": "@Test\n public void startWebDriver() {\n String s = System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Administrateur\\\\Selenium Drivers\\\\chromedriver.exe\");\n\n //Initialisation de l'instance du driver\n WebDriver driver = new ChromeDriver();\n\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"--disable-extensions\");\n options.addArguments(\"start-maximized\");\n driver = new ChromeDriver(options);\n\n // Démarrage du navigateur\n driver.get(\"https://www.google.fr\");\n driver.manage().window().maximize();\n driver.navigate().to(\"http://newtours.demoaut.com/\");\n try {\n Thread.sleep(5000);\n } catch (InterruptedException ie) {\n\n }\n\n\n // Fermeture du navigateur\n driver.quit();\n }", "title": "" }, { "docid": "d1fdaf68d6ef1832c75326c749ab1066", "score": "0.7232703", "text": "@BeforeAll\npublic static void openBrowser() {\nWebDriverManager.chromedriver().setup();\n //System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\ws\\\\drivers\\\\chromedriver.exe\"); \ndriver = new ChromeDriver(); \n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); \n }", "title": "" }, { "docid": "32f09428568aadcc7f4c93f6f88c82e1", "score": "0.71876043", "text": "@BeforeClass\n public static void setupChrome() {\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Software Development\\\\Downloads\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n }", "title": "" }, { "docid": "ad3f0c4374fc2cdaf9443a1938a485cc", "score": "0.7186057", "text": "@Before\n\n\tpublic void lunchbrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".\\\\driver\\\\chromedriver.exe\");\n\n\t\t// creating web driver instance\n\t\tdriver = new ChromeDriver();\n\n\t\t// maximizing browser\n\t\tdriver.manage().window().maximize();\n\n\t\t// get to the site\n\t\tdriver.get(\"https://docs.oracle.com/javase/8/docs/api/\");\n\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t}", "title": "" }, { "docid": "7b017ab8a05907cabcbd7070b292464e", "score": "0.71854156", "text": "public static void main(String[] args) throws MalformedURLException, InterruptedException {\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"chromedriver.exe\");\n\t DesiredCapabilities obj=new DesiredCapabilities();\n\t obj.setBrowserName(\"chrome\");\n\t obj.setPlatform(Platform.WINDOWS);\n\t String sURL=\"http://192.168.29.179:4444/wd/hub\";\n WebDriver driver = new RemoteWebDriver(new URL(sURL),obj);\n driver.get(\"https://www.simplilearn.com/\");\n Thread.sleep(2000);\n\t}", "title": "" }, { "docid": "29b08e121f856f25bfae1632697708ce", "score": "0.71607924", "text": "@Test\n\tpublic void launch_google_chorme()\n\t\n\t\t{\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\tSystem.getProperty(\"user.dir\")+\"\\\\drivers\\\\Chromedriver.exe\");\n\t\t\n\t\t\tChromeDriver driver=new ChromeDriver(); \n\t\t\t\n\t\t\t//get() method is used to navigate to url in web driver\n\t\t driver.get(\"https://www.google.com/\");\n\t\t \n\t\t driver.quit();\n\t\t}", "title": "" }, { "docid": "1075c103f52bffecc7b022d92f33ce6e", "score": "0.71011025", "text": "@Before\n\t\tpublic static WebDriver launchChrome() \n\t\t{\n\t\t\t ChromeOptions options = new ChromeOptions();\n\t\t\t options.addArguments(\"chrome.switches\",\"--disable-extensions\",\"--test-type\");\n\t\t\t System.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\Drivers\\\\chromedriver.exe\");\n\t\t\t options.addArguments(\"chrome.switches\", \"--test-type\",\n\t\t\t \"--start-maximized\", \"--ignore-certificate-errors\");\n\t\t\t options.setExperimentalOption(\"useAutomationExtension\", false);\n\t\t\t options.addArguments(\"disable-infobars\");\n\t\t\t options.addArguments(\"--start-maximized\");\n\t\t\t options.setExperimentalOption(\"useAutomationExtension\", false);\n\t\t\t options.setExperimentalOption(\"excludeSwitches\",Collections.singletonList(\"enable-automation\"));\n\t\t\t options.addArguments(\"--safebrowsing-disable-extension-blacklist\",\"--safebrowsing-disable-download-protection\");\n\t\t\t HashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n\t\t\t chromePrefs.put(\"download.prompt_for_download\", true);\n\t\t\t options.setExperimentalOption(\"prefs\", chromePrefs);\n//\t\t\t DesiredCapabilities cap = DesiredCapabilities.chrome();\n//\t\t\t cap.setCapability(ChromeOptions.CAPABILITY, options);\n\t\t\t DesiredCapabilities capability = DesiredCapabilities.chrome();\n\t\t\t capability.setCapability(ChromeOptions.CAPABILITY, options);\n\t\t\t capability.setBrowserName(BrowserType.CHROME);\n\t\t\t capability.setPlatform(Platform.WINDOWS);\n\t\t\t try{\n//\t\t\t driver =new RemoteWebDriver(new URL(\"http://localhost:4444/wd/hub\"),capability);\n\t\t\t driver=new ChromeDriver(capability);\n\t\t\t }\n\t\t\t catch(Exception e){\n\t\t\t e.printStackTrace();\n\t\t\t }\n\t\t\t return driver;\n\t\t\t }", "title": "" }, { "docid": "ee4237a8ab82d28c53411c7e47a5099f", "score": "0.7078804", "text": "public void driverWebChrome(String userName) throws InterruptedException, AWTException\r\n\t{\r\n\t\t/*System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\premachandras\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\t//options.addArguments(\"https://www.udemy.com/\");\r\n\t\toptions.addArguments(\"--disable-extensions\");\r\n\t\tSystem.out.println(\"chrome drivers disibale extension\");\r\n\t\tString userName=\"premachandras\";\r\n\t\toptions.addArguments(\"user-data-dir=C:\\\\Users\\\\\"+userName+\"\\\\AppData\\\\Local\\\\Google\\\\Chrome\\\\User Data\");\t\r\n\t\toptions.addArguments(\"--start-maximized\");\r\n\t\tdriver = new ChromeDriver(options);*/\r\n\t\t Robot robot1 = new Robot();\r\n\t\t \r\n\t\tString location = \"C:\\\\automationMetadata\\\\webdriver\\\\geckodriver.exe\";\r\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", location);\r\n\t\tdriver = new FirefoxDriver();\r\n\t\t\r\n\t\tSystem.out.println(\"call java script executor method\");\r\n\t\tdriver.get(\"https://www.simplivlearning.com/\");\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"wrapper\\\"]/div[1]/div[2]/header/div[2]/a[2]\")).click();\r\n\t\tThread.sleep(2000);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tThread.sleep(10000);\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"auth-form\\\"]/div[1]/input\")).sendKeys(\"products@packt.com\");\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"auth-form\\\"]/div[2]/input\")).sendKeys(\"packt@123\");\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"auth-form\\\"]/div[4]/button\")).click();\r\n\t\tThread.sleep(3000);\r\n\t\t//driver.get(\"https://www.simpliv.com/courses/prem-testing-title-demo/edit/?step=2\");\r\n\t\t\r\n\t\tfor(int t=0;t<6;t++){\r\n\t\t\t robot1.keyPress(KeyEvent.VK_CONTROL);\r\n\t\t\t robot1.keyPress(KeyEvent.VK_MINUS);\r\n\t\t\t robot1.keyRelease(KeyEvent.VK_CONTROL);\r\n\t\t\t robot1.keyRelease(KeyEvent.VK_MINUS);\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t}\r\n\t\t\r\n\t\tJavascriptExecutor executor = (JavascriptExecutor)driver;\r\n\t\texecutor.executeScript(\"document.body.style.zoom = '0.3'\");\r\n\t}", "title": "" }, { "docid": "353e05d0091f802ca751fc501765c9cc", "score": "0.7062791", "text": "private static void navegar(String url) {\n\t\tdriver = new ChromeDriver ();\n\t\tdriver.get(url);\n\t\t\n\t}", "title": "" }, { "docid": "01118a2c540a15874c2ea57a8b484f8c", "score": "0.70235556", "text": "public static void main(String[] args) throws InterruptedException {\nSystem.setProperty(\"Webdriver.chrome.driver\", \"C:\\\\chromedriver.exe\");\nWebDriver driver= new ChromeDriver();\ndriver.get(\"https://www.google.com/\");\ndriver.findElement(By.xpath(\"//*[@id=\\'tsf\\']/div[2]/div[1]/div[1]/div/div[2]/input\")).sendKeys(\"Akhilesh\");\ndriver.manage().window().maximize();\n\nSystem.out.println(driver.getTitle());\n//driver.wait(5);\n //System.out.println(driver.getTitle());\n System.out.println(driver.getCurrentUrl());\n //System.out.println(driver.getPageSource());\n\n//driver.get(\"https://yahoo.com\");\n//driver.navigate().back();\n //driver.findElement(By.xpath(\"//*[@id=\\'email\\']\")).sendKeys(\"akhilesh954@gmail.com\");\n //driver.findElement(By.xpath(\"//*[@id=\\'pass\\']\")).sendKeys(\"AKH(9892509231)\");\n //driver.findElement(By.xpath(\"//*[@id=\\'u_0_b\\']\")).click();\n //driver.switchTo().frame(\"0\"); \n //driver.findElement(By.xpath(\"//*[@id=\\'mount_0_0\\']/div/div[1]/div[1]/div[2]/div[4]/div[1]/span/div/div[1]/div\")).click();\n\n//driver.close();\n\t}", "title": "" }, { "docid": "fe24fa144d1859758ece3a83364cf486", "score": "0.701111", "text": "public void navigateToURL(WebDriver driver){\n\t\tsiteURL=\"https://world.taobao.com/\";\n\t\tSleep(8000);\n\t\tdriver.navigate().to(baseurl+siteURL);\n}", "title": "" }, { "docid": "3a0e1734f2408c61519d1072e26ba13d", "score": "0.7002898", "text": "@Given(\"^Navigate to chromedriver$\")\n\tpublic void Navigate_to_chromedriver() throws Throwable {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"/Users/rohitbaweja/Desktop/chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t \n\t}", "title": "" }, { "docid": "5afe736b8d8c7c1c70a40522fc23e99e", "score": "0.6994829", "text": "public static void main(String[] args) {\n\t\t\n\t\tDesiredCapabilities dc= DesiredCapabilities.chrome();\n\t\tdc.acceptInsecureCerts();\n\t\tChromeOptions c = new ChromeOptions();\n\t\tc.merge(dc);\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\YUvraj\\\\Drivers\\\\Chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver(c);\n\n\t}", "title": "" }, { "docid": "1627707c8c4f036096de5de1c1235c82", "score": "0.6965632", "text": "public static void main(String[] args) throws Exception{\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver=new ChromeDriver();\n String url=\"https://google.com\";\n String url2=\"http://practice.cybertekschool.com\";\n\n // 3. Navigate back to google\n driver.get(url);\n driver.navigate().to(url2);\n Thread.sleep(2000);\n driver.navigate().back();\n Thread.sleep(2000);\n driver.navigate().forward();\n Thread.sleep(2000);\n driver.navigate().back();\n\n\n\n\n driver.close();\n\n\n\n\n\n\n }", "title": "" }, { "docid": "7fe549c264e205fc571d7df985ff1fb4", "score": "0.6946305", "text": "public void startChromeDriver ()\n\t{\n\t\tString chromePath = System.getProperty(\"user.dir\")+\"\\\\resources\\\\chromedriver.exe\";\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromePath); \n\t\tChromeOptions options = new ChromeOptions();\n\t\tdriver = new ChromeDriver(options); \n\t\tdriver.manage().window().maximize();\n\t}", "title": "" }, { "docid": "3cac6987e5987d1d406f9a34b0ffee98", "score": "0.69364053", "text": "@BeforeMethod( description = \"launching of browser\")\r\n\tpublic void launchbrowser () {\n\t WebDriverManager.chromedriver().setup();\r\n\t driver = new ChromeDriver() ;\r\n\t\t//maximize the window\t\t\r\n\t\tdriver.manage().window().maximize(); \r\n\t\t//launching the url\r\n\t\t//add implicit wait \r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS)\t;\r\n\t\tdriver.get(baseUrl);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d84a9c03c4ee2c58e482baa9fc2eb6f8", "score": "0.6935608", "text": "@BeforeMethod\n\tpublic void lunchbrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".\\\\driver\\\\chromedriver.exe\");\n\n\t\t// creating web driver instance\n\t\tdriver = new ChromeDriver();\n\n\t\t// maximizing browser\n\t\t// driver.manage().window().maximize();\n\n\t\t// get to the site\n\t\tdriver.get(\"http://www.techfios.com/ibilling/?ng=admin/\");\n\n\t\t// driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\n\t}", "title": "" }, { "docid": "544adb3cf9e731a1648e29d77c3d84c8", "score": "0.69252914", "text": "@BeforeMethod\r\n\tvoid launchBrowser() {\n\t\tdriver.get(\"https://www.guru99.com/first-webdriver-script.html\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c962e50e3cb30751e22aa73d89f3d5d0", "score": "0.69036144", "text": "public static WebDriver launchChromeTrellShop(WebDriver driver) {\n\t\tdriver = new HtmlUnitDriver();\n\t\tdriver.get(urlTrellShop);\n\t\tdriver.manage().window().maximize();\t\t\n\t\treturn driver;\n\t}", "title": "" }, { "docid": "13ba67ab558678483958bb2f2576594a", "score": "0.6901573", "text": "public void navigateToURL(WebDriver driver){\n\t\tsiteURL=\"http://www.sina.com.cn/\";\n\t\tSleep(8000);\n\t\tdriver.navigate().to(baseurl+siteURL);\n}", "title": "" }, { "docid": "3e48c829dd6f0433d5615ac533001d90", "score": "0.6899968", "text": "public static WebDriver setChrome() {\n String chromePath = \"/Users/sharmin/Desktop/IdeaProjects/darkskytest/src/main/resources/chromedriver\";\n System.setProperty(\"webdriver.chrome.driver\", chromePath);\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"start=maximized\", \"incognito\");\n WebDriver driver = new ChromeDriver(options);\n return driver;\n }", "title": "" }, { "docid": "8471c7de3102f2e6ec7369a500725b9c", "score": "0.68978274", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/home/vika/Downloads/chromedriver_linux64/chromedriver\");\r\n\t\t\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://google.com/\");//hit url on browser\r\n\t\tSystem.out.println(driver.getTitle());//Validate if your page title is correct\r\n\t\t\r\n\t\tSystem.out.println(driver.getCurrentUrl());//validate if you are landed on current url\r\n\t\t\r\n\t\t//System.out.println(driver.getPageSource());//print page source \r\n\t\t\r\n\t\tdriver.get(\"https://www.yahoo.com/\");\r\n\t\t//driver.navigate().to(\"https://www.yahoo.com/\");\r\n\t\tdriver.navigate().back();\r\n\t\t//driver.navigate().forward();\r\n\t\tdriver.close();//closes current browser\r\n\t\t//driver.quit();//closes all the browsers opened by selenium script\r\n\r\n\t}", "title": "" }, { "docid": "797dc93b84fd75c82c9f617cf1f64fb6", "score": "0.68931985", "text": "public static void main(String[] args) throws InterruptedException\r\n\t{\n\t\t\r\n\t\tString drvPath = \"\\\\driver\\\\chromedriver.exe\";\r\n\t\tSystem.setProperty(\"WebDriver.chrome.driver\",drvPath);\r\n\t\tdriver = new ChromeDriver();\r\n\t\t\r\n\t\t//String drvUrl =\"http://Shop.DemoQA.com/\" ;\r\n\t\tString drvUrl =\"https://diligenta.test.evolution-system.com/Home\" ;\r\n\t\tdriver.navigate().to(drvUrl);\r\n\t\t//driver.navigate().forward();*/\r\n\t\t\r\n\t\t Thread.sleep(1000);\r\n\t\t \r\n\t\t \r\n\t\t// Open ToolsQA web site\r\n\t\t String appUrl = \"http://www.DemoQA.com\";\r\n\t\t driver.navigate().to(appUrl);\r\n\t\t \r\n\t\t \r\n\t\t Thread.sleep(1000);\r\n\t\t \r\n\t\t // Click on Registration link\r\n\t\t//driver.findElement(By.xpath(\"//*[@id='menu-item-374']/a\")).click();\r\n\t\t\r\n\t\tdriver.findElement(By.cssSelector(\"#menu-top > li:nth-child(2) > a\")).click();\r\n\t\t \r\n\t\t Thread.sleep(1000);\r\n\t\t \r\n\t\t // Go back to Home Page\r\n\t\t driver.navigate().back();\r\n\t\t\r\n\t\t Thread.sleep(1000);\r\n\t\t \r\n\t\t // Go back to Home Page\r\n\t\t driver.navigate().back();\r\n\t\t\r\n\t\t Thread.sleep(1000);\r\n\t\t \r\n\t\t // Go forward to Registration page\r\n\t\t driver.navigate().forward();\r\n\t\t Thread.sleep(1000);\r\n\t\t driver.navigate().to(\"http://newtours.demoaut.com/\");\r\n\t\t \r\n\t\t \r\n\t\t\r\n\t\t \r\n\t\t // Go back to Home page\r\n\t//\t driver.navigate().to(appUrl);\r\n\t\t \r\n\t\t // Refresh browser\r\n\t//\t driver.navigate().refresh();\r\n\t\t \r\n\t\t // Close browser\r\n\t\t// driver.close();\r\n\t\t \r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "4d27cae6c72c6021f7ad871aab1ae959", "score": "0.68917376", "text": "@Before\r\n\tpublic void antes() {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"driver\\\\chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\t\tutils = new utils(driver);\r\n\t\tpageHome = new PageHome(driver);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"https://jovemnerd.com.br\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8dc2e0b325835dc665b7bfb6cdb64837", "score": "0.68434036", "text": "public static void main(String[] args) throws InterruptedException {\nSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Projects\\\\chromedriver_win32 (1)\\\\chromedriver.exe\");\r\n\r\n//Opening the chrome driver and \t\t\r\nWebDriver driver =new ChromeDriver();\r\n\t\tdriver.get(\"http://demoqa.com/frames-and-windows/\");\r\n\r\n\t\tdriver.findElement(By.xpath(\".//*[@id='tabs-1']/div/p/a\")).click();\r\n\t\tThread.sleep(800);\r\n\t\t\r\n\r\n\t\t\r\n\t\tdriver.quit();\r\n\r\n\t}", "title": "" }, { "docid": "6e4610bb9af509872c565898d64d0fc2", "score": "0.68354845", "text": "public static void main(String[] args) {\nWebDriverManager.chromedriver().setup();\r\nWebDriver driver = new ChromeDriver();\r\ndriver.get(\"https://c2ta.co.in/register/\");\r\n\t\t\r\n\tdriver.findElement(By.id(\"reg_username\")).sendKeys(\"shilpa\");\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"reg_email\\\"]\")).sendKeys(\"shilpa@yahoo.com\");\r\n\t\t\r\n\t\tdriver.findElement(By.name(\"reg_password\")).sendKeys(\"1234\");\r\n\t\tdriver.findElement(By.id(\"//*[@id=\\\"post-306\\\"]/div/div/div/div/div/form/p/button\")).click();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "88cc6073234bbe2ee7f6b3976880d337", "score": "0.6835478", "text": "@Before\r\n\tpublic void setup(){\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\SBabu7\\\\workspace\\\\HippoCMSAsses\\\\bin\\\\chromedriver.exe\");\r\n\t\t driver = new ChromeDriver();\r\n\t\t driver.manage().window().maximize();\r\n\t}", "title": "" }, { "docid": "ab719d2a225a90c2b8d3583e59465fdb", "score": "0.67960334", "text": "public static void main(String[] args) {\n\n\t\tString key = \"webdriver.chrome.driver\";\n\t\tString value = \"./Softwares/chromedriver.exe\";\nSystem.setProperty(key,value);\n\t\t//System.setProperty(\"webdriver.chorme.driver\",\"C:/Users/HP/Selenium/seljava/Softwares/chromedriver.exe\" );\n\t\tWebDriver driver=new ChromeDriver();\n\t\tdriver.get(\"facebook.com\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.findElement(By.id(\"filename\")).sendKeys(\"****put***file location\");\n\t\t\n\t}", "title": "" }, { "docid": "0f0aef03481f6977c6e64f09b5198ec2", "score": "0.6795701", "text": "public static void main(String[] args) {\nSystem.setProperty(\"webdriver.chrome.driver\",\"c://chromedriver.exe\");\nWebDriver driver=new ChromeDriver();\ndriver.get(\"https://login.salesforce.com/?locale=in\");\ndriver.findElement(By.cssSelector(\"input[class='input r4 wide mb16 mt8 username']\")).sendKeys(\"vamsi4963\");\ndriver.findElement(By.cssSelector(\"[id='password']\")).sendKeys(\"123vamsi\");\ndriver.findElement(By.xpath(\"//input[@id='Login']\")).click();\n\n\n\t}", "title": "" }, { "docid": "4c9f5606ff54f8e797427418293a23de", "score": "0.6792257", "text": "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\chromedriver.exe\");\r\n\t\t//WebDriver driver=new ChromeDriver();\r\nWebDriver driver=new FirefoxDriver();\r\n\r\ndriver.get(\"https://www.facebook.com/\");\r\nWebElement email=driver.findElement(By.id(\"email\"));\r\nemail.sendKeys(\"raghib90@gmail.com\");\r\n\r\nWebElement pass=driver.findElement(By.id(\"pass\"));\r\npass.sendKeys(\"diplomaengg@90\");\r\nWebElement login=driver.findElement(By.xpath(\"//*[@id='u_0_2']\"));\r\nlogin.click();\r\n\r\n\t}", "title": "" }, { "docid": "fd32870f9fa9168232f09d9d73a3d86b", "score": "0.678351", "text": "@BeforeClass\n\tpublic void sitelaunch()\n\t{\n \t//System.setProperty(\"webdriver.gecko.driver\",\"./driver/geckodriver.exe\");\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",read.fetchfirefox());\n\n\t\tdriver=new FirefoxDriver();\n\t // Logger= Logger.getLogger(\"ebanking\");\n\t//\tPropertyConfigurator.configure(\"log4j2.properties\");\n\t\t\n/*\t\tif(br.equals(\"firefox\"))\n\t\t\t\t{\n\t\t\t System.setProperty(\"webdriver.gecko.driver\",read.fetchfirefox());\n\t\t\t driver=new FirefoxDriver();\n\t\t\t\t}\n\t\telse\n\t \t{\n\t\t\t System.setProperty(\"webdriver.chrome.driver\",read.fetchchrome());\n\t\t driver=new ChromeDriver();\n\t\t } \n\t\t */\n\t\t driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n\t\t driver.manage().deleteAllCookies();\n\t driver.get(Baseurl); \n\t \n\t}", "title": "" }, { "docid": "466322a173873be3c20282072f54cd14", "score": "0.6779294", "text": "private static WebDriver abrirChrome() {\n\t\t// 1. Se establecen las opciones para el navegador\n\t\tChromeOptions ops = new ChromeOptions();\n ops.addArguments(\"--disable-notifications\");\n ops.addArguments(\"disable-infobars\");\n ops.addArguments(\"start-maximized\");\n \n // 2. Se crea el driver\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"Recursos//Drivers//chromedriver.exe\");\n\t\tdriver = new ChromeDriver(ops);\n\t\t\n\t\treturn driver;\n\t}", "title": "" }, { "docid": "e3869d2ac5ecca9a42034d201125d80a", "score": "0.67681754", "text": "public static void main(String[] args) {\n\t\tString key=\"webdriver.ie.driver\";\r\n\t\tString path=\"C:\\\\seleniumwebdiriver\\\\driver\\\\chromedriver.exe\";\r\n\t\tSystem.setProperty(key, path);\r\n\t\tWebDriver driver=new InternetExplorerDriver();\r\n\t\t\r\n\t\tdriver.get(\"https://www.myntra.com/\");\r\n\r\n\t}", "title": "" }, { "docid": "0b6e8e674b6b44330adae10dcc8ceb92", "score": "0.6757695", "text": "public static void main(String[] args) {\n System.setProperty(\"webdriver.chrome.driver\", \"src/main/resources/chromedriver\");\n //define the chromeoptions arguments\n ChromeOptions options = new ChromeOptions();\n //maximize my driver\n //options.addArguments(\"start-maximize\");\n //set the driver to incognito(private)\n options.addArguments(\"incognito\");\n // set the headless\n //options.addArguments(\"headless\");\n\n //define the webdriver\n WebDriver driver = new ChromeDriver(options);\n\n //navigate to yahoo page\n driver.navigate().to(\"https://www.yahoo.com\");\n\n }", "title": "" }, { "docid": "d3c00d4f4cb6308f1f791318530ee568", "score": "0.6751885", "text": "@Given(\"^User enters the url into the chrome browser4$\")\n\t\tpublic void BrowserLaunch() throws Throwable {\n\t\t\tString baseUrl = \"http://sethuonline.com/lms\";\n\t\t\t//String driverPath = \"C:\\\\\\\\Imp\\\\\\\\chromedriver.exe\";\n\t\t\t\n\t\t\t System.setProperty(\"webdriver.chrome.driver\", driverPath);\n\t\t\t driver = new ChromeDriver(); \n\t\t\t driver.manage().window().maximize();\n\t\t\t //redirect to your home page\n\t\t\t driver.get(baseUrl);\n\t\t\tdriver.manage().timeouts().implicitlyWait(100, TimeUnit.SECONDS);\n\t\t\t Thread.sleep(4000);\n\t System.out.println(\"passed\");\n\n\t\t}", "title": "" }, { "docid": "86eaf55a9b4366b9f7346515caa0e120", "score": "0.6745878", "text": "@Before\r\n public void setUp(){\r\n String chromeDriverPath = \"D:\\\\Workspace\\\\Junit-Automation-Test\\\\spring-boot-without-test\\\\src\\\\main\\\\resources\\\\chromedriver.exe\";\r\n System.setProperty(\"webdriver.chrome.driver\", chromeDriverPath);\r\n this.driver = new ChromeDriver();\r\n driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\r\n }", "title": "" }, { "docid": "2b1a77e846033214264a0f27d88b1066", "score": "0.67409366", "text": "public static void openBrowser(WebDriver driver) {\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"./src/test/java/utility/geckodriver.exe\");\r\n\t\tdriver=new FirefoxDriver();\r\n\t\tdriver.get(\"https://login.salesforce.com/\");\r\n\t\t\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a752b7c49bb00a610ac79c030233b019", "score": "0.672943", "text": "public static WebDriver launchChromeBrowser(WebDriver driver) {\n\t\tdriver = new HtmlUnitDriver();\n\t\tdriver.get(urlDps);\n\t\tdriver.manage().window().maximize();\n\t\treturn driver;\n\t}", "title": "" }, { "docid": "bf6402a055cef10dbf339dd463a0bc30", "score": "0.6712991", "text": "public static void initDriver() {\n String browser = System.getProperty(\"browser\",\"chrome\");\n switch (browser) {\n default:\n System.out.println(\"Using default browser Chrome\");\n case \"chrome\":\n System.setProperty(\"webdriver.chrome.driver\",\n \"C:\\\\Users\\\\Atty\\\\IdeaProjects\\\\madisonislandtest\\\\src\\\\test\\\\resources\\\\drivers\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n System.setProperty(\"webdriver.gecko.driver\", \"C:\\\\Users\\\\Atty\\\\IdeaProjects\\\\madisonislandtest\\\\src\\\\test\\\\resources\\\\drivers\\\\geckodriver.exe\");\n driver = new FirefoxDriver();\n break;\n case \"ie\":\n System.setProperty(\"webdriver.ie.driver\", \"C:\\\\Users\\\\Atty\\\\IdeaProjects\\\\madisonislandtest\\\\src\\\\test\\\\resources\\\\drivers\\\\IEDriverServer.exe\");\n driver = new InternetExplorerDriver();\n break;\n }\n\n\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n }", "title": "" }, { "docid": "19d18679b36cc946db0357441edd8eeb", "score": "0.67081237", "text": "public static void main(String[] args)\r\n\t{\n\t WebDriver driver = new ChromeDriver();\r\n\t //SearchContext driver1 = new ChromeDriver();\r\n\t //JavascriptExecutor driver2 = new ChromeDriver();\r\n\t //TakesScreenshot driver3 = new ChromeDriver();\r\n\r\n\t//it will fetch specific web page\r\n driver.get(\"https://www.naukri.com\");\r\n\r\n\t//returns url of the webpage\r\n\t\t//String url = driver.getCurrentUrl();\r\n\t\t //System.out.println(url);\r\n\t\t \r\n\t//returns the source code of the web page\r\n\t //String ps = driver.getPageSource();\r\n\t\t// System.out.println(ps);\r\n\t\t \r\n\t//title of the web pagehttps://www.naukri.com\r\n\t\t//String title = driver.getTitle();\r\n\t\t\t//System.out.println(title);\r\n\t\t \r\n\t//returns unique reference address of each & every webpage \r\n\t\t\t\t//String handle = driver.getWindowHandle();\r\n\t\t\t\t //System.out.println(handle);\r\n\t\t\t\t \r\n\t//returns unique reference address of each & every webpages \r\n\t\t\tSet<String> handles = driver.getWindowHandles();\r\n\t\t\tSystem.out.println(handles);\r\n\t\t\t\r\n\t\t\t//it will close all the child windows from parent window\r\n\t\t\t//for(String handle:handles)\r\n\t\t\t{\r\n\t\t\t//driver.switchTo().window(handle);\r\n\t\t\tdriver.close();\r\n\t\t\t//Thread.sleep(1000);\r\n\t\t\t//String title = driver.getTitle();\r\n\t\t\t//System.out.println(title);\r\n\t\t\t//if(!title.equals(\"Jobs - Recruitment - Job Search - Employment - Job Vacancies - Naukri.com\"))\r\n\t\t\t{\r\n\t\t\t\t//driver.close();\r\n\t\t\t}\r\n}\r\n\t}", "title": "" }, { "docid": "8bea7aeaa90d4672f0fb30c208a90f20", "score": "0.6702236", "text": "@BeforeMethod\n public void openBrowser(){\n driver = reusableMethods.chromeDriver();\n\n\n\n }", "title": "" }, { "docid": "fad05396222c02405ea95af8c6c6933e", "score": "0.66991496", "text": "public static void main(String[] args) { TODO Auto-generated method stub\n//create driver object for chrome browser\n\t\t// we wiil strictly implement methods of webdriver\n\t\t//\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\Karpagam Karthick\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://www.google.com\");\n\t\tSystem.out.println(driver.getTitle());\n\t}", "title": "" }, { "docid": "317a95e1600089c7e5cb41e855269976", "score": "0.6698811", "text": "@Test\n public void simpleConfigurationAndUsingPureSelenium() {\n ChromeDriverManager.getInstance().setup();\n browser = \"chrome\";\n\n // We have access to Selenium methods. However in many cases we do not need them.\n WebDriverRunner.clearBrowserCache();\n WebDriverRunner.getWebDriver().manage().window().maximize();\n baseUrl = \"http://robertkaszubowski.com/\";\n\n open(baseUrl);\n sleep(3000);\n close();\n\n browser = \"firefox\";\n\n open(baseUrl);\n sleep(3000);\n close();\n }", "title": "" }, { "docid": "ca83176af7bd2cb8c1bd496b78ffb834", "score": "0.6684003", "text": "@BeforeClass\n public void setUp(){\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n driver.get(\"http://54.148.96.210/web/login\");\n }", "title": "" }, { "docid": "6948624c0d0d6e99bc936ecd2ed6a0d5", "score": "0.66751075", "text": "@BeforeTest\n\n public void setUP() throws Exception{\n\n String driverpath = \"D:\\\\Raji_Selenium\\\\geckodriver-v0.19.0-win64\\\\geckodriver.exe\";\n System.setProperty(\"webdriver.gecko.driver\", driverpath);\n driver = new FirefoxDriver();\n //FirefoxDriver driver = new FirefoxDriver();\n baseUrl = \"http://live.demoguru99.com/\";\n\n}", "title": "" }, { "docid": "992ba54f6c9a3a491c501b5431b14ddb", "score": "0.6672016", "text": "public static String login(){\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./Driver/chromedriver.exe\"); //for chrome\n\t\tWebDriver driver = new ChromeDriver();\n//driver.get(\"https://www.google.com/\");\ndriver.navigate().to(\"URL\");\n\t\t\n\t\t\n\t\n\t\n\t\treturn \"name\";\n\t}", "title": "" }, { "docid": "740e966e35e91a4c36e1cbc221449081", "score": "0.66658866", "text": "@BeforeClass\n\tpublic void init() {\n\n\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\DOGETHER\\\\Desktop\\\\Website\\\\chromedriver.exe\");\n\t\t\n\t\t driver =new ChromeDriver();\n\t driver.get(baseUrl);\n\t driver.manage().window().maximize();\n\t driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t}", "title": "" }, { "docid": "a2d9a91b92db243def67d337db9f175d", "score": "0.6663076", "text": "@BeforeClass\r\npublic void setProperty()\r\n{\r\n\tWebDriverManager.chromedriver().setup();\r\n\tobjdriver=new ChromeDriver();\r\n\tobjdriver.get(\"https://www.google.com/intl/en-GB/gmail/about/#\");\r\n\tobjdriver.manage().window().maximize();\r\n\tobjdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n}", "title": "" }, { "docid": "7e8b157d050ae5c5c5a554ca022ac916", "score": "0.66508824", "text": "public static void main(String[] args) throws AWTException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"G:\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\tChromeOptions options = new ChromeOptions();\n\t//\toptions.addArguments(\"---headless\");\n\t\tWebDriver driver = new ChromeDriver(options);\n\t\tdriver.get(\"http://www.google.co.in\");\n\t\t \n/* using JSExecutor\n ((JavascriptExecutor)driver).executeScript(\"window.open()\");\nArrayList<String> tabs = new ArrayList<String>( driver.getWindowHandles() );\ndriver.switchTo().window(tabs.get(1)); */\n\n/*using Robot class\n\t\t String currentHandle= driver.getWindowHandle();\nRobot rob = new Robot();\nrob.keyPress(KeyEvent.VK_CONTROL);\nrob.keyPress(KeyEvent.VK_T);\nrob.keyRelease(KeyEvent.VK_CONTROL);\nrob.keyRelease(KeyEvent.VK_T);\nSet < String > handles = driver.getWindowHandles();\nfor (String actual: handles) {\n if (!actual.equalsIgnoreCase(currentHandle)) { //switching to the opened tab \n driver.switchTo().window(actual); //opening the URL saved. \n driver.get(\"http://www.greenstechnologies.in/selenium-training.php\");\n }\n*/\n\t\t \n\t\t\n\t\t \n\ndriver.get(\"http://www.greenstechnologies.in/selenium-training.php\");\n//System.out.println(driver.findElement(By.cssSelector(\"div.small_desc\")).getText());\nList <WebElement> ele = driver.findElements(By.xpath(\"//div[@class='small_desc']/*[not(self::p)]\"));\nfor (WebElement webent : ele) {\n\tSystem.out.println(webent.getText());\n}\t\n\n\t\tSystem.out.println();\n\t\t/*\n\t\t * List<WebElement> li =\n\t\t * driver.findElements(By.xpath(\"//*[@id=\\\"course-home\\\"]/div/ul/li\")); for\n\t\t * (WebElement webment : li) { System.out.println(webment.getText()); }\n\t\t */\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "b8cfce6ddad8e2da6fc4ab869a691a6b", "score": "0.6644491", "text": "@Test\n\tvoid demoNavigateto() {\n\t\t\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Selenium\\\\chromedriver.exe\");\n\t\t\tWebDriver driver= new ChromeDriver();\n\t\t\t\n\t driver.get(\"https://opensource-demo.orangehrmlive.com/\");\n\t driver.navigate().to(\"http://google.com\");\n\t System.out.println(driver.getTitle());\n\t driver.navigate().back();\n\t System.out.println(driver.getTitle());\n\t driver.navigate().forward();\n\t System.out.println(driver.getTitle());\n\n\t driver.quit(); \t\t\n\t \n\t}", "title": "" }, { "docid": "4c75c7bfd02223538d329b4a1b25eb95", "score": "0.6643928", "text": "public static void main(String[] args) {\n\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\vgaddamede\\\\Downloads\\\\chromedriver.exe\");\r\n\t driver = new ChromeDriver();\t\t\r\n\t driver.get(\"https://finance.yahoo.com/quote/RSG/\");\r\n\t log.info(\"yahoo finance page should be displayed\");\r\n\t driver.findElement(By.linkText(\"Industries\")).click();\r\n\t log.info(\"Industries page should be displayed\");\r\n\t driver.quit();\r\n\t \r\n \r\n\t}", "title": "" }, { "docid": "af7dc07406626b8823cbf84bc952d471", "score": "0.66412896", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"D:\\\\Seleniuim Jars\\\\Browser Drivers\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\t\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"https://www.guru99.com/first-webdriver-script.html\");\r\n\r\n\t}", "title": "" }, { "docid": "0e729f624eaf7e753e6df612e3f6da5c", "score": "0.6640594", "text": "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"/Users/sukanya/Desktop/chromedriver33\");\n\t\tWebDriver Driver = new ChromeDriver();\n\t\tDriver.get(\"https://www.google.com\");\n\t\tDriver.switchTo().frame(Driver.findElement(By.xpath(\"/html/body/div/div[4]/div[3]/div/div[2]/span/div/div/iframe\")));\n\t\tDriver.findElement(By.xpath(\"/html/body/div/c-wiz/div[2]/div/div/div/div/div[2]/form/div/span/span\")).click();\n\t\tDriver.findElement(By.xpath(\"/html/body/div/div[2]/form/div[2]/div[1]/div[1]/div/div[2]/input\")).sendKeys(\"performance testing\");\n\t\tDriver.findElement(By.xpath(\"/html/body/div/div[2]/form/div[2]/div[1]/div[1]/div/div[2]/input\")).submit();\n\t\tDriver.close();\n\t}", "title": "" }, { "docid": "4b020a5fb8808ecb9ff76902c83fce01", "score": "0.66393733", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tWebDriver driver ;\r\n\t\t//WebDriver driver = new FirefoxDriver();\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:/Users/mukesh.kumar1/workspace/SeleniumAutomation/browserexe/chromedriver.exe\");\r\n\t driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.makemytrip.com/\");\r\n\t\tdriver.findElement(By.id(\"hp-widget__depart\")).click();\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/div[2]/div[3]/div/div[3]/div/div[1]/table/tbody/tr[4]/td[5]/a\")).click();\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "a3e3e2ea0465e4b0adea055b09ab1372", "score": "0.6633707", "text": "private WebDriver setNewDriver(){\n\n\n\n final File file = new File(PropertyLoader.loadProperty(\"path.\"+getOS()+\".webDriver\"));\n System.setProperty(PropertyLoader.loadProperty(\"webDriver\"), file.getAbsolutePath());\n driver = new ChromeDriver();\n\n return driver;\n\n }", "title": "" }, { "docid": "97b04fe7b2a054172e81e9268b43074f", "score": "0.66335374", "text": "@Given(\"^ChromeBrowser is launched for admin$\")\r\npublic void chromebrowser_is_launched_for_admin() throws Throwable {\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"chromedriver.exe\");\r\n\r\n\tdr=new ChromeDriver();\r\n\t al=new AdminLogin(dr);\r\n\t ac=new Catagory(dr);\r\n\r\n\tdr.get(\"http://uniformm1.upskills.in/admin\");\r\n\r\n}", "title": "" }, { "docid": "a8e038956adb3f8033a51c3185fe1807", "score": "0.6623811", "text": "public static void main(String[] args) {\nSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Selenium 3.0\\\\Selium 3.0\\\\Selium 3.0\\\\chromedriver.exe\");\r\nWebDriver driver=new ChromeDriver(); \r\ndriver.get(\"https://google.com\");\r\ndriver.manage().window().maximize();\r\ndriver.findElement(By.name(\"q\")).sendKeys(\"Flipkart\");\r\ndriver.findElement(By.name(\"q\")).submit();\r\ndriver.findElement(By.className(\"iUh30\")).click();\r\ndriver.manage().timeouts().implicitlyWait(4,TimeUnit.SECONDS);\r\ndriver.findElement(By.xpath(\"//*[@class='_2AkmmA _29YdH8']\")).click();\r\n//driver.findElement(By.className(\"_2AkmmA _29YdH8\")).click();\r\ndriver.findElement(By.name(\"q\")).sendKeys(\"mobiles\");\r\ndriver.findElement(By.name(\"q\")).submit();\r\ndriver.findElement(By.className(\"_3wU53n\")).click();\r\ndriver.manage().timeouts().implicitlyWait(4,TimeUnit.SECONDS);\r\ndriver.findElement(By.xpath(\"//*[@class='_2AkmmA _2Npkh4 _2kuvG8 _7UHT_c']\")).click();\r\ndriver.close();\r\n\t\t\r\n\t\t/*System.setProperty(\"webdriver.gecko.driver\",\"C:\\\\Selenium 3.0\\\\Selium 3.0\\\\Selium 3.0\\\\geckodriver.exe\");\r\n\t\tWebDriver driver=new FirefoxDriver(); \r\n\t\tdriver.get(\"https://www.guru99.com/xpath-selenium.html\");*/\r\n\t\t\r\n\t}", "title": "" }, { "docid": "911886808335f4accb266fc48e10d38f", "score": "0.66219175", "text": "@BeforeMethod\n public void setUp(){\n driver=WebDriverFactory.getDriver(\"chrome\");\n driver.get(\"http://practice.cybertekschool.com/forgot_password\");\n BrowserUtilities.wait(2);\n }", "title": "" }, { "docid": "f2ca2cb627f0933192b71ec77b39f35a", "score": "0.6616742", "text": "public static void main(String[] args) \n\t{\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:\\\\SeleniumPratice\\\\ChromeDriver\\\\chromedriver.exe\");\n\t\t\t\n\t\t ChromeOptions options = new ChromeOptions();\n\t\t options.addArguments(\"window-size=1400,800\");\n\t\t options.addArguments(\"headless\");\n\t\t\tWebDriver driver = new ChromeDriver(options);\n\t\t\tdriver.get(\"http://www.freecrm.com\");\n\t\t System.out.println(driver.getTitle());\n\t\t driver.findElement(By.name(\"username\")).sendKeys(\"sheikh\");\n\t\t driver.findElement(By.name(\"password\")).sendKeys(\"sheikh\");\n\t\t driver.findElement(By.xpath(\"//input[@value = 'Login']\")).submit();\n\t\t System.out.println(driver.getTitle());\n\n\t}", "title": "" }, { "docid": "aa6c6d13e9cfcd1ba750ad47d9f25c49", "score": "0.6607618", "text": "public static void main(String[] args) throws InterruptedException {\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\r\n\t\t\t\t\"C:\\\\Users\\\\Halil\\\\Documents\\\\selenium dependencies\\\\drivers\\\\chromedriver.exe\");\r\n\t\t// create driver object\r\n\t\t//webdriver = class that is used to control a browser\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\t// get - goes to a certain website\r\n\t\t//driver.get(\"https://google.com\");\r\n\t\t\r\n\t\t\r\n\t\t//=====================================================\r\n\t\t\r\n\t\t/**\r\n\t\t * Test Case 1: Google Title Verification\r\n\t\t * 1.Open a chrome browser\r\n\t\t * 2.Go to http://google.com\r\n\t\t * 3.Verify title:\r\n\t\t * Expected: Google\r\n\t\t */\r\n\t\t\r\n//\t\tString expected= \"Google\";\r\n//\t\tString actual=driver.getTitle();\r\n//\t\tSystem.out.println(actual);\r\n//\t\tif(expected.equals(actual)) {\r\n//\t\t\tSystem.out.println(\"Test 1 Pass!\");\r\n//\t\t}else {\r\n//\t\t\tSystem.out.println(\"Test 1 Failed!\");\r\n//\t\t\tSystem.out.println(\"Expected: \"+expected);\r\n//\t\t\tSystem.out.println(\"Actual: \"+actual);\r\n//\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//=====================================================\r\n\t\t\r\n\t\t/**\r\n\t\t * Test Case 2: Cybertek Url Verification\r\n\t\t * 1.Open a chrome browser\r\n\t\t * 2.Go to http://cybertek.com\r\n\t\t * 3.Verify title contains:\r\n\t\t * Expected: cybertekschool\r\n\t\t */\r\n\t\t\r\n\t\t//navigate().to() = driver.get()\r\n//\t\tdriver.navigate().to(\"https://cybertekschool.com\");\r\n//\t\tString expected2=\"cybertekschool\";\r\n//\t\tString actual2 = driver.getCurrentUrl();\r\n//\t\tSystem.out.println(actual2);\r\n//\t\t\r\n//\t\tif(actual2.contains(expected2)) {\r\n//\t\t\tSystem.out.println(\"Test 2 pass\");\r\n//\t\t}else {\r\n//\t\t\tSystem.out.println(\"Test 2 failed.\");\r\n//\t\t\tSystem.out.println(\"Expected: \"+expected2);\r\n//\t\t\tSystem.out.println(\"Actual: \"+actual2);\r\n//\t\t}\r\n\t\t\r\n\t\t//=====================================================\r\n\t\t\r\n\t\t/**\r\n\t\t * Test Case 3: Back and forth navigation \r\n\t\t * 1.Open a chrome browser\r\n\t\t * 2.Go to http://google.com\r\n\t\t * 3.click on link \"Gmail\"\r\n\t\t * 4.Verify title contains:\r\n\t\t * Expected: Gmail\r\n\t\t * 5.go back to Google by using the Back button\r\n\t\t * 6.Verify title contains:\r\n\t\t * \tExpected: Google\r\n\t\t * 7.Go back to Gmail using the Forward button\r\n\t\t * 8.Verify title contains:\r\n\t\t * \tExpected: Gmail\r\n\t\t */\r\n//\t\tdriver.get(\"https://google.com\");\r\n//\t\t\r\n//\t\tdriver.findElement(By.linkText(\"Gmail\")).click();\r\n//\t\tString expected = \"Gmail\";\r\n//\t\tString actual = driver.getTitle();\r\n//\t\tSystem.out.println(actual);\r\n//\t\tif(actual.contains(expected)) {\r\n//\t\t\tSystem.out.println(\"Test 3.1 Pass\");\r\n//\t\t}else {\r\n//\t\t\tSystem.out.println(\"Test 3.1 failed.\");\r\n//\t\t\tSystem.out.println(\"Expected: \"+expected);\r\n//\t\t\tSystem.out.println(\"Actual: \"+actual);\r\n//\t\t}\r\n//\t\t\r\n//\t\tdriver.navigate().back();\r\n//\t\t\r\n//\t\tString expected2 = \"Google\";\r\n//\t\tString actual2 = driver.getTitle();\r\n//\t\tSystem.out.println(actual2);\r\n//\t\tif(actual2.contains(expected2)) {\r\n//\t\t\tSystem.out.println(\"Test 3.2 Pass\");\r\n//\t\t}else {\r\n//\t\t\tSystem.out.println(\"Test 3.2 failed.\");\r\n//\t\t\tSystem.out.println(\"Expected: \"+expected2);\r\n//\t\t\tSystem.out.println(\"Actual: \"+actual2);\r\n//\t\t}\r\n//\t\t\r\n//\t\tdriver.navigate().forward();\r\n//\t\tString expected3 = \"Gmail\";\r\n//\t\tString actual3 = driver.getTitle();\r\n//\t\tSystem.out.println(actual3);\r\n//\t\tif(actual3.contains(expected3)) {\r\n//\t\t\tSystem.out.println(\"Test 3.3 Pass\");\r\n//\t\t}else {\r\n//\t\t\tSystem.out.println(\"Test 3.3 failed.\");\r\n//\t\t\tSystem.out.println(\"Expected: \"+expected3);\r\n//\t\t\tSystem.out.println(\"Actual: \"+actual3);\r\n//\t\t}\r\n\t\t\r\n\t\t//=====================================================\r\n\t\t\r\n\t\t/**\r\n\t\t * Test Case 4: Basic Authentication Test\r\n\t\t * 1.open browser chrome \r\n\t\t * 2. go to website http://newtours.demoaut.com/\r\n\t\t * 3.enter username\r\n\t\t * 4.enter password\r\n\t\t * click Sign in button\r\n\t\t * verify title contains:\r\n\t\t * \tExpected: Find a Flight \r\n\t\t * \r\n\t\t */\r\n\t\t\r\n//\t\tdriver.get(\"http://newtours.demoaut.com/\");\r\n//\t\tdriver.findElement(By.name(\"userName\")).sendKeys(\"tutorial\");\r\n//\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"tutorial\");\r\n//\t\tdriver.findElement(By.name(\"login\")).click();\r\n//\t\tString expected =\"Find a Flight\";\r\n//\t\tString actual = driver.getTitle();\r\n//\t\tSystem.out.println(actual);\r\n//\t\tif(actual.contains(expected)) {\r\n//\t\t\tSystem.out.println(\"Test 4 Pass\");\r\n//\t\t}else {\r\n//\t\t\tSystem.out.println(\"Test 4 failed\");\r\n//\t\t\tSystem.out.println(\"Expected: \"+expected);\r\n//\t\t\tSystem.out.println(\"Actual: \"+actual);\r\n//\t\t}\r\n\t\t\r\n\t\t//=====================================================\r\n\t\t\r\n\t\tdriver.navigate().to(\"https://google.com\");\r\n\t\tWebElement element = driver.findElement(By.name(\"q\"));\r\n\t\telement.sendKeys(\"Nicaragua\");\r\n\t\telement.submit();\r\n\t\tdriver.findElements(By.xpath(\"//*[@id=\\\"hdtb-msb-vis\\\"]/div[2]/a\")).get(0).click();\r\n\t\tThread.sleep(1000);\r\n\t\tdriver.findElements(By.xpath(\"//*[@id=\\\"pane\\\"]/div/div[2]/div/div/div[1]/button[2]/div/div\")).get(0).click();\r\n\t\tThread.sleep(1000);\r\n\t\tdriver.findElements(By.xpath(\"//*[@id=\\\"sb_ifc51\\\"]/input\")).get(0).sendKeys(\"Columbus, OHIO\");;\r\n\t\tThread.sleep(1000);\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"sb_ifc51\\\"]/input\")).click();\r\n\t\tThread.sleep(2000);\r\n\t\tdriver.findElements(By.xpath(\"//*[@id=\\\"omnibox-directions\\\"]/div/div[2]/div/div/div[1]/div[2]/button/div[1]\")).get(0).click();\r\n\t\tThread.sleep(15000);\r\n\t\tdriver.close();\r\n\r\n\t}", "title": "" }, { "docid": "9ec98fb856df5db537f13ab82b867df4", "score": "0.66049206", "text": "@Given(\"^ChromeBrowser is launched for user$\")\r\npublic void chromebrowser_is_launched_for_user() throws Throwable {\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"chromedriver.exe\");\r\n\r\n\tdr=new ChromeDriver();\r\n\tap=new ProductAddDelete(dr);\r\n \r\n cp=new Change_pass(dr);\r\n ro=new ReturnOrder(dr);\r\n\tdr.get(\"http://uniformm1.upskills.in\");\r\n}", "title": "" }, { "docid": "ae6f7b6035c763f827090e3708e91e8e", "score": "0.65985227", "text": "@BeforeEach\n\tvoid setUp() throws Exception {\n System.setProperty(\"webdriver.chrome.driver\",driverPath);\n\t\t//4. Instantiate Selenium Web Driver . That means Create an object of the web driver.\n driver = new ChromeDriver();\n //5. Launch Browser\n driver.get(siteURL);\n\t\t\n\t}", "title": "" }, { "docid": "eb5a075c31ca6d76e27169cd01708882", "score": "0.65804094", "text": "private void setWebDriver() {\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\DMD\\\\Development\\\\RestSec\\\\restsec-samples\\\\chromedriver-win32.exe\");\n DesiredCapabilities desiredCapabilities = DesiredCapabilities.chrome();\n\n logger.info(\"Use Proxy: \"+config.getBoolUseProxy());\n if (config.getBoolUseProxy()) {\n Proxy proxy = new Proxy();\n proxy.setHttpProxy(config.getProxyIP() + \":\" + config.getProxyPort());\n desiredCapabilities.setCapability(\"proxy\", proxy);\n logger.info(\"Using proxy: \"+desiredCapabilities.getCapability(\"proxy\").toString());\n }\n\n //silence webdriver logs\n LoggingPreferences loggingPreferences = new LoggingPreferences();\n loggingPreferences.enable(LogType.DRIVER, java.util.logging.Level.OFF);\n System.setProperty(\"webdriver.chrome.silentOutput\", \"true\");\n Logger.getLogger(\"org.openqa.selenium.remote.ProtocolHandshake\").setLevel(Level.OFF);\n desiredCapabilities.setCapability(CapabilityType.LOGGING_PREFS, loggingPreferences);\n\n //TODO: Find a way to run Chrome headless (xvfb?)\n\n chromeDriver = new ChromeDriver(desiredCapabilities);\n\n }", "title": "" }, { "docid": "c3d20595b5cab46a18fe7a7248298e74", "score": "0.65760195", "text": "@BeforeClass\n\tpublic void setup(){\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:\\\\Eclipse\\\\chromedriver.exe\");\n\t\tdriver=new ChromeDriver();\n\t\tdriver.get(baseurl);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\n\t}", "title": "" }, { "docid": "af355255ddac788783504c8170190e18", "score": "0.6572849", "text": "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\Admin\\\\eclipse-workspace\\\\selenium_example\\\\chromedriver.exe\");\r\n\t\t//Launch the chrome browser\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\t\r\n\t\t//open the url \"https://www.selenium.dev/\"\r\n\t\tdriver.get(\"file:///D:/test/exp.html\");\r\n\t\tSystem.out.println(driver.getTitle());\r\n\t\tdriver.quit();\r\n\r\n\t}", "title": "" }, { "docid": "5b3e2a2a5414f3a23fff1ba60a3fc343", "score": "0.6562203", "text": "@BeforeTest\r\n\tpublic void TestSetup(){\n\t\t System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\chromedriver.exe\");\r\n\t\t driver = new ChromeDriver();\r\n\t \r\n\t // To launch facebook\r\n\t driver.get(\"http://newtours.demoaut.com/\");\r\n\t // To maximize the browser\r\n\t driver.manage().window().maximize();\r\n\t // implicit wait\r\n\t driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n }", "title": "" }, { "docid": "f8f52fca438a9ff14f3f10fe7366d55c", "score": "0.6560347", "text": "@Given(\"^user logs into VSE$\")\r\n\tpublic void user_logs_into_VSE() throws Throwable {\n\t\t\r\nString chromedriver=\"C:\\\\Users\\\\dhivya\\\\Downloads\"\r\n\t\t+ \"\\\\chromedriver_win32\\\\chromedriver.exe\";\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",chromedriver);\r\n\t\tdriver = new ChromeDriver();\r\n\t\tThread.sleep(5000);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"https://www.virtual-stock-exchange.com/\");\r\n\t\tdriver.findElement(By.xpath(\"/html/body/section/div[2]/a[2]\")).click();\r\n\t \r\n\t \r\n\t}", "title": "" }, { "docid": "1acda8190375cbb1fc1ef89f65f351a7", "score": "0.65584266", "text": "public WebDriver chromeDriverConnection() { // creo el metodo para la conexion con chrome\r\n\t\t\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\r\n\t\tdriver = new ChromeDriver(); \r\n\t\t\r\n\t\treturn driver;\r\n\t}", "title": "" }, { "docid": "dc13be83a05ec4b06ad1115e8daee60d", "score": "0.65537584", "text": "public static void main(String[] args) {\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\12028\\\\Desktop\\\\SeleniumPractice\\\\drivers\\\\chromedriver.exe\");\n WebDriver driver=new ChromeDriver();\n driver.get(\"https://www.amazon.com/\");\n driver.navigate().to(\"https://www.facebook.com/\");\n String url=driver.getTitle();\n driver.navigate().back();\n driver.navigate().forward();\n System.out.println(url);\n }", "title": "" }, { "docid": "62bd94aed4f6c7709589696c40080628", "score": "0.6547376", "text": "@BeforeMethod\n public void setupMethod(){\n\n driver = WebDriverFactory.getDriver(\"chrome\");\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\n driver.get(\"http://practice.cybertekschool.com/windows\");\n }", "title": "" }, { "docid": "4e0c15d9d17798cf6243c441df86e58c", "score": "0.6544735", "text": "@BeforeTest\n\tpublic void beforeTest() {\n\t\t\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".\\\\lib\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\t\t\t\n\t\t//System.setProperty(\"webdriver.ie.driver\", \".\\\\lib\\\\IEDriverServer.exe\");\n\t\t//driver = new InternetExplorerDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "1a933186b824c13bba6f7af305eecc8c", "score": "0.6529353", "text": "public void openBrowser() throws IOException {\n String url = this.getProperty(\"url\");\n String browser = this.getProperty(\"browser\");\n\n if (browser.matches(\"firefox\")) {\n driver = new FirefoxDriver();\n System.setProperty(\"webdriver.gecko.driver\", \"src/test/resources/geckodriver.exe\");\n } else if (browser.matches(\"chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/chromedriver.exe\");\n driver = new ChromeDriver();\n } else if (browser.matches(\"safari\")) {\n driver = new SafariDriver();\n }\n\n driver.get(url);\n /* System.setProperty(\"webdriver.gecko.driver\",\"geckodriver.exe\");\n driver = new ChromeDriver();\n //driver.get(\" https://en-gb.facebook.com/login/\");\n driver.get(\"http://demo.nopcommerce.com/ \");\n //driver.get(\"https://www.google.co.uk/?gfe_rd=cr&ei=Nd28V62jLMuN8Qf7x5HYBQ&gws_rd=ssl \");*/\n\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n }", "title": "" }, { "docid": "fd74bbce5f543ced1354488d676afc6b", "score": "0.65217704", "text": "public static void main(String[] args) {\n\r\n\t\tProxy proxy = new Proxy();\r\n\t\tproxy.setHttpProxy(\"localhost:8080\");\r\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\r\n\t\tcap.setCapability(CapabilityType.PROXY, proxy);\r\n\t\t//@SuppressWarnings(\"deprecation\")\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\tWebDriver driver = new ChromeDriver(cap);\r\n\t\tdriver.get(\"https://www.google.com\");\r\n\t}", "title": "" }, { "docid": "3d281a87fc6fce819dc6dc395eb30d0c", "score": "0.6516669", "text": "@BeforeClass\n\tpublic void launchBrowser() {\n\n\t\tChromeDriver driver = new ChromeDriver();\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\April\\\\src\\\\main\\\\java\\\\chromedriver.exe\");\n\t\tSystem.out.println(\"The browser launched successfully, mate!\");\n\t\tdriver.get(\"http://demo1.opentaps.org/\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t}", "title": "" }, { "docid": "897b8101940032f1de57890d1df5562b", "score": "0.6512339", "text": "@Before\n public void setUp() {\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\micha\\\\Documents\\\\NetBeansProjects\\\\repostitRestServer\\\\ChromeDriver\");\n driver = new ChromeDriver();\n \n baseUrl = \"http://localhost:8080/repostitRestServer/test-resbeans.html\";\n // Load the page in the browser\n driver.get(baseUrl);\n }", "title": "" }, { "docid": "e839559de0052aae48f3c1ca51e604cb", "score": "0.65050626", "text": "public static void main(String[] args) {\n\t\tDesiredCapabilities ch= new DesiredCapabilities(); //Capabilities is for creating profile\n\t\tch.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);\n\t\tch.setCapability(CapabilityType.ACCEPT_SSL_CERTS,true);\n\t\tch.acceptInsecureCerts();\n\t\tChromeOptions c = new ChromeOptions(); //Chrome options is used to set local browser settings\n\t\t\n\t\tc.merge(ch);\n\t\t// we need to add capabilities to our chrome browser.\n\t\t//Desired capabilities is a class which helps us to customize our chrome browser.\n\t\t//we are merging with local chrome browser\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\workaakashoct\\\\chromedriver.exe\");\n\t\tWebDriver driver= new ChromeDriver(c);\n\t\t\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "f729282cae782526978505f1d8f7bbdf", "score": "0.6500511", "text": "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}", "title": "" }, { "docid": "991b0b3e2b0f448d7f8e515d5d1df762", "score": "0.649928", "text": "@BeforeTest() \n\n\tpublic void Open()\n\t{\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.get(\"https://www.google.co.in/?gfe_rd=cr&ei=tKAGVZWXN6bM8gfrmIDIBA&gws_rd=ssl\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t}", "title": "" }, { "docid": "fe9dcbb555bec7a95ffba58bf9012abe", "score": "0.6492284", "text": "@BeforeClass\r\npublic void launchBrowser() throws IOException \r\n{\r\n\r\n\tString BROWSER=fu.readdatapropfile(iconstants.profilepath, \"browser\");\r\n\r\n\t\r\n\tif(BROWSER.equalsIgnoreCase(\"chrome\")) {\r\n\t\tdriver= new ChromeDriver();\r\n\t}\r\n\telse if(BROWSER.equalsIgnoreCase(\"firefox\")) {\r\n\t\tdriver= new FirefoxDriver();\r\n\t}\r\n\telse if(BROWSER.equalsIgnoreCase(\"ie\")) {\r\n\t\tdriver= new InternetExplorerDriver();\r\n\t}\r\n\twu.maximizewindow(driver);\r\n\twu.implicitwait(driver);\r\n\t\r\n\tdriver.get(fu.readdatapropfile(iconstants.profilepath, \"url\"));\r\n}", "title": "" }, { "docid": "328a16b757cde86f11a91df4fedae012", "score": "0.64921767", "text": "public static void main(String[] args)\r\n\t{\r\n\t\tChromeDriver d=new ChromeDriver();\r\n\t\td.get(\"http://localhost/login.do\");\r\n\t\tString currentURL=d.getCurrentUrl();\r\n\t\tSystem.out.println(currentURL);\r\n\t\t\r\n\t\td.get(\"http://facebook.com\");\r\n\t\tString currentURL2=d.getCurrentUrl();\r\n\t\tSystem.out.println(currentURL2);\r\n\t\td.close();\r\n\t\td.get(\"https://www.facebook.com/\");\r\n\t}", "title": "" }, { "docid": "59701126a8c738be2d808274a2fbc2ad", "score": "0.6488883", "text": "@Before\n\t\t public void setup() {\n\t\t \tSystem.setProperty(\"webdriver.chrome.driver\", \n\t\t\t\t\t\t\"C:\\\\Users\\\\Student.DESKTOP-Q29NSH0\\\\Desktop\\\\SeleniumRARfiles\\\\chromedriver.exe\"); \n\t\t\t\t driver = new ChromeDriver();\n\t\t\t\t driver.manage().window().maximize();\n\t\t }", "title": "" }, { "docid": "ab62e34e293b5f72925566b8c6c3dd38", "score": "0.6482792", "text": "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"E:\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.navigate().to(\"http://demo.guru99.com/test/newtours/index.php\");\n\t\tWebElement username=driver.findElement(By.name(\"userName\"));\n\t\tusername.sendKeys(\"sunil\");\n\t\tWebElement password=driver.findElement(By.name(\"password\"));\n\t\tpassword.sendKeys(\"sunil\");\n\t\tdriver.findElement(By.name(\"submit\")).click();\n\t\tdriver.findElement(By.xpath(\"//*[@href='reservation.php']\")).click();\n\t\tdriver.findElement(By.xpath(\"//*[@name='tripType'][2]\")).click();\n}", "title": "" }, { "docid": "40d4f9b0293c1bc076b481b3c8c194c7", "score": "0.64796925", "text": "public static void main(String[] args) {\n FirefoxDriver driver=new FirefoxDriver();\ndriver.get(\"http://newtours.demoaut.com/\");\n\n\t}", "title": "" }, { "docid": "333d047193a51c5dca173b798c53e519", "score": "0.64777476", "text": "public void initiateDriver() throws Exception {\n\t\t\n\t\tif (BROWSER.equalsIgnoreCase(\"IE\")){\n\t\t\t//System.setProperty(\"webdriver.ie.driver\", currDirectory + File.separator + \"IEDriverServer.exe\");\n\t\t\t //WebDriver driver = new InternetExplorerDriver();\n\t\t\t //driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\t //driver.get(\"https://wcsr-744.kodiakitg.com/csrkodiak/\");\n\t\t\t //driver.get(\"javascript:document.getElementById(‘overridelink’).click()\");\n\t\t\n\t\t\t\n\t\t\tFile file = new File(currDirectory + File.separator + \"IEDriverServer.exe\");\n\t\t\t\n\t\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\t\t\tcapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true); \n\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", file.getAbsolutePath());\n\t\t\tdriver = new InternetExplorerDriver(capabilities);\n\t\t\t\n\t\t//\tFile file = new File(\"D:\\\\iSteerWorkspace\\\\IsteerUIAutomation\\\\IEDriverServer.exe\");\n\t\t//\tSystem.setProperty(\"webdriver.ie.driver\", file.getAbsolutePath());\n\t\t// driver = new InternetExplorerDriver();\n\t\t//\tdriver.navigate().to(\"javascript:document.getElementById(‘overridelink’).click()\");\n\t\t\t\n\t\t} else if(BROWSER.equalsIgnoreCase(\"GC\")) {\n\t\t\tFile file = new File(currDirectory + File.separator + \"chromedriver.exe\");\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", file.getAbsolutePath());\n\t\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t\tchromeOptions.addArguments(\"test-type\");\n\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\t\t\tdriver = new ChromeDriver(capabilities);\n\t\t\t\n\t\t} else {\n\t\t\t//FirefoxProfile profile = new ProfilesIni().getProfile(\"Selenium\");\n\t\t\t//driver = new FirefoxDriver(profile);\n\t\t\tdriver = new FirefoxDriver();\n\t\t}\n\t}", "title": "" }, { "docid": "ca94c08ef3d0d8e95399b2e2a0733db6", "score": "0.64744824", "text": "@BeforeSuite\r\n public void initialize() throws IOException {\n \tChromeOptions options = new ChromeOptions();\r\n \toptions.addArguments(\"--disable-notifications\");\r\n \t\r\n //To set the path \r\n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\Shweta\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\"); \r\n driver = new ChromeDriver(options); \r\n \r\n // To maximize browser \r\n driver.manage().window().maximize(); \r\n \r\n // Implicit wait \r\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); \r\n \r\n //DeleteAll Cookies\r\n driver.manage().deleteAllCookies();\r\n \r\n // To open Facebook site \r\n driver.get(Constants.URL); \r\n }", "title": "" }, { "docid": "3b33765af53b0a0cec5c95ab373c6a13", "score": "0.6470114", "text": "private static WebDriver setChromeDriver() throws IOException\r\n {\r\n String dir = null;\r\n File directory = new File (\".\");\r\n try\r\n {\r\n dir = directory.getCanonicalPath();\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(\"Exceptione is =\"+e.getMessage());\r\n System.exit(0);\r\n }\r\n\r\n //Set the required properties to instantiate ChromeDriver. Place the ChromeDriver.exe file in the resources folder\r\n System.setProperty(\"webdriver.chrome.driver\", dir+\"\\\\resources\\\\chromedriver.exe\");\r\n setDrver(new ChromeDriver());\r\n return getDriver();\r\n }", "title": "" }, { "docid": "dfebcbafd14506a2bd0e48716929469b", "score": "0.6462085", "text": "public static void main(String[] args) {\n\t\tWebDriverManager.edgedriver().setup();\n\t\tWebDriverManager.firefoxdriver().setup();\n\t\t//WebDriver driver = new gicodriver()\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://www.google.com \");\n\t\t\n\t}", "title": "" }, { "docid": "acb07cf14dc0bbad3d62d775b3b899e8", "score": "0.6458609", "text": "public static void main(String[] args) {\n\t\tWebDriverManager.chromedriver().setup();\n\t\tWebDriver driver=new ChromeDriver();\n\t\tdriver.get(\"http://www.google.com\");\n\n\t}", "title": "" }, { "docid": "dca64db524850a7f6a17716a346ee2ed", "score": "0.6453322", "text": "public static void main(String[] args) throws InterruptedException {\n System.setProperty(\"webdriver.chrome.driver\", \"drivers/chromedriver.exe\");\n\n //2. Create an object of WebDriver interface\n WebDriver driver = new ChromeDriver();\n\n // ChromeDriver (BrowserDriver) extends RemoteWebDriver\n // RemoteWebDriver implements WebDriver\n\n // Navigate to spedified web application\n\n String amazonUrl = \"http://www.amazon.com/\";\n //driver.get(\"http://www.amazon.com/\");\n driver.get(amazonUrl);\n\n String currentUrl=driver.getCurrentUrl();\n System.out.println(currentUrl);\n\n Thread.sleep(3000);\n //driver.quit();// closes all the tabs\n //driver.close(); // close the current tab\n\n String expectedTitle = \"Amazon.com: Online Shopping for Electronics, Apparel, Computers, Books, DVDs & more\";\n String actualTitle = driver.getTitle();\n System.out.println(actualTitle);\n\n if (expectedTitle.equals(actualTitle)) {\n System.out.println(\"Title validation test PASS\");\n }else {\n System.out.println(\"Title validation test FAIL\");\n }\n\n String handle = driver.getWindowHandle();\n System.out.println(handle);\n\n // navigate() methods ==> keeps our browsing history and enables us to specific page or navigate back and\n // forward or refresh our browser\n\n\n\n }", "title": "" }, { "docid": "92705dad0cda2069686601a38de2d1c8", "score": "0.6446357", "text": "public static void main(String[] args) throws InterruptedException \r\n\t{\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\r\n\t\t//enter the url of application\r\n\t\tdriver.get(\"https://www.google.com/\");\r\n\t\r\n\t\t//get title of current web page\r\n\t\tString title = driver.getTitle();\r\n\t\tSystem.out.println(title);\r\n\t\r\n\t\t//get url of current application\r\n\t\tString url = driver.getCurrentUrl();\r\n\t\tSystem.out.println(url);\r\n\t\r\n\t\t//get the source code of current web page\r\n\t\tString src = driver.getPageSource();\r\n\t\tSystem.out.println(src);\r\n\t\t\r\n\t\tThread.sleep(5000);\r\n\t\t//close the chrome browser\r\n\t\tdriver.close();\r\n\t\r\n\t}", "title": "" }, { "docid": "3b9a1bf0e8c75292099d6f8aa2970dce", "score": "0.64462364", "text": "@Given(\"Customer launches the Lloyds Bank Website\")\n public void customer_launches_the_Lloyds_Bank_Website() throws IOException {\n String hubURL = \"http://localhost:4444/wd/hub\";\n DesiredCapabilities capability = DesiredCapabilities.chrome();\n driver = new RemoteWebDriver(new URL(hubURL), capability);\n\n //System.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"/src/test/resources/seleium_brower_driver/chromedriver\");\n //driver = new ChromeDriver();\n //driver.get(\"https://www.lloydsbank.com\");\n // System.out.println(Utility.getData().getProperty(\"lloydsbank_url\"));\n driver.get(Utility.getData().getProperty(\"lloydsbank_url\"));\n driver.manage().window().maximize();\n\n }", "title": "" }, { "docid": "0c0fd02c3484c55ec8927d0a44ed1e8b", "score": "0.6444233", "text": "@BeforeEach\n public void setup(){\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\knallaswamy\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n driver.get(URL);\n Helper.waitForLoad(driver);\n }", "title": "" }, { "docid": "b580cee937a792624a1be8bb4163b2f7", "score": "0.64420474", "text": "public static void main(String[] args) {\r\n\r\n\r\n\t\t// to launch the browser\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver.exe\");\r\n\r\n\t\tChromeDriver driver = new ChromeDriver();\r\n\r\n\t\t// to launch the URL\r\n\t\tdriver.get(\"http://leaftaps.com/opentaps/control/main\");\r\n\t\t//driver.navigate().to(\"http://leaftaps.com/opentaps/control/main\");\r\n\r\n\t\t//enter Username\r\n\t\tdriver.findElementById(\"username\").sendKeys(\"DemoSalesManager\");\r\n\r\n\t\t//enter Password\r\n\t\tdriver.findElementById(\"password\").sendKeys(\"crmsfa\");\r\n\r\n\t\t// click login\r\n\t\tdriver.findElementByClassName(\"decorativeSubmit\").click();\r\n\r\n\t\t//click CRM/SFA\r\n\t\tdriver.findElementByLinkText(\"CRM/SFA\").click();\r\n\r\n\t\t// Click Leads link\r\n\t\tdriver.findElementByLinkText(\"Leads\").click();\r\n\r\n\t\t// Click Find leads\r\n\t\tdriver.findElementByLinkText(\"Find Leads\").click();\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(3000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// Enter first name\r\n\t\tdriver.findElementByXPath(\"(//*[@name='firstName'])[3]\").sendKeys(\"Ramya\");\r\n\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(3000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// Click Find leads button\r\n\t\tdriver.findElementByXPath(\"(//*[@class='x-btn-text'])[7]\").click();\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(3000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// Click on first resulting lead\r\n\r\n\t\tdriver.findElementByXPath(\"(//*[@class='linktext'])[6]\").click();\t\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(3000);\r\n\t\t} catch (InterruptedException 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// Verify title of the page\t\r\n\t\tString Title1 = driver.getTitle();\r\n\t\tSystem.out.println(Title1);\r\n\r\n\r\n\t\t// Click Edit\r\n\t\tdriver.findElementByLinkText(\"Edit\").click();\r\n\r\n\t\t// Change the company name\r\n\t\tdriver.findElementById(\"updateLeadForm_companyName\").clear();\r\n\t\tdriver.findElementById(\"updateLeadForm_companyName\").sendKeys(\"AZ\");\r\n\r\n\r\n\t\t// Click Update\r\n\t\tdriver.findElementByName(\"submitButton\").click();\r\n\r\n\r\n\r\n\t\t// Confirm the changed name appears\r\n\t\tString changedCompName =driver.findElementById(\"viewLead_companyName_sp\").getText();\r\n\r\n\t\tchangedCompName =\"Amazon\";\r\n\t\t\tSystem.out.println(\"Company Name is Changed\");\r\n\t\t\r\n\t\t\r\n\r\n\t\r\n\t\t// Close the browser (Do not log out)*/\r\n\r\n\t\tdriver.close();\r\n\r\n\r\n\r\n\r\n\r\n\t}", "title": "" }, { "docid": "3207315fead95452434b0d277f3f10a9", "score": "0.6440326", "text": "public static void main(String[] args) throws InterruptedException {\n\n WebDriver driver= BrowserFactory.getDriver(\"chrome\");\n driver.manage().window().maximize();\n driver.get(\"https://qa2.vytrack.com/user/login\");\n driver.findElement(By.id(\"prependedInput\")).sendKeys(\"salesmanager101\");\n driver.findElement(By.id(\"prependedInput2\")).sendKeys(\"UserUser123\");\n driver.findElement(By.id(\"_submit\")).click();\n String dashboard=driver.findElement(By.className(\"oro-subtitle\")).getText();\n if(dashboard.equalsIgnoreCase(\"dashboard\")){\n System.out.println(\"PASS\");\n }\n Thread.sleep(1000);\n driver.findElement(By.className(\"fa-share-square\")).click();\n Thread.sleep(500);\n driver.findElement(By.xpath(\"//*[@id=\\\"oroplatform-header\\\"]/div[1]/div/div[2]/div/ul/li[2]/form/div/div/a\")).click();\n Thread.sleep(500);\n driver.findElement(By.linkText(\"Vehicle Services Logs\")).click();\n Thread.sleep(500);\n String errorMsg=driver.findElement(By.className(\"message\")).getText();\n System.out.println(errorMsg);\n String title=driver.getTitle();\n System.out.println(title);\n driver.quit();\n\n\n }", "title": "" }, { "docid": "467e7c91dd9f5f2e78e4491632e284f7", "score": "0.6439281", "text": "public static void main(String[] args) {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"drivers\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\t\n\t\tdriver.get(\"http://amazon.com\");\n\t\tSystem.out.println(driver.getCurrentUrl());\n\t\tSystem.out.println(driver.getTitle());\n\t\t\n\t}", "title": "" }, { "docid": "68ae39cd6c21e5759b0dcbf8560c11be", "score": "0.6438428", "text": "public static void main(String[] args) throws InterruptedException {\n\r\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\gecko\\\\geckodriver-v0.17.0-win64\\\\geckodriver.exe\");\r\n\r\n\t WebDriver driver = new FirefoxDriver();\r\n\r\n\t //First time if it doesn't find the element, then wait for this time and try it agaon for second.\r\n\t //It doesn't find it again, then it will throw error message\r\n\t driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t \r\n\t \r\n\t driver.get(\"http://newtours.demoaut.com/\");\r\n\t String title = driver.getTitle();\r\n\t System.out.println(\"Title of the page: \"+title);\r\n\t \r\n\t if( title.contains(\"Welcome\")) {\r\n\t \t System.out.println(\"Pass\"); \r\n\t }else{\r\n\t \t System.out.println(\"Fail\");\r\n\t }\r\n\t \t \r\n\t String idhome = driver.getWindowHandle();\r\n\t System.out.println(\"Windows id: =\"+ idhome);\r\n \r\n\t \r\n\t \r\n\t //driver.findElement(By.linkText(\"SIGN-ON\")).click();\r\n\t \r\n\r\n\t\t\r\n\r\n\r\n//List<Foo> foos = ...;\r\n//for (Foo foo : foos)\r\n//{\r\n //foo.bar();\r\n//}\r\n\t \r\n\t //homepage link\r\n\t List<WebElement> homePageLink = driver.findElements(By.tagName(\"a\"));\r\n\t \r\n\t \r\n\t for(WebElement ele : homePageLink){\r\n\t \t//System.out.println(ele.getText()+\"----\");\r\n\t \t//ele.click();\r\n\t //\r\n\t \t//driver.findElement(By.linkText(ele.getText())).click();\r\n\t \r\n\t \r\n\t \t\r\n\t Thread.sleep(2000);\r\n\t }\r\n\t \r\n\t driver.get(\"http://letef.com/testPage.php\");\r\n\t //homepage of letef\r\n\t String homepPage = driver.getWindowHandle();\r\n\t \r\n\t // driver.findElement(By.linkText(\"Open Yahoo page\"));\r\n\t \r\n\t driver.findElement(By.partialLinkText(\"Open Yahoo page\"));\r\n\t \r\n\t \r\n\t \r\n\t Set<String> allWindowID = driver.getWindowHandles();\r\n\t for(String str: allWindowID){\r\n\t \t\r\n\t }\r\n\t \r\n\t driver.close();\r\n\t \r\n\t}", "title": "" }, { "docid": "18ebdfb16d7efb1b0fab13e146d614e3", "score": "0.6432431", "text": "public static void main(String[] args) {\n\t\n\tSystem.setProperty(\"webdriver.chrome.driver\",\"/Users/kotla/Desktop/selenium/workspace/Selenium_Automation/browserDrivers/chromedriver\");\n\tWebDriver driver = new ChromeDriver();\t\n\t\n\t//open URL\n\tdriver.get(\"https://www.facebook.com/\");\n\t\n\t//maximize the window\n\tdriver.manage().window().maximize();\n\t\n\tdriver.findElement(By.name(\"email\")).sendKeys(\"asfhbfsdk@gmail.com\");\n\tdriver.findElement(By.name(\"pass\")).sendKeys(\"jkasgfshd\");\n\t\n\t//click on login button\n\tdriver.findElement(By.id(\"loginbutton\")).click();\n\n\t\n}", "title": "" }, { "docid": "dfdf3037d53e0e7fa6e4c987cc8a85a6", "score": "0.64311445", "text": "@BeforeAll\n static void setUpAll() {\n System.setProperty(\"webdriver.chrome.driver\", drivePath);\n // System.setProperty(\"webdriver.edge.driver\", drivePath);\n }", "title": "" } ]
3c77b52f26e3f1f192b53e1e969505c9
Creates a warning message stating that the given element has content which might be nonCDATA HTML, which can cause problems for import.
[ { "docid": "5f78af372451cb6fa29aa938755b7dfb", "score": "0.742211", "text": "private String createHTMLWarningMsg(LineNumberElement element) {\n String msg = \"The element at line \" + element.getStartLine()\n + \" in \" + currentFile + \" has HTML content which may cause parsing problems: \"\n + \"\\\"\" + element.getTextTrim() + \"\\\"\";\n return msg;\n }", "title": "" } ]
[ { "docid": "bfac0ee395f18df74de18b4a6ed74d50", "score": "0.6493847", "text": "private void checkElement(LineNumberElement ele) {\n List<org.jdom.Content> contents = ((Element)ele).getContent();\n if ((contents.size() == 1) && (contents.get(0) instanceof org.jdom.CDATA)) {\n // Contents of 'ele' is well-formed CDATA; we're done.\n return;\n }\n\n // At this point, if special characters exist, it isn't well-formed CDATA.\n String theText = ele.getTextTrim();\n if (specialCharactersPresent(theText)) {\n if (verbose) {\n logger.warn(createHTMLWarningMsg(ele));\n }\n report.increaseHTMLWarnings();\n }\n }", "title": "" }, { "docid": "8cbf24f0307ead7f4098bccf1459c52b", "score": "0.5493966", "text": "private String createIgnoreMsg(String element) {\n String msg = \"Ignoring the <\" + element + \"> element.\";\n return msg;\n }", "title": "" }, { "docid": "ee632bed940b93efb25759e592030868", "score": "0.5470524", "text": "private String createProblemWarningMsg(LineNumberElement element, String parent) {\n String msg = \"<\" + element.getName() + \"> in the <\" + parent\n + \"> at line \" + element.getStartLine() + \" in \" + currentFile\n + \" is redundant. Make sure <problem> is included in the <\"\n + Message.CONTEXT_MSG_ELEMENT + \">\";\n return msg;\n }", "title": "" }, { "docid": "1095b1276366eabe69505b6262bf960b", "score": "0.5391638", "text": "public void warning(String message) throws SAXException {\n\t\t\t\t\t}", "title": "" }, { "docid": "8c29a149bc39f67e828386bb9feeaba1", "score": "0.53523886", "text": "private void avoidStaleness(TeasyElement element) {\n element.getText();\n }", "title": "" }, { "docid": "40f7546c0f536b9ec25c6a261bb4caab", "score": "0.5141245", "text": "public void startCDATA() throws SAXException {\n/* 475 */ couldThrowSAXException();\n/* */ }", "title": "" }, { "docid": "59c8b9ff40f7e3d00e60f676b8178818", "score": "0.5088437", "text": "public String getNonHtmlContent()\n {\n return isHtmlContent() ? sb.toString() : orig;\n }", "title": "" }, { "docid": "aa8c82e4b491986214ac1ddcb05f8dcb", "score": "0.50691617", "text": "private void generateEmptyWarning() {\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"RUCAFE: WARNING\");\n alert.setHeaderText(\"No Stored Orders!\");\n alert.setContentText(\"There are no orders placed! Please\" +\n \" navigate back to the menu and place some orders!\");\n alert.showAndWait();\n }", "title": "" }, { "docid": "c1c5a80ce9b30e5c076159fab0b97851", "score": "0.5054799", "text": "public abstract String warning(String TAG, String message);", "title": "" }, { "docid": "cd39aa3cc49e6936879f4e0499ae279d", "score": "0.4999745", "text": "void noteWarning(String description);", "title": "" }, { "docid": "1ec4fa8308fb1f108a0f984b265d9b02", "score": "0.49940962", "text": "@Override\n\tpublic String getTextContent() throws DOMException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "85ee6f3c47edfc3d60641818e1cb7116", "score": "0.49876314", "text": "private void setWarning(String title, String content) {\n\t\tAlert alert = new Alert(AlertType.WARNING);\n\t\talert.setTitle(title);\n\t\talert.setContentText(content);\n\t\talert.showAndWait();\n\t}", "title": "" }, { "docid": "255b86bf056cb8c623d40639d7ae26f8", "score": "0.49649936", "text": "public void validateNewsText() {\n\t\tWaitForElement(news);\n\t\tString expectedNewsText = \"Notice: This is a testing site meant to be used for automation test trainings\";\n\t\tString newsText = getText(news);\n\t\tAssert.assertEquals(expectedNewsText, newsText);\n\t}", "title": "" }, { "docid": "6ec6bdda2c677e1f73e0209601dbfca8", "score": "0.49454838", "text": "public boolean isScriptWarningBlockValid ();", "title": "" }, { "docid": "1dc393d18c8a409901261468f149f77b", "score": "0.48724562", "text": "public String warning()\n {\n return \"\";\n }", "title": "" }, { "docid": "84fa906465d3de82f5aa3e68b15ffde4", "score": "0.48063982", "text": "public String getWarningDialogTextMsg() {\r\n\t\t\r\n\t\tString msg = null;\r\n\t\ttry {\r\n\t\t\tmsg = driver.findElement(By.xpath(\"//div[contains(@class, 'x-window-dlg')]\")).getText();\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn msg;\r\n\t}", "title": "" }, { "docid": "fdf24ad9a25001a77091d298523a4e0d", "score": "0.48042443", "text": "@Test\n\tpublic void testEvilContent() throws Exception {\n\t\tString source = \"# ANALYSIS Test/Test ()\\ncontent\\n\";\n\t\tParsedScript parseRScript = new SADLTool(\"#\").parseScript(new ByteArrayInputStream(source.getBytes()));\n\t\tAssert.assertEquals(parseRScript.SADL.length(), 22);\n\t\tAssert.assertEquals(parseRScript.source.length(), source.length());\n\t}", "title": "" }, { "docid": "dd60c9477e318189ba9b3eee2c0d35de", "score": "0.4776897", "text": "private static String htmlFilter(String message) {\n if (message == null) return null;\n int len = message.length();\n StringBuffer result = new StringBuffer(len + 20);\n char aChar;\n \n for (int i = 0; i < len; ++i) {\n aChar = message.charAt(i);\n switch (aChar) {\n case '<': result.append(\"&lt;\"); break;\n case '>': result.append(\"&gt;\"); break;\n case '&': result.append(\"&amp;\"); break;\n case '\"': result.append(\"&quot;\"); break;\n default: result.append(aChar);\n }\n }\n return (result.toString());\n }", "title": "" }, { "docid": "f0a324c5c2a8544b1310a317fc9cc2b3", "score": "0.47707972", "text": "@NotNull\n CharSequence fromHtml(@Nullable String content);", "title": "" }, { "docid": "21c5d35a7b78bcac92a479bf9ee86b40", "score": "0.47601247", "text": "@Test\n public void test42() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"frame\");\n TaggedWord taggedWord0 = new TaggedWord(\"chunk\");\n // Undeclared exception!\n try {\n Component component0 = xmlEntityRef0.htmlText((Object) taggedWord0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "450fd271f9d200c6fc9059770c8e5824", "score": "0.47598663", "text": "public void startCDATA() throws SAXException {}", "title": "" }, { "docid": "cbdb56fa085cba7df15528dc36c2d23e", "score": "0.47261235", "text": "@Override\n\tpublic void setTextContent(String arg0) throws DOMException {\n\n\t}", "title": "" }, { "docid": "f6719b74718cff960fb403a67787a818", "score": "0.47238424", "text": "public static void inputViolation(String content) {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Invald Input Notice\");\n alert.setHeaderText(\"Input Violation\");\n alert.setContentText(content);\n alert.setResizable(true);\n alert.showAndWait();\n }", "title": "" }, { "docid": "2f2786030d48e04370634da56cb39d8d", "score": "0.47069055", "text": "public TextContent createTextContent(String txt) throws IllegalMarkupException\r\n {\r\n if ( isStrict() ) throw new IllegalMarkupException(getClass() + \" cannot create text content.\");\r\n else return super.createTextContent(txt);\r\n }", "title": "" }, { "docid": "6e07c5b8de7000fac5483ff2d8757857", "score": "0.46928546", "text": "public String getScriptWarningBlock ();", "title": "" }, { "docid": "9ee0b68404c0e898c40010180c00087c", "score": "0.46822447", "text": "@Override\n public VerificationResult constructElementNotDefinedResult(String elementSimpleName, ElementKind elementKind,\n Element enclosingElement) {\n return new VerificationResult(Diagnostic.Kind.WARNING, elementKind, null, \"No element annotated with \" +\n elementSimpleName + \" \" + \"is defined in enclosing element \" + enclosingElement.getSimpleName()\n .toString());\n }", "title": "" }, { "docid": "f10a8a585b4831165839cfdb27875a5f", "score": "0.4674287", "text": "private void elementToast(@NonNull OsmElement element) {\n StringBuilder toast = new StringBuilder(element.getDescription(getMain()));\n Validator validator = App.getDefaultValidator(getMain());\n if (element.hasProblem(getMain(), validator) != Validator.OK) {\n toast.append('\\n');\n String[] problems = validator.describeProblem(getMain(), element);\n if (problems.length != 0) {\n for (String problem : problems) {\n toast.append('\\n');\n toast.append(problem);\n }\n }\n }\n Snack.toastTopInfo(getMain(), toast.toString());\n }", "title": "" }, { "docid": "34ce313ce9196f53921ff3dea7f4fe60", "score": "0.46519074", "text": "public boolean isWarning() throws Exception{\n\t\tcheckFrame();\n\t\tif(docIndex==null){\n\t\t\tgetDocIndex();\n\t\t}\n\t\tString bro;\n\t\tif(isModalForm==true){\n\t\t\tbro=e1Browser;\n\t\t}else{\n\t\t\tbro=\"/\";\n\t\t}\n\t\tinfo(\"Start of Function: isWarning\");\n\t\tString warnMessage;\n\t\tif (web.exists(bro+\"/web:img[@alt='Warning*' and @id='WIDGETID*']\",10)){\n\t\t\tString srcFileName = web.image(bro+\"/web:img[@alt='Errors and Warnings' or @alt='Warnings*']\").getAttribute(\"src\");\n\t\t\tif (web.exists(bro+\"/web:a[@href='javascript:inyfeHandler.toggleDescription*']\",10)){\n\t\t\t\twarnMessage = web.link(bro+\"/web:a[@href='javascript:inyfeHandler.toggleDescription*' and @text!='null']\").getAttribute(\"text\");\n\t\t\t\tinfo(\"DONE: Warning '\" + warnMessage + \"' found.\");\n\t\t\t\tinfo(\"End of Function: isWarning\");\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\telse { \n\t\t\t\t//info(\"Done: Warning Exists but, Unable to Get Warning Text - Warning Unknown.\"); \n\t\t\t\tinfo(\"End of Function: isWarning\");\n\t\t\t\treturn false; \n\t\t\t}//*/\n\t\t}\n\t\telse {\n\t\t\t//String formTitle = web.element(bro+\"/web:span[@id='jdeFormTitle0']\").getAttribute(\"text\");\n\t\t\t//info(\"Done: No Warning message was found on the following Form : \"+ formTitle);\n\t\t\tinfo(\"End of Function: isWarning\");\n\t\t\treturn false;\n\t\t} \n\t}", "title": "" }, { "docid": "f378fb20603c74a9135e17c717bdb140", "score": "0.46439373", "text": "public void endCDATA() throws SAXException {\n/* 482 */ couldThrowSAXException();\n/* */ }", "title": "" }, { "docid": "57063cd5e38b624ff1e47e15a616301c", "score": "0.46411043", "text": "protected boolean isColumnHTML(int column)\n {\n return false;\n }", "title": "" }, { "docid": "4cd101ba61d951e127c97e4a34a866ba", "score": "0.46281552", "text": "public boolean checkActiveWarning(By elementRef, String warningText) {\n String element = readText(elementRef);\n\n if (element.contains(warningText)) {\n System.out.println(\"Bug found. Guest user cannot make the purchase.\");\n return true;\n } else {\n System.out.println(\"There is no warning message.\");\n return false;\n }\n }", "title": "" }, { "docid": "b82a62539cebcfc20c6874e9e83d47a1", "score": "0.4627824", "text": "private void warning(String msg)\r\n {\r\n lWarnings.add(new SAXParseException(msg,locator));\r\n }", "title": "" }, { "docid": "aab7218acc056d532c9778c84dbc002d", "score": "0.46118462", "text": "public static void emptyFormAlert(String content) {\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Warning\");\n alert.setHeaderText(\"Empty Form Submission Error\");\n alert.setContentText(content);\n alert.showAndWait();\n }", "title": "" }, { "docid": "20c403370303525ea5f5599982e6c1d2", "score": "0.45990017", "text": "public void parseCDATA(StringBuilder parsedContent) {\n if (parsedContent.toString().contains(\"![CDATA[]]\")) {\n String cdataString = parsedContent.toString();\n Document description = Jsoup.parseBodyFragment(cdataString, \"UTF-8\");\n for (Element d : description.select(\"description\")) {\n if (d.hasText()) {\n String unescapedHtml = d.text().replace(\"o:p\", \"p\");\n Document text = Jsoup.parse(unescapedHtml, \"UTF-8\");\n parsedContent.setLength(0);\n for (Element p : text.select(\"p\")) {\n parsedContent.append(\"<p>\" + p.html() + \"</p>\");\n }\n }\n }\n }\n }", "title": "" }, { "docid": "9bafeca79b002a5174431f6018bdcce7", "score": "0.45975578", "text": "private String createChildErrorMsg(LineNumberElement child, String parent) {\n String msg = \"Content is missing for child <\" + child.getName()\n + \"> in parent <\" + parent + \"> at line \" + child.getStartLine()\n + \" in '\" + getCurrentFile() + \"'.\";\n return msg;\n }", "title": "" }, { "docid": "4703cd43f7e2b8137436e9aee4b53302", "score": "0.45968795", "text": "public void AssertCommentSucessfully() {\n\n String expectedCommentMessage = \"News comment is successfully added.\";\n String actualCommentMessage = getTextfromElement(By.xpath(\"//div[@class=\\\"result\\\"]\"));\n Assert.assertEquals(actualCommentMessage, expectedCommentMessage);\n }", "title": "" }, { "docid": "1f332ec43f48d65a66e1caad33168b9b", "score": "0.45816186", "text": "public static String getDescription(){\n\t\treturn \"<HTML><BODY>le coup de taille inflige 4 dommages à une cible au sol sur une \"\n\t\t\t\t+ \"case adjacente <BR>au guerrier </BODY></HTML>\";\n\t}", "title": "" }, { "docid": "ebf5eee1ad34cfeae1118baf109aefa0", "score": "0.45814925", "text": "@Test\n public void invalidProcessingInstruction() throws Exception {\n final String string = \"<!--?><?a/\";\n\n final HTMLConfiguration parser = new HTMLConfiguration();\n final EvaluateInputSourceFilter filter = new EvaluateInputSourceFilter(parser);\n parser.setProperty(\"http://cyberneko.org/html/properties/filters\", new XMLDocumentFilter[] {filter});\n final XMLInputSource source = new XMLInputSource(null, \"myTest\", null, new StringReader(string), \"UTF-8\");\n parser.parse(source);\n\n final String[] expected = {\"(HTML\", \"(head\", \")head\", \"(body\", \")body\", \")html\"};\n assertEquals(Arrays.asList(expected).toString(), filter.collectedStrings_.toString());\n }", "title": "" }, { "docid": "1bee1db782b4eacc456aac7f3c433824", "score": "0.4574026", "text": "public String filterCDATAContent( String input )\n {\n return filter( new CDATAManipulator(), input );\n }", "title": "" }, { "docid": "d2609b3fdc8e641ba124731354241126", "score": "0.45643702", "text": "String getDeprecationMessage();", "title": "" }, { "docid": "501388c02174626b2631bc8e1a79035b", "score": "0.45604768", "text": "public static void createSiteWarning(String siteWarning) {\r\n AntwebUtil.writeFile(AntwebProps.getWebDir() + \"siteWarning.jsp\", siteWarning);\r\n }", "title": "" }, { "docid": "9a11dd6c3d37899334643929a74a3b08", "score": "0.45516208", "text": "public boolean hasXmlText()\r\n \t{\r\n \t\treturn false;\r\n \t}", "title": "" }, { "docid": "111fad1a40e49418561916d77f6bfc57", "score": "0.45488256", "text": "public static void invalidIntegerAlert(String content) {\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Warning\");\n alert.setHeaderText(\"Invalid Integer Input\");\n alert.setContentText(content);\n alert.showAndWait();\n }", "title": "" }, { "docid": "ebdccd4f90d4498834980f5ca653c7d7", "score": "0.45474982", "text": "public boolean isTextNode (Element element);", "title": "" }, { "docid": "6d3cde9475cc47f045f1a331d40f836e", "score": "0.45294693", "text": "public void invalidUserExpected() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tbrowser.waitUntilElementPresent(\"//*[@content-desc='Snackbar Message']\");\r\n\t\t\tbrowser.verifyText(\"accessibilityId\", \"Snackbar Message\", \"Invalid username or password.\");\r\n\t\t} catch (NoSuchElementException e) {\r\n\t\t\tSystem.out.println(\"Element Not Found\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e0ea7078c473839138a4f705e20e6807", "score": "0.45246488", "text": "public void startCDATA() {\n/* 708 */ ElementState state = getElementState();\n/* 709 */ state.doCData = true;\n/* */ }", "title": "" }, { "docid": "6ffeeb378a17bb83a42213f6e8b2e8cd", "score": "0.45230478", "text": "@Override\r\n public String getDescription() {\r\n return content == null ? \"\" : content.getDescription();\r\n }", "title": "" }, { "docid": "d39306bd52f445aba7e7ce11eb3042de", "score": "0.4519284", "text": "public static void invalidDoubleAlert(String content) {\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Warning\");\n alert.setHeaderText(\"Invalid Double Input\");\n alert.setContentText(content);\n alert.showAndWait();\n }", "title": "" }, { "docid": "2ccf899dbe35e70e7dd8a749fcc92727", "score": "0.4508751", "text": "private String getCharacterDataFromElement(Element element){\n\t\tNode child = element.getFirstChild();\n\t\tif (child instanceof CharacterData) {\n\t\t\tCharacterData cd = (CharacterData) child;\n\t\t\t// DOMException es una RuntimeException, asi que no se relanza\n\t\t\treturn cd.getData();\n\t\t}\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "2226e9c1bb3b6f346e99ad47af765bd3", "score": "0.45037752", "text": "org.apache.xmlbeans.XmlString xgetComment();", "title": "" }, { "docid": "2226e9c1bb3b6f346e99ad47af765bd3", "score": "0.45037752", "text": "org.apache.xmlbeans.XmlString xgetComment();", "title": "" }, { "docid": "98ed591a86fe91972c53bd12c4614c0d", "score": "0.45005453", "text": "@Override\n\tpublic String warning() {\n\t\treturn \"Warning you have not filled all data fields\";\n\t}", "title": "" }, { "docid": "20738827a1c7e38c3ba502fd1a179910", "score": "0.4489801", "text": "public String getWarningString() {\r\n return warningBuilder.toString();\r\n }", "title": "" }, { "docid": "b4e012507d367e8567b08c0afbcc7872", "score": "0.44862533", "text": "org.apache.xmlbeans.XmlString xgetDESCDONNEEMESURE();", "title": "" }, { "docid": "db6db5ea026200af7f838793491a1410", "score": "0.4482975", "text": "public void WrongMail()\n\t\n\t{\t \n\t\t String actual = driver.findElement(By.xpath(\".//*[@id='report-error']/p\")).getAttribute(\"innerHTML\");\n\t\t String expected = \"The Coordinator Email field must contain a valid email address.\"; \n\t\t Assert.assertEquals(actual, expected);\n\t}", "title": "" }, { "docid": "46194abf02ecb3ad960602e7b1c34c59", "score": "0.44810838", "text": "public String setValue(String eleValue) {\n return new String(SecEdge.XML_TAG +\n \" XML Elements do not have Text fields (\"\n + eleValue + \").\");\n }", "title": "" }, { "docid": "a71674fd9c345936e7dc766f5f2f0afc", "score": "0.44678307", "text": "public static void criarMensagemAviso(String texto) {\r\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_WARN, texto, texto);\r\n FacesContext.getCurrentInstance().addMessage(texto, msg);\r\n }", "title": "" }, { "docid": "e075e44f2cddf09cb0be54655febca6f", "score": "0.44612685", "text": "@Override\n public String getContent() {\n return \"text\";\n }", "title": "" }, { "docid": "885b2a7c9a4d1fb9e2bc2b37384bd19d", "score": "0.44583267", "text": "private boolean checkFileContent(String content){\n return true;\n }", "title": "" }, { "docid": "fdb891be96236eb217f4c6261ee1e2ee", "score": "0.4454864", "text": "public void endCDATA() {\n/* 717 */ ElementState state = getElementState();\n/* 718 */ state.doCData = false;\n/* */ }", "title": "" }, { "docid": "00c82f1329afdff5647262ee84b087ad", "score": "0.44517785", "text": "public BlankCaseElement() {\n\t\tsuper(\"\");\n\t}", "title": "" }, { "docid": "b12009ac95b31a7faa3ee26373d979a1", "score": "0.44391847", "text": "public boolean isIgnoreWarning();", "title": "" }, { "docid": "bd7bd10f9fb870f3c3323342e0d0d058", "score": "0.44317368", "text": "private void checkContent(Element root) throws JDOMException {\n\t\tList children = root.getChildren();\n\t\t\n\t\tfor (int i = 0; i < children.size(); ++i) {\n\t\t\tElement child = (Element)children.get(i);\n\t\t\tString name = child.getName();\n\t\t\t\n\t\t\tif (\"Position\".equals(name)) {\n\t\t\t\tcheckPosition(child);\n\t\t\t}\n\t\t\telse if (\"UniqueId\".equals(name)) {\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new JDOMException(\"the difference tree contains the non-OTA-compliant type \\\"\" + name + \"\\\"\");\n\t\t\t//\tSystem.out.println(\"the difference tree contains the non-OTA-compliant type \\\"\" + name + \"\\\"\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "18dd2e2b15bd3ce42f285c5fcc081d90", "score": "0.44297862", "text": "public HarWarning(String message)\r\n {\r\n this.message = message;\r\n }", "title": "" }, { "docid": "940879ba9721378929a6caf5196c8cfb", "score": "0.44251978", "text": "private String sanitizeHtml(FacesContext context, TextEditor editor, String value) {\n String result = value;\n if (editor.isSecure() && PrimeApplicationContext.getCurrentInstance(context).getEnvironment().isHtmlSanitizerAvailable()) {\n result = HtmlSanitizer.sanitizeHtml(value,\n editor.isAllowBlocks(), editor.isAllowFormatting(),\n editor.isAllowLinks(), editor.isAllowStyles(), editor.isAllowImages());\n }\n else {\n if (!editor.isAllowBlocks() || !editor.isAllowFormatting()\n || !editor.isAllowLinks() || !editor.isAllowStyles() || !editor.isAllowImages()) {\n LOGGER.warning(\"HTML sanitizer not available - skip sanitizing....\");\n }\n }\n return result;\n }", "title": "" }, { "docid": "016519b82fe38d69ade7f415fb73d441", "score": "0.44166476", "text": "public String getErrorText() {\n\t\tLog.info(\"Fetching the error message\");\n\n String ActualData = wait.until(ExpectedConditions.elementToBeClickable(driver.findElement(this.errorAlert))).getText();\n return ActualData;\n\n }", "title": "" }, { "docid": "1effe80d17eb0f0ec72cf0da9864d611", "score": "0.4403718", "text": "public void warn(CharSequence arg0)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "bfec3b79ead41c882ab05c5973a47b38", "score": "0.43980533", "text": "boolean isWarningEnabled();", "title": "" }, { "docid": "f171f4be7f97de8378a34516daa46e8a", "score": "0.43926692", "text": "protected String validateTemplate(String content) {\n\t\tMap<?, ?> model = getSimpleModel();\n\t\tif (model == null)\n\t\t\treturn null;\n\t\ttry {\n\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\tfreemarker.template.Template template = new freemarker.template.Template(\n\t\t\t\t\t\"test\", new StringReader(content));\n\t\t\tFreeMarkerGenerator fg = new FreeMarkerGenerator();\n\t\t\tfg.gen(template, model);\n\t\t} catch (Exception e) {\n\t\t\treturn e.getMessage();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8fc4f153d593ba64ed45d75bddc1a5ae", "score": "0.4388456", "text": "private String getLoremIpsum(){\n return \"<html>Lorem ipsum dolor sit amet,<br>consectetur adipiscing elit.\" +\n \"<br>Mauris dignissim a risus in imperdiet.<br>Phasellus fermentum suscipit lorem,\" +\n \"<br>ac ornare metus accumsan eget.<br>Vestibulum sodales placerat molestie.\" +\n \"<br>Duis quis vulputate.</html>\";\n }", "title": "" }, { "docid": "f2a4e080d3949cb5bbca1be851cd1191", "score": "0.438825", "text": "@Test\n public void invalidProcessingInstruction3() throws Exception {\n final String string = \"<?a x\\r\";\n\n final HTMLConfiguration parser = new HTMLConfiguration();\n final EvaluateInputSourceFilter filter = new EvaluateInputSourceFilter(parser);\n parser.setProperty(\"http://cyberneko.org/html/properties/filters\", new XMLDocumentFilter[] {filter});\n final XMLInputSource source = new XMLInputSource(null, \"myTest\", null, new StringReader(string), \"UTF-8\");\n parser.parse(source);\n\n final String[] expected = {\"(HTML\", \"(head\", \")head\", \"(body\", \")body\", \")html\"};\n assertEquals(Arrays.asList(expected).toString(), filter.collectedStrings_.toString());\n }", "title": "" }, { "docid": "ead4242c5d3ee7c09fa3e0f9c2a8d72b", "score": "0.43847597", "text": "public WebElement exceedsErrorMsg() {\n\t\treturn getElementfluent(By.xpath(\"//*[@id='toast-container']/div/div/div\"));\n\t}", "title": "" }, { "docid": "1444f1022cadd2a19689ae13655fb5a6", "score": "0.43840352", "text": "public static String ucdpSubmissionFailed_txt(){\n\t\tid = \"divMessageOK\";\n\t\treturn id;\n\t}", "title": "" }, { "docid": "41b5bb636ef703337e620bbf99147d7a", "score": "0.4371976", "text": "@Override\n\tpublic boolean levelIsValid(String content) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d5a08d33585407df9a8a88715d386f98", "score": "0.43716544", "text": "public static void fileCouldNotBeCreatedAlert(String content) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"File I/O Error\");\n alert.setHeaderText(\"File Could Not Be Created or Accessed\");\n alert.setContentText(content);\n alert.setResizable(true);\n alert.showAndWait();\n }", "title": "" }, { "docid": "4517750ac6727052b10728c35042966e", "score": "0.4371524", "text": "public void endCDATA() throws SAXException {}", "title": "" }, { "docid": "e9e1920acc2cd80612376ca2ee685260", "score": "0.43665498", "text": "private void addWarningMessage(final QcContext context, final String warningMessage) {\n context.addWarning((context.getFile() != null ? \"[\" + context.getFile().getName() + \"] \" : \"\") + warningMessage);\n }", "title": "" }, { "docid": "92e51ebe7c0103fd981e283f5a617d11", "score": "0.4357183", "text": "public String getDescriptionErrorMsg() {\n\t\treturn descriptionErrorMsg.getText();\n\t}", "title": "" }, { "docid": "7e0c2e87dd095b533f8d993e685c08ea", "score": "0.43521518", "text": "@AutoEscape\r\n\tpublic String getNoiDungHtml();", "title": "" }, { "docid": "2c8e9ae0c3955ea17ab42db5b0c88107", "score": "0.43520802", "text": "com.google.protobuf.ByteString getRemark();", "title": "" }, { "docid": "d8dae1590c6e0f49182028eddd4e95ae", "score": "0.43470722", "text": "boolean hasBadDescription();", "title": "" }, { "docid": "5904070f19705226202b47714bf0c991", "score": "0.43451452", "text": "public String getDescription() {\n\t\treturn \"text content\" ;\n\t}", "title": "" }, { "docid": "f864699ba2c1c748cfc32c205782ec3f", "score": "0.43451232", "text": "public void warning(SAXParseException arg0) throws SAXException {\n/* 653 */ couldThrowSAXException();\n/* */ }", "title": "" }, { "docid": "4f396dd933c8808efaf71255830ccd16", "score": "0.4336538", "text": "@RecentlyNonNull\n/* */ public CharSequence getContentDescription() {\n/* 87 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "7856035ae8fbf34ab386759f5960c38c", "score": "0.43353188", "text": "public static void getWarning(String message){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Warning\");\n alert.setHeaderText(message);\n alert.setContentText(\"please enter again!!!\");\n alert.showAndWait();\n }", "title": "" }, { "docid": "712990a7d7c9bd5c712ceac45345b992", "score": "0.4323858", "text": "public String getTextContent() { return this.mArticleContent.getText().toString();}", "title": "" }, { "docid": "6ab217d63b2d06c064cfb3b72d378f08", "score": "0.43231913", "text": "public void warning(TransformerException exception) throws TransformerException {\r\n if (showWarnings) {\r\n super.warning(exception);\r\n }\r\n }", "title": "" }, { "docid": "10ea9510c3c32135b43bf7d54c39b690", "score": "0.4322317", "text": "@Override\r\n public void warning(TransformerException e) throws TransformerException {\n logger.warn(getDescriptiveMessage(e), e);\r\n }", "title": "" }, { "docid": "bc6f33fffe330b44941e64cd47c059a1", "score": "0.43172854", "text": "public void setContent(java.lang.String value) {\n this.content = value;\n }", "title": "" }, { "docid": "bebdf008f3026a300fdd0945d4a54ce4", "score": "0.4316305", "text": "void xsetDESCDONNEEMESURE(org.apache.xmlbeans.XmlString descdonneemesure);", "title": "" }, { "docid": "f5da10ee7658a3ff7b1d2e81ca7f900e", "score": "0.43087423", "text": "protected void toastForNotImplementedFeature(){\n toastShort(R.string.commen_notmake);\n }", "title": "" }, { "docid": "aef53a5be00dd6a2de56b910cb144bad", "score": "0.42990565", "text": "@Test\n @ServerConfig(configuration = STANDALONE_MISSING_START_OF_ELEMENT_XML)\n public void missingStartOfElement()throws Exception {\n container().tryStartAndWaitForFail();\n String errorLog = container().getErrorMessageFromServerStart();\n assertContains(errorLog, \" modify-wsdl-address>true</modify-wsdl-address>\");\n assertContains(errorLog, \"^^^^ Received non-all-whitespace CHARACTERS or CDATA event in nextTag()\");\n\n }", "title": "" }, { "docid": "1492b1a83fa1c5128fb9f9c69c0591f2", "score": "0.4298146", "text": "org.apache.xmlbeans.XmlString xgetDescripcion();", "title": "" }, { "docid": "9909ff5d77599729f259a7f657d60383", "score": "0.4295937", "text": "@NotNull\n WebElement html() throws CCAPIException;", "title": "" }, { "docid": "d2e04826979f92ea309e9ee562de6074", "score": "0.4295619", "text": "@Test\n public void test25() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \"K*q`y/;LVkV?gX\", \"K*q`y/;LVkV?gX\");\n // Undeclared exception!\n try {\n Component component0 = checkbox0.wBlock((CharSequence) \"pj\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "8e25af53a33c4276796dac5b740817b0", "score": "0.4290524", "text": "@Test\r\n public void testUnSafeXLTMDocument() {\r\n // Prepare test\r\n File sample = new File(SAMPLES_DIRECTORY, \"test-with-macro.xltm\");\r\n // Run test\r\n boolean safeState = this.victim.isSafe(sample);\r\n // Validate test\r\n Assert.assertFalse(safeState);\r\n }", "title": "" }, { "docid": "86de114cf614bb9ae53a5c7d5a08fbf6", "score": "0.42883837", "text": "private void warning(String message)\r\n throws SAXException {\r\n ErrorHandler h = super.getErrorHandler();\r\n if (h != null) {\r\n if (locator != null) {\r\n h.warning(new RDFException(message, locator));\r\n } else {\r\n h.warning(new RDFException(message));\r\n }\r\n }\r\n }", "title": "" }, { "docid": "3b6839edb858c3185783a0df3263e150", "score": "0.42877865", "text": "public static String removeCDATA(String s) {\r\n s = s.trim();\r\n int pos = s.indexOf(\"<![CDATA[\");\r\n \r\n if (pos < 0)\r\n pos = -9;\r\n s = s.substring(pos+9).trim();\r\n if (s.endsWith(\"]]>\"))\r\n s = s.substring(0, s.length()-3).trim();\r\n \r\n return s;\r\n }", "title": "" }, { "docid": "5d051aa9c757919971f9b164e710b03a", "score": "0.42852706", "text": "private static Test warning(final String message) {\r\n return new TestCase(\"warning\") {\r\n protected void runTest() {\r\n fail(message);\r\n }\r\n };\r\n }", "title": "" }, { "docid": "6be9e37fcf33444ae76a3052374ce3e2", "score": "0.4281697", "text": "public boolean getCertifiedText() {\n return false;\n }", "title": "" } ]
5e88cf3a976495961d4713784c7a921b
Indicates that this container should behave as a Property Owning container: It will change the ownership of any property added to it to it's owner, and will have the property broadcast propertyDeleted events.
[ { "docid": "c24da4d751387da3bfe298459ad252b4", "score": "0.6783564", "text": "@Override public boolean isPropertyOwner() {\n\t\treturn propertyOwningContainer;\n\t}", "title": "" } ]
[ { "docid": "12e9189b323fe1681530c51e14adf257", "score": "0.60382724", "text": "public interface PropertyContainer extends PropertyTarget, Releasable {\n\n\t/** Is the specified property supported by the container.\n\t * If the container is unconstrained this always returns true\n\t * \n\t * @param tag\n\t * @return boolean true if property supported\n\t */\n\tpublic boolean supports(PropertyTag<?> tag);\n\t/** Is the specified property supported for write.\n\t * If the container is unconstrained this always returns true\n\t * \n\t * @param tag\n\t * @return boolean true if property can be written\n\t */\n\tpublic boolean writable(PropertyTag<?> tag);\n\t/** Get the specified property from the container.\n\t * THe InvalidPropertyException should only be thrown if the supports method would have\n\t * returned false for the requested property.\n\t * \n\t * @param <T> type of property\n\t * @param key PropertyTag identifying property\n\t * @return value current value of property (may be null if not set).\n\t * @throws InvalidExpressionException \n\t */\n\tpublic abstract <T> T getProperty(PropertyTag<T> key) throws InvalidExpressionException;\n /** Set the specified property\n * \n * @param <T> type of property\n * @param key PropertyTag identifying property\n * @param value \n * @throws InvalidPropertyException\n */\n\tpublic abstract <T> void setProperty(PropertyTag<? super T> key, T value) throws InvalidPropertyException;\n /** Set the specified property if it is supported\n * \n * @param <T> type of property\n * @param key PropertyTag identifying property\n * @param value \n */\n\tpublic abstract <T> void setOptionalProperty(PropertyTag<? super T> key, T value);\n\t/** Generate a set of all the properties defined in this container\n\t * \n\t * @return Set\n\t */\n\tpublic abstract Set<PropertyTag> getDefinedProperties();\n\t/** Copy all compatible properties from another container to this one;\n\t * \n\t * @param source PropertyContainer\n\t */\n\tpublic abstract void setAll(PropertyContainer source);\n\t\n\t/** clear all contents before disposal\n\t * \n\t */\n\tpublic void release();\n}", "title": "" }, { "docid": "877d5c5a3364c05d399f79b9d57b756f", "score": "0.5806473", "text": "@Override\n\t\tpublic void onPropertyEvent(PropertyEvent e) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c9560005ef5a8835173503e8ca027f1f", "score": "0.5595604", "text": "@Override\n\tpublic boolean deleteProperty(SwotActorProperty SwotActorProperty) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1ac528ee57bad0827104c73e381daad3", "score": "0.5447334", "text": "private void broadCastPropertyDeleted(Object o) {\n\t\tif (isPropertyOwner()) {\n\t\t\tif (o instanceof Property) {\n\t\t\t\tProperty<?> p = (Property<?>) o;\n\t\t\t\tp.delete(this);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "605a09173b136a0872e47479c226ae76", "score": "0.5336199", "text": "private void applyPropertyChanges() throws FxApplicationException {\n if (property.getLabel().getIsEmpty()) {\n throw new FxApplicationException(\"ex.structureEditor.noLabel\");\n }\n \n Set<String> missingKey = new HashSet<String>();\n List<String> notSetProperties = new ArrayList<String>();\n \n int min = FxMultiplicity.getStringToInt(propertyMinMultiplicity);\n int max = FxMultiplicity.getStringToInt(propertyMaxMultiplicity);\n \n FxJsfUtils.checkMultiplicity(min, max);\n \n for (FxStructureOption currentOption : property.getOptions()) {\n missingKey.add(currentOption.getKey());\n if (!currentOption.isValid()) {\n notSetProperties.add(currentOption.getKey());\n }\n }\n \n for (String currKey : notSetProperties) {\n property.clearOption(currKey);\n }\n //add edited options\n List<FxStructureOption> newGroupOptions = optionWrapper.asFxStructureOptionList(optionWrapper.getStructureOptions());\n for (FxStructureOption o : newGroupOptions) {\n property.setOption(o.getKey(), o.isOverrideable(), o.getValue());\n }\n \n if (!isSystemInternal() || FxJsfUtils.getRequest().getUserTicket().isInRole(Role.GlobalSupervisor)) {\n property.setMultiplicity(new FxMultiplicity(min, max));\n }\n \n for (FxStructureOption currentOption : property.getOptions()) {\n missingKey.remove(currentOption.getKey());\n }\n \n if (missingKey.size() > 0) {\n String firstKey = missingKey.iterator().next();\n missingKey.remove(firstKey);\n StringBuilder missingKeys = new StringBuilder(firstKey);\n String [] keys = new String[missingKey.size()];\n keys = missingKey.toArray(keys);\n for (String currentKey : keys) {\n missingKeys.append(\", \").append(currentKey);\n }\n new FxFacesMsgInfo(\"PropertyEditor.err.propertyKeysNotSaved\", missingKeys.toString()).addToContext();\n }\n }", "title": "" }, { "docid": "c2eb9e729e5e57f22cac4eb56fe704e8", "score": "0.52879494", "text": "public void createProperty() {\n if (FxJsfUtils.getRequest().getUserTicket().isInRole(Role.StructureManagement)) {\n try {\n applyPropertyChanges();\n long assignmentId;\n if (parentType != null) {\n assignmentId = EJBLookup.getAssignmentEngine().createProperty(parentType.getId(), property, parentXPath);\n }\n else {\n assignmentId = EJBLookup.getAssignmentEngine().createProperty(property, parentXPath);\n }\n StructureTreeControllerBean s = (StructureTreeControllerBean) FxJsfUtils.getManagedBean(\"structureTreeControllerBean\");\n s.addAction(StructureTreeControllerBean.ACTION_RELOAD_OPEN_ASSIGNMENT, assignmentId, \"\");\n // TODO messages were not shown... (when successfull)\n new FxFacesMsgInfo(\"PropertyEditor.message.info.created\").addToContext();\n } catch (Throwable t) {\n new FxFacesMsgErr(t).addToContext();\n }\n } else\n new FxFacesMsgErr(new FxApplicationException(\"ex.role.notInRole\", \"StructureManagement\")).addToContext();\n }", "title": "" }, { "docid": "da29864111df6e8185e3b91d0d6b51e9", "score": "0.52431536", "text": "@Override\n\tpublic void vetoableChange(PropertyChangeEvent evt)\n\t\t\tthrows PropertyVetoException {\n\t\t\n\t}", "title": "" }, { "docid": "6c92d18744fa692b4b6cf55a3d68ac70", "score": "0.52371925", "text": "public interface VolatilePropertyProxy\n{\n\tpublic boolean isDirty();\n\tpublic String formatted();\n\tpublic void clean();\n\tpublic Object getValueObject();\n}", "title": "" }, { "docid": "76b7790b43ef8d1e63cc05173efa0501", "score": "0.52328765", "text": "public interface ObjectPropertyModifier<S> extends PropertyModifier {\n void setPropertyToChange(ReadOnlyObjectWrapper<S> propertyToChange);\n}", "title": "" }, { "docid": "1849bda00eda45294ea2c13c9aff26ba", "score": "0.5221781", "text": "@Override\n\tpublic PropertyChangeSupport getPropertyChangeSupport() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1849bda00eda45294ea2c13c9aff26ba", "score": "0.5221781", "text": "@Override\n\tpublic PropertyChangeSupport getPropertyChangeSupport() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "454922b1a0049881f350841c8e65052b", "score": "0.52018255", "text": "@Override\n public void propertyChange(PropertyChangeEvent pce) {\n }", "title": "" }, { "docid": "2bfa70e380b9d90af8c6c107758dfed5", "score": "0.5191669", "text": "@Override\n\t\tpublic PropertyChangeSupport getPropertyChangeSupport() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "770d3ccf2d904f9895ca62cbb40dd011", "score": "0.5154121", "text": "@Override\n public void propertyChange(PropertyChangeEvent pcEvent) {\n Utils.sendNotification(pcEvent);\n }", "title": "" }, { "docid": "e9a79b44ff4a762014569992467f3098", "score": "0.513032", "text": "public ReadOnlyBooleanProperty resizingProperty() {\n return resizingProperty;\n }", "title": "" }, { "docid": "f66d782e7f752365a2a2103bb1d38e0a", "score": "0.50982416", "text": "public void setProperty(Property property);", "title": "" }, { "docid": "178ca81c96d6a6154acd6db09c17fb9d", "score": "0.5042463", "text": "public interface IProperty {\r\n \r\n\t/**\r\n * @return A unique ID for the property instace.\r\n */\r\n\tpublic int getId();\r\n\t\r\n\t\r\n\t/**\r\n * Sets the ID of the property to be the speficied one.\r\n * @param id The new ID.\r\n */\r\n\tpublic void setId(int id);\r\n\t\r\n\r\n\t/**\r\n * @return A user friendly name.\r\n */\r\n\tpublic String getName();\r\n\t\r\n\t\r\n\t/**\r\n * Sets the name of the property to be the specified one.\r\n * @param name The new name.\r\n */\r\n\tpublic void setName(String name);\r\n\t\r\n \r\n /**\r\n * Sets the environment to be analyzed by the property. Concrete implementations\r\n * might use the set environment directly.\r\n * \r\n * @param environment The environment to be analyzed.\r\n */\r\n public void setEnvironment(IEnvironment environment);\r\n \r\n \r\n\t/**\r\n\t * Calculates the value of the property concerning the\r\n\t * specified <code>PropertyBearerWrapper</code>.\r\n\t * \r\n\t * \r\n\t * @param pb The property bearer to be assessed.\r\n\t * \r\n\t * @return The value of the property converted to a String.\r\n\t */\r\n\tpublic String getValueAsString(PropertyBearerWrapper pb) throws UndefinedPropertyException;\r\n\r\n /**\r\n * Calculates the value of the property concerning the\r\n * specified <code>Object</code>.\r\n * \r\n * \r\n * @param o The object to be assessed.\r\n * \r\n * @return The value of the property converted to a String.\r\n */\r\n public String getValueAsString(Object o) throws UndefinedPropertyException;\r\n\t\r\n\t\r\n\t\r\n\t// TODO Check whether the following methods are necessary or not.\r\n\t\r\n\t\r\n\t/**\r\n\t * Attaches the specified <code>PropertyBearerWrapper<code> to this\r\n\t * property, so that it can be analyzed.\r\n\t * \r\n\t * @param pb The <code>PropertyBearerWrapper<code> to be attached.\r\n\t */\r\n\t//public void attach(PropertyBearerWrapper pb);\r\n\t\r\n\r\n\t/**\r\n\t * Detaches the specified <code>PropertyBearerWrapper<code> from this\r\n\t * property, so that it is no longer analyzed.\r\n\t * \r\n\t * @param pb The <code>PropertyBearerWrapper<code> to be detached.\r\n\t */\r\n\t//public void detach(PropertyBearerWrapper pb);\r\n\t\r\n\t\r\n}", "title": "" }, { "docid": "b541c74d7ac5041dee26212acd209728", "score": "0.50294745", "text": "@Override\r\n\t\tpublic void firePropertyChange(PropertyChangeEvent evt)\r\n\t\t{\r\n\t\t\tcleanUp();\r\n\t\t\tsuper.firePropertyChange(evt);\r\n\t\t}", "title": "" }, { "docid": "cad4a1cd8bb1a6585a12727c40908c5c", "score": "0.5008578", "text": "@Override\n\t\tpublic void propertyChange(PropertyChangeEvent event) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "6456bb4c6997a6ff64127be0afb77710", "score": "0.50085515", "text": "@Override\n\tpublic boolean objectCanUpdate(ObjectContainer oc) {\n return true;\n }", "title": "" }, { "docid": "c22ef037a36a41022d96d2b05e621b62", "score": "0.5005818", "text": "@Test\n public void testSinglePropertyVetoEventNotification()\n {\n String listenedPropertyValue = \"19.2598\";\n String listenedPropertyNewValue = \"19.29581\";\n ConfigVetoableChangeListener vetoListener =\n event -> propertyChangeEvent = event;\n\n //test basic selective event dispatch\n configurationService.addVetoableChangeListener(\n listenedPropertyName, vetoListener);\n\n propertyChangeEvent = null;\n\n configurationService.setProperty(\n propertyName, propertyValue);\n\n assertNull(\n propertyChangeEvent,\n \"setting prop:\" + propertyName + \" caused an event notif. to \" +\n \"listener registered for prop:\" + listenedPropertyName);\n\n configurationService.setProperty(\n listenedPropertyName, listenedPropertyValue);\n\n assertNotNull(\n propertyChangeEvent,\n \"No event was dispatched upon modification of prop:\"\n + listenedPropertyName);\n\n assertNull(\n propertyChangeEvent.getOldValue(), \"oldValue must be null\");\n assertEquals(\n listenedPropertyValue,\n propertyChangeEvent.getNewValue(), \"wrong newValue\");\n\n //test that a generic remove only removes the generic listener\n propertyChangeEvent = null;\n\n configurationService.removeVetoableChangeListener(vetoListener);\n\n configurationService.setProperty(\n listenedPropertyName, listenedPropertyNewValue);\n\n assertNotNull(\n propertyChangeEvent,\n \"No event was dispatched upon modification of prop:\"\n + listenedPropertyName\n + \". The listener was wrongfully removed.\");\n\n assertEquals(\n listenedPropertyValue,\n propertyChangeEvent.getOldValue(), \"wrong oldValue\");\n assertEquals(\n listenedPropertyNewValue,\n propertyChangeEvent.getNewValue(), \"wrong newValue\");\n\n //make sure that removing the listener properly - really removes it.\n propertyChangeEvent = null;\n\n configurationService.removeVetoableChangeListener(\n listenedPropertyName, vetoListener);\n\n configurationService.setProperty(\n listenedPropertyName, listenedPropertyValue);\n\n assertNull(\n propertyChangeEvent,\n \"An event was wrongfully dispatched after removing a listener\");\n\n //make sure that adding a generic listener, then adding a custom prop\n //listener, then removing it - would not remove the generic listener.\n propertyChangeEvent = null;\n\n configurationService.addVetoableChangeListener(vetoListener);\n configurationService.addVetoableChangeListener(\n listenedPropertyName, vetoListener);\n configurationService.removeVetoableChangeListener(\n listenedPropertyName, vetoListener);\n\n configurationService.setProperty(\n listenedPropertyName, listenedPropertyNewValue);\n\n assertNotNull(\n propertyChangeEvent,\n \"No event was dispatched upon modification of prop:\"\n + listenedPropertyName\n + \". The global listener was wrongfully removed.\");\n\n assertEquals(\n listenedPropertyName,\n propertyChangeEvent.getPropertyName(), \"wrong propertyName\");\n assertEquals(\n listenedPropertyValue,\n propertyChangeEvent.getOldValue(), \"wrong oldValue\");\n assertEquals(\n listenedPropertyNewValue,\n propertyChangeEvent.getNewValue(), \"wrong newValue\");\n }", "title": "" }, { "docid": "a48ac57ea95fa2668209068561dfda38", "score": "0.49958518", "text": "private void managePropertyActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_managePropertyActionPerformed\n {//GEN-HEADEREND:event_managePropertyActionPerformed\n //Create instance\n manageProperty mngP = new manageProperty();\n mngP.pack();\n mngP.setVisible(true);\n mngP.setLocationRelativeTo(null);\n mngP.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n }", "title": "" }, { "docid": "92a38542b0d871b0f6abcd231eb80f95", "score": "0.49957794", "text": "@Override\n\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\tsetChanged(true);\n\t}", "title": "" }, { "docid": "2312526e7a06cb4b5e23b11ae02c548b", "score": "0.49906552", "text": "@Override\r\n\tvoid setProperty(BoundedShape anObject, Rectangle aNewValue) {\n\t\tanObject.setBounds(aNewValue);\r\n\t}", "title": "" }, { "docid": "3a32741428f0b31f3691cee7a12a6210", "score": "0.4983874", "text": "private synchronized void setUpPropertyListener() {\n\t\tif (propertyListener == null) {\n\t\t\tMethod addListener = null;\n\t\t\ttry {\n\t\t\t\taddListener = target.getClass().getMethod(\n\t\t\t\t\t\t\"addPropertyChangeListener\", String.class,\n\t\t\t\t\t\tPropertyChangeListener.class);\n\t\t\t} catch (NoSuchMethodException nsme) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tpropertyListener = new PropertyChangeListener() {\n\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\tObject newValue = evt.getNewValue();\n\t\t\t\t\tif (currentObjectValue == null\n\t\t\t\t\t\t\t|| (newValue != currentObjectValue && !newValue\n\t\t\t\t\t\t\t\t\t.equals(currentObjectValue))) {\n\t\t\t\t\t\t// System.out.println(\"Property change, source was \"+evt.getSource());\n\t\t\t\t\t\tif (SwingUtilities.isEventDispatchThread()) {\n\t\t\t\t\t\t\tupdateComponent();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// try {\n\t\t\t\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tupdateComponent();\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\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\taddListener.invoke(target, propertyName, propertyListener);\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\tlogger.error(\"Unable to set up property listener\", e);\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tlogger.error(\"Unable to set up property listener\", e);\n\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\tlogger.error(\"Unable to set up property listener\", e);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1ab6f5979f2c9227e766c40b90e7e9cb", "score": "0.49777073", "text": "public void propertyChange(PropertyChangeEvent evt) {\n final VisualObject obj = (VisualObject) evt.getSource();\n final boolean visible = (Boolean) evt.getNewValue();\n\n // if some sat comes visible - add it.\n if (visible) {\n //System.out.println(\"Adding item -\" + obj.getName());\n if (!visibleObjects.contains(obj)) {\n visibleObjects.addElement(obj);\n }\n } else {\n // if we remove sat from list we set watched object to earth\n if (ViewToObjects.this.cam.getViewTo().equals(obj)) {\n ViewToObjects.this.cam.setViewTo(\n ViewToObjects.this.cam.getCore().getEarth()\n );\n }\n visibleObjects.removeElement(obj);\n\n // if no sats left, and user was watching the sat\n if (visibleObjects.size() == 0\n && ViewToObjects.this.cam.getViewFrom() == ViewToObjects.this.cam.VIEW_PERPENDICULAR_TO_ORBIT) {\n ViewToObjects.this.cam.setViewFrom(ViewToObjects.this.cam.VIEW_CUSTOM);\n }\n }\n updateViewToComboBoxEditorList();\n }", "title": "" }, { "docid": "6b8606b2cf59266dc1d2e07b35dcfec0", "score": "0.49765623", "text": "@Override\n\tpublic void update(Property property) {\n\t\t\n\t}", "title": "" }, { "docid": "8d0d8bd9ad1918de62dc6534b2f2a436", "score": "0.49679574", "text": "boolean canChangeOwner() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "42cfbf0550930b1415cc64a087706439", "score": "0.49659234", "text": "@objid (\"51df54b7-0c0f-4ed4-ba9e-67973337eb98\")\n void setOwner(PropertyTableDefinition value);", "title": "" }, { "docid": "851556be9b25d88175faf159ea925c56", "score": "0.49595517", "text": "@Test\n public void testVetos()\n {\n propertyChangeEvent = null;\n\n configurationService.addVetoableChangeListener(rudeVetoListener);\n configurationService.addPropertyChangeListener(pListener);\n\n ConfigPropertyVetoException exception = null;\n try\n {\n configurationService.setProperty(propertyName, propertyValue);\n }\n catch (ConfigPropertyVetoException ex)\n {\n exception = ex;\n }\n\n //make sure the exception was thrown\n assertNotNull(\n exception, \"A vetoable change event was not dispatched or an \"\n + \"exception was not let through.\");\n\n //make sure no further event dispatching was done\n assertNull(\n propertyChangeEvent,\n \"A property change event was delivered even after \" +\n \"the property change was vetoed.\");\n\n //make sure the property did not get modified after vetoing the change\n assertNull(\n configurationService.getProperty(propertyName),\n \"A property was changed even avfter vetoing the change.\");\n\n // now let's make sure that we have the right order of event dispatching.\n propertyChangeEvent = null;\n configurationService.removeVetoableChangeListener(rudeVetoListener);\n\n ConfigVetoableChangeListener vcListener = event -> assertNull(\n propertyChangeEvent,\n \"propertyChangeEvent was not null which means that it has \"\n + \"bean delivered to the propertyChangeListener prior to \"\n + \"being delivered to the vetoable change listener.\");\n\n try\n {\n configurationService.setProperty(propertyName, propertyNewValue);\n }\n catch (ConfigPropertyVetoException ex1)\n {\n ex1.printStackTrace();\n fail(\"unexpected veto exception. message:\" + ex1.getMessage());\n }\n configurationService.removeVetoableChangeListener(vcListener);\n }", "title": "" }, { "docid": "7ba005fff8cff41ab60860ac04e68133", "score": "0.495629", "text": "public BooleanProperty movableProperty() {\n return movableProperty;\n }", "title": "" }, { "docid": "53baac9a48b0c24324758a3c7b6edc11", "score": "0.49505356", "text": "public abstract void setAll(PropertyContainer source);", "title": "" }, { "docid": "a65b7cdd61dff9060abd1639ace15816", "score": "0.49351564", "text": "public PlayerBoughtProperty(Property property) {\n\t\tthis.property = property;\n\t}", "title": "" }, { "docid": "508c8caea957666d0afb11d4fef2c3da", "score": "0.49343026", "text": "public boolean writable(PropertyTag<?> tag);", "title": "" }, { "docid": "a6cc9d38ee04017b596cfd5b87c239c1", "score": "0.49336419", "text": "public ObservedProperty() {}", "title": "" }, { "docid": "2bbd1e79234797b0c250fd385c66e95c", "score": "0.49283034", "text": "@Override\r\n\tpublic void setOwned(boolean bool) {\n\r\n\t}", "title": "" }, { "docid": "cac401ff8737194723564f8425d192b5", "score": "0.49224985", "text": "public void InvalidatePropertyOnOriginalChange( Object source, EventArgs e )\r\n { \r\n // recompute animated value\r\n _target.InvalidateProperty(_property); \r\n Cleanup(); \r\n }", "title": "" }, { "docid": "6cf7b1271838c018a08e26c7f272df2f", "score": "0.49137083", "text": "@Override\n public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {\n }", "title": "" }, { "docid": "f932188d8b666e5e9ad771c87aa575a3", "score": "0.4884162", "text": "@Override\n\tpublic boolean addPropertis(SwotActor swotActor,\n\t\t\tSet<SwotActorProperty> SwotActorPropertis) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6640b4d0e28b753dd306d9f78b9f2172", "score": "0.48823765", "text": "public void changeNetworkProperties() {\n\t\t// TODO be careful with local pNESupport and extern pNESupport\n\t\tif (!requestNetworkProperties(Utilities.getOwner(this), probNet)) {\n\t\t\tprobNet.getPNESupport().undoAndDelete();\n\t\t}\n\t}", "title": "" }, { "docid": "e07b495630e230865ac5553d96059dca", "score": "0.4881513", "text": "public void InvalidatePropertyOnCloneChange( Object source, EventArgs e )\r\n { \r\n CloneCacheEntry cacheEntry = GetComplexPathClone( _target, _property );\r\n\r\n // If the changed freezable is the currently outstanding instance\r\n // then we need to trigger a sub-property invalidation. \r\n if( cacheEntry != null && cacheEntry.Clone == _clone )\r\n { \r\n _target.InvalidateSubProperty(_property); \r\n }\r\n // Otherwise, we are no longer relevant and need to clean up. \r\n else\r\n {\r\n Cleanup();\r\n } \r\n }", "title": "" }, { "docid": "932db37da6811dfcd211597e497d2141", "score": "0.4871801", "text": "protected abstract void checkForPropertyChanges();", "title": "" }, { "docid": "21394425d00be7c408db286d2c5612b4", "score": "0.48708907", "text": "@Override\r\n\tpublic boolean defineOwnProperty(String propertyName,\r\n\t\t\tPropertyDescriptor propertyDescriptor, boolean failureHandling) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "b0e81715405a3332e3b2948166ab604e", "score": "0.4859886", "text": "public void testPropertyChange() {\n System.out.println(\"propertyChange\");\n \n // same problem\n // instance.propertyChange(evt);\n }", "title": "" }, { "docid": "91e130f8b0379ad6f17b477dbc9c2609", "score": "0.4853305", "text": "public void invalidateProperties ()\n {\n _property = _argumentProperty = INVALID_PROPERTY;\n }", "title": "" }, { "docid": "34535e4fbcac5a57c8f940eeda33aeb6", "score": "0.48519918", "text": "@Override\r\n public void propertyChange(PropertyChangeEvent pce) {\r\n this.property.setValue((Type)pce.getNewValue());\r\n }", "title": "" }, { "docid": "9d2f66b5e789d2635abac9231f3e9e5e", "score": "0.4837967", "text": "protected void addProperty(ConfigurableProperty p) {\n for (int i = 0; (m_configurableProperties != null) && (i < m_configurableProperties.length); i++) {\n if (m_configurableProperties[i].getName().equals(p.getName())) { return; }\n }\n \n if (m_configurableProperties.length > 0) {\n ConfigurableProperty[] newProp = new ConfigurableProperty[m_configurableProperties.length + 1];\n System.arraycopy(m_configurableProperties, 0, newProp, 0, m_configurableProperties.length);\n newProp[m_configurableProperties.length] = p;\n m_configurableProperties = newProp;\n }\n else {\n m_configurableProperties = new ConfigurableProperty[] {p};\n }\n }", "title": "" }, { "docid": "a56fcb54ef44de4095be85b91231a29e", "score": "0.4835153", "text": "@Override\n public void propertyChange(final PropertyChangeEvent theEvent) {\n if (\"Clear Enable\".equals(theEvent.getPropertyName())) {\n //set the clear button to enabled if a shape has been drawn\n myClear.setEnabled(((Boolean) theEvent.getNewValue()).booleanValue());\n \n }\n }", "title": "" }, { "docid": "8b6c88bb41315da407ef96b91038a460", "score": "0.4819479", "text": "void propertyChanged(Properties property, Settings settings);", "title": "" }, { "docid": "7ad1d76f99609c11827a511cb0fbdd00", "score": "0.48176283", "text": "public void setPropertiesOwner(PropertiesOwner propertiesOwner)\n\t{\n\t\tthis.propertiesOwner = propertiesOwner;\n\t\tif (propertiesOwner == null)\n\t\t{\n\t\t\tpropHash = null;\n\t\t\treturn;\n\t\t}\n\t\t// For quick access, construct a hash with upper-case names.\n\t\tpropHash = new HashMap<String, PropertySpec>();\n\t\tfor (PropertySpec ps : propertiesOwner.getSupportedProps())\n\t\t\tpropHash.put(ps.getName().toUpperCase(), ps);\n\t\tif (propertiesOwner instanceof DynamicPropertiesOwner)\n\t\t{\n\t\t\tDynamicPropertiesOwner dpo = (DynamicPropertiesOwner)propertiesOwner;\n\t\t\tif (dpo.dynamicPropsAllowed())\n\t\t\t\tfor(PropertySpec ps : dpo.getDynamicPropSpecs())\n\t\t\t\t\tpropHash.put(ps.getName().toUpperCase(), ps);\n\t\t}\n\n\t\t// Set column renderer so that tooltip is property description\n\t\tTableColumn col = propertiesTable.getColumnModel().getColumn(0);\n//\t\t\t.getColumn(PropertiesTableModel.columnNames[0]);\n\t\tcol.setCellRenderer(new ttCellRenderer());\n\t\tcol = propertiesTable.getColumnModel().getColumn(1);\n//\t\t\t.getColumn(PropertiesTableModel.columnNames[1]);\n\t\tcol.setCellRenderer(new ttCellRenderer());\n\t\tptm.setPropHash(propHash);\n\t}", "title": "" }, { "docid": "c8b34ff809f65315a19b066e74484c7f", "score": "0.48137203", "text": "void addCompositeChangeListener(PropertyChangeListener pcl);", "title": "" }, { "docid": "84c4c77bb2673bbd2b5b4de97941d403", "score": "0.48110512", "text": "public boolean isPropertyUpgradeable(Property property){\n Player currentPlayer = PlayerManager.getInstance().getCurrentPlayer();\n boolean upgradeable = false;\n Player owner = groupHasSameOwner(property.getGroupColor());\n\n if (owner != null && owner.getName() == currentPlayer.getName()\n && currentPlayer.getUsableMoney() > property.getPrice()\n && !property.hasStarbucks()){ // Player is the owner of the whole group\n\n upgradeable = true;\n }\n\n return upgradeable;\n }", "title": "" }, { "docid": "bacd5b52b714ce0d286d1a045046e6c4", "score": "0.47956875", "text": "@Override\n public void setProperty(Class sender, Object object, String name, Object newValue, boolean useSuper, boolean fromInsideClass) {\n if (setPropertyMethod != null && !name.equals(META_CLASS_PROPERTY) && getJavaClass().isInstance(object)) {\n setPropertyMethod.invoke(object, new Object[]{name, newValue});\n return;\n }\n super.setProperty(sender, object, name, newValue, useSuper, fromInsideClass);\n }", "title": "" }, { "docid": "c75e7a43c6fee3fdd21dc86577ec854f", "score": "0.47757635", "text": "public interface PropertyListener {\n\t\n\tpublic void onPropertyEvent(PropertyEvent pev);\n\n}", "title": "" }, { "docid": "ea09333a934ad53e59193bf5a06574f9", "score": "0.47752613", "text": "public interface PropertyCollection<P extends Property> extends Property {\n\n /**\n * Returns the properties that belong to this property group.\n *\n * @return a list of properties.\n */\n P[] getProperties();\n}", "title": "" }, { "docid": "6d1eac67ec04ed28102496174d834a28", "score": "0.4772054", "text": "public abstract void setValue(PropertyChangeEvent e);", "title": "" }, { "docid": "757dbe69fab793441230041c5b6deaaf", "score": "0.47718287", "text": "@Override\r\n\tpublic void addPropertyChangeListener(PropertyChangeListener arg0) {\n\r\n\t}", "title": "" }, { "docid": "d4c176a07c8a7f2d52a3593ab2ee6a00", "score": "0.47575298", "text": "public void transferProperty(Player from, Player to, Property p) {\n p.setOwner(to);\n HashSet<Property> fromSet = from.properties().get(p.getGroup());\n fromSet.remove(p);\n if (!to.properties().containsKey(p.getGroup())) {\n to.properties().put(p.getGroup(), new HashSet<Property>());\n }\n to.properties().get(p.getGroup()).add(p);\n Property.checkFull(to, p);\n }", "title": "" }, { "docid": "b7009f31c00d67d2cad32ac3c0e4cd8b", "score": "0.47551295", "text": "@Test\n public void testSinglePropertyEventNotification()\n {\n String listenedPropertyValue = \"19.2598\";\n String listenedPropertyNewValue = \"19.29581\";\n\n //test basic selective event dispatch\n configurationService.addPropertyChangeListener(\n listenedPropertyName, pListener);\n\n propertyChangeEvent = null;\n\n configurationService.setProperty(\n propertyName, propertyValue);\n\n assertNull(\n propertyChangeEvent,\n \"setting prop:\" + propertyName + \" caused an event notif. to \" +\n \"listener registered for prop:\" + listenedPropertyName);\n\n configurationService.setProperty(\n listenedPropertyName, listenedPropertyValue);\n\n assertNotNull(\n propertyChangeEvent,\n \"No event was dispatched upon modification of prop:\"\n + listenedPropertyName);\n\n assertNull(\n propertyChangeEvent.getOldValue(), \"oldValue must be null\");\n assertEquals(\n listenedPropertyValue,\n propertyChangeEvent.getNewValue(), \"wrong newValue\");\n\n //test that a generic remove only removes the generic listener\n propertyChangeEvent = null;\n\n configurationService.removePropertyChangeListener(pListener);\n\n configurationService.setProperty(\n listenedPropertyName, listenedPropertyNewValue);\n\n assertNotNull(\n propertyChangeEvent,\n \"No event was dispatched upon modification of prop:\"\n + listenedPropertyName\n + \". The listener was wrongfully removed.\");\n\n assertEquals(\n listenedPropertyValue,\n propertyChangeEvent.getOldValue(), \"wrong oldValue\");\n assertEquals(\n listenedPropertyNewValue,\n propertyChangeEvent.getNewValue(), \"wrong newValue\");\n\n //make sure that removing the listener properly - really removes it.\n propertyChangeEvent = null;\n\n configurationService.removePropertyChangeListener(\n listenedPropertyName, pListener);\n\n configurationService.setProperty(listenedPropertyName, propertyValue);\n\n assertNull(\n propertyChangeEvent,\n \"An event was wrongfully dispatched after removing a listener\");\n\n }", "title": "" }, { "docid": "dd2dd80eae6a917a40c02c6f8710e843", "score": "0.4754428", "text": "protected abstract Property getModificationProperty();", "title": "" }, { "docid": "178c47febb7fc923cdf9787705ad82a4", "score": "0.47543362", "text": "boolean hasRemoveProperty();", "title": "" }, { "docid": "7bf361a0aef8a56f6bd80b5b7a843f03", "score": "0.4735088", "text": "public void enablePropertyPolicyAgreed()\n {\n iPropertyPolicyAgreed = new PropertyUint(new ParameterUint(\"PolicyAgreed\"));\n addProperty(iPropertyPolicyAgreed);\n }", "title": "" }, { "docid": "f036857c10ad9fe146c3e0896067d9f0", "score": "0.47347185", "text": "public Result propertyChange(PropertyChangeEvent<C, S> evt);", "title": "" }, { "docid": "728f4da3b56fe3b996218e008790b3bf", "score": "0.47342908", "text": "public void setMovable(boolean v) {\n movableProperty.set(v);\n }", "title": "" }, { "docid": "2f6aae67e388d90c354f8a1ef7873816", "score": "0.47313392", "text": "private void initNewPropertyEditing() {\n structureManagement = FxJsfUtils.getRequest().getUserTicket().isInRole(Role.StructureManagement);\n property.setAutoUniquePropertyName(false);\n setPropertyMinMultiplicity(FxMultiplicity.getIntToString(property.getMultiplicity().getMin()));\n setPropertyMaxMultiplicity(FxMultiplicity.getIntToString(property.getMultiplicity().getMax()));\n optionWrapper = new OptionWrapper(property.getOptions(), null, true);\n property.setDataType(FxDataType.String1024);\n }", "title": "" }, { "docid": "7b16b83aea57a47de03041c0f4358cf8", "score": "0.47166488", "text": "@Override\n\tpublic boolean isPropertySet(Object arg0) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4072e92d6b6025d3d63cd7df46bd90aa", "score": "0.47139567", "text": "protected java.beans.PropertyChangeSupport getPropertyChange() {\r\n if (propertyChange == null) {\r\n propertyChange = new java.beans.PropertyChangeSupport(this);\r\n };\r\n return propertyChange;\r\n }", "title": "" }, { "docid": "7766fc4456f2b8c03d742c97c6340342", "score": "0.47016364", "text": "@Nonnull\n @Optional\n @Input\n public Property<Boolean> getDestroy() {\n return this.destroy;\n }", "title": "" }, { "docid": "df51b9be3737320cb2e542f765190b89", "score": "0.46992317", "text": "public void firePropertyChange(String propertyName, boolean oldValue,\n boolean newValue) {}", "title": "" }, { "docid": "78c529be8eb4059ebb63a31249b75cc4", "score": "0.46974647", "text": "public void getAgainstProperty() {\n logger.debug(\"setting properties for non-primitive types via @Configuration not yet supported\");\n }", "title": "" }, { "docid": "cb8172108eefe020e18464a08b708ac3", "score": "0.46938315", "text": "public boolean isMovable() {\n return movableProperty.get();\n }", "title": "" }, { "docid": "b2337ccf01eb335b909bac0b0df8989e", "score": "0.46874085", "text": "public void propertyChange(final PropertyChangeEvent aEvent) {\n if(aEvent.getPropertyName().equals(\"document-replaced\")) {\n mDocument = (Document)aEvent.getNewValue();\n // Enable or disable the button model.\n this.setEnabled(mDocument != null);\n }\n else {\n Logger.global.log(Level.WARNING, \"Property change listener added for the wrong property change.\");\n }\n \n }", "title": "" }, { "docid": "0976c5579fd436085b649096fb2ede0a", "score": "0.46806487", "text": "@Override\r\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\t\r\n\t}", "title": "" }, { "docid": "65876e8ece4955eb48beca0793eac714", "score": "0.4679295", "text": "@Override\n public void addPropertyChangeListener(PropertyChangeListener listener) {\n \n }", "title": "" }, { "docid": "2c9b42245ea206ac5ef28847c3fe24e9", "score": "0.4676116", "text": "public void setValue() throws PropertyValueVetoException {\n if (isEnabled()) {\n super.setValue();\n }\n }", "title": "" }, { "docid": "6efdf5cc644f76047d432ceb8cdba333", "score": "0.46699464", "text": "@Override\r\n\t\tpublic void firePropertyChange(String propertyName, Object oldValue, Object newValue)\r\n\t\t{\r\n\t\t\tcleanUp();\r\n\t\t\tsuper.firePropertyChange(propertyName, oldValue, newValue);\r\n\t\t}", "title": "" }, { "docid": "3e5579b8a08eafb5b8a7983abf4ce410", "score": "0.46689403", "text": "void addPropertyChangeListener(String propName, PropertyChangeListener pcl);", "title": "" }, { "docid": "9cc2d3d3195cee8668094511b920a854", "score": "0.4663172", "text": "public void acceptPropertyUpdate(PropertyServicePropertyGroup group)\n {\n // Double check the key first\n if (group.getKey().equals(PropertyDefinition.PROPERTY_DEFINITION_KEY))\n {\n synchronized(categoryDefinitions)\n {\n categoryDefinitions.remove(group.getCategory());\n categoryDefinitions.put(group.getCategory(),group);\n }\n }\n }", "title": "" }, { "docid": "8871af561213aa4b2ee3ae9bbd40dd14", "score": "0.46601126", "text": "protected java.beans.PropertyChangeSupport getPropertyChange() {\r\n\tif (propertyChange == null) {\r\n\t\tpropertyChange = new java.beans.PropertyChangeSupport(this);\r\n\t};\r\n\treturn propertyChange;\r\n}", "title": "" }, { "docid": "8871af561213aa4b2ee3ae9bbd40dd14", "score": "0.46601126", "text": "protected java.beans.PropertyChangeSupport getPropertyChange() {\r\n\tif (propertyChange == null) {\r\n\t\tpropertyChange = new java.beans.PropertyChangeSupport(this);\r\n\t};\r\n\treturn propertyChange;\r\n}", "title": "" }, { "docid": "f77b755521e5821a739cd457c7a46d20", "score": "0.46578082", "text": "public void setProperty(String propertyName, Object property,\n boolean isSystem)\n throws PropertyVetoException\n {\n Object oldValue = getProperty(propertyName);\n //first check whether the change is ok with everyone\n if (changeEventDispatcher.hasVetoableChangeListeners(propertyName))\n changeEventDispatcher.fireVetoableChange(\n propertyName, oldValue, property);\n \n //no exception was thrown - lets change the property and fire a\n //change event\n \n logger.trace(propertyName + \"( oldValue=\" + oldValue\n + \", newValue=\" + property + \".\");\n \n //once set system, a property remains system event if the user\n //specified sth else\n \n if (isSystem(propertyName))\n isSystem = true;\n \n if (property == null)\n {\n properties.remove(propertyName);\n \n fileExtractedProperties.remove(propertyName);\n \n if (isSystem)\n {\n //we can't remove or nullset a sys prop so let's \"empty\" it.\n System.setProperty(propertyName, \"\");\n }\n }\n else\n {\n if (isSystem)\n {\n //in case this is a system property, we must only store it\n //in the System property set and keep only a ref locally.\n System.setProperty(propertyName, property.toString());\n properties.put(propertyName,\n new PropertyReference(propertyName));\n }\n else\n {\n properties.put(propertyName, property);\n }\n }\n if (changeEventDispatcher.hasPropertyChangeListeners(propertyName))\n changeEventDispatcher.firePropertyChange(\n propertyName, oldValue, property);\n \n try\n {\n storeConfiguration();\n }\n catch (IOException ex)\n {\n logger.error(\"Failed to store configuration after \"\n + \"a property change\");\n }\n }", "title": "" }, { "docid": "4157b74e7668a609cf41b3d3209ae084", "score": "0.46565154", "text": "void onProperty(final EProperty _property,\n final String _value);", "title": "" }, { "docid": "61d62cafa241070895fcc8c84b66e294", "score": "0.4650953", "text": "private void modifyProp()\r\n {\r\n JposEntryProp jposEntryProp = jposEntryViewPanel.getSelectedJposEntryProp();\r\n\r\n String currentName = jposEntryProp.getName();\r\n\r\n editJposEntryPropDialog.setJposEntryProp( jposEntryProp );\r\n editJposEntryPropDialog.setJposEntry( jposEntry );\r\n editJposEntryPropDialog.setEditing( true );\r\n editJposEntryPropDialog.setCanceled( false );\r\n editJposEntryPropDialog.setModal( true );\r\n editJposEntryPropDialog.setVisible( true );\r\n\r\n if( !editJposEntryPropDialog.isCanceled() )\r\n {\r\n jposEntry.removeProperty( currentName );\r\n jposEntry.addProperty( jposEntryProp.getName(), jposEntryProp.getValue() );\r\n jposEntryViewPanel.refresh();\r\n jposEntryViewPanel.updateCurrentProp();\r\n enableEditModifyButtons( jposEntryViewPanel.isListEmpty() ? false : true );\r\n }\r\n\r\n }", "title": "" }, { "docid": "f637b0f609fdcf9f04c218751814e59a", "score": "0.46508694", "text": "public interface PropertyHoldingEntity {\n\n /**\n * Get the set of properties for the entity\n *\n * <p>\n * This method should never return null. If there are no properties an empty collection should be returned\n * </p>\n *\n * @return PropertyCollection\n */\n PropertyCollection getProperties();\n}", "title": "" }, { "docid": "db0f300e9b12d845b0c9c17506601a8f", "score": "0.46508172", "text": "@Override\n public void firePropertyChange(String propertyName, short oldValue, short newValue) {\n }", "title": "" }, { "docid": "cc0bcf112906bba7216554f38b64e132", "score": "0.46479306", "text": "@Test\n public void testMulticastEventNotificationToVetoableListeners()\n {\n String propertyValue = \"19200\";\n String propertyNewValue = \"19201\";\n propertyChangeEvent = null;\n\n configurationService.addVetoableChangeListener(gentleVetoListener);\n\n // test the initial set of a property.\n try\n {\n configurationService.setProperty(propertyName, propertyValue);\n }\n catch (ConfigPropertyVetoException ex)\n {\n fail(\"A PropertyVetoException came from nowhere. Exc=\"\n + ex.getMessage());\n }\n\n assertNotNull(\n propertyChangeEvent, \"No PropertyChangeEvent was delivered \"\n + \"to VetoableListeners upon setProperty\");\n\n assertNull(\n propertyChangeEvent.getOldValue(), \"oldValue must be null\");\n assertEquals(\n propertyValue,\n propertyChangeEvent.getNewValue(),\n \"newValue is not the value we just set!\");\n assertEquals(\n propertyName,\n propertyChangeEvent.getPropertyName(),\n \"propertyName is not the value we just set!\");\n\n //test setting a new value;\n propertyChangeEvent = null;\n try\n {\n configurationService.setProperty(propertyName, propertyNewValue);\n }\n catch (ConfigPropertyVetoException ex)\n {\n fail(\"A PropertyVetoException came from nowhere. Exc=\"\n + ex.getMessage());\n }\n\n assertNotNull(\n propertyChangeEvent,\n \"No PropertyChangeEvent was delivered to veto listener \"\n + \"upon setProperty\");\n\n assertEquals(\n propertyValue,\n propertyChangeEvent.getOldValue(), \"incorrect oldValue\");\n assertEquals(\n propertyNewValue,\n propertyChangeEvent.getNewValue(),\n \"newValue is not the value we just set!\");\n\n\n //test remove\n propertyChangeEvent = null;\n configurationService.removeVetoableChangeListener(gentleVetoListener);\n\n try\n {\n configurationService.setProperty(propertyName, propertyValue);\n }\n catch (ConfigPropertyVetoException ex)\n {\n fail(\"A PropertyVetoException came from nowhere. Exc=\"\n + ex.getMessage());\n }\n\n assertNull(\n propertyChangeEvent,\n \"A PropertyChangeEvent after unregistering a listener.\");\n }", "title": "" }, { "docid": "fea038bde5bd996dceff1c451b58b9f9", "score": "0.46445346", "text": "@java.lang.Override\n public boolean getRemoveProperty() {\n return removeProperty_;\n }", "title": "" }, { "docid": "657e761106c529d900967ea5aaed8eca", "score": "0.46403512", "text": "public ControlElement setProperty(String _property, String _value, boolean _storeIt) {\n// System.err.println (\"Setting property \"+_property+ \" to \"+_value);\n _property = _property.trim();\n if (_property.equals(\"_ejs_\")) isUnderEjs = true;\n // See if the proposed property is registered as a real property\n int index = propertyIndex(_property);\n if (index<0) {\n // It is not a registered property. Store the value but do not call setValue()\n if (_value==null) myPropertiesTable.remove(_property);\n else if (_storeIt) myPropertiesTable.put(_property,_value);\n return this;\n }\n // The property is registered. Unregister and call setValue\n myMethodsForProperties[index] = null; // AMAVP\n myExpressionsForProperties[index] = null; // AMAVP\n if (myProperties[index]!=null) { // remove from the list of listeners for this GroupVariable\n myProperties[index].removeElementListener(this,index);\n myProperties[index] = null;\n }\n \n // Treat the null case separately, so that to avoid a lot of 'if (null)' checks\n if (_value==null) { \n if (myProperties[index]!=null) { // remove from the list of listeners for this GroupVariable\n myProperties[index].removeElementListener(this,index);\n myProperties[index] = null;\n }\n setDefaultValue (index); // use a default value\n myPropertiesTable.remove(_property); // remove the property\n return this;\n }\n \n // From now on, the value is, necessarily, not null\n\n // Some properties should not be trimmed ('text', for instance)\n if (!propertyIsTypeOf(_property,\"NotTrimmed\")) _value = _value.trim();\n String originalValue = _value;\n // Because of backwards compatibility with version 3.01 or earlier\n // There might be confusion with constant strings versus variable names\n // This is the reason for most of the following block\n // From this version on, it is recommended that constant strings should be\n // delimited by either ' or \"\n Value constantValue = null;\n if (_value.startsWith(\"%\") && _value.endsWith(\"%\") && _value.length()>2) \n _value = _value.substring(1,_value.length()-1); // Force a variable or method\n else if (_value.startsWith(\"@\") && _value.endsWith(\"@\") && _value.length()>2); // Do nothing for parsed expressions\n else if (_value.startsWith(\"#\") && _value.endsWith(\"#\") && _value.length()>2); // Do nothing for variables such as f()\n else {\n if (_value.startsWith(\"\\\"\") || _value.startsWith(\"'\") ); // It is a constant String, don't try anything else\n else {\n // First look for a CONSTANT property that can not be associated to GroupVariables\n if (propertyIsTypeOf(_property,\"CONSTANT\")) constantValue = new StringValue(_value);\n // Check for String properties\n if (constantValue==null) {\n String propType = propertyType(_property);\n if (propType.equals(\"String\") && !propertyIsTypeOf(_property,\"VARIABLE_EXPECTED\")) // See TextField f.i.\n constantValue = new StringValue(_value);\n if (propType.equals(\"String|String[]\") && !propertyIsTypeOf(_property,\"VARIABLE_EXPECTED\")) {// See DataTable f.i.\n if (!_value.endsWith(\"}\")) constantValue = new StringValue(_value); // It could be a String[]\n }\n }\n }\n // End of the compatibility block\n\n // Now try the particular parser\n // The particular parser comes first because it can discriminate between\n // a real String and a File, f.i.\n if (constantValue==null) constantValue = parseConstant (propertyType(_property),_value);\n // Finally the standard parser\n if (constantValue==null) constantValue = Value.parseConstantOrArray(_value,true); // silentMode\n }\n if (constantValue!=null) { // Just set the value for this property\n setValue (index,constantValue);\n if (_storeIt) myPropertiesTable.put(_property,originalValue);\n return this;\n }\n \n if (myGroup==null) {\n if (_storeIt) myPropertiesTable.put(_property,originalValue);\n return this;\n }\n\n // Associate the property with a GroupVariable or Method for later use\n boolean isNormalVariable = true, isExpression = false;\n if (_value.startsWith(\"#\") && _value.endsWith(\"#\") && _value.length()>2) {\n _value = _value.substring(1, _value.length() - 1);\n isNormalVariable = true;\n }\n else if (_value.startsWith(\"@\") && _value.endsWith(\"@\") && _value.length()>2) {\n _value = _value.substring(1, _value.length() - 1);\n originalValue = _value;\n isNormalVariable = false;\n isExpression = true;\n }\n else if (_value.startsWith(\"new \")) { // cases such as new double[][] {{...}} for a Polygon2D\n originalValue = _value;\n isNormalVariable = false;\n isExpression = false;\n }\n else if (_value.indexOf('(')>=0) isNormalVariable = false; // It must be a method\n // Begin --- AMAVP\n if (isNormalVariable) { // Connect a variable property with a normal variable name\n // This is what would normally happen under Ejs with expressions\n Value newValue=null;\n // get the actual value and use it when you register\n // to the group. This is arguable...\n // if (getProperty(\"_ejs_\")==null) // Why not?\n newValue = getValue(index);\n if (newValue==null) {\n// if (propertyIsTypeOf(_property,\"[]\")) newValue = new ObjectValue(null);\n// else\n if (propertyIsTypeOf(_property,\"double\")) newValue = new DoubleValue(0.0);\n else if (propertyIsTypeOf(_property,\"boolean\")) newValue = new BooleanValue(false);\n else if (propertyIsTypeOf(_property,\"int\")) newValue = new IntegerValue(0);\n else if (propertyIsTypeOf(_property,\"String\")) newValue = new StringValue(_value);\n else newValue = new ObjectValue(null);\n }\n myProperties[index] = myGroup.registerVariable (_value,this,index,newValue);\n }\n else if (isExpression) { // Connect a variable property to an expression\n //System.out.println (\"Connecting property \"+_property+\" to expression: \"+originalValue);\n String returnType=null;\n if (propertyIsTypeOf(_property,\"double\")) returnType = \"double\";\n else if (propertyIsTypeOf(_property,\"boolean\")) returnType = \"boolean\";\n else if (propertyIsTypeOf(_property,\"int\")) returnType = \"int\";\n else if (propertyIsTypeOf(_property,\"String\")) returnType = \"String\";\n else if (propertyIsTypeOf(_property,\"Action\")) returnType = \"Action\";\n else {\n //System.out.println (\"Error for expression property \"+_property+\" of the element \"+this.toString()\n // +\". Cannot be set to : \"+originalValue);\n myPropertiesTable.put(_property,originalValue);\n return this;\n }\n if (!returnType.equals(\"Action\")) {\n myExpressionsForProperties[index] = new InterpretedValue(_value,myEjsPropertyEditor);\n myGroup.methodTriggerVariable.addElementListener(this,index);\n myProperties[index] = myGroup.methodTriggerVariable;\n }\n }\n else if (getProperty(\"_ejs_\")==null) { // Connect a variable property to a method (only if not under Ejs)\n String returnType=null;\n if (propertyIsTypeOf(_property,\"String\")) returnType = \"String\";\n else if (propertyIsTypeOf(_property,\"Color\")) returnType = \"Object\";\n else if (propertyIsTypeOf(_property,\"double\")) returnType = \"double\";\n else if (propertyIsTypeOf(_property,\"boolean\")) returnType = \"boolean\";\n else if (propertyIsTypeOf(_property,\"int\")) returnType = \"int\";\n else if (propertyIsTypeOf(_property,\"double[]\")) returnType = \"Object\";\n else if (propertyIsTypeOf(_property,\"int[]\")) returnType = \"Object\";\n else if (propertyIsTypeOf(_property,\"Object\")) returnType = \"Object\";\n else {\n System.out.println (\"Error for property \"+_property+\" of the element \"+this.toString()+\". Cannot be set to : \"+originalValue);\n myPropertiesTable.put(_property,originalValue);\n return this;\n }\n // Resolve for non-default target\n String [] parts = MethodWithOneParameter.splitMethodName(_value);\n if (parts==null) {\n System.err.println (getClass().getName()+\" : Error! method <\"+originalValue+\"> not found\");\n myPropertiesTable.put(_property,originalValue);\n return this;\n }\n if (parts[0]==null) parts[0] = \"_default_\";\n Object target = myGroup.getTarget(parts[0]);\n if (target==null) {\n System.err.println (getClass().getName()+\" : Error! Target <\"+parts[0]+\"> not assigned\");\n System.err.println (\"when setting property \"+_property+\" to \"+_value);\n myPropertiesTable.put(_property,originalValue);\n return this;\n }\n if (parts[2]==null) _value = parts[1]+\"()\";\n else _value = parts[1]+\"(\"+parts[2]+\")\";\n myMethodsForProperties[index] = new MethodWithOneParameter (METHOD_FOR_VARIABLE,target,_value,\n returnType,null,this); // Pass the element itself Jan 31st 2004 Paco\n // Register the property of this element to a standard boolean (why not?) variable\n // myGroup.update() will take care of triggering the method\n myGroup.methodTriggerVariable.addElementListener(this,index);\n myProperties[index] = myGroup.methodTriggerVariable;\n// myProperties[index] = myGroup.registerVariable (METHOD_TRIGGER,this,index,new BooleanValue(false));\n myGroup.update(); // trigger the method right now\n myGroup.finalUpdate(); // trigger the method right now\n } // End --- AMAVP\n\n if (_storeIt) myPropertiesTable.put(_property,originalValue);\n return this;\n }", "title": "" }, { "docid": "2980ead16c8279cac1b4e08784888961", "score": "0.46309045", "text": "public MolecularVolumetricProperty(Molecule molecule) {\n\t\tthis.molecule = molecule;\n\n\t\tthis.volumeItemList = new ArrayList<>();\n\t}", "title": "" }, { "docid": "471f6b55d068bfe89d88e484d5e647b7", "score": "0.4625548", "text": "boolean getRemoveProperty();", "title": "" }, { "docid": "0aa43fc40629773eaddbf2ee8ccc8776", "score": "0.4625276", "text": "public interface OProperty extends Comparable<OProperty> {\n\n public static enum ATTRIBUTES {\n LINKEDTYPE,\n LINKEDCLASS,\n MIN,\n MAX,\n MANDATORY,\n NAME,\n NOTNULL,\n REGEXP,\n TYPE,\n CUSTOM,\n READONLY,\n COLLATE,\n DEFAULT,\n DESCRIPTION\n }\n\n public String getName();\n\n /** Returns the full name as <class>.<property> */\n public String getFullName();\n\n public OProperty setName(String iName);\n\n public void set(ATTRIBUTES attribute, Object iValue);\n\n public OType getType();\n\n /**\n * Returns the linked class in lazy mode because while unmarshalling the class could be not loaded\n * yet.\n *\n * @return\n */\n public OClass getLinkedClass();\n\n public OProperty setLinkedClass(OClass oClass);\n\n public OType getLinkedType();\n\n public OProperty setLinkedType(OType type);\n\n public boolean isNotNull();\n\n public OProperty setNotNull(boolean iNotNull);\n\n public OCollate getCollate();\n\n public OProperty setCollate(String iCollateName);\n\n public OProperty setCollate(OCollate collate);\n\n public boolean isMandatory();\n\n public OProperty setMandatory(boolean mandatory);\n\n boolean isReadonly();\n\n OProperty setReadonly(boolean iReadonly);\n\n /**\n * Min behavior depends on the Property OType.\n *\n * <p>\n *\n * <ul>\n * <li>String : minimum length\n * <li>Number : minimum value\n * <li>date and time : minimum time in millisecond, date must be written in the storage date\n * format\n * <li>binary : minimum size of the byte array\n * <li>List,Set,Collection : minimum size of the collection\n * </ul>\n *\n * @return String, can be null\n */\n public String getMin();\n\n /**\n * @see OProperty#getMin()\n * @param min can be null\n * @return this property\n */\n public OProperty setMin(String min);\n\n /**\n * Max behavior depends on the Property OType.\n *\n * <p>\n *\n * <ul>\n * <li>String : maximum length\n * <li>Number : maximum value\n * <li>date and time : maximum time in millisecond, date must be written in the storage date\n * format\n * <li>binary : maximum size of the byte array\n * <li>List,Set,Collection : maximum size of the collection\n * </ul>\n *\n * @return String, can be null\n */\n public String getMax();\n\n /**\n * @see OProperty#getMax()\n * @param max can be null\n * @return this property\n */\n public OProperty setMax(String max);\n\n /**\n * Default value for the property; can be function\n *\n * @return String, can be null\n */\n public String getDefaultValue();\n\n /**\n * @see OProperty#getDefaultValue()\n * @param defaultValue can be null\n * @return this property\n */\n public OProperty setDefaultValue(String defaultValue);\n\n /**\n * Creates an index on this property. Indexes speed up queries but slow down insert and update\n * operations. For massive inserts we suggest to remove the index, make the massive insert and\n * recreate it.\n *\n * @param iType One of types supported.\n * <ul>\n * <li>UNIQUE: Doesn't allow duplicates\n * <li>NOTUNIQUE: Allow duplicates\n * <li>FULLTEXT: Indexes single word for full text search\n * </ul>\n *\n * @return see {@link OClass#createIndex(String, OClass.INDEX_TYPE, String...)}.\n */\n public OIndex createIndex(final OClass.INDEX_TYPE iType);\n\n /**\n * Creates an index on this property. Indexes speed up queries but slow down insert and update\n * operations. For massive inserts we suggest to remove the index, make the massive insert and\n * recreate it.\n *\n * @param iType\n * @return see {@link OClass#createIndex(String, OClass.INDEX_TYPE, String...)}.\n */\n public OIndex createIndex(final String iType);\n\n /**\n * Creates an index on this property. Indexes speed up queries but slow down insert and update\n * operations. For massive inserts we suggest to remove the index, make the massive insert and\n * recreate it.\n *\n * @param iType One of types supported.\n * <ul>\n * <li>UNIQUE: Doesn't allow duplicates\n * <li>NOTUNIQUE: Allow duplicates\n * <li>FULLTEXT: Indexes single word for full text search\n * </ul>\n *\n * @param metadata the index metadata\n * @return see {@link OClass#createIndex(String, OClass.INDEX_TYPE, String...)}.\n */\n public OIndex createIndex(String iType, ODocument metadata);\n\n /**\n * Creates an index on this property. Indexes speed up queries but slow down insert and update\n * operations. For massive inserts we suggest to remove the index, make the massive insert and\n * recreate it.\n *\n * @param iType One of types supported.\n * <ul>\n * <li>UNIQUE: Doesn't allow duplicates\n * <li>NOTUNIQUE: Allow duplicates\n * <li>FULLTEXT: Indexes single word for full text search\n * </ul>\n *\n * @param metadata the index metadata\n * @return see {@link OClass#createIndex(String, OClass.INDEX_TYPE, String...)}.\n */\n public OIndex createIndex(OClass.INDEX_TYPE iType, ODocument metadata);\n\n /**\n * Remove the index on property\n *\n * @return\n * @deprecated Use SQL command instead.\n */\n @Deprecated\n public OProperty dropIndexes();\n\n /**\n * @return All indexes in which this property participates as first key item.\n * @deprecated Use {@link OClass#getInvolvedIndexes(String...)} instead.\n */\n @Deprecated\n public Set<OIndex> getIndexes();\n\n /**\n * @return The first index in which this property participates as first key item.\n * @deprecated Use {@link OClass#getInvolvedIndexes(String...)} instead.\n */\n @Deprecated\n public OIndex getIndex();\n\n /** @return All indexes in which this property participates. */\n public Collection<OIndex> getAllIndexes();\n\n /**\n * Indicates whether property is contained in indexes as its first key item. If you would like to\n * fetch all indexes or check property presence in other indexes use {@link #getAllIndexes()}\n * instead.\n *\n * @return <code>true</code> if and only if this property is contained in indexes as its first key\n * item.\n * @deprecated Use {@link OClass#areIndexed(String...)} instead.\n */\n @Deprecated\n public boolean isIndexed();\n\n public String getRegexp();\n\n public OProperty setRegexp(String regexp);\n\n /**\n * Change the type. It checks for compatibility between the change of type.\n *\n * @param iType\n */\n public OProperty setType(final OType iType);\n\n public String getCustom(final String iName);\n\n public OProperty setCustom(final String iName, final String iValue);\n\n public void removeCustom(final String iName);\n\n public void clearCustom();\n\n public Set<String> getCustomKeys();\n\n public OClass getOwnerClass();\n\n public Object get(ATTRIBUTES iAttribute);\n\n public Integer getId();\n\n public String getDescription();\n\n public OProperty setDescription(String iDescription);\n}", "title": "" }, { "docid": "cdb59fe1a0d13739317aaa22b1499b12", "score": "0.46208787", "text": "@Override\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tPropertiesPanel ppanel = new PropertiesPanel();\n\t\t\t\tppanel.open();\n\t\t\t}", "title": "" }, { "docid": "9904a106e52d687536e896270c003756", "score": "0.4619258", "text": "public boolean isManagedByParent() {\n return super.isManagedByParent();\n }", "title": "" }, { "docid": "7563502f63701000d32db10ca83fcb19", "score": "0.46127725", "text": "public void actionValueChanged(PropertyEvent e) {\n\t\tcallVisualPropertyChanged(new VisualPropertyEvent(e.getSource()));\n\t}", "title": "" }, { "docid": "9a5fd61020e6b95b004337a773602cc6", "score": "0.46066532", "text": "public interface PropertyBindable {\n\n\t/**\n\t * Adds a property change listener to the listener list. The listener is registered for all properties.\n\t * <p>\n\t * If the listener is <code>null</code>, no exception is thrown and no action is performed.\n\t * </p>\n\t * @param listener The <code>PropertyChangeListener</code> to be added.\n\t * @see PropertyChangeEvent\n\t */\n\tpublic void addPropertyChangeListener(final PropertyChangeListener listener);\n\n\t/**\n\t * Remove a property change listener from the listener list. This removes a <code>PropertyChangeListener</code> that was registered for all properties.\n\t * <p>\n\t * If the listener is <code>null</code>, no exception is thrown and no action is performed.\n\t * </p>\n\t * @param listener The <code>PropertyChangeListener</code> to be removed.\n\t */\n\tpublic void removePropertyChangeListener(final PropertyChangeListener listener);\n\n\t/**\n\t * Add a property change listener for a specific property.\n\t * <p>\n\t * If the listener is <code>null</code>, no exception is thrown and no action is performed.\n\t * </p>\n\t * @param propertyName The name of the property to listen on.\n\t * @param listener The <code>PropertyChangeListener</code> to be added.\n\t */\n\tpublic void addPropertyChangeListener(final String propertyName, final PropertyChangeListener listener);\n\n\t/**\n\t * Remove a property change listener for a specific property.\n\t * <p>\n\t * If the listener is <code>null</code>, no exception is thrown and no action is performed.\n\t * </p>\n\t * @param propertyName The name of the property that was listened on.\n\t * @param listener The <code>PropertyChangeListener</code> to be removed\n\t */\n\tpublic void removePropertyChangeListener(final String propertyName, final PropertyChangeListener listener);\n\n\t/**\n\t * Returns an array of all the listeners that were added to the with {@link #addPropertyChangeListener(PropertyChangeListener)}. If some listeners have been\n\t * added with a named property, then the returned array will be a mixture of <code>PropertyChangeListener</code>s and <code>PropertyChangeListenerProxy</code>\n\t * s. If the calling method is interested in distinguishing the listeners then it must test each element to see if it's a\n\t * <code>PropertyChangeListenerProxy</code>, perform the cast, and examine the parameter.\n\t * @return all of the <code>PropertyChangeListener</code>s added or an empty array if no listeners have been added\n\t * @see PropertyChangeListenerProxy\n\t */\n\tpublic PropertyChangeListener[] getPropertyChangeListeners();\n\n\t/**\n\t * Returns an array of all the listeners which have been associated with the named property.\n\t * @param propertyName The name of the property.\n\t * @return All of the <code>PropertyChangeListener</code>s associated with the named property; if no such listeners have been added or if\n\t * <code>propertyName</code> is <code>null</code>, an empty array is returned\n\t */\n\tpublic PropertyChangeListener[] getPropertyChangeListeners(final String propertyName);\n\n\t/**\n\t * Checks if there are any property change listeners for a specific property, including those registered on all properties. If <code>propertyName</code> is\n\t * <code>null</code>, this method only checks for listeners registered on all properties.\n\t * @param propertyName The property name.\n\t * @return <code>true</code> if there are one or more listeners for the given property.\n\t */\n\tpublic boolean hasPropertyChangeListeners(final String propertyName);\n\n}", "title": "" }, { "docid": "71ad2cfba7a740a5277440ceec2d3ce6", "score": "0.4606392", "text": "public AccessControlListPatchableProperties() {\n }", "title": "" }, { "docid": "90a09f99a052fdb76ed9ad771edc6d77", "score": "0.4606091", "text": "@Override\n protected void setupProperty(FacesContext context, UIPropertySheet propertySheet, PropertySheetItem item, PropertyDefinition propertyDef,\n UIComponent component) {\n }", "title": "" }, { "docid": "e0b676f38eccf958ced4e9207eaf5b73", "score": "0.46017802", "text": "@Override\n public void setProperty(int arg0, Object arg1) {\n\n }", "title": "" }, { "docid": "afdbed4392cfe34fa4f65faca5e5bd10", "score": "0.45988223", "text": "@Override\n\tpublic boolean objectCanNew(ObjectContainer oc) {\n return true;\n }", "title": "" }, { "docid": "bc69e73294c1b511f47160d4bc83f184", "score": "0.45913112", "text": "@Override\n public boolean isDisabledImmutably(Class<?> root, String property);", "title": "" } ]
1fd344144df8eeff981683f24618f688
Return a String representation of this object.
[ { "docid": "863fca38adec1cea7254f87d33311023", "score": "0.0", "text": "@Override\n public String toString() {\n if (filterConfig == null) {\n return (\"AdminPageFilter()\");\n }\n StringBuffer sb = new StringBuffer(\"AdminPageFilter(\");\n sb.append(filterConfig);\n sb.append(\")\");\n return (sb.toString());\n }", "title": "" } ]
[ { "docid": "3b777892b5074daea44482466c15ba82", "score": "0.8579889", "text": "@Override\n public String toString()\n {\n return TOSTRING_SERIALIZER.serialize(this);\n }", "title": "" }, { "docid": "ed5bfbdaea68447d17627fea6638736f", "score": "0.8403097", "text": "public String toString() {\n\t\treturn this.toString(true);\n\t}", "title": "" }, { "docid": "cd14323777c4d4747eeee4968b1b9eb1", "score": "0.8394563", "text": "@Override\r\n public String toString() {\r\n\r\n return new Gson().toJson(this);\r\n }", "title": "" }, { "docid": "0faf48a5ca4dc7430914a2abe134dd67", "score": "0.8362862", "text": "@Override\n public String toString() {\n return stringHelper(this, true);\n }", "title": "" }, { "docid": "e430f0f476f75b6cf2fca9df08c1f091", "score": "0.8304598", "text": "@Override\n public String toString() {\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n return gson.toJson(this);\n }", "title": "" }, { "docid": "8455ac967702557ad658d3a9e907bc9e", "score": "0.8236962", "text": "@Override\n public String toString() {\n String result = str;\n if (result == null)\n str = result = new String(JsIO.INSTANCE.serialize(this),\n StandardCharsets.UTF_8);\n\n return result;\n }", "title": "" }, { "docid": "b2990977ff0536dcdad1469399e01806", "score": "0.8226702", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn MyToString.getString(this);\r\n\t}", "title": "" }, { "docid": "a04495f6949b3b7c32c2f4e23e015e10", "score": "0.82262117", "text": "public String toString()\n {\n StringWriter sw = new StringWriter();\n writeTo(sw);\n return sw.toString();\n }", "title": "" }, { "docid": "c53a783b3905630f68ac6efb23f39b2a", "score": "0.8199013", "text": "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "title": "" }, { "docid": "c53a783b3905630f68ac6efb23f39b2a", "score": "0.8199013", "text": "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "title": "" }, { "docid": "f7b75acb4de06cf5b89278cd6c1da2a1", "score": "0.81966835", "text": "public String toString() {\n StringBuilder sb = new StringBuilder();\n this.toString(sb, 0);\n return sb.toString();\n }", "title": "" }, { "docid": "9f2151ab538bdfbd9433ecee00eae936", "score": "0.81858194", "text": "public String toString() {\n\t\treturn toJSON();\n\t}", "title": "" }, { "docid": "b1c947888cf0096f00acbf2c7e62bf50", "score": "0.81277466", "text": "public String toString() {\r\n\t\treturn StringUtils.mapString(this);\r\n\t}", "title": "" }, { "docid": "1abc8290065cb8338adaf78a4bc46e64", "score": "0.8086721", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn ToStringBuilder.reflectionToString(this);\r\n\t}", "title": "" }, { "docid": "58b01595cba7c8db2f5588def65ba7e8", "score": "0.8075533", "text": "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn new ObjectMapper().writeValueAsString(this);\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "db37ecb8c7fe657c9f09bfb2dd057d3e", "score": "0.8067448", "text": "@Override\n @Nonnull\n public String toString() {\n return Json.toStringJson(this);\n }", "title": "" }, { "docid": "484f535b1c15eb9baf51b06e5a1e6a49", "score": "0.8043579", "text": "@Override\n\tpublic String toString() {\n\t\treturn asText();\n\t}", "title": "" }, { "docid": "85aad6fc7f53a10c38ff82d73d5fe48f", "score": "0.80306655", "text": "@Override\r\n\t\tpublic String toString() {\r\n\t\t\tupdateCachedToStringIfRequired();\r\n\t\t\treturn _cachedToString;\r\n\t\t}", "title": "" }, { "docid": "07bd8e7433ada9ec9b7f9dbb35574943", "score": "0.80216277", "text": "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "title": "" }, { "docid": "07bd8e7433ada9ec9b7f9dbb35574943", "score": "0.80216277", "text": "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "title": "" }, { "docid": "07bd8e7433ada9ec9b7f9dbb35574943", "score": "0.80216277", "text": "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "title": "" }, { "docid": "07bd8e7433ada9ec9b7f9dbb35574943", "score": "0.80216277", "text": "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "title": "" }, { "docid": "51e9bc16cfc508d652f51d60e294b20f", "score": "0.8017385", "text": "@Override\n public String toString() {\n return ReflectionToStringBuilder.toString(this);\n }", "title": "" }, { "docid": "2476444b464faedbfe825474b4bca8f1", "score": "0.8015887", "text": "@Override\n public String toString() {\n StringBuilder buf = new StringBuilder(500);\n formatRawObject(buf, \"\", null, false);\n return buf.toString();\n }", "title": "" }, { "docid": "c8013e871c8ea1b09397282ba47db0f9", "score": "0.80028415", "text": "public String toString() {\n\t\treturn representation.representation();\n\t}", "title": "" }, { "docid": "8401fd2650df22baace087ecda5ad9b4", "score": "0.7987835", "text": "@Override\n public String toString()\n {\n return build();\n }", "title": "" }, { "docid": "f396cc51eb5f151ddb8f18e0a698f8d5", "score": "0.7977053", "text": "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "title": "" }, { "docid": "f396cc51eb5f151ddb8f18e0a698f8d5", "score": "0.7977053", "text": "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "title": "" }, { "docid": "f396cc51eb5f151ddb8f18e0a698f8d5", "score": "0.7977053", "text": "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "title": "" }, { "docid": "700279bae1e19eae24f30f48e7ccd18a", "score": "0.7968452", "text": "@Override\n\tpublic String toString() {\n\t\treturn ToStringBuilder.reflectionToString(this);\n\t}", "title": "" }, { "docid": "700279bae1e19eae24f30f48e7ccd18a", "score": "0.7968452", "text": "@Override\n\tpublic String toString() {\n\t\treturn ToStringBuilder.reflectionToString(this);\n\t}", "title": "" }, { "docid": "953728717862d2d367e39b5d2042129e", "score": "0.795381", "text": "public String toString()\n {\n return this.toString(new StringBuffer(),null).toString();\n }", "title": "" }, { "docid": "3c02f28efff40f4b16c01e3ab5093284", "score": "0.7937088", "text": "public String toString() {\r\n\t\tupdateCachedToStringIfRequired();\r\n\t\treturn _cachedToString; \r\n\t}", "title": "" }, { "docid": "43bf54c8a7b097a363f4de575a743dbd", "score": "0.792218", "text": "@Override\n\tpublic String toString() {\n\t\tObjectMapper mapperObj = new ObjectMapper();\n\t\tString jsonStr;\n\t\ttry {\n\t\t\tjsonStr = mapperObj.writeValueAsString(this);\n\t\t} catch (IOException ex) {\n\n\t\t\tjsonStr = ex.toString();\n\t\t}\n\t\treturn jsonStr;\n\t}", "title": "" }, { "docid": "48418f91a15966b7ea2767880f19ed51", "score": "0.7921171", "text": "public String toString() {\r\n\t\treturn toString(null);\r\n\t}", "title": "" }, { "docid": "9acda3cd309f23a83f63d3d4bdc475eb", "score": "0.7903487", "text": "public String toString()\r\n {\n return toComplexString();\r\n }", "title": "" }, { "docid": "f1c995325dfa8d6f3ff75c3730bd62ad", "score": "0.79005593", "text": "public String toString() {\n\t\treturn this.getClass().toString();\n\t}", "title": "" }, { "docid": "643de433cfe3aaeab413a6c6736366ec", "score": "0.78937185", "text": "@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }", "title": "" }, { "docid": "3583e2d3d83baef42f7658ee430c125e", "score": "0.7889135", "text": "@Override\n public final String toString() {\n return asString(0, 4);\n }", "title": "" }, { "docid": "66bb815c9e32d94dc1ccf07ab4ab3845", "score": "0.78766406", "text": "public String toString() {\r\n String result = \"\";\r\n result += super.toString();\r\n return result;\r\n }", "title": "" }, { "docid": "38a4cfa851f01dd3506ea985c5f95d89", "score": "0.786819", "text": "@Override\n\tpublic String toString() {\n\t\treturn getObject().toString();\n\t}", "title": "" }, { "docid": "46a072bb7363df4ff065019a6640fc04", "score": "0.7847571", "text": "@Override\r\n public String toString() {\n return ToStringBuilder.reflectionToString(this);\r\n }", "title": "" }, { "docid": "114f1108b0eef0f5fad389ee16fb54b3", "score": "0.784189", "text": "public String toString() {\n DsByteString bs = toByteString();\n String s = \"\";\n if (bs != null) {\n s = bs.toString();\n }\n return s;\n }", "title": "" }, { "docid": "45a90f9831d8c30e2c20786bb8355527", "score": "0.7835653", "text": "public String toString() {\n\t\n\t\treturn toJSONObject().toString();\n\t}", "title": "" }, { "docid": "372c0837e164fb3a4a4d0bf11e85bfa7", "score": "0.78300613", "text": "@Override\n public String toString() {\n return this.stringValue(null);\n }", "title": "" }, { "docid": "0e38b8972bc54a2d141655fae9798381", "score": "0.78270924", "text": "@Override\n String toString();", "title": "" }, { "docid": "0e38b8972bc54a2d141655fae9798381", "score": "0.78270924", "text": "@Override\n String toString();", "title": "" }, { "docid": "e9dbbc22c6ad4c37724e47ab3720e74c", "score": "0.78246605", "text": "public String toString() {\r\n StringWriter writer = new StringWriter();\r\n writer.write(Helper.getShortClassName(getClass()));\r\n writer.write(\"(\");\r\n transformToWriter(writer);\r\n writer.write(\")\");\r\n return writer.toString();\r\n }", "title": "" }, { "docid": "0d67f8466eb3d13bb8ea575dd5224c67", "score": "0.78201973", "text": "public synchronized String toString() {\n\t\treturn super.toString();\n\t}", "title": "" }, { "docid": "9d0068f2f5c1a5d938ceb70d43f1a8a7", "score": "0.7817613", "text": "@Override\n public String toString() {\n return toString(true);\n }", "title": "" }, { "docid": "474bf70b6b7e201595ec6c7700ca9519", "score": "0.7812346", "text": "@Override\n public String toString() {\n ObjectMapper mapper = new ObjectMapper();\n \n String jsonString = \"{}\";\n try {\n jsonString = mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n // TODO: log exception\n e.printStackTrace();\n }\n return jsonString;\n }", "title": "" }, { "docid": "2c16bbb512915230a1dc68a3bac2ce59", "score": "0.7789353", "text": "@JsonIgnore\n public String toString() {\n\n try {\n return new ObjectMapper()\n .setSerializationInclusion(Include.NON_NULL)\n .writeValueAsString(this);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "title": "" }, { "docid": "0d80d3d6092f1de51af5d250740606e8", "score": "0.7783301", "text": "@Override\n public String toString() {\n return ReflectionToStringBuilder.toString(this);\n }", "title": "" }, { "docid": "8a9d26232c913fbef7ebfa38408f7f7f", "score": "0.7781143", "text": "public String toString() \n\t{\n\t\tString res;\n\t\tres = this.type;\t// will be changed in the future.\n\t\treturn res;\n\t}", "title": "" }, { "docid": "9a9131bdeb66466af734f6ecde902c4a", "score": "0.7772146", "text": "public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(this.getClass().toString());\n sb.append('\\n');\n for (Field field : this.getClass().getDeclaredFields()) {\n field.setAccessible(true);\n sb.append(\" \");\n sb.append(field.getName());\n sb.append(\": \");\n try {\n if (field.get(this) != null) {\n sb.append(field.get(this).toString());\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n sb.append('\\n');\n }\n return sb.toString();\n }", "title": "" }, { "docid": "9c23718e95613d9a20635b055993cc1d", "score": "0.77301025", "text": "public String toString() {\n\t\tString s = \"\";\n\t\treturn s;\n\t}", "title": "" }, { "docid": "ed31977fcdd6ec6592c32b7fc10b38cd", "score": "0.7711901", "text": "public String toString() {\n StringBuffer buf = new StringBuffer();\n buf.append(this.getClass().getName() + \"[\");\n return buf.toString()+\"]\";\n }", "title": "" }, { "docid": "1d7c3498b3ac0dd171b0aeb1a3212be2", "score": "0.7696183", "text": "public String toString() {\n\t\t\n\t\t/* Create a StringBuilder Object */\n\t\tStringBuilder SBuilder = new StringBuilder();\n\t\t\n\t\t/* Fill a StringBuilder Object */\n\t\tfor (int i = 0; i < this.size(); i++) SBuilder.append(this.get(i));\n\t\t\n\t\t/* Return a Value */\n\t\treturn SBuilder.toString();\t\t\n\t\t\n\t}", "title": "" }, { "docid": "7479aa6be49f3ed44f129bd6036dbb4d", "score": "0.7684244", "text": "public String toString() {\n\t\treturn new StringBuffer(getName()).append(getValue()).toString();\n\t}", "title": "" }, { "docid": "8ef6a02aa122dba146c17221cc72143e", "score": "0.767623", "text": "@Override public String toString(){ return asString(); }", "title": "" }, { "docid": "04c151e70cc4b2036dc3e372af45f9c7", "score": "0.76742864", "text": "@Override\n\tpublic String toString(){\n\t\treturn appendTo(new ByteBuilder()).toString();\n\t}", "title": "" }, { "docid": "562eef4d63a4fc7211f673a42cba4628", "score": "0.7668362", "text": "public String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "a8691076c20d5748c64ac44c00ab003c", "score": "0.7664988", "text": "public String toString() {\n return Objects.toStringHelper(this)\n .add(\"id\", getId())\n .add(\"name\", getName())\n .add(\"dob\", getDob())\n .add(\"nationality\", getNationality())\n .add(\"biography\", getBiography())\n .add(\"awards\", getAwards())\n .add(\"image_url\", getImage_url())\n .toString();\n }", "title": "" }, { "docid": "d870742373b00bc805fffac461a3bda3", "score": "0.7654894", "text": "public String toJSONString() {\n return this.toString();\n }", "title": "" }, { "docid": "277d2836fc5c947980cba867df061264", "score": "0.7654251", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "c6d237ecff19a03480bb5a07ef5beb81", "score": "0.7650323", "text": "public final String toString(){\n return this.toString(1);\n }", "title": "" }, { "docid": "5f900359b5abda25dabd003e620ecb73", "score": "0.7647223", "text": "public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToString(\"Title\", getTitle()));\n buffer.append(objectToString(\"AuthorNames\", getAuthorNames()));\n buffer.append(objectToString(\"Citation\", getCitation()));\n buffer.append(objectToString(\"paperYear\", getPaperYear()));\n buffer.append(objectToString(\"paperAbstract\", getPaperAbstract()));\n buffer.append(objectToStringFK(\"Owner\", getOwner()));\n buffer.append(objectToString(\"AddedTime\", getAddedTime()));\n buffer.append(objectToStringFK(\"File\", getFile()));\n // but not paper, its a blob;\n buffer.append(\"]\");\n\n return buffer.toString();\n }", "title": "" }, { "docid": "aa2e1b44f38713b5507494d95b9aa710", "score": "0.76402855", "text": "public String toString() {\r\n StringBuffer buffer = new StringBuffer();\r\n buffer.append(getClass().getName());\r\n buffer.append(\"@\");\r\n buffer.append(Integer.toHexString(hashCode()));\r\n buffer.append(\" [\");\r\n buffer.append(objectToString(\"Id\", getId()));\r\n buffer.append(objectToString(\"createdBy\", getCreatedBy()));\r\n buffer.append(objectToString(\"startTimestamp\", getStartTimestamp()));\r\n buffer.append(objectToString(\"endTimestamp\", getEndTimestamp()));\r\n buffer.append(objectToString(\"startDate\", getStartDate()));\r\n buffer.append(objectToString(\"numOfWeek\", getNumOfWeek()));\r\n buffer.append(objectToString(\"featureList\", getFeaturesList()));\r\n buffer.append(\"]\");\r\n return buffer.toString();\r\n }", "title": "" }, { "docid": "6b6427e889611fa150244f34855ff244", "score": "0.7638783", "text": "@Override\r\n\tpublic String toString();", "title": "" }, { "docid": "6b6427e889611fa150244f34855ff244", "score": "0.7638783", "text": "@Override\r\n\tpublic String toString();", "title": "" }, { "docid": "fe297fa421ed1f255a168aaff0599f7c", "score": "0.7638133", "text": "public String toString( )\n {\n StringBuilder sb = new StringBuilder( \"[ \" );\n\n for( AnyType x : this )\n sb.append( x + \" \" );\n sb.append( \"]\" );\n\n return new String( sb );\n }", "title": "" }, { "docid": "39caaf9f769600f19f5b8a9369ef3912", "score": "0.7635197", "text": "public String toString() {\n return \"\";\n }", "title": "" }, { "docid": "d49f08d883c0038f19d8207c3e8da01d", "score": "0.7632297", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append( \"{\" );\n if( getData() != null )\n sb.append( \"Data: \" + getData() );\n sb.append( \"}\" );\n return sb.toString();\n }", "title": "" }, { "docid": "a77ae63228a31beb6b0e2521b653692e", "score": "0.76315355", "text": "@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"<\").append(getName());\n\t\tsb.append(attributes.toString());\n\t\tsb.append(\">\\n\");\n\t\tsb.append(getElementsAsString());\n\t\tsb.append(\"</\").append(getName()).append(\">\\n\");\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "4f508a6533cfe247840de0edce75ef1e", "score": "0.7610414", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "d540a2d22efa7af170afbb36c12006e6", "score": "0.7604113", "text": "public String toString() {\n StringBuffer str = new StringBuffer();\n if(getName() != null) {\n str.append(getName());\n } else {\n str.append(\"<unknown>\"); //$NON-NLS-1$\n }\n\n // Print parameters\n str.append(\"(\"); //$NON-NLS-1$\n if(inParameters != null) {\n for(int i=0; i<inParameters.size(); i++) {\n if(inParameters.get(i) != null) {\n str.append(inParameters.get(i).toString());\n } else {\n str.append(\"<unknown>\"); //$NON-NLS-1$\n }\n\n if(i < (inParameters.size()-1)) {\n str.append(\", \"); //$NON-NLS-1$\n }\n }\n }\n str.append(\") : \"); //$NON-NLS-1$\n\n // Print return type\n if(outputParameter != null) {\n str.append(outputParameter.toString());\n } else {\n str.append(\"<unknown>\"); //$NON-NLS-1$\n }\n\n return str.toString();\n }", "title": "" }, { "docid": "271daff3a74fa6d4bf81c312ee1f8a0f", "score": "0.7601186", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "be00444092f8ecd7f532bcb2b3129c78", "score": "0.7600714", "text": "@Override\n public String toString() {\n return representation;\n }", "title": "" }, { "docid": "c4375ea3a1a3f5ba5e771f7dc37e86f7", "score": "0.75918573", "text": "public String toString() {\n\t\treturn headerString() + \"\\n\" + dataString();\n\t}", "title": "" }, { "docid": "b2b630be0f9b082f797b5be75d86595d", "score": "0.7589132", "text": "public String toString() {\n return super.toString();\n }", "title": "" }, { "docid": "b08ee667e88e23306f0a0f3e2412cd01", "score": "0.75886166", "text": "public String toString()\n {\n \treturn new JsonWriter(m_params).toString();\n }", "title": "" }, { "docid": "dc526cd149ceeda31a5a38bc4c4930dc", "score": "0.7586813", "text": "@Override\r\n public String toString() {\r\n return OpbToStringHelper.toString(this);\r\n }", "title": "" }, { "docid": "120c3aa65e0b97eb73d926cdd232ebdc", "score": "0.75757897", "text": "public String toString(){\n\t\treturn \"\";\n\t\t// implement\n\t}", "title": "" }, { "docid": "63c19cda827a0224c8bd1010d8ed1df8", "score": "0.7570831", "text": "public String toString()\n {\n return str();\n }", "title": "" }, { "docid": "ce2f333f952aca9d6ef7d20feaa43098", "score": "0.75681615", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getCommand() != null)\n sb.append(\"Command: \").append(getCommand()).append(\",\");\n if (getEnvironment() != null)\n sb.append(\"Environment: \").append(getEnvironment()).append(\",\");\n if (getEnvironmentFiles() != null)\n sb.append(\"EnvironmentFiles: \").append(getEnvironmentFiles()).append(\",\");\n if (getCpu() != null)\n sb.append(\"Cpu: \").append(getCpu()).append(\",\");\n if (getMemory() != null)\n sb.append(\"Memory: \").append(getMemory()).append(\",\");\n if (getMemoryReservation() != null)\n sb.append(\"MemoryReservation: \").append(getMemoryReservation()).append(\",\");\n if (getResourceRequirements() != null)\n sb.append(\"ResourceRequirements: \").append(getResourceRequirements());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "2e9e349c97f6947622630ebab95a3edd", "score": "0.7564036", "text": "public String toString() {\r\n\r\n\t\tStringBuilder buffer = new StringBuilder();\r\n\r\n\t\tbuffer.append(\"id=[\").append(id).append(\"] \");\r\n\t\tbuffer.append(\"name=[\").append(name).append(\"] \");\r\n\t\tbuffer.append(\"description=[\").append(description).append(\"] \");\r\n\t\tbuffer.append(\"duration=[\").append(duration).append(\"] \");\r\n\r\n\t\treturn buffer.toString();\r\n\t}", "title": "" }, { "docid": "a11695f3a092354b8f7ab8ffc991c417", "score": "0.75637156", "text": "@Override\n public String toString() {\n // ...\n return \"\";\n }", "title": "" }, { "docid": "6efda53017e1f53e83055b2c1b50f630", "score": "0.75573784", "text": "public String toString() {\n if ( Data != null )\n return Data.toString();\n else\n return \"\";\n }", "title": "" }, { "docid": "3c3defd7edbee28f6c0e52a626e7646b", "score": "0.75573206", "text": "public String toString() {\n StringWriter sw = new StringWriter();\n try {\n write(new PrintWriter(sw));\n } catch (IOException e) {\n return null;\n }\n return sw.toString();\n }", "title": "" }, { "docid": "8d63ee18f4aef876e223d1c7188ec5f4", "score": "0.7553149", "text": "public String toString() {\r\n\t\treturn \"(id=\" + getId() + \", offset=\" + getOffset() + \", length=\"\r\n\t\t + getLength() + \")\";\r\n\t}", "title": "" }, { "docid": "b3bbd17c38b8d63b0a988d8af3bca841", "score": "0.7547273", "text": "public String toString() {\n\t\treturn toString(0);\n\t}", "title": "" }, { "docid": "3f3f591559ed00e8181fdaeec8e75c7d", "score": "0.7544735", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"{'Number':'\" + this.number + \"', 'String':'\" + this.string + \"'}\";\r\n\t}", "title": "" }, { "docid": "cfd521d79559ca5a2d9026656d8c27a8", "score": "0.7541306", "text": "@Override\n\t\tpublic String toString() {\n\t\t\treturn data.toString();\n\t\t}", "title": "" }, { "docid": "e88258b498705b80d1b6e2287ab21788", "score": "0.7539723", "text": "public String toString() {\n\t\treturn \"\" + this.value;\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.75341165", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.75341165", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.75341165", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.75341165", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.75341165", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.75341165", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" }, { "docid": "f4e68b88279ce340f50ebd347246820c", "score": "0.75341165", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "title": "" } ]
8a63e7b11b9820bb91afa179d4f1357d
Getters and Setters //
[ { "docid": "ced971ae9f8af01a44ff19adb339f1c9", "score": "0.0", "text": "public String getName() {\r\n return name;\r\n }", "title": "" } ]
[ { "docid": "0fdf77ce8a765329ac2f3b43e687113f", "score": "0.77713054", "text": "private void getter() {\n\n\t}", "title": "" }, { "docid": "0bdd7156418e07a48c2891d54f2fcc38", "score": "0.72398806", "text": "@Override\n\tpublic void get() {\n\t\t\n\t}", "title": "" }, { "docid": "2cbbd45cd68ffbf52f250f54a0895c2e", "score": "0.7238644", "text": "@Override\n\tpublic void get() {\n\n\t}", "title": "" }, { "docid": "b872151da9621152d74502c711f5d79b", "score": "0.72123814", "text": "public void get() {\n\n\t}", "title": "" }, { "docid": "af3783f15445887e2290c54c0fab0358", "score": "0.7184837", "text": "public void set() {\n\n\t}", "title": "" }, { "docid": "213b2ffd6e25c08eefdc29d75f5c8ae9", "score": "0.69376", "text": "public int getAge(){ return this.age; }", "title": "" }, { "docid": "62bee2d9a079e90c8f727bc3c27f232e", "score": "0.6911776", "text": "@Override\n\tpublic void set() {\n\t\t\n\t}", "title": "" }, { "docid": "371160bb577730abd2bbe3984c93db06", "score": "0.6756987", "text": "public int getAge() {return age;}", "title": "" }, { "docid": "3ab622294ea981e7da27d175a72262e1", "score": "0.66310155", "text": "public int getAge ()\n {\n return age;\n }", "title": "" }, { "docid": "6bd3117f6983d78885a6b8173dff2505", "score": "0.6549439", "text": "public int getAge(){\n return this.age;\n }", "title": "" }, { "docid": "1e687a4fe5b1cae57c59481fbeeb10b8", "score": "0.6497794", "text": "public int getAge(){\n return 18;\n }", "title": "" }, { "docid": "fc94d247afb9810ccc42c5ccc18701ee", "score": "0.6489426", "text": "public String getNombre()\n/* 56: */ {\n/* 57: 74 */ return this.nombre;\n/* 58: */ }", "title": "" }, { "docid": "675f4e9a510122171d166fb04dadb15f", "score": "0.6454581", "text": "public String getNombre(){return this.Nombre;}", "title": "" }, { "docid": "dc82d9ed2a520e7966f3a0231c65ba08", "score": "0.64182085", "text": "public void setAge(int a){ this.age = a; }", "title": "" }, { "docid": "7e42102512e65b8fdac1efaecde97496", "score": "0.64071685", "text": "public int getvalue() {\n\t\t return value;\r\n\t\t }", "title": "" }, { "docid": "70e7a00a1dd7b16fc9a59d6f1a938739", "score": "0.63635015", "text": "@Override\n\tpublic void getAge() {\n\t\t\n\t}", "title": "" }, { "docid": "871c305b891d785fcbabf199385df203", "score": "0.6363317", "text": "@Override\n public String getName()\n {\n return \"set\";\n }", "title": "" }, { "docid": "b06e75fc361ef27ae32130a298e70045", "score": "0.63522124", "text": "@Override\n public int getAge(){\n return age;\n }", "title": "" }, { "docid": "22d4e19c2f6ce8f396c6f2f9556c7fcf", "score": "0.63422513", "text": "public int getAgeOfPet(){\n\treturn ageOfPet;\n}", "title": "" }, { "docid": "4d0bb44bb5758edff919db5ec340a4c9", "score": "0.63398427", "text": "public interface Setter {\n\t\n\t/**Gets the desired field inside the object\n\t * @return Object\n\t */\n\tpublic abstract Object getValue();\n\t\n\t/**Sets the desired field inside the object\n\t * \n\t */\n\tpublic abstract void setValue(Object arg);\n}", "title": "" }, { "docid": "7489201060b8438b626913a7310c646c", "score": "0.63398165", "text": "public int getx(){return x;}", "title": "" }, { "docid": "0ea86c3861c55492f80de8aee70b634a", "score": "0.6322296", "text": "public String getSetName(){\nreturn this.sSetName;\n}", "title": "" }, { "docid": "16c753516a39ed07d14a8e115047be3f", "score": "0.63141793", "text": "public String getNombre()\n/* 99: */ {\n/* 100:349 */ return this.nombre;\n/* 101: */ }", "title": "" }, { "docid": "f220452030b9cdda9f6b76cba52e11c3", "score": "0.6285067", "text": "public int getValue(){\nreturn value;\n}", "title": "" }, { "docid": "5d62d1262101a9fb2c9d20679ad04c07", "score": "0.6266582", "text": "public int getPrixMaison()\n{\n\treturn this.prixMaison;\n}", "title": "" }, { "docid": "37429249529667b7106327f2465765f7", "score": "0.62629163", "text": "public int get(){\n\t\treturn p;\n\t}", "title": "" }, { "docid": "1372c9f2eff8aca774a7c810269922c1", "score": "0.6243959", "text": "public int get() {\n return value;\n }", "title": "" }, { "docid": "f7b9088d6672fa62b76fe05c7c98e9d0", "score": "0.6230328", "text": "public int getPrixLoyer()\n{\n\treturn this.prixLoyer;\n}", "title": "" }, { "docid": "313f043a0434394c3e80abdc7d90708d", "score": "0.6207802", "text": "public void setValue() {\n\t\t\n\t}", "title": "" }, { "docid": "723a0de03a80058625e00fc3ef1bd5cd", "score": "0.61876637", "text": "String get();", "title": "" }, { "docid": "1054be711327f9aa77eb3839747cd6fe", "score": "0.61762035", "text": "public int getSetID(){\nreturn this.iSetID;\n}", "title": "" }, { "docid": "f9368a3962870e0a9742ed6e1dcd1f4d", "score": "0.61714566", "text": "public int getAge() {\n return age;\n }", "title": "" }, { "docid": "fdf035a2fcd44c2173d2c00d9e7e9e51", "score": "0.6166797", "text": "public int getAge() {\r\n return this.age;\r\n }", "title": "" }, { "docid": "760db87f9caac40260ad2fea7aedfbea", "score": "0.61592096", "text": "public int getAge() {\r\n return age;\r\n }", "title": "" }, { "docid": "760db87f9caac40260ad2fea7aedfbea", "score": "0.61592096", "text": "public int getAge() {\r\n return age;\r\n }", "title": "" }, { "docid": "760db87f9caac40260ad2fea7aedfbea", "score": "0.61592096", "text": "public int getAge() {\r\n return age;\r\n }", "title": "" }, { "docid": "0b1e229f0dbbd8e9daa0a655357ee120", "score": "0.61513335", "text": "@Override\n\tpublic void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "515cf157e9ff7e4b65596317c1b33645", "score": "0.61488676", "text": "public String getNombre()\r\n/* 15: */ {\r\n/* 16:66 */ return this.nombre;\r\n/* 17: */ }", "title": "" }, { "docid": "434c669e8b22aac54986055dbaa440e6", "score": "0.6143343", "text": "public int getValue(){return value;}", "title": "" }, { "docid": "65c867486f7fccb6e053bcadc2fb1fbf", "score": "0.6141848", "text": "@Override\n\tpublic void getData() {\n\n\t}", "title": "" }, { "docid": "02cd23ebbeac668559a6690bdf95373a", "score": "0.6134449", "text": "@Override\n public boolean get() {\n return true;\n }", "title": "" }, { "docid": "11105968a534c5b285e8cb54fe31bcd9", "score": "0.61133957", "text": "public int getAge(){\n return 0;\n }", "title": "" }, { "docid": "63740060585de3b6f9e7b37765633f47", "score": "0.61052334", "text": "public int getID(){return id;}", "title": "" }, { "docid": "954027a8010cd36d31e6fc471ce53455", "score": "0.6095572", "text": "public int getAge() {\n return age;\n }", "title": "" }, { "docid": "954027a8010cd36d31e6fc471ce53455", "score": "0.6095572", "text": "public int getAge() {\n return age;\n }", "title": "" }, { "docid": "954027a8010cd36d31e6fc471ce53455", "score": "0.6095572", "text": "public int getAge() {\n return age;\n }", "title": "" }, { "docid": "954027a8010cd36d31e6fc471ce53455", "score": "0.6095572", "text": "public int getAge() {\n return age;\n }", "title": "" }, { "docid": "954027a8010cd36d31e6fc471ce53455", "score": "0.6095572", "text": "public int getAge() {\n return age;\n }", "title": "" }, { "docid": "ab02cf985ec7cc01fecebf93d139ce28", "score": "0.60867625", "text": "public int getNewValue() {\n/* 80 */ return this.newValue;\n/* */ }", "title": "" }, { "docid": "f14303e39544f3e9cbcc776dea664f68", "score": "0.6085494", "text": "public String getFirstName(){\r\n\treturn this.firstName;\r\n}", "title": "" }, { "docid": "b3f58d12945d8e492cd47f07a9317947", "score": "0.6075452", "text": "public double getSalary(){\n\treturn salary;\n}", "title": "" }, { "docid": "31715aaa00151023680852c5bc71c3de", "score": "0.60749316", "text": "public void SetData()\n {\n }", "title": "" }, { "docid": "c308703fe3015bffd1776314ed1d34d1", "score": "0.6071309", "text": "public String get_nomePrato() {\n return _nomePrato;\n}", "title": "" }, { "docid": "f920d63e0432064037a6f5c3157d4cf5", "score": "0.6067956", "text": "@Test\n\tpublic void validSetGet() {\n\t\t\n\t\tStatMutant object01 = new StatMutant();\n\t\t// act\n\t\tobject01.setCountHumanDna(this.countHumanDna);\n\t\tobject01.setCountMutantDna(this.countMutantDna);\n\t\tobject01.setRatio(this.ratio);\n\t\t// assert\n\t\tassertNotNull(object01);\n\t\tassertEquals(this.countHumanDna, object01.getCountHumanDna());\n\t\tassertEquals(this.countMutantDna, object01.getCountMutantDna());\n\t\tassertEquals(this.ratio, object01.getRatio());\n\t}", "title": "" }, { "docid": "20faa204eab25ed2e3aed8724ba39677", "score": "0.60653067", "text": "public String getName(){return _name;}", "title": "" }, { "docid": "0d2697af500cfc8778253041b41d8602", "score": "0.60640633", "text": "public Attribute getAttr(){ return att; }", "title": "" }, { "docid": "9ef95cda88fbcb67782f75feb9dda4c3", "score": "0.6055777", "text": "public String getCodigo()\n/* 25: */ {\n/* 26: 73 */ return this.codigo;\n/* 27: */ }", "title": "" }, { "docid": "80cc1bfb9bf2b667ebf560aa73525713", "score": "0.60534257", "text": "public void setName(String name){\nthis.name = name;\n}", "title": "" }, { "docid": "e329787058b415689ed6cf8f77001e49", "score": "0.60423577", "text": "@Override\n public void getData() {\n }", "title": "" }, { "docid": "5233d6246b510fa6ed322bbe54c11315", "score": "0.6036441", "text": "public int getYear(){ return this.year; }", "title": "" }, { "docid": "bcdc131da9af7aca990565d7c9850ccf", "score": "0.6034369", "text": "public void setPrixLoyer(int prix)\n{\n this.prixLoyer=prix;\n}", "title": "" }, { "docid": "7e7180f713eff8fbdfea4de5bc123bf3", "score": "0.6033122", "text": "public Player getPlayer(){return player;}", "title": "" }, { "docid": "b7699ecf9130fd294aa96a31e5a697c9", "score": "0.6032325", "text": "public int getPrice() { return price; }", "title": "" }, { "docid": "3bae10e6da727fa3accfb25acac358f5", "score": "0.60316783", "text": "public int getVolumen (){\r\n \r\n return volumen;\r\n}", "title": "" }, { "docid": "b5717fd5ace25c1f369e1450e52ff8e6", "score": "0.60190684", "text": "public int getPrixAchat(){\n\treturn this.prixTerrain;\n}", "title": "" }, { "docid": "a751336df903b2a1c79dd4fb14f2e66b", "score": "0.6016628", "text": "public int getPrice()\n {\n return price; \n }", "title": "" }, { "docid": "84ac577a381203ebe3510c666b7bfd13", "score": "0.60136616", "text": "public String getNom()\n{\n\treturn this.nom;\n}", "title": "" }, { "docid": "16c66c77161cd3775e50d2fc49b12c2f", "score": "0.60116524", "text": "String getFirstName()\r\n{\r\n\treturn firstName; \r\n}", "title": "" }, { "docid": "6417c86084dd3f065bb5751061cd70a1", "score": "0.6009146", "text": "public int getSet() {\n return set;\n }", "title": "" }, { "docid": "c512bfb29e025929680240705740bcbc", "score": "0.600191", "text": "public Empleado getEmpleado()\r\n/* 58: */ {\r\n/* 59: 99 */ return this.empleado;\r\n/* 60: */ }", "title": "" }, { "docid": "a965c50f9fd4f48f8fd76460b52814ad", "score": "0.5993924", "text": "public String getNombre(){\r\n return this.nombre;\r\n }", "title": "" }, { "docid": "a965c50f9fd4f48f8fd76460b52814ad", "score": "0.5993924", "text": "public String getNombre(){\r\n return this.nombre;\r\n }", "title": "" }, { "docid": "7e5fc5546b30a83cb2ca0290f352b66c", "score": "0.598771", "text": "public String getName(){\nreturn name;\n}", "title": "" }, { "docid": "923dc15d312b45d0352f50ee600c832f", "score": "0.598194", "text": "public int getPrice(){\n return price;\n }", "title": "" }, { "docid": "76c998ce9ffc25fa50f060f6bc85137a", "score": "0.597697", "text": "public int getID() {return this.id;}", "title": "" }, { "docid": "27e276e3a897894cec0c700444fd0d35", "score": "0.5974542", "text": "public Object getValue1() {\n/* 40 */ return this.value1;\n/* */ }", "title": "" }, { "docid": "4f2835044064b367ce0920282ac85951", "score": "0.59732187", "text": "public String getValor()\n/* 109: */ {\n/* 110:373 */ return this.valor;\n/* 111: */ }", "title": "" }, { "docid": "12231fcf2e1ea529c92459120cabe050", "score": "0.59721833", "text": "public int get() {\n\t return value.get();\n\t\n\n\t}", "title": "" }, { "docid": "159256a90a4df8dde1375c0346e01673", "score": "0.59672225", "text": "public String getFirstName(){ return this.firstName; }", "title": "" }, { "docid": "4d435e03086557b99fd9dca89b01b73c", "score": "0.5967168", "text": "abstract protected void getProperties();", "title": "" }, { "docid": "81c3cbf5bdfc882366ab989713d9a800", "score": "0.5963946", "text": "public Empresa getEmpresa()\r\n/* 132: */ {\r\n/* 133:163 */ return this.empresa;\r\n/* 134: */ }", "title": "" }, { "docid": "1d75716838dd03bdafb17917619aa167", "score": "0.5954579", "text": "public String getNombre(){\n return nombre;\n }", "title": "" }, { "docid": "1d75716838dd03bdafb17917619aa167", "score": "0.5954579", "text": "public String getNombre(){\n return nombre;\n }", "title": "" }, { "docid": "b2028080620fa8dc34d7c8b6b089a574", "score": "0.59541076", "text": "public Set<T> get() {\n }", "title": "" }, { "docid": "ae9b133bc5337f33f6c590c71b254d7e", "score": "0.5949914", "text": "@Override\r\n\tpublic void getAttributes() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a9300433b7339ff919f1fa8d07cea214", "score": "0.5949511", "text": "public String getIva()\n/* 106: */ {\n/* 107:144 */ return this.iva;\n/* 108: */ }", "title": "" }, { "docid": "46e760917629daf210c92d6408d91833", "score": "0.59423095", "text": "private String getId(){return this.id;}", "title": "" }, { "docid": "508a9bf847956c5afd1a3a7f41ab7d3c", "score": "0.5937968", "text": "public int getAge(){\r\n\t\treturn age;\r\n\t}", "title": "" }, { "docid": "95d313c5b230f270409efd55b4b6147c", "score": "0.5929407", "text": "public String getName(){ return name;}", "title": "" }, { "docid": "54577976985c702354bf179c8eeb0863", "score": "0.59239745", "text": "public double getPrice() \n {\n return Price;\n }", "title": "" }, { "docid": "6e7c9427930fdca768d6aca6ade9694a", "score": "0.5920125", "text": "private java.util.Properties getProperties() {\r\n \treturn properties;\r\n }", "title": "" }, { "docid": "ec4b366eba52b38a97c92e925b644c3a", "score": "0.5913659", "text": "public String getName(){\r\n return name;}", "title": "" }, { "docid": "9ce75e891f4a6132d9837c33a86f11f3", "score": "0.5909315", "text": "@Override\n\tpublic void getchieurong() {\n\t\t\n\t}", "title": "" }, { "docid": "b9b2d8960ac0aecb38e92e2f5f86dc6c", "score": "0.59043294", "text": "public int getAge() \r\n\t{\r\n\t\treturn age;\r\n\t}", "title": "" }, { "docid": "44349dcf8f0decc16032c468f1b750b4", "score": "0.5903325", "text": "public String getName(){\n return name;\n }", "title": "" }, { "docid": "6ebad81d002866e2cc0b0fd56bc1c820", "score": "0.5899172", "text": "public void setAgeOfPet(int ageOfPet){\n\tthis.ageOfPet = ageOfPet;\n}", "title": "" }, { "docid": "b9e15deed73c51dc965f2236bd11d1a8", "score": "0.5894022", "text": "public String getName(){\r\n return this.name; }", "title": "" }, { "docid": "08a89a69f534a1d3462f9a26fb195952", "score": "0.5892493", "text": "public String getNome(){\r\n return nome;\r\n }", "title": "" }, { "docid": "ae9daaa4cb9ae89e97048c0f7edb4ec7", "score": "0.5891524", "text": "public String getNombre(){\n return this.nombre;\n }", "title": "" }, { "docid": "ae9daaa4cb9ae89e97048c0f7edb4ec7", "score": "0.5891524", "text": "public String getNombre(){\n return this.nombre;\n }", "title": "" }, { "docid": "ae9daaa4cb9ae89e97048c0f7edb4ec7", "score": "0.5891524", "text": "public String getNombre(){\n return this.nombre;\n }", "title": "" } ]
32d7829c972af99f561748403f2d1368
Returns the rating of a User
[ { "docid": "7763443a1f2280984a92e206ced52677", "score": "0.6439873", "text": "public int getRating() {\n\t\treturn rating;\n\t}", "title": "" } ]
[ { "docid": "6165e5e6f5d896c775675eb9f3b2d5bd", "score": "0.74418914", "text": "double getRating();", "title": "" }, { "docid": "189a43691ecf3650391f96d467d2a489", "score": "0.7161811", "text": "public int getUserRating(Long id)\r\n\t{\r\n\t\tint userRating = 0;\r\n\t\tfor (Rating r : ratings) \r\n\t\t{\r\n\t\t\tif (r.userId == id)\r\n\t\t\t{\r\n\t\t\t\tuserRating = r.rating;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn userRating;\r\n\t}", "title": "" }, { "docid": "4f3d09a2612ebc1a965dd08a33801653", "score": "0.71044207", "text": "@RequestMapping(\"users/{userId}\")\n\tpublic UserRating getUserRating(@PathVariable(\"userId\") String userId) {\n\t\tUserRating userRating = new UserRating();\n userRating.initData(userId);\n return userRating;\n\t}", "title": "" }, { "docid": "9fabe62408998faf6d8f0e5f72436e5d", "score": "0.7016178", "text": "public ArrayList<Rating> getUserRatings(Long userID);", "title": "" }, { "docid": "d44aec8874f55b811516f19229cfc836", "score": "0.6798671", "text": "public double getRating(){\n\t\treturn this.rating;\n\t}", "title": "" }, { "docid": "ff735f20ff5b7146789fd917623b493e", "score": "0.67907006", "text": "public double getRating() {\n return rating_;\n }", "title": "" }, { "docid": "ee6a5c986d5afe7b07f8179acf4a4e35", "score": "0.67547786", "text": "public double getRating() {\n return rating_;\n }", "title": "" }, { "docid": "5d400462a997cfd22d215e4f7d297ab2", "score": "0.6719674", "text": "public Number getRating()\n {\n return rating;\n }", "title": "" }, { "docid": "059ce0ef0b712e5e89f6995a03bd9283", "score": "0.67118114", "text": "public double getRating() {\n return rating;\n }", "title": "" }, { "docid": "5e996cedc8c0d4dc1f0e30747f694218", "score": "0.6683885", "text": "public double getRating() {\n return this.rating;\n }", "title": "" }, { "docid": "0f2875b867e8a48f065791a5f72c8610", "score": "0.66455877", "text": "public int getRating() {\r\n return rating;\r\n }", "title": "" }, { "docid": "f482d84bcc1426c9a2c6e88d8ca73cd1", "score": "0.66388845", "text": "public double getRating() {\r\n\t\treturn this.rating;\r\n\t}", "title": "" }, { "docid": "adaf6fc9c6029df7310d23c715bb0981", "score": "0.6620009", "text": "public int getRating() {\n return rating;\n }", "title": "" }, { "docid": "adaf6fc9c6029df7310d23c715bb0981", "score": "0.6620009", "text": "public int getRating() {\n return rating;\n }", "title": "" }, { "docid": "adaf6fc9c6029df7310d23c715bb0981", "score": "0.6620009", "text": "public int getRating() {\n return rating;\n }", "title": "" }, { "docid": "7d8a68eca608239799ed2e26cd714d5b", "score": "0.66127807", "text": "public int getRating(){\n\t\t// verify on the background that we have the right rating\n\t\t//validateRating();\n\t\t//TODO: determine if we need to validate rationg or not\n\n\t\t// return the rating\n\t\treturn parse.getInt(RATING);\n\t}", "title": "" }, { "docid": "1f8e282a9e3610e29da0b15d775565dc", "score": "0.659198", "text": "public float getRating() {\n return rating;\n }", "title": "" }, { "docid": "16ee4940bc29cdb1933fd780e076d6b0", "score": "0.6571221", "text": "public int getRating() {\n return rating;\n }", "title": "" }, { "docid": "8a7f2e0f392bbf837cc9b112feee9aa1", "score": "0.6535115", "text": "public void rateLocation(Location location, Float rating, User user);", "title": "" }, { "docid": "e812099a9313bf97b9f881c4593b3c88", "score": "0.64906186", "text": "@Override\r\n\tpublic long getUserExperienceRating(String userName) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "0b34a65b5a3747fb729a4a3d77393a00", "score": "0.6487986", "text": "@Override\n\tpublic int getRating() {\n\t return rating;\n\t}", "title": "" }, { "docid": "441721eeeb2c47131657c1f268f7d327", "score": "0.64647", "text": "public String getRating() {\r\n return rating;\r\n }", "title": "" }, { "docid": "028740612f23e0ea43655fee13a0cae6", "score": "0.644186", "text": "public String getRating() {\n return rating;\n }", "title": "" }, { "docid": "2aded2bcd956847417b85475b6a01e9c", "score": "0.63966584", "text": "@RequestMapping(\"users/{userId}\")\n public UserRating getRatingByUserId(@PathVariable(\"userId\") String userId){\n\n UserRating userRating = new UserRating(RatingTable);\n\n return userRating;\n }", "title": "" }, { "docid": "7b42cdc66bcdab1648435fb2d72586d9", "score": "0.6366023", "text": "public int fetchAlbumUserRating(long userid, long albumId);", "title": "" }, { "docid": "37de97b47ac36ceea57e188498583038", "score": "0.6358936", "text": "public Integer ratings() {\n return this.ratings;\n }", "title": "" }, { "docid": "0967e7331265540ff9fac1907bc2dde5", "score": "0.6340841", "text": "public static ArrayList<UserSkillRatingsModel> getUserSkillRatingsByUserId(int userId) {\n\t\t// TODO Auto-generated method stub\r\n\t\tConnection connection=null;\r\n\t\tResultSet resultSet=null;\r\n\t\tString query=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tconnection=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/uftdb2\",\"root\",\"admin\");\r\n\t\t\t\r\n\t\t\tquery=\"select * from userskillratings where UserId=?\";\r\n\t\t\tPreparedStatement preparedStmt = (PreparedStatement) connection.prepareStatement(query);\r\n\t\t\tpreparedStmt.setInt(1, userId);\r\n\t\t\t\r\n\t\t\tresultSet = preparedStmt.executeQuery();\r\n\t\t\tArrayList<UserSkillRatingsModel> userSkillsRatings=new ArrayList<UserSkillRatingsModel>();\r\n\t\t\tif(resultSet.next()){\r\n\t\t\t\tresultSet.beforeFirst();\r\n\t\t\twhile(resultSet.next())\r\n\t\t\t{\r\n\t\t\t\tUserSkillRatingsModel userSkillRating=new UserSkillRatingsModel();\r\n\t\t\t\tuserSkillRating.Id=resultSet.getInt(\"Id\");\r\n\t\t\t\tuserSkillRating.SkillId=resultSet.getInt(\"SkillId\");\r\n\t\t\t\tuserSkillRating.RatingId=resultSet.getInt(\"RatingId\");\r\n\t\t\t\tuserSkillRating.UserId=userId;\r\n\t\t\t\tuserSkillsRatings.add(userSkillRating);\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t\treturn null;\r\n\t\t\t\r\n\t\t\treturn userSkillsRatings;\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "96acf13ad2e34d5ac1e615c88b48a52f", "score": "0.6334466", "text": "public double getRecommendationAverageRating() {\n\t\tdouble meanRelevance = 0;\n\t\tint nrecs = 0;\n\n\t\tfor (Integer userId: userGroup) {\n\t\t\tdouble relevance = 0;\n\t\t\tint counter = 0;\n\t\t\tList<Integer> recs = alg.getRecommendations(userId);\n\t\t\tfor (int i = 0; i < recs.size() && i < k; i++) {\n\t\t\t\trelevance += reader.getItemProfiles().get(recs.get(i)).getMeanValue();\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tif (counter > 0) {\n\t\t\t\tmeanRelevance += relevance / counter;\n\t\t\t\tnrecs++;\n\t\t\t}\n\t\t}\n\t\treturn (nrecs > 0) ? meanRelevance / nrecs : 0;\n\t}", "title": "" }, { "docid": "135926b4fa0a7a1e31c512fbef0be624", "score": "0.63076675", "text": "@Nonnull public ReviewRating getRating() { return rating; }", "title": "" }, { "docid": "9e2606830c5bf7f8a38b55977aa34cf6", "score": "0.6294755", "text": "@Override\n public int getRating(String name) {\n GetRatingStatement statement = new GetRatingStatement(url);\n statement.setName(name);\n statement.executeAndHandle();\n int rating = statement.getRating();\n if (rating == -1) {\n return 1000;\n }\n return rating;\n }", "title": "" }, { "docid": "66a52ab7626d61d1a76dc0d1a4b3bf91", "score": "0.62274396", "text": "public boolean rateVideo(String vName, int userRating) {\n\n\t\ttry {\n\t\t\t\n\t\t\tString queryToSelect = \"select * from ronanRating where vName='\"\n\t\t\t\t\t+ vName + \"'\";\n\t\t\tfloat avgRating;\n\t\t\tfloat count = 0;\n\t\t\tfloat totalRating = 0;\n\n\t\t\tif (connection != null) {\n\t\t\t\tPreparedStatement prepared_statement = connection.prepareStatement(queryToSelect);\n\t\t\t\tResultSet result = prepared_statement.executeQuery();\n\t\t\t\tif (result.next()) {\n\t\t\t\t\tcount = result.getInt(5) + 1;\n\t\t\t\t\ttotalRating = result.getInt(6) + userRating;\n\t\t\t\t\tavgRating = (totalRating / count);\n\n\t\t\t\t\tString updateQuery = \"update ronanRating SET avgRating =\"\n\t\t\t\t\t\t\t+ avgRating\n\t\t\t\t\t\t\t+ \", count=\"\n\t\t\t\t\t\t\t+ (int) count\n\t\t\t\t\t\t\t+ \", sumRating=\"\n\t\t\t\t\t\t\t+ (int) totalRating\n\t\t\t\t\t\t\t+ \" where vName='\" + vName + \"'\";\n\t\t\t\t\t\n\t\t\t\t\tPreparedStatement preparedStatement1 = connection.prepareStatement(updateQuery);\n\t\t\t\t\tpreparedStatement1.execute(updateQuery);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR!!!!!!!!! \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\n\t}", "title": "" }, { "docid": "662f64276f51fff90cf23fb5b8dc9d35", "score": "0.617252", "text": "public double numerator(User user1, User user2) {\n\n\t\tdouble numerator = 0;\n\t\tHashMap<Item, Double> user1Ratings = user1.getRatings();\n\t\tHashMap<Item, Double> user2Ratings = user2.getRatings();\n\n\t\tfor (Item i : user1Ratings.keySet()) {\n\n\t\t\tif (user2Ratings.containsKey(i)) {\n\t\t\t\tdouble value = (user1Ratings.get(i) - user1.getAverageRatings())\n\t\t\t\t\t\t* (user2Ratings.get(i) - user2.getAverageRatings());\n\t\t\t\tnumerator = numerator + value;\n\t\t\t}\n\t\t}\n\n\t\treturn numerator;\n\t}", "title": "" }, { "docid": "bdb5605b990d3a96697072c155901822", "score": "0.6163032", "text": "public java.lang.String getRating() {\n return rating;\n }", "title": "" }, { "docid": "dd6ba96bb206b68ce37a888a2acd9120", "score": "0.61530554", "text": "@RequestMapping(value = \"/rating\", method = RequestMethod.GET)\n public String rating(Model model) {\n List<Rating> ratingList = ratingsDao.findAll();\n // Создаем map с именем пользователя и его рейтингом и сразу отсортировываем по убыванию\n Map<Double, String> map = new TreeMap<>(new Comparator<Double>() {\n @Override\n public int compare(Double a, Double b) {\n if (a >= b) {\n return 1;\n } else if (a < b)\n return -1;\n else\n return 0;\n }\n });\n // Пользователи с 0 getCountgame() не будут отображаться в списке\n for (Rating rating : ratingList) {\n map.put((double) rating.getAllAttempt() / rating.getCountgame(), rating.getUsername());\n }\n\n model.addAttribute(\"rating\", map);\n return \"rating\";\n }", "title": "" }, { "docid": "050df8c0a8dcb74002cecf7dda24cbd2", "score": "0.6125322", "text": "@JsonProperty(\"rating\")\n public Integer getRating();", "title": "" }, { "docid": "90a038423b49fde034f269e309ba5ba0", "score": "0.6109022", "text": "public Short getRating() {\n return rating;\n }", "title": "" }, { "docid": "1db8daa443fee81c973fb049937787a2", "score": "0.6090236", "text": "public Rating addRating(long userId, long movieId, int rating)\r\n\t{\r\n\t\tRating newRating = new Rating(userId, movieId, rating);\r\n\t\tratings.add(newRating);\r\n\t\treturn newRating;\r\n\r\n\t}", "title": "" }, { "docid": "96b3a199dd41d80523d8854f9fede329", "score": "0.60656947", "text": "@GetMapping(\"/getRatings\")\n public ResponseEntity<Set<Rating>> getRatings(){\n if(!Authorized.isAuthorised(RoleEnum.PATIENT)){\n return new ResponseEntity<>(null, HttpStatus.UNAUTHORIZED);\n }\n UsernamePasswordAuthenticationToken upat = (UsernamePasswordAuthenticationToken)\n SecurityContextHolder.getContext().getAuthentication();\n Patient patient = (Patient) ((MyUserDetails)upat.getPrincipal()).getUser();\n Set<Rating> retVal = patientRespository.findByEmail(patient.getEmail()).getRatings();\n return new ResponseEntity<>(retVal,HttpStatus.OK);\n }", "title": "" }, { "docid": "3ef3377d42de96a9f1f238e1cb908f46", "score": "0.6061299", "text": "public double getActorRating() {\n return actorRating;\n }", "title": "" }, { "docid": "dc62aa167b06e7ffdff0ed0ee816cc60", "score": "0.60512453", "text": "int getRating(String path, String userName) throws RegistryException;", "title": "" }, { "docid": "8c7746318c151fae2b27938c78ccfacb", "score": "0.60244226", "text": "public void updatRating(UserRole userRole){\n\t\tUserRole temp = template.get(UserRole.class, userRole.getUserid());\n\t\t//Do not average if the current rating in zero (0)\n\t\tfloat avg = (temp.getRating() == 0)? userRole.getRating():(temp.getRating() + userRole.getRating())/2.0f;\n\t\ttemp.setRating(avg);\n\t\ttemplate.update(temp);\n\t}", "title": "" }, { "docid": "7ea456ad7d58e8ec8664e33c8619d2c7", "score": "0.6014882", "text": "public float getObjectRating(String vName) {\n\t\ttry {\n\t\t\tString queryToSelect = \"select avgRating from ronanRating where vName='\"\n\t\t\t\t\t+ vName + \"'\";\n\t\t\tfloat rating = 0;\n\t\t\tif (connection != null) {\n\t\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(queryToSelect);\n\t\t\t\tResultSet result = preparedStatement.executeQuery();\n\n\t\t\t\twhile (result.next()) {\n\t\t\t\t\trating = result.getFloat(1);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn rating;\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"ERROR!!!!!!!!!\"\n\t\t\t\t\t+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn 1;\n\t\t}\n\n\t}", "title": "" }, { "docid": "766037fb8a531e0d42f96c97a1b93eaa", "score": "0.596487", "text": "public Rating getRating(long targetId) throws RequestProcessException;", "title": "" }, { "docid": "378f0a5f02014388ccad0950cc621151", "score": "0.5904962", "text": "public void addRating(Long userID, Long movieID, int rating);", "title": "" }, { "docid": "20eb989d108573f0c16d5b8cb9cf8664", "score": "0.58868515", "text": "public float getAvgRating() {\n return avgRating;\n }", "title": "" }, { "docid": "686598ea39803c5c419cf58902be3c97", "score": "0.5882937", "text": "public void addUsersRating(final String username) {\n this.usersRating.add(username);\n }", "title": "" }, { "docid": "24ae1d374fe459e2eade7a69c511a4a3", "score": "0.5865296", "text": "@Override\n\tpublic double returnSimilarity(User user1, User user2) {\n\t\tdouble similarity;\n\t\tdouble numerator = numerator(user1, user2);\n\t\tdouble denominator = denominator(user1, user2);\n\t\tif (denominator == 0) {\n\t\t\tsimilarity = 0;\n\t\t} else {\n\t\t\tsimilarity = numerator / denominator;\n\t\t}\n\n\t\tsimilarity = Double.parseDouble(df.format(similarity));\n\t\treturn similarity;\n\t}", "title": "" }, { "docid": "64c5cc077ee56b5057a4403c1f065666", "score": "0.58633375", "text": "@Query(\"select u from User u join u.recipes ur group by u order by avg(ur.likes.size) DESC\")\n\tCollection<User> usersRegardingAverageLikesAndDislikes ();", "title": "" }, { "docid": "afd1da251cf7edcc2a6090967a31062a", "score": "0.58435506", "text": "public float getTotalrating() {\n return totalrating;\n }", "title": "" }, { "docid": "734bb407d3a5a731d3d9fa973a37a3a4", "score": "0.5824348", "text": "public void getRating(String uid, final Callback<Rating> callback) {\n DocumentReference docRef = ratings.document(uid);\n\n docRef.get()\n .addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n Rating rating = documentSnapshot.toObject(Rating.class);\n callback.myResponseCallback(rating);\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n callback.myResponseCallback(null);\n }\n });\n }", "title": "" }, { "docid": "e061f0c74c44eb20b34a82919a48fb91", "score": "0.5808817", "text": "@Query(\"select 1.0*count(c)/(select count(u) from User u) from Chirp c\")\n\tDouble getAverageChirpsPerUser();", "title": "" }, { "docid": "b7e0dfcca7c36f91c62a35393f0f11fb", "score": "0.5788539", "text": "public void addRatings(final String username, final Double rating) {\n this.addUsersRating(username);\n this.ratings.add(rating);\n }", "title": "" }, { "docid": "cd2d4b049c3325dfad97e0e007534ec5", "score": "0.57832617", "text": "public Double getRating(Double[] ratings, AttributeValue[] record);", "title": "" }, { "docid": "b357324e9d0298ce6b0daec5dc61c66f", "score": "0.5769686", "text": "public String getWattageRating()\r\n\t{\r\n\t\treturn wattageRating;\r\n\t}", "title": "" }, { "docid": "91d74881c550d23e82f15aeb406604e7", "score": "0.5753388", "text": "public double getUserScore() {\n return 0;\n }", "title": "" }, { "docid": "4a278cde3fd07a842d54fff324f25bb9", "score": "0.5752037", "text": "public Vote getVote(String user) {\n return voteMap.get(user);\n }", "title": "" }, { "docid": "52093f700092bd67650a10178a05368d", "score": "0.57466906", "text": "protected Map<Integer, Double> getUserVars() {\n\t\tif (this.userVars.size() > 0) return this.userVars;\n\t\t\n\t\tint totalRatingCount = 0;\n\t\tthis.ratingMean = 0.0;\n\t\tthis.ratingVar = 0.0;\n\t\tthis.userIds.clear();\n\t\tthis.userMeans.clear();\n\t\tthis.userVars.clear();\n\t\ttry {\n\t\t\t//Calculating user means\n\t\t\tFetcher<RatingVector> users = dataset.fetchUserRatings();\n\t\t\twhile (users.next()) {\n\t\t\t\tRatingVector user = users.pick();\n\t\t\t\tif (user == null) continue;\n\t\t\t\tSet<Integer> itemIds = user.fieldIds(true);\n\t\t\t\tif (itemIds.size() == 0) continue;\n\t\t\t\t\n\t\t\t\tint userId = user.id();\n\t\t\t\tthis.userIds.add(userId);\n\t\t\t\t\n\t\t\t\tdouble meanSum = 0;\n\t\t\t\tfor (int itemId : itemIds) {\n\t\t\t\t\tdouble value = user.get(itemId).value;\n\t\t\t\t\tmeanSum += value;\n\t\t\t\t\t\n\t\t\t\t\ttotalRatingCount++;\n\t\t\t\t\tthis.ratingMean += value;\n\t\t\t\t}\n\t\t\t\tthis.userMeans.put(userId, meanSum / (double)(itemIds.size()));\n\t\t\t}\n\t\t\tif (totalRatingCount != 0)\n\t\t\t\tthis.ratingMean = this.ratingMean / (double)totalRatingCount;\n\t\n\t\t\t//Calculating user variances\n\t\t\tusers.reset();\n\t\t\twhile (users.next()) {\n\t\t\t\tRatingVector user = users.pick();\n\t\t\t\tif (user == null) continue;\n\t\t\t\tSet<Integer> itemIds = user.fieldIds(true);\n\t\t\t\tif (itemIds.size() == 0) continue;\n\t\t\t\t\n\t\t\t\tint userId = user.id();\n\t\t\t\tdouble varSum = 0;\n\t\t\t\tdouble userMean = this.userMeans.get(userId);\n\t\t\t\tfor (int itemId : itemIds) {\n\t\t\t\t\tdouble value = user.get(itemId).value;\n\t\t\t\t\tdouble d = value - userMean;\n\t\t\t\t\tvarSum += d*d;\n\t\t\t\t\t\n\t\t\t\t\tdouble D = value - this.ratingMean;\n\t\t\t\t\tthis.ratingVar += D*D;\n\t\t\t\t}\n\t\t\t\tthis.userVars.put(userId, varSum / (double)(itemIds.size()));\n\t\t\t}\n\t\t\tif (totalRatingCount != 0)\n\t\t\t\tthis.ratingVar = this.ratingVar / (double)totalRatingCount;\n\t\t\tusers.close();\n\t\t} catch (Throwable e) {LogUtil.trace(e);}\n\t\t\n\t\treturn this.userVars;\n\t}", "title": "" }, { "docid": "49caacb91da9f3abd5c9387aa770e531", "score": "0.5735434", "text": "public double[] getRowRating(int row) {\r\n\t\tHashMap<Integer, EntryInfo> aUser = userList.get(row);\r\n\t\t\r\n\t\tdouble[] output = new double[maxItemID];\r\n\t\t\r\n\t\tfor(Entry<Integer, EntryInfo> entry : aUser.entrySet()) {\r\n\t\t\toutput[entry.getKey()] = entry.getValue().getRating();\r\n\t\t}\r\n\t\t\r\n\t\treturn output;\r\n\t}", "title": "" }, { "docid": "474a569077dd51216eb2850be234a0b8", "score": "0.5728817", "text": "public double getUserScore(){\n if(userScore == -1){\n databaseManager.pullDepositStat();\n }\n if(lastUpdate==null || (new Date().getTime()-lastUpdate.getTime())/1000 < 10){\n databaseManager.pullDepositStat();\n }\n return userScore;\n }", "title": "" }, { "docid": "aa109ae6b756bf48076bb972243777f9", "score": "0.5721439", "text": "public Double avgRating() {\n return this.avgRating;\n }", "title": "" }, { "docid": "39ccc610ae8de64efd29794922e950f0", "score": "0.57055074", "text": "@Override\r\n\tpublic List<Integer> recommendItems(int user) {\r\n\t\tDebug.log(\"UserBasedKnn: Recommending items for : \" + user);\r\n\t\t// Use the standard method based on the rating prediction\r\n\t\treturn recommendItemsByRatingPrediction(user);\r\n\t}", "title": "" }, { "docid": "6e22afbbe7ef3575547aa6c572865011", "score": "0.56885713", "text": "public Rate setRating(java.lang.String rating) {\n this.rating = rating;\n return this;\n }", "title": "" }, { "docid": "0eae78f2b512287c5cc311dbe00b940d", "score": "0.5687785", "text": "public String getVictoryRating() {\n return victoryRating;\n }", "title": "" }, { "docid": "15ccf3e6ccde6e56515a024d84a6a319", "score": "0.56781423", "text": "@Override\r\n\tpublic synchronized float predictRating(int user, int item) {\r\n\t\t// Iterate over all users and rank them\r\n\t\t// A map of similarities\r\n\t\t\r\n\t\tMap<Integer, Double> similarities;\r\n\t\tif (itemBased) {\r\n\t\t\tsimilarities = this.theSimilarities.get(item);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsimilarities = this.theSimilarities.get(user);\r\n\t\t}\r\n\t\t// Check if we have enough neighbors\r\n\t\tif (similarities == null || (similarities.size() < this.minNeighbors)) {\r\n\t\t\treturn Float.NaN;\r\n\t\t}\r\n\t\t// The prediction function.\r\n\t\t// Take the user's average and add the weighted deviation of the neighbors.\r\n\t\tdouble totalSimilarity = 0;\r\n\t\t\r\n\t\tFloat objectAverage;\r\n\t\tif (itemBased) {\r\n\t\t\tobjectAverage = this.averages.get(item);\r\n\t\t\tif (objectAverage == null) {\r\n//\t\t\t\tSystem.err.println(\"NearestNeighbors: There's no average rating for item \" + item);\r\n\t\t\t\treturn Float.NaN;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tobjectAverage = averages.get(user);\r\n\t\t\tif (objectAverage == null) {\r\n//\t\t\t\tSystem.err.println(\"NearestNeighbors: There's no average rating for user \" + item);\r\n\t\t\t\treturn Float.NaN;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// go through all the neighbors \r\n\t\tint cnt = 0;\r\n\t\tdouble totalBias = 0;\r\n\t\tfor (Integer otherObject : similarities.keySet()) {\r\n\r\n\t\t\tfloat neighborRating;\r\n\t\t\tif (itemBased) {\r\n\t\t\t\tneighborRating = dataModel.getRating(user, otherObject);\r\n\t\t\t}\r\n\t\t\telse {\r\n//\t\t\t\tSystem.out.println(\"Getting other object rating \" + otherObject + \",\" + item);\r\n\t\t\t\tneighborRating = dataModel.getRating(otherObject, item);\r\n\t\t\t}\r\n\t\t\tif (!Float.isNaN(neighborRating) && neighborRating != -1) {\r\n\t\t\t\tfloat neighborBias = neighborRating - averages.get(otherObject); \r\n\t\t\t\tneighborBias = (float) (neighborBias * similarities.get(otherObject));\r\n\t\t\t\ttotalBias += neighborBias;\r\n\t\t\t\ttotalSimilarity += similarities.get(otherObject);\r\n\t\t\t\t// enough neighbors\r\n\t\t\t\tcnt++;\r\n\t\t\t\tif (cnt >= this.nbNeighbors) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tdouble result = objectAverage + (totalBias / totalSimilarity);\r\n\t\treturn (float) result;\r\n\t}", "title": "" }, { "docid": "7714aa1089c51093f2c04c21a689e560", "score": "0.5675805", "text": "public void setRating(String rating) {\n this.rating = rating;\n }", "title": "" }, { "docid": "97558d7f2c7496a5a153ae46bc89fbaf", "score": "0.5660921", "text": "public int playerRating(int player, GameState gs) {\r\n \t\r\n \tint rating = 0;\r\n \t\r\n \tPhysicalGameState pgs = gs.getPhysicalGameState();\r\n Player p = gs.getPlayer(player);\r\n \t\r\n \t// Check enemies\r\n for(Unit unit:pgs.getUnits()) {\r\n if (unit.getPlayer()==p.getID()) \r\n {\r\n \tif (unit.getType() == workerType )\r\n \t{\r\n \t\trating ++;\r\n \t\t//System.out.println(\"enRat = \" + enemyRating);\r\n \t}\r\n \telse if (unit.getType() == lightType)\r\n \t{\r\n \t\trating += 2;\r\n \t}\r\n \telse if (unit.getType() == rangedType)\r\n \t{\r\n \t\trating += 3;\r\n \t}\r\n \telse if (unit.getType() == heavyType)\r\n \t{\r\n \t\trating += 4;\r\n \t}\r\n }\r\n }\r\n \t\r\n \treturn rating;\r\n }", "title": "" }, { "docid": "54bf087951365ac2cd89b64b4307e478", "score": "0.5647544", "text": "public void setRating(int rating) {\r\n this.rating = rating;\r\n }", "title": "" }, { "docid": "e7f7f4c8d0db21d2ee2a90b490591ef3", "score": "0.56463295", "text": "@Query(\"select 1.0*sum(CASE WHEN (select count(c) from Chirp c where c.user.id=u.id)>= 1.75*(select 1.0*count(c)/(select count(u) from User u) from Chirp c) THEN 1 ELSE 0 END) /(select count(u) from User u) from User u\")\n\tDouble getRatioUsersMoreChirpsThan75Percent();", "title": "" }, { "docid": "d05de2a85d46ba4f34b12c2988865d3a", "score": "0.5620256", "text": "public void setRating(int rating) {\n this.rating = rating;\n }", "title": "" }, { "docid": "fa7ce9661429aaf19ab50c2e135d9f8b", "score": "0.561152", "text": "public org.jooq.examples.mysql.sakila.enums.FilmListRating getRating() {\n\t\treturn getValue(org.jooq.examples.mysql.sakila.tables.FilmList.FILM_LIST.RATING);\n\t}", "title": "" }, { "docid": "26e7c9fac10eeeac1bd0dd0f49bb96c5", "score": "0.55939573", "text": "@Override\r\n\tpublic Float getRating(long userID, long itemID) {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t\ttry {\r\n\t\t\tif (masterProxy.getRating(userID, itemID, RMI_URL) == false)\r\n\t\t\t\treturn null;\r\n\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tsynchronized (this) {\r\n\t\t\ttry {\r\n\t\t\t\tlogger.info(\"thread wait...\");\r\n\t\t\t\tthis.wait();\r\n\t\t\t\tlogger.info(\"thread weaken...\");\r\n\t\t\t} catch (InterruptedException 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}\r\n\r\n\t\treturn valueResult;\r\n\t}", "title": "" }, { "docid": "5ea68472cc1abc5782e62fa4c2aaae14", "score": "0.5592049", "text": "public boolean checkUserRating(int rating){\n if (rating >= 1 && rating <= 10){\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "49d939f845394815a40a1f117c4647a6", "score": "0.558917", "text": "public double getRecommendationPopularity() {\n\t\tdouble meanPopularity = 0;\n\t\tint nrecs = 0;\n\t\tint nusers = reader.getUserIds().size();\n\t\tfor (Integer userId: userGroup) {\n\t\t\tdouble popularity = 0;\n\t\t\tint counter = 0;\n\t\t\tList<Integer> recs = alg.getRecommendations(userId);\n\t\t\tfor (int i = 0; i < recs.size() && i < k; i++) {\n\t\t\t\tpopularity += reader.getItemProfiles().get(recs.get(i)).getSize() * 1.0 / nusers;\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tif (counter > 0) {\n\t\t\t\tmeanPopularity += popularity / counter;\n\t\t\t\tnrecs++;\n\t\t\t}\n\t\t}\n\n\t\treturn (nrecs > 0) ? meanPopularity / nrecs : 0;\n\t}", "title": "" }, { "docid": "37cabfe0aa8193c45c17a1297db55774", "score": "0.5586565", "text": "@Override\r\n\t\t\t\t\t\tpublic void onRatingChanged(RatingBar ratingBar,\r\n\t\t\t\t\t\t\t\tfloat rating, boolean fromUser) {\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tswitch ((int) rating) {\r\n\t\t\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\t\t\ttv_gymrate.setText(\"太烂了,下次再也不来了\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\t\t\ttv_gymrate.setText(\"不满意,不太想再来了\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\t\t\t\ttv_gymrate.setText(\"一般,很多地方需要改善\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\t\t\t\ttv_gymrate.setText(\"还不错,各方面都比较满意\");\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase 5:\r\n\t\t\t\t\t\t\t\t\ttv_gymrate.setText(\"非常棒,期待下一次再来运动\");\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} catch (Exception e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "0f30746930bc1fba6948991bc41f47a5", "score": "0.55720407", "text": "public void setRating(int value) {\n this.rating = value;\n }", "title": "" }, { "docid": "7a4c20bef1b45fdaa9f5ca7f21c7f057", "score": "0.5563112", "text": "public List<Movie> getUserRecommendations(Long userID);", "title": "" }, { "docid": "5d6a34dcadb5d69b32d59c1364a3c73b", "score": "0.55473506", "text": "boolean hasRating();", "title": "" }, { "docid": "738923caed48599132bf56530f4a8c33", "score": "0.55473095", "text": "double getAverageRating(String movie);", "title": "" }, { "docid": "9b575f3a6741316b3c35821c00543f2e", "score": "0.55410516", "text": "@Override\r\n\t\t\t\t\t\tpublic void onRatingChanged(RatingBar ratingBar,\r\n\t\t\t\t\t\t\t\tfloat rating, boolean fromUser) {\n\t\t\t\t\t\t\tswitch ((int) rating) {\r\n\t\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\t\ttv_opponentrate.setText(\"素质不太好,不能忍\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\t\ttv_opponentrate.setText(\"不满意对方的一些表现\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\t\t\ttv_opponentrate.setText(\"一般,可以接受对方的表现\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\t\t\ttv_opponentrate.setText(\"很不错,一起运动很开心\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 5:\r\n\t\t\t\t\t\t\t\ttv_opponentrate.setText(\"非常棒,期待下一次一起运动\");\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "489b57be89e8836efce8057f3ee84f81", "score": "0.55290633", "text": "public int queryUserAmount(User user) {\r\n\t\treturn 2;\r\n\t}", "title": "" }, { "docid": "a7ed05b2f2e54a242ee8363ac97b1074", "score": "0.55276465", "text": "@Override\n\tpublic Map<Integer, Double> recommend(int userId) {\n\t\treturn this.indexDaoImpl.recommend(userId);\n\t}", "title": "" }, { "docid": "67d349b7eb3b580742adf12780964792", "score": "0.5514333", "text": "public boolean voteAlbumRating(long userid, long albumId, int rating);", "title": "" }, { "docid": "a5d779a988a0dc325cdc41bf1ebdef25", "score": "0.5503767", "text": "double calcAverageRating(int movieId) throws DaoException;", "title": "" }, { "docid": "f2b25fcc776f298e7a4af6d7e57db3f8", "score": "0.55034053", "text": "public double getRating(String busId) {\n\t\treturn 0.0;\n\t}", "title": "" }, { "docid": "f5c2f4e81de7de97bdbd7df5392179b6", "score": "0.5476585", "text": "public static IRating getRating(int id) {\n\t\tfor (IRating rating: activeRatings) {\n\t\t\tint ratingId = rating.getId();\n\t\t\tif (ratingId == id) return rating;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "24289ed674834a492898883e8225bffc", "score": "0.5470569", "text": "public static String recToUserWithRatings(String userId, String type, String city) throws IOException {\n\t\tWebTarget service = config();\n\t\t\n\t\t//get recommendation\n\t\tResponse resp =null;\n\t\tif (type.equals(\"activity\")) {\n\t\t\tSystem.out.println(\"activity\");\n\t\t resp = service.path(\"/recombee/recommendation/user_based\")\n\t\t\t\t.queryParam(\"userId\", userId)\n\t\t\t\t.queryParam(\"count\", \"5\")\n\t\t\t\t.queryParam(\"filter\", \"\\\"\"+type+\"\\\"\"+ \" in 'type' and \" + \"\\\"\"+city+\"\\\"\" + \" in 'city'\")\n\t\t\t\t.queryParam(\"properties\", \"name,topic,city,from,to\")\n\t\t\t\t.request().accept(MediaType.APPLICATION_JSON).header(\"Content-type\",\"application/json\").get();\n\t\t} else {\n\t\t\tSystem.out.println(\"restaurant\");\n\t\t\tresp = service.path(\"/recombee/recommendation/user_based\")\n\t\t\t\t\t.queryParam(\"userId\", userId)\n\t\t\t\t\t.queryParam(\"count\", \"5\")\n\t\t\t\t\t.queryParam(\"filter\", \"\\\"\"+type+\"\\\"\"+ \" in 'type' and \" + \"\\\"\"+city+\"\\\"\" + \" in 'city'\")\n\t\t\t\t\t.queryParam(\"properties\", \"name,topic,city,address,rating\")\n\t\t\t\t\t.request().accept(MediaType.APPLICATION_JSON).header(\"Content-type\",\"application/json\").get();\n\t\t}\n\t\t\t\t\n\t\tString response = resp.readEntity(String.class);\n\t\tJSONArray newArray = new JSONArray();\n\t\tJSONArray array = new JSONArray(response);\n\t\tfor (int i=0;i<array.length();i++) {\n\t\t\tnewArray.put(array.getJSONObject(i).get(\"values\"));\n\t\t}\n\t\t//String json = format(newA);\n\t\treturn newArray.toString();\t\t\n\t}", "title": "" }, { "docid": "ad3530ba183a75fccfc3956105357540", "score": "0.54659694", "text": "public int fetchAlbumAverageRating(long userid, long albumId);", "title": "" }, { "docid": "fd6bcf5c31e89ed87b617635f6432a04", "score": "0.5463356", "text": "public double denominator(User user1, User user2) {\n\t\tdouble denominator = 0;\n\t\tHashMap<Item, Double> user1Ratings = user1.getRatings();\n\t\tHashMap<Item, Double> user2Ratings = user2.getRatings();\n\t\tdouble value1 = 0;\n\t\tdouble value2 = 0;\n\n\t\tfor (Item i : user1Ratings.keySet()) {\n\n\t\t\tif (user2Ratings.containsKey(i)) {\n\n\t\t\t\tvalue1 = value1 + Math.pow(user1Ratings.get(i) - user1.getAverageRatings(), 2);\n\t\t\t\tvalue2 = value2 + Math.pow(user2Ratings.get(i) - user2.getAverageRatings(), 2);\n\t\t\t}\n\t\t}\n\t\tvalue1 = Math.sqrt(value1);\n\t\tvalue2 = Math.sqrt(value2);\n\t\tdenominator = value1 * value2;\n\n\t\treturn denominator;\n\t}", "title": "" }, { "docid": "7fa840ca2e1aaeaa34f36cd8adc0c56e", "score": "0.54627585", "text": "public double rating (){\n\t\t\treturn (double) (getshotForce() + this.bounce\n\t\t\t\t\t+ this.reflex + this.goalKick + this.catchSafety)/5;\n\t\t}", "title": "" }, { "docid": "f84f769f8753576e9c1997ac755fa513", "score": "0.5448965", "text": "public static double similarityUsers(int user1, int user2) throws SQLException{\n\t\tdouble sim = 0;\n\t\tint item = 0;\n\t\t\n\t\tif (user1 == user2){\n\t\t\tsim=1;\n\t\t} else {\n\t\t\tif (Datos.hasRated(user1) == false | Datos.hasRated(user2)== false){\n\t\t\t\tsim = 0;\n\t\t\t} else {\n\t\t\t\ttry{\n\t\t\t\t\tString selectStatement = \"SELECT DISTINCT id_item FROM cnttable\";\n\t\t\t\t\tPreparedStatement prepStmt = (PreparedStatement) con.prepareStatement(selectStatement);\t\n\t\t\t\t\tResultSet res = prepStmt.executeQuery();\n\t\t\t\t\twhile (res.next()){\n\t\t\t\t\t\titem = res.getInt(\"id_item\");\n\t\t\t\t\t\tsim += sumNum(item, user1, user2);\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\tlog.warning(\"Error\");\n\t\t\t\t}\n\t\t\t\tsim = sim/(varUser(user1)*varUser(user2));\n\t\t\t}\n\t\t}\n\t\tsim = (sim+Relations.sim(user1, user2))/2; // Ponderation between the similarity caused by the products´ ratings and the relations similarity\n\t\treturn sim;\n\t}", "title": "" }, { "docid": "ded71fd8639da1a52935116ad78e8164", "score": "0.54446065", "text": "public void setRating(int r_rating) {\n rating = r_rating;\n }", "title": "" }, { "docid": "de8557343140733d36931e064f2da68f", "score": "0.54275936", "text": "public double getAverageCommentsForUser() {\n return averageCommentsForUser;\n }", "title": "" }, { "docid": "eae8b9cdccc693b4ae586415dad440ea", "score": "0.5426325", "text": "public void calculateRating() {\r\n\t\t\r\n\t\tArrayList<Integer> weightedRatings = new ArrayList<Integer>();\r\n\t\t\r\n\t\tint sumWeights = 0;\r\n\t\tfloat r = 0;\r\n\t\tfloat rRound = 0;\r\n\r\n\t\tfor (IcoCriteria c : getActiveIcoCriteria()) {\r\n\t\t\tif (c.getRating() != 0) {\r\n\t\t\t\tint weightedRating = (c.getRating() * c.getCriteria().getWeightAsInt());\r\n\t\t\t\tint weight = c.getCriteria().getWeightAsInt();\r\n\t\t\t\tweightedRatings.add(weightedRating);\r\n\t\t\t\tsumWeights += weight; // => sums up all weight\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (sumWeights > 0) { // prevent division by 0\r\n\t\t\tfor (Integer weightedRating : weightedRatings) {\r\n\t\t\t\t/*\r\n\t\t\t\t * divides each rating with the sum of weights and sums up the result\r\n\t\t\t\t * mathematically the same would be to sum up the rating first an divide it afterwards of the sum of weights\r\n\t\t\t\t * one of the parameter must be float to get a float as a result\r\n\t\t\t\t */\r\n\t\t\t\tr += (weightedRating / (float)sumWeights); // => \r\n\t\t\t}\r\n\t\t}\r\n\t\trRound = RoundUtil.round(r, 2);\r\n\t\trating.set(rRound);\r\n\t}", "title": "" }, { "docid": "61eeca803d867d7c61226842f0e24e7a", "score": "0.5414219", "text": "public void fillRatings()\r\n\t{\r\n\t\tString sqlCommand=\"\";\r\n\t\tString name=Controller.getUserName();\r\n\t\t//====== Initialize ======//\r\n\t\tratings=new float[51];\r\n\t\tfor(int i=0;i<51;i++)\r\n\t\t{\r\n\t\t\tratings[i]=0.0f;\r\n\t\t}\r\n\t\t//====== Initialize ======//\r\n\t\ttry{\r\n\t\t\t//====== Open And Create Table ======//\r\n\t\t\tdb = openOrCreateDatabase(\"PuzzleDataBase\",MODE_PRIVATE, null);\r\n\t\t\tsqlCommand=\"CREATE TABLE IF NOT EXISTS UserRating (Stage INT(3),Rating VARCHAR,User VARCHAR );\";\r\n\t\t\tdb.execSQL(sqlCommand);\r\n\t\t\t//====== Open And Create Table ======//\r\n\t\r\n\t\t\t//======= Get Values From DB =======//\r\n\t\t\tsqlCommand=\"SELECT * FROM UserRating WHERE User='\"+name+\"';\";\r\n\t\t\tCursor iterator = db.rawQuery(sqlCommand, null);\r\n\t\t\tint stageIndex = iterator.getColumnIndex(\"Stage\");\r\n\t\t\tint ratingIndex = iterator.getColumnIndex(\"Rating\");\r\n\t\t\twhile (iterator.moveToNext()) \r\n\t\t\t{\r\n\t\t\t\tratings[iterator.getInt(stageIndex)]=Float.parseFloat(iterator.getString(ratingIndex));\r\n\t\t\t}\r\n\t\t\t//======= Get Values From DB =======//\r\n\t\t\titerator.close();\r\n\t\t\tdb.close();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tMyAlertBox mab=new MyAlertBox(this,\"5: \" + e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "62d0213730a1275245dc6f58d143fab9", "score": "0.5411797", "text": "public double getAverageRating() {\n double sum = 0;\n Collection<Rating> ratings = this.getRatings().values();\n for (Rating rating : ratings) {\n sum += rating.getAverageRating();\n }\n return sum / ratings.size();\n }", "title": "" }, { "docid": "ac69d65de22190ffb227669f74050e15", "score": "0.5407469", "text": "int globalRating() {\n\t\t return 0;\n\t }", "title": "" }, { "docid": "ec8c0352225b9c5fbebf718ff967fda1", "score": "0.5390143", "text": "public double getFitnessRating()\r\n {\r\n return fitnessRating;\r\n }", "title": "" }, { "docid": "05bf7a8f78ec45112956344fbb0008ca", "score": "0.5384711", "text": "@Override\n public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser) {\n int stars = (int) viewHolder.ratingBar.getRating();\n dataModel.setRate(stars);\n// viewHolder.ratingBar.setIsIndicator(true);\n\n\n }", "title": "" }, { "docid": "a517a4fa4b6604a11534652b9d06d013", "score": "0.53806555", "text": "@RequestMapping(\"/{movieId}\")\n public Rating getRating(@PathVariable(\"movieId\") String movieId){\n Rating rating = RatingTable.get(movieId);\n\n if(rating == null) return new Rating();\n return rating;\n //return new Rating(movieId, 4);\n }", "title": "" }, { "docid": "165895cc6753944bf0ec3ecbfd065d1a", "score": "0.5366067", "text": "@SuppressWarnings(\"WeakerAccess\")\n public int getRatingSum() {\n return ratingSum;\n }", "title": "" } ]
5d179fa61396b37058f607c4320dccc9
Swaps the top two elements of the value stack.
[ { "docid": "6d24017a61abaee9ab58127a26751b70", "score": "0.0", "text": "public boolean swap() {\n check();\n context.getValueStack().swap();\n return true;\n }", "title": "" } ]
[ { "docid": "92c9202ae5c9b5d324a37507b575871d", "score": "0.7382179", "text": "public void swap() {\n\t\tint a = pop();\n\t\tint b = pop();\n\t\tpush(a);\n\t\tpush(b);\n\t}", "title": "" }, { "docid": "4483c649037286f64440eaedc806a64c", "score": "0.6907125", "text": "public void swap ()\n\t\tthrows EmptyStackException;", "title": "" }, { "docid": "40c2879611ed88dae4ef4b31bbe7488e", "score": "0.6821707", "text": "public void swap()\r\n {\r\n stack=queue;\r\n queue=new Stack<>();\r\n }", "title": "" }, { "docid": "9adb36a67cd1fcbb0cc07aeb752efe13", "score": "0.6628314", "text": "private void swap(int e1, int e2) {\n E temp = heap.get(e1);\n // Assign parent value to new element\n heap.set(e1, heap.get(e2));\n // Assign temporary value to new element\n heap.set(e2, temp);\n }", "title": "" }, { "docid": "e5982fe6a509e5adea8dfa2a4d5a23c5", "score": "0.6589617", "text": "private void exchangeStack() {\n int temp = regL.get();\n Register memByte = ram.address(stackPointer);\n regL.set(memByte.get());\n memByte.set(temp);\n\n temp = regH.get();\n memByte = ram.address(stackPointer, 1);\n regH.set(memByte.get());\n memByte.set(temp);\n }", "title": "" }, { "docid": "6c6848c3128895d2e07f68bc9ba9615c", "score": "0.654162", "text": "private void shiftStacks() {\n\t\tif(stackOldest.isEmpty()) {\n\t\t\twhile(!stackNewest.isEmpty()) { \n\t\t\t\tstackOldest.push(stackNewest.pop());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7ea4528944164ea2b9e6bf060441adef", "score": "0.65032953", "text": "private void shiftStacks(){\n if(stackOldest.isEmpty()){\n while (!stackNewest.isEmpty()){\n stackOldest.push(stackNewest.pop());\n }\n }\n }", "title": "" }, { "docid": "4376f836f57a4bae17372d5e3e76f6d2", "score": "0.63973343", "text": "void push2(int x, TwoStack sq)\r\n {\r\n sq.top2=sq.top2-1;\r\n sq.arr[sq.top2]=x;\r\n }", "title": "" }, { "docid": "e52f608dcffd44e6ae7ae49f875a7266", "score": "0.6373158", "text": "private void swap( int pos1, int pos2 ) \n {\n _heap.set( pos1, _heap.set( pos2, _heap.get(pos1) ) );\n }", "title": "" }, { "docid": "77b7305b2635f82acd5f55d07e121e65", "score": "0.63492036", "text": "protected void _twoOver() {\n stack.push(stack.peek(3));\n stack.push(stack.peek(3));\n }", "title": "" }, { "docid": "ec54a3c7001f10de6e0aeedf0e15b4a6", "score": "0.63095695", "text": "private void swap(int ind1, int ind2) {\n\t\tswapKeyIndices(heapArr.getAt(ind1), heapArr.getAt(ind2));\n\t\tT temp = heapArr.getAt(ind1);\n\t\theapArr.replaceAt(ind1, heapArr.getAt(ind2));\n\t\theapArr.replaceAt(ind2, temp);\n\t}", "title": "" }, { "docid": "b653a4da33a58c958c22ac0786bf6afc", "score": "0.63035244", "text": "private void swap(int a, int b){\n E temp = heapArray[a];\n heapArray[a] = heapArray[b];\n heapArray[b] = temp;\n }", "title": "" }, { "docid": "5fbe83fc30e6eea42c3014f496250851", "score": "0.6282827", "text": "private void swap(){\n tmp = r0;\n r0 = r1;\n r1 = tmp;\n }", "title": "" }, { "docid": "3bbe93fe10b258450842ee5aae20102f", "score": "0.6204977", "text": "private void swap(int a, int b) {\r\n\t\tint temporary = base[a];\r\n\t\tbase[a] = base[b];\r\n\t\tbase[b] = temporary;\r\n\t}", "title": "" }, { "docid": "3c837a1f7cc579e889628c29e7cdcd48", "score": "0.6188826", "text": "public void swap() {\n int tmp;\n tmp = num1;\n num1 = num2;\n num2 = tmp;\n }", "title": "" }, { "docid": "407a30f01fae1e04c4788a9b0f35816d", "score": "0.6143213", "text": "private void resize(){\n\t\tif (topIndex == 0){\n\t\t\t// Larger\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tT[] tmpStack = (T[]) new Object[getCapacity() * 2];\n\t\t\tSystem.arraycopy(stack, 0, tmpStack, getCapacity(), getCapacity());\n\t\t\tstack = tmpStack;\n\t\t\ttopIndex = getCapacity() / 2;\n\t\t}\n\t\t\n\t\telse if (topIndex >= getCapacity() / 2 && getCapacity() / 2 >= MINIMUM_SIZE){\n\t\t\t// Smaller\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tT[] tmpStack = (T[]) new Object[getCapacity() / 2];\n\t\t\tSystem.arraycopy(stack, getCapacity() / 2, tmpStack, 0, getCapacity() / 2);\n\t\t\tstack = tmpStack;\n\t\t\ttopIndex = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "18ee41d0af3525db663659d60dd64854", "score": "0.6086384", "text": "private void randomSwap() {\n int randomIndex = StdRandom.uniform(this.arrayN);\n int lastIndex = this.arrayN - 1;\n Item oldLastItem = this.stackArray[lastIndex];\n this.stackArray[lastIndex] = this.stackArray[randomIndex];\n this.stackArray[randomIndex] = oldLastItem;\n }", "title": "" }, { "docid": "3dfd7435f618d7f4e34f8b15b94913b7", "score": "0.6085296", "text": "private void swap(int i, int j) {\n\t\tint temp = this.heap.get(i);\n\t\tthis.heap.set(i, this.heap.get(j));\n\t\tthis.heap.set(j, temp);\n\t}", "title": "" }, { "docid": "9f351ac4713db48f95eba11648654a37", "score": "0.60650206", "text": "private void swap(int index1, int index2) {\n T node1 = heap.get(index1);\n T node2 = heap.get(index2);\n\n heap.set(index1, node2);\n heap.set(index2, node1);\n }", "title": "" }, { "docid": "e84a257a645e0ede6879f13d720906f2", "score": "0.60507673", "text": "private void swap(int x, int y) {\n\t\t// ADD CODE\n\t\tComparable temp = minheap[x];\n\t\tminheap[x] = minheap[y];\n\t\tminheap[y] = temp;\n\t}", "title": "" }, { "docid": "695c03dc651817d4c7d567c34addb54e", "score": "0.60487264", "text": "private static <T extends Comparable<T>> void swap(T[] data, int element1, int element2)\n\t{\n\t\tT temp = data[element2];\n\t\tdata[element2] = data[element1];\n\t\tdata[element1] = temp;\n\t}", "title": "" }, { "docid": "a10ffb53abd4cb537740114a4cffc339", "score": "0.6047861", "text": "private void bubbleUp() {\n\t\tint currIndex = lastIndex;\n\t\twhile(currIndex > 0 && heap[(currIndex - 1)/2].compareTo(heap[currIndex]) <0) {\n\t\t\t//Swap\n\t\t\tT temp = heap[(currIndex - 1)/2];\n\t\t\theap[(currIndex - 1)/2] = heap[currIndex];\n\t\t\theap[currIndex] = temp;\n\t\t\tcurrIndex = (currIndex - 1)/2;\n\t\t}\n\t}", "title": "" }, { "docid": "9d35d9f54c9f1b12771262f87ddea28f", "score": "0.6035436", "text": "private void swapElements(ArrayList<Integer> array, int p1, int p2) {\r\n\t\t\r\n\t\tint temp = array.get(p1);\r\n\t\t\r\n\t\tarray.set(p1, array.get(p2));\r\n\t\t\r\n\t\tarray.set(p2, temp );\r\n\t\r\n\t}", "title": "" }, { "docid": "922411a0d4cea3a418ee227afa5d6c78", "score": "0.6007365", "text": "private void swap(int i, int j) {\n\t\tint temp = heap[i];\n\t\theap[i] = heap[j];\n\t\theap[j] = temp;\n\n\t}", "title": "" }, { "docid": "1a881b26ffad56bc209fd1485e512379", "score": "0.59829414", "text": "private void swap(int a, int b) {\r\n T tmp = array[a];\r\n array[a] = array[b];\r\n array[b] = tmp;\r\n }", "title": "" }, { "docid": "84faed4faaf4de79e5eafaadf847de2c", "score": "0.5981448", "text": "private static void swap(int[] array, int left, int right) {\n int tmp = array[right];\n array[right] = array[left];\n array[left] = tmp;\n}", "title": "" }, { "docid": "6be52d327ad20ff917b328061a57c1d6", "score": "0.5959078", "text": "protected void _minus() {\n int n2 = stack.iPop();\n int n1 = stack.iPop();\n stack.push(n1 - n2);\n }", "title": "" }, { "docid": "602aec5e2f8586bf6ec38cb007abb704", "score": "0.5958496", "text": "private void swap(int[] data, int index1, int index2) {\r\n\t\tint temp = data[index1];\r\n\t\tdata[index1] = data[index2];\r\n\t\tdata[index2] = temp;\r\n\t}", "title": "" }, { "docid": "a84d2b4e7b0b4262cf4299c36a83458e", "score": "0.5944608", "text": "private static void swap(int[] nums, int a, int b) {\n int temp = nums[a];\n nums[a] = nums[b];\n nums[b] = temp;\n }", "title": "" }, { "docid": "8d0c1bf265303f5ab2fdf258446116d3", "score": "0.5940967", "text": "void swap(int* a, int* b) \n{ \n\tint t = *a; \n\t*a = *b; \n\t*b = t; \n}", "title": "" }, { "docid": "c5b98cdb7a576189a52e4fc24843be21", "score": "0.5940078", "text": "private void swap(int a, int b) {\n int temp = data[a];\n data[a] = data[b];\n data[b] = temp;\n }", "title": "" }, { "docid": "2ce453a66cea5d8d97998bf66f4ebd11", "score": "0.5934002", "text": "void\nswap(\nint\n*x, \nint\n*y) \n{ \n\nint\ntemp = *x; \n\n*x = *y; \n\n*y = temp; \n}", "title": "" }, { "docid": "afda5f8a8ac6b4fa0bf6f5c1a66a4aab", "score": "0.5930504", "text": "private void swap(ListNode n1,ListNode n2){\n int tmp = n1.val;\n n1.val = n2.val;\n n2.val = tmp;\n }", "title": "" }, { "docid": "4c456ab93623973c6ffb2041fc7d9aff", "score": "0.59286654", "text": "private void swap(int i, int j) {\n\t\t\tint index1 = this.pq[i];\n\t\t\tint index2 = this.pq[j];\n\t\t\tint swap = this.pq[i];\n\t\t\tthis.pq[i] = this.pq[j];\n\t\t\tthis.pq[j] = swap;\n\t\t\tswap = this.qp[index1];\n\t\t\tthis.qp[index1] = this.qp[index2];\n\t\t\tthis.qp[index2] = swap;\n\t\t}", "title": "" }, { "docid": "38d9079eda1ff1f2f393456cfcf856c0", "score": "0.59257346", "text": "private void swap(int a, int b) {\n Item temp = pq[a];\n pq[a] = pq[b];\n pq[b] = temp;\n }", "title": "" }, { "docid": "49d59672631adfba7ffd9f2ce0d2b816", "score": "0.59245116", "text": "private static void swap(int[] lst, int i, int j){\n\t\tint temp = lst[j];\n\t\tlst[j] = lst[i];\n\t\tlst[i] = temp;\n\t}", "title": "" }, { "docid": "16a3ef9f94d27a16da4e9901ca011980", "score": "0.59213287", "text": "private static void swap(SmartForest[] x, int a, int b) {\r\n\t\tSmartForest t = x[a];\r\n\t\tx[a] = x[b];\r\n\t\tx[b] = t;\r\n\t}", "title": "" }, { "docid": "6444c158985c9f4299da0b46078df55d", "score": "0.59122896", "text": "public void pop() {\n Stack<Integer> secondStack = new Stack<>();\n while(myStack.isEmpty()){\n \tsecondStack.push(myStack.pop());\n }\n secondStack.pop();\n while(secondStack.isEmpty()){\n \tmyStack.push(secondStack.pop());\n }\n }", "title": "" }, { "docid": "f913fb49eb653a1239938788ac63b6bc", "score": "0.58995825", "text": "public void shift(){\n\t\tif (stackOut.isEmpty()) { \n\t\t\twhile (!stackIn.isEmpty()) {\n\t\t\t\tstackOut.push(stackIn.pop());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "205eaa9e6d7c489f16da96c5d78810c1", "score": "0.58991396", "text": "public void swap() {\n\n }", "title": "" }, { "docid": "e27c62b07591a17ba0af30da68a48dd9", "score": "0.58928955", "text": "private void mergeElementStack(com.google.search.now.ui.piet.ElementsProto.ElementStack value) {\n if (elementsCase_ == 24 &&\n elements_ != com.google.search.now.ui.piet.ElementsProto.ElementStack.getDefaultInstance()) {\n elements_ = com.google.search.now.ui.piet.ElementsProto.ElementStack.newBuilder((com.google.search.now.ui.piet.ElementsProto.ElementStack) elements_)\n .mergeFrom(value).buildPartial();\n } else {\n elements_ = value;\n }\n elementsCase_ = 24;\n }", "title": "" }, { "docid": "3680adee9881d870fd8756d977a7127a", "score": "0.5886368", "text": "public static Stack<Integer> sortStack2(Stack<Integer> s){\n\t\tStack<Integer> res = new Stack<Integer>();\n\t\twhile(!s.isEmpty()){\n\t\t\tint temp = s.pop();\n\t\t\twhile(!res.empty() && res.peek() > temp){\n\t\t\t\ts.push(res.pop());\n\t\t\t}\n\t\t\tres.push(temp);\n\t\t}\n\t\treturn res;\n\t}", "title": "" }, { "docid": "bd7d551eed7699ce376f0b9c82edccdd", "score": "0.5883358", "text": "public static void swap(MyVector v, int first, int second){\r\n\r\n Object temp = v.elementAt(first);\r\n v.replace(first, v.elementAt(second));\r\n v.replace(second, temp);\r\n }", "title": "" }, { "docid": "9a8fd405cc35136d6bd979a38158dfe8", "score": "0.5881057", "text": "private static void swap(int[] arr, int i1, int i2) {\n\t\tint temp = arr[i1];\n\t\tarr[i1] = arr[i2];\n\t\tarr[i2] = temp;\n\t}", "title": "" }, { "docid": "2620bb65f04c9f2fc8620250945e8d1c", "score": "0.5877276", "text": "default void swap(P[] array, int first, int second) {\n P temp = array[first];\n array[first] = array[second];\n array[second] = temp;\n }", "title": "" }, { "docid": "c89fbe12b616da2252f499acced9ea75", "score": "0.5874101", "text": "private void swap(int first, int seconds) {\n int tmp;\n tmp = HeapArray[first];\n HeapArray[first] = HeapArray[seconds];\n HeapArray[seconds] = tmp;\n }", "title": "" }, { "docid": "dfb02ed1ff3c36ba5153ca235a56e2eb", "score": "0.5872647", "text": "public static void swapFirstTwoInArray(int [] array){\n int temp = array[0];\n array[0] = array[1];\n array[1] =temp;\n \n \n }", "title": "" }, { "docid": "90d4deba650c04bc522dd899ebb27789", "score": "0.58645153", "text": "private void swapFirstTwoTiles() {\r\n boardManager.getBoard().swapTiles(0, 1);\r\n }", "title": "" }, { "docid": "fbadf1392a8f8074ae6c9cd0a18fb5e0", "score": "0.58616644", "text": "void push1(int x, TwoStack sq)\r\n {\r\n sq.top1=sq.top1+1;\r\n sq.arr[sq.top1]=x;\r\n }", "title": "" }, { "docid": "33f35d86d701e6719f8d0c8f55ff877e", "score": "0.5860853", "text": "private void swap(int i, int j) {\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }", "title": "" }, { "docid": "a1e10c0c1877b9959e55125ae8758a0d", "score": "0.5852432", "text": "private static void swap(int x[], int i1, int i2) {\n int t = x[i1];\n x[i1] = x[i2];\n x[i2] = t;\n }", "title": "" }, { "docid": "383f093a12f6ad34ee1e3b22d3a2364f", "score": "0.5843886", "text": "static void reverseStack(Stack<Integer> stk) {\n\tArrayDeque<Integer> que = new ArrayDeque<Integer>();\n\twhile (!stk.isEmpty()) {\n\t\tque.add(stk.peek());\n\t\tstk.pop();\n\t}\n\twhile (!que.isEmpty()) {\n\t\tstk.push(que.peek());\n\t\tque.remove();\n\t}\n}", "title": "" }, { "docid": "f4242169e5bd5647444c5d735d15579f", "score": "0.58274543", "text": "private void swapValues(final T[] array,\n\t\t\tfinal int i, final int j) {\n\t\tT temp = array[i];\n\t\tarray[i] = array[j];\n\t\tarray[j] = temp;\n\t}", "title": "" }, { "docid": "c6d49459ec19725846b2dc38e7e8cadf", "score": "0.58209693", "text": "private void swap(int[] data, int index1, int index2){\n\tif(index1 != index2){\n\t\tint tmp = data[index1];\n\t\tdata[index1] = data[index2];\n\t\tdata[index2] = tmp;\n\t}\n}", "title": "" }, { "docid": "0d1903dafb3189690dbb1d502f59bcf5", "score": "0.58139396", "text": "private static void swap(int[] array, int left, int right) {\n\t\tint tmp = array[left];\n\t\tarray[left] = array[right];\n\t\tarray[right] = tmp;\n\t}", "title": "" }, { "docid": "6e1a51d08e487a22fb6f77aa3945f5c2", "score": "0.5813932", "text": "public void swap(Integer i, Integer j) {\n Integer temp = new Integer(i);\n i = j;\n j = temp;\n }", "title": "" }, { "docid": "ba2fea72a40111db50c78b13b886eab7", "score": "0.581367", "text": "int pop2(TwoStack sq)\r\n {\r\n if(sq.top2>=100){\r\n return -1;\r\n }else{\r\n int v=sq.arr[sq.top2];\r\n sq.top2=sq.top2+1;\r\n return v;\r\n }\r\n }", "title": "" }, { "docid": "5274f7b77d2d84876ebfeec707561c00", "score": "0.5802093", "text": "private void swap(int current, int minIndex) {\n\t\tT temp;\r\n\t\ttemp = values[current];\r\n\t\tvalues[current] = values[minIndex];\r\n\t\tvalues[minIndex] = temp;\r\n\t}", "title": "" }, { "docid": "2d1268fb6a792737a2e9704f4324175e", "score": "0.57888263", "text": "public static void main(String[] args) {\nint a = 2;\nint b =5;\nswap(a,b);\nSystem.out.println(a + \" \" + b);\n\t}", "title": "" }, { "docid": "f266f686b9d35f02ebb05cda2ba1a472", "score": "0.57808965", "text": "private static void swap(int[] data, int index1, int index2) {\n if (index1 != index2) {\n int tmp = data[index1];\n data[index1] = data[index2];\n data[index2] = tmp;\n }\n }", "title": "" }, { "docid": "116f19a2171a627a73a4cd8dfa8588a9", "score": "0.5777461", "text": "private static void exchange(int i, int j, Comparable[] binaryHeap) {\r\n\t\tComparable element = binaryHeap[i-1];\r\n\r\n\t\tbinaryHeap[i-1] = binaryHeap[j-1];\r\n\t\tbinaryHeap[j-1] = element;\r\n\t}", "title": "" }, { "docid": "76de746e028f3becd3d24886a310e11a", "score": "0.5775951", "text": "private int[][] swap(int i, int j, int a, int b) {\n int[][] swapTiles = Board.deepCopyIntMatrix(tiles);\n int tempVal = swapTiles[i][j];\n swapTiles[i][j] = swapTiles[a][b];\n swapTiles[a][b] = tempVal;\n return swapTiles;\n }", "title": "" }, { "docid": "67efc562d7c8b906ccc15c49f1ca4daf", "score": "0.5768401", "text": "private void swap(int pos1, int pos2) {\n // Make sure the indices are valid.\n if (pos1 >= this.cardsLeft() || pos2 >= this.cardsLeft()) {\n return;\n } else {\n Card temp = deck.get(pos1);\n\n // Store the element at pos2 at pos1.\n deck.set(pos1, deck.get(pos2));\n\n // Store the element at pos1 at pos2.\n deck.set(pos2, temp);\n }\n }", "title": "" }, { "docid": "e92c4c5145c830fc793f2ee50eaf9582", "score": "0.5765465", "text": "public void swaps(int k,int j,List<SingleCard> temp) {\n\t\tchar temp1;\n\t\tint temp2;\n\t\t//ocard=k tcard=j\n\t\ttemp1=temp.get(k).getaCard();\n\t\ttemp.get(k).setaCard(temp.get(j).getaCard());\n\t\ttemp.get(j).setaCard(temp1);\n\t\t\n\t\ttemp2=temp.get(k).getCardColor();\n\t\ttemp.get(k).setCardColor(temp.get(j).getCardColor());\n\t\ttemp.get(j).setCardColor(temp2);\n\t}", "title": "" }, { "docid": "8b52d6489e47fe026236f1f3434ec211", "score": "0.57629555", "text": "private static void swap(int[] arr, int a, int b) {\n int temp = arr[a];\n arr[a] = arr[b];\n arr[b] = temp;\n }", "title": "" }, { "docid": "ab72e8a8103163ae49b9275428ce9f1e", "score": "0.57585573", "text": "public void swap (int segIndex1, int segIndex2);", "title": "" }, { "docid": "a71ac0c444d43b6f06e3a80591962623", "score": "0.5757746", "text": "public void swap(int a, int b){\n int temp = array[a];\n array[a] = array[b];\n array[b] = temp;\n }", "title": "" }, { "docid": "c23b3e54bd4da2fac2820f227b61aa13", "score": "0.5753215", "text": "public void swap(CallbyValueandCallbyReference t) {\r\n\t\tint temp;\r\n\t\ttemp = t.p;//temp = 11\r\n\t\tt.p = t.q;// t.p = 15\r\n\t\tt.q = temp;//t.q = 11\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3360b8af41c3c1e6f5c154a1262ffeab", "score": "0.575145", "text": "private void swap() {\n\n int[] temp = widthsBackup;\n widthsBackup = widths;\n widths = temp;\n\n temp = heightsBackup;\n heightsBackup = heights;\n heights = temp;\n\n boolean[][] gridtemp = gridBackup;\n gridBackup = grid;\n grid = gridtemp;\n\n recomputeMaxheight();\n }", "title": "" }, { "docid": "578f63bcc04869e002c7a067de04c03a", "score": "0.5750383", "text": "private void swap(ArrayList<Element<E, P>> array, int a, int b) {\n\t\tElement<E, P> tem = array.get(a);\n\t\tarray.set(a, array.get(b));\n\t\tarray.set(b, tem);\n\t\tmap.replace(array.get(a).value(), a);\n\t\tmap.replace(array.get(b).value(), b);\n\t}", "title": "" }, { "docid": "f258c1f07f4e69eba5f853720935f92c", "score": "0.57493573", "text": "public void swap() {\n\t\tpoms[0].translate(0, Pom.HEIGHT);\n\t\tpoms[1].translate(0, -1 * Pom.HEIGHT);\n\t\t\n\t\tPom temp = poms[0];\n\t\tpoms[0] = poms[1];\n\t\tpoms[1] = temp;\n\t}", "title": "" }, { "docid": "6620f2bcc43c677c6dfc18995df8cebf", "score": "0.5749344", "text": "private static void swap(int [] array, int ind1, int ind2)\n {\n int temp = array[ind1];\n array[ind1] = array[ind2];\n array[ind2] = temp;\n }", "title": "" }, { "docid": "7fa69a6265b330524ee33f0083d342b0", "score": "0.5747512", "text": "private static void swap(int[] arr, int i1, int i2) {\n int tmp = arr[i1];\n arr[i1] = arr[i2];\n arr[i2] = tmp;\n }", "title": "" }, { "docid": "ea3dd7b482d9e70a73fdc9b46da45d18", "score": "0.57422554", "text": "private void exchangeRegisters() {\n final int temp = regPairH.get();\n regPairH.set(regPairD.get());\n regPairD.set(temp);\n }", "title": "" }, { "docid": "f5b734ea6c5c36b56d75318b41022510", "score": "0.5740072", "text": "public void swapUp() {\n\t\tint temp = row - 1;\n\t\tint value = board.get(temp).get(col).getValue();\n\t\tboard.get(temp).get(col).setValue(0);\n\t\tboard.get(row).get(col).setValue(value);\n\t\tprevAction = \"up\";\n\t}", "title": "" }, { "docid": "002cfa507b09b3bae11c5e2f6256afde", "score": "0.5737846", "text": "static void swap(ArrayList<Integer> list, int a, int b)\n {\n Integer tmp;\n tmp = list.get(a);\n list.set(a , list.get(b));\n list.set(b, tmp);\n }", "title": "" }, { "docid": "91a6e464acfe61730897cf7f297593a4", "score": "0.57343966", "text": "private void shrink() {\n\t\t\tint length=top+1;\n\t\t\tif(length<=MINCAPACITY || top<<2 >=length) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlength=length+(top<<1);\t\t//Still means shrink to at 1/2 or less of the heap\n\t\t\tif(top<=MINCAPACITY) length=MINCAPACITY;\n\t\t\tint []newStack=new int[length];\n\t\t\tSystem.arraycopy(stackRep, 0, newStack, 0, length);\n\t\t\tstackRep=newStack;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "5d61380e1720a6027e65c96cfc7cca76", "score": "0.57303345", "text": "private void swap(int loc1, int loc2){\n Pair<T, Integer> temp = pq.get(loc1);\n pq.set(loc1, pq.get(loc2));\n pq.set(loc2, temp);\n }", "title": "" }, { "docid": "537591ebd44d5f9e219dec8054382507", "score": "0.5728702", "text": "private static final void swap (final List a,\n final int i,\n final int j) {\n final Object ai = a.get(i); \n a.set(i,a.get(j)); \n a.set(j,ai); }", "title": "" }, { "docid": "1da0a82000d933bf81110d919d15cf34", "score": "0.5728184", "text": "public void swap(int a, int b) {\r\n\t\tint temp = main_array[a];\r\n\t\tmain_array[a] = main_array[b]; \r\n\t\tmain_array[b] = temp;\r\n\t}", "title": "" }, { "docid": "c1fedcf7014188b112f6cfdee03726a5", "score": "0.57260764", "text": "private void swap(int a, int b) {\n // Swap values in heap array\n T tmpa = this.heap[a];\n T tmpb = this.heap[b];\n this.heap[a] = this.heap[b];\n this.heap[b] = tmpa;\n // Swap indices in dictionary\n this.indices.put(tmpa, b);\n this.indices.put(tmpb, a);\n }", "title": "" }, { "docid": "ef239f70dcdbaa34e2594d3533663f0f", "score": "0.5718259", "text": "private void swap(Card card1, Card card2){\n int i = this.indexOf(card1);\n int j = this.indexOf(card2);\n this.set(i, card2); this.set(j, card1);\n }", "title": "" }, { "docid": "efa915c2ef08e5a4405ca6f62cd4cfe2", "score": "0.57165045", "text": "private void swap(int[] nums, int i, int j) {\n int temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n }", "title": "" }, { "docid": "13aa79c99cebe085fea1bcb0ccf8927b", "score": "0.57109654", "text": "public void push(int value) {\n\t\tif(top==arr.length-1) {\n\t\t\tint[] tmp=arr;\n\t\t\tarr=new int[tmp.length*2];\n\t\t\tSystem.arraycopy(tmp,0,arr,0,tmp.length);\n\t\t}\n\t\tarr[++top]=value;\n\t}", "title": "" }, { "docid": "038b2991fe3790fe5af37897e2744190", "score": "0.5699322", "text": "protected void _cmoveUp() {\n int count = stack.pop();\n int addr2 = stack.pop();\n int addr1 = stack.pop();\n for (int n = count - 1; n >= 0; n--) {\n cStore(addr2 + n, cFetch(addr1 + n));\n }\n }", "title": "" }, { "docid": "a828bfef0f8101863f295c08ee7d7764", "score": "0.56979656", "text": "private static void swap(int i, int j) {\n\t\t\n\t\tint temp=Array[i];\n\t\tArray[i]=Array[j];\n\t\tArray[j]=temp;\n\t\t\n\t}", "title": "" }, { "docid": "df3461f8280842aa8d0b70d3f0750e44", "score": "0.5696556", "text": "private static void swap(int[] arr, int i, int j) {\n\t\tint temp = arr[i];\n\t\tarr[i] = arr[j];\n\t\tarr[j] = temp;\n\t}", "title": "" }, { "docid": "9ddda46de4d551b239967b6f62df6969", "score": "0.56955814", "text": "@NotNull\n default R $swap() {\n return $constructor().apply($arg2(), $arg1());\n }", "title": "" }, { "docid": "a133b85f587dca3a56c0af5ad07ea7eb", "score": "0.56909895", "text": "static void swap(int[] arr, int a, int b) {\n int temp = arr[a];\n arr[a] = arr[b];\n arr[b] = temp;\n }", "title": "" }, { "docid": "a4b1f3bfdbc7c678fc7872c8ba06826f", "score": "0.569088", "text": "private static void swap(int[] L, int i1, int i2) {\n\t\tint temp = L[i1];\n\t\tL[i1] = L[i2];\n\t\tL[i2] = temp;\n\t}", "title": "" }, { "docid": "8524d20eeee5e1886d3c598353b3ce37", "score": "0.56884927", "text": "private void swap(int i, int j) {\n int tmp = arr[i];\n arr[i] = arr[j];\n arr[j] = tmp;\n }", "title": "" }, { "docid": "89c9692a5ff261640de656290a5a530c", "score": "0.56848836", "text": "private static void swap(int[] arr, int i, int j) {\n\t\tint temp = arr[i];\n\t\tarr[i] = arr[j];\n\t\tarr[j] = temp;\n\t\t\n\t}", "title": "" }, { "docid": "0501f3823d041237487ef647e4730d50", "score": "0.56739974", "text": "public void swap(int i, int j){\n Node temp = heap[i]; \n \n heap[i] = heap[j]; \n index[heap[i].getvalue()] = i; \n \n heap[j] = temp;\n index[heap[j].getvalue()] = j; \n }", "title": "" }, { "docid": "4471d5e5791fa4d8c5724a90023fa632", "score": "0.5660859", "text": "private void swap(E[] a, int index1, int index2)\n {\n E temp = a[index1];\n a[index1] = a[index2];\n a[index2] = temp;\n }", "title": "" }, { "docid": "09d54e210adbe96a39d4bb04f85e58c4", "score": "0.56571746", "text": "@Override\n\tvoid push(int val)\n\t{\n\t\tif (this.size() == this.stackArray.length)\n\t\t{\n\t\t\t//if we are at full capacity of our stack\n\t\t\t//Just double the size \n\t\t\t//\n\t\t\tint tempArray[] = new int[this.size()*2];\n\t\t\tint index=0;\n\t\t\tfor(int i : this.stackArray)\n\t\t\t{\n\t\t\t\ttempArray[index]=i;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\tthis.stackArray=tempArray;\n\t\t}\n\t\tsuper.push(val);\n\t\treturn;\n\t\t\n\t}", "title": "" }, { "docid": "d31ca1b21cd65de8dc4cb74b23782fc4", "score": "0.565453", "text": "public void swapDown() {\n\t\tint temp = row + 1;\n\t\tint value = board.get(temp).get(col).getValue();\n\t\tboard.get(temp).get(col).setValue(0);\n\t\tboard.get(row).get(col).setValue(value);\n\t\tprevAction = \"down\";\n\t}", "title": "" }, { "docid": "6bbfefd433f3148fe65597a34752611d", "score": "0.5653758", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic void pushBack(T value){\n\t\t//Resize code\n\t\tif(size() >= capacity()){\n\t\t\tT[] tmp = (T[])new Object[capacity()*2];\n\t\t\tfor(int i = 0; i < size(); i++){\n\t\t\t\ttmp[i] = content[i];\n\t\t\t}\n\t\t\tcontent = tmp;\n\t\t}\n\t\t//push code\n\t\tcontent[size++] = value;\n\t}", "title": "" }, { "docid": "700479bcb50161ba467e3682589e6f89", "score": "0.5652166", "text": "void\nswap(\nint\n*x, \nint\n*y);", "title": "" }, { "docid": "cc5331a8b834d49f3dc4e00869a5fc2b", "score": "0.5648787", "text": "private void swap(int i, int j) {\n\t\tNode entryi = this.heap.get(i);\n\t\tNode entryj = this.heap.get(j);\n\t\t\n\t\tthis.heap.set(i, entryj);\n\t\tthis.heap.set(j, entryi);\n\t\tthis.index.put(entryi.value, j);\n\t\tthis.index.put(entryj.value, i);\n\t}", "title": "" }, { "docid": "bc91503dbd662d4dc78cc150d2341054", "score": "0.564647", "text": "private void swap(int[] array, int a, int b) {\n int tmp = array[a];\n array[a] = array[b];\n array[b] = tmp;\n }", "title": "" }, { "docid": "debf175669cab61582ae2e55e0c1b153", "score": "0.56395185", "text": "private static <T> List<T> swap(final List<T> $, final int i1, final int i2) {\n if (i1 < $.size() && i2 < $.size()) {\n final T t = $.get(i1);\n lisp.replace($, $.get(i2), i1);\n lisp.replace($, t, i2);\n }\n return $;\n }", "title": "" } ]
602905c175c3f030abb0b04626941c5c
Fetching the download id received with the broadcast
[ { "docid": "ea1d72dcd76bc3f77142ee295e077843", "score": "0.7217534", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n long id = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, -1);\n //Checking if the received broadcast is for our enqueued download by matching download id\n if (downloadID == id) {\n Toast.makeText(MainActivity.this, \"Download Completed\", Toast.LENGTH_SHORT).show();\n }\n }", "title": "" } ]
[ { "docid": "902b9148cbcd89c1d69fba0528183236", "score": "0.7135687", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n long id = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, -1);\n //Checking if the received broadcast is for our enqueued download by matching download id\n if (downloadID == id) {\n Toast.makeText(MainActivity.this,\n \"Download Completed\", Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "e6dee4727af494c9e0469b9d8a7ee591", "score": "0.6378422", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n long referenceId = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, -1);\n String action = intent.getAction();\n Log.v(\"MY_APP\",\"!!! onReceive !!!\");\n\n Log.d(\"actionCli\",referenceId+\"\");\n //startActivity(new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS));\n\n Log.i(\"actionCli\",intent.getAction());\n Log.i(\"actionCli\",DownloadManager.ACTION_NOTIFICATION_CLICKED);\n if (DownloadManager.ACTION_NOTIFICATION_CLICKED.equals(action))\n {\n /*Intent i = new Intent(context,DownloadManager.class);\n i.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK);\n i.setAction(DownloadManager.ACTION_VIEW_DOWNLOADS);\n context.startActivity(i);*/\n Intent dm = new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS);\n dm.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(dm);\n startActivity(new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS));\n }\n\n\n }", "title": "" }, { "docid": "588544b6df65485d1741dfec2c41dbf6", "score": "0.63499385", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n long id = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, -1);\n //Checking if the received broadcast is for our enqueued download by matching download id\n if ((id <= -1) || (mDownloadId != id) || (mDownloadManager == null)) {\n return;\n }\n Log.d(\"Web Update\", \"Receive: \" + mDownloadId);\n // query download status\n //status = MyContentUtility.getDownloadStatus(activity, mDownloadId);\n Uri uri = mDownloadManager.getUriForDownloadedFile(mDownloadId);\n // Format: content://downloads/all_downloads/63\n Log.d(\"Web Update\", \"Uri: \" + uri);\n // Note: this could be automatically renamed if the file already exists, e.g. assets-1.zip instead of assets.zip\n if (uri == null) {\n return;\n }\n //MyContentUtility.showContent(activity, uri);\n if (!mDownloadExtract) {\n return;\n }\n // unzip\n //Log.d(\"Web Update\", mDownloadFile.getAbsolutePath());\n try {\n InputStream inputStream = activity.getContentResolver().openInputStream(uri);\n File targetDirectory = activity.getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n String[] skipNames = { MySettingsRepository.fileName };\n MyAssetUtility.unzipStream(inputStream, targetDirectory, skipNames);\n if (inputStream != null)\n inputStream.close();\n // delete entry in Downloads to avoid multiple duplicates there\n //activity.getContentResolver().delete(uri,null,null);\n } catch (Exception e) {\n Log.e(\"Web Update\", e.toString());\n }\n }", "title": "" }, { "docid": "84639223a7ccb32b43de95d78023e874", "score": "0.60667926", "text": "int getDwRecvId();", "title": "" }, { "docid": "8f187093b72a089d4d911a6129e116d8", "score": "0.599267", "text": "public void onDownloadComplete(String downloadId);", "title": "" }, { "docid": "75f0e2156cb460fc58be2982588b6304", "score": "0.5990007", "text": "long getRecvid();", "title": "" }, { "docid": "a34b580fce74d0c8ebb97b76edf2270a", "score": "0.5959566", "text": "private void setReceiver() {\n activity.startDownloadReceiver(new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n //Fetching the download id received with the broadcast\n long id = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, -1);\n //Checking if the received broadcast is for our enqueued download by matching download id\n if ((id <= -1) || (mDownloadId != id) || (mDownloadManager == null)) {\n return;\n }\n Log.d(\"Web Update\", \"Receive: \" + mDownloadId);\n // query download status\n //status = MyContentUtility.getDownloadStatus(activity, mDownloadId);\n Uri uri = mDownloadManager.getUriForDownloadedFile(mDownloadId);\n // Format: content://downloads/all_downloads/63\n Log.d(\"Web Update\", \"Uri: \" + uri);\n // Note: this could be automatically renamed if the file already exists, e.g. assets-1.zip instead of assets.zip\n if (uri == null) {\n return;\n }\n //MyContentUtility.showContent(activity, uri);\n if (!mDownloadExtract) {\n return;\n }\n // unzip\n //Log.d(\"Web Update\", mDownloadFile.getAbsolutePath());\n try {\n InputStream inputStream = activity.getContentResolver().openInputStream(uri);\n File targetDirectory = activity.getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n String[] skipNames = { MySettingsRepository.fileName };\n MyAssetUtility.unzipStream(inputStream, targetDirectory, skipNames);\n if (inputStream != null)\n inputStream.close();\n // delete entry in Downloads to avoid multiple duplicates there\n //activity.getContentResolver().delete(uri,null,null);\n } catch (Exception e) {\n Log.e(\"Web Update\", e.toString());\n }\n }\n });\n }", "title": "" }, { "docid": "a73bcd42bd4ccedaf6efc38b9adcbc1d", "score": "0.59184355", "text": "@Override\n\t\tpublic void onReceive(Context arg0, Intent arg1) {\n\t\t\tDownloadManager.Query query = new DownloadManager.Query();\n\t\t\tquery.setFilterById(preferenceManager.getLong(Download_ID, 0));\n\t\t\tCursor cursor = downloadManager.query(query);\n\n\t\t\tif(cursor.moveToFirst()){\n\t\t\t\tint columnIndex = cursor.getColumnIndex(DownloadManager.COLUMN_STATUS);\n\t\t\t\tint status = cursor.getInt(columnIndex);\n\t\t\t\tint columnReason = cursor.getColumnIndex(DownloadManager.COLUMN_REASON);\n\t\t\t\tint reason = cursor.getInt(columnReason);\n\n\t\t\t\tif(status == DownloadManager.STATUS_SUCCESSFUL){\n\t\t\t\t\t//Retrieve the saved download id\n\t\t\t\t\tlong downloadID = preferenceManager.getLong(Download_ID, 0);\n\n\t\t\t\t\tParcelFileDescriptor file;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfile = downloadManager.openDownloadedFile(downloadID);\n\t\t\t\t\t\tToast.makeText(MainActivityORG.this,\n\t\t\t\t\t\t\t\t\"File Downloaded: \" + file.toString(),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tToast.makeText(MainActivityORG.this,\n\t\t\t\t\t\t\t\te.toString(),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}else if(status == DownloadManager.STATUS_FAILED){\n\t\t\t\t\tToast.makeText(MainActivityORG.this,\n\t\t\t\t\t\t\t\"FAILED!\\n\" + \"reason of \" + reason,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}else if(status == DownloadManager.STATUS_PAUSED){\n\t\t\t\t\tToast.makeText(MainActivityORG.this,\n\t\t\t\t\t\t\t\"PAUSED!\\n\" + \"reason of \" + reason,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}else if(status == DownloadManager.STATUS_PENDING){\n\t\t\t\t\tToast.makeText(MainActivityORG.this,\n\t\t\t\t\t\t\t\"PENDING!\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}else if(status == DownloadManager.STATUS_RUNNING){\n\t\t\t\t\tToast.makeText(MainActivityORG.this,\n\t\t\t\t\t\t\t\"RUNNING!\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "0ff44ecf91ece70b060dd9be0991c84b", "score": "0.5805341", "text": "public int getTachoDownloadId() {\r\n return tachoDownloadId;\r\n }", "title": "" }, { "docid": "8dbdeb90a7b4a49519c90e6c2d5c509b", "score": "0.5694721", "text": "com.google.protobuf.ByteString\n getAndroidIdBytes();", "title": "" }, { "docid": "e0a2df9787a1b532b44a95853675cc10", "score": "0.56812674", "text": "private int getDownloadStatus (long download_id) {\n DownloadManager downloadManager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);\n\n DownloadManager.Query downloadQuery = new DownloadManager.Query();\n downloadQuery.setFilterById(download_id);\n\n Cursor cursor = downloadManager.query(downloadQuery);\n\n if(cursor.moveToFirst()) {\n int status = cursor.getInt(\n cursor.getColumnIndex(DownloadManager.COLUMN_STATUS)\n );\n\n cursor.close();\n\n return status;\n }\n\n return -1;\n }", "title": "" }, { "docid": "8a8484b3b37271728fd8e781717d9a62", "score": "0.56807196", "text": "private void sendFinalBroadcast(DownloadFileOperation download, RemoteOperationResult downloadResult) {\r\n Intent end = new Intent(DOWNLOAD_FINISH_MESSAGE);\r\n end.putExtra(EXTRA_DOWNLOAD_RESULT, downloadResult.isSuccess());\r\n end.putExtra(ACCOUNT_NAME, download.getAccount().name);\r\n end.putExtra(EXTRA_REMOTE_PATH, download.getRemotePath());\r\n if (downloadResult.isSuccess()) {\r\n end.putExtra(EXTRA_FILE_PATH, download.getSavePath());\r\n }\r\n sendBroadcast(end);\r\n }", "title": "" }, { "docid": "6585b0b466528a5b8007b630bc93d67c", "score": "0.56665", "text": "long getUnsendNotifyTaskid();", "title": "" }, { "docid": "4d7b1bb3551e4eb6615b7742332b6dac", "score": "0.5634643", "text": "com.google.protobuf.ByteString getId();", "title": "" }, { "docid": "4d7b1bb3551e4eb6615b7742332b6dac", "score": "0.5634643", "text": "com.google.protobuf.ByteString getId();", "title": "" }, { "docid": "a93c0c0849feaea3e485c6f8cba577c0", "score": "0.5607325", "text": "int getDwSendId();", "title": "" }, { "docid": "a2ba314c5de1d778998a399441670790", "score": "0.5536822", "text": "com.google.protobuf.ByteString\n getCacheIdBytes();", "title": "" }, { "docid": "81b62dcdc0266877de77f13448ff2ddf", "score": "0.5522704", "text": "com.google.protobuf.ByteString getIdBytes();", "title": "" }, { "docid": "81b62dcdc0266877de77f13448ff2ddf", "score": "0.5522704", "text": "com.google.protobuf.ByteString getIdBytes();", "title": "" }, { "docid": "81b62dcdc0266877de77f13448ff2ddf", "score": "0.5522704", "text": "com.google.protobuf.ByteString getIdBytes();", "title": "" }, { "docid": "81b62dcdc0266877de77f13448ff2ddf", "score": "0.5522704", "text": "com.google.protobuf.ByteString getIdBytes();", "title": "" }, { "docid": "4dfa676d155aade17d3092859ec2f153", "score": "0.55124116", "text": "public long getRecvid() {\n return recvid_;\n }", "title": "" }, { "docid": "d8eade80f159a623bf43436a7af88d2c", "score": "0.55041623", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tUri Download_Uri = Uri.parse(Download_path);\n\t\t\t\tDownloadManager.Request request = new DownloadManager.Request(Download_Uri)\n\t\t .setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI | DownloadManager.Request.NETWORK_MOBILE)\n\t\t .setAllowedOverRoaming(false)\n\t\t .setTitle(\"file nsa\")\n\t\t .setDescription(\"stuff ok.\")\n\t\t .setShowRunningNotification(true)\n\t\t .setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, \"nasapic.jpg\"); \t\t\t\t\n\t\t\t\tlong download_id = downloadManager.enqueue(request);\n\n\t\t\t\t//Save the download id\n\t\t\t\tEditor PrefEdit = preferenceManager.edit();\n\t\t\t\tPrefEdit.putLong(Download_ID, download_id);\n\t\t\t\tPrefEdit.commit();\n\t\t\t}", "title": "" }, { "docid": "f7662a67375dd0d4b83a267ff64a545f", "score": "0.55035955", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "5943c236e7895e4ea6b2058045efbd98", "score": "0.5495038", "text": "public void onReceive(Context ctxt, Intent intent) {\n long referenceId = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, -1);\n\n //is the assignment currently showing in the preview pane?\n if (referenceId == bookDownload){\n File file = new File(localFilePath);\n //change start button appearance and behavior\n checkBookFile();\n if (file.exists()){\n startButton.setText(\"Start\");\n startButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startReading(file, timeToRead);\n }\n });\n startButton.setEnabled(true);\n\n }\n }\n Toast toast = Toast.makeText(AssignmentsActivity.this,\n \"Download complete\", Toast.LENGTH_LONG);\n toast.setGravity(Gravity.TOP, 25, 400);\n toast.show();\n }", "title": "" }, { "docid": "dacd56ac65ccb7d389e05ae4502bdf1a", "score": "0.54887116", "text": "com.google.protobuf.ByteString\n getCacheIdBytes();", "title": "" }, { "docid": "dacd56ac65ccb7d389e05ae4502bdf1a", "score": "0.54881585", "text": "com.google.protobuf.ByteString\n getCacheIdBytes();", "title": "" }, { "docid": "dacd56ac65ccb7d389e05ae4502bdf1a", "score": "0.54881585", "text": "com.google.protobuf.ByteString\n getCacheIdBytes();", "title": "" }, { "docid": "ccef4bc485aa2100dce8c8b22fbdbe74", "score": "0.54703933", "text": "long getNotificationID();", "title": "" }, { "docid": "60e941f7b86b7a4f7453f8132565cadc", "score": "0.54602915", "text": "java.lang.String getNotifyId();", "title": "" }, { "docid": "7f0f95d5506571b2251e5895a08854ee", "score": "0.54547936", "text": "private String channelIdTransfer(int channel_id) {\n long newId = (channel_id & 0xffffffffL);\n String[] projection = {\n TvContract.Channels._ID,\n };\n // String selection = TvContract.Channels.COLUMN_DISPLAY_NUMBER + \" = ?\";\n String selection = \"substr(cast(\" + TvContract.Channels.COLUMN_INTERNAL_PROVIDER_DATA\n + \" as varchar),19,10)=?\";\n\n String[] selectionArgs = {\n String.format(\"%010d\", newId)\n };\n\n Cursor mCursor = contentResolver.query(TvContract.Channels.CONTENT_URI,\n projection, selection, selectionArgs, null);\n\n if (mCursor == null)\n {\n Log.d(TAG, \"cursor not loaded \");\n throw new IllegalStateException(\"Cursor not loaded\");\n }\n\n else\n {\n\n if (mCursor.getCount() < 1)\n {\n // just sync to pool\n Log.d(TAG, \"cursor \" + mCursor.getCount()\n + \"can't find channel id in the table,a this event will be omited\");\n mCursor.close();\n return null;\n }\n else\n {\n // long channelId = mCursor.getLong(0);\n mCursor.moveToFirst();\n int idIndex = mCursor.getColumnIndex(TvContract.Channels._ID);\n String idStr = mCursor.getString(idIndex);\n if (mCursor.getCount() == 1)\n {\n Log.d(TAG, \"cursor \" + mCursor.getCount() + \"found one channel\" + idIndex + \"\" + idStr);\n } else\n {\n Log.d(TAG, \"cursor \" + mCursor.getCount() + \"found more channel\" + idIndex + \"\" + idStr);\n }\n\n mCursor.close();\n return idStr;\n\n }\n\n }\n\n }", "title": "" }, { "docid": "a4ebe363753e0fc84131c1e2d7638c2f", "score": "0.5439139", "text": "private static String getEventID() {\n Date now = new Date();\n return (\"\" + now.getTime());\n }", "title": "" }, { "docid": "6d4d689178f6ae2fe8bc13dffbda78ea", "score": "0.54362386", "text": "private void recoverDemandId() {\n Bundle bun = this.getIntent().getExtras();\n idDemand= bun.getInt(\"idDemand\",0);\n }", "title": "" }, { "docid": "35a46ed30fe7ce4f3456767aebbae779", "score": "0.5416327", "text": "com.google.protobuf.ByteString\n getNotifyIdBytes();", "title": "" }, { "docid": "d897e01c637752ab06a2a7308878c097", "score": "0.54147685", "text": "public int getDownloadThread() {\r\n return downloadThread;\r\n }", "title": "" }, { "docid": "0fb9bd72e80a7d5e7e297d1fcd4b1c6a", "score": "0.540202", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "0fb9bd72e80a7d5e7e297d1fcd4b1c6a", "score": "0.540202", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "9a313fd1ffa804608b95eefece4c6b2b", "score": "0.5391212", "text": "String getRawDataAttachmentId();", "title": "" }, { "docid": "4ae27c8073b271c2ccdd9a961584e984", "score": "0.5385312", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "4ae27c8073b271c2ccdd9a961584e984", "score": "0.5385312", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "4ae27c8073b271c2ccdd9a961584e984", "score": "0.5385312", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "c89eb8280284538cfe680adc32515700", "score": "0.53798354", "text": "com.google.protobuf.ByteString getAttid();", "title": "" }, { "docid": "b0ee9b32bac2a98f5cf8e9daad3be120", "score": "0.53751427", "text": "int getEventid();", "title": "" }, { "docid": "b4dee5ef7eb26bbb88c0225f886d1ab5", "score": "0.5370436", "text": "public long getRecvid() {\n return recvid_;\n }", "title": "" }, { "docid": "7c2d25430df5109468bf5baa5b58fb88", "score": "0.53463787", "text": "public com.google.protobuf.ByteString getId() {\n return id_;\n }", "title": "" }, { "docid": "23e9ef19a273f1de6b5ed6383bd60b5f", "score": "0.5345116", "text": "long getFeedId();", "title": "" }, { "docid": "c1d15eaa229f5a6dfd559a5aa3eee519", "score": "0.53325695", "text": "private UUID getID() {\n return smrStream.getID();\n }", "title": "" }, { "docid": "6e989c269a2d0d35955eb1b5745242b8", "score": "0.5331993", "text": "public com.google.protobuf.ByteString getId() {\n return id_;\n }", "title": "" }, { "docid": "29e10cabc9f714a5687ae528bdc7fd2e", "score": "0.53268516", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "29e10cabc9f714a5687ae528bdc7fd2e", "score": "0.53268516", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "29e10cabc9f714a5687ae528bdc7fd2e", "score": "0.53268516", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "29e10cabc9f714a5687ae528bdc7fd2e", "score": "0.53268516", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "29e10cabc9f714a5687ae528bdc7fd2e", "score": "0.53268516", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "29e10cabc9f714a5687ae528bdc7fd2e", "score": "0.53268516", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "29e10cabc9f714a5687ae528bdc7fd2e", "score": "0.53268516", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "29e10cabc9f714a5687ae528bdc7fd2e", "score": "0.53268516", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "29e10cabc9f714a5687ae528bdc7fd2e", "score": "0.53268516", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "29e10cabc9f714a5687ae528bdc7fd2e", "score": "0.53268516", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "29e10cabc9f714a5687ae528bdc7fd2e", "score": "0.53268516", "text": "com.google.protobuf.ByteString\n getIdBytes();", "title": "" }, { "docid": "f9708c2bfe3b5b7613158d9f3166e7e3", "score": "0.5291458", "text": "String getFeedId();", "title": "" }, { "docid": "92757303209901290977aa565d1e4a8b", "score": "0.5286202", "text": "java.lang.String getAndroidId();", "title": "" }, { "docid": "6bce6afb044d5b7007f9620729c8cc64", "score": "0.52746415", "text": "int getTransferId();", "title": "" }, { "docid": "9f28cf426fe7754012e879826b5d4f68", "score": "0.52718884", "text": "int getResponseId();", "title": "" }, { "docid": "51fa6797d75915b82aac8f431a6dd5a5", "score": "0.5263063", "text": "long getSendervid();", "title": "" }, { "docid": "51fa6797d75915b82aac8f431a6dd5a5", "score": "0.5263063", "text": "long getSendervid();", "title": "" }, { "docid": "7b59d6ed87f784606fb7ec93c8ae3a61", "score": "0.5258723", "text": "long getAndroidId();", "title": "" }, { "docid": "7d0b17e7e2af717bd1df082a2a5849f7", "score": "0.5250206", "text": "private void downloadStatus(Cursor cursor, long downloadId){\n int columnIndex = cursor.getColumnIndex(DownloadManager.COLUMN_STATUS);\n int status = cursor.getInt(columnIndex);\n //column for reason code if the download failed or paused\n int columnReason = cursor.getColumnIndex(DownloadManager.COLUMN_REASON);\n int reason = cursor.getInt(columnReason);\n //get the download filename\n int filenameIndex = cursor.getColumnIndex(DownloadManager.COLUMN_LOCAL_FILENAME);\n String filename = cursor.getString(filenameIndex);\n\n String statusText = \"\";\n String reasonText = \"\";\n\n switch(status){\n case DownloadManager.STATUS_FAILED:\n statusText = \"STATUS_FAILED\";\n switch(reason){\n case DownloadManager.ERROR_CANNOT_RESUME:\n reasonText = \"ERROR_CANNOT_RESUME\";\n break;\n case DownloadManager.ERROR_DEVICE_NOT_FOUND:\n reasonText = \"ERROR_DEVICE_NOT_FOUND\";\n break;\n case DownloadManager.ERROR_FILE_ALREADY_EXISTS:\n reasonText = \"ERROR_FILE_ALREADY_EXISTS\";\n break;\n case DownloadManager.ERROR_FILE_ERROR:\n reasonText = \"ERROR_FILE_ERROR\";\n break;\n case DownloadManager.ERROR_HTTP_DATA_ERROR:\n reasonText = \"ERROR_HTTP_DATA_ERROR\";\n break;\n case DownloadManager.ERROR_INSUFFICIENT_SPACE:\n reasonText = \"ERROR_INSUFFICIENT_SPACE\";\n break;\n case DownloadManager.ERROR_TOO_MANY_REDIRECTS:\n reasonText = \"ERROR_TOO_MANY_REDIRECTS\";\n break;\n case DownloadManager.ERROR_UNHANDLED_HTTP_CODE:\n reasonText = \"ERROR_UNHANDLED_HTTP_CODE\";\n break;\n case DownloadManager.ERROR_UNKNOWN:\n reasonText = \"ERROR_UNKNOWN\";\n break;\n }\n break;\n case DownloadManager.STATUS_PAUSED:\n statusText = \"STATUS_PAUSED\";\n switch(reason){\n case DownloadManager.PAUSED_QUEUED_FOR_WIFI:\n reasonText = \"PAUSED_QUEUED_FOR_WIFI\";\n break;\n case DownloadManager.PAUSED_UNKNOWN:\n reasonText = \"PAUSED_UNKNOWN\";\n break;\n case DownloadManager.PAUSED_WAITING_FOR_NETWORK:\n reasonText = \"PAUSED_WAITING_FOR_NETWORK\";\n break;\n case DownloadManager.PAUSED_WAITING_TO_RETRY:\n reasonText = \"PAUSED_WAITING_TO_RETRY\";\n break;\n }\n break;\n case DownloadManager.STATUS_PENDING:\n statusText = \"STATUS_PENDING\";\n break;\n case DownloadManager.STATUS_RUNNING:\n statusText = \"STATUS_RUNNING\";\n break;\n case DownloadManager.STATUS_SUCCESSFUL:\n statusText = \"STATUS_SUCCESSFUL\";\n reasonText = \"Filename:\\n\" + filename;\n break;\n }\n\n Toast toast = Toast.makeText(AssignmentsActivity.this,\n \"PDF Status:\"+ \"\\n\" + statusText + \"\\n\" +\n reasonText,\n Toast.LENGTH_LONG);\n toast.setGravity(Gravity.TOP, 25, 400);\n toast.show();\n\n // Make a delay of 3 seconds so that next toast (Music Status) will not merge with this one.\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n }\n }, 3000);\n }", "title": "" }, { "docid": "35003b96899815ba61cef7b5d1b20537", "score": "0.52441597", "text": "String getLatestFlowFileId();", "title": "" }, { "docid": "ecfdc1dc55559aac575740cc10c289fd", "score": "0.5230576", "text": "public long getEventID() {\n\treturn evID;\n }", "title": "" }, { "docid": "ca966d97a1502c72d684a4c133094453", "score": "0.5227966", "text": "public void onClick(DialogInterface dialog, int id) {\n final DownloadTask downloadTask = new DownloadTask(MainActivity.this);\n String DownloadUrl = sPref.getString(\"server\", \"\");\n downloadTask.execute(DownloadUrl);\n\n }", "title": "" }, { "docid": "7255aa72445e625815cd64b3124d61f2", "score": "0.5227509", "text": "@Override\n protected void onHandleIntent(Intent intent) {\n // TODO: Redo full download mgmt\n // Normally we would do some work here, like download a file.\n // For our sample, we just sleep for 5 seconds.\n try {\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n\n String action = intent.getAction();\n Bundle extra = intent.getExtras();\n\n String mediaId = (String)extra.get(MediaIDHelper.EXTRA_MEDIA_ID_KEY);\n\n if (mediaId == null) {\n //TODO: notify failiure\n return;\n }\n\n ArrayList<MediaMetadataCompat> tracksToDownload = new ArrayList<>();\n String book = MediaIDHelper.getCategoryValueFromMediaID(mediaId);\n\n Log.d(TAG, \"Creating folder for \" + book);\n File bookFolder = new File(getDownloadDirectory(), book);\n if (!bookFolder.exists()) bookFolder.mkdirs();\n\n if (MediaIDHelper.isBrowseable(mediaId)) {\n Iterator<MediaMetadataCompat> allBookTracksIterator = MusicProvider.getTracksByEbook(book).iterator();\n while (allBookTracksIterator.hasNext()) tracksToDownload.add(allBookTracksIterator.next());\n } else {\n String trackId = MediaIDHelper.getTrackId(mediaId);\n MediaMetadataCompat track = MusicProvider.getTrack(trackId);\n tracksToDownload.add(track);\n }\n int count = 0;\n for (MediaMetadataCompat track : tracksToDownload) {\n count++;\n try {\n String source = track.getString(MusicProviderSource.CUSTOM_METADATA_TRACK_SOURCE);\n Log.d(TAG, \"Track \" + source);\n\n File file = getOfflineSource(book, source);\n if(file.exists()){\n Log.d(TAG, source + \" is already downloaded\");\n continue;\n }\n\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(source));\n\n request.setTitle(String.format(\"%s - %s (%d)\", track.getDescription().getTitle(), book, count));\n request.setDescription(file.getPath());\n request.setDestinationUri(Uri.fromFile(file));\n\n //request.setVisibleInDownloadsUi(false);\n request.setNotificationVisibility(\n DownloadManager.Request.VISIBILITY_VISIBLE\n );\n\n //TODO: Add download options from new settings\n //request.setAllowedOverMetered(false);\n //request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI | DownloadManager.Request.NETWORK_MOBILE);\n //request.addRequestHeader(\"User-Agent\", System.getProperty(\"http.agent\") + \" my_app/\" + Utils.appVersionNumber());\n\n //TODO: Set extra for identification\n enqueue = dm.enqueue(request);\n } catch (Exception ex) {\n Log.e(TAG, ex.getMessage());\n }\n }\n } catch (Exception e) {\n //TODO: e - Restore interrupt status\n }\n }", "title": "" }, { "docid": "8a51dbe4bdbc75f5b8102cf81dcec5e6", "score": "0.52244586", "text": "public String getReceiveId() {\r\n return receiveId;\r\n }", "title": "" }, { "docid": "9b26d562847727ea61f7f8e60308571f", "score": "0.5207786", "text": "Object getBinaryDataId();", "title": "" }, { "docid": "b4dab560c11e47c3eabe478df5460648", "score": "0.5200755", "text": "com.google.protobuf.ByteString\n getMediaIDBytes();", "title": "" }, { "docid": "b4dab560c11e47c3eabe478df5460648", "score": "0.519837", "text": "com.google.protobuf.ByteString\n getMediaIDBytes();", "title": "" }, { "docid": "b4dab560c11e47c3eabe478df5460648", "score": "0.519837", "text": "com.google.protobuf.ByteString\n getMediaIDBytes();", "title": "" }, { "docid": "fb58124a7a2a1b490c7e0ef2057183e1", "score": "0.51675844", "text": "public String getDownloadSn() {\n\t\treturn downloadSn;\n\t}", "title": "" }, { "docid": "1fddce26a7d278d570155d47bebca505", "score": "0.5166414", "text": "public char command_id_GET()\n { return (char)((char) get_bytes(data, 7, 1)); }", "title": "" }, { "docid": "cd569163bbab6a7855d1cd150088f826", "score": "0.5155718", "text": "public int getDwRecvId() {\n return dwRecvId_;\n }", "title": "" }, { "docid": "0fb8dbd8c11db2f0cdb8df02fa7e9884", "score": "0.5153897", "text": "public int getEventid() {\n return eventid_;\n }", "title": "" }, { "docid": "7e14d2d8bbd2cd3870e61abaf28a4d7b", "score": "0.51522106", "text": "private void sendDoneBroadcast() {\n Intent intent = new Intent(\"doneFetchingData\");\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }", "title": "" }, { "docid": "86aa1cc9dbe3a4c389245e4c62d546a9", "score": "0.5141208", "text": "final public String getId() {\n assert(infoAvailable);\n return id;\n }", "title": "" }, { "docid": "689bf05d699a6f5709a73672118c68bc", "score": "0.51381034", "text": "public long readCampaignIdIfPresent() {\n final Intent intent = getIntent();\n return intent.getLongExtra(EXTRA_CAMPAIGN_ID, NO_CAMPAIGN_FILTER);\n }", "title": "" }, { "docid": "a68043c70c9618d81050306d4ee290ce", "score": "0.51342225", "text": "public char command_id_GET()\n { return (char)((char) get_bytes(data, 8, 1)); }", "title": "" }, { "docid": "c5cc05531ba8716555bb769f3995721a", "score": "0.5132337", "text": "public void saveDownloadInfo(long download_id, String appPackageName) {\n SharedPreferences sharedPrefs = getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPrefs.edit();\n\n editor.putLong(appPackageName, download_id);\n\n editor.apply();\n }", "title": "" }, { "docid": "925529012d87bd95fdb7d60efacfff3a", "score": "0.5127649", "text": "public String getObserverId();", "title": "" }, { "docid": "edd099ac10e9e6bd890a329406e93899", "score": "0.5110835", "text": "String getListenerId();", "title": "" }, { "docid": "21641f63a9f3e7453fb1b2f0f3f8e110", "score": "0.5106001", "text": "@SuppressLint(\"MissingPermission\")\n private String getSubscriberId(){\n\n String Device_serialNo = String.valueOf(Build.SERIAL.hashCode());\n// UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode());\n //UUID deviceUuid = new UUID(Device_serialNo.hashCode());\n return Device_serialNo.toString();\n }", "title": "" }, { "docid": "4556ac6e002e35e1e7837eab1dd714ef", "score": "0.5087942", "text": "@Nullable\n @VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE)\n public String fetchTrueFid() {\n Task<String> currentFidTask = firebaseInstallationsApi.getId();\n String currentFid = null;\n\n try {\n currentFid = Utils.awaitEvenIfOnMainThread(currentFidTask);\n } catch (Exception e) {\n Logger.getLogger().w(\"Failed to retrieve Firebase Installation ID.\", e);\n }\n return currentFid;\n }", "title": "" }, { "docid": "79c0347711efadc00213a07e4c9e9ade", "score": "0.5087", "text": "public void sendSuccessBroadcast(long j) {\n Intent intent = new Intent(UPLOAD_SUCCESS);\n intent.putExtra(EXTRA_TWEET_ID, j);\n intent.setPackage(getApplicationContext().getPackageName());\n sendBroadcast(intent);\n }", "title": "" }, { "docid": "379bf5a1a27ebf7259bc17f7af07f2a2", "score": "0.50850105", "text": "com.google.protobuf.ByteString getDatasetIdBytes();", "title": "" }, { "docid": "3be06240038c68f0bfdea7449b3b706b", "score": "0.5083986", "text": "MessagingChannelId id();", "title": "" }, { "docid": "61d0aa8d5a60f4afd4c2847f3405b708", "score": "0.5082428", "text": "int getChanId();", "title": "" }, { "docid": "1c5c4165ab959cef876c39ee570099dc", "score": "0.50820607", "text": "long getDownloadBytes();", "title": "" }, { "docid": "ac5f8de19e8ab0d9e17fa3d9dd9b3848", "score": "0.5078167", "text": "private String getDatastreamId(String pid) {\n if (\"TF-OBJ-META\".equals(pid)) {\n return pid;\n }\n return \"DS\" + DigestUtils.md5Hex(pid);\n }", "title": "" }, { "docid": "af18d749ce57750bea741acabb55ca8c", "score": "0.50740975", "text": "java.lang.String getRemoteId();", "title": "" }, { "docid": "b6cf265d50c46dca6e0666d2798a3640", "score": "0.5066046", "text": "@Override\n public void onClick(View v) {\n\n\n requestingEpochDownload = true;\n\n /* AGDeviceLibrary:\n Get the device status JSON of a connected device for use in calculation\n epoch download window\n */\n //agDeviceLibrary.GetDeviceStatus();\n\n if (!SYNCING) {\n SYNCING = true;\n /*PendingIntent pintent = PendingIntent.getService(self, 0, syncIntent, 0);\n AlarmManager alarm = (AlarmManager)getSystemService(Context.ALARM_SERVICE);\n alarm.set(AlarmManager.RTC_WAKEUP, SystemClock.elapsedRealtime() +100, pintent);*/\n\n\n PendingIntent restartServicePI = PendingIntent.getService(\n getApplicationContext(), 1, syncIntent,\n PendingIntent.FLAG_ONE_SHOT);\n\n //Restart the service once it has been killed android\n AlarmManager alarmService = (AlarmManager)getApplicationContext().getSystemService(Context.ALARM_SERVICE);\n alarmService.set(AlarmManager.RTC_WAKEUP, SystemClock.elapsedRealtime() +100, restartServicePI);\n\n\n\n\n\n //self.startService(syncIntent);\n } else {\n SYNCING = false;\n stopService(syncIntent);\n }\n }", "title": "" }, { "docid": "b577059df9b495392f9f9058162ee881", "score": "0.50577426", "text": "public int getDwRecvId() {\n return dwRecvId_;\n }", "title": "" }, { "docid": "d350df1220cb74bdd83df955d255c635", "score": "0.5056335", "text": "protected String getId() {\n return this.response.getId();\n }", "title": "" }, { "docid": "c43587bc025ce247028b3c1a1bc468de", "score": "0.5055574", "text": "long getXADataRecorderId();", "title": "" } ]
761a7260ad0c9ddfdba49a0b4a40254d
Ensures that changing a label as stroke from tabbar works as expected (and also tests that the style is considered as custom).
[ { "docid": "884e3639ed1e9a3183605b245cc7c45a", "score": "0.49932867", "text": "public void testItalicFromToolbar() throws Exception {\n // Not available in fixed tabbar\n if (!TestsUtil.isDynamicTabbar()) {\n return;\n }\n\n SWTBotGefEditPart myEClassEP = selectAndCheckEditPart(\"myEClass\", AbstractDiagramListEditPart.class);\n doTestStyleCustomizationThroughTabbar(myEClassEP, \"Italic Font Style\", NORMAL_FONT_STATE_PREDICATE, ITALIC_FONT_STATE_PREDICATE);\n }", "title": "" } ]
[ { "docid": "7c2554153b274240e08eaf8554daaeba", "score": "0.72264534", "text": "public void testChangeLabelColorFromTabbar() throws Exception {\n SWTBotGefEditPart selectedEditPart = selectAndCheckEditPart(\"myEClass\", AbstractDiagramListEditPart.class);\n final Predicate<SWTBotGefEditPart> stateWhenButtonIsCheckedPredicate = new Predicate<SWTBotGefEditPart>() {\n\n public boolean apply(SWTBotGefEditPart input) {\n try {\n checkFontStyle(input, SWT.NORMAL, SWT.NORMAL, FontFormat.NORMAL, false, false, null, -1, 8905185);\n return true;\n } catch (AssertionError e) {\n return false;\n }\n }\n\n };\n Predicate<SWTBotGefEditPart> initialStatePredicate = Predicates.not(stateWhenButtonIsCheckedPredicate);\n\n doTestStyleCustomizationThroughColorSelectionFromTabbar(selectedEditPart, \"Font Color\", initialStatePredicate, stateWhenButtonIsCheckedPredicate, \"Yellow\");\n }", "title": "" }, { "docid": "d747927a3bb010b3fa9c7818b9e3b3dd", "score": "0.6034854", "text": "public void testChangeLabelColorFromAppearanceSection() throws Exception {\n SWTBotGefEditPart selectedEditPart = selectAndCheckEditPart(\"myEClass\", AbstractDiagramListEditPart.class);\n doTestStyleCustomizationThroughColorSelectionFromAppearanceSection(selectedEditPart, \"Fonts and Colors:\", 0, STATE_WHEN_LABEL_COLOR_IS_UNCHANGED_PREDICATE,\n STATE_WHEN_LABEL_COLOR_IS_CHANGED_PREDICATE);\n }", "title": "" }, { "docid": "9f03ae4c82efd780743ac1bc710822ea", "score": "0.5549746", "text": "private void initLabel(Label label) {\n label.setFont(Font.font(\"Candara\", FontWeight.BOLD, 30));\n label.setStyle(\"-fx-background-color: gray; -fx-text-fill: green; -fx-text-alignment: center\");\n }", "title": "" }, { "docid": "2c7770b0302adca4b673d3c2325d61ed", "score": "0.5539995", "text": "private void setMyTabLabel (String text) {\n if (isNamedByUser())\n editor.resetCaseTabLabel(this, text);\n }", "title": "" }, { "docid": "ce6da516b1254e6cd9f8b0357fc8e71e", "score": "0.5473685", "text": "protected void setLabelStylingSettings(Label fieldLabel) {\n }", "title": "" }, { "docid": "070f0b3365f4ea508a989e158c2390f8", "score": "0.5464176", "text": "public void testChangeFontFromAppearanceSection() throws Exception {\n SWTBotGefEditPart selectedEditPart = selectAndCheckEditPart(\"myEClass\", AbstractDiagramListEditPart.class);\n /*\n * Last found common fonts : Arial, Arial Black, Comic Sans MS, Courier\n * New, DejaVu Sans, DejaVu Sans Mono, DejaVu Serif, Georgia, Impact,\n * Times New Roma, Trebuchet MS, Verdana , Webdings.\n */\n final String modifiedFont = \"Courier New\";\n Predicate<SWTBotGefEditPart> stateWhenButtonIsCheckedPredicate = new Predicate<SWTBotGefEditPart>() {\n\n public boolean apply(SWTBotGefEditPart input) {\n try {\n checkFontStyle(input, SWT.NORMAL, SWT.NORMAL, FontFormat.NORMAL, false, false, modifiedFont, -1, -1);\n return true;\n } catch (AssertionError e) {\n return false;\n }\n }\n\n };\n\n doTestStyleCustomizationThroughComboBoxInAppearanceSection(selectedEditPart, NORMAL_FONT_STATE_PREDICATE, stateWhenButtonIsCheckedPredicate, 0, modifiedFont, true);\n }", "title": "" }, { "docid": "50a9798cfffa1a6939cb95600e569f7c", "score": "0.5432056", "text": "private void settingsOfGLabel() {\r\n gLabel.move(-gLabel.getWidth() / 2, gLabel.getHeight());\r\n gLabel.setColor(Color.RED);\r\n add(gLabel);\r\n }", "title": "" }, { "docid": "1ed64bbd9edc997109c91d2160077d22", "score": "0.5391238", "text": "public void testChangeFontSizeFromAppearanceSection() throws Exception {\n if (TestsUtil.shouldSkipUnreliableTests()) {\n /*\n junit.framework.AssertionFailedError: Reset style properties to default values button should be enabled.\n at junit.framework.Assert.fail(Assert.java:57)\n at junit.framework.Assert.assertTrue(Assert.java:22)\n at junit.framework.TestCase.assertTrue(TestCase.java:192)\n at org.eclipse.sirius.tests.swtbot.AbstractRefreshWithCustomizedStyleTest.checkButtonAppearanceChecked(AbstractRefreshWithCustomizedStyleTest.java:665)\n at org.eclipse.sirius.tests.swtbot.AbstractRefreshWithCustomizedStyleTest.doTestStyleCustomizationThroughComboBoxInAppearanceSection(AbstractRefreshWithCustomizedStyleTest.java:331)\n at org.eclipse.sirius.tests.swtbot.LabelFontModificationsTest.testChangeFontSizeFromAppearanceSection(LabelFontModificationsTest.java:479)\n */\n return;\n }\n SWTBotGefEditPart selectedEditPart = selectAndCheckEditPart(\"myEClass\", AbstractDiagramListEditPart.class);\n Predicate<SWTBotGefEditPart> stateWhenButtonIsCheckedPredicate = new Predicate<SWTBotGefEditPart>() {\n\n public boolean apply(SWTBotGefEditPart input) {\n try {\n checkFontStyle(input, SWT.NORMAL, SWT.NORMAL, FontFormat.NORMAL, false, false, null, 12, -1);\n return true;\n } catch (AssertionError e) {\n return false;\n }\n }\n\n };\n\n doTestStyleCustomizationThroughComboBoxInAppearanceSection(selectedEditPart, NORMAL_FONT_STATE_PREDICATE, stateWhenButtonIsCheckedPredicate, 1, \"12\", false);\n }", "title": "" }, { "docid": "d8a1b0743a26682cd244917950c1707e", "score": "0.537155", "text": "void setTitleBorder(String text);", "title": "" }, { "docid": "c89aef89416770a39805480fadc44580", "score": "0.5365508", "text": "private void standardSet(JLabel temp) {\n temp.setOpaque(true);\n temp.setBorder(BorderFactory.createLineBorder(Color.black));\n }", "title": "" }, { "docid": "67f6061bfa3f1b4c7ddee93912f2bf3c", "score": "0.53533536", "text": "@Override\r\n protected void paintFocusIndicator(\r\n final Graphics g,\r\n final int tabPlacement,\r\n final Rectangle[] rects,\r\n final int tabIndex,\r\n final Rectangle iconRect,\r\n final Rectangle textRect,\r\n final boolean isSelected) {}", "title": "" }, { "docid": "a5e38782b1f92c3a89091d02cb89fbc3", "score": "0.53040755", "text": "@Test\n public void test53() throws Throwable {\n BarRenderer3D barRenderer3D0 = new BarRenderer3D();\n JTextField jTextField0 = new JTextField((Document) null, \"Null 'label' argument.\", 205);\n ColorUIResource colorUIResource0 = (ColorUIResource)jTextField0.getDisabledTextColor();\n barRenderer3D0.setWallPaint(colorUIResource0);\n CategoryPlot categoryPlot0 = barRenderer3D0.getPlot();\n CategoryAxis categoryAxis0 = new CategoryAxis();\n }", "title": "" }, { "docid": "05af598503fd1e2bd90bb4824e06c1a0", "score": "0.5257544", "text": "@Override\r\n public void paint(final Graphics g, final JComponent c) {\r\n super.paint(g, c);\r\n final int tabPlacement = tabPane.getTabPlacement();\r\n final Insets insets = tabPane.getInsets();\r\n if (tabPlacement == TOP) {\r\n if (tabPane.getTabCount() > 0) {\r\n final Rectangle lastTab = rects[lastVisibleTab];\r\n\r\n final int edgeX1 = Math.max(insets.left, lastTab.x + lastTab.width);\r\n final int edgeX2 = (tabPane.getWidth() - 1) - insets.right - insets.left;\r\n final int edgeY1 = lastTab.y;\r\n final int edgeY2 = edgeY1 + lastTab.height;\r\n\r\n g.setColor(lightHighlight);\r\n g.drawLine(edgeX1, edgeY1, edgeX2 - ARC_SIZE, edgeY1); // top\r\n g.drawLine(edgeX2 - ARC_SIZE, edgeY1, edgeX2, edgeY1 + ARC_SIZE); // arc\r\n g.drawLine(edgeX2, edgeY1 + ARC_SIZE, edgeX2, edgeY2); // right\r\n\r\n // TODO NM find a way to determine if necessary\r\n // shadow linux\r\n //g.setColor(darkShadow);\r\n //g.drawLine(edgeX1 + edgeX2 - 1, edgeY1, edgeX1 + edgeX2 + 1, edgeY1 + 2);\r\n //g.drawLine(edgeX1 + edgeX2 + 1, edgeY1 + 3, edgeX1 + edgeX2 + 1, edgeY1 + edgeY2 + 2); // right\r\n }\r\n else {\r\n // empty tabpane\r\n final int lineY = insets.top + calculateTabHeight() + 2;\r\n final int w = tabPane.getWidth() - insets.right - insets.left;\r\n g.setColor(lightHighlight);\r\n g.drawLine(insets.left, lineY, w, lineY);\r\n\r\n g.setColor(tabPane.getBackground());\r\n final int arcY = insets.top;\r\n g.fillRect(insets.left, arcY, w, ARC_SIZE + 1);\r\n\r\n g.setColor(lightHighlight);\r\n g.drawLine(insets.left + ARC_SIZE, arcY, w - 2 * ARC_SIZE, arcY);\r\n g.drawLine(insets.left, arcY + ARC_SIZE, insets.left + ARC_SIZE, arcY);\r\n g.drawLine(tabPane.getWidth() - insets.right - insets.left - ARC_SIZE - 1, arcY, tabPane.getWidth()\r\n - insets.right\r\n - insets.left\r\n - 1, arcY + ARC_SIZE);\r\n\r\n // shadow in top right corner\r\n //g.setColor(darkShadow);\r\n //g.drawLine(tabPane.getWidth() - insets.right - insets.left - ARC_SIZE, arcY, tabPane.getWidth()\r\n //\t- insets.right\r\n //\t- insets.left, arcY + ARC_SIZE);\r\n }\r\n }\r\n else { // BOTTOM\r\n if (tabPane.getTabCount() > 0) {\r\n final Rectangle lastTab = rects[lastVisibleTab];\r\n\r\n final int edgeX1 = Math.max(insets.left, lastTab.x + lastTab.width);\r\n final int edgeX2 = (tabPane.getWidth() - 1) - insets.right - insets.left;\r\n final int edgeY1 = lastTab.y;\r\n final int edgeY2 = edgeY1 + lastTab.height - 1;\r\n\r\n g.setColor(lightHighlight);\r\n g.drawLine(edgeX1, edgeY2, edgeX2 - ARC_SIZE, edgeY2); // bottoom\r\n g.drawLine(edgeX2 - ARC_SIZE, edgeY2, edgeX2, edgeY2 - ARC_SIZE); // arc\r\n g.drawLine(edgeX2, edgeY2 - ARC_SIZE, edgeX2, edgeY1); // right\r\n\r\n // TODO NM find a way to determine if necessary\r\n }\r\n else {\r\n // empty tabpane\r\n final int lineY = tabPane.getHeight() - insets.top - calculateTabHeight() - 4; // TODO NM why 4?\r\n final int w = tabPane.getWidth() - insets.right - insets.left;\r\n g.setColor(lightHighlight);\r\n g.drawLine(insets.left, lineY, w, lineY);\r\n\r\n g.setColor(tabPane.getBackground());\r\n final int arcY = tabPane.getHeight() - insets.bottom - 2;\r\n g.fillRect(insets.left, arcY - ARC_SIZE, w, ARC_SIZE + 1);\r\n\r\n g.setColor(lightHighlight);\r\n g.drawLine(insets.left + ARC_SIZE, arcY, w - 2 * ARC_SIZE, arcY);\r\n g.drawLine(insets.left, arcY - ARC_SIZE, insets.left + ARC_SIZE, arcY);\r\n g.drawLine(tabPane.getWidth() - insets.right - insets.left - ARC_SIZE - 1, arcY, tabPane.getWidth()\r\n - insets.right\r\n - insets.left\r\n - 1, arcY - ARC_SIZE);\r\n\r\n // shadow in bottom right corner\r\n //\tg.setColor(darkShadow);\r\n //\tg.drawLine(tabPane.getWidth() - insets.right - insets.left - ARC_SIZE, arcY, tabPane.getWidth()\r\n //\t\t- insets.right\r\n //\t\t- insets.left, arcY - ARC_SIZE);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "1367ce5fbcbb348dda887c4a94ffcf95", "score": "0.5179914", "text": "void setLabel(String labelNew);", "title": "" }, { "docid": "4d36be7dfcf1661f127e7cc6140ed450", "score": "0.5174212", "text": "@Override\n\tpublic void focusGained(FocusEvent e) {\n\t\tif(getText().equals(tips)) {\n\t\t\tsetForeground(Color.BLACK);\n\t\t\tsetText(\"\");\n\t\t} \n\t}", "title": "" }, { "docid": "e24930a94eb1d7b8331591da16812cfd", "score": "0.51587915", "text": "void setLabelMode(int labelMode);", "title": "" }, { "docid": "f0f70cb4638f9439687d02a70ffe61bd", "score": "0.51483893", "text": "protected void respondUI(ViewEvent anEvent)\n{\n // Handle TabView\n /*if(_tpane.getTabContent(_tpane.getSelIndex()) instanceof Label) {\n int index = _tpane.getSelIndex();\n ViewOwner sowner = _tabOwners[index];\n _tpane.setTabContent(sowner.getUI(), index);\n }*/\n}", "title": "" }, { "docid": "88c28dbbfa9f72e913d20c10b7375b73", "score": "0.5126585", "text": "public void testStrikeFromAppearanceSection() throws Exception {\n SWTBotGefEditPart myEClassEP = selectAndCheckEditPart(\"myEClass\", AbstractDiagramListEditPart.class);\n doTestStyleCustomizationThroughToggleButtonFromAppearanceSection(myEClassEP, \"Fonts and Colors:\", 3, NORMAL_FONT_STATE_PREDICATE, STRIKE_FONT_STATE_PREDICATE, true);\n }", "title": "" }, { "docid": "8d60c1dedd5a51184755c9f6c2b50896", "score": "0.50937015", "text": "public void setLabel(String text);", "title": "" }, { "docid": "2e544e36e0aec44abf2d28d2376d4408", "score": "0.5039915", "text": "@Test\n public void test14() throws Throwable {\n BarRenderer barRenderer0 = new BarRenderer();\n CategoryItemLabelGenerator categoryItemLabelGenerator0 = barRenderer0.getBaseItemLabelGenerator();\n barRenderer0.setAutoPopulateSeriesOutlinePaint(true);\n barRenderer0.setBaseItemLabelGenerator((CategoryItemLabelGenerator) null);\n barRenderer0.setItemMargin(1926.2100333235);\n }", "title": "" }, { "docid": "7d4b7cba1d0148f91480d35bcd00c866", "score": "0.5018058", "text": "@Override\r\n protected int getTabLabelShiftY(final int tabPlacement, final int tabIndex, final boolean isSelected) {\r\n if (tabPlacement == TOP) {\r\n return 1;\r\n }\r\n else {\r\n return -1;\r\n }\r\n }", "title": "" }, { "docid": "721389efd61b8cb999cb95e6333badaa", "score": "0.50148064", "text": "private void setColor(TabLayout.Tab tab) {\n for (int i =0;i<4;i++) {\n if (tab.getPosition() == i) {\n ((TextView)tabLayout.getTabAt(i).getCustomView().findViewById(R.id.tab_label)).setTextColor(getResources().getColor(R.color.textWhite, null));\n }else {\n ((TextView)tabLayout.getTabAt(i).getCustomView().findViewById(R.id.tab_label)).setTextColor(getResources().getColor(R.color.textDim, null));\n }\n\n }\n }", "title": "" }, { "docid": "d6e696397708d70178903b0d99d59fc1", "score": "0.49869838", "text": "public void setLabelBorder()\n\t\t{\n\t\t\tjLabel1.setBorder(null);jLabel1.setForeground(Color.black);\n\t\t\tjLabel2.setBorder(null);jLabel2.setForeground(Color.black);\n\t\t\tjLabel3.setBorder(null);jLabel3.setForeground(Color.black);\n\t\t\tjLabel4.setBorder(null);jLabel4.setForeground(Color.black);\n\t\t\tjLabel5.setBorder(null);jLabel5.setForeground(Color.black);\n\t\t\tjLabel6.setBorder(null);jLabel6.setForeground(Color.black);\n\t\t\tjLabel7.setBorder(null);jLabel7.setForeground(Color.black);\n\t\t\tjLabel8.setBorder(null);jLabel8.setForeground(Color.black);\n\t\t\tjLabel9.setBorder(null);jLabel9.setForeground(Color.black);\n\t\t\tjLabel10.setBorder(null);jLabel10.setForeground(Color.black);\n\t\t\tjLabel11.setBorder(null);jLabel11.setForeground(Color.black);\n\t\t\tjLabel12.setBorder(null);jLabel12.setForeground(Color.black);\n\t\t\tjLabel13.setBorder(null);jLabel13.setForeground(Color.black);\n\t\t\tjLabel14.setBorder(null);jLabel14.setForeground(Color.black);\n\t\t\tjLabel15.setBorder(null);jLabel15.setForeground(Color.black);\n\t\t\tjLabel16.setBorder(null);jLabel16.setForeground(Color.black);\n\t\t}", "title": "" }, { "docid": "401761050e412cf58612d8e5a8f52d4c", "score": "0.4972483", "text": "public void setLabelStyle(byte labelStyle) {\n this.labelStyle = labelStyle;\n }", "title": "" }, { "docid": "ac0400a9924c4725c681e63f2f10934b", "score": "0.49394074", "text": "public void setLabelStyle(String _labelStyle) {\n\t\tgetStateHelper().put(PropertyKeys.labelStyle, _labelStyle);\n\t}", "title": "" }, { "docid": "d676abd47d86994c05060b151c27aaab", "score": "0.4923418", "text": "void setLabel(java.lang.String label);", "title": "" }, { "docid": "69402adc074ef74598e4c4d0894a2e66", "score": "0.49173748", "text": "@Test\n\tpublic void testReturnLabelColor() {\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testEmptyString)), Color.GRAY);\n\t\n\t\t/*\n\t\t * A sequence of characters causes Parser to return an exit\n\t\t * code of 3, which changes the Label color to Red.\n\t\t */\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testEmptyCharacters)), Color.RED);\n\t\t\n\t\t/*\n\t\t * Integers between 1 and 4 (inclusive) digits are invalid \n\t\t * Patent IDs, and change the color of the Label to Red.\n\t\t */\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testOneDigitNumber)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testTwoDigitNumber)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testThreeDigitNumber)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testFourDigitNumber)), Color.RED);\n\t\t\n\t\t/*\n\t\t * Integers between 5 and 7 (inclusive) digits are valid\n\t\t * Patent IDs and change the color of the Label to Red.\n\t\t */\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testFiveDigitNumber)), Color.GREEN);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testSixDigitNumber)), Color.GREEN);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testSevenDigitNumber)), Color.GREEN);\n\t\t\n\t\t/*\n\t\t * Integers greater than or equal to 8 digits are invalid \n\t\t * Patent IDs, and change the color of the Label to Red.\n\t\t */\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testEightDigitNumber)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testNineDigitNumber)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testTenDigitNumber)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testTwentyDigitNumber)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testThirtyDigitNumber)), Color.RED);\n\t\t\n /*\n * Floating point numbers are invalid Patent IDs and change\n * the color of the Label to Red.\n */\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testFloat1)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testFloat2)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testFloat3)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testBadFloat)), Color.RED);\n\n /*\n * Strings consisting of non-numeric characters are invalid\n * by default and change the color of the Label to Red.\n * Letters, symbols, punctuation, and similar characters are\n * not accepted by the Parser.\n */\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testSingleCharacter)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testShortWord)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testMediumWord)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testLongWord)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testUpperCaseWord)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testWordsAndNumbers)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testSpacesAndNumbers)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testSpacesAndLetters)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testPunctuationCharacters)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testQuotationMarksNumbers)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testJavaUnicode1)), Color.RED);\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testJavaUnicode2)), Color.RED);\n\n\t\t/*\n\t\t * Java Unicode Characters are converted into numbers.\n\t\t * Hence, the testString below is accepted as valid and\n\t\t * changes the color of the Label to Green.\n\t\t */\n\t\tassertEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testJavaUnicode3)), Color.GREEN);\n\t\t\n /*\n * The Label's color should not change to Black under any \n * (normal) circumstance. If it does change to black, then\n * something has gone awry. \n * The only way to test this is to make sure that the Label's\n * color is never changed to Black, by testing it against all\n * the testStrings.\n */\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testEmptyString)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testEmptyCharacters)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testOneDigitNumber)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testTwoDigitNumber)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testThreeDigitNumber)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testFourDigitNumber)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testFiveDigitNumber)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testSixDigitNumber)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testSevenDigitNumber)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testEightDigitNumber)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testNineDigitNumber)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testTenDigitNumber)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testTwentyDigitNumber)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testThirtyDigitNumber)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testFloat1)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testFloat2)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testFloat3)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testSingleCharacter)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testShortWord)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testMediumWord)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testLongWord)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testUpperCaseWord)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testWordsAndNumbers)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testSpacesAndNumbers)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testSpacesAndLetters)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testPunctuationCharacters)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testQuotationMarksNumbers)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testJavaUnicode1)), Color.BLACK);\n\t\tassertNotEquals(InformationGlobal.returnLabelColor(Parser.parseExitCode(testJavaUnicode2)), Color.BLACK);\n\t}", "title": "" }, { "docid": "ed937125f4c4d7b3859febd42d213483", "score": "0.49098018", "text": "@Test\n @UiThread\n public void checkTabSwitch() {\n onView(allOf(withText(\"test5\"), isDescendantOfA(withId(R.id.pager_header))))\n .perform(click())\n .check(matches(isDisplayed()));\n\n // Then I'd like to check that the tab text (test2) matches the current fragment title\n assertThat(((MyFragment)mActivity.getAdapter().getCurrentFragment()).getTitle(), Matchers.equalTo(\"test5\"));\n }", "title": "" }, { "docid": "ae69ae348cc23f049efdf56486903889", "score": "0.49011147", "text": "@Override\r\n public void focusGained(FocusEvent fe) {\r\n tfNomeAnimal.setBackground(Color.GREEN);\r\n }", "title": "" }, { "docid": "2227284c116ee761daa3cfad98383aba", "score": "0.48764765", "text": "@Override\r\n \t\t\tpublic void stateChanged(ChangeEvent arg0) {\n \t\t\t\tint index = tabbedPaneGraphs.getSelectedIndex();\r\n \t\t\t\tif (index < 0)\r\n \t\t\t\t\treturn;\t\t// no tab is currently selected;\r\n \t\t\t\tString fieldWidth = \"10%\";\r\n \t\t\t\tif (0 == index) {\r\n \t\t\t\t\tfieldWidth = \"0%\";\r\n \t\t\t\t\tstatusBar.setGap(0);\r\n \t\t\t\t} else\r\n \t\t\t\t\tstatusBar.setGap(10);\r\n \t\t\t\tstatusBar.updateConstraint(\"timeGranularity\", fieldWidth);\r\n \t\t\t\tstatusBar.updateConstraint(\"distanceGranularity\", fieldWidth);\r\n \t\t\t\tstatusBar.doLayout();\r\n \t\t\t}", "title": "" }, { "docid": "88e1733239be693bbf5b153802fdeb44", "score": "0.48626173", "text": "private void labelShow(String str, String type) {\n Label.setText(str);\n switch (type) {\n case \"error\":\n Label.setForeground(myRed);\n break;\n case \"info\":\n Label.setForeground(myBlue);\n break;\n case \"success\":\n Label.setForeground(myGreen);\n break;\n }\n Label.validate();\n }", "title": "" }, { "docid": "3e37f1e91b1f5075a68d7d034de165be", "score": "0.48609713", "text": "@Test public void setLabelTrue()\n {\n Spherocylinder s = new Spherocylinder(\"test\", 1, 2);\n Assert.assertEquals(\"setLabelTrue test\", \n true, s.setLabel(\"newTest\"));\n \n }", "title": "" }, { "docid": "c902840ad370b73d5b3ba36a2a336acd", "score": "0.48558784", "text": "@Test\n public void test26() throws Throwable {\n StatisticalBarRenderer statisticalBarRenderer0 = new StatisticalBarRenderer();\n StandardCategoryToolTipGenerator standardCategoryToolTipGenerator0 = new StandardCategoryToolTipGenerator();\n BoxAndWhiskerRenderer boxAndWhiskerRenderer0 = new BoxAndWhiskerRenderer();\n CategorySeriesLabelGenerator categorySeriesLabelGenerator0 = boxAndWhiskerRenderer0.getLegendItemURLGenerator();\n statisticalBarRenderer0.setLegendItemToolTipGenerator((CategorySeriesLabelGenerator) null);\n Paint paint0 = statisticalBarRenderer0.getLegendTextPaint(11);\n statisticalBarRenderer0.setBaseToolTipGenerator((CategoryToolTipGenerator) standardCategoryToolTipGenerator0, false);\n Color color0 = (Color)statisticalBarRenderer0.getErrorIndicatorPaint();\n }", "title": "" }, { "docid": "d48beb5c56b79b141ac4086656ee7b8f", "score": "0.48524156", "text": "public boolean setTabTitle(TabbedCanvas tab, String title)\n {\n for(int i = 0; i < tabbedPane.getTabCount(); i++) {\n TabbedCanvas curTab = (TabbedCanvas) tabbedPane.getComponentAt(i);\n if(curTab == tab) {\n tabbedPane.setTitleAt(i, title);\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "1ecc7c52e67046f3331e71b9269105bd", "score": "0.4840244", "text": "void setLabelSimple(String labelSimple);", "title": "" }, { "docid": "7eb1dccad0541bf8e14cd5489bb0d21e", "score": "0.48304725", "text": "@Test\n\tpublic void testPasteAtExistingDefaultLabel() throws Exception {\n\t\tgoTo(toolTwo, 0x0331);\n\n\t\tmakeSelection(toolTwo, programTwo, addr(programTwo, 0x0331), addr(programTwo, 0x0334));\n\n\t\tcopyToolTwoLabels();\n\n\t\t// in Browser(1) go to 331 -- should contain a default label\n\t\tgoTo(toolOne, 0x0331);\n\n\t\tSymbol[] symbols = programOne.getSymbolTable().getSymbols(addr(programOne, 0x0331));\n\n\t\tassertTrue(symbols[0].getSource() == SourceType.DEFAULT);\n\n\t\tcb.goToField(addr(programOne, 0x0331), LabelFieldFactory.FIELD_NAME, 0, 0);\n\t\tListingTextField f = (ListingTextField) cb.getCurrentField();\n\t\tassertEquals(symbols[0].getName(), f.getText());\n\n\t\tpasteToolOne();\n\n\t\t// default label should be replaced by RSR10\n\t\tassertNull(\n\t\t\tprogramOne.getSymbolTable().getSymbol(\"LAB_0331\", addr(programOne, 0x0331), null));\n\t\tSymbol symbol = getUniqueSymbol(programOne, \"RSR10\", null);\n\t\tassertNotNull(symbol);\n\n\t\tcb.goToField(addr(programOne, 0x0331), LabelFieldFactory.FIELD_NAME, 0, 0);\n\t\tf = (ListingTextField) cb.getCurrentField();\n\t\tassertEquals(symbol.getName(), f.getText());\n\n\t\tundo(programOne);\n\t\tcb.goToField(addr(programOne, 0x0331), LabelFieldFactory.FIELD_NAME, 0, 0);\n\t\tf = (ListingTextField) cb.getCurrentField();\n\t\tsymbols = programOne.getSymbolTable().getSymbols(addr(programOne, 0x0331));\n\t\tassertEquals(1, symbols.length);\n\t\tassertEquals(symbols[0].getName(), f.getText());\n\n\t\tredo(programOne);\n\t\tcb.goToField(addr(programOne, 0x0331), LabelFieldFactory.FIELD_NAME, 0, 0);\n\t\tf = (ListingTextField) cb.getCurrentField();\n\t\tassertEquals(\"RSR10\", f.getText());\n\t}", "title": "" }, { "docid": "a4fc009b76395fd309c06abb8d183b0a", "score": "0.4829907", "text": "CustomListLabel() {\n\t\tsetOpaque(true);//set transparent\n\t\tsetFont(new Font(Font.DIALOG, Font.PLAIN, 18));//set font of the renderer\n\t\tthis.setBorder(new EmptyBorder(5, 10, 5, 0));//set an empty border\n\t\tsetForeground(new Color(255, 255, 255));//set the text color to white\n\t}", "title": "" }, { "docid": "84bd25876a9910a79fe6b1ce56f6f503", "score": "0.48285335", "text": "public LabelWidget (Scene scene, String label) {\n super (scene);\n setOpaque (false);\n// setCursor (new Cursor (Cursor.TEXT_CURSOR));\n setLabel (label);\n setCheckClipping (true);\n }", "title": "" }, { "docid": "b1913db67594e5e8d14fbec039559aa8", "score": "0.4815622", "text": "public void testBoldFromToolbar() throws Exception {\n // Not available in fixed tabbar\n if (!TestsUtil.isDynamicTabbar()) {\n return;\n }\n\n SWTBotGefEditPart myEClassEP = selectAndCheckEditPart(\"myEClass\", AbstractDiagramListEditPart.class);\n doTestStyleCustomizationThroughTabbar(myEClassEP, \"Bold Font Style\", NORMAL_FONT_STATE_PREDICATE, BOLD_FONT_STATE_PREDICATE);\n }", "title": "" }, { "docid": "e3abb6a940a6471379f8574dc65d2460", "score": "0.4812277", "text": "private void del_underline(java.awt.event.MouseEvent evt) {\n\t\tjLabel2.setForeground(Color.black);\n\t}", "title": "" }, { "docid": "40556562ff49b5bb96e0f2be53213b0d", "score": "0.48100212", "text": "@Override\n\tpublic void setLabel(String label) {\n\t\t\n\t}", "title": "" }, { "docid": "40556562ff49b5bb96e0f2be53213b0d", "score": "0.48100212", "text": "@Override\n\tpublic void setLabel(String label) {\n\t\t\n\t}", "title": "" }, { "docid": "40556562ff49b5bb96e0f2be53213b0d", "score": "0.48100212", "text": "@Override\n\tpublic void setLabel(String label) {\n\t\t\n\t}", "title": "" }, { "docid": "4232eddc9bbb7338beca7484926ec473", "score": "0.48075163", "text": "private void adjustDeviceLabel() {\n int selectedDevice = pseudoDevice;\n try {\n deviceModel = (AssocModel) cbxDevice.getModel();\n selectedDevice = deviceModel.getSelectedNumber();\n } catch (Throwable ignored) {\n }\n deviceLabel.setEnabled(selectedDevice != pseudoDevice);\n }", "title": "" }, { "docid": "d801cdc1d97bcafa40a530172de66d14", "score": "0.4784071", "text": "@Test\n public void test52() throws Throwable {\n ScatterRenderer scatterRenderer0 = new ScatterRenderer();\n boolean boolean0 = scatterRenderer0.getUseOutlinePaint();\n scatterRenderer0.setBaseItemLabelGenerator((CategoryItemLabelGenerator) null);\n }", "title": "" }, { "docid": "6e7a7735eede5ff0f0cd7afe2b8e4bb0", "score": "0.47827134", "text": "boolean hasLabel();", "title": "" }, { "docid": "6e7a7735eede5ff0f0cd7afe2b8e4bb0", "score": "0.47827134", "text": "boolean hasLabel();", "title": "" }, { "docid": "6e7a7735eede5ff0f0cd7afe2b8e4bb0", "score": "0.47827134", "text": "boolean hasLabel();", "title": "" }, { "docid": "6e7a7735eede5ff0f0cd7afe2b8e4bb0", "score": "0.47827134", "text": "boolean hasLabel();", "title": "" }, { "docid": "6e7a7735eede5ff0f0cd7afe2b8e4bb0", "score": "0.47827134", "text": "boolean hasLabel();", "title": "" }, { "docid": "6e7a7735eede5ff0f0cd7afe2b8e4bb0", "score": "0.47827134", "text": "boolean hasLabel();", "title": "" }, { "docid": "6e7a7735eede5ff0f0cd7afe2b8e4bb0", "score": "0.47827134", "text": "boolean hasLabel();", "title": "" }, { "docid": "6e7a7735eede5ff0f0cd7afe2b8e4bb0", "score": "0.47827134", "text": "boolean hasLabel();", "title": "" }, { "docid": "5d362a42509f6ffb28d112bb534e57de", "score": "0.47782272", "text": "private void updateStatusLabel()\n {\n StringBuilder status = new StringBuilder(_status);\n if (!_displayError) {\n for (int ii = 0; ii < _statusDots; ii++) {\n status.append(\" .\");\n }\n }\n _newlab = createLabel(status.toString(), new Color(_ifc.statusText, true));\n // set the width of the label to the width specified\n int width = _ifc.status.width;\n if (width == 0) {\n // unless we had trouble reading that width, in which case use the entire window\n width = getWidth();\n }\n // but the window itself might not be initialized and have a width of 0\n if (width > 0) {\n _newlab.setTargetWidth(width);\n }\n repaint();\n }", "title": "" }, { "docid": "42c318a2340ef857d5d9c4e2cbb0fdea", "score": "0.4774104", "text": "@Test\n public void test75() throws Throwable {\n LayeredBarRenderer layeredBarRenderer0 = new LayeredBarRenderer();\n CombinedRangeXYPlot combinedRangeXYPlot0 = new CombinedRangeXYPlot();\n PlotOrientation plotOrientation0 = combinedRangeXYPlot0.getOrientation();\n JTextField jTextField0 = new JTextField(0);\n DefaultCaret defaultCaret0 = new DefaultCaret();\n RectangleInsets rectangleInsets0 = Axis.DEFAULT_AXIS_LABEL_INSETS;\n LengthAdjustmentType lengthAdjustmentType0 = LengthAdjustmentType.EXPAND;\n XYBlockRenderer xYBlockRenderer0 = new XYBlockRenderer();\n RectangleAnchor rectangleAnchor0 = xYBlockRenderer0.getBlockAnchor();\n Point2D.Double point2D_Double0 = (Point2D.Double)layeredBarRenderer0.calculateDomainMarkerTextAnchorPoint((Graphics2D) null, plotOrientation0, defaultCaret0, defaultCaret0, rectangleInsets0, lengthAdjustmentType0, rectangleAnchor0);\n ObjectList objectList0 = layeredBarRenderer0.seriesBarWidthList;\n }", "title": "" }, { "docid": "fa5391cadc7cc36c90aa4b466168ba1f", "score": "0.47740266", "text": "public boolean isLabelSet();", "title": "" }, { "docid": "d974a275fddfa27c9763fb9396acfb4c", "score": "0.47720808", "text": "@Test\n\tpublic void testCopyPasteLabels() throws Exception {\n\n\t\tint transactionID = programOne.startTransaction(\"test\");\n\t\tprogramOne.getSymbolTable()\n\t\t\t\t.createLabel(addr(programOne, 0x032a), \"MyLabel\",\n\t\t\t\t\tSourceType.USER_DEFINED);\n\t\tprogramOne.endTransaction(transactionID, true);\n\n\t\tgoTo(toolTwo, 0x0326);\n\n\t\t// in Browser(2) select the range 0331 through 0334, (contains label RSR10)\n\t\tmakeSelection(toolTwo, programTwo, addr(programTwo, 0x0331), addr(programTwo, 0x0334));\n\n\t\tcopyToolTwoLabels();\n\n\t\tgoTo(toolOne, 0x32a);\n\n\t\tpasteToolOne();\n\n\t\t// the label should be added\n\t\tSymbol symbol = getUniqueSymbol(programOne, \"RSR10\", null);\n\t\tassertNotNull(symbol);\n\t\tassertEquals(addr(programOne, 0x32a), symbol.getAddress());\n\t\tassertNotNull(getUniqueSymbol(programOne, \"MyLabel\", null));\n\n\t\tcb.goToField(addr(programOne, 0x032a), LabelFieldFactory.FIELD_NAME, 0, 0);\n\t\tListingTextField f = (ListingTextField) cb.getCurrentField();\n\t\tassertEquals(\"RSR10\", f.getFieldElement(0, 0).getText());\n\t\tassertEquals(\"MyLabel\", f.getFieldElement(1, 0).getText());\n\n\t\tcb.goToField(addr(programOne, 0x032d), EolCommentFieldFactory.FIELD_NAME, 0, 0);\n\t\tf = (ListingTextField) cb.getCurrentField();\n\t\tassertEquals(\"Set the SP to RAM:ESAV\", f.getText());\n\n\t\tundo(programOne);\n\t\tcb.goToField(addr(programOne, 0x032a), LabelFieldFactory.FIELD_NAME, 0, 0);\n\t\tf = (ListingTextField) cb.getCurrentField();\n\t\tassertEquals(\"MyLabel\", f.getText());\n\t\tassertTrue(\n\t\t\t!cb.goToField(addr(programOne, 0x032d), EolCommentFieldFactory.FIELD_NAME, 0, 0));\n\n\t\tredo(programOne);\n\t\tcb.goToField(addr(programOne, 0x032a), LabelFieldFactory.FIELD_NAME, 0, 0);\n\t\tf = (ListingTextField) cb.getCurrentField();\n\t\tassertEquals(\"RSR10\", f.getFieldElement(0, 0).getText());\n\t\tassertEquals(\"MyLabel\", f.getFieldElement(1, 0).getText());\n\t}", "title": "" }, { "docid": "12c1c4941e057a6f3eb6daa5b82ab8c6", "score": "0.4766857", "text": "@Override\n public void mouseExited(MouseEvent mouseEvent) {\n JLabel label = (JLabel) mouseEvent.getSource();\n if(!label.getBackground().equals(new Color(50, 150, 213))) {\n label.setBackground(new Color(232, 232, 232));\n }\n }", "title": "" }, { "docid": "b152211c02e5c76ce3e12c2bd7aaee03", "score": "0.47632062", "text": "public void stateChanged(ChangeEvent e){\n \tJTabbedPane tabSource = (JTabbedPane)e.getSource();\n \tString tab = tabSource.getTitleAt(tabSource.getSelectedIndex());\n \tif(tab.equals(\"Lamps\")){\n \t\tSystem.out.println(\"Default Selected\");\n \t\tthis.whichPane = 0; \n \t\tsetDefaults();\n getStatusBar().clearWarning();\n \t}\n \tif(tab.equals(\"User Defined\")){\n \t\tSystem.out.println(\"User Defined Selected\");\n \t\tthis.whichPane = 1; \n \t\tsetUserDefaults();\n \t}\n }", "title": "" }, { "docid": "bb81abe27a633b06ea557737f780d32f", "score": "0.47604972", "text": "public void setLabelClipper(LabelClipper labelClipper) {\n this.labelClipper = labelClipper;\n repaint();\n }", "title": "" }, { "docid": "6a3661c9ca5349a092927efd04f34519", "score": "0.47597292", "text": "private void initMenuLabelSetup(JLabel label, String text,int scaleFactor) {\r\n label.setFont(new Font(\"Consolas\",Font.ITALIC, TITLE_FONT_SIZE/scaleFactor));\r\n label.setText(text);\r\n label.setForeground(Color.white);\r\n }", "title": "" }, { "docid": "cfb57592196583487d0220fb6a3d4b7b", "score": "0.4743075", "text": "JLabel addLabel(String text, Color foreground, Object constraints);", "title": "" }, { "docid": "c9c1b64d4aeff670bb29e709486625bd", "score": "0.47421223", "text": "@Override\r\n protected void installDefaults() {\n tabInsets = UIManager.getInsets(\"TabbedPane.tabInsets\");\r\n UIManager.getDefaults().put(\"TabbedPane.selected\", SELECTED_COLOR);\r\n UIManager.getDefaults().put(\"TabbedPane.selectedTabPadInsets\", tabInsets);\r\n UIManager.getDefaults().put(\"TabbedPane.tabAreaInsets\", new Insets(0, 0, 0, 0));\r\n\r\n super.installDefaults();\r\n lightHighlight = Color.gray;\r\n // think about resetting defaults here\r\n }", "title": "" }, { "docid": "48ce7f2181beb47201fbf0dee1810872", "score": "0.47411865", "text": "public void createUI() {\r\n\t\tthis.setWidth(\"100px\");\r\n\t\tif (lhUser.getAdmin() == 0) {\r\n\t\t\tif(group.getIsMandatory()==1){\r\n\t\t\tString lblTitle = group.getGroupName();\r\n\t\t\tString tempTitle = null;\r\n\t\t\tif (lblTitle.length() > 8) {\r\n\t\t\t\ttempTitle = lblTitle.substring(0, 8);\r\n\t\t\t\ttempTitle = tempTitle + \"...\";\r\n\t\t\t\tlblTabName = new Label(tempTitle);\r\n\t\t\t} else {\r\n\r\n\t\t\t\tlblTabName = new Label(group.getGroupName());\r\n\t\t\t}\r\n\r\n\t\t\tlblTabName.setStylePrimaryName(\"groupTabWidgetLabel\");\r\n\r\n\t\t\tadd(lblTabName);\r\n\r\n\t\t\tthis.setCellHorizontalAlignment(lblTabName,\r\n\t\t\t\t\tHorizontalPanel.ALIGN_LEFT);\r\n\t\t\t}\r\n\t\t\telse if(group.getIsMandatory()==0){\r\n\r\n\t\t\t\tString lblTitle = group.getGroupName();\r\n\t\t\t\tString tempTitle = null;\r\n\t\t\t\tif (lblTitle.length() > 8) {\r\n\t\t\t\t\ttempTitle = lblTitle.substring(0, 8);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttempTitle = tempTitle + \"...\";\r\n\t\t\t\t\tsetLblTabName(new Label(tempTitle));\r\n\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tsetLblTabName(new Label(group.getGroupName()));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tgetLblTabName().setStylePrimaryName(\"groupTabWidgetLabel\");\r\n\t\t\t\t\r\n\t\t\t\timage = new Image(\"images/close-green.png\");\r\n\t\t\t\tdeletePushButton = new PushButton(image);\r\n\t\t\t\tdeletePushButton.setPixelSize(20, 10);\r\n\t\t\t\timage.setVisible(false);\r\n\r\n\t\t\t\tgetLblTabName().setWidth(\"85px\");\r\n\t\t\t\tadd(getLblTabName());\r\n\t\t\t deletePushButton.setStylePrimaryName(\"pushBtn\");\r\n\t\t\t\tadd(deletePushButton);\r\n\t\t\t\tthis.setCellHorizontalAlignment(getLblTabName(),\r\n\t\t\t\t\t\tHorizontalPanel.ALIGN_LOCALE_START);\r\n\t\t\t\tthis.setCellHorizontalAlignment(image, HorizontalPanel.ALIGN_LOCALE_END);\r\n\r\n\t\t\t\tgetLblTabName().addMouseOverHandler(new MouseOverHandler() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onMouseOver(MouseOverEvent event) {\r\n\t\t\t\t\t\tif (!image.isVisible())\r\n\t\t\t\t\t\t\timage.setVisible(true);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tgetLblTabName().addMouseOutHandler(new MouseOutHandler() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onMouseOut(MouseOutEvent event) {\r\n\t\t\t\t\t\t\timage.setVisible(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\tdeletePushButton.addMouseOverHandler(new MouseOverHandler() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onMouseOver(MouseOverEvent event) {\r\n\t\t\t\t\t\tif (!image.isVisible())\r\n\t\t\t\t\t\timage.setVisible(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tdeletePushButton.addMouseOutHandler(new MouseOutHandler() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onMouseOut(MouseOutEvent event) {\r\n\t\t\t\t\t\timage.setVisible(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\tdeletePushButton.addClickHandler(new ClickHandler() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t\t\tWidget arg0 = (Widget) event.getSource();\r\n\t\t\t\t\t\tint left = arg0.getAbsoluteLeft() - 25;\r\n\t\t\t\t\t\tint top = arg0.getAbsoluteTop() + 25;\r\n\r\n\t\t\t\t\t\tpopupPanel.setAnimationEnabled(true);\r\n\t\t\t\t\t\tpopupPanel.setAutoHideEnabled(true);\r\n\r\n\t\t\t\t\t\tpopupPanel.setPopupPosition(left, top);\r\n\r\n\t\t\t\t\t\tpopupPanel.show();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}else if (lhUser.getAdmin() == 1) {\r\n\r\n\t\t\tString lblTitle = group.getGroupName();\r\n\t\t\tString tempTitle = null;\r\n\t\t\tif (lblTitle.length() > 8) {\r\n\t\t\t\ttempTitle = lblTitle.substring(0, 8);\r\n\t\t\t\t\r\n\t\t\t\ttempTitle = tempTitle + \"...\";\r\n\t\t\t\tsetLblTabName(new Label(tempTitle));\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tsetLblTabName(new Label(group.getGroupName()));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgetLblTabName().setStylePrimaryName(\"groupTabWidgetLabel\");\r\n\t\t\t\r\n\t\t\timage = new Image(\"images/close-green.png\");\r\n\t\t\tdeletePushButton = new PushButton(image);\r\n\t\t\tdeletePushButton.setPixelSize(20, 10);\r\n\t\t\t\r\n\t\t\timage.setVisible(false);\r\n\t\t\tgetLblTabName().setWidth(\"85px\");\r\n\t\t\tadd(getLblTabName());\r\n\t\t deletePushButton.setStylePrimaryName(\"pushBtn\");\r\n\t\t\tadd(deletePushButton);\r\n\t\t\tthis.setCellHorizontalAlignment(getLblTabName(),HorizontalPanel.ALIGN_LOCALE_START);\r\n\t\t\tthis.setCellHorizontalAlignment(image, HorizontalPanel.ALIGN_LOCALE_END);\r\n\r\n\t\t\tgetLblTabName().addMouseOverHandler(new MouseOverHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onMouseOver(MouseOverEvent event) {\r\n\t\t\t\t\tif (!image.isVisible())\r\n\t\t\t\t\t\timage.setVisible(true);\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tgetLblTabName().addMouseOutHandler(new MouseOutHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onMouseOut(MouseOutEvent event) {\r\n\t\t\t\t\t\timage.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tdeletePushButton.addMouseOverHandler(new MouseOverHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onMouseOver(MouseOverEvent event) {\r\n\t\t\t\t\tif (!image.isVisible())\r\n\t\t\t\t\timage.setVisible(true);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tdeletePushButton.addMouseOutHandler(new MouseOutHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onMouseOut(MouseOutEvent event) {\r\n\t\t\t\t\timage.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tdeletePushButton.addClickHandler(new ClickHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t\tWidget arg0 = (Widget) event.getSource();\r\n\t\t\t\t\tint left = arg0.getAbsoluteLeft() - 25;\r\n\t\t\t\t\tint top = arg0.getAbsoluteTop() + 25;\r\n\r\n\t\t\t\t\tpopupPanel.setAnimationEnabled(true);\r\n\t\t\t\t\tpopupPanel.setAutoHideEnabled(true);\r\n\r\n\t\t\t\t\tpopupPanel.setPopupPosition(left, top);\r\n\r\n\t\t\t\t\tpopupPanel.show();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c28a46334d20424b0479881134ea5886", "score": "0.47401643", "text": "@Test\n\tpublic void testPasteAtUserLabel() throws Exception {\n\t\tgoTo(toolTwo, 0x0331);\n\n\t\tmakeSelection(toolTwo, programTwo, addr(programTwo, 0x0331), addr(programTwo, 0x0334));\n\n\t\tcopyToolTwoLabels();\n\n\t\tSymbol symbol =\n\t\t\tprogramOne.getSymbolTable().getSymbol(\"LAB_0331\", addr(programOne, 0x0331), null);\n\t\t// in Browser(1) change default label at 331 to JUNK\n\t\tint transactionID = programOne.startTransaction(\"test\");\n\t\tprogramOne.getSymbolTable()\n\t\t\t\t.createLabel(addr(programOne, 0x0331), \"JUNK\",\n\t\t\t\t\tSourceType.USER_DEFINED);\n\t\tprogramOne.endTransaction(transactionID, true);\n\t\t//\n\t\t// in Browser(1) go to 331\n\t\tgoTo(toolOne, 0x331);\n\n\t\tpasteToolOne();\n\n\t\t// verify that RSR10 and JUNK exist\n\t\tsymbol = getUniqueSymbol(programOne, \"RSR10\", null);\n\t\tassertNotNull(symbol);\n\t\tassertEquals(addr(programOne, 0x331), symbol.getAddress());\n\t\tsymbol = getUniqueSymbol(programOne, \"JUNK\", null);\n\t\tassertNotNull(symbol);\n\t\tassertEquals(addr(programOne, 0x331), symbol.getAddress());\n\n\t\tcb.goToField(addr(programOne, 0x0331), LabelFieldFactory.FIELD_NAME, 0, 0);\n\t\tListingTextField f = (ListingTextField) cb.getCurrentField();\n\t\tassertEquals(2, f.getNumRows());\n\t\tassertEquals(\"RSR10\", f.getFieldElement(0, 0).getText());\n\t\tassertEquals(\"JUNK\", f.getFieldElement(1, 0).getText());\n\n\t\tundo(programOne);\n\t\tcb.goToField(addr(programOne, 0x0331), LabelFieldFactory.FIELD_NAME, 0, 0);\n\t\tf = (ListingTextField) cb.getCurrentField();\n\t\tassertEquals(\"JUNK\", f.getText());\n\n\t\tredo(programOne);\n\t\tcb.goToField(addr(programOne, 0x0331), LabelFieldFactory.FIELD_NAME, 0, 0);\n\t\tf = (ListingTextField) cb.getCurrentField();\n\n\t\tassertEquals(2, f.getNumRows());\n\t\tassertEquals(\"RSR10\", f.getFieldElement(0, 0).getText());\n\t\tassertEquals(\"JUNK\", f.getFieldElement(1, 0).getText());\n\t}", "title": "" }, { "docid": "9303ff8a280c6c3ac2ac1f8220d657af", "score": "0.47395605", "text": "@Override\n public void focusGained(FocusEvent e) {\n if (getText().equals(hint)) {\n setText(\"\");\n setForeground(Color.BLACK);\n } else {\n setText(getText());\n }\n }", "title": "" }, { "docid": "719ef63e39451bb40443914c035414e3", "score": "0.47363606", "text": "private void changeTabsFont() {\n ViewGroup vg = (ViewGroup) tabLayout.getChildAt(0);\n int tabsCount = vg.getChildCount();\n for (int j = 0; j < tabsCount; j++) {\n ViewGroup vgTab = (ViewGroup) vg.getChildAt(j);\n int tabChildCount = vgTab.getChildCount();\n for (int i = 0; i < tabChildCount; i++) {\n View tabViewChild = vgTab.getChildAt(i);\n if (tabViewChild instanceof TextView) {\n ((TextView) tabViewChild).setTypeface(Typeface.createFromAsset(getAssets(), \"fonts/Roboto-Regular.ttf\"));\n }\n }\n }\n }", "title": "" }, { "docid": "8721f97db9a34c5793fbf1e7e2072a78", "score": "0.4732697", "text": "@Test\n public void test29() throws Throwable {\n LayeredBarRenderer layeredBarRenderer0 = new LayeredBarRenderer();\n CombinedRangeXYPlot combinedRangeXYPlot0 = new CombinedRangeXYPlot();\n PlotOrientation plotOrientation0 = combinedRangeXYPlot0.getOrientation();\n JTextField jTextField0 = new JTextField(0);\n Rectangle rectangle0 = jTextField0.modelToView(8);\n RectangleInsets rectangleInsets0 = Axis.DEFAULT_AXIS_LABEL_INSETS;\n LengthAdjustmentType lengthAdjustmentType0 = LengthAdjustmentType.EXPAND;\n XYBlockRenderer xYBlockRenderer0 = new XYBlockRenderer();\n RectangleAnchor rectangleAnchor0 = xYBlockRenderer0.getBlockAnchor();\n // Undeclared exception!\n try { \n layeredBarRenderer0.calculateDomainMarkerTextAnchorPoint((Graphics2D) null, plotOrientation0, (Rectangle2D) null, (Rectangle2D) null, rectangleInsets0, lengthAdjustmentType0, rectangleAnchor0);\n } catch(IllegalArgumentException e) {\n //\n // Null 'base' argument.\n //\n assertThrownBy(\"org.jfree.chart.util.RectangleInsets\", e);\n }\n }", "title": "" }, { "docid": "889abfcbb46b115142b37fc017579d53", "score": "0.4725825", "text": "boolean isSetLabel();", "title": "" }, { "docid": "ab661a0e13847941cba995df2a51ee00", "score": "0.47191092", "text": "@Test\n public void test36() throws Throwable {\n LayeredBarRenderer layeredBarRenderer0 = new LayeredBarRenderer();\n int int0 = layeredBarRenderer0.getPassCount();\n ScatterRenderer scatterRenderer0 = new ScatterRenderer();\n StatisticalBarRenderer statisticalBarRenderer0 = new StatisticalBarRenderer();\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n Color color0 = (Color)combinedDomainCategoryPlot0.getRangeCrosshairPaint();\n statisticalBarRenderer0.setErrorIndicatorPaint(color0);\n }", "title": "" }, { "docid": "ff72de38987e6f54694c34a428ffc56c", "score": "0.47183", "text": "@Override\n public void mouseEntered(MouseEvent mouseEvent) {\n JLabel label = (JLabel) mouseEvent.getSource();\n if(!label.getBackground().equals(new Color(50, 150, 213))) {\n label.setBackground(new Color(219, 219, 219));\n }\n }", "title": "" }, { "docid": "141964dfed2834e9f61144bff200e5fd", "score": "0.47074518", "text": "private void buildLabel(Label label) {\r\n\t\tlabel.setAlignment(Pos.CENTER);\r\n\t\tlabel.setPrefSize(160, 40);\r\n\t\tlabel.setBorder(\r\n\t\t\t\tnew Border(new BorderStroke(grey, grey, grey, grey, BorderStrokeStyle.SOLID, BorderStrokeStyle.SOLID,\r\n\t\t\t\t\t\tBorderStrokeStyle.SOLID, BorderStrokeStyle.SOLID, null, new BorderWidths(1), null)));\r\n\t}", "title": "" }, { "docid": "c0b003b098f36c6be08d72c5a5334618", "score": "0.47056916", "text": "boolean isLabelVisible();", "title": "" }, { "docid": "837d14519d00a17e8c6aa89c82f4d8ee", "score": "0.46925005", "text": "public void setLabel(String theLabel) {\n\t\t_myLabel.setFixedSize(false);\n\t\t_myLabel.set(theLabel);\n\t\t_myLabel.setFixedSize(true);\n\t\tsetWidth(_myLabel.width());\n\t}", "title": "" }, { "docid": "2adcb89be891cdb9c7ee5b314585d7f8", "score": "0.46883848", "text": "@Test public void setLabelFalse()\n {\n Spherocylinder s = new Spherocylinder(\"test\", 1, 2);\n Assert.assertEquals(\"setLabelFalse test\", \n false, s.setLabel(null)); \n }", "title": "" }, { "docid": "9b6c9ab2202c6600ea0ace9a26479656", "score": "0.4687336", "text": "@Override\r\n\tpublic void getTextToLabel() {\n\r\n\t}", "title": "" }, { "docid": "f955b993faaa7127b8040376598dbcd9", "score": "0.4679412", "text": "private void checkTextSize(){\n if(Utils.SCREEN_SIZE < 1024 ){\n scoreScreenTitleLabel.setTextSize(scoreScreenTitleLabel.getTextSize()*0.55f);\n }\n }", "title": "" }, { "docid": "a4246f1d1ad39113954ad48c580a6e25", "score": "0.46773496", "text": "@Override\n\tpublic void updateLabel() {\n\t\t\n\t}", "title": "" }, { "docid": "a4246f1d1ad39113954ad48c580a6e25", "score": "0.46773496", "text": "@Override\n\tpublic void updateLabel() {\n\t\t\n\t}", "title": "" }, { "docid": "debf6be9411c6383a85a4dd9dac2760f", "score": "0.46770552", "text": "private void initializeLabel(JLabel label, Dimension size)\n { label.setPreferredSize(size);\n label.setMaximumSize(size);\n label.setMinimumSize(size);\n\n label.setVerticalAlignment(SwingConstants.CENTER);\n label.setHorizontalAlignment(SwingConstants.CENTER);\n\n label.setOpaque(true);\n label.setBackground(LABEL_BG);\n }", "title": "" }, { "docid": "b6759e240b7ecf94961b1d40c123051e", "score": "0.46764514", "text": "@Override\n public void setPrompt2jTextComponent(String prompt, JTextComponent jtc) {\n final String _prompt = prompt.trim();\n if (jtc.getText().isEmpty()) {\n\n Font oldFont = jtc.getFont();\n Font newFont = new Font(oldFont.getName(), Font.BOLD, oldFont.getSize());\n jtc.setFont(newFont);\n jtc.setForeground(Color.LIGHT_GRAY);\n\n jtc.setText(_prompt);\n }\n\n jtc.addFocusListener(new FocusAdapter() {\n boolean ischange = false;\n\n @Override\n public void focusLost(FocusEvent e) {\n JTextComponent c = (JTextComponent) e.getComponent();\n if (c.getText().isEmpty()) {\n c.setText(_prompt);\n Font oldFont = jtc.getFont();\n Font newFont = new Font(oldFont.getName(), Font.BOLD, oldFont.getSize());\n jtc.setFont(newFont);\n c.setForeground(Color.LIGHT_GRAY);\n }\n }\n\n @Override\n public void focusGained(FocusEvent e) {\n JTextComponent c = (JTextComponent) e.getComponent();\n// if (c.getText().isEmpty()) {\n// c.setText(\"\");\n// c.setCaretPosition(0);\n// c.setForeground(Color.BLACK);\n// }\n if (_prompt.equals(c.getText())) {\n c.setCaretPosition(0);\n Font oldFont = jtc.getFont();\n Font newFont = new Font(oldFont.getName(), Font.BOLD, oldFont.getSize());\n jtc.setFont(newFont);\n c.setForeground(Color.LIGHT_GRAY);\n }\n }\n });\n\n jtc.addKeyListener(new KeyAdapter() {\n @Override\n public void keyPressed(KeyEvent e) {\n JTextComponent c = (JTextComponent) e.getComponent();\n if (_prompt.equals(c.getText())) {\n c.setText(\"\");\n Font oldFont = jtc.getFont();\n Font newFont = new Font(oldFont.getName(), Font.TYPE1_FONT, oldFont.getSize());\n jtc.setFont(newFont);\n c.setForeground(Color.BLACK);\n }\n// \n// if(c.getText().isEmpty()){\n// c.setText(_prompt);\n// c.setForeground(Color.GRAY);\n// }\n\n }\n\n });\n\n }", "title": "" }, { "docid": "6c987c985ba5305a6cb11fa84868f839", "score": "0.46726504", "text": "public CustomTabPanel appendSeparator(String label){\n\t\tMatteBorder mb = new MatteBorder(1, 0, 0, 0, Color.BLACK);\n\t\tTitledBorder tb = new TitledBorder(mb, label, TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION);\n\t\tJPanel component = new JPanel();\n\t\tcomponent.setBorder(tb);\n\t\taddComponent(component,controls.size()+headersCount,0,2,1);\n\t\theadersCount++;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "ceefd298110cb3c69a124b325d912e10", "score": "0.46647242", "text": "void unsetLabel();", "title": "" }, { "docid": "f4e42b8b71ddd3d0fb9c06d6c7389850", "score": "0.46606082", "text": "private void switchTab(Object source) {\r\n SingleSelectionModel<Tab> selection = contentPane.getSelectionModel();\r\n Tab oldTab = selection.getSelectedItem();\r\n if (oldTab == newsTab) {\r\n newsLabel.getStyleClass().remove(\"selectedItem\");\r\n } else if (oldTab == optimizeTab) {\r\n optimizeLabel.getStyleClass().remove(\"selectedItem\");\r\n } else if (oldTab == skinsTab) {\r\n skinsLabel.getStyleClass().remove(\"selectedItem\");\r\n } else if (oldTab == settingsTab) {\r\n settingsLabel.getStyleClass().remove(\"selectedItem\");\r\n } else if (oldTab == launchOptionsTab && source != profileEditorTab) {\r\n launchOptionsLabel.getStyleClass().remove(\"selectedItem\");\r\n } else if (oldTab == profileEditorTab) {\r\n //Show play button\r\n if (!kernel.getDownloader().isDownloading()) {\r\n playPane.setVisible(true);\r\n }\r\n launchOptionsLabel.getStyleClass().remove(\"selectedItem\");\r\n } else if (oldTab == loginTab) {\r\n newsLabel.getStyleClass().remove(\"selectedItem\");\r\n skinsLabel.getStyleClass().remove(\"selectedItem\");\r\n settingsLabel.getStyleClass().remove(\"selectedItem\");\r\n launchOptionsLabel.getStyleClass().remove(\"selectedItem\");\r\n }\r\n if (source == newsLabel) {\r\n newsLabel.getStyleClass().add(\"selectedItem\");\r\n selection.select(newsTab);\r\n } else if (source == optimizeLabel) {\r\n optimizeLabel.getStyleClass().add(\"selectedItem\");\r\n selection.select(optimizeTab);\r\n } else if (source == skinsLabel) {\r\n skinsLabel.getStyleClass().add(\"selectedItem\");\r\n selection.select(skinsTab);\r\n loadTextures();\r\n } else if (source == settingsLabel) {\r\n settingsLabel.getStyleClass().add(\"selectedItem\");\r\n selection.select(settingsTab);\r\n } else if (source == launchOptionsLabel) {\r\n launchOptionsLabel.getStyleClass().add(\"selectedItem\");\r\n selection.select(launchOptionsTab);\r\n if (!profileListLoaded) {\r\n loadProfileList();\r\n }\r\n profileList.getSelectionModel().clearSelection();\r\n } else if (source == profileEditorTab) {\r\n //Hide play button\r\n playPane.setVisible(false);\r\n selection.select(profileEditorTab);\r\n }\r\n }", "title": "" }, { "docid": "0b342bc456fea71e175f2cb82604047d", "score": "0.4660069", "text": "private Label initChildLabel(Pane container, WDK_PropertyType labelProperty, String styleClass) {\r\n Label label = initLabel(labelProperty, styleClass);\r\n container.getChildren().add(label);\r\n return label;\r\n }", "title": "" }, { "docid": "eb982dda6917de3b88632ae63f0909c5", "score": "0.46568304", "text": "@Test\n public void test18() throws Throwable {\n TextUtilities.setUseDrawRotatedStringWorkaround(true);\n BarRenderer3D barRenderer3D0 = new BarRenderer3D();\n CategoryTextAnnotation categoryTextAnnotation0 = new CategoryTextAnnotation(\"c\", (Comparable) \"c\", 2500.0);\n Layer layer0 = Layer.BACKGROUND;\n barRenderer3D0.addAnnotation((CategoryAnnotation) categoryTextAnnotation0, layer0);\n CategoryPlot categoryPlot0 = new CategoryPlot();\n categoryPlot0.addAnnotation((CategoryAnnotation) categoryTextAnnotation0, true);\n ValueAxis valueAxis0 = barRenderer3D0.getRangeAxis(categoryPlot0, 1389);\n boolean boolean0 = barRenderer3D0.removeAnnotation(categoryTextAnnotation0);\n MinMaxCategoryRenderer minMaxCategoryRenderer0 = new MinMaxCategoryRenderer();\n Color color0 = (Color)minMaxCategoryRenderer0.getGroupPaint();\n LegendItem legendItem0 = minMaxCategoryRenderer0.getLegendItem((-455), (-455));\n Line2D.Double line2D_Double0 = new Line2D.Double();\n StackedBarRenderer3D stackedBarRenderer3D0 = new StackedBarRenderer3D(false);\n IntervalBarRenderer intervalBarRenderer0 = new IntervalBarRenderer();\n }", "title": "" }, { "docid": "334d69205ab669c39e939b792cd4b7ac", "score": "0.46565616", "text": "@Override\n public void paintBorder (final Component comp, final Graphics graphics, \n \t\tfinal int x, final int y, final int width, final int height) {\n\n\t\tfinal Border border = getBorder();\n\n if (getTitle() == null || getTitle().equals(\"\")) {\n if (border != null) {\n border.paintBorder(comp, graphics, x, y, width, height);\n }\n return;\n }\n\n final Graphics2D g2d = (Graphics2D)graphics;\n \n Rectangle grooveRect = new Rectangle(x + EDGE_SPACING, y + EDGE_SPACING,\n width - (EDGE_SPACING * 2),\n height - (EDGE_SPACING * 2));\n final Font font = graphics.getFont();\n final Color color = graphics.getColor();\n\n graphics.setFont(getFont(comp));\n\n final JComponent jComp = (comp instanceof JComponent) ? (JComponent)comp : null;\n final FontMetrics fontMetrics = SwingUtilities2.getFontMetrics(jComp, graphics);\n final int fontHeight = fontMetrics.getHeight();\n final int descent = fontMetrics.getDescent();\n final int ascent = fontMetrics.getAscent();\n int diff;\n final int stringWidth = SwingUtilities2.stringWidth(jComp, fontMetrics,\n getTitle());\n Insets insets;\n\n if (border == null) {\n \t insets = new Insets(0, 0, 0, 0);\n } else {\n \t insets = border.getBorderInsets(comp);\n }\n\n final int titlePos = getTitlePosition();\n switch (titlePos) {\n case ABOVE_TOP:\n diff = ascent + descent + (Math.max(EDGE_SPACING,\n TEXT_SPACING*2) - EDGE_SPACING);\n grooveRect.y += diff;\n grooveRect.height -= diff;\n textLoc.y = grooveRect.y - (descent + TEXT_SPACING);\n break;\n case TOP:\n case DEFAULT_POSITION:\n diff = Math.max(0, ((ascent/2) + TEXT_SPACING) - EDGE_SPACING);\n grooveRect.y += diff;\n grooveRect.height -= diff;\n textLoc.y = (grooveRect.y - descent) +\n (insets.top + ascent + descent)/2;\n break;\n case BELOW_TOP:\n textLoc.y = grooveRect.y + insets.top + ascent + TEXT_SPACING;\n break;\n case ABOVE_BOTTOM:\n textLoc.y = (grooveRect.y + grooveRect.height) -\n (insets.bottom + descent + TEXT_SPACING);\n break;\n case BOTTOM:\n grooveRect.height -= fontHeight/2;\n textLoc.y = ((grooveRect.y + grooveRect.height) - descent) +\n ((ascent + descent) - insets.bottom)/2;\n break;\n case BELOW_BOTTOM:\n grooveRect.height -= fontHeight;\n textLoc.y = grooveRect.y + grooveRect.height + ascent +\n TEXT_SPACING;\n break;\n default:\n \tbreak;\n }\n\n\t\tint justification = getTitleJustification();\n\t\tfinal boolean l2rOriented = (comp.getComponentOrientation() == ComponentOrientation.LEFT_TO_RIGHT);\n\t\tif (justification == LEADING || justification == TRAILING || justification == DEFAULT_JUSTIFICATION) {\n\t\t\tjustification = (l2rOriented ^ (justification == TRAILING)) ? LEFT : RIGHT;\n\t\t}\n\n switch (justification) {\n case LEFT:\n textLoc.x = grooveRect.x + TEXT_INSET_H + insets.left;\n break;\n case RIGHT:\n textLoc.x = (grooveRect.x + grooveRect.width) -\n (stringWidth + TEXT_INSET_H + insets.right);\n break;\n case CENTER:\n textLoc.x = grooveRect.x +\n ((grooveRect.width - stringWidth) / 2);\n break;\n default:\n \tbreak;\n }\n\n // If title inputStream positioned in middle of border AND its fontsize\n // inputStream greater than the border's thickness, we'll need to paint \n // the border in sections to leave space for the component's background \n // to show through the title.\n //\n if (border != null) {\n \tfinal Rectangle saveClip = graphics.getClipBounds(); \t\n \tfinal Rectangle2D titleRect1 = fontMetrics.getStringBounds (getTitle(), graphics);\n \ttitleRect1.setRect (textLoc.x, textLoc.y - ascent, titleRect1.getWidth(), titleRect1.getHeight());\n\n \tfinal Rectangle2D titleRect2 = getSecondTitle() == null ? \n \t\t\t\tnew Rectangle2D.Double (0, 0, 0, 0) : fontMetrics.getStringBounds (getSecondTitle(), graphics); \n \t\taTrans.setToIdentity();\n \t aTrans.translate (fontMetrics.getAscent(), height - insets.bottom + 1);\n \t aTrans.quadrantRotate (3); \t \n \t final Shape rotatedShape = aTrans.createTransformedShape (titleRect2);\n \n \t final GeneralPath path = new GeneralPath (PathIterator.WIND_EVEN_ODD);\n path.append (saveClip, false);\n path.append (rotatedShape, false);\n path.append (titleRect1, false);\n \n ((Graphics2D)graphics).clip (path);\n \n border.paintBorder(comp, graphics, grooveRect.x, grooveRect.y,\n grooveRect.width, grooveRect.height);\n \n \tgraphics.setClip (saveClip);\n }\n \n graphics.setColor (getTitleColor());\n graphics.drawString (getTitle(), textLoc.x, textLoc.y);\n \n if (getSecondTitle() != null && !getSecondTitle().isEmpty()) {\n \tfinal AffineTransform tempTrans = g2d.getTransform();\n \tg2d.transform (aTrans);\n\t\t\tgraphics.drawString (getSecondTitle(), 0, 0);\n\t g2d.setTransform (tempTrans);\n }\n \n graphics.setFont(font);\n graphics.setColor(color);\n }", "title": "" }, { "docid": "3751a7936257b84d76349ab78e8f7281", "score": "0.46553466", "text": "public void setLabel(String tmp) {\n this.label = tmp;\n }", "title": "" }, { "docid": "527db244acf92361158b67aa3f3d4507", "score": "0.46534702", "text": "boolean isWidthLabelShown();", "title": "" }, { "docid": "28529f5233b09dad19e69678432cbe6f", "score": "0.46524945", "text": "@Test\n public void test30() throws Throwable {\n MinMaxCategoryRenderer minMaxCategoryRenderer0 = new MinMaxCategoryRenderer();\n boolean boolean0 = minMaxCategoryRenderer0.isDrawLines();\n LayeredBarRenderer layeredBarRenderer0 = new LayeredBarRenderer();\n CategoryTextAnnotation categoryTextAnnotation0 = new CategoryTextAnnotation(\"B]gae!tHO\", (Comparable) \"B]gae!tHO\", (double) 1691);\n boolean boolean1 = layeredBarRenderer0.removeAnnotation(categoryTextAnnotation0);\n }", "title": "" }, { "docid": "d28dd3cdb60620c838b20b0a687c918f", "score": "0.46479312", "text": "@Test\n\tpublic void testLabelIsCorrect() {\n\n\t\t// Given\n\t\tString seedPacketName = \"Seed Packet Name\";\n\t\twhen(seedPacket.getName()).thenReturn(seedPacketName);\n\n\t\t// When\n\t\tconfirmDeleteController.initData(seedPacketTable);\n\t\tWaitForAsyncUtils.waitForFxEvents();\n\n\t\t// Then\n\t\tString expectedLabel = \"Are you sure you want to delete \" \n\t\t\t\t+ seedPacketName + \" from your portfolio?\";\n\n\t\tverify(labelConfirmDelete).setText(expectedLabel);\n\t}", "title": "" }, { "docid": "69d81b033cc2876499cd828a8d2c0181", "score": "0.46451473", "text": "public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {\n g.setColor(XertoUtils.getFrameBorderColor());\n g.drawLine(x, y, x + width - 3, y);\n g.drawLine(x, y, x, y + height - 3);\n g.drawLine(x + width - 3, y, x + width - 3, y + height - 3);\n g.drawLine(x, y + height - 3, x + width - 3, y + height - 3);\n g.setColor(XertoUtils.getControlColor());\n g.fillRect(x + width - 2, y, 2, 2);\n g.fillRect(x, y + height - 2, 2, 2);\n g.setColor(XertoUtils.getControlMidShadowColor());\n g.drawLine(x + width - 2, y + 1, x + width - 2, y + height - 2);\n g.drawLine(x + 1, y + height - 2, x + width - 2, y + height - 2);\n g.setColor(XertoUtils.getControlLightShadowColor());\n g.drawLine(x + width - 1, y + 2, x + width - 1, y + height - 1);\n\n\n if (\"DockableFrameUI\".equals(((JComponent) c).getUIClassID()) && c.getParent().getComponentCount() > 1) {\n g.setColor(UIDefaultsLookup.getColor(\"JideTabbedPane.selectedTabBackground\"));\n g.drawLine(x + 2, y + height - 1, x + width - 2, y + height - 1);\n }\n else {\n g.setColor(XertoUtils.getControlLightShadowColor());\n g.drawLine(x + 2, y + height - 1, x + width - 1, y + height - 1);\n }\n\n }", "title": "" }, { "docid": "7c471a2756211d3949a1591626641e8e", "score": "0.46349314", "text": "public void setLabelFor(int id) { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "3a35ef3622ed95a9064b84380217d5b3", "score": "0.4629068", "text": "@Override\n public void focusLost(FocusEvent e) {\n if (getText().equals(hint) || getText().length() == 0) {\n setText(hint);\n setForeground(Color.GRAY);\n } else {\n setText(getText());\n setForeground(Color.BLACK);\n }\n }", "title": "" }, { "docid": "253d81274d9cc15d862dd00aadced38c", "score": "0.46280894", "text": "public boolean verifyTabButton(String tabName){\r\n\t\treturn getTabButton(tabName).getText().equalsIgnoreCase(tabName);\r\n\t}", "title": "" }, { "docid": "d7b83ebc10ab56a8b111c8126c5b6ad1", "score": "0.46239105", "text": "@Test\n public void test04() throws Throwable {\n CategoryStepRenderer categoryStepRenderer0 = new CategoryStepRenderer();\n CategoryTextAnnotation categoryTextAnnotation0 = new CategoryTextAnnotation(\"Base item URL generator not cloneable.\", (Comparable) \"Base item URL generator not cloneable.\", 747.28582);\n Layer layer0 = Layer.FOREGROUND;\n categoryStepRenderer0.addAnnotation((CategoryAnnotation) categoryTextAnnotation0, layer0);\n boolean boolean0 = categoryStepRenderer0.equals((Object) null);\n int int0 = categoryStepRenderer0.hashCode();\n LegendItem legendItem0 = categoryStepRenderer0.getLegendItem(3, 3);\n boolean boolean1 = categoryStepRenderer0.equals(categoryStepRenderer0);\n CategoryTextAnnotation categoryTextAnnotation1 = new CategoryTextAnnotation(\"GV\", (Comparable) \"GV\", (-782.428079200627));\n Layer layer1 = Layer.BACKGROUND;\n categoryTextAnnotation1.setNotify(true);\n StandardCategorySeriesLabelGenerator standardCategorySeriesLabelGenerator0 = (StandardCategorySeriesLabelGenerator)categoryStepRenderer0.getLegendItemLabelGenerator();\n categoryStepRenderer0.setLegendItemLabelGenerator(standardCategorySeriesLabelGenerator0);\n categoryTextAnnotation1.setNotify(true);\n ClusteredXYBarRenderer clusteredXYBarRenderer0 = new ClusteredXYBarRenderer((double) 3, true);\n categoryTextAnnotation1.removeChangeListener(clusteredXYBarRenderer0);\n categoryStepRenderer0.addAnnotation((CategoryAnnotation) categoryTextAnnotation1, layer1);\n LegendItem legendItem1 = categoryStepRenderer0.getLegendItem((-2317), 3);\n StatisticalBarRenderer statisticalBarRenderer0 = new StatisticalBarRenderer();\n DefaultMultiValueCategoryDataset defaultMultiValueCategoryDataset0 = new DefaultMultiValueCategoryDataset();\n // Undeclared exception!\n try { \n defaultMultiValueCategoryDataset0.getValue((Comparable) \"GV\", (Comparable) \"GV\");\n } catch(IllegalArgumentException e) {\n //\n // Row key (GV) not recognised.\n //\n assertThrownBy(\"org.jfree.data.KeyedObjects2D\", e);\n }\n }", "title": "" }, { "docid": "c238e122134eebe921f8e812297143d3", "score": "0.4619329", "text": "public void testUnderlineFromAppearanceSection() throws Exception {\n SWTBotGefEditPart myEClassEP = selectAndCheckEditPart(\"myEClass\", AbstractDiagramListEditPart.class);\n doTestStyleCustomizationThroughToggleButtonFromAppearanceSection(myEClassEP, \"Fonts and Colors:\", 2, NORMAL_FONT_STATE_PREDICATE, UNDERLINE_FONT_STATE_PREDICATE, true);\n }", "title": "" }, { "docid": "52d5fc8c805c5b691926adcc8417e1ab", "score": "0.46146408", "text": "public void setBorder(String val) {\r\n\t_border = val;\r\n}", "title": "" }, { "docid": "9ac6223dfe7eb3571656d459b703a851", "score": "0.46125022", "text": "private void hideLabel() {\n mLabel.startAnimation(outAnimation);\n }", "title": "" }, { "docid": "63bdf4445d35fd62aa369b9001c4a4b4", "score": "0.460553", "text": "@Test(timeout = 4000)\n public void test49() throws Throwable {\n FileSystemHandling.shouldAllThrowIOExceptions();\n System.setCurrentTimeMillis((-9223372036854775806L));\n FileSystemHandling.shouldAllThrowIOExceptions();\n JDayChooser jDayChooser0 = new JDayChooser(true);\n FileSystemHandling.shouldAllThrowIOExceptions();\n KeyEvent keyEvent0 = new KeyEvent(jDayChooser0, 35, (-9223372036854775806L), 35, 35, 'V');\n String string0 = AbstractButton.MODEL_CHANGED_PROPERTY;\n ActionMap actionMap0 = jDayChooser0.getActionMap();\n jDayChooser0.setActionMap(actionMap0);\n jDayChooser0.keyPressed(keyEvent0);\n float[] floatArray0 = new float[5];\n floatArray0[0] = 0.0F;\n floatArray0[1] = (float) 35;\n floatArray0[2] = (float) (-1261);\n floatArray0[3] = (float) 35;\n floatArray0[4] = (float) 35;\n Color.RGBtoHSB((-211), (-1261), 3593, floatArray0);\n int int0 = 842;\n JTabbedPane jTabbedPane0 = null;\n try {\n jTabbedPane0 = new JTabbedPane(842);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // illegal tab placement: must be TOP, BOTTOM, LEFT, or RIGHT\n //\n verifyException(\"javax.swing.JTabbedPane\", e);\n }\n }", "title": "" } ]
0ddc332e563c3bf7e64e73e0220fedc6
A list of the outtype aliases.
[ { "docid": "dc1a181a86b1e65ddf3ead1756e218e5", "score": "0.76437306", "text": "public List<EffectiveName> getOutAliases() {\n\t\t\n\t\tArrayList<EffectiveName> ns = new ArrayList();\n\t\taliases.stream().filter(a -> a.isOut()).forEachOrdered(a -> ns.add(a));\n\t\treturn Collections.unmodifiableList(ns);\n\t}", "title": "" } ]
[ { "docid": "ecf58a5469b1182f6211b605012c0fa6", "score": "0.72221076", "text": "Set<String> getTypeAliases();", "title": "" }, { "docid": "71599bd256d6ce86452439a6865527de", "score": "0.6415209", "text": "public String[] getAliases()\t\t\t{ return aliases; }", "title": "" }, { "docid": "f5e4b1debc414302c6fe462b2a912c26", "score": "0.64072907", "text": "public static List<String> getAllAliases() {\n\t\tList<String> allAliases = new ArrayList<String>();\n\t\tfor (OptionType opts: OptionType.values()) {\n\t\t\tallAliases.addAll(opts.aliases);\n\t\t}\n\t\t\n\t\treturn allAliases;\n\t}", "title": "" }, { "docid": "c5aa458b3cb3849f200b7311785f4ea3", "score": "0.6399595", "text": "public String[] getAliases();", "title": "" }, { "docid": "499408bc6b27a3a51cbfb9aad62d711b", "score": "0.63654834", "text": "@UML(identifier=\"alias\", obligation=OPTIONAL, specification=ISO_19157)\n default Collection<? extends InternationalString> getAliases() {\n return Collections.emptyList();\n }", "title": "" }, { "docid": "5f41cf9fa1cb960e56aa45778e78a47e", "score": "0.6354378", "text": "@Override\n\tpublic List<String> getAliases() {\n\t\treturn this.alias;\n\t}", "title": "" }, { "docid": "42dc68fc62be655afad260ce59e90585", "score": "0.62112874", "text": "public abstract String[] getAliases();", "title": "" }, { "docid": "51a088687c0f3263a210268b9354c948", "score": "0.6192094", "text": "public List<EffectiveName> getInAliases() {\n\t\t\n\t\tArrayList<EffectiveName> ns = new ArrayList();\n\t\taliases.stream().filter(a -> a.isIn()).forEachOrdered(a -> ns.add(a));\n\t\treturn Collections.unmodifiableList(ns);\n\t}", "title": "" }, { "docid": "e0e821e1575307d742b6d141e2575dbd", "score": "0.6176674", "text": "@Override\n\tpublic String[] getAliases() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b4740ef06d4fda5ce384c6a0be972c3c", "score": "0.6120462", "text": "public List getAttributeAliases()\n {\n List aliases = new ArrayList();\n\n Iterator it = _parameters.getParameters().iterator();\n while (it.hasNext())\n {\n String paramName = ((Parameter) it.next()).getKey();\n\n if (paramName.startsWith(\"type.\"))\n {\n String alias = paramName.substring(5);\n\n if ( ! aliases.contains(alias) )\n aliases.add(alias);\n }\n }\n\n return aliases;\n }", "title": "" }, { "docid": "2777a3289a170facc1b778838e077ab8", "score": "0.61186683", "text": "public List<String> getAliasesValue()\n {\n List<String> aliasesValue = new ArrayList<String>();\n\n for ( Alias alias : aliases )\n {\n aliasesValue.add( alias.toString() );\n }\n\n return aliasesValue;\n }", "title": "" }, { "docid": "f728180af54194e7b2208b9889942914", "score": "0.6066446", "text": "public String[] getReturnAliases() {\n \t\treturn NO_RETURN_ALIASES;\n \t}", "title": "" }, { "docid": "b05409fb4d582e4346d1cb3b8f0f9f39", "score": "0.6063645", "text": "protected String[] getAliases() {\n \t\treturn null;\n \t}", "title": "" }, { "docid": "3c63b52e41b3631ae1551479ca9e4235", "score": "0.6042983", "text": "@Nonnull\n @Override\n public List<String> getAliases() {\n return Collections.emptyList();\n }", "title": "" }, { "docid": "9a8b159ad1cb00a9538759d8fc8894d6", "score": "0.601975", "text": "public java.util.List<com.pacbio.common.models.contracts.ToolOutputFile> getOutputTypes() {\n return output_types;\n }", "title": "" }, { "docid": "61b2c2ef8bf71f0a55508a4b139d6085", "score": "0.60129964", "text": "public java.util.List<com.pacbio.common.models.contracts.ToolOutputFile> getOutputTypes() {\n return output_types;\n }", "title": "" }, { "docid": "3cefdbfb787f855e2aec130544121b7f", "score": "0.5940802", "text": "public void printAliasTypeValues() {\r\n\t\tfor (java.util.Map.Entry<String, Map<T, V>> entry : aliasToTypeValueMap\r\n\t\t\t\t.entrySet()) {\r\n\t\t\tEasyDebugger.message(entry.getKey() + \": \");\r\n\t\t\tEasyDebugger.printMap(entry.getValue());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "18c9a8b348011b7dcf6e59392741c2dd", "score": "0.5933092", "text": "public List<EffectiveName> getAliases() {\n\t\treturn aliases;\n\t}", "title": "" }, { "docid": "9e83724ac4d0da18def0305a7c8f3018", "score": "0.5912679", "text": "public synchronized Enumeration<String> getAliases()\n throws KeyStoreException\n { \n return _pwdStore.aliases();\n }", "title": "" }, { "docid": "2d79db846b70c3e89d26c1b20c29039d", "score": "0.5868369", "text": "public abstract String[] getOutputFileTypes();", "title": "" }, { "docid": "186d3153dbadb23ae4eed6ad0b4c21a7", "score": "0.58437973", "text": "public Set<Alias> getAliases() {\n return Collections.unmodifiableSet(Sets.newHashSet(aliases.values()));\n }", "title": "" }, { "docid": "6103c7f2d5e0f9a924b57dec747fef60", "score": "0.5824832", "text": "public static String[] getTypeNames() {\r\n return typeDescriptions;\r\n }", "title": "" }, { "docid": "3ebf70e3d730225b95652ce661c2c830", "score": "0.57498336", "text": "public Set<String> getAliasNames() {\n return Collections.unmodifiableSet(aliases.keySet());\n }", "title": "" }, { "docid": "e8c08b3dbc3db923ea6c4deef2cec51e", "score": "0.5717622", "text": "public Set<String> getAllAliases() {\n return aliases.keySet();\n }", "title": "" }, { "docid": "5e101da6c70a27bf2143f2e6f835a28a", "score": "0.56505", "text": "public List<String> getTypes();", "title": "" }, { "docid": "6a1b9fe50158f1750aa498805bfeccf1", "score": "0.5589944", "text": "@Override\r\n\tpublic List<String> getAliases() {\n\t\treturn Arrays.asList((Ref.prefix + \"roll\"), (Ref.prefix + \"dice\"));\r\n\t}", "title": "" }, { "docid": "6862f2fa6f8817e75fc4179c0056565d", "score": "0.5562534", "text": "public Map<OffsetRange, String> getTypes();", "title": "" }, { "docid": "95a21c893131c7380b96c8e41dc0791c", "score": "0.55330116", "text": "@Override\r\n\tpublic List<String> getAliases() {\n\t\treturn Arrays.asList((Ref.prefix + \"prefix\"), (Ref.prefix + \"changeprefix\"));\r\n\t}", "title": "" }, { "docid": "e0e207a0cb5d8642e36161af3b2783a3", "score": "0.5504748", "text": "@Override\n\tpublic List getCommandAliases() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7cd64e87263aadec4d88fb3007d6efc2", "score": "0.54792714", "text": "public OutputType[] getOutputTypes()\n throws IOException, OWSException {\n List<OutputType> outputs = getProcessDetails().getOutputs();\n return outputs.toArray( new OutputType[outputs.size()] );\n }", "title": "" }, { "docid": "399c88714cc60e8a6260749174f526aa", "score": "0.54604805", "text": "@AutoEscape\n\tpublic String getHelpTypes();", "title": "" }, { "docid": "ce84e557b55e6ec88ba4e87eddfeba9e", "score": "0.5426208", "text": "@Override\n\tpublic List<Map<String, Object>> getTypeandTypename() {\n\t\treturn dao.find(PREFIX+\".getTypeandTypename\");\n\t}", "title": "" }, { "docid": "3d2bca45756030811a00632a1ae007b7", "score": "0.5418506", "text": "public String[] getSuffixedElementAliases() {\n \t\treturn elementAliases;\n \t}", "title": "" }, { "docid": "7398bfcdcecc7da2b6efd585539c6dc9", "score": "0.54155874", "text": "public String[] getOutputTypes() {\n\t\tString[] types = {\"ncsa.d2k.modules.core.datatype.parameter.ParameterSpace\"};\n\t\treturn types;\n\t}", "title": "" }, { "docid": "7bc2ab60ba047cef82eb6d61f9879fc1", "score": "0.5389065", "text": "List<String> getMatchPatternInvolvedAliases() {\n if (mathExpression != null)\n return mathExpression.getMatchPatternInvolvedAliases();\n if (arrayConcatExpression != null)\n return arrayConcatExpression.getMatchPatternInvolvedAliases();\n return null;\n }", "title": "" }, { "docid": "5975e7c43c0bdc15b25a38485003362c", "score": "0.5379172", "text": "@Override\n public String[] getAliases(String name) {\n return new String[0];\n }", "title": "" }, { "docid": "e16925490b87bc514c3ba5e8018b6b64", "score": "0.5308167", "text": "public String[] getObjectTypes() { return ExamOwner.sOwnerTypes; }", "title": "" }, { "docid": "95e32a7bb3c5d4334426f5c5a1aa18f6", "score": "0.5291994", "text": "public String getAlertTypeList() {\n\t\tint offset = 0;\n\t\tJSONArray typeList = new JSONArray();\n\t\tfor (String type : AlarmType.TYPE) {\n\t\t\tJSONObject object = new JSONObject();\n\t\t\tobject.put(\"text\", type);\n\t\t\tobject.put(\"id\", offset);\n\t\t\ttypeList.add(object);\n\t\t\toffset++;\n\t\t}\n\t\treturn typeList.toJSONString();\n\t}", "title": "" }, { "docid": "de57ec7a0abf3fe2b8799e6864737290", "score": "0.52773666", "text": "public String[] getTypes() {\r\n return types;\r\n }", "title": "" }, { "docid": "5cfa6ce9e26585e1545fa215cbd68a89", "score": "0.52329344", "text": "public List<Type> getTypes();", "title": "" }, { "docid": "78fefbf5030009b94b3e259f55c3ff22", "score": "0.52198225", "text": "public HashMap<String, String> getAliasHashMap() {\n return aliases;\n }", "title": "" }, { "docid": "65b1d2323d4ce53aa10b96fe42e12842", "score": "0.52186847", "text": "public String[] getSuffixedIndexAliases() {\n \t\treturn indexAliases;\n \t}", "title": "" }, { "docid": "d7deff0fd4828d40ff25ae2fb1822622", "score": "0.5218308", "text": "List getTypeSpecifiers();", "title": "" }, { "docid": "59ded4802ec2a950a974c512ab185302", "score": "0.52035517", "text": "public String getAlias();", "title": "" }, { "docid": "48ff5287ea9f3967b8d91b52fb882f46", "score": "0.5183331", "text": "java.util.List<java.lang.String>\n getOutputsList();", "title": "" }, { "docid": "030a1079de65f6ccdd403e44811a0c5e", "score": "0.51802313", "text": "public boolean cmd_listaliases() {\r\n\t\tif(!playerHasRightsForCommand(\"listaliases\")) return false;\r\n\r\n\t\tSet<String> k = aliases.keySet();\r\n\t\tfor (String cmdName : k) {\r\n\t\t\tsay(R.get(\"list_aliases.cmd.1\") + cmdName\r\n\t\t\t\t\t+ R.get(\"list_aliases.cmd.2\")\r\n\t\t\t\t\t+ aliases.get(cmdName).toString());\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "13c05c2d599cbc7649f100a9e0aad012", "score": "0.5170452", "text": "public String[] getOutputNames()\n\t{\n\t\treturn _outputNames;\n\t}", "title": "" }, { "docid": "13c05c2d599cbc7649f100a9e0aad012", "score": "0.5170452", "text": "public String[] getOutputNames()\n\t{\n\t\treturn _outputNames;\n\t}", "title": "" }, { "docid": "13c05c2d599cbc7649f100a9e0aad012", "score": "0.5170452", "text": "public String[] getOutputNames()\n\t{\n\t\treturn _outputNames;\n\t}", "title": "" }, { "docid": "4ce5830646273d34567161582fb6529c", "score": "0.51633143", "text": "String[] getReturnAliases(String queryString) throws HibernateException;", "title": "" }, { "docid": "fc04e556e1831e2cf1e88dd599c00bc6", "score": "0.51551473", "text": "@Override\r\n\tpublic List<Type> getTypes() {\n\t\treturn td.getTypes();\r\n\t}", "title": "" }, { "docid": "e5b25e50c8ff69e71fa2227c3ef48c1e", "score": "0.5153744", "text": "String[] getExtendsTypes();", "title": "" }, { "docid": "87c3a0081fae0e21858875ba161f5430", "score": "0.5153641", "text": "public shade.protobuf.ProtocolStringList\n getOutputsList() {\n return outputs_.getUnmodifiableView();\n }", "title": "" }, { "docid": "30372339fd4fbb74695d80f7ad63ab50", "score": "0.513792", "text": "public void printTypes() {\r\n System.out.println(\"types:\");\r\n for (int i=0; i < indexToType.size(); i++) {\r\n SimpleType st = indexToType.get(i); \r\n System.out.println(i + \": \" + st.getName() + \" subtypes: \" + st.getBitSet());\r\n }\r\n System.out.println();\r\n }", "title": "" }, { "docid": "83f8389075117695466eb6bd76abc2ae", "score": "0.51331645", "text": "private List<String> createAliases(ModelNode aliasNodesList) {\n\t\tfinal List<String> aliases = new ArrayList<String>();\n\t\tswitch (aliasNodesList.getType()) {\n\t\tcase OBJECT:\n\t\tcase LIST:\n\t\t\tfor (ModelNode aliasNode : aliasNodesList.asList()) {\n\t\t\t\taliases.add(aliasNode.asString());\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\taliases.add(aliasNodesList.asString());\n\t\t}\n\t\treturn aliases;\n\t}", "title": "" }, { "docid": "a687896c9d10e699cffc0fa24e5e3771", "score": "0.5126818", "text": "@Override\n public String toString() {\n return defaultAlias;\n }", "title": "" }, { "docid": "7e2bc021cba0c5dce7fa4d292b5b157c", "score": "0.5125366", "text": "String getAlias();", "title": "" }, { "docid": "7e2bc021cba0c5dce7fa4d292b5b157c", "score": "0.5125366", "text": "String getAlias();", "title": "" }, { "docid": "7e2bc021cba0c5dce7fa4d292b5b157c", "score": "0.5125366", "text": "String getAlias();", "title": "" }, { "docid": "036a2ffa38c01f62c552bf1fc618efbb", "score": "0.51148826", "text": "@XmlTransient\n public List<ObservationTarget> getTargetsSortedByType() {\n List<ObservationTarget> targets = new ArrayList<>(this.targets);\n Collections.sort(targets, (a, b) -> a.getType().compareTo(b.getType()));\n return Collections.unmodifiableList(targets);\n }", "title": "" }, { "docid": "6abb984c391b262e20ea7ef00ef76c87", "score": "0.509531", "text": "public ArrayList<String> getAliases(String ksType) throws CMException {\n\t\t\n\t\tsynchronized (Security.class) {\n\t\t\tArrayList<Provider> oldBCProviders = unregisterOldBCProviders();\n\t\t\tSecurity.addProvider(bcProvider);\n\t\t\ttry {\n\t\t\t\tif (ksType.equals(KEYSTORE)){\n\t\t\t\t\tsynchronized (keystore) {\n\t\t\t\t\t\treturn Collections.list(keystore.aliases());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (ksType.equals(TRUSTSTORE)) {\n\t\t\t\t\tsynchronized (truststore) {\n\t\t\t\t\t\treturn Collections.list(truststore.aliases());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} \n\t\t\tcatch (Exception ex) {\n\t\t\t\tString exMessage = \"Credential Manager: Failed to access the \" + ksType + \" to get the aliases.\";\n\t\t\t\tlogger.error(exMessage, ex);\n\t\t\t\tex.printStackTrace();\n\t\t\t\tthrow new CMException(exMessage);\n\t\t\t}\n\t\t\tfinally{\n\t\t\t\t// Add the old BC providers back and remove the one we have added\n\t\t\t\trestoreOldBCProviders(oldBCProviders);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d6df98ffb71d164f158416baaf15aa39", "score": "0.5094074", "text": "public void setOutputTypes(java.util.List<com.pacbio.common.models.contracts.ToolOutputFile> value) {\n this.output_types = value;\n }", "title": "" }, { "docid": "f5b832e0762b4d32344ae4a50cbf806f", "score": "0.50832206", "text": "public java.lang.String getEndpointTypes(int index) {\n return endpointTypes_.get(index);\n }", "title": "" }, { "docid": "f49921a67880af9cbd37dbcc67c21c99", "score": "0.50814056", "text": "public Map<String, Class> getFieldAliases() {\n return fieldAlias;\n }", "title": "" }, { "docid": "0961d5521403a88485d60a299055ef70", "score": "0.5072993", "text": "public static Map<String, String> getAliasTable() {\n return ZoneInfoFile.getAliasMap();\n }", "title": "" }, { "docid": "47938898e1080e91486b418b06e1e796", "score": "0.50642467", "text": "public Set<String> getInTypeScanner() {\n Set<String> result = new HashSet<>(storeMap.get(\"TypeAnnotationsScanner\").keySet());\n for (Collection<String> cs: storeMap.get(\"TypeAnnotationsScanner\").values()) {\n result.addAll(cs);\n }\n return result;\n }", "title": "" }, { "docid": "740f70cd9532722b599f9a219470e4f5", "score": "0.5052525", "text": "public java.lang.String getEndpointTypes(int index) {\n return endpointTypes_.get(index);\n }", "title": "" }, { "docid": "6b3ee0aa0341ac3d506e47b7e81a8220", "score": "0.505128", "text": "public Set<String> getAnnotationTypes();", "title": "" }, { "docid": "bdaba1477eae71e123b195bb6a3ab57f", "score": "0.50497174", "text": "public List<Access> getTypeAccesss() {\n return getTypeAccessList();\n }", "title": "" }, { "docid": "3f3f50b7e460e10c11337a1c703b39fb", "score": "0.50274634", "text": "@Override\n\tpublic List<Types> listTy() {\n\t\treturn dao.listTy();\n\t}", "title": "" }, { "docid": "1bb2558d8038afcd3f7d8a2837e2f023", "score": "0.50185996", "text": "public String[] getRegisteredDatatypes() {\n String[] names = datatypeMap.keySet().toArray(new String[0]);\n Arrays.sort(names);\n return names;\n }", "title": "" }, { "docid": "9550090d35811618929abcda8f93a692", "score": "0.50114334", "text": "static public String[] getNames() {\n\t\treturn nameToAnnotationType.keySet().toArray(new String[nameToAnnotationType.size()]);\n\t}", "title": "" }, { "docid": "214f15e32d9126d5a8916522aa39b09d", "score": "0.5009583", "text": "String[] getAliases(String name) throws NoSuchBeanDefinitionException;", "title": "" }, { "docid": "94dff8c5d0a3309e344da46927441c1a", "score": "0.5002821", "text": "@Override\n public int[] getAliases(int stampSequence) {\n return this.stampAliasMap.getAliases(stampSequence);\n }", "title": "" }, { "docid": "5f8ab42e24a222e340c8d23c5134a66a", "score": "0.49996278", "text": "public List<String> getDocumentTypes() {\n DocType doc; \n ArrayList<String> result = new ArrayList<String>();\n List<DocType> docs = CT.getDocType();\n \n for(Iterator it = docs.iterator(); it.hasNext();) {\n doc = (DocType)it.next();\n result.add(doc.getFileType());\n }\n \n return result; \n }", "title": "" }, { "docid": "820f93bbc9d7a7e73b0cc38868d7f38e", "score": "0.49910247", "text": "public List<String> analysisTypes() {\n return this.analysisTypes;\n }", "title": "" }, { "docid": "c17f1d82281664e4739ba1382468687a", "score": "0.49880958", "text": "private Set<Name> renderedTypeNames() {\n return parts.stream()\n .map(part -> part.getTypeElement().getSimpleName())\n .collect(toSet());\n }", "title": "" }, { "docid": "6044031e4c6546211bcc73681dc23f58", "score": "0.4968328", "text": "public List<String> getAccountTypes(){\n return BrowserUtils.getTextFromWebElements(accountTypes);\n }", "title": "" }, { "docid": "eedcef2dfbe73af12793bc1686e2a95a", "score": "0.49640834", "text": "public long getAliasTypeCode() {\n return aliasTypeCode;\n }", "title": "" }, { "docid": "6c794224fd1f6df6e13946ea7f78fcf2", "score": "0.49564472", "text": "public AliasInfo getAliasInfo() {\n return aliasInfo;\n }", "title": "" }, { "docid": "96a32d97e7d0aa354b87fb62040d08c3", "score": "0.49537498", "text": "public String getAttributeTypeUri(String alias) {\n return _parameters.getParameterValue(\"type.\" + alias);\n }", "title": "" }, { "docid": "c16b8a9073534ab9b7295f1e2cd32594", "score": "0.4945018", "text": "public List<Access> getTypeAccesssNoTransform() {\n return getTypeAccessListNoTransform();\n }", "title": "" }, { "docid": "56e2a8c21adb143c015eeb2a1fd7b9bb", "score": "0.49423054", "text": "public shade.protobuf.ProtocolStringList\n getOutputsList() {\n return outputs_;\n }", "title": "" }, { "docid": "6a83de176cb8d9720951f92c73e35e29", "score": "0.49413326", "text": "public java.util.List<String> getAccessTypes() {\n return accessTypes;\n }", "title": "" }, { "docid": "5ec14ecf13193d05b2d0b87e3c99de64", "score": "0.49263602", "text": "@Override\n\tpublic List<TypeOffre> consulterTypeOffres() {\n\t\treturn dao.consulterTypeOffres();\n\t}", "title": "" }, { "docid": "614b9ee2f4f1c568c28b85efdd4d44ec", "score": "0.49261084", "text": "private void collectNamespaceAliases() throws XPathException {\r\n namespaceAliasMap = new HashMap(numberOfAliases);\r\n aliasResultUriSet = new HashSet(numberOfAliases);\r\n HashSet<String> aliasesAtThisPrecedence = new HashSet<String>();\r\n //aliasSCodes = new short[numberOfAliases];\r\n //aliasNCodes = new int[numberOfAliases];\r\n //int precedenceBoundary = 0;\r\n int currentPrecedence = -1;\r\n // Note that we are processing the list in reverse stylesheet order,\r\n // that is, highest precedence first.\r\n for (int i = 0; i < numberOfAliases; i++) {\r\n Declaration decl = namespaceAliasList.get(i);\r\n XSLNamespaceAlias xna = (XSLNamespaceAlias)decl.getSourceElement();\r\n String scode = xna.getStylesheetURI();\r\n NamespaceBinding ncode = xna.getResultNamespaceBinding();\r\n int prec = decl.getPrecedence();\r\n\r\n // check that there isn't a conflict with another xsl:namespace-alias\r\n // at the same precedence\r\n\r\n if (currentPrecedence != prec) {\r\n currentPrecedence = prec;\r\n aliasesAtThisPrecedence.clear();\r\n //precedenceBoundary = i;\r\n }\r\n if (aliasesAtThisPrecedence.contains(scode)) {\r\n if (!namespaceAliasMap.get(scode).equals(ncode.getURI())) {\r\n xna.compileError(\"More than one alias is defined for the same namespace\", \"XTSE0810\");\r\n }\r\n }\r\n if (namespaceAliasMap.get(scode) == null) {\r\n namespaceAliasMap.put(scode, ncode);\r\n aliasResultUriSet.add(ncode.getURI());\r\n }\r\n aliasesAtThisPrecedence.add(scode);\r\n }\r\n namespaceAliasList = null; // throw it in the garbage\r\n }", "title": "" }, { "docid": "24c02363f72d2d4324551581040560b3", "score": "0.49223182", "text": "public List<String> getTrustedSigningCertificateAliases() {\n return Collections.unmodifiableList(trustedSigningCertificateAliases);\n }", "title": "" }, { "docid": "fff99d97ee72420b729b812c8b9296da", "score": "0.49192443", "text": "public List getTypes()\n\t{\n\t\tList L = new List();\t\t\n\t\tL.Initialize();\t\t\n\t\tfor (FeatureType o : getObject().getTypes())\n\t\t{\n\t\t\tL.Add(o);\n\t\t}\n\t\treturn L;\n\t}", "title": "" }, { "docid": "fb9608a180dc209557863ddcf1c803cd", "score": "0.49152058", "text": "List<String> getOutputs() ;", "title": "" }, { "docid": "d9f24267224c272571d3ee47fa6801f5", "score": "0.4914236", "text": "protected void getTypesOut(Map<String, FlowType> types, Flow flow)\n\t\t{\n\t\ttypes.put(\"out\", FlowType.ANYIMAGE); //TODO same type as \"image\"\n\t\t}", "title": "" }, { "docid": "20cd5bb9e8156f3a4daed8cb9aaf7224", "score": "0.49056584", "text": "public String getAlias() { return alias_; }", "title": "" }, { "docid": "5f735ac92a246abf4acb82843f5f9887", "score": "0.48886192", "text": "private static List<String> getNamespaceList(Demangled typeNamespace) {\n\t\tList<String> list = new ArrayList<>();\n\t\tDemangled ns = typeNamespace;\n\t\twhile (ns != null) {\n\t\t\tlist.add(0, ns.getNamespaceName());\n\t\t\tns = ns.getNamespace();\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "384f7888c82faf30e81e1a428708300c", "score": "0.48713744", "text": "public List<Map<String, String>> getTypeMetaData() {\n\t\treturn typeMetaData;\n\t}", "title": "" }, { "docid": "84ed2f27b03227a6e38a495d4f938c82", "score": "0.4869611", "text": "java.util.List<com.google.privacy.dlp.v2beta1.InfoType> \n getInfoTypesList();", "title": "" }, { "docid": "75742d4fa613bf0caa089ff2f9ec23f1", "score": "0.48677245", "text": "public JSONArray getAliases(GuidEntry guid) throws Exception {\r\n JSONObject command = createAndSignCommand(guid.getPrivateKey(), RETRIEVE_ALIASES, GUID, guid.getGuid());\r\n\r\n String response = sendCommand(command);\r\n try {\r\n return new JSONArray(checkResponse(command, response));\r\n } catch (JSONException e) {\r\n throw new GnsException(\"Invalid alias list\", e);\r\n }\r\n }", "title": "" }, { "docid": "3bb6455af66883212d62e2e59bb7ad5b", "score": "0.4863972", "text": "protected abstract String[] getOutputNames();", "title": "" }, { "docid": "efb68adc35aaa8df80c38230b46da5a4", "score": "0.48629192", "text": "public HashMap<String, String> getAlias() {\n\t\treturn alias;\n\t}", "title": "" }, { "docid": "98c43a5ab4dd9d3f76f91143cbc2989a", "score": "0.48522803", "text": "protected abstract EntityAliases[] getEntityAliases();", "title": "" }, { "docid": "9b6f285305131be66cdb68e66f56f4d0", "score": "0.48464936", "text": "public String getAlias() {\n return alias;\n }", "title": "" }, { "docid": "9b6f285305131be66cdb68e66f56f4d0", "score": "0.48464936", "text": "public String getAlias() {\n return alias;\n }", "title": "" } ]
eed316c9b25cd186b5383922510daf2f
Realiza el recalculo de la Boleta Recojo seleccionadas
[ { "docid": "15301c26fca333b47f869ed59aa0eee5", "score": "0.0", "text": "public void updateRecalcularBoletaRecojo(Map criteria, String[] ids);", "title": "" } ]
[ { "docid": "c0d0c1e583fe8dd0528bc764879eb527", "score": "0.680734", "text": "public lavanderia() {\r\n initComponents();\r\n cargarComboDepto();\r\n }", "title": "" }, { "docid": "df0a0c3119b5839183fb53a5de944e4a", "score": "0.6724036", "text": "private static void Recolectar() {\n\t\t\n\t}", "title": "" }, { "docid": "15650d286d7cd2b09211e865b25032d1", "score": "0.6693208", "text": "private void selectorAbajo() {\r\n if (posicionSelector == POSICION_OBJETOS) {\r\n posicionSelector = POSICION_ENEMIGOS;\r\n } else {\r\n posicionSelector = POSICION_OBJETOS;\r\n }\r\n }", "title": "" }, { "docid": "016f0d366274acddf422d39153a9482c", "score": "0.6639122", "text": "private void selectorArriba() {\r\n if (posicionSelector == POSICION_ENEMIGOS) {\r\n posicionSelector = POSICION_OBJETOS;\r\n } else {\r\n posicionSelector = POSICION_ENEMIGOS;\r\n }\r\n }", "title": "" }, { "docid": "97e860eba4777a1a67ee530f5feaef69", "score": "0.6585091", "text": "public void rutas(int seleccion) {\n LinkedList<ImageIcon> direccionesCarros = new LinkedList<>();\n direccionesCarros.add(new ImageIcon(\"src\\\\imagenes\\\\carros\\\\\" + \"C\" + (seleccion) + \".png\"));\n direccionesCarros.add(new ImageIcon(\"src\\\\imagenes\\\\carros\\\\\" + \"C\" + (seleccion) + \"D.png\"));\n direccionesCarros.add(new ImageIcon(\"src\\\\imagenes\\\\carros\\\\\" + \"C\" + (seleccion) + \"L.png\"));\n direccionesCarros.add(new ImageIcon(\"src\\\\imagenes\\\\carros\\\\\" + \"C\" + (seleccion) + \"R.png\"));\n this.panelAnimacion.crearCarro(direccionesCarros, this.x, this.y, this.xNodoPosClick, this.yNodoPosClick);\n }", "title": "" }, { "docid": "d1deb5e592cf06f59e585fd727417bf0", "score": "0.6548522", "text": "public void setrenavam(String Placa) {\n int idunidade=0;\n int idalocacao=0;\n int idemp=0;\n int idempAloc=0;\n String idconsulta = Placa;\n VeiculosBO bo = new VeiculosBO();\n Component[] componentes = JpanelFrota.getComponents(); // altere para o nome da variavel do seu painel\n for (Component componente : componentes) {\n componente.setEnabled(true);\n }\n JpanelFrota.setEnabled(true);\n btnnova.setEnabled(false);\n btnsalvar.setEnabled(false);\n btnconsultar.setEnabled(false);\n btnalterar.setEnabled(true);\n btncancelar.setEnabled(true);\n try {\n \n Veiculos veiculo=bo.consultar(idconsulta);\n \n txtrenavam.setText(String.valueOf(veiculo.getRenavam()));\n txtplaca.setText(veiculo.getPlaca());\n txtchassi.setText(veiculo.getChassi());\n txtmarcamodelo.setText(veiculo.getMarcaModelo());\n JAno.setYear(veiculo.getAno());\n txtmunicipio.setText(veiculo.getMunicipio());\n \n idunidade=veiculo.getProprietario();\n idalocacao=veiculo.getAlocacao();\n cmbclassificacao.removeAllItems();\n ClassificacaoBO boclassificacao=new ClassificacaoBO();\n try{\n List<Classificacao> lista=boclassificacao.listar();\n for(Classificacao lstclassificacao:lista){\n\n //Object[] linha = //alguma linha\n\n //model.addRow(linha);\n \n cmbclassificacao.addItem(lstclassificacao.getClassificacao());\n if(lstclassificacao.getIdclassificacao()==veiculo.getClassificacao() ){\n cmbclassificacao.setSelectedItem(lstclassificacao.getClassificacao());\n }\n }\n }catch(NegocioException ex){\n\n }\n EmpresasBO boemp1 = new EmpresasBO();\n \n idemp=0;\n idempAloc=0;\n \n UnidadesBO bounid=new UnidadesBO();\n Unidades unid=bounid.consultar(idunidade);\n UnidadesBO bounidAloc=new UnidadesBO();\n Unidades unidAloc=bounidAloc.consultar(idalocacao);\n idemp=unid.getIdempresa();\n \n idempAloc=unidAloc.getIdempresa();\n EmpresasBO boemp=new EmpresasBO();\n try{\n List<Empresas> lista=boemp.listar();\n for(Empresas lstemp:lista){\n\n //Object[] linha = //alguma linha\n\n //model.addRow(linha);\n \n \n if(lstemp.getIdempresa()==idemp){\n cmbempr.setSelectedItem(lstemp.getNmfantasia());\n }\n if(lstemp.getIdempresa()==idempAloc){\n cmbEmprAloc.setSelectedItem(lstemp.getNmfantasia());\n }\n }\n }catch(NegocioException ex){\n\n }\n \n \n \n \n \n \n EmpresasBO bolst = new EmpresasBO();\n try {\n \n Empresas empresalst=bolst.consultar(cmbempr.getSelectedItem().toString());\n \n idemp=empresalst.getIdempresa();\n \n } catch (NegocioException ex) {\n Logger.getLogger(JFIFuncionarios.class.getName()).log(Level.SEVERE, null, ex);\n }\n cmbunidade.removeAllItems();\n UnidadesBO bouni=new UnidadesBO();\n try{\n List<Unidades> lista=bouni.listar(idemp);\n for(Unidades lstunidades:lista){\n\n //Object[] linha = //alguma linha\n\n //model.addRow(linha);\n \n cmbunidade.addItem(lstunidades.getNomeUnidade());\n if(lstunidades.getId()==veiculo.getProprietario()){\n cmbunidade.setSelectedItem(lstunidades.getNomeUnidade());\n }\n }\n }catch(NegocioException ex){\n\n } catch (DadosException ex) { \n Logger.getLogger(JFIFuncionarios.class.getName()).log(Level.SEVERE, null, ex);\n } \n \n \n EmpresasBO bolstaloc = new EmpresasBO();\n try {\n \n Empresas empresalstaloc=bolstaloc.consultar(cmbEmprAloc.getSelectedItem().toString());\n \n idemp=empresalstaloc.getIdempresa();\n \n } catch (NegocioException ex) {\n Logger.getLogger(JFIFuncionarios.class.getName()).log(Level.SEVERE, null, ex);\n }\n cmbUnidAloc.removeAllItems();\n UnidadesBO boUniAloc=new UnidadesBO();\n try{\n List<Unidades> lista=boUniAloc.listar(idemp);\n for(Unidades lstunidades:lista){\n\n //Object[] linha = //alguma linha\n\n //model.addRow(linha);\n \n cmbUnidAloc.addItem(lstunidades.getNomeUnidade());\n if(lstunidades.getId()==veiculo.getAlocacao()){\n cmbUnidAloc.setSelectedItem(lstunidades.getNomeUnidade());\n }\n }\n }catch(NegocioException ex){\n\n } catch (DadosException ex) { \n Logger.getLogger(JFIFuncionarios.class.getName()).log(Level.SEVERE, null, ex);\n } \n \n cmbunidade.setSelectedItem(unid.getNomeUnidade());\n cmbUnidAloc.setSelectedItem(unidAloc.getNomeUnidade());\n\n \n } catch (NegocioException ex) {\n Logger.getLogger(JDUnidades.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "f1b494ea41e33973a6a7baf91e74a494", "score": "0.6528702", "text": "public void seleccionado() {\n\n mipanelterciario.resultado(\"BIENVENIDO \" + mipanelprincipal.tres.getText() + mipanelprincipal.cuatro.getText()\n + \"\\nIDENTIFICACION : \" + mipanelprincipal.dos.getText()\n + \"\\nEN LA FECHA : \" + mipanelprincipal.cinco.getText()\n + \"\\nEL NOMBRE DE SU EMPRESA ES : \" + mipanelprincipal.seis.getText()\n + \"\\nCON LA DIRECCION : \" + mipanelprincipal.uno.getText()\n + \"\\nUSTED SELECCIONO LAS SIGUIENTES OPCCIONES \"\n + \" 1). \" + mipanelprincipal.diez.getText() + \"de\" + mipanelprincipal.combo1.toString()\n + \" 2). \" + mipanelprincipal.catorce.getText() + \"\\nde\" + mipanelprincipal.combo2.toString()\n + \" 3). \" + mipanelprincipal.siete.getText() + \"\\nde\" + mipanelprincipal.combo3.toString()\n + \" 4). \" + mipanelprincipal.ocho.getText() + \"\\nde\" + mipanelprincipal.combo4.toString()\n + \" 5). \" + mipanelprincipal.nueve.getText() + \"\\nde\" + mipanelprincipal.combo5.toString()\n + \" 6). \" + mipanelprincipal.trece.getText() + \"\\nde\" + mipanelprincipal.combo7.toString()\n + \" 7). \" + mipanelprincipal.once.getText() + \"\\nde\" + mipanelprincipal.combo6.toString()\n + \" 8). \" + mipanelprincipal.doce.getText() + \"\\nde\" + mipanelprincipal.combo8.toString());\n }", "title": "" }, { "docid": "a8f8d1f16b5d6a16355e2a93ca78caae", "score": "0.65231913", "text": "public void actualizarRubro(SelectEvent event)\r\n/* 227: */ {\r\n/* 228:326 */ Rubro rubro = (Rubro)event.getObject();\r\n/* 229:327 */ setRubro(rubro);\r\n/* 230: */ \r\n/* 231:329 */ cargarDatos();\r\n/* 232: */ }", "title": "" }, { "docid": "03d5f0d3d9ec824030d01d75a005a40e", "score": "0.6501323", "text": "public actualizacion() {\n \n this.setResizable(false);\n initComponents();\n setIconImage(new ImageIcon(getClass().getResource(\"/imagenes/icono.png\")).getImage());\n setDefaultCloseOperation(0);\n llenar_combo();\n llenarCampo();\n \n personalDigital.setFrameActualizar(this);\n// personalDigital.Iniciar();\n// personalDigital.start();\n }", "title": "" }, { "docid": "07cdcf40fad87c9ee67ac02b2a1280c3", "score": "0.64939845", "text": "private void cargarComboBox(){\n\t\tview.getModeloPrecioCb().setLista(preciosDao.getTipoPrecios());\n\t\t\n\t\t\n\t\t//se remueve la lista por defecto\n\t\t//this.view.getCbxDepart().removeAllItems();\n\t\n\t\tthis.view.getCbPrecios().setSelectedIndex(0);\n\t}", "title": "" }, { "docid": "9c46e42569f028ccbfcd8ff25f989762", "score": "0.64875877", "text": "public Refuerzo(ControlRefuerzo controlRefuerzo, InterfacePrincipal padre) {\n initComponents();\n rbTropa.setSelected(true);\n this.controlRefuerzo = controlRefuerzo;\n this.padre = padre;\n actualizarTropas(controlRefuerzo.calcularEjercitosPorContinenteDisponibles(), controlRefuerzo.calcularEjercitosLibresDisponibles());\n btnFinalizar.setEnabled(false);\n rbMisil.setEnabled(controlRefuerzo.misilesPermitidos());\n }", "title": "" }, { "docid": "71564dcdda6c9e5692a7e9567f778634", "score": "0.6463934", "text": "public RelatoriosQuantitativos(Inicial Jp) {\n iniciado = false;\n JP = Jp;\n initComponents();\n this.setLocationRelativeTo(null);\n this.setResizable(false);\n this.setVisible(true);\n //this.setIconImage(Arrumador.comando().getIcone().getImage());\n this.setTitle(\"Relatórios Geral e em Planilha\");\n\n CBEvento.removeAllItems();\n eventos = BancoDeDados.comando().getTodosEventos();\n for (evento evento : eventos) {\n CBEvento.addItem(evento.getNome());\n }\n \n \n \n unidades = BancoDeDados.comando().getUnidades();\n bolsas = BancoDeDados.comando().getBolsas();\n modalidades = BancoDeDados.comando().getModalidades();\n areas = BancoDeDados.comando().getAreas();\n\n CBVariavel1.removeAllItems();\n CBVariavel1.addItem(\"Modalidade\");\n CBVariavel1.addItem(\"Area\");\n CBVariavel1.addItem(\"Bolsa\");\n CBVariavel1.addItem(\"Materiais necessarios\");\n CBVariavel1.addItem(\"Apresentacoes por apresentador\");\n CBVariavel1.addItem(\"Lista de participantes\");\n\n CBEtapa.removeAllItems();\n CBEtapa.addItem(\"Nos campi\");\n CBEtapa.addItem(\"Centralizado\");\n\n CBEtapa.setSelectedIndex(1);\n \n CBMedida.removeAllItems();\n CBMedida.addItem(\"Apresentacao\");\n //CBMedida.addItem(\"Avaliador\");\n //CBMedida.addItem(\"Autores\");\n\n \n iniciado = true;\n atualizarRelatorio();\n \n \n \n \n orders = new ArrayList<>();\n CBOrder.removeAllItems();\n CBOrder.addItem(\"id\");\n orders.add(\"apresentacao.id\");\n CBOrder.addItem(\"nome\");\n orders.add(\"apresentacao.nome\");\n CBOrder.addItem(\"unidade, nome\");\n orders.add(\"unidade, apresentacao.nome\");\n CBOrder.addItem(\"unidade, id\");\n orders.add(\"unidade, apresentacao.id\");\n CBOrder.addItem(\"area, id\");\n orders.add(\"area, apresentacao.id\");\n CBOrder.addItem(\"area, nome\");\n orders.add(\"area, apresentacao.nome\");\n CBOrder.addItem(\"area, unidade, id\");\n orders.add(\"area, unidade, apresentacao.id\");\n CBOrder.addItem(\"area, unidade, nome\");\n orders.add(\"area, unidade, apresentacao.nome\");\n \n CBEvento.setSelectedIndex(0);\n gerarRelatoriosUnidades(eventos.get(CBEvento.getSelectedIndex()));\n\n }", "title": "" }, { "docid": "5d5de4170fcb848e1ff90ffe06bef78d", "score": "0.63652503", "text": "public FrmObradaRacuna() {\n initComponents(); \n buttonGroupDaNe.add(jbtnDa);\n buttonGroupDaNe.add(jbtnNe);\n jbtnNe.setSelected(true);\n KontrolerKIInicijalizacijaTabele.inicijalizujTabelu(jtbStavke);\n KontrolerKIPopuniComboRadnici.prikaziRadnike(jcbRadnik);\n jtxtIznos.setEditable(false);\n }", "title": "" }, { "docid": "8f0e385b59b7bd63af9475c81d64b3b2", "score": "0.63583606", "text": "private void cargarComboBox() {\n\t\tDefaultComboBoxModel dcbm = new DefaultComboBoxModel();\n\t\tdcbm.removeAllElements();\n\n\t\tNodo<Red> nodoRedes = ListaRedes.getCabeza();\n\n\t\twhile (nodoRedes != null) {\n\t\t\t// dcbm.addElement(nodoEjemplar.getInfo().getId());\n\t\t\tdcbm.addElement(nodoRedes.getInfo());\n\t\t\tnodoRedes = nodoRedes.getSiguiente();\n\t\t}\n\t\tcomboBox.setModel(dcbm);\n\t}", "title": "" }, { "docid": "ef082147c284add00b8dd9e4e3b601de", "score": "0.6340008", "text": "private void cargarControles() {\n\n\tC.setLayout(null);\n\tbtnCuadrado.setBounds(10, 50, 100, 35);\n\tbtnRectangulo.setBounds(20, 100, 100, 35);\n\tbtnTriangulo.setBounds(30, 150, 100, 35);\n\tbtnCirculo.setBounds(40, 200, 100, 35);\n\t\n\t\n\tC.add(btnCuadrado);\n\tC.add(btnRectangulo);\n\tC.add(btnTriangulo);\n\tC.add(btnCirculo);\n\t\n\tbtnCuadrado.addActionListener(this);\n\tbtnRectangulo.addActionListener(this);\n\tbtnTriangulo.addActionListener(this);\n\tbtnCirculo.addActionListener(this);\n\t\n}", "title": "" }, { "docid": "887ce1e2d1ed494c122d0770e2dd5e4f", "score": "0.6319202", "text": "private void carregaCombo() {\n FornecedorService fService = new FornecedorService();\n \n Vector<Fornecedor> fornecedores = new Vector<>(fService.buscarTodos());\n \n DefaultComboBoxModel dcm = new DefaultComboBoxModel(fornecedores);\n \n jCbxFornecedores.setModel(dcm);\n }", "title": "" }, { "docid": "898838e1e7dcb163f41bf97423b4d854", "score": "0.63178027", "text": "public void limpiar() {\n idImplementacion = -1;\n empleadosTblModel.setDataVector(new String[3][0], titulosTabla);\n if(antesGraficaPnl.getComponentCount() > 0){\n antesGraficaPnl.removeAll();\n despuesGraficaPnl.removeAll();\n repaint();\n }\n }", "title": "" }, { "docid": "3ed53035a8f71b2f776c9da240e88e9a", "score": "0.6315423", "text": "public Boleto() {\n initComponents();\n limpiar();\n bloquear();\n combo1();\n bactualizar.setEnabled(false);\n }", "title": "" }, { "docid": "88398dd31c2ecf7fbbbf74738725024f", "score": "0.6294232", "text": "void abrir_formulario() {\n this.setTitle(\"GASTO\");\n evetbl.centrar_formulario(this);\n reestableser();\n color_formulario();\n }", "title": "" }, { "docid": "9bc2b4f7cb1297837930fea21bad73e0", "score": "0.6275492", "text": "public void rafraichir() {\n this.fenetre.repaint();\n }", "title": "" }, { "docid": "e84b2810c395b93114b340648f9a1fe7", "score": "0.6267818", "text": "public ListaDeCambios() {\n initComponents();\n consutaProducto();\n buttonGroup1.add(OptCodigoCliente);\n buttonGroup1.add(OptNombreCliente);\n buttonGroup1.add(OptTicket);\n this.setResizable(false);\n }", "title": "" }, { "docid": "24726447425cb96ba5a78420a1e0d156", "score": "0.62654465", "text": "private void definirEstadoRadicadoInterno() {\n\t\tcmbEstado.setDisabled(true);\n\t\t\n\t\tif (estadosRadicado == null || estadosRadicado.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t/**\n\t\t * Cuando el Radicado Requiere Respuesta y el tipo de radicación es 'Interna', \n\t\t * el sistema presenta el campo estado con las opciones: 'Recibido' y 'Radicado'. Cuando \n\t\t * el estado es 'Asignado' y 'Gestionado' el sistema nuestra el campo como solo lectura\n\t\t */\n\t\tif (corRadicadoEditar.isRequiereRespuesta()) {\n\t\t\tif (corRadicadoEditar.getEstadoId() == Utils.ID_ESTADO_RADICADO_ASIGNADO || corRadicadoEditar.getEstadoId() == Utils.ID_ESTADO_RADICADO_GESTIONADO) {\n\t\t\t\tEstadoRadicado radicado = estadosRadicado.stream()\n\t\t\t\t\t\t.filter(x -> x.getEstadoRadId() == corRadicadoEditar.getEstadoId()).findFirst().get();\n\t\t\t\tComboitem comboitem = new Comboitem();\n\t\t\t\tcomboitem.setValue(radicado);\n\t\t\t\tcomboitem.setLabel(radicado.getNombre());\n\t\t\t\tcmbEstado.appendChild(comboitem);\n\t\t\t\tcmbEstado.setSelectedItem(comboitem);\n\t\t\t} else {\n\t\t\t\testadosRadicado = estadosRadicado.stream()\n\t\t\t\t\t\t.filter(x -> x.getEstadoRadId() == Utils.ID_ESTADO_RADICADO_RECIBIDO\n\t\t\t\t\t\t\t\t|| x.getEstadoRadId() == Utils.ID_ESTADO_RADICADO_RADICADO)\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tUtils.llenarComboboxEstadoRadicado(estadosRadicado, cmbEstado);\n\n\t\t\t\tif (Utils.isValidoCombobox(cmbEstado)) {\n\t\t\t\t\tfor (Comboitem row : cmbEstado.getItems()) {\n\t\t\t\t\t\tEstadoRadicado corEstadoRadicado = (EstadoRadicado) row.getValue();\n\t\t\t\t\t\tif (corEstadoRadicado != null\n\t\t\t\t\t\t\t\t&& corEstadoRadicado.getEstadoRadId() == corRadicadoEditar.getEstadoId()) {\n\t\t\t\t\t\t\tcmbEstado.setSelectedItem(row);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcmbEstado.setDisabled(false);\n\t\t\t}\n\t\t} else {\n\t\t\tif (corRadicadoEditar.getEstadoId() == Utils.ID_ESTADO_RADICADO_INFORMADO || corRadicadoEditar.getEstadoId() == Utils.ID_ESTADO_RADICADO_GESTIONADO) {\n\t\t\t\tEstadoRadicado radicado = estadosRadicado.stream()\n\t\t\t\t\t\t.filter(x -> x.getEstadoRadId() == corRadicadoEditar.getEstadoId()).findFirst().get();\n\t\t\t\tComboitem comboitem = new Comboitem();\n\t\t\t\tcomboitem.setValue(radicado);\n\t\t\t\tcomboitem.setLabel(radicado.getNombre());\n\t\t\t\tcmbEstado.appendChild(comboitem);\n\t\t\t\tcmbEstado.setSelectedItem(comboitem);\n\t\t\t} else {\n\t\t\t\testadosRadicado = estadosRadicado.stream()\n\t\t\t\t\t\t.filter(x -> x.getEstadoRadId() == Utils.ID_ESTADO_RADICADO_RECIBIDO\n\t\t\t\t\t\t\t\t|| x.getEstadoRadId() == Utils.ID_ESTADO_RADICADO_RADICADO)\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tUtils.llenarComboboxEstadoRadicado(estadosRadicado, cmbEstado);\n\n\t\t\t\tif (Utils.isValidoCombobox(cmbEstado)) {\n\t\t\t\t\tfor (Comboitem row : cmbEstado.getItems()) {\n\t\t\t\t\t\tEstadoRadicado corEstadoRadicado = (EstadoRadicado) row.getValue();\n\t\t\t\t\t\tif (corEstadoRadicado != null\n\t\t\t\t\t\t\t\t&& corEstadoRadicado.getEstadoRadId() == corRadicadoEditar.getEstadoId()) {\n\t\t\t\t\t\t\tcmbEstado.setSelectedItem(row);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcmbEstado.setDisabled(false);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "50138ac68cd555f9521e233d64f6b20c", "score": "0.624049", "text": "public TipoCambio() {\n initComponents();\n setFrameIcon(new ImageIcon(getClass().getResource(\"/img/Santander.png\")));\n this.setTitle(\"Mantenimiento de Tipo de Cambio.\");\n Date hoy=new Date();\n dcfecha.setDate(hoy);\n tblistatipocambio.setModel(modTbdatos);\n simbolo.setDecimalSeparator('.');\n simbolo.setGroupingSeparator(',');\n listatipocambio();\n if(tblistatipocambio.getRowCount()>0){\n seleccionarfila(0);\n tblistatipocambio.setRowSelectionInterval(0, 0);\n }\n tblistatipocambio.getTableHeader().setReorderingAllowed(false);\n }", "title": "" }, { "docid": "8a4d52f3c7052f67956565127a6be95e", "score": "0.6233671", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t{\n\t\tObject objetoPulsado = e.getSource();\n\t\tif(objetoPulsado.equals(btnLimpiar))\n\t\t{\n\t\t\tchoParaEn.select(0);\n\t\t}\n\t\telse if(objetoPulsado.equals(btnAceptar))\n\t\t{\n\t\t\t// Sacar el id del elemento elegido\n\t\t\t\n\t\t\t// Crear un Frame igual que el ALTA\n\t\t\tmodificarBus = new Frame(\"Modificar Autobus\");\n\t\t\tmodificarBus.setLayout(new FlowLayout());\n\t\t\tLabel lblIdLineaFK = new Label(\"idLineaFK:\");\n\t\t\tLabel lblIdParadaFK = new Label(\"IdParadaFK:\");\n\t\t\t\n\t\t\tchoIdLineaFK = new Choice();\n\t\t\tchoIdParadaFK = new Choice();\n\t\t\t\n\t\t\t\n\t\t\tbtnAceptarCambios = new Button(\"Aceptar\");\n\t\t\tbtnCancelarCambios = new Button(\"Cancelar\");\n\t\t\tmodificarBus.add(lblIdLineaFK);\n\t\t\t\n\t\t\tConnection con = conectar();\n\t\t\tString sqlSelect = \"SELECT idLinea FROM lineas\";\n\t\t\ttry {\n\t\t\t\t// CREAR UN STATEMENT PARA UNA CONSULTA SELECT\n\t\t\t\tStatement stmt = con.createStatement();\n\t\t\t\tResultSet rs = stmt.executeQuery(sqlSelect);\n\t\t\t\twhile (rs.next()) \n\t\t\t\t{\n\t\t\t\t\tchoIdLineaFK.add(rs.getString(\"idLinea\"));\n\t\t\t\t}\n\t\t\t\trs.close();\n\t\t\t\tstmt.close(); }\n\t\t\tcatch (SQLException ex) {\n\t\t\t\tSystem.out.println(\"ERROR: al consultar lineas\");\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tmodificarBus.add(choIdLineaFK);\n\t\t\tmodificarBus.add(lblIdParadaFK);\t\t\t\n\t\t\t\n\t\t\tString sqlSelect2 = \"SELECT idParada FROM paradas\";\n\t\t\ttry {\n\t\t\t\t// CREAR UN STATEMENT PARA UNA CONSULTA SELECT\n\t\t\t\tStatement stmt = con.createStatement();\n\t\t\t\tResultSet rs = stmt.executeQuery(sqlSelect2);\n\t\t\t\twhile (rs.next()) \n\t\t\t\t{\n\t\t\t\t\tchoIdParadaFK.add(rs.getString(\"idParada\"));\n\t\t\t\t}\n\t\t\t\trs.close();\n\t\t\t\tstmt.close(); }\n\t\t\tcatch (SQLException ex) {\n\t\t\t\tSystem.out.println(\"ERROR: al consultar paradas\");\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tmodificarBus.add(choIdParadaFK);\n\t\t\tbtnAceptarCambios.addActionListener(this);\n\t\t\tbtnCancelarCambios.addActionListener(this);\n\t\t\tmodificarBus.add(btnAceptarCambios);\n\t\t\tmodificarBus.add(btnCancelarCambios);\n\t\t\t// Pero relleno-->\n\t\t\t// Conectar a la base de datos\n\t\t\t\n\t\t\t// Seleccionar los datos del elemento\n\t\t\tmostrarDatos(con, choIdLineaFK, choIdParadaFK);\n\t\t\t// seleccionado\n\t\t\t// Mostrarlos\n\t\t\tdesconectar(con);\n\t\t\tmodificarBus.addWindowListener(this);\n\t\t\tmodificarBus.setResizable(false);\n\t\t\tmodificarBus.setSize(250,400);\n\t\t\tmodificarBus.setLocationRelativeTo(null);\n\t\t\tmodificarBus.setVisible(true);\n\t\t}\n\t\telse if(objetoPulsado.equals(btnNo))\n\t\t{\n\t\t\tseguro.setVisible(false);\n\t\t}\n\t\telse if(objetoPulsado.equals(btnCancelarCambios))\n\t\t{\n\t\t\tmodificarBus.setVisible(false);\n\t\t}\n\t\telse if(objetoPulsado.equals(btnAceptarCambios))\n\t\t{\n\t\t\tint id = Integer.parseInt(choIdLineaFK.getSelectedItem().split(\"-\")[0]);\n\t\t\t\n\t\t\tString idParadaFK = choIdParadaFK.getSelectedItem();\n\t\t\t// Conectar a la base de datos\n\t\t\tConnection con = conectar();\n\t\t\t// Ejecutar el UPDATE\n\t\t\tString sql =\"UPDATE paraen SET idLineaFK = \"+id+\", idParadaFK = \"+idParadaFK+\" WHERE idLineaFK=\"+id;\n\t\t\tSystem.out.println(sql);\n\t\t\ttry {\n\t\t\t\t// CREAR UN STATEMENT PARA UNA CONSULTA SELECT\n\t\t\t\tStatement stmt = con.createStatement();\n\t\t\t\tstmt.executeUpdate(sql);\n\t\t\t\tstmt.close();\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tSystem.out.println(\"ERROR:al consultar\");\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t\t// Cerrar la conexión\n\t\t\tdesconectar(con);\n\t\t\tmodificarBus.setVisible(false);\n\t\t}\n\t}", "title": "" }, { "docid": "7e131066d20f28173268485df0f8f0ac", "score": "0.62201905", "text": "public void carregarComboBox(){\n carAgrada=true;\n String data = Formatacao.ConvercaoDataSql(new Date());\n String ano = data.substring(0, 4);\n String mes = data.substring(5,7);\n String nomeMes = Formatacao.nomeMes(Integer.parseInt(mes));\n anojComboBox.setSelectedItem(ano);\n mesjComboBox.setSelectedItem(nomeMes);\n if (carAgrada){\n carregarModelAgenda();\n }\n }", "title": "" }, { "docid": "218c95bc873501a3c7fca7485cce723e", "score": "0.6211904", "text": "public void cambiarTipoLetra(){\n if(!btnNegrita.isSelected() && !btnCursiva.isSelected() && !btnSubrayado.isSelected()){\n txtContenido.setFont(new Font((String) cboTipoLetra.getSelectedItem(),0,(int)spnTamanio.getValue()));\n }\n else if(btnNegrita.isSelected() && !btnCursiva.isSelected() && !btnSubrayado.isSelected()){\n txtContenido.setFont(new Font((String) cboTipoLetra.getSelectedItem(),1,(int)spnTamanio.getValue()));\n }\n else if(!btnNegrita.isSelected() && btnCursiva.isSelected() && !btnSubrayado.isSelected()){\n txtContenido.setFont(new Font((String) cboTipoLetra.getSelectedItem(),2,(int)spnTamanio.getValue()));\n }\n else if(!btnNegrita.isSelected() && !btnCursiva.isSelected() && btnSubrayado.isSelected()){\n txtContenido.setFont(new Font((String) cboTipoLetra.getSelectedItem(),0,(int)spnTamanio.getValue()));\n subrayado();\n }\n else if(btnNegrita.isSelected() && btnCursiva.isSelected() && !btnSubrayado.isSelected()){\n txtContenido.setFont(new Font((String) cboTipoLetra.getSelectedItem(),3,(int)spnTamanio.getValue()));\n }\n else if(!btnNegrita.isSelected() && btnCursiva.isSelected() && btnSubrayado.isSelected()){\n txtContenido.setFont(new Font((String) cboTipoLetra.getSelectedItem(),2,(int)spnTamanio.getValue()));\n subrayado();\n }\n else if(btnNegrita.isSelected() && btnCursiva.isSelected() && btnSubrayado.isSelected()){\n txtContenido.setFont(new Font((String) cboTipoLetra.getSelectedItem(),3,(int)spnTamanio.getValue()));\n subrayado();\n }\n else if(btnNegrita.isSelected() && !btnCursiva.isSelected() && btnSubrayado.isSelected()){\n txtContenido.setFont(new Font((String) cboTipoLetra.getSelectedItem(),1,(int)spnTamanio.getValue()));\n subrayado();\n }\n }", "title": "" }, { "docid": "bc63cd3429e3928185056e49e6e2420e", "score": "0.6196882", "text": "public CadastrarLivro() {\n initComponents();\n setSize(700, 450);\n setLocationRelativeTo(this);\n AtualizarCombo();\n \n }", "title": "" }, { "docid": "051d7f90ae4bff9d23b0d5cc470b2119", "score": "0.6191469", "text": "private void construirefenetreCompteRendu() \r\n\t{\n\t\tObject[][] donnees = null;\r\n\t\tString [] enTete = {\"Type Chambre\", \"Chambres Disponibles\"};\r\n\t\tJTable table = m_panel.setTableauEtat(donnees, enTete);\r\n\t\ttable.addMouseListener(new MouseAdapter() {\r\n \r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n if (e.getClickCount() == 2) \r\n {\r\n \tJTable target = (JTable)e.getSource();\r\n int row = target.getSelectedRow();\r\n int column = target.getSelectedColumn(); \r\n String typeChambre = \"luxe\"; // Ici recuperer le type de service\r\n \t\tObject[][] donnees = null; // recuperer ici le nom des hotels, les chambres dispo et le prix des services\r\n \t\tString [] enTete = {\"Nom Hotel\", \"Chambres Disponibles\", \"service 1\", \"service 2\"};\r\n m_panel.setTableauEtatTypeChambre(donnees, enTete);\r\n }\r\n return;\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "de5fb3922c42d36104153a7532dee350", "score": "0.61908877", "text": "public RecettesCuisine() {\n initComponents();\n init();\n }", "title": "" }, { "docid": "5b929571ccbc75a32aa77b310f7c285a", "score": "0.6188616", "text": "private void RefrescarDatos(String cedula){\n ctr.Encuentracliente(cedula);\n txtNombre.setText(ctr.getPersona().getNombre()+\" \"+ctr.getPersona().getApellido());\n txtCedula.setText(\"CI. \"+ctr.getPersona().getCedula()); \n txtCorreo.setText(ctr.getPersona().getCorreo());\n txtTelefono.setText(ctr.getPersona().getTelefono());\n txtDireccion.setText(ctr.getPersona().getDireccion());\n imagen.setIcon(uti.img(ctr.getPersona().getImagenObtenida(),imagen.getSize()));\n if (ctr.getPersona().getEstado().booleanValue()) {\n bxActivo.setSelectedItem(\"Activo\");\n }else{\n bxActivo.setSelectedItem(\"Inactivo\");\n }\n }", "title": "" }, { "docid": "156d2fd275b85265f5b04f638e9d0e46", "score": "0.61800283", "text": "public EdicaoRefil() {\n initComponents();\n }", "title": "" }, { "docid": "f5a939b365f8fa874cb6678a674a93e2", "score": "0.617644", "text": "public void limpiar() {\n if (rols.equals(\"Director técnico\")) {\n guardar.setEnabled(false);\n modificar.setEnabled(false);\n } else if (rols.equals(\"Líder de calidad\")) {\n guardar.setEnabled(false);\n modificar.setEnabled(false);\n } else if (rols.equals(\"Analista\")) {\n guardar.setEnabled(true);\n modificar.setEnabled(true);\n } else if (rols.equals(\"Técnico\")) {\n guardar.setEnabled(true);\n modificar.setEnabled(true);\n } else {\n guardar.setEnabled(false);\n modificar.setEnabled(false);\n }\n this.registro.enable(true);\n this.numreporte.enable(true);\n this.registro.setText(\"\");\n this.hinicio.setText(\"\");\n this.hfin.setText(\"\");\n this.huinicio.setText(\"\");\n this.hufin.setText(\"\");\n this.tinicio.setText(\"\");\n this.tfin.setText(\"\");\n this.aescherichia.setSelectedItem(\"Si\");\n this.acoliformes.setSelectedItem(\"Si\");\n this.amesolitos.setSelectedItem(\"Si\");\n this.escherichia.setText(\"\");\n this.coliformes.setText(\"\");\n this.mesolitos.setText(\"\");\n this.hpescherichia.setText(\"\");\n this.hpcoliformes.setText(\"\");\n this.hpmesolitos.setText(\"\");\n this.hcescherichia.setText(\"\");\n this.hccoliformes.setText(\"\");\n this.hcmesolitos.setText(\"\");\n this.respon2.setText(\"\");\n this.obs2.setText(\"\");\n this.obsgeneral2.setText(\"\");\n this.interno.setText(\"\");\n this.aph.setSelectedItem(\"Si\");\n this.ph.setText(\"\");\n this.aconduc.setSelectedItem(\"Si\");\n this.conduct.setText(\"\");\n this.acolor.setSelectedItem(\"Si\");\n this.color.setText(\"\");\n this.aturbi.setSelectedItem(\"Si\");\n this.turbieda.setText(\"\");\n this.aclororecidual.setSelectedItem(\"Si\");\n this.clororecidu.setText(\"\");\n this.acalcio.setSelectedItem(\"Si\");\n this.calcio.setText(\"\");\n this.aAlcalinidad.setSelectedItem(\"Si\");\n this.alcalinidad.setText(\"\");\n this.acloruros.setSelectedItem(\"Si\");\n this.cloruros.setText(\"\");\n this.adureza.setSelectedItem(\"Si\");\n this.dureza.setText(\"\");\n this.anitrato.setSelectedItem(\"Si\");\n this.nitrato.setText(\"\");\n this.afosfato.setSelectedItem(\"Si\");\n this.fosfato.setText(\"\");\n this.aAluminio.setSelectedItem(\"Si\");\n this.aluminio.setText(\"\");\n this.aclorolibre.setSelectedItem(\"Si\");\n this.clorolibre.setText(\"\");\n this.asulfato.setSelectedItem(\"Si\");\n this.sulfato.setText(\"\");\n this.anitrito.setSelectedItem(\"Si\");\n this.nitrito.setText(\"\");\n this.ahierro.setSelectedItem(\"Si\");\n this.hierro.setText(\"\");\n this.aotros.setSelectedItem(\"Si\");\n this.otros.setText(\"\");\n this.obs1.setText(\"\");\n this.obsgerenal1.setText(\"\");\n this.reponsable1.setText(\"\");\n this.numreporte.setText(\"\");\n\n Date hoy = new Date();\n\n this.fecharecep.setDate(hoy);\n this.finicio.setDate(hoy);\n this.ffin.setDate(hoy);\n this.fpescherichia.setDate(hoy);\n this.fcoliformes.setDate(hoy);\n this.fmesolitos.setDate(hoy);\n this.fcontescerichia.setDate(hoy);\n this.fconteocoliformes.setDate(hoy);\n this.fconteomesolitos.setDate(hoy);\n this.fph.setDate(hoy);\n this.fconduc.setDate(hoy);\n this.fcolor.setDate(hoy);\n this.fturbi.setDate(hoy);\n this.fclororeci.setDate(hoy);\n this.fcalcio.setDate(hoy);\n this.falcalinidad.setDate(hoy);\n this.fcloruros.setDate(hoy);\n this.fdureza.setDate(hoy);\n this.fnitrato.setDate(hoy);\n this.fFosfato.setDate(hoy);\n this.falumino.setDate(hoy);\n this.fclorolibre.setDate(hoy);\n this.fsulfato.setDate(hoy);\n this.fnitrito.setDate(hoy);\n this.fhierro.setDate(hoy);\n this.fotros.setDate(hoy);\n }", "title": "" }, { "docid": "41d3e43a3d1ba1849881f072d4500469", "score": "0.61698", "text": "public RegistroPlanEstudio() {\n initComponents();\n cargarComboBoxEscuelas();\n }", "title": "" }, { "docid": "56518b53307e3ff3c22cccb8082e41ef", "score": "0.6168419", "text": "private void llenacodComprobante() {\n indicecompro = cbotipocomprobante.getSelectedIndex();\n if (indicecompro != 0) {\n LComprobante limp = new LComprobante();\n listipocom = limp.ListaTipoComprobante();\n codcomprobante = listipocom.get(indicecompro - 1).getCodComprobante();\n desccomprobante = listipocom.get(indicecompro - 1).getDescComprobante();\n } else {\n codcomprobante = \"0\";\n desccomprobante = \"0\";\n }\n }", "title": "" }, { "docid": "1338988057e33847b5d5afa58c89fc15", "score": "0.6157683", "text": "public void refreshCampos() {\n// if (funcionario.isAtivo()) {\n// jRativo.setSelected(true);\n// jRinativo.setEnabled(false);\n// } else {\n// jRinativo.setSelected(true);\n// jRativo.setEnabled(false);\n// }\n \n if (funcionario.getSexo().equals(\"M\")) {\n jRmasc.setSelected(true);\n jRfem.setEnabled(false);\n } else if(funcionario.getSexo().equals(\"F\")){\n jRfem.setSelected(true);\n jRmasc.setEnabled(false);\n }\n jLcontrato.setText(TransformDate.transformDate(funcionario.getContrato()));\n jLcpf.setText(funcionario.getCpf());\n jLnasc.setText(TransformDate.transformDate(funcionario.getDataNascimento()));\n jLemail.setText(funcionario.getEmail());\n jLid.setText(\"\" + funcionario.getIdFuncionario());\n jLnome.setText(funcionario.getNome());\n jLrecisao.setText(TransformDate.transformDate(funcionario.getRecisao()));\n jLrg.setText(funcionario.getRg());\n jLsalario.setText(\"\" + funcionario.getSalario());\n jLtel.setText(funcionario.getTelefone());\n jLtel2.setText(funcionario.getTelefone2());\n int ano = Integer.valueOf(jLnasc.getText().substring(jLnasc.getText().length() - 4, jLnasc.getText().length()));\n jLidade.setText(\"\" + (MyDate.getAno() - ano));\n jLbairro.setText(funcionario.getEndereco().getBairro());\n jLcep.setText(funcionario.getEndereco().getCEP());\n jLcidade.setText(funcionario.getEndereco().getCidade());\n jLcomplento.setText(funcionario.getEndereco().getComplemento());\n jLestado.setText(funcionario.getEndereco().getEstado());\n jLnum.setText(\"\" + funcionario.getEndereco().getNumero());\n jLrua.setText(funcionario.getEndereco().getRua());\n }", "title": "" }, { "docid": "2b55b95dce311b476e6da060ee66a0ac", "score": "0.61547625", "text": "public VistaElementoscomunescarrito() {\n // You can initialise any data required for the connected UI components here.\n }", "title": "" }, { "docid": "c29dd1ca7af09227faf0ba62efddf5a3", "score": "0.6151205", "text": "public Ingreso_Anterior_ER() {\n initComponents();\n try{\n sql.cerrarModelo(dftm);\n cbm = sql.cargarMarcas();\n }\n catch(SQLException e){\n System.out.println(e);\n }\n jComboBoxMarca.setModel(cbm);\n jButtonCargar.setEnabled(false);\n }", "title": "" }, { "docid": "233c83c7810210dc84a3ab58bec5d9bf", "score": "0.61403286", "text": "void addSelectionListeners() {\n\n dispTypeCombo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n NcDisplayType selDispType = NcDisplayType\n .getDisplayType(dispTypeCombo.getText());\n if (rbdMngr.getRbdType() != selDispType) {\n if (rbdMngr.isRbdModified()) {\n MessageDialog confirmDlg = new MessageDialog(shell,\n \"Confirm\", null,\n \"This RBD has been modified.\\n\\n\"\n + \"Do you want to clear the current RBD selections?\",\n MessageDialog.QUESTION,\n new String[] { \"Yes\", \"No\" }, 0);\n confirmDlg.open();\n\n if (confirmDlg.getReturnCode() != MessageDialog.OK) {\n return;\n }\n }\n\n try {\n rbdMngr.setRbdType(selDispType);\n\n AbstractRBD<?> dfltRbd = AbstractRBD\n .getDefaultRBD(rbdMngr.getRbdType());\n\n rbdMngr.initFromRbdBundle(dfltRbd);\n\n } catch (VizException ve) {\n MessageDialog errDlg = new MessageDialog(shell, \"Error\",\n null, ve.getMessage(), MessageDialog.ERROR,\n new String[] { \"OK\" }, 0);\n errDlg.open();\n\n rbdMngr.init(rbdMngr.getRbdType());\n }\n updateGUI();\n }\n }\n });\n\n selectResourceButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n StructuredSelection sel_elems = (StructuredSelection) selectedResourceViewer\n .getSelection();\n List<ResourceSelection> seldRscsList = sel_elems.toList();\n int numSeldRscs = selectedResourceViewer.getList()\n .getSelectionCount();\n\n Boolean isBaseLevelRscSeld = false;\n // the initially selected resource is the first non-baselevel\n // rsc\n ResourceName initRscName = null;\n\n for (ResourceSelection rscSel : seldRscsList) {\n isBaseLevelRscSeld |= rscSel.isBaseLevelResource();\n if (initRscName == null && !rscSel.isBaseLevelResource()) {\n initRscName = rscSel.getResourceName();\n }\n }\n\n // the replace button is enabled if there is only 1 resource\n // selected and it is not the base resource\n if (rscSelDlg.isOpen()) {\n if (initRscName != null) {\n rscSelDlg.setSelectedResource(initRscName);\n }\n } else {\n // Replace button is visible replace enabled\n rscSelDlg.open(true,\n (numSeldRscs == 1 && !isBaseLevelRscSeld),\n initRscName, multiPaneToggle.getSelection(),\n rbdMngr.getRbdType(),\n SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MODELESS);\n }\n }\n });\n\n // may be invisible, if implementing the Replace on the Select Resource\n // Dialog\n replaceResourceButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n if (!rscSelDlg.isOpen()) {\n StructuredSelection sel_elems = (StructuredSelection) selectedResourceViewer\n .getSelection();\n ResourceSelection rscSel = (ResourceSelection) sel_elems\n .getFirstElement();\n\n // Replace button is visible\n\n rscSelDlg.open(true, (rscSel != null ? true : false),\n rscSel.getResourceName(),\n multiPaneToggle.getSelection(),\n rbdMngr.getRbdType(), SWT.DIALOG_TRIM | SWT.RESIZE\n | SWT.APPLICATION_MODAL);\n }\n }\n });\n\n rscSelDlg.addResourceSelectionListener(new IResourceSelectedListener() {\n @Override\n public void resourceSelected(ResourceName rscName, boolean replace,\n boolean addAllPanes, boolean done) {\n\n try {\n ResourceSelection rbt = ResourceFactory\n .createResource(rscName);\n\n rbdMngr.getSelectedArea();\n\n // if replacing existing resources, get the selected\n // resources (For now just replace the 1st if more than one\n // selected.)\n\n if (replace) {\n StructuredSelection sel_elems = (StructuredSelection) selectedResourceViewer\n .getSelection();\n ResourceSelection rscSel = (ResourceSelection) sel_elems\n .getFirstElement();\n\n StructuredSelection grp = (StructuredSelection) groupListViewer\n .getSelection();\n\n ResourceSelection sel = (ResourceSelection) grp\n .getFirstElement();\n\n // If the group resource functionality exists (which it\n // does in all cases currently) sel will have a value.\n // If in the future it is removed in some places, use\n // the standard replace method.\n\n if (sel != null) {\n\n // If we are in the Static group, just replace the\n // resource(s) as normal. If we are in a group\n // resource follow the group resource replace method\n\n if (((GroupResourceData) sel.getResourcePair()\n .getResourceData()).getGroupName()\n .equalsIgnoreCase(ungrpStr)) {\n sel = null;\n rbdMngr.replaceSelectedResource(rscSel, rbt);\n\n } else {\n ((GroupResourceData) sel.getResourceData())\n .replaceResourcePair(\n rscSel.getResourcePair(),\n rbt.getResourcePair());\n\n selectedResourceViewer.setInput(rbdMngr\n .getResourcesInGroup(groupListViewer\n .getTable()\n .getSelection().length == 0\n ? null\n : groupListViewer\n .getTable()\n .getSelection()[0]\n .getText()));\n\n selectedResourceViewer.refresh(true);\n }\n } else {\n rbdMngr.replaceSelectedResource(rscSel, rbt);\n }\n\n // remove this from the list of available dominant\n // resources.\n if (rscSel\n .getResourceData() instanceof AbstractNatlCntrsRequestableResourceData) {\n timelineControl.removeAvailDomResource(\n (AbstractNatlCntrsRequestableResourceData) rscSel\n .getResourceData());\n }\n\n // if replacing a resource which is set to provide the\n // geographic area check to see if the current area has\n // been reset to the default because it was not\n // available\n\n updateAreaGUI();\n\n } else {\n if (addAllPanes) {\n if (!rbdMngr.addSelectedResourceToAllPanes(rbt)) {\n if (done) {\n rscSelDlg.close();\n }\n return;\n }\n } else {\n\n StructuredSelection grp = (StructuredSelection) groupListViewer\n .getSelection();\n\n ResourceSelection sel = (ResourceSelection) grp\n .getFirstElement();\n\n if (sel != null && ((GroupResourceData) sel\n .getResourcePair().getResourceData())\n .getGroupName()\n .equalsIgnoreCase(ungrpStr)) {\n sel = null;\n }\n\n if (!rbdMngr.addSelectedResource(rbt, sel)) {\n if (sel != null) {\n selectedResourceViewer.setInput(rbdMngr\n .getResourcesInGroup(groupListViewer\n .getTable()\n .getSelection().length == 0\n ? null\n : groupListViewer\n .getTable()\n .getSelection()[0]\n .getText()));\n\n selectedResourceViewer.refresh(true);\n }\n\n if (done) {\n rscSelDlg.close();\n }\n return;\n }\n }\n }\n\n // add the new resource to the timeline as a possible\n // dominant resource\n if (rbt.getResourceData() instanceof AbstractNatlCntrsRequestableResourceData) {\n timelineControl.addAvailDomResource(\n (AbstractNatlCntrsRequestableResourceData) rbt\n .getResourceData());\n\n // if there is not a dominant resource selected then\n // select this one\n if (timelineControl.getDominantResource() == null) {\n timelineControl\n .setDominantResource(\n (AbstractNatlCntrsRequestableResourceData) rbt\n .getResourceData(),\n replace);\n }\n }\n } catch (VizException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Error Adding Resource to List: \" + e.getMessage());\n MessageDialog errDlg = new MessageDialog(shell, \"Error\",\n null,\n \"Error Creating Resource:\" + rscName.toString()\n + \"\\n\\n\" + e.getMessage(),\n MessageDialog.ERROR, new String[] { \"OK\" }, 0);\n errDlg.open();\n }\n\n updateSelectedResourcesView(true);\n\n if (done) {\n rscSelDlg.close();\n }\n }\n });\n\n sizeOfImageButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n rbdMngr.setZoomLevel((sizeOfImageButton.getSelection()\n ? ZoomLevelStrings.SizeOfImage.toString()\n : ZoomLevelStrings.FitToScreen.toString()));\n\n }\n });\n\n fitToScreenButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n rbdMngr.setZoomLevel((fitToScreenButton.getSelection()\n ? ZoomLevelStrings.FitToScreen.toString()\n : ZoomLevelStrings.SizeOfImage.toString()));\n }\n });\n\n // TODO: if single pane and there are resources selected\n // in other panes then should we prompt the user on whether\n // to clear them? We can ignore them if Loading/Saving a\n // single pane, but if they reset multi-pane then should the\n // resources in other panes still be selected.\n multiPaneToggle.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent ev) {\n rbdMngr.setMultiPane(multiPaneToggle.getSelection());\n\n updateGUIforMultipane(multiPaneToggle.getSelection());\n\n if (multiPaneToggle.getSelection()) {\n updatePaneLayout();\n } else {\n selectPane(new NcPaneID());\n }\n\n if (rscSelDlg != null && rscSelDlg.isOpen()) {\n rscSelDlg.setMultiPaneEnabled(\n multiPaneToggle.getSelection());\n }\n }\n });\n\n // if syncing the panes\n geoSyncPanesToggle.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent ev) {\n\n if (geoSyncPanesToggle.getSelection()) {\n\n MessageDialog confirmDlg = new MessageDialog(shell,\n \"Confirm Geo-Sync Panes\", null,\n \"This will set the Area for all panes to the currently\\n\"\n + \"selected Area: \"\n + rbdMngr.getSelectedArea()\n .getProviderName()\n + \"\\n\\n\" + \"Continue?\",\n MessageDialog.QUESTION,\n new String[] { \"Yes\", \"No\" }, 0);\n confirmDlg.open();\n\n if (confirmDlg.getReturnCode() != MessageDialog.OK) {\n geoSyncPanesToggle.setSelection(false);\n return;\n }\n\n rbdMngr.syncPanesToArea();\n } else {\n rbdMngr.setGeoSyncPanes(false);\n }\n }\n });\n\n customAreaButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent ev) {\n }\n });\n\n // only 1 should be selected or this button should be greyed out\n editResourceButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent ev) {\n editResourceData();\n }\n });\n\n deleteResourceButton.addSelectionListener(new SelectionAdapter() {\n\n @Override\n public void widgetSelected(SelectionEvent ev) {\n StructuredSelection sel_elems = (StructuredSelection) selectedResourceViewer\n .getSelection();\n Iterator<?> itr = sel_elems.iterator();\n\n // note: the base may be selected if there are multi selected\n // with others.\n while (itr.hasNext()) {\n ResourceSelection rscSel = (ResourceSelection) itr.next();\n if (!rscSel.isBaseLevelResource()) {\n removeSelectedResource(rscSel);\n }\n }\n\n updateSelectedResourcesView(true);\n updateAreaGUI();\n\n }\n });\n\n disableResourceButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent ev) {\n StructuredSelection sel_elems = (StructuredSelection) selectedResourceViewer\n .getSelection();\n Iterator<?> itr = sel_elems.iterator();\n\n while (itr.hasNext()) {\n ResourceSelection rscSel = (ResourceSelection) itr.next();\n rscSel.setIsVisible(!disableResourceButton.getSelection());\n }\n\n selectedResourceViewer.refresh(true);\n\n updateSelectedResourcesView(false);\n }\n });\n\n clearPaneButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent ev) {\n clearSeldResources();\n }\n });\n\n clearRbdButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent ev) {\n clearRBD();\n }\n });\n\n loadRbdButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent ev) {\n loadRBD(false);\n }\n });\n\n loadAndCloseButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent ev) {\n loadRBD(true);\n }\n });\n\n loadPaneButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent ev) {\n loadPane();\n }\n });\n\n saveRbdButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent ev) {\n saveRBD(false);\n }\n });\n\n importRbdCombo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent ev) {\n importRBD(importRbdCombo.getText());\n }\n });\n\n // TODO : Currently we can't detect if the user clicks on the import\n // combo and then clicks on the currently selected\n // item which means the users can't re-import the current selection (or\n // import another from an spf.) The following may\n // allow a hackish work around later.... (I tried virtually every\n // listener and these where the only ones to trigger.)\n // ....update...with new Eclipse this seems to be working; ie.\n // triggering a selection when\n // combo is clicked on but selection isn't changed.\n importRbdCombo.addFocusListener(new FocusListener() {\n @Override\n public void focusGained(FocusEvent e) {\n }\n\n @Override\n public void focusLost(FocusEvent e) {\n }\n });\n importRbdCombo.addListener(SWT.MouseDown, new Listener() { // and\n // SWT.MouseUp\n @Override\n public void handleEvent(Event event) {\n }\n });\n importRbdCombo.addListener(SWT.Activate, new Listener() {\n @Override\n public void handleEvent(Event event) {\n updateImportCombo();\n }\n });\n importRbdCombo.addListener(SWT.Deactivate, new Listener() {\n @Override\n public void handleEvent(Event event) {\n }\n });\n\n importPaneButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent ev) {\n SelectRbdsDialog impDlg = new SelectRbdsDialog(shell,\n \"Import Pane\", true, false, true);\n\n if (!impDlg.open()) {\n return;\n }\n\n AbstractRBD<?> impRbd = impDlg.getSelectedRBD();\n\n if (impRbd != null) {\n impRbd.resolveLatestCycleTimes();\n\n try {\n importPane(impRbd, impRbd.getSelectedPaneId());\n } catch (VizException e) {\n MessageDialog errDlg = new MessageDialog(shell, \"Error\",\n null,\n \"Error Importing Rbd, \" + impRbd.getRbdName()\n + \".\\n\" + e.getMessage(),\n MessageDialog.ERROR, new String[] { \"OK\" }, 0);\n errDlg.open();\n }\n }\n }\n });\n\n }", "title": "" }, { "docid": "3e9799b3eedc5caa3b0367fc0edbcc5f", "score": "0.6125341", "text": "public CadastroReserva() {\n initComponents();\n this.controle = new ControllerReserva();\n inicializaComboBoxAcomodacoes();\n inicializaComboBoxHospedes();\n currentView = controle.exibePrimeiro();\n }", "title": "" }, { "docid": "c2c6ab066961a305850c7e2f8f0c0e3b", "score": "0.61110276", "text": "public Retiros() {\n initComponents();\n }", "title": "" }, { "docid": "542a53dd8cbb3b99d6d3a7f04f4a7843", "score": "0.6110024", "text": "public DeletarDisciplina() {\n initComponents();\n preencheCombo();\n }", "title": "" }, { "docid": "414a2b0be4da7956890166b66f6edc56", "score": "0.6109223", "text": "public DAOTablaMenu() {\n\t\trecursos = new ArrayList<Object>();\n\t}", "title": "" }, { "docid": "140fcc854c911448be02fa51313c7dcc", "score": "0.6106947", "text": "private void prepareElementos() throws SQLException {\n fondo = Toolkit.getDefaultToolkit().createImage(getClass().getResource(\"/Imagenes/transert.jpg\"));\n ArrayList<Salon> laboratorios = frame.ideasServices.getSalones();\n for (Iterator<Salon> iterator = laboratorios.iterator(); iterator.hasNext();) {\n Salon next = iterator.next();\n jComboBox1.addItem(next.getNombre());\n jComboBox2.addItem(next.getNombre());\n }\n }", "title": "" }, { "docid": "e42a08553d02224e45048eac41cecd7b", "score": "0.60879725", "text": "public PorCicloLectivo() {\n initComponents();\n \n listado.cargarCicloLectivo(cbCicloLectivo);\n if(cbCicloLectivo.getItemCount()<0){\n filtrar(); \n }\n }", "title": "" }, { "docid": "0d3c7e1b30b46562fe9308f1a2e2442a", "score": "0.6087256", "text": "private void cargarControles() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tc.setLayout(null);\r\n\t\tlbN1.setBounds(10,10,280,30);\r\n\t\tc.add(lbN1);\r\n\t\t\r\n\t\ttxtN1.setBounds(10,40, 280, 30);\r\n\t\tc.add(txtN1);\r\n\t\t\r\n\t\tlbN2.setBounds(10,80,280,30);\r\n\t\tc.add(lbN2);\r\n\t\t\r\n\t\ttxtN2.setBounds(10,110,280,30);\r\n\t\tc.add(txtN2);\r\n\t\t\r\n\t\tbtnSumar.setBounds(20, 150, 50, 40);\r\n\t\tc.add(btnSumar);\r\n\t\t\r\n\t\tbtnRestar.setBounds(90, 150, 50, 40);\r\n\t\tc.add(btnRestar);\r\n\t\t\r\n\t\tbtnMult.setBounds(160, 150, 50, 40);\r\n\t\tc.add(btnMult);\r\n\t\t\r\n\t\tbtnDiv.setBounds(230, 150, 50, 40);\r\n\t\tc.add(btnDiv);\r\n\t\t\r\n\t\tlbResultado.setBounds(70, 200, 280, 30);\r\n\t\t\r\n\t\tc.add(lbResultado);\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Se declara el evento del botón sumar\r\n\t\t */\r\n\t\t\r\n\t\tbtnSumar.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tdouble r=op.sumar(Double.parseDouble(txtN1.getText()),\r\n\t\t\t\t\t\tDouble.parseDouble(txtN2.getText())\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tlbResultado.setText(String.format(\"%s + %s = %f\",\r\n\t\t\t\t\t\ttxtN1.getText(),\r\n\t\t\t\t\t\ttxtN2.getText(),\r\n\t\t\t\t\t\tr));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});// fin del btnSumar\r\n\t\t\r\n\t\t/**\r\n\t\t * Se declara el evento a realizar por el btnRestar\r\n\t\t */\r\n\t\tbtnRestar.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdouble r=op.restar(Double.parseDouble(txtN1.getText()),\r\n\t\t\t\t\t\tDouble.parseDouble(txtN2.getText())\r\n\t\t\t\t\t\t);\r\n\t\t\t\tlbResultado.setText(String.format(\"%s - %s = %f\",\r\n\t\t\t\t\t\ttxtN1.getText(),\r\n\t\t\t\t\t\ttxtN2.getText(),\r\n\t\t\t\t\t\tr));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}); //fin del btnRestar\r\n\t\t\r\n\t\t/**\r\n\t\t * Se declara la función y/o evento del btnMult\r\n\t\t */\r\n\t\tbtnMult.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdouble r= op.multiplicar(Double.parseDouble(txtN1.getText()),\r\n\t\t\t\t\t\tDouble.parseDouble(txtN2.getText()));\r\n\t\t\t\tlbResultado.setText(String.format(\"%s * %s = %f\",\r\n\t\t\t\t\t\ttxtN1.getText(),\r\n\t\t\t\t\t\ttxtN2.getText(),\r\n\t\t\t\t\t\tr));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}); //fin del btnMulti\r\n\t\t/**\r\n\t\t * Se declara el evento del btnDiv\r\n\t\t */\r\n\t\tbtnDiv.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tdouble r=op.dividir(Double.parseDouble(txtN1.getText()),\r\n\t\t\t\t\t\tDouble.parseDouble(txtN2.getText()));\r\n\t\t\t\t\r\n\t\t\t\tlbResultado.setText(String.format(\"%s / %s = %f\",\r\n\t\t\t\t\t\ttxtN1.getText(),\r\n\t\t\t\t\t\ttxtN2.getText(),\r\n\t\t\t\t\t\tr));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});// fin del btnDiv\r\n\t}", "title": "" }, { "docid": "aff11597ad3d7238b9e614f1a7247516", "score": "0.6082282", "text": "public DetalleLibros() {\n initComponents();\n cbLenguaje.removeAllItems();\n }", "title": "" }, { "docid": "640953c9e55e25a02829207e5b21397e", "score": "0.6074264", "text": "private void initComponentesVentana() {\n a = new AsistenciaDaoImp().getAsistencia(idAsistencia);\n Empleado e = new EmpleadoDaoImp().getEmpleado(legajo);\n cmbEstado.setSelectedItem(a.getEstado());\n txtEmpleado.setText(e.getApellido()+\" \"+e.getNombre());\n txtFecha.setText(FechaUtil.getDateDDMMAAAA(a.getFecha()));\n txtHora.setText(FechaUtil.getHora(a.getHora()));\n txtLegajo.setText(String.valueOf(e.getLegajo()));\n //imagen de asistencia\n\n ImageIcon img = new ImageIcon(a.getImagen());\n adaptarTamaño(lblFotoAsistencia, img.getImage());\n //imagen de alta empleado\n // esta un try xq puede no tener cargado una foto el empleado\n try{\n ImageIcon img2 = new ImageIcon(e.getImagen());\n adaptarTamaño(lblFotoAlta, img2.getImage());\n \n }catch(java.lang.NullPointerException enull){\n lblFotoAlta.setText(\"No Disponible\");\n }\n if (a.getCorrecto()) {\n rbtnSi.setSelected(true);\n } else {\n rbtnNo.setSelected(true);\n }\n //botones\n btnGuardar.setEnabled(false);\n btnReporte.setEnabled(true);\n btnCancelar.setEnabled(true);\n }", "title": "" }, { "docid": "16a298755e4d286479cbf78469d429cd", "score": "0.6069389", "text": "public consultahistoria() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n setTitle(\"Registro\");\n Editar();\n \n\n //consulta con = new consulta();\n //con.cargarCitas(\"\");\n }", "title": "" }, { "docid": "c0525a5a8b31de8e0256d27d54a68dc2", "score": "0.6067736", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel_TipoPlano = new javax.swing.JPanel();\n jComboBox_TipoPlano = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n jPanel_TipoGrafico = new javax.swing.JPanel();\n jComboBox_TipoGrafico = new javax.swing.JComboBox<>();\n jTextField_TextoFigura = new javax.swing.JTextField();\n jSpinner_NumeroFilas = new javax.swing.JSpinner();\n jSpinner_NumeroColumnas = new javax.swing.JSpinner();\n jTextField_CaracterEncendido = new javax.swing.JTextField();\n jTextField_CaracterApagado = new javax.swing.JTextField();\n jButton_CrearPlano = new javax.swing.JButton();\n jButton_AbrirArchivo = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Rensteom BannerLed Elemental Editor\");\n setMinimumSize(new java.awt.Dimension(360, 390));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n getContentPane().setLayout(null);\n\n jPanel_TipoPlano.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Tipo de plano\"));\n jPanel_TipoPlano.setLayout(null);\n\n jComboBox_TipoPlano.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"PLANO BIDIMENSIONAL DEFINIDO\", \"PLANO BIDIMENSIONAL AUTOMÁTICO\" }));\n jComboBox_TipoPlano.setFocusable(false);\n jPanel_TipoPlano.add(jComboBox_TipoPlano);\n jComboBox_TipoPlano.setBounds(10, 20, 300, 30);\n\n getContentPane().add(jPanel_TipoPlano);\n jPanel_TipoPlano.setBounds(10, 130, 320, 60);\n getContentPane().add(jLabel1);\n jLabel1.setBounds(17, 10, 310, 110);\n javax.swing.ImageIcon imageLogo = new javax.swing.ImageIcon(getClass().getResource(\"/LOGO.png\"));\n java.awt.Image escalada = imageLogo.getImage().getScaledInstance(jLabel1.getWidth(), jLabel1.getHeight(), java.awt.Image.SCALE_DEFAULT);\n javax.swing.Icon iconLogo = new javax.swing.ImageIcon(escalada);\n jLabel1.setIcon(iconLogo);\n\n jPanel_TipoGrafico.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Tipo de gráfico\"));\n jPanel_TipoGrafico.setLayout(null);\n\n jComboBox_TipoGrafico.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"TEXTO\", \"FIGURAS\" }));\n jComboBox_TipoGrafico.setFocusable(false);\n jComboBox_TipoGrafico.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox_TipoGraficoActionPerformed(evt);\n }\n });\n jPanel_TipoGrafico.add(jComboBox_TipoGrafico);\n jComboBox_TipoGrafico.setBounds(10, 20, 90, 30);\n\n getContentPane().add(jPanel_TipoGrafico);\n jPanel_TipoGrafico.setBounds(10, 190, 110, 60);\n\n jTextField_TextoFigura.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Texto a graficar:\"));\n getContentPane().add(jTextField_TextoFigura);\n jTextField_TextoFigura.setBounds(120, 200, 210, 40);\n\n jSpinner_NumeroFilas.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 10));\n jSpinner_NumeroFilas.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Filas\"));\n getContentPane().add(jSpinner_NumeroFilas);\n jSpinner_NumeroFilas.setBounds(10, 250, 80, 41);\n\n jSpinner_NumeroColumnas.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 10));\n jSpinner_NumeroColumnas.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Columnas\"));\n getContentPane().add(jSpinner_NumeroColumnas);\n jSpinner_NumeroColumnas.setBounds(90, 250, 80, 41);\n\n jTextField_CaracterEncendido.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n jTextField_CaracterEncendido.setText(\"⬛\");\n jTextField_CaracterEncendido.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Encendido\"));\n getContentPane().add(jTextField_CaracterEncendido);\n jTextField_CaracterEncendido.setBounds(170, 250, 80, 41);\n\n jTextField_CaracterApagado.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n jTextField_CaracterApagado.setText(\"⬜\");\n jTextField_CaracterApagado.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Apagado\"));\n getContentPane().add(jTextField_CaracterApagado);\n jTextField_CaracterApagado.setBounds(250, 250, 80, 41);\n\n jButton_CrearPlano.setText(\"Crear BannerLed\");\n jButton_CrearPlano.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton_CrearPlanoActionPerformed(evt);\n }\n });\n getContentPane().add(jButton_CrearPlano);\n jButton_CrearPlano.setBounds(170, 300, 159, 40);\n\n jButton_AbrirArchivo.setText(\"Abrir Archivo\");\n jButton_AbrirArchivo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton_AbrirArchivoActionPerformed(evt);\n }\n });\n getContentPane().add(jButton_AbrirArchivo);\n jButton_AbrirArchivo.setBounds(10, 300, 159, 40);\n\n pack();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "e3fc2ed44bb24b488833691b914d9acb", "score": "0.60676295", "text": "public void actualizarComboBox(int op) {\n\n if (!Values.warningBaseDatos) {\n List<String> cbCuartel = pm.actualizarCombo(\"Cuartel\");\n List<String> cbUnidad = pm.actualizarCombo(\"Unidad\");\n if (op == 0) {\n\n v.cbCuartel.removeAllItems();\n for (int i = 0; i < cbCuartel.size(); i++) {\n v.cbCuartel.addItem(cbCuartel.get(i));\n }\n\n } else {\n\n if (op == 1) {\n\n v.cbUnidad.removeAllItems();\n for (int i = 0; i < cbUnidad.size(); i++) {\n v.cbUnidad.addItem(cbUnidad.get(i));\n }\n }\n }\n }\n }", "title": "" }, { "docid": "da1b8ac48a36256594177b14e3a039c5", "score": "0.6065139", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n String Origem = String.valueOf(combo_1.getSelectedItem());\n String Destino = String.valueOf(combo_2.getSelectedItem());\n if (Origem.equals(Destino)) {\n JOptionPane.showMessageDialog(null, \"Cidades iguais\");\n }\n\n //Chamado do Metodo\n GerarGrafo G = new GerarGrafo();\n BuscaAestrela busca = new BuscaAestrela();\n G.gerar_Grafo();\n\n Vertice cidadeInicial = new Vertice();\n Vertice cidadeDestino = new Vertice();\n\n for (Vertice vertice : G.grafo) {\n if (vertice.getNomeCidade().equalsIgnoreCase(Origem)) {\n cidadeInicial = vertice;\n }\n if (vertice.getNomeCidade().equalsIgnoreCase(Destino)) {\n cidadeDestino = vertice;\n }\n }\n\n Vertice verticeFinal = busca.aestrela(G.grafo, cidadeInicial, cidadeDestino);\n String percurso = \"\";\n while (verticeFinal != null) {\n percurso = verticeFinal.getNomeCidade() + (percurso.isEmpty() ? \"\" : \">\" + percurso);\n verticeFinal = verticeFinal.getVerticePai();\n }\n //System.out.println(percurso);\n\n String array[];\n array = percurso.split(\">\");\n Caminho.setText(percurso);\n Caminho.setLineWrap(true);\n ativarCaminho(array);\n }", "title": "" }, { "docid": "0304aaa2c3fea1d73b4157071f6e34f7", "score": "0.60551697", "text": "public void iniciar(){\n this.cuadricula.removeAll();\n int nFil, mCol;\n nFil = Integer.parseInt(this.filas.getText());\n mCol = Integer.parseInt(this.columnas.getText());\n \n this.cuadricula.setLayout(new java.awt.GridLayout(nFil,mCol));\n \n this.numeroCuadros=nFil*mCol;\n this.contadorMinas=0;\n for(int i=0;i<nFil;i++){\n for(int j=0;j<mCol;j++){\n \n Cuadro temp=new Cuadro();\n temp.addActionListener(this);\n \n if(temp.lugarMinado())\n this.contadorMinas++;\n \n temp.setVisible(true);\n this.cuadricula.add(temp);\n }\n }\n }", "title": "" }, { "docid": "a37a0d8842f1ef3a15c994138d9d366c", "score": "0.60462534", "text": "public void reiniciar() {\n if (config_canvas!=null) config_canvas=null; //si se viene del formulario de configuración se borra\n if (img_Canvas!=null) {\n img_Canvas.cerrar(); //cierra los objetos principales\n img_Canvas=null;\n gestor_mapas=null;\n System.gc();\n gestor_mapas=new Gestor_Mapas(configuracion.ruta_carpeta_archivos,pantalla,configuracion.detalle_minimo_mapa_general,configuracion.tamaño_cache_mapas,configuracion.cache_etiquetas,configuracion.acceso_archivos_habilitado);\n img_Canvas=new IMG_Canvas(this,gestor_mapas,configuracion,tracklog);\n pantalla.setCurrent(img_Canvas);\n img_Canvas.inicializar();\n }\n \n }", "title": "" }, { "docid": "f4402db345ae5e60eccbb71e5bc6dbd7", "score": "0.60460716", "text": "public JFrameReunion(Controlador unDrive, Personal admin, Tarea tarr) {\n this.Drive = unDrive;\n this.adm = admin;\n// this.idsesion = id;\n this.tar = tarr;\n initComponents();\n\n int[] anchos1 = {85, 200, 65};\n for (int i = 0; i < jTable1.getColumnCount(); i++) {\n jTable1.getColumnModel().getColumn(i).setPreferredWidth(anchos1[i]);\n }\n DefaultTableCellRenderer modelocentrar = new DefaultTableCellRenderer();\n modelocentrar.setHorizontalAlignment(SwingConstants.CENTER);\n jTable1.getColumnModel().getColumn(2).setCellRenderer(modelocentrar);\n jTable1.getTableHeader().setDefaultRenderer(new HeaderRenderer(jTable1));\n Drive.CargarComboDepartamento(jComboBox1);\n Drive.CargarComboLugar(jComboBox3);\n String buscar;\n Object aux= jComboBox1.getSelectedItem();\n if(aux.equals(\"TODOS\")){\n buscar=(String) aux;\n }else{\n Departamento dep=(Departamento) aux;\n buscar=dep.getNombre();\n }\n Drive.CargarTablacheck2(jTable1, buscar, buffer.toString().toUpperCase(), lista);\n jFormattedTextField1.setText(\"00:00\");\n jFormattedTextField2.setText(\"00:00\");\n ///Verificar si vengo desde principal o desde consultar tarea\n if (tar.getIdTarea() != null) {\n try {\n jTextField3.setText(tar.getNombre());\n jTextField3.setEnabled(false);\n jComboBox3.setSelectedItem(tar.getLugar());\n Tareareunion tareu = tar.getTareareunions().iterator().next();\n jTextField1.setText(tareu.getMotivo());\n jComboBox2.setSelectedItem(tareu.getCaracter());\n fecha = Drive.ObtenerFechaMayor(new Date().getYear(), tar);\n if (fecha != null) {\n Calendar ffecha = Calendar.getInstance();\n ffecha.setTime(fecha);\n dateChooserCombo1.setSelectedDate(ffecha);\n }\n Agenda age = tar.getAgendas().iterator().next();\n Dia d = age.getDia2(fecha);\n Iniciofin ini = d.getIniciofins().iterator().next();\n SimpleDateFormat formateador = new SimpleDateFormat(\"HH:mm\");\n jFormattedTextField1.setValue(formateador.format(ini.getInicio()));\n jFormattedTextField2.setValue(formateador.format(ini.getFin()));\n Drive.LimpiarTabla(jTable1);\n Iterator it = tar.getAgendas().iterator();\n while (it.hasNext()) {\n Agenda agg = (Agenda) it.next();\n lista.add(agg.getPersonal().getIdPersonal());\n }\n Drive.CargarTablacheck2(jTable1, buscar, buffer.toString().toUpperCase(), lista);\n } catch (Exception e) {\n }\n }\n ImageIcon fott2 = new ImageIcon(getClass().getResource(\"/imagenes/no.png\"));\n Icon icono2 = new ImageIcon(fott2.getImage().getScaledInstance(25, 25, Image.SCALE_DEFAULT));\n jButton2.setIcon(icono2);\n ImageIcon fott3 = new ImageIcon(getClass().getResource(\"/imagenes/ok.png\"));\n Icon icono3 = new ImageIcon(fott3.getImage().getScaledInstance(25, 25, Image.SCALE_DEFAULT));\n jButton1.setIcon(icono3);\n ///ICONO EDITAR\n ImageIcon fot = new ImageIcon(getClass().getResource(\"/imagenes/image.jpg\"));\n Icon icono1 = new ImageIcon(fot.getImage().getScaledInstance(jLabel36.getWidth(), jLabel36.getHeight(), Image.SCALE_DEFAULT));\n jLabel36.setIcon(icono1);\n jLabel36.repaint();\n ImageIcon fott = new ImageIcon(getClass().getResource(\"/imagenes/eliminar.gif\"));\n Icon icono0 = new ImageIcon(fott.getImage().getScaledInstance(jLabel21.getWidth(), jLabel21.getHeight(), Image.SCALE_DEFAULT));\n jLabel21.setIcon(icono0);\n jLabel21.repaint();\n if(adm.getPerfil().getActividadesins()==null&&tar.getIdTarea()==null){\n jButton1.setEnabled(false);\n }\n }", "title": "" }, { "docid": "2a876d21811bf684c0d4871d8b55d78c", "score": "0.60386217", "text": "public CapturaHuella() {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Imposible modificar el tema visual\", \"Lookandfeel inválido.\",\n JOptionPane.ERROR_MESSAGE);\n }\n initComponents(); //Carga los componentes del JPanel\n\n txtArea.setEditable(false);\n //agreagr logo y nombre en la barra superior\n\n setIconImage(new ImageIcon(getClass().getResource(\"/img/logoCrecic.jpg\")).getImage());\n setTitle(\"Crecic S.A\");\n \n \n\n\n }", "title": "" }, { "docid": "797cf4292978c8f2bd34fbf2a3d5caca", "score": "0.6037621", "text": "public void inicializar(){\r\n for(int i=0;i<ventanaDispositivos.getBotonesProductos().size();i++){\r\n ventanaDispositivos.getBotonesProductos().get(i).addActionListener(this);\r\n }\r\n dispositivos= new ArrayList();\r\n ventanaDispositivos.getBRegresar().addActionListener(this);\r\n ventanaDispositivos.setVisible(true); \r\n ventanaDispositivos.setLocationRelativeTo(null);\r\n //Buscar las imagenes de la categoria de dispositivo\r\n ArrayList<String[]>busqueda = Conexion.buscar(\"productos\", ID, \"id_tipoproducto\");\r\n if(Conexion.elementoBuscado){\r\n for(int i=0;i<busqueda.size();i++){\r\n String[] busquedaArray = busqueda.get(i);\r\n Dispositivo dispositivo = new Dispositivo(); \r\n dispositivo.setId(busquedaArray[0]); \r\n dispositivo.setNombre(busquedaArray[1]); \r\n dispositivo.setPrecioVenta(Double.parseDouble(busquedaArray[2])); \r\n dispositivo.setPrecioCompra(Double.parseDouble(busquedaArray[3])); \r\n dispositivo.setDescripcion(busquedaArray[4]); \r\n dispositivo.setNoArticulos(Integer.parseInt(busquedaArray[5])); \r\n dispositivo.setMarca(busquedaArray[6]); \r\n dispositivo.setCategoria(Integer.parseInt(busquedaArray[7]));\r\n dispositivos.add(dispositivo); \r\n } \r\n mostrarProductos();\r\n }else{\r\n for(int i=0;i<ventanaDispositivos.getBotonesProductos().size();i++){\r\n ventanaDispositivos.getBotonesProductos().get(i).setEnabled(false); \r\n }\r\n JOptionPane.showMessageDialog(null, \"Error al cargar los productos\");\r\n }\r\n }", "title": "" }, { "docid": "8cfdd7dd7c1ad427583d642bd5bd234a", "score": "0.60347265", "text": "public void limpiar()\n {\n Graphics2D AreaDibujo = (Graphics2D) superficie.getGraphics(); // Tomamos control del area de dibujo\n AreaDibujo.fillRect(0,0,anchoSuperficie, altoSuperficie); // Limpiamos el area de dibujo desde el primer pixel hasta el ultimo\n AreaDibujo.dispose(); // Y se libera el control del espacio de trabajo\n }", "title": "" }, { "docid": "43fe57c2d0f29110a11fd254f2a8c5dd", "score": "0.6020897", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n panelColores = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList<>();\n cboColores = new javax.swing.JComboBox<>();\n cboRojo = new javax.swing.JComboBox<>();\n cboAzul = new javax.swing.JComboBox<>();\n cboVerde = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n panelColores.setBackground(java.awt.SystemColor.textHighlight);\n panelColores.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n panelColoresPropertyChange(evt);\n }\n });\n\n jList1.setModel(new javax.swing.AbstractListModel<String>() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public String getElementAt(int i) { return strings[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n\n cboColores.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Seleciona opción\", \"Rojo\", \"Verde\", \"Azul\", \"Amarillo\" }));\n cboColores.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cboColoresItemStateChanged(evt);\n }\n });\n\n cboRojo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Selecciona una opción\", \"0\", \"10\", \"20\", \"30\", \"40\", \"50\", \"60\", \"70\", \"80\", \"90\", \"100\", \"110\", \"120\", \"130\", \"140\", \"150\", \"160\", \"170\", \"180\", \"190\", \"200\", \"210\", \"220\", \"230\", \"240\", \"255\", \"300\" }));\n cboRojo.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cboRojoItemStateChanged(evt);\n }\n });\n\n cboAzul.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Selecciona una opción\", \"0\", \"10\", \"20\", \"30\", \"40\", \"50\", \"60\", \"70\", \"80\", \"90\", \"100\", \"110\", \"120\", \"130\", \"140\", \"150\", \"160\", \"170\", \"180\", \"190\", \"200\", \"210\", \"220\", \"230\", \"240\", \"255\", \"300\" }));\n cboAzul.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cboAzulItemStateChanged(evt);\n }\n });\n\n cboVerde.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Selecciona una opción\", \"0\", \"10\", \"20\", \"30\", \"40\", \"50\", \"60\", \"70\", \"80\", \"90\", \"100\", \"110\", \"120\", \"130\", \"140\", \"150\", \"160\", \"170\", \"180\", \"190\", \"200\", \"210\", \"220\", \"230\", \"240\", \"255\", \"300\" }));\n cboVerde.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cboVerdeItemStateChanged(evt);\n }\n });\n\n javax.swing.GroupLayout panelColoresLayout = new javax.swing.GroupLayout(panelColores);\n panelColores.setLayout(panelColoresLayout);\n panelColoresLayout.setHorizontalGroup(\n panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelColoresLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(cboColores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cboRojo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cboAzul, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cboVerde, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n panelColoresLayout.setVerticalGroup(\n panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelColoresLayout.createSequentialGroup()\n .addGap(54, 54, 54)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cboColores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cboRojo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cboAzul, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cboVerde, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(116, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panelColores, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panelColores, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "730ed416fd2034ee0e1ccb153c91997f", "score": "0.60136247", "text": "private static void realizarpagos() {\n\t\t\ta=6;\n\t\t\tVentanaJFrame.panelCentro.removeAll();\n\t\t\tVentanaJFrame.panelCentro.repaint();\n\t\t\tVentanaJFrame.panelBusqueda.removeAll();\n\t\t\tVentanaJFrame.panelBusqueda.repaint();\n\t\t\tVentanaJFrame.panelFormulario.removeAll();\n\t\t\tVentanaJFrame.panelFormulario.repaint();\n\t\t\tetiqueta52.setText(\"-\");\n\t\t\tJLabel etiqueta42 = new JLabel(\" \");\n\t\t\tetiqueta42.setForeground(Color.BLACK);\n\t\t\tetiqueta42.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n\t\t\tcontenido.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tcontenido.weightx = 0.0003;\n\t\t\tcontenido.weighty = 0.03;\n\t\t\tcontenido.gridx = 0;\n\t\t\tcontenido.gridy = 0;\n\t\t\tVentanaJFrame.panelCentro.add(etiqueta42, contenido);\n\t\t\t\n\t\t\n\t\t\t\n\t\t\tJLabel etiquetaemp = new JLabel(\"EMPRESA \");\n\t\t\tetiquetaemp.setForeground(Color.BLACK);\n\t\t\tcontenido.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tcontenido.weightx = 0.0000003;\n\t\t\tcontenido.weighty = 0.00003;\n\t\t\tcontenido.gridx = 1;\n\t\t\tcontenido.gridy = 1;\n\t\t\tVentanaJFrame.panelCentro.add(etiquetaemp, contenido);\n\t\t\t// este es un selector para indicar la empresa a la cual le quiero hacer el pago\n\t\t\tJComboBox selectoremp = new JComboBox();\n\t\t\tselectoremp.setModel(new DefaultComboBoxModel(new String[] {\"Seleccione empresa\",\"Agua\",\"Luz\",\"Gas\",\"Telefono\",\"Internet\"}));\n\t\t\tselectoremp.setSelectedIndex(0);\n\t\t\tcontenido.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tcontenido.weightx = 0.00003;\n\t\t\tcontenido.gridx = 2;\n\t\t\tcontenido.gridy = 1;\n\t\t\tVentanaJFrame.panelCentro.add(selectoremp, contenido);\n\t\t\t\n\t\t\tJLabel etiqueta = new JLabel(\"NUMERO DE REFERENCIA \");\n\t\t\tetiqueta.setForeground(Color.BLACK);\n\t\t\tcontenido.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tcontenido.weightx = 0.0000003;\n\t\t\tcontenido.weighty = 0.00003;\n\t\t\tcontenido.gridx = 1;\n\t\t\tcontenido.gridy = 2;\n\t\t\tVentanaJFrame.panelCentro.add(etiqueta, contenido);\n\t\t\t\n\t\t\tnumeropag= new JTextField();\n\t\t\tnumeropag.setText(\"\");\n\t\t\tcontenido.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tcontenido.weightx = 0.00003;\n\t\t\tcontenido.gridx = 2;\n\t\t\tcontenido.gridy = 2;\n\t\t\tVentanaJFrame.panelCentro.add(numeropag, contenido);\n\t\t\t//Aqui valido los datos numericos del jtesfield\n\t\t\tnumeropag.addKeyListener(new KeyAdapter() {\t\t\t\t\t\n\t\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\tchar c=e.getKeyChar();\n\t\t\t\t\tif (Character.isLetter(c)) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Solo se admiten datos numericos\", \"error\", JOptionPane.ERROR_MESSAGE); \n\t\t\t e.consume();\n\t\t\t }\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tJLabel etiqueta3 = new JLabel(\"VALOR A TRANSFERIR \");\n\t\t\tetiqueta3.setForeground(Color.BLACK);\n\t\t\tcontenido.fill = GridBagConstraints.HORIZONTAL;\t\n\t\t\tcontenido.gridx = 1;\n\t\t\tcontenido.gridy = 3;\n\t\t\tVentanaJFrame.panelCentro.add(etiqueta3, contenido);\n\t\t\t//Aqui se guarda el valor a pagar\n\t\t\tvalorpag = new JTextField();\n\t\t\tvalorpag.setText(\"\");\n\t\t\tcontenido.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tcontenido.weightx = 0.0003;\n\t\t\tcontenido.gridx = 2;\n\t\t\tcontenido.gridy = 3;\n\t\t\tVentanaJFrame.panelCentro.add(valorpag, contenido);\n\t\t\t//Valido que solo me ingresen datos numericos\n\t\t\tvalorpag.addKeyListener(new KeyAdapter() {\t\t\t\t\t\n\t\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\tchar c=e.getKeyChar();\n\t\t\t\t\tif (Character.isLetter(c)) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Solo se admiten datos numericos\", \"error\", JOptionPane.ERROR_MESSAGE); \n\t\t\t e.consume();\n\t\t\t }\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tJButton continuar2= new JButton();\n\t\t\tcontinuar2.setBackground(Color.ORANGE);\n\t\t\tcontinuar2.setText(\"CONTINUAR CON PAGO\");\n\t\t\tcontenido.weighty = 0.00003;\n\t\t\tcontenido.weightx = 0.0000000003;\n\t\t\tcontenido.gridx = 4;\n\t\t\tcontenido.gridy = 4;\n\t\t\tVentanaJFrame.panelCentro.add( continuar2,contenido);\n\t\t\t//cuando doy clic en el boton de continuar\n\t\t\tcontinuar2.addActionListener (new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\t//aqui valido los campos en blanco y la seleccion del selector\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif(selectoremp.getSelectedIndex()==0) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Seleccione una empresa\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(numeropag.getText().isEmpty()||valorpag.getText().isEmpty()) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Por favor llene todos los campos\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tvalor=Integer.parseInt(valorpag.getText());\n\t\t\t\t\t\t\tSystem.out.println(\"entro\");\n\t\t\t\t\t\t\tclave(valor);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t}catch(java.lang.NumberFormatException ds) {\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t});\n//Aqui borro las cajas de texto existentes en ese momento en el panel del centro\n\t\t\tlimpiar.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tnumeropag.setText(null);\n\t\t\t\t\tvalorpag.setText(null);\n\t\t\t\t\tselectoremp.setSelectedItem(0);\n\t\t\t\t}\n\n\t\t\t});\n\t\t}", "title": "" }, { "docid": "f28a1886e2b5d1cb8793446221bc1fe9", "score": "0.600888", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n rbtnTipoA = new javax.swing.JRadioButton();\n rbtnTipoS = new javax.swing.JRadioButton();\n btnSalir = new javax.swing.JButton();\n btnBuscarClie = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n btnAceptar = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n tblDatos = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n txtIdCliente = new javax.swing.JTextField();\n txtNomCliente = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n txtLicencia = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n txtMonto = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n txtCatego = new javax.swing.JTextField();\n txtMarca = new javax.swing.JTextField();\n txtModelo = new javax.swing.JTextField();\n btnBuscarAuto = new javax.swing.JButton();\n btnAgregarClie = new javax.swing.JButton();\n txtFechaR = new com.toedter.calendar.JDateChooser();\n txtFechaD = new com.toedter.calendar.JDateChooser();\n jLabel11 = new javax.swing.JLabel();\n cmbTipo = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Renta Autos\");\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(255, 204, 204));\n jPanel1.setForeground(new java.awt.Color(255, 255, 255));\n\n jLabel2.setFont(new java.awt.Font(\"Stylus BT\", 1, 50)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(0, 153, 153));\n jLabel2.setText(\"Renta de Autos\");\n\n jLabel3.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n jLabel3.setText(\"Categorías:\");\n\n jLabel4.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n jLabel4.setText(\"Modelo:\");\n\n jLabel6.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n jLabel6.setText(\"Marca:\");\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Tipo\"));\n jPanel2.setFont(new java.awt.Font(\"Stylus BT\", 1, 14)); // NOI18N\n\n rbtnTipoA.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n rbtnTipoA.setSelected(true);\n rbtnTipoA.setText(\"Automático\");\n\n rbtnTipoS.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n rbtnTipoS.setText(\"Standard\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addComponent(rbtnTipoA)\n .addGap(30, 30, 30)\n .addComponent(rbtnTipoS)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rbtnTipoS)\n .addComponent(rbtnTipoA))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n btnSalir.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n btnSalir.setText(\"Salir\");\n\n btnBuscarClie.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n btnBuscarClie.setText(\"Buscar\");\n btnBuscarClie.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarClieActionPerformed(evt);\n }\n });\n\n btnCancelar.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n btnCancelar.setText(\"Cancelar\");\n\n btnAceptar.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n btnAceptar.setText(\"Aceptar\");\n btnAceptar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAceptarActionPerformed(evt);\n }\n });\n\n tblDatos.setFont(new java.awt.Font(\"Stylus BT\", 1, 18)); // NOI18N\n tblDatos.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null}\n },\n new String [] {\n \"Placa\", \"Categoria\", \"Marca\", \"Modelo\", \"Color\", \"Renta\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane2.setViewportView(tblDatos);\n\n jLabel1.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n jLabel1.setText(\"IdCliente:\");\n\n txtIdCliente.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n txtIdCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtIdClienteActionPerformed(evt);\n }\n });\n\n txtNomCliente.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n txtNomCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNomClienteActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n jLabel5.setText(\"Cliente:\");\n\n txtLicencia.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n txtLicencia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtLicenciaActionPerformed(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n jLabel7.setText(\"Licencia:\");\n\n jLabel8.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n jLabel8.setText(\"Fecha Renta:\");\n\n jLabel9.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n jLabel9.setText(\"Fecha Devolucion:\");\n\n txtMonto.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n txtMonto.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n txtMonto.setText(\"0.0\");\n txtMonto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtMontoActionPerformed(evt);\n }\n });\n\n jLabel10.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n jLabel10.setText(\"Renta $\");\n\n txtCatego.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n txtCatego.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCategoActionPerformed(evt);\n }\n });\n\n txtMarca.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n txtMarca.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtMarcaActionPerformed(evt);\n }\n });\n\n txtModelo.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n txtModelo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtModeloActionPerformed(evt);\n }\n });\n\n btnBuscarAuto.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n btnBuscarAuto.setText(\"Buscar\");\n btnBuscarAuto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarAutoActionPerformed(evt);\n }\n });\n\n btnAgregarClie.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n btnAgregarClie.setText(\"Agregar Cliente\");\n btnAgregarClie.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgregarClieActionPerformed(evt);\n }\n });\n\n txtFechaR.setToolTipText(\"\");\n txtFechaR.setFont(new java.awt.Font(\"Stylus BT\", 0, 14)); // NOI18N\n\n txtFechaD.setFont(new java.awt.Font(\"Stylus BT\", 0, 14)); // NOI18N\n\n jLabel11.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n jLabel11.setText(\"Tipo:\");\n\n cmbTipo.setFont(new java.awt.Font(\"Stylus BT\", 1, 20)); // NOI18N\n cmbTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Ordinario\", \"Frecuente\", \"VIP\" }));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3)\n .addComponent(jLabel6)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCatego, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(11, 11, 11)))\n .addGap(33, 33, 33)\n .addComponent(btnBuscarAuto)\n .addGap(76, 76, 76))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(175, 175, 175)\n .addComponent(jLabel2)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 60, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtIdCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(btnAceptar, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(35, 35, 35)\n .addComponent(btnSalir, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(50, 50, 50)\n .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(90, 90, 90))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(btnBuscarClie)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnAgregarClie))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 630, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(51, 51, 51)))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel10)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txtNomCliente, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtLicencia)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtFechaR, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtMonto, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel11)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtFechaD, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)\n .addComponent(cmbTipo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGap(64, 64, 64))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtCatego, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(13, 13, 13)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(btnBuscarAuto))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnBuscarClie)\n .addComponent(txtIdCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAgregarClie)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtNomCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtLicencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtFechaD, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtFechaR, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(txtMonto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11)\n .addComponent(cmbTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(47, 47, 47)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnCancelar)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnAceptar)\n .addComponent(btnSalir)))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "55ed86bd69d5cf40f34bc244ac4be95d", "score": "0.60049605", "text": "private void botonJugarActionPerformed(java.awt.event.ActionEvent evt) {\n ID2 = id.getText();\n Jugador.setID(ID2);\n \n if(btFacil.isSelected()==false && btMedia.isSelected()==false && btDificil.isSelected()==false && btPer.isSelected()==false){\n JOptionPane.showMessageDialog(null, \"ERROR!!! Selecciona una Dificultad\");\n }else if(id.getText().trim().length() == 0){\n JOptionPane.showMessageDialog(null, \"ERROR!!! Introduce un ID\");\n }else{\n if(btFacil.isSelected()){\n //10x10 y 10 minas (Dificultad Facil\n continuar(10,10);\n }else if(btMedia.isSelected()){\n //15x15 y 40 minas (Dificultad Media)\n continuar(15,40);\n }else if(btDificil.isSelected()){\n //22x22 y 100 minas (Dificultad Difícil)\n continuar(22,100);\n }else if(btPer.isSelected()){\n //Avanzar a la venta de pesonalizar el tablero\n Personalizar personal = new Personalizar();\n this.setVisible(false);\n this.dispose();\n personal.setVisible(true);\n }\n }\n }", "title": "" }, { "docid": "01a17ca6e87804550bf207a3c8238c3c", "score": "0.6004468", "text": "public RecepcionVista() {\n initComponents();\n }", "title": "" }, { "docid": "700806531a6d52b16495cb41f340f56a", "score": "0.6003113", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblTitulo = new rojeru_san.rspanel.RSPanelGradiente();\n rSButtonIconUno1 = new RSMaterialComponent.RSButtonIconUno();\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n btnAtras = new RSMaterialComponent.RSButtonIconUno();\n rSLabelFecha1 = new rojeru_san.rsdate.RSLabelFecha();\n rSLabelHora1 = new rojeru_san.rsdate.RSLabelHora();\n rSPanelMaterial1 = new RSMaterialComponent.RSPanelMaterial();\n btnGuardar = new rojeru_san.rsbutton.RSButtonForma();\n btnLimpiar = new rojeru_san.rsbutton.RSButtonForma();\n lblNom = new javax.swing.JLabel();\n lblClasifiacion = new javax.swing.JLabel();\n lblDesc = new javax.swing.JLabel();\n txtDescripcion = new rojeru_san.rsfield.RSTextFullBD();\n txtNombre = new rojeru_san.rsfield.RSTextFullBD();\n txtClasificacion = new rojeru_san.rsfield.RSTextFullBD();\n lblDesc1 = new javax.swing.JLabel();\n txtGenero = new rojeru_san.rsfield.RSTextFullBD();\n lblid = new javax.swing.JLabel();\n lblDesc2 = new javax.swing.JLabel();\n txtDuracion = new rojeru_san.rsfield.RSTextFullBD();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n lblTitulo.setColorPrimario(new java.awt.Color(15, 158, 168));\n lblTitulo.setColorSecundario(new java.awt.Color(131, 202, 205));\n\n rSButtonIconUno1.setBackground(new java.awt.Color(131, 202, 205));\n rSButtonIconUno1.setBackgroundHover(new java.awt.Color(131, 202, 205));\n rSButtonIconUno1.setIcons(rojeru_san.efectos.ValoresEnum.ICONS.CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"ACTUALIZAR PELICULA\");\n\n javax.swing.GroupLayout lblTituloLayout = new javax.swing.GroupLayout(lblTitulo);\n lblTitulo.setLayout(lblTituloLayout);\n lblTituloLayout.setHorizontalGroup(\n lblTituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, lblTituloLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 269, Short.MAX_VALUE)\n .addComponent(rSButtonIconUno1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n lblTituloLayout.setVerticalGroup(\n lblTituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(lblTituloLayout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(jLabel1)\n .addGap(1, 1, 1))\n .addComponent(rSButtonIconUno1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n btnAtras.setBackground(new java.awt.Color(15, 158, 168));\n btnAtras.setBackgroundHover(new java.awt.Color(97, 180, 184));\n btnAtras.setIcons(rojeru_san.efectos.ValoresEnum.ICONS.ARROW_BACK);\n btnAtras.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAtrasActionPerformed(evt);\n }\n });\n\n rSLabelFecha1.setForeground(new java.awt.Color(15, 158, 168));\n rSLabelFecha1.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n\n rSLabelHora1.setForeground(new java.awt.Color(15, 158, 168));\n rSLabelHora1.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n\n rSPanelMaterial1.setBackground(new java.awt.Color(255, 255, 255));\n\n btnGuardar.setBackground(new java.awt.Color(15, 158, 168));\n btnGuardar.setText(\"Guardar\");\n btnGuardar.setColorHover(new java.awt.Color(97, 180, 184));\n btnGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGuardarActionPerformed(evt);\n }\n });\n\n btnLimpiar.setBackground(new java.awt.Color(15, 158, 168));\n btnLimpiar.setText(\"Limpiar\");\n btnLimpiar.setColorHover(new java.awt.Color(97, 180, 184));\n btnLimpiar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnLimpiarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout rSPanelMaterial1Layout = new javax.swing.GroupLayout(rSPanelMaterial1);\n rSPanelMaterial1.setLayout(rSPanelMaterial1Layout);\n rSPanelMaterial1Layout.setHorizontalGroup(\n rSPanelMaterial1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(rSPanelMaterial1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(rSPanelMaterial1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnLimpiar, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n rSPanelMaterial1Layout.setVerticalGroup(\n rSPanelMaterial1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(rSPanelMaterial1Layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnLimpiar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n lblNom.setFont(new java.awt.Font(\"Dialog\", 1, 12)); // NOI18N\n lblNom.setForeground(new java.awt.Color(15, 158, 168));\n lblNom.setText(\"Nombre:\");\n\n lblClasifiacion.setFont(new java.awt.Font(\"Dialog\", 1, 12)); // NOI18N\n lblClasifiacion.setForeground(new java.awt.Color(15, 158, 168));\n lblClasifiacion.setText(\"Clasificación:\");\n\n lblDesc.setFont(new java.awt.Font(\"Dialog\", 1, 12)); // NOI18N\n lblDesc.setForeground(new java.awt.Color(15, 158, 168));\n lblDesc.setText(\"Descripción:\");\n\n txtDescripcion.setForeground(new java.awt.Color(15, 158, 168));\n txtDescripcion.setBordeColorFocus(new java.awt.Color(15, 158, 168));\n txtDescripcion.setBotonColor(new java.awt.Color(15, 158, 168));\n txtDescripcion.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n txtDescripcion.setPlaceholder(\"\");\n txtDescripcion.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtDescripcionKeyPressed(evt);\n }\n });\n\n txtNombre.setForeground(new java.awt.Color(15, 158, 168));\n txtNombre.setBordeColorFocus(new java.awt.Color(15, 158, 168));\n txtNombre.setBotonColor(new java.awt.Color(15, 158, 168));\n txtNombre.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n txtNombre.setPlaceholder(\"\");\n txtNombre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtNombreKeyPressed(evt);\n }\n });\n\n txtClasificacion.setForeground(new java.awt.Color(15, 158, 168));\n txtClasificacion.setBordeColorFocus(new java.awt.Color(15, 158, 168));\n txtClasificacion.setBotonColor(new java.awt.Color(15, 158, 168));\n txtClasificacion.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n txtClasificacion.setPlaceholder(\"\");\n txtClasificacion.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtClasificacionKeyPressed(evt);\n }\n });\n\n lblDesc1.setFont(new java.awt.Font(\"Dialog\", 1, 12)); // NOI18N\n lblDesc1.setForeground(new java.awt.Color(15, 158, 168));\n lblDesc1.setText(\"Genero:\");\n\n txtGenero.setForeground(new java.awt.Color(15, 158, 168));\n txtGenero.setBordeColorFocus(new java.awt.Color(15, 158, 168));\n txtGenero.setBotonColor(new java.awt.Color(15, 158, 168));\n txtGenero.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n txtGenero.setPlaceholder(\"\");\n txtGenero.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtGeneroKeyPressed(evt);\n }\n });\n\n lblid.setForeground(new java.awt.Color(255, 255, 255));\n\n lblDesc2.setFont(new java.awt.Font(\"Dialog\", 1, 12)); // NOI18N\n lblDesc2.setForeground(new java.awt.Color(15, 158, 168));\n lblDesc2.setText(\"Duracion:\");\n\n txtDuracion.setForeground(new java.awt.Color(15, 158, 168));\n txtDuracion.setBordeColorFocus(new java.awt.Color(15, 158, 168));\n txtDuracion.setBotonColor(new java.awt.Color(15, 158, 168));\n txtDuracion.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n txtDuracion.setPlaceholder(\"\");\n txtDuracion.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtDuracionKeyPressed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(rSLabelFecha1, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(rSLabelHora1, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnAtras, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(rSPanelMaterial1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(52, 52, 52)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblClasifiacion)\n .addComponent(lblNom)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblDesc, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblDesc1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblDesc2, javax.swing.GroupLayout.Alignment.TRAILING))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(txtDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtClasificacion, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(txtGenero, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(txtDuracion, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(4, 4, 4))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(57, 57, 57)\n .addComponent(lblid)))\n .addGap(0, 38, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rSLabelHora1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rSLabelFecha1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnAtras, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(60, 60, 60)\n .addComponent(rSPanelMaterial1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblNom))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txtClasificacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblClasifiacion))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txtDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblDesc))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblDesc1)\n .addComponent(txtGenero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(17, 17, 17)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txtDuracion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblDesc2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblid)\n .addGap(23, 76, Short.MAX_VALUE))))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblTitulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(lblTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "99fc3a5ea0d907d84544e406536a9989", "score": "0.5995799", "text": "public void remplirCouleurFond()\n {\n for (int i=0; i< tabCoulFond.length; i++)\n ListeCoulFond.addItem(tabNomCoulFond[i]);\n // coloriage du fond du panneau avec la 1ère couleur de la liste\n PanneauCoulFond.setBackground(tabCoulFond[0]);\n }", "title": "" }, { "docid": "488ebc313e9241a9be273b462499b7a4", "score": "0.5994175", "text": "public FrmPesquisarContasReceber(UsuarioLogadoBean usuarioLogadoBean, Cliente cliente, IContasReceber telaContasReceber) {\n this.cliente = cliente;\n this.usuarioLogadoBean = usuarioLogadoBean;\n this.telaContasReceber = telaContasReceber;\n datePattern = \"dd/MM/yyyy\";\n maskPattern = \"##/##/####\";\n placeHolder = '_';\n initComponents();\n if (cliente!=null){\n unidadejTextField.setText(cliente.getNomeFantasia());\n selecionarjButton.setEnabled(false);\n }\n URL url = this.getClass().getResource(\"/imagens/logoRelatorio/iconetela.png\");\n Image imagemTitulo = Toolkit.getDefaultToolkit().getImage(url);\n this.setIconImage(imagemTitulo);\n this.setLocationRelativeTo(null);\n this.setVisible(true);\n }", "title": "" }, { "docid": "d59a2c8a9cda75495de24afcb016d6df", "score": "0.5994061", "text": "private void cargarGrilla() {\r\n\t\t\r\n\t\ttabla.vaciar();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfila = new Object[tabla.getColumnCount()];\r\n\t\tfor (Cliente c:listaCliente) {\r\n\t\t\tfila[0] = c.getId();\r\n\t\t\tfila[1] = c.getNombre();\r\n\t\t\tfila[2] = c.getDocumento();\r\n\t\t\ttabla.agregar(fila);\r\n \t\t}\r\n\t\t\r\n\t\t\r\n\t\t//mantiene el foco en el ultimo registro cargado\r\n\t\ttabla.setSeleccion();\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c1337dffa1a8129854db8b634d0d87e9", "score": "0.5993892", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n cbxHareketler = new javax.swing.JComboBox<>();\n cbxIslemler = new javax.swing.JComboBox<>();\n btnRaporla = new javax.swing.JButton();\n dtIlk = new com.toedter.calendar.JDateChooser();\n dtSon = new com.toedter.calendar.JDateChooser();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblRaporlar = new javax.swing.JTable();\n lblToplamGelirler = new javax.swing.JLabel();\n lblGelirler = new javax.swing.JLabel();\n lblToplamGiderler = new javax.swing.JLabel();\n lblGiderler = new javax.swing.JLabel();\n lblGenelDurum = new javax.swing.JLabel();\n lblDurumBakiye = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"ZSG | Cari Hesap Programı - Raporlar\");\n setResizable(false);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Rapor Filtrele\"));\n\n jLabel1.setText(\"İLE\");\n\n cbxHareketler.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Satışlar Hareketleri\", \"Kasa Hareketleri\", \"Ödeme Hareketleri\" }));\n cbxHareketler.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cbxHareketlerİtemStateChanged(evt);\n }\n });\n cbxHareketler.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n cbxHareketlerMouseClicked(evt);\n }\n });\n\n cbxIslemler.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Gelen Ödemeler\", \"Yapılan Ödemeler\" }));\n\n btnRaporla.setText(\"RAPORLA\");\n btnRaporla.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRaporlaActionPerformed(evt);\n }\n });\n\n dtIlk.setDateFormatString(\"yyyy-MM-dd\");\n dtIlk.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n dtIlkMouseClicked(evt);\n }\n });\n\n dtSon.setDateFormatString(\"yyyy-MM-dd\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(114, 114, 114)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(cbxHareketler, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(dtIlk, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(dtSon, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(cbxIslemler, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnRaporla)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(dtIlk, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(4, 4, 4)\n .addComponent(jLabel1))\n .addComponent(dtSon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(6, 6, 6)\n .addComponent(cbxHareketler, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbxIslemler, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnRaporla))\n .addContainerGap())\n );\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"RAPOR DETAYLARI\"));\n\n tblRaporlar.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(tblRaporlar);\n\n lblToplamGelirler.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n lblToplamGelirler.setText(\"Toplam Gelirler :\");\n\n lblGelirler.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n lblGelirler.setText(\"0.00TL\");\n\n lblToplamGiderler.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n lblToplamGiderler.setText(\"Toplam Giderler :\");\n\n lblGiderler.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n lblGiderler.setText(\"0.00TL\");\n\n lblGenelDurum.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n lblGenelDurum.setText(\"Genel Durum :\");\n\n lblDurumBakiye.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n lblDurumBakiye.setText(\"0.00TL Kar-Zarar\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 624, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(lblToplamGelirler)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblGelirler)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblToplamGiderler)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblGiderler)\n .addGap(18, 18, 18)\n .addComponent(lblGenelDurum)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblDurumBakiye)))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblToplamGelirler)\n .addComponent(lblGelirler)\n .addComponent(lblToplamGiderler)\n .addComponent(lblGiderler)\n .addComponent(lblGenelDurum)\n .addComponent(lblDurumBakiye))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(23, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "091f446212e027777200d361c658dd24", "score": "0.59932786", "text": "public void reiniciarMarcador(){\n //setTiempo(0);\n setMinas(0);\n setBanderas(0);\n setDestapadas(0);\n setInterrogantes(0);\n }", "title": "" }, { "docid": "db8223187513d5203aa8060c830d7407", "score": "0.598826", "text": "public void prepareSerieBoletoGuiaIdGuia(ActionEvent event) {\n if (this.getSelected() != null && serieBoletoGuiaIdGuiaController.getSelected() == null) {\n serieBoletoGuiaIdGuiaController.setSelected(this.getSelected().getSerieBoletoGuiaIdGuia());\n }\n }", "title": "" }, { "docid": "b34441706974db7ba9702ba0a2c6248a", "score": "0.5982852", "text": "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jPanel1 = new javax.swing.JPanel();\r\n unidadTXT = new javax.swing.JTextField();\r\n resultadoTXT = new javax.swing.JTextField();\r\n iniciarBTN = new javax.swing.JButton();\r\n segundaCB = new javax.swing.JComboBox<>();\r\n primeraCB = new javax.swing.JComboBox<>();\r\n jLabel3 = new javax.swing.JLabel();\r\n jLabel1 = new javax.swing.JLabel();\r\n regresar1 = new javax.swing.JButton();\r\n factoresBTN = new javax.swing.JButton();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setUndecorated(true);\r\n\r\n jPanel1.setBackground(new java.awt.Color(0, 128, 128));\r\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n jPanel1.add(unidadTXT, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 90, 190, 40));\r\n\r\n resultadoTXT.setEditable(false);\r\n jPanel1.add(resultadoTXT, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 90, 190, 40));\r\n\r\n iniciarBTN.setFont(new java.awt.Font(\"Cambria Math\", 1, 18)); // NOI18N\r\n iniciarBTN.setText(\"Convertir\");\r\n iniciarBTN.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n iniciarBTN.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\r\n iniciarBTN.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n iniciarBTNActionPerformed(evt);\r\n }\r\n });\r\n jPanel1.add(iniciarBTN, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 200, 140, 40));\r\n\r\n segundaCB.setFont(new java.awt.Font(\"Cambria Math\", 1, 14)); // NOI18N\r\n segundaCB.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"CELCIUS\", \"KELVIN\", \"FAHRENHEIT\", \" \" }));\r\n jPanel1.add(segundaCB, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 150, 190, 40));\r\n\r\n primeraCB.setFont(new java.awt.Font(\"Cambria Math\", 0, 14)); // NOI18N\r\n primeraCB.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"CELCIUS\", \"KELVIN\", \"FAHRENHEIT\" }));\r\n jPanel1.add(primeraCB, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 150, 190, 40));\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Cambria Math\", 1, 36)); // NOI18N\r\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel3.setText(\"=\");\r\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 90, -1, -1));\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Cambria Math\", 1, 18)); // NOI18N\r\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel1.setText(\"SELECIONE LAS UNIDADES QUE DESEA CONVERTIR\");\r\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 60, -1, -1));\r\n\r\n regresar1.setBackground(new java.awt.Color(255, 255, 255));\r\n regresar1.setFont(new java.awt.Font(\"Cambria Math\", 1, 14)); // NOI18N\r\n regresar1.setText(\"MENU\");\r\n regresar1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.black, java.awt.Color.black, java.awt.Color.black, java.awt.Color.black));\r\n regresar1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\r\n regresar1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n regresar1ActionPerformed(evt);\r\n }\r\n });\r\n jPanel1.add(regresar1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 0, 100, 45));\r\n\r\n factoresBTN.setFont(new java.awt.Font(\"Cambria Math\", 2, 14)); // NOI18N\r\n factoresBTN.setText(\"factores de conversion\");\r\n factoresBTN.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));\r\n factoresBTN.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n factoresBTNActionPerformed(evt);\r\n }\r\n });\r\n jPanel1.add(factoresBTN, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 180, 30));\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)\r\n );\r\n\r\n pack();\r\n }", "title": "" }, { "docid": "86290b03bab60e49f39cf3deccbfa565", "score": "0.59735525", "text": "public void aparencia() {\n // Definindo as cores da Janela e Botões\n //Janela\n this.getContentPane().setBackground(new Color(224,204,149));\n\n //Botões\n //Tecnico\n this.btnTec.setBackground(new Color(0, 0, 0, 0));\n //Cadastrar\n this.btnCadastrarAll.setBackground(new Color(0, 0, 0, 0));\n this.btnCadastroCliente.setBackground(new Color(0, 0, 0, 0));\n this.btnCadastraOS.setBackground(new Color(0, 0, 0, 0));\n this.btnCadastroUsuario.setBackground(new Color(0, 0, 0, 0));\n // Relatorios\n this.btnRelatoriosAll.setBackground(new Color(0, 0, 0, 0));\n this.btnRelatorioCliente.setBackground(new Color(0, 0, 0, 0));\n this.btnRelatorioServ.setBackground(new Color(0, 0, 0, 0));\n //Ajuda\n this.btnAjuda.setBackground(new Color(0, 0, 0, 0));\n this.btnAjudaSobre.setBackground(new Color(0, 0, 0, 0));\n //Opçoes\n this.btnOptionAll.setBackground(new Color(0, 0, 0, 0));\n this.btnOpTrocar.setBackground(new Color(0, 0, 0, 0));\n this.btnOpSair.setBackground(new Color(0, 0, 0, 0));\n }", "title": "" }, { "docid": "36014731ff0980af04cc38ba8ed3be8b", "score": "0.5972917", "text": "private void reinicioCompleto(){\r\n\t\tif (estado == Estado.normal){\r\n\t\t\tconsola.writeWar(\"[Info GUI]: No es posible reiniciar cuando hay un programa en ejecución.\\n\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\treiniciarVM();\r\n\t\t\tmodelBytecode = new DefaultTableModel(new String[]{\"#\",\"Bytecode\",\"mnemotécnico\"},0);\r\n\t\t\ttablaBytecode.setModel(modelBytecode);\r\n\t\t\tficheroByte = null;\t\t\t\r\n\t\t\ttransita(Estado.idle);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2969fe4f987b126bc9e4471b027426c7", "score": "0.5969858", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n comboEgreso = new gdm.presentacion.CustomComboBox();\n txtValor = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n btnAceptar4 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Euphemia\", 0, 18)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Inversión\");\n\n txtValor.setFont(new java.awt.Font(\"Euphemia\", 0, 14)); // NOI18N\n txtValor.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtValorKeyTyped(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Euphemia\", 0, 18)); // NOI18N\n jLabel2.setText(\"Valor\");\n\n btnAceptar4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnAceptar4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gdm/entidades/imagenes/Aceptar1.png\"))); // NOI18N\n btnAceptar4.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n btnAceptar4.setBorderPainted(false);\n btnAceptar4.setContentAreaFilled(false);\n btnAceptar4.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnAceptar4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnAceptar4.setIconTextGap(-3);\n btnAceptar4.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gdm/entidades/imagenes/Aceptar2.png\"))); // NOI18N\n btnAceptar4.setSelectedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gdm/entidades/imagenes/Aceptar3.png\"))); // NOI18N\n btnAceptar4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAceptar4ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(91, 91, 91)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(comboEgreso, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)\n .addComponent(txtValor)))\n .addGroup(layout.createSequentialGroup()\n .addGap(181, 181, 181)\n .addComponent(jLabel2)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 130, Short.MAX_VALUE)\n .addComponent(btnAceptar4)\n .addGap(123, 123, 123))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(comboEgreso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(32, 32, 32)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtValor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addComponent(btnAceptar4)\n .addContainerGap(29, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "4ffc17fc8e812318138ea052c6e66302", "score": "0.5969321", "text": "private void ordenar() {\n // Si la lista de ciudades no esta vacia\n if (!ciudades.isEmpty()) {\n int valor = jComboBoxOrdenar.getSelectedIndex();\n switch (valor) {\n case 0:case 1:\n gestorCiudades.ordenarComunidadCiudad();\n break;\n case 2:\n gestorCiudades.ordenarHabitantesAsc();\n break;\n case 3:\n gestorCiudades.ordenarHabitantesDesc();\n break;\n }\n actualizarGrid(ciudades);;\n }\n }", "title": "" }, { "docid": "48a90577668ce06325b283f60d5f1c40", "score": "0.59662753", "text": "public GUIPedido() {\n initComponents();\n popularComboProduto();\n popularComboVendedor();\n popularComboCliente();\n }", "title": "" }, { "docid": "dd9b14748d3dad30e265157edf2a96f3", "score": "0.59654486", "text": "public FRM_REGISTRO_BIBLIOTECARIOS() {\n initComponents();\n cerrar();\n this.setLocationRelativeTo(null);\n setResizable(false);\n }", "title": "" }, { "docid": "ac8bb78ff5607262f74dd82f5624cbf1", "score": "0.59641385", "text": "public TelaInicioCadastro() {\n initComponents();\n setExtendedState(MAXIMIZED_BOTH);\n preencherTabela(\"SELECT *from cadastro order by data_viagem\");\n setTitle(\"SysCadastro - Leticia Turismo\");\n Contador();\n setIcon();\n \n }", "title": "" }, { "docid": "b538e0698c1384525b5b04c16fa2ef52", "score": "0.5962427", "text": "public OperacionPanel(AutoPartsSwingApp app) {\n this.app = app;\n //this.im = new InputMap();\n //im.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, false), \"pressed\");\n //im.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, true), \"released\");\n clienteService = (ClienteService) app.ctx.getBean(\"clienteService\");\n proveedorService = (ProveedorService) app.ctx.getBean(\"proveedorService\");\n productosService = (ProductoService) app.ctx.getBean(\"productosService\");\n reporteService = (ReporteService) app.ctx.getBean(\"reporteService\");\n initComponents();\n try {\n ComboBoxModel model = clienteService.obtieneModelCliente();\n ComboBoxModel model2 = clienteService.obtieneModelCliente();\n jComboBox4.setModel(model);\n jComboBox5.setModel(model2);\n } catch (RefaccionariaException ex) {\n logger.error(\"Error al obtener el modelo de clientes \"\n + ex.getMessage(), ex);\n }\n try {\n jComboBox2.setModel(proveedorService.obtieneModelProveedor());\n jComboBox3.setModel(proveedorService.obtieneModelProveedor());\n jComboBox10.setModel(proveedorService.obtieneModelProveedorConsulta());\n } catch (RefaccionariaException ex) {\n logger.error(\"Error al obtener el modelo de proveedores \"\n + ex.getMessage(), ex);\n }\n try {\n jComboBox1.setModel(productosService.obtieneMarcas());\n } catch (RefaccionariaException ex) {\n logger.error(\"Error al obtener el modelo de marcas \"\n + ex.getMessage(), ex);\n }\n buttonGroup1.add(jRadioButton1);\n buttonGroup1.add(jRadioButton2);\n buttonGroup1.add(jRadioButton4);\n jTextField2.setEnabled(false);\n //jButton11.setInputMap(0, this.im);\n }", "title": "" }, { "docid": "7252a3b3dd160e1a8a56a9af9048eb5d", "score": "0.5961523", "text": "public Alugar() {\n initComponents();\n\n carregaCBVeiculos();\n }", "title": "" }, { "docid": "4cb94c0e69f7e00952da45e2e2629cc2", "score": "0.5961448", "text": "public AltaUnidades() {\n initComponents();\n Consorcio cons=new Consorcio();\n this.jCmb_Consorcio.setModel(new ComboConsorciosModel());\n this.jCmb_Consorcio.setEditable(true);\n this.jCmb_Consorcio.updateUI();\n }", "title": "" }, { "docid": "7de6224042b170a23b9e112e3679199b", "score": "0.5957249", "text": "public ListarProduto() {\n initComponents();\n PreencheCombo();\n \n }", "title": "" }, { "docid": "3d4bc1473f45d05ba9915ecdc0a49ed4", "score": "0.5949797", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblTitulo = new rojeru_san.rspanel.RSPanelGradiente();\n rSButtonIconUno1 = new RSMaterialComponent.RSButtonIconUno();\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n btnCerrarSesion = new rojeru_san.rsbutton.RSButtonForma();\n btnAtras = new RSMaterialComponent.RSButtonIconUno();\n rSLabelFecha1 = new rojeru_san.rsdate.RSLabelFecha();\n rSLabelHora1 = new rojeru_san.rsdate.RSLabelHora();\n rSPanelMaterial1 = new RSMaterialComponent.RSPanelMaterial();\n btnGuardar = new rojeru_san.rsbutton.RSButtonForma();\n btnLimpiar = new rojeru_san.rsbutton.RSButtonForma();\n lblNom = new javax.swing.JLabel();\n lblClasifiacion = new javax.swing.JLabel();\n lblDesc = new javax.swing.JLabel();\n txtDescripcion = new rojeru_san.rsfield.RSTextFullBD();\n txtNombre = new rojeru_san.rsfield.RSTextFullBD();\n txtClasificacion = new rojeru_san.rsfield.RSTextFullBD();\n lblDesc1 = new javax.swing.JLabel();\n txtGenero = new rojeru_san.rsfield.RSTextFullBD();\n lblDesc2 = new javax.swing.JLabel();\n txtDuracion = new rojeru_san.rsfield.RSTextFullBD();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n lblTitulo.setColorPrimario(new java.awt.Color(15, 158, 168));\n lblTitulo.setColorSecundario(new java.awt.Color(131, 202, 205));\n\n rSButtonIconUno1.setBackground(new java.awt.Color(131, 202, 205));\n rSButtonIconUno1.setBackgroundHover(new java.awt.Color(131, 202, 205));\n rSButtonIconUno1.setIcons(rojeru_san.efectos.ValoresEnum.ICONS.CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"REGISTRAR PELICULA\");\n\n javax.swing.GroupLayout lblTituloLayout = new javax.swing.GroupLayout(lblTitulo);\n lblTitulo.setLayout(lblTituloLayout);\n lblTituloLayout.setHorizontalGroup(\n lblTituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, lblTituloLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 355, Short.MAX_VALUE)\n .addComponent(rSButtonIconUno1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n lblTituloLayout.setVerticalGroup(\n lblTituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(lblTituloLayout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(jLabel1)\n .addGap(1, 1, 1))\n .addComponent(rSButtonIconUno1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n btnCerrarSesion.setBackground(new java.awt.Color(15, 158, 168));\n btnCerrarSesion.setText(\"Cerrar Sesión\");\n btnCerrarSesion.setColorHover(new java.awt.Color(97, 180, 184));\n btnCerrarSesion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCerrarSesionActionPerformed(evt);\n }\n });\n\n btnAtras.setBackground(new java.awt.Color(15, 158, 168));\n btnAtras.setBackgroundHover(new java.awt.Color(97, 180, 184));\n btnAtras.setIcons(rojeru_san.efectos.ValoresEnum.ICONS.ARROW_BACK);\n btnAtras.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAtrasActionPerformed(evt);\n }\n });\n\n rSLabelFecha1.setForeground(new java.awt.Color(15, 158, 168));\n rSLabelFecha1.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n\n rSLabelHora1.setForeground(new java.awt.Color(15, 158, 168));\n rSLabelHora1.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n\n rSPanelMaterial1.setBackground(new java.awt.Color(255, 255, 255));\n\n btnGuardar.setBackground(new java.awt.Color(15, 158, 168));\n btnGuardar.setText(\"Guardar\");\n btnGuardar.setColorHover(new java.awt.Color(97, 180, 184));\n btnGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGuardarActionPerformed(evt);\n }\n });\n\n btnLimpiar.setBackground(new java.awt.Color(15, 158, 168));\n btnLimpiar.setText(\"Limpiar\");\n btnLimpiar.setColorHover(new java.awt.Color(97, 180, 184));\n btnLimpiar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnLimpiarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout rSPanelMaterial1Layout = new javax.swing.GroupLayout(rSPanelMaterial1);\n rSPanelMaterial1.setLayout(rSPanelMaterial1Layout);\n rSPanelMaterial1Layout.setHorizontalGroup(\n rSPanelMaterial1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(rSPanelMaterial1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(rSPanelMaterial1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnLimpiar, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n rSPanelMaterial1Layout.setVerticalGroup(\n rSPanelMaterial1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(rSPanelMaterial1Layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnLimpiar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(28, 28, 28))\n );\n\n lblNom.setFont(new java.awt.Font(\"Dialog\", 1, 12)); // NOI18N\n lblNom.setForeground(new java.awt.Color(15, 158, 168));\n lblNom.setText(\"Nombre:\");\n\n lblClasifiacion.setFont(new java.awt.Font(\"Dialog\", 1, 12)); // NOI18N\n lblClasifiacion.setForeground(new java.awt.Color(15, 158, 168));\n lblClasifiacion.setText(\"Clasificación:\");\n\n lblDesc.setFont(new java.awt.Font(\"Dialog\", 1, 12)); // NOI18N\n lblDesc.setForeground(new java.awt.Color(15, 158, 168));\n lblDesc.setText(\"Descripción:\");\n\n txtDescripcion.setForeground(new java.awt.Color(15, 158, 168));\n txtDescripcion.setBordeColorFocus(new java.awt.Color(15, 158, 168));\n txtDescripcion.setBotonColor(new java.awt.Color(15, 158, 168));\n txtDescripcion.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n txtDescripcion.setPlaceholder(\"\");\n\n txtNombre.setForeground(new java.awt.Color(15, 158, 168));\n txtNombre.setBordeColorFocus(new java.awt.Color(15, 158, 168));\n txtNombre.setBotonColor(new java.awt.Color(15, 158, 168));\n txtNombre.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n txtNombre.setPlaceholder(\"\");\n\n txtClasificacion.setForeground(new java.awt.Color(15, 158, 168));\n txtClasificacion.setBordeColorFocus(new java.awt.Color(15, 158, 168));\n txtClasificacion.setBotonColor(new java.awt.Color(15, 158, 168));\n txtClasificacion.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n txtClasificacion.setPlaceholder(\"\");\n\n lblDesc1.setFont(new java.awt.Font(\"Dialog\", 1, 12)); // NOI18N\n lblDesc1.setForeground(new java.awt.Color(15, 158, 168));\n lblDesc1.setText(\"Genero:\");\n\n txtGenero.setForeground(new java.awt.Color(15, 158, 168));\n txtGenero.setBordeColorFocus(new java.awt.Color(15, 158, 168));\n txtGenero.setBotonColor(new java.awt.Color(15, 158, 168));\n txtGenero.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n txtGenero.setPlaceholder(\"\");\n\n lblDesc2.setFont(new java.awt.Font(\"Dialog\", 1, 12)); // NOI18N\n lblDesc2.setForeground(new java.awt.Color(15, 158, 168));\n lblDesc2.setText(\"Duracion:\");\n\n txtDuracion.setForeground(new java.awt.Color(15, 158, 168));\n txtDuracion.setBordeColorFocus(new java.awt.Color(15, 158, 168));\n txtDuracion.setBotonColor(new java.awt.Color(15, 158, 168));\n txtDuracion.setFont(new java.awt.Font(\"Roboto Bold\", 1, 12)); // NOI18N\n txtDuracion.setPlaceholder(\"\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(rSLabelFecha1, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(rSLabelHora1, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 352, Short.MAX_VALUE)\n .addComponent(btnCerrarSesion, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(rSPanelMaterial1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(52, 52, 52)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblClasifiacion)\n .addComponent(lblNom)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblDesc, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblDesc1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblDesc2, javax.swing.GroupLayout.Alignment.TRAILING))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(txtDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtClasificacion, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(txtGenero, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtDuracion, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnAtras, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(btnCerrarSesion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(rSLabelHora1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rSLabelFecha1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(60, 60, 60)\n .addComponent(rSPanelMaterial1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(btnAtras, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(4, 4, 4)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblNom))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txtClasificacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblClasifiacion))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txtDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblDesc))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txtGenero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblDesc1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtDuracion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(lblDesc2))\n .addGap(28, 102, Short.MAX_VALUE))))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblTitulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(lblTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "9eef9fcc39a5a104293eec13e42d42c6", "score": "0.5946734", "text": "public Rpt_Cotizacion() {\n initComponents(); \n setTitle(\"Movimiento de Productos\");\n this.setFrameIcon(new ImageIcon(this.getClass().getResource(\"/Imagenes/icoChiqui.png\")));\n tbMovimiento.setModel(modelo);\n modelo.setColumnIdentifiers(new String[] {\"Codigo\",\"Proveedor\",\"Comprobante\",\"Serie\",\"Fecha Ingreso\",\"Producto\",\"Codigo Producto\",\"Costo Compra\",\"Fecha Venta\",\"Comprobante\",\"Numero\",\"Precio Venta\"});\n tbMovimiento.getColumnModel().getColumn(0).setMaxWidth(0);\n tbMovimiento.getColumnModel().getColumn(0).setMinWidth(0);\n tbMovimiento.getColumnModel().getColumn(0).setPreferredWidth(0);\n tbMovimiento.getColumnModel().getColumn(1).setPreferredWidth(200);\n tbMovimiento.getColumnModel().getColumn(2).setPreferredWidth(80); \n tbMovimiento.getColumnModel().getColumn(3).setPreferredWidth(100); \n tbMovimiento.getColumnModel().getColumn(4).setPreferredWidth(100); \n tbMovimiento.getColumnModel().getColumn(5).setPreferredWidth(200); \n tbMovimiento.getColumnModel().getColumn(6).setPreferredWidth(100); \n tbMovimiento.getColumnModel().getColumn(7).setPreferredWidth(100); \n tbMovimiento.getColumnModel().getColumn(8).setPreferredWidth(100); \n tbMovimiento.getColumnModel().getColumn(9).setPreferredWidth(100); \n tbMovimiento.getColumnModel().getColumn(10).setPreferredWidth(100); \n tbMovimiento.getColumnModel().getColumn(11).setPreferredWidth(100); \n // BuscarCliente();\n \n jButton3.setVisible(false);\n fechaFi.setDate(new Date());\n fechaIn.setDate(new Date());\n VerPorFechas();\n FormatoTabla ft= new FormatoTabla(1);\n tbMovimiento.setDefaultRenderer(Object.class, ft);\n fechaIn.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n\n @Override\n public void propertyChange(PropertyChangeEvent evt) {\n if(\"date\".equals(evt.getPropertyName())){\n JDateChooser isse=(JDateChooser)evt.getSource();\n boolean isdatasele=false;\n try {\n Field dateselfi=JDateChooser.class.getDeclaredField(\"dateSelect\");\n dateselfi.setAccessible(true);\n isdatasele=dateselfi.getBoolean(isse);\n } catch (Exception ignoreOrNot) {\n //OptionPane.showMessageDialog(null, \"Hoy es:\"+control.Formato_Amd(fechaIni.getDate()));\n //CargarDatos();\n // BuscarCliente();\n VerPorFechas();\n \n }\n }\n }\n });\n fechaFi.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n\n @Override\n public void propertyChange(PropertyChangeEvent evt) {\n if(\"date\".equals(evt.getPropertyName())){\n JDateChooser isse=(JDateChooser)evt.getSource();\n boolean isdatasele=false;\n try {\n Field dateselfi=JDateChooser.class.getDeclaredField(\"dateSelect\");\n dateselfi.setAccessible(true);\n isdatasele=dateselfi.getBoolean(isse);\n } catch (Exception ignoreOrNot) {\n //OptionPane.showMessageDialog(null, \"Hoy es:\"+control.Formato_Amd(fechaIni.getDate()));\n // CargarDatos();\n //BuscarCliente();\n VerPorFechas();\n \n }\n }\n }\n });\n }", "title": "" }, { "docid": "8d989f58c6fd1b64801ec132aee64c80", "score": "0.59441125", "text": "public void prepareSerieBoletoGuiaIdVentaBoleto(ActionEvent event) {\n if (this.getSelected() != null && serieBoletoGuiaIdVentaBoletoController.getSelected() == null) {\n serieBoletoGuiaIdVentaBoletoController.setSelected(this.getSelected().getSerieBoletoGuiaIdVentaBoleto());\n }\n }", "title": "" }, { "docid": "4df45e46e23b76db66d3fb578c0764cc", "score": "0.5942929", "text": "private void camposCargar() {\n if (jTablePlantel.getSelectedRow() > -1) {\n if (jTablePlantel.getValueAt(jTablePlantel.getSelectedRow(), 0) != null) {\n unaSociaSeleccionada = unaControladoraGlobal.getSociaBD((Long) jTablePlantel.getValueAt(jTablePlantel.getSelectedRow(), 0));\n jTextFieldNombre.setText(unaSociaSeleccionada.getNombre());\n jTextFieldApellido.setText(unaSociaSeleccionada.getApellido());\n jTextFieldNroCamiseta.setText(unaSociaSeleccionada.getNumeroCamiseta());\n jButtonEditar.setEnabled(true);\n }\n }\n }", "title": "" }, { "docid": "9d5ea2d17c788b5d274b3220c518f015", "score": "0.594243", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n //1.-Actualiza el modelo en función del evento de entrada\n JMenuItem controlInterfaz = (JMenuItem) e.getSource(); //conversión del evento producido\n \n // Selector dependiendo de opcion de carga\n switch (controlInterfaz.getText()) {\n \n // CARGA FICHERO ALMACENES\n case \"Carga fichero Almacenes\" : \n System.out.println(\"[ControllerMVCCargaDatos] - Carga de fichero Almacenes\");\n // Abrimos el filechooser\n filter = new FileNameExtensionFilter(\"Datos Almacenes (.txt)\", \"txt\");\n fc = new JFileChooser();\n fc.addChoosableFileFilter(filter);\n fc.setFileFilter(filter);\n resultado = fc.showOpenDialog(controlInterfaz);\n if (resultado == JFileChooser.APPROVE_OPTION) {\n selectedFile = fc.getSelectedFile();\n // Cargar ControladorCUCargaAlmacenes\n System.out.println(\"[ControllerMVCCargaDatos] - Fichero \" + selectedFile.getAbsolutePath() + \" seleccionado.\");\n ControladorCUCargaAlmacenes cargaAlmacenes = new ControladorCUCargaAlmacenes(selectedFile.getAbsolutePath());\n try {\n cargaAlmacenes.CargarAlmacenes();\n }\n catch (IOException excepcion) {}\n } \n break;\n \n // CARGA FICHERO ARTICULOS\n case \"Carga fichero Articulos\" :\n // Recogemos la instancia del singleton correspondiente\n System.out.println(\"[ControllerMVCCargaDatos] - Carga de fichero Articulos\");\n // Abrimos el filechooser\n filter = new FileNameExtensionFilter(\"Datos Articulos (.txt)\", \"txt\");\n fc = new JFileChooser();\n fc.addChoosableFileFilter(filter);\n fc.setFileFilter(filter);\n resultado = fc.showOpenDialog(controlInterfaz);\n if (resultado == JFileChooser.APPROVE_OPTION) {\n selectedFile = fc.getSelectedFile();\n // Cargar ControladorCUCargaArticulos\n System.out.println(\"[ControllerMVCCargaDatos] - Fichero \" + selectedFile.getAbsolutePath() + \" seleccionado.\");\n ControladorCUCargaArticulos cargaArticulos = new ControladorCUCargaArticulos(selectedFile.getAbsolutePath());\n try {\n cargaArticulos.CargarArticulos();\n }\n catch (IOException excepcion) {}\n } \n break;\n \n // CARGA FICHERO CLIENTES\n case \"Carga fichero Clientes\" :\n // Recogemos la instancia del singleton correspondiente\n System.out.println(\"[ControllerMVCCargaDatos] - Carga de fichero Clientes\");\n // Abrimos el filechooser\n filter = new FileNameExtensionFilter(\"Datos Clientes (.txt)\", \"txt\");\n fc = new JFileChooser();\n fc.addChoosableFileFilter(filter);\n fc.setFileFilter(filter);\n resultado = fc.showOpenDialog(controlInterfaz);\n if (resultado == JFileChooser.APPROVE_OPTION) {\n selectedFile = fc.getSelectedFile();\n // Cargar ControladorCUCargaClientes - Pasamos como parámetro el getAbsolutePath()\n System.out.println(\"[ControllerMVCCargaDatos] - Fichero \" + selectedFile.getAbsolutePath() + \" seleccionado.\");\n ControladorCUCargaClientes cargaClientes = new ControladorCUCargaClientes(selectedFile.getAbsolutePath());\n try {\n cargaClientes.CargarClientes();\n }\n catch (IOException excepcion) {}\n } \n break;\n \n // CARGA FICHERO TIENDAS\n case \"Carga fichero Tiendas\" :\n // Recogemos la instancia del singleton correspondiente\n System.out.println(\"[ControllerMVCCargaDatos] - Carga de fichero Tiendas\");\n // Abrimos el filechooser\n filter = new FileNameExtensionFilter(\"Datos Tiendas (.txt)\", \"txt\");\n fc = new JFileChooser();\n fc.addChoosableFileFilter(filter);\n fc.setFileFilter(filter);\n resultado = fc.showOpenDialog(controlInterfaz);\n if (resultado == JFileChooser.APPROVE_OPTION) {\n selectedFile = fc.getSelectedFile();\n // Cargar ControladorCUCargaTiendas \n System.out.println(\"[ControllerMVCCargaDatos] - Fichero \" + selectedFile.getAbsolutePath() + \" seleccionado.\");\n ControladorCUCargaTiendas cargaTiendas = new ControladorCUCargaTiendas(selectedFile.getAbsolutePath());\n try {\n cargaTiendas.CargarTiendas();\n }\n catch (IOException excepcion) {}\n } \n break;\n \n // CARGA FICHERO VENTAS\n case \"Carga fichero Ventas\" :\n // Recogemos la instancia del singleton correspondiente\n System.out.println(\"[ControllerMVCCargaDatos] - Carga de fichero Ventas\");\n // Abrimos el filechooser\n filter = new FileNameExtensionFilter(\"Datos Ventas (.txt)\", \"txt\");\n fc = new JFileChooser();\n fc.addChoosableFileFilter(filter);\n fc.setFileFilter(filter);\n resultado = fc.showOpenDialog(controlInterfaz);\n if (resultado == JFileChooser.APPROVE_OPTION) {\n selectedFile = fc.getSelectedFile();\n // Cargar ControladorCUCargaVentas\n System.out.println(\"[ControllerMVCCargaDatos] - Fichero \" + selectedFile.getAbsolutePath() + \" seleccionado.\");\n ControladorCUCargaVentas cargaVentas = new ControladorCUCargaVentas(selectedFile.getAbsolutePath());\n try {\n cargaVentas.CargarVentas();\n }\n catch (IOException excepcion) {}\n } \n break;\n \n // CARGA FICHERO PROMOCIONES \n case \"Carga fichero Promociones\" :\n // Recogemos la instancia del singleton correspondiente\n System.out.println(\"[ControllerMVCCargaDatos] - Carga de fichero Promociones\");\n // Abrimos el filechooser\n filter = new FileNameExtensionFilter(\"Datos Promociones (.txt)\", \"txt\");\n fc = new JFileChooser();\n fc.addChoosableFileFilter(filter);\n fc.setFileFilter(filter);\n resultado = fc.showOpenDialog(controlInterfaz);\n if (resultado == JFileChooser.APPROVE_OPTION) {\n selectedFile = fc.getSelectedFile();\n System.out.println(\"[ControllerMVCCargaDatos] - Fichero \" + selectedFile.getAbsolutePath() + \" seleccionado.\");\n ControladorCUCargaPromociones cargaPromociones = new ControladorCUCargaPromociones(selectedFile.getAbsolutePath());\n try {\n cargaPromociones.CargarPromociones();\n }\n catch (IOException excepcion) {}\n } \n break;\n }\n \n }", "title": "" }, { "docid": "869b17c7ad8b97c7bb9355cdf3321943", "score": "0.594194", "text": "private InscribirSocio(){\n \tsetBackground(Color.WHITE);\n \tsetLayout(null);\n \tsetSize(685, 540);\n \tjtxtBusquedaSocio = new JTextField();\n \tjbtnInscribir = new JButton(\"Inscribir\"); \t\n \tjbtnBuscarSocio = new JButton(\"Buscar\");\n \tjcboBusquedaSocio = new JComboBox(); \t\n \tjpnlBuscaSocio = new JPanel();\n \tdtblSocio = new DefaultTableModel();\n \tdtmClase = new DefaultTableModel();\n \tdtmInstructor = new DefaultTableModel();\n \tjpnlDatosInscripcion = new JPanel();\n \tjbtnCancelar = new JButton(\"Cancelar\");\n \tjradBotones = new ButtonGroup();\n \tjtblDatosSocio = new JTable();\n \tjscrollTabla = new JScrollPane(jtblDatosSocio);\n \tjbtnSeleccionarSocio = new JButton(\"Selec. Socio\");\n \tjpnlBuscarSeccion = new JPanel();\n \tjcboBusquedaSeccion = new JComboBox();\n \tjtxtBusquedaClase = new JTextField();\n \tjtblClase = new JTable();\n \tjscrollClase = new JScrollPane(jtblClase);\n \tjbtnBuscarSseccion = new JButton(\"Buscar\");\n \tjbtnSeleccionarClase = new JButton(\"Selec. Clase\");\n \tjtxtIdSocio = new jTextNum();\n \tjlblIdSocio = new JLabel(\"Id Socio\");\n \tjlblIdClase = new JLabel(\"Id Clase\");\n \tjtxtIdSeccion = new jTextNum();\n jlblDia = new JLabel(\"Dia\");\n jtxtDia = new JTextField();\n jlblHoraInicio = new JLabel(\"Hora Inicio\");\n jtxtHoraInicio = new JTextField();\n jlblHoraFin = new JLabel(\"Hora Fin\");\n jtxtHoraFin = new JTextField();\n secciones = new Vector<Seccion>();\n \n jcboDia = new JComboBox(dias);\n jcboDiaSec = new JComboBox(dias);\n \n \tcrearComponentes();\n addComponentes();\n addDefaultProperties();\n addActionListeners();\n }", "title": "" }, { "docid": "bb2e6df20d31acf554bea44cbb23c216", "score": "0.5941596", "text": "public GUICobrodeCompras() {\n setUndecorated(true);\n initComponents();\n setLocationRelativeTo(null);\n ImageIcon a = new ImageIcon(getClass().getResource(\"/Recursos/Efectivo.png\"));\n ImageIcon tam1 = new ImageIcon(a.getImage().getScaledInstance(12, 12, 1));\n tbbPaneles.setIconAt(0, tam1);\n\n ImageIcon b = new ImageIcon(getClass().getResource(\"/Recursos/Tarjeta.png\"));\n ImageIcon tam2 = new ImageIcon(b.getImage().getScaledInstance(12, 12, 1));\n tbbPaneles.setIconAt(1, tam2);\n\n ImageIcon c = new ImageIcon(getClass().getResource(\"/Recursos/Moneda.png\"));\n ImageIcon tam3 = new ImageIcon(c.getImage().getScaledInstance(12, 12, 1));\n tbbPaneles.setIconAt(2, tam3);\n\n txtpagos.requestFocus();\n }", "title": "" }, { "docid": "f3491c69a506de9e276f9899e04f5f40", "score": "0.5941048", "text": "private void agregarVista_calculoAnterior() {\r\n\t\tcalculoAnterior.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tcalculoAnterior.setEditable(false);\r\n\t\tcalculoAnterior.setBorder(null);\r\n\t\tcalculoAnterior.setBackground(Color.WHITE);\r\n\t\tcalculoAnterior.setBounds(10, 11, 282, 29);\r\n\t\tadd(calculoAnterior);\r\n\t}", "title": "" }, { "docid": "4aab3a0bfdc25f385d16135b4b7db97b", "score": "0.59400237", "text": "public TelaTrabalho() {\n initComponents();\n conexao = ModuloConexao.conector();\n this.comboBusca();\n this.comboBusca2();\n }", "title": "" }, { "docid": "ec33facece028d8f79a73f05da10624e", "score": "0.5939367", "text": "private void setArribaButton() {\n\t\t// Reference the speak button\n\t\tarribaButton = (Button) findViewById(R.id.arriba);\n\n\t\t// Set up click listener\n\t\tarribaButton.setOnClickListener(new OnClickListener() { \n\t \n\t\t\t@Override \n\t public void onClick(View v) { \n\t\t\t\ttipoMov = TipoMovimiento.ARRIBA;\n\t\t\t\tcont = 0;\n\t\t\t\tchangePambilImage();\n\t\t\t\tchangeFeedbackText();\n\t\t\t\tToast toast = Toast.makeText(getApplicationContext(),\"Cambiado movimiento a arriba\", Toast.LENGTH_SHORT);\n\t\t\t\ttoast.show();\n\t } \n\t });\n\n\t}", "title": "" }, { "docid": "1124d77ff3005c31e47d740f97524707", "score": "0.5925467", "text": "public void iniciar(){\n //vistaE.setTitle(\"Gestión de Equipos\");\n vistaE.setLocationRelativeTo(null); \n vistaE.btnModificar.setEnabled(false);\n //nombre de las columnas\n modelo.addColumn(\"No. Computadora\");//les asigno nombres a las columnas\n modelo.addColumn(\"Número de Inventario\");//les asigno nombres a las columnas \n cargarTabla(vistaE.tableEquipos);\n }", "title": "" }, { "docid": "1df9234988d89690925db6439fa1a035", "score": "0.5924125", "text": "public void limpiar() {\n txt_consulta.setText(\"\");\n txt_correo.setText(\"\");\n txt_direccion.setText(\"\");\n txt_dv.setText(\"\");\n txt_materno.setText(\"\");\n txt_nombre.setText(\"\");\n txt_paterno.setText(\"\");\n txt_rut.setText(\"\");\n txt_telefono.setText(\"\");\n txt_rut.enable();\n txt_dv.enable();\n lstClie.clearSelection();\n }", "title": "" }, { "docid": "53e8d77cddc24ebf398beb53ecc17b70", "score": "0.59238976", "text": "public Demografia2() {\n initComponents();\n String[] camposNuevos = BaseDatos.Demografia_BD.getNuevosCampos();\n System.out.println(\"-------LLEGA AQUI-------\");\n //Se agrupan los Radio Button---------------------------\n Sex.add(Femenino);\n Sex.add(Masculino);\n Educacion.add(DE1);\n Educacion.add(DE2);\n Educacion.add(DE3);\n Educacion.add(DE4);\n Educacion.add(DE5);\n Educacion.add(DE6);\n Educacion.add(DE7);\n Educacion.add(DE8);\n Educacion.add(DE9);\n //---------------------------------------------\n tabla();\n ocultarBarraTitulo();\n ponerIconos();\n TiempoDesplazamiento =0;\n TipoDeTransporte = \"\";\n despl = new DesplazamientoT(null,true);\n despl.setLocationRelativeTo(btnDesplazamientoTrabajo);\n Trabajadores = null;\n datosAdicionales = new DatosAdicionalesDemografia(null, true);\n datosAdicionales.setCampos(camposNuevos);\n filtroAvanzado = new FiltroAvanzadoConsultaDemografia(null,true);\n filtroAvanzado.setCamposNuevos(camposNuevos);\n dateFechaNacimiento.setEnabled(false);\n dateFechaNacimiento.getCalendarButton().setEnabled(true);\n dateFechaIngreso.setEnabled(false);\n dateFechaIngreso.getCalendarButton().setEnabled(true);\n cc_A_Retirar=0;\n initValorCamposAdicionales(camposNuevos.length);\n Validador = new ausentismo.ValidarDatos();\n DesactivarControles();\n \n }", "title": "" }, { "docid": "6e4df9e916c7b095dc5c88a3c81b8577", "score": "0.59212625", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n BTNasignar = new javax.swing.JButton();\n BTNCancelar = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n TBrisgos = new javax.swing.JTable();\n CBDesarrolladores = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n CBproyecto = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenu2 = new javax.swing.JMenu();\n jMenu3 = new javax.swing.JMenu();\n jMenu10 = new javax.swing.JMenu();\n jMenu4 = new javax.swing.JMenu();\n jMenu5 = new javax.swing.JMenu();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Asignacion de Riesgos\");\n\n BTNasignar.setText(\"Asignar\");\n BTNasignar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n BTNasignarMouseClicked(evt);\n }\n });\n\n BTNCancelar.setText(\"Cancelar\");\n\n TBrisgos.setModel(ModeloTabla);\n TBrisgos.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n TBrisgosMouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(TBrisgos);\n\n CBDesarrolladores.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n CBDesarrolladores.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CBDesarrolladoresActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Desarrollador a cargo\");\n\n CBproyecto.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n CBproyecto.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n CBproyectoItemStateChanged(evt);\n }\n });\n CBproyecto.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n CBproyectoMouseClicked(evt);\n }\n });\n CBproyecto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CBproyectoActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Clave De Proyecto:\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(60, 60, 60)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 506, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(49, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(BTNasignar, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(BTNCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(75, 75, 75))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(107, 107, 107)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel1))\n .addGap(72, 72, 72)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(CBproyecto, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(CBDesarrolladores, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(28, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(CBproyecto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(CBDesarrolladores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(29, 29, 29)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BTNasignar)\n .addComponent(BTNCancelar))\n .addContainerGap())\n );\n\n jMenu1.setText(\"Inicio\");\n jMenu1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenu1MouseClicked(evt);\n }\n });\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Gestion de Riesgos\");\n jMenu2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenu2MouseClicked(evt);\n }\n });\n jMenuBar1.add(jMenu2);\n\n jMenu3.setText(\"Acciones de Mitigacion\");\n jMenu3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenu3MouseClicked(evt);\n }\n });\n jMenuBar1.add(jMenu3);\n\n jMenu10.setText(\"Acciones de Contingencia\");\n jMenu10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenu10MouseClicked(evt);\n }\n });\n jMenuBar1.add(jMenu10);\n\n jMenu4.setText(\"Matriz de Riesgos\");\n jMenu4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenu4MouseClicked(evt);\n }\n });\n jMenuBar1.add(jMenu4);\n\n jMenu5.setText(\"Salir\");\n jMenu5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenu5MouseClicked(evt);\n }\n });\n jMenuBar1.add(jMenu5);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "title": "" }, { "docid": "c1f3915b10973d301fd3ec17c5b66ba1", "score": "0.5920665", "text": "public void seleccionarParaReproduccion() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.ruleta = new ArrayList<>();\n\t\tthis.poblacionPostRuleta = new ArrayList<>();\n\t\tdouble aptitudTotal = 0;\n\t\tfor (int i = 0; i < aptitud.size(); i++) {\n\t\t\taptitudTotal = aptitudTotal + aptitud.get(i)[0];\n\t\t}\n\n\t\tDouble probabilidadAux = 0.0;\n\t\t// Realizamos la ruleta\n\t\tfor (int i = 0; i < aptitud.size(); i++) {\n\t\t\tprobabilidadAux = aptitud.get(i)[0];\n\t\t\tprobabilidadAux = probabilidadAux / aptitudTotal;\n\t\t\tprobabilidadAux = (probabilidadAux * 100);\n\t\t\t// probabilidadAux--;\n\t\t\tprobabilidadAux++;\n\t\t\t// Ahora tenemos el número de casillas para esa cadena en la ruleta\n\t\t\tif (probabilidadAux == -1.0) {\n\t\t\t\tprobabilidadAux = 1.0;\n\t\t\t}\n\t\t\tif (i == 0) {\n\t\t\t\tfor (int j = ruleta.size() - 1; j < probabilidadAux; j++) {\n\t\t\t\t\truleta.add(i);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdouble tamannoAux = ruleta.size() + probabilidadAux;\n\t\t\t\tfor (int j = ruleta.size() - 1; j < tamannoAux; j++) {\n\t\t\t\t\truleta.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Lanzamos la ruleta para cada individuo de la población\n\t\tfor (int i = 0; i < this.tamanoPoblacion; i++) {\n\t\t\truleta.add(i, ThreadLocalRandom.current().nextInt(0, this.tamanoPoblacion));\n\t\t}\n\n\t\tfor (int i = 0; i < this.tamanoPoblacion; i++) {\n\t\t\tpoblacionPostRuleta.add(i, poblacionInicial.get(ruleta.get(i)));\n\t\t}\n\t}", "title": "" }, { "docid": "47e61192af05b0c7df3a3e9c7312f16f", "score": "0.5918088", "text": "public ViewProdutoAlterar() {\n initComponents();\n }", "title": "" }, { "docid": "d5f8a6a553dd140503903ed89f13fc10", "score": "0.5912773", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n CbPan = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n panesFriosjSpinner = new javax.swing.JSpinner();\n panesRotosjSpinner = new javax.swing.JSpinner();\n jLabel3 = new javax.swing.JLabel();\n panesComidosjSpinner = new javax.swing.JSpinner();\n jLabel4 = new javax.swing.JLabel();\n registraMermaJButton = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n mermasjTable = new javax.swing.JTable();\n Salir = new javax.swing.JButton();\n eliminaSelectedMermaJButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Nueva Merma\"));\n\n jLabel2.setFont(new java.awt.Font(\"Ubuntu\", 1, 15)); // NOI18N\n jLabel2.setText(\"Registra Merma por pan\");\n\n CbPan.setFont(new java.awt.Font(\"Liberation Sans\", 1, 15)); // NOI18N\n CbPan.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Selecciona un pan\" }));\n CbPan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CbPanActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Frios\");\n\n panesFriosjSpinner.setFont(new java.awt.Font(\"Liberation Sans\", 1, 15)); // NOI18N\n panesFriosjSpinner.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n panesFriosjSpinner.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n panesFriosjSpinnerStateChanged(evt);\n }\n });\n\n panesRotosjSpinner.setFont(new java.awt.Font(\"Liberation Sans\", 1, 15)); // NOI18N\n panesRotosjSpinner.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n panesRotosjSpinner.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n panesRotosjSpinnerStateChanged(evt);\n }\n });\n\n jLabel3.setText(\"Rotos\");\n\n panesComidosjSpinner.setFont(new java.awt.Font(\"Liberation Sans\", 1, 15)); // NOI18N\n panesComidosjSpinner.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n panesComidosjSpinner.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n panesComidosjSpinnerStateChanged(evt);\n }\n });\n\n jLabel4.setText(\"Comidos\");\n\n registraMermaJButton.setText(\"<html><center>Registrar <br>Merma</center>\");\n registraMermaJButton.setEnabled(false);\n registraMermaJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n registraMermaJButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panesFriosjSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panesRotosjSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(37, 37, 37)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panesComidosjSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(CbPan, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 46, Short.MAX_VALUE)\n .addComponent(registraMermaJButton, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(CbPan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(panesFriosjSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(panesRotosjSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(panesComidosjSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(registraMermaJButton))\n .addContainerGap())\n );\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Mermas registradas al corte\"));\n\n mermasjTable.setFont(new java.awt.Font(\"Liberation Sans\", 1, 15)); // NOI18N\n mermasjTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Pan\", \"Rotos\", \"Frios\", \"Comidos\"\n }\n ));\n mermasjTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n mermasjTableMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(mermasjTable);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n Salir.setText(\"Volver\");\n Salir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SalirActionPerformed(evt);\n }\n });\n\n eliminaSelectedMermaJButton.setText(\"Eleminar seleccionado\");\n eliminaSelectedMermaJButton.setEnabled(false);\n eliminaSelectedMermaJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n eliminaSelectedMermaJButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(68, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(Salir, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(eliminaSelectedMermaJButton, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(51, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(20, 20, 20)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Salir)\n .addComponent(eliminaSelectedMermaJButton))\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "46bca2c740e8cde0bebc8580e9b7e8f6", "score": "0.59122235", "text": "public void setValores()\n {\n txtNombre.setText(pendiente.getNombre());\n \n cbAño.setSelectedItem(String.valueOf(pendiente.getParaCuando().get(GregorianCalendar.YEAR)));\n cbMes.setSelectedItem(mesesDelAño[pendiente.getParaCuando().get(GregorianCalendar.MONTH)]);\n \n int d = pendiente.getParaCuando().get(GregorianCalendar.DAY_OF_MONTH);\n System.out.println(d);\n String nombreDelDia = fabricaClass.diaDeLaSemana(pendiente.getParaCuando().get(GregorianCalendar.DAY_OF_WEEK));\n String numeroDelDia = (String.valueOf(d).length()==1)?\"0\"+String.valueOf(d):String.valueOf(d);\n cbDia.setSelectedItem(numeroDelDia + \" (\" + nombreDelDia + \")\");\n \n //holi\n if(pendiente.getTieneHora()==true)\n {\n int h = pendiente.getParaCuando().get(GregorianCalendar.HOUR_OF_DAY);\n String hora = (String.valueOf(h).length()==1)?\"0\"+String.valueOf(h):String.valueOf(h);\n cbHora.setSelectedItem(hora);\n \n int m = pendiente.getParaCuando().get(GregorianCalendar.MINUTE);\n String min = (String.valueOf(m).length()==1)?\"0\"+String.valueOf(m):String.valueOf(m);\n cbMinuto.setSelectedItem(min);\n }\n else\n {\n rbNoHora.setSelected(true);\n cbHora.setEnabled(false);\n cbMinuto.setEnabled(false);\n }\n \n \n cbImportancia.setSelectedIndex(pendiente.getImportancia()-1);\n \n if(pendiente.getRubro()!=\"\")\n {\n rbUsado.setSelected(true);\n txtRubroOtro.setEnabled(false);\n cbRubrosUsados.setEnabled(true);\n cbRubrosUsados.requestFocus();\n cbRubrosUsados.setSelectedItem(pendiente.getRubro());\n }\n else\n {\n rbNoIncluirRubro.setSelected(true);\n txtRubroOtro.setEnabled(false);\n cbRubrosUsados.setEnabled(false);\n }\n \n txaDetalles.setText(pendiente.getDetalles());\n }", "title": "" }, { "docid": "eae40a9887dcc84df31c653e7141fbfb", "score": "0.59114486", "text": "@Override\n public void onClick(View v) {\n if (id_ruta==1){\n anterior.setEnabled(false);\n }\n //Comprovamos que no sea el primer valor\n if(id_ruta>1) {\n //Retrocedemos en id tabla BBDD\n id_ruta--;\n //Cargamos la nueva ruta\n CargarRuta(id_ruta);\n }\n\n }", "title": "" }, { "docid": "2fc5644cae9c1a7fd5aaa7b462c371f8", "score": "0.5906138", "text": "private void botaoNaoSelecionado() {\n\t\tbt_Inicio.setStyle(\"-fx-effect: dropshadow(two-pass-box , darkgray, 10, 0.0 , 4, 5);\"+\n\t\t\"-fx-background-color: white;\"+\n\t\t\"-fx-text-fill: black;\"+\n\t\t\"-fx-background-radius: 0;\"+\n\t\t\"-fx-border-radius: 0;\"+\n\t\t\"-fx-border-color: white;\"+\n\t\t\"-fx-background-image: url(\\\"File:homIco.png\\\");\"+ \n\t\t\"-fx-background-repeat: no-repeat;\"+\n\t\t\"-fx-background-position:20 14;\" +\n\t\t\"-fx-background-size:30 27; \"); \n\t\t\n\t\tbt_Clientes.setStyle(\"-fx-effect: dropshadow(two-pass-box , darkgray, 10, 0.0 , 4, 5);\"+\n\t\t\"-fx-background-color: white;\"+\n\t\t\"-fx-text-fill: black;\"+\n\t\t\"-fx-background-radius: 0;\"+\n\t\t\"-fx-border-radius: 0;\"+\n\t\t\"-fx-border-color: white;\"+\n\t\t\"-fx-background-image: url(\\\"File:ClientesIco.png\\\");\"+ \n\t\t\"-fx-background-repeat: no-repeat;\"+\n\t\t\"-fx-background-position:20 14;\"+ \n\t\t\"-fx-background-size:30 27;\"); \n\t\t\n\t\tbt_Funcionarios.setStyle(\"-fx-effect: dropshadow(two-pass-box , darkgray, 10, 0.0 , 4, 5);\"+\n\t\t\"-fx-background-color: white;\"+\n\t\t\"-fx-text-fill: black;\"+\n\t\t\"-fx-background-radius: 0;\"+\n\t\t\"-fx-border-radius: 0;\"+\n\t\t\"-fx-border-color: white;\"+\n\t\t\"-fx-background-image: url(\\\"File:FuncionariosIco.png\\\");\"+ \n\t \"-fx-background-repeat: no-repeat;\"+\n\t \"-fx-background-position:20 14;\"+ \n\t \"-fx-background-size:30 27;\"); \n\t\t\n\t\tbt_Fornecedores.setStyle(\"-fx-effect: dropshadow(two-pass-box , darkgray, 10, 0.0 , 4, 5);\"+\n\t\t\"-fx-background-color: white;\"+\n\t\t\"-fx-text-fill: black;\"+\n\t\t\"-fx-background-radius: 0;\"+\n\t\t\"-fx-border-radius: 0;\"+\n\t\t\"-fx-border-color: white;\"+\n\t\t\"-fx-background-image: url(\\\"File:FornecedoresIco.png\\\");\"+ \n\t \"-fx-background-repeat: no-repeat;\"+\n\t \"-fx-background-position:20 14;\"+ \n\t \"-fx-background-size:30 27;\");\n\t\t\n\t\tbt_Produtos.setStyle(\"-fx-effect: dropshadow(two-pass-box , darkgray, 10, 0.0 , 4, 5);\"+\n\t\t\"-fx-background-color: white;\"+\n\t\t\"-fx-text-fill: black;\"+\n\t\t\"-fx-background-radius: 0;\"+\n\t\t\"-fx-border-radius: 0;\"+\n\t\t\"-fx-border-color: white;\"+\n\t\t\"-fx-background-image: url(\\\"File:ProdutoIco.png\\\");\"+ \n\t \"-fx-background-repeat: no-repeat;\"+\n\t \"-fx-background-position:20 14;\"+ \n\t \"-fx-background-size:30 27;\"); \n\t\t\n\t\tbt_Mesas.setStyle(\"-fx-effect: dropshadow(two-pass-box , darkgray, 10, 0.0 , 4, 5);\"+\n\t\t\"-fx-background-color: white;\"+\n\t\t\"-fx-text-fill: black;\"+\n\t\t\"-fx-background-radius: 0;\"+\n\t\t\"-fx-border-radius: 0;\"+\n\t\t\"-fx-border-color: white;\"+\n\t\t\"-fx-background-image: url(\\\"File:MesasIco.png\\\");\"+ \n\t \"-fx-background-repeat: no-repeat;\"+\n\t \"-fx-background-position:20 14;\"+ \n\t \"-fx-background-size:30 27;\");\n\t\t\n//\t\tbt_Pedidos.setStyle(\"-fx-effect: dropshadow(two-pass-box , darkgray, 10, 0.0 , 4, 5);\"+\n//\t\t\"-fx-background-color: white;\"+\n//\t\t\"-fx-text-fill: black;\"+\n//\t\t\"-fx-background-radius: 0;\"+\n//\t\t\"-fx-border-radius: 0;\"+\n//\t\t\"-fx-border-color: white;\"+\n//\t\t\"-fx-background-image: url(\\\"File:PedidosIco.png\\\");\"+ \n//\t \"-fx-background-repeat: no-repeat;\"+\n//\t\t\"-fx-background-position:20 14;\"+ \n//\t\t\"-fx-background-size:30 27;\");\n\t\n\t\tbt_Relatorios.setStyle(\"-fx-effect: dropshadow(two-pass-box , darkgray, 10, 0.0 , 4, 5);\"+\n\t\t\"-fx-background-color: white;\"+\n\t\t\"-fx-text-fill: black;\"+\n\t\t\"-fx-background-radius: 0;\"+\n\t\t\"-fx-border-radius: 0;\"+\n\t\t\"-fx-border-color: white;\"+\n\t\t\"-fx-background-image: url(\\\"File:RelatoriosIco.png\\\");\"+ \n\t \"-fx-background-repeat: no-repeat;\"+\n\t \"-fx-background-position:20 14;\"+ \n\t \"-fx-background-size:30 27;\");\n\n\t}", "title": "" } ]
f67eafd4bfb692f85798da4ea06a5093
Instantiates a new uid.
[ { "docid": "c91135b7e7abf7fc8f21e0512ce8fd53", "score": "0.5886587", "text": "public Uid(String type, String id) {\n\t\tthis.type = type;\n\t\tthis.id = id;\n\t}", "title": "" } ]
[ { "docid": "991ad09b7c2ac8a4333ccba08eb25712", "score": "0.6598316", "text": "public userID() {\n\n\t}", "title": "" }, { "docid": "be2575bd54ab75b6aa5c1a908841e70f", "score": "0.6362222", "text": "public String uid();", "title": "" }, { "docid": "30fa7bc5b95a13d8dd178e2b74400a8d", "score": "0.63301545", "text": "long getUID() throws UidGenerateException;", "title": "" }, { "docid": "30fa7bc5b95a13d8dd178e2b74400a8d", "score": "0.63301545", "text": "long getUID() throws UidGenerateException;", "title": "" }, { "docid": "88aaa5d0c816bd22a73a3ff09970f223", "score": "0.6303574", "text": "public User()\n\t{\n\t\tid = \"u\" + (lastId + 1);\n\t\tlastId++;\n\t}", "title": "" }, { "docid": "5cb7d7e3b6aef82f48621cb35b872fcc", "score": "0.62804365", "text": "long getUid();", "title": "" }, { "docid": "5cb7d7e3b6aef82f48621cb35b872fcc", "score": "0.62804365", "text": "long getUid();", "title": "" }, { "docid": "109077bc1e176b7fc46bd588deff418d", "score": "0.6198443", "text": "int getUid();", "title": "" }, { "docid": "109077bc1e176b7fc46bd588deff418d", "score": "0.6198443", "text": "int getUid();", "title": "" }, { "docid": "109077bc1e176b7fc46bd588deff418d", "score": "0.6198443", "text": "int getUid();", "title": "" }, { "docid": "109077bc1e176b7fc46bd588deff418d", "score": "0.6198443", "text": "int getUid();", "title": "" }, { "docid": "4819d353d3075001e01031cddb78c2a5", "score": "0.6194233", "text": "public native void setUid(long uid);", "title": "" }, { "docid": "1e8cbc5d40104b05897ede8dca1728f9", "score": "0.61774164", "text": "public void setUid(Integer uid) {\r\n this.uid = uid;\r\n }", "title": "" }, { "docid": "1035087c2260a659e116c529110423c8", "score": "0.61579907", "text": "public Person(String uid, String name, String email, String universityUid) {\n this.uid = uid;\n this.name = name;\n this.email = email;\n this.universityUid = universityUid;\n }", "title": "" }, { "docid": "b2b468cf6995ae2decc69bff919c995d", "score": "0.61388534", "text": "public Builder setUid(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n uid_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "676853fc852bb1f2b29a4de0df79299d", "score": "0.61347127", "text": "public native long uid();", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.60980654", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.60980654", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.60980654", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.60980654", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.60980654", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.60980654", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.60980654", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.60980654", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.60980654", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.60980654", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "0d966af0d1563c54c4bd391117bb6591", "score": "0.60980654", "text": "public void setUid(Integer uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "33586519dacc9d4bf60f1e83fc6c4676", "score": "0.60761267", "text": "public Builder setUID(\n java.lang.String value) {\n copyOnWrite();\n instance.setUID(value);\n return this;\n }", "title": "" }, { "docid": "d030a6e9bec5c6d95c8d1e47d2c1931c", "score": "0.6071733", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "353f350b607e1d4559b2b500be5ab6a6", "score": "0.6063486", "text": "public void setUid(String uid)\n/* */ {\n/* 86 */ this.uid = uid;\n/* */ }", "title": "" }, { "docid": "293dfe62ba4f44bd9b072e203dbedb75", "score": "0.6046245", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "293dfe62ba4f44bd9b072e203dbedb75", "score": "0.6046245", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "293dfe62ba4f44bd9b072e203dbedb75", "score": "0.60452557", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "293dfe62ba4f44bd9b072e203dbedb75", "score": "0.60452557", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "293dfe62ba4f44bd9b072e203dbedb75", "score": "0.60449725", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "293dfe62ba4f44bd9b072e203dbedb75", "score": "0.60449725", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "293dfe62ba4f44bd9b072e203dbedb75", "score": "0.60449725", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "293dfe62ba4f44bd9b072e203dbedb75", "score": "0.60445595", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "293dfe62ba4f44bd9b072e203dbedb75", "score": "0.60445595", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "293dfe62ba4f44bd9b072e203dbedb75", "score": "0.60445595", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "293dfe62ba4f44bd9b072e203dbedb75", "score": "0.60445595", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "293dfe62ba4f44bd9b072e203dbedb75", "score": "0.60445595", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "293dfe62ba4f44bd9b072e203dbedb75", "score": "0.60445595", "text": "public Builder setUid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f35045bbab7a47295a572c9bf7e3ca2a", "score": "0.60394275", "text": "String getUid();", "title": "" }, { "docid": "6b195a5e3e7fad189acedad4c99b7f0d", "score": "0.6004708", "text": "public Builder setUid(long value) {\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6b195a5e3e7fad189acedad4c99b7f0d", "score": "0.6004708", "text": "public Builder setUid(long value) {\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5370bb121b7c375b4dccae8e5943e6b9", "score": "0.600257", "text": "public void setUid(String uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "4a7c8c0355e3e5099fc4a1e530a671a5", "score": "0.59834576", "text": "public void setUid (String newVar) {\n uid = newVar;\n }", "title": "" }, { "docid": "42fef60478babc3dc236a6b7a2fdc7d4", "score": "0.5974636", "text": "protected String generateUID() {\n\t\tUID id = null;\n\t\tfor (int idx = 0; idx < 10; ++idx) {\n\t\t\tid = new UID();\n\t\t}\n\t\treturn id.toString();\n\t}", "title": "" }, { "docid": "a68c8860dec3034b97800b9bbbd81697", "score": "0.596142", "text": "java.lang.String getUID();", "title": "" }, { "docid": "a5966f7c18f68709dfc6246d459a5e2e", "score": "0.59595263", "text": "public void setUid(Long uid) {\r\n this.uid = uid;\r\n }", "title": "" }, { "docid": "47838533c5d12c2476f922ba9145e621", "score": "0.5949547", "text": "public void setUID(int uid) {\n\t\tthis.uid = uid;\n\t}", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943688", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943688", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943688", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943688", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943688", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943688", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943688", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943688", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943688", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943688", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943653", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943653", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943653", "text": "java.lang.String getUid();", "title": "" }, { "docid": "88e2344b3a9d852d89875c9b5dcbab72", "score": "0.5943653", "text": "java.lang.String getUid();", "title": "" }, { "docid": "316fc88b1740bd3840e946d6dcd40757", "score": "0.59397167", "text": "public User(long id) {\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "67b289a5bd25022b2e6961238595234e", "score": "0.5929821", "text": "public int getUID();", "title": "" }, { "docid": "72849aa675fd3aa8ee09d43e32f33042", "score": "0.59285957", "text": "public void setRealUid(String value);", "title": "" }, { "docid": "3e3e0f0c3e7c8fc6a6837101b32c7511", "score": "0.59077406", "text": "private void setUID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uID_ = value;\n }", "title": "" }, { "docid": "061a85df245391b4a1ac53cd419fc8e0", "score": "0.58684266", "text": "public String getUID(){\n\t\treturn uid;\n\t}", "title": "" }, { "docid": "9f369d9e46128ddb027c7ed833a4a7ae", "score": "0.5855449", "text": "public void setUid(Long uid) {\n this.uid = uid;\n }", "title": "" }, { "docid": "e7d30bea41acfeb1fe2fc2dca74c9295", "score": "0.58533984", "text": "public String getUid () {\n return uid;\n }", "title": "" }, { "docid": "f0b373299c07ef9e381902a1d2868bc6", "score": "0.58490944", "text": "protected Object(UUID guid)\n\t{\n\t\tid = guid;\n\t}", "title": "" }, { "docid": "5179a922a4a115bfc07faa9be2358633", "score": "0.5843677", "text": "public Builder setUid(int value) {\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5179a922a4a115bfc07faa9be2358633", "score": "0.5843677", "text": "public Builder setUid(int value) {\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5179a922a4a115bfc07faa9be2358633", "score": "0.5843677", "text": "public Builder setUid(int value) {\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5179a922a4a115bfc07faa9be2358633", "score": "0.5843677", "text": "public Builder setUid(int value) {\n \n uid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "efcee4bb0de62c7cffdf8977871c4a6e", "score": "0.5843459", "text": "public void setUid(Integer uid) {\n\t\tthis.uid = uid;\n\t}", "title": "" }, { "docid": "3f6f3d5619579b5aa9062edb18c18b8e", "score": "0.58403504", "text": "public String getUid() {\n return uid;\n }", "title": "" }, { "docid": "5455ea4a36536385a60c684c3d3fed33", "score": "0.5837213", "text": "public void setUid(int uid) {\n\t\tthis.uid = uid;\n\t}", "title": "" }, { "docid": "17a678b5c6cb1866e9162561f5acc496", "score": "0.58303034", "text": "public int getUid() {\n return uid_;\n }", "title": "" }, { "docid": "17a678b5c6cb1866e9162561f5acc496", "score": "0.58303034", "text": "public int getUid() {\n return uid_;\n }", "title": "" }, { "docid": "17a678b5c6cb1866e9162561f5acc496", "score": "0.58303034", "text": "public int getUid() {\n return uid_;\n }", "title": "" }, { "docid": "17a678b5c6cb1866e9162561f5acc496", "score": "0.58303034", "text": "public int getUid() {\n return uid_;\n }", "title": "" }, { "docid": "516587ea628c35c2e8ee9d5b3d8eed0f", "score": "0.5822627", "text": "public int getUID() {\n\t\treturn uid;\n\t}", "title": "" }, { "docid": "ea5dce3a1dcb10d0e49a0408af31bf58", "score": "0.5806276", "text": "public String getUid(){\n return uid;\n }", "title": "" }, { "docid": "ca16982f128e1cef7e0ad19a1146572a", "score": "0.57865113", "text": "public UID getUID() {\n return uid;\n }", "title": "" }, { "docid": "a8383db26c08d615aa64ea97503bc298", "score": "0.5783094", "text": "public MicrosoftTeamsUserIdentifierModel() {}", "title": "" }, { "docid": "84736276900d7cb75d7c8465a80af58e", "score": "0.57783216", "text": "public Long getUid() {\r\n return uid;\r\n }", "title": "" }, { "docid": "0a2d3d5e6c64865239b5fefd602e6596", "score": "0.57673305", "text": "public long getUid() {\n return uid_;\n }", "title": "" }, { "docid": "0a2d3d5e6c64865239b5fefd602e6596", "score": "0.57673305", "text": "public long getUid() {\n return uid_;\n }", "title": "" }, { "docid": "be07319351491029f841ea6abba51e76", "score": "0.57341874", "text": "public void setRealUid(long value);", "title": "" }, { "docid": "10f70e2347c307d70c58e4f7add69c30", "score": "0.57289594", "text": "private UserCreator(){}", "title": "" }, { "docid": "fbc1f23361ccb32cc5fdb83c1eb64439", "score": "0.5724915", "text": "public int getUid() {\n return uid_;\n }", "title": "" }, { "docid": "fbc1f23361ccb32cc5fdb83c1eb64439", "score": "0.5724915", "text": "public int getUid() {\n return uid_;\n }", "title": "" }, { "docid": "fbc1f23361ccb32cc5fdb83c1eb64439", "score": "0.5724915", "text": "public int getUid() {\n return uid_;\n }", "title": "" }, { "docid": "fbc1f23361ccb32cc5fdb83c1eb64439", "score": "0.5724915", "text": "public int getUid() {\n return uid_;\n }", "title": "" }, { "docid": "09aca085ffd6b6f3199e33b0e0cc5c72", "score": "0.57216483", "text": "public void setCreateUid(Integer createUid) {\n this.createUid = createUid;\n }", "title": "" }, { "docid": "794ec7cf9c02a8e8766caf9b137c9d67", "score": "0.57177705", "text": "public void setUid(String uid) {\n\t\tthis.uid = uid;\n\t}", "title": "" } ]
e08a91c1700942485faebf6c8626190c
Purpose: When button clicked, customer gets to view where he or she is able to book tickets for certain screenings
[ { "docid": "f41a98dfff74cc5a6b8f4d17d02c60f0", "score": "0.646302", "text": "public void BookTickets(ActionEvent event) {\n\t\ttry {\n\t\t\t((Node) event.getSource()).getScene().getWindow().hide();\n\t\t\tStage primaryStage = new Stage();\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tPane root = loader.load(getClass().getResource(\"/view/CustomerBookingProcessView.fxml\").openStream());\n\t\t\tScene scene = new Scene(root);\n\t\t\tscene.getStylesheets().add(getClass().getResource(\"/application/application.css\").toExternalForm());\n\t\t\tprimaryStage.setResizable(false);\n\t\t\tprimaryStage.setScene(scene);\n\t\t\tprimaryStage.show();\n\t\t} catch (Exception e) {\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "4c45d32d7d85aeec7dd66be2b908f715", "score": "0.6927369", "text": "private void detail_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_detail_buttonActionPerformed\n ViewTicketAuth.main(null);\n }", "title": "" }, { "docid": "85fe2dccb7ea6058730d4e621c615097", "score": "0.6617949", "text": "public void goToViewReservationView() {\n CardLayout layout = (CardLayout)this.customerCards.getLayout();\n layout.show(this.customerCards, CustomerPanel.VIEW_RESERVATIONS_PANEL);\n this.cancelButtonPanel.setVisible(false);\n }", "title": "" }, { "docid": "36e16f3221d2b6d981d703c7aa96b691", "score": "0.6422208", "text": "public void goToMakeNewReservationView() {\n CardLayout layout = (CardLayout)this.customerCards.getLayout();\n layout.show(this.customerCards, CustomerPanel.PICK_DATE_PANEL);\n this.cancelButtonPanel.setVisible(true);\n cardIndex = 0; // Reset card index back to 0\n }", "title": "" }, { "docid": "17e4cf0a4e1bb67b598c611cbb0a7f0c", "score": "0.637369", "text": "@Override\r\n\t\t\tpublic void doClick() {\n\t\t\t\tif (facilityId.equals(ConstVar.Facility.FACILITY_ID_PRE\r\n\t\t\t\t\t\t+ \"00104\")) {\r\n\t\t\t\t\tMainFrame.pushScreen(new HomeScreen(\r\n\t\t\t\t\t\t\tConstVar.Facility.FACILITY_ID_PRE + \"00104\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (facilityId.equals(ConstVar.Facility.FACILITY_ID_PRE\r\n\t\t\t\t\t\t+ \"00105\")) {\r\n\t\t\t\t\tMainFrame.pushScreen(new HammerScreen(\r\n\t\t\t\t\t\t\tConstVar.Facility.FACILITY_ID_PRE + \"00105\"));\r\n\t\t\t\t}\r\n\t\t\t\tif (facilityId.equals(ConstVar.Facility.FACILITY_ID_PRE\r\n\t\t\t\t\t\t+ \"00101\")) {\r\n\t\t\t\t\tMainFrame.pushScreen(new MarketScreen(\r\n\t\t\t\t\t\t\tConstVar.Facility.FACILITY_ID_PRE + \"00101\"));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (facilityId.equals(ConstVar.Facility.FACILITY_ID_PRE\r\n\t\t\t\t\t\t+ \"00102\")) {\r\n\t\t\t\t\tMainFrame.pushScreen(new SchoolScreen(\r\n\t\t\t\t\t\t\tConstVar.Facility.FACILITY_ID_PRE + \"00102\"));\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "6ddd6438fe0bdd90e6c41a2c62a032a4", "score": "0.6354638", "text": "public void userClickedOnTable(){\n selectedRoom = tableView.getSelectionModel().getSelectedItem();\n if(selectedRoom != null) this.bookButton.setDisable(false);\n }", "title": "" }, { "docid": "348bc9cc7bbd6002da66af60e7209498", "score": "0.63510334", "text": "public void showCourseOfferingsButtonClick() {\n courseOfferingsList.getItems().clear();\n Set<CourseOffering> courseOffs = courseDirectory.getCourseOfferingSet();\n List<String> courseOffsStrings = new ArrayList<>();\n for (CourseOffering co : courseOffs) {\n courseOffsStrings.add(co.getName()); //+ \": Semester 0\" + co.getMySemester().getSemesterNumber() + \" \" +co.getMySemester().getYear());\n }\n Collections.sort(courseOffsStrings);\n courseOfferingsList.getItems().addAll(courseOffsStrings);\n }", "title": "" }, { "docid": "c50d3bcf4c5d1e94be070f4a4734b0bb", "score": "0.6284701", "text": "@Override\n public void onClick(View v) {\n showGetRoomUI();\n }", "title": "" }, { "docid": "f457c8db5a0b477a07ea4911c42b1da5", "score": "0.6249138", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\r\n\t\t\t\tIntent mIntent = new Intent(MainActivity.this, MakeBooking.class);\r\n\t\t\t\tstartActivity(mIntent);\r\n\t\t\t}", "title": "" }, { "docid": "404c78b57ac009452403855aeffa909c", "score": "0.6220982", "text": "public void handleBookingSelection(MouseEvent event) {\n\n if(event.getButton().equals(MouseButton.PRIMARY)) {\n\n // Check if we have available rooms\n if(roomsAvailable != null) {\n if(roomsAvailable.size() > 0 && tblRooms.getSelectionModel().getSelectedItem() != null) {\n btnBookSelected.setVisible(true);\n } else {\n btnBookSelected.setVisible(false);\n }\n }\n\n }\n\n }", "title": "" }, { "docid": "3be65c09864e987470b9c3b35cf2f59e", "score": "0.6152259", "text": "void tapOnChangeYourRoomTypeButtonInSoldOutAlert();", "title": "" }, { "docid": "799fce6ffa7a32255e2507331969aa49", "score": "0.6150795", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMD5TimePass md5 = new MD5TimePass();\n\t\t\t\tString[] unixMD5 = md5.getMD5();\n\n\t\t\t\ttry {\n\t\t\t\t\tbooking_parser = new BookingTimeslotJSONParser();\n\t\t\t\t\tbooking_message = booking_parser.getJSONData(getActivity(), Path.BOOKING_TIMESLOT_URL + \n\t\t\t\t\t\t\tPathParameter.uctime + unixMD5[0] + \n\t\t\t\t\t\t\tPathParameter.hcode + unixMD5[1] + \n\t\t\t\t\t\t\tPathParameter.timeslot_id + doctors.get((Integer)v.getTag()).timeslot.get(0).timeslot_list.get((Integer)v.getId()).timeslot_id);\n\n\t\t\t\t\tif (booking_message.equals(\"Timeslot Booked\")) {\n\t\t\t\t\t\tSharedPreferences.Editor editor = sp.edit();\n\t\t\t\t\t\teditor.putString(SharedInformation.timeslot_id, doctors.get((Integer)v.getTag()).timeslot.get(0).timeslot_list.get((Integer)v.getId()).timeslot_id);\n\t\t\t\t\t\teditor.commit();\n\n\t\t\t\t\t\tString doctor_specialty = \"\";\n\t\t\t\t\t\tfor (int i = 0; i < doctors.get((Integer)v.getTag()).main_specialty.size(); i++) {\n\t\t\t\t\t\t\tdoctor_specialty = doctor_specialty + \", \" + doctors.get((Integer)v.getTag()).main_specialty.get(i).specialty_name;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tFragmentManager fm = getFragmentManager();\n\n\t\t\t\t\t\tif (fm != null) {\n\t\t\t\t\t\t\tFragmentTransaction ft = fm.beginTransaction();\n\t\t\t\t\t\t\tFragment fragment = new BookingLoginFragment();\n\t\t\t\t\t\t\tBundle bundle = new Bundle();\n\n\t\t\t\t\t\t\tbundle.putString(BundleInformation.specialty_id, specialty_id);\n\t\t\t\t\t\t\tbundle.putInt(BundleInformation.reason_for_visit_id, 0);\n\t\t\t\t\t\t\tbundle.putIntArray(BundleInformation.date, date_arr);\n\t\t\t\t\t\t\tbundle.putString(BundleInformation.time, doctors.get((Integer)v.getTag()).timeslot.get(0).timeslot_list.get((Integer)v.getId()).start_date.substring(11, 16));\n\t\t\t\t\t\t\tbundle.putParcelableArrayList(BundleInformation.specialty, doctors.get((Integer)v.getTag()).specialty);\n\t\t\t\t\t\t\tbundle.putString(BundleInformation.doctor_id, doctors.get((Integer)v.getTag()).doctor_user_id);\n\t\t\t\t\t\t\tbundle.putString(BundleInformation.doctor_name, doctors.get((Integer)v.getTag()).doctor_first_name + \" \" + doctors.get((Integer)v.getTag()).doctor_last_name);\n\t\t\t\t\t\t\tbundle.putString(BundleInformation.doctor_profile_image, doctors.get((Integer)v.getTag()).doctor_profile_image);\n\t\t\t\t\t\t\tbundle.putString(BundleInformation.doctor_specialty, doctor_specialty.substring(2, doctor_specialty.length()));\n\t\t\t\t\t\t\tbundle.putString(BundleInformation.place_id, doctors.get((Integer)v.getTag()).place_id);\n\t\t\t\t\t\t\tbundle.putString(BundleInformation.place_address_line1, doctors.get((Integer)v.getTag()).place_name);\n\t\t\t\t\t\t\tbundle.putString(BundleInformation.place_name, doctors.get((Integer)v.getTag()).place_address_line1 + \"\\n\" + doctors.get((Integer)v.getTag()).place_country + \" \" + doctors.get((Integer)v.getTag()).place_postal_code);\n\t\t\t\t\t\t\tbundle.putString(BundleInformation.timeslot_id, doctors.get((Integer)v.getTag()).timeslot.get(0).timeslot_list.get((Integer)v.getId()).timeslot_id);\n\n\t\t\t\t\t\t\tfragment.setArguments(bundle);\n\t\t\t\t\t\t\tft.replace(R.id.fragment_content, fragment);\n\t\t\t\t\t\t\tft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n\t\t\t\t\t\t\tft.addToBackStack(null);\n\t\t\t\t\t\t\tft.commit();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(getActivity(), \"Timeslot is already booked or reserved\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (URISyntaxException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "5772ffc43d2475fa848c1348ffb14377", "score": "0.6142213", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(BusesListActivity.this, ViewAgentsTicketsActivity.class);\n BusesListActivity.this.startActivity(intent);\n }", "title": "" }, { "docid": "bb3049126110f8d4b0c262af881bfe6b", "score": "0.61335117", "text": "@FXML\n\t void findButtonPressed(ActionEvent event) {\n\t List<Ticket> ticketDestination = ticketQueries.getTicketsByDestination(\n\t \t\t findByDestinationTextField.getText() + \"%\");\n\n\t if (ticketDestination.size() > 0) { // display all entries\n\t \t InfoList.setAll(ticketDestination);\n\t selectFirstEntry();\n\t }\n\t else {\n\t displayAlert(AlertType.INFORMATION, \"Ticket Not Found\", \n\t \"There are no entries with the specified destination\");\n\t }\n\t }", "title": "" }, { "docid": "13655e3fadd4fa4ce0a6cf6fe722053a", "score": "0.6127268", "text": "public void showTicketSelected ()\n {\n System.out.println(selectedTicket.destination+\" selected\");\n }", "title": "" }, { "docid": "a6101bda201dcbd2a3047de3d389cdd2", "score": "0.6116761", "text": "public void onClickShowDay(View view) {\n //gets selected room from user\n String roomName = roomNameText.getSelectedItem().toString();\n navigateToShowDayActivity(roomName);\n }", "title": "" }, { "docid": "436fd48fe6455560c56b2ef82653e196", "score": "0.61165863", "text": "public void onBookStation(View view) {\n if (currentReservation.getId_booking() == null) {\n OpenReservationParamsAsync paramsAsync = new OpenReservationParamsAsync(mAuth.getUid(), station_selected.getId_parking(), 0);\n new OpenReservation().execute(paramsAsync);\n panel.setPanelState(PanelState.HIDDEN);\n\n\n } else Toast.makeText(this, R.string.alreadybooked, Toast.LENGTH_LONG).show();\n\n\n }", "title": "" }, { "docid": "37016726c29a600f890d6e04d8e91d6a", "score": "0.6114177", "text": "@FXML\n private void Click(ActionEvent e)\n { \n //first get the ID of the pressed button to determine the borough\n Button button = (Button) e.getSource();\n String id = button.getId();\n //check if the list should display within a price range\n if (filtered == false) {\n //add the listings in that borough to an observable list so it can be displayed\n ObservableList<AirbnbListing> listings = airbnbDataLoader.loadSpecific(id);\n try {\n launchTableViewer(listings);\n }\n catch (Exception exception) {\n System.out.println(\"error opening window\");\n }\n }\n else {\n //filter the list to only display within the bounds of the\n //selected price\n String firstPrice = priceFrom.getText();\n String secondPrice = priceTo.getText();\n int price1 = 0;\n int price2 = 100000;\n if (!firstPrice.equals(\"\")) {\n price1 = Integer.parseInt(firstPrice);\n }\n if (!secondPrice.equals(\"\")) {\n price2 = Integer.parseInt(secondPrice);\n }\n ObservableList<AirbnbListing> listings = airbnbDataLoader.loadSpecific(id, price1, price2);\n try {\n launchTableViewer(listings);\n }\n catch (Exception exception) {\n System.out.println(\"error opening window\");\n }\n }\n }", "title": "" }, { "docid": "b9ed70f5fed2b73ee008ba3220314a39", "score": "0.6113725", "text": "@Override\r\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tshowXingYunXuanHaoListView(ID_CLLN_SHOWBALLMONRY,\r\n\t\t\t\t\t\t\t\ttype02);\r\n\t\t\t\t\t}", "title": "" }, { "docid": "10550c67371c1a92a023458c8953734d", "score": "0.6113192", "text": "@Override\n public void onClick(View v) {\n Intent openReserve_intent2 = new Intent(QueueToolbar.this, Date_Query.class);\n startActivity(openReserve_intent2);\n }", "title": "" }, { "docid": "866e183f002cc25dac998f1170d34303", "score": "0.6089253", "text": "public void onClickBtnViewToppings(View view) {\n Intent intent = new Intent(Activity_ControlPanelAdminMenu.this, Activity_ViewToppings.class);\n intent.putExtra(\"controlPanel\", controlPanel);\n startActivity(intent);\n }", "title": "" }, { "docid": "b56d030cb919d1ec65f762e1cec61ca5", "score": "0.60815805", "text": "public void clickBookNowButton(){\n\t\t\tdriver.findElement(bookNowButton).click();\n\t\t}", "title": "" }, { "docid": "68c9b842924997fdabc01514e9818aea", "score": "0.608142", "text": "@Override\n public void onBoomButtonClick(int index) {\n Intent intent = new Intent(getContext(), AddEditCourseOffering.class);\n intent.putExtra(\"currProcess\", 0 );\n startActivity(intent);\n }", "title": "" }, { "docid": "5a003874aa0c7537fdf9b07e35a4ad13", "score": "0.6063666", "text": "public void workoutScreen(View view) {\n Intent intent = new Intent(this, WorkoutActivity.class);\n String buttonPressed = ((Button)view).getText().toString();\n intent.putExtra(\"button pressed\", buttonPressed);\n startActivity(intent);\n }", "title": "" }, { "docid": "8ad0688b0111483a0ae8d214e5365158", "score": "0.60620785", "text": "@Override\n public void onClick(View view) {\n Intent intent = new Intent(ScanEquipment.this, BoilerRoom.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "63509f7306e2ed1ba3fac4a50c79881f", "score": "0.60366577", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tIntent gotobook = new Intent (Depreciation.this, BookValue.class);\n\t\t\t\tstartActivity(gotobook);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "346e233befa19e7496fc31331666fb27", "score": "0.6035707", "text": "void tapOnDepartureDateBookingButton() throws Exception;", "title": "" }, { "docid": "2a0fcf5086b03bd202c2b47c1332798c", "score": "0.6018164", "text": "public void openInventoryScreen () {\n }", "title": "" }, { "docid": "f51ec8b093916604dcc7d15c3face42a", "score": "0.6004281", "text": "void tapOnReturnDateBookingButton() throws Exception;", "title": "" }, { "docid": "b8156fa74a99630004758d892a1c9655", "score": "0.60037875", "text": "public void onClickShowDaySchedule(View view) {\n String roomName = roomNameText.getSelectedItem().toString();\n navigateToShowDayActivitySchedule(roomName);\n }", "title": "" }, { "docid": "b382dede21fd3971b4f8204a8d45fac7", "score": "0.5997972", "text": "@Override\n public void onBoomButtonClick(int index) {\n }", "title": "" }, { "docid": "b382dede21fd3971b4f8204a8d45fac7", "score": "0.5997972", "text": "@Override\n public void onBoomButtonClick(int index) {\n }", "title": "" }, { "docid": "6bcd48b5f7dde50a0787dc8295eaee16", "score": "0.598409", "text": "public void clickOnAuthorisationLineView(){\n\t\tlog.info(\"Clicking on authorisation button\");\n\t\tList<WebElement> wbs = getDriver().findElements(By.className(pObject.TOP_HEADER_TAB_BTN));\n\t\tfor(WebElement wb : wbs){\n\t\t\tif(wb.getText().equals(\"Authorisation\")){\n\t\t\t\twb.click();\n\t\t\t\tList<WebElement> wbs1 = getDriver().findElements(By.className(pObject.TOP_HEADER_TAB_BTN));\n\t\t\t\tfor(WebElement wb2 : wbs1){\n\t\t\t\t\tif(wb2.getText().equals(\"Line View\")){\n\t\t\t\t\t\twb2.click();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "69d7bc7c7483a5447a383260befb53b3", "score": "0.59825444", "text": "@Override\n public void onClick(View arg0) {\n Intent intent = new Intent(Reservation.this, MainActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "b530e5ef0246994c64e5c7b7c4a3beb8", "score": "0.59720665", "text": "public void btnclick(View view) {\n Intent screen2 = new Intent(MainActivity.this, InformationActivity.class);\n screen2.putExtra(\"name\", dev_name);\n screen2.putExtra(\"picture\", dev_picture);\n screen2.putExtra(\"location\", dev_location);\n screen2.putExtra(\"badge\", dev_badges);\n screen2.putExtra(\"dev_id\", button_clicked_id);\n startActivity(screen2);\n }", "title": "" }, { "docid": "867c255a3d541e635398b7aba4211571", "score": "0.5970681", "text": "public void bag() {\n Reusable_Actions_PageObject.clickOnElement(driver, viewbag, logger, \"viewingbag\");\n }", "title": "" }, { "docid": "03b96adac069802fcb08d621d21bf042", "score": "0.59587544", "text": "public void showCooking();", "title": "" }, { "docid": "6265ac76c95674baf656fc779e629283", "score": "0.5958108", "text": "public void onClick(){\n\t\t\t\t\tPageParameters pageParameters = new PageParameters();\n\t\t\t\t\tpageParameters.add(\"username\", username);\n\t\t\t\t\tpageParameters.add(\"category\", category);\n\t\t\t\t\tpageParameters.add(\"bookname\", b.getName());\n\t\t\t\t\tpageParameters.add(\"author\", b.getAuthor());\n\t\t\t\t\tpageParameters.add(\"bookid\", b.getBookid());\n\t\t\t\t\tsetResponsePage(CommentsPage.class,pageParameters);\n\t\t\t\t}", "title": "" }, { "docid": "6ff8c0bb13e858664ac2014cdf20ad24", "score": "0.59567654", "text": "@Override\n public void onClick(View v) {\n Intent openReserve_intent1 = new Intent(QueueToolbar.this, Now_Query.class);\n openReserve_intent1.putExtra(\"fbranchname\", finalbranchname );\n openReserve_intent1.putExtra(\"fqueuename\", finalqueuename );\n openReserve_intent1.putExtra(\"fqueuenumber\", finalnumber );\n\n startActivity(openReserve_intent1);\n }", "title": "" }, { "docid": "b58d13c7b69d5330cddd7e14cccfefc4", "score": "0.5955261", "text": "public void getTicket() {\n goBackAfterPrinting();\n }", "title": "" }, { "docid": "4fd5c20e8f50e8faff9de47675e67be3", "score": "0.5939003", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tModelCorrectionTicket mt = (ModelCorrectionTicket) v.getTag();\n\t\t\t\tIntent intent = new Intent(conActivity, RailTicket.class);\n\t\t\t\tintent.putExtra(\"idRunLog\", idRunLog);\n\t\t\t\tintent.putExtra(\"idTicket\", Integer.valueOf(mt.getId()));\n\t\t\t\tintent.putExtra(\"ticketType\", mt.getType());\n\t\t\t\tintent.putExtra(\"position\",list.indexOf(mt));\n\t\t\t\tintent.putExtra(\"callFromReview\", true);\n\t\t\t\tintent.putExtra(\"picture\",mt.getUrlPicture());\n\t\t\t\t//((Activity)conActivity).startActivityForResult(intent,requestCodeReviewRail);\n\t\t\t\tnew ClickButton(conActivity, intent, requestCodeReviewRail).execute();\n\t\t\t}", "title": "" }, { "docid": "6a394eb762d176615c850f9f237ff78f", "score": "0.5921783", "text": "public void doCheckin() {\n mReservationDetailsScrollView.setVisibility(View.GONE);\n mSelectedRoomsLayout.setVisibility(View.VISIBLE);\n mBtnCheckin.setText(\"Checkin\");\n mBtnCheckin.setOnClickListener(onCheckinClicked);\n mBtnCheckin.setEnabled(false);\n updateSelectedRoomsUI();\n }", "title": "" }, { "docid": "6fb15ee3c8554dbf39b5054ca1dcdc58", "score": "0.5917455", "text": "private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed\n ViewSeatAvailability.main(null);\n }", "title": "" }, { "docid": "31a7bee21f27885e3e143a5435231563", "score": "0.5902192", "text": "void tapOnSeeAvailablePropertiesButtonInSoldOutAlert();", "title": "" }, { "docid": "441b38890f043118cc2822d22ff16bb2", "score": "0.58988965", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tModelCorrectionTicket mt = (ModelCorrectionTicket) v.getTag();\n\t\t\t\tIntent intent = null;\n\t\t\t\tif (mt.getType()==1) {\n\t\t\t\t\tintent= new Intent(conActivity, PlainsTicket.class);\n\t\t\t\t}\n\t\t\t\tif (mt.getType()==2) {\n\t\t\t\t\tintent= new Intent(conActivity, HighSierraTicket.class);\n\t\t\t\t}\n\t\t\t\tif (mt.getType()==3) {\n\t\t\t\t\tintent= new Intent(conActivity, TesoroTicket.class);\n\t\t\t\t}\n\t\t\t\tif (mt.getType()==4) {\n\t\t\t\t\tintent= new Intent(conActivity, com.pdg.ticket.WylieTicket.class);\n\t\t\t\t}\n\t\t\t\tif (mt.getType()==6) {\n\t\t\t\t\tintent= new Intent(conActivity, StandarTicket.class);\n\t\t\t\t}\n\t\t\t\tintent.putExtra(\"idRunLog\", idRunLog);\n\t\t\t\tintent.putExtra(\"idTicket\", Integer.valueOf(mt.getId()));\n\t\t\t\tintent.putExtra(\"ticketType\", mt.getType());\n\t\t\t\tintent.putExtra(\"position\",list.indexOf(mt));\n\t\t\t\tintent.putExtra(\"callFromReview\", true);\n\t\t\t\tnew ClickButton(conActivity, intent, requestCodeReviewTicket).execute();\n\t\t\t}", "title": "" }, { "docid": "1d5fa93a1f34d65733db26d7af124906", "score": "0.58939165", "text": "@Override\n public void onClick(View view) {\n if(count>0) {\n addBus();\n count--;\n ticketcount.setText(\"No of tickets remaining: \" + count);\n }\n else{\n ticketcount.setText(\"Book any other bus\");\n }\n }", "title": "" }, { "docid": "e3dba354671f813f2b507a326faf4406", "score": "0.5885879", "text": "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.btnCloseTicket:\n if(model.getTicketstatus()==TicketStatus.CLOSED.getId())\n {\n Toast.makeText(mContext,getResources().getString(R.string.AlreadyClosed),Toast.LENGTH_LONG).show();\n }\n else{\n confirmationAlertDialog(getResources().getString(R.string.Alert),getResources().getString(R.string.ConfirmCloseTicket));\n }\n\n break;\n case R.id.btnEmailUser:\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"text/html\");\n intent.putExtra(Intent.EXTRA_EMAIL, AppSPrefs.getString(Commons.EMAIL));\n intent.putExtra(Intent.EXTRA_SUBJECT, \"Subject\");\n intent.putExtra(Intent.EXTRA_TEXT, \"Email body.\");\n startActivity(intent);\n // startActivity(Intent.createChooser(intent, \"Send Email\"));\n default:\n break;\n }\n }", "title": "" }, { "docid": "89ac8a74df456e7d1c767081df176310", "score": "0.58790976", "text": "public void buttonOnClick(View v) {\n Button b = (Button) v;\n //startActivity(new Intent(getApplicationContext(), BeerInfo2.class));\n Intent intent = new Intent(getApplicationContext(), BeerInfo2.class);\n intent.putExtra(\"idbeer2\", b.getId());\n startActivity(intent);\n }", "title": "" }, { "docid": "1eae13bed3d0ab921e58dc52e2267a59", "score": "0.5877257", "text": "private void addALToViewButton(JButton viewInventoryButton, JButton addItemButton, JButton removeItemButton,\n JButton editItemButton, JComboBox inventoryComboBox, JComboBox itemsComboBox,\n JTextField itemName, JTextField itemCode, JTextField number, JTextField priceOfOne,\n JButton viewButton, JButton addButton, JButton removeButton, JButton saveButton) {\n viewButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n String inventoryName = (String) inventoryComboBox.getSelectedItem();\n Inventory inventory = superMarket.getNeededInventory(inventoryName);\n viewInventory(inventory);\n setToDefaultInventoryPage(viewInventoryButton, addItemButton, removeItemButton, editItemButton,\n inventoryComboBox, itemsComboBox, itemName, itemCode, number, priceOfOne, viewButton, addButton,\n removeButton, saveButton);\n }\n });\n }", "title": "" }, { "docid": "d83680c401ac11904c54e058a415a19a", "score": "0.5876999", "text": "public void displayCheckInScreen() {\n // to be implemented\n checkInEarlyButton.setVisibility(View.GONE);\n checkInButton.setVisibility(View.VISIBLE);\n meetingRoomAvailabilityInUse.setVisibility(View.GONE);\n meetingRoomTextTitle.setVisibility(View.GONE);\n endMeetingButton.setVisibility(View.GONE);\n bookFreeTime.setVisibility(View.VISIBLE);\n extendTime.setVisibility(View.GONE);\n\n }", "title": "" }, { "docid": "3ce97f04a9499f74c59a28b4f53e2e88", "score": "0.58692575", "text": "@Override\n public void onClick(View v) {\n Intent next=new Intent(context, CatererDisplay.class);\n next.putExtra(CUSTOM_ADAPTER_PACKAGE_DETAILS,rows.getPackDetails());\n context.startActivity(next);\n }", "title": "" }, { "docid": "aa4bba4c33419be30c1c3dccdca99ec8", "score": "0.58613145", "text": "public void list_clicked(View view) {\n Intent intent = new Intent(PhysicalInventory_Lists.this, PhysicalInventory_List_Details.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "f117e133e2b53c3e84acc89696f190ea", "score": "0.585497", "text": "private void seeInventations() {\n Intent intent = Games.Invitations.getInvitationInboxIntent(RoomPlayModel.mGoogleApiClient);\n this.startActivityForResult(intent, RC_INVITATION_INBOX);\n }", "title": "" }, { "docid": "4c8e2ef08bf90fcabb77360b7cf6c260", "score": "0.5842647", "text": "public void onPressAssignGradesToStudentButton(View View){\n // get the course listing that is currently being viewed on the screen\n View vh = findViewById(R.id.courseInfoContainer);\n CourseListing listing = (CourseListing) vh.getTag();\n\n // Create an intent to switch activities, passing along the DB key for this course\n Intent intent = new Intent(this, AssignGradesActivity.class);\n intent.putExtra(\"CourseKey\", listing.courseUniqueID);\n startActivity(intent);\n }", "title": "" }, { "docid": "f2e7d756324687a977e5deb0ec61ca83", "score": "0.58326143", "text": "@Override\n public void onBookClick(View view, Object value) {\n mView.startBookInfoActivity(new Book());\n }", "title": "" }, { "docid": "44e380fd9f84f70074e70f88246e7fbe", "score": "0.583149", "text": "@Override\n public void onClick(View v) {\n if (currentItem.getAttending().equals(\"false\") || currentItem.getAttending().equals(null)) {\n desc.setVisibility(View.VISIBLE);\n googleCal.setVisibility(View.VISIBLE);\n } else {\n desc.setVisibility(View.VISIBLE);\n remGoogleCal.setVisibility(View.VISIBLE);\n\n }\n showMore.setVisibility(View.GONE);\n //Log.d(TAG, currentItem.getName().toString() + \" \" +currentItem.getSession().toString());\n //Log.d(TAG, view.currentItem.getName().toString());\n }", "title": "" }, { "docid": "59ef77f209619532c3ff50992d95bcc8", "score": "0.5824396", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(View v) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tIntent intent = new Intent (context, kpi_details.class);\n\t\t\t\t\t\t\tcontext.startActivity(intent);\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "title": "" }, { "docid": "29b1e78f9d48164ae575524bb1c949f2", "score": "0.5821306", "text": "@Override\n public void onClick(View view) {\n Intent intent = new Intent(TermDetailView.this, CourseListView.class);\n intent.putExtra(\"TermID\", selectedTerm.getTermId());\n startActivity(intent);\n }", "title": "" }, { "docid": "b7fcd31aa1a58a29d3300c2973f79520", "score": "0.5818721", "text": "@Override\n public void onClick(View view) {\n Intent intent = new Intent(ScanEquipment.this, VendorRepair.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "0f41a7556a3ca5761d2a04b87b62f34e", "score": "0.5804388", "text": "@Override\r\n\tpublic void onClick(View arg0) {\n\t\tswitch (arg0.getId()) {\r\n\t\tcase R.id.guestcount:\r\n\t\t\t((SalerHomeActivity) getActivity()).toCustomer();\r\n\t\t\tbreak;\r\n\t\tcase R.id.newcomeintv:\r\n\t\t\tIntent intent = new Intent(getActivity(),QiangKehuActivity.class);\r\n\t\t\tstartActivity(intent);\t\t\r\n\t\t\tbreak;\r\n\t\tcase R.id.item_bcnum:\r\n\t\t\tintent = new Intent(getActivity(),GouCheXunjiaActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n\t\tcase R.id.item_dynum:\r\n\t\t\tintent = new Intent(getActivity(),ShiJiaYuyueActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n\t\tcase R.id.sale_item_com:\r\n\t\t\tintent = new Intent(getActivity(),XiaoShouDianpingActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n\t\tcase R.id.sale_item_pz:\r\n\t\t\tintent = new Intent(getActivity(),ZhongJiangMingDanActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6d662f2e488ed97010c4b1c91cfba39c", "score": "0.578667", "text": "public void viewMeetupReservation(long scheduledMeetupId) {\n startActivity(ReactNativeIntents.intentForItineraryPlaceCard(getActivity(), scheduledMeetupId, \"\", \"\"));\n }", "title": "" }, { "docid": "49f6ac3c82284b54ee53bc9314d7d350", "score": "0.5785143", "text": "@Override\n public void onClick(View view) {\n Intent goToAppointmentsIntent = new Intent(clientPage.this, appointmentPage.class);\n goToAppointmentsIntent.putExtra(appointmentPage.WHAT_TO_SHOW_APPOINT, \"all\");\n goToAppointmentsIntent.putExtra(appointmentPage.APPOINT_FILTER, \"nofilter\");\n startActivity(goToAppointmentsIntent);\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n }", "title": "" }, { "docid": "4de40a9acfe5090bdc5d78950641149d", "score": "0.5774774", "text": "public void OnButtonPressed() {\n if (CategoryBox.getSelectionModel().isEmpty()\n || SourceArticleBox.getSelectionModel().isEmpty()) {\n Router.showAlert(\"A selection is empty, please fill it\", \"Information\");\n return;\n }\n\n website = CreateObjectSource(SourceArticleBox.getSelectionModel().getSelectedItem());\n\n if (!website.isCategoryExist(CategoryBox.getSelectionModel().getSelectedItem())) {\n Router.showAlert(\"This category does not exist on this website. Please choose another.\", \"Information\");\n return;\n }\n\n addAllArticleAvailable();\n changeToArticleService();\n Router.Instance().changeView(Views.ChooseArticle); //Open The view ChooseArticleView\n }", "title": "" }, { "docid": "7c1cc1701ba4b9f86864979808546bfa", "score": "0.5772579", "text": "public void clickConfirmThisBookingButton(){\n\t\t\tdriver.findElement(confirmThisBookingButton).click();\n\t\t}", "title": "" }, { "docid": "242481f37dc53dcf53a823b6b41ab538", "score": "0.5769534", "text": "@Override\n public void tapOnAddRoomButton(){\n Logger.logAction(\"Tapping on add room button\");\n try {\n findElementByAccessibilityIdAndClick(ADD_ROOM_BUTTON);\n Logger.logStep(\"Tapped on add room button\");\n }catch (Exception exception){\n Logger.logError(\"Encountered error :- Unable to tap on add room button\");\n }\n }", "title": "" }, { "docid": "8dd5c7f05077c6c83de1eca7fa16c744", "score": "0.5768932", "text": "@Override\n\tpublic void onDetailsClicked() {\n\t\t\n\t}", "title": "" }, { "docid": "242a2cc671a6a2dad88fd948637a485d", "score": "0.5766211", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tIntent gotopro = new Intent (Depreciation.this, UnitProduction.class);\n\t\t\t\tstartActivity(gotopro);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "4b27c8543e6d1765ce827ebee5606d9c", "score": "0.5764763", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(ViewReportSelection.this, TrendSetupActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "4eacad10ada00d908e866415b4b0e1b4", "score": "0.576229", "text": "public void itemBtnClicked(View view) {\n\n switch (view.getId()) {\n \tcase R.id.save:\n \t\tsaveEdits(); \n \tbreak;\n case R.id.glassdoor:\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.glassdoor.com/Reviews/\" +company[1]+ \"-reviews-SRCH_KE0,7.htm\"));\n startActivity(browserIntent);\n break;\n case R.id.linkedin:\n Intent browserIntent2 = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.linkedin.com/company/\"+company[1]));\n startActivity(browserIntent2);\n break;\n case R.id.delete:\n if (company[0] != null && !company[0].isEmpty()) {\n \tDialogCallback dialog = new DialogCallback(this)\n \t{\n \t public void run()\n \t {\n \t\t deleteItem();\n \t }\n \t};\n }\n break;\n\n }\n }", "title": "" }, { "docid": "db0410eeccb2c8c1728bf1d580a4402d", "score": "0.5760584", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdate = et4.getText().toString();\n\n\t\t\t\tname = et3.getText().toString();\n\t\t\t\tcustom = et2.getText().toString();\n\t\t\t\tSharedPreferences.Editor editor = app_preferences.edit();\n\t\t\t\teditor.putString(\"uname\", et3.getText().toString());\n\t\t\t\teditor.commit();\n\n\t\t\t\tmessage = \"Respected sir/Madam,\\n\"\n\t\t\t\t\t\t+\"absentees on \"+ date + \" period \"+ per +\"\\n\"\n\t\t\t\t\t\t+\"for the class \"+section+\" are\\n\"\n\t\t\t\t\t\t+ rollno\n\t\t\t\t\t\t+ \"\\n\"+custom+\"\\n\"\n\t\t\t\t\t\t+\"Regards,\\n\"\n\t\t\t\t\t\t+ name ;\n\t\t\t\tIntent j = new Intent(Sendscreen.this,Thirdscreen.class);\n\t\t\t\tBundle basket=new Bundle();\n\t\t\t\tbasket.putString(\"key1\", message);\n\t\t\t\tj.putExtras(basket);\n\n\t\t\t\tstartActivity(j);\n\n\n\t\t\t}", "title": "" }, { "docid": "05bd4b53e18113ee702ad9c965758f77", "score": "0.5753751", "text": "private void button3MouseClicked(MouseEvent e) {\n setVisible(false);\n //conn.close();\n ProductPage p = new ProductPage(mail1);\n p.setVisible(true);\n }", "title": "" }, { "docid": "73b49fb7db37c6fa6379256ca48988d1", "score": "0.5749058", "text": "public void handleBooking(MouseEvent event) {\n\n event.consume();\n reserveRoom();\n\n }", "title": "" }, { "docid": "497b0b73c3ad9acae85a324f4624ddaa", "score": "0.57449853", "text": "private void DoSeatCustomer(Customer customer, int tablenumber){\n\t\twaitergui.DoBringToTable(customer, tablenumber);\n\t}", "title": "" }, { "docid": "cf821a32e0951d8b249b79c2dc923a9a", "score": "0.5740124", "text": "@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\r\n //Change screens according to different buttons.\r\n if(e.getSource() == createCommit)\r\n h.changeScreen(\"Test\");\r\n else if(e.getSource() == approveCommit)\r\n h.changeScreen(this);\r\n else if(e.getSource() == createUser)\r\n h.changeScreen(\"NewUser\");\r\n }", "title": "" }, { "docid": "c03772f63dd00c927fd8b9ddb3b4cec5", "score": "0.5739097", "text": "@Override\r\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\r\n booking = bookingList.get(i);\r\n Intent intent = new Intent (getApplicationContext(),ViewFlightInfo.class);\r\n intent.putExtra(\"flightID\", booking.getFlightId());\r\n startActivity(intent);\r\n }", "title": "" }, { "docid": "b92997cad80f5ea06d46f5def568f340", "score": "0.57294595", "text": "private void viewRequirementsTabBtn1ActionPerformed(java.awt.event.ActionEvent evt) {\n int selectedRow = medicalcampTbl.getSelectedRow();\n\n if (selectedRow < 0) {\n return;\n }\n\n WorkRequest request = (WorkRequest) medicalcampTbl.getValueAt(selectedRow, 0);\n\n request.setStatus(\"Processing\");\n\n ViewMedicalCampsRequestsJPanel viewMedicalCampsRequestsJPanel = new ViewMedicalCampsRequestsJPanel(userProcessContainer, (MedicalCampWorkRequest) request, userAccount, enterprise);\n userProcessContainer.add(\"viewMedicalCampsRequestsJPanel\", viewMedicalCampsRequestsJPanel);\n CardLayout layout = (CardLayout) userProcessContainer.getLayout();\n layout.next(userProcessContainer);\n\n\n }", "title": "" }, { "docid": "edef6ae7f81ff5e5782907e4d860cca0", "score": "0.57170933", "text": "@FXML\r\n private void bookHandler(ActionEvent event) {\r\n if (results.getSelectionModel().getSelectedItem() == null) {\r\n System.out.println(\"No flight Selected\");\r\n }\r\n else {\r\n bookFlightController.confirmBookingShow(results.getSelectionModel().getSelectedItem());\r\n search(filters);\r\n showResults();\r\n }\r\n }", "title": "" }, { "docid": "0454580c99079204738a5a6b3c89fded", "score": "0.5716881", "text": "@Override\r\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\ttype_invoice = 2;\r\n\t\t\t\t}", "title": "" }, { "docid": "d1e05cdc6ab46290238f2f357abf5ad9", "score": "0.5715112", "text": "private void button2ActionPerformed(ActionEvent e) {\n OrderService orderService = new OrderServiceImpl();\n if(table1.getSelectedRowCount()==0){\n JOptionPane.showMessageDialog(tabbedPane1,\"请选择需要查看的行\");\n return ;\n }\n String orderNo = table1.getValueAt(table1.getSelectedRow(), 0).toString(); //获得订单号\n Orders detailOrder = orderService.getDetailOrder(orderNo);\n if(detailOrder != null){\n Order_Detail order_detail = new Order_Detail(detailOrder);\n order_detail.setVisible(true);\n }\n else{\n JOptionPane.showMessageDialog(tabbedPane1,\"服务器开小差了~稍后再试试\");\n }\n\n }", "title": "" }, { "docid": "437f75b6f3f767863771cef84701058f", "score": "0.571289", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (checkFlightAvailability(currentItinerary)) {\n ((Client) currentUser).bookFlight(currentItinerary);\n adjustFlights(currentItinerary);\n saveUser();\n showSuccessAlert();\n } else {\n showFailureAlert();\n }\n }", "title": "" }, { "docid": "380e8b46741b8a12385a6cce82b24c50", "score": "0.5712393", "text": "public void onButtonClick(View view)\n\t{\n\t\tsendData('A');\n\t}", "title": "" }, { "docid": "607f0202e34c5b00e6fbb11d7c9cea62", "score": "0.5707562", "text": "public abstract void clickDeliverToThisAddressButton();", "title": "" }, { "docid": "10f6797469c0337f13f15ae15dcc0191", "score": "0.5705781", "text": "private void showTermView() {\n\n Intent intent = new Intent(this, CourseListView.class);\n\n // to pass a key intent.putExtra(\"name\",name);\n intent.putExtra(\"TermID\", SelectedID);\n\n startActivity(intent);\n\n }", "title": "" }, { "docid": "e01891ac6783853a69760ba3d3a91f3a", "score": "0.57045627", "text": "public void ClickPlaceOrderButton()\r\n\t{\r\n\t\tPlaceOrderButton.click();\r\n\t}", "title": "" }, { "docid": "39026bceae88cf018a5d50307babf3b1", "score": "0.5704261", "text": "public String bookAppointmentSlot(Appointment makeAppointment,Clinic bookedClinic, String testName){\n\t\t logger.info(\"<<< bookAppointmentSlot .. >>>\");\n\t\t this.makeAppointment = makeAppointment;\n\t\t this.bookedClinic = bookedClinic;\n\t\t logger.info(\">> clinicId \"+bookedClinic.getId()+\" Is Going To Booked!\");\n managerService = RepositoryContext.getBean(ManagerService.class);\n slrSeller = managerService.getSearchService().getSlrSellerById(bookedClinic.getSlrSellerId());\n\t\t init();\n\n this.testName = testName;\n return \"/appointment/appointment.xhtml?faces-redirect=true\";\n\n\n\t }", "title": "" }, { "docid": "f08deaa720594643a4ec405bd7b5437f", "score": "0.5703765", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcommitInspectionByWebService();\n\n\t\t\t}", "title": "" }, { "docid": "07555fb50f85080f56e6353b026ff61b", "score": "0.56942964", "text": "public void viewClick(SlideShowCourse ssCourse);", "title": "" }, { "docid": "2f1bdb05647c42b9978f766e69cab235", "score": "0.56912047", "text": "@Override\n \t\tpublic void onClick(View v) {\n \t\t\tIntent intent = new Intent(CouncillorDetailActivity.this, ListingActivity.class);\n\t\t\t\tintent.putExtra(\"type\", Constants.THINKBOX);\n\t\t\t\tintent.putExtra(\"zone\", AppCache.selectedCouncillorDTO.zone.ID);\n\t\t \tstartActivity(intent);\n \t\t}", "title": "" }, { "docid": "b8f3d45489a8d6c3058b30d752697fc4", "score": "0.56904393", "text": "@Override\r\n\tpublic void onClick(View view) {\n\t\tswitch (view.getId()) {\r\n\t\tcase R.id.btn_focus:\r\n\t\t\tif(TextUtils.isEmpty(mBaseApp.getUserssid())){\r\n\t\t\t\tIntent intent=new Intent(PalletDetailActivity.this, PersonalLoginActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}else{\r\n\t\t\t\tif(mBtnFocus.getText().equals(\"关注\")){\r\n\t\t\t\t\ttoFocus(\"add\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\ttoFocus(\"delete\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase R.id.btn_myOffer:\r\n\t\t\tif(TextUtils.isEmpty(mBaseApp.getUserssid())){\r\n\t\t\t\tIntent intent=new Intent(PalletDetailActivity.this, PersonalLoginActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}else{\r\n\t\t\t\ttoOfferPage(mPallet);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase R.id.iv_left_icon:\r\n\t\t\tonBackPressed();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0b1ed93053c7a22effe5fb385ba5ecc7", "score": "0.568954", "text": "@Override\n protected void tapped1() {\n changeScreen(CurrentScreen.TITLE);\n }", "title": "" }, { "docid": "1f30a173ec8a872a11a1902e1fcec0d1", "score": "0.5689318", "text": "private void checkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkActionPerformed\n String idTicket = tId.getText().trim();\n if (!tickets.containsKey(idTicket)) {\n JOptionPane.showMessageDialog(null, \"Ticket Is Invalide !\");\n\n } else {\n name.setText(tickets.get(idTicket).getCustomer().getName());\n email.setText(tickets.get(idTicket).getCustomer().getEmail());\n phone.setText(tickets.get(idTicket).getCustomer().getMobileNumber());\n dob.setText(tickets.get(idTicket).getCustomer().getDateOfBirth());\n cId.setText(tickets.get(idTicket).getCustomer().getCustomerId());\n gender.setText(tickets.get(idTicket).getCustomer().getGender());\n adress.setText(tickets.get(idTicket).getCustomer().getAddress());\n sClass.setText(tickets.get(idTicket).getSeat().getSeatClass());\n sNo.setText(tickets.get(idTicket).getSeat().getSeatNo());\n fId.setText(tickets.get(idTicket).getFlight().getFlightNumber());\n destination.setText(tickets.get(idTicket).getFlight().getDestination());\n date.setText(tickets.get(idTicket).getFlight().getDate());\n total.setText(tickets.get(idTicket).getSeat().getTotalCharges());\n }\n }", "title": "" }, { "docid": "7128807c8c5dd4252f604dd5d1665001", "score": "0.56853586", "text": "@Override\n\t\t\tpublic void componentSelected(ButtonEvent ce) {\n\t\t\t\tfinal List<BeanModel> selection = grid.getSelectionModel().getSelection(); \t\t \t\n\t\t \tif( selection != null && selection.size() != 0 )\n\t\t \t{\n\t\t \t\tCruise cruise = (Cruise)selection.get(0).getBean();\n\t\t \t\tCruiseBookingWindow bookingWindow = new CruiseBookingWindow(user, cruise);\n\t\t \t\tbookingWindow.load();\t\t \t\t\n\t\t \t}\n\t\t\t}", "title": "" }, { "docid": "028e83338f53fda587e43a679eb7f800", "score": "0.5680753", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\taddInspectionByWebService();\n\n\t\t\t}", "title": "" }, { "docid": "803f8ea39c00600225aaaad6890d07c1", "score": "0.5677497", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n ServicesActivity.servicesAdded = servicesAdded;\n Intent intent = new Intent(EditServicesActivity.this, AppointmentBookActivity.class);\n intent.addFlags(AppointmentBookActivity.SUMMARY_CODE);\n startActivity(intent);\n }", "title": "" }, { "docid": "6dfe5e65540f1edb6d56bf6a76cee478", "score": "0.56759584", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent(context,MainActivity.class);\n\t\t\t\t SharedPreferences m_barber_id = context.getSharedPreferences(\"m_barber_id\",context.MODE_PRIVATE);\n\t\t\t\t SharedPreferences.Editor editor=m_barber_id.edit();\n\t\t\t\t \n\t\t\t\t editor.putInt(\"m_barber_id\",theOne);\n\t\t\t\t intent.putExtra(\"barberpost\",\"barberpost\");\n\t\t\t\t editor.commit();\n\t\t\t context.startActivity(intent);\n\t\t\t}", "title": "" }, { "docid": "64f29d368524598dcb145e8b8d3c51c9", "score": "0.56722116", "text": "@Override\n public void onClick(View view) {\n gotoBillSubmitFormActvity();\n }", "title": "" }, { "docid": "b116fb9baa4efb3c7e4605d71fb1e6dd", "score": "0.5670221", "text": "public void onViewMoreClick(ActionEvent event) {\n\t\t Map<String,Object> attributes = event.getComponent().getAttributes();\n\t\t String viewMore = (String) attributes.get(\"viewMore\");\n\t\t Clinic clinic = (Clinic) attributes.get(\"clinic\");\n\t\t if(!viewMore.isEmpty() && viewMore.equals(\"deals\")){\n\t\t\t this.viewMoreDeals = clinic.getDealsTab();\n\t\t } else if(!viewMore.isEmpty() && viewMore.equals(\"reviews\")){\n\t\t\t this.viewMoreReviews = clinic.getReviewsTab();\n\t\t }\t\t \n\t }", "title": "" }, { "docid": "6c088627489fb97bb385945e6e83a15b", "score": "0.56696707", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew BookFlyRecord(userID);\n\t\t\t}", "title": "" }, { "docid": "456f26a94ea752211d2423572aa303d1", "score": "0.5669461", "text": "public void handleBookRoom(ActionEvent event) throws IOException {\n System.out.println(\"Button pressed\");\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/bookingPage.fxml\"));\n Parent hotelListViewParent = loader.load();\n\n Scene hotelListViewScene = new Scene(hotelListViewParent);\n\n //access the controller and call a method\n bookingPageController = loader.getController();\n bookingPageController.initData(this.selectedRoom);\n\n //This line gets the Stage information\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(hotelListViewScene);\n window.show();\n }", "title": "" }, { "docid": "526e8a00d44376dd84976eb819f74f7d", "score": "0.5666602", "text": "private void openInventoryManagementPage() {\n initializeExitWindows();\n\n JPanel inventoryOptions = new JPanel();\n inventoryOptions.setLayout(new GridLayout(12, 1));\n inventoryOptions.setBorder(new EmptyBorder(new Insets(50, 50, 50, 50)));\n add(inventoryOptions, BorderLayout.CENTER);\n\n JPanel upperOptions = new JPanel();\n upperOptions.setLayout(new GridLayout(1, 4));\n upperOptions.setBorder(new EmptyBorder(new Insets(50, 50, 50, 50)));\n add(upperOptions, BorderLayout.NORTH);\n\n JPanel lowerOptions = new JPanel();\n lowerOptions.setLayout(new GridLayout(1, 4));\n lowerOptions.setBorder(new EmptyBorder(new Insets(50, 50, 50, 50)));\n add(lowerOptions, BorderLayout.SOUTH);\n\n // Buttons, Fields and Boxes\n addAllFields(inventoryOptions, upperOptions, lowerOptions);\n\n // Return to main menu page\n JButton finish = new JButton(\"Return To Menu\");\n finish.setBackground(new Color(0xFD0303));\n lowerOptions.add(finish);\n addALToFinishButton(finish);\n\n setVisible(true);\n revalidate();\n }", "title": "" }, { "docid": "6ad4de87897892f5b2fce77ba1ba9137", "score": "0.5666592", "text": "@Override\n public void onClick(View v) {\n Intent gotomyticketdetails = new Intent(context, MyTicketDetailAct.class);\n gotomyticketdetails.putExtra(\"nama_wisata\", getNamaWisata);\n context.startActivity(gotomyticketdetails);\n\n }", "title": "" } ]
9eb92914ec16de83d40493e74135f58f
This method handles the update of the file browser list in the activity
[ { "docid": "be0f3e9caaa04576dc239deed77328ea", "score": "0.82080984", "text": "private void updateListDisplay() {\r\n\t\tListView list = (ListView) findViewById(R.id.fileBrowserList);\r\n\t\tString[] itemsList = browser.listFiles();\r\n\t\tadapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_activated_1, itemsList);\r\n\t\tlist.setAdapter(adapter);\r\n\t\tsetListEventHandlers();\r\n\t}", "title": "" } ]
[ { "docid": "c55edb90818d2dad0c5c017bc1badfd0", "score": "0.7289384", "text": "private void setListEventHandlers(){\r\n\t\tfinal ListView list = (ListView) findViewById(R.id.fileBrowserList);\r\n\t\tlist.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\r\n\t\t\t\t\tlong id) {\r\n\t\t\t\tFile clickedFile = new File(browser.getCurrentFile(), (String) list.getItemAtPosition(position));\r\n\t\t\t\tselectedFile = clickedFile;\r\n\t\t\t\tupdateActivity();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "16c09c9e09c1cfb8b967eaea9647ea5c", "score": "0.71716774", "text": "private void updateList() {\n c.updateFiles(s.getFilesList());\n }", "title": "" }, { "docid": "d9021d8bfa4fc97874a239ee6410b515", "score": "0.6425439", "text": "public void actionPerformed( ListItem li ) {\n String __selectedString;\n __selectedString = ( ( ListItem ) filesList.items.elementAt( filesList.selectedIndex ) ).title;\n if ( __selectedString.hashCode() != \"...\".hashCode() ) {\n boolean isFolder = __selectedString.endsWith( \"/\" );\n if ( !isFolder ) {\n if ( manType == 0x00 ) {\n String filePath = ( \"/\".concat( systemPath ).concat( __selectedString ) );\n FileConnection fileConnection;\n try {\n fileConnection = ( FileConnection ) Connector.open( \"file://\".concat( filePath ), Connector.READ );\n if ( !fileConnection.exists() ) {\n return;\n }\n String fileName = __selectedString;\n String fileLocation = \"/\".concat( systemPath );\n long fileSize = fileConnection.fileSize();\n if ( fileName != null && accountRoot.getStatusIndex() != 0 ) {\n final DirectConnection directConnection = accountRoot.getDirectConnectionInstance();\n directConnection.setIsReceivingFile( false );\n directConnection.setTransactionInfo( StringUtil.stringToByteArray( fileName, true ), fileLocation, fileSize, buddyId );\n directConnection.generateCookie();\n accountRoot.getTransactionManager().addTransaction( directConnection );\n new Thread() {\n\n public void run() {\n try {\n directConnection.sendFile();\n } catch ( Throwable ex ) {\n LogUtil.outMessage( \"IOException: \" + ex.getMessage(), true );\n }\n }\n }.start();\n accountRoot.getTransactionsFrame().transactionItemFrame = new TransactionItemFrame( directConnection );\n accountRoot.getTransactionsFrame().transactionItemFrame.s_prevWindow = accountRoot.getTransactionsFrame();\n MidletMain.screen.setActiveWindow( accountRoot.getTransactionsFrame().transactionItemFrame );\n }\n MidletMain.screen.setActiveWindow( FileBrowserFrame.this.s_prevWindow );\n return;\n } catch ( IOException ex ) {\n LogUtil.outMessage( \"Local file error: \" + ex.getMessage(), true );\n }\n }\n } else {\n systemPath += __selectedString;\n readLevel( systemPath );\n }\n } else {\n getLowerLevel();\n readLevel( systemPath );\n }\n /** Repainting **/\n MidletMain.screen.repaint( Screen.REPAINT_STATE_PLAIN );\n }", "title": "" }, { "docid": "cc68f156b2837a5f495b1e930dc29e12", "score": "0.6363068", "text": "private void refreshFileList() {\n libList.setFiles(libraryFiles);\n }", "title": "" }, { "docid": "d1bfc1e826b75fdefec00f9d8d703922", "score": "0.6325963", "text": "private void loadFileList(){\n final List<MyMenu> fileItems = new ArrayList<>();\n\n final File file = getFilesDir();\n File [] files = file.listFiles();\n\n for(File f1 :files){\n Date date = new Date(f1.lastModified());\n\n size = f1.length();\n fileItems.add(new MyMenu(R.drawable.ic_insert_drive_file_black_24dp,\"\"+f1.getName(),\"\"+(new SimpleDateFormat(\"dd-MMM-yyyy HH-mm-ss\").format(date)),SizeChange(size),\"\"));\n }\n\n ((ListView)findViewById(R.id.lstFiles)).setAdapter(new FileAdapter(this,fileItems));\n\n\n ((ListView)findViewById(R.id.lstFiles)).setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n MyMenu clickedItem = fileItems.get(position);\n String strFileName = clickedItem.txtFlName.toString();\n\n //Reading the content of file with particular file name..(Open file where file name = xyz)\n StringBuilder builder = new StringBuilder();\n FileInputStream fis = null;\n\n try {\n fis = openFileInput(strFileName);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n while (true){\n int ch = 0;\n\n try {\n ch = fis.read();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n if(ch == -1) break;\n else {\n builder.append((char) ch);\n }\n }\n\n\n String strNoteInfo = builder.toString();\n\n Bundle bundle = new Bundle();\n\n //Puting file name into bundle\n\n bundle.putString(KEY_NAME,strFileName);\n\n startActivity(new Intent(ListOfFiles.this,EditFile.class).putExtras(bundle));\n }\n });\n }", "title": "" }, { "docid": "d1277dad7be137c5ce297628ca6bfd0a", "score": "0.63213485", "text": "FileShare refresh();", "title": "" }, { "docid": "c8534f3fd4bfbdabd832e35ef3ba0205", "score": "0.618078", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n final FTPFile file = (FTPFile) parent.getItemAtPosition(position);\n if(file.getType() == FTPFile.TYPE_DIRECTORY){\n new Thread(){\n @Override\n public void run() {\n try {\n client.changeDirectory(file.getName());\n final List<FTPFile> ftpFiles = Arrays.asList(client.list());\n final String currentPath = client.currentDirectory();\n\n fileList.push(file);\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n FTPFileListAdapter adapter = new FTPFileListAdapter(FTPUploadActivity.this, ftpFiles);\n listView.setAdapter(adapter);\n tvPath.setText(currentPath);\n }\n });\n } catch (IOException e) {\n e.printStackTrace();\n } catch (FTPIllegalReplyException e) {\n e.printStackTrace();\n } catch (FTPException e) {\n e.printStackTrace();\n } catch (FTPDataTransferException e) {\n e.printStackTrace();\n } catch (FTPListParseException e) {\n e.printStackTrace();\n } catch (FTPAbortedException e) {\n e.printStackTrace();\n }\n }\n }.start();\n }\n }", "title": "" }, { "docid": "fe2e8f6bff5b5b2f1b811ee1da828735", "score": "0.6145928", "text": "private void populate() {\n\t\tFile[]dirs = mCurrentFile.listFiles();\n\t mDialog.getDialog().setTitle(mCurrentFile.getAbsolutePath());\n\t List<FileItem> dir = new ArrayList<>();\n\t List<FileItem> fls = new ArrayList<>();\n try{\n \tfor (File ff: dirs) {\n Date \t\tlastModDate = new Date(ff.lastModified());\n DateFormat \tformater = DateFormat.getDateTimeInstance();\n String date_modify = formater.format(lastModDate);\n if (ff.isDirectory()) {\n File[] fbuf = ff.listFiles();\n int buf = 0;\n if (fbuf != null) \n buf = fbuf.length;\n String num_item = String.valueOf(buf);\n if (buf <= 1) \n \tnum_item = num_item + \" item\";\n else \n \tnum_item = num_item + \" items\";\n \n dir.add(new FileItem(ff.getName(), \n \t\t\t\t\t num_item, \n \t\t\t\t\t date_modify, \n \t\t\t\t\t ff.getAbsolutePath(), \n \t\t\t\t\t buf == 0 ? EMPTY_DIR_ICON : DIR_ICON));\n } else {\n \tString name = ff.getName();\n \t// filter based on extension\n \tint i = name.lastIndexOf(\".\");\n \tString extension = i == -1 ? \"\" : name.substring(i);\n \tif (mFilter == null || \n \t\tmFilter.isEmpty() || \n \t\t(!extension.isEmpty() && mFilter.contains(extension))) \n \t\t\n \t\t// add the file\n\t \tfls.add(new FileItem(name,\n\t \t\t\t\t\t\t Long.valueOf(ff.length()).toString(), \n\t \t\t\t\t\t\t date_modify, \n\t \t\t\t\t\t\t ff.getAbsolutePath(), \n\t \t\t\t\t\t\t FILE_ICON));\n }\n }\n } catch(Exception e) {\n \t// do not get intrusive, that would be useless\n }\n\n Collections.sort(dir);\n Collections.sort(fls);\n dir.addAll(fls);\n if (!mCurrentFile.getPath().equals(\"/\"))\n \tdir.add(0,new FileItem(\"..\", \"\", \"\", mCurrentFile.getParent(), UP_ICON));\n\n mAdapter = new FileArrayAdapter(mActivity, R.layout.file_row, dir);\n ListView list = (ListView)mDialog.getField(R.id.file_list);\n if (list != null) {\n \t\t// set the selection type and the adapter\n \t\tlist.setChoiceMode(ListView.CHOICE_MODE_SINGLE);\n \t\tlist.setAdapter(mAdapter);\n }\n }", "title": "" }, { "docid": "10dd23acff94fbf7cda0cdacdebe39bb", "score": "0.60989517", "text": "public void FileSelect(){\n\t\tList<String> filesendlist=new ArrayList();\r\n\t\tList<String> filereceivelist=new ArrayList();\r\n\t\tFileChooser fc = new FileChooser();\r\n\t\t// fc.setInitialDirectory(\r\n\t // new File(System.getProperty(\"user.home\"))\r\n\t //new File(System.getProperty(\"C:\\\\Users\"))\r\n\t // ); \r\n\t fc.getExtensionFilters().addAll(\r\n\t new FileChooser.ExtensionFilter(\"All Files\", \"*.*\")\r\n\t // new FileChooser.ExtensionFilter(\"JPG\", \"*.jpg\"),\r\n\t // new FileChooser.ExtensionFilter(\"PNG\", \"*.png\")\r\n\t );\r\n\t \r\n\t List<File> selectedFiles = fc.showOpenMultipleDialog(null);\r\n\t if (selectedFiles != null) {\r\n\t \tfor(int i=0;i<selectedFiles.size();i++){ \r\n\t \t\t\r\n\t \t\tfilesendlist.add(selectedFiles.get(i).getAbsolutePath());\r\n\t \t\tfilereceivelist.add(selectedFiles.get(i).getName());\r\n\t \t//\tlistview.getItems().add(selectedFiles.get(i).getName()); \r\n\t \t\t\r\n\t \t\t}\r\n\t //\tStartThread st=new StartThread();\r\n\t //\tStartThread2 st2=new StartThread2();\r\n\t \t//Thread t1=new Thread(st);\r\n\t // \tThread t2=new Thread(st2);\r\n\t //\tt2.start();\r\n\t \r\n\t //\ttry {\r\n\t\t\t\t\t\t\t\t//File2();\r\n\t\t\t\t\t\t///\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t//\tSystem.out.println(\"receiver is not active\");\r\n\t\t\t\t\t\t\t//\te.printStackTrace();\r\n\t\t\t\t\t\t\t//}\r\n\t //\tt2.stop();\r\n\t \tsetFILE_TO_SEND_LIST(filesendlist);\r\n\t \tsetFILE_TO_RECEIVE_LIST(filereceivelist);\r\n\t \ttry {\r\n\t \t\t\t\t\tsetaccesspoint();\r\n\t \t\t\t\t} catch (IOException e2) {\r\n\t \t\t\t\t\t// TODO Auto-generated catch block\r\n\t \t\t\t\t\te2.printStackTrace();\r\n\t \t\t\t\t}\r\n\t \t\t\tif(setacpt){\r\n\t \t\t\t\ttry {\r\n\t \t\t\t\t\t\tstartaccesspoint();\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}\r\n\t }\r\n\t \r\n\t else {\r\n\t \t//System.out.println(\"Not selected\");\r\n\t }\r\n\t }", "title": "" }, { "docid": "2d3c1e580a820a10d0a8af47926b7e96", "score": "0.60848296", "text": "public void updatePeerFileList(ArrayList<String> c) {\n\t\tSystem.out.println(\"CLIENT GUI:\\tupdatePeerFileList\");\n\t\tdisableListeners();\n\t\t//selectedClientFile = null;\n\n\t\tpeerFiles = new ArrayList<String>(c);\n\n\t\tString strClient[] = new String[1]; // needed to establish array type for next line\n\t\tpeerFileList.setListData((String[]) peerFiles.toArray(strClient));\n\t\tenableListeners();\n\t}", "title": "" }, { "docid": "23fa8e245bd9e4721fd9bafdaadaaf64", "score": "0.6063036", "text": "private void updateList() {\n control.updateList(listItems);\n }", "title": "" }, { "docid": "4884398102d1b0534845108c8f1eb8da", "score": "0.6043881", "text": "public void run() {\n\t\t if (tab.getFile() != null) {\n\t\t updateFileChooserDirectory(tab.getFile());\n\t\t if (tab.getFile().exists()) {\n\t\t Editor.getEditor().addToRecentFiles(tab.getFile().getAbsolutePath());\n\t\t }\n \t\t }\n\t\t\t\t\tui.getTabContainer().enableTabHistory();\n\t\t\t\t\t//ui.selectTab(tab);\n\t\t\t\t}", "title": "" }, { "docid": "8d9deb892dd275291fcb8c6d9ff8a5ce", "score": "0.603822", "text": "@Override\n\tpublic void onChanged(Change<? extends T> c) {\n\t System.out.print(listName + \" updated on disk... \");\n\n\t // Create list of items to write to file\n\t ArrayList<GTDText> serializableList = new ArrayList<>();\n\t for (Node n : c.getList()) {\n\n\t\t// add node to list of list items to serialize\n\t\tif (n instanceof GTDText) {\n\t\t serializableList.add((GTDText) n);\n\n\t\t // allow users to double click on list items to modify them\n\t\t n.setOnMouseClicked(new EventHandler<MouseEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(MouseEvent event) {\n\n\t\t\t // listen for double click\n\t\t\t if (event.getButton().equals(MouseButton.PRIMARY) && event.getClickCount() == 2) {\n\n\t\t\t\t// create and display options dialog\n\t\t\t\tGTDListOptions dialog = new GTDListOptions();\n\t\t\t\tdialog.show(((GTDText) n).getItem());\n\n\t\t\t\t// update text to reflect changes\n\t\t\t\t((GTDText) n).setText(ListItemElement.generate(((GTDText) n).getItem()).getText());\n\t\t\t }\n\t\t\t}\n\t\t });\n\t\t}\n\t }\n\n\t // write to file and print status\n\t System.out.println(Serializer.getInstance().writeGTDList(serializableList, listName));\n\t}", "title": "" }, { "docid": "18e17adbcc4d885650a5061ffb3b7393", "score": "0.60207504", "text": "public void updateListView() {\n\t\thandler.sendEmptyMessage(ACTION_UPDATE_LIST_VIEW);\n\t}", "title": "" }, { "docid": "4d4f3dd7fcc06d6b6de22f8aa60a4d34", "score": "0.6019226", "text": "private void onListUpdate()\n\t{\n\t\t// Update the scrollbar\n\t\tthis.updateScrollMaximum();\n\n\t\t// Update the search results\n\t\tthis.updateView();\n\n\t\t// Update the selected aspect\n\t\tthis.updateSelectedAspect();\n\n\t\t// Mark for widget update\n\t\tthis.flagWidgetsNeedUpdate = true;\n\t}", "title": "" }, { "docid": "0a11bee948207f9ac685c8f7baaac733", "score": "0.60148245", "text": "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n\t\t// If the resulting code is of FileBrowser\n\t\tif (requestCode == 2) {\n\t\t\tif (resultCode == Activity.RESULT_OK) {\n\n\t\t\t\t// Get the new file name\n\t\t\t\tString newFile = data\n\t\t\t\t\t\t.getStringExtra(FileBrowser.returnFileParameter);\n\t\t\t\tString fn = newFile.substring(newFile\n\t\t\t\t\t\t.lastIndexOf(File.separator) + 1);\n\t\t\t\ttry {\n\n\t\t\t\t\t// Copy the file into the current directory\n\t\t\t\t\tFile from = new File(newFile);\n\t\t\t\t\tFile to = new File(path + File.separator + fn);\n\t\t\t\t\tInputStream in = new FileInputStream(from);\n\t\t\t\t\tOutputStream out = new FileOutputStream(to);\n\t\t\t\t\tbyte[] buf = new byte[1024];\n\t\t\t\t\tint len;\n\t\t\t\t\twhile ((len = in.read(buf)) > 0) {\n\t\t\t\t\t\tout.write(buf, 0, len);\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tout.close();\n\n\t\t\t\t\t// Update the list\n\t\t\t\t\tfileList.add(fn);\n\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\tLog.e(TAG, \"import file\", e);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLog.e(TAG, \"import file\", e);\n\t\t\t\t}\n\n\t\t\t\t// Displays a success message\n\t\t\t\tToast.makeText(this, \"Imported : \\n\" + fn + \" into project.\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t} else {\n\n\t\t\t\t// Displays a failure message\n\t\t\t\tToast.makeText(this, \"Received NO result from file browser\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "title": "" }, { "docid": "72b11996da01c4dc99a3b5147c79a08a", "score": "0.59979796", "text": "public void refresh(List<UsbFileItem> files) {\n this.list = files;\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "f13e7a383e8e4f1fb09887f0a6df2f7e", "score": "0.59837717", "text": "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState)\r\n\t{\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\tmsgCurrentHandler = new Handler()\r\n\t\t{\r\n\t\t\tpublic void handleMessage(Message msg)\r\n\t\t\t{\r\n\t\t\t\tFileExplorerActivity.this.handleMessage(msg);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\trequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);\r\n\t\tsetContentView(R.layout.fileexplorer);\r\n\r\n\t\tm_EmptyText = (TextView) findViewById(R.id.empty_text);\r\n\t\tm_ProgressBar = (ProgressBar) findViewById(R.id.scan_progress);\r\n\r\n\t\tgetListView().setOnCreateContextMenuListener(this);\r\n\t\tgetListView().setEmptyView(findViewById(R.id.empty));\r\n\t\tgetListView().setTextFilterEnabled(true);\r\n\t\tgetListView().requestFocus();\r\n\t\tgetListView().requestFocusFromTouch();\r\n\r\n\t\tm_DirectoryButtons = (LinearLayout) findViewById(R.id.directory_buttons);\r\n\t\tm_ActionNormal = (LinearLayout) findViewById(R.id.action_normal);\r\n\t\tm_ActionMultiselect = (LinearLayout) findViewById(R.id.action_multiselect);\r\n\t\tm_EditFilename = (EditText) findViewById(R.id.filename);\r\n\r\n\t\tm_ButtonPick = (Button) findViewById(R.id.button_pick);\r\n\r\n\t\tm_ButtonPick.setOnClickListener(new View.OnClickListener()\r\n\t\t{\r\n\t\t\tpublic void onClick(View arg0)\r\n\t\t\t{\r\n\t\t\t\tpickFileOrDirectory();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Initialize only when necessary:\r\n\t\tm_DirectoryInput = null;\r\n\r\n\t\t// Create map of extensions:\r\n\t\tgetMimeTypes();\r\n\r\n\t\tgetSdCardPath();\r\n\r\n\t\tm_State = STATE_BROWSE;\r\n\r\n\t\tIntent intent = getIntent();\r\n\t\tString action = intent.getAction();\r\n\r\n\t\tFile browseto = new File(\"/\");\r\n\r\n\t\tif (!TextUtils.isEmpty(m_SdCardPath))\r\n\t\t{\r\n\t\t\tbrowseto = new File(m_SdCardPath);\r\n\t\t}\r\n\r\n\t\t// Default state\r\n\t\tm_State = STATE_BROWSE;\r\n\t\tm_WritableOnly = false;\r\n\r\n\t\tif (action != null)\r\n\t\t{\r\n\t\t\tif (action.equals(FileManagerIntents.ACTION_PICK_FILE))\r\n\t\t\t{\r\n\t\t\t\tm_State = STATE_PICK_FILE;\r\n\t\t\t}\r\n\t\t\telse if (action.equals(FileManagerIntents.ACTION_PICK_DIRECTORY))\r\n\t\t\t{\r\n\t\t\t\tm_State = STATE_PICK_DIRECTORY;\r\n\t\t\t\tm_WritableOnly = intent.getBooleanExtra(FileManagerIntents.EXTRA_WRITEABLE_ONLY, false);\r\n\r\n\t\t\t\t// Remove edit text and make button fill whole line\r\n\t\t\t\tm_EditFilename.setVisibility(View.GONE);\r\n\t\t\t\tm_ButtonPick.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,\r\n\t\t\t\t\t\tLinearLayout.LayoutParams.WRAP_CONTENT));\r\n\t\t\t}\r\n\t\t\telse if (action.equals(FileManagerIntents.ACTION_MULTI_SELECT))\r\n\t\t\t{\r\n\t\t\t\tm_State = STATE_MULTI_SELECT;\r\n\r\n\t\t\t\t// Remove buttons\r\n\t\t\t\tm_DirectoryButtons.setVisibility(View.GONE);\r\n\t\t\t\tm_ActionNormal.setVisibility(View.GONE);\r\n\r\n\t\t\t\t// Multi select action: move\r\n\t\t\t\tm_ButtonMove = (Button) findViewById(R.id.button_move);\r\n\t\t\t\tm_ButtonMove.setOnClickListener(new View.OnClickListener()\r\n\t\t\t\t{\r\n\t\t\t\t\tpublic void onClick(View arg0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// TODO: Click on 'MOVE' button\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\t// Multi select action: copy\r\n\t\t\t\tm_ButtonCopy = (Button) findViewById(R.id.button_copy);\r\n\t\t\t\tm_ButtonCopy.setOnClickListener(new View.OnClickListener()\r\n\t\t\t\t{\r\n\t\t\t\t\tpublic void onClick(View arg0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// TODO: Click on 'COPY' button\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\t// Multi select action: delete\r\n\t\t\t\tm_ButtonDelete = (Button) findViewById(R.id.button_delete);\r\n\t\t\t\tm_ButtonDelete.setOnClickListener(new View.OnClickListener()\r\n\t\t\t\t{\r\n\t\t\t\t\tpublic void onClick(View arg0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// TODO: Click on 'DELETE' button\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (m_State == STATE_BROWSE)\r\n\t\t{\r\n\t\t\t// Remove edit text and button.\r\n\t\t\tm_EditFilename.setVisibility(View.GONE);\r\n\t\t\tm_ButtonPick.setVisibility(View.GONE);\r\n\t\t}\r\n\r\n\t\tif (m_State != STATE_MULTI_SELECT)\r\n\t\t{\r\n\t\t\t// Remove multiselect action buttons\r\n\t\t\tm_ActionMultiselect.setVisibility(View.GONE);\r\n\t\t}\r\n\r\n\t\t// Set current directory and file based on intent data.\r\n\t\tFile file = FileUtils.getFile(intent.getData());\r\n\t\tif (file != null)\r\n\t\t{\r\n\t\t\tFile dir = FileUtils.getPathWithoutFilename(file);\r\n\t\t\tif (dir.isDirectory())\r\n\t\t\t{\r\n\t\t\t\tbrowseto = dir;\r\n\t\t\t}\r\n\t\t\tif (!file.isDirectory())\r\n\t\t\t{\r\n\t\t\t\tm_EditFilename.setText(file.getName());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString title = intent.getStringExtra(FileManagerIntents.EXTRA_TITLE);\r\n\t\tif (title != null)\r\n\t\t{\r\n\t\t\tsetTitle(title);\r\n\t\t}\r\n\r\n\t\tString buttontext = intent.getStringExtra(FileManagerIntents.EXTRA_BUTTON_TEXT);\r\n\t\tif (buttontext != null)\r\n\t\t{\r\n\t\t\tm_ButtonPick.setText(buttontext);\r\n\t\t}\r\n\r\n\t\tm_StepsBack = 0;\r\n\r\n\t\tif (savedInstanceState != null)\r\n\t\t{\r\n\t\t\tbrowseto = new File(savedInstanceState.getString(BUNDLE_CURRENT_DIRECTORY));\r\n\t\t\tm_ContextFile = new File(savedInstanceState.getString(BUNDLE_CONTEXT_FILE));\r\n\t\t\tm_ContextText = savedInstanceState.getString(BUNDLE_CONTEXT_TEXT);\r\n\r\n\t\t\tboolean show = savedInstanceState.getBoolean(BUNDLE_SHOW_DIRECTORY_INPUT);\r\n\t\t\tshowDirectoryInput(show);\r\n\r\n\t\t\tm_StepsBack = savedInstanceState.getInt(BUNDLE_STEPS_BACK);\r\n\t\t}\r\n\r\n\t\tbrowseTo(browseto);\r\n\t}", "title": "" }, { "docid": "5c08e81bd7ad9faa16bb243cd3a9610d", "score": "0.59673053", "text": "private void refreshPathList() {\n pathList.setFiles(libraryPath);\n }", "title": "" }, { "docid": "88796602c57f109122e06c9b2fbb427e", "score": "0.5951752", "text": "public void updateListView(){\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n lobbyAdapter.notifyDataSetChanged();\n }\n });\n }", "title": "" }, { "docid": "ef371b5f00068157502fac4774263431", "score": "0.5948514", "text": "public void updateActivity(){\r\n\t\tupdateTextDisplay();\r\n\t\tupdateListDisplay();\r\n\t\tupdateBackButton();\r\n\t\tupdateOpenButton();\r\n\t}", "title": "" }, { "docid": "39db5360a1d68c4e53fd0c9e6be8da95", "score": "0.5906206", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1)\n\t\t\t{\n\t\t\t\tdelateCollectRocode();\n\t\t\t\tGetFileListTask mGetFileListTask = new GetFileListTask(listView, list, mFileinfo, mFileNoRecodeLayout, tvTitle, fileType, mSearchBar, checks, mContext, false, false);\n\t\t\t\tmGetFileListTask.execute();\n\t\t\t}", "title": "" }, { "docid": "a2d6064f151bb74c7f7ee9c718fbc6bb", "score": "0.5880614", "text": "public static void fileList(Client client) {\n // ASK FOR FILELIST\n // RECEIVE PACKETS AND SHOW FILELIST\n\n String command = Protocol.REQUEST_FILELIST;\n InetAddress destinationIP = Protocol.getDefaultIp();\n int destinationPort = Protocol.DEFAULT_SERVER_PORT;\n byte[] data = new byte[1];\n data[0] = 0;\n\n OutgoingData outgoingData = new OutgoingData(command, destinationIP, destinationPort, data, Protocol.WS);\n client.getSendingWindow().addTask(outgoingData);\n }", "title": "" }, { "docid": "4f25708303e50eef7ef74d7f97bf15aa", "score": "0.5878057", "text": "void updateSongs(ArrayList<MusicFiles> updatedList){\n musicFiles=new ArrayList<>();\n musicFiles.addAll(updatedList);\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "4e730cb272a0a79b75610572da2484c0", "score": "0.58712995", "text": "@Override\n\t\t\t\t\tpublic void onRefresh() {\n\t\t\t\t\t\tnew get_folder().execute(new Server_Interaction());\n\t\t\t\t\t}", "title": "" }, { "docid": "1e13f588238497f1460a156d9c82a13b", "score": "0.586758", "text": "@Override\n protected void browseTo(final File aDirectory){\n //if we want to browse directory\n if (aDirectory.isDirectory()){\n //fill list with files from this directory\n if (aDirectory.canRead()){\n super.SetCurrentDirectory(aDirectory);\n fill(aDirectory.listFiles());\n dirEntries = super.getDirEntries();\n //set titleManager text\n TextView titleManager = (TextView) findViewById(R.id.titleManager);\n titleManager.setText(aDirectory.getAbsolutePath());\n\n boxAdapter = new BoxAdapter(this, dirEntries);\n\n // настраиваем список\n ListView lvMain = (ListView) findViewById(android.R.id.list);\n lvMain.setAdapter(boxAdapter);\n }\n }\n else {\n //open file dialog:\n DialogInterface.OnClickListener okButtonListener = new DialogInterface.OnClickListener(){\n public void onClick(DialogInterface arg0, int arg1) {\n //intent to navigate file\n Intent OpenFileIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(\"file://\" + aDirectory.getAbsolutePath()));\n //start this activity\n startActivity(OpenFileIntent);\n }\n };\n //listener when NO button clicked\n DialogInterface.OnClickListener cancelButtonListener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface arg0, int arg1) {\n //do nothing\n }\n };\n\n //create dialog\n new AlertDialog.Builder(this)\n .setTitle(getResources().getString(R.string.AcceptChoice)) //title\n .setMessage(getResources().getString(R.string.OpenFileMessage) + \"'\" + aDirectory.getName() + \"' ?\") //message\n .setPositiveButton(getResources().getString(R.string.PositiveButton), okButtonListener) //positive button\n .setNegativeButton(getResources().getString(R.string.NegativeButton), cancelButtonListener) //negative button\n .show(); //show dialog\n }\n }", "title": "" }, { "docid": "7d5995daf1e85208584666371f8780e0", "score": "0.5865919", "text": "private void fileBrowserClickHandler(String item, int index, int button) {\n unloadFile(() -> {\n if (openedFile != null) {\n openedFile.setCode(codeEditor.getText());\n }\n openedFile = currentProject.getFile(item);\n codeEditor.setText(openedFile.getCode());\n//\t\t\tcodeEditor.setLanguage(file.getLanguage().getHighlight());\n\n openedFileHash = codeEditor.getText().hashCode();\n\n saveFile.setEnabled(true);\n codeEditor.setEditable(true);\n deleteFile.setEnabled(true);\n });\n }", "title": "" }, { "docid": "e6c6c578e5213d71b9483da8bd2bdf18", "score": "0.5865399", "text": "public void updateClientList(ArrayList<String> c) {\n\t\tSystem.out.println(\"CLIENT GUI:\\tupdateClientList\");\n\t\tdisableListeners();\n\t\tselectedClientFile = null;\n\n\t\tclientFiles = new ArrayList<String>(c);\n\n\t\tString strClient[] = new String[1]; // needed to establish array type for next line\n\t\tclientFileList.setListData((String[]) clientFiles.toArray(strClient));\n\n\t\tenableListeners();\n\t}", "title": "" }, { "docid": "f5b91c89b503a10a7d04c157686f4ee8", "score": "0.58604646", "text": "public void FileSelectPC(){\n\t\tList<String> filesendlist=new ArrayList();\r\n\t\tList<String> filereceivelist=new ArrayList();\r\n\t\tFileChooser fc = new FileChooser();\r\n\t\t// fc.setInitialDirectory(\r\n\t // new File(System.getProperty(\"user.home\"))\r\n\t //new File(System.getProperty(\"C:\\\\Users\"))\r\n\t // ); \r\n\t fc.getExtensionFilters().addAll(\r\n\t new FileChooser.ExtensionFilter(\"All Files\", \"*.*\")\r\n\t // new FileChooser.ExtensionFilter(\"JPG\", \"*.jpg\"),\r\n\t // new FileChooser.ExtensionFilter(\"PNG\", \"*.png\")\r\n\t );\r\n\t \r\n\t List<File> selectedFiles = fc.showOpenMultipleDialog(null);\r\n\t if (selectedFiles != null) {\r\n\t \tfor(int i=0;i<selectedFiles.size();i++){ \r\n\t \t\t\r\n\t \t\tfilesendlist.add(selectedFiles.get(i).getAbsolutePath());\r\n\t \t\tfilereceivelist.add(selectedFiles.get(i).getName());\r\n\t \t//\tlistview.getItems().add(selectedFiles.get(i).getName()); \r\n\t \t\t\r\n\t \t\t}\r\n\t //\tStartThread st=new StartThread();\r\n\t //\tStartThread2 st2=new StartThread2();\r\n\t \t//Thread t1=new Thread(st);\r\n\t // \tThread t2=new Thread(st2);\r\n\t //\tt2.start();\r\n\t \r\n\t //\ttry {\r\n\t\t\t\t\t\t\t\t//File2();\r\n\t\t\t\t\t\t///\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t//\tSystem.out.println(\"receiver is not active\");\r\n\t\t\t\t\t\t\t//\te.printStackTrace();\r\n\t\t\t\t\t\t\t//}\r\n\t //\tt2.stop();\r\n\t \tsetFILE_TO_SEND_LIST(filesendlist);\r\n\t \tsetFILE_TO_RECEIVE_LIST(filereceivelist);\r\n\t \tstartacpt=true;\r\n\t }\r\n\t \r\n\t else {\r\n\t \t//System.out.println(\"Not selected\");\r\n\t }\r\n\t }", "title": "" }, { "docid": "33d4213445dc55cf5fe50c903ae4f109", "score": "0.5789706", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJFileChooser fileChooser = new JFileChooser();\n\t\t\t\tfileChooser.setFileFilter((FileFilter)new FileNameExtensionFilter(\"Comma Seperated Value(.csv)\",\"csv\"));\n\t\t\t\tint returnValue = fileChooser.showOpenDialog(null); \n\t\t\t\tif (returnValue == JFileChooser.APPROVE_OPTION) \n\t\t\t\t{ \n\t\t\t\t\tFile selectedFile = fileChooser.getSelectedFile();\n\t\t\t\t\ttextField.setText(selectedFile.getPath());\n\t\t\t\t\tfileList.add(selectedFile);\n\t\t\t\t\tlist.setListData(fileList.toArray(new File[fileList.size()]));\n\t\t\t\t} \n\t\t\t}", "title": "" }, { "docid": "49ef25078b7a4f1562a3f932c9a3945e", "score": "0.578557", "text": "public void listChanged() {\n }", "title": "" }, { "docid": "fe50cdc2c5db65364cfc35578f0532b2", "score": "0.57786864", "text": "@Override\r\n public void onCreate(Bundle savedInstanceState)\r\n {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.file_browser_main);\r\n\t\tlistView = (ListView) findViewById(R.id.file_list);\r\n\t\tsetupActivity();\r\n }", "title": "" }, { "docid": "b26f8414d3fd0e18f7c721d7b425c4b7", "score": "0.5772581", "text": "public void updateUI() {\n next_button.setVisibility(next_button_visibility);\n previous_button.setVisibility(previous_button_visibility);\n ListView listView = (ListView) findViewById(R.id.listview);\n final BooksAdapter adapter = new BooksAdapter(getBaseContext(), booksArrayList);\n listView.setAdapter(adapter);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Books clickedBook = adapter.getItem(position);\n //get particular book which was clicked by user\n if (clickedBook.getmLink() != null || clickedBook.getmLink() != \"\") {\n //if URL or link is not blank then open it in web browser\n Uri uri = Uri.parse(clickedBook.getmLink());\n Intent webIntent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(webIntent);\n }\n }\n });\n }", "title": "" }, { "docid": "e2171abeaad4f3f31f0aec40a7bf8215", "score": "0.5761971", "text": "@Override\n\tpublic void onDeviceFileListChanged(FunDevice funDevice) {\n\n\t}", "title": "" }, { "docid": "9fa8e4c79bee4e27b13ceb1abbb7d026", "score": "0.575166", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\n\t\t// Switches over the ID of the options menu items\n\t\tswitch (item.getItemId()) {\n\n\t\t// If Refresh is clicked\n\t\tcase R.id.otm_refresh:\n\n\t\t\t// The list adapter is refreshed\n\t\t\tfindFiles(path);\n\t\t\tadapter.notifyDataSetChanged();\n\t\t\treturn true;\n\n\t\t\t// If Import is clicked\n\t\tcase R.id.otm_import:\n\n\t\t\t// The FileBrowser activity is invoked\n\t\t\tIntent fileExploreIntent = new Intent(\n\t\t\t\t\tFileBrowser.INTENT_ACTION_SELECT_FILE, null, FileList.this,\n\t\t\t\t\tFileBrowser.class);\n\t\t\tfileExploreIntent\n\t\t\t\t\t.putExtra(FileBrowser.startDirectoryParameter, Environment\n\t\t\t\t\t\t\t.getExternalStorageDirectory().getAbsolutePath());\n\t\t\tstartActivityForResult(fileExploreIntent, 2);\n\t\t\treturn true;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2bc2807d955f96b31f28a8078cf3da53", "score": "0.57364655", "text": "private void refreshFilesInStorageView()\n\t{\n\t\tfmc.loadStorageList();\n\t\t\n\t\tFilesInStorageView = new JTable(fmc.getCustomForStorage());\n\t\tFilesInStorageView.setRowSelectionAllowed(true);\n\t\t\n\t\tFilesInStorageView.addMouseListener(new java.awt.event.MouseAdapter() {\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent e) {\n\t\t\t\tint selectedRow = FilesInStorageView.getSelectedRow();\n\t\t\t\t\n\t\t\t\tfileID = fmc.getFileID(selectedRow);\n\t\t\t\tfileName = fmc.getFileName(selectedRow);\n\t\t\t\t\n\t\t\t\tString text = (String)fmc.getCustomForStorage().getValueAt(selectedRow, 0);\n\t\t\t\t\n\t\t\t\tselected.setText(text);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Sets File Name Column width\n\t\tcolumn = FilesInStorageView.getColumnModel().getColumn(0);\n\t\tcolumn.setPreferredWidth(400);\n\t\t\n\t\t//Sets File Type Column width\n\t\tcolumn = FilesInStorageView.getColumnModel().getColumn(1);\n\t\tcolumn.setPreferredWidth(150);\n\t\t\n\t\tFilesInStorageContainer.setViewportView(FilesInStorageView);\n\t}", "title": "" }, { "docid": "62f2055c58e0a9f94f048573d48fd0d2", "score": "0.57262236", "text": "public void populateDownloadList(){\n\t\tSharedPreferences fileList = getPreferences(0);\n\t\t\n\t\tfor(Map.Entry<String, ?> r : fileList.getAll().entrySet()){\n\t\t\tURLStringWrapper url = new URLStringWrapper(setVideoUrl(r.getKey()), r.getKey());\n\t\t\tLog.d(\"debug\", \"populated downloadlist with \" + url.getFileName());\n\t\t\tfilesToDownload.add(url);\n\t\t}\n\t}", "title": "" }, { "docid": "00783b82e74a787296f809bf615553d0", "score": "0.5719499", "text": "protected synchronized void notifyDownloadListChanged(final DownloadListChangedEvent event) {\n for (final DownloadListChangedListener listener : listeners.getListeners(DownloadListChangedListener.class)) {\n listener.downloadListChanged(event);\n }\n }", "title": "" }, { "docid": "3136666415ecf3de4295eaccd2c5141b", "score": "0.571525", "text": "protected void onPostExecute(String file_url) {\n // Update the adapter\n adapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "312f653112e09be3bf5483922b7e621d", "score": "0.57147074", "text": "public void updateOpenButton(){\r\n\t\tButton openButton = (Button) findViewById(R.id.selectFileButton);\r\n\t\tif(selectedFile.equals(browser.getCurrentFile())){\r\n\t\t\topenButton.setTextColor(Color.parseColor(\"#777777\"));\r\n\t\t\topenButton.setClickable(false);\r\n\t\t}\r\n\t\telse if(selectedFile.isDirectory()){\r\n\t\t\topenButton.setTextColor(Color.parseColor(\"#777777\"));\r\n\t\t\topenButton.setClickable(false);\r\n\t\t\tbrowser.changeCurrentFile(selectedFile);\r\n\t\t\tupdateActivity();\r\n\t\t}\r\n\t\telse if(selectedFile.isFile()){\r\n\t\t\topenButton.setTextColor(Color.parseColor(\"#000000\"));\r\n\t\t\topenButton.setClickable(true);\r\n\t\t\topenButton.setText(\"Select File\");\r\n\t\t}\r\n\t\tsetOpenButtonOnClickListener();\r\n\t}", "title": "" }, { "docid": "e36f9150e8d75f68d72e3518c4dd4311", "score": "0.57132417", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString search = addressAndSearchBar.getJtfSearch().getText();\n\t\t\t\t\n\t\t\t\tFile[] files = folderPane.getFiles();\n\t\t\t\tnewFiles = new File[files.length];\n\t\t\t\t\n\t\t\t\tint newFilesCount = 0;\n\t\t\t\t\n\t\t\t\tfolderPane.getListModel().removeAllElements();\n\t\t\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\t\t\tif (files[i].getName().toLowerCase().contains(search.toLowerCase())) {\n\t\t\t\t\t\tnewFiles[newFilesCount] = files[i];\n\t\t\t\t\t\tnewFilesCount++;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfolderPane.getListModel().addElement(\n\t\t\t\t\t\t\t\tnew Object[]{(ImageIcon)fileSystemView.getSystemIcon(files[i]),\n\t\t\t\t\t\t\t\tfiles[i].getName()});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//folderPane.setFiles(newFiles);\n\n\t\t\t}", "title": "" }, { "docid": "17dfd11bbb2b2639cb36e5f30e26a491", "score": "0.5709066", "text": "public void run()\n {\n Collection files = new ArrayList (files_.keySet());\n \n for (Iterator i = files.iterator(); i.hasNext(); ) {\n File file = (File) i.next();\n long lastModifiedTime = ((Long) files_.get (file)).longValue();\n long newModifiedTime = file.exists() ? file.lastModified() : -1;\n \n // Chek if file has changed\n if (newModifiedTime != lastModifiedTime) {\n \n // Register new modified time\n files_.put (file, new Long (newModifiedTime));\n \n // Notify listeners\n for (Iterator j = listeners_.iterator(); j.hasNext(); ) {\n WeakReference reference = (WeakReference) j.next();\n FileListener listener = (FileListener) reference.get();\n \n // Remove from list if the back-end object has been GC'd\n if (listener == null)\n j.remove();\n else\n listener.fileChanged (file);\n }\n }\n }\n }", "title": "" }, { "docid": "041ad338f75cfe947a24035214da409e", "score": "0.5700852", "text": "private void updateList() {\n\t// Fetch list from ctrl, update with it\n\tloadedPresetList.setModel(PlatypusGUI.getInstance().getNewPresetList());\n }", "title": "" }, { "docid": "5d3ae38b64aaba42e4cc0641645fe451", "score": "0.5686566", "text": "public void changeViewFile(String s){\n for(FileChangeListener item : listener)\n item.fileChange(s);\n }", "title": "" }, { "docid": "24c2bc588050aaf558eb283a29a949e1", "score": "0.5679662", "text": "private void updateStatus() {\n\t\tupdateStatus(flabotFileSelectionStatus);\n\t}", "title": "" }, { "docid": "1051f43649e5882da6f027b1c1c0140d", "score": "0.56771415", "text": "private void updateList() {\n Log.d(\"Size: \", Integer.toString(selecteditems.size()));\n if (selecteditems.size() > 0) {\n Log.d(\"URL1: \", selecteditems.get(0).getpictureurl());\n }\n CustomAdapter adapter = new CustomAdapter(this, selecteditems);\n listView.setAdapter(adapter);\n getTotalPrice();\n }", "title": "" }, { "docid": "38b93e79701371831f649c351ce64e3a", "score": "0.56671655", "text": "private void updateFiles() {\n try {\n node.clearEntries();\n FileManager fm = new FileManager(node.getShare(), node);\n fm.distributeFiles();\n\n } catch (RemoteException ex) {\n Log.addMessage(\"Remote exception. Continue\", Log.ERROR);\n }\n }", "title": "" }, { "docid": "02fcde27c6e47daaf6bc5a3467b9ced4", "score": "0.5666658", "text": "private void updateFileTableListGUI(ArrayList<ProgramState> currentProgramStates){\n ProgramState state = currentProgramStates.stream()\n .filter(p -> p.getId() == program_id)\n .findAny()\n .orElse(null);\n\n FIleTableGUI.getItems().clear();\n state.getFileTable().getContent().keySet().stream()\n .forEach(f -> FIleTableGUI.getItems().add(f));\n }", "title": "" }, { "docid": "0b2f1490423190bd61ab5c50052f7ba2", "score": "0.5649048", "text": "FileShare.Update update();", "title": "" }, { "docid": "5633b26a609346c1524bab5c16baaad1", "score": "0.56341463", "text": "public void update() {\n\t\tdone = false;\n\t\tgoBack = false;\n\t\tint i = 0;\n\t\tString filename = \"src/game/savedgames/savedgame_\";\n\t\tArrayList<String> items = new ArrayList<String>();\n\t\tString t = \"\";\n\t\tScanner scan = null;\n\t\tFile file = new File(filename + i);\n\t\twhile(file != null && file.exists()) {\n\t\t\ttry {\n\t\t\t\tt = \"\";\n\t\t\t\tscan = new Scanner(file);\n\t\t\t\tt += scan.nextLine() + \" \" + scan.nextLine();\n\t\t\t\titems.add(t);\n\t\t\t\tt = \"\";\n\t\t\t\twhile(scan.hasNextLine())\n\t\t\t\t\tt += scan.nextLine() + '\\n';\n\t\t\t\tgames.add(t);\n\t\t\t\ti++;\n\t\t\t\tfile = new File(filename + i);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tfile = null;\n\t\t\t} catch (NoSuchElementException e) {\n\t\t\t\tSystem.out.println(\"Invalid game file: \" + filename + i);\n\t\t\t}\n\t\t}\n\t\tif(!items.isEmpty()) {\n\t\t\tString[] arr = new String[items.size()];\n\t\t\ti = 0;\n\t\t\tfor(String s : items)\n\t\t\t\tarr[i++] = s;\n\t\t\tSystem.out.println(items.size() + \" saved game\" + ((items.size()==1)?\"\":\"s\"));\n\t\t\tfor(String s : arr)\n\t\t\t\tSystem.out.println(s);\n\t\t\tlist.setItems(arr);\n\t\t}\n\t\tload.setEnabled(!items.isEmpty());\n\t\t\t\n\t}", "title": "" }, { "docid": "f98faac9c6ef59fa71f85e1cda8963e8", "score": "0.56299037", "text": "@FXML\n\tpublic void attachFilesWasPressed(ActionEvent event) {\n\t\tFileChooser fileChooser = new FileChooser();\n\t\tselectedFiles = fileChooser.showOpenMultipleDialog(null);\n\t\tif (selectedFiles != null) {\n\t\t\tfor (int i = 0; i < selectedFiles.size(); i++)\n\t\t\t\tlistView.getItems().add(selectedFiles.get(i).getName());\n\n\t\t} else {\n\t\t\tSystem.out.println(\"no files were selected\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "c848fdc5a0b305939852bb6d0ea624a7", "score": "0.5628401", "text": "private void refreshList(final Runnable runnable) {\n (new Thread(new Runnable() {\n @Override\n public void run() {\n mItems = getFileListAsItems();\n if (runnable != null && getActivity() != null)\n getActivity().runOnUiThread(runnable);\n }\n })).start();\n }", "title": "" }, { "docid": "e888179827c82635d379abac86cd7454", "score": "0.5623302", "text": "public void actionPerformed(ActionEvent ev)\n {\n int index = fileList.getSelectedIndex();\n\t File selectedFile = (File)openedFiles.elementAt(index);\n\t openedFiles.remove(selectedFile);\n\t fileList.setListData(openedFiles);\n\t statusBar.setText(\"CryptoPad\");\n\t}", "title": "" }, { "docid": "7b997853f6184561906ee32e3b4bbc46", "score": "0.56169456", "text": "@Override\n\t\tpublic void mouseClicked(final MouseEvent evt) {\n\t\t\tif ((this.list != null) && SwingUtilities.isLeftMouseButton(evt) && (evt.getClickCount() == 2)) {\n\t\t\t\tfinal int index = SwingCommonsUtilities.loc2IndexFileList(this.list, evt.getPoint());\n\n\t\t\t\tif (index >= 0) {\n\t\t\t\t\tfinal FileObject f = (FileObject) this.list.getModel().getElementAt(index);\n\n\t\t\t\t\tif (BasicVFSFileChooserUI.this.getFileChooser().isTraversable(f)) {\n\t\t\t\t\t\tthis.list.clearSelection();\n\t\t\t\t\t\tBasicVFSFileChooserUI.this.changeDirectory(f);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tBasicVFSFileChooserUI.this.getFileChooser().approveSelection();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "960b6852a469e18ca7ba3017f7cada1a", "score": "0.5614933", "text": "@Override\n public void run() {\n mExternalMusicInfoList = LocalMusicUtil.getMusicInfoList(getContext(),\n MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,MediaStore.Audio.Media.DEFAULT_SORT_ORDER);\n mHandler.sendEmptyMessage(ConstantValues.DISPLAY_DEFAULT_LOCAL_MUSIC_FILES);\n SharedPreferencesUtil.putInteger(\n getContext(), ConstantValues.LOCAL_MUSIC_FILE_COUNT, mExternalMusicInfoList.size());\n }", "title": "" }, { "docid": "875ece07c725fe739f239702b95326ec", "score": "0.5607853", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n receiveGetFile(document_urls.get(i));\n\n// Intent nextscreen5 = new Intent(getApplicationContext(), DocumentPlay.class);\n// nextscreen5.putExtra(\"DOCUMENT_URL\", document_urls.get(i));\n// startActivity(nextscreen5);\n }", "title": "" }, { "docid": "f238b5b8fe5e5ca26344ee8acb5a87e4", "score": "0.5606428", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfor(File s:list.getSelectedValuesList()){\n\t\t\t\t\tfileList.remove(s);\n\t\t\t\t}\n\t\t\t\tlist.setListData(fileList.toArray(new File[fileList.size()]));\n\t\t\t}", "title": "" }, { "docid": "c0af865c7da78385e38ddff1ba7e3294", "score": "0.5584078", "text": "private void updateUI() {\n \topenBISURLList.setSelectedItem(manager.getServer());\n \tacqStationsList.setSelectedItem(manager.getSettingValue(\"AcquisitionStation\"));\n \tacceptSelfSignedCertsList.setSelectedItem(manager.getSettingValue(\"AcceptSelfSignedCertificates\"));\n \tuserdirButton.setText(manager.getSettingValue(\"UserDataDir\"));\n \tdirButton.setText(manager.getSettingValue(\"DatamoverIncomingDir\"));\n \t\n \t// Enable/disable buttons\n \ttoggleDynamicWidgets();\n\n }", "title": "" }, { "docid": "90b56c9a588b9c2fe02282b2a197c334", "score": "0.55833787", "text": "public void addWatcher() {\n final String bluetoothDir = Storage.read(Constants.BLUETOOTH_DIR);\n Log.i(\"WATCHING\", bluetoothDir);\n\n final Handler handler = new Handler();\n observer = new FileObserver(bluetoothDir) {\n @Override\n /*DETECTING BLUETOOTH TRANSFER*/\n public void onEvent(int event, final String fileName) {\n Log.i(\"EVENT\", String.valueOf(event));\n if (event == CLOSE_WRITE) {\n /*when transfer (write operation) is complete...*/\n Log.i(\"fileName\", fileName);\n handler.post(new Runnable() {\n @Override\n public void run() {\n //remember recent file\n //currently, automatically going to form doesn't work\n recent = bluetoothDir + '/' + fileName;\n\n //TODO : check is valid tag file\n //goToForm(recent);\n }\n });\n }\n }\n };\n\n observer.startWatching();\n }", "title": "" }, { "docid": "dd4967b056209bf94589c6aadaeedb7e", "score": "0.5581376", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString search = addressAndSearchBar.getJtfSearch().getText();\n\n\t\t\t\tFile[] files = folderPane.getFiles();\n\t\t\t\tnewFiles = new File[files.length];\n\t\t\t\t\n\t\t\t\tint newFilesCount = 0;\n\t\t\t\t\n\t\t\t\tfolderPane.getListModel().removeAllElements();\n\t\t\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\t\t\tif (files[i].getName().toLowerCase().contains(search.toLowerCase())) {\n\t\t\t\t\t\tnewFiles[newFilesCount] = files[i];\n\t\t\t\t\t\tnewFilesCount++;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfolderPane.getListModel().addElement(\n\t\t\t\t\t\t\t\tnew Object[]{(ImageIcon)fileSystemView.getSystemIcon(files[i]),\n\t\t\t\t\t\t\t\tfiles[i].getName()});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//isSearch = true;\n\t\t\t\tfolderPane.setFiles(newFiles);\n\n\t\t\t}", "title": "" }, { "docid": "344ce0dd994a2c2169fdc7c5ad2e550b", "score": "0.5567121", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_file_browser);\n\t\t\n\t\ttry {\n\t\t\t\n LvList = (ListView) findViewById(R.id.LvList);\n BtnCancelRestore = (Button) findViewById(R.id.BtnCancelRestore);\n \n LvList.setOnItemClickListener(this); \n BtnCancelRestore.setOnClickListener(this); \n setCurrentPath(Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\");\n \n } catch (Exception ex) {\n Toast.makeText(this,\n \"Error in OpenFileActivity.onCreate: \" + ex.getMessage(),\n Toast.LENGTH_SHORT).show();\n }\n\t}", "title": "" }, { "docid": "d57a97d15caeca75ff582216f6a04cb7", "score": "0.55561775", "text": "@Override\n public void widgetSelected(SelectionEvent e) {\n newFile();\n }", "title": "" }, { "docid": "6f7ddd6a50e9318221c5e12912b96946", "score": "0.5550572", "text": "@FXML\n\tpublic void addFilesWasPressed(ActionEvent event) {\n\t\tbrowseFiles.setVisible(true);\n\t\tif (listView.getItems() != null)\n\t\t\tlistView.getItems().clear();\n\t\tif (selectedFiles != null)\n\t\t\tselectedFiles = null;\n\n\t}", "title": "" }, { "docid": "25e671c932230ba7a1c9ae0c5ec2e457", "score": "0.55493134", "text": "private void updateListBox(){\r\n\t\tWrite w = new Write();\r\n\t\tString [][] lines = null;\r\n\t\tgui.getRecentModel().removeAllElements();\r\n\t\ttry {\r\n\t\t\tlines=w.getAllSettingsFromFile();\r\n\t\t\tcon.setRecords(lines);\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"IO Error \"+e.getMessage());\r\n\t\t}\r\n\t\tfor (int i = 0; i < lines.length; i++) {\r\n\t\t\tgui.getRecentModel().addElement(lines[i][0]+\" \"+lines[i][1]);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8f6db1b730d89eac4c4437cfd366c1a7", "score": "0.55431193", "text": "private void displayFiles() {\n // Determine Import mode.\n ImportMode mode = (ImportMode) getIntent().getSerializableExtra(\n ImportMode.class.toString());\n\n // Saves the file names returned by the MapFileHandler class.\n String[] files = null;\n\n switch (mode) {\n case IMPORT_MAP:\n // Get all the map files (.sep).\n files = MapFileHandler.getMapFileList();\n break;\n case SIMULATION_MAP:\n // Get all the simulator configurations (.sim).\n files = MapFileHandler.getSimFileList();\n break;\n }\n // If files equals null then storage is not readable.\n if (files == null) {\n displayMessage(getString(R.string.ERR_MSG_STORAGE_NOT_READABLE), true);\n } else {\n fileList = new ArrayAdapter<String>(this, R.layout.list_item, files);\n lsMaps.setAdapter(fileList);\n }\n }", "title": "" }, { "docid": "59664c77b5a1cf54c7a9e7d89303cbfd", "score": "0.55417436", "text": "protected void onPostExecute(String file_url) \r\n {\n CDialog.dismiss(); \r\n // updating UI from Background Thread\r\n runOnUiThread(new Runnable() \r\n {\r\n \r\n\r\n\t\t\t\tpublic void run() \r\n {\r\n\t\t\t\t\t\r\n \r\n ListAdapter adapter = new SimpleAdapter(Offline_Coaches.this, CoachesList,R.layout.coaches_entry, new String[] {\"id\",\"nametext\",\"Name\",\"test\",\"Age\"}, new int[] {R.id.Id, R.id.Name,R.id.Age,R.id.test1,R.id.test2});\r\n // updating listview\r\n setListAdapter(adapter);\t\r\n }\r\n }); \r\n ListView list = getListView();\r\n \r\n \tlist.setOnItemClickListener(new OnItemClickListener() \r\n \t{\r\n \t\t@Override\r\n \t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) \r\n \t\t{\r\n \t\t\t// getting values from selected ListItem\r\n \t\t\tTextView id1 = ((TextView) view.findViewById(R.id.Id));\r\n \t\t\tString id2 = id1.getText().toString();\r\n \t\t\t// Starting new intent\r\n \t\t\tIntent in = new Intent(getApplicationContext(),Offline_Coaches_View.class);\r\n \t\t\t// sending pid to next activity\r\n \t\t\tin.putExtra(\"age\", age);\r\n \t\t\tin.putExtra(\"id\", id2);\t\t\r\n \t\t\t// starting new activity and expecting some response back\r\n \t\t\tstartActivity(in);\r\n \t\t}\t\r\n \t});\r\n\r\n\r\n \t\r\n }", "title": "" }, { "docid": "a3f18832aad60819104f1fe24bbdc3c6", "score": "0.5527539", "text": "private void updateList() {\n\t\tDefaultListModel<String> listModel = (DefaultListModel<String>) listOfNotes.getModel();\n\t\tlistModel.removeAllElements();\n\n\t\tdispayAllNotes();\n\t}", "title": "" }, { "docid": "a0fcc2044f608a2d17686945d63b1a2d", "score": "0.55175275", "text": "public JList getList(){\r\n\t\treturn fileList;\r\n\t}", "title": "" }, { "docid": "4df46b33b3c314db2cba55e83afb9fef", "score": "0.5513916", "text": "void onFileNameChanged();", "title": "" }, { "docid": "0084abfa857f8802e64e17b9af752fe8", "score": "0.55067927", "text": "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tthis.dialog.setMessage(\"обновление списка...\");\n\t\t\t\tthis.dialog.show();\n\t\t\t}", "title": "" }, { "docid": "767af609675bdbbbbffd9500a461e92d", "score": "0.54780436", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n btnUpload = new javax.swing.JButton();\n btnDownload = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jlistFiles = new javax.swing.JList();\n jLabel1 = new javax.swing.JLabel();\n jLabelSel = new javax.swing.JLabel();\n lblSelectedFile = new javax.swing.JLabel();\n\n setPreferredSize(new java.awt.Dimension(380, 250));\n\n btnUpload.setText(\"Dosya Yükle\");\n btnUpload.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnUploadActionPerformed(evt);\n }\n });\n\n btnDownload.setText(\"İndir\");\n btnDownload.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDownloadActionPerformed(evt);\n }\n });\n\n jlistFiles.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n jlistFilesValueChanged(evt);\n }\n });\n jScrollPane1.setViewportView(jlistFiles);\n\n jLabel1.setText(\"Dosyalar\");\n\n jLabelSel.setText(\"Seçili Dosya:\");\n\n lblSelectedFile.setText(\"None\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelSel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblSelectedFile)))\n .addGap(0, 433, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnUpload, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnDownload)))\n .addContainerGap())\n );\n\n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnDownload, btnUpload});\n\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelSel)\n .addComponent(lblSelectedFile))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnUpload)\n .addComponent(btnDownload))\n .addContainerGap())\n );\n\n layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnDownload, btnUpload});\n\n jLabel1.getAccessibleContext().setAccessibleName(\"jLabelFiles\");\n }", "title": "" }, { "docid": "36fa9032c341b734a0fd0f13a4d9677c", "score": "0.5477045", "text": "private void refreshRecentMediaList() {\n // start the progress bar and disable the take button\n final RelativeLayout progressBar = findViewById(R.id.media_preview_progress_bar_layout);\n progressBar.setVisibility(View.VISIBLE);\n mTakeImageView.setEnabled(false);\n mTakeImageView.setAlpha(ViewUtilKt.UTILS_OPACITY_HALF);\n\n mMediaStoreMediaList.clear();\n\n // run away from the UI thread\n mFileHandler.post(new Runnable() {\n @Override\n public void run() {\n // populate the image thumbnails from multimedia store\n final List<MediaStoreMedia> medias = listLatestMedias();\n\n // update the UI part\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mMediaStoreMediaList.addAll(medias);\n buildGalleryTableLayout();\n progressBar.setVisibility(View.GONE);\n mTakeImageView.setEnabled(true);\n mTakeImageView.setAlpha(ViewUtilKt.UTILS_OPACITY_FULL);\n }\n });\n }\n });\n }", "title": "" }, { "docid": "b23eaa8c108e54c39381c46a1c3dcc57", "score": "0.5476475", "text": "public void refreshTaskList() {\n\n final Context context = getActivity().getApplicationContext();\n db = new DBHelper(context);\n //Check if the database exist in the path\n /*\n File database = getContext().getDatabasePath(DBHelper.DB_NAME);\n if(database.exists()){\n db.getReadableDatabase();\n if(copyDatabase(context)){\n\n db.getReadableDatabase();\n if(copyDatabase(context)){\n Toast.makeText(context, \"Copy database success\", Toast.LENGTH_LONG).show();\n }else {\n Toast.makeText(context, \"Copy data error\",Toast.LENGTH_LONG).show();\n return;\n\n }\n }\n }*/\n //See which tab the UI is showing and call functions to either get the list as\n // rating or date\n if(currentTabTag.equals(\"Highest Rated\"))\n myTaskList = db.getMoviebyRating();\n else\n myTaskList = db.getMoviebyDate();\n\n //create adapter and set it in the ListView widget\n TaskAdapter adapter = new TaskAdapter(context,myTaskList);\n taskListView.setAdapter(adapter);\n //When the item in the list is pressed it would pass the list and the item number to\n //MovieUpdate class\n taskListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n public void onItemClick(AdapterView<?> myAdapter, View myView, int myItemInt, long mylng) {\n\n String MovieName = myTaskList.get(myItemInt).getMovie_name();\n String MovieDate = myTaskList.get(myItemInt).getMovie_date();\n float MovieRate = myTaskList.get(myItemInt).getMovie_rate();\n\n Intent movieUpdate = new Intent(context,MovieUpdate.class);\n movieUpdate.putExtra(\"moviename\",MovieName);\n movieUpdate.putExtra(\"moviedate\", MovieDate);\n movieUpdate.putExtra(\"movierate\", MovieRate);\n startActivity(movieUpdate);\n }\n });\n\n }", "title": "" }, { "docid": "630c1af50d54455f20cec8fe11259c8d", "score": "0.5476128", "text": "@Override\r\n\t\t\tpublic void onSuccess(GWTFolder result) {\n\t\t\t\ttry {\r\n\t\t\t\t\tactualItem.setUserObject(result); // Updates folder object with last values\r\n\t\t\t\t\tevaluesFolderIcon(actualItem); // Ensures to contemplate any security\r\n\t\t\t\t\t// folder privileges change refresh\r\n\t\t\t\t\tgetChilds(path);\r\n\t\r\n\t\t\t\t\t// Case not resets always must show tabfolder properties\r\n\t\t\t\t\tif (!reset) {\r\n\t\t\t\t\t\t// Case exists a selected row must mantain other case mus show\r\n\t\t\t\t\t\t// folder properties on tab\r\n\t\t\t\t\t\tif (Main.get().mainPanel.desktop.browser.fileBrowser.isSelectedRow()) {\r\n\t\t\t\t\t\t\tMain.get().mainPanel.desktop.browser.fileBrowser.mantainSelectedRow();\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tshowTabFolderProperties();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tshowTabFolderProperties();\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tMain.get().mainPanel.desktop.browser.fileBrowser.refresh(path);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tfileBrowserRefreshDone();\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "f233f3ba9dafe222de99558bba62ac10", "score": "0.54748577", "text": "void update(CoFile dir) {\n dirChoice.setEnabled(false);\n fileList.setEnabled(false);\n (new Thread(new Update(dir))).start();\n }", "title": "" }, { "docid": "2f10264a99a021b6afc99e7bab0d14c9", "score": "0.54747796", "text": "public void fileChanged() \r\n { dirty = true;\r\n if (Environment.isApplet())\r\n Environment.getEnvironment().writeStatus();\r\n }", "title": "" }, { "docid": "cf99eb525e4b487b6bcd62d25f85c84a", "score": "0.5466394", "text": "@FXML\r\n private void addFiles(MouseEvent event) {\n FileChooser chooser = new FileChooser();\r\n if (openTabs.get(currentTab).file != null) {\r\n chooser.setInitialDirectory(openTabs.get(currentTab).file.getParentFile());\r\n }\r\n List<File> files = new ArrayList(chooser.showOpenMultipleDialog(codeInput.getScene().getWindow()));\r\n if (files.size() > 0) {\r\n for (File f : files) {\r\n String filepath = f.getAbsolutePath();\r\n if (!openTabs.get(currentTab).extraFiles.contains(filepath)) {\r\n openTabs.get(currentTab).extraFiles.add(filepath);\r\n codeOutput.appendText(\"Added \" + filepath + \"\\n\");\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "adb04082ab6d86940dd2929dc7f32b57", "score": "0.5453828", "text": "public void updateViewFromList() {\n if (PodcastApplication.getNewfeedList() != null) {\n xmlAdapter = new XmlFeedAdapter(getApplicationContext(), R.layout.itemlista, PodcastApplication.getNewfeedList(), this);\n this.listView.setAdapter(xmlAdapter);\n }\n }", "title": "" }, { "docid": "b75f97633e4831583a85f35763fc6316", "score": "0.5444573", "text": "FileShare refresh(Context context);", "title": "" }, { "docid": "77b8bcdea4bcac95f78a22bd2572b67c", "score": "0.5439604", "text": "private void openButtonClicked() {\n DirectoryChooser directoryChooser = new DirectoryChooser();\n\n currentDirectory = directoryChooser.showDialog(window);\n if (currentDirectory != null) {\n setAction(currentDirectory);\n }\n imgFiles = directoryImageFile;\n setImageListView(imgFiles);\n }", "title": "" }, { "docid": "28a18d446cfb22301129299029401c0d", "score": "0.54394835", "text": "public void observer() {\n\n FileObserver fobsv = new FileObserver(\"/storage/emulated/0/lvmh/\") {\n\n @Override\n public void onEvent(int event, String path) {\n\n // On every event we will have a new image in our application\n // we will only keep 3 , we will make copy of all images for backup and upload on google drive\n // if we are more or equal then 3 , Sync server will delete , this will happen in loop\n if((event == CREATE) || (event == MODIFY) ){\n\n Log.d(\"LVMH - \", path);\n File file = new File(android.os.Environment.getExternalStorageDirectory(), \"Lvmh\");\n\ntry {\n setDrawableImage(file.listFiles().length, false);\n}catch (OutOfMemoryError e)\n{\n e.printStackTrace();\n}\n }\n }\n };\n fobsv.startWatching();\n\n }", "title": "" }, { "docid": "3559afce1a29e26369d5f609c1f41cf0", "score": "0.5435575", "text": "private void loadListView()\n\t{\n\t\tFile file = new File(Environment.getExternalStorageDirectory() + File.separator +\n\t\t\t \"Notey\");\n\t\tnotesList = getListFiles(file);\n\t\tString[] theNamesOfFiles = new String[notesList.size()];\n\t\tfor (int i = 0; i < theNamesOfFiles.length; i++) {\n\t\t\t theNamesOfFiles[i] = notesList.get(i).getName();\n\t\t\t}\n\t\tadapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, theNamesOfFiles);\n\t}", "title": "" }, { "docid": "1214787b9e604e6539a1c49f0c81ae76", "score": "0.5425649", "text": "private void updateListView() {\n // update the current unit in AppState\n Unit unit = AppState.getInstance().getCurrentUnit();\n unit = AppState.getInstance().getDatabaseHelper().getUnit(unit.getUnitId(), true);\n AppState.getInstance().setCurrentUnit(unit);\n\n // get the voclist and redraw listview\n voclist = unit.getVoclist();\n voclistCustomAdapter.setVoclist(voclist); // daten in unitlistCustomAdapter setzen\n listView.invalidateViews(); // listView neu zeichnen\n }", "title": "" }, { "docid": "92811757abd015e2113b87798fc828fe", "score": "0.5423508", "text": "@Override\n public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> filePathCallback, WebChromeClient.FileChooserParams fileChooserParams) {\n uploadMessageAboveL = filePathCallback;\n openImageChooserActivity();\n return true;\n }", "title": "" }, { "docid": "9961ed5c805e3315c88bfed78d02277d", "score": "0.54198515", "text": "public void audioList() {\n\t\tgetFile(MUSICPATH);\n//\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,main.audioList);\n//\t\tlocalmusicList = (ListView)findViewById(R.id.localmusicList);\n//\t\tlocalmusicList.setAdapter(adapter);\n//\t\tlocalmusicList.setOnItemClickListener(new OnItemClickListener(){\n//\t\t\tpublic void onItemClick(AdapterView<?>listView,View view,int position,long id){\n//\t\t\t\tmain.currentItem = position;\n//\t\t\t\tmain.play(main.audioList.get(main.currentItem));\n//\t\t\t}\n//\t\t});\n\t}", "title": "" }, { "docid": "a440de614bbe0a123bcd14e77af28114", "score": "0.54181236", "text": "private void updateList() {\n list.getItems().clear();\n for (String s : theController.getSpaceList()) {\n list.getItems().add(s);\n }\n if (mainText != null) {\n setDefaultMainText();\n }\n }", "title": "" }, { "docid": "b078a762fb16db9cef09cd733ce5206d", "score": "0.5414062", "text": "@FXML\n public void OpenFile()throws Exception\n {\n FileChooser fc=new FileChooser();\n List<File> list_of_files=fc.showOpenMultipleDialog(lv.getScene().getWindow());\n if(list_of_files!=null){\n Iterator file_iterator=list_of_files.iterator();\n String paths=\"\";\n while(file_iterator.hasNext())\n {\n paths+=file_iterator.next()+\"\\r\\n\";\n }\n\n\n FileImporter fi=new FileImporter(paths);\n pb.progressProperty().bind(fi.progressProperty());\n info_label.textProperty().bind(fi.messageProperty());\n\n Thread file_worker=new Thread(fi);\n\n file_worker.setDaemon(true);\n file_worker.start();\n }\n \n\n\n }", "title": "" }, { "docid": "42df48e882af4910b4dfacd07f37befa", "score": "0.54111207", "text": "public void actionPerformed(ActionEvent e) {\n if ( tfPath.getText() != null ) {\n File current = new File(tfPath.getText());\n if (current.exists()) {\n jfc.setSelectedFile( current );\n } else {\n jfc.setCurrentDirectory( new File(System.getProperty(\"user.home\")) );\n }\n }\n // Operate browsing\n// if (e.getActionCommand().equals(\"browse\")) {\n jfc.setDialogTitle(jfcTitle);\n if (jfc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n // Some new path have been selected\n String prev = tfPath.getText();\n tfPath.setText( jfc.getSelectedFile().getAbsolutePath() );\n firePropertyChange(\"path\", prev, tfPath.getText());\n }\n// }\n }", "title": "" }, { "docid": "5b1c74e7ea5cd2c96d26be6b76079b9f", "score": "0.54041064", "text": "public void fileOpened()\n\t{\n\t\tsetTitle(PROG_NAME+controller.getCurrentFile().getName());\n\t\topenItem.setEnabled(false);\n\t\tcloseItem.setEnabled(true);\n\t\tsaveItem.setEnabled(true);\n\t\tcritTitleItem.setEnabled(true);\n\t\tedTitleItem.setEnabled(true);\n\t\tedConsultItem.setEnabled(true);\n\t\tcopyItem.setEnabled(true);\n\t\tcutItem.setEnabled(true);\n\t\tpasteItem.setEnabled(true);\n\t\teditTransItem.setEnabled(true);\n\t\teditNormItem.setEnabled(true);\n\t\tmasterIDItem.setEnabled(true);\n\t\tinsertEdItem.setEnabled(true);\n\t\tremoveEditionItem.setEnabled(true);\n\t\tinsertDiscItem.setEnabled(true);\n\t\tfor(int n=0;n<RECENT_FILE_SIZE;n++)\n\t\t\trecentFileItems[n].setEnabled(false);\n\t}", "title": "" }, { "docid": "0663f53af239d66c28435100808a9a72", "score": "0.5403968", "text": "private void updateServerBrowser() {\n serverAdapter.notifyDataSetChanged();\n\n if (serverList.size() == 0) {\n failedToLoadServersText.setText(\"No servers to match filter\");\n } else {\n failedToLoadServersText.setText(\"\");\n }\n }", "title": "" }, { "docid": "bef0ece1fb41605d929e4a2526d3ca2d", "score": "0.5403934", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.action_file_update:\n\t\t\tupdateActionHandler();\n\t\t\treturn true;\n\t\tcase android.R.id.home:\n\t\t\tNavUtils.navigateUpTo(this,\n\t\t\t\t\tnew Intent(this, FileListActivity.class));\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "title": "" }, { "docid": "259b95a783fe5f4a4fbc561d3095bfb5", "score": "0.539885", "text": "@Override\n public void handle(ActionEvent e) {\n DirectoryChooser chooser = new DirectoryChooser();\n chooser.setTitle(\"Open Project\");\n File f = chooser.showDialog(stage);\n\n if(f!=null && f.isDirectory()){\n pathDirectory = f.getAbsolutePath();\n File build = new File(f.getAbsolutePath()+File.separator+f.getName()+\".build\");\n //System.out.println(build.toString());\n if(build.exists()){\n try{\n String res = \"\";\n List<String> collect = Files.lines(build.toPath()).collect(Collectors.toList());\n if(collect.size()==2){\n int num = Integer.valueOf(collect.remove(0));\n for (String s : collect) {\n res+=s;\n }\n l.setStateJsonLiss(num);//,tab);\n we.executeScript(\"getStateJson()\");\n l.setJsonLiss(res);\n //System.out.println(l.getJSON());\n\n //wv.getEngine().reload();\n JSObject jsobj = (JSObject) we.executeScript(\"window\");\n jsobj.setMember(\"liss\", l);\n we.executeScript(\"loadTreeJSON()\");\n }\n }catch (IOException i){\n i.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "15b44825de3ae8bcac17633b51a769b6", "score": "0.5393588", "text": "@Override\n\tpublic void onListUpdate()\n\t{\n\t\tthis.cacheNeedsUpdate = true;\n\t}", "title": "" }, { "docid": "27b1d0a64906cd5777a02585c1d6f689", "score": "0.5393125", "text": "protected void onPostExecute(String file_url) {\n\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tListAdapter adapter = new MyCustomAdapter\n\t\t\t\t\t\t\t(ScoreTestActivity.this,\n\t\t\t\t\t\t\tR.layout.save_score_item, itemlist);\n\t\t\t\t\t\n\t\t\t\t\tsetListAdapter(adapter);\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\n\t\t}", "title": "" }, { "docid": "ee40f88808b08ddee658f8f82abe5c1e", "score": "0.53883547", "text": "private void onItemOpenClick(ActionEvent e){\r\n /* Exact same functionality as clicking the browse files button */\r\n FileExplorerController.getInstance().onBtnBrowseFilesClick(e);\r\n }", "title": "" }, { "docid": "5a8b00e62817da5e0ddeeb6b3766cbb9", "score": "0.5385009", "text": "public void openFileChooser(ValueCallback<Uri> uploadMsg) {\n openFileChooser(uploadMsg, \"\");\n }", "title": "" }, { "docid": "c62783b36ab30cc9b5c004cbedd3e2db", "score": "0.53849995", "text": "private synchronized void updateUI() {\n if (scanResultModel == null) {\n return;\n }\n progressBar.setProgress((int) progressPercentage);\n loadingTextView.setText((int)progressPercentage + \"% complete\");\n infoLayout.removeAllViews();\n shareTextBuilder = new StringBuilder();\n List<MyFile> files = scanResultModel.getMyFileList();\n long averageSIze = scanResultModel.getAverageFileSize();\n Map<String, Integer> extFreq = scanResultModel.getSortedExtensionFrequencyMap();\n addAverageFileSize(averageSIze, infoLayout);\n addBiggestFilesinfo(files, infoLayout);\n addFrequentExtension(extFreq, infoLayout);\n }", "title": "" }, { "docid": "b1c1ed4bce67e5684910337fdcf847c1", "score": "0.538158", "text": "private void refreshListView2() {\n }", "title": "" }, { "docid": "2d65a103e4a01d00b0698688f58a6a9d", "score": "0.5378747", "text": "public void update()\n\t{\n\t\tthis.getRemoveButton().setEnabled((this.dataBase.getNoOfMovies()>0));\n\t\tthis.movieList.setListData(this.dataBase.toList());\n\t}", "title": "" }, { "docid": "aa8e4c5ea081b3b9a0dce1ae9e4089b4", "score": "0.5377568", "text": "private void updateUi(final List<NewsStory> newsStoryList) {\n\n // Add data in newsStoryList to our adapter\n // Note: Comment this out to test empty state\n mAdapter.addAll(newsStoryList);\n\n // Find the ListView\n mNewsStoryListView = (ListView) findViewById(R.id.list);\n\n // Set the adapter on the ListView\n // so the list can be populated in the ui\n mNewsStoryListView.setAdapter(mAdapter);\n // Make list view items do stuff when clicked\n mNewsStoryListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n // Do this stuff when list view item clicked\n // Get current NewsStory object\n NewsStory currentNewsStory = newsStoryList.get(position);\n\n // Get web url from current news story\n String currentNewsStoryWebUrl = currentNewsStory.getWebUrl();\n // Parse url string to uri\n Uri webUrlUri = Uri.parse(currentNewsStoryWebUrl);\n // Open uri in browser with intent\n // Create intent to open url converted to uri\n Intent newsStoryIntent = new Intent(Intent.ACTION_VIEW, webUrlUri);\n // If there's an app available that can open the url, do it\n if (newsStoryIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(newsStoryIntent);\n }\n }\n });\n }", "title": "" } ]
25327a8a15ec0337925d7f1406fc4653
This method to update user record
[ { "docid": "9870d904c8be37ee316888df29841327", "score": "0.0", "text": "public void updateUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_USERNAME, user.getName());\n values.put(COLUMN_EMAIL, user.getEmail());\n values.put(COLUMN_PASSWORD, user.getPassword());\n\n // updating row\n db.update(TABLE_NAME, values, COLUMN_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }", "title": "" } ]
[ { "docid": "f785c8e23f4c6ed36fb520d8e3bc8ac7", "score": "0.80368865", "text": "@Override\r\n\tpublic void updateUser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "78092a0fdfd3f825aabc3a37bc67b64e", "score": "0.79460657", "text": "public void updateUser() {\n userDAO.updateUser(user);\n cancelUser();\n }", "title": "" }, { "docid": "2620be3a95699650ae2fa0f273f5b0b8", "score": "0.7934895", "text": "public void updateUser(User user);", "title": "" }, { "docid": "084b66a8c3d4885bb3cf8b1c6bf8e4d2", "score": "0.7895075", "text": "void updateUser(User user);", "title": "" }, { "docid": "084b66a8c3d4885bb3cf8b1c6bf8e4d2", "score": "0.7895075", "text": "void updateUser(User user);", "title": "" }, { "docid": "084b66a8c3d4885bb3cf8b1c6bf8e4d2", "score": "0.7895075", "text": "void updateUser(User user);", "title": "" }, { "docid": "084b66a8c3d4885bb3cf8b1c6bf8e4d2", "score": "0.7895075", "text": "void updateUser(User user);", "title": "" }, { "docid": "084b66a8c3d4885bb3cf8b1c6bf8e4d2", "score": "0.7895075", "text": "void updateUser(User user);", "title": "" }, { "docid": "b8c72c3756919012870225e882fab1d5", "score": "0.7894608", "text": "@Override\r\n\tpublic void updateUser(User user) {\n\t\t\r\n\t}", "title": "" }, { "docid": "3f49a8eb11bdb152a4c9c6ee6f674dc0", "score": "0.7880232", "text": "public void updateUser(User userToUpdate);", "title": "" }, { "docid": "ef01ea4ef2fbebcaf71ee17a5fb99a92", "score": "0.77698016", "text": "void updateUser(UserModel userModel);", "title": "" }, { "docid": "13b108196a49f88a72f0b8bbf66ae1f8", "score": "0.776235", "text": "@Override\n\tpublic void updateUser(User user) {\n\t\t\n\t}", "title": "" }, { "docid": "13b108196a49f88a72f0b8bbf66ae1f8", "score": "0.776235", "text": "@Override\n\tpublic void updateUser(User user) {\n\t\t\n\t}", "title": "" }, { "docid": "95f890c661da9dd2d8aa34cd3cd9482f", "score": "0.77285254", "text": "@Override\n\tpublic void updateUser(User user) {\n\n\t}", "title": "" }, { "docid": "31481f4de1dc937ba37137945aeb936a", "score": "0.7706532", "text": "public abstract boolean updateUser(User user);", "title": "" }, { "docid": "c21739ff2bcc27f2e43b2b816a492d67", "score": "0.7699646", "text": "@Override\r\n public void updateUser(User user) {\n try {\r\n Connection con = DB.getConnection();\r\n String sql = \"update userdetails set Status=? where FirstName=?\";\r\n PreparedStatement ps = con.prepareStatement(sql);\r\n ps.setString(1, user.getStatus());\r\n ps.setString(2, user.getFirstName());\r\n int rowaffected = ps.executeUpdate();\r\n System.out.println(rowaffected + \" rows updated \");\r\n con.close();\r\n }catch(Exception e){\r\n System.out.println(\"Error : \" + e);\r\n }\r\n }", "title": "" }, { "docid": "c1b8d51ad06f845eb480e4a07764c1f0", "score": "0.76931715", "text": "@Override\n\tpublic int updateByPrimaryKey(User record) {\n\t\treturn userMapper.updateByPrimaryKey(record);\n\t}", "title": "" }, { "docid": "6e348cdb5df20ce2b012964f12b38a9b", "score": "0.76805", "text": "public int update(User record) {\n\t\treturn userDao.updateByPrimaryKeySelective(record);\r\n\t}", "title": "" }, { "docid": "245bbb9a253618f3185b0924efd97ede", "score": "0.76776785", "text": "public User updateUser(User updatedUser);", "title": "" }, { "docid": "c6ef73f139b8f4cb7a0231cf37229cf4", "score": "0.76226544", "text": "@Override\n\tpublic void updUser() {\n\t\tuserDao.updUser();\n\t}", "title": "" }, { "docid": "b88e702b18e77cc287eb779b492b595b", "score": "0.76184154", "text": "User updateUser(User user);", "title": "" }, { "docid": "3515316efcd7502ef43787737e96d50c", "score": "0.7618378", "text": "@Override\n\tpublic void update(User user) {\n\t\t\n\t}", "title": "" }, { "docid": "3515316efcd7502ef43787737e96d50c", "score": "0.7618378", "text": "@Override\n\tpublic void update(User user) {\n\t\t\n\t}", "title": "" }, { "docid": "1cc521ffe1287d5cf3b1f3789ddc0470", "score": "0.76063657", "text": "@Override\n\tpublic void updateUser(Users user) {\n\t\t\n\t}", "title": "" }, { "docid": "29816ebda47b445df8e18f3746b34765", "score": "0.75981", "text": "@Override\n\tvoid updateUser() {\n\t\t\n\t}", "title": "" }, { "docid": "9a50c50eaf4eec241effaa1a42cfd399", "score": "0.7586472", "text": "@Override\n\tpublic void update(User model) {\n\t\t\n\t}", "title": "" }, { "docid": "2b97c786a55ab1bbcaa3f0c8c9cd9794", "score": "0.757164", "text": "boolean updateUserInDB(User user);", "title": "" }, { "docid": "d5096ecab576c622dbba2ef3c4f21ff9", "score": "0.7567482", "text": "@Override\n public void updateUser(Users user) {\n\n }", "title": "" }, { "docid": "95df196e84fe0f2f2d583bd4c224c386", "score": "0.7558514", "text": "@Override\n\tpublic void updateUser(Users user) {\n\n\t}", "title": "" }, { "docid": "841a53fb72c7635869ac051beb155978", "score": "0.7541538", "text": "public void updateUser(){\n int telNo=0;\n if(validateTelNo(telNoEditTxt.getText().toString())){\n if(!telNoEditTxt.getText().toString().equals(\"\")){telNo=Integer.parseInt(telNoEditTxt.getText().toString());}\n }\n userDAO.updateUser(nameEditTxt.getText().toString(),nicEditTxt.getText().toString(),emailTxtView.getText().toString(),telNo);\n Toast.makeText(getContext(),\"User details updated successfully\",Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "32445eab1f74181155dfda766f6cc2a2", "score": "0.7537043", "text": "@Override\r\n\tpublic void update(UserVO user) {\n\t\t\r\n\t}", "title": "" }, { "docid": "db7d2634a1fd2addb619dffb76ada00a", "score": "0.75312155", "text": "int updateByPrimaryKey(User record);", "title": "" }, { "docid": "db7d2634a1fd2addb619dffb76ada00a", "score": "0.75312155", "text": "int updateByPrimaryKey(User record);", "title": "" }, { "docid": "db7d2634a1fd2addb619dffb76ada00a", "score": "0.75312155", "text": "int updateByPrimaryKey(User record);", "title": "" }, { "docid": "db7d2634a1fd2addb619dffb76ada00a", "score": "0.75312155", "text": "int updateByPrimaryKey(User record);", "title": "" }, { "docid": "db7d2634a1fd2addb619dffb76ada00a", "score": "0.75312155", "text": "int updateByPrimaryKey(User record);", "title": "" }, { "docid": "db7d2634a1fd2addb619dffb76ada00a", "score": "0.75312155", "text": "int updateByPrimaryKey(User record);", "title": "" }, { "docid": "3a142c31de5a71646525d28d62e8a08f", "score": "0.75197446", "text": "private static void updateUser() {\n\t\tlog.info(\"Enter Email ID\");\n\t\tString emailId = sc.next();\n\t\tlog.info(\"New Name:\");\n\t\tString name = sc.next();\n\t\tlog.info(\"New Password:\");\n\t\tString password = sc.next();\n\t\tlog.info(\"New Gender:\");\n\t\tString gender = sc.next();\n\t\tString role = null;\n\t\tUser user = null;\n\t\tlog.info(\"Enter old Role: 1. Admin 2. Professor 3. Student\");\n\t\tint option = sc.nextInt();\n\t\tswitch(option) {\n\t\tcase 1:\n\t\t\tuser = new Admin(emailId, password, option, name, gender);\n\t\t\trole = UserConstants.ADMIN;break;\n\t\tcase 2:\n\t\t\tuser = new Professor(emailId, password, option, name, gender);\n\t\t\trole = UserConstants.PROFESSOR;break;\t\n\t\tcase 3:\n\t\t\tuser = new Student(emailId, password, option, name, gender);\n\t\t\trole = UserConstants.STUDENT; break;\n\t\t}\n\t\tif(role == null) {\n\t\t\tlog.info(\"Error in input data!\");\n\t\t\t\treturn;\n\t\t}\n\t\toperations.editUser(emailId, user, role);\n\t}", "title": "" }, { "docid": "2e0772c59baaf168f7e49e13919aa5c6", "score": "0.7506289", "text": "void update(User u) throws UsernameNotFoundException, ValidationException;", "title": "" }, { "docid": "92596b9055060c32014ee43d898905dc", "score": "0.74933124", "text": "public User updateUser(User objUser);", "title": "" }, { "docid": "5bdf9f1bbdeda0217a8e4f2cc4ae5c1e", "score": "0.7489117", "text": "@Override\n\tpublic int updateUser(User user) throws Exception {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "72137879304ca55a74a9f96599b886fe", "score": "0.74812657", "text": "int updateByPrimaryKey(T_user record);", "title": "" }, { "docid": "16e355c5b826eac3588ab02e660b7f96", "score": "0.7473507", "text": "int updateByPrimaryKey(BmUser record);", "title": "" }, { "docid": "ab1e7b7e9524475be6f95b3d8ed631bc", "score": "0.74606097", "text": "int updateByPrimaryKey(TUser record);", "title": "" }, { "docid": "19364171f4ab8a5249ef6782fee6edb9", "score": "0.74530447", "text": "@Override\n\tpublic int updateUser(User user) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "19364171f4ab8a5249ef6782fee6edb9", "score": "0.74530447", "text": "@Override\n\tpublic int updateUser(User user) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "fa3ed65066ffa5d8491f0be5db90929e", "score": "0.7445473", "text": "public void updateUser() throws RemoteException;", "title": "" }, { "docid": "748a807bd4fbcd97e91642e391a775d1", "score": "0.7443738", "text": "public void updateUser(Usuario user) {\n\t\t\n\t}", "title": "" }, { "docid": "188af00cb11d929ec22d05ee857ea127", "score": "0.74353266", "text": "public void updateFullyUser(User user) throws AppException;", "title": "" }, { "docid": "6102fd94e02d4b00f53926f663428738", "score": "0.74215627", "text": "@Override\n\tpublic void updateUser(UserDetails user) {\n\n\t}", "title": "" }, { "docid": "7ce5c93ec8f6e075b060389c1eab2ed0", "score": "0.74200475", "text": "int updateByPrimaryKey(UserLoginInfo record);", "title": "" }, { "docid": "a54c19c2e09c2336c6d16ff51cf8ce53", "score": "0.7418257", "text": "int updateByPrimaryKey(SUser record);", "title": "" }, { "docid": "3fd6af98256a2fc98806bbdd82fa194a", "score": "0.74001694", "text": "public void updateUser() {\n\n // update Database.accountsForGUI\n Database.usernameToUuid.remove(Database.accounts.get(AdminGUI.uuidToEdit).getUsername());\n Database.usernameToUuid.put(username, AdminGUI.uuidToEdit);\n\n // update Database.accounts\n String gender;\n if (genderMenuButton.getText().equals(\"Male\")) {\n gender = \"M\";\n } else {\n gender = \"F\";\n }\n Database.accounts.get(AdminGUI.uuidToEdit).setGender(gender);\n Database.accounts.get(AdminGUI.uuidToEdit).setFullName(fullName);\n Database.accounts.get(AdminGUI.uuidToEdit).setUsername(username);\n Database.accounts.get(AdminGUI.uuidToEdit).setAddress(address);\n Database.accounts.get(AdminGUI.uuidToEdit).setEmailAddress(emailAddress);\n Database.accounts.get(AdminGUI.uuidToEdit).setPhoneNumber(phoneNumber);\n Database.accounts.get(AdminGUI.uuidToEdit).setDateOfBirth(new DateOfBirth(dateOfBirth));\n\n // update the password if the new password is set\n if (!newPassword.isEmpty()) {\n Database.accounts.get(AdminGUI.uuidToEdit).setPassword(newPassword);\n }\n\n // update Database.accountsForGUI\n for (UserForGUI i : Database.accountsForGUI) {\n if (i.getUuid().equals(AdminGUI.uuidToEdit)) {\n i.setUsername(username);\n i.setGender(gender);\n i.setFullName(fullName);\n i.setAddress(address);\n i.setEmailAddress(emailAddress);\n i.setPhoneNumber(phoneNumber);\n i.setDateOfBirth(dateOfBirth);\n }\n }\n }", "title": "" }, { "docid": "18cc290fb6cdf9f0c49a969f1f8508c5", "score": "0.7397783", "text": "@Override\n\tpublic int updateById(User record) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "00b41889ab684280fa419d2d99e72229", "score": "0.73760355", "text": "@Update({ \"update tb_user\", \"set sign_user_id = #{signUserId,jdbcType=VARCHAR},\", \"user_name = #{userName,jdbcType=VARCHAR},\", \"address = #{address,jdbcType=VARCHAR},\", \"chain_id = #{chainId,jdbcType=INTEGER},\", \"group_id = #{groupId,jdbcType=INTEGER},\", \"user_status = #{userStatus,jdbcType=INTEGER},\", \"gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},\", \"gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},\", \"description = #{description,jdbcType=VARCHAR}\", \"where id = #{id,jdbcType=INTEGER}\" })\n int updateByPrimaryKey(TbUser record);", "title": "" }, { "docid": "29aeb21dd7ec049701ff6f23ff247ffd", "score": "0.7342592", "text": "int updateByPrimaryKey(UserLoginDO record);", "title": "" }, { "docid": "476807e277af099853e1871d7b814ba2", "score": "0.7338146", "text": "int updateByPrimaryKey(WxUser record);", "title": "" }, { "docid": "4a34a688aff3bcb30db10f8e5dcc9b30", "score": "0.7331238", "text": "@Override\n\t\t\tpublic boolean updateUser(User user) {\n\t\t\t\tfactory.getCurrentSession().update(user);\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "373883dd3073866df844a3d612592917", "score": "0.73291767", "text": "@Override\r\n\tpublic int update(User t) {\n\t\treturn userMapper.update(t);\r\n\t}", "title": "" }, { "docid": "961bed59d352050c2b09247fd2c77a5c", "score": "0.7328929", "text": "Result updateByPrimaryKey(UserDto record);", "title": "" }, { "docid": "a62d7cea83735a95b86c48821c7d391e", "score": "0.7328805", "text": "@Override\n\tpublic void update(PharmacyUser t) {\n\t\t\n\t}", "title": "" }, { "docid": "18f092e2384a904a1f4d35e5f7ccfd13", "score": "0.73261654", "text": "boolean update(User user) throws DAOException;", "title": "" }, { "docid": "8ecf806256750e136f5a78a9f3dec154", "score": "0.7322237", "text": "@Override\r\n\tpublic void updateuser(User user) {\n\t\t userMapper.update(user);\r\n\t}", "title": "" }, { "docid": "b1d8f784d110cbdca485c9ab2503b5bd", "score": "0.73096514", "text": "int updateByPrimaryKey(UserModel record);", "title": "" }, { "docid": "7ab7fa94f8113fb840b8e8443cdb0ace", "score": "0.7308373", "text": "int updateUser(UserEditVo userEditVo);", "title": "" }, { "docid": "5046ce8b14eee50e23657b0abd7c8190", "score": "0.7301813", "text": "int updateByPrimaryKey(UserInformation record);", "title": "" }, { "docid": "928846790d79a9a5416a1de3e0990a7c", "score": "0.72998273", "text": "int updateByPrimaryKey(AllUserDO record);", "title": "" }, { "docid": "0f5e6baddc083c0f95c3ef00f2e1d5ed", "score": "0.7297444", "text": "void userUpdated(User user);", "title": "" }, { "docid": "f13637e84132e9faea5a537a5239f1f1", "score": "0.72847176", "text": "int updateByPrimaryKey(SjUser record);", "title": "" }, { "docid": "6b17d917737c43df268d128b044ae9b3", "score": "0.7284357", "text": "int updateByPrimaryKey(GraduUser record);", "title": "" }, { "docid": "a90b9c801a014ab824485caf7c3bde44", "score": "0.72623235", "text": "@Override\n public User update(User user) {\n return dao.update(user);\n }", "title": "" }, { "docid": "6b59d895ab9230cf1b0e78694b8c003c", "score": "0.7256386", "text": "@Override\n\tpublic Integer Update(User user) {\n\t\treturn userDao.Update(user);\n\t}", "title": "" }, { "docid": "a3f092f4cb9ab91b86ba1a67dfdd106a", "score": "0.72544986", "text": "@Override\n\tpublic void update() {\n\t\tSystem.out.println(\"更新用户\");\n\t}", "title": "" }, { "docid": "a9c61e2f9923bf5d82b2a17eaafb12a8", "score": "0.7253158", "text": "@Update({\n \"update user\",\n \"set user_name = #{userName,jdbcType=VARCHAR},\",\n \"user_password = #{userPassword,jdbcType=VARCHAR},\",\n \"user_realname = #{userRealname,jdbcType=VARCHAR},\",\n \"user_email = #{userEmail,jdbcType=VARCHAR},\",\n \"user_address = #{userAddress,jdbcType=VARCHAR},\",\n \"user_city = #{userCity,jdbcType=VARCHAR},\",\n \"user_country = #{userCountry,jdbcType=VARCHAR},\",\n \"user_authority = #{userAuthority,jdbcType=INTEGER}\",\n \"where user_id = #{userId,jdbcType=INTEGER}\"\n })\n int updateByPrimaryKey(User record);", "title": "" }, { "docid": "07ebc1416c0fe5c2d0a773616edee4b3", "score": "0.72436684", "text": "int updateByPrimaryKey(EnfordUser record);", "title": "" }, { "docid": "524d2aa37ac34f7f6d53ad8767358ac4", "score": "0.7239242", "text": "@Override\r\n\tpublic boolean update(User u) {\n\t\treturn ud.update(u);\r\n\t}", "title": "" }, { "docid": "b559f860e9b54e52437d28a3f3795849", "score": "0.7236381", "text": "int updateByPrimaryKey(SysUser record);", "title": "" }, { "docid": "a3c43089a2d7d7ff1ca6c509448cf0e9", "score": "0.72307444", "text": "@Override\r\n\tpublic int update(Users record) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "f32abb9eaccb765f0af83588060748c0", "score": "0.72251475", "text": "int updateByPrimaryKey(TbSysUser record);", "title": "" }, { "docid": "1409ee895c7c13b9016df5bbf2bcebcc", "score": "0.7221558", "text": "@Override\r\n\tpublic int updateUser(User user) {\n\t\treturn ud.update(user);\r\n\t}", "title": "" }, { "docid": "b7cf069f582f557bc3302c5bd844ac05", "score": "0.7221373", "text": "@Override\r\n\tpublic void update(User user) throws SQLException {\n\t\t\r\n\t\tString sql = \"UPDATE USER_LOGIN SET PASSWORD=? WHERE USERNAME=?\";\r\n\t\tPreparedStatement pstmt = connection.prepareStatement(sql);\r\n\t\tpstmt.setString(1, user.getPassword());\r\n\t\tpstmt.setString(2, user.getUsername());\r\n\t\tint updateCount = pstmt.executeUpdate();\r\n\t\tif(updateCount>0)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Updated succesfully\");\r\n\t\t}else\r\n\t\t{\r\n\t\t\tSystem.out.println(\"User record not Update\");\r\n\t\t}\r\n\t\t\t\t\r\n\r\n\t}", "title": "" }, { "docid": "db90f71a74bc15a353da0598ceaf1f01", "score": "0.722053", "text": "public Result update(){\n\t\tUser user = getUserFromForm();\n\t\tuser.update();\n\t\treturn ok(getJsonResultOK());\n\t}", "title": "" }, { "docid": "1f5e4194ad8d9ab76fb28935296d5ac2", "score": "0.722", "text": "@Override\r\n \tpublic void updateUserInfo(User user) {\n \r\n \t}", "title": "" }, { "docid": "5e47dc06389da1762cc64b9ac321597c", "score": "0.7212173", "text": "public void updateUser(UserModel user) {\n databaseUtility.updateUser(user);\n }", "title": "" }, { "docid": "3ca464d924c24053aa79785644f5ba34", "score": "0.72040737", "text": "@Override\n\tpublic void updateUser(User body,OperationRequest context,\n\t\t\t\t\t\tHandler<AsyncResult<OperationResponse>> resultHandler) {\n\t\tLOGGER.info(\"update a webservice record with the following user email \"+body.getEmail());\n\t\tvertx.executeBlocking(p->{\n\t\t\ttry {\n\t\t\t\trepository.update(body);\n\t\t\t\tp.complete();\n\n\t\t\t}\n\t\t\tcatch (Exception ex){\n\t\t\t\tp.fail(ex);\n\t\t\t\tLOGGER.error(\"update failed\",ex.getCause());\n\t\t\t\tprintStackTrace(ex);\n\n\t\t\t}\n\n\t\t}, ar->{\n\t\t\tif(ar.succeeded()) {\n\t\t\t\tLOGGER.info(\"update completed successfully\");\n\t\t\t\tresultHandler.handle(Future.succeededFuture(OperationResponse.completedWithPlainText(Buffer.buffer().appendString(\"201\"))));\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\tLOGGER.info(\"update failed\");\n\t\t\t\tLOGGER.error(\"Exception Ocuured while trying to update a User into database \",ar.cause());\n\t\t\t\tresultHandler.handle(Future.failedFuture(ar.cause()));\n\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "7e44ddffc2715f01b171635564ea51c3", "score": "0.7203727", "text": "@Override\n\tpublic boolean update(User user) {\n\t\treturn dao.update(user);\n\t}", "title": "" }, { "docid": "c8b7975fd84c297a2154c5d790b9cce7", "score": "0.72023374", "text": "boolean updateProfile(User user);", "title": "" }, { "docid": "579bf0fad4f9fdd27f614d4238eae5e4", "score": "0.7195973", "text": "UserResponseType updateUser(User user)\n throws SAMLEngineException, IOException;", "title": "" }, { "docid": "cff0fa10a58a0315302fe70058909e53", "score": "0.71815825", "text": "@Override\n public void updateInfo(User user) {\n Connection conn = null;\n PreparedStatement pstmt = null;\n try {\n conn = DbUtils.getConnection();\n String sql = \"update user set password=? ,card=? ,wage=? ,`call`=? ,age= ? where id=?;\";\n pstmt = conn.prepareStatement(sql);\n pstmt.setString(1, user.getPassword());\n pstmt.setString(6, user.getId());\n pstmt.setString(2, user.getCard());\n pstmt.setDouble(3, user.getWage());\n pstmt.setString(4, user.getCall());\n pstmt.setInt(5, user.getAge());\n pstmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n DbUtils.closeStatement(pstmt);\n DbUtils.closeConnection(conn);\n }\n }", "title": "" }, { "docid": "0ec43637c867945cdc3e8e331eb6a257", "score": "0.71782005", "text": "@Override\n\tpublic void update(User t) throws ConnectinBaseException {\n\n\t}", "title": "" }, { "docid": "b06865e293c9727d6b24aeda13366c9f", "score": "0.717122", "text": "int updateByPrimaryKey(WechatUserinfo record);", "title": "" }, { "docid": "06c64927fe3ede5aef3571cc2262aa5d", "score": "0.71688604", "text": "public void updateUser(HttpServletRequest request, HttpServletResponse response) throws JsonParseException, JsonMappingException, IOException {//update user information\t\t\n\t\tEmployee e = null;\n\t\t\n\t\ttry {\n\t\t\t\te = new Employee(\n\t\t\t\t\tInteger.parseInt(request.getParameter(\"emp_id\")),\n\t\t\t\t\trequest.getParameter(\"lastname\"),\n\t\t\t\t\trequest.getParameter(\"firstname\"),\n\t\t\t\t\tInteger.parseInt(request.getParameter(\"emp_pos\")),\n\t\t\t\t\trequest.getParameter(\"username\"),\n\t\t\t\t\trequest.getParameter(\"password\"),\n\t\t\t\t\trequest.getParameter(\"email\")\n\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\tif(emp_DAO.updateEmpl(e) > 0) { //user has been updated\n\t\t\t\t\tresponse.setStatus(200);\n\t\t\t\t} else { //user doesn't exist in the db\n\t\t\t\t\tresponse.sendError(404, \"Employee doesn't exist.\");\n\t\t\t\t}\n\t\t\t\t\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tresponse.setStatus(400);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "c09beda27793227980de33e357c6ddcf", "score": "0.71680886", "text": "void updateUser(User user) throws HiveException;", "title": "" }, { "docid": "44129e898a737c2d9204eb701364813d", "score": "0.7162131", "text": "@Override\n\tpublic void updateUser(User user) {\n\t\tgetSession().update(user);\n\t\t\n\t}", "title": "" }, { "docid": "0554fa9aa7faa2cfe7cd58d1c98c8cbf", "score": "0.7158838", "text": "User update(E user);", "title": "" }, { "docid": "680d4a4027ae3e8f914fb21558daa97a", "score": "0.7156231", "text": "int updateByPrimaryKey(TMallUserAccount record);", "title": "" }, { "docid": "4635cbfec951335225cf678e2385d9ef", "score": "0.71552765", "text": "@Override\n\tpublic void UpdateUser(User user) {\n\t\tSystem.out.println(\"Name:\"+\" \"+ user.getUserName() +\" \"+ \" LastName:\"+user.getLastName()+\" \" +\" User updated..\");\n\t}", "title": "" }, { "docid": "e4db15669ab2412e36638fd744fca83d", "score": "0.7151364", "text": "@Override\n\tpublic boolean updateUser(Users bean) {\n\t\treturn dao.updateUser(bean);\n\t}", "title": "" }, { "docid": "3c3b2d7596a2a804bc227f6e5139eea4", "score": "0.7142804", "text": "@Override\r\n\tpublic void updateUser(TUser user) {\n\t\tdao.updateUser(user);\r\n\t}", "title": "" }, { "docid": "99e037022fa8a25564bda1bec8c659da", "score": "0.7141105", "text": "@Override\r\n\tpublic int updateByPrimaryKey(User record) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "74cec6521dc498222e4afce16cb1ca68", "score": "0.7137197", "text": "@Update({\n \"update t_user\",\n \"set age = #{age,jdbcType=VARCHAR},\",\n \"userName = #{username,jdbcType=VARCHAR}\",\n \"where id = #{id,jdbcType=VARCHAR}\"\n })\n int updateByPrimaryKey(TUser record);", "title": "" } ]
5107edfcc41343107ea31f7922b18d98
Handles the HTTP GET method.
[ { "docid": "8181a1343d23944197b4659b7bd5ef1f", "score": "0.0", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" } ]
[ { "docid": "9278da4b1f80a19dddf98f4308e4eda2", "score": "0.7421125", "text": "@Override\n\tpublic void handleGET(CoapExchange exchange) {\n\t\texchange.respond(ResponseCode.VALID, \"Get resource \");\n\t\t_Logger.info(\"Get request:\" + super.getName());\n\t}", "title": "" }, { "docid": "c2297ef1f5e03c229bdf43929d54e064", "score": "0.71855175", "text": "@Override\n\tpublic void doGet(ServletRequest request, ServletResponse response) {\n\t\t\n\t}", "title": "" }, { "docid": "39d4515bf63b846049d2aff7e8debbc3", "score": "0.71148175", "text": "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "title": "" }, { "docid": "31ec0162ee2d7828223d961e444655a1", "score": "0.7098005", "text": "public abstract void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException;", "title": "" }, { "docid": "48dda5d0378477253ae85a39527a004d", "score": "0.7026585", "text": "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n\n }", "title": "" }, { "docid": "07279916649786f11311f4c188d47c5a", "score": "0.6924754", "text": "public void handleGet(OperationContext context, HttpServletRequest request)\n\t\t\tthrows Exception {\n\t}", "title": "" }, { "docid": "3010272dd64e84a927a482705806af07", "score": "0.6917294", "text": "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws IOException {\n\t\tdoGet();\n\t}", "title": "" }, { "docid": "b519e1ee4f7e714ab6acbc4bcb245abb", "score": "0.6902844", "text": "protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t \n\t}", "title": "" }, { "docid": "5773abd9b1933c894b785b41c8ecc35f", "score": "0.68883485", "text": "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "title": "" }, { "docid": "32059e3e009a8552038af44c392a5423", "score": "0.6835363", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "32059e3e009a8552038af44c392a5423", "score": "0.6835363", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "32059e3e009a8552038af44c392a5423", "score": "0.6835363", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "ed06179e2a691cadbd51e92c291c3ee1", "score": "0.68303704", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n System.out.print(\"GET\"); \n\n//yourshithere\n }", "title": "" }, { "docid": "e424283d783199e5e036eaf70c590386", "score": "0.68100595", "text": "public String handleGet(String action, int id) throws ServletException, IOException {\n\t\tString result = this.handleRequest(\"get\", action, id);\n\t\tif(result != null) {\n\t\t\treturn result;\n\t\t} else {\n\t\t\tHttpStatusHelper.generateBadRequest(request, response, \"Action '\" + action + \"' does not have a handler for GET requests in \" + this.getClass().getSimpleName());\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "ca4954f778ec10ca49f9fd2af17629a3", "score": "0.6806367", "text": "public void doGet (HttpServletRequest _request, HttpServletResponse _response)\r\n\t throws ServletException, IOException {\r\n\r\n\t }", "title": "" }, { "docid": "c9c30e878fc16f6a3f3d53820938a202", "score": "0.6804062", "text": "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n\r\n }", "title": "" }, { "docid": "f8ea0033b0375fd9728339601bc475d4", "score": "0.67768115", "text": "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "title": "" }, { "docid": "f8ea0033b0375fd9728339601bc475d4", "score": "0.67768115", "text": "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "title": "" }, { "docid": "92346ab9d9b824a45863e5763efc63c1", "score": "0.6761234", "text": "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "title": "" }, { "docid": "171a90ab7d140048e8bd1344ac52140b", "score": "0.6754993", "text": "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "title": "" }, { "docid": "171a90ab7d140048e8bd1344ac52140b", "score": "0.6754993", "text": "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "title": "" }, { "docid": "ad62e03e744b1911953e98c520f5c2e3", "score": "0.6750034", "text": "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String path = req.getRequestURI().substring(9);\n try {\n int id = Integer.parseInt(path.substring(7));\n Card foundCard = cardService.getCard(id);\n if (foundCard.getName().equals(\"blank\")) {\n resp.getWriter().append(\"there was no card found with an id of \").append(String.valueOf(id));\n } else {\n resp.getWriter().append(objectMapper.writeValueAsString(foundCard));\n }\n } catch (NumberFormatException | StringIndexOutOfBoundsException e) {\n if (path.equals(\"/cards\")) {\n resp.getWriter().append(objectMapper.writeValueAsString(cardService.getAllCards()));\n }\n }\n resp.setContentType(\"application/json\");\n }", "title": "" }, { "docid": "ab85139b6aa5b61fa634c819b97b9482", "score": "0.67325693", "text": "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "title": "" }, { "docid": "ab85139b6aa5b61fa634c819b97b9482", "score": "0.67325693", "text": "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "title": "" }, { "docid": "715ecb6f0761e65c638db457ee5e496d", "score": "0.6728478", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "title": "" }, { "docid": "34fc85dafa9b3938df5d5ae379ee36a1", "score": "0.67216843", "text": "@Override\n\t\tpublic void GET() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "2b53c719fa108145fe08990bd313fba6", "score": "0.6708529", "text": "@Override\r\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "5561a1ddfc0f1614b08238617c8fcf92", "score": "0.67054695", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "title": "" }, { "docid": "5561a1ddfc0f1614b08238617c8fcf92", "score": "0.67054695", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "title": "" }, { "docid": "27f3168994da8c9294f03f6e55d6e7ec", "score": "0.66975087", "text": "@Override\n protected final void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doGet(req, resp);\n }", "title": "" }, { "docid": "54689c1ff794de56a7bf128a1eb7cf7c", "score": "0.6692616", "text": "@Override\n public int getHttpType() {\n return Request.Method.GET;\n }", "title": "" }, { "docid": "1a3280185a55c1b1df04df6851e63a97", "score": "0.6676384", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n log(\"GET\");\n processRequest(request, response);\n }", "title": "" }, { "docid": "96b81332c6a50ff4a37e13be256d7560", "score": "0.6675696", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "a06e8eaedfb23a1c9a6ec94ecd1792e4", "score": "0.66747975", "text": "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "title": "" }, { "docid": "a06e8eaedfb23a1c9a6ec94ecd1792e4", "score": "0.66747975", "text": "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "title": "" }, { "docid": "a06e8eaedfb23a1c9a6ec94ecd1792e4", "score": "0.66747975", "text": "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "title": "" }, { "docid": "72952312a0e4fb2f03928fb591af4313", "score": "0.66621476", "text": "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "title": "" }, { "docid": "fe3cf990b536d0abb8509c658eab9d9e", "score": "0.6647465", "text": "protected void doGet (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "15fe33a1e0b695fccae4dee3dca0c9c4", "score": "0.6640841", "text": "@GET\n @Path(Constants.PATH_GET + \"/{key}\")\n public Response processGet(@PathParam(\"key\") String key) {\n KeyValue value = database.get(key);\n // TODO: return KeyValue object instead of just the key\n if (value == null) {\n return Response.status(Response.Status.NOT_FOUND).build();\n }\n return Response.ok(value).build();\n }", "title": "" }, { "docid": "9d5f847c8dcc8ec67a4ac0456fe4e5c1", "score": "0.6620913", "text": "@Override\n\t\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n\t\t\tprocessRequest(req, resp);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "2f5cd5b7eda12ce374aab1b546dbaa51", "score": "0.65976197", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "title": "" }, { "docid": "2f5cd5b7eda12ce374aab1b546dbaa51", "score": "0.65976197", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "title": "" }, { "docid": "8701e30cdceb217fedbedea700415441", "score": "0.6578714", "text": "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException,\n\t\t\tIOException\n\t{\n\t\tresp.setContentType(\"text/plain\");\n\t\tString response = \"400\";\n\n\t\ttry\n\t\t{\n\t\t\tInteger teamID = UtilsServlet.getIntegerUrlPathInfo(req);\n\n\t\t\tif (teamID >= 0)\n\t\t\t{\n\t\t\t\t// Get game with associated game id\n\t\t\t\tresponse = TeamsTable.getTeam(teamID);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tresponse = TeamsTable.getAllTeams();\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException | JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (response != null)\n\t\t{\n\t\t\tresp.getWriter().write(response);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresp.getWriter().write(\"400\");\n\t\t}\n\t}", "title": "" }, { "docid": "69495de04a009b7a8768cb2e4a03c52a", "score": "0.6537718", "text": "protected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\tthrows ServletException, IOException {\n\tString tok = req.getParameter(\"key\");\n\tkoko(tok);\n}", "title": "" }, { "docid": "77dd9869d14209e0bbef6f847739c838", "score": "0.6537675", "text": "@GET\n public Response get() {\n //Access control\n this.davRsCmp.checkAccessContext(BoxPrivilege.READ);\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"URL : \" + this.davRsCmp.getUrl() + \"\\n\");\n return Response.status(HttpStatus.SC_OK).entity(sb.toString()).build();\n }", "title": "" }, { "docid": "653a2aa221f6041acdc7431bce0e723d", "score": "0.6526121", "text": "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t\tprocess(req,resp);\n\t}", "title": "" }, { "docid": "93cbf4ae7443663483547df42aa5fa0f", "score": "0.64940697", "text": "protected void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException\r\n\t{\n\t}", "title": "" }, { "docid": "7889bdbd40b95c52a2cdb7ce58a36da8", "score": "0.64915144", "text": "public void get() throws Exception{\n //INIT\n HttpRequest request = createGetHttpRequest();\n HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n //CHECK\n checkHTTPResponseCode(response);\n //RESULT\n setTheResult(response, false);\n\n }", "title": "" }, { "docid": "91199da5644ac217b226abe97053b055", "score": "0.64636624", "text": "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n test5(resp);\n }", "title": "" }, { "docid": "f80ed47e85af258bf9c97ead946cc356", "score": "0.64250857", "text": "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException {\n\n String message = \"\";\n try {\n //message = processRequest(request,response);\n generateResponse(\"Invalid 'GET' request\", \"n/a\",\"n/a\", false, response);\n }\n finally {\n }\n }", "title": "" }, { "docid": "813df24df8cde275aab9194308d92de9", "score": "0.64242303", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\r\n\t\t}", "title": "" }, { "docid": "4a2ff308d968970dd0257798f218751f", "score": "0.64122164", "text": "@Override\n\tpublic void handleGET(CoapExchange exchange) {\n\t\texchange.respond(\"Temperatura: \"+this.temperatura);\n\t}", "title": "" }, { "docid": "c172ae36dd4e5c686f633ff90255b2e6", "score": "0.6411481", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "c172ae36dd4e5c686f633ff90255b2e6", "score": "0.6411481", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "c172ae36dd4e5c686f633ff90255b2e6", "score": "0.6411481", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "c172ae36dd4e5c686f633ff90255b2e6", "score": "0.6411481", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "c172ae36dd4e5c686f633ff90255b2e6", "score": "0.6411481", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "c172ae36dd4e5c686f633ff90255b2e6", "score": "0.6411481", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "c172ae36dd4e5c686f633ff90255b2e6", "score": "0.6411481", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "7871130a5ea4128f176fa99af6f2a302", "score": "0.64000326", "text": "void get(String url, Callback handler);", "title": "" }, { "docid": "d591a7909f1a3998cfe1189c94f91a79", "score": "0.63999313", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t}", "title": "" }, { "docid": "77d3e954f39ca36f5cf80d51c2736e9d", "score": "0.6397915", "text": "protected void doGet(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "76364e7002904b7a63dde03f036c3403", "score": "0.6397466", "text": "public void doGet(HttpServletRequest request, HttpServletResponse response) \n\tthrows ServletException, IOException\t{\n\t\tresponse.sendError(HttpServletResponse.SC_NOT_IMPLEMENTED, \"GET not supported by this servlet\");\n\t}", "title": "" }, { "docid": "fdbf7baec396a56cb2d70fe7d2d7cd7c", "score": "0.6390006", "text": "@Override\r\n protected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n throws ServletException, IOException {\r\n\r\n BlobKey blobKey = new BlobKey(req.getParameter(\"blob-key\"));\r\n blobstoreService.serve(blobKey, resp);\r\n\r\n }", "title": "" }, { "docid": "0746db0a443e246101d938c57e55d82c", "score": "0.637798", "text": "protected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "93637775540c4e0244b842fe92164053", "score": "0.6367779", "text": "@RequestMapping(method = RequestMethod.GET)\n\tpublic String get(HttpServletRequest request, HttpServletResponse res, ModelMap model) throws Exception {\n\t\treturn ACTION;\n\t}", "title": "" }, { "docid": "fb5061e2b2e35f99952f340092760db8", "score": "0.63397497", "text": "public boolean isGet() {\n return requestBuilder.getMethod().equals(HTTP_GET);\n }", "title": "" }, { "docid": "a80a505aab53ee39cb513169b4a4d309", "score": "0.63341546", "text": "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\t\t\n\t}", "title": "" }, { "docid": "2b97d72d8cc3c53b0034ed3b29c194a3", "score": "0.63247573", "text": "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n doGet(req, resp);\n }", "title": "" }, { "docid": "7d1a68f86eea99c7fe49e8fdca778f94", "score": "0.63199264", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n \t// parse url\n\t\tString requestPath = request.getRequestURI();\n\t\tString[] pathComponents = requestPath.split(\"/\");\n\t\t\n\t\tint node = -10;\n\t\tString sType = \"\";\n\t\tint sNumber = -10;\n\t\t\n\t\tif (pathComponents.length > 3) {\n\t\t\ttry {\n\t\t\t\tnode = Integer.parseInt(pathComponents[3]);\n\t\t\t\n\t\t\t\tif (pathComponents.length > 4) {\n\t\t\t\t\tsType = pathComponents[4];\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif (pathComponents.length > 5) {\n\t\t\t\t\tsNumber = Integer.parseInt(pathComponents[5]);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tPrintWriter out = new PrintWriter(response.getOutputStream());\n\t\t\t\tresponse.setContentType(\"text/html\");\n\t\t\t\tout.print(\"Could not parse url:\" + ex);\n\t\t\t\tout.close();\n\t\t\t\treturn;\n\t\t\t} \n\t\t}\n\t\t\n\t\t// get the data \n\t\tSensorDataDbHandler sensorDb;\n\t\ttry {\n\t\t\tsensorDb = new SensorDataDbHandler(DriverManager.getConnection( ApplicationSettings.dbString, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tApplicationSettings.dbUser, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tApplicationSettings.dbPass));\n\t\t} catch (SQLException sqex) {\n\t\t\tPrintWriter out = new PrintWriter(response.getOutputStream());\n\t\t\tresponse.setContentType(\"text/html\");\n\t\t\tout.print(\"SQL connection exception occured: \" + sqex);\n\t\t\tout.close();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tArrayList<JSONObject> results = sensorDb.getReadings(response, node, sType, sNumber);\n\t\t\n\t\t// output\n\t\tif (results != null) {\n\t\t\tString jsonOut = JSONValue.toJSONString(results);\n\t\t\tPrintWriter out = new PrintWriter(response.getOutputStream());\n\t\t\tresponse.setContentType(\"application/json\");\n\t\t\tout.print(jsonOut);\n\t\t\tout.close();\n\t\t} \n }", "title": "" }, { "docid": "3e5ff78dc310e2f1b7f705fa4e3d3d34", "score": "0.63159317", "text": "@Override\r\n\t\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\t\tshow();\r\n\t\t}", "title": "" }, { "docid": "e5df2a27f185b06097f5df8f26a859a8", "score": "0.6312321", "text": "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp)\n throws ServletException, IOException {\n System.out.println(\"url=\" + req.getRequestURI());\n req.setCharacterEncoding(\"UTF-8\");\n //设置响应体类型\n resp.setContentType(\"text/jsn;charset=UTF-8\");\n String url = req.getRequestURI();\n switch (url) {\n case ConstantUtil.URL_APP_DEVELOPER:\n //增\n addDeveloper(req, resp);\n break;\n case ConstantUtil.URL_DELETE_DEVELOPER:\n //删\n deleteDeveloper(req, resp);\n break;\n case ConstantUtil.URL_UPDATE_DEVELOPER:\n //改\n updateDeveloper(req, resp);\n break;\n case ConstantUtil.URL_QUERY_DEVELOPER:\n //查\n queryDeveloper(req, resp);\n break;\n case ConstantUtil.URL_QUERY_ALL_DEVELOPER:\n //查所有\n queryAllDevelopers(req, resp);\n break;\n }\n }", "title": "" }, { "docid": "eb5ec7bb76a6cd6ac1d0648d9427fa90", "score": "0.6312266", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "6c7a1de147ea8b92918b519f0b17f4a7", "score": "0.6311119", "text": "@Override\r\n\tprotected void doGet(HttpServletRequest req, \r\n\t\t\tHttpServletResponse resp) \r\n\t\t\t\t\tthrows ServletException, IOException {\n\t\tdoProcess(req,resp );\r\n\t}", "title": "" }, { "docid": "b60817d26a137a3fdc98c0aebd26b9e8", "score": "0.63073075", "text": "@Override \n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tsuper.doGet(request, response);\n\t}", "title": "" }, { "docid": "f78e45b0b67b21f61e982e0451bea427", "score": "0.6304089", "text": "public abstract HttpResponse get(String path, ParameterList params) throws HttpRequestException;", "title": "" }, { "docid": "5cd5135fdd2d3b0c81794e1396b97b8d", "score": "0.6301666", "text": "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\t\n\t}", "title": "" }, { "docid": "53b02f9f4bc1a6718c4a7384b0a55272", "score": "0.6291746", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n \n \n }", "title": "" }, { "docid": "fd3fef34bc2e5090cfa31b83ded19c74", "score": "0.62619305", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n \n }", "title": "" }, { "docid": "59ce9d7b26d90769cb53e943acbeafb7", "score": "0.62513214", "text": "protected String requestThroughHttpGet(String url) {\n HttpGet httpGet = new HttpGet(url);\n\n // Execute the request\n return requestHttp(httpGet);\n }", "title": "" }, { "docid": "531f8094ac64f35f661f58841d290879", "score": "0.62430984", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // processRequest(request, response);\n }", "title": "" }, { "docid": "e6f703312ecb9123438093db3fe5a529", "score": "0.62417436", "text": "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse res) \n\tthrows ServletException, IOException {\n\t\tlogger.info(\"doGet() 호출 성공\");\n\t\tdoService(req, res);\n\t}", "title": "" }, { "docid": "bc0c37a95ee55c9ccbe109b40b792191", "score": "0.62409586", "text": "public void medusaHandleGET(CoapExchange exchange) {\n exchange.respond(CoAP.ResponseCode.METHOD_NOT_ALLOWED);\n }", "title": "" }, { "docid": "f43938e61f8134ee02b1a97346f51512", "score": "0.62402797", "text": "void get(String url, HashMap<String, String> headers, Callback handler);", "title": "" }, { "docid": "69f0fe880bbd7a3d3e68b078fcb08068", "score": "0.6239428", "text": "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "title": "" }, { "docid": "46fc63ec0627f40aa30aff7d2ae4476d", "score": "0.6232938", "text": "public void Get() {\n final String urlString = this.urlString;\n final boolean saveResponse = this.saveResponse;\n final String responseFileName = this.responseFileName;\n AsynchUtil.runAsynchronously(new Runnable() {\n\n @Override\n public void run() {\n try {\n performRequest(urlString, null, null, saveResponse, responseFileName);\n } catch (FileUtil.FileException e) {\n formService.dispatchErrorOccurredEvent(Websvc.this, \"Get\", e.getErrorMessageNumber());\n } catch (Exception e) {\n formService.dispatchErrorOccurredEvent(Websvc.this, \"Get\", ErrorMessages.ERROR_WEB_UNABLE_TO_GET, urlString);\n }\n }\n });\n }", "title": "" }, { "docid": "6e0dcd2e3d65a577f6196cdd8d33f935", "score": "0.622538", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n\n\n\n\n }", "title": "" }, { "docid": "38ca5d5b7b73e19fc915e5fc9889a3d4", "score": "0.6224874", "text": "private ResultObject executeGET(){\n\t\tHttpURLConnection urlConnection = null;\n\t\tResultObject resultObject = null;\n\t\t\n\t\ttry {\n\t\t\t//To test get method, you can use this link: \"http://blogname.tumblr.com/api/read/json?num=5\"\n\n\t\t\tSystem.out.println(url);\n\t\t\tURL urlGet = new URL(url);\n\t\t\turlConnection = (HttpURLConnection) urlGet.openConnection();\n\n\t\t\t//read response\n\t\t\tString response = \"\";\n\t\t\ttry {\n\t\t\t\tresponse = readInputStream(urlConnection.getInputStream());\n\t\t\t} catch (FileNotFoundException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tint code = urlConnection.getResponseCode();\n\t\t\tSystem.out.println(code);\n\t\t\tif (code == HttpURLConnection.HTTP_OK){\n\t\t\t\tresultObject = new ResultObject(ErrorCode.OK, response);\n\t\t\t} else {\n\t\t\t\tresultObject = new ResultObject(ErrorCode.FAILED, \"\");\n\t\t\t}\t\t\t\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t\tresultObject = new ResultObject(ErrorCode.FAILED, \"\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tresultObject = new ResultObject(ErrorCode.FAILED, \"\");\n\t\t} finally {\n\t\t\tif (urlConnection != null){\n\t\t\t\turlConnection.disconnect();\n\t\t\t}\n\t\t}\n\n\t\treturn resultObject;\n\t}", "title": "" }, { "docid": "28773533aa71bdbea333c998afcdf140", "score": "0.6224872", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString action = request.getParameter(\"action\");\r\n\t\tIssueDescriptionDAO issueDescriptionDAO = new IssueDescriptionDAO();\r\n\t\tif(action.equalsIgnoreCase(\"getTeamIssue\")){\r\n\t\t\tint teamId = Integer.parseInt(request.getParameter(\"team\"));\r\n\t\t\tString status = request.getParameter(\"status\");\r\n\t\t\tint trackerId = Integer.parseInt(request.getParameter(\"trackerId\"));\r\n\t\t\tSystem.out.println(\"Team is :: \"+teamId+ \" status is :: \"+status);\r\n\t\t\tArrayList<IssueDescription> issueDescriptions = issueDescriptionDAO.fetchTeamAndStatusIssue(teamId, status, trackerId);\r\n\t\t\tString json = new Gson().toJson(issueDescriptions);\r\n\t\t\tSystem.out.println(\"Value of JSON :: \"+json);\r\n\t\t\tresponse.setContentType(\"application/json\");\r\n\t\t\tresponse.setCharacterEncoding(\"UTF-8\");\r\n\t\t\tresponse.getWriter().write(json);\r\n\t\t}\r\n\t\telse if(action.equalsIgnoreCase(\"getLatestIssues\")){\r\n\t\t\tArrayList<IssueDescription> issueDescriptions = issueDescriptionDAO.getLatestUpdates();\r\n\t\t\tString json = new Gson().toJson(issueDescriptions);\r\n\t\t\tSystem.out.println(\"Value of JSON :: \"+json);\r\n\t\t\tresponse.setContentType(\"application/json\");\r\n\t\t\tresponse.setCharacterEncoding(\"UTF-8\");\r\n\t\t\tresponse.getWriter().write(json);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7846f9b4295367b2d6cc30087f10d3f4", "score": "0.62240636", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n processRequest(request, response);\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "d4a0636cfa7472febeb6172c215c276a", "score": "0.62194747", "text": "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException \n {\n processRequest(request, response);\n }", "title": "" }, { "docid": "85e1ed170abf72d302d6883720d8c81c", "score": "0.621538", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { \n processRequest(request, response);\n \n\n }", "title": "" }, { "docid": "98d591d5a03f06cea5a319cd454dfe37", "score": "0.6205092", "text": "public void doGet(HttpServletRequest req, HttpServletResponse resp)\n throws IOException, ServletException {\n doPost(req, resp);\n }", "title": "" }, { "docid": "596f91c195904a47cc50d049acf50a56", "score": "0.62013006", "text": "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProc(req, resp);\r\n\t}", "title": "" }, { "docid": "4fff1689caa63a3d578493087c717ad4", "score": "0.61981374", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n// processRequest(request, response);\n }", "title": "" }, { "docid": "df1e5f415fc4fd1e9b764df6a8287d82", "score": "0.61977607", "text": "public void doGet(HttpServletRequest req, HttpServletResponse resp) {\n String origin = req.getHeader(\"Origin\");\n if (origin==null || origin.length()==0) {\n //this does not always work, but what else can we do?\n origin=\"*\";\n }\n resp.setHeader(\"Access-Control-Allow-Origin\", origin);\n resp.setHeader(\"Access-Control-Allow-Credentials\", \"true\");\n resp.setHeader(\"Access-Control-Allow-Methods\", \"GET, POST, OPTIONS\");\n resp.setHeader(\"Access-Control-Allow-Headers\", \"Origin, X-Requested-With, Content-Type, Accept, Authorization\");\n resp.setHeader(\"Access-Control-Max-Age\", \"1\");\n resp.setHeader(\"Vary\", \"*\");\n\n AuthRequest ar = AuthRequest.getOrCreate(req, resp);\n try {\n NGPageIndex.assertNoLocksOnThread();\n System.out.println(\"API_GET: \"+ar.getCompleteURL());\n if (!ar.getCogInstance().isInitialized()) {\n throw new Exception(\"Server is not ready to handle requests.\");\n }\n doAuthenticatedGet(ar);\n }\n catch (Exception e) {\n Exception ctx = new JSONException(\"Unable to handle GET to {0}\", e, ar.getCompleteURL());\n streamException(ctx, ar);\n }\n finally {\n NGPageIndex.clearLocksHeldByThisThread();\n }\n ar.logCompletedRequest();\n }", "title": "" }, { "docid": "fbf123c11085704bd3c233a9eb5582a9", "score": "0.6196662", "text": "protected void doGet(HttpServletRequest request,\n \t\t\tHttpServletResponse response) throws ServletException, IOException {\n \t\t\n \t\t\n \t\t\n \t\tservice(request, response);\n \t}", "title": "" }, { "docid": "ec30c610e679d499f042f70df3302977", "score": "0.6192068", "text": "private String doGet(String path)\n\t{\n\t\tStringBuffer stringBuffer = new StringBuffer();\t\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//String UrlString = \"http://\" + host + \":\" + PortNumber + path; \n\t\t\tString UrlString = \"http://localhost:8081\" + path;\n\t\t\tURL url = new URL(UrlString);\n\t\t\tHttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\t\t\tconnection.setDoOutput(true);\n\t\t\tconnection.setRequestMethod(\"GET\");\n\t\t\tsetHeader(path, connection);\n\t\t\tconnection.getOutputStream().close();\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\n\t\t\tint responseCode = connection.getResponseCode();\n\n\t\t\t\n\t\t\tInputStreamReader reader = new InputStreamReader(connection.getInputStream());\n\t\t\tBufferedReader buffRead = new BufferedReader(reader);\n\t\t\t\n\t\t\tString inputLine;\n\t\t\t\n\t\t\twhile((inputLine = buffRead.readLine()) != null)\n\t\t\t{\n\t\t\t\tstringBuffer.append(inputLine);\n\t\t\t}\n\t\t\t\n\t\t\tconnection.getInputStream().close();\n\t\t\tconnection.disconnect();\n\t\t\t\n\t\t\tif(responseCode != HttpURLConnection.HTTP_OK) \n\t\t\t{\n\t\t\t\tif(responseCode == HttpURLConnection.HTTP_BAD_REQUEST)\n\t\t\t\t{\n\t\t\t\t\tthrow new ProxyException(connection.getResponseMessage()); //Error in the request body\n\t\t\t\t}\n\t\t\t\telse if (responseCode == HttpURLConnection.HTTP_INTERNAL_ERROR)\n\t\t\t\t{\n\t\t\t\t\tthrow new ProxyException(connection.getResponseMessage()); //Error in the server\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tthrow new ProxyException(connection.getResponseMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch(ProxyException | IOException e)\n\t\t{\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn stringBuffer.toString();\n\n\t}", "title": "" }, { "docid": "3a4c3853100642f0a0128b78b62a98bd", "score": "0.61813676", "text": "@Override\n\tpublic void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\t_logger.debug(\"Processing HTTP GET request\");\n\n\t\t// Set the content-type header.\n\t\tresponse.addHeader(\"Content-Type\", \"text/html\");\n\n\t\tPrintWriter out = response.getWriter();\n\n\t}", "title": "" }, { "docid": "bae290a469054ac9584c8e53d8b707b3", "score": "0.61800295", "text": "@Override\r\n protected void doGet\r\n (HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "title": "" }, { "docid": "bb9bbb8ede7db6ce39a518e36675da21", "score": "0.6179737", "text": "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n processRequest(request, response);\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }", "title": "" } ]
67c9490e1d4f4c5750c0e6260f8a974a
/ / / / / /
[ { "docid": "43f873808b7d7ef0044a51cf85ef31ac", "score": "0.0", "text": "@Deprecated\n/* */ protected String getCommandName()\n/* */ {\n/* 164 */ return this.modelAttribute;\n/* */ }", "title": "" } ]
[ { "docid": "32e3ae2fc5e1c5a9b321c371f2a94424", "score": "0.5605747", "text": "@Override\n\tpublic String toString() {\n\t\treturn \" / \";\n\t}", "title": "" }, { "docid": "c2abac99adbb5cc23924536ed7ed5bb2", "score": "0.5445073", "text": "@Override\n\tpublic void divertir() {\n\t\t\n\t}", "title": "" }, { "docid": "f8f74c9db0d4ba3605abe84d2c580ef5", "score": "0.5406273", "text": "private int yyr27() {\n {\n yyrv = new BinaryOperationNode((ParseNode)yysv[yysp-3], \"/\", (ParseNode) yysv[yysp-1]);\n}\n yysv[yysp-=3] = yyrv;\n return yypterm();\n }", "title": "" }, { "docid": "c5535bcafc031111cd4759821f42c009", "score": "0.5326319", "text": "@Override\n\tdouble permimeter() {\n\t\treturn 2*length+2*breadth;\n\t}", "title": "" }, { "docid": "d0a99efa319e305bb85a4c90701e90a1", "score": "0.5158731", "text": "public int getWidth(){\n return 2*t;\n }", "title": "" }, { "docid": "eb3a37a29038b4609322701bf072494c", "score": "0.5157215", "text": "public static void printX() { \r\n\tfor (i = 1; i <= height; i++) { \r\n\t\tfor (j = 1; j <= height; j++) { \r\n\t\t\tif (i == j|| i + j == height+1) \r\n\t\t\t\tSystem.out.printf(\"*\"); \r\n\t\t\telse\r\n\t\t\t\tSystem.out.printf(\" \"); \r\n\t\t\t} \r\n\t\tSystem.out.printf(\"\\n\"); \r\n\t} \r\n}", "title": "" }, { "docid": "8b11dfa3f5077368f3d8f2c1d982e75f", "score": "0.5086935", "text": "public static void top() {\n\t\tfor (int y = 1; y <= SIZE; y++) {\n\t\t\tfor (int space = 1; space <= y; space++) {\t\t//creating spaces inside\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\\\\");\n\t\t\tfor (int dots = (2 * SIZE + 2) - (2 * y); dots >=1; dots--) {\t//creating dots inside \n\t\t\t\tSystem.out.print(\":\");\t\t\t\t\t\t//if scaling doesn't work, original equation: 10 - (2 * y)\n\t\t\t}\n\t\t\tSystem.out.println(\"/\");\n\t\t}\n\t}", "title": "" }, { "docid": "864fd0baf085164b36202cb7f103128c", "score": "0.5080662", "text": "public int distA0 ();", "title": "" }, { "docid": "e666f3cf639ef7545910a6f0898bba29", "score": "0.50792426", "text": "public static void printH() { \r\n for (i = 0; i < height; i++) { \r\n System.out.printf(\"*\"); \r\n \tfor (j = 0; j < height; j++) { \r\n \t\tif ((j == height - 1) || (i == height / 2)) \r\n \t\t\tSystem.out.printf(\"*\"); \r\n \t\telse\r\n \t\t\tSystem.out.printf(\" \"); \r\n \t\t} \r\n System.out.printf(\"\\n\"); \r\n } \r\n}", "title": "" }, { "docid": "53c52154c202e48846dada906fba5196", "score": "0.5041336", "text": "public void divide();", "title": "" }, { "docid": "02391ab9b3a74602ada4dd7c15173c96", "score": "0.5039694", "text": "public float getWidth() {\n/* 97 */ return this.width;\n/* */ }", "title": "" }, { "docid": "7a4a42bdcc02d789a5a7bd273f824ad4", "score": "0.5038668", "text": "private void testDirections(Point p) {\t\t\n\t\tif(p.x + 1 <= width - 1 && graph[p.x + 1][p.y] == '-') \n\t\t\tfindConnectingNode(new Point(p.x + 1, p.y), RIGHT);\n\t\t\n\t\tif(p.x + 1 <= width - 1 && p.y + 1 <= height - 1 && graph[p.x + 1][p.y + 1] == '\\\\') \n\t\t\tfindConnectingNode(new Point(p.x + 1, p.y + 1), DOWN_RIGHT);\n\t\t\n\t\tif(p.y + 1 <= height - 1 && graph[p.x][p.y + 1] == '|') \n\t\t\tfindConnectingNode(new Point(p.x, p.y + 1), DOWN);\n\t\t\n\t\tif(p.x >= 0 && p.y + 1 <= height - 1 && graph[p.x - 1][p.y + 1] == '/') \n\t\t\tfindConnectingNode(new Point(p.x - 1, p.y + 1), DOWN_LEFT);\n\t\t\n\t\tif(p.x - 1 >= 0 && graph[p.x - 1][p.y] == '-') \n\t\t\tfindConnectingNode(new Point(p.x - 1, p.y), LEFT);\n\t\t\n\t\tif(p.x - 1 >= 0 && p.y - 1>= 0 && graph[p.x - 1][p.y - 1] == '\\\\') \n\t\t\tfindConnectingNode(new Point(p.x - 1, p.y - 1), UP_LEFT);\n\t\t\n\t\tif(p.y - 1 >= 0 && graph[p.x][p.y - 1] == '|') \n\t\t\tfindConnectingNode(new Point(p.x, p.y - 1), UP);\n\t\t\n\t\tif(p.x + 1 <= width - 1 && p.y - 1 >= 0 && graph[p.x + 1][p.y - 1] == '/') \n\t\t\tfindConnectingNode(new Point(p.x + 1, p.y - 1), UP_RIGHT);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "dd459f31db95c393cf444026777a822d", "score": "0.50146455", "text": "int area(){\n return length*width;\n }", "title": "" }, { "docid": "d7cace6c28a65e2c6ae6773782c36cb8", "score": "0.5012376", "text": "public void theReaping(){\r\n\r\n }", "title": "" }, { "docid": "5d0eaf286c085c686fff8209ccbc3cc6", "score": "0.49813563", "text": "public void AllRootToLeafPaths() {\r\n\r\n\t}", "title": "" }, { "docid": "8fee0c88e8076643cbb5d2fd4f088ce0", "score": "0.4959455", "text": "@Override\r\n public void walk() {\n\r\n }", "title": "" }, { "docid": "2f474c9676e4638fba6e6935bf753fe0", "score": "0.49484915", "text": "public abstract void Snap();", "title": "" }, { "docid": "ec59f6e6d7f60ab0c4c05dc4d8267c4e", "score": "0.4918918", "text": "public void divide() {\n\t\tapplyOperator('/');\n\t}", "title": "" }, { "docid": "ee12863b5372db911fe074682ce5a515", "score": "0.49167624", "text": "public static void printZ() { \r\nint counter = height - 1; \r\n\tfor (i = 0; i < height; i++) { \r\n\t\tfor (j = 0; j < height; j++) { \r\n\t\t\tif (i == 0 || i == height - 1 || j == counter) \r\n\t\t\t\tSystem.out.printf(\"*\"); \r\n\t\t\telse\r\n\t\t\t\tSystem.out.printf(\" \"); \r\n\t\t\t} \r\n\t\t\t\tcounter--; \r\n\t\tSystem.out.printf(\"\\n\"); \r\n\t} \r\n}", "title": "" }, { "docid": "57598fb72aff04e12e5874ab2912883e", "score": "0.4910887", "text": "public int getWidth(){return width;}", "title": "" }, { "docid": "414da99a070f04da161964302a52e52b", "score": "0.49075812", "text": "public static void bottom() {\t\t\t\t\t\t\t\t\t\n\t\tfor (int b = SIZE; b >= 1; b--) {\n\t\t\tfor (int space = 1; space <= b; space++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(\"/\");\t\t\t\t\t\t\t\t\t\n\t\t\tfor (int dots = (2 * SIZE + 2) - (2 * b); dots >= 1; dots--) {\n\t\t\t\tSystem.out.print(\":\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\\\\");\n\t\t}\n\t}", "title": "" }, { "docid": "36edbba2a1e8e98b649f67330c89258d", "score": "0.49062315", "text": "public static void printL() { \r\n\tfor (i = 0; i < height; i++) { \r\n\t\tSystem.out.printf(\"*\"); \r\n\t\t\tfor (j = 0; j <= height; j++) { \r\n\t\t\t\tif (i == height - 1) \r\n\t\t\t\t\tSystem.out.printf(\"*\"); \r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.printf(\" \"); \r\n\t\t\t\t} \r\n\t\tSystem.out.printf(\"\\n\"); \r\n \t} \r\n}", "title": "" }, { "docid": "ea80b7edc0498b580aa911bd52fc5206", "score": "0.49051878", "text": "private void dfs() {\r\n\r\n\t}", "title": "" }, { "docid": "cf854f419869fa5ef0a8a10953de0309", "score": "0.48985273", "text": "@Override\n public String pic() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\" ^\\n\");\n stringBuilder.append(\" / \\\\\\n\");\n stringBuilder.append(\"------\");\n return stringBuilder.toString();\n }", "title": "" }, { "docid": "f2ca112b47d3bab38f738da4fa66aa4a", "score": "0.4897936", "text": "private void heuristic(){\n \t}", "title": "" }, { "docid": "027a9da803f17fa7dba4e946ecb07a40", "score": "0.48904693", "text": "Operations operations();", "title": "" }, { "docid": "6ce47a1bdc1b55c2e3324984b642ed0f", "score": "0.4890326", "text": "void area();", "title": "" }, { "docid": "360a508f97535937c134fd6605184203", "score": "0.48854104", "text": "private int getBF(){\n return this.left.getHeight() - this.right.getHeight();\n }", "title": "" }, { "docid": "933f13072cf3370f6b6b334e81e5b2be", "score": "0.48815536", "text": "@Override\n\t\t\tpublic int pathCost() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "c5adaa7a4e6cc863b5af806f033d3686", "score": "0.48751527", "text": "public static void Hat(int size){\n\t\tfor(int i=1;i<size*2;i++){\n\t\t\tFor(\" \",size*2-i);\n\t\t\tFor(\"/\",i);\n\t\t\tSystem.out.print(\"**\");\n\t\t\tFor(\"\\\\\",i);\n\t\t\tFor(\" \",size*2-i);\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "title": "" }, { "docid": "ee148157de2437b065570eee24b25958", "score": "0.4872074", "text": "private static void divideAndConquer() {\r\n\t\tlong timer = System.currentTimeMillis();\r\n\t\tint[] minimumCost = divideConquer(0);\r\n\t\tString minimumPath = buildDividePath(minimumCost);\r\n\r\n\t\t// Get Output\r\n\t\tSystem.out.println(\"Divide and Conquer\\nMinimum Path \" + minimumPath + \" and cost \" + minimumCost[0]);\r\n\t\tSystem.out.println(\"Divide and Conquer time: \" + (System.currentTimeMillis() - timer) + \" milliseconds\\n\");\r\n\t}", "title": "" }, { "docid": "2cba43d194a1cfa6c622628e8ddda7b0", "score": "0.4869195", "text": "@Override\n public float getWidth() {\n \treturn 40;\n }", "title": "" }, { "docid": "6e08cd2c3a7b9a770fad545c24721e0c", "score": "0.4854485", "text": "public static void printY() { \r\nint counter = 0; \r\n\tfor (i = 0; i < height; i++) { \r\n\t\tfor (j = 0; j <= height; j++) { \r\n\t\t\tif (j == counter || j == height - counter -1) \r\n\t\t\t\tSystem.out.printf(\"*\"); \r\n\t\t\telse\r\n\t\t\t\tSystem.out.printf(\" \"); \r\n\t\t\t} \r\n\t\tSystem.out.printf(\"\\n\"); \r\n\t\t\tif (i < height / 2) \r\n\t\t\t\tcounter++; \r\n\t} \r\n}", "title": "" }, { "docid": "8ff02e316203f780db62f6f0b061ae78", "score": "0.48520938", "text": "static void Left2BottomEdge() {\n\t\tControl.Di();\n\t\tControl.L();\n\t\tControl.D();\n\t\tControl.L();\n\t\tControl.F();\n\t\tControl.Li();\n\t\tControl.Fi();\n\t}", "title": "" }, { "docid": "226897a0b58f1964cd33d2f28fd80149", "score": "0.48480052", "text": "static void Bottom2LeftEdge() {\n\t\tControl.D();\n\t\tControl.L();\n\t\tControl.Di();\n\t\tControl.Li();\n\t\tControl.Di();\n\t\tControl.Fi();\n\t\tControl.D();\n\t\tControl.F();\n\t}", "title": "" }, { "docid": "45afd3144a7c0f03a65eb67efa8b8e6d", "score": "0.48468688", "text": "Edge(){\n\t\t\ts = d = w = 0;\n\t\t}", "title": "" }, { "docid": "0502a0ce2ce5d036b288b7c6edee8400", "score": "0.48446882", "text": "char getImageWindows();", "title": "" }, { "docid": "764741df9b389dfaf4096cf82c2e9203", "score": "0.48303837", "text": "public String tri4(int height){\n\tint h;\n\tint i;\n String s=\"\";\n\tfor (h=height;h>=0;h--){\n\t for (i=0;i<height-h;i++){\n\t\ts = s + \" \";\n\t }\n\t for (;i<height;i++){\n\t\ts=s+\"*\";\n\t }\n\t s=s+\"\\n\";\n\t}\n\treturn s;\n }", "title": "" }, { "docid": "4502d05dca2b036b99421d0be54b548f", "score": "0.48262477", "text": "@Override\r\n\tpublic void draw () {\n\t\t\r\n\t}", "title": "" }, { "docid": "f36e3fdaa1f21baccf7c2194a1245042", "score": "0.48262006", "text": "static void Right2BottomEdge() {\n\t\tControl.R();\n\t\tControl.D();\n\t\tControl.Ri();\n\t\tControl.Di();\n\t\tControl.Ri();\n\t\tControl.Fi();\n\t\tControl.R();\n\t\tControl.F();\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.4811937", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.4811937", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "d5f1dd43aff765ca06c14f5bde9053a2", "score": "0.48092818", "text": "static void Bottom2RightEdge() {\n\t\tControl.Di();\n\t\tControl.Ri();\n\t\tControl.D();\n\t\tControl.R();\n\t\tControl.D();\n\t\tControl.F();\n\t\tControl.Di();\n\t\tControl.Fi();\n\t}", "title": "" }, { "docid": "9a2643cc7f6cf89f873f593a12b9e247", "score": "0.48006108", "text": "int richiestaPastore();", "title": "" }, { "docid": "ff437e4b48bb6c1c29c5d24df3a36a3c", "score": "0.4798889", "text": "public void div();", "title": "" }, { "docid": "290717f625c61158f81089623b00b941", "score": "0.47972414", "text": "private void rwsl() {\n\n\t\tthis.rwsl(this.root);\n\n\t}", "title": "" }, { "docid": "5b3b8768aa6ad4a9758ca74124d81585", "score": "0.4796865", "text": "public static void Top(){\n System.out.println(\" /\\\\\");\n System.out.println(\" / \\\\\");\n System.out.println(\" / \\\\\");\n }", "title": "" }, { "docid": "252810c0ea2c8a130a6b60b0ddc06525", "score": "0.479284", "text": "int area();", "title": "" }, { "docid": "a9cfb45b80e2b9290df2f3e915f88c38", "score": "0.4791285", "text": "public String toString() {\r\n\t\treturn \"/\";\r\n\t}", "title": "" }, { "docid": "f20321d53a8b548335b44e5718dc5bbc", "score": "0.47870818", "text": "@Override\n\tpublic double getKeliling() {\n\t\treturn (2*this.length)+(2*this.width);\n\t}", "title": "" }, { "docid": "2a9be608ee93df10663f97abf00bfa91", "score": "0.47825915", "text": "double volume() \r\n { \r\n return width * height * depth; \r\n }", "title": "" }, { "docid": "985a80a626cfc41fb058fbfae9d475e3", "score": "0.47748405", "text": "@Override\n\tpublic void smile() {\n\t\t\n\t}", "title": "" }, { "docid": "bd210c1db4f8dc626b50eb820f9ee074", "score": "0.4772436", "text": "static int twoPluses(String[] grid) {\n\n\n }", "title": "" }, { "docid": "715756bbe44b0262624c6633342518ac", "score": "0.4767971", "text": "public String toString() {\n/* 584 */ return \"w9x7 (lifting)\";\n/* */ }", "title": "" }, { "docid": "25565e54ad00f195eb0f2b18b1b264f2", "score": "0.4765745", "text": "private int isWedgeSpace() {\n\n return 0;\n }", "title": "" }, { "docid": "288fd3ee71b736e770bbef790831c263", "score": "0.47620386", "text": "User mo18615e();", "title": "" }, { "docid": "54a2258564b4bf3514151ff56fc55c02", "score": "0.47513312", "text": "@Override\r\n\tpublic int getCircum() {\n\t\treturn 2 * (length + width);\r\n\t}", "title": "" }, { "docid": "7b02bff1f13a2240608bffcd2ec34d7d", "score": "0.474884", "text": "public String getNodeKey(String dir) {\r\n \r\n //Forward key information\r\n ArrayList<String> composition = this._composition;\r\n ArrayList<String> directions = this._direction;\r\n ArrayList<String> scars = this._scars;\r\n ArrayList<String> linkers = this._linkers;\r\n String leftOverhang = this._lOverhang;\r\n String rightOverhang = this._rOverhang;\r\n \r\n if (dir.equals(\"+\")) { \r\n String aPartLOcompRO = composition + \"|\" + directions + \"|\" + scars + \"|\" + linkers + \"|\" + leftOverhang + \"|\" + rightOverhang;\r\n return aPartLOcompRO;\r\n } else {\r\n \r\n //Backward key information\r\n ArrayList<String> revComp = (ArrayList<String>) composition.clone();\r\n Collections.reverse(revComp);\r\n \r\n ArrayList<String> invertedDirections = new ArrayList();\r\n\r\n for(String d: directions) {\r\n if(d.equals(\"+\")) {\r\n invertedDirections.add(0,\"-\");\r\n } else {\r\n invertedDirections.add(0,\"+\");\r\n }\r\n }\r\n \r\n ArrayList<String> invertedScars = new ArrayList();\r\n for (String scar: scars) {\r\n if (scar.contains(\"*\")) {\r\n scar = scar.replace(\"*\", \"\");\r\n invertedScars.add(0,scar);\r\n } else {\r\n scar = scar + \"*\";\r\n invertedScars.add(0,scar);\r\n }\r\n }\r\n \r\n ArrayList<String> invertedLinkers = new ArrayList();\r\n for (String linker: linkers) {\r\n if (linker.contains(\"*\")) {\r\n linker = linker.replace(\"*\", \"\");\r\n invertedLinkers.add(0,linker);\r\n } else {\r\n linker = linker + \"*\";\r\n invertedLinkers.add(0,linker);\r\n }\r\n }\r\n \r\n String invertedLeftOverhang = rightOverhang;\r\n String invertedRightOverhang = leftOverhang;\r\n if (invertedLeftOverhang.contains(\"*\")) {\r\n invertedLeftOverhang = invertedLeftOverhang.replace(\"*\", \"\");\r\n } else {\r\n invertedLeftOverhang = invertedLeftOverhang + \"*\";\r\n }\r\n if (invertedRightOverhang.contains(\"*\")) {\r\n invertedRightOverhang = invertedRightOverhang.replace(\"*\", \"\");\r\n } else {\r\n invertedRightOverhang = invertedRightOverhang + \"*\";\r\n }\r\n \r\n String aPartCompDirScarLOROR = revComp + \"|\" + invertedDirections + \"|\" + invertedScars + \"|\" + invertedLinkers + \"|\" + invertedLeftOverhang + \"|\" + invertedRightOverhang;\r\n return aPartCompDirScarLOROR;\r\n }\r\n }", "title": "" }, { "docid": "cc439a2adcd9bdb7a28e2de5925e9742", "score": "0.47460204", "text": "private static native void Scharr_0(long src_nativeObj, long dst_nativeObj, int ddepth, int dx, int dy, double scale, double delta, int borderType);", "title": "" }, { "docid": "21ba28e2ac404215b1b0c380c1f7c018", "score": "0.47434402", "text": "public void leftWall(){\n\t\t\n\t}", "title": "" }, { "docid": "62c85d1006b17f19f1ee5a4eac108dfd", "score": "0.4739024", "text": "void center();", "title": "" }, { "docid": "17e507b0166d99f88c8237ad30d967b7", "score": "0.47386396", "text": "public void zamowic() {\n\t\t\n\t}", "title": "" }, { "docid": "cacc28b32304f2f889a7a9d2ba78caec", "score": "0.4735398", "text": "public int area ();", "title": "" }, { "docid": "1c4c5ac4e37bc891780fad25a043f94a", "score": "0.4733982", "text": "protected int getHorizontalLegBuffer() {\n return 0;\n }", "title": "" }, { "docid": "7f2a65a138af866dd962e5e8462a763a", "score": "0.47326818", "text": "static void Top2RightEdge() {\n\t\tControl.U();\n\t\tControl.R();\n\t\tControl.Ui();\n\t\tControl.Ri();\n\t\tControl.Ui();\n\t\tControl.Fi();\n\t\tControl.U();\n\t\tControl.F();\n\t}", "title": "" }, { "docid": "b5ef3e98b60ce7ef9c5037d0f1bc273e", "score": "0.47281682", "text": "public double volume() {\n\nreturn width * width * width;\n}", "title": "" }, { "docid": "5b2298fea591f188fb02394ef5b8f4d8", "score": "0.47278953", "text": "public void zufallsweg() {\n int maxX = getWidth(), maxY = getHeight();\n int halfX = (int) (maxX/2), halfY = (int) (maxY/2);\n\n char[][] map = new char[maxX][maxY];\n for( int y = 0; y < maxY; y++ ) {\n for( int x = 0; x < maxX; x++ ) {\n map[x][y] = 'H';\n }\n }\n\n Random r = new Random();\n // Generate random center points\n int[] p1 = new int[2], p2 = new int[2];\n // left half\n p1[0] = r.nextInt(halfX-6)+3;\n p1[1] = r.nextInt(maxY-8)+4;\n p2[0] = r.nextInt(halfX-6)+3+halfX;\n p2[1] = r.nextInt(maxY-8)+4;\n\n // Generate random edge points\n\n // Generate path\n //int startX = p1[0]+3, startY = p1[1];\n\n map[p1[0]][p1[1]] = 'M';\n map[p2[0]][p2[1]] = 'M';\n\n while(p1[0] != p2[0] || p1[1] != p2[1] ) {\n int q = r.nextInt(2);\n if( p1[q] != p2[q] ) {\n p1[q] -= Math.signum(p1[q]-p2[q]);\n map[p1[0]][p1[1]] = '#';\n }\n }\n\n // print(map);\n\n String m = \"\";\n for( int y = 0; y < maxY; y++ ) {\n for( int x = 0; x < maxX; x++ ) {\n m += map[x][y];\n }\n m += \"\\n\";\n }\n // Display map\n weltLeeren();\n weltErstellen(m);\n }", "title": "" }, { "docid": "540414158c9ca1fc29b6eeec67b84e57", "score": "0.47218996", "text": "protected void fillPath() {\n/* 1384 */ this.mPSStream.println(this.mFillOpStr);\n/* */ }", "title": "" }, { "docid": "30ac6b5f2ccab1a04e811bc3886533f9", "score": "0.4721628", "text": "private void drawBufferImage() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "3c86de76e0945c6ee04a78778052232b", "score": "0.47180334", "text": "public Function(){\n horizontal = 1; \n vertical = 1; \n verticalPhase = 0; \n horizontalPhase = 0; \n }", "title": "" }, { "docid": "36de519138a9fc38e3e49b1e4c178e38", "score": "0.4716322", "text": "@Override\n public void roofed() {\n System.out.println(\" 普通房子屋顶 \");\n }", "title": "" }, { "docid": "0c946af32cea3999adf085939664e082", "score": "0.47149613", "text": "private static int posDoorNul() {\r\n int i = 1;\r\n int j = 0;\r\n i = i / j;\r\n return i;\r\n }", "title": "" }, { "docid": "2e964fd2b543dcb45c62c00afcec295b", "score": "0.4714701", "text": "static void Right2TopEdge() {\n\t\tControl.Ri();\n\t\tControl.Ui();\n\t\tControl.R();\n\t\tControl.U();\n\t\tControl.R();\n\t\tControl.F();\n\t\tControl.Ri();\n\t\tControl.Fi();\n\t}", "title": "" }, { "docid": "106ce0ada7b978eeffda7ec9cccc29e2", "score": "0.4703473", "text": "public void дразнит() {\n\n\t}", "title": "" }, { "docid": "cdf87235ef8d74cb346cbcf958244bcc", "score": "0.47031808", "text": "public String tri2(int h){\n\tint n =h;\n\tint c = 1;\n\tString result =\"\";\n\twhile (c<=h){\n\t int g =n;\n\t while (g>c){\n\t\tresult +=\" \";\n\t\tg-=1;\n\t }\n\t while (g<=c && g>0){\n\t\tresult+=\"*\";\n\t\tg-=1;\n\t }\n\t c+=1;\n\t result+=\"\\n\";\n\t}\n\treturn result;\n }", "title": "" }, { "docid": "83d2fe76cba9e33544700afcea0a6a40", "score": "0.46988782", "text": "public static void drawShape(int x){\n\t\tfor (int i=0; i<x+1; i++){\n\t\t\tSystem.out.print(\"/\"); \n\t\t}\n\t\tfor (int i=0; i<x+1; i++){\n\t\t\tSystem.out.print(\"\\\\\");\n\t\t}\n\t\tSystem.out.println(); // To end line\n\t\tSystem.out.print(\"/\");\n\t\tfor (int i=0; i<x; i++){\n\t\t\tSystem.out.print(\"**\");\n\t\t}\n\t\tSystem.out.println(\"/\");\n\t\tfor (int i=0; i<x+1; i++){\n\t\t\tSystem.out.print(\"\\\\\");\n\t\t}\n\t\tfor (int i=0; i<x+1; i++){\n\t\t\tSystem.out.print(\"/\");\n\t\t}\n\t}", "title": "" }, { "docid": "aa9e3901d8ea7a0157a9880ede261d20", "score": "0.46924475", "text": "public double getWidth() { return _w; }", "title": "" }, { "docid": "dd1e86216a5d3d69476648e0161d267d", "score": "0.46875677", "text": "@Override\n\tpublic void draw3() {\n\n\t}", "title": "" }, { "docid": "06750b6f55d7e0e3e00234e2e2bba37e", "score": "0.46873817", "text": "double volume(){\n return width*height*depth;\n }", "title": "" }, { "docid": "9969c2cd0a26f223be9eea348d1c6160", "score": "0.4683501", "text": "private static void 로또수동생성() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c4906f8ce45c5ec3d19fbdea7040ebf5", "score": "0.46827722", "text": "@Override\n\tpublic void draw() {\n\n\t}", "title": "" }, { "docid": "dab78e85aa722ffa15a1cd4f4bc1e6f8", "score": "0.46817225", "text": "@Test\r\n public void testWithOneSide0() {\r\n int expected = 0;\r\n int length = 0;\r\n int height = 1;\r\n assertEquals(expected,OneWayGridNavigator.findPaths(length, height));\r\n \r\n length = 10;\r\n height = 0;\r\n assertEquals(expected,OneWayGridNavigator.findPaths(length, height));\r\n \r\n }", "title": "" }, { "docid": "d946a80cf5ff1992877e7221ae72200b", "score": "0.46711704", "text": "public String toString(){\r\n return \"Lenght: \"+length+ \" \"\r\n +\" Height\"+ \" \"\r\n + height+ \" Width:\"\r\n +\" \" +width+ \" \"\r\n + \"Is Full ? \"+isFull();\r\n}", "title": "" }, { "docid": "a1843ac910e2907bfbd17203dc8f7a96", "score": "0.46710563", "text": "private int differenceX() {\n return getWidth() / 8;\n }", "title": "" }, { "docid": "ec610be7c84fdacd108745ad5cb6e076", "score": "0.4670887", "text": "void upcurseur1() {if (positioncurseur1 != 0) {positioncurseur1 -= 1;}}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.4668785", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "c1576ca493a4a9a96639c82665bfba1f", "score": "0.46667305", "text": "public void drawr(){\n rect(200,200,100,30);\n rect(400,200,100,30);\n}", "title": "" }, { "docid": "7d6bfdff01d32e530e8ed799ea786e41", "score": "0.46659106", "text": "static void Left2TopEdge() {\n\t\tControl.L();\n\t\tControl.U();\n\t\tControl.Li();\n\t\tControl.Ui();\n\t\tControl.Li();\n\t\tControl.Fi();\n\t\tControl.L();\n\t\tControl.F();\n\t}", "title": "" }, { "docid": "f4e1c3e18acb4894034becc63848788e", "score": "0.4665258", "text": "protected int getDirection() { return 1; }", "title": "" }, { "docid": "2d2aebeb47cd27c77231e077a825727a", "score": "0.46636328", "text": "void fullForward( );", "title": "" }, { "docid": "79f94e0d51a6dbe371081c0ec97f2965", "score": "0.46617228", "text": "public static CommandGroup slalom3() {\n\n CommandGroup output = new CommandGroup();\n Path slalomPath = new Path(Rotation2.ZERO);\n\n\n slalomPath.addSegment(\n new PathLineSegment(\n new Vector2(0,0),\n new Vector2(-24, 0)\n )\n ); // drive forward\n\n slalomPath.addSegment( // arc around D2\n new PathArcSegment(\n new Vector2(-24, 0),\n new Vector2(-52, -28), \n new Vector2(-24, -28) \n )\n );\n\n slalomPath.addSegment( // arc around D4\n new PathArcSegment(\n new Vector2(-52, -28),\n new Vector2(-63.581, -60), \n new Vector2(-102, -28) \n )\n );\n\n slalomPath.addSegment( // drive to D8 tangent\n new PathLineSegment(\n new Vector2(-63.581, -60),\n new Vector2(-234, -60)\n )\n ); \n\n slalomPath.addSegment(\n new PathLineSegment(\n new Vector2(-234, -60),\n new Vector2(-234, 0)\n )\n ); \n\n slalomPath.addSegment( // drive to end of field arc\n new PathLineSegment(\n new Vector2(-234, 0),\n new Vector2(-252, 0)\n )\n ); \n\n slalomPath.addSegment( // arc around D4\n new PathArcSegment(\n new Vector2(-252, 0),\n new Vector2(-300, -48), \n new Vector2(-270, -30) \n )\n );\n\n slalomPath.addSegment( // arc around D4\n new PathArcSegment(\n new Vector2(-300, -48),\n new Vector2(-235, -28), \n new Vector2(-270, -30) \n )\n );\n\n slalomPath.addSegment( // end of arc and drives straight\n new PathLineSegment(\n new Vector2(-235, -28),\n new Vector2(-235, 5)\n )\n ); \n\n slalomPath.addSegment(\n new PathLineSegment(\n new Vector2(-235, 5),\n new Vector2(-42, 5)\n )\n ); \n\n slalomPath.addSegment(\n new PathLineSegment(\n new Vector2(-42, 5),\n new Vector2(-42, -60)\n )\n ); \n\n slalomPath.addSegment(\n new PathLineSegment(\n new Vector2(-42, -60),\n new Vector2(0, -60)\n )\n ); \n\n slalomPath.addSegment(\n new PathLineSegment(\n new Vector2(0, -60),\n new Vector2(5, -60)\n )\n ); \n\n\n\n Trajectory slalomTrajectory = new Trajectory(slalomPath, Robot.drivetrainSubsystem.CONSTRAINTS);\n AutonomousTrajectoryCommand slalomCommand = new AutonomousTrajectoryCommand(slalomTrajectory);\n output.addSequential(slalomCommand); \n\n return output;\n }", "title": "" }, { "docid": "02e04b8a2141156e0153400d74976220", "score": "0.46519464", "text": "private int parent(int pos) {\n return pos / 2;\r\n }", "title": "" }, { "docid": "456a450a117d532634878e3385ad8e70", "score": "0.46507934", "text": "public void biteEar() {\n\t\t\n\t}", "title": "" }, { "docid": "9d7739f6aef18a4d7452259a03b44820", "score": "0.46466392", "text": "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d7739f6aef18a4d7452259a03b44820", "score": "0.46466392", "text": "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d7739f6aef18a4d7452259a03b44820", "score": "0.46466392", "text": "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "title": "" }, { "docid": "310ff958b44b3ba8733a2147dd0febc4", "score": "0.4641784", "text": "public void johnsonGroundFloor(){\n johnsonGroundTop();\n johnsonGroundMid();\n johnsonGroundBottom();\n }", "title": "" }, { "docid": "76a80470fd21f5a9092c258ed3a8a632", "score": "0.464152", "text": "private static void 로또번호리스트() {\n\t\t\r\n\t}", "title": "" }, { "docid": "428444136b42e2810cbc1411b4e6d31b", "score": "0.46406868", "text": "public abstract int getBaseWidth();", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.4639713", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "09597db5d6a41b4373db5180e94a9c5d", "score": "0.4639461", "text": "private static void printNameArt(){\n\n System.out.println(\" __ __ __ _____ __ _________ | \");\n System.out.println(\"| \\\\ / \\\\ | \\\\ | | \\\\ | | \");\n System.out.println(\"| \\\\ | | | _/ | | \\\\ | | \");\n System.out.println(\"|___| | | | \\\\ |_____ |___| | | \"); \n System.out.println(\"| \\\\ | | | \\\\ | | \\\\ | \");\n System.out.println(\"| \\\\ \\\\__/ |___/ |_____ | \\\\ | * \"); \n \n}", "title": "" } ]
abb5b962b05ec767445577e15ff548db
simple check if this fruit link to previous fruit in the same row in any way
[ { "docid": "723fefb3299ed65e0262209e30d56824", "score": "0.0", "text": "private boolean checkDuplicate(Node root, int row, int col) {\n char checkFruit = root.box.get(row).charAt(col);\n if(checkFruit == '*') return false;\n // when the previous col is the same fruit\n if(col - 1 >= 0 && checkFruit == root.box.get(row).charAt(col - 1)) return false;\n // when the previous row is the same fruit\n if(row - 1 >= 0 && checkFruit == root.box.get(row - 1).charAt(col)) return false;\n\n\n return true;\n }", "title": "" } ]
[ { "docid": "d134cd84b6c295afdaa83488d4930b1a", "score": "0.7030926", "text": "public boolean hasPrevious();", "title": "" }, { "docid": "d134cd84b6c295afdaa83488d4930b1a", "score": "0.7030926", "text": "public boolean hasPrevious();", "title": "" }, { "docid": "a5cec78db0e065c0e4b2e5e3855bb000", "score": "0.67907804", "text": "public boolean previous() throws SQLException;", "title": "" }, { "docid": "6385d6a2866094c2d01b21e51d06bdb4", "score": "0.662967", "text": "@Override\n public boolean hasPrevious() {\n // BEGIN (write your solution here)\n return index > 0;\n // END\n }", "title": "" }, { "docid": "23d43120fddbc68c2feb71db3921e2cf", "score": "0.65484667", "text": "public boolean hasPrevious()\n {\n return 0 != index;\n }", "title": "" }, { "docid": "e5a9728fceb19428fe16bb20d9d93f0e", "score": "0.6463252", "text": "@Override\n public boolean hasPrevious() {\n return index > 0;\n }", "title": "" }, { "docid": "cb06c4f2f5ac6bcad877ba952b303e92", "score": "0.64214295", "text": "public synchronized boolean hasPrevious() {\n\t\treturn this.history.size() > 1;\n\t}", "title": "" }, { "docid": "e464381d0e1c53ff8e17f96c8ff66020", "score": "0.64071286", "text": "public boolean hasPrevious()\n {\n return (pointer > 0);\n //also:\n //if (this.previous() == null) return false;\n //return true;\n //also:\n //return this.previous()!=null\n }", "title": "" }, { "docid": "85b21fc7dc60d4166f74a58c47a81f30", "score": "0.6375073", "text": "public boolean hasPrevious() {\n\t\treturn recEnum.hasPreviousElement();\n\t}", "title": "" }, { "docid": "a266680b8de2f8a4e2c476ec6b4106cb", "score": "0.63395345", "text": "@Override\n\t\tpublic boolean hasPrevious() {\n\t\t\treturn (nextItem == null && size != 0)\n || nextItem.previous != null;\n\t\t}", "title": "" }, { "docid": "f89f3fc6d8db5319d1e340c2f9e62943", "score": "0.63366973", "text": "public boolean hasPrevious()\n\t{\n\t\tboolean noError = false;\n\t\tif(pointingOnMove != null)\n\t\t{\n\t\t\tif(pointerIndex > 0)\n\t\t\t{\n\t\t\t\tnoError = true;\n\t\t\t}\n\t\t}\n\t\treturn noError;\n\t}", "title": "" }, { "docid": "e62d7c4ce37b10b68722f6821084bd2b", "score": "0.633402", "text": "public boolean hasPrevious()\n\t{\n\t\treturn myCurrentIndex > 0;\n\t}", "title": "" }, { "docid": "6768bc59b4ca9c9d9b809b171179c5e4", "score": "0.6286819", "text": "public final boolean hasPrevious() {\n return this.current > 1;\n }", "title": "" }, { "docid": "b29f21efb38767c94280542b9506e69d", "score": "0.62618655", "text": "boolean previous() throws SqlJetException;", "title": "" }, { "docid": "13697e2f355ca4f8d4ef886009e8402f", "score": "0.6140707", "text": "public boolean hasPrev(){\n if(((DoublyLinkedList.Entry) cursor).prev == head)\n return false;\n return ((DoublyLinkedList.Entry) cursor).prev != null;\n }", "title": "" }, { "docid": "b7d6c712e638b87f86d45cd6c89783cf", "score": "0.60931903", "text": "public boolean seekToPreviousRow(Cell key) throws IOException;", "title": "" }, { "docid": "34d7aa957deab6716ccde242357ab56e", "score": "0.60897964", "text": "public boolean hasPrevious() {\r\n return hasPrevious;\r\n }", "title": "" }, { "docid": "066e2f8862fc8f428efbe10f11abd8a9", "score": "0.6053073", "text": "private boolean inPrev(Location next, DList prev) {\n\t\tif (next != null) {\n\t\t\tDListNode currNode = prev.front();\n\t\t\twhile (currNode != null) {\n\t\t\t\tif (next.equals(currNode.item)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tcurrNode = prev.next(currNode);\n\t\t\t}\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "9e01c4b3fab6564570d8a82fdeb358b3", "score": "0.60316044", "text": "boolean isPreviousVisible();", "title": "" }, { "docid": "7ba45051ce55076ac197d901e121fa86", "score": "0.5980514", "text": "public boolean hasPreviousStep() {\r\n return pos > 0;\r\n }", "title": "" }, { "docid": "930786d30a1db3b542a27365f816ba92", "score": "0.5943224", "text": "boolean hasPrev() throws IteratorException;", "title": "" }, { "docid": "70a6b6468ed1d4f6c494cd0a3a69d4d9", "score": "0.5844424", "text": "boolean historyPrevAction() {\n _doc.recallPreviousInteractionInHistory();\n moveToEnd();\n return false;\n }", "title": "" }, { "docid": "73650352281f93bb886df2845298e5b0", "score": "0.58351225", "text": "public boolean hasPrevious() {\r\n if (sqlResult == null)\r\n return false;\r\n if (!sqlResult.isResultSet())\r\n return false;\r\n if (sqlResult instanceof SQLStandardResultSetResults) {\r\n SQLStandardResultSetResults queryResult = (SQLStandardResultSetResults) sqlResult;\r\n return queryResult.hasPreviousPage()&&!queryResult.isFullMode();\r\n } else\r\n return false;\r\n }", "title": "" }, { "docid": "1aefade8c4786fa8bea1df94c76df1d2", "score": "0.58294225", "text": "public boolean hasPrevious(DNode < E > v) {\n\t\treturn v != _header;\n\t}", "title": "" }, { "docid": "1e8e10703a31a42aeb6e09479a595d11", "score": "0.56967694", "text": "public boolean hasPrev(DNode v) {\n\t\treturn v != header;\n\t}", "title": "" }, { "docid": "6d613667267a4fc8f8ffcaaeee0fb7cc", "score": "0.56695354", "text": "public boolean hasPrev() throws Exception\r\n {\r\n return (m_iIndex > 0);\r\n }", "title": "" }, { "docid": "2dac6f6ef345891ce71989a06e413ad1", "score": "0.5662517", "text": "boolean hasPrevLogIndex();", "title": "" }, { "docid": "c1e3843c36e98061f27e8553ed51c618", "score": "0.5656636", "text": "@Override\n\tpublic boolean previousStep() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "762a6f4b0c24e3d906277d3628b8d128", "score": "0.5623462", "text": "public boolean goToPreviousSibling() {\n\t\tif (hasSiblingsToLeft()) {\n\t\t\tdebug(\"going to previous sibling\"); //$NON-NLS-1$\n\t\t\tlocation.goToPreviousSibling();\n\t\t\tcurrentNode = location.get(root);\n\t\t\tcheckAndSetNextDepthExists();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "f34246746c4b50fd901bfee876ee3b84", "score": "0.5615796", "text": "int getPrevRow();", "title": "" }, { "docid": "92f081ff63941cd365453d8e8a489ef8", "score": "0.56133735", "text": "public Row getPrev() {\n\t\treturn prev;\n\t}", "title": "" }, { "docid": "d3c98f27e1772d831420c2d881927143", "score": "0.56051505", "text": "public boolean hasPrevious (String current)\n {\n //searches the list to find the node containing the parameter value\n DoublyListNode currentNode = searchByValue(current);\n //if the search fails and the parameter value is not found\n if (currentNode == null)\n {\n return false;\n }\n //else if the parameter is found\n else\n {\n //if the current node does not reference a previous node\n if (currentNode.getPrevious() == null)\n {\n return false;\n }\n //else if the current node does referencing a previous node\n else\n {\n return true;\n }\n }\n }", "title": "" }, { "docid": "f90860299ccd88cecad9e8d4ec3b9a58", "score": "0.5515809", "text": "@Override\n public boolean useBackForPrevious() {\n return true;\n }", "title": "" }, { "docid": "5077de26f218f45ff2c5ce3696c9e3c7", "score": "0.5501558", "text": "boolean hasPreviousRank();", "title": "" }, { "docid": "06eb20fcccb48cfc84239cf99b1214c9", "score": "0.5471712", "text": "E previous();", "title": "" }, { "docid": "fc5d445011dc0c8f9a937dafa5084ee5", "score": "0.544802", "text": "public final Linkage prev() { return PRED; }", "title": "" }, { "docid": "8a06d7ec4ebc241b7534c16c3dac83d9", "score": "0.5430641", "text": "public void previous();", "title": "" }, { "docid": "904f391d14378ea095d83fa024021510", "score": "0.5428203", "text": "private boolean contradictsHistory(int startFrame, int x, int y, Graphic graphic) {\r\n if (startFrame < 0) {\r\n return true;\r\n }\r\n\r\n for (int i = startFrame; i >= 0; i--) {\r\n Graphic old = frames.get(i)[x][y];\r\n\r\n if (old != null && !old.equals(graphic)) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "title": "" }, { "docid": "6c08d654d4ec7f747f93c9fd32e40e5d", "score": "0.5398202", "text": "@Override\r\n protected int mapTowardModel(int row) {\r\n return toPrevious[row];\r\n }", "title": "" }, { "docid": "3b3257373c83a6d70e7ea767e4a11f31", "score": "0.5393405", "text": "public void previous() {\n if (pointer <= 0) {\n pointer = 0;\n tape.add(0, NEW_CELL);\n } else {\n --pointer;\n }\n }", "title": "" }, { "docid": "8f7ea9076f30d68389af0b59d10ff369", "score": "0.53797424", "text": "public E previous();", "title": "" }, { "docid": "e195038ff602e58085b8f82b2b3d04fb", "score": "0.5338878", "text": "private static boolean checkPreviousComp(ArrayList<String> group, String r) {\n\t\tfor (int j = 0; j < group.size(); j++) {\n\t\t\tString item = group.get(j) + \"-\" + r;\n\t\t\tif (!(RulesListInfo.get(item) != null && RulesListInfo.get(item).equals(1))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0f0911ec6128c0bf162440b724e02260", "score": "0.53385615", "text": "private boolean isBefore(Element item, Element tgt, List<Element> parents) {\n if (parents.contains(tgt)) {\n // actually, if the target is a parent, that's automatically ok\n return true;\n }\n for (Element p : parents) {\n int i = findIndex(p, item);\n int t = findIndex(p, tgt);\n if (i > -1 && t > -1) {\n return i > t;\n }\n }\n return false; // unsure... shouldn't ever get to this point;\n }", "title": "" }, { "docid": "cfc776b39717d2d61f53750aeadf75f4", "score": "0.53311646", "text": "boolean checkPrevDefrag();", "title": "" }, { "docid": "c3d20701511495ace602f9dafde4250d", "score": "0.5328925", "text": "public boolean getPreviousGuesses(int i) {\n\t\treturn previousGuesses[i];\n\t}", "title": "" }, { "docid": "f7d89ffa0f5004f224d07aaaa671ed8e", "score": "0.532646", "text": "int previous(int position);", "title": "" }, { "docid": "69a91c3a51c06cf52a9230d0d249f249", "score": "0.52784425", "text": "boolean hasPreviousClientOrderID();", "title": "" }, { "docid": "ae66c3d9c41cb6c55b78412f72af5aaa", "score": "0.52657664", "text": "public static boolean seenBefore(HiRiQ board){\r\n for(int i=0; i<global.pastBoards.size(); i++){\r\n if(equals(board,global.pastBoards.get(i))){\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "0f38d338e9d655f1be6ddec391182bba", "score": "0.5252989", "text": "StepResult previous();", "title": "" }, { "docid": "ed1a15d5353f94452adde57c0e14a3c9", "score": "0.52493656", "text": "private static boolean previousMessageIsFromAnotherSender(int i, List<ChatMessage> chatMessageItems) {\n\n return chatMessageItems.get(i - 1).getMessageItem().getMessageSource() != chatMessageItems.get(i).getMessageItem().getMessageSource();\n }", "title": "" }, { "docid": "36982b117dc8f69ebff87c47accb3124", "score": "0.52327675", "text": "private boolean isQueryTheSameAsPrevious(@NonNull String query) {\n return recentQuery != null && recentQuery.equals(query);\n }", "title": "" }, { "docid": "322be049a80d1f73e3b42740579abf09", "score": "0.5217739", "text": "public Reitti getPrevious() {\n return previous;\n }", "title": "" }, { "docid": "5cbe5df84159eae9094283e0aa8e8390", "score": "0.51939064", "text": "public boolean justGoUp() {\n if (previousBuyIndex == buyIndex) {\n return false;\n }\n previousBuyIndex = buyIndex;\n boolean b = buyIndex >= 2 &&\n buyQuotes[buyIndex - 2] > buyQuotes[buyIndex - 1] && buyQuotes[buyIndex - 1] < buyQuotes[buyIndex];\n if (b) {\n logger.debug(\"{} just goes up {} {} {}\", symbol,\n buyQuotes[buyIndex - 2], buyQuotes[buyIndex - 1], buyQuotes[buyIndex]);\n }\n return b;\n }", "title": "" }, { "docid": "fa82476e68c1f574ccacd3015a371249", "score": "0.5180004", "text": "@Override\n\tpublic boolean hasPredecessor() {\n\t\tif(previousVertex != null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "a1fee59eb5265c1a3aa4f7875f773e32", "score": "0.51765674", "text": "public boolean hasNext() \n\t{\n\t\treturn myCurrentIndex < (myHistory.size() - 1);\n\t}", "title": "" }, { "docid": "c4900dc0f7e86ad07819dd6c68f9546b", "score": "0.5167424", "text": "public abstract EventNavigatorElementSwitchZZZ getEventPrevious();", "title": "" }, { "docid": "3b0662b474316f72e734b3ac8f244478", "score": "0.5155656", "text": "@Override\n public boolean hasPreviousPage() {\n return this.pageNumber > 0;\n }", "title": "" }, { "docid": "9707e0b58d0016b397e613963f4dd3d3", "score": "0.5147664", "text": "@Override\n public T previous() {\n // BEGIN (write your solution here)\n if (!hasPrevious())\n throw new NoSuchElementException();\n\n last = --index;\n return m[index];\n // END\n }", "title": "" }, { "docid": "7dfc6e455a92b2981a5add69579ed262", "score": "0.51414824", "text": "public ISLink<T> getPrev();", "title": "" }, { "docid": "7fe64ff47a1be0d4f4e708b2cfe1e5da", "score": "0.51328933", "text": "protected abstract void onPrevious();", "title": "" }, { "docid": "8d788b2330cbea4c1870dc9a53bfa0a8", "score": "0.5097496", "text": "public void prev ()\r\n {\n if (node.right == null)\r\n {\r\n RBTree tree = (RBTree)node.nodeData;\r\n \r\n // make sure that the node hasn't been removed from the tree\r\n assert tree != null;\r\n \r\n node = tree.getMax();\r\n return;\r\n }\r\n\r\n // okay, I got a legitimate node here\r\n RBNode currentNode = node;\r\n\r\n // if I'm not looking at a logical leaf\r\n if (currentNode.left.right != null)\r\n {\r\n currentNode = currentNode.left;\r\n while (currentNode.right.right != null)\r\n currentNode = currentNode.right;\r\n \r\n node = currentNode;\r\n return;\r\n }\r\n\r\n RBNode parent = currentNode.parent;\r\n\r\n while (parent != null && currentNode == parent.left)\r\n {\r\n currentNode = parent;\r\n parent = currentNode.parent;\r\n }\r\n \r\n // if parent == null, I have asked for a prev of the first\r\n // element which is illegal!\r\n assert parent != null;\r\n\r\n node = parent;\r\n }", "title": "" }, { "docid": "ea0050c61ead7701207fe63bec188e34", "score": "0.50941163", "text": "void previous();", "title": "" }, { "docid": "90788e284634e9c6b46054c2eea0a7e0", "score": "0.50728303", "text": "boolean hasUp();", "title": "" }, { "docid": "77abb51ddaee702314a436d702fb470d", "score": "0.5064621", "text": "@Override\n public int previousIndex() {\n // BEGIN (write your solution here)\n return index - 1;\n // END\n }", "title": "" }, { "docid": "d6f187c0cd88c767e789c396b0bb7de5", "score": "0.5055273", "text": "public boolean back()\r\n\t\t{\r\n\t\t\tWizardPanelInterface prev = currentCard.getPrev();\r\n\t\t\t\r\n\t\t\tcardLayout.show(this, prev.getName());\r\n\t\t\tcurrentCard = prev;\r\n\r\n\t\t\treturn prev == editOrNewPanel;\r\n\t\t}", "title": "" }, { "docid": "4871094f1c087ed70f0e20b0533ef2e5", "score": "0.505416", "text": "public void previous(){\n try{\n current = tree.predecessor(current.getDataKey());\n updateScreen(current);\n }catch(DictionaryException e){\n displayError(e.toString());\n }\n }", "title": "" }, { "docid": "ba4261df6ed998c70a54d71b9fd81f6c", "score": "0.5050453", "text": "public int previousStep() {\r\n // revert shapes of current step\r\n if (hasPreviousStep()) {\r\n // revert changes done in current step\r\n final List<VisualizationElement> currentElements = traceList.get(\r\n pos).getInvolvedElements();\r\n highlightShapes(currentElements, true);\r\n pos--;\r\n\r\n // check if previous step was violation & highlight again\r\n final List<VisualizationElement> previousElements = traceList.get(\r\n pos).getInvolvedElements();\r\n\r\n List<VisualizationElement> tasksToHighlight = new ArrayList<VisualizationElement>();\r\n\r\n for (VisualizationElement element : currentElements) {\r\n // no violation\r\n if (!(element.getAction() == ActionType.VIOLATION))\r\n continue;\r\n\r\n if (element.getbObject() instanceof Task) {\r\n tasksToHighlight.add(new VisualizationElement(element\r\n .getId(), element.getbObject(), element\r\n .getpElement(), ActionType.EXECUTE));\r\n }\r\n\r\n }\r\n\r\n // check if previos step was claim & highlight again\r\n boolean previousClaim = false;\r\n for (VisualizationElement element : previousElements) {\r\n if (element.getAction() == ActionType.CLAIM) {\r\n previousClaim = true;\r\n break;\r\n }\r\n }\r\n\r\n if (previousClaim) {\r\n highlightShapes(previousElements, false);\r\n }\r\n if (tasksToHighlight.size() > 0) {\r\n highlightShapes(tasksToHighlight, false);\r\n }\r\n }\r\n return pos;\r\n }", "title": "" }, { "docid": "c3203ea2d108b154593958e189cdfb86", "score": "0.504255", "text": "public boolean canStepBackward() {\n return !indexAtLeftEndOfTransactions();\n }", "title": "" }, { "docid": "fa9480d6a2682fffba5e9eaf6ef856f4", "score": "0.503494", "text": "boolean historyNextAction() {\n _doc.recallNextInteractionInHistory();\n moveToEnd();\n return false;\n }", "title": "" }, { "docid": "a727378588a9e3a62805b815549178a8", "score": "0.5032326", "text": "@Override\n\t\tpublic int previousIndex() {\n\t\t\treturn this.getIndex() - 1;\n\t\t}", "title": "" }, { "docid": "87303b64b7e244fd69576bf15eb8a81d", "score": "0.5026028", "text": "private boolean checkForBackButtonConfusion(EditConfigurationVTwo editConfig, VitroRequest vreq, Model model) {\n\t\t//back button confusion limited to data property\n\t\tif(EditConfigurationUtils.isObjectProperty(editConfig.getPredicateUri(), vreq)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tWebappDaoFactory wdf = vreq.getWebappDaoFactory();\n\t\t if ( ! editConfig.isDataPropertyUpdate())\n\t return false;\n\t \n Integer dpropHash = editConfig.getDatapropKey();\n DataPropertyStatement dps = \n RdfLiteralHash.getPropertyStmtByHash(editConfig.getSubjectUri(), \n editConfig.getPredicateUri(), dpropHash, model);\n if (dps != null)\n return false;\n \n DataProperty dp = wdf.getDataPropertyDao().getDataPropertyByURI(\n editConfig.getPredicateUri());\n if (dp != null) {\n if (dp.getDisplayLimit() == 1 /* || dp.isFunctional() */)\n return false;\n else\n return true;\n }\n return false;\n\n\t}", "title": "" }, { "docid": "f11972c343593c2ba52a51fa80af731c", "score": "0.5021079", "text": "Node previous(Node curr){\n\t\tNode temp_curr = head;\n\t\twhile(true){\n\t\t\t\n\t\t\t// break and return if finding that the next node is curr\n\t\t\tif(temp_curr.getNext() == curr){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t// else continue to traverse across the list\n\t\t\telse{\n\t\t\t\ttemp_curr = temp_curr.getNext();\n\t\t\t}\n\t\t}\n\t\treturn temp_curr;\n\t}", "title": "" }, { "docid": "d8f444b0c7e56bfab947b391e504de23", "score": "0.50181633", "text": "public abstract boolean hasAsPredecessor(AbstractNeuron neuron);", "title": "" }, { "docid": "b9d7421cd99f7bc13f2ca4dea5e36809", "score": "0.5011077", "text": "public int previousIndex()\n {\n if (this.hasNext()) return (pointer-1);\n return -1;\n\n /* Old: returns the element that would be returned by a subsequent call to previous().\n try {\n return this.previous();\n }\n catch (NoSuchElementException e){\n return -1;\n }\n return 0;\n */\n }", "title": "" }, { "docid": "a7d399ce4e23b13b636013a2c95fe6c8", "score": "0.49990574", "text": "public void historyPrevious() {\n\t\tif (historyIndex > 0) {\n\t\t\thistoryIndex--;\n\t\t\thistoryUpdate();\n\t\t}\n\t}", "title": "" }, { "docid": "923aae2da7df58c1d34a2e95279dcd63", "score": "0.49899548", "text": "public void prevCard(int ca_id) {\n boolean f = false;\n int count = 0;\n int maxCount;\n\n Element targetColumnElement;\n\n cardElement = searchCard(ca_id);\n\n this.co_id = Kanban.tryParseInt(cardElement.getAttribute(\"co_id\"));\n\n columnElement = searchColumn(co_id);\n \n columnList = doc.getElementsByTagName(\"column\");\n Element lastDone = (Element) columnList.item(columnList.getLength()-1);\n \n if (columnElement.getAttribute(\"name\").equals(\"Done\")){\n maxCount = 1;\n } else {\n maxCount = 2;\n }\n \n //Beim letzten Done\n if(lastDone.getAttribute(\"co_id\").equals(columnElement.getAttribute(\"co_id\"))){\n maxCount = 2;\n }\n\n columnList = doc.getElementsByTagName(\"column\");\n\n\n for (int i = columnList.getLength() - 1; i >= 0; i--) {\n if (f == false) {\n if (Kanban.tryParseInt(getString(columnList.item(i).getAttributes().getNamedItem(\"co_id\").toString())) == co_id) {\n f = true;\n }\n } else {\n count++;\n }\n\n targetColumnElement = searchColumn(Kanban.tryParseInt(getString(columnList.item(i).getAttributes().getNamedItem(\"co_id\").toString())));\n if (targetColumnElement.getAttribute(\"name\").equals(\"Next\")) {\n count = 2;\n }\n\n if (count == maxCount) {\n targetColumnElement = searchColumn(Kanban.tryParseInt(getString(columnList.item(i).getAttributes().getNamedItem(\"co_id\").toString())));\n\n cardElement.getAttribute(\"co_id\");\n if (checkWip(Kanban.tryParseInt(targetColumnElement.getAttribute(\"co_id\"))) == true) {\n \n deleteCard(ca_id, this.co_id);\n targetColumnElement.appendChild(this.addCard(cardElement, getString(targetColumnElement.getAttribute(\"co_id\"))));\n editCard(Kanban.tryParseInt(cardElement.getAttribute(\"ca_id\")), \"co_id\", targetColumnElement.getAttribute(\"co_id\"));\n\n\n updateXML(xmlPath);\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "6c92b4c05b0188892629a49f084b38b5", "score": "0.49890006", "text": "private boolean isNextElementInLocation(final PQElem actualElement) {\n\t\tlong lastLocLineID = lastElemOnLocation.getLine().getID();\n\t\tlong actPrevLineID = actualElement.getPrevious().getLine().getID();\n\t\tlong nextLocLineID = location.get(lastElemPos + 1).getID();\n\t\tlong actLineID = actualElement.getLine().getID();\n\t\t// check if actual previous equals the last line found in location\n\t\tboolean equalPrev = (lastLocLineID == actPrevLineID);\n\t\t// check if actual line comes next in location\n\t\tboolean nextInLocation = (nextLocLineID == actLineID);\n\t\treturn (equalPrev && nextInLocation);\n\t}", "title": "" }, { "docid": "215b79c1381636694abc99a9959bc080", "score": "0.49862066", "text": "public boolean isPreviousAvailable();", "title": "" }, { "docid": "71cc624deeb6713101817284cd5ad698", "score": "0.498248", "text": "void onPrevious();", "title": "" }, { "docid": "a5274dca2c56ca813a93e899137b96e7", "score": "0.49761304", "text": "public boolean isBeforeFirst() throws SQLException;", "title": "" }, { "docid": "12f5e8d3ca0ef9c67b9cbacf136580e2", "score": "0.49598506", "text": "boolean goBack();", "title": "" }, { "docid": "fb59609e84eee4b8ae52bae1fb50bc31", "score": "0.49520397", "text": "boolean canSwitchBack();", "title": "" }, { "docid": "24f8a4a99e4ae3878cdfbc726df77299", "score": "0.49483213", "text": "void selectPrevious();", "title": "" }, { "docid": "e76dabe222a5272af16096501ae69ce6", "score": "0.4937264", "text": "public static boolean isTakeBack( int row, int col, GoMove lastMove, GoBoard board ) {\n\n if ( lastMove == null ) return false;\n\n CaptureList captures = lastMove.getCaptures();\n if ( captures != null && captures.size() == 1 ) {\n GoBoardPosition capture = (GoBoardPosition) captures.getFirst();\n if ( capture.getRow() == row && capture.getCol() == col ) {\n GoBoardPosition lastStone =\n (GoBoardPosition) board.getPosition( lastMove.getToRow(), lastMove.getToCol() );\n if ( lastStone.getNumLiberties( board ) == 1 && lastStone.getString().getMembers().size() == 1 ) {\n GameContext.log( 2, \"it is a takeback \" );\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "51257b9faa34b07ee33c0d6164a763a9", "score": "0.49247026", "text": "@Test public void shouldDiffFromPreviousGetNoDiffIfNoPreviousState() {\n\t\ttry (Driver driver = GraphDatabase.driver(neo4j.boltURI(), Config.build().withEncryption().toConfig()); Session session = driver.session()) {\n\t\t\t// Given\n\t\t\tsession.run(\"CREATE (s:State:To {keep:'keep', update:'update', delete:'delete'})\");\n\n\t\t\t// When\n\t\t\tStatementResult result = session\n\t\t\t\t\t.run(\"MATCH (stateTo:To) WITH stateTo CALL graph.versioner.diff.from.previous(stateTo) YIELD operation, label, oldValue, newValue RETURN operation, label, oldValue, newValue\");\n\n\t\t\t// Then\n\t\t\tassertThat(result.hasNext(), is(false));\n\t\t}\n\t}", "title": "" }, { "docid": "00f3f8886a6f054e0030ffe5eae3198c", "score": "0.4923665", "text": "boolean hasPrevLogTerm();", "title": "" }, { "docid": "fc5c497f7b4bbe29a2227840050f3be5", "score": "0.49167922", "text": "private void showNextPrev(boolean next) {\n WatchListModel wlm = MainModel.getInstance().getWatchListModel();\n if (wlm == null) {\n LogMessage.logSingleMessage(ApolloConstants.APOLLO_BUNDLE.getString(\"wc_04\"), LoggingSource.WEEKLY_CHART);\n return;\n }\n String sym = wlm.getNextPrevSymbol(next);\n if (sym == null) {\n LogMessage.logSingleMessage(ApolloConstants.APOLLO_BUNDLE.getString(\"wc_05\") + \" \" + sym, LoggingSource.WEEKLY_CHART);\n return;\n }\n plot(sym);\n }", "title": "" }, { "docid": "a5b9144615b91b0094e98bda94817014", "score": "0.49135005", "text": "boolean hasFirstPush();", "title": "" }, { "docid": "5abadbfffc7b3e6248c1afb391c0a322", "score": "0.49108306", "text": "@CheckForNull\n TestResult getPreviousResult();", "title": "" }, { "docid": "be1be512eb718227c63dc61fdc0ab684", "score": "0.49051365", "text": "public static String previous() {\n if (currentIndex < 0) {\n return NONE;\n }\n return (currentIndex == 0) ? history.get(currentIndex) : history.get(currentIndex--);\n }", "title": "" }, { "docid": "5683131480be1d0567974d784863a62e", "score": "0.4904745", "text": "public final boolean isEnabledPreviousStep ()\r\n {\r\n return this.gui.getJGTIToolBarButtonPreviousStep ().isEnabled ();\r\n }", "title": "" }, { "docid": "4441a516bbed9b902760de6b73fb2d3d", "score": "0.4903456", "text": "boolean isNextToFloodedCell() {\n return this.left.isFlooded() || this.right.isFlooded()\n || this.bottom.isFlooded() || this.top.isFlooded();\n }", "title": "" }, { "docid": "bee3cc1e1223f1614e9e734137eda7c9", "score": "0.49009523", "text": "public HashNode getPrevious() {\n\t\t\treturn previous;\n\t\t}", "title": "" }, { "docid": "56731611d2d9a8c6c4d9eba4e3f313fd", "score": "0.4899933", "text": "boolean prevPage(boolean is_prev){\n \tif(ClientProxy.manualEntry.equals(\"contents\")){\n \t\tif(is_prev){\n \t\t\treturn true;\n \t\t}else{\n\t \t\tchangeEntry(\"subject\");\n \t\t}\n // <- on a Chapter page.\n \t}else if(ClientProxy.manualEntry.equals(\"chapter\")){\n \t\t// Check if the current page is not the last page.\n \t\tif(!(ClientProxy.chapterPage<=1)){\n \t\tif(is_prev){\n \t\t\treturn true;\n \t\t}else{\n\t \t\t\tClientProxy.chapterPage-=2;\n\t\t \t\tchangeEntry(\"chapter\");\n \t\t}\n \t\t}else{\n \t\t\t// Check if there is a next chapter.\n \t\t\tif(ClientProxy.manualChapterExists(ClientProxy.chapterNum-1)){\n \t\tif(is_prev){\n \t\t\treturn true;\n \t\t}else{\n\t \t\t\t\tClientProxy.chapterNum--;\n\t \t\t\t\tClientProxy.chapterPage=countChapterPages(ClientProxy.chapterNum)-1;\n\t \t\t\t\t// Check if the previous chapter has a Gallery.\n\t \t\t\t\tif(ClientProxy.chapterNum>1){\n\t \t\t\t\t\tchangeEntry(\"gallery\");\n\t \t\t\t\t}else{\n\t \t\t\t\t\tchangeEntry(\"chapter\");\n\t \t\t\t\t}\n \t\t}\n \t\t\t}else{\n \t\tif(is_prev){\n \t\t\treturn true;\n \t\t}else{\n\t \t\t\t\tClientProxy.chapterNum=0;\n\t \t\t\t\tClientProxy.chapterPage=0;\n\t \t \t\tchangeEntry(\"contents\");\n \t\t}\n \t\t\t}\n \t\t}\n \t}else if(ClientProxy.manualEntry.equals(\"gallery\")){\n \t\tif(is_prev){\n \t\t\treturn true;\n \t\t}else{\n\t\t\t\tClientProxy.chapterPage=countChapterPages(ClientProxy.chapterNum)-1;\n\t \t\tchangeEntry(\"chapter\");\n \t\t}\n \t}\n \treturn false;\n }", "title": "" }, { "docid": "63230af67129424f41df828485ed607c", "score": "0.48991832", "text": "public boolean moveToNext();", "title": "" }, { "docid": "dcc65aa41f54241c77317cce50f0a60e", "score": "0.48925453", "text": "public void gotoPreviousHistorySlide() {\n if (isInHistorySlideshow() && appState.getCurrentOperationIndex() > 0)\n appState.setCurrentOperationIndex(appState.getCurrentOperationIndex() - 1);\n }", "title": "" }, { "docid": "a55d04e81ec89c483e8886944031afd5", "score": "0.48882163", "text": "boolean hasOriginal();", "title": "" }, { "docid": "c7136e39f778aa12d6520abda84a3d0d", "score": "0.4887785", "text": "public boolean checkMove(int row)\n {\n if (currentRow == row || currentRow == -1)\n return true;\n return false;\n }", "title": "" }, { "docid": "28a62d7be3b100a96a3c95059eec0635", "score": "0.48780543", "text": "@Override\n\t\tpublic T previous() {\n\t\t\tif(this.hasPrevious() == false) { //Iterator is in front\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\t}\n\t\t\telse if(this.getNextItem() == null) { //If iterator is at the end\n\t\t\t\tthis.nextItem = tail;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnextItem = nextItem.getPrevious(); //otherwise decrement nextItem and return it\n\t\t\t}\n\t\t\tlastItemReturned = nextItem;\n\t\t\tindex--;\n\t\t\treturn lastItemReturned.getData();\n\t\t}", "title": "" }, { "docid": "bc3e86beb713b4c14c7eec978b7dbcb6", "score": "0.48772615", "text": "public DoublyNode getPrevious() {\n return previous;\n }", "title": "" }, { "docid": "564dc6c4deeffc8880bede972c5420c5", "score": "0.48763898", "text": "public void setPrevious();", "title": "" } ]
260aeae40b67a19904c247cf9a748f85
Setters for left and right nodes
[ { "docid": "cd69b375ae3348c3acc5021189b7d299", "score": "0.6388162", "text": "public void setLeft(TreapNode<K, V> node) {\n\t\t\tthis.left = node;\n\t\t}", "title": "" } ]
[ { "docid": "b651ed20d1315905325d731066ebbfab", "score": "0.7270981", "text": "public void setLeft(Node<T> left){\n this.left = left;\n }", "title": "" }, { "docid": "4bbf2b29e3483c772270c09847422b0d", "score": "0.7246054", "text": "public void setLeft(Node left) {\r\n this.left = left;\r\n }", "title": "" }, { "docid": "984556e3cc5f4f0b1721e875c62da2e1", "score": "0.71610546", "text": "void setLeftNode(IBSTNode<T> leftNode);", "title": "" }, { "docid": "512fa1c6be2c50f072598311bb1d893f", "score": "0.71107656", "text": "public void setLeft(Node<dataType> newNode){\r\n this.left = newNode;\r\n }", "title": "" }, { "docid": "c60ac6ebfd445438589cfa734a8ff3ac", "score": "0.7099872", "text": "public void setLeft(Node<T> left) {\r\n this.left = left;\r\n }", "title": "" }, { "docid": "74abe7f28e7bce96860cfaad9da0801c", "score": "0.7097819", "text": "public void setLeft(binaryTreeNode left) {\n\t\tthis.left = left;\r\n\t}", "title": "" }, { "docid": "20f9f05f9b10d4830258eb7b28501f56", "score": "0.7026074", "text": "public final void set(T left, U right) {\r\n this.left = left;\r\n this.right = right;\r\n }", "title": "" }, { "docid": "7c14a303ce1c9d3417cefcf8b5d41322", "score": "0.70238763", "text": "@Override\r\n\tpublic void setLeftChild(BinaryTreeNode<T> left) {\r\n\t\t\r\n\t\tthis.leftNode= left;\r\n\r\n\t}", "title": "" }, { "docid": "8d5712410346ba1a942cd65f88813210", "score": "0.69745654", "text": "public void setLeft(IAVLNode node);", "title": "" }, { "docid": "8d5712410346ba1a942cd65f88813210", "score": "0.69745654", "text": "public void setLeft(IAVLNode node);", "title": "" }, { "docid": "de6001e72b7652f93cc32004b1a1a169", "score": "0.6925667", "text": "public void setNodeL(Node leftIn)\n {\n left = leftIn;\n }", "title": "" }, { "docid": "73c50893f31bb45d1248358810aaf7ae", "score": "0.6889096", "text": "public void setleft(Node lt) {\r\n this.left = lt;\r\n }", "title": "" }, { "docid": "8385d2df7171dc3c3b2b6c00e56ee191", "score": "0.688442", "text": "public void setLeft(BTNode n){\n\t\t\tleft = n;\n\t\t}", "title": "" }, { "docid": "02d5fd6c9a6be4daae8a3935b9fd65c3", "score": "0.68668437", "text": "void setLeft(RBTNode<K, V> left) {\n\n\t\tassert !this.isNil : \"Cannot set the left child of a NIL node.\";\n\n\t\tthis.left = left;\n\n\t}", "title": "" }, { "docid": "4772862dd33cef2f352e2c5f9a1efc51", "score": "0.6856805", "text": "public void setLeft(class1 n)\n\n {left = n; }", "title": "" }, { "docid": "3120f2ff8b8b61a896a0bcdcc660461e", "score": "0.6771434", "text": "public void setRight(Node<dataType> newNode){\r\n this.right = newNode;\r\n }", "title": "" }, { "docid": "f4a8babd4ee9056f4130e52dfab44f35", "score": "0.6769286", "text": "public void setLeft() {\n \tthis.left = true; \n \tthis.right = false;\n \tthis.up = false;\n \tthis.down = false;\n }", "title": "" }, { "docid": "66c708626ba4e92643c2ade0b383a41f", "score": "0.6739604", "text": "public void setLeft(QuestionNode left) {\n this.left = left;\n }", "title": "" }, { "docid": "8d4ddd5189d40910d607f5bde0c35787", "score": "0.67285556", "text": "public void setLeft(TreeNode<P> left) {\n\t\t\tthis.left = left;\n\t\t}", "title": "" }, { "docid": "c5545b7450c2c5a5fb7a1c611d21b9c0", "score": "0.6668541", "text": "public void setRight(Node<T> right){\n this.right = right;\n }", "title": "" }, { "docid": "c60b22f99740fabd121c40ea8e998355", "score": "0.66629714", "text": "private void setLeft(node newLeft)\n\t\t{\n\t\t\tleft = newLeft;\n\t\t\tif (newLeft != null)\n\t\t\t\tnewLeft.setParent(this);\n\t\t}", "title": "" }, { "docid": "df225c360289a895926e6377ef35fe46", "score": "0.6637547", "text": "public void setLeft(T left) {\r\n this.left = left;\r\n }", "title": "" }, { "docid": "615b9f32f294bd14af0dddb9d9979ca9", "score": "0.6616702", "text": "public void setLeft(AVLNode n) {\n left = n;\n }", "title": "" }, { "docid": "bf168041770725ff5868c03de33280d9", "score": "0.65941674", "text": "public Node<dataType> getLeft (){\r\n return left;\r\n }", "title": "" }, { "docid": "48c9bcf5a8a0677151941bf87a0d23cf", "score": "0.6581715", "text": "public void setRight(IAVLNode node);", "title": "" }, { "docid": "48c9bcf5a8a0677151941bf87a0d23cf", "score": "0.6581715", "text": "public void setRight(IAVLNode node);", "title": "" }, { "docid": "dfc0b191382ca8eb512a9286c6ab647e", "score": "0.65471196", "text": "public void setRight(Node right) {\r\n this.right = right;\r\n }", "title": "" }, { "docid": "8bd0786f1c1f85702ee791f7158d3be5", "score": "0.6498023", "text": "public void setLeft(TreeNode<T> left) {\n this.left = left;\n\tif (left != null)\n\t left.parent = this;\n }", "title": "" }, { "docid": "ca0196a039bf1b38ab95337866c85566", "score": "0.64905673", "text": "private void changeNode(TagNode leftParent, Node rightClone) {\n\n\t}", "title": "" }, { "docid": "58dc4d67e20367c428b6bb6ada5b96a3", "score": "0.6489779", "text": "public void setRight(class1 n)\n\n {right = n;}", "title": "" }, { "docid": "38821c72557ce9fc5b709650fe78d9da", "score": "0.6465909", "text": "public void setRight(Node<T> right) {\r\n this.right = right;\r\n }", "title": "" }, { "docid": "67706dd5f30d90932fd84cb61ae76050", "score": "0.6464247", "text": "public void setNodeR(Node rightIn)\n {\n right = rightIn;\n }", "title": "" }, { "docid": "8da90cd9f470174de80d66fd373ebeb3", "score": "0.6457619", "text": "void setLeft (BinaryTree <E> left);", "title": "" }, { "docid": "35346f1a17751b6318e396af752ec249", "score": "0.6436753", "text": "void setLeft(BinaryTree<E> left);", "title": "" }, { "docid": "77e59e39eec47782ec22c855c50f6a0c", "score": "0.6412726", "text": "public void setLeft(int left){\n\t\tthis.left = left;\n\t}", "title": "" }, { "docid": "eb85c98787c07560793e77891c89258a", "score": "0.6395369", "text": "public void setLeft(Expression newLeft) {\n this.left = newLeft;\n }", "title": "" }, { "docid": "26e11aef200aac769c5ae43a6b2194f7", "score": "0.63869846", "text": "void setLeft(BinaryTreeNode<T> child);", "title": "" }, { "docid": "c777c0d12dc151ddd02237cd1d214b51", "score": "0.6380239", "text": "public void setLeft(int left) {\r\n this.left = left;\r\n }", "title": "" }, { "docid": "c147f7ae61edc17171ff7441f0049f67", "score": "0.63377285", "text": "public void setLeft(int left) {\n this.left = left;\n }", "title": "" }, { "docid": "c147f7ae61edc17171ff7441f0049f67", "score": "0.63377285", "text": "public void setLeft(int left) {\n this.left = left;\n }", "title": "" }, { "docid": "3f86e3aefdce1945aaeb565e4b8cd6fb", "score": "0.6300848", "text": "public void setRight(binaryTreeNode right) {\n\t\tthis.right = right;\r\n\t}", "title": "" }, { "docid": "08bf9db20fe62fba66d4db3f5aca35b1", "score": "0.6285817", "text": "@Override\r\n public void set(IExpression left, IExpression right, Operation op) {\r\n this.left = left;\r\n this.right = right;\r\n this.operation = op;\r\n }", "title": "" }, { "docid": "e9786f704ae9569a3c47bef9ca9db9d0", "score": "0.6285135", "text": "@Override\r\n\tpublic void setRightChild(BinaryTreeNode<T> right) {\r\n\t\t\r\n\t\tthis.rightNode= right;\r\n\r\n\t}", "title": "" }, { "docid": "d37b30b58c9d65313be98c51296cc2c0", "score": "0.6280088", "text": "public Node(dataType d){\r\n data = d;\r\n left = null;\r\n right = null; \r\n }", "title": "" }, { "docid": "a2215fe9116f8cffb220a9d21641b9d1", "score": "0.61846983", "text": "public void setLeft(double left){\n\t\tthis.left = left;\n\t}", "title": "" }, { "docid": "00b0424f7b4af26f2a465083359d22c9", "score": "0.61780876", "text": "public void setRight() {\n \tthis.left = false; \n \tthis.right = true;\n \tthis.up = false;\n \tthis.down = false;\n }", "title": "" }, { "docid": "b12f1b178d2e259dbc4584e1483949de", "score": "0.6175532", "text": "void setRight(BinaryTree<E> right);", "title": "" }, { "docid": "71c4bba64bdd46f6bda1976a05435cd4", "score": "0.61684626", "text": "public void setRight(BTNode n){\n\t\t\tright = n;\n\t\t}", "title": "" }, { "docid": "9940fadc23283007556dd181a595a35f", "score": "0.6153766", "text": "private node getLeft()\n\t\t{\n\t\t\treturn left;\n\t\t}", "title": "" }, { "docid": "a33000eab8701e2fa0c874df8f362771", "score": "0.6146539", "text": "void setRight (BinaryTree <E> right);", "title": "" }, { "docid": "9ee7d3fa62d9ed6ee8b2fa7e7fc1d00e", "score": "0.613289", "text": "public void setLeft(String left) {\n this.left = left;\n }", "title": "" }, { "docid": "83aa7643031434d174514b03aab60e00", "score": "0.6132446", "text": "public void setLimits(int left, int right)\n {\n this.left = left;\n this.right = right;\n }", "title": "" }, { "docid": "db162da86675511b7b9949bc5156dcfd", "score": "0.6111142", "text": "public void setLeft(StudentRecord left) {\n this.left = left;\n }", "title": "" }, { "docid": "4ea0e2a9411c5517c68397afd415aada", "score": "0.6102636", "text": "BinaryTreeNode<dataType> getLeft () { \n return left; }", "title": "" }, { "docid": "9877b5140fa590378c1e9ce2eb2d39b9", "score": "0.60989", "text": "public Node() {\n right = null;\n left = null;\n value = null;\n height = -1;\n }", "title": "" }, { "docid": "d51fad8b680e57fc8514d21caf54013a", "score": "0.6093491", "text": "public void setRight(TreeNode<P> right) {\n\t\t\tthis.right = right;\n\t\t}", "title": "" }, { "docid": "65fcdf9663a88dd4bf563e94b0b5d45f", "score": "0.60930943", "text": "private void setRight(node newRight)\n\t\t{\n\t\t\tright = newRight;\n\t\t\tif (newRight != null)\n\t\t\t\tnewRight.setParent(this);\n\t\t}", "title": "" }, { "docid": "97ca8bcc027c933f8c2de19d9b2eeb7a", "score": "0.6085966", "text": "protected Node(X elemX, Y elemY) {\n\t\t\telementX = elemX;\n\t\t\telementY = elemY;\n\t\t\tleft = null;\n\t\t\tright = null;\n\t\t}", "title": "" }, { "docid": "d328f7c8db18dbd89b2921cbe73465aa", "score": "0.60577446", "text": "@Before\r\n public void before() {\r\n root = new BinaryTreeNode<>(10);\r\n root.setLeft(node_6);\r\n root.setRight(node_12);\r\n //left subtree\r\n node_6.setRight(node_8);\r\n node_6.setLeft(node_2);\r\n node_8.setRight(node_9);\r\n node_2.setLeft(node_1);\r\n //right subtree\r\n node_12.setLeft(node_11);\r\n node_12.setRight(node_16);\r\n node_16.setLeft(node_13);\r\n node_16.setRight(node_17);\r\n }", "title": "" }, { "docid": "eb418bdb8407ae1f466a28ceaf4bbd11", "score": "0.6040468", "text": "public Control(int left, int right) {\n\t\tthis.left = left;\n\t\tthis.right = right;\n\t}", "title": "" }, { "docid": "4be3ac041088259904477aacefb001a9", "score": "0.6031545", "text": "public void setRight(AVLNode n) {\n right = n;\n }", "title": "" }, { "docid": "b2f6cf7d79c47a527f8e4145b1bf30cb", "score": "0.6018665", "text": "public void setLeftChild(Node<T> node) {\r\n\r\n if (this.leftChild == null) {\r\n this.leftChild = node;\r\n }\r\n\r\n }", "title": "" }, { "docid": "61a76cb6d7e898eb46963801d5b1515b", "score": "0.60185146", "text": "public void setright(Node node){\n this.right = node;\n }", "title": "" }, { "docid": "042d8baaf0c7c4826eecb2044a3c6dda", "score": "0.6009338", "text": "public void setUp() {\n \tthis.left = false; \n \tthis.right = false;\n \tthis.up = true;\n \tthis.down = false;\n }", "title": "" }, { "docid": "e4aa7272c43c6b6b0444bea133a2930b", "score": "0.5993637", "text": "public Node(Movie data){\n this.data = data;\n left = null;\n right = null;\n }", "title": "" }, { "docid": "62ea7b6452c5e7fb579edc4a4a945a33", "score": "0.5980882", "text": "protected final void setLeftTree(BinaryTree leftTree) {\n\t\tassert canHaveAsLeftTree(leftTree);\n\t\tthis.leftTree = leftTree;\n\t}", "title": "" }, { "docid": "2747168d67f171c237d2d330c23e64df", "score": "0.59742916", "text": "public void setNode(Node unitNode){this.unitNode = unitNode;}", "title": "" }, { "docid": "f30ed3b0222069fb862ce1df77250d59", "score": "0.59671336", "text": "public void setLeft(boolean left) {\n\t\tthis.left = left;\n\t}", "title": "" }, { "docid": "8c6ad60cb5e31ab991923fcb0517cae2", "score": "0.5951536", "text": "public void setRight(TreeNode<T> right) {\n this.right = right;\n\tif (right != null)\n\t right.parent = this;\n }", "title": "" }, { "docid": "23e35e0c8ffea4fd87f92c1af5a5171d", "score": "0.59064984", "text": "public void setNode(Node node){\n\t\tthis.node=node;\n\t}", "title": "" }, { "docid": "a66f737e7a7fc19d86cfabe1070b8ff1", "score": "0.5902513", "text": "private Node switchChildren(Node parent, Node left, Node right) {\n parent.left = left;\n parent.right = right;\n return parent;\n }", "title": "" }, { "docid": "e165ff757367c37a1a4585a22a6d09ab", "score": "0.58992404", "text": "void setRight(RBTNode<K, V> right) {\n\n\t\tassert !this.isNil : \"Cannot set the right child of a NIL node.\";\n\n\t\tthis.right = right;\n\n\t}", "title": "" }, { "docid": "3bbd0a9bf93e01793bcb961e30740ef1", "score": "0.5888609", "text": "private void setLeft(E3DQuad left)\r\n {\r\n quads[2] = left;\r\n }", "title": "" }, { "docid": "90f2a4fc9c366ebc6fc6ffbaeb40141b", "score": "0.58788556", "text": "@Test\n\tpublic void testNodes () {\n\t\tNode node = new Node(\"b\");\n\t\tnode.add(\"a\");\n\t\tnode.add(\"c\");\n\t\t\n\t\tassertTrue(node.getValue().equals(\"b\"));\n\t\tassertTrue(node.getLeft() != null);\n\t\tassertTrue(node.getLeft().getValue().equals(\"a\"));\n\t\tassertTrue(node.getLeft().getLeft() == null);\n\t\tassertTrue(node.getLeft().getRight() == null);\n\t\tassertTrue(node.getRight() != null);\n\t\tassertTrue(node.getRight().getValue().equals(\"c\"));\n\t\tassertTrue(node.getRight().getLeft() == null);\n\t\tassertTrue(node.getRight().getRight() == null);\n\t\t\n\t\tnode = new Node(\"a\");\n\t\tnode.add(\"c\");\n\t\tnode.add(\"b\");\n\t\t\n\t\tassertTrue(node.getValue().equals(\"a\"));\n\t\tassertTrue(node.getLeft() == null);\n\t\tassertTrue(node.getRight() != null);\n\t\tassertTrue(node.getRight().getValue().equals(\"c\"));\n\t\tassertTrue(node.getRight().getLeft() != null);\n\t\tassertTrue(node.getRight().getRight() == null);\n\t\tassertTrue(node.getRight().getLeft().getValue().equals(\"b\"));\n\t}", "title": "" }, { "docid": "ffdaa4130c7b598a33aab07da5be276d", "score": "0.58747244", "text": "public InternalNode(Node leftC, Node rightC) {\n super(leftC.frequency + rightC.frequency);\n left = leftC; right = rightC;\n }", "title": "" }, { "docid": "055b4c4188b6fb99e9ccbe538ee0388d", "score": "0.586929", "text": "public abstract BinTreeNode left() throws Exception;", "title": "" }, { "docid": "58f764c9a8d824da84c8130cd00773fd", "score": "0.5869095", "text": "public Node<dataType> getRight (){\r\n return right;\r\n }", "title": "" }, { "docid": "10a94db5a7829fa43e8ca1b8df289733", "score": "0.58689284", "text": "public void setLeftChild(DictionaryWord leftChild) {\n this.leftChild = leftChild;\n }", "title": "" }, { "docid": "5fd5f2340fa31001ddfd2da9c1b11f4b", "score": "0.5863833", "text": "node(String mn,String t,int n,int n1,double p,double p1,int s)\n {\n left=null;\n right=null;\n mname=mn;\n time=t;\n price1=p;\n price2 = p1;\n nseats1=n;\n nseats2=n1;\n screen=s;\n \n }", "title": "" }, { "docid": "08f079ef1053e95516e598cd912cdcd7", "score": "0.5862882", "text": "Node getLeft() {\n\t\treturn this.left!=null? this.left:null;\r\n\t}", "title": "" }, { "docid": "5c3c74d39fbf312004792c07c0377ba4", "score": "0.5850514", "text": "public Node(DbaList data, Node left, Node right) {\n\t\t\tthis.data = data;\n\t\t\tthis.left = left;\n\t\t\tthis.right = right;\n\t\t}", "title": "" }, { "docid": "290619380e96137e0f0ff9f9933892ab", "score": "0.584936", "text": "SpecialSegmentTreeNode(int left, int right) {\n\t\tsuper(left, right);\n\t}", "title": "" }, { "docid": "60f0a12ad7bb4030994709311e070992", "score": "0.58455056", "text": "public Node<T> getLeft() {\r\n return left;\r\n }", "title": "" }, { "docid": "bf217986f04cef86ac85d32d75cd27e0", "score": "0.58365077", "text": "public Node getNodeL()\n {\n return left;\n }", "title": "" }, { "docid": "3da374b86ce5702e216fd5dc707ccfe0", "score": "0.58333385", "text": "public static void main(String args[]) \n {\n BinaryTree tree = new BinaryTree(); \n tree.root = new Node(1); \n tree.root.left = new Node(2); \n tree.root.right = new Node(4); \n tree.root.left.left = new Node(11); \n tree.root.left.left.right = new Node(15); \n tree.root.right.left = new Node(9); \n tree.root.right.right = new Node(3);\n\n tree.leftView(); \n }", "title": "" }, { "docid": "66da8274ea09ed11d215fe5476bc4e82", "score": "0.582484", "text": "@Override\r\n\tpublic void setLeft(PlaceInterface left) {\n\t\tthis.left = left;\r\n\t}", "title": "" }, { "docid": "5a468776a0e18519eefd767751a87e02", "score": "0.58155566", "text": "public void setright(Node rt) {\r\n this.right = rt;\r\n }", "title": "" }, { "docid": "b729487ccfd889b2e9e0be6aecb1f1c2", "score": "0.5814188", "text": "@Override\n protected BinaryTree getLeftTree() {\n return leftTree;\n }", "title": "" }, { "docid": "7d441bd579ff6967e43c642963624709", "score": "0.58112234", "text": "@Override\r\n\tpublic void setParentNode(NodeWrapper node) {\n\t\t\r\n\t}", "title": "" }, { "docid": "e7c3c8e4f17ca0c0472cdd598b35e575", "score": "0.58085376", "text": "public BTNode getLeft(){\n\t\t\treturn left;\n\t\t}", "title": "" }, { "docid": "be1972d935e4a994435258acecac4126", "score": "0.58012605", "text": "public void setRightChild(Node<T> node) {\r\n\r\n if (this.rightChild == null) {\r\n this.rightChild = node;\r\n }\r\n\r\n }", "title": "" }, { "docid": "bd07c857c41fcf126392455957b6edb9", "score": "0.5782877", "text": "@Test\n public void testXPos2(){\n left.setXPos(4);\n right.setXPos(9);\n assertEquals(4, left.getxPos());\n assertEquals(9, right.getxPos());\n }", "title": "" }, { "docid": "4674dd36e7a7617b6f28a78bf86e688f", "score": "0.5782733", "text": "public void setLeftChild(BNode pLeftChild) {\n leftChild = pLeftChild;\n }", "title": "" }, { "docid": "c97f2fed886776abe86916bc1da4e648", "score": "0.57726383", "text": "@Override\n public void initialize() {\n left.reset();\n right.reset();\n }", "title": "" }, { "docid": "d33d8b2152266af38593fd308173bea4", "score": "0.5769066", "text": "public Node(T item, Node<T> left, Node<T> right) {\n this.item=item;\n this.left=left;\n this.right=right;\n }", "title": "" }, { "docid": "8f7f96a0b3e58feb7daab2610d42bc5c", "score": "0.5768739", "text": "void setParentNode(Node v);", "title": "" }, { "docid": "ed83b41c06b50bd32e34704f58dcb5c3", "score": "0.57656056", "text": "@Test\n\tpublic void testSetMethods(){\n\t\tGraph g = new Graph(4);\n\t\tint label = 5;\n\t\tint labelr = 6;\n\t\tGraph.Vertex v = g.new Vertex(label);\n\t\tGraph.Vertex vr = g.new Vertex(labelr);\n\t\tGraph.Vertex vra = g.new Vertex(3);\n\t\tGraph.Vertex vrab = g.new Vertex(8);\n\t\tGraph.Vertex vrac = g.new Vertex(9);\n\t\t\n\t\tassertEquals(null,v.getRight());\n\t\tv.setRight(vr);\n\t\tassertEquals(vr, v.getRight());\n\t\t\n\t\tassertEquals(null,v.getLeft());\n\t\tv.setLeft(vra);\n\t\tassertEquals(vra, v.getLeft());\n\t\t\n\t\tassertEquals(null,v.getUp());\n\t\tv.setUp(vrab);\n\t\tassertEquals(vrab, v.getUp());\n\t\t\n\t\tassertEquals(null,v.getDown());\n\t\tv.setDown(vrac);\n\t\tassertEquals(vrac, v.getDown());\n\t}", "title": "" }, { "docid": "e6768f601a257d98f85a71ef2dab9049", "score": "0.576218", "text": "public void setLeftSon(TreeNode<K, V> leftSon) {\n if (leftSon != this) {\n this.leftSon = leftSon;\n if (leftSon != null) {\n leftSon.setParent(this);\n }\n }\n }", "title": "" }, { "docid": "af75eca46f65c5dacee3fc364155bd70", "score": "0.5747971", "text": "public Node(float weight, Node left, Node right) {\n this.weight = weight;\n this.left = left;\n this.right = right;\n }", "title": "" }, { "docid": "25b446cd63cfaaf713586c1e654ba742", "score": "0.57466066", "text": "public Node getLeft() {\r\n return this.left; \r\n }", "title": "" } ]
db14dff279aa6c424137005336968d4a
Find the _Fields constant that matches name, or null if its not found.
[ { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.0", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" } ]
[ { "docid": "2aedca74101f3519831ef106c8e1a7b6", "score": "0.7756459", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "2aedca74101f3519831ef106c8e1a7b6", "score": "0.7756459", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "2aedca74101f3519831ef106c8e1a7b6", "score": "0.7756459", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "2aedca74101f3519831ef106c8e1a7b6", "score": "0.7756459", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "2aedca74101f3519831ef106c8e1a7b6", "score": "0.7756459", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "2aedca74101f3519831ef106c8e1a7b6", "score": "0.7756459", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "3153394dd5efe71fc805def104941b14", "score": "0.77459717", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "d3a4baf4f0871c9d1f5c7306d7a22628", "score": "0.7738752", "text": "@org.apache.storm.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "eb430f9efa7e73871583e012f28ae314", "score": "0.76433766", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "2413f16080845ddfe4df9ab422a38617", "score": "0.0", "text": "private void prepareCoinRacks() {\n\t\t\n\t}", "title": "" } ]
[ { "docid": "3d9823aba51891281b4bbd4b1818b970", "score": "0.6671074", "text": "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6567672", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "ea8460c7314de45803a19bf7c984d4bf", "score": "0.6523024", "text": "@Override\n public void perish() {\n \n }", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "97d296a7afb7dc4215dea52c44825799", "score": "0.6477082", "text": "@Override\n\tpublic void anular() {\n\n\t}", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.64591026", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.6276059", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "5a2cf6475b24af1408d07534790462c3", "score": "0.6254286", "text": "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.6223679", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "73463480918eeb854ee253f0b90b8f6a", "score": "0.6201336", "text": "@Override\n\tpublic void emprestimo() {\n\n\t}", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.61950207", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.61950207", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61922914", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.6186996", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "24836dd83ff94f056e1fcc3c7d1bd342", "score": "0.6173591", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "title": "" }, { "docid": "a89a6a1e5b118a43de52e5ffd006970b", "score": "0.61327106", "text": "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "50eb8922149b6987def0b49575615f5e", "score": "0.61285484", "text": "@Override\n protected void getExras() {\n }", "title": "" }, { "docid": "1c8a7915e39d52e26f69fe54c7cab366", "score": "0.6080161", "text": "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b910b894fe7ad3828da2a23b46f46c91", "score": "0.6077022", "text": "@Override\n\tpublic void nefesAl() {\n\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.6041561", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "680ac9d1bc1773741a758290a71e990c", "score": "0.6024072", "text": "@Override\n public void func_104112_b() {\n \n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.6020252", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "c682095c2b4f1946676c35a1deda3c6f", "score": "0.59984857", "text": "@Override\n\tpublic void nghe() {\n\n\t}", "title": "" }, { "docid": "d96634e617617b62a9a214992c3282f5", "score": "0.59672105", "text": "@Override\n public void function()\n {\n }", "title": "" }, { "docid": "d96634e617617b62a9a214992c3282f5", "score": "0.59672105", "text": "@Override\n public void function()\n {\n }", "title": "" }, { "docid": "2f8bc325cbd58e19eae4acec86ffe12c", "score": "0.5965777", "text": "public final void mo51373a() {\n }", "title": "" }, { "docid": "49a9123d9e9db8177a76f606f354e668", "score": "0.59485507", "text": "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "100a24d43d831707c172dbf3ee5fc24c", "score": "0.5940904", "text": "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "d61bad95071bf9780632fa87c434bab9", "score": "0.5910017", "text": "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "96b7c88f13f659e23bf631d2d5053b40", "score": "0.58946234", "text": "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "53a77fe02ff8601b7f3a53009ccfd05c", "score": "0.5886006", "text": "public void designBasement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a515456a9e11b20998e2bfdd6c3dce67", "score": "0.58839184", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4da8e9683b65c2cb7a22ee151d8c65e1", "score": "0.58691067", "text": "public void gored() {\n\t\t\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "b77eac7bccbd213b5d32d3e935c81ffe", "score": "0.58503544", "text": "@Override\n\tpublic void einkaufen() {\n\t}", "title": "" }, { "docid": "d06828119af4f719fc9db2eac57f2601", "score": "0.5847024", "text": "@Override\n protected void initialize() {\n\n \n }", "title": "" }, { "docid": "8c4be9114abb8cb7b57dc3c5d34882a8", "score": "0.58239377", "text": "public void mo38117a() {\n }", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "2fda59f727914730e1ccc0c0b05e57bd", "score": "0.5810089", "text": "Constructor() {\r\n\t\t \r\n\t }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.5800025", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1260bf70decb91faff8466bae6765ba2", "score": "0.5790187", "text": "private stendhal() {\n\t}", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "f397b517b3f3532ba47ff3ee806bc420", "score": "0.5787092", "text": "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4a5b709a6553621aa4226737a20ba120", "score": "0.5747959", "text": "@Override\n\tpublic void debite() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "7f454c1ee07328138017395e69b0420e", "score": "0.5721452", "text": "public contrustor(){\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "2911d3f6b10d531f37ba6cbbb1e4e44a", "score": "0.57142824", "text": "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "8862e414d1049ff417c2327b444db61e", "score": "0.5711723", "text": "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "title": "" }, { "docid": "29251cbd61f58d1440af2e558c6a19bc", "score": "0.57041645", "text": "@Override\n\tprotected void logic() {\n\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "86232e6a9aaa22e4403270ce10de01d3", "score": "0.5696783", "text": "public void mo4359a() {\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.56774884", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "c0ca0277e879a2b84cd3748b428dc4fa", "score": "0.56734604", "text": "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "dca752ff24c887a367479fb49a14a486", "score": "0.56728", "text": "private RepositorioAtendimentoPublicoHBM() {\r\t}", "title": "" }, { "docid": "137850fe8be37a8fdff9b5f1d19f9338", "score": "0.56696945", "text": "@Override\n protected void initialize() \n {\n \n }", "title": "" }, { "docid": "51fb4cf832bd3bdab07f36fa0655aed2", "score": "0.5661323", "text": "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "title": "" }, { "docid": "fb842ef1f250aaba4286c185df305a9b", "score": "0.5657007", "text": "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "cc19c0c7ab1bdc568508b0381e170621", "score": "0.56549734", "text": "@Override\n protected void prot() {\n }", "title": "" }, { "docid": "92ff2215e2946927efe966014fa1b664", "score": "0.5654792", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "title": "" }, { "docid": "289e1db116de136c64eef3293ece7f16", "score": "0.5652974", "text": "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "title": "" }, { "docid": "502b1954008fce4ba895ad7a32b37b97", "score": "0.5650185", "text": "public void mo55254a() {\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "87c926cc8789bfb2d517b6b653444e99", "score": "0.0", "text": "public void remove(T key) {\n\n\t}", "title": "" } ]
[ { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.69474965", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6676429", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.6485175", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.622455", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.6164056", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e3a701d0fdb1fef5e0afd9dc7c345fcb", "score": "0.61634105", "text": "@Override\n\tprotected void generateData() {\n\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4e49f5db36ca664153e54380025b85d4", "score": "0.6095768", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6074471", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.6028443", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.60278815", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.60087883", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5988416", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.5978686", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "9fe3f6ccb967a8bcee9106fbbd56b684", "score": "0.5974211", "text": "@Override\r\n\tpublic void properties() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.59513867", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "fcfbf321ff3e4c56b4e383ce15e49dbb", "score": "0.59429646", "text": "@Override\r\n\tpublic void obtersaida()\r\n\t{\n\t}", "title": "" }, { "docid": "482b1825ec60700f97ed42e420d69d99", "score": "0.59383935", "text": "@Override\n\tpublic void valide() {\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.59383595", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "4b7e3f693781babf82ed11447db2a554", "score": "0.5929242", "text": "@Override\n\tpublic void concentrarse() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.59280443", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9a0f5a503f38cb7c40d13ecc89073bd8", "score": "0.58973867", "text": "@Override\r\n\tpublic void getDuriation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.5863205", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "02699a98134693036160a045239bddba", "score": "0.58500654", "text": "@Override\r\n\tpublic void zwroc() {\n\r\n\t}", "title": "" }, { "docid": "46569800c9d73cd59bcbec066cdb5304", "score": "0.58491904", "text": "private void lidoInf() {\n\n\n }", "title": "" }, { "docid": "b8d886581a76c72e11ab317e6cb6e2a8", "score": "0.58308905", "text": "@Override\r\n public void rechercher() {\n }", "title": "" }, { "docid": "80b5722cdc9efe11a305e92ea813ac0f", "score": "0.5827698", "text": "@Override\r\n\tpublic void inter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "947b4ee184fe32ab14b8c244b9461c7d", "score": "0.5807026", "text": "@Override\n\tpublic void vida() {\n\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069414", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c86f446a8bd6af19f88cc011fdf2ffd4", "score": "0.5802792", "text": "public void asustar() {\n // TODO implement here\n \n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c8f75a8f93bc20d4e8695ba99b470e1d", "score": "0.580217", "text": "public void mo1684e() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.57979786", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bb30a482e2236eb664f8d8fc23724b59", "score": "0.57915", "text": "@Override\n\tprotected void initActb() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "0cc40600dd2e7cb9f56bd77995e01fc3", "score": "0.5780891", "text": "@Override\n\tpublic void Miow() {\n\t\t\n\t}", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.57797045", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "0a14b2c4ac9647e6bc7077e1e653d540", "score": "0.57781726", "text": "@Override\n \tprotected int getSize() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "7d110d5ea1b4795727b052c3f897a146", "score": "0.5776224", "text": "public void ligar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e022c47f335a39c6bdb94a0f49a4e940", "score": "0.5767807", "text": "@Override\r\n\tpublic void parar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "900d30c04323cde584c73c5ffa48d9cf", "score": "0.5757801", "text": "@Override\n\t\tpublic void visitEnd() {\n\n\t\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.57495934", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.57494617", "text": "private void Initalization() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5732932", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4da4d5cf96c032296a894fc6e8d76283", "score": "0.5718805", "text": "@Override\n\tpublic void beCagey() {\n\t\t\n\t}", "title": "" }, { "docid": "a8f4d3149e0f7a43b23b53ce69363fd6", "score": "0.57184815", "text": "public void mo5202b() {\n }", "title": "" }, { "docid": "c2a6308317d4e5fc230ea7d2fb55fc1b", "score": "0.5715011", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" } ]
7f643216bc5a789759af2fd75b586eb2
Metodo que obtiene los datos de la interfaz grafica
[ { "docid": "d27492c2a7829e4bc7a3a161ae2b24c9", "score": "0.0", "text": "public JugadorDAO obtenerValores() {\n\n try {\n String user = fieldUsuario.getText();\n String clave = fieldContraseña.getText();\n JugadorDAO auxJugador = new JugadorDAO();\n jugador = new JugadorDAO(user, auxJugador.makeHash(clave));\n } catch (NoSuchAlgorithmException ex) {\n Logger.getLogger(LoginController.class.getName()).\n log(Level.SEVERE, null, ex);\n }\n\n return jugador;\n }", "title": "" } ]
[ { "docid": "c86bc079336be520e68c27ea87e1c159", "score": "0.6484087", "text": "@Override\r\n\tpublic void llenar_datos() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6ac412574c1e9af72cca04386f886df1", "score": "0.6365557", "text": "public Object [][] getDatos(){\n int registros = 0;\n //obtenemos la cantidad de registros existentes en la tabla\n try{ \n PreparedStatement pstm = con.getConnection().prepareStatement(\"SELECT count(1) as total FROM CONSULTA_MEDICA\"); \n try (ResultSet res = pstm.executeQuery()) {\n res.next();\n registros = res.getInt(\"total\");\n }\n }catch(SQLException e){\n System.out.println(e);\n }\n \n Object[][] data = new String[registros][3]; \n //realizamos la consulta sql y llenamos los datos en \"Object\"\n try{ \n PreparedStatement pstm = con.getConnection().prepareStatement(\"SELECT \" +\n \" FECHA_CONSULTA, DIAGNOSTICO, TRATAMIENTO \" +\n \" FROM CONSULTA_MEDICA \" ); // \" ORDER BY FECHA_CONSULTA \"\n try (ResultSet res = pstm.executeQuery()) {\n int i = 0;\n while(res.next()){\n String estFecha = res.getString(\"FECHA_CONSULTA\");\n String estDiagnostico = res.getString(\"DIAGNOSTICO\");\n String estTratamiento = res.getString(\"TRATAMIENTO\");\n data[i][0] = estFecha;\n data[i][1] = estDiagnostico; \n data[i][2] = estTratamiento;\n i++;\n \n }}\n }catch(SQLException e){\n System.out.println(e);\n }\n return data;\n \n }", "title": "" }, { "docid": "54146ad6666348997ea80cbcad70c82e", "score": "0.6287228", "text": "public String getDataInizio() {\r\n return dataInizio;\r\n }", "title": "" }, { "docid": "295cf4a15860cf0538c3d13a94023f8f", "score": "0.6219529", "text": "public IIdeaModel getData();", "title": "" }, { "docid": "0aa3094f3fffa554d382a1c891449a09", "score": "0.6190776", "text": "public Object[][] getDatos() {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getDatos() - start\");\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getDatos() - end\");\n\t\t}\n\t\treturn datos;\n\t}", "title": "" }, { "docid": "dbdf50950b43d6f8d4f5232e274d571a", "score": "0.61320686", "text": "public void obtener_datos_general(){\r\n String datos_general=\"Nombre: \"+nombre+\"\\nTitulo: \"+titulo+\"\\nSexo: \"+sexo+\"\\nTamaño: \"+tamaño+\"\\nEmail: \"+email;\r\n System.out.println(\"Los datos obtenidos en general de la clase docente son: \"+\"\\n\"+datos_general);\r\n \r\n \r\n }", "title": "" }, { "docid": "73d7ddc40cbc08cd58d0327cdebbd492", "score": "0.6082231", "text": "@Parameters\n\t public static Collection<Object[]> data() {\n\t return Arrays.asList(new Object[][] { \n\t { 2, 2 }, { 1257369, 9 }, { 444, 4 }});\n\t }", "title": "" }, { "docid": "d2fd572d7ed2c7959badf4223f548d1f", "score": "0.607869", "text": "private void retrieveGajiData() {\n gajiDao.getAll();\n }", "title": "" }, { "docid": "a2a7edb5e0e642f4310137eb51ccfcda", "score": "0.606513", "text": "Object obtenerObjeto() \n\t { \n\t return dato; \n\t }", "title": "" }, { "docid": "f27158f188730bf3f30bc6a6735e1cbd", "score": "0.59770083", "text": "@Override\n public DataProducto getInfo(){\n Set<DataPedido> sdp = new HashSet<>(); \n \n for(Map.Entry<Integer, PedProd> entry : this.getPedidos().entrySet()) {\n int k = entry.getKey();\n PedProd v = entry.getValue(); \n \n sdp.add(v.getPedido().getInfo());\n } \n \n return new DataProducto(nombre, descripcion, precio, imagen, sdp);\n }", "title": "" }, { "docid": "6465bbb6d282fd980c2c1d3ff536b615", "score": "0.59666735", "text": "Emprestimo getDiasDeAtraso();", "title": "" }, { "docid": "27523ec82ee3126b3ed0872036a5094c", "score": "0.59539926", "text": "public String getDatos() {\n\t\treturn \"El titulo es: \" + titulo + \" El autor es: \" + autor + \" El ISBN ES: \" + ISBN;\n\n\t}", "title": "" }, { "docid": "7e3f7f67c34be46197ffe4e59ebe6e8d", "score": "0.5932716", "text": "public GregorianCalendar getDataInizio(){\r\n\t\treturn associazione.getDataInizio();\r\n\t}", "title": "" }, { "docid": "ed1e7cdd7ac03b28502847be8b23d2b5", "score": "0.58998764", "text": "public List<Iscrizione> doRetrieveAll();", "title": "" }, { "docid": "18779fdf841f8382f250c4ae4864ba54", "score": "0.58969206", "text": "public void armarSolapasGraficas();", "title": "" }, { "docid": "8e693e4296e70f6108ade0fd1f67910e", "score": "0.5893309", "text": "public ArrayList<DatosRegistro> obtenerDatos(){\n SQLiteDatabase sqlb = getReadableDatabase();\r\n\r\n //creo un cursor para que me haga la consulta\r\n Cursor cursor = sqlb.query(Constantes.TABLA_FORMULARIO,new String[] {Constantes._ID,Constantes.NOMBRE,Constantes.DNI,Constantes.CORREO,Constantes.NACIONALIDAD,Constantes.BOLETIN_NOTICIAS},null,null,null,null,Constantes._ID);\r\n\r\n //creo la array para meter los registros\r\n ArrayList<DatosRegistro> registro = new ArrayList<DatosRegistro>();\r\n\r\n //recorro la tabla\r\n while(cursor.moveToNext()){\r\n\r\n //añado los registros\r\n registro.add(new DatosRegistro(cursor.getInt(0),cursor.getString(1),cursor.getString(2),cursor.getString(3),cursor.getString(4),cursor.getString(5)));\r\n\r\n }\r\n\r\n cursor.close();\r\n sqlb.close();\r\n return registro;\r\n }", "title": "" }, { "docid": "aa4bc3283039970c79960f75272d89d7", "score": "0.5878087", "text": "public static void cargaDatos() throws SQLException {\n\t\t\n\t\tlog.info(\"Fill the preference table\");\n\t\t//Fill the preference database\n\t\trellBasDat(1, 101, 5.0); \n\t\trellBasDat(1, 102, 3.0); \n\t\trellBasDat(1, 103, 2.5); \n\t\trellBasDat(2, 101, 2.0); \n\t\trellBasDat(2, 102, 2.5); \n\t\trellBasDat(2, 103, 5.0); \n\t\trellBasDat(2, 104, 2.0); \n\t\trellBasDat(3, 101, 2.5); \n\t\trellBasDat(3, 104, 4.0); \n\t\trellBasDat(3, 105, 4.5); \n\t\trellBasDat(3, 107, 5.0); \n\t\trellBasDat(4, 101, 5.0); \n\t\trellBasDat(4, 103, 3.0); \n\t\trellBasDat(4, 104, 4.5); \n\t\trellBasDat(4, 106, 4.0); \n\t\trellBasDat(5, 101, 4.0);\n\t\trellBasDat(5, 102, 3.0); \n\t\trellBasDat(5, 103, 2.0); \n\t\trellBasDat(5, 104, 4.0); \n\t\trellBasDat(5, 105, 3.5);\n\t\trellBasDat(5, 106, 4.0); \n\t\trellBasDat(6, 101, 3.0);\n\t\trellBasDat(6, 104, 5.0);\n\t\t\n\t\tlog.info(\"Fill the relations table\");\n\t\t// Fill the relations database\n\t\trellBasRel(0,12);\n \trellBasRel(1, 2);\n \trellBasRel(1, 11);\n \trellBasRel(2, 1);\n \trellBasRel(2, 3);\n \trellBasRel(2, 8);\n \trellBasRel(3, 2);\n \trellBasRel(3, 10);\n \trellBasRel(4, 5);\n \trellBasRel(4, 6);\n \trellBasRel(5, 4);\n rellBasRel(5, 7);\n rellBasRel(5, 11);\n rellBasRel(6, 4);\n rellBasRel(6, 7);\n rellBasRel(6, 10);\n rellBasRel(7, 5);\n rellBasRel(7, 6);\n rellBasRel(7, 8);\n rellBasRel(8, 2);\n rellBasRel(8, 7);\n rellBasRel(9, 10);\n rellBasRel(10, 3);\n rellBasRel(10, 6);\n rellBasRel(10, 9);\n rellBasRel(11, 1);\n rellBasRel(11, 5);\n rellBasRel(12, 0);\n \n log.info(\"Fill the similarity table\");\n rellBasSimDist();\n rellBasSim();\n \n \tlog.info(\"The data has been introduced correctly\");\n\t}", "title": "" }, { "docid": "51747e1ae2297c6e92a8e9963da27123", "score": "0.58731914", "text": "public DateTimeDB getDataInicioRelacionamento() {\n\t\treturn dataInicioRelacionamento;\n\t}", "title": "" }, { "docid": "ddefaf878f8f34983392aabfae464ee9", "score": "0.58511657", "text": "public void impriDatos(){\n System.out.println(\"Nombre:\"+this.Nombre);\n System.out.println(\"Apellido:\"+this.Apellido);\n System.out.println(\"DNI:\"+this.DNI);\n System.out.println(\"Estadocivil:\"+this.Estadocivil);\n }", "title": "" }, { "docid": "86b35ebd9e2476aea857eaa9528e8043", "score": "0.58450556", "text": "public void loadData();", "title": "" }, { "docid": "e646c79d25c5daf4e3188d0aa2f2ee9d", "score": "0.5844191", "text": "public void obtenerDias() {\r\n\t\tlong dias = FechasUtil.getInstancia().restarFechas(polizaBean.getVigenciaDesde(), polizaBean.getVigenciaHasta());\r\n\r\n\t\tpolizaBean.setDiasCobertura(Integer.parseInt(Long.toString(dias)));\r\n\r\n\t}", "title": "" }, { "docid": "dc920209e1b0183519f327a246e54823", "score": "0.583473", "text": "public Object[][] generaDati() {\n\t\tfinal int numeroColonne = 1;\n\t\tfinal ArrayList<AbstractCommand> listaComandi = (ArrayList<AbstractCommand>) getHistory();\n\t\tfinal Object[][] dati = new Object[listaComandi.size()][numeroColonne];\n\t\tfor (int i = 0; i < listaComandi.size(); i++) {\n\t\t\tdati[i][0] = listaComandi.get(i);\n\n\t\t}\n\t\treturn dati;\n\t}", "title": "" }, { "docid": "31c7654b68afd4b2073cfcd19b6d44e6", "score": "0.58196396", "text": "Map<String, ProdutoI> getProdutos();", "title": "" }, { "docid": "27a2fd7577ab42615775e19f02843b7a", "score": "0.5818975", "text": "public Object getDatosAsociados() {\n\t\treturn datosAsociados;\n\t}", "title": "" }, { "docid": "1e3c517db0039b00405aa597a76cc35f", "score": "0.581625", "text": "private void getBienInmuebleCatastroExpedienteDB(Expediente exp, String idMunicipio)throws Exception\r\n\t{\r\n\t\tArrayList aux= new ArrayList();\r\n\t\tString sSQL= \"select e.id_bieninmueble, e.id_dialogo,e.actualizado, b.poligono_rustico, b.parcela, b.id_via,b.primer_numero, \" +\r\n\t\t\" b.codigo_municipiodgc, b.clase_bieninmueble, p.codigodelegacionmeh from \" +\r\n\t\t\" Expediente_BienInmueble e,Bien_Inmueble b, parcelas p where e.id_expediente=\" +exp.getIdExpediente()+\r\n\t\t\" and e.id_BienInmueble=b.IDentificador and p.referencia_catastral=b.parcela_catastral and\" +\r\n\t\t\" p.id_municipio=\" +\r\n\t\tidMunicipio;\r\n\t\tPreparedStatement ps= null;\r\n\t\tConnection conn= null;\r\n\t\tResultSet rs= null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconn= CPoolDatabase.getConnection();\r\n\t\t\tps= conn.prepareStatement(sSQL);\r\n\t\t\trs= ps.executeQuery();\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tBienInmuebleCatastro bien = new BienInmuebleCatastro();\r\n\t\t\t\tIdBienInmueble idBI = new IdBienInmueble();\r\n\t\t\t\tidBI.setIdBienInmueble(rs.getString(\"id_bieninmueble\"));\r\n\t\t\t\tbien.setIdBienInmueble(idBI);\r\n\r\n\t\t\t\tDireccionLocalizacion dir = new DireccionLocalizacion();\r\n\t\t\t\tdir.setPrimerNumero(TypeUtil.getSimpleInteger(rs, \"primer_numero\"));\r\n\t\t\t\t\r\n\t\t\t\tString codDelegacionMEH = rs.getString(\"codigodelegacionmeh\");\r\n\t\t\t\tif(codDelegacionMEH == null || codDelegacionMEH.equalsIgnoreCase(\"\"))\r\n\t\t\t\t\tcodDelegacionMEH = String.valueOf(exp.getEntidadGeneradora().getCodigo());\r\n\r\n\t\t\t\tdir.setProvinciaINE(codDelegacionMEH);\r\n\t\t\t\t\r\n\t\t\t\tdir.setCodPoligono(rs.getString(\"poligono_rustico\"));\r\n\t\t\t\tdir.setCodParcela(rs.getString(\"parcela\"));\r\n\t\t\t\tbien.setCodMunicipioDGC(rs.getString(\"codigo_municipiodgc\"));\r\n\t\t\t\tbien.setClaseBienInmueble(rs.getString(\"clase_bieninmueble\"));\r\n\t\t\t\tif(rs.getString(\"id_dialogo\") == null ){\r\n\t\t\t\t\tbien.setIdentificadorDialogo(\"\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tbien.setIdentificadorDialogo(rs.getString(\"id_dialogo\"));\r\n\t\t\t\t}\r\n\t\t\t\tbien.setActualizadoOVC(rs.getBoolean(\"actualizado\"));\r\n\t\t\t\tint idVia = -1;\r\n\t\t\t\tidVia = TypeUtil.getSimpleInteger(rs,\"id_via\");\r\n\t\t\t\tResultSet rsVia= null;\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tif(idVia!=-1){\r\n\t\t\t\t\t\tsSQL = \"select vias.tipovianormalizadocatastro, vias.nombrecatastro from vias where codigocatastro=\" + idVia\r\n\t\t\t\t\t\t+ \" and id_municipio=\"+Integer.parseInt(idMunicipio);;\r\n\t\t\t\t\t\tps= conn.prepareStatement(sSQL);\r\n\t\t\t\t\t\trsVia= ps.executeQuery();\r\n\t\t\t\t\t\tif(rsVia.next())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdir.setNombreVia(rsVia.getString(\"nombrecatastro\"));\r\n\t\t\t\t\t\t\tdir.setTipoVia(rsVia.getString(\"tipovianormalizadocatastro\"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch (Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t}\r\n\t\t\t\tfinally\r\n\t\t\t\t{\r\n\t\t\t\t\ttry{rsVia.close();}catch(Exception e){};\r\n\t\t\t\t}\r\n\t\t\t\tbien.setDomicilioTributario(dir);\r\n\t\t\t\taux.add(bien);\r\n\t\t\t}\r\n\t\t\texp.setListaReferencias(aux);\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\ttry{ps.close();}catch(Exception e){};\r\n\t\t\ttry{rs.close();}catch(Exception e){};\r\n\t\t\ttry{conn.close();}catch(Exception e){};\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6f940568c21f195fabbe569dbc193413", "score": "0.58081526", "text": "private static void faturasEmpresaOrdData(){ \n \n List<Fatura> faturasEmpresa = jafat.getFaturasPorData(jafat.getUtilizador().getNIF()); \n \n for(Fatura f : faturasEmpresa){ \n System.out.println(\"\\n****************** Faturas *******************\\n\"); \n System.out.println(f);\n System.out.println(\"************************************************\\n\");\n }\n }", "title": "" }, { "docid": "878a6eceb10e6d10fbb88a109b277d16", "score": "0.57993585", "text": "public double[] getDati(){\r\n\t\treturn dati;\r\n\t}", "title": "" }, { "docid": "8711434bb4e8ec75a4d807f588d1f036", "score": "0.5798694", "text": "private void personalizar(Object classe) {\n \n List lista = null;\n String[] columns = new String[]{\"Código\", \"Nome\"};\n Object[][] data = null;\n if (classe instanceof Produto){\n lista = ((Produto)classe).listar();\n data = new Object[lista.size()][2];\n int i =0;\n for (Iterator it = lista.iterator(); it.hasNext();) {\n Produto produto = (Produto) it.next();\n data[i][0] = produto.getId();\n data[i][1] = produto.getNome();\n i++;\n }\n }\n else if (classe instanceof Cliente){\n lista = ((Cliente)classe).listar();\n data = new Object[lista.size()][2];\n int i =0;\n for (Iterator it = lista.iterator(); it.hasNext();) {\n Cliente cliente = (Cliente) it.next();\n data[i][0] = cliente.getId();\n data[i][1] = cliente.getNome();\n i++;\n }\n }\n else if(classe instanceof Fornecedor){\n lista = ((Fornecedor)classe).listar();\n data = new Object[lista.size()][2];\n int i =0;\n for (Iterator it = lista.iterator(); it.hasNext();) {\n Fornecedor fornecedor = (Fornecedor) it.next();\n data[i][0] = fornecedor.getId();\n data[i][1] = fornecedor.getNome();\n i++;\n }\n }\n else if(classe instanceof Entrada)\n {\n lista = new DAOGenerica().listar(\n \"SELECT \tE.Id, Concat(F.Id,' - ',F.Nome) as 'Fornecedor' \" +\n \"FROM \tentrada E \" +\n \"\t\tInner Join Fornecedor F on E.fornecedor = F.Id\");\n data = new Object[lista.size()][2];\n int i =0;\n for (Iterator it = lista.iterator(); it.hasNext();) {\n Object[] obj = (Object[]) it.next();\n data[i][0] = obj[0];\n data[i][1] = obj[1];\n i++;\n }\n }\n if (lista.size() <= 0 || lista == null) \n Pesquisa.this.dispose();\n final Class[] columnClass = new Class[]{Integer.class, String.class};\n //create table model with data\n DefaultTableModel model = new DefaultTableModel(data, columns) {\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n\n @Override\n public Class<?> getColumnClass(int columnIndex) {\n return columnClass[columnIndex];\n }\n };\n\n table = new JTable(model);\n table.setBounds(10, 10, 422, 422);\n \n //Evento de doubleClick na Tabela\n table.addMouseListener(new MouseListener() {\n @Override\n public void mouseClicked(MouseEvent e) {\n }\n @Override\n public void mousePressed(MouseEvent e) {\n int row = table.rowAtPoint(e.getPoint());\n int col = table.columnAtPoint(e.getPoint());\n if (row < 0 || col < 0) return;\n if (e.getClickCount() == 2) {\n Generica.globalRetornoPesquisa = table.getModel().getValueAt(row,0);\n Generica.globalRetornoPesquisaAuxiliar = table.getModel().getValueAt(row,1);\n Pesquisa.this.dispose();\n }\n }\n @Override\n public void mouseReleased(MouseEvent e) {\n }\n @Override\n public void mouseEntered(MouseEvent e) {\n }\n @Override\n public void mouseExited(MouseEvent e) {\n }\n });\n \n \n //add the table to the frame\n jPanel1.add(new JScrollPane(table));\n this.setSize(400, 400);\n // this.setVisible(true);\n }", "title": "" }, { "docid": "d24d57a28ef8aeef6e1e90ccb76b80d0", "score": "0.5797578", "text": "public Tarifa recuperarTarifas(){\n try {\n this.conectarDB(); \n declaracionSegura = conexion.prepareStatement(\"SELECT* FROM Tarifa;\");\n resultado = declaracionSegura.executeQuery();\n while(resultado.next()){\n tarifa = new Tarifa(resultado.getDouble(\"TarifaOperacionGlobal\"), resultado.getDouble(\"PrecioLibraGlobal\"), resultado.getDouble(\"CuotaPriorizacionGlobal\"), resultado.getDouble(\"CuotaDestinoGlobal\"));\n }\n } \n catch (SQLException ex) {\n System.out.println(ex);\n }\n return tarifa;\n }", "title": "" }, { "docid": "e148734f3665b2d351589f6f60d715da", "score": "0.57938635", "text": "DATA getData();", "title": "" }, { "docid": "1205aaf0f780f43fd8c81b5f4147f38d", "score": "0.5788124", "text": "void retrieveData();", "title": "" }, { "docid": "1205aaf0f780f43fd8c81b5f4147f38d", "score": "0.5788124", "text": "void retrieveData();", "title": "" }, { "docid": "06d7f359217e9109a00697ab1a27a920", "score": "0.57834953", "text": "public Date getDataInicio() {\n return dataRealizacaoInicio;\n }", "title": "" }, { "docid": "b4c304f1137f714484b71f8dbe6de361", "score": "0.57751125", "text": "@Override\r\n\tpublic List<Map<String, Object>> readAll() {\n\t\tString SQL = \"select * from detalle_pedido\";\r\n\t\treturn JdbcTemplate.queryForList(SQL);\r\n\t}", "title": "" }, { "docid": "00982af49836f2c86e0228a1fa964022", "score": "0.5754648", "text": "public Interfaz_grafica() {\n \n initComponents();\n \n }", "title": "" }, { "docid": "641ad805b77b27277144b092bc98b345", "score": "0.5735884", "text": "public void cargarDatosGenerales(){\r\n\t\ttry {\r\n\t\t\tFileInputStream in = new FileInputStream(\"datos.temp\");\r\n\t\t\tObjectInputStream oin = new ObjectInputStream(in);\r\n\t\t\tSistema sistema_retornado = (Sistema) oin.readObject();\r\n\t\t\tsistema.usuario_actual = sistema_retornado.usuario_actual;\r\n\t\t\tsistema.usuarios_totales = sistema_retornado.usuarios_totales;\r\n\t\t\tsistema.precio_premium = sistema_retornado.precio_premium;\r\n\t\t\tsistema.canciones_totales = sistema_retornado.canciones_totales;\r\n\t\t\tsistema.umbral_reproducciones = sistema_retornado.umbral_reproducciones;\r\n\t\t\tsistema.albumes_totales = sistema_retornado.albumes_totales;\r\n\t\t\tsistema.max_reproducciones_usuarios_no_premium = sistema_retornado.max_reproducciones_usuarios_no_premium;\r\n\t\t\tsistema.es_administrador = sistema_retornado.es_administrador;\r\n\t\t\toin.close();\r\n\t\t}catch(IOException ie) {\r\n\t\t\tie.toString();\r\n\t\t\treturn;\r\n\t\t}catch(ClassNotFoundException ce) {\r\n\t\t\tce.toString();\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cd8bccebe76c26d7b37de78d483a3fc7", "score": "0.57309407", "text": "public Map visualizzaRighe(){\n \n //CREA UN HASHMAP CONTENENTE I VALORI\n Map dati = new HashMap();\n dati.put(\"tabella\",\"dottore\");\n dati.put(\"tabella1\", \"trainer\");\n //EFFETTUA LA RICHIESTA AL SERVER UTILIZZANDO IL PATH SOTTOSTANTE\n InputStream richiesta = getRichieste().GetRichiesta(\"/admin/visualizzaRighe\", dati, null);\n //PUSLISCE L'HASHMAP\n dati.clear();\n //INSERISCE LA RISPOSTA DEL SERVER ALL'INTERNO DELL'HASHMAP\n dati = getJson().LeggiJson(richiesta);\n \n return dati; \n }", "title": "" }, { "docid": "d633a6102f8f5f2f8f35c3acf397546b", "score": "0.57274824", "text": "public InfoTecnica(){\n\t\t\n\t\tvalores = Valores.getInstance();\n\t\tthis.numcambios = 1;\n\t\t\n\t}", "title": "" }, { "docid": "76c95cbcde1051cd6afe4dad0f770012", "score": "0.57192045", "text": "public Object[] darArreglo();", "title": "" }, { "docid": "b7445b6a63e1ae2827152d6b77b825e2", "score": "0.57126045", "text": "@DataProvider(name = \"getdata\")\r\n\tpublic Object[][] getdata() {\n\t\tObject[][] value = { { \"17409040302\",\"1000\",15177} };\r\n\t\treturn value;\r\n\t}", "title": "" }, { "docid": "190f864d590ff2367b2e8d86255c0528", "score": "0.5712377", "text": "public DTOSalida obtenerTiposOperacion(Long oidOperacion ) throws Exception{\n traza(\"*** LPOperacion.obtenerTiposOperacion: Entrada ***\");\n \n Vector paramConector = new Vector();\n DTOOID dtoOid=new DTOOID();\n dtoOid.setOidIdioma(idioma);\n dtoOid.setOidPais(pais);\n dtoOid.setOid(oidOperacion);\n paramConector.add(dtoOid);\n paramConector.add(new MareBusinessID(\"RECObtenerTiposOperacion\")); \n traza(\"Antes de Conectar ConectorObtenerTiposOperacion\");\n DruidaConector conector = conectar(\"ConectorObtenerTiposOperacion\", paramConector);\t\t\t\t\t\t\t\n traza(\"Despues de Conectar ConectorObtenerTiposOperacion\");\n Object objeto=conector.objeto(\"DTOSalida\");\n traza(\"Objeto recogido\"+objeto);\n DTOSalida salida = (DTOSalida)conector.objeto(\"DTOSalida\");\n traza(\"DTOSalida obtenido\");\n \n // Modificamos los valores boolean por un si o un no que es lo que aparece en la lista\n RecordSet rs = salida.getResultado();\n if(!rs.esVacio()){\n for(int i=0;i<rs.getRowCount();i++){\n \n if(rs.getValueAt(i,3) != null){\n if( ((BigDecimal)rs.getValueAt(i,3)).intValue() == 1)\n rs.setValueAt(\"Si\",i,3);\n else\n rs.setValueAt(\"No\",i,3);\n }\n if(rs.getValueAt(i,5) != null){\n if( ((BigDecimal)rs.getValueAt(i,5)).intValue() == 1)\n rs.setValueAt(\"Si\",i,5);\n else\n rs.setValueAt(\"No\",i,5);\n }\n if(rs.getValueAt(i,6) != null){\n if( ((BigDecimal)rs.getValueAt(i,6)).intValue() == 1)\n rs.setValueAt(\"Si\",i,6);\n else\n rs.setValueAt(\"No\",i,6);\n }\n if(rs.getValueAt(i,7) != null){\n if( ((BigDecimal)rs.getValueAt(i,7)).intValue() == 1)\n rs.setValueAt(\"Si\",i,7);\n else\n rs.setValueAt(\"No\",i,7);\n }\t\n }\n }\n salida.setResultado(rs);\t\n \n \n traza(\"*** LPOperacion.obtenerTiposOperacion: Salida ***\");\n return salida;\n }", "title": "" }, { "docid": "08c17e1e6273e66a5c6bad31659460d9", "score": "0.5693549", "text": "@Override\n\tpublic HashMap<String, Object> getData() {\n\t\treturn invoiceStruct;\n\t}", "title": "" }, { "docid": "fb09d0d19327e1216e1490c0ae71239c", "score": "0.56924", "text": "public void intercambiar_datos() //FUNCION\n {\n TXT_presion_yacimiento = Jtxt_presion_yacimiento.getText();\n TXT_presion_burbuja = Jtxt_presion_burbuja.getText();\n TXT_densidad_petroleo = Jtxt_densidad_petroleo.getText();\n TXT_gravedad_especifica_petroleo = Jtxt_Gravedad_especifica_petroleo.getText();\n TXT_gravedad_especifica_gas = Jtxt_Gravedad_especifica_gas.getText();\n TXT_relacion_gas_petroleo = Jtxt_Relacion_gas_petroleo.getText();\n TXT_temperatura = Jtxt_Temperatura.getText();\n TXT_gravedad_API = Jtxt_Gravedad_API.getText();\n TXT_viscosidad_cp = Jtxt_Viscosidad_cp.getText();\n }", "title": "" }, { "docid": "3f4873baf36a38696f5116c27338954b", "score": "0.5683888", "text": "List<Serie> getAllInDatabase();", "title": "" }, { "docid": "ea690e44f77fdde619070d63d01421e4", "score": "0.5677601", "text": "private static String[] getDatosAlturaMenor() {\n\t\tSession session = null;\n\t\tTransaction tx = null;\n\t\t\t\t\n\t\t// Iniciar la sesion con Hibernate\n SessionFactory sess = HibernateUtil.getSessionFactory();\n session = sess.getCurrentSession();\n \n // Comenzar la transaccion\n tx = session.beginTransaction();\n \n Logger log = Logger.getLogger(\"Obtener los datos de la mayor altura\");\n\t\tlog.info(\"Obtener los datos de la mayor altura\");\n\t\t\n\t\tString[] strDevolucion = new String[3];\n\t try {\t\t\n\t \t\t//hago un query con todos los datos \n\t\t StringBuilder queryObjeto= new StringBuilder();\n\t\t queryObjeto.append(\"select dp.altura, dp.promedioVelocidadRenglon, dp.promedioTempRenglon from DatosPerfilVertical as dp where dp.altura = \");\n\t\t queryObjeto.append(\"(select MIN(dp2.altura) from DatosPerfilVertical as dp2)\");\n\t\t \n\t\t //lo ejecuto y lo guardo en un iterador.\n\t\t Iterator listaDatosArchivo = session.createQuery(queryObjeto.toString()).list().iterator();\n\n\t\t Object[] tupla = (Object[]) listaDatosArchivo.next();\n\t\t\n\t\t strDevolucion[0] = tupla[0].toString();\n\t\t\t strDevolucion[1] = tupla[1].toString();\n\t\t\t strDevolucion[2] = tupla[2].toString();\n\t\t //cometer la transaccion o sino no se escribe nada en la BD\n\t\t\t\ttx.commit();\n\n\t\t\t\t// cerrar la sesion\n\t\t\t\t//session.close();\n\t\t\t\t\n\t } catch (HibernateException e) {\n\n\t\t \tSystem.out.println(e.getMessage());\n\t\t \tlog.warn(\"Ocurrio un error al buscar los datos de la mayor Altura\");\n\n\t\t // cuando ocurre un error hace rollback\n\t\t \tif (tx != null)\n\t\t \t\ttry {\n\t\t \t\t\ttx.rollback();\n\t\t \t\t} catch (HibernateException e1) {\n\t\t \t\t\tSystem.out.println(\"El rollback no fue exitoso\");\n\t\t \t\t\tlog.warn(\"El rollback no fue exitoso\");\n\t\t \t\t}\n\n if (session != null)\n \ttry {\n \t\tsession.close();\n \t} catch (HibernateException e2) {\n \t\tSystem.out.println(\"El cierre de sesion no fue exitoso\");\n\t\t\t\t\tlog.warn(\"El cierre de sesion no fue exitoso\");\n \t}\n\t }\t\n\t\n\t\treturn strDevolucion;\n\t}", "title": "" }, { "docid": "1b890897c33f3e1633acb29387e2a1f2", "score": "0.5665486", "text": "public static void capturarDatosCargos() {\r\n\t\tfilaActivac = view.FrmSelectCargo.table.getSelectedRow();\r\n\t\ttry {\r\n\t\t\tCachedRowSet datosc = logic.LogicEquipos.leerCargos();\r\n\t\t\tdatosc.next();\r\n\t\t\tidPrimaryKeyc = view.FrmSelectCargo.table.getValueAt(filaActivac, 0).toString();\r\n\t\t\tcapturarDatosEqiposProyectos();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "75066a3823a4b141ac66d7f3bb532902", "score": "0.5665031", "text": "Map<String, Object> getData();", "title": "" }, { "docid": "a3b4dde89843c15c659d1f87f534d77d", "score": "0.56589955", "text": "public IData getData();", "title": "" }, { "docid": "b5f50e4d56772889ec1093a870d454e7", "score": "0.565421", "text": "@Override\r\n public String[] getInformations() \r\n { \r\n String[] thisSensor = new String[4];\r\n thisSensor[0] = Integer.toString(this.getId());\r\n thisSensor[1] = \"\"; // Valeur de la date vide sinon il faut modifier la partie client ou le json ?\r\n thisSensor[2] = this.getDevice().getState();\r\n thisSensor[3] = Integer.toString(this.getDevice().getCurrentConsumption());\r\n return thisSensor;\r\n }", "title": "" }, { "docid": "b5f566a0863abc783a73f5887dcbd47c", "score": "0.5646146", "text": "public void loadData() {\r\n\r\n }", "title": "" }, { "docid": "5d1750778a2c2d99aca80d312d65d49d", "score": "0.5644844", "text": "public List<InscripcionDTO> obtieneInscripciones() throws SQLException, ClassNotFoundException {\n\t\tList<InscripcionDTO> listaDeInscripciones = new ArrayList<InscripcionDTO>();\n\t\t\n\t\t//creamos la consulta a la base de datos\n\t\tString consultaSql = \"select id_inscripcion,nombre,telefono,id_curso,id_forma_pago from inscripcion\";\n\t\t\n\t\t//conexion a la base de datos y ejecucion de la sentencia\n\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\tConnection conexion = null;\n\t\tString url = \"jdbc:oracle:thin:@//localhost:1521/xe\";\n\t\tconexion = DriverManager.getConnection(url,\"hr\",\"1234\");\n\t\t\n\t\ttry(PreparedStatement stmt = conexion.prepareStatement(consultaSql)){\n\t\n\t\t\tResultSet resultado = stmt.executeQuery();\n\t\t\twhile(resultado.next()) {\n\t\t\t\tInscripcionDTO inscripcionesDto = new InscripcionDTO();\n\t\t\t\tinscripcionesDto.setIdInsc(resultado.getInt(\"id_inscripcion\"));\n\t\t\t\tinscripcionesDto.setNombre(resultado.getString(\"nombre\"));\n\t\t\t\tinscripcionesDto.setCelular(resultado.getString(\"telefono\"));\n\t\t\t\tinscripcionesDto.setIdCurso(resultado.getInt(\"id_curso\"));\n\t\t\t\tinscripcionesDto.setIdFormaDePago(resultado.getInt(\"id_forma_pago\"));\n\t\t\t\tlistaDeInscripciones.add(inscripcionesDto);\n\t\t\t}\t\n\t\t\t\n\t\t}catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn listaDeInscripciones;\n\t}", "title": "" }, { "docid": "346f7b97c9088d6df6876a91c5db43fb", "score": "0.5629992", "text": "@Override\n public void resultados() {\n System.out.println(\"El area del cuadrado es: \" + area());\n System.out.println(\"El perimetro del cuadrado es: \" + perimetro());\n }", "title": "" }, { "docid": "aa8dbc97ed5528264af12f68aa437469", "score": "0.56293404", "text": "private Date getDataInicial()\n\t{\n\t\treturn dataInicial;\n\t}", "title": "" }, { "docid": "31d2cd6941cb943f6d3ce78e9bd631f2", "score": "0.5624877", "text": "public List<Iscrizione> doRetrieveByUser(String matricola);", "title": "" }, { "docid": "ba7a12014a56ca31ea21999828069f44", "score": "0.56245464", "text": "@Override\r\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn detalle_pedidodao.readAll();\r\n\t}", "title": "" }, { "docid": "22b2466f7edffb65a0e72c3df3f640fc", "score": "0.5602886", "text": "public DataModel getDados()throws ClassNotFoundException, SQLException{\n this.autodromo.conecta();\n this.dados = new ListDataModel(this.autodromo.listarAutodromos());\n return dados;\n }", "title": "" }, { "docid": "ee543e3f88fd616165090681eb4e3b9d", "score": "0.56026745", "text": "public abstract Serializable getData();", "title": "" }, { "docid": "529c04a7b7b9bb7084fde7ba205ecacd", "score": "0.5597215", "text": "private void getFincaCatastroExpedienteDB(Expediente exp, String idMunicipio)throws Exception\r\n\t{\r\n\t\tArrayList aux= new ArrayList();\r\n\t\t\r\n\t\tString sSQL = \"select e.ref_catastral ,e.id_dialogo,e.actualizado, p.codigopoligono, p.codigoparcela, p.id_via,p.primer_numero,\" +\r\n\t\t\" p.codigo_municipioDGC, p.codigodelegacionmeh from expediente_finca_catastro e left join parcelas p \" +\r\n\t\t\t\t\"on p.referencia_catastral=e.ref_catastral and p.fecha_baja is null where e.id_expediente=\" \r\n\t\t\t\t+ exp.getIdExpediente() + \" and p.id_municipio='\" + idMunicipio + \"'\";\r\n\t\t\r\n\t\tPreparedStatement ps= null;\r\n\t\tConnection conn= null;\r\n\t\tResultSet rs= null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconn= CPoolDatabase.getConnection();\r\n\t\t\tps= conn.prepareStatement(sSQL);\r\n\t\t\trs= ps.executeQuery();\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tFincaCatastro finca = new FincaCatastro();\r\n\t\t\t\tReferenciaCatastral refCatas = new ReferenciaCatastral(rs.getString(\"ref_catastral\"));\r\n\t\t\t\tif(rs.getString(\"id_dialogo\") == null ){\r\n\t\t\t\t\tfinca.setIdentificadorDialogo(\"\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tfinca.setIdentificadorDialogo(rs.getString(\"id_dialogo\"));\r\n\t\t\t\t}\r\n\t\t\t\tfinca.setActualizadoOVC(rs.getBoolean(\"actualizado\"));\r\n\t\t\t\t\r\n\t\t\t\tfinca.setRefFinca(refCatas);\r\n\t\t\t\tDireccionLocalizacion dir = new DireccionLocalizacion();\r\n\t\t\t\tdir.setPrimerNumero(TypeUtil.getSimpleInteger(rs, \"primer_numero\"));\r\n\t\t\t\tdir.setCodPoligono(rs.getString(\"codigopoligono\"));\r\n\t\t\t\tdir.setCodParcela(rs.getString(\"codigoparcela\"));\r\n\r\n\t\t\t\tString codMunicipioDGC = rs.getString(\"codigo_municipioDGC\");\r\n\t\t\t\tif(codMunicipioDGC != null && !codMunicipioDGC.equalsIgnoreCase(\"\"))\r\n\t\t\t\t\tfinca.setCodMunicipioDGC(codMunicipioDGC);\r\n\t\t\t\telse\r\n\t\t\t\t\tfinca.setCodMunicipioDGC(DEFAULT_CODIGO_MUNICIPIO_DGC);\r\n\r\n\t\t\t\tString codDelegacionMEH = rs.getString(\"codigodelegacionmeh\");\r\n\t\t\t\tif(codDelegacionMEH == null || codDelegacionMEH.equalsIgnoreCase(\"\"))\r\n\t\t\t\t\tcodDelegacionMEH = String.valueOf(exp.getEntidadGeneradora().getCodigo());\r\n\r\n\t\t\t\tfinca.setCodDelegacionMEH(codDelegacionMEH);\r\n\r\n\t\t\t\tint idVia = -1;\r\n\t\t\t\tidVia = TypeUtil.getSimpleInteger(rs,\"id_via\");\r\n\t\t\t\tResultSet rsVia= null;\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tif(idVia!=-1){\r\n\t\t\t\t\t\tsSQL = \"select vias.tipovianormalizadocatastro, vias.nombrecatastro from vias where codigocatastro=\" + idVia\r\n\t\t\t\t\t\t+ \" and id_municipio=\"+Integer.parseInt(idMunicipio);;\r\n\t\t\t\t\t\tps= conn.prepareStatement(sSQL);\r\n\t\t\t\t\t\trsVia= ps.executeQuery();\r\n\t\t\t\t\t\tif(rsVia.next())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdir.setNombreVia(rsVia.getString(\"nombrecatastro\"));\r\n\t\t\t\t\t\t\tdir.setTipoVia(rsVia.getString(\"tipovianormalizadocatastro\"));\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\tcatch (Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t}\r\n\t\t\t\tfinally\r\n\t\t\t\t{\r\n\t\t\t\t\ttry{rsVia.close();}catch(Exception e){};\r\n\t\t\t\t}\r\n\t\t\t\tfinca.setDirParcela(dir);\r\n\t\t\t\taux.add(finca);\r\n\t\t\t}\r\n\r\n\t\t\tResultSet rsParcelTemp= null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tString SQLParcelasTemp = \"select referencia from catastro_temporal where id_expediente =\" + exp.getIdExpediente() + \" and referencia not in \" +\r\n\t\t\t\t\"(select e.ref_catastral from expediente_finca_catastro e left join parcelas p \" +\r\n\t\t\t\t\"on p.referencia_catastral=e.ref_catastral and p.fecha_baja is null where e.id_expediente=\" \r\n\t\t\t\t+ exp.getIdExpediente() + \" and p.id_municipio='\" + idMunicipio + \"')\";\r\n\t\t\t\t\r\n\t\t\t\tps= conn.prepareStatement(SQLParcelasTemp);\r\n\t\t\t\trsParcelTemp= ps.executeQuery();\r\n\t\t\t\tif(rsParcelTemp.next()) {\r\n\t\t\t\t\tFincaCatastro finca = new FincaCatastro();\r\n\t\t\t\t\tReferenciaCatastral refCatas = new ReferenciaCatastral(rsParcelTemp.getString(\"referencia\"));\r\n\t\t\t\t\tfinca.setRefFinca(refCatas);\r\n\t\t\t\t\t\r\n\t\t\t\t\tDireccionLocalizacion dir = new DireccionLocalizacion();\r\n\t\t\t\t\tfinca.setDirParcela(dir);\r\n\t\t\t\t\texp.getDireccionPresentador().setCodigoMunicipioDGC(finca.getCodMunicipioDGC());\r\n\t\t\t\t\taux.add(finca);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e){\r\n\t\t\t\tthrow e;\r\n\t\t\t}\r\n\t\t\tfinally{\r\n\t\t\t\ttry{rsParcelTemp.close();}catch(Exception e){};\r\n\t\t\t}\r\n\r\n\t\t\texp.setListaReferencias(aux); \r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\ttry{ps.close();}catch(Exception e){};\r\n\t\t\ttry{rs.close();}catch(Exception e){};\r\n\t\t\ttry{conn.close();}catch(Exception e){};\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9ffcb6bda62f519fb6c69d8472b3e649", "score": "0.5596452", "text": "public int[] getDataPrecisions() {\r\n\t return DATAPRECISIONS;\r\n\t}", "title": "" }, { "docid": "204eb58b475e282215e9873cd1520104", "score": "0.5591199", "text": "private Persona getRepresentante(String nifRepresentante, String id_bienInmueble) throws SQLException\r\n\t{\r\n\t\tPersona representante = new Persona();\r\n\t\tString sSQL = \"select * from representante r where r.nifrepresentante='\"+nifRepresentante+\r\n\t\t\"' AND r.id_bieninmueble='\"+id_bienInmueble+\"'\";\r\n\r\n\t\tPreparedStatement ps = null;\r\n\t\tConnection conn = null;\r\n\t\tResultSet rs = null;\r\n\t\tPreparedStatement psVia= null;\r\n\t\tResultSet rsVia= null;\r\n\t\tPreparedStatement psMunicipio= null;\r\n\t\tResultSet rsMunicipio= null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tconn = CPoolDatabase.getConnection();\r\n\t\t\tps = conn.prepareStatement(sSQL);\r\n\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\twhile (rs.next())\r\n\t\t\t{\r\n\t\t\t\t//Ya no existe: representante.setAusenciaNIF(rs.getString(\"ausencia_nif\"));\r\n\t\t\t\trepresentante.setCodEntidadMenor(rs.getString(\"entidad_menor\"));\r\n\r\n\t\t\t\tDireccionLocalizacion dirRepresentante = new DireccionLocalizacion();\r\n\r\n\t\t\t\tint idVia = -1;\r\n\t\t\t\tidVia = TypeUtil.getSimpleInteger(rs, \"id_via\");\r\n\t\t\t\tif(idVia!=-1){\r\n\t\t\t\t\tsSQL = \"select v.tipovianormalizadocatastro, v.nombrecatastro, v.codigocatastro from vias v where id=\" + idVia;\r\n\t\t\t\t\tpsVia= conn.prepareStatement(sSQL);\r\n\t\t\t\t\trsVia= psVia.executeQuery();\r\n\t\t\t\t\tif(rsVia.next()){\r\n\t\t\t\t\t\tdirRepresentante.setCodigoVia(TypeUtil.getSimpleInteger(rs,\"codigocatastro\"));\r\n\t\t\t\t\t\tdirRepresentante.setTipoVia(rsVia.getString(\"tipovianormalizadocatastro\"));\r\n\t\t\t\t\t\tdirRepresentante.setNombreVia(rsVia.getString(\"nombrecatastro\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdirRepresentante.setPrimerNumero(TypeUtil.getSimpleInteger(rs,\"primer_numero\"));\r\n\t\t\t\tdirRepresentante.setBloque(rs.getString(\"bloque\"));\r\n\t\t\t\tdirRepresentante.setCodigoMunicipioDGC(rs.getString(\"codigo_municipio_dgc\"));\r\n\t\t\t\tdirRepresentante.setCodigoPostal(rs.getString(\"codigo_postal\"));\r\n\t\t\t\tdirRepresentante.setDireccionNoEstructurada(rs.getString(\"direccion_no_estructurada\"));\r\n\t\t\t\tdirRepresentante.setEscalera(rs.getString(\"escalera\"));\r\n\t\t\t\tdirRepresentante.setKilometro(TypeUtil.getSimpleDouble(rs,\"kilometro\"));\r\n\t\t\t\tdirRepresentante.setNombreEntidadMenor(rs.getString(\"entidad_menor\"));\r\n\r\n\t\t\t\tString idProv=\"00\";\r\n\t\t\t\tlong codProv=TypeUtil.getSimpleLong(rs,\"codigo_provincia_ine\");\r\n\t\t\t\tif(codProv != -1)\r\n\t\t\t\t\tidProv = String.valueOf(codProv);\r\n\r\n\t\t\t\tString idMun= DEFAULT_CODIGO_MUNICIPIO_DGC;\r\n\t\t\t\tlong codMun=TypeUtil.getSimpleLong(rs,\"codigo_municipio_ine\");\r\n\t\t\t\tif(codMun!=-1)\r\n\t\t\t\t\tidMun = String.valueOf(codMun);\r\n\r\n\t\t\t\tidProv = GeopistaCommonUtils.completarConCeros(idProv, 2);\r\n\r\n\t\t\t\tidMun = GeopistaCommonUtils.completarConCeros(idMun, 3);\r\n\r\n\t\t\t\tString idMunicipio = idProv + idMun;\r\n\r\n\t\t\t\tsSQL = \"select nombreoficial, id_provincia from municipios where id=\" + idMunicipio;\r\n\t\t\t\tpsMunicipio= conn.prepareStatement(sSQL);\r\n\t\t\t\trsMunicipio= psMunicipio.executeQuery();\r\n\t\t\t\tif(rsMunicipio.next()){\r\n\t\t\t\t\t//Sale de la tabla de municipios\r\n\t\t\t\t\tdirRepresentante.setNombreMunicipio(rsMunicipio.getString(\"nombreoficial\"));\r\n\t\t\t\t\tdirRepresentante.setProvinciaINE(rsMunicipio.getString(\"id_provincia\"));\r\n\t\t\t\t\tdirRepresentante.setNombreProvincia(getNombreProvinciaById(rsMunicipio.getString(\"id_provincia\")));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdirRepresentante.setMunicipioINE(idMun);\r\n\t\t\t\tif(dirRepresentante.getCodigoMunicipioDGC() == null || dirRepresentante.getCodigoMunicipioDGC().equals(\"\"))\r\n\t\t\t\t\tdirRepresentante.setCodigoMunicipioDGC(idMun);\r\n\r\n\r\n\t\t\t\tdirRepresentante.setPlanta(rs.getString(\"planta\"));\r\n\t\t\t\tdirRepresentante.setPrimeraLetra(rs.getString(\"primera_letra\"));\r\n\t\t\t\tdirRepresentante.setPuerta(rs.getString(\"puerta\"));\r\n\t\t\t\tdirRepresentante.setSegundaLetra(rs.getString(\"segunda_letra\"));\r\n\t\t\t\tdirRepresentante.setSegundoNumero(TypeUtil.getSimpleInteger(rs,\"segundo_numero\"));\r\n\r\n\t\t\t\trepresentante.setDomicilio(dirRepresentante);\r\n\t\t\t\trepresentante.setNif(rs.getString(\"nifrepresentante\"));\r\n\t\t\t\trepresentante.setRazonSocial(rs.getString(\"razonsocial_representante\"));\r\n\r\n\t\t\t}\r\n\t\t\treturn representante;\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\ttry{ps.close();}catch(Exception e){};\r\n\t\t\ttry{rs.close();}catch(Exception e){};\r\n\t\t\ttry{psMunicipio.close();}catch(Exception e){};\r\n\t\t\ttry{rsMunicipio.close();}catch(Exception e){};\r\n\t\t\ttry{psVia.close();}catch(Exception e){};\r\n\t\t\ttry{rsVia.close();}catch(Exception e){};\r\n\t\t\ttry{conn.close();}catch(Exception e){};\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "bbf6d93745fe4e211650c974ffcfda41", "score": "0.55886006", "text": "public void getinfo(){\r\n System.out.print(\"\\nID: \"+ID+\"\\nNombre: \"+Nombre+\"\\nSalario: \"+salario);\r\n }", "title": "" }, { "docid": "13815b3eeb4a16ed704afc4c58ec3c8a", "score": "0.55815023", "text": "public static String[] getDatosAlturaMayor() {\n\t\tSession session = null;\n\t\tTransaction tx = null;\n\t\t\t\t\n\t\t// Iniciar la sesion con Hibernate\n SessionFactory sess = HibernateUtil.getSessionFactory();\n session = sess.getCurrentSession();\n \n // Comenzar la transaccion\n tx = session.beginTransaction();\n \n Logger log = Logger.getLogger(\"Obtener los datos de la mayor altura\");\n\t\tlog.info(\"Obtener los datos de la mayor altura\");\n\t\t\n\t\tString[] strDevolucion = new String[3];\n\t try {\t\t\n\t \t\t//hago un query con todos los datos \n\t\t StringBuilder queryObjeto= new StringBuilder();\n\t\t queryObjeto.append(\"select dp.altura, dp.promedioVelocidadRenglon, dp.promedioTempRenglon from DatosPerfilVertical as dp where dp.altura = \");\n\t\t queryObjeto.append(\"(select MAX(dp2.altura) from DatosPerfilVertical as dp2)\");\n\t\t \n\t\t //lo ejecuto y lo guardo en un iterador.\n\t\t Iterator listaDatosArchivo = session.createQuery(queryObjeto.toString()).list().iterator();\n\n\t\t Object[] tupla = (Object[]) listaDatosArchivo.next();\n\t\t\n\t\t strDevolucion[0] = tupla[0].toString();\n\t\t\t strDevolucion[1] = tupla[1].toString();\n\t\t\t strDevolucion[2] = tupla[2].toString();\n\t\t //cometer la transaccion o sino no se escribe nada en la BD\n\t\t\t\ttx.commit();\n\n\t\t\t\t// cerrar la sesion\n\t\t\t\t//session.close();\n\t\t\t\t\n\t } catch (HibernateException e) {\n\n\t\t \tSystem.out.println(e.getMessage());\n\t\t \tlog.warn(\"Ocurrio un error al buscar los datos de la mayor Altura\");\n\n\t\t // cuando ocurre un error hace rollback\n\t\t \tif (tx != null)\n\t\t \t\ttry {\n\t\t \t\t\ttx.rollback();\n\t\t \t\t} catch (HibernateException e1) {\n\t\t \t\t\tSystem.out.println(\"El rollback no fue exitoso\");\n\t\t \t\t\tlog.warn(\"El rollback no fue exitoso\");\n\t\t \t\t}\n\n if (session != null)\n \ttry {\n \t\tsession.close();\n \t} catch (HibernateException e2) {\n \t\tSystem.out.println(\"El cierre de sesion no fue exitoso\");\n\t\t\t\t\tlog.warn(\"El cierre de sesion no fue exitoso\");\n \t}\n\t }\t\n\t\n\t\treturn strDevolucion;\n\t}", "title": "" }, { "docid": "c22f5ceb6dcec48163f6a8e1378231fd", "score": "0.55763584", "text": "private Object[][] initData (){\n \n \n DiscretePhenoValueInequality [] ineqs = \n DiscretePhenoValueInequality.getInequalitiesSet();\n //if(ineqs == null){\n //System.out.println(\"ineqs is null!!!!!!!!!!!!!!!!!!!!!!!!!!!\");\n //}\n \n ImageIcon [] edgeTypeIcons = MiscDialog.getLineTypeIcons();\n //if(edgeTypeIcons == null){\n //System.out.println(\"edgeTypeIcons is null!!!!!!!!!!!!!!!!!!\");\n //}\n // 44 = reduced set of inequalities\n Object [][] data = new Object[44][5]; \n \n for(int i = 0; i < 44; i++){\n \n //if(ineqs[i] == null){\n //System.out.println(\"ineqs[\"+i+\"] is null !!!!!!!!!!!!!!!!!!!\");\n //}\n \n data[i][0] = ineqs[i];\n \n Mode mode = ineqs[i].getMode();\n if(mode == null){\n mode = modes[0];\n }\n \n data[i][1] = mode;\n \n data[i][2] = ineqs[i].getDirection();\n data[i][3] = ineqs[i].getColor();\n \n String edgeType = ineqs[i].getEdgeType();\n ImageIcon icon = null;\n for(int j = 0; j < edgeTypeIcons.length; j++){\n //if(edgeType == null){\n //System.out.println(\"edgeType for ineq \" + i + \" is null !!!!!!!!!!!\");\n //}\n //if(edgeTypeIcons[j] == null){\n //System.out.println(\"edgeTypeIcons[\"+j+\"] is null!!!!!!!!!!!!!!!!!\");\n //}\n if(edgeType.equals(edgeTypeIcons[j].getDescription())){\n icon = edgeTypeIcons[j];\n break;\n }\n }//for j\n if(icon == null){\n icon = edgeTypeIcons[0];\n }\n data[i][4] = icon;\n }//for i\n return data;\n }", "title": "" }, { "docid": "8b2446dda58eb00ec1c605e22abf06b9", "score": "0.557072", "text": "public String [] bmcIndividuoObject(String INDV_CONSECUTIVO, String EQAL_METODOLOGIA, String EQAL_CODIGO, String EQAL_ID) throws ClassNotFoundException, Exception {\n\t\tString [] a_bmc = new String[3];\n\t\ta_bmc = new String[]{\"\", \"\", \"\"};\n\t\t\n\t\tBD dbREDD = new BD();\n\t\n\t Auxiliar aux = new Auxiliar();\n\n\t \n\t // OBTENER DATOS INDIVIDUO NECESARIOS PARA CALCULAR\n\t \n\t // OBTENER VARIABLES \n\t // Math.exp(3.652 - 1.697 * Math.log(_[D]_) + 1.169 * Math.pow(Math.log(_[D]_),2) - 0.122 * (Math.pow(Math.log(_[D]_), 3) + 1.285 * Math.log(_[p]_) + (Math.pow(0.336, 2)/2))\n\t \n\t \n\t // OBTENER DAP\n\t String sDAP = dbREDD.obtenerDato(\"SELECT SUM((TAYO_DAP1 + TAYO_DAP2)/2) FROM RED_TALLO WHERE TAYO_INDV_CONSECUTIVO=\"+INDV_CONSECUTIVO, \"\");\n\t \n\t if (!Auxiliar.esDAP(sDAP)) {\n\t \treturn new String []{\"\", \"\", \"DAP \"+sDAP+\" no es un DAP válido\"};\n\t }\n\t \n\t double DAP = Double.parseDouble(sDAP);\n\t \n\t // OBTENER DENSIDAD\n\t \n\t // PRIMERO, DIRECTAMENTE DE LA TABLA DE INDIVIDUOS\n\t \n\t String sDENSIDAD = dbREDD.obtenerDato(\"SELECT INDV_DENSIDAD FROM RED_INDIVIDUO WHERE INDV_CONSECUTIVO=\"+INDV_CONSECUTIVO, \"\");\n\t \n\t if (!Auxiliar.tieneAlgo(sDENSIDAD)) {\n\t \tString INDV_TXCT_ID = dbREDD.obtenerDato(\"SELECT INDV_TXCT_ID FROM RED_INDIVIDUO WHERE INDV_CONSECUTIVO=\"+INDV_CONSECUTIVO, \"\");\n\t \t\n\t \tif (!Auxiliar.tieneAlgo(INDV_TXCT_ID)) {\n\t\t \treturn new String []{\"\", \"\", \"No encontré la taxonomía del individuo, y por ende, su densidad taxonómica.\"};\n\t \t}\n\t \tsDENSIDAD = dbREDD.obtenerDato(\"SELECT TXCT_DENSIDAD FROM IDT_TAXONOMY_CATALOGUE WHERE INDV_CONSECUTIVO=\"+INDV_CONSECUTIVO, \"\");\n\t }\n\t \n\t if (!Auxiliar.tieneAlgo(sDENSIDAD)) {\n\t \treturn new String []{\"\", \"\", \"No encontré la densidad de la madera por ningún lado.\"};\n\t }\n\t \n\t if (!Auxiliar.esDensidad(sDENSIDAD)) {\n\t \treturn new String []{\"\", \"\", \"La densidad \"+sDENSIDAD+\" no es válida.\"};\n\t }\n\t \n\t double DENSIDAD = Double.parseDouble(sDENSIDAD);\n\t \n\t \n\t String w_id = \"\";\n\t if (Auxiliar.tieneAlgo(EQAL_ID)) {\n\t \tw_id = \" AND EQAL_ID=\" + EQAL_ID;\n\t }\n\t \n\t\tString w_mc = \"\";\n\t if (Auxiliar.tieneAlgo(EQAL_METODOLOGIA) && Auxiliar.tieneAlgo(EQAL_CODIGO)) {\n\t \tw_mc = \" AND EQAL_METODOLOGIA=\"+EQAL_METODOLOGIA+\" AND EQAL_CODIGO=\"+EQAL_CODIGO+\" \";\n\t }\n\t \n\t // OBTENER LA ECUACION\n\t \n\t String parametrizable = dbREDD.obtenerDato(\"SELECT EQAL_PARAMETRIZABLE FROM RED_ECUACIONALOMETRICA WHERE 1=1 \"+w_id+\" \"+w_mc, \"\");\n\t \n\t if (!Auxiliar.tieneAlgo(parametrizable)) {\n\t \treturn new String []{\"\", \"\", \"No se pudo obtener la ecuación alométrica parametrizable\"};\n\t }\n\t \n\t // REEMPLAZAR PARÁMETROS POR VARÍABLES\n\t \n\t parametrizable = parametrizable.replace(\"_[D]_\", sDAP);\n\t parametrizable = parametrizable.replace(\"_[p]_\", sDENSIDAD);\n\t parametrizable = parametrizable.replace(\"Math.\", \"\");\n\t \n\t \n\t \n\t // EVALUACIÓN DE LA ECUACIÓN ALOMÉTRICA\n\t \n\t // Set up library\n\t Class[] staticLib=new Class[1];\n\t try {\n\t staticLib[0]=Class.forName(\"java.lang.Math\");\n\t } catch(ClassNotFoundException e) {\n\t // Can't be ;)) ...... in java ... ;)\n\t };\n\t Library lib=new Library(staticLib,null,null,null,null);\n\t try {\n\t lib.markStateDependent(\"random\",null);\n\t } catch (CompilationException e) {\n\t // Can't be also\n\t };\n\n\t // Compile\n\t CompiledExpression expr_c=null;\n\t try {\n\t expr_c=Evaluator.compile(parametrizable,lib);\n\t } catch (CompilationException ce) {\n\t Auxiliar.mensajeImpersonal(\"advertencia\", \"--- COMPILATION ERROR :\");\n\t Auxiliar.mensajeImpersonal(\"advertencia\", ce.getMessage());\n\t //System.err.print(\" \");\n\t Auxiliar.mensajeImpersonal(\"advertencia\", parametrizable);\n\t int column=ce.getColumn(); // Column, where error was found\n\t Auxiliar.mensajeImpersonal(\"advertencia\", \"Error encontrado en el caracter \" + column);\n\t //for(int i=0;i<column+23-1;i++) System.err.print(' ');\n\t //System.err.println('^');\n\t };\n\n\t\tObject result=null;\n\t\t\n\t if (expr_c !=null) {\n \n\t\t\t// Evaluate (Can do it now any number of times FAST !!!)\n\t\t\ttry {\n\t\t\t\tresult=expr_c.evaluate(null);\n\t\t\t} catch (Throwable e) {\n\t\t\t\tAuxiliar.mensajeImpersonal(\"error\", \"Exception emerged from JEL compiled code (IT'S OK) :\");\n\t\t\t\tAuxiliar.mensajeImpersonal(\"error\", e.toString());\n\t\t\t};\n\t\t\t\t \n\t\t\t\t// Print result\n\t\t\tif (result==null) \n\t\t\t\tAuxiliar.mensajeImpersonal(\"advertencia\", \"Resultado es void\");\n\t\t\telse\n\t\t\t\tAuxiliar.mensajeImpersonal(\"confirmacion\", \"BA del individuo \" + INDV_CONSECUTIVO + \"=\" +result.toString());\n\t\t\t\n\t\t};\n\t\t\n\t\tif (result != null) {\n\t\t\tif (!Auxiliar.esBiomasaAerea(result.toString())) {\n\t\t\t\tdbREDD.desconectarse();\n\t\t \treturn new String []{\"\", \"\", \"El resultado [\"+result.toString()+\"] no es válido para el individuo \"+INDV_CONSECUTIVO };\n\t\t\t}\n\t\t\t\n\t\t\tdouble BA = Double.parseDouble(result.toString());\n\n\t\t\tif (!Auxiliar.esBiomasaAerea(String.valueOf(BA))) {\n\t\t\t\tdbREDD.desconectarse();\n\t\t \treturn new String []{\"\", \"\", \"Biomasa aerea [\"+String.valueOf(BA)+\"] no es válida para el individuo \"+INDV_CONSECUTIVO };\n\t\t\t}\n\n\t\t\ta_bmc = new String []{String.valueOf(BA), String.valueOf(BA/2), \"Biomasa Aérea=\"+String.valueOf(BA) + \", Carbono=\"+String.valueOf(BA/2)};\n\t\t}\n\n\t \n\t\tdbREDD.desconectarse();\n\t\treturn a_bmc;\n\t}", "title": "" }, { "docid": "b736a19d5f947e27f8aed472afe695d1", "score": "0.5564058", "text": "@Override\n\t/**\n\t * Tra ve thong tin su dung RAM: tong dung luong, dung luong con trong,\n\t * % su dung RAM\n\t */\n\tpublic HashMap<String, Double> getInfo() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f2bb2513f2a33e9ab5cd3843f27862e0", "score": "0.5560264", "text": "public void retrieveData() {\n }", "title": "" }, { "docid": "7445e06071cf76e1a85f6a12584a68ae", "score": "0.55597395", "text": "void llenarDataAsistenciaEjemplo(String TIPO_ASI){\n\t\tasistenciaClases.clear();\n\t\t\n\t\tAsistenciaAlumnosAClasesModel asistencia = new AsistenciaAlumnosAClasesModel();\n\t\tif(TIPO_ASI.equalsIgnoreCase(\"AT\")){\n\t\t\tasistencia = new AsistenciaAlumnosAClasesModel(\"20/10/14\",\"LUNES\",\"08200001\",\"INGENIERIA DE NEGOCIOS\",\"209003\",\"cristian \",\"rios cornejo\" , \"3\",\"A\",\"Ninguna\");\n\t\tasistenciaClases.add(asistencia);\n\t\tasistencia = new AsistenciaAlumnosAClasesModel(\"29/10/14\",\"MIERCOLES\",\"08200001\",\"INGENIERIA DE NEGOCIOS\",\"209003\",\"cristian \",\"rios cornejo\" , \"3\",\"A\",\"Ninguna\");\n\t\tasistenciaClases.add(asistencia);\n\t\tasistencia = new AsistenciaAlumnosAClasesModel(\"05/11/14\",\"MIERCOLES\",\"08200001\",\"INGENIERIA DE NEGOCIOS\",\"209003\",\"cristian \",\"rios cornejo\" , \"3\",\"A\",\"Ninguna\");\n\t\tasistenciaClases.add(asistencia);\n\t\t}\n\t\tif(TIPO_ASI.equalsIgnoreCase(\"AC\")){\n\t\t\tasistencia = new AsistenciaAlumnosAClasesModel(\"11/11/14\",\"MARTES\",\"08200003\",\"INGENIERÍA DE SOFTWARE\",\"208007\",\"jessica\",\"pariona ramos\" , \"3\",\"A\",\"Ninguna\");\n\t\tasistenciaClases.add(asistencia);\n\t\tasistencia = new AsistenciaAlumnosAClasesModel(\"18/08/14\",\"MARTES\",\"08200003\",\"INGENIERÍA DE SOFTWARE\",\"208007\",\"jessica\",\"pariona ramos\" , \"3\",\"A\",\"El alumno ha faltado a clases ultimamente. No esta cumpliendo con entrega de su proyecto curso.\");\n\t\tasistenciaClases.add(asistencia);\n\t\tasistencia = new AsistenciaAlumnosAClasesModel(\"12/08/14\",\"MIERCOLES\",\"08200001\",\"INGENIERÍA DE SOFTWARE\",\"208007\",\"jessica\",\"pariona ramos\" , \"3\",\"A\",\"Ninguna\");\n\t\tasistenciaClases.add(asistencia);\n\t\t}\n\t\t\n\t\tif(TIPO_ASI.equalsIgnoreCase(\"TT\")){\n\t\t\tasistencia = new AsistenciaAlumnosAClasesModel(\"06/11/14\",\"JUEVES\",\"08200003\",\"METODOLOGÍA PARA LA ELABORACIÓN DE TESIS\",\"208008\",\"cristian \",\"rios cornejo\" , \"3\",\"A\",\"Ninguna\");\n\t\tasistenciaClases.add(asistencia);\n\t\tasistencia = new AsistenciaAlumnosAClasesModel(\"13/08/14\",\"JUEVES\",\"08200003\",\"METODOLOGÍA PARA LA ELABORACIÓN DE TESIS\",\"208008\",\"cristian \",\"rios cornejo\" , \"3\",\"A\",\"Ninguna\");\n\t\tasistenciaClases.add(asistencia);\n\t\tasistencia = new AsistenciaAlumnosAClasesModel(\"20/08/14\",\"JUEVES\",\"08200003\",\"SISTEMAS DISTRIBUIDOS\",\"208003\",\"cristian \",\"rios cornejo\" , \"3\",\"A\",\"Ninguna\");\n\t\tasistenciaClases.add(asistencia);\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "0a7964e789aae2b45868f5103f0ba856", "score": "0.5558465", "text": "private void consultarCodig() throws Exception {\n traza(\"el oid es \" + oid);\n\n DTOOID dtoOid = new DTOOID();\n dtoOid.setOidPais(pais);\n dtoOid.setOidIdioma(idioma);\n dtoOid.setOid(new Long(oid)); \n\n traza(\"dtoOid \" + dtoOid);\n\n MareBusinessID id = new MareBusinessID(\"CARCodConfConsulta\");\n Vector paramEntrada = new Vector();\n paramEntrada.add(dtoOid);\n paramEntrada.add(id);\n traza(\"los parametros de entrada son \" + paramEntrada);\n\n traza(\"****************************** antes de conectar con 'CARConsultaCodigoConf' \");\n DruidaConector con = conectar(\"CARConsultaCodigoConf\", paramEntrada);\n traza(\"****************************** después de conectar con 'CARConsultaCodigoConf' \");\n \n dtoCodConf = (DTOCodigoConfiguracion) con.objeto(\n \"DTOCodigoConfiguracion\"); \n traza(\"dtoCodConf \" + dtoCodConf.toString());\n }", "title": "" }, { "docid": "e7cc996e8a651ea8bc18e067e38cfd31", "score": "0.55575705", "text": "Object getData();", "title": "" }, { "docid": "e7cc996e8a651ea8bc18e067e38cfd31", "score": "0.55575705", "text": "Object getData();", "title": "" }, { "docid": "1673a6110023cd236fd2c13e1b32e854", "score": "0.55564123", "text": "private void cabecera() {\n modelo.addColumn(\"ID\");\n modelo.addColumn(\"DNI\");\n modelo.addColumn(\"APELLIDOS\");\n modelo.addColumn(\"NOMBRES\");\n modelo.addColumn(\"ESTADO\");\n modelo.addColumn(\"PERIODO\");\n modelo.addColumn(\"FECHA\");\n modelo.addColumn(\"DESCRIPCIÓN\");\n modelo.addColumn(\"PLAN S/.\");\n modelo.addColumn(\"DEUDA\");\n modelo.addColumn(\"PAGO\");\n modelo.addColumn(\"MONTO\");\n }", "title": "" }, { "docid": "faad50500329a0fc97ac900b2c240850", "score": "0.5554432", "text": "public Funcionarios() {\n\t\tsuper();\n\t\tdataInicio = null;\n\t\tespecializacao = null;\n\t}", "title": "" }, { "docid": "65c867486f7fccb6e053bcadc2fb1fbf", "score": "0.5548059", "text": "@Override\n\tpublic void getData() {\n\n\t}", "title": "" }, { "docid": "bf1ea0d1c907af99ee0c569cc2a91229", "score": "0.5547648", "text": "public interface HYCOMDataDao {\n public JSONObject getPointData(String strLat, String strLng, String year, String month, String day, String hour, String VTI);\n public JSONObject getAreaData(String ryear, String rmonth, String rday, String rhour, String VTI,\n String level, ElemGFS elemGFS, String strArea);\n\n public JSONObject getImg(String ryear, String rmonth, String rday, String rhour, String vti, String depth, String eles);\n}", "title": "" }, { "docid": "0df5c133c0d92c0f4bf64349b8452840", "score": "0.55397046", "text": "private HashMap<String, Integer> dataForChartRaza(Animal ani) {\n\t\tHashMap<String, Integer> map = new HashMap<>();\n\t\tArrayList<Livestock> bovinos = crud.getLivestockFiltred(0, 1, 0, ani, 0, 0,true);\n\n\t\tString r;\n\t\tfor (Livestock b : bovinos) {\n\t\t\tr = b.getId_race_1().getName();\n\t\t\tif (map.containsKey(r)) {\n\t\t\t\tInteger get = map.get(r);\n\t\t\t\tget = get + 1;\n\t\t\t\tmap.put(r, get);\n\t\t\t} else {\n\t\t\t\tmap.put(r, 1);\n\t\t\t}\n\t\t}\n\n\t\treturn map;\n\t}", "title": "" }, { "docid": "ebe7392c3124321b99092f04570ae0a5", "score": "0.5532078", "text": "public void mostrarDatos()\n {\n String todasLasNotas = \"[]\";\n int media = 0;\n if (notas.length != 0)\n {\n todasLasNotas = \"[\" + notas[0];\n for (int cont = 1; cont < notas.length; cont++)\n { \n todasLasNotas += \", \" + notas[cont];\n }\n todasLasNotas += \"]\"; \n }\n \n if (mostrarMedia() != 0)\n {\n media = mostrarMedia();\n }\n System.out.println(\"Alumno: \" + nombre + \"\\n Edad: \" + edad + \"\\n Número de clase: \" + numClase +\n \"\\n Notas: \" + todasLasNotas + \"\\n Nota media: \" + media + \"\\n\");\n }", "title": "" }, { "docid": "0b1e229f0dbbd8e9daa0a655357ee120", "score": "0.55311334", "text": "@Override\n\tpublic void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "037ba1620fbfe87548d0bb8f4ef8e6f9", "score": "0.5530726", "text": "public List<Annonce_location> readAllLocation() throws SQLException {\r\n List<Annonce_location> arr=new ArrayList<>();\r\n ste=con.createStatement();\r\n ResultSet rs=ste.executeQuery(\"select * from `annonces`,`annonce_location` WHERE `annonces`.`type`=3 AND `annonces`.`ann_id` =`Annonce_location`.`ann_id` AND `annonce_location`.`dispo`=1 ORDER BY date \");\r\n while (rs.next()) { \r\n int id=rs.getInt(1);\r\n String description=rs.getString(\"description\"); \r\n int num_tel=rs.getInt(3);\r\n Date date=rs.getDate(4);\r\n String gouvernerat = rs.getString(5) ;\r\n String Delegation = rs.getString(6);\r\n String Address = rs.getString(7) ;\r\n String photo = rs.getString(8) ;\r\n int Signals = rs.getInt(9) ;\r\n int type = rs.getInt(10) ;\r\n int dispo =rs.getInt(\"dispo\") ;\r\n float prix_heure =rs.getFloat(\"prix_heure\") ;\r\n float prix_jour =rs.getFloat(\"prix_jour\") ;\r\n \r\n Annonce_location a=new Annonce_location(dispo, prix_heure,prix_jour,id, description, num_tel, date, gouvernerat, Delegation,Address, photo, Signals, type);\r\n arr.add(a);\r\n }\r\n return arr;\r\n }", "title": "" }, { "docid": "e851fac5e975dc8ce85dbaac92162833", "score": "0.5529931", "text": "@Override\r\n\tpublic String consultar_Paises() {\n\t\tList<Pais> lista_paises = Acceso_ApplicationContext.getBean(\r\n\t\t\t\tIGestion_Pais.class).consultar_Todos();\r\n\t\t// CONVERSION AL FORMATO DE SALIDA\r\n\t\tsalida_json = Acceso_ApplicationContext.getBean(IConversor_JSON.class)\r\n\t\t\t\t.convertir_Coleccion(lista_paises);\r\n\t\treturn salida_json;\r\n\t}", "title": "" }, { "docid": "ee09180f07686cd412f7e449b3024697", "score": "0.5521307", "text": "public ArbolBinario[] obtener() throws ClassNotFoundException {\n try {\n ObjectInputStream recuperar = new ObjectInputStream(new FileInputStream(\"./Data/arbol.dat\"));\n ArbolBinario[] aux;\n aux = (ArbolBinario[]) recuperar.readObject();\n recuperar.close();\n return aux;\n } catch (EOFException e) {\n //e.printStackTrace();\n return null;\n }catch(IOException e) {\n //e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "eaa774e3d1ffc4f2a27880944e496463", "score": "0.55212855", "text": "public void dataGetir() {\n try {\n String musteriQuery = \"select *from musteriler\";\n ResultSet rs = db.baglan().executeQuery(musteriQuery);\n DefaultTableModel dtm = new DefaultTableModel();\n dtm.addColumn(\"ID\");\n dtm.addColumn(\"Adı\");\n dtm.addColumn(\"Soyadı\");\n dtm.addColumn(\"Telefon\");\n dtm.addColumn(\"Adres\");\n\n while (rs.next()) {\n dtm.addRow(new String[]{rs.getString(\"musteriID\"), rs.getString(\"musteriAdi\"), rs.getString(\"musteriSoyadi\"), rs.getString(\"musteriTelefon\"), rs.getString(\"musteriAdres\")});\n }\n tblMusteriler.setModel(dtm);\n\n } catch (SQLException e) {\n System.err.println(\"Data Getirme Hatası : \" + e);\n } finally {\n db.kapat();\n }\n }", "title": "" }, { "docid": "0aee96b6f51435b7833244ade56393e3", "score": "0.55189484", "text": "private void loadData() {\n }", "title": "" }, { "docid": "7dcb9ed6e8fc9e67f57ccafb3fd76a17", "score": "0.5517296", "text": "public static String buscarTodosLosAviones() throws Exception{\n Connection con=Conexion.conectarse();\r\n //Segundo. Generamos un statement de sql con la conexion anterior\r\n Statement st=con.createStatement();\r\n //Tercero. Llevamos a cabo la consulta (select * from producto)\r\n ResultSet res=st.executeQuery(\"select * from avion\");\r\n int indice=0;\r\n ArrayList<Avion> productos=new ArrayList<Avion>();\r\n \r\n while(res.next()){\r\n Integer id=res.getInt(1);\r\n String tipo=res.getString(2);\r\n Integer num_asientos=res.getInt(3);\r\n \r\n //llenamos el ArrayList en cada vuelta\r\n productos.add(new Avion(id, tipo,num_asientos));\r\n \r\n \r\n \r\n }\r\n \r\n //El paso final, transformamo a objeto json con jackson\r\n ObjectMapper maper=new ObjectMapper();\r\n\r\n st.close();\r\n con.close();\r\n return maper.writeValueAsString(productos); \r\n }", "title": "" }, { "docid": "1105cbd8157b1160e380fcbe69f11f03", "score": "0.55145675", "text": "public Map mostra(){\n Map dati = new HashMap();\n //EFFETTUA LA RICHIESTA AL SERVER UTILIZZANDO IL PATH SOTTOSTANTE\n InputStream richiesta = getRichieste().GetRichiesta(\"/gestione/visualizzaRighe\", dati, null);\n //PUSLISCE L'HASHMAP\n dati.clear();\n //INSERISCE LA RISPOSTA DEL SERVER ALL'INTERNO DELL'HASHMAP\n dati = getJson().LeggiJson(richiesta);\n\n return dati;\n }", "title": "" }, { "docid": "ab6dc172659fc77da1170e4e5e5685a0", "score": "0.55138403", "text": "public java.util.Date getDataInizio() {\r\n\t\treturn dataInizio;\r\n\t}", "title": "" }, { "docid": "e028fe45a59ddbbaf173c3b4adae209a", "score": "0.550988", "text": "private static void retrieveCis() {\n // TODO важно! инкапуслировать получение CIS внутри фреймворка\n }", "title": "" }, { "docid": "b81b8fa34098a7b17372fe2bb4bbd559", "score": "0.5499898", "text": "private Hashtable getCodigoNombreProvinciaBD() throws Exception\r\n\t{\r\n\t\tHashtable aux= new Hashtable();\r\n\t\tArrayList codigos = new ArrayList();\r\n\t\tArrayList nombres = new ArrayList();\r\n\t\tString sSQL= \"select id, nombreoficial from provincias order by translate(nombreoficial, 'ÁÉÍÓÚáéíóú','AEIOUaeiou')\";\r\n\t\tPreparedStatement ps= null;\r\n\t\tConnection conn= null;\r\n\t\tResultSet rs= null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconn= CPoolDatabase.getConnection();\r\n\t\t\tps= conn.prepareStatement(sSQL);\r\n\t\t\trs= ps.executeQuery();\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tcodigos.add(rs.getString(\"id\"));\r\n\t\t\t\tnombres.add(rs.getString(\"nombreoficial\"));\r\n\t\t\t}\r\n\t\t\t//TODO esto mirar y mejorar\r\n\t\t\taux.put(\"codigos\",codigos);\r\n\t\t\taux.put(\"nombres\",nombres);\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\ttry{ps.close();}catch(Exception e){};\r\n\t\t\ttry{rs.close();}catch(Exception e){};\r\n\t\t\ttry{conn.close();}catch(Exception e){};\r\n\t\t}\r\n\t\treturn aux;\r\n\t}", "title": "" }, { "docid": "9188232c63577500d70b4437ccd50b93", "score": "0.54960555", "text": "public ArrayList<Object[]> fillTableClient() throws Exception {\n Connect mysql = new Connect();\n Connection cn = mysql.conectar();\n totalRegistro = 0;\n ArrayList<Object[]> datos = new ArrayList<>();\n\n sSQL = \"SELECT p.perIdPerson, p.perName, p.perLastName, p.perGender, p.perDocumentType,p.perDocumentNumber, \"\n + \"p.perEmail, p.perLogin, p.perPassword \"\n + \"FROM person p INNER JOIN client c ON p.perIdPerson = c.cliIdClient ORDER BY perName DESC\";\n try {\n\n PreparedStatement pst = cn.prepareStatement(sSQL);\n resultado = pst.executeQuery();\n resultadoMeta = resultado.getMetaData();\n\n } catch (Exception e) {\n System.out.println(\"No Correcto\" + e);\n }\n try {\n while (resultado.next()) {\n Object[] filas = new Object[12];\n for (int i = 0; i < resultadoMeta.getColumnCount(); i++) {\n\n filas[i] = resultado.getObject(i + 1);\n\n }\n totalRegistro = totalRegistro + 1;\n datos.add(filas);\n }\n } catch (Exception e) {\n\n JOptionPane.showConfirmDialog(null, e);\n return null;\n } finally {\n try {\n cn.close();\n\n } catch (SQLException sqle) {\n throw new Exception(\"Error cerrar \" + sqle.getMessage());\n }\n\n }\n\n return datos;\n\n }", "title": "" }, { "docid": "9be57e19280f21e6a0d042a69fa9a968", "score": "0.5495369", "text": "@Override\n public List<Descuentos> descuentosaAplicar(){\n List<Descuentos> lista=null;\n //System.out.println(\"VALOR INICIAL \"+ordentrabajo.getCodigo());\n String consulta;\n try{\n consulta=\"SELECT d FROM Descuentos d WHERE d.montopend>'0.0' or d.deley=true\";\n Query query=em.createQuery(consulta);\n \n lista= query.getResultList();\n \n }catch (Exception e){\n System.out.println(e.getMessage());\n }\n return lista;\n }", "title": "" }, { "docid": "a7a07cb53b450c0a1a90c8927f42bd82", "score": "0.5494604", "text": "Data(){\n\t/**Input:\n\tOutput :\n\tComportamento: Popola la matrice data [ ][ ] con le transazioni (per ora,\n\t14 transazioni e 5 attributi);*/\n\t\t\n\t\t\n\t\tnumberOfExamples = 14;\t\n\t\tdata = new Object[numberOfExamples][5];\n\t\t\n\t\t/*data[0][0]=1;\n\t\tdata[1][0]=2;\n\t\tdata[2][0]=3;\n\t\tdata[3][0]=4;\n\t\tdata[4][0]=5;\n\t\tdata[5][0]=6;\n\t\tdata[6][0]=7;\n\t\tdata[7][0]=8;\n\t\tdata[8][0]=9;\n\t\tdata[9][0]=10;\n\t\tdata[10][0]=11;\n\t\tdata[11][0]=12;\n\t\tdata[12][0]=13;\n\t\tdata[13][0]=14;*/\n\t\t\n\t\tdata[0][0]=\"Sunny\";\n\t\tdata[1][0]=\"Sunny\";\n\t\tdata[2][0]=\"Overcast\";\n\t\tdata[3][0]=\"Rain\";\n\t\tdata[4][0]=\"Rain\";\n\t\tdata[5][0]=\"Rain\";\n\t\tdata[6][0]=\"Overcast\";\n\t\tdata[7][0]=\"Sunny\";\n\t\tdata[8][0]=\"Sunny\";\n\t\tdata[9][0]=\"Rain\";\n\t\tdata[10][0]=\"Sunny\";\n\t\tdata[11][0]=\"Overcast\";\n\t\tdata[12][0]=\"Overcast\";\n\t\tdata[13][0]=\"Rain\";\n\t\t\n\t\tdata[0][1]=\"Hot\";\n\t\tdata[1][1]=\"Hot\";\n\t\tdata[2][1]=\"Hot\";\n\t\tdata[3][1]=\"Mild\";\n\t\tdata[4][1]=\"Cool\";\n\t\tdata[5][1]=\"Cool\";\n\t\tdata[6][1]=\"Cool\";\n\t\tdata[7][1]=\"Mild\";\n\t\tdata[8][1]=\"Cool\";\n\t\tdata[9][1]=\"Mild\";\n\t\tdata[10][1]=\"Mild\";\n\t\tdata[11][1]=\"Mild\";\n\t\tdata[12][1]=\"Hot\";\n\t\tdata[13][1]=\"Mild\";\n\t\n\t\tdata[0][2]=\"High\";\n\t\tdata[1][2]=\"High\";\n\t\tdata[2][2]=\"High\";\n\t\tdata[3][2]=\"High\";\n\t\tdata[4][2]=\"Normal\";\n\t\tdata[5][2]=\"Normal\";\n\t\tdata[6][2]=\"Normal\";\n\t\tdata[7][2]=\"High\";\n\t\tdata[8][2]=\"Normal\";\n\t\tdata[9][2]=\"Normal\";\n\t\tdata[10][2]=\"Normal\";\n\t\tdata[11][2]=\"High\";\n\t\tdata[12][2]=\"Normal\";\n\t\tdata[13][2]=\"High\";\n\t\t\n\t\tdata[0][3]=\"Weak\";\n\t\tdata[1][3]=\"Strong\";\n\t\tdata[2][3]=\"Weak\";\n\t\tdata[3][3]=\"Weak\";\n\t\tdata[4][3]=\"Weak\";\n\t\tdata[5][3]=\"Strong\";\n\t\tdata[6][3]=\"Strong\";\n\t\tdata[7][3]=\"Weak\";\n\t\tdata[8][3]=\"Weak\";\n\t\tdata[9][3]=\"Weak\";\n\t\tdata[10][3]=\"Strong\";\n\t\tdata[11][3]=\"Strong\";\n\t\tdata[12][3]=\"Weak\";\n\t\tdata[13][3]=\"Strong\";\n\t\t\n\t\tdata[0][4]=\"No\";\n\t\tdata[1][4]=\"No\";\n\t\tdata[2][4]=\"Yes\";\n\t\tdata[3][4]=\"Yes\";\n\t\tdata[4][4]=\"Yes\";\n\t\tdata[5][4]=\"No\";\n\t\tdata[6][4]=\"Yes\";\n\t\tdata[7][4]=\"No\";\n\t\tdata[8][4]=\"Yes\";\n\t\tdata[9][4]=\"Yes\";\n\t\tdata[10][4]=\"Yes\";\n\t\tdata[11][4]=\"Yes\";\n\t\tdata[12][4]=\"Yes\";\n\t\tdata[13][4]=\"No\";\n\t\t\n\n\n\t\tattributeSet = new DiscreteAttribute[5];\n\t\t/**istanzia 5 oggetti di tipo\n\t\tDiscreteAttribute per ciascun attributo assegnando, a ciascuno di\n\t\tessi, l'array dei valori discreti dell'attributo corrispondente.*/\n\t\t\n\t\tString OutlookV[]= {\"Sunny\",\"Rain\",\"Overcast\"};\n\t\tString TemperatureV[]= {\"Hot\",\"Cold\",\"Mild\"};\n\t\tString HumidityV[]={\"High\",\"Normal\"};\n\t\tString WindV[]={\"Weak\",\"Strong\"};\n\t\tString PlayTennisV[]={\"Yes\",\"No\"};\n\t\t\t \n\t\tattributeSet[0] = new DiscreteAttribute(\"Outlook\",0,OutlookV);\t\n\t\tattributeSet[1] = new DiscreteAttribute(\"Temperature\",1,TemperatureV); \n\t\tattributeSet[2] = new DiscreteAttribute(\"Humidity\",2,HumidityV);\n\t\tattributeSet[3] = new DiscreteAttribute(\"Wind\",3,WindV);\n\t\tattributeSet[4] = new DiscreteAttribute(\"PlayTennis\",4,PlayTennisV);\n\t\n\t}", "title": "" }, { "docid": "1bafc8111ac30dc343df88a7319eb15a", "score": "0.54922634", "text": "Dictionary getDataDictionary();", "title": "" }, { "docid": "f533dafd303f6f390d6b66b1f161c53e", "score": "0.54917014", "text": "public List<Grafico> readAll() {\n\n\t\tList<Grafico> Grafico = null;\n\n\t\t// Create an EntityManager\n\t\tEntityManager manager = ENTITY_MANAGER_FACTORY.createEntityManager();\n//\t\tEntityTransaction transaction = null;\n\n\t\ttry {\n\t\t\t// Get a transaction\n//\t\t\ttransaction = manager.getTransaction();\n\t\t\t// Begin the transaction\n//\t\t\ttransaction.begin();\n\n\t\t\t// Get a List of Students\n\t\t\t Query query=manager.createQuery(\"select c FROM Grafico c\");\n\t\t\t Grafico =query.getResultList();\n\t\t\t// Commit the transaction\n//\t\t\ttransaction.commit();\n\t\t} catch (Exception ex) {\n\t\t\t// If there are any exceptions, roll back the changes\n//\t\t\tif (transaction != null) {\n//\t\t\t\ttransaction.rollback();\n//\t\t\t}\n\t\t\t// Print the Exception\n//\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\t// Close the EntityManager\n\t\t\tmanager.close();\n\t\t}\n\t\treturn Grafico;\n\t}", "title": "" }, { "docid": "4f40edcaea8c012204cdb762ee741604", "score": "0.549121", "text": "public List<Entreprise> getAll() throws SQLException, ClassNotFoundException {\n List<Entreprise> entreprises = new ArrayList<>();\n String query = \"SELECT * FROM entreprise, compte WHERE compte.id = entreprise.compteid\";\n try (Connection connection = Dbconn.getConnection();\n PreparedStatement preparedStatement = connection.prepareStatement(query);\n ResultSet resultSet = preparedStatement.executeQuery())\n {\n while (resultSet.next()) {\n //Personne(int id, double solde, String numero, String nom, String prenom)\n entreprises.add(new Entreprise(\n resultSet.getInt(\"id\"),\n resultSet.getString(\"nom\"),\n resultSet.getString(\"numero\"),\n resultSet.getDouble(\"solde\")\n ));\n }\n }\n return entreprises;\n }", "title": "" }, { "docid": "6ead76c21741d5c15ef40bc60e3e6277", "score": "0.5488865", "text": "public TuitionData getData();", "title": "" }, { "docid": "e329787058b415689ed6cf8f77001e49", "score": "0.548661", "text": "@Override\n public void getData() {\n }", "title": "" }, { "docid": "4b653c5bd7283bebc011dfb9a2c21d89", "score": "0.54848003", "text": "public List <Alumno> ObtenerAlumnos() throws SQLException, ClassNotFoundException{\r\n\t\t\r\n\t\tString sql = \"call cursos2.obtenerAlumnos();\"; //llamo al PA creado\r\n\t\tAlumno a;\r\n\t //utilizo el CallableStatement pues voy a ejecutar un proc almacenado\r\n\t CallableStatement st;\r\n\t ResultSet rs=null; //es donde almacenamos los datos consultados, pero no se utiliza al tener param de salida\r\n\t \t\t\t\t\t //el resultadoset \r\n\t List<Alumno> e1 = new ArrayList<>();\r\n\t \r\n\t abrirConexion();\r\n\t //obtener el comando de conexion\r\n\t st= miConexion.prepareCall(sql); \t\r\n\t \r\n \r\n\t //ejecutar el statement\r\n\t rs=st.executeQuery(); \r\n\t \r\n\r\n\t //recorro el result set\r\n\t while(rs.next()) { //rs almacena los registros, y mientras haya registros hacemos esto:\r\n\t \t//instanciamos alumnos con el constructor de los datos a mostrar (estos 3)\r\n\t \t a = new Alumno(rs.getInt(\"id_alumnos\"), //orden atributos segun constructor\r\n\t \t\t\t rs.getString(\"nombre\"),\r\n\t \t\t\t rs.getString(\"apellidos\"),\r\n\t \t\t\t rs.getString(\"id_curso_estudiando\"),\r\n\t \t\t\t rs.getString(\"id_curso_estudiado\"),\r\n\t \t\t\t rs.getString(\"email\"),\r\n\t \t\t\t rs.getString(\"telefono\"),\r\n\t \t\t\t rs.getString(\"observaciones\")\r\n\t \t\t\t );\r\n\t \t\r\n\t \te1.add(a);\r\n\t \r\n\t \t//esto lo pongo para que lo saque por consola y verificar.\r\n\t \tSystem.out.println(rs.getInt(\"id_alumnos\") + \" \" + rs.getString(\"nombre\") +\" \" + rs.getString(\"apellidos\")); ;\r\n\t \t}\r\n\t cerrarConexion(); //cierro conexion\r\n\t\t\treturn e1;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7efc000d1ee69c11adbacb72afd15965", "score": "0.54834443", "text": "public void imprimeInfoInicio(){\n\t\t// IMPRIME ID DO FILOSOFO + INSTANTE QUE COMEÇAM AS GARFADAS (INICIO)\n\t\tEp3.monitor.imprimeMensagem(\"O filosofo \"+id+\" comecou a comer. \"+ Ep3.tempoCorrente());\t\t \t \n\t}", "title": "" }, { "docid": "8494742a6a9506276ce5f782b6d164e1", "score": "0.5475392", "text": "private void regolaValoriIniziali() {\n /* variabili e costanti locali di lavoro */\n int codCamera = 0;\n Date dataPartenza = null;\n boolean continua;\n int codPeriodo;\n Modulo modPeriodo = null;\n Query query;\n Filtro filtro;\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n codPeriodo = this.getCodPeriodo();\n continua = (codPeriodo > 0);\n\n /* recupera modulo Periodo */\n if (continua) {\n modPeriodo = PeriodoModulo.get();\n continua = (modPeriodo != null);\n }// fine del blocco if\n\n /* costruisce la query sul periodo e recupera i dati */\n if (continua) {\n query = new QuerySelezione(modPeriodo);\n filtro = FiltroFactory.codice(modPeriodo, codPeriodo);\n query.addCampo(Periodo.Cam.camera.get());\n query.addCampo(Periodo.Cam.partenzaPrevista.get());\n query.setFiltro(filtro);\n dati = modPeriodo.query().querySelezione(query);\n codCamera = dati.getIntAt(Periodo.Cam.camera.get());\n dataPartenza = dati.getDataAt(Periodo.Cam.partenzaPrevista.get());\n dati.close();\n }// fine del blocco if\n\n /* registra i dati nel dialogo */\n if (continua) {\n this.setCodCamera(codCamera);\n this.setDataPartenza(dataPartenza);\n }// fine del blocco if\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "title": "" }, { "docid": "346b81a05d9ced3fcf05a89657cc2f90", "score": "0.54719645", "text": "public void loadData() throws VisADException, RemoteException {}", "title": "" }, { "docid": "737a1a6f0ea4453d182d48499c694a11", "score": "0.54656106", "text": "public interface SrvGeneracionDinamicaService\n{\n /**\n * <p>\n * Este metodo devuelve el ODE generado el dia que se le pasa.\n * Consulta a la BD para obtener los datos necesarios del contenido\n * seleccionado.\n * </p>\n */\n public es.pode.contenidos.negocio.generacionDinamica.servicio.ContenidoODEVO obtenODEDiario(java.util.Date fecha);\n\n /**\n * <p>\n * Este metodo se encarga de generar el ODE diario que se hace\n * publico. Genera un ODE para el dia actual y lo inserta en la\n * BBDD.\n * </p>\n * <p>\n * La generacion de un ODE como contenido de este tipo se divide en\n * dos fases:\n * </p>\n * <p>\n * - Obtencion del ODE candidato consultando al indice.\n * </p>\n * <p>\n * - Obtencion de la imagen que representa al ODE copiandola a un\n * directorio publico para el servidor.\n * </p>\n */\n public void generaODEDiario();\n\n}", "title": "" }, { "docid": "27135ed1687bb3447a2c6afbf000c5f7", "score": "0.5450288", "text": "public Object getData(int num_canal, int primero, int ultimo) {\n float[] tmp = new float[ultimo - primero + 1];\n for (int i = 0; i < tmp.length; i++) {\n tmp[i] = data[mapChannelToSignal[num_canal]][primero + i];\n }\n return tmp;\n }", "title": "" } ]
a0a83c9f37406502f1ffcb08b207827c
Creates an empty TextString.
[ { "docid": "cf964756bf001f8300ba61bd4cb40fb9", "score": "0.6999263", "text": "public TextString() {\n this((BusinessObject) null);\n }", "title": "" } ]
[ { "docid": "a14a9740456917c4313d2090e4313be6", "score": "0.7335656", "text": "public static String createString() {\n\t\treturn \"\";\n\t\t\n\t}", "title": "" }, { "docid": "c04630a2fd815f192a0c98ab62bda2db", "score": "0.72827256", "text": "public TextComponent() {\n\t\tthis(\"\");\n\t}", "title": "" }, { "docid": "226e6df10bb7e7002735d9d08a4be13b", "score": "0.7081704", "text": "public String() {\n value = new char[0];\n offset = 0;\n count = 0;\n }", "title": "" }, { "docid": "cf37cb9e18cda07b418a1d9df4ea415b", "score": "0.6963315", "text": "public String() {\n value = new char[0];\n }", "title": "" }, { "docid": "74923934a1fe1d84bd1b117e2636c247", "score": "0.6875286", "text": "public XMLTextImpl() {\n super();\n initText();\n setValue(\"\");\n }", "title": "" }, { "docid": "53deba68eb313fbe96a95ca98e45a766", "score": "0.67301184", "text": "public Text NullText() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "54d68a3fae3b79c86e378600a8716991", "score": "0.6646034", "text": "public Builder clearText() {\n bitField0_ = (bitField0_ & ~0x00000008);\n text_ = getDefaultInstance().getText();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9c2eedd8e41e278462596be71b8f286d", "score": "0.6633158", "text": "public Builder clearText() {\n bitField0_ = (bitField0_ & ~0x00000002);\n text_ = getDefaultInstance().getText();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9c2eedd8e41e278462596be71b8f286d", "score": "0.663313", "text": "public Builder clearText() {\n bitField0_ = (bitField0_ & ~0x00000002);\n text_ = getDefaultInstance().getText();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7a326f636655b28eb4f180ceab45b504", "score": "0.6611857", "text": "Text createText();", "title": "" }, { "docid": "6d703be7f708bf25a2d7f99eb4875dbc", "score": "0.6585633", "text": "public PdfString() {\n super(PdfObjectType.STRING);\n string = \"\";\n }", "title": "" }, { "docid": "404d0d00b73e740fb01bdb13c7bd8f0c", "score": "0.65184224", "text": "public static void createEmptyString(ASMCodeFragment code) {\n final int typecode = Record.STRING_TYPE_ID;\n final int statusFlags = Record.STRING_STATUSFLAG;\n\n storeITo(code, STRING_SIZE_TEMP);\n loadIFrom(code, STRING_SIZE_TEMP);\n code.add(PushI, Record.STRING_EXTRA_SIZE);\n code.add(Add); // [... (stringExprList)? total]\n\n createRecord(code, typecode, statusFlags); // [... (stringExprList)?]\n\n // set final 0 bit\n loadIFrom(code, STRING_SIZE_TEMP);\n loadIFrom(code, RECORD_CREATION_TEMPORARY);\n code.add(PushI, Record.STRING_HEADER_SIZE);\n code.add(Add);\n code.add(Add); // [... (stringExprList)? total-1]\n code.add(PushI, 0);\n code.add(StoreC); // [... (stringExprList)?]\n\n loadIFrom(code, STRING_SIZE_TEMP);\n writeIPtrOffset(code, RECORD_CREATION_TEMPORARY,\n Record.STRING_LENGTH_OFFSET); // [...]\n }", "title": "" }, { "docid": "9c6df2332a6e9a36429c6f67f56da8e0", "score": "0.6433886", "text": "public Builder clearText() {\n \n text_ = getDefaultInstance().getText();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9c6df2332a6e9a36429c6f67f56da8e0", "score": "0.6433886", "text": "public Builder clearText() {\n \n text_ = getDefaultInstance().getText();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "20e7615f4508a7aa51602f439eabb130", "score": "0.64245963", "text": "public String asText() {\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "9312e3085d9d6110e7dc65c585152dd1", "score": "0.6308538", "text": "public Builder clearText() {\n\n text_ = getDefaultInstance().getText();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "78c9dd9a60d04fdcececaf3ec6a36e4e", "score": "0.63016653", "text": "public String createString();", "title": "" }, { "docid": "aea54c33a85d0cecaf6b9a19ebae85d2", "score": "0.62256557", "text": "@Override\n public void setEmptyText(CharSequence text) {\n }", "title": "" }, { "docid": "9623ea20c6a9ddf0208c5949c5bae44c", "score": "0.6194005", "text": "public com.psj.common.avro.avdl.Entity.Builder clearText() {\n text = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "title": "" }, { "docid": "fcdaee7afdcf72863d5ea3724187daf5", "score": "0.6184098", "text": "public String empty() {\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "b40dfe94fa6cd26786ba6873058a0915", "score": "0.6175303", "text": "public Text() {\n }", "title": "" }, { "docid": "758cdb8cfc7673a978840e2e0b62fdfd", "score": "0.6162996", "text": "public TextString(final String text) {\n this(null, text);\n }", "title": "" }, { "docid": "0735d6d6fcf52ddc8d5f3268ed4b46c0", "score": "0.6161701", "text": "String createString();", "title": "" }, { "docid": "76a0fabf5e1fafb8e4d4b0aa74a11a0c", "score": "0.6151844", "text": "public StdString1() {\n this(new char[0]);\n }", "title": "" }, { "docid": "8d2af5d628a195ff921f5296c9e9c04a", "score": "0.6066878", "text": "Text() {\n value = \"\";\n //lang = \"\";\n }", "title": "" }, { "docid": "7a3aea5ede0d4c3a2fd751597999bdff", "score": "0.6039051", "text": "Str createStr();", "title": "" }, { "docid": "319e9e2978bdc61db9568834d6cb9f86", "score": "0.60344476", "text": "public static String makeBlankString(int length) {\n char[] buffer = new char[length];\n \n for (int i = 0; i != buffer.length; i++) {\n \tbuffer[i] = ' ';\n }\n \n return new String(buffer);\n }", "title": "" }, { "docid": "b48e0dc153539f9262a0061f742f733d", "score": "0.60293657", "text": "public abstract Terminal generateNull();", "title": "" }, { "docid": "685618ae67fa607320d139594e7e1a33", "score": "0.6020252", "text": "public TextNode() {\n\t\tthis.value = new PactString();\n\t}", "title": "" }, { "docid": "a24c3d9cc067c467a2da9c400db396d4", "score": "0.6020186", "text": "@Koan\n\tpublic void newString() {\n\t\tString string = new String();\n\t\tString empty = \"\";\n\t\tassertEquals(string.equals(empty), __);\n\n\t\t/*\n\t\t\tчитайте английский текст выше:) всегда:) не понимаете английского - гугл в помощь ;)\n\n\t\t\tДополнительно вы должны понимать следуюющее.\n\n\t\t\tnew String() - создание обьекта класса String \"по параметрам передающимся в скобках\" (в нашем случае их нет,\n\t\t\tи будет создана \"пустая строка\")\n\t\t\tНа самом деле это по сути специальный вызов специальново метода (не зря же скобки после имени)\n\t\t\tс именем таким же как у Класса String. Это единственный \"метод\" имя которого начинается с большой буквы (как\n\t\t\tраз потому что совпадает с именем класса)\n\t\t\tТакие методы - называются конструкторы - их задача создание обьекта класса и инициализация каких\n\t\t\tто \"свойств\" (полей/переменных) класса начальными значениями, а так же \"любые другие операции котоые нужны\n\t\t\tпри создании обьекта\" (например чай кофе заварить, и т.д. ;)\n\n\t\t\tесли мы не используем конструктора явно, как здесь:\n\t\t\t String empty = \"\";\n\t\t\tОн все равно будет использован джавой неявно, но каким то хитрым заумным способом:) Оптимизированым.\n\t\t\tИменно поэтому выше не рекомендуется часто использовать \"обычный\" не оптимизированный способ через\n\t\t\tконструктор.\n\n\t\t\tВот это \"умное неявное создание обьекта\" по передаче просто \"значения\" вместо конструктора - называется в\n\t\t\tджаве упаковкой (auto-boxing).\n\t\t\tТо же мы видели раньше в случае:\n\t\t\t Object integerObject = 1; // (1 запаковывается в new Integer(1) но \"хитрым оптимизированным способом\")\n\t\t */\n\t}", "title": "" }, { "docid": "313ee36d054b2415f7ea532a27d34141", "score": "0.6006378", "text": "@Override\n\tpublic Text createValue() {\n\t\treturn new Text();\n\t}", "title": "" }, { "docid": "b2eb65ec737c49f5ecd6a87d2b50a7df", "score": "0.60023296", "text": "public String create( Realty arg0 ) {\n return null;\n }", "title": "" }, { "docid": "ad61a638b430907ac3df9e6c8470c88d", "score": "0.5971127", "text": "XMLText createXmlText();", "title": "" }, { "docid": "c334bc490a8446ebd3b0dfaf8df6accc", "score": "0.5963315", "text": "public Builder clearSomeText() {\n bitField0_ = (bitField0_ & ~0x00000001);\n someText_ = getDefaultInstance().getSomeText();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c334bc490a8446ebd3b0dfaf8df6accc", "score": "0.5963315", "text": "public Builder clearSomeText() {\n bitField0_ = (bitField0_ & ~0x00000001);\n someText_ = getDefaultInstance().getSomeText();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c334bc490a8446ebd3b0dfaf8df6accc", "score": "0.5963315", "text": "public Builder clearSomeText() {\n bitField0_ = (bitField0_ & ~0x00000001);\n someText_ = getDefaultInstance().getSomeText();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c334bc490a8446ebd3b0dfaf8df6accc", "score": "0.5963315", "text": "public Builder clearSomeText() {\n bitField0_ = (bitField0_ & ~0x00000001);\n someText_ = getDefaultInstance().getSomeText();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c334bc490a8446ebd3b0dfaf8df6accc", "score": "0.5963315", "text": "public Builder clearSomeText() {\n bitField0_ = (bitField0_ & ~0x00000001);\n someText_ = getDefaultInstance().getSomeText();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c334bc490a8446ebd3b0dfaf8df6accc", "score": "0.5963315", "text": "public Builder clearSomeText() {\n bitField0_ = (bitField0_ & ~0x00000001);\n someText_ = getDefaultInstance().getSomeText();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "98cbb0d62b1a921e6185f2f427b911c4", "score": "0.5936011", "text": "@SuppressWarnings(\"unused\")\n public StringBuilder(int ignoredCapacity) {\n super(\"\");\n }", "title": "" }, { "docid": "0465e6f4a20dfdeb65bd1daa834dd01c", "score": "0.5924295", "text": "public Builder clearStr() {\n bitField0_ = (bitField0_ & ~0x00000020);\n str_ = getDefaultInstance().getStr();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d684506e38409c4182668a49e818fa87", "score": "0.586631", "text": "private RandomString() {}", "title": "" }, { "docid": "fd57fe965c431bfb7edc46eb001f3c99", "score": "0.58610123", "text": "public TextString(final TextString textString) {\n this(null, textString);\n }", "title": "" }, { "docid": "8843ba9a4510c047bb7f96350551d0da", "score": "0.5833882", "text": "public Builder clearStringData() {\n bitField0_ = (bitField0_ & ~0x00000080);\n stringData_ = getDefaultInstance().getStringData();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "48b3c597ebdb197407ca82febdacdd3a", "score": "0.58316135", "text": "@Override\n\tpublic TextMessage createTextMessage(String text) throws JMSException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "835aa2d93d65fe1b4dd70f0db6c2677a", "score": "0.58299935", "text": "public Builder clearStringValue() {\n bitField0_ = (bitField0_ & ~0x00000008);\n stringValue_ = getDefaultInstance().getStringValue();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3b5db03779fa9850d38db9ddb7c340cb", "score": "0.5807503", "text": "public void reset() {\r\n text = \"\";\r\n }", "title": "" }, { "docid": "a2b780276e89b33f0157bf6913de3675", "score": "0.5780486", "text": "public Paragraph(String text) {\r\n\t\tsuper(\"\");\r\n\t\t_text = text;\r\n\t}", "title": "" }, { "docid": "ea2f637df9440c07016c171e3e46bb8b", "score": "0.5760045", "text": "public static void clearText() {\n ensureText();\n theUI.textPane.clear();\n }", "title": "" }, { "docid": "c34796c752486ae33ba42a9e443714dc", "score": "0.5753397", "text": "public StaticText() {\n super(\"staticText\");\n }", "title": "" }, { "docid": "8a80ef508be4476ec2373f99cb36db65", "score": "0.5711631", "text": "Empty createEmpty();", "title": "" }, { "docid": "d40c93d82649e4cdf6bdc21b217664c4", "score": "0.5691615", "text": "public static SMOutputtable create(String text) {\n return new StringBased(text);\n }", "title": "" }, { "docid": "21af4d26f6cea16a2da40eddced6a4c6", "score": "0.5690573", "text": "public TextView () {\n\t\tthis(newTextView());\n\t}", "title": "" }, { "docid": "b746e14b6582e020b728ffe5409bd28e", "score": "0.5646377", "text": "public void setEmptyText(String emptyText) {\r\n setAttribute(\"emptyText\", emptyText, true, true);\r\n }", "title": "" }, { "docid": "f0c180e05a58986d85e145436f304a3c", "score": "0.56452817", "text": "@Override\n public TextMessage createTextMessage(String text) throws JMSException {\n return new CoolTextMessage(text);\n\n }", "title": "" }, { "docid": "3bb178b9e290caf331869695c2dac253", "score": "0.56422067", "text": "public void nullorempty() {\n String str = \" \";\n System.out.println(str.length());\n System.out.println(str.isEmpty());\n }", "title": "" }, { "docid": "bcb2e3be0ff023f6c4730d4b0c9410a4", "score": "0.5614508", "text": "public static TextNode valueOf(final String v) {\n\t\tif (v == null)\n\t\t\tthrow new NullPointerException();\n\t\tif (v.length() == 0)\n\t\t\treturn EMPTY_STRING_NODE;\n\t\treturn new TextNode(v);\n\t}", "title": "" }, { "docid": "af95eb5bfd0076bb91f8fd9ea901ab98", "score": "0.5610743", "text": "@Override\n\tpublic TextMessage createTextMessage() throws JMSException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4b00e8157e1d8cc169b5cd8d351b53dc", "score": "0.5601836", "text": "private static String wrapNullReturnsEmptyString(String text, int columnSize) {\n return \"\";\n }", "title": "" }, { "docid": "9f404441b5765c3e0de058edeb8183d5", "score": "0.5591704", "text": "public String empty(int n)\n\t{\n\t\tString tempString = \"\";\n\t\tfor (int i=0; i < n; i++)\n\t\t{\n\t\t\ttempString += \"[ ]\";\n\t\t}\n\t\treturn tempString;\n\t}", "title": "" }, { "docid": "b246f728bc43a2100dc7904b0777a1b8", "score": "0.55652523", "text": "public TextNode createTextNode(String data) {\n\t\treturn DOM.getDocument().createTextNode(data);\n\t}", "title": "" }, { "docid": "d42f80d48298cadf991d6aecddd8b1e5", "score": "0.5564909", "text": "public StandaloneRichText() {\n\t\tshort result;\n\t\tif (PlatformUtils.is64Bit()) {\n\t\t\tLongByReference rethCompound = new LongByReference();\n\t\t\tresult = NotesNativeAPI64.get().CompoundTextCreate((long)0, null, rethCompound);\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\t\tlong hCompound = rethCompound.getValue();\n\t\t\tCompoundTextWriter ct = new CompoundTextWriter(hCompound, true);\n\t\t\tNotesGC.__objectCreated(CompoundTextWriter.class, ct);\n\t\t\tm_compoundText = ct;\n\t\t}\n\t\telse {\n\t\t\tIntByReference rethCompound = new IntByReference();\n\t\t\tresult = NotesNativeAPI32.get().CompoundTextCreate((int)0, null, rethCompound);\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\t\tint hCompound = rethCompound.getValue();\n\t\t\tCompoundTextWriter ct = new CompoundTextWriter(hCompound, true);\n\t\t\tNotesGC.__objectCreated(CompoundTextWriter.class, ct);\n\t\t\tm_compoundText = ct;\n\t\t}\n\t}", "title": "" }, { "docid": "f0937d5374b4c59cba2b7a97ab163018", "score": "0.555336", "text": "@org.junit.Test\r\n public void testIsEmptyWithString() {\r\n String param0 = null;\r\n boolean booleanResult = TextUtils.isEmpty(param0);\r\n \r\n // Add assertions\r\n \r\n }", "title": "" }, { "docid": "bfa172fa9af2d6f174626595e3a59cf3", "score": "0.5541975", "text": "public Builder clearStr() {\n if (strBuilder_ == null) {\n if (valueCase_ == 2) {\n valueCase_ = 0;\n value_ = null;\n onChanged();\n }\n } else {\n if (valueCase_ == 2) {\n valueCase_ = 0;\n value_ = null;\n }\n strBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "09f2bb3b918591f76d1a0201994491f2", "score": "0.55405736", "text": "private Document createDocument(String text) {\n PlainDocument doc = new PlainDocument();\n if (text != null) {\n try {\n doc.insertString(0, text, null);\n } catch(BadLocationException e) {\n Exceptions.printStackTrace(e);\n }\n }\n return doc;\n }", "title": "" }, { "docid": "a11939e3d61b09de5ec427d8799680cc", "score": "0.55325866", "text": "public static String traceEmpty(){\r\n\t\treturn StringUtils.center(\"---\", PAD_SIZE, PAD_CHAR);\r\n\t}", "title": "" }, { "docid": "f14f3d6aa4c652c93d296b9c085bbce4", "score": "0.55151445", "text": "@org.junit.Test\r\n public void testIsEmptyWithCharSequence() {\r\n CharSequence param0 = null;\r\n boolean booleanResult = TextUtils.isEmpty(param0);\r\n \r\n // Add assertions\r\n \r\n }", "title": "" }, { "docid": "4b549692651818b9af06f9fa16ebe907", "score": "0.5513631", "text": "public static String getTextString() {\n\t\treturn new String(outputText, 0, getText());\n\t}", "title": "" }, { "docid": "a22f2aac0ac8418fbec63c3a4962b240", "score": "0.5511779", "text": "public Builder clearStringValue() {\n if (kindCase_ == 4) {\n kindCase_ = 0;\n kind_ = null;\n onChanged();\n }\n return this;\n }", "title": "" }, { "docid": "dbc1342204b474c832fcc5c458141afb", "score": "0.5506931", "text": "public static MessagePartData createEmptyMessagePart() {\n return new MessagePartData(\"\");\n }", "title": "" }, { "docid": "a371d9fac45cd230d9dcafbe75b3bb80", "score": "0.55061483", "text": "public static Document createEmpty()\n\t{\n\t\tif (builder == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn builder.newDocument();\n\t}", "title": "" }, { "docid": "9e923cce22555af51b1185c7e77e5fff", "score": "0.55010056", "text": "public static HtmlTemplate create(CharSequence text) {\n return new HtmlTemplate(text.toString());\n }", "title": "" }, { "docid": "af0ca879255be80d27bd7d3e591fee8c", "score": "0.5497035", "text": "public String createWhitespaceString(int length);", "title": "" }, { "docid": "9b02106221baf2a94052bd6d53c395af", "score": "0.5491782", "text": "public String getNonEmptyString() {\n String result;\n do {\n result = getString();\n } while (result.isEmpty());\n return result;\n }", "title": "" }, { "docid": "32d0fa2312091688db76d0d94ea9063d", "score": "0.5483057", "text": "public Builder clearText() {\n if (nodeCase_ == 2) {\n nodeCase_ = 0;\n node_ = null;\n onChanged();\n }\n return this;\n }", "title": "" }, { "docid": "f23306311b1458fc91e97af30dcdc5b0", "score": "0.5480442", "text": "public TextString(final BusinessObject parent) {\n super(parent);\n this.clear();\n }", "title": "" }, { "docid": "331a6c8a6344d696d565b992b4e2aec1", "score": "0.5460426", "text": "public String isEmpty() {\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2db6fa6bbc05bbf7d475756dcf8f70c0", "score": "0.5452546", "text": "public static TextNode valueOf(String v)\n/* */ {\n/* 34 */ if (v == null) {\n/* 35 */ return null;\n/* */ }\n/* 37 */ if (v.length() == 0) {\n/* 38 */ return EMPTY_STRING_NODE;\n/* */ }\n/* 40 */ return new TextNode(v);\n/* */ }", "title": "" }, { "docid": "567172ec6a9c5c3ab0633b3d1ff23d31", "score": "0.54513174", "text": "public Text() {\n super(new GeoText(), FeatureTypeEnum.GEO_TEXT);\n }", "title": "" }, { "docid": "c8c6078c1a161ca94644f3bf214db74d", "score": "0.5448184", "text": "public Builder clearRawStr() {\n if (rawStrBuilder_ == null) {\n if (valueCase_ == 3) {\n valueCase_ = 0;\n value_ = null;\n onChanged();\n }\n } else {\n if (valueCase_ == 3) {\n valueCase_ = 0;\n value_ = null;\n }\n rawStrBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "5f1b85c73840ad2a572896496ce80097", "score": "0.5435012", "text": "T createEmpty();", "title": "" }, { "docid": "22bb915e2ca82218201227e7f2169e64", "score": "0.5431745", "text": "public void resetText() {\n String emptyString = \"\";\n //Sets text in the output, arrival, and end fields to an empty string i.e. resets it\n output.setText(emptyString);\n arrival.setText(emptyString);\n end.setText(emptyString);\n\n }", "title": "" }, { "docid": "0a208f6a6fb1cedbc99e25cd91e0e411", "score": "0.5428919", "text": "public Fst EmptyStringLanguageFst() {\n\t\treturn new Fst(emptyStringLanguageFstNative()) ;\n\t}", "title": "" }, { "docid": "93ae7ebfcddb23e8222fd4b325197d90", "score": "0.5425349", "text": "Word()\r\n\t{\r\n\t\tword = \"\";\r\n\t\tlength = 0;\r\n\t}", "title": "" }, { "docid": "d06cb84da930d9e42f888c59a0d1eeb1", "score": "0.5414062", "text": "private OptionalString() {\n this.value = null;\n }", "title": "" }, { "docid": "0a79b3ff76dbcf58cdd2e650746c06fe", "score": "0.5398416", "text": "public Message() {\r\n this.text = \"\";\r\n this.color = ChatColor.WHITE;\r\n }", "title": "" }, { "docid": "8e9d5042b4e3e7a696dcb8418753d3e0", "score": "0.53920233", "text": "public com.google.blockToBq.generated.AvroBitcoinOutput.Builder clearScriptString() {\n script_string = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "title": "" }, { "docid": "e3f84a9e73d8219d31499f36b43c9ae3", "score": "0.53742725", "text": "@Test\n\tpublic void testCreateTextNullUsername() {\n\t\t//\t\tsets up the information to create a review\n\t\tString description = \"great tutor\";\n\t\tboolean isAllowed = true;\n\t\tString revieweeUsername = null;\n\t\tint coID = service.getAllCourseOfferings().get(0).getCourseOfferingID();\n\n\t\tString error = null;\n\n\t\ttry {\n\t\t\tservice.createText(description, isAllowed, revieweeUsername, coID);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\t// Check that no error occurred\n\t\t\terror = e.getMessage();\n\t\t}\n\t\t// check error\n\t\tassertEquals(ErrorStrings.Invalid_Text_RevieweeUsername, error);\n\n\t\tList<Text> allTexts = service.getAllTexts(); // gets the list of all the text \n\n\t\tassertEquals(0, allTexts.size()); // checks the size of the list\n\t}", "title": "" }, { "docid": "8ef0c5f2491e0752710edb907b3afee5", "score": "0.5365106", "text": "public Builder clearStyledStr() {\n if (styledStrBuilder_ == null) {\n if (valueCase_ == 4) {\n valueCase_ = 0;\n value_ = null;\n onChanged();\n }\n } else {\n if (valueCase_ == 4) {\n valueCase_ = 0;\n value_ = null;\n }\n styledStrBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "d318136c0f2a1598a3449c048543417f", "score": "0.5338812", "text": "public XMLTextImpl(String v) {\n super();\n initText();\n setValue(v);\n }", "title": "" }, { "docid": "b0ce88d17499dfb5a83dbbf4e0b56fe0", "score": "0.5334366", "text": "public AttributeTextType buildUnchecked() {\n return new AttributeTextTypeImpl();\n }", "title": "" }, { "docid": "83652095c3a35e2295d909490d790d6f", "score": "0.53167367", "text": "@Test(expected = DirectException.class)\n public void willThrowExceptionWhenTextIsMissing() throws IOException {\n MimeMessageBuilder testBuilder = getBuilder().text(null);\n testBuilder.build(); \n }", "title": "" }, { "docid": "cccffe25b02ffed4b4ecff36303a1915", "score": "0.53152496", "text": "private Strings() {\n\t}", "title": "" }, { "docid": "d2b89bf498794ae1631ae7d0eb475e92", "score": "0.52960956", "text": "public void cleanTextView() {\n TextView textView = new TextView(this);\n textView.setTextSize(40);\n textView.setText(\"\");\n\n setContentView(textView);\n }", "title": "" }, { "docid": "5dcd638b2d454314b5ffb8fb323dced4", "score": "0.528675", "text": "public String changToNull() {\n this.text = null;\n return null;\n }", "title": "" }, { "docid": "c4386f136d480d91fdacacb96c0b24d3", "score": "0.5286456", "text": "public TextInput() {\n initialize(\"\");\n }", "title": "" }, { "docid": "8f65607d885ea3c663b58d8bafb24c42", "score": "0.52864134", "text": "@Override\n\tpublic String getText() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "662e1db424ef322bf42e9fbaac0cf7f3", "score": "0.5280888", "text": "public String emptyStringIfNull(String s) {\n \tif (s != null ) {\n \t\treturn s;\n \t} else {\n \t\treturn \"\";\n \t}\n }", "title": "" }, { "docid": "1eee72040a5ed4afbc9fd71fd9236b41", "score": "0.52804387", "text": "public QueryString() {\n this(StringUtils.EMPTY);\n }", "title": "" }, { "docid": "5cef9bc4501a462875a4ae19f00294aa", "score": "0.527438", "text": "public String getMessageTextStr() {\n return emptyStringIfNull(messageTextStr);\n }", "title": "" } ]
2b80b22b08b0164676b5041996b0b5e5
runs preset code when new item is selected
[ { "docid": "64de9b1ef2459453cb609e5a4c9bf34c", "score": "0.0", "text": "void onSelected() {\n if(this.doThis != null) {\n this.doThis.onSelected(this);\n }\n }", "title": "" } ]
[ { "docid": "4297b9e10ca52cdc3472e83189818534", "score": "0.6720783", "text": "@Override\r\n\tpublic void selectedItem(Item item) {\n\t\t\r\n\t}", "title": "" }, { "docid": "d9403187555627f027a51b29a927b981", "score": "0.670367", "text": "public void trigger()\n {\n //add item to players inventory\n //I believe we could just give the player an inventory\n \n \n Inventory.addItem(new Item(name, descriptionItem, imagePath, roomNumber, eventNumber)); //creates an item and adds it to players inventory\n Game.displayText(\"\\nYou pick up the \"+name);\n enabled = false; //makes this event not enabled so it will disapear from dropdown list\n Game.updateItems(this.name);\n \n }", "title": "" }, { "docid": "e33f36407c649bef75441918ce5c5f98", "score": "0.65389925", "text": "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n pos=arg2;\n add();\n\n }", "title": "" }, { "docid": "0c659d0f595898e63c48222c7ec8a9af", "score": "0.64446306", "text": "@Command\r\n public void newItem() {\r\n selected = new Rank(\"new\", 100);\r\n openEditor();\r\n }", "title": "" }, { "docid": "5dad98220424b06b46c658ea2d3418be", "score": "0.6344815", "text": "public void pickUpItem(Item item){\n // Do something funny :D\n }", "title": "" }, { "docid": "1967c962c583bc4716d5d2b1028ac7f7", "score": "0.6315965", "text": "private void selectItem(SongItem item) {\n mSelectedItemsRepository.addItem(item.id, mItemType);\n }", "title": "" }, { "docid": "5eff3d249da3b9c327ef555d155c597c", "score": "0.6307178", "text": "protected void useSelected() {\n\t\tif (getSelected() instanceof ItemPickup){\r\n\t\t\t((ItemPickup)getSelected()).use(getInventory(), getInfo());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f51ffca3c51ae70f8d99b11b9e9ddef3", "score": "0.62581", "text": "@Override\n\tpublic void selected() {\n\t\t\n\t}", "title": "" }, { "docid": "65c952289dfe95d1947c51bb1d6390e3", "score": "0.6257769", "text": "private void doSelectionChanged()\n {\n modified = true;\n }", "title": "" }, { "docid": "266c55a325c6430bb6c812f856997d73", "score": "0.62534606", "text": "protected void viewSelectedItem() { }", "title": "" }, { "docid": "57f5caef4402cc8ce13e81561eaa9e43", "score": "0.6197574", "text": "@Override\r\n\tpublic void pickUp() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d8b6f79ef38f471b6d4d864e2ea6b509", "score": "0.61670804", "text": "public void handleDemoSelected() { }", "title": "" }, { "docid": "f158ce70a8fadd04e2a223604db0a5f7", "score": "0.6162516", "text": "protected void manageSelectedBox()\r\n\t\t{\r\n\t\tfor(OptionLine o : myOptionList)\r\n\t\t\t{\r\n\t\t\tif(o.getBobox().isSelected())Variables.getAllowedItemsToProcess().add(o.getType());\r\n\t\t\t}\r\n\t\t\r\n\t\tVariables.getLogger().debug(\"The user choosed to process the following items : \");\r\n\t\tfor(itemType type : Variables.getAllowedItemsToProcess())\r\n\t\t\t{\r\n\t\t\tVariables.getLogger().debug(\"- \"+type.name());\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "92155a61095791a1abca208455589978", "score": "0.61583865", "text": "public void run() {\n\t\t\t\t\t\t\tog.setCurrentItem(og.getCurrentItem()+1);\n\t\t\t\t\t\t}", "title": "" }, { "docid": "48005fc56ba6294d2ed4fcac482fc3b4", "score": "0.61150116", "text": "@Override\n public void onSelected() {\n }", "title": "" }, { "docid": "9dbb9fcd6f80e7e0aeaf2e01b04c36f8", "score": "0.6102833", "text": "public void selectAction() {\n\t\tcodeSmells.addListSelectionListener(new ListSelectionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\t\tint index = codeSmells.getSelectedIndex();\n\t\t\t\tString cs = allCodeSmells.get(index);\n\t\t\t\trulesOnDisplay = filterRule(cs);\n\t\t\t\tcreateTable(rulesOnDisplay);\n\t\t\t\tcreateActivedRule(findActiveCodeSmell(rulesOnDisplay));\n\t\t\t}\n\t\t});\n\t\t;\n\t}", "title": "" }, { "docid": "6245983c18ed418ab76ab5cd3c0780ce", "score": "0.609325", "text": "public void pickUpItem(int item) {\n pickUpItem(item, thePlayer);\n }", "title": "" }, { "docid": "90317190417fdd2b3226235185e75d35", "score": "0.60761803", "text": "void setCurrentItem(int item);", "title": "" }, { "docid": "38e10be8f350d11992920adaffd39e7a", "score": "0.60581505", "text": "@Override\n public void itemStateChanged(ItemEvent e) {\n int state = e.getStateChange(); //SELECTED = 1\n if (state == 1 && !snapshotCreator.isActive()) {\n console.append(\"[INFO] \" + new Date() + \" Activating snapshot plugin.\\n\");\n startSnapshotCreator();\n } else {\n console.append(\"[INFO] \" + new Date() + \" Deactivating snapshot plugin.\\n\");\n stopSnapshotCreator();\n }\n }", "title": "" }, { "docid": "fe922472159b37708cac884c56a52a74", "score": "0.605715", "text": "@Override\r\n public void trigger(){\r\n Sound.playSound(SoundEffect.SELECT);\r\n // If the selection is the same, then use the item\r\n if (GameManager.invSelection == selection){\r\n int invSel = GameManager.invSelection - 1;\r\n Item item = Player.getInventory().getItems().get(invSel);\r\n if (!item.isSpell()){\r\n AnimatedTextManager.clear();\r\n HUDManager.displayTypingText(\"Item used.\", HUDManager.width / 2, (int) (HUDManager.height * 0.835), 2, 13, Color.WHITE, true);\r\n }\r\n GameManager.useInventoryItem(selection);\r\n }else{\r\n AnimatedTextManager.clear();\r\n // If not, then set it to the selection\r\n GameManager.invSelection = selection;\r\n int invSel = GameManager.invSelection - 1;\r\n Item item = Player.getInventory().getItems().get(invSel);\r\n HUDManager.displayTypingText(item.getDescription(), HUDManager.width / 2, (int) (HUDManager.height * 0.8), 2, 13, Color.WHITE, true);\r\n // Draw spell description if it's a spell, or usage instructions otherwise\r\n if (Item.isSpell(item)){\r\n HUDManager.displayTypingText(\"Costs \" + item.getManaCost() + \" MP per use.\", HUDManager.width / 2, (int) (HUDManager.height * 0.87), 2, 13, Color.rgb(0,191,255), true);\r\n }else{\r\n HUDManager.displayTypingText(\"Tap again to use.\", HUDManager.width / 2, (int) (HUDManager.height * 0.87), 2, 13, Color.GREEN, true);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "c20615d54f069fc42d14cb089421f98d", "score": "0.6054464", "text": "@Override\n public void onOptionPicked(int index, String item) {\n permitType = item;\n mEtPermitType.setText(permitType);\n }", "title": "" }, { "docid": "f798f69383482d7dfc58b6bb872d526d", "score": "0.60516036", "text": "void InitialItemClicked(String ItemQuestion,String Item_answer);", "title": "" }, { "docid": "de77a077e0d03c25a0692fa989a5694c", "score": "0.60402423", "text": "@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tupdateStartingPopulationSelection();\r\n\t\t\t\t}", "title": "" }, { "docid": "9369a17bf335663369b55c10ab10dcf1", "score": "0.6016088", "text": "@Override\n\t\t public void onItemSelected(AdapterView<?> parent, View view,\n\t\t \t\tint position, long id) {\n\t selectItemPays();\n\t\t \t\n\t\t }", "title": "" }, { "docid": "b4acc3193bbd399e232e5431beb41061", "score": "0.60081524", "text": "public void itemStateChanged(ItemEvent e){\n currentItemSelected = (String)e.getItem();\r\n updateGui((String)e.getItem());\r\n }", "title": "" }, { "docid": "70e2f063f620bb1ee4e89476dad8e0eb", "score": "0.6000109", "text": "private void selectItemUsingSharedPref() {\n Log.d(TAG, \"selectItemUsingSharedPref\");\n\n mSelectedLocationId = getLocationIdFromSharedPref();\n\n Toast.makeText(this, \"Selected id: \" + mSelectedLocationId, Toast.LENGTH_LONG).show();\n\n //after a new location has been selected, we need to update the information that will be passed to\n //the viewpager\n populateContainerInfo();\n\n //start a new fragment with the new location\n loadViewPager(); //Note: we still want to load the view pager even if we just created a new location\n // because, we want the correct view pager to load (blank in this case)\n\n\n TextView textViewLocName = (TextView) findViewById(R.id.text_view_location_name);\n textViewLocName.setText(mSelectedLocName);\n textViewLocName.setTypeface(tf);\n }", "title": "" }, { "docid": "928eba4fd2f1b6b4a7d3bcd441524297", "score": "0.5995351", "text": "@Override\n public void onSelected() {\n\n\n\n }", "title": "" }, { "docid": "6d7c69bf5f57f6307aea9aa020eade15", "score": "0.5972762", "text": "public void comboBoxitemStateChanged(ItemEvent e) {\n if (e.getStateChange() == ItemEvent.SELECTED) {\n System.out.println(\"buscando precio (comboBoxitemStateChanged)\");\n this.actualizarPrecioPack();\n }\n}", "title": "" }, { "docid": "771d93871cfc559777b09600b1a736c9", "score": "0.59703857", "text": "@Override\r\n public void onItemPicked(int index, String item) {\n releaseFactoringsubmitEtArea.setText(item);\r\n id_area = array1_arear[index];\r\n getSecondeCountryList();\r\n }", "title": "" }, { "docid": "13019f131bf7c4a9845bb8c1282425ca", "score": "0.5961435", "text": "private void btnPickCustomized_click(ActionEvent e) {\n controler.openPickCustomizedFrame(this, currentPlayer);\n endPickOption();\n }", "title": "" }, { "docid": "248f51970d09c2bf3c5a2fece316ef78", "score": "0.59606797", "text": "public void _selectItem() {\n requiredMethod(\"addItems()\") ;\n\n boolean result = true ;\n oObj.selectItem(\"Item3\", true) ;\n\n tRes.tested(\"selectItem()\", result) ;\n }", "title": "" }, { "docid": "041575fb8eb1e7c2280c58fc377b8543", "score": "0.59535635", "text": "@UiHandler(\"createQuickLaunchButton\")\n void onCreateQuickLaunchButtonClicked(SelectEvent event) {\n final AppTemplate cleaned = appTemplateUtils.removeEmptyGroupArguments(editorDriver.flush());\n final JobExecution je = law.flushJobExecution();\n fireEvent(new CreateQuickLaunchEvent(cleaned ,je));\n }", "title": "" }, { "docid": "e5619467414f9b154f5e41e3c7de457c", "score": "0.59311247", "text": "public void onChangeSelected(String newTitle){\n movieAdapter.changeSelected(newTitle);\n }", "title": "" }, { "docid": "ec87b6b5e0b283ddb1467418f3982726", "score": "0.59301", "text": "void setSelectedItem(E item);", "title": "" }, { "docid": "c64cf015533bb0b2ce2c96aaafd53925", "score": "0.5923947", "text": "private void handleDownButtonSelection() {\n moveItem(1);\n }", "title": "" }, { "docid": "3b091dfe45a11575f03445b415cec611", "score": "0.59222275", "text": "protected void setup() {\n addListener(new InputListener() {\n @Override\n public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {\n if (getSelectedIndex() < 0 && getItems().size > 0)\n setSelectedIndex(0);\n }\n });\n }", "title": "" }, { "docid": "ec5d031e41bca2624036144eacd5646d", "score": "0.59193075", "text": "@Override\n\t\t\tpublic void onChoiceStarted() {\n\t\t\t\tsuper.onChoiceStarted();\n\t\t\t}", "title": "" }, { "docid": "58c93a51b7242c94a308801b71614664", "score": "0.5897647", "text": "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n spinner_state.setPrompt(\"Lucknow\");\n selected = spinner_state.getSelectedItem().toString();\n System.out.println(selected);\n setid();\n }", "title": "" }, { "docid": "c62de27d859a1fc27630e56780105161", "score": "0.58975816", "text": "public void run() {\n\t\t\t\tselectItemEventRefresh();\r\n\t\t\t}", "title": "" }, { "docid": "ec2466a72ac864eb9dc0c8c144872424", "score": "0.58799", "text": "@Override\n public void selectItem(int index) {\n Intent intent = new Intent(this, CreateItem.class);\n\n // Pack item into the intent\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"item\", _storageUnit.get_items().get(index));\n intent.putExtras(bundle);\n intent.putExtra(\"index\", index);\n\n // Start the item edit activity\n startActivityForResult(intent, 2);\n }", "title": "" }, { "docid": "bb4ad524f9ae61f1046435821b049888", "score": "0.58612674", "text": "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsetCurrentItem();\n\t\t}", "title": "" }, { "docid": "ea62fc7f35bd9e6346fc599275242b4a", "score": "0.5848588", "text": "@Override\n\tpublic void selecionar() {\n\t\t\n\t}", "title": "" }, { "docid": "dc31fb11b3814a797f31c8a38396d96a", "score": "0.58403003", "text": "public void itemSelected() {\n this.setBackgroundColor(SELECTED_BG_COLOR);\n\n itemName.setTextColor(SELECTED_COLOR);\n itemName.setTextSize(TypedValue.COMPLEX_UNIT_SP, SELECTED_TEXT_SIZE);\n\n itemCheck.setColorFilter(SELECTED_COLOR);\n itemCheck.requestLayout();\n itemCheck.getLayoutParams().height = Math.round(Helper.getDpiToPix(getContext()) * SELECTED_IMG_SIZE);\n itemCheck.getLayoutParams().width = Math.round(Helper.getDpiToPix(getContext()) * SELECTED_IMG_SIZE);\n }", "title": "" }, { "docid": "c25852e9574ea85e5572752665300a8b", "score": "0.58401096", "text": "public void pickUp() {\n this.isPickedUp = true;\n }", "title": "" }, { "docid": "953b3f6a175502d6735f1d3bb8ab51f3", "score": "0.582643", "text": "public void handleAddButtonSelected() {\n\n\t\tif (getCandidateElementsViewer().getSelection() instanceof StructuredSelection) {\n\t\t\tStructuredSelection selection = (StructuredSelection) getCandidateElementsViewer()\n\t\t\t\t\t.getSelection();\n\n\t\t\texecuteAddCommand(selection.toList());\n\n\t\t\trefresh();\n\t\t}\n\t}", "title": "" }, { "docid": "0d1145a214e136bbc1e1556341f61d98", "score": "0.58220667", "text": "@Override\r\n\t\t\tpublic void widgetDefaultSelected( SelectionEvent e ) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "4a19a680b0a7e5fd2190e5d6956e2997", "score": "0.58218133", "text": "protected void editSelectedItem()\n\t{\n\t\tint selectedIndex = table.getSelectionIndex();\n\t\tTrackedFeatureType feature;\n\t\t\n\t\tif(selectedIndex != -1)\n\t\t{\n\t\t\tfeature = processFeature.getFeatureTypeByID(Integer.parseInt(table.getItem(selectedIndex).getText(0)));\n\t\t\tif(feature != null)\n\t\t\t{\n\t\t\t\tComposite editFeatureScreen = SwitchScreen.getContentContainer();\n\t\t\t\tnew UpdateTrackableFeatureDrawer(editFeatureScreen, feature);\n\t\t\t\tSwitchScreen.switchContent(editFeatureScreen);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a6186be1c7757e88b323b4c4ef64e844", "score": "0.5821533", "text": "@FXML\r\n\tprivate void onChangeAutoEvaluatorClick(ActionEvent event) { // When click on replace the automatic appointed\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// evaluator\r\n\t\tfillCmbEmployees();\r\n\t\tlblId.setVisible(false);\r\n\t\thlReplace.setVisible(false);\r\n\t\tlblSubTitle.setText(\"Pick new Evaluator from the list below:\");\r\n\t}", "title": "" }, { "docid": "6845788be00e3be9fa095893a5e8ef32", "score": "0.5817674", "text": "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t\n\t\t\t\tif(position<patchParamsLength){\n\t\t\t\t\tAddActivity.this.restauAdded = true;\n\t\t\t\t\tAddActivity.this.restauStr = \"\";\n\t\t\t\t\tAddActivity.this.et_add_meal.setEnabled(false);\n\t\t\t\t\tAddActivity.this.et_add_restau.setVisibility(View.VISIBLE);\n\t\t\t\t}else{\n\t\t\t\t\tAddActivity.this.restauAdded = false;\n\t\t\t\t\tAddActivity.this.restauStr = restauStrs[position];\n\t\t\t\t\tAddActivity.this.et_add_restau.setText(\"\");\n\t\t\t\t\tAddActivity.this.et_add_restau.setVisibility(View.GONE);\n\t\t\t\t\tAddActivity.this.et_add_meal.setEnabled(true);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "d333882a13514d9be9b17630570bf9c0", "score": "0.5806467", "text": "@Override\n public void modelSelected() {\n }", "title": "" }, { "docid": "c175da01307c0438dcc86e156914c138", "score": "0.5798901", "text": "private void onListItemSelected(ListSelectionEvent ev) {\r\n if(ev.getValueIsAdjusting()) return;\r\n RepositoryModel model = (RepositoryModel)list.getSelectedValue();\r\n if(model != null) loadModel(model);\r\n }", "title": "" }, { "docid": "f0a723f062d1cef09fdafe60e30eb69f", "score": "0.57986313", "text": "@FXML\n\tprotected void onInsaneSelect() {\n\t\tSoundCache.play(\"click\");\n\t\tstart(Difficulty.INSANE);\n\t}", "title": "" }, { "docid": "5745ff8119553daa4c9235b25bf27ad7", "score": "0.57986057", "text": "void onFirstListItem();", "title": "" }, { "docid": "9a27e99293ebe88d928147051c959769", "score": "0.5796884", "text": "public void run() {\n\t\t\t\tselectItemRefresh();\r\n\t\t\t}", "title": "" }, { "docid": "e717be98d8f1daea347a1b9cd2814fcd", "score": "0.5796776", "text": "@Override\r\n public void onItemSelected(AdapterView<?> parent, View view,\r\n int position, long id) {\n Log.d(TAG, \"onItemSeelceted().\");\r\n }", "title": "" }, { "docid": "29053edd41c9ccb1683b31aed81781f4", "score": "0.5787513", "text": "@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\tselectResults(ui.getSelectedAuthorityName());\n\t}", "title": "" }, { "docid": "7f934e316207513f2ffa7d7cb9f56bae", "score": "0.57869166", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\tint index = myJList.getSelectedIndex(); // get selected index\n\t\t\t\tif (index == -1) { // no selection, so insert at beginning\n\t\t\t\t\tindex = 0;\n\t\t\t\t} else { // add after the selected item\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\n\t\t\t\tObject toBeAdded = myAvailableList.getValue();\n\t\t\t\tmyListModel.insertElementAt(toBeAdded, index);\n\t\t\t\t// Reset the combo box property\n\t\t\t\tmyAvailableValues.remove(toBeAdded);\n\t\t\t\tmyAvailableList = new GUIPropertyListEnumeration(\"\", \"\",\n\t\t\t\t\t\tmyAvailableValues, null, 150);\n\t\t\t\t// if no further attributes available anymore disable \"Add\"\n\t\t\t\t// button\n\t\t\t\tif (myAvailableValues.size() == 0) {\n\t\t\t\t\tmyAddButton.setEnabled(false);\n\t\t\t\t}\n\n\t\t\t\t// Select the new item and make it visible\n\t\t\t\tmyJList.setSelectedIndex(index);\n\t\t\t\tmyJList.ensureIndexIsVisible(index);\n\n\t\t\t\t// redraw this property panel\n\t\t\t\tupdateGUI();\n\n\t\t\t\tif (myTarget != null) {\n\t\t\t\t\t// notify owner of this property if specified\n\t\t\t\t\tmyTarget.updateGUI();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "e9491f536087b89486642e58b7d111ef", "score": "0.57820284", "text": "IItem pickUp(IItem item);", "title": "" }, { "docid": "72cad7732a16d3aec79a09ac94c467bb", "score": "0.5781684", "text": "public void setSelectedItem(Object item)\n {\n }", "title": "" }, { "docid": "d4bd90d88d036dc5f6f9f75e118c029e", "score": "0.5778172", "text": "public abstract void setSelectedItemIdentifier(String itemIdentifier);", "title": "" }, { "docid": "93f1ac5b230c9bf0fd219ee2426af18e", "score": "0.577654", "text": "@Override\n\t\t\tpublic void itemStateChanged(ItemEvent event) {\n\t\t\t\tif(event.getStateChange() == ItemEvent.SELECTED){\n typeTransition(typeComboBox.getSelectedIndex()-1); //修改后\n }\n\t\t\t}", "title": "" }, { "docid": "b0a7e51d5d5410264d92d7d5594cd2e1", "score": "0.5773604", "text": "abstract public void OnMenuItemSelected( Object menuItem );", "title": "" }, { "docid": "75090a75ed8caff08e6039f1c38e4bce", "score": "0.5754399", "text": "public void run() { Try to select the items in the current content viewer of the editor.\n\t\t\t\t\t\t//\n\t\t\t\t\t\tif (currentViewer != null) {\n\t\t\t\t\t\t\tcurrentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "title": "" }, { "docid": "46f3a2bf15e7fd49ffb0f5fc76d33794", "score": "0.5753115", "text": "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "46f3a2bf15e7fd49ffb0f5fc76d33794", "score": "0.5753115", "text": "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "9cb5db4bef3f3701306de267c027f606", "score": "0.5752249", "text": "public void onItemSelected(ItemsClass currentObject);", "title": "" }, { "docid": "0b6bc42fb60640e974e917f6cbbe2398", "score": "0.5750713", "text": "public void select() {\n selected = true;\n }", "title": "" }, { "docid": "38e1dfc09c5a9c602791e7198bc4b20f", "score": "0.5750098", "text": "protected void startListeningForSelectionChanges() {\n\t\tgetSite().getPage().addPostSelectionListener(this);\n\t}", "title": "" }, { "docid": "fe18b26540ab37a00ba143bb1a75c869", "score": "0.573807", "text": "private void select(){\r\n\t\tswitch(stage){\r\n\t\t\t//Menu\r\n\t\t\tcase 0: \r\n\t\t\t\tswitch(currentChoice){\r\n\t\t\t\tcase 0: \r\n\t\t\t\t\tstage = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tstage = 4;\r\n\t\t\t\t\tcurrentChoice = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2: \r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t// New-Load Game\r\n\t\t\tcase 1: \r\n\t\t\t\tswitch(currentChoice){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tstage = 2;\r\n\t\t\t\t\tselectedSave = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tstage = 3;\r\n\t\t\t\t\tcurrentChoice = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tstage = 0;\r\n\t\t\t\t\tcurrentChoice = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t//New Game\r\n\t\t\tcase 2:\r\n\t\t\t\tif(selectedSave!= 3) currentChoice = 1;\r\n\t\t\t\tswitch(currentChoice){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tstage = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\t\r\n\t\t\t\t\tinitNewPlayer(saves[selectedSave].substring(8), selectedSave);\r\n\t\t\t\t\tgm.setState(GameStateManager.CHOOSEDOG, p);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t//Load Game\r\n\t\t\tcase 3:\r\n\t\t\t\tstage = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\tstage = 0;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tinit();\r\n\t}", "title": "" }, { "docid": "b5f4d242808b670bfe756bba04462272", "score": "0.572798", "text": "public void pickUpItem(CollectableItem item){\r\n\t\titems.add(item);\r\n\t}", "title": "" }, { "docid": "1df04f8cf4f07ae46d51040ad7a5c713", "score": "0.5714422", "text": "private void menuItemNewActionPerformed(ActionEvent evt) {\n \n }", "title": "" }, { "docid": "e98b05c0f18badd9b764666e0f956b4c", "score": "0.5712415", "text": "@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "8bf31880de06262f172483241391b8d1", "score": "0.57079935", "text": "void onItemSelected(CustomListItem hub, View v, int position);", "title": "" }, { "docid": "06a299976fac16b27e73591a10e7e773", "score": "0.5706483", "text": "public void selectItem(int position) {\n // update the main content by replacing fragments\n FragmentManager fragmentManager = getSupportFragmentManager();\n Fragment old = fragmentManager.findFragmentById(R.id.content_frame);\n FragmentTransaction trx = fragmentManager.beginTransaction();\n if (old != null) {\n trx.remove(old);\n }\n\n trx.replace(R.id.content_frame, getFragmentForChoice(position))\n .addToBackStack(null) //TODO\n .commit();\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(applications[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "title": "" }, { "docid": "bc8eb52f3bc8444516c42d92c290ebc5", "score": "0.5701969", "text": "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\tchooseNum = arg0;\n\t\t\t\tchooseTextView.setText(arg0 + \"/\" + list.size());\n\t\t\t\tif (mark.equals(\"0\")) {\n\t\t\t\t\tUserInfoUtils.saveUserInfo(getPageContext(),\n\t\t\t\t\t\t\tUserInfoUtils.STUDY_ID, chooseNum + \"\");\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "9fc44a50feeeaa7ed19f35a0d1e8dcc6", "score": "0.5697428", "text": "public void onItemSelected();", "title": "" }, { "docid": "54e9d90d76c4d0e9e7e3bc1a7cf17e19", "score": "0.5697066", "text": "public void pickUpUI()\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint index = -1;\n\t\tdo\n\t\t{\n\t\t\tSystem.out.println(\"Which item would you like to pick up? (-1 if you're done)\");\n\t\t\tcurrentRoom.getInv().display();\n\t\t\tint itemIndex = input.nextInt();\n\t\t\tif (itemIndex >0 && itemIndex < currentRoom.getInv().getSize())\n\t\t\t\tinv.pickUp(currentRoom.getInv(), itemIndex);\n\t\t} while (index >= 0);\n\t}", "title": "" }, { "docid": "cf52ac7a42d94121052de1a6aa086c80", "score": "0.5696476", "text": "public void run() {\n\t\t\t\t\t\tpageview.setCurrentItem(pageview.getCurrentItem()+1);\n\t\t\t\t\t}", "title": "" }, { "docid": "29afa11a040ed78502e67509e20318ce", "score": "0.5696239", "text": "private void newImageHandlerForAdd() {\n\t\tfinal Spinner itemCategory = (Spinner) findViewById(R.id.item_category);\n\t\tString category = (String) itemCategory.getSelectedItem().toString();\n\t\tif (\"\".equals(category) || category.contains(\"-\")) {\n\t\t\tToast.makeText(context, \n\t\t\t\t\tR.string.please_select_category, \n\t\t\t\t\tToast.LENGTH_LONG)\n\t\t\t\t\t.show();\n\t\t\treturn;\n\t\t}\n\n\t\t// Style MUST be chosen\n\t\tfinal Spinner itemStyle = (Spinner) findViewById(R.id.item_style);\n\t\tString style = (String) itemStyle.getSelectedItem().toString();\n\t\tif (\"\".equals(style) || style.contains(\"-\")) {\n\t\t\tToast.makeText(context, \n\t\t\t\t\tR.string.please_select_style, \n\t\t\t\t\tToast.LENGTH_LONG)\n\t\t\t\t\t.show();\n\t\t\treturn;\n\t\t}\n\n\t\t// Color MUST be chosen\n\t\tfinal Spinner itemColor = (Spinner) findViewById(R.id.item_color);\n\t\tString color = (String) itemColor.getSelectedItem().toString();\n\t\tif (\"\".equals(style) || color.contains(\"-\")) {\n\t\t\tToast.makeText(context, \n\t\t\t\t\tR.string.please_select_color, \n\t\t\t\t\tToast.LENGTH_LONG)\n\t\t\t\t\t.show();\n\t\t\treturn;\n\t\t}\n\n\t\t// Material MUST be chosen\n\t\tfinal Spinner itemMaterial = (Spinner) findViewById(R.id.item_material);\n\t\tString material = (String) itemMaterial.getSelectedItem().toString();\n\t\tif (\"\".equals(style) || material.contains(\"-\")) {\n\t\t\tToast.makeText(context, \n\t\t\t\t\tR.string.please_select_material, \n\t\t\t\t\tToast.LENGTH_LONG)\n\t\t\t\t\t.show();\n\t\t\treturn;\n\t\t}\n\n\t\tif (Environment.MEDIA_MOUNTED.equals(Environment\n\t\t\t\t.getExternalStorageState())) {\n\t\t\tlaunchCameraIntentForAdd();\n\t\t} else {\n\t\t\tToast.makeText(context, \n\t\t\t\t\tR.string.edit_item_message_no_external_storage, \n\t\t\t\t\tToast.LENGTH_SHORT)\n\t\t\t\t\t.show();\t\n\t\t}\n\t}", "title": "" }, { "docid": "2c07f757db7ead03d468f4f784cb2763", "score": "0.5687626", "text": "@Override\r\n\tpublic void itemStateChanged(ItemEvent arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "88f16fefb85c314eae1a7ed9e9be533e", "score": "0.568726", "text": "public void pick(String item) {\n Map<String, Integer> choicesMap = getChoices();\n if (getDelegateFromVoter() != null) {\n choicesMap = getDelegateFromVoter().getChoices();\n }\n updateChoiceDictionary(item, choicesMap);\n if (getDelegateFromVoter() != null) {\n setChoices(choicesMap);\n }\n }", "title": "" }, { "docid": "6f2db420a99dab04c81d2e1ebd97969f", "score": "0.5686546", "text": "private void btnCustomize_click(ActionEvent e){\n controler.openCustomizationFrame(currentPlayer);\n\n endPickOption();\n }", "title": "" }, { "docid": "091b6ade5767c4bde02298de44742636", "score": "0.5685692", "text": "protected abstract void listSelected();", "title": "" }, { "docid": "84794c58550ff1f7c64eed8a20fe68b4", "score": "0.5684525", "text": "@Override\r\n\tpublic void itemStateChanged(ItemEvent e) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(algorithmBox.getSelectedIndex() == 1) {\r\n\t\t\tselectedAlgorithm = \"Random\";\r\n\t\t}\r\n\t\telse if(algorithmBox.getSelectedIndex() == 2) {\r\n\t\t\tselectedAlgorithm = \"DFS\";\r\n\t\t}\r\n\t\telse if(algorithmBox.getSelectedIndex() == 3) {\r\n\t\t\tselectedAlgorithm = \"BFS\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tselectedAlgorithm = \"None\";\r\n\t\t}\r\n\t\t\r\n\r\n\t\t\r\n\t}", "title": "" }, { "docid": "fd3b7f5cb41d57be3ba5ac2c3117089b", "score": "0.568368", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_insert_dummy_data:\n insertDummyItem();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "114d67f00c7f009f9f1ca20e394db7e7", "score": "0.5681245", "text": "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (option == position || region == Region.LIP)\n return;\n\n option = position;\n updateCosmeticContent(region, option);\n }", "title": "" }, { "docid": "5cd79add098fb48567cb9dedf9df87d3", "score": "0.5679284", "text": "private void addPressed() {\n setPresentsDefaultValue(false);\n V input = getNewInputObject();\n\n if (input != null && !items.contains(input)) {\n int index = list.getSelectionIndex();\n if (index >= 0) {\n \titems.add(index+1, input);\n\t\t\t} else {\n\t\t\t\titems.add(0, input);\n\t\t\t}\n tableViewer.refresh();\n selectionChanged();\n }\n }", "title": "" }, { "docid": "94a3a26e3b5e9bfaf26d05d1d89b1dbd", "score": "0.56689435", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n\n\n mCallback.onItemPicked(view);\n\n }", "title": "" }, { "docid": "383215337524dc7aab1e803520b3319d", "score": "0.5667509", "text": "@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString res = \"add \" \n\t\t\t\t\t\t+ textSymbol.getText() + \" \" \n\t\t\t\t\t\t+ textType.getText() + \" \" \n\t\t\t\t\t\t+ textPriceMin.getText() + \" \" \n\t\t\t\t\t\t+ textPriceMax.getText() + \" \" \n\t\t\t\t\t\t+ textQuantity.getText();\n\t\t\t\tSimulatorEngine.getInstance().addOrder(res);\n\t\t\t}", "title": "" }, { "docid": "da0942d0feeab355214c94723b40377c", "score": "0.5665862", "text": "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t\t}", "title": "" }, { "docid": "da0942d0feeab355214c94723b40377c", "score": "0.5665862", "text": "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t\t}", "title": "" }, { "docid": "3100aabbea7f83adac99c4792e6f2078", "score": "0.5663783", "text": "public void handleTestSelected(Test test);", "title": "" }, { "docid": "0cae9b955d3ddba2ac9655e7a101b611", "score": "0.5661475", "text": "@Override\r\n\tpublic void itemStateChanged(ItemEvent e) {\n\r\n\t}", "title": "" }, { "docid": "fb8716eaffead7cd24ba30d995142df4", "score": "0.5658214", "text": "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n if (bitmapMain == null) {\n return false;\n }\n int id = item.getItemId();\n switch (id) {\n case R.id.action_insert_text:\n showDialogSave(bitmapTemp, this, InterfaceClass.InsertTextClass);\n break;\n case R.id.action_insert_frame:\n showDialogSave(bitmapTemp, this, InterfaceClass.InsertFrameClass);\n break;\n case R.id.action_cut_image:\n showDialogSave(bitmapTemp, this, InterfaceClass.CutImageClass);\n break;\n }\n return true;\n }", "title": "" }, { "docid": "10fe429aeb07b8b481ed27cef02b3112", "score": "0.56569296", "text": "@Override\n\tpublic void menuSelected(MenuEvent arg0) {\n\n\t}", "title": "" }, { "docid": "914d7af1a3208a350b0334e8e9c62928", "score": "0.565043", "text": "public void onPickup(Player p, Item i);", "title": "" }, { "docid": "5db2e661c2fab4b1c22ced66115ab09a", "score": "0.5647126", "text": "@Override\n\tpublic void itemStateChanged(ItemEvent arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "b402fb7575a2ae7a098b6804e43cc312", "score": "0.5639501", "text": "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "2894bac0b91fbb71c8b87408af27d5fd", "score": "0.56344724", "text": "private int doChoosenItem(int item) {\n switch (item) {\n case 1:\n printSoldiers();\n break;\n case 2:\n printOfficers();\n break;\n case 3:\n printGuns();\n break;\n case 4:\n takeMarksmanshipUnitExam();\n break;\n case 5:\n return 0;\n }\n return 1;\n }", "title": "" }, { "docid": "63f0ce9142a96c69ecc53cd5ae66d079", "score": "0.5632383", "text": "@Override\r\n public void doSelected(Object obj)\r\n {\n\r\n }", "title": "" }, { "docid": "42408b5b785a4883b008689c8311bda2", "score": "0.5631088", "text": "@FXML\r\n private void modifyOutsourcedSelected() throws Exception {\r\n\r\n modifyPartSwitchLabel.setText(\"Company Name\");\r\n modifyPartSwitchTextField.setPromptText(\"Comp Nm\");\r\n modifyInHouse = false;\r\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "e009ae199188b0724bd8ab3895218237", "score": "0.0", "text": "@Override\r\n\t\t\tpublic void onTouchingLetterChanged(String s) {\n\t\t\t\tint position = contactAdapter.getPositionForSelection(s.charAt(0));\r\n\r\n\t\t\t\tif (position != -1) {\r\n\t\t\t\t\tcustomer_contact_list.setSelection(position);\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" } ]
[ { "docid": "da34ed11fe7c5649b3cd0bdad6dca5df", "score": "0.7115143", "text": "@Override\n\t\tpublic void 비행() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "99cfe01c5035e9a9ca6dafada0e4a005", "score": "0.67343336", "text": "@Override\r\n\tpublic void caminar() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "93de84d0e77a5e19e12e7d0655c39af3", "score": "0.67339545", "text": "@Override\n\tpublic void agit() {\n\t\t\n\t}", "title": "" }, { "docid": "f8d94fd3a365ff0f8b293a42b581cc33", "score": "0.6584661", "text": "@Override\r\n public void caminar() {\r\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "b256767990570c27f4f2479e85bd7f03", "score": "0.64964134", "text": "@Override\r\n\tpublic void otkazi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2104f557428f6e269f61b8f05a73cc43", "score": "0.6485333", "text": "@Override\n\tpublic void repare() {\n\t\t\n\t}", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.64569044", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "0a93ae79a871bc2bb8787223c8b043a4", "score": "0.6412003", "text": "@Override\n\tpublic void interogare() {\n\t\t\n\t}", "title": "" }, { "docid": "16c30d73c1df796c0e31e93eb0f6e02e", "score": "0.6404783", "text": "@Override\r\n\tpublic void atacar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2e18c1d20c67735ba2db1c70042e02d7", "score": "0.6337855", "text": "@Override\r\n\tpublic void embalar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.626611", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "289f89533edfafac14fcf50ce6d1dcfb", "score": "0.62031794", "text": "@Override\n\t\t\t\t\tpublic void accionSi() {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.6193997", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "038aba0c2804848e5fbdbafd6a794e97", "score": "0.6188789", "text": "@Override\r\n\tpublic void genererFacture() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.61519784", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.60600275", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.60484", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.60484", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.60443264", "text": "protected void method_3848() {}", "title": "" }, { "docid": "63d27d2836275ed0fc981c7cfae8e737", "score": "0.6031051", "text": "@Override\n\tprotected void init(){\n\t}", "title": "" }, { "docid": "d49d17272b1c32563649e99191745398", "score": "0.6026582", "text": "@Override\n\tpublic void inchide() {\n\t\t\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.6023586", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "85245b1c9026959162e61e0473f9cf29", "score": "0.5962836", "text": "@Override\n\t\t\t\t\tpublic void accionNo() {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "f0512ddbeb7af0b9d9405114f8362f5d", "score": "0.59361994", "text": "private void recupererPliPrecedent() {\n\t}", "title": "" }, { "docid": "66f76462eb0121053379289c39650179", "score": "0.5929797", "text": "public void mo19333b() {\n }", "title": "" }, { "docid": "2d61391fe8770661f25917f3770f2a26", "score": "0.592505", "text": "@Override\n\t\tpublic void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "da5f753a7cd33da8d5581d14337c059f", "score": "0.5909544", "text": "@Override\n\tpublic void tauchen() {\n\t\t\n\t}", "title": "" }, { "docid": "21e83e0c6fdd60581bc05b6e8f682d1e", "score": "0.59009665", "text": "public void mo7875c() {\n }", "title": "" }, { "docid": "cad86041007c052466e6525bc7dcd8c8", "score": "0.5898701", "text": "@Override\r\n\tpublic void trasation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cfd10238a4f026fdd414282790c4920f", "score": "0.58981574", "text": "@Override\r\n\t\tprotected void initData() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "5477922fce309be487fa552d27c3bf32", "score": "0.5887271", "text": "public void mo7873a() {\n }", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "69b1247a4afd513b9853da385d6f2d24", "score": "0.5865623", "text": "@Override\n\tpublic void resta() {\n\t\t\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854053", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "c5648e3463d069bbd00252aa57baecf9", "score": "0.58529", "text": "@Override\r\n\r\n\t\t\tpublic void init() {\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t}", "title": "" }, { "docid": "9a2bf99ecbc04ed75ccb3e865d3d8a64", "score": "0.5851984", "text": "@Override\n public void vypisSudy() {\n }", "title": "" }, { "docid": "9a2bf99ecbc04ed75ccb3e865d3d8a64", "score": "0.5851984", "text": "@Override\n public void vypisSudy() {\n }", "title": "" }, { "docid": "2a6c59f221c7c146ab9267197b8cf257", "score": "0.58494717", "text": "@Override\n\tpublic void prnt() {\n\t\t\n\t}", "title": "" }, { "docid": "451aac44b51bc834350309c1b94be619", "score": "0.5846654", "text": "@Override\r\n\tprotected void speichereSonderwuensche() {\n\t\t\r\n\t}", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.5836237", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5820677", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "97c456611a497fb152db478124462615", "score": "0.5805655", "text": "public void mo7874b() {\n }", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "63519e7beede7b06dcebbca99514f5c5", "score": "0.5800136", "text": "@Override\n\tprotected void salirsePorXIzq() {\n\t\t\n\t}", "title": "" }, { "docid": "c60781d66bd146683572dce40076140d", "score": "0.5792193", "text": "private LIDAR() \n\t\t{\n\n\t\t}", "title": "" }, { "docid": "3138943fc1f99b10746b6218fb0522fe", "score": "0.5788738", "text": "@Override\n public int order() {\n return 1;\n }", "title": "" }, { "docid": "f93772ae3050679cb5cad45b34d90052", "score": "0.5785588", "text": "public void mo36368c() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4049f356224496e4636627d70f5c0e9a", "score": "0.5765812", "text": "@Override\n\tpublic void generateData() \n\t{\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "8843ebe8d692b94536f16d5f07fdff4f", "score": "0.57587487", "text": "@Override\n public void update() {\n // TODO Auto-generated method stub\n }", "title": "" }, { "docid": "3013650e7b02771c88bbeb22d93b2660", "score": "0.57571363", "text": "@Override\r\n public String toString(){\n return null;\r\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57416445", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "5485c75c53fb64a169034dd96e00cb59", "score": "0.57348526", "text": "@Override\n public void init() { \n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c8c5ebd68bae88ac49f0df82efdf5eac", "score": "0.5719438", "text": "@Override\n\tprotected void body()\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "5a8ab197ccef743fd48bf5cf5814c8e3", "score": "0.5714109", "text": "public void atacar(){\n\t\t\r\n\t}", "title": "" }, { "docid": "10ec55a5c701bead54e2106675e8d0e2", "score": "0.5702788", "text": "@Override\n\tpublic void somma() {\n\t\t\n\t}", "title": "" }, { "docid": "ad9858643cb51c92112f1a2ed05ea34e", "score": "0.5702442", "text": "public void mo7876d() {\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "cc445ddeaecb385fbe47df8b7c49ffc4", "score": "0.56983995", "text": "@Override\r\n\tpublic void effectuerRemboursement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "57dab2b5051a2a184d855564327c4b1a", "score": "0.5698314", "text": "@Override\n\tpublic void init() \n\t{\n\n\t}", "title": "" }, { "docid": "01841f81ab35e62f2bd0f7128634a0ab", "score": "0.56905705", "text": "@Override\n\tpublic void laufen() {\n\t\t\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5688991", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4dff52b2278f26ec5d11e194ed9cf5a6", "score": "0.5688383", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "e77a68a99f5bd2a047671668b77c1854", "score": "0.567911", "text": "@Override\n public void generate() {\n }", "title": "" }, { "docid": "2a0ef0804fb04e99e4054007df8500da", "score": "0.56778574", "text": "public void mo11098e() {\n }", "title": "" } ]
a2219ead520dcf897774af69aadfd168
Locate the named strategy implementation.
[ { "docid": "7444a2b53548d31085ce9645b2c5bfe6", "score": "0.7168914", "text": "public <T> Class<? extends T> selectStrategyImplementor(Class<T> strategy, String name);", "title": "" } ]
[ { "docid": "a4bee15b35a180f7416ee6352fce739d", "score": "0.657186", "text": "public <T> void registerStrategyImplementor(Class<T> strategy, String name, Class<? extends T> implementation);", "title": "" }, { "docid": "7cb0d5b257af54b7261a241c60437088", "score": "0.653613", "text": "public interface StrategySelector extends Service {\n \t/**\n \t * Registers a named implementor of a particular strategy contract.\n \t *\n \t * @param strategy The strategy contract.\n \t * @param name The registration name\n \t * @param implementation The implementation Class\n \t */\n \tpublic <T> void registerStrategyImplementor(Class<T> strategy, String name, Class<? extends T> implementation);\n \n \t/**\n \t * Un-registers a named implementor of a particular strategy contract. Un-registers all named registrations\n \t * for the given strategy contract naming the given class.\n \t *\n \t * @param strategy The strategy contract.\n \t * @param implementation The implementation Class\n \t */\n \tpublic <T> void unRegisterStrategyImplementor(Class<T> strategy, Class<? extends T> implementation);\n \n \t/**\n \t * Locate the named strategy implementation.\n \t *\n \t * @param strategy The type of strategy to be resolved.\n \t * @param name The name of the strategy to locate; might be either a registered name or the implementation FQN.\n \t *\n \t * @return The named strategy implementation class.\n \t */\n \tpublic <T> Class<? extends T> selectStrategyImplementor(Class<T> strategy, String name);\n \n \t/**\n \t * Resolve strategy instances. See discussion on {@link #resolveDefaultableStrategy}.\n \t * Only difference is that here, the implied default value is {@code null}.\n \t *\n \t * @param strategy The type (interface) of the strategy to be resolved.\n \t * @param strategyReference The reference to the strategy for which we need to resolve an instance.\n \t *\n \t * @return The strategy instance\n \t */\n \tpublic <T> T resolveStrategy(Class<T> strategy, Object strategyReference);\n \n \t/**\n \t * Resolve strategy instances. The incoming reference might be:<ul>\n \t * <li>\n \t * {@code null} - in which case defaultValue is returned.\n \t * </li>\n \t * <li>\n \t * An actual instance of the strategy type - it is returned, as is\n \t * </li>\n \t * <li>\n \t * A reference to the implementation {@link Class} - an instance is created by calling\n \t * {@link Class#newInstance()} (aka, the class's no-arg ctor).\n \t * </li>\n \t * <li>\n \t * The name of the implementation class - First the implementation's {@link Class} reference\n \t * is resolved, and then an instance is created by calling {@link Class#newInstance()}\n \t * </li>\n \t * </ul>\n \t *\n \t * @param strategy The type (interface) of the strategy to be resolved.\n \t * @param strategyReference The reference to the strategy for which we need to resolve an instance.\n \t * @param defaultValue THe default value to use if strategyReference is null\n \t *\n \t * @return The strategy instance\n \t */\n \tpublic <T> T resolveDefaultableStrategy(Class<T> strategy, Object strategyReference, T defaultValue);\n }", "title": "" }, { "docid": "95f7dc3d01abd2492329ed76afc0733d", "score": "0.62448895", "text": "public Implementation getImplementation(String name) {\n return implementations.get(name);\n }", "title": "" }, { "docid": "35deb612842195aa622e6850b12e965f", "score": "0.6223037", "text": "public void explore(String strategy) {\n\t\t\n\t}", "title": "" }, { "docid": "67b8c3bd1bc939739d64631977646299", "score": "0.6200038", "text": "public interface Strategy {\n}", "title": "" }, { "docid": "1a0749c9f9ed89a6452fd47364c1197e", "score": "0.6047333", "text": "public interface StrategyReference {\n\n String STRATEGY_PATH = \"fr.liglab.adele.cream.annotations.entity.ContextProvideStrategy\";\n}", "title": "" }, { "docid": "ad7db1fc48ac2a4427c912f897dd9d0b", "score": "0.59888214", "text": "Strategy createStrategy();", "title": "" }, { "docid": "ad7db1fc48ac2a4427c912f897dd9d0b", "score": "0.59888214", "text": "Strategy createStrategy();", "title": "" }, { "docid": "bf2d42df63c632326a3f4d074ebdfb43", "score": "0.5912722", "text": "public void addStrategy(Strategy strategy) {\n\t\tswitch (strategy) {\n\t\tcase OS_DEFAULT:\n\t\t\tthis.strategies.add(new DesktopProxySearchStrategy());\t\n\t\t\tbreak;\n\t\tcase BROWSER:\n\t\t\tthis.strategies.add(getDefaultBrowserStrategy());\t\n\t\t\tbreak;\n\t\tcase FIREFOX:\n\t\t\tthis.strategies.add(new FirefoxProxySearchStrategy());\t\n\t\t\tbreak;\n\t\tcase IE:\n\t\t\tthis.strategies.add(new IEProxySearchStrategy());\t\n\t\t\tbreak;\n\t\tcase ENV_VAR:\n\t\t\tthis.strategies.add(new EnvProxySearchStrategy());\t\n\t\t\tbreak;\n\t\tcase WIN:\n\t\t\tthis.strategies.add(new WinProxySearchStrategy());\t\n\t\t\tbreak;\n\t\tcase KDE:\n\t\t\tthis.strategies.add(new KdeProxySearchStrategy());\t\n\t\t\tbreak;\n\t\tcase GNOME:\n\t\t\tthis.strategies.add(new GnomeProxySearchStrategy());\t\n\t\t\tbreak;\n\t\tcase JAVA:\n\t\t\tthis.strategies.add(new JavaProxySearchStrategy());\t\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(\"Unknown strategy code!\");\n\t\t}\n\t}", "title": "" }, { "docid": "1b3ace8b511e3ab5e3cfb8518cd4e2cc", "score": "0.5861485", "text": "public String getStrategyName(){\n return strategyName;\n }", "title": "" }, { "docid": "a55d65b42ca23821f361fd6117690ef8", "score": "0.5813405", "text": "public interface Strategy {\n\n void doSomeThing();\n}", "title": "" }, { "docid": "5498f416c664cd382aeffe1e777fdf9b", "score": "0.57555366", "text": "public interface IPathFinderStrategy {\n\t//finds the path\n\tpublic Path returnPath(Path path);\n\t\n}", "title": "" }, { "docid": "33a0144caf3acfd6851202c6c3e03d2a", "score": "0.5740884", "text": "public interface Strategy {\n\t/**\n\t * Returns the name this Strategy has.\n\t * \n\t * @return The name this Strategy has.\n\t */\n\t/*@ pure */public String getName();\n\n\t/**\n\t * Determines a move for the ComputerPlayer this Strategy is assigned to.\n\t * \n\t * @param b\n\t * The Board to make a move on.\n\t * @param d\n\t * The Disc to make a move for.\n\t * @return The move determined by the Strategy.\n\t */\n\t/*@\trequires b != null;\n\t \trequires d == Disc.YELLOW || d == Disc.RED;\n\t */\n\tpublic int determineMove(Board b, Disc d);\n}", "title": "" }, { "docid": "50de400383ad6ab537cfe6203e6f433c", "score": "0.56999034", "text": "public interface Strategy {\n String getModuleInherit();\n\n String getSyntheticModuleExtension();\n\n void processModule(ModuleDef module);\n\n void processResult(TestCase testCase, JUnitResult result);\n }", "title": "" }, { "docid": "de0a02d166b46e7e11d8a8ad15019f4f", "score": "0.56710976", "text": "public static Strategy getInstance(){\n if(strategy == null){\n strategy = new PlaceGroupStrategy();\n }\n return strategy;\n }", "title": "" }, { "docid": "1ef67f0d51cab5d34f0a69fbdb6f919a", "score": "0.5667197", "text": "public Strategy getStrategy() {\n return strategy;\n }", "title": "" }, { "docid": "1ef67f0d51cab5d34f0a69fbdb6f919a", "score": "0.5667197", "text": "public Strategy getStrategy() {\n return strategy;\n }", "title": "" }, { "docid": "de0e19985521aafb02305cd94a9113d8", "score": "0.5630624", "text": "public interface Strategy\n{\n\tStrategy DEFAULT_STRATEGY = new Strategy()\n\t{\n\t\t@Override public void doAction()\n\t\t{\n\t\t}\n\t};\n\n\tvoid doAction();\n}", "title": "" }, { "docid": "ec515d9a25777c142e9cdfcb5ebd9897", "score": "0.55988723", "text": "public interface Strategy {\n void behavior();\n}", "title": "" }, { "docid": "6fed7dfd76f21f19eac48751b695fa11", "score": "0.5597724", "text": "public interface FolderLookupStrategyImplementation {\n\n /**\n * Find an iterable of folders of the requested type. Use the convenience\n * methods on this interface to create iterables of zero or one object\n * efficiently.\n *\n * @param folder The folder type\n * @param query The query, which may contain hints about what folder to\n * choose, such as the file this query is relative to.\n * @return An iterable\n * @throws IOException If something goes wrong\n */\n Iterable<Path> find(Folders folder, FolderQuery query) throws IOException;\n\n /**\n * The name, for logging purposes, such as \"Maven\".\n *\n * @return A name\n */\n String name();\n\n /**\n * Look up implementation of optional interfaces, such as\n * AntlrConfigurationImplementation.\n *\n * @param <T> The type\n * @param type The type\n * @return An instance or null\n */\n default <T> T get(Class<T> type) {\n if (getClass().isInstance(type)) {\n return type.cast(this);\n }\n return null;\n }\n\n /**\n * Convert a file object to a path.\n *\n * @param fo A file object\n * @return A path\n */\n default Path toPath(FileObject fo) {\n if (fo == null) {\n return null;\n }\n File file = FileUtil.toFile(fo);\n if (file != null) {\n return file.toPath();\n }\n return null;\n }\n\n /**\n * Convert a path to a file object; returns null if the path does not exist\n * on disk.\n *\n * @param path A path\n * @return A file obejct or null\n */\n default FileObject toFileObject(Path path) {\n if (path == null) {\n return null;\n }\n return FileUtil.toFileObject(FileUtil.normalizeFile(path.toFile()));\n }\n\n /**\n * Find a file object of the specified name if it exists in the passed\n * directory, returning it as a path.\n *\n * @param dir The folder - if null is passed, null is returned\n * @param name The file name\n * @return A path\n */\n default Path findOne(FileObject dir, String name) {\n if (dir == null) {\n return null;\n }\n FileObject fo = dir.getFileObject(name);\n if (fo == null) {\n return null;\n }\n return toPath(fo);\n }\n\n /**\n * Return either an empty iterable, or if it exists, an iterable with one\n * element - the child fileobject of the passed directory matching the name,\n * as a path.\n *\n * @param dir A directory\n * @param name A complete file name\n * @return An iterable\n */\n default Iterable<Path> findOneIter(FileObject dir, String name) {\n if (dir == null) {\n return empty();\n }\n return iterable(findOne(dir, name));\n }\n\n /**\n * Returns an empty iterable.\n *\n * @param <T> A type\n * @return An iterable\n */\n default <T> Iterable<T> empty() {\n return SingleIterable.empty();\n }\n\n /**\n * Returns an optimized iterable containing a single object, or an empty\n * iterable if null is passed.\n *\n * @param <T> The type\n * @param obj An object\n * @return An iterable\n */\n default <T> Iterable<T> iterable(T obj) {\n return obj == null ? empty() : new SingleIterable(obj);\n }\n\n /**\n * Find an iterable of all direct child file objects of the passed directory\n * which match the passed predicate, as paths.\n *\n * @param dir The directory - if null, returns an empty iterable\n * @param pred A predicate\n * @return An iterable\n * @throws IOException\n */\n default Iterable<Path> scanFor(FileObject dir, Predicate<Path> pred) throws IOException {\n if (dir == null) {\n return empty();\n }\n List<Path> result = null;\n for (FileObject fo : dir.getChildren()) {\n Path p = toPath(fo);\n if (pred.test(p)) {\n if (result == null) {\n result = new ArrayList<>(3);\n }\n result.add(p);\n }\n }\n return result == null ? SingleIterable.empty()\n : result.size() == 1 ? new SingleIterable(result.get(0))\n : result;\n }\n\n /**\n * Find an iterable of all direct child file objects of the passed directory\n * which match the passed predicate, as paths.\n *\n * @param dir The directory - if null, returns an empty iterable\n * @param pred A predicate\n * @return An iterable\n * @throws IOException\n */\n default Iterable<Path> scanFor(Path dir, Predicate<Path> pred) throws IOException {\n if (dir == null) {\n return empty();\n }\n List<Path> result = null;\n try (Stream<Path> all = Files.list(dir)) {\n Iterator<Path> it = all.iterator();\n while (it.hasNext()) {\n Path p = it.next();\n if (pred.test(p)) {\n if (result == null) {\n result = new ArrayList<>(3);\n }\n result.add(p);\n }\n }\n }\n return result == null ? SingleIterable.empty()\n : result.size() == 1 ? new SingleIterable(result.get(0))\n : result;\n }\n\n /**\n * Create a predicate which can filter paths based on them matching an\n * Ant-style glob expression (e.g. <code>**&#47;com&47;*.g4</code>).\n *\n * @param globPattern A glob pattern\n * @param baseDir The base folder - paths that are tested will be\n * relativized against this\n * @return A predicate\n */\n default Predicate<Path> globFilter(String globPattern, Path baseDir) {\n return GlobFilter.create(baseDir, globPattern);\n }\n\n /**\n * Filter an iterable of paths based on them matching an Ant-style glob\n * expression (e.g. <code>**&#47;com&#47;*.g4</code>).\n *\n * @param globPattern A glob pattern\n * @param baseDir The base folder - paths that are tested will be\n * relativized against this\n * @return A predicate\n */\n default Iterable<Path> globFilter(Path baseDir, String globPattern, Iterable<Path> orig) {\n return filter(orig, globFilter(globPattern, baseDir));\n }\n\n /**\n * Filter an Iterable based on a predicate.\n *\n * @param <T> The type\n * @param orig The original filter\n * @param filter A predicate\n * @return An iterable\n */\n default <T> Iterable<T> filter(Iterable<T> orig, Predicate<T> filter) {\n return new FilterIterable<>(orig, filter);\n }\n\n default Iterable<Path> allFiles(Folders type, FileObject relativeTo) {\n List<Path> all = new ArrayList<>();\n Set<Path> seen = new HashSet<>(3);\n Set<String> exts = type.defaultTargetFileExtensions();\n Predicate<Path> filter = p -> {\n for (String ext : exts) {\n boolean result = p.getFileName().toString().endsWith(\".\" + ext);\n if (result) {\n return result;\n }\n }\n return false;\n };\n try {\n for (Path p : find(type, new FolderQuery().relativeTo(toPath(relativeTo)))) {\n if (seen.contains(p)) {\n continue;\n }\n try (Stream<Path> str = Files.walk(p)) {\n str.filter(pth -> {\n return !Files.isDirectory(pth);\n }).filter(filter).forEach(all::add);\n } catch (NoSuchFileException ex) {\n // ok\n } catch (IOException ex) {\n Logger.getLogger(HeuristicFoldersHelperImplementation.class.getName())\n .log(Level.INFO, \"Failed walking \" + p, ex);\n }\n seen.add(p);\n }\n } catch (IOException ex) {\n Logger.getLogger(HeuristicFoldersHelperImplementation.class.getName())\n .log(Level.INFO, \"Failed walking files for \" + type, ex);\n }\n return all;\n }\n\n default Iterable<Path> allFiles(Folders type) {\n List<Path> all = new ArrayList<>();\n Set<Path> seen = new HashSet<>(3);\n Set<String> exts = type.defaultTargetFileExtensions();\n Predicate<Path> filter = p -> {\n for (String ext : exts) {\n boolean result = p.getFileName().toString().endsWith(\".\" + ext);\n if (result) {\n return result;\n }\n }\n return false;\n };\n try {\n for (Path p : find(type, new FolderQuery())) {\n if (seen.contains(p)) {\n continue;\n }\n try (Stream<Path> str = Files.walk(p)) {\n str.filter(pth -> {\n return !Files.isDirectory(pth);\n }).filter(filter).forEach(all::add);\n } catch (NoSuchFileException ex) {\n // ok\n } catch (IOException ex) {\n Logger.getLogger(HeuristicFoldersHelperImplementation.class.getName())\n .log(Level.INFO, \"Failed walking \" + p, ex);\n }\n seen.add(p);\n }\n } catch (IOException ex) {\n Logger.getLogger(HeuristicFoldersHelperImplementation.class.getName())\n .log(Level.INFO, \"Failed walking files for \" + type, ex);\n }\n return all;\n }\n}", "title": "" }, { "docid": "60134d82dc4b1b451c0ce9f5b9be713f", "score": "0.5574865", "text": "public interface ResolverStrategy {\r\n /** To set the class loader property for resolving. */\r\n String PROPERTY_CLASS_LOADER =\r\n \"org.exolab.castor.xml.util.ResolverStrategy.ClassLoader\";\r\n \r\n /** To set the use introspection property for resolving. */\r\n String PROPERTY_USE_INTROSPECTION =\r\n \"org.exolab.castor.xml.util.ResolverStrategy.useIntrospection\";\r\n \r\n /** To set the introspector property for resolving. */\r\n String PROPERTY_INTROSPECTOR =\r\n \"org.exolab.castor.xml.util.ResolverStrategy.Introspector\";\r\n \r\n /** To set the LoadPackageMappings property for resolving. */\r\n String PROPERTY_LOAD_PACKAGE_MAPPINGS =\r\n \"org.exolab.castor.xml.util.ResolverStrategy.LoadPackageMappings\";\r\n \r\n /** To set the mapping loader property for resolving. */\r\n String PROPERTY_MAPPING_LOADER =\r\n \"org.exolab.castor.xml.util.ResolverStrategy.MappingLoader\";\r\n \r\n /**\r\n * To set properties for strategy and/or commands.\r\n * \r\n * @param key name of the property\r\n * @param value value the property is set to\r\n */\r\n void setProperty(final String key, final Object value);\r\n\r\n /**\r\n * Implementes a strategy how a class is resolved into a list of class descriptors.\r\n * \r\n * @param resolverResults to put the resolver reszlts into\r\n * @param className the class to resolve\r\n * @return the ClassDescriptor for the class or null if the class couldn't be resolved\r\n * @throws ResolverException in case that resolving fails fatally\r\n */\r\n ClassDescriptor resolveClass(final ResolverResults resolverResults, final String className)\r\n throws ResolverException;\r\n \r\n /**\r\n * Implementes a strategy how a package is resolved into a list of class descriptors.\r\n * \r\n * @param resolverResults to put the resolver reszlts into\r\n * @param packageName the package to resolve\r\n * @throws ResolverException in case that resolving fails fatally\r\n */\r\n void resolvePackage(ResolverResults resolverResults, String packageName)\r\n throws ResolverException;\r\n\r\n /**\r\n * As a strategy generate one or more class descriptors it needs a place\r\n * to put the results to. This is a minimal interface to give the strategy a\r\n * place where to put generated class descriptors to.\r\n * \r\n * @author <a href=\"mailto:jgrueneis AT gmail DOT com\">Joachim Grueneis</a>\r\n * @version $Revision$\r\n */\r\n public interface ResolverResults {\r\n /**\r\n * Adds a descriptor to this caches maps.<br>\r\n * The descriptor is mapped both with the class name and its XML name.\r\n * \r\n * The descriptor will not be mapped with its XML name is\r\n * <code>null</code>, the empty string (\"\"), or has the value of the\r\n * constant INTERNAL_CONTAINER_NAME.\r\n * \r\n * If there already is a descriptor for the given <code>className</code>\r\n * and/or the descriptor's XML name the previously cached descriptor is\r\n * replaced.\r\n * \r\n * @param className The class name to be used for mapping the given descriptor.\r\n * @param descriptor The descriptor to be mapped.\r\n * \r\n * @see #INTERNAL_CONTAINER_NAME\r\n */\r\n void addDescriptor(String className, XMLClassDescriptor descriptor);\r\n\r\n /**\r\n * To add not only a single descriptor but a map of descriptors at once.\r\n * \r\n * @param descriptors a Map of className (String) and XMLClassDescriptor pairs\r\n */\r\n void addAllDescriptors(Map descriptors);\r\n\r\n /**\r\n * Gets the descriptor that is mapped to the given class name.\r\n * \r\n * @param className The class name to get a descriptor for.\r\n * @return The descriptor mapped to the given name or <code>null</code>\r\n * if no descriptor is stored in this cache.\r\n */\r\n XMLClassDescriptor getDescriptor(String className);\r\n }\r\n}", "title": "" }, { "docid": "c96b17d21f98df7e631557f1b6dcd4bb", "score": "0.5572459", "text": "public Strategy getStrategy() {\n\t\treturn strategy;\n\t}", "title": "" }, { "docid": "45227cd1f829d63ec1276d9f42f308ed", "score": "0.5530627", "text": "public abstract Object getImplementation(String tagName) throws Exception;", "title": "" }, { "docid": "f8865844fee5c6222dcaf1b3790a891b", "score": "0.55252963", "text": "public static HomStrategy lookup(String parameter) {\n\t\tfor (HomStrategy o : HomStrategy.values()) {\n\t\t\tif (o.getParameter().equalsIgnoreCase(parameter)) {\n\t\t\t\treturn o;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "514c0aef6044405f7725aec45498abc9", "score": "0.5510974", "text": "interface ResolutionStrategy {\r\n\t/**\r\n\t * Find a controller for a name. Result may be <code>null</code>.\r\n\t * \r\n\t * @param name\r\n\t * @return\r\n\t */\r\n\tControllerInfo findForName(String name);\r\n\r\n\r\n\t/**\r\n\t * Find a controller for its class. Result may be <code>null</code>.\r\n\t * \r\n\t * @param ctrlClass\r\n\t * @return\r\n\t */\r\n\tControllerInfo findForType(Class<?> ctrlClass);\r\n\r\n\r\n\t/**\r\n\t * Find the default controller which shall be used if no explicity controller\r\n\t * information was given in the call. Result may be <code>null</code>.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tControllerInfo findDefault();\r\n}", "title": "" }, { "docid": "b2e37302c265964e27dd8df31788c7f9", "score": "0.54800797", "text": "public static QuestionStrategy getQuestionStrategy(String question) throws Exception {\n\t\tQuestionStrategy qStrategy = null;\n\t\t\n\t\t// Normalize question string\n\t\tquestion = question.toLowerCase().replace(\"?\", \"\");\n\t\t\n\t\t// Get the string tokens\n\t\tList<String> tokens = Arrays.asList(question.split(WHITE_SPACE));\n\t\t\n\t\t// Check the first word in the question, and act accordingly to it\n\t\tswitch(tokens.get(0)) {\n\t\t\tcase ASTQuestionDictionary.WHAT: \n\t\t\t\tqStrategy = findWhat(tokens);\n\t\t\t\tbreak;\n\t\t\tcase ASTQuestionDictionary.HOW: \n\t\t\t\tqStrategy = findDifferentConnections(tokens);\n\t\t\t\tbreak;\n\t\t\tcase ASTQuestionDictionary.FIND: \n\t\t\t\tqStrategy = findConnectionBelow(tokens);\n\t\t\t\tbreak;\n\t\t\tdefault: \n\t\t\t\tthrow new Exception(\"Cannae find a proper strategy for question => \" + question);\n\t\t}\n\t\t\n\t\treturn qStrategy;\n\t}", "title": "" }, { "docid": "7d3176fb397eb663f23fccef18211f44", "score": "0.54233885", "text": "public static synchronized IClassLoadStrategy getStrategy ()\n {\n return s_strategy;\n }", "title": "" }, { "docid": "aa77a3675c5f00f002f2464a9d2c444c", "score": "0.5418408", "text": "public ProxySelector getProxySelector() {\n\t\tlogger.info(\"Executing search strategies to find proxy selector\");\n\t\tfor (ProxySearchStrategy strat : this.strategies) {\n\t\t\ttry {\n\t\t\t\tProxySelector selector = strat.getProxySelector();\n\t\t\t\tif (selector != null) {\n\t\t\t\t\tselector = installBufferingAndFallbackBehaviour(selector);\n\t\t\t\t\tlogger.info(\"Proxy found for \"+strat.getName());\n\t\t\t\t\treturn selector;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tlogger.info(\"No proxy found for \"+strat.getName()+\". Trying next one\");\n\t\t\t} catch (ProxyException e) {\n\t\t\t\tlogger.info(\"Strategy \"+strat.getName()+\" failed trying next one : \"+e.getMessage());\n\t\t\t\t// Ignore and try next strategy.\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "965b31563059e8c4fb25f0ddf38532ad", "score": "0.53919625", "text": "@Override\n\tpublic void addStrategy(Strategy strategy) {\n\t\t\n\t}", "title": "" }, { "docid": "9d8a049106642acf6b3e31e88abf3782", "score": "0.53644335", "text": "Engine findByName(final String name);", "title": "" }, { "docid": "03d610a33c92b46c0dc588ed59b90d22", "score": "0.5350799", "text": "public interface IdentifierStrategy {\r\n boolean canIdentify(Class<?> targetClass);\r\n\r\n String getIdentifier(Object target);\r\n}", "title": "" }, { "docid": "5991a94c2dbff18a11565d986dfb5b5d", "score": "0.5330187", "text": "<T> T lookup(Class<T> clazz, String name);", "title": "" }, { "docid": "b226c4d5ef8d2486c255eeb934c85bb1", "score": "0.53256595", "text": "public void setStrategy(Strategy strategy) {\r\n this.strategy = strategy;\r\n }", "title": "" }, { "docid": "c30a0996bcbb4dc724c8eeb8afb9268f", "score": "0.53152055", "text": "SymbolGathererStrategy createStrategy() {\n SymbolGathererStrategy result;\n\n if (getNonprivatefieldnames()) {\n result = new NonPrivateFieldSymbolGathererStrategy();\n } else if (getFinalmethodorclassnames()) {\n result = new FinalMethodOrClassSymbolGathererStrategy();\n } else {\n result = createDefaultSymbolGathererStrategy();\n }\n\n result = new FilteringSymbolGathererStrategy(result, getIncludes(), loadCollection(getIncludeslist()), getExcludes(), loadCollection(getExcludeslist()));\n\n if (getPublicaccessibility() || getProtectedaccessibility() || getPrivateaccessibility() || getPackageaccessibility()) {\n result = new AccessibilitySymbolGathererStrategy(result, getPublicaccessibility(), getProtectedaccessibility(), getPrivateaccessibility(), getPackageaccessibility());\n }\n\n return result;\n }", "title": "" }, { "docid": "dcc570394fe657dcb31f7a8d1f88551b", "score": "0.52635175", "text": "public interface StrategyService {\n\n //// TODO: 16/9/1\n\n /**\n * 新建策略\n * @param userid\n * @param strategyname\n * @param json\n * @return\n */\n public String addStrategy(String userid ,String strategyname, String json,String python);\n\n /**\n * 更新策略\n * @param userid\n * @param strategyid\n * @return\n */\n public UpdateState updateStrategyName(String userid ,String strategyid ,String strategyname);\n\n public UpdateState updateStrategyPython(String userid ,String strategyid ,String strategypyhton);\n\n public UpdateState updateStrategyJson(String userid ,String strategyid ,String strategyjson);\n\n\n /**\n * 删除策略\n * @param userid\n * @param strategyid\n * @return\n */\n public DeleteState deleteStrategy(String userid ,String strategyid);\n\n// public void jsonToPython(String json);\n\n /**\n * 获取策略\n * @param userid\n * @param Strategyid\n * @return\n */\n public StrategyPo selectStrategy(String userid,String Strategyid);\n\n /**\n * 获取所有策略\n *\n * @param userid\n * @return\n */\n public ArrayList<StrategyPo> getAllStategy(String userid);\n\n}", "title": "" }, { "docid": "42de22ed0dfe4df5101bb9b6bdcf7bff", "score": "0.5259708", "text": "public interface Strategy {\n\n\tint perform(GameData data);\n\n}", "title": "" }, { "docid": "d9efc5421fd42f4cf4865bf891f8b498", "score": "0.5259511", "text": "public void setStrategy(Strategy strategy) {\n this.strategy = strategy;\n }", "title": "" }, { "docid": "59d1104588a3e5d2513c11171503ac03", "score": "0.5222699", "text": "public interface Resolver {\n Class<?> resolve(String name) throws ClassNotFoundException;\n }", "title": "" }, { "docid": "a825ccda7c130f65555eeabc2109f23e", "score": "0.5217261", "text": "public Class<?> findImplementation(Class clazz) {\n String packagePrefix = clazz.getPackage().getName();\n\n return findImplementation(packagePrefix, clazz);\n }", "title": "" }, { "docid": "77e814178ba5f970c28d60276717deb3", "score": "0.52149737", "text": "public Class<?> resolveClass(String name) {\n/* 121 */ String className = this.classNameMap.get(name);\n/* 122 */ if (className != null) {\n/* 123 */ return resolveClassFor(className);\n/* */ }\n/* */ \n/* 126 */ for (String packageName : this.packages) {\n/* 127 */ String fullClassName = packageName + \".\" + name;\n/* 128 */ Class<?> c = resolveClassFor(fullClassName);\n/* 129 */ if (c != null) {\n/* 130 */ this.classNameMap.put(name, fullClassName);\n/* 131 */ return c;\n/* */ } \n/* */ } \n/* 134 */ return null;\n/* */ }", "title": "" }, { "docid": "afb096d6424e193a997f828d37c44cd0", "score": "0.5209571", "text": "private TypeDescriptor<?> findType(String name) {\n TypeDescriptor<?> result = null;\n if (null == result) {\n result = types.get(name);\n }\n if (null == result && null != parentRegistry) {\n result = parentRegistry.findType(name);\n }\n return result;\n }", "title": "" }, { "docid": "6182a766e651b2da4a07680957309faa", "score": "0.51837325", "text": "public CheckoutComPaymentRequestStrategy findStrategy(final CheckoutComPaymentType key) {\n return strategies.get(key);\n }", "title": "" }, { "docid": "5d47a75b5e6056c727cb2b9a3efb43cd", "score": "0.516373", "text": "<D extends Definition> D resolve(String name, Class<D> clazz);", "title": "" }, { "docid": "a19eaa37b16a1b7f5f9040055005c16d", "score": "0.5143253", "text": "Class<?> loadClass(String name, ClassLoader cl) throws ImplementationNotFoundException;", "title": "" }, { "docid": "a79e1ac42e999449da8b16a4b491bf71", "score": "0.51397175", "text": "void strategyAdded(Strategy.Type strategyType);", "title": "" }, { "docid": "22207bc074610a8701251368be4c605c", "score": "0.51223296", "text": "JoinStrategy getJoinStrategy(String whichStrategy);", "title": "" }, { "docid": "c925d5ddb5f62330111b314ea024c658", "score": "0.5112649", "text": "@Override\r\n\tpublic List<Strategy> getStrategies() {\r\n\t\treturn new ArrayList<Strategy>();\r\n\t}", "title": "" }, { "docid": "f1abb680ea34c9ab2a678ff7cd7bd96c", "score": "0.50766", "text": "private ProxySearchStrategy getDefaultBrowserStrategy() {\n\t\tswitch (PlatformUtil.getDefaultBrowser()) {\n\t\t case IE:\n\t\t\treturn new IEProxySearchStrategy();\n\t\t case FIREFOX:\n\t\t\treturn new FirefoxProxySearchStrategy();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a4c23dab02d1ee13b7625fb0ddf7884a", "score": "0.5071765", "text": "public DynamicMethod searchMethod(String name) {\n return searchWithCache(name).method;\n }", "title": "" }, { "docid": "3da5ad551d0bcdd5d1151f7389bc97c4", "score": "0.5064584", "text": "public java.lang.CharSequence getStrategy() {\n return strategy;\n }", "title": "" }, { "docid": "ab170460c2a6abb87b5369136c7d84ef", "score": "0.5056649", "text": "public java.lang.CharSequence getStrategy() {\n return strategy;\n }", "title": "" }, { "docid": "a4d2fc7fc1a3a504ecef294afc37f81e", "score": "0.5046837", "text": "Requirement findRequirement (String requirementName);", "title": "" }, { "docid": "af51fce8caafec78d79956ac3b051cee", "score": "0.50255364", "text": "public Strategy getStrategy() {\r\n\t\t// alegem random o strategie de urmat\r\n\t\tdouble r = Math.random()*3;\r\n\t\tif (r < 1) { \r\n\t\t\tSystem.out.println(\" strategia PartialScore \");\r\n\t\t\tthis.strategy = new BestPartialScore();\r\n\t\t\treturn strategy;\r\n\t\t}\r\n\t\tif (r < 2) {\r\n\t\t\tSystem.out.println(\" strategia ExamScore \");\r\n\t\t\tthis.strategy = new BestExamScore();\r\n\t\t\treturn strategy;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\" strategia TotalScore \");\r\n\t\t\tthis.strategy = new BestTotalScore();\r\n\t\t\treturn strategy;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "17d8003320b44c297b78cb054e71f8bf", "score": "0.50188017", "text": "<T extends DynamicService> T lookup(String serviceName) throws Exception;", "title": "" }, { "docid": "95906be19e99b52f4055756b5c1b9b79", "score": "0.5006554", "text": "JoinStrategy getJoinStrategy(int whichStrategy);", "title": "" }, { "docid": "eb258376d540a7565414dedd508f85b7", "score": "0.50052696", "text": "public final Method getStrategyMethod(Class<? extends Criteria> criteriaType) {\n\t\tMethod ret = cache.get(criteriaType);\n\t\tif (ret == null) {\n\t\t\t// find strategy\n\t\t\tClass<?> superTypeLoop = criteriaType;\n\t\t\twhile (ret == null && superTypeLoop != null && Criteria.class.isAssignableFrom(superTypeLoop)) {\n\t\t\t\tret = cache.get(superTypeLoop);\n\t\t\t\tif (ret == null) {// by interfaces\n\t\t\t\t\tClass<?>[] interfaces = superTypeLoop.getInterfaces();\n\t\t\t\t\tClass<?> matched = null;\n\t\t\t\t\tfor (Class<?> i : interfaces) {\n\t\t\t\t\t\tif (cache.get(i) != null) {\n\t\t\t\t\t\t\tif (matched == null || matched.isAssignableFrom(i)) {\n\t\t\t\t\t\t\t\tmatched = i;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (matched != null) {\n\t\t\t\t\t\tret = cache.get(matched);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsuperTypeLoop = superTypeLoop.getSuperclass();\n\t\t\t}\n\n\t\t\tcache.putIfAbsent(criteriaType, ret);\n\t\t}\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "c439c1486e3a4a71ae907fa4c1bd50a4", "score": "0.5004109", "text": "public static UpdateStrategy getUpdateStrategyForItem(String name) {\n\t\t/*\n\t\t * this is a bit inefficient as strategies are created every time this method is called.\n\t\t */\n\t\tif (name.contains(\"Aged Brie\"))\n\t\t\treturn new AgedBrie();\n if (name.contains(\"Sulfuras\"))\n \treturn new Sulfuras();\n if (name.contains(\"Backstage pass\"))\n \treturn new BackstagePass();\n if (name.contains(\"Conjured\"))\n \treturn new ConjuredItem();\n \n \treturn new UpdateStrategy();\n\t}", "title": "" }, { "docid": "d00f01d63949c4740a2967209463fbdb", "score": "0.50004506", "text": "private MethodDoc findImplMethod(MethodDoc interfaceMethod) {\n String name = interfaceMethod.name();\n String desc = Util.methodDescriptorOf(interfaceMethod);\n for (MethodDoc implMethod : implClass.methods()) {\n if (name.equals(implMethod.name()) &&\n desc.equals(Util.methodDescriptorOf(implMethod)))\n {\n return implMethod;\n }\n }\n return null;\n }", "title": "" }, { "docid": "0edaefd942077f46cf79126c3fcb6226", "score": "0.49810824", "text": "public interface GameFactory {\n\n public WinnerStrategy createWinnerStrategy();\n public AgeStrategy createAgeStrategy();\n public ActionStrategy createActionStrategy();\n public WorldStrategy createWorldStrategy();\n public AttackOutcomeStrategy createAttackStrategy();\n public ChangeUnitInProductionStrategy createChangeUnitStrategy();\n public ProduceUnitStrategy createProduceUnitStrategy();\n\n}", "title": "" }, { "docid": "8ba43ddd57064574f008c36122987bba", "score": "0.4975162", "text": "private OpBase getOp(String name) {\n if (lookup == null) {\n initLookup();\n }\n OpBase op = lookup.get(name);\n if (op == null) {\n throw new IllegalArgumentException(\"unknown function: \" + name);\n }\n return op;\n }", "title": "" }, { "docid": "27fb21e8ce92658ff10505ace8ccf8d2", "score": "0.49700314", "text": "T getBestService(Collection<T> implementations);", "title": "" }, { "docid": "0b8b8c6dc5bf65542d355b4863235360", "score": "0.49688083", "text": "Definition lookup(String name, int numParams)\n {\n\t// System.out.println(\"MethodDef:lookup:\"+name+\",\"+numParams);\n if (numParams == -1)\n {\n // look for it in the method's scope\n Definition d = super.lookup(name, numParams);\n if (d != null) return d;\n \n // otherwise, look in the parameters for the method\n if (parameters != null)\n\t {\n Enumeration e = parameters.elements();\n while(e.hasMoreElements())\n\t\t{\n d = (Definition)e.nextElement();\n if (d.getName().equals(name))\n return d;\n } \n } \n } \n return null;\n }", "title": "" }, { "docid": "e52c872bd5e09d3b3e00c474d2074f79", "score": "0.49628466", "text": "public interface IStrategy {\n \n /*\n * Metodo encargado de mostrar los envios.\n */\n public void shipping(double totalWeight);\n}", "title": "" }, { "docid": "14c50502beed8721e252a00178a144fe", "score": "0.49604377", "text": "Troop findByName(final String name);", "title": "" }, { "docid": "8fbf03d11888608fe8528bc6adcd1c77", "score": "0.49548164", "text": "static public URL locate(String name) {\r\n return ConfigurationUtils.locate(name);\r\n }", "title": "" }, { "docid": "fae82bb940c128de273e0ec0e391b918", "score": "0.49494877", "text": "private Method lookupInterfaceMethod(Class c, String name, String descriptor) {\n for (Method method : c.getMethods()) {\n if (name.equals(method.getName()) && descriptor.equals(method.getDescriptor())) {\n return method;\n }\n }\n return lookupMethodInInterfaces(c.getInterfaces(), name, descriptor);\n \n }", "title": "" }, { "docid": "251e09a7410b564599610bfabcfac750", "score": "0.49490944", "text": "@Override\n\tpublic Class<? extends Generator> getIdentifierGeneratorClass(String strategy) {\n\t\ttry {\n\t\t\treturn super.getIdentifierGeneratorClass( strategy );\n\t\t}\n\t\tcatch ( MappingException ignored ) {\n\t\t\t// happens because the class does not implement Generator\n\t\t\treturn generatorClassForName( strategy );\n\t\t}\n\t}", "title": "" }, { "docid": "d56edd129bc9f2f73bafbeb2cf43a970", "score": "0.4948582", "text": "Object lookup(String toFind);", "title": "" }, { "docid": "3c1c76282718d4c22f13902bf162c138", "score": "0.49457213", "text": "public interface BalanceFinderStrategy {\n public double execute(Account account);\n}", "title": "" }, { "docid": "d2a14975accea24848c3e0ae1afdb149", "score": "0.4942361", "text": "@Override\n\tpublic String strategyName() {\n\t\treturn \"Low Budget\";\n\t}", "title": "" }, { "docid": "7002613942c7aeeb1e545998099a847c", "score": "0.49372554", "text": "public interface IStrategy {\n public abstract String executeStrategy(final Message message);\n}", "title": "" }, { "docid": "5e83844df38f57d88affb2d908d0afa3", "score": "0.4932209", "text": "private KeyWrapAlgorithm getAlgorithm(String algorithmUrl) {\n\t\treturn algorithmMapping.get(algorithmUrl);\n\t}", "title": "" }, { "docid": "96cd73e8824a0a83c817566a993de5d1", "score": "0.4919008", "text": "<T extends DynamicService> T lookup_ha(String serviceName, String haName) throws Exception;", "title": "" }, { "docid": "bc6ce424877c80ffc260c550056b7cee", "score": "0.49187037", "text": "public Object getNamedPlugin(Class interfaceClass, String name);", "title": "" }, { "docid": "ce690ce1990a830bc2c641200afb2774", "score": "0.49167994", "text": "private ComponentData findPlugin(String name) {\n ComponentData[] plugins = getChildren();\n for(int i=0; i < plugins.length; i++) {\n if(plugins[i].getName().equals(name)) {\n return plugins[i];\n }\n }\n return null;\n }", "title": "" }, { "docid": "fa5a9f60dfb72d42cd86a543333aee80", "score": "0.4910729", "text": "static public URL locateBefore(String name) {\r\n URL url = ConfigurationUtils.locate(Long.toHexString(\r\n System.currentTimeMillis()), name); //CLASSPATH\r\n\r\n if (null == url) {\r\n url = ConfigurationUtils.locate(null, name); //user.dir\r\n }\r\n\r\n if (null == url) {\r\n url = ConfigurationUtils.locate(\"conf\", name); //conf\r\n }\r\n\r\n if (null == url) {\r\n url = ConfigurationUtils.locate(\"cfg\", name); //cfg\r\n }\r\n\r\n return url;\r\n }", "title": "" }, { "docid": "13effb80a09daa55aba0c6df9c953413", "score": "0.49071106", "text": "@Override\n\tpublic MancalaStrategy getStrategy() {\n\t\treturn mStrategy;\n\t}", "title": "" }, { "docid": "7de7aac2bf1eaff2a3a8d39856eae9ec", "score": "0.48947605", "text": "String getInterfaceImplementada();", "title": "" }, { "docid": "cfc415b9bd0f24391baa3a98b2d4ac00", "score": "0.48911768", "text": "public Implementation getImpl();", "title": "" }, { "docid": "72e61d3127fc48c1678f4ea0f26c7155", "score": "0.48866785", "text": "public interface Strategy {\n //defind a method for police to process speeding case.\n void processSpeeding(int speed);\n}", "title": "" }, { "docid": "4ad487b4e3c418c9f1fc29ef3535aaa2", "score": "0.487421", "text": "public Service findService(String name) {\n return services.get(name);\n }", "title": "" }, { "docid": "5604bcc5f0a82ca478f8e010271d3b89", "score": "0.48614922", "text": "@Override\n public String getName() {\n return \"com.sun.jdi.Location\";\n }", "title": "" }, { "docid": "56f0553ba4ed71c9dcae5b16a5985fc2", "score": "0.48608997", "text": "public static Strategy prepare(final String extension) {\n Strategy strategy = null;\n switch(Context.FileExtensions.getContext(extension)) {\n case XLS :\n strategy = new XLSStrategy();\n break;\n case DOC:\n strategy = new DOCStrategy();\n break;\n case PPT:\n strategy = new PPTStrategy();\n break;\n default:\n break;\n }\n return strategy;\n }", "title": "" }, { "docid": "bbfe16217db319994d110bc83c8bbc76", "score": "0.48550317", "text": "AccumulatorLookupStrategy<? super E> getLookupStrategy();", "title": "" }, { "docid": "71fba606ab50c39f9224321095ec081e", "score": "0.4852998", "text": "public interface IStrategy {\r\n\r\n int doOperation(int num1, int num2);\r\n}", "title": "" }, { "docid": "f404002b2b79e54ac4a97bb5b2f7a451", "score": "0.48497155", "text": "@Override\n public <T> T lookupByNameAndType(String name, Class<T> type) {\n Object service = null;\n ServiceReference<?> sr;\n try {\n ServiceReference<?>[] refs = bundleContext.getServiceReferences(type.getName(), \"(name=\" + name + \")\"); \n if (refs != null && refs.length > 0) {\n // just return the first one\n sr = refs[0];\n incrementServiceUsage(sr);\n service = bundleContext.getService(sr);\n }\n } catch (Exception ex) {\n throw RuntimeCamelException.wrapRuntimeCamelException(ex);\n }\n service = unwrap(service);\n return type.cast(service);\n }", "title": "" }, { "docid": "1bde1d40fd39d259d7853df5ae78b6fe", "score": "0.48407742", "text": "private Method lookupMethodInInterfaces(List<Class> interfaces, String name, String descriptor) {\n for (Class iface : interfaces) {\n for (Method method : iface.getMethods()) {\n if (name.equals(method.getName()) && descriptor.equals(method.getDescriptor())) {\n return method;\n }\n }\n \n Method method = lookupMethodInInterfaces(iface.getInterfaces(), name, descriptor);\n if (method != null) {\n return method;\n }\n }\n return null;\n }", "title": "" }, { "docid": "8ad3b1a9441856d14ec3bd97c729eca9", "score": "0.48403382", "text": "public AbstractStateSpacePlanner getPlanner(final Planner.Name name) {\n AbstractStateSpacePlanner planner = null;\n switch (name) {\n case HSP:\n planner = new HSP();\n break;\n\n case FF:\n planner = new FF();\n break;\n\n case FFAnytime:\n planner = new FFAnytime();\n break;\n\n case HCAnytime:\n planner = new HCAnytime();\n break;\n\n default:\n LOGGER.trace(StateSpacePlannerFactory.printUsage());\n break;\n }\n return planner;\n }", "title": "" }, { "docid": "daefff97670fda77f03fcc0db7272a8a", "score": "0.483686", "text": "public interface CalculateStrategy {\n /**\n * 按公里来计算价格\n * @param km\n * @return\n */\n int calculatePrice(int km);\n}", "title": "" }, { "docid": "a74a5f7375db2edd78c2acdcf09f45a9", "score": "0.48219764", "text": "public <T> void unRegisterStrategyImplementor(Class<T> strategy, Class<? extends T> implementation);", "title": "" }, { "docid": "ec5a1a981b1112116cf93c1e4c61771d", "score": "0.4818164", "text": "public ReadingRepositoryStrategy strategy() {\n\t\treturn strategy;\n\t}", "title": "" }, { "docid": "ce7329ac3ce85e9176ee2cabb05310ee", "score": "0.48168957", "text": "public interface IServiceSelector<T> {\n\n /**\n * @return The type this selector can process\n */\n Class<T> getType();\n\n /**\n * Load the provided service.\n * If the service can't be loaded for any reason, this method should return null\n *\n * @param provider The provider to be loaded\n * @return The loaded service\n */\n default T loadService(ServiceLoader.Provider<T> provider) {\n try {\n return provider.get();\n } catch (Throwable t) {\n return null;\n }\n }\n\n /**\n * Determines the best implementation ofg a service and returns it\n *\n * @param implementations All discovered service implementations\n * @return The best service implementation\n */\n T getBestService(Collection<T> implementations);\n\n}", "title": "" }, { "docid": "9ce18eceda3a2fd2799b108c41d7a58b", "score": "0.4815519", "text": "public interface DetectionAlgorithm {\n DetectionAlgorithmType getDetectionAlgorithmType();\n\n DetectionStrategy getDetectionStrategy();\n\n}", "title": "" }, { "docid": "6fd665a53b9112862c6e47c3ee2d7fab", "score": "0.47902796", "text": "@SuppressWarnings(\"deprecation\")\n public WebDriverFactory lookupWebDriverFactory(String factoryName) {\n if (StringUtils.isBlank(factoryName))\n factoryName = FIREFOX;\n else\n factoryName = factoryName.toLowerCase();\n WebDriverFactory factory;\n if (FIREFOX.equals(factoryName))\n factory = new FirefoxDriverFactory();\n else if (CHROME.equals(factoryName))\n factory = new ChromeDriverFactory();\n else if (IE.equals(factoryName))\n factory = new IEDriverFactory();\n else if (SAFARI.equals(factoryName))\n factory = new SafariDriverFactory();\n else if (HTMLUNIT.equals(factoryName))\n factory = new HtmlUnitDriverFactory();\n else if (REMOTE.equals(factoryName)) {\n factory = new RemoteWebDriverFactory();\n } else if (APPIUM.equals(factoryName)) {\n factory = new AppiumWebDriverFactory();\n } else if (PHANTOMJS.equals(factoryName)) {\n factory = new PhantomJSDriverFactory();\n } else if (ANDROID.equals(factoryName)) {\n factory = new AndroidDriverFactory();\n\n } else {\n try {\n factory = (WebDriverFactory) Class.forName(factoryName).newInstance();\n } catch (Exception e) {\n throw new IllegalArgumentException(\"Invalid WebDriverFactory class name: \" + factoryName, e);\n }\n }\n return factory;\n }", "title": "" }, { "docid": "77d239d9f3aedcf2d9e457cdb648840a", "score": "0.47864", "text": "Service getService(String name);", "title": "" }, { "docid": "8e89ccb8cae434b35d20a379b8f98903", "score": "0.47858196", "text": "private QueueIndexingStrategy resolveIndexingStrategy(QueueIndexingStrategy queueIndexingStrategy) {\n switch (queueIndexingStrategy) {\n case CONFIG:\n return configQueueIndexingStrategy;\n case NOINDEX:\n case DIRECTONLY:\n if (!CpCollectionUtils.getDebugMode()) {\n return configQueueIndexingStrategy;\n }\n default:\n return queueIndexingStrategy;\n }\n }", "title": "" }, { "docid": "bc427c057e0d040ee217632ef9e11c0c", "score": "0.47783998", "text": "interface IStrategy {\n public int doCalculate(int a,int b);\n}", "title": "" }, { "docid": "4ceb49f09b6f67ac2dbe59d8c67ba592", "score": "0.4777741", "text": "public GreengrassService locate(String name) throws ServiceLoadException {\n return context.getValue(GreengrassService.class, name).computeObjectIfEmpty(v ->\n locateGreengrassService(v, name, this::locate));\n }", "title": "" }, { "docid": "2d280b92b2f1630009cf54165a98b642", "score": "0.47773322", "text": "protected Class<? extends UnifyComponent> findComponentType(String name) throws UnifyException {\r\n\t\tUnifyComponentConfig unifyComponentConfig = unifyComponentContext.getComponentConfig(name);\r\n\t\tif (unifyComponentConfig != null) {\r\n\t\t\treturn unifyComponentConfig.getType();\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "93c120bfea64c3f23a9565bce61d0e43", "score": "0.47743836", "text": "Method findMethod(String name, Class visitorClass);", "title": "" } ]
140f158dc4fdf69d703a6aa3d4d9b7ec
Validate that atribute knowns is not null and has no elements
[ { "docid": "5654548f27b01984455639a555104550", "score": "0.0", "text": "private boolean getNewMembers(Member element) {\n\t\treturn element.getKnowns() == null || element.getKnowns().size() == 0;\n\t}", "title": "" } ]
[ { "docid": "854681891f0c3ada28bd717d0b9a32f8", "score": "0.64065576", "text": "private void isEmptyFieldsRule() throws RuleException {\n\t\tif(bookwindow.getIsbnValue()== null || bookwindow.getTitleValue()==null || bookwindow.getPriceValue()==null ||\r\n\t\t\t\tbookwindow.getIsbnValue().isEmpty() || bookwindow.getTitleValue().isEmpty() || bookwindow.getPriceValue().isEmpty()) {\r\n\t\t\tthrow new RuleException(\"All fields must be non-empty!\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "81cbc5e6181f75c70b3d4a1355220a1d", "score": "0.6221126", "text": "public boolean isFilled() {\n for (ParameterValue value : values) {\n if (value == null)\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "ab58fc893543bfea8c2f38d37fe69064", "score": "0.6201239", "text": "@Override\n public boolean hasAttributes() {\n if (attributeList.size() > 0)\n return true;\n else\n return false;\n \n }", "title": "" }, { "docid": "dd30b2d9114e3788c1efbbbbdfe72a27", "score": "0.61912733", "text": "public abstract boolean isOptionalAttribute(Object obj);", "title": "" }, { "docid": "998bec35aa44b4d217648044c4b57670", "score": "0.61589783", "text": "public boolean isFilled() {\r\n\t\tfor (int i = 0; i < value.length; i++) {\r\n\t\t\tif (value[i] == null)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "6713bb703bdf82009a0c08af447e2c22", "score": "0.6139136", "text": "@Override\n public boolean hasNull() {\n return numOfNulls > 0;\n }", "title": "" }, { "docid": "74615c8e05d153d1564420d2b43e06e5", "score": "0.6124467", "text": "public boolean isCreateOptionalElements();", "title": "" }, { "docid": "18831f4d9faae9a65620921dbbe30fdd", "score": "0.61117715", "text": "boolean mayHaveNull();", "title": "" }, { "docid": "ab3ab4abd7e4a103a1e53dc7efca1843", "score": "0.61007637", "text": "@Override\nprotected String[] getMandatoryFields() {\n\treturn null;\n}", "title": "" }, { "docid": "9a6dc69a24fbb157a3ce72e2fe591124", "score": "0.6096195", "text": "public boolean may_be_nil() { return false; }", "title": "" }, { "docid": "cb11d65e43314bf90afc9e9ec9fb5f5a", "score": "0.6007791", "text": "@Override\n\tpublic Boolean isFilled() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "969dbbc208cfed95f107e6ec646d0937", "score": "0.5975625", "text": "boolean hasAttributes();", "title": "" }, { "docid": "969dbbc208cfed95f107e6ec646d0937", "score": "0.5975625", "text": "boolean hasAttributes();", "title": "" }, { "docid": "43a068a9b91b2e816ae3433f31cb2be1", "score": "0.5939847", "text": "public void test_checkNotNullElements() throws Exception {\r\n try {\r\n ParameterCheckUtility.checkNotNullElements(Arrays.asList(null,\"string\"), \"name\");\r\n fail(\"Expects IllegalArgumentException\");\r\n } catch (IllegalArgumentException e) {\r\n // pass\r\n }\r\n }", "title": "" }, { "docid": "e010ce35f420ac1f5353582bdef7ef3a", "score": "0.59356594", "text": "protected void validate_null(Null_type0[] param) {\n }", "title": "" }, { "docid": "7b5349f02268d3a262ff1920dcc749f9", "score": "0.58942366", "text": "public boolean isBlank() {\r\n\t\tfor (int i = 0; i < value.length ; i++) {\r\n\t\t\tif(value[i] != null)\r\n\t\t\t\treturn false ;\r\n\t\t}\r\n\t\treturn true ;\r\n\t}", "title": "" }, { "docid": "4d62ca26779baa2f504683e5b312841d", "score": "0.5891604", "text": "public void testValidateFails() throws Exception {\n InitTopicMapTag tag = new InitTopicMapTag();\n\n try {\n tag.doTag(null);\n fail(\"Expected Missing attribute exception\");\n } catch (MissingAttributeException ex) {\n // expected\n }\n }", "title": "" }, { "docid": "53aec82899ff79cacba53bf1f21dc352", "score": "0.5840487", "text": "public boolean hasMissingAttributes() {\r\n return (this.sizeWithoutMissing() < this.getnTrans());\r\n }", "title": "" }, { "docid": "51dfa3518edde35737688f7da07bfc0a", "score": "0.5839577", "text": "public boolean isEmpty(){\n return this.accNum == null && this.assessedVal == null && \n this.garagePresent == null &&\n this.address.getHouseNum() == null && \n this.address.getStreetName() == null &&\n this.address.getSuite() == null &&\n this.coordinates.getLatitude() == null &&\n this.coordinates.getLongitude() == null &&\n this.assessmentClass == null &&\n this.neighbourhoodInfo.getID() == null &&\n this.neighbourhoodInfo.getName() == null &&\n this.neighbourhoodInfo.getWardName() == null;\n }", "title": "" }, { "docid": "e478a59011cf0c7d7f61e365c2dd02e4", "score": "0.5829719", "text": "protected void internalValidate() throws ServiceValidationException {\n\t\tfor (int i = 0; i < this.additionalProperties.size(); i++) {\n\t\t\tif (this.additionalProperties.get(i) == null) {\n\t\t\t\tthrow new ServiceValidationException(String.format(\n\t\t\t\t\t\tStrings.AdditionalPropertyIsNull, i));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e68b984f177b190e05e915c8af1ec79b", "score": "0.5817245", "text": "public void CheckForNull() {\n\t\tString message = \"\";\n\t\tmessage += requireNonNull(artikelbezeichnung, \"\\\"artikelbezeichnung\\\" is NULL\\n\");\n\t\tmessage += requireNonNull(ean_stueck, \"\\\"ean_stueck\\\" is NULL\\n\");\n\t\tmessage += requireNonNull(ean_gebinde, \"\\\"ean_gebinde\\\" is NULL\\n\");\n\t\tmessage += requireNonNull(menge_im_gebinde, \"\\\"menge_im_gebinde\\\" is NULL\\n\");\n\t\tmessage += requireNonNull(ean_umkarton, \"\\\"ean_umkarton\\\" is NULL\\n\");\n\t\tmessage += requireNonNull(menge_im_umkarton, \"\\\"menge_im_umkarton\\\" is NULL\\n\");\n\t\tmessage += requireNonNull(artikel_hoehe, \"\\\"artikel_hoehe\\\" is NULL\\n\");\n\t\tmessage += requireNonNull(artikel_laenge, \"\\\"artikel_laenge\\\" is NULL\\n\");\n\t\tmessage += requireNonNull(artikel_breite, \"\\\"artikel_breite\\\" is NULL\\n\");\n\t\tmessage += requireNonNull(artikel_gewicht, \"\\\"artikel_gewicht\\\" is NULL\\n\");\n\t\tmessage += requireNonNull(lagerplatz, \"\\\"lagerplatz\\\" is NULL\\n\");\n\t\tif (lagerplatz.length == 0)\n\t\t\tmessage += \"\\\"lagerplatz\\\" is EMPTY\\n\";\n\t\telse\n\t\t\tfor (Lagerplatz lagerplatztemp : lagerplatz) {\n\t\t\t\tmessage += requireNonNull(lagerplatztemp.lagerplatz, \"\\\"lagerplatz(Nr)\\\" is NULL\\n\");\n\t\t\t\tmessage += requireNonNull(lagerplatztemp.lagerplatzbestand, \"\\\"lagerplatzbestand\\\" is NULL\\n\");\n\t\t\t}\n\t\tmessage += requireNonNull(max_pro_box, \"\\\"max_pro_box\\\" is NULL\\n\");\n\n\t\tif (!message.equals(\"\")) {\n\t\t\t// message += \"---Please check JSON-Construction on Client---\";\n\t\t\tthrow new NullPointerException(message);\n\t\t}\n\n\t}", "title": "" }, { "docid": "43bd34bb21d1141548a60dd2119f9523", "score": "0.58163893", "text": "public static void verificaAtributo(String ... atributo ) throws ExceptionParametroInvalido{\n\t\tfor (String string : atributo) {\n\t\t\tif ( string == null){\n\t\t\t\tthrow new ExceptionParametroInvalido();\n\t\t\t}\n\t\t\tif( !(string.matches(\"[a-zA-Zà-úÀ-Ú\\\\s .,!?:;_0-9]+\"))){\n\t\t\t\tthrow new ExceptionParametroInvalido();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2a8cbe3ae34e8cd1b9adf9be65af93a9", "score": "0.57819337", "text": "boolean hasBlank();", "title": "" }, { "docid": "276bc0b831407422c88a21e256f6033d", "score": "0.5781695", "text": "private static void checkProperty(Value v) {\n if (v.isMaybePresent() && (!v.hasDontDelete() || !v.hasDontEnum() || !v.hasReadOnly()))\n throw new AnalysisException(\"Missing attribute information at property value \" + v);\n }", "title": "" }, { "docid": "55c991a79e5f466c57638b25f8e2857f", "score": "0.57699394", "text": "@SuppressWarnings(\"PMD.UselessParentheses\")\n public boolean isCustomAttributesValid() {\n return (customAttributes == null || customAttributes.size() <= 10);\n }", "title": "" }, { "docid": "6809272bb2864f8275b9ec00443b9769", "score": "0.57584184", "text": "public boolean isIncomplete() {\n return ((getElementType() == null) ||\n (getElementType().length() == 0));\n }", "title": "" }, { "docid": "9a71ae092897d040a8e5cf17e27dbb0b", "score": "0.57433575", "text": "boolean isAttributeRequired(String elementName, String attrName);", "title": "" }, { "docid": "0005470a1542b9ac53b9663a3e1a2691", "score": "0.5727459", "text": "private boolean isFieldBlank(String name) {\n \t\treturn name.length() == 0;\n \t}", "title": "" }, { "docid": "6a7d7209873297eb516956015b18d16d", "score": "0.57152283", "text": "public void testValidationNoAttributesToKeep() {\r\n KeepNamedAttributesProcessor processor = (KeepNamedAttributesProcessor) testProcessor;\r\n processor.setAttributesToKeep(null);\r\n\r\n List exceptions = new ArrayList();\r\n processor.validate(exceptions);\r\n assertTrue(\"Expected one validate exceptions.\", exceptions.size() == 1);\r\n }", "title": "" }, { "docid": "64e8603fcd0f7b79f961af17a3234dd0", "score": "0.56961143", "text": "private void checkRep() {\n\t\tassert (this.label != null && this.child != null);\n\t\tfor (String labels : label) assert (labels != null);\n\t}", "title": "" }, { "docid": "386d8758ab5381b49332e77821168010", "score": "0.5693991", "text": "private boolean areFieldsEmpty() {\n\n\t\tif (tf_item_name.getText().trim().isEmpty() || tf_price.getText().trim().isEmpty() || tf_quantity.getText().trim().isEmpty() || dp_date.getValue() == null || cb_family_member.getValue() == null || cb_category.getValue() == null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "a704f331199e1c8a7123757dc2e6b8af", "score": "0.569115", "text": "protected boolean collectionContainsNonNullElements(SDKFieldValue fieldValue) {\n for (Enumeration stream = fieldValue.getElements().elements(); stream.hasMoreElements();) {\n if (stream.nextElement() != null) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "62e99dea517bf712be41a035e88580d1", "score": "0.5681391", "text": "private void validateMandatoryFields(final Context ctx, final BulkLoadSubscriber bs) throws AgentException\r\n {\r\n \tif(ctx.getBoolean(BypassValidationHome.FLAG, false))\r\n \t{\r\n \t\treturn;\r\n \t}\r\n if (bs.getBAN() == null || bs.getBAN().trim().length() == 0)\r\n {\r\n throw new AgentException(\"Mandatory field BAN not set.\");\r\n }\r\n else if (bs.getMSISDN() == null || bs.getMSISDN().trim().length() == 0)\r\n {\r\n throw new AgentException(\"Mandatory field MISIDN not set.\");\r\n }\r\n }", "title": "" }, { "docid": "fa9f37afc606820d0d86c2e4797cdd34", "score": "0.5677955", "text": "public boolean isCreateOptionalAttributes();", "title": "" }, { "docid": "2a15063cda9fad560561fa0e3b7c8a82", "score": "0.5666644", "text": "@Override\r\n\tpublic boolean valid() {\n\t\treturn \r\n\t\t\t\tnotVoid(name)\t\t&&\r\n\t\t\t\tnotVoid(surname)\t&&\r\n\t\t\t\tnotVoid(dob)\t\t&&\r\n\t\t\t\tbetween(age(), 0, 130);\r\n\t}", "title": "" }, { "docid": "b93afbe7f665888dd45d198ccfd230e8", "score": "0.565258", "text": "boolean hasAttr();", "title": "" }, { "docid": "6b774de162af34ed4cb42e8baad71c92", "score": "0.5643642", "text": "private boolean informationIsMissing(){\n return (titreIsMissing() || synopsisIsMissing() || realisateurIsMissing() || genreIsMissing());\n }", "title": "" }, { "docid": "d2a671e4c733dc6bad2778bf793ef7a9", "score": "0.5641821", "text": "@Override\n void validateBidsNotNullOrEmpty() {\n if (getDayTimeTarget() != null) {\n validateListNotNullOrEmpty(getDayTimeTarget().getBids(), getDayTimeTarget().getBids().getDayTimeTargetBids(), \"DayTimeTarget.Bids\");\n }\n }", "title": "" }, { "docid": "97b038791b61e9060575399a449c50f3", "score": "0.5632797", "text": "private boolean validateMandatoryParam(){\n\t\tif ( firstName.isEmpty() || lastName.isEmpty() ) return false;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "aba40c35b84cb60ae0d859fb6d87137c", "score": "0.5616948", "text": "@Test\n\tpublic void valid_account_mandatory_properties() {\n\n\t\t// given\n\t\tAccount account = new Account( \"user\", \"name\", null, null );\n\n\t\t// asserts\n\t\tassertThat( account.getUser() ).isEqualTo( \"user\" );\n\t\tassertThat( account.getName() ).isEqualTo( \"name\" );\n\t}", "title": "" }, { "docid": "3de5d212a11d255ed1c3b04572a0ad6c", "score": "0.56143874", "text": "@Test\n\tpublic void testNullArgsAllowedByAnnotation() {\n\t\tacceptAll(null);\n\t}", "title": "" }, { "docid": "daeae64af7436d54751bd11a4e015ec7", "score": "0.5611811", "text": "public boolean hasSetAttributes() {\n\t\treturn this.attributes != null && attributes.size() > 0;\n\t}", "title": "" }, { "docid": "e8360803a2942ad01bdfac9a2a980d49", "score": "0.5609665", "text": "private void validateDefault(Symbol container, DiagnosticPosition pos) {\n Scope scope = container.members();\n for(Symbol elm : scope.getElements()) {\n if (elm.name != names.value &&\n elm.kind == Kinds.MTH &&\n ((MethodSymbol)elm).defaultValue == null) {\n log.error(pos,\n \"invalid.repeatable.annotation.elem.nondefault\",\n container,\n elm);\n }\n }\n }", "title": "" }, { "docid": "0c800843f5ff52b3a480c632dbbf85d4", "score": "0.5608712", "text": "public boolean isEmtpy();", "title": "" }, { "docid": "82716094e6fadaa94e8b22cc50c2dc60", "score": "0.5606025", "text": "private String checkAttributes(){\n\t\tStringBuffer buffer = new StringBuffer(\"The following values are required: \");\n\t\tint length = 0;\n\t\tif(this.getTariffTypeItem().equalsIgnoreCase(\"none\")) {\n\t\t\tbuffer.append(\"Tariff Type, \");\n\t\t} if(this.getTariffCustomerClassItem().equalsIgnoreCase(\"none\")) {\n\t\t\tbuffer.append(\"Account Class, \");\n\t\t}if(this.getTransactionTypeItem().equalsIgnoreCase(\"none\")) {\n\t\t\tbuffer.append(\"Transaction Type, \");\n\t\t} if(this.getEffectiveDate()== null) {\n\t\t\tbuffer.append(\"Effective Date, \");\n\t\t} \n\t\tlength = buffer.toString().length();\n\t\t\t\t\n\t\tif(length > 40) {\n\t\t\tbuffer.replace(length-2, length, \" \");\n\t\t\treturn buffer.toString();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f02a5b4321d6faf88fe5ca9863be9c37", "score": "0.55930007", "text": "public boolean isNull()\n{\n\treturn this.properties.isNull();\n}", "title": "" }, { "docid": "382174711aabaa0d4eb9803c81cd5ca6", "score": "0.55889046", "text": "private void validateBlank() {\n if(titleField.getText().trim().isBlank() || descriptionField.getText().trim().isBlank() || typeField.getText().trim().isBlank() ||\n contactCombo.getSelectionModel().isEmpty() || customerIdTextField.getText().trim().isEmpty() || startTimeComboBox.getSelectionModel().isEmpty()\n || locationField.getText().trim().isBlank() || endTimeComboBox.getSelectionModel().isEmpty() || startDatePicker.getValue() == null\n || userIdTextField.getText().trim().isBlank()) {\n\n hasErrors=true;\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Blank fields\");\n alert.setHeaderText(\"No fields can be blank\");\n alert.setContentText(\"Please fill out the form\");\n alert.showAndWait();\n } else{\n hasErrors = false;\n }\n\n }", "title": "" }, { "docid": "fd9006b29aa6e301e95bb8d32d438af6", "score": "0.558535", "text": "@Test\n public void manufacturerIsNull() {\n Car car = new Car(null, \"DD-AB-123\", 4);\n\n Set<ConstraintViolation<Car>> constraintViolations = validator.validate(car);\n\n assertEquals(1, constraintViolations.size());\n assertEquals(\"may not be null\", constraintViolations.iterator().next().getMessage());\n }", "title": "" }, { "docid": "ab64547cd1e3278f6feccc239a0d8a8d", "score": "0.55806994", "text": "public void testSetElementNull() {\n instance.setElement(null);\n assertNull(\"null value should be allowed\", instance.getElement());\n }", "title": "" }, { "docid": "49e1ef3525ea4467148429613fe9ab08", "score": "0.5579404", "text": "public Collection<String> validate(){\r\n List<String> unfilledFields = new ArrayList<String>();\r\n if(this.getName().equals(\"\")){\r\n unfilledFields.add(\"Name\");\r\n }\r\n if(this.getPhone().equals(\"\")){\r\n unfilledFields.add(\"Phone\");\r\n }\r\n return unfilledFields;\r\n }", "title": "" }, { "docid": "60ea126e1d9dda4df70bfb4bb8a48c1e", "score": "0.5575175", "text": "public boolean isEmpty(){\n return (element == null)? true : false;\n }", "title": "" }, { "docid": "8de516ffdc67553128bae69c9b85ab88", "score": "0.5569862", "text": "public void isNull() {\n\t\t\n\t}", "title": "" }, { "docid": "f990a90f07feb0c43f6e44fcb94da020", "score": "0.5563655", "text": "public boolean isOptional() {return !isRequired();}", "title": "" }, { "docid": "aecfeebc154f345a66cb17104ae4ddf7", "score": "0.55593973", "text": "public boolean isNotEmptyExtra() { return isNotNullExtra() && !getExtra().isEmpty(); }", "title": "" }, { "docid": "68943d70dee2574ac2fb325c4770c88f", "score": "0.5556216", "text": "boolean[] getPropertyNullability();", "title": "" }, { "docid": "abb5d22b49608669d2af730bf69f8784", "score": "0.5554267", "text": "native public Boolean hasAttributes();", "title": "" }, { "docid": "4f2c1e8558bf54b675037104f470bf7f", "score": "0.55476403", "text": "@Override\n public boolean isValid() {\n return isCustomAttributesValid() && isDescriptionValid() && isNameValid();\n }", "title": "" }, { "docid": "b5fb6a3abfea148ac9626127a0145864", "score": "0.5534506", "text": "public boolean isEmpty(){\n return title == null && artist == null && mins == 0 && secs == 0;\n }", "title": "" }, { "docid": "d7393f2acaeffc42f1cf6ac18d4720c3", "score": "0.552933", "text": "abstract void validateAllFields();", "title": "" }, { "docid": "ec31b76633d59ee34a04747587415753", "score": "0.5521194", "text": "@Test\r\n public void nameIsBlank() {\r\n RecommendationEntity recommendation = createValidEntity();\r\n recommendation.setRecommendation(\"\");\r\n Set<ConstraintViolation<RecommendationEntity>> constraintViolations = getValidator().validate(recommendation);\r\n assertEquals(1, constraintViolations.size());\r\n assertEquals(\"{NotBlank.recommendation}\", constraintViolations.iterator().next().getMessage());\r\n }", "title": "" }, { "docid": "3ac3691bf40b135c84b6b01cf18230ac", "score": "0.5503668", "text": "void checkNullResources() {\n assert log == null;\n assert marshaller == null;\n assert balancer == null;\n assert mbeanSrv == null;\n assert ses == null;\n assert execSvc == null;\n assert appCtx == null;\n assert jobCtx == null;\n }", "title": "" }, { "docid": "2de7649cf798214cbe32b8b576a0fae6", "score": "0.5497168", "text": "private void validarCamposObrigatoriosMapa(Mapa mapa) {\t\t\r\n\t\tif (mapa.getNome() == null || mapa.getNome().equals(\"\")) {\r\n\t\t\tthrow new BusinessException(MensagensProperty.MSG_ERRO_01.getMensagem());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9b8b607119003694401f7a124936cb15", "score": "0.5493936", "text": "public void testAcknowledgeWatchNullActionArray() {\n String[] nullArray = null;\n Optional<ValidationException> e = new AckWatchRequest(\"_id\", nullArray).validate();\n assertFalse(e.isPresent());\n }", "title": "" }, { "docid": "b7b0db147b26a2857d21d557d2aecc98", "score": "0.5492584", "text": "@Override\n\tpublic void nullIfEmpty() {\n\t\t\n\t}", "title": "" }, { "docid": "5f21bb551527d3a1db7adf954ea00985", "score": "0.54923385", "text": "@Override\r\n public boolean isEmpty() {\n return false;\r\n }", "title": "" }, { "docid": "5f21bb551527d3a1db7adf954ea00985", "score": "0.54923385", "text": "@Override\r\n public boolean isEmpty() {\n return false;\r\n }", "title": "" }, { "docid": "5ce2c20a58bb815ed8aaac71e48b8b14", "score": "0.5481169", "text": "void validateState() throws EPPCodecException {\n\t\tif (name == null) {\n\t\t\tthrow new EPPCodecException(\"name required attribute is not set\");\n\t\t}\n\n\t\tif (createDate == null) {\n\t\t\tthrow new EPPCodecException(\n\t\t\t\t\t\"required attribute createDate is not set\");\n\t\t}\n\t}", "title": "" }, { "docid": "de09847a7bd42984a085eca98bf6a812", "score": "0.5477176", "text": "private boolean verifyFields()\n {\n return firstNameField.getError() == null &&\n lastNameField.getError() == null &&\n streetField.getError() == null &&\n countryField.getError() == null &&\n cityField.getError() == null &&\n zipField.getError() == null &&\n regionField.getError() == null &&\n phoneField.getError() == null &&\n emailField.getError() == null;\n }", "title": "" }, { "docid": "c9943b1ccdd70bf4bad1b1541bf32d30", "score": "0.5475766", "text": "private boolean nameInputsAreValid() {\n for (JTextField i : playerNameFields)\n if (i.getText().equals(\"\"))\n return false;\n return true;\n }", "title": "" }, { "docid": "27fca1cf4e13b3ba844a781f15550eb6", "score": "0.5473612", "text": "boolean hasAttrib();", "title": "" }, { "docid": "8a9047c0deeb5b52e89860a1f4d64ec2", "score": "0.5473182", "text": "public final void testVerifyAttributeValue2() {\n\n try {\n AttributeSetUtilities.verifyAttributeValue(null, DocAttribute.class);\n fail(\"method doesn't throw NullPointerException if object is null\");\n } catch (NullPointerException e) {\n //System.out.println(\"testVerifyAttributeValue2 - \" + e.toString());\n }\n }", "title": "" }, { "docid": "a229d0d82c543bd003a18f350824c504", "score": "0.5471912", "text": "protected static void oneOfViolation() {\n throw new ValidationArgumentException(\"No one-of fields defined\");\n }", "title": "" }, { "docid": "f4a1582e83c842304b7f70efba7b0d9f", "score": "0.54711133", "text": "public boolean nonEmpty () { throw new RuntimeException(); }", "title": "" }, { "docid": "0ea0be2eb6bb3b56df3ef672db9965c4", "score": "0.5469029", "text": "private boolean validateFields() {\n\t\tif (nameTextField.getText().trim().isEmpty() || descriptionTextField.getText().trim().isEmpty()\r\n\t\t\t\t|| tagTextField.getText().trim().isEmpty() || priceTextField.getText().trim().isEmpty()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "bdb492462acc770a9722d779c0fd4abd", "score": "0.54678625", "text": "public static boolean hasMissingValues(Instance inst) {\n for (int i = 0; i < inst.noAttributes(); i++) {\n if (Double.isNaN(inst.value(i)))\n return true;\n\n }\n return false;\n }", "title": "" }, { "docid": "4cdd146910476e28b6f74a2c35b18d57", "score": "0.5464925", "text": "@Override\n\t\tboolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "37d4a86b93b4b49db295adec34cb9075", "score": "0.5460391", "text": "public boolean checkFullFilled() {\n\n if (name.getText().equals(\"\")) {\n return false;\n }\n\n if (manufacturer.getText().equals(\"\")) {\n return false;\n }\n\n if (valid_from.getText().equals(\"\")) {\n return false;\n }\n\n if (valid_to.getText().equals(\"\")) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "559f9289609a90962682fb1f22959973", "score": "0.5455352", "text": "public final void testPreConditions() {\n\t\tassertTrue(null == null); //This better be right!\n\t\tassertTrue(attentec != null);\n\t}", "title": "" }, { "docid": "46dfa76d32512d22a00cb55e3b34ece4", "score": "0.54539555", "text": "boolean hasRequired();", "title": "" }, { "docid": "7772758c3895f0c2a34fb63045829c77", "score": "0.5453371", "text": "@Test\n public void testSetAllNull() {\n onView(withId(R.id.registration_sign_up_button)).perform(scrollTo(), click());\n onView(withId(R.id.registration_email_edit_text)).check(matches(hasErrorText(\"Email is required\")));\n onView(withId(R.id.user_registration_detail_name)).check(matches(hasErrorText(\"Name is required\")));\n onView(withId(R.id.registration_password_edit_text)).check(matches(hasErrorText(\"Security code is required\")));\n onView(withId(R.id.user_registration_detail_phone_number)).check(matches(hasErrorText(\"Phone number is required\")));\n }", "title": "" }, { "docid": "3884840c839a18ff268a19be8b207c1c", "score": "0.5447483", "text": "public boolean isNull(String attrName) {\n return attributes.containsKey(attrName)\n && attributes.get(attrName) == null;\n }", "title": "" }, { "docid": "82ed9f9ada70be7e0bcee6d4cee186fe", "score": "0.54444534", "text": "@Test\n\tpublic void w_readActiviteByNullNomPrestAct() {\n\t\tassertThat(actService.readActiviteByNomPrestaAct(null)).isEmpty();\n\t}", "title": "" }, { "docid": "e9cc1116e3200addd6435dea92235167", "score": "0.54387444", "text": "@Override\n void validatePropertiesNotNull() {\n validatePropertyNotNull(getDayTimeTarget(), \"DayTimeTarget\");\n }", "title": "" }, { "docid": "c12373da355c882bbfff205db6d339bd", "score": "0.5429591", "text": "@Override\n public boolean isEmpty() {\n return elemCount == 0;\n }", "title": "" }, { "docid": "c4adc8c830227c05a5bba6ce6083d0a1", "score": "0.54217565", "text": "public boolean isSetAttr() {\n return this.attr != null;\n }", "title": "" }, { "docid": "711b14af437d655f57b112136378738a", "score": "0.5421716", "text": "com.google.protobuf.EmptyOrBuilder getBlankOrBuilder();", "title": "" }, { "docid": "b41a3e8f3f32ea950d26aca25316fd22", "score": "0.5421216", "text": "protected void checkQuestionValidValueFieds(QuestionDescriptor question) {\n\t\tif (question == null) return;\n\t\t\n\t\tList<QuestionDescriptor.ValidValue> vvs = question.getValidValues();\n\t\tif (vvs == null || vvs.size() == 0) return;\n\t\t\n\t\tfor (QuestionDescriptor.ValidValue vv : vvs) {\n\t\t\tif (vv.getValue() == null || vv.getValue().length() == 0) {\n\t\t\t\tvv.setSkip(true);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tif (vv.getMeaningText() == null || vv.getMeaningText().length() == 0) {\n\t\t\t\tvv.setSkip(true);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\t\n\t\t\tif (vv.getDescription() == null || vv.getDescription().length() == 0)\n\t\t\t\tvv.setDescription(vv.getMeaningText());\n\t\t}\n\t}", "title": "" }, { "docid": "d9c297a0a259ba7a42ceb05245729cbe", "score": "0.54175323", "text": "default boolean isEmpty() {\n\t\treturn !isDefined();\n\t}", "title": "" }, { "docid": "4833009eb90e37f37ef81bae6ae61bca", "score": "0.5413567", "text": "public boolean hasElementData();", "title": "" }, { "docid": "f58b168102d9f3102ec503a9e2a0270b", "score": "0.5412674", "text": "public void testNotNulls()\n {\n Assert.assertNotNull( PairListTest.NUEVE );\n Assert.assertNotNull( PairListTest.OCHO );\n Assert.assertNotNull( PairListTest.SIETE );\n }", "title": "" }, { "docid": "5d989d1ff21581253996a4f86708d52d", "score": "0.5408631", "text": "@JsonIgnore\n public boolean isValid() {\n return firstName != null\n && lastName != null\n && phoneNumber != null\n && address != null\n && email != null;\n }", "title": "" }, { "docid": "a65d1e4df5cee3b9f872a990e4bf42a1", "score": "0.5399249", "text": "@Override\n\tpublic boolean is_empty() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4d33e1363f7c254cc07ff26ffc85959b", "score": "0.53937036", "text": "private void disableNullCriteria(XmlElement element) {\n\t\tXmlElement ifElement = null;\n\t\tIterator<Element> iterator = element.getElements().iterator();\n\t\tint position = 0;\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement e = iterator.next();\n\t\t\tif (!(e instanceof XmlElement)) {\n\t\t\t\tposition++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tXmlElement xmlElement = (XmlElement) e;\n\t\t\tif (!\"if\".equals(xmlElement.getName())) {\n\t\t\t\tposition++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor (Attribute attribute : xmlElement.getAttributes()) {\n\t\t\t\tif (\"test\".equals(attribute.getName()) && \"_parameter != null\".equals(attribute.getValue())) {\n\t\t\t\t\tifElement = xmlElement;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ifElement != null) {\n\t\t\t\tList<Element> subElements = ifElement.getElements();\n\t\t\t\titerator.remove();\n\t\t\t\telement.getElements().addAll(position, subElements);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tposition++;\n\t\t}\n\t}", "title": "" }, { "docid": "7805796cec9721a45ddae9abd0b94901", "score": "0.53917205", "text": "private void validateRequestParamsNotNull(RegisterRequest registerRequest) throws EmptyFieldException {\n validateParamNotNull(registerRequest.getEmail(), \"Email\");\n validateParamNotNull(registerRequest.getName(), \"Name\");\n validateParamNotNull(registerRequest.getPassword(), \"Password\");\n }", "title": "" }, { "docid": "3792841126f215df411b88feae7d67e1", "score": "0.5386713", "text": "private static <T> boolean isAllElementsNull(List<T> list) {\n\t\tfor (Object object : list) {\n\t\t\tif (object != null)\n\t\t\t{\t\n\t\t\t\treturn false;\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1a5c30e895bbb998aa1a78626a565945", "score": "0.5385646", "text": "private void validateArrayNotEmpty(Object[] array, String arrayName) throws IllegalArgumentException {\r\n \r\n \t\t// Validate that the array contains data and is the proper size\r\n \t\tif (array == null || array.length == 0) {\r\n \t\t\t// Empty or null array\r\n \t\t\tString errMsg = \"Parms error - empty or null [\" + arrayName + \"] array\";\r\n \t\t\tlogger.error(errMsg);\r\n \t\t\tIllegalArgumentException iae = new IllegalArgumentException(errMsg); \r\n \t\t\tthrow iae; \r\n \t\t}\r\n \t}", "title": "" }, { "docid": "2707996cfa7566ec88b01c69388a19d1", "score": "0.5384835", "text": "@Override\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "7c946257a87ead6f8147450abf609f14", "score": "0.5380471", "text": "private void assertParameters() {\n\n\t\tif (pathToSDFile==null || pathToSDFile.isEmpty()) \n\t\t\tthrow new IllegalArgumentException(\"Input file is not defined\");\n\t\tif (activityProperty==null || activityProperty.isEmpty()) \n\t\t\tthrow new IllegalArgumentException(\"Activity property is not defined\");\n\n\t\tif (classification==true && (positiveActivity==null || positiveActivity.isEmpty())){\n\t\t\tthrow new IllegalArgumentException(\"Missing parameter: POSITIVE ACTIVITY (required for classification)\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "473b6266d8102e1e736807250f2ab0a8", "score": "0.53783154", "text": "@Override\r\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" }, { "docid": "473b6266d8102e1e736807250f2ab0a8", "score": "0.53783154", "text": "@Override\r\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" }, { "docid": "473b6266d8102e1e736807250f2ab0a8", "score": "0.53783154", "text": "@Override\r\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "ff6d744d71214284c65948187c6e6c8c", "score": "0.0", "text": "@Override\n\tpublic boolean isReady(CyNetwork network) {\n\t\treturn network != null;\n\t}", "title": "" } ]
[ { "docid": "e5fa0eebc721dea67da872fd14413bc7", "score": "0.69752145", "text": "@Override\n\tpublic void formule() {\n\t\t\n\t}", "title": "" }, { "docid": "8b7f87c22e268a87686c66398c2c442b", "score": "0.69362766", "text": "@Override\r\n\t\t\tpublic void atras() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836717", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ec76ff8d70ced9d8135ad33b23353b4d", "score": "0.66246337", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "82ab90ffadf9b8d43e60c8510a33beba", "score": "0.66231865", "text": "@Override\r\n\tpublic void morirse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.66017926", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "a5f7a321f63abee65f0b9008f270490e", "score": "0.65953344", "text": "@Override\n\t\t\tpublic void competir() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6568077", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6568077", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65319943", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "7756cbf76fd6363807e17834db326bbc", "score": "0.65021837", "text": "@Override\n\t\t\tpublic void avanzar() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "bdceff0dc4130d850ab15d702b785449", "score": "0.6384061", "text": "@Override\n\tprotected void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "14f6250e215aa66dcffb123fd6b7fd74", "score": "0.6338525", "text": "@Override\n\tpublic void entzünden() {\n\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63231725", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "070e1adb9bfd59cb643407a2dabe9b7a", "score": "0.62916744", "text": "private void hinzufügen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "469c90392fb12e4553574135278541f5", "score": "0.6238779", "text": "@Override\n\tpublic void attck() {\n\t\t\n\t}", "title": "" }, { "docid": "d3585587779dbdf33600e1670ca42099", "score": "0.61934024", "text": "@Override\n\tpublic void IngresoKromi() {\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61924416", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6154442", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.6106058", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.60626346", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.6056132", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0cd47ce21776ffa50dd678180ffe94e5", "score": "0.60036343", "text": "public void ayak() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2c1f0ca9c7029b85142a2ab9536d708", "score": "0.59911543", "text": "@Override\n\tpublic void attaque() {\n\t\t\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.59880686", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "70c63b539d1b6f883ad13008fbcaa6ce", "score": "0.59601474", "text": "@Override\n\tpublic void fiy(){\n\t\t\n\t}", "title": "" }, { "docid": "360bf42213adde0b962792c6cd6d8df7", "score": "0.5952693", "text": "@Override\r\n\t\tpublic void interg() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59266514", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.5924379", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59236866", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.59030116", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.59030116", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59022695", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "e05db3dd501cfaf4d9d1b128ca673f1b", "score": "0.58991194", "text": "@Override\n\tprotected void formRes() {\n\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.58833176", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "ea6be29351b2f6d99af3992f4a8fbd45", "score": "0.58688885", "text": "public void afficherEntreprise(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3177b2be45c490e407b98d647e109c0d", "score": "0.5856987", "text": "@Override\n protected void initData()\n {\n\t\n }", "title": "" }, { "docid": "eea1284dac4ca57b790a13dcd1ad6bff", "score": "0.5840033", "text": "@Override\n protected void ucitaj() {\n //only because of 'extands rule'\n }", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810248", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "af70f420bd21981aa44db6516064224d", "score": "0.5805583", "text": "@Override\n\tpublic int berechnen() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.57937914", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792168", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "94f32cdbe8afc400e05efbdb8d78c591", "score": "0.57886684", "text": "@Override\r\n\tpublic void borc_hesapla() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.578416", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774115", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "aed26444304cfac4d695203c7d86e6c5", "score": "0.5769186", "text": "public void autTC05() {\r\n\r\n\t}", "title": "" }, { "docid": "9b56e05d631b1ea925ea2c139ee709ad", "score": "0.5764136", "text": "@Override\n\tpublic void adim7() {\n\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761079", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57592577", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "a49b2d411619c6f2680e9b0e8c21a20f", "score": "0.5757855", "text": "private void erledigt() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8aac1da26498753495658c2bb9044b21", "score": "0.5752465", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "2bbeae4f0e92c95ecc07204851be4769", "score": "0.57503444", "text": "@Override\n\tpublic void nyalakan() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749888", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749888", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749888", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749888", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8603393cbe27452fe30e396632c62eed", "score": "0.57415956", "text": "@Override\n\t\tpublic void postConstruct() {\n\t\t}", "title": "" }, { "docid": "37bf6e6ef01cf7dab163b5d3bedbc140", "score": "0.5740477", "text": "@Override\n\tpublic void som() {\n\t\t\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.5739314", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.5736312", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.5734758", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5733414", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "0f7672ee5ac14b05f31da4e1e34d7b49", "score": "0.5725867", "text": "@Override\r\n\tpublic void test8() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a22a3abb4b9b5de4ed8c054da445e9b0", "score": "0.5724181", "text": "@Override\r\n\tpublic void jugar() {\n\r\n\t}", "title": "" }, { "docid": "7fd3ef4778cae98af386c2c7c0aa5995", "score": "0.5722728", "text": "@Override\r\n\tpublic void nmi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "90a583a9686287e3374351dca59e3033", "score": "0.5721252", "text": "@Override\r\n\tpublic void abrir() {\n\r\n\t}", "title": "" }, { "docid": "d629c4ad6266d296b13a93bb0c7f8c66", "score": "0.57098395", "text": "@Override\r\n public void init()\r\n {\n\r\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.57009", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.57009", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "f375646c5bc224c29261414f3cb81b04", "score": "0.5698128", "text": "@Override\n public int qualiteRelation() {\n return 0;\n }", "title": "" }, { "docid": "5592333c90e75bae58a686b24b05d894", "score": "0.56936616", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.569019", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.5687825", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5687257", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.56847596", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "57f5caef4402cc8ce13e81561eaa9e43", "score": "0.56793326", "text": "@Override\r\n\tpublic void pickUp() {\n\t\t\r\n\t}", "title": "" }, { "docid": "152818b619dcfcd5190a2f48bc75fa5f", "score": "0.56761104", "text": "@Override\n\tpublic void adim6() {\n\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669301", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669301", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "131c7dcebe8ac7fd010381a03bd0f405", "score": "0.56676966", "text": "@Override\r\n\tprotected void initActb() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655569", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655569", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655569", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655569", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655569", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655569", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "6392764d7ff297c1a478fc1669944649", "score": "0.565363", "text": "@Override\n\tpublic void gostar_de_carne() {\n\t\t\n\t}", "title": "" }, { "docid": "2b53548295a92f80cb7814e7e3ead131", "score": "0.5649992", "text": "@Override\n\tString frighten() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642706", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7b36e2fb2a778b8c30924f6f30758db2", "score": "0.5638894", "text": "private static void buscarId() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.5636676", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" } ]
98c4deace597cbfe065f730ed4e40a54
creates an unordered, nonsplit color class
[ { "docid": "ae28519ba0ac615e67bf5e1ade5e5997", "score": "0.5719075", "text": "public ColorClass (String name, Interval interval) {\n this(name, interval, false);\n }", "title": "" } ]
[ { "docid": "d70a3e3de8ab247b0a7c36b68ff82fa8", "score": "0.66632956", "text": "private HepRepColor() {\n }", "title": "" }, { "docid": "8652fcb3ca4a510ae06658cb64139e8c", "score": "0.66053486", "text": "public ColorClass(String name, boolean ordered) {\n this (name, new Interval(2) , ordered);\n }", "title": "" }, { "docid": "4c2e15f191fdd97e5d56fcc735907a8a", "score": "0.6488211", "text": "public ColorClass(int ide, Interval[] intervals , boolean ordered) {\n this (\"C_\"+ide, intervals, ordered );\n }", "title": "" }, { "docid": "f430bf460fd95cfee3b1a3d2b5ddde61", "score": "0.6439166", "text": "public ColorClass (int ide, Interval interval, boolean ordered) {\n this (\"C\"+ide, interval, ordered);\n }", "title": "" }, { "docid": "b658812014fe2f093dc720310088b9f6", "score": "0.64205694", "text": "public void initColors() {\n\n int i;\n float j;\n\n int start;\n int numShades = 5;\n float shadeInc = 1 / (float) numShades;\n\n\n aColors = new Color[glb.MAXCOLORS]; /* set array size */\n\n\n /* White to Black */\n start = 0;\n for (i = start, j = 1; i < start + 6; j -= shadeInc, i++) {\n aColors[i] = new Color(j, j, j);\n }\n\n start = 6;\n /* Red to almost Magenta */\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 1, (float) 0, j);\n }\n\n\n /* Magenta to almost Blue */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color(j, (float) 0, (float) 1);\n }\n\n\n /* Blue to almost Cyan */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 0, j, (float) 1);\n }\n\n /* Cyan to almost Green */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 0, (float) 1, j);\n }\n\n\n\n /* Green to almost Yellow */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color(j, (float) 1, (float) 0);\n }\n\n /* Yellow to almost Red */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 1, j, (float) 0);\n }\n\n }", "title": "" }, { "docid": "a780a41d2268b282cdb5e00380e58aca", "score": "0.6315247", "text": "public ColorClass (int ide, boolean ordered) {\n this(\"C_\"+ide, ordered);\n }", "title": "" }, { "docid": "d5c5a4c065ba84e14604a2695b88ad66", "score": "0.6298142", "text": "private Color generateColor() {\r\n\t\tint length = nameColor.size();\r\n\t\tif(length == 0) return colorArray[0];\r\n\t\t\r\n\t\tColor lastColor = nameColor.get(length-1);\r\n\t\tint lastColorIndex = 0;\r\n\t\tfor(int i = 0; i<colorArray.length; i++) {\r\n\t\t\tif(lastColor == colorArray[i]) {\r\n\t\t\t\tlastColorIndex = i;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tColor curColor = colorArray[(lastColorIndex+1)%3];\r\n\t\treturn curColor;\r\n\t}", "title": "" }, { "docid": "854749320da7561fcddb7437c90c8a02", "score": "0.6233777", "text": "public ColorClass(String name, Interval[] intervals, boolean ordered) {\n super(name);\n int len;\n if (intervals == null || (len = intervals.length) == 0) \n throw new IllegalArgumentException(\"cannot create a color class: null or zero lenght constraint\");\n \n if (len == 1 && ( intervals[0].lb()==0 || intervals[0].lb()==1 && (ordered || intervals[0].ub() != 1) /*|| intervals[0].lb() < 2*/) ) \n throw new IllegalArgumentException(\"cannot create a color class: class must be of cardinality > 1 or exaclty of card. 1 (and unordered)\");\n \n if (len > 1) {//split class\n int not_single = 0;//counts for non single-value intervals\n for(Interval x: intervals) \n if (x.lb() < 1 || !x.singleValue() && (ordered || ++not_single > 1) ) \n throw new IllegalArgumentException(\"cannot create a color class: subclass lower bound < 1 or many parametric subclasses or ordered parametric subclass\");\n }\n \n this.constraints = intervals;\n this.ordered = ordered;\n }", "title": "" }, { "docid": "23b29f5418ae2faddf747350f3a0d5c2", "score": "0.6229401", "text": "public TetrisColors() {\n\t\treset();\t\n\t}", "title": "" }, { "docid": "31fdf22fb03d1a8df721e82eb9e652f0", "score": "0.62209934", "text": "public ColorList () { \n\t\t\n\t}", "title": "" }, { "docid": "02f9bd2f14ee14bd23073e84fd9f7532", "score": "0.62099594", "text": "public ColorRenderer() {\r\n\t}", "title": "" }, { "docid": "28ff44b6ce05ff7680beb10dd4ba4919", "score": "0.6180873", "text": "Color(int R, int G, int B) {\r\n\t\t this.rgb = new RGB(R,G,B);\r\n\t\t this.colorific = true;\r\n\t }", "title": "" }, { "docid": "e0bf7214a71fe9f552710a746411daa6", "score": "0.6177998", "text": "RGB getNewColor();", "title": "" }, { "docid": "ca284394192953a3df6af219d828b591", "score": "0.6107054", "text": "public Color() {\n\n\t\tthis(0, 0, 0);\n\t}", "title": "" }, { "docid": "f021734a42666778f225774e9598b9e7", "score": "0.607316", "text": "public ColorClass (String name, Interval interval, boolean ordered) {\n super(name);\n this.constraints = new Interval[] {interval};\n this.ordered = ordered;\n }", "title": "" }, { "docid": "ea02c68b2b3a7b5e428a1e372114959b", "score": "0.6046143", "text": "public CachedColorizer()\n {\n colorIndex = 3;\n }", "title": "" }, { "docid": "75c2db49b7888e3a44b76228fee42b73", "score": "0.60345405", "text": "public ColorClass( String name) {\n this(name, false);\n }", "title": "" }, { "docid": "6d4f44951827e608873b8bba8fab71a8", "score": "0.6029227", "text": "private ColorUtil() {\n }", "title": "" }, { "docid": "c8ad5071e8a28616b96c2f38916d9611", "score": "0.5995487", "text": "public ColorClass(String name, Interval[] intervals) {\n this(name, intervals, false);\n }", "title": "" }, { "docid": "e6109363524419ba40614aff588dbc8a", "score": "0.5941741", "text": "public Color colorByNeighbors() {\n float mod = maxVoltage /10f;\n float color = Math.max(0,Math.min(voltageAccumulator,mod))/mod;\n float colorNeighbors = (float)Math.max(0,Math.min(this.neighbors.size()/maxNeighbors,1.0));\n\n if(colorNeighbors<0.5f)return new Color(0.0f,0f,0f);\n\n return new Color(colorNeighbors/2f,color,color);//, 0.25f);\n }", "title": "" }, { "docid": "25cfd445970eeeefa2d06d55554f6508", "score": "0.5940807", "text": "public RGBColor () \r\n\t{\r\n\t\tr = 0; g = 0; b = 0;\r\n\t\tindex = (byte) Palm.WinRGBToIndex(this);\t\r\n\t}", "title": "" }, { "docid": "55eef0ec53a7e48afe302c468993444c", "score": "0.59301823", "text": "public abstract HSLColor toHSLColor();", "title": "" }, { "docid": "ab49609ba9000c23768f7caac0aa713d", "score": "0.59243125", "text": "private Color NewColor(int numb) {\r\n\r\n\t\tswitch(numb){\r\n\t\tcase 0: return Color.BLACK;\r\n\t\tcase 1: return Color.RED;\r\n\t\tcase 3: return Color.BLUE;\r\n\t\t}\r\n\t\treturn Color.MAGENTA;\r\n\t}", "title": "" }, { "docid": "9afa211ac34f843137ee35d0ca830edb", "score": "0.590342", "text": "public ColorClass(int ide, Interval[] intervals ) {\n this (ide, intervals, false );\n }", "title": "" }, { "docid": "c4fe91f99ec163e11c356896df36704a", "score": "0.5891638", "text": "public NewCustomColorPalette() {\n\t\tsuper();\n\t\tbuildPalette();\n\t}", "title": "" }, { "docid": "997b974dc6f72310ad53554a7a3268ac", "score": "0.5850272", "text": "private ColorUtil() {\n // do nothing\n }", "title": "" }, { "docid": "e421111904b4658c6aa9b6d5b6cb12bd", "score": "0.5840522", "text": "public Colour() {\n\t\tset(0, 0, 0);\n\t}", "title": "" }, { "docid": "0d9c2ad8382ac67fd93693d7c12bf251", "score": "0.5828467", "text": "public Color() {\n\t\tr = 0;\n\t\tg = 0;\n\t\tb = 0;\n\t}", "title": "" }, { "docid": "ef47953ba37a8e444adfd7ff1fe3654d", "score": "0.5819382", "text": "public Color newColor(){\n\t\tRandom random = new Random();\n\n\t\tint red;\n\t\tint green;\n\t\tint blue;\n\n\t\tint counter = 0;\n\n\t\tdo {\n\t\t\tred = random.nextInt(255);\n\t\t\tgreen = random.nextInt(255);\n\t\t\tblue = random.nextInt(255);\n\t\t\tcounter++;\n\t\t\t\n\t\t}while(red + green + blue < 400 && counter < 20);\n\n\t\treturn Color.rgb(red, green, blue,1);\n\t}", "title": "" }, { "docid": "4783952d07642cd1c16c639d8d929840", "score": "0.58100724", "text": "String getColor();", "title": "" }, { "docid": "02869afc444e1f56e2e48720f128b206", "score": "0.57975245", "text": "public ColorField(int rStart, int gStart, int bStart, int alphaStart, int rEnd, int gEnd, int bEnd, int alphaEnd) {\n this.rStart = rStart;\n this.gStart = gStart;\n this.bStart = bStart;\n this.alphaStart = alphaStart;\n this.rEnd = rEnd;\n this.gEnd = gEnd;\n this.bEnd = bEnd;\n this.alphaEnd = alphaEnd;\n int r = Math.abs(rStart - rEnd) / (colors.length);\n int g = Math.abs(gStart - gEnd) / (colors.length);\n int b = Math.abs(bStart - bEnd) / (colors.length);\n int alpha = Math.abs(alphaStart - alphaEnd) / (colors.length);\n for (int i = 0; i < colors.length; i++) {\n colors[i] = new Color(rStart + r * i, gStart + g * i, bStart + b * i, alphaStart + alpha * i);\n // System.out.println(colors[i].alpha);\n }\n }", "title": "" }, { "docid": "b8cded13baacef68204c574c41c52ee0", "score": "0.57957363", "text": "public ColorClass (int ide, Interval interval) {\n this(ide , interval , false);\n }", "title": "" }, { "docid": "ef818924e895954db3aaf3672fe6d809", "score": "0.5794404", "text": "private static Color newColor(int red, int green, int blue) {\n return new Color(red / 255.0, green / 255.0, blue / 255.0);\n }", "title": "" }, { "docid": "20a8606a82d997d6849a01dc784e60dc", "score": "0.57915413", "text": "abstract String getColor();", "title": "" }, { "docid": "ecb9d6ccdba41689c94af50ef5dd32f9", "score": "0.5782337", "text": "public LightBulb(RGBColor color){\r\n _color = new RGBColor(color);\r\n }", "title": "" }, { "docid": "ca879fdff5fcfd12d526c325929f9f25", "score": "0.5775333", "text": "@Override\n Color getColor() {\n return new Color(32, 83, 226, 255);\n }", "title": "" }, { "docid": "58443c5671e96cb174499d4699c9fd66", "score": "0.57661647", "text": "public ColorPalette build() throws IncorrectSplineDataException\n {\n ArrayList<Double> redList = new ArrayList<>();\n ArrayList<Double> greenList = new ArrayList<>();\n ArrayList<Double> blueList = new ArrayList<>();\n Color[] colors = {color1, color2, color3, color4, color5};\n for (int i = 0; i < colors.length; i++)\n {\n if (colors[i] != null)\n {\n redList.add(colors[i].getRed() * 255);\n greenList.add(colors[i].getGreen() * 255);\n blueList.add(colors[i].getBlue() * 255);\n }\n }\n double[] red = new double[colorsCount];\n double[] green = new double[colorsCount];\n double[] blue = new double[colorsCount];\n\n for (int i = 0; i < colorsCount; i++)\n {\n red[i] = redList.get(i);\n green[i] = greenList.get(i);\n blue[i] = blueList.get(i);\n }\n return new ColorPalette(red, green, blue);\n }", "title": "" }, { "docid": "99e71e3e143cc42978621c1c6b7d2063", "score": "0.5762692", "text": "public ColorSet()\n {\n }", "title": "" }, { "docid": "e82aa678d921022ef30f5262574d843d", "score": "0.5736767", "text": "abstract Color getColor();", "title": "" }, { "docid": "d3f0865f6900bb16ae4558c5137465ab", "score": "0.5702846", "text": "public OutlineZigzagEffect(int width, Color color) {\n/* 89 */ super(width, color);\n/* */ }", "title": "" }, { "docid": "67cce2d5f5a28e01f245105b27505597", "score": "0.57007456", "text": "public void makeRandColor(){}", "title": "" }, { "docid": "814feef18ad854cd1f9e9922397cac40", "score": "0.56980956", "text": "public static float[] createColors() {\n float[] data = new float[4 * 3];\n data[0] = 1f;\n data[1] = 0f;\n data[2] = 0f;\n data[3] = 1f;\n\n data[4] = 0f;\n data[5] = 1f;\n data[6] = 0f;\n data[7] = 1f;\n\n data[8] = 0f;\n data[9] = 0f;\n data[10] = 1f;\n data[11] = 1f;\n return data;\n }", "title": "" }, { "docid": "1dd9ae567c7a800409bec29a28b55085", "score": "0.5695305", "text": "public int getColor();", "title": "" }, { "docid": "1dd9ae567c7a800409bec29a28b55085", "score": "0.5695305", "text": "public int getColor();", "title": "" }, { "docid": "e016904b2f5b6b1ce7546915d474049f", "score": "0.5695205", "text": "public abstract BossColor getColor();", "title": "" }, { "docid": "0e2952668e38e68ef5a19addfaaafda1", "score": "0.5673771", "text": "abstract public String getColor();", "title": "" }, { "docid": "0e2952668e38e68ef5a19addfaaafda1", "score": "0.5673771", "text": "abstract public String getColor();", "title": "" }, { "docid": "95a871cdd9922b8c461334b1abbdf3d1", "score": "0.5649166", "text": "public int colorVertices();", "title": "" }, { "docid": "ce1652da60364c20fc420bc429f9c63a", "score": "0.5648097", "text": "@Override\n\tpublic Object clone() {\n\t\tTetrisColors c = new TetrisColors();\n\t\tc.bg = new Color(bg.getRGB());\n\t\tc.text = new Color(text.getRGB());\n\t\tc.z = new Color(z.getRGB());\n\t\tc.s = new Color(s.getRGB());\n\t\tc.left = new Color(left.getRGB());\n\t\tc.right = new Color(right.getRGB());\n\t\tc.line = new Color(line.getRGB());\n\t\tc.tri = new Color(tri.getRGB());\n\t\tc.square = new Color(square.getRGB());\n\t\tc.flash = new Color(flash.getRGB());\n\t\treturn c;\n\t}", "title": "" }, { "docid": "6f5af13b975af866acd489287a3f0d4d", "score": "0.563887", "text": "public ColorClass (int ide) {\n this(ide, false);\n }", "title": "" }, { "docid": "085d5990ebf5cbe67e3f2d01975b5acf", "score": "0.56318676", "text": "private ColorWithConstructor() {\n\t\tSystem.out.println(\"Constructor called for : \" + this.toString());\n\t}", "title": "" }, { "docid": "011219b7bf270984e6cf35e6a86116f0", "score": "0.56137544", "text": "protected Green() {\n\n super();\n }", "title": "" }, { "docid": "a4106a447d84f2de3a740f57f1481d45", "score": "0.5610109", "text": "public abstract Color getColor();", "title": "" }, { "docid": "2bbf06a6d4ddfb6942c2ceed5aea6667", "score": "0.5580325", "text": "@Override\r\n\tpublic String getColor() {\n\t\treturn \"white\";\r\n\t}", "title": "" }, { "docid": "70537dad66978f889feb1205503319dd", "score": "0.55765116", "text": "public static SelectiveSearchSegmentationStrategyColor createSelectiveSearchSegmentationStrategyColor()\r\n {\r\n \r\n SelectiveSearchSegmentationStrategyColor retVal = SelectiveSearchSegmentationStrategyColor.__fromPtr__(createSelectiveSearchSegmentationStrategyColor_0());\r\n \r\n return retVal;\r\n }", "title": "" }, { "docid": "8d0977ef1dc2a982d96070f7fc507682", "score": "0.55439574", "text": "public Emrld() {\n super(\n new Color(211, 242, 163),\n new Color(151, 225, 150),\n new Color(108, 192, 139),\n new Color(76, 155, 130),\n new Color(33, 122, 121),\n new Color(16, 89, 101),\n new Color(7, 64, 80)\n\n );\n\n\n }", "title": "" }, { "docid": "5da08aace5059bfc6e7d45a4e08ab66d", "score": "0.55398417", "text": "public interface MclnStatePalette {\n\n String CORE_NOTHING_COLOR = \"0xC0C0C0\";\n String CORE_CONTRADICT_COLOR = \"0xAAAAAA\";\n String CORE_UNKNOWN_COLOR = \"0xC0C0C0\";\n String CORE_POSITIVE_COLOR = \"0xFFFFFF\";\n String CORE_NEGATIVE_COLOR = \"0xFFFFFF\";\n\n String CREATION = \"0xC0C0C0\";\n String NOT_CREATION = \"0x0B0B0B\";\n String WHITE = \"0xFFFFFF\";\n String BLACK = \"0x000000\";\n\n String GRAY = \"0xCCCCCC\";\n String NOT_GRAY = \"0x333333\";\n String MID_GRAY = \"0xBBBBBB\";\n String DARK_GRAY = \"0xAAAAAA\";\n\n String RED = \"0xFF0000\";\n String NOT_RED = \"0x00FFFF\";\n String MID_RED = \"0xCC0033\";\n String DARK_RED = \"0x800040\";\n\n String GREEN = \"0x00FF00\";\n String NOT_GREEN = \"0xFF00FF\";\n String MID_GREEN = \"0x94D352\";\n String DARK_GREEN = \"0x008040\";\n\n String BLUE = \"0x0000FF\";\n String NOT_BLUE = \"0xFFFF00\";\n String MID_BLUE = \"0x0040FF\";\n String DARK_BLUE = \"0x0020BB\";\n\n String PURPLE = \"0xFF00FF\";\n String NOT_PURPLE = GREEN;\n String MID_PURPLE = \"0x9900FF\";\n String DARK_PURPLE = \"0x4000DD\";\n\n String CYAN = \"0x00FFFF\";\n String NOT_CYAN = RED;\n String MID_CYAN = \"0x31A4B1\";\n String DARK_CYAN = \"0x2C5463\";\n\n String YELLOW = \"0xFFFF00\";\n String NOT_YELLOW = BLUE;\n String MID_YELLOW = \"0x9900FF\";\n String DARK_YELLOW = \"0x4000DD\";\n\n String BROWN = \"0xdec79f\";\n String MID_BROWN = \"0xce9b4e\";\n String DARK_BROWN = \"0xc27101\";\n\n String SWAMP = \"0xc8c8aa\";\n String MID_SWAMP = \"0x999966\";\n String DARK_SWAMP = \"0xe4e640\";\n\n String PINK = \"0xFF7FBF\";\n String NOT_PINK = \"0x005555\";\n String ORANGE = \"0xFF9900\";\n String CANARY = \"0xBFFF00\";\n\n int MCLN_MIN_STATE = MclnAlgebra.MCL_CORE_MAX + 1;\n\n MclnState MCLN_CREATION_STATE = MclnState.createState(\"Creation\", MCLN_MIN_STATE, CREATION);\n MclnState MCLN_NOT_CREATION_STATE = MclnState.createState(MCLN_CREATION_STATE, \"Not Creation\", -MCLN_MIN_STATE,\n NOT_CREATION);\n//\n// MclnState MCLN_CREATION_STATE = MclnState.createState(\"Creation\", MCLN_MIN_STATE, CREATION);\n// MclnState MCLN_NOT_CREATION_STATE = MclnState.createState(MCLN_CREATION_STATE, \"Not Creation\", -MCLN_MIN_STATE, NOT_CREATION);\n//\n// MclnState MCLN_STATE_GRAY = MclnState.createState(\"Gray\", (MCLN_MIN_STATE + 1) , GRAY);\n// MclnState MCLN_STATE_NOT_GRAY = MclnState.createState(MCLN_STATE_GRAY, \"Not Gray\", -(MCLN_MIN_STATE + 1), NOT_GRAY);\n//\n// MclnState MCLN_STATE_RED = MclnState.createState(\"Red\", (MCLN_MIN_STATE + 2), RED);\n// MclnState MCLN_STATE_NOT_RED = MclnState.createState(MCLN_STATE_RED, \"Not Red\", -(MCLN_MIN_STATE + 2), NOT_RED);\n//\n// MclnState MCLN_STATE_GREEN = MclnState.createState(\"Green\", (MCLN_MIN_STATE + 3), GREEN);\n// MclnState MCLN_STATE_NOT_GREEN = MclnState.createState(MCLN_STATE_GREEN, \"Not Green\", -(MCLN_MIN_STATE + 3), NOT_GREEN);\n//\n// MclnState MCLN_STATE_BLUE = MclnState.createState(\"Blue\", (MCLN_MIN_STATE + 4), BLUE);\n// MclnState MCLN_STATE_NOT_BLUE = MclnState.createState(MCLN_STATE_BLUE, \"Not Blue\", -(MCLN_MIN_STATE + 4), NOT_BLUE);\n//\n// MclnState MCLN_STATE_DARK_BLUE = MclnState.createState(\"Dark blue\", (MCLN_MIN_STATE + 5), DARK_BLUE);\n// MclnState MCLN_STATE_NOT_DARK_BLUE = MclnState.createState(MCLN_STATE_DARK_BLUE, \"Not Dark blue\", -(MCLN_MIN_STATE + 5), NOT_DARK_BLUE);\n//\n// MclnState MCLN_STATE_PINK = MclnState.createState(\"Pink\", (MCLN_MIN_STATE + 6), PINK);\n// MclnState MCLN_STATE_NOT_PINK = MclnState.createState(MCLN_STATE_PINK, \"Not Pink\", -(MCLN_MIN_STATE + 6), NOT_PINK);\n//\n// MclnState MCLN_STATE_DARK_GREEN = MclnState.createState(\"Dark Brown\", (MCLN_MIN_STATE + 7), DARK_GREEN);\n\n public List<MclnState> getAvailableStates();\n\n /**\n * @param color\n * @return\n */\n public MclnState getState(String color);\n\n// String CREATION_COLOR = \"0xC0C0C0\";\n// MclnState CREATION_MCLN_STATE = MclnState.createState(\"Creation State\", 0, CREATION_COLOR);\n\n// int mclnPaletteMax = 10 * 2;\n// int RED = 0xFF0000;\n// int NOT_RED = 0x00FFFF;\n// int GREEN = 0x00FF00;\n// int NOT_GREEN = 0xFF00FF;\n// int BLUE = 0x0000FF;\n// int NOT_BLUE = 0xFFFF00;\n// int YELLOW = NOT_BLUE;\n// int NOT_YELLOW = BLUE;\n// int MAGENTA = NOT_GREEN;\n// int NOT_MAGENTA = GREEN;\n// int CYAN = NOT_RED;\n// int NOT_CYAN = RED;\n// int PINK = 0xFFAAAA;\n// int NOT_PINK = 0x005555;\n//\n// int WHITE = 0xFFFFFF;\n// int VERY_LIGHT_CIAN = 0xCCFFFF;\n// int VERY_LIGHT_BLUE = 0xCCCCFF;\n// int VERY_LIGHT_MAGENTA = 0xCCFFCC;\n// int VERY_LIGHT_RED = 0xFFCCCC;\n// int VERY_LIGHT_YELLOW = 0xFFFFCC;\n//\n//\n// int DARK_RED = 0xCC0000;\n// int DARK_CIAN = 0x00CCCC;\n// int DARK_GREEN = 0x00CC00;\n// int DARK_MAGENTA = 0xCC00CC;\n// int DARK_BLUE = 0x0000CC;\n// int DARK_YELLOW = 0xCCCC00;\n//\n// int VERY_DARK_CIAN = 0x006666;\n// int VERY_DARK_BLUE1 = 0x003366;\n// int VERY_DARK_BLUE2 = 0x000066;\n// int VERY_DARK_BLUE3 = 0x330066;\n// int VERY_DARK_MAGENTA = 0x660066;\n// int VERY_DARK_RED1 = 0x660033;\n// int VERY_DARK_RED2 = 0x660000;\n// int VERY_DARK_RED3 = 0x663300;\n// int VERY_DARK_YELLOW = 0x666600;\n// int VERY_DARK_GREEN1 = 0x336600;\n// int VERY_DARK_GREEN2 = 0x006600;\n// int VERY_DARK_GREEN3 = 0x006633;\n//\n//\n//\n// MclnState getState(Integer color);\n//\n//// Integer getActiveState(Color color) {\n//// return activeColorPalette.get(color);\n//// }\n////\n//// Color getActiveColor(Integer state) {\n//// return activeStatePalette.get(state);\n//// }\n\n}", "title": "" }, { "docid": "7d2dd572dde9b85677be0a84d7e670d2", "score": "0.5508495", "text": "private static Map<Character, Color> createColorMap() {\n\n final Map<Character, Color> map = new HashMap<Character, Color>();\n map.put(' ', NO_COLOR);\n map.put(Block.I.getChar(), I_COLOR);\n map.put(Block.O.getChar(), O_COLOR);\n map.put(Block.J.getChar(), J_COLOR);\n map.put(Block.L.getChar(), L_COLOR);\n map.put(Block.Z.getChar(), Z_COLOR);\n map.put(Block.S.getChar(), S_COLOR);\n map.put(Block.T.getChar(), T_COLOR);\n return map;\n }", "title": "" }, { "docid": "0e9b27887bf245e121a782b69c0f90c8", "score": "0.55050683", "text": "public ColorsParser() {\n colorMap.put(\"black\", Color.BLACK);\n colorMap.put(\"blue\", Color.BLUE);\n colorMap.put(\"cyan\", Color.CYAN);\n colorMap.put(\"darkgray\", Color.DARK_GRAY);\n colorMap.put(\"gray\", Color.GRAY);\n colorMap.put(\"green\", Color.GREEN);\n colorMap.put(\"lightGray\", Color.LIGHT_GRAY);\n colorMap.put(\"magenta\", Color.MAGENTA);\n colorMap.put(\"orange\", Color.ORANGE);\n colorMap.put(\"pink\", Color.PINK);\n colorMap.put(\"white\", Color.WHITE);\n colorMap.put(\"yellow\", Color.YELLOW);\n colorMap.put(\"red\", Color.RED);\n\n colorMap.put(\"BLACK\", Color.BLACK);\n colorMap.put(\"BLUE\", Color.BLUE);\n colorMap.put(\"CYAN\", Color.CYAN);\n colorMap.put(\"DARKGRAY\", Color.DARK_GRAY);\n colorMap.put(\"GRAY\", Color.GRAY);\n colorMap.put(\"GREEN\", Color.GREEN);\n colorMap.put(\"LIGHTGRAY\", Color.LIGHT_GRAY);\n colorMap.put(\"MAGENTA\", Color.MAGENTA);\n colorMap.put(\"ORANGE\", Color.ORANGE);\n colorMap.put(\"PINK\", Color.PINK);\n colorMap.put(\"WHITE\", Color.WHITE);\n colorMap.put(\"YELLOW\", Color.YELLOW);\n colorMap.put(\"RED\", Color.RED);\n\n\n }", "title": "" }, { "docid": "5eab48924d1f1fc465b017e496a7bd40", "score": "0.549426", "text": "public static void populateColors() {\n colors.put(0,Color.rgb(238, 228, 218, 0.35)); //empty tile\n colors.put(2, Color.rgb(238, 228, 218));\n colors.put(4, Color.rgb(237, 224, 200));\n colors.put(8,Color.rgb(242, 177, 121));\n colors.put(16, Color.rgb(245, 149, 99));\n colors.put(32,Color.rgb(246, 124, 95));\n colors.put(64,Color.rgb(246, 94, 59));\n colors.put(128,Color.rgb(237, 207, 114));\n colors.put(256,Color.rgb(237, 204, 97));\n colors.put(512,Color.rgb(237, 200, 80));\n colors.put(1024,Color.rgb(237, 197, 63));\n colors.put(2048,Color.rgb(237, 194, 46));\n colors.put(4096,Color.rgb(237, 194, 46));\n colors.put(8192,Color.rgb(237, 194, 46));\n\n }", "title": "" }, { "docid": "e230ec80f1df488f91ad1cfc47c3fdb6", "score": "0.5484595", "text": "java.awt.Color getColor();", "title": "" }, { "docid": "6138c28045ca1c933df2170c5be9c61f", "score": "0.547284", "text": "Color getColor();", "title": "" }, { "docid": "6138c28045ca1c933df2170c5be9c61f", "score": "0.547284", "text": "Color getColor();", "title": "" }, { "docid": "6138c28045ca1c933df2170c5be9c61f", "score": "0.547284", "text": "Color getColor();", "title": "" }, { "docid": "6138c28045ca1c933df2170c5be9c61f", "score": "0.547284", "text": "Color getColor();", "title": "" }, { "docid": "6138c28045ca1c933df2170c5be9c61f", "score": "0.547284", "text": "Color getColor();", "title": "" }, { "docid": "13bd374ccfdf2e7900d4de68a54f1b82", "score": "0.546196", "text": "public Color recupColor(int nb){\r\n\t\tColor color;\r\n\t\tif(nb == 1){\r\n\t\t\tcolor = Config.colorJ1;\r\n\t\t}\r\n\t\telse if(nb == 2){\r\n\t\t\tcolor = Config.colorJ2;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcolor =\tConfig.colorVide;\r\n\t\t}\r\n\t\treturn color;\r\n\t}", "title": "" }, { "docid": "be053deb8a8fba303ad6f3e1a3da53b8", "score": "0.54356015", "text": "int getColorDepth();", "title": "" }, { "docid": "ada1705fc1fdaad1c0b6b510f75c87c3", "score": "0.54252565", "text": "public ColorWeight()\n {\n weight = 0;\n }", "title": "" }, { "docid": "3cf2f1701d4597883a55d094f5ece3bb", "score": "0.54178405", "text": "@Override\n\t\tpublic Color color() { return color; }", "title": "" }, { "docid": "119f2bbc4d8b3d7e1f2b2d6384b19b92", "score": "0.5415642", "text": "private void initRelationsColors() {\n for (int i=0;i<20;i++) {\n int r = 255-(i*12);\n int gb = 38-(i*2);\n relationsC[i] = newColor(r,gb,gb);\n }\n // do green.. 20-39, dark to bright\n for (int i=0;i<20;i++) {\n int g = 17+(i*12);\n int rb = i*2;\n relationsC[20+i] = newColor(rb,g,rb);\n }\n }", "title": "" }, { "docid": "53aec61f5055af4ebf1b9ed666be7e71", "score": "0.54133254", "text": "private ColorWheel() {\n pCount = 0;\n sCount = 0;\n }", "title": "" }, { "docid": "c1b73e81b035d35e00a5a091dba88587", "score": "0.54077363", "text": "abstract Color nodeColor(String node);", "title": "" }, { "docid": "92a8ee8db786da44c0df143a1ae4570a", "score": "0.5403993", "text": "public Collection(char colour) { /* ... code ... */ }", "title": "" }, { "docid": "6cd3319e20a8e26efb599c1531ecd1b9", "score": "0.54027367", "text": "public Color getColor();", "title": "" }, { "docid": "6cd3319e20a8e26efb599c1531ecd1b9", "score": "0.54027367", "text": "public Color getColor();", "title": "" }, { "docid": "6cd3319e20a8e26efb599c1531ecd1b9", "score": "0.54027367", "text": "public Color getColor();", "title": "" }, { "docid": "41d2d6411c46b2f3dfb2699806e648ba", "score": "0.539637", "text": "public CustomColorPalette(int nbColors) {\n\t\tsuper();\n\t\tbuildPalette(nbColors);\n\t}", "title": "" }, { "docid": "af7dc68a246a8b8d9e8c442094152c99", "score": "0.5379031", "text": "protected Color createColor(int red, int green, int blue, int alpha) {\n if ((red <= 1) && (green <= 1) && (blue <= 1) && ((alpha <= 1) || (alpha == 255))) {\n // rgba either 0 or 1\n Color c = new Color((float)red, (float)green, (float)blue, (alpha == 255) ? 1.0f : (float)alpha);\n// System.out.println(c);\n return c;\n }\n return super.createColor(red, green, blue, alpha);\n }", "title": "" }, { "docid": "d47720bbf579e76926c95ce17e07c189", "score": "0.53774583", "text": "public Color getColorObject() {\n switch (this) {\n case WHITE:\n return new Color(255,255,255);\n case BLACK:\n return new Color(0,0,0);\n case RED:\n return new Color(255,0,0);\n case GREEN:\n return new Color(0,255,0);\n case BLUE:\n return new Color(0,0,255);\n default:\n return null;\n }\n\n }", "title": "" }, { "docid": "8a71a12b40ed254df6e8d51b8c03eee4", "score": "0.5353841", "text": "public Palette() {\n\t\tpaletteOfColorsHex = new ArrayList<>();\n\t\torderedOutputColors = new HashMap<>();\n\t\timgLuminanceIdxs = new HashMap<>();\n\t}", "title": "" }, { "docid": "bbaf12b387a2cf546fbb9675780fb5a0", "score": "0.53503495", "text": "private ArrayList<Color> createColorArray(){\n ArrayList<Color> out = new ArrayList<>();\n out.add(detectColor((String) Objects.requireNonNull(P1color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P2color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P3color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P4color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P5color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P6color.getSelectedItem())));\n return out;\n }", "title": "" }, { "docid": "8a29fd5784f1380886943ca339272fdd", "score": "0.53496534", "text": "public String getColor() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f37c663f322a4d170bd05508de7e8441", "score": "0.5348858", "text": "ClrConst(Color color)\n {\n this(Color.RGBtoHSB(\n color.getRed(), \n color.getGreen(),\n color.getBlue(), null)[0]);\n }", "title": "" }, { "docid": "30476918914ca731b1ff0ea3048068f2", "score": "0.53477895", "text": "@Override\n public String toString() {\n return color.name();\n }", "title": "" }, { "docid": "8667358d29dbfd3b78a7c50823dd0f1d", "score": "0.5335287", "text": "protected Image makeColorWheel() {\r\n int x, y;\r\n float[] hsb = new float[3];\r\n\r\n Image image = createImage(colorWheelWidth, colorWheelWidth);\r\n if (image == null)\r\n return null;\r\n\r\n Graphics g = image.getGraphics();\r\n\r\n g.setColor(getBackground());\r\n g.fillRect(0, 0, colorWheelWidth, colorWheelWidth);\r\n\r\n int offset = selectDiameter / 2;\r\n for (y = 0; y <= diameter; y++) {\r\n for (x = 0; x <= diameter; x++) {\r\n if (getColorAt(hsb, x, y, true)) {\r\n g.setColor(Color.getHSBColor(hsb[0], hsb[1], hsb[2]));\r\n g.drawLine(x + offset, y + offset, x + offset, y + offset);\r\n }\r\n }\r\n }\r\n g.dispose();\r\n return image;\r\n }", "title": "" }, { "docid": "dcf288bec0bb15d04bbfa7a83face47f", "score": "0.53349423", "text": "public ColorPallete(Color[] colorKeys, int colorCount){\r\n // number of colors in each two color section of the total gradient = total # of colors / # of sections\r\n int gradientResolution = colorCount / (colorKeys.length - 1);\r\n this.colors = createGradient(colorKeys, gradientResolution);\r\n }", "title": "" }, { "docid": "5d235e3727d7996f354fb45036cc06e0", "score": "0.5328023", "text": "public char getColor();", "title": "" }, { "docid": "4d3f8a2a4dcd140dd8f9ca734cc5d442", "score": "0.5327528", "text": "public Color getColor() { return color; }", "title": "" }, { "docid": "2c1537534ec2fb74566ed71241de9f16", "score": "0.53211725", "text": "public Vivid() {\n super(\n new Color(229, 134, 6),\n new Color(93, 105, 177),\n new Color(82, 188, 163),\n new Color(153, 201, 69),\n new Color(204, 97, 176),\n new Color(36, 121, 108),\n new Color(218, 165, 27),\n new Color(47, 138, 196),\n new Color(118, 78, 159),\n new Color(237, 100, 90),\n new Color(204, 58, 142),\n new Color(165, 170, 153)\n\n );\n\n }", "title": "" }, { "docid": "b04317703783757f2c66aa2856ece3ff", "score": "0.53186893", "text": "public LightBulb(int red, int green,int blue){\r\n _switchedOn=false;\r\n\t\tif ((red < 0)||(red > 255)||(green < 0)||(green > 255)||(blue < 0)\r\n\t\t\t\t||(blue > 255)){\r\n\t\t\t_color = new RGBColor();\r\n\t\t}\r\n\t\telse {\r\n\t\t\t_color = new RGBColor(red, green, blue);\r\n\t\t}\r\n\t\r\n }", "title": "" }, { "docid": "a0e398c9459bd084fb381a4e7791f9d2", "score": "0.53154415", "text": "public String getColorString();", "title": "" }, { "docid": "5aba3f022375032f48310f3d000acce9", "score": "0.5314637", "text": "protected Color[] generatePlotColors(int numLayers){\n\t\tColor[] clrs = new Color[numLayers];\n\t\t\n\t\t//the first layer is the backgound, so this shouldn't really\n\t\t//ever be used\n\t\tclrs[0] = Color.BLACK;\n\n\t\t//the raw data\n\t\tclrs[1] = Color.GRAY;\n\n\t\t//TODO: this should be changed to a more robust method\n\t\tint colorIdx;\n\t\tfor(int i = 2; i < numLayers; i++){\n\t\t\tcolorIdx = i % 4;\n\t\t\tswitch(colorIdx){\n\t\t\t\tcase 0:{\n\t\t\t\t\tclrs[i] = D2KColors.D2K_BLUE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 1:{\n\t\t\t\t\tclrs[i] = D2KColors.D2K_RED;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 2:{\n\t\t\t\t\tclrs[i] = D2KColors.D2K_GREEN;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 3:{\n\t\t\t\t\tclrs[i] = D2KColors.D2K_YELLOW;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:{\n\t\t\t\t\tSystem.out.println(\"Problem With Color Assignment\");\n\t\t\t\t\tclrs[i] = Color.MAGENTA;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn clrs;\n\t}", "title": "" }, { "docid": "d31047980320d05979c2cdede0d7d620", "score": "0.53141606", "text": "RGB getOldColor();", "title": "" }, { "docid": "388e6eeb9b50af57978a5484c1a2e6e2", "score": "0.53095174", "text": "public GameColor getColor();", "title": "" }, { "docid": "071bbb7194ce63d8c0f3753666aa3f5b", "score": "0.53057355", "text": "public abstract int rgbColor(double u, double v);", "title": "" }, { "docid": "58dfc574cd712192e725593121580ed7", "score": "0.5301314", "text": "public Board(String[] colors){\n for(int i = 0; i<156; i++){\n spaces.add(colors[i%6]); //loops through the colors and adds them all to a list\n }\n }", "title": "" }, { "docid": "b2f00237975ac28761e0bd511a36499d", "score": "0.5296416", "text": "public void init_colors(Color c1,Color c2,Color c3,Color c4){\n\t\tcolors = new Color [100];\n\t\tfor (int i = 0; i < 33; i++){\n\t\t\tdouble f = ((double)i) / 32;\n\t\t\tcolors[i] = new Color(\n\t\t\t\tclamp((int)( c1.getRed() + (f * (c2.getRed() - c1.getRed())) )),\n\t\t\t\tclamp((int)( c1.getGreen() + (f * (c2.getGreen() - c1.getGreen())) )),\n\t\t\t\tclamp((int)( c1.getBlue() + (f * (c2.getBlue() - c1.getBlue())) ))\n\t\t\t);\n\t\t}\n\t\tfor (int i = 33; i < 66; i++){\n\t\t\tdouble f = ((double)(i - 33)) / 32;\n\t\t\tcolors[i] = new Color(\n\t\t\t\tclamp((int)( c2.getRed() + (f * (c3.getRed() - c2.getRed())) )),\n\t\t\t\tclamp((int)( c2.getGreen() + (f * (c3.getGreen() - c2.getGreen())) )),\n\t\t\t\tclamp((int)( c2.getBlue() + (f * (c3.getBlue() - c2.getBlue())) ))\n\t\t\t);\n\t\t}\n\t\tfor (int i = 66; i < 100; i++){\n\t\t\tdouble f = ((double)(i - 66)) / 32;\n\t\t\tcolors[i] = new Color(\n\t\t\t\tclamp((int)( c3.getRed() + (f * (c4.getRed() - c3.getRed())) )),\n\t\t\t\tclamp((int)( c3.getGreen() + (f * (c4.getGreen() - c3.getGreen())) )),\n\t\t\t\tclamp((int)( c3.getBlue() + (f * (c4.getBlue() - c3.getBlue())) ))\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "79f461f9b00b1990fec21c54954fead3", "score": "0.52896404", "text": "public abstract RGBIColor toRGBColor();", "title": "" }, { "docid": "3c9e514917ee9005c468a412b648d086", "score": "0.52893955", "text": "@Override\n public Color getColor() {\n return color;\n }", "title": "" } ]
30f5617dfedc5648a5bfdfcc15244ad8
This method was generated by MyBatis Generator. This method sets the value of the database column ei_net_order.eino_consignee_ebsa_mobile
[ { "docid": "6ab266471c5d4755a40eb0a59cf68cb3", "score": "0.7911257", "text": "public void setEinoConsigneeEbsaMobile(String einoConsigneeEbsaMobile) {\r\n this.einoConsigneeEbsaMobile = einoConsigneeEbsaMobile;\r\n }", "title": "" } ]
[ { "docid": "4ef281f5e7e49d921232a0e770f4796b", "score": "0.6777502", "text": "public String getEinoConsigneeEbsaMobile() {\r\n return einoConsigneeEbsaMobile;\r\n }", "title": "" }, { "docid": "00ccf03eb82c46594946c53ebbf2d9b6", "score": "0.67759573", "text": "public void setEinoShipperEbsaMobile(String einoShipperEbsaMobile) {\r\n this.einoShipperEbsaMobile = einoShipperEbsaMobile;\r\n }", "title": "" }, { "docid": "ff52d25221f5c64839f710386c29444f", "score": "0.62294793", "text": "public void setMobile(Long mobile) {\n this.mobile = mobile;\n }", "title": "" }, { "docid": "93ab65d66e85ba78768e12d5bc6b176a", "score": "0.62036765", "text": "public void setEinoConsigneeEbsaTel(String einoConsigneeEbsaTel) {\r\n this.einoConsigneeEbsaTel = einoConsigneeEbsaTel;\r\n }", "title": "" }, { "docid": "90736297e271e00d6d1beb16acf7e33a", "score": "0.6202409", "text": "public void setMobile(String mobile) {\r\n this.mobile = mobile;\r\n }", "title": "" }, { "docid": "6377e85df564f26306138a8d976aa384", "score": "0.6161725", "text": "public void setMobile(String mobile) {\n this.mobile = mobile;\n }", "title": "" }, { "docid": "6377e85df564f26306138a8d976aa384", "score": "0.6161725", "text": "public void setMobile(String mobile) {\n this.mobile = mobile;\n }", "title": "" }, { "docid": "6377e85df564f26306138a8d976aa384", "score": "0.6161725", "text": "public void setMobile(String mobile) {\n this.mobile = mobile;\n }", "title": "" }, { "docid": "6377e85df564f26306138a8d976aa384", "score": "0.6161725", "text": "public void setMobile(String mobile) {\n this.mobile = mobile;\n }", "title": "" }, { "docid": "eb024644ce0d825f3bd5eccf8f85436b", "score": "0.60754126", "text": "public void setEinoConsigneeEbsaContact(String einoConsigneeEbsaContact) {\r\n this.einoConsigneeEbsaContact = einoConsigneeEbsaContact;\r\n }", "title": "" }, { "docid": "761590e8005a6c7cffb2dd757d01959b", "score": "0.60585886", "text": "public void setMobileNo(String newMobileNo) {\n this.mobileNo = newMobileNo;\n }", "title": "" }, { "docid": "bf79bffeced33f43b09e3c067affc75e", "score": "0.6020915", "text": "public void setMobile(java.lang.String mobile) {\r\n this.mobile = mobile;\r\n }", "title": "" }, { "docid": "04c5611801badd8e3f5d91fc52d2be5c", "score": "0.6012827", "text": "public void setMobile_os(String mobile_os) {\n this.mobile_os = mobile_os;\n }", "title": "" }, { "docid": "aad4d29646a821eaf651d2f325939e7d", "score": "0.5990347", "text": "public void setMobile(java.lang.String param){\n \n this.localMobile=param;\n \n\n }", "title": "" }, { "docid": "31eb5835969f220692e1e9285c5782e9", "score": "0.5988183", "text": "public void setMobile(java.lang.String mobile) {\n this.mobile = mobile;\n }", "title": "" }, { "docid": "31eb5835969f220692e1e9285c5782e9", "score": "0.5988183", "text": "public void setMobile(java.lang.String mobile) {\n this.mobile = mobile;\n }", "title": "" }, { "docid": "b68df045c54a8a15683180a692acbad1", "score": "0.59733224", "text": "public void setApplicantMobile(String value) {\n setAttributeInternal(APPLICANTMOBILE, value);\n }", "title": "" }, { "docid": "d3354771894baef8d340c6589e73b954", "score": "0.5925076", "text": "public void setMobile(String mobile) {\r\n this.mobile = mobile == null ? null : mobile.trim();\r\n }", "title": "" }, { "docid": "d3354771894baef8d340c6589e73b954", "score": "0.5925076", "text": "public void setMobile(String mobile) {\r\n this.mobile = mobile == null ? null : mobile.trim();\r\n }", "title": "" }, { "docid": "a9ecf86728cf48d91e11ea2d9ccdbf71", "score": "0.59146637", "text": "public void setMobile(String mobile) {\n this.mobile = mobile == null ? null : mobile.trim();\n }", "title": "" }, { "docid": "a9ecf86728cf48d91e11ea2d9ccdbf71", "score": "0.59146637", "text": "public void setMobile(String mobile) {\n this.mobile = mobile == null ? null : mobile.trim();\n }", "title": "" }, { "docid": "a9ecf86728cf48d91e11ea2d9ccdbf71", "score": "0.59146637", "text": "public void setMobile(String mobile) {\n this.mobile = mobile == null ? null : mobile.trim();\n }", "title": "" }, { "docid": "a9ecf86728cf48d91e11ea2d9ccdbf71", "score": "0.59146637", "text": "public void setMobile(String mobile) {\n this.mobile = mobile == null ? null : mobile.trim();\n }", "title": "" }, { "docid": "fbe97388988cbccf4122d4f3d513aeff", "score": "0.5904387", "text": "public void setMobileNo(String mobileNo)\n\t{\n\t\tthis.mobileNo = mobileNo;\n\t}", "title": "" }, { "docid": "0f80809aa77474e67c5890820e83a706", "score": "0.5875035", "text": "public void setContactMobile(String contactMobile) {\n this.contactMobile = contactMobile == null ? null : contactMobile.trim();\n }", "title": "" }, { "docid": "d60b51ba4d5ec0ecbc2712fe88b3f3f6", "score": "0.5793198", "text": "public void setMobileCountryCode(int mcc)\n {\n this.mobileCountryCode = mcc;\n }", "title": "" }, { "docid": "c2d7d4648f9637b682642cefd89acf69", "score": "0.5784699", "text": "public void setConsigneephone(String consigneephone) {\n this.consigneephone = consigneephone == null ? null : consigneephone.trim();\n }", "title": "" }, { "docid": "7336d2ac60bd2f3a908c61fa26f96d18", "score": "0.57597387", "text": "public void setMOBILE(String MOBILE)\r\n {\r\n\tthis.MOBILE = MOBILE == null ? null : MOBILE.trim();\r\n }", "title": "" }, { "docid": "7336d2ac60bd2f3a908c61fa26f96d18", "score": "0.57597387", "text": "public void setMOBILE(String MOBILE)\r\n {\r\n\tthis.MOBILE = MOBILE == null ? null : MOBILE.trim();\r\n }", "title": "" }, { "docid": "7053c8983a5f8731d2f8de4d3642cb28", "score": "0.57425183", "text": "public void setEinoConsigneeEbsaAreaCode(String einoConsigneeEbsaAreaCode) {\r\n this.einoConsigneeEbsaAreaCode = einoConsigneeEbsaAreaCode;\r\n }", "title": "" }, { "docid": "194baa79c750488dff3abcff9f1d4b7f", "score": "0.57418513", "text": "public void setEnterpriseUSCcode(String enterpriseUSCcode)\n/* */ {\n/* 367 */ this.enterpriseUSCcode = enterpriseUSCcode;\n/* */ }", "title": "" }, { "docid": "cbde2a9eea00abb5bd0d9aef136541ca", "score": "0.57316107", "text": "public void setMOBILE_NO(String MOBILE_NO) {\r\n this.MOBILE_NO = MOBILE_NO == null ? null : MOBILE_NO.trim();\r\n }", "title": "" }, { "docid": "1dc1d47f75dbf8ace4adb40477987ce5", "score": "0.5695698", "text": "public String getEinoShipperEbsaMobile() {\r\n return einoShipperEbsaMobile;\r\n }", "title": "" }, { "docid": "338af51e79b33c6c04d668d5098f3510", "score": "0.5616718", "text": "@Override\n\tpublic void setMobilephone(String mobilephone) {\n\t\t_registration.setMobilephone(mobilephone);\n\t}", "title": "" }, { "docid": "b0df45eeec5a97932fd2d4250f200f3a", "score": "0.56049967", "text": "public void setMobilePhone(String mobilePhone) {\n this.mobilePhone = mobilePhone == null ? null : mobilePhone.trim();\n }", "title": "" }, { "docid": "04e49b3398552c989ea2bc22861b232b", "score": "0.55924165", "text": "public void setEinoConsigneeEbsaAddress(String einoConsigneeEbsaAddress) {\r\n this.einoConsigneeEbsaAddress = einoConsigneeEbsaAddress;\r\n }", "title": "" }, { "docid": "737aa4ae7c35fc628b036fc6a4671fd0", "score": "0.5502482", "text": "public void setMobileNumber(java.lang.String value) {\n this.mobileNumber = value;\n }", "title": "" }, { "docid": "5659cdd4355faaae9c8d97e7584e1c10", "score": "0.54609823", "text": "public void setReceiverMobile(String receiverMobile) {\n this.receiverMobile = receiverMobile == null ? null : receiverMobile.trim();\n }", "title": "" }, { "docid": "6a25760eb8975f94fea44862449099f2", "score": "0.5443185", "text": "public void setEinoShipperEbsaContact(String einoShipperEbsaContact) {\r\n this.einoShipperEbsaContact = einoShipperEbsaContact;\r\n }", "title": "" }, { "docid": "f6de4906aee03a518f85113198e81ab3", "score": "0.5441209", "text": "public String getContactMobile() {\n return contactMobile;\n }", "title": "" }, { "docid": "34ca4c7ce5c33113029a86ddae660105", "score": "0.5440794", "text": "public void setEinoEscoSecondCode(String einoEscoSecondCode) {\r\n this.einoEscoSecondCode = einoEscoSecondCode;\r\n }", "title": "" }, { "docid": "0be58c905b9065f4ea35c1f28575c61f", "score": "0.54231316", "text": "public void setMobileNumber(String mobileNumber) {\n\t\tthis.mobileNumber = mobileNumber;\n\t\t\n\t}", "title": "" }, { "docid": "16749b05d183b2a95ef53ce1825b6df3", "score": "0.5389785", "text": "public void setMobileNumber(String mobileNumber){\n this.mobileNumber = mobileNumber;\n //Update hashMap value..\n hashMap.put(\"mobileNumber\", mobileNumber);\n }", "title": "" }, { "docid": "06fd2be8f1b2578dc16890886d721890", "score": "0.5387564", "text": "public void setMobile(String val) {\n\t\tsuper.setValueAtCurrentRow(MOBILE, val);\n\t}", "title": "" }, { "docid": "af32c7a8f522244093d3c511ed554281", "score": "0.53678274", "text": "public void setMobicode(String mobicode) {\n this.mobicode = mobicode;\n }", "title": "" }, { "docid": "6c0e7ca6aff7939e9b601487eb1db317", "score": "0.5313191", "text": "public Builder setCandidateMobileBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n candidateMobile_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d336fe08fdd67a4c0423360e016a1fcb", "score": "0.5288402", "text": "public Builder setCandidateMobile(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n candidateMobile_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d32d6aacb22eca1950c9c407ccd56cee", "score": "0.52827185", "text": "public void setCodigoEmpresa(String codigoEmpresa)\r\n/* 216: */ {\r\n/* 217:213 */ this.codigoEmpresa = codigoEmpresa;\r\n/* 218: */ }", "title": "" }, { "docid": "5564a0214943477a5658f64ed714c25b", "score": "0.52592134", "text": "public void setMobileTel(String mobileTel)\n {\n this.mobileTel = mobileTel;\n }", "title": "" }, { "docid": "140829ea500f7852900c02b74d4fd6c4", "score": "0.52533424", "text": "public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField885(java.lang.CharSequence value) {\n validate(fields()[885], value);\n this.field885 = value;\n fieldSetFlags()[885] = true;\n return this; \n }", "title": "" }, { "docid": "ebcd2d8607ad132e3ce69564fd1fbbd5", "score": "0.524345", "text": "public void setMobile(String mobile) {\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"mobile\", mobile);\n editor.apply();\n }", "title": "" }, { "docid": "91742391c74ae0dc4c2530cd8176333c", "score": "0.52399176", "text": "public void setEinoNumber(Long einoNumber) {\r\n this.einoNumber = einoNumber;\r\n }", "title": "" }, { "docid": "56a0e84f24c0b18e9b72a8a1f16580e9", "score": "0.52393734", "text": "public void setEinoShipperEbsaAreaCode(String einoShipperEbsaAreaCode) {\r\n this.einoShipperEbsaAreaCode = einoShipperEbsaAreaCode;\r\n }", "title": "" }, { "docid": "dc6812aff508e0a31302bb537bf45de2", "score": "0.52176714", "text": "public void setEnterpriseContact(String enterpriseContact)\n/* */ {\n/* 487 */ this.enterpriseContact = enterpriseContact;\n/* */ }", "title": "" }, { "docid": "c3874551c0d73619cffb544738fea0ab", "score": "0.52098775", "text": "public void setEinoShipperEbsaTel(String einoShipperEbsaTel) {\r\n this.einoShipperEbsaTel = einoShipperEbsaTel;\r\n }", "title": "" }, { "docid": "62bfe273a3af4c116790e5bce0d984f7", "score": "0.52087647", "text": "public Long getMobile() {\n return mobile;\n }", "title": "" }, { "docid": "5f37dc8b6c85108ff9893a6db86680cc", "score": "0.52067673", "text": "public String getMobileNo() {\n return this.mobileNo;\n }", "title": "" }, { "docid": "7af0e42ac278db6c261cf93fb3bbd8d0", "score": "0.52030486", "text": "public Mobile saveMobile(Mobile mobile){\n return mobileDao.save(mobile);\n }", "title": "" }, { "docid": "7b883df2171295ed774b4c9cdffa234c", "score": "0.5200824", "text": "public void setEinoPaymentMethod(String einoPaymentMethod) {\r\n this.einoPaymentMethod = einoPaymentMethod;\r\n }", "title": "" }, { "docid": "19a971503d3d7e49d838301ee8b4ed63", "score": "0.5187152", "text": "public void setEinoSmsNotif(String einoSmsNotif) {\r\n this.einoSmsNotif = einoSmsNotif;\r\n }", "title": "" }, { "docid": "fce5e38a5939f7f9d26412757c62e94c", "score": "0.51678073", "text": "public void setMobile(ArrayList<IMobile> mobile) {\r\n\t\tthis.mobile = mobile;\r\n\t}", "title": "" }, { "docid": "a30f020acc8ba488c633e032a12fba4d", "score": "0.5148944", "text": "public String getMobile() {\r\n return mobile;\r\n }", "title": "" }, { "docid": "a30f020acc8ba488c633e032a12fba4d", "score": "0.5148944", "text": "public String getMobile() {\r\n return mobile;\r\n }", "title": "" }, { "docid": "a30f020acc8ba488c633e032a12fba4d", "score": "0.5148944", "text": "public String getMobile() {\r\n return mobile;\r\n }", "title": "" }, { "docid": "7f99d5ee517bbf3309fb00b39d3627ae", "score": "0.5136435", "text": "public void setCompanyPhoneNo(String companyPhoneNo) {\r\n this.companyPhoneNo = companyPhoneNo;\r\n }", "title": "" }, { "docid": "fd14ee2f57e857255062b28f7c8ff3d3", "score": "0.5129291", "text": "public void setAlternateContactMobile(String alternateContactMobile) {\n\t\tthis.alternateContactMobile = alternateContactMobile;\n\t}", "title": "" }, { "docid": "c0ddf924b9b163eb73d814088b290520", "score": "0.5112973", "text": "public String getMobile() {\n return mobile;\n }", "title": "" }, { "docid": "c0ddf924b9b163eb73d814088b290520", "score": "0.5112973", "text": "public String getMobile() {\n return mobile;\n }", "title": "" }, { "docid": "c0ddf924b9b163eb73d814088b290520", "score": "0.5112973", "text": "public String getMobile() {\n return mobile;\n }", "title": "" }, { "docid": "c0ddf924b9b163eb73d814088b290520", "score": "0.5112973", "text": "public String getMobile() {\n return mobile;\n }", "title": "" }, { "docid": "c0ddf924b9b163eb73d814088b290520", "score": "0.5112973", "text": "public String getMobile() {\n return mobile;\n }", "title": "" }, { "docid": "c0ddf924b9b163eb73d814088b290520", "score": "0.5112973", "text": "public String getMobile() {\n return mobile;\n }", "title": "" }, { "docid": "c0ddf924b9b163eb73d814088b290520", "score": "0.5112973", "text": "public String getMobile() {\n return mobile;\n }", "title": "" }, { "docid": "c0ddf924b9b163eb73d814088b290520", "score": "0.5112973", "text": "public String getMobile() {\n return mobile;\n }", "title": "" }, { "docid": "22738d9f7fa5c4f099db41d52bd37c1b", "score": "0.51046157", "text": "public String getMobileNo()\n\t{\n\t\treturn mobileNo;\n\t}", "title": "" }, { "docid": "7f68daa89fd5fedfdf8a82dfab7dae48", "score": "0.50951767", "text": "public void setCodigoClienteSAP(long value) {\n this.codigoClienteSAP = value;\n }", "title": "" }, { "docid": "998994d6b787068c40ac03fa20bcc522", "score": "0.5071231", "text": "public void setEmployeePhone(String employeePhone) {\n this.employeePhone = employeePhone;\n }", "title": "" }, { "docid": "3eace840ce5b81bc5e5d6a03a532e3c6", "score": "0.50631756", "text": "@Override\n\tpublic void setCompanyphone(String companyphone) {\n\t\tmodel.setCompanyphone(companyphone);\n\t}", "title": "" }, { "docid": "099443b169a008580db2d9fdd9e57429", "score": "0.50564545", "text": "public void setEmail(String email){\n this.email = email;\n databaseUpdate();\n }", "title": "" }, { "docid": "84c989cad302d0da7300d39caec4ff00", "score": "0.50522864", "text": "public void setEinoSignBack(String einoSignBack) {\r\n this.einoSignBack = einoSignBack;\r\n }", "title": "" }, { "docid": "a136d2c3fabdc9c2fefadfb17b79d6db", "score": "0.5040395", "text": "public String getEinoConsigneeEbsaContact() {\r\n return einoConsigneeEbsaContact;\r\n }", "title": "" }, { "docid": "e1a215e9f4a71ab4b91b9be0a2811a62", "score": "0.5035612", "text": "public void setConsigneeNo(String consigneeNo) {\n this.consigneeNo = consigneeNo == null ? null : consigneeNo.trim();\n }", "title": "" }, { "docid": "db0998a006551b0174ce2c36a084faad", "score": "0.50333685", "text": "public int getMobileCountryCode()\n {\n return this.mobileCountryCode;\n }", "title": "" }, { "docid": "95a13947c3a4304bc29ab24af19a9e86", "score": "0.502254", "text": "private SmsResponse sendSmsAndSaveAuthenticationCode(String mobile) {\n\t\tint authCode = authCodeGenerator.generate();\n\t\tSmsResponse smsResponse = smsService.sendSms(mobile, \"亲爱的用户,你的注册码是\" + authCode);\n\t\tif (smsResponse == SmsResponse.SUCCESS) {\n\t\t\tsaveMobileAuthCode(mobile, String.valueOf(authCode));\n\t\t}\n\t\treturn smsResponse;\n\t}", "title": "" }, { "docid": "f73c868fa26a0807eab679c65cf2a44b", "score": "0.50181824", "text": "public com.fretron.Model.Contact.Builder setMobileNumber(java.lang.String value) {\n validate(fields()[1], value);\n this.mobileNumber = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "title": "" }, { "docid": "0ee34b630d4d2ed8246ed7b8b6a99c7a", "score": "0.5010808", "text": "public String mobile() {\n return this.mobile;\n }", "title": "" }, { "docid": "9659f05f46f115dd61ea67df4d291479", "score": "0.5009909", "text": "public String getMobileNumber(){\n return mobileNumber;\n }", "title": "" }, { "docid": "1c90438d02b248017256fdf65eb79c9a", "score": "0.4991177", "text": "public String getAlternateContactMobile() {\n\t\treturn alternateContactMobile;\n\t}", "title": "" }, { "docid": "547a92bf5d92e8630232abc695055027", "score": "0.49898538", "text": "public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField860(java.lang.CharSequence value) {\n validate(fields()[860], value);\n this.field860 = value;\n fieldSetFlags()[860] = true;\n return this; \n }", "title": "" }, { "docid": "15bcfa2e2e959e128773a9bd960de62a", "score": "0.49687594", "text": "public String getEnterpriseUSCcode()\n/* */ {\n/* 355 */ return this.enterpriseUSCcode;\n/* */ }", "title": "" }, { "docid": "0e2bd7064a615796c715f77ef9b9300c", "score": "0.49684858", "text": "public String getEinoConsigneeEbsaAreaCode() {\r\n return einoConsigneeEbsaAreaCode;\r\n }", "title": "" }, { "docid": "14659ed59f202c1adecb0f60c370ddd9", "score": "0.49598384", "text": "public void setGuarSpouseMobile(String guarSpouseMobile) {\n this.guarSpouseMobile = guarSpouseMobile == null ? null : guarSpouseMobile.trim();\n }", "title": "" }, { "docid": "bb3b81610f655717eb1701d99fe3096e", "score": "0.4958253", "text": "public Long getEinoEbccId() {\r\n return einoEbccId;\r\n }", "title": "" }, { "docid": "658c7d8ee4ff01aee140b9d50c94077e", "score": "0.495481", "text": "public void setCodigoTipoIdentificacionEmpresa(String codigoTipoIdentificacionEmpresa)\r\n/* 236: */ {\r\n/* 237:229 */ this.codigoTipoIdentificacionEmpresa = codigoTipoIdentificacionEmpresa;\r\n/* 238: */ }", "title": "" }, { "docid": "da5c9f6f0f47a642874c0782af3dedc0", "score": "0.49519074", "text": "public java.lang.String getMobile(){\n return localMobile;\n }", "title": "" }, { "docid": "1a49834d22c6a7416868f253700c5e4f", "score": "0.4945273", "text": "public String getMobile_phone() {\r\n return (String) get(\"mobile_phone\");\r\n }", "title": "" }, { "docid": "33a1ec55821020b8533e88ae5409c415", "score": "0.49445617", "text": "public void setEinoId(Long einoId) {\r\n this.einoId = einoId;\r\n }", "title": "" }, { "docid": "bc0c3d0d347f59940947f5c1a1c18cb3", "score": "0.49259588", "text": "public void setEinoCustomEbcuNameCn(String einoCustomEbcuNameCn) {\r\n this.einoCustomEbcuNameCn = einoCustomEbcuNameCn;\r\n }", "title": "" }, { "docid": "65a7fc8b7b5a2e8cb863ebac9d82a6d9", "score": "0.4916878", "text": "public void setUomCode(String value) {\n setAttributeInternal(UOMCODE, value);\n }", "title": "" }, { "docid": "3bda7b5b64f2070b4af0b643bf174356", "score": "0.491105", "text": "public void setPhoneBrand(String phoneBrand)\n/* */ {\n/* 198 */ this.phoneBrand = phoneBrand;\n/* */ }", "title": "" } ]
04b33dc1655da471b5acf945eb3634eb
Created by v.suos on 2/7/2018.
[ { "docid": "65d04400396edfe530f272dff395da8c", "score": "0.0", "text": "@Dao\npublic interface HeroDao {\n\n @Query(\"SELECT * FROM hero\")\n Maybe<List<Hero>> getAll();\n\n @Query(\"SELECT COUNT(*) FROM hero\")\n long count();\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n long[] insert(Hero... heroes);\n\n @Insert(onConflict = OnConflictStrategy.IGNORE)\n long[] insertAsList(List<Hero> heroes);\n}", "title": "" } ]
[ { "docid": "81005989525ec80103fbaf46f9c37779", "score": "0.58602375", "text": "@Override\n\tpublic void agit() {\n\n\t}", "title": "" }, { "docid": "ded15aaeb71ec68606fe2fb94e86fd30", "score": "0.5840939", "text": "@Override\n\tpublic void festlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5739917", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5739917", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.5704824", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "17942d6ab34e0234c0d99b1b5c8e7a12", "score": "0.57022274", "text": "private void gemsupid() {\n\n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.566661", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "1121ee7f7fb44c1a82d76b74dfca36ce", "score": "0.56436676", "text": "@Override\r\n\tprotected void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.56265396", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.5608235", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.5608235", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "5cf6e7275cb8d34bdacabdb57b1297ed", "score": "0.5574409", "text": "public void mo74847b() {\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5533114", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55198926", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55198926", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55198926", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55198926", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55198926", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55198926", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55198926", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "d782462e898859cd8f1a6e804776230b", "score": "0.5476693", "text": "@Override\n\tpublic void kahvalti() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.54759365", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.54759365", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "090367a90ca5031c4baa277087237d68", "score": "0.5465547", "text": "private Traveloid() {\n\t}", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.54626215", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "320da35135786dc4505079f4a9a73c36", "score": "0.5459917", "text": "@Override\r\n\tpublic void preen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e1acf779eed19e5945aa3f4b1a8866d3", "score": "0.5455494", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.54505634", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "7c007022c54a0806ff9bd5438ae3e2ec", "score": "0.5431249", "text": "public void mo74769c() {\n }", "title": "" }, { "docid": "1351a596cfde79c7fcbaa0c0ac90ed14", "score": "0.54290354", "text": "@Override\n public boolean Aapninger() {\n return true;\n }", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.5426133", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.5425042", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "962e2aa1efc1eb9e8f7e2b38da8566b6", "score": "0.5419234", "text": "@Override\r\n\tprotected void method4() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1f2c22fa4abda66d2d7817fb8f063486", "score": "0.54179144", "text": "private Fachada() {\n\n\t}", "title": "" }, { "docid": "fee1a18ceca61748f93149cd393850fc", "score": "0.5407046", "text": "public void mo74768d() {\n }", "title": "" }, { "docid": "2ad52390d92954e1d6f2925b4b14bfd4", "score": "0.5390732", "text": "private Helpers() {}", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.5381922", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "5188ca7aad5f258e672f0989f34a3f46", "score": "0.5374825", "text": "public void mo80636c() {\n }", "title": "" }, { "docid": "d36639f223d978fec860bc0a8b3192cb", "score": "0.53731346", "text": "@Override\n\tprotected void initialize() {}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.53622705", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.53569245", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.53569245", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53500235", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53500235", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53500235", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53500235", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53500235", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53500235", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53500235", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53500235", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c4fa257f1d9c8e55ec00612334f57e8b", "score": "0.53481466", "text": "@Override\n public void init() {\n\t\n }", "title": "" }, { "docid": "c9d7a19ad712ece23e6218c1bbd97e1b", "score": "0.5337683", "text": "@Override\n\tpublic void creap() {\n\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5335285", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5335285", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5332906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "fb712911683b694cdce8a0591533827a", "score": "0.5324274", "text": "public void attaquer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3a0aa7f30eee7a869c7fd2960b14db07", "score": "0.5323944", "text": "@Override\n public void destoty() {\n }", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5322508", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "24da068fbc02f8b8b3aa9cab24026941", "score": "0.5313361", "text": "@Override\n\tpublic void atacar() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.53066564", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.53066564", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.53035986", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "280199ee867322d00fa8fc8f17ee373c", "score": "0.53012466", "text": "private Loesung33() {\r\n\t}", "title": "" }, { "docid": "5c3c2acd34655753ed5c66be62776bb2", "score": "0.5293015", "text": "@Override\n public void initialize() {\n\n }", "title": "" }, { "docid": "8ae46d2c9cffbb6ac7a68b17e137a89a", "score": "0.52888083", "text": "@Override\n public void initialize() {}", "title": "" }, { "docid": "8ae46d2c9cffbb6ac7a68b17e137a89a", "score": "0.52888083", "text": "@Override\n public void initialize() {}", "title": "" }, { "docid": "10d92a66c246261fe6e471d744e9a556", "score": "0.5287895", "text": "@Override\n\tpublic void rysuje() {\n\t\t\n\t}", "title": "" }, { "docid": "698a44b73516c3710e06f82cc585b127", "score": "0.5287061", "text": "@Override\n public String getName() {\n return \"1\";\n }", "title": "" }, { "docid": "b4764437fc96bd523380203d0a714e9f", "score": "0.52855724", "text": "@Override\r\n\tpublic void calistir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2988fe45f681712faab63cb0e862874c", "score": "0.5285231", "text": "@Override\r\n protected void poDolaczeniu() {\n\r\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.52840006", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.52840006", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "7ec5770f7d08ac8791b261f76c6090ee", "score": "0.5283869", "text": "private void scarleTo() {\n\t\t\n\t}", "title": "" }, { "docid": "3d63ba02955ffee95b4ac1b66c98f160", "score": "0.5282777", "text": "@Override\n protected boolean Rol() {\n return true;\n }", "title": "" }, { "docid": "46a460fe7658f3c47ccd353629357303", "score": "0.5268801", "text": "private Obsfucator() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "dced8840cdc6e1ebb3224000472406a2", "score": "0.52686626", "text": "private void init() {\n\n }", "title": "" }, { "docid": "28beea7569e98179db3596d67a9de699", "score": "0.52617633", "text": "@Override\n public void init() { }", "title": "" }, { "docid": "5d5f8a204ab4201094295fffada02db6", "score": "0.5255519", "text": "public void mo5391b() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5249039", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5249039", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "c379949c43d334b2a73a78b63ebac3c1", "score": "0.5247513", "text": "@Override public int getAtaque(){\n return 0;\n\n }", "title": "" }, { "docid": "df5a58b776d79955ce4bf7e18e9ddfc4", "score": "0.5240294", "text": "public void mo9214a() {\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52376693", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52376693", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52376693", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52376693", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "50501dd87f1998a502196290135921d9", "score": "0.5234715", "text": "@Override\r\n\tpublic void bewegeNachUnten() {\n\r\n\t}", "title": "" }, { "docid": "6d4285d3cacbea718a62779bee157e55", "score": "0.52284175", "text": "private void init() {\n\t\t\r\n\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ba348d037fde33ef982a79632d7adf5e", "score": "0.5227471", "text": "@Override\n\tpublic void bouger()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "7cc32e3215de6a5ea9e4ae55eb72e2bf", "score": "0.5219847", "text": "public void mo5387a() {\n }", "title": "" }, { "docid": "165fc8d8939e6ebde0a7bab89f18d73f", "score": "0.52175784", "text": "@Override\n\tprotected void construct() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5215805", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5215805", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5215805", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5215805", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5203733", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "aa11eda739c485941dc668462856c759", "score": "0.5202328", "text": "private Trimr() {}", "title": "" }, { "docid": "0b7e29585e9b303438dec938b5361005", "score": "0.51929885", "text": "@Override\n public int describeContents()\n {\n return 0;\n }", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.51906496", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.51906496", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.51906496", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" } ]
adf6d03dca6b491ba54f9645a7b86d41
Tests whether the correct count text for a single item is generated.
[ { "docid": "138eb2f8fb292b1513ea313158b38143", "score": "0.7106074", "text": "public void testGenerateCountTextSingle()\r\n {\r\n RemoveControllerDlg ctrl = new RemoveControllerDlg();\r\n assertEquals(\"Wrong text\", \"1 item\", ctrl.generateCountText(1));\r\n }", "title": "" } ]
[ { "docid": "7ace6b96feab9eae67a66e2dc921f0c6", "score": "0.67909527", "text": "public String checkItemText(String str,int count){\n for(Item it: this.listItems()){\n if(!it.getTaken()){\n str = str+it.getName()+\"\\n\";\n }else{\n ++count;\n if(count == this.listItems().size()){\n str = str+\"You have taken all the items in the room\\n\";\n }\n }\n }\n return str;}", "title": "" }, { "docid": "a9d96a58ed270e92b6900dc10a31ba34", "score": "0.6643914", "text": "public void testGenerateCountTextMulti()\r\n {\r\n RemoveControllerDlg ctrl = new RemoveControllerDlg();\r\n assertEquals(\"Wrong text\", \"8 items\", ctrl.generateCountText(8));\r\n }", "title": "" }, { "docid": "10f38c1becd6556e7263a727e4dfcbf7", "score": "0.6192982", "text": "@Test\n public void TestRecipeCount() {\n onView(withId(R.id.recyclerview_recipe)).check(new RecyclerViewItemCountAssertion(4));\n }", "title": "" }, { "docid": "cf1aa1576b3e4e2e8f5d1bafdb05333f", "score": "0.61385417", "text": "public boolean checkCount() {\n return count == 3;\n }", "title": "" }, { "docid": "9c5f06fab3423e9e452ad2bbcd35af07", "score": "0.6122529", "text": "@Test\n public void itemCount() {\n //setup\n Item item1 = new Item(\"Shirt\", 50.00, true);\n Item item2 = new Item(\"apple\", 9.99, true);\n int quantity1 = 1;\n int quantity2 = 6;\n int expected =7;\n\n //Ececute\n ct.addItem(item1, quantity1);\n ct.addItem(item2, quantity2);\n int actual = ct.itemCount;\n\n //Assert\n Assert.assertEquals(expected,actual);\n }", "title": "" }, { "docid": "084ffaf66bcf0b9c6a099de145566822", "score": "0.60586286", "text": "protected TextGuiSubitemTestObject quantityText() \r\n\t{\r\n\t\treturn new TextGuiSubitemTestObject(\r\n getMappedTestObject(\"quantityText\"));\r\n\t}", "title": "" }, { "docid": "95d7bd011bd065e200bc658afc2f1f73", "score": "0.60336524", "text": "public static boolean testCountIncrementedAfterAddingOnlyOneItem() {\n boolean testPassed = true; // boolean local variable evaluated to true if this test passed,\n // false otherwise\n String[] cart = new String[20]; // shopping cart\n int count = 0; // number of items present in the cart (initially the cart is empty)\n\n // Add an item to the cart\n count = ShoppingCart.add(3, cart, count); // add an item of index 3 to the cart\n // Check that count was incremented\n if (count != 1) {\n System.out.println(\"Problem detected: After adding only one item to the cart, \"\n + \"the cart count should be incremented. But, it was not the case.\");\n testPassed = false;\n }\n return testPassed;\n }", "title": "" }, { "docid": "de1b524ee07edb3d7c4115e5f125f31f", "score": "0.5950182", "text": "public void testCount() {\n assertEquals(3, adapter.getCount());\n }", "title": "" }, { "docid": "722ed4191ef425f26814a634c64bf8b9", "score": "0.58660436", "text": "public int checkText()\n {\n\n for (text t: textArray)\n {\n return t.getId();\n }\n return 0;\n }", "title": "" }, { "docid": "e9c34395b6113187be6870d9dbf66806", "score": "0.58306724", "text": "@Test\n public void testHitCount() throws IOException {\n // basic\n for (int i = 1; i <= 20; i++) {\n assertEquals(i, words.ask(\"Jordan\").get().hit);\n }\n // non-exist\n assertFalse(words.ask(\"iphone8\").isPresent());\n }", "title": "" }, { "docid": "316abf9c790de46f57c4b3e1f3adbf1d", "score": "0.57360893", "text": "@Test\r\n\tpublic void testNumberOfItems() {\r\n\t\t// Scanning items, and enabling scanner between scans (because it gets disabled after each scan until it is bagged).\r\n\t\tuseCase.station.mainScanner.scan(cheerios);\r\n\t\tuseCase.station.mainScanner.enable();\r\n\t\tuseCase.station.mainScanner.scan(pickles);\r\n\t\t\r\n\t\t// Defining expected number of items.\r\n\t\tint expectedNumberOfItems = 2;\r\n\t\t\r\n\t\t// Test fails if the cart total differs from the expected cart total\r\n\t\tassertTrue(\"Cart total is different from expected cart total.\", useCase.getNumberOfItems() == expectedNumberOfItems);\r\n\t}", "title": "" }, { "docid": "b4f22f071115ee50ca404ccd7d1ae86f", "score": "0.5711853", "text": "public int getCount() {\n\t\t\treturn text.size();\r\n\t\t}", "title": "" }, { "docid": "111c541b78a2861364de710a5d88f904", "score": "0.56732893", "text": "int itemCount();", "title": "" }, { "docid": "96007229480ee412031374410633a634", "score": "0.5657264", "text": "@Test\n public void alertListHasItemTest() {\n onView(withRecyclerView(AlertListTestHelper.RECYCLER_VIEW_ID).atPosition(0))\n .check(matches(isCompletelyDisplayed()));\n }", "title": "" }, { "docid": "2513bcb75110d93cf257f75c318f095e", "score": "0.5645089", "text": "private boolean isProhibitedItemsCount(String data){\n\t\tif(data.equals(\"Gun\") || data.equals(\"NailCutter\") \n\t\t\t|| data.equals(\"Blade\") || data.equals(\"Knife\")){\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4e304850a91680b31821680db8a1d8b6", "score": "0.5629837", "text": "boolean hasCount();", "title": "" }, { "docid": "4e304850a91680b31821680db8a1d8b6", "score": "0.5629837", "text": "boolean hasCount();", "title": "" }, { "docid": "4e304850a91680b31821680db8a1d8b6", "score": "0.5629837", "text": "boolean hasCount();", "title": "" }, { "docid": "1f44c93c47de57049cf4d4c12e02446e", "score": "0.56035036", "text": "public short count(){\n\t\tshort counter = 0;\n\t\tfor (short i = 0; i < Order.MAX_LINEITEMS; i++){\n\t\t\tif (items[i] != null){\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}", "title": "" }, { "docid": "f3fc1c50e5736142442046c13c358f1f", "score": "0.5582905", "text": "@Test\n public void alertListItemTitleTest() {\n onView(withRecyclerView(AlertListTestHelper.RECYCLER_VIEW_ID).atPosition(0))\n .check(matches(hasDescendant(allOf(\n withId(R.id.list_item_alert_description),\n isCompletelyDisplayed()\n ))));\n }", "title": "" }, { "docid": "e9a897e389cefa18382b17dcf1ae7e31", "score": "0.55329263", "text": "boolean hasUseCount();", "title": "" }, { "docid": "e9a897e389cefa18382b17dcf1ae7e31", "score": "0.55329263", "text": "boolean hasUseCount();", "title": "" }, { "docid": "df75a5f4cd1fafe2dc576765c9ac9ca1", "score": "0.5521339", "text": "@Test\n public void whenAddSameItemThenThisItemDoesNotAdd() {\n SimpleSet<String> set = new SimpleSet<>();\n set.add(\"one\");\n set.add(\"two\");\n set.add(\"three\");\n set.add(\"one\");\n\n String item;\n int countSame= 0;\n for (String st: set) {\n item = st;\n if(item.equals(\"one\")) {\n countSame++;\n }\n }\n assertThat(countSame, is(1));\n }", "title": "" }, { "docid": "fe31f23652bede5be84d9d2b0902836d", "score": "0.55148375", "text": "public static boolean testAddAndOccurrencesOfForOnlyOneItem() {\n boolean testPassed = true; // evaluated to true if test passed without problems, false\n // otherwise\n String[] cart = new String[10]; // shopping cart\n int count = 0; // number of items present in the cart (initially the cart is empty)\n\n // check that OccurrencesOf returns 0 when called with an empty cart\n if (ShoppingCart.occurrencesOf(10, cart, count) != 0) {\n System.out\n .println(\"Problem detected: Tried calling OccurrencesOf() method when the cart is \"\n + \"empty. The result should be 0. But, it was not.\");\n testPassed = false;\n }\n\n // add one item to the cart\n count = ShoppingCart.add(0, cart, count); // add an item of index 0 to the cart\n\n // check that OccurrencesOf(\"Apples\", cart, count) returns 1 after adding the\n // item with key 0\n if (ShoppingCart.occurrencesOf(0, cart, count) != 1) {\n System.out\n .println(\"Problem detected: After adding only one item with key 0 to the cart, \"\n + \"OccurrencesOf to count how many of that item the cart contains should return 1. \"\n + \"But, it was not the case.\");\n testPassed = false;\n }\n\n return testPassed;\n }", "title": "" }, { "docid": "96313056460c7bfc04af8d0e8d0e2cf6", "score": "0.55033517", "text": "public String getItemText(String str){\n int count =0;\n try{\n if(this.listItems().isEmpty()){\n return str+\"There are no items in the room\\n\";\n }\n str = str+\"The following item(s) are in the room:\\n\";\n str = this.checkItemText(str,count);\n }catch(NullPointerException s){\n return str+\"There are no items in the room\\n\";\n }\n return str;}", "title": "" }, { "docid": "101334f9603dc79760f7536162e2925f", "score": "0.5484181", "text": "boolean hasItemCollectNum();", "title": "" }, { "docid": "8ae82bdfb0e4af4ae532cf82338c44ff", "score": "0.54818124", "text": "boolean hasHasCount();", "title": "" }, { "docid": "228e711a872f8df9ab10f1837206a6f7", "score": "0.54539734", "text": "public int countInStockTitles() {\n // Replace with your code.\n return 0;\n }", "title": "" }, { "docid": "fdb327957988f556b5f632e433109d9b", "score": "0.54507226", "text": "private static boolean checkIfAddBonusText(long receiptCounter) {\n\t\treturn receiptCounter != 0 && (receiptCounter % RECEIPT_COUNTER_BONUS_TEXT) == 0;\n\t}", "title": "" }, { "docid": "c4e42150f8719f702a3a819de1f3983c", "score": "0.543836", "text": "@Test\n public void testCountNumbers6() {\n mycustomstring.setString(\"There are 343 people attending today's event but only 200 have come prepared for it.\");\n assertEquals(2, mycustomstring.countNumbers());\n }", "title": "" }, { "docid": "6c10373a336809df33378ba5d0d97461", "score": "0.54015017", "text": "public void checkID() {\n \tint id = 1;\n\t\tif(items!=null) {\n\t\t\tfor(Item item : items){\n\t\t\t\tif(item.getItemId() > id) id = item.getItemId();\n\t\t\t}\n\t\t}\n\t\tItem.setIdCount(id+1);\n }", "title": "" }, { "docid": "9678661ce5b98719c9cca5e854515e95", "score": "0.5397956", "text": "public void checkWordCount() {\n\t\tthis.wordCountProperty.set(this.paperSubmission.calculateWordCount());\n\t}", "title": "" }, { "docid": "4d74b8cd3cd8ff3c3203e14124bc9cbe", "score": "0.5381309", "text": "@java.lang.Override\n public boolean hasCount() {\n return operatorCase_ == 1;\n }", "title": "" }, { "docid": "5331c4b716ea0fe388dd1d9ce938296b", "score": "0.53756976", "text": "@Test\n public void testCountNumbers3() {\n mycustomstring.setString(\"This sentence has no numbers.\"); //with no numbers and returns 0\n assertEquals(0, mycustomstring.countNumbers());\n }", "title": "" }, { "docid": "c8582e18c70d828eb14d9ce69507a2f3", "score": "0.53703874", "text": "@Test\r\n public void test_uncountables() {\r\n assertThat(pluralOf(\"sheep\"), is(\"sheep\"));\r\n assertThat(singularOf(\"sheep\"), is(\"sheep\"));\r\n }", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.53664535", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.53664535", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.53664535", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.53664535", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.53664535", "text": "int getItemsCount();", "title": "" }, { "docid": "58b77085cefcbbfc628328413b86f588", "score": "0.53663003", "text": "@Test\n\tpublic void testProcessItemIfOutOfSupply(){\n\t\tcreateStudents(\"00111\");\n\t\tbbHandler.processItem(\"Once\");\n\t\tbbHandler.getStudent().setGold(1000);\n\t\tbbHandler.processItem(\"Once\");\n\t\tassertEquals(1, bbHandler.getStudent().getItemList().size());\n\t}", "title": "" }, { "docid": "9150b1a7d801b818e22399d76769e015", "score": "0.5351285", "text": "@Test\n public void testGetCount() {\n assertEquals(views.size(), customAdapter.getCount());\n }", "title": "" }, { "docid": "00fa0288f29d47c30d9631afd30a1133", "score": "0.53393596", "text": "@Test\n public void testCountNumbers5() {\n mycustomstring.setString(\"2 pigs went to the market, only 1 came home.\");\n assertEquals(2, mycustomstring.countNumbers());\n }", "title": "" }, { "docid": "a3f4523bafceef3aa1245c4a9f5a1e40", "score": "0.5330619", "text": "@Test\n\tpublic void testCountNumbersOnly() {\n\t\t// SCCalcSubTotalForColumns.click(10, 45);\n\t\tscCalcSubTotalForColumns.select(2);\n\t\tscCalcSubTotalForColumns.check(2); // \"No.\"\n\t\tscCalcSubTotolsFuncionList.select(6); // \"Count (numbers only)\"\n\t\tscSubTotalsGroup1Dialog.ok();\n\t\tsleep(1);\n\n\t\tassertArrayEquals(\"Wrong Count Numbers only function in Subtotal\", new String[][] { { \"Level\", \"Code\", \"No.\", \"Team\", \"Name\" }, { \"BS\", \"20\", \"4\", \"B\", \"Elle\" }, { \"BS\", \"20\", \"6\", \"C\", \"Sweet\" },\n\t\t\t\t{ \"BS\", \"20\", \"2\", \"A\", \"Chcomic\" }, { \"BS Count\", \"\", \"3\", \"\", \"\" }, { \"CS\", \"30\", \"5\", \"A\", \"Ally\" }, { \"CS Count\", \"\", \"1\", \"\", \"\" },\n\t\t\t\t{ \"MS\", \"10\", \"1\", \"A\", \"Joker\" }, { \"MS\", \"10\", \"3\", \"B\", \"Kevin\" }, { \"MS Count\", \"\", \"2\", \"\", \"\" }, { \"Grand Total\", \"\", \"6\", \"\", \"\" } },\n\t\t\t\tSCTool.getCellTexts(\"A1:E11\"));\n\t}", "title": "" }, { "docid": "80e893835a366568d17a9a7abc4e710b", "score": "0.5330533", "text": "@java.lang.Override\n public boolean hasCount() {\n return operatorCase_ == 1;\n }", "title": "" }, { "docid": "e4574d450bf2432eb2bb8cf2be4b0d0a", "score": "0.532589", "text": "@Test\n void TestOneArg() throws Exception\n {\n agent.getProductions().loadProduction(\"\" +\n \"countSet\\n\" +\n \"(state <s> ^superstate nil ^to-count <tc>)\\n\" +\n \"-->\\n\" +\n \"(<s> ^count (set-count <tc>))\");\n \n // Finally a production to validate that the count is correct\n agent.getProductions().loadProduction(\"\" +\n \"testStructure\\n\" +\n \"(state <s> ^count 0)\\n\" +\n \"-->\\n\" +\n \"(match)\");\n \n agent.getProperties().set(SoarProperties.WAITSNC, true);\n agent.runFor(2, RunType.DECISIONS);\n \n assertTrue(matched.value);\n }", "title": "" }, { "docid": "fb05aa67226e50e05808abc8d9d117f0", "score": "0.5323746", "text": "public static boolean testRemoveOnlyOneOccurrenceOfItem() {\n boolean testPassed = true; // boolean local variable evaluated to true if this test passed,\n // false otherwise\n String[] cart = new String[] {\"Eggs\", \"Apple\", \"Milk\"}; // shopping cart\n int count = 3; // number of items present in the cart (initially the cart is empty)\n\n // removes apple from the cart\n count = ShoppingCart.remove(\"Apple\", cart, count);\n\n // checks that apple was removed by lowering the count by 1\n if (count != 2) {\n System.out.println(\n \"Problem detected: Item was not removed, and count was not equal to one less than before.\");\n testPassed = false;\n }\n return testPassed;\n }", "title": "" }, { "docid": "1290f184a73c398ac3c2f538f6de8cab", "score": "0.5321308", "text": "public int checkTasche(String itemName) {\r\n int anzahl = 0;\r\n for (Item i : tasche) {\r\n if (i instanceof Ressource) {\r\n if (i.getName().equals(itemName))\r\n anzahl += ((Ressource) i).getAnzahl();\r\n }\r\n }\r\n return anzahl;\r\n }", "title": "" }, { "docid": "beb61a9e3f9fb7dcdafa0cb5420c5048", "score": "0.5319269", "text": "boolean hasTotalcount();", "title": "" }, { "docid": "c6d25c881202dc263ace7a4c9f923f0b", "score": "0.5287745", "text": "@Test\n public void testGetCount(){\n try {\n Long count = 1L;\n hashtagTest.setCount(1L);\n assertEquals(count, hashtagTest.getCount());\n }catch (Exception e){\n fail(\"count value has not been gotten correctly\");\n }\n }", "title": "" }, { "docid": "d4fdda68b864e1852f6f7be47e4820a6", "score": "0.52777374", "text": "int getRepeatedStringsCount();", "title": "" }, { "docid": "0f7b6876cdebfbd6beeef8da0cd8a00a", "score": "0.5277113", "text": "public String getCount(){\r\n\t\treturn this.count;\r\n\t}", "title": "" }, { "docid": "957fbbd1adcca134eed83d03f91dbd1d", "score": "0.52674294", "text": "boolean isSetCount();", "title": "" }, { "docid": "f1b29e981c75458a36d3631b5cf2037b", "score": "0.5264488", "text": "@Test\r\n public void testCreateItemNameBoundaryMax() {\n Item item = createAndSaveItem(\"Lorem ipsum dolor sit amet, consectetuer adipiscin\", \"12.04\");\r\n assertItemIsCorrect(item);\r\n }", "title": "" }, { "docid": "1a806e72cf523027458c6170175178d2", "score": "0.5262297", "text": "public boolean containsOnlyTextItems() {\n\t\tfor (PerunFormItem item : items) {\n\t\t\tif (!(item instanceof Header) && !(item instanceof HtmlComment)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "793221f5c35e9505f4bb4a834bbbb2ed", "score": "0.5261532", "text": "public boolean hasText() {\n return optionCase_ == 1;\n }", "title": "" }, { "docid": "5b79d01df4b1e65689492b596fc9ed78", "score": "0.5257035", "text": "@Test\n\tpublic void getCountForFirstNamesInAccountWhenOne() {\n\t\tfail(\"TODO\");\n\t}", "title": "" }, { "docid": "267578a4dfd8b61043c22e3952d8b333", "score": "0.5252608", "text": "@Override\n public int count_item(int item) {\n ctr = ctr + item;\n return ctr;\n }", "title": "" }, { "docid": "90aafb07a38279866efc3aa3ce918e4d", "score": "0.5251651", "text": "@Test\r\n\tpublic void testGameLists3Content() {\r\n\t\tassertTrue(twisterRound.getSolutionListsByWordLength(3).contains(\"allege\"));\r\n\t}", "title": "" }, { "docid": "560afaaaaa2af1b513dfca71c43bbc08", "score": "0.52393126", "text": "@Test\n public void testSetCount() {\n try {\n Long count = 1L;\n hashtagTest.setCount(1L);\n assertEquals(count, hashtagTest.getCount());\n }catch (Exception e){\n fail(\"count value has not been set correctly\");\n }\n }", "title": "" }, { "docid": "409e7ecae8f8f92b036f602d52763d41", "score": "0.5236974", "text": "@Override\r\n public int getCount(String keyWord) {\n return 0;\r\n }", "title": "" }, { "docid": "80f70e3f53ea87cc9c5f674ac0a3f805", "score": "0.5235368", "text": "public boolean hasText();", "title": "" }, { "docid": "3a850257202e647db3767f3bd9778dad", "score": "0.5233478", "text": "public boolean hasText() {\n return optionCase_ == 1;\n }", "title": "" }, { "docid": "3ee1726c31df106fd8b771173869d621", "score": "0.5232706", "text": "@Override\n public int getItemsCount() {\n if (flage) {\n return string_arr.length;\n } else {\n return string_list.size();\n }\n }", "title": "" }, { "docid": "6a8000f6bf95c3762df9dd7963cf5ad2", "score": "0.52293724", "text": "boolean hasLikeCount();", "title": "" }, { "docid": "adce04066399eb442146b7a2d414aad6", "score": "0.52257115", "text": "@Override\r\n\tpublic int getCount() {\n\t\treturn this.text_for_list_item.length;\r\n\t}", "title": "" }, { "docid": "e3d46eb62ce97baed46039df60b3ff05", "score": "0.5225365", "text": "@Test\n public void lastItem_NotDisplayed() {\n onView(withText(\"id: 150\")).check(doesNotExist());\n }", "title": "" }, { "docid": "67368212e6e3a48b88c84af710009edc", "score": "0.522525", "text": "@Test\n public void dotAfterTextMeansAnyCharacter() {\n assertEquals(1, countOfMatches(\"foo.\", \"foofoo\"));\n }", "title": "" }, { "docid": "c1b4fd881407518ed094f41b5bee5729", "score": "0.5223476", "text": "protected TextGuiSubitemTestObject quantityText(TestObject anchor, long flags) \r\n\t{\r\n\t\treturn new TextGuiSubitemTestObject(\r\n getMappedTestObject(\"quantityText\"), anchor, flags);\r\n\t}", "title": "" }, { "docid": "55ef1cb9b3fb6c1145c2f2dbae50a691", "score": "0.5215051", "text": "@Test public void sizeNC(){\n MyWeirdList list = new MyWeirdList();\n //fill the list\n list.addEnd(1);\n list.addEnd(2);\n list.addEnd(3);\n list.addEnd(4);\n list.addEnd(5);\n list.addEnd(6);\n list.addEnd(7);\n list.addEnd(8);\n list.addEnd(9);\n //now get the size\n int size = list.size();\n //check if the string equals what it should, 9\n if(size == 9){\n System.out.println(true); \n }\n else{\n System.out.println(false); \n }\n }", "title": "" }, { "docid": "cfea0b474f7d269c1277f3f2da11bbbd", "score": "0.5206154", "text": "@Test\n\tpublic void getCountForFirstNamesInAccountWhenZeroOccurances() {\n\t\tfail(\"TODO\");\n\t}", "title": "" }, { "docid": "c81467fad6534fa2cb6d5cd259134e14", "score": "0.51996696", "text": "private void assertRowCount(int expectedCount, String field, String value) throws JSONException {\n String smartSql = \"SELECT count(*) FROM {\" + TEST_SOUP + \"} WHERE {\" + TEST_SOUP + \":\" + field + \"} = '\" + value + \"'\";\n int actualCount = store.query(QuerySpec.buildSmartQuerySpec(smartSql, 1), 0).getJSONArray(0).getInt(0);\n Assert.assertEquals(\"Should have found \" + expectedCount + \" rows\", expectedCount, actualCount);\n }", "title": "" }, { "docid": "0cade09f70157330958a02ee22c6bd4a", "score": "0.5196253", "text": "public void testGetItem() {\n assertEquals(\"Friend 3\", adapter.getItem(2));\n }", "title": "" }, { "docid": "955df3425ee78953d938e2ed4f2ba9cb", "score": "0.5193917", "text": "int getTextSignCount();", "title": "" }, { "docid": "7a6f3334c4cdce11b62a69fa8ec3eb09", "score": "0.5191564", "text": "int getRepeatedStringCount();", "title": "" }, { "docid": "3cecdcab7f8e8762de4976cd09da2c3c", "score": "0.5189291", "text": "private int getMissCount() {\n\t\treturn 1;\r\n\t}", "title": "" }, { "docid": "ac3b8dca9a9e8375eee1a6befad04dee", "score": "0.51684564", "text": "@Test\r\n\tpublic void itemCountTest() throws DuplicateNameException, \r\n\tLocationAlreadyExistsException,\r\n\tCollectionDoesNotAcceptItemsException{\r\n\r\n\t // start a new transaction\r\n\t\tTransactionStatus ts = tm.getTransaction(td);\r\n\t\t\r\n\t\tRepositoryBasedTestHelper repoHelper = new RepositoryBasedTestHelper(ctx);\r\n\t\tRepository repo = repoHelper.createRepository(\"localFileServer\", \r\n\t\t\t\t\"displayName\",\r\n\t\t\t\t\"file_database\", \r\n\t\t\t\t\"my_repository\", \r\n\t\t\t\tproperties.getProperty(\"a_repo_path\"),\r\n\t\t\t\t\"default_folder\");\r\n\r\n\t\t//commit the transaction \r\n\t\t// create a collection\r\n\t\tInstitutionalCollection col = repo.createInstitutionalCollection(\"colName\");\r\n\t\tcol.setDescription(\"colDescription\");\r\n\t\t\r\n\t\t// add the children\r\n\t\tInstitutionalCollection childCol1 = col.createChild(\"child1\");\r\n\t\t\r\n\t\tinstitutionalCollectionDAO.makePersistent(col);\r\n\t\ttm.commit(ts);\r\n\t\t\r\n\t\t// start a new transaction\r\n\t\tts = tm.getTransaction(td);\r\n\t\t\r\n\t\tUserEmail userEmail = new UserEmail(\"email\");\r\n\t\t\t\t\r\n\t\tIrUser user = new IrUser(\"user\", \"password\");\r\n\t\tuser.setPasswordEncoding(\"encoding\");\r\n\t\tuser.addUserEmail(userEmail, true);\r\n\r\n userDAO.makePersistent(user);\r\n\t\tcol = institutionalCollectionDAO.getById(col.getId(), false);\r\n\t\tGenericItem genericItem = new GenericItem(\"genericItem\");\r\n\t\tGenericItem genericItem2 = new GenericItem(\"genericItem2\");\r\n\t\t\r\n\t\tInstitutionalItem institutionalItem = col.createInstitutionalItem(genericItem);\r\n\t\tinstitutionalItemDAO.makePersistent(institutionalItem);\r\n\r\n\t\tInstitutionalItem institutionalItem2 = childCol1.createInstitutionalItem(genericItem2);\r\n\t\tinstitutionalItemDAO.makePersistent(institutionalItem2);\r\n\t\ttm.commit(ts);\r\n\r\n\t\tts = tm.getTransaction(td);\r\n\t\tLong count = institutionalItemDAO.getCountForCollectionAndChildren(col);\r\n\t\tassert count == 2l :\r\n\t\t\t\"Should be equal to 2 but is \" + count;\r\n\t\t\r\n\t\tList<Long> itemIds = institutionalItemDAO.getCollectionItemsIds(0, 100, col, OrderType.DESCENDING_ORDER);\r\n\t\t\r\n\t\tassert itemIds.size() == 2 : \"Size should be two but is \" + itemIds.size();\r\n\t\tassert itemIds.contains(institutionalItem.getId()) : \"Should contain \" + genericItem.getId();\r\n\t\t\r\n\t\titemIds = institutionalItemDAO.getCollectionItemsIds(0, 100, col, OrderType.ASCENDING_ORDER);\r\n\t\tassert itemIds.size() == 2 : \"Size should be two but is \" + itemIds.size();\r\n\t\t\r\n\t\tassert itemIds.contains(institutionalItem.getId()) : \"Should contain \" + genericItem.getId();\r\n\t\ttm.commit(ts);\r\n\r\n\t\t//create a new transaction\r\n\t\tts = tm.getTransaction(td);\r\n\r\n\t\tinstitutionalCollectionDAO.makeTransient(institutionalCollectionDAO.getById(childCol1.getId(), false));\r\n\t\tinstitutionalCollectionDAO.makeTransient(institutionalCollectionDAO.getById(col.getId(), false));\r\n\t\t\r\n\t\t\r\n\t\titemDAO.makeTransient(itemDAO.getById(genericItem.getId(), false));\r\n\t\titemDAO.makeTransient(itemDAO.getById(genericItem2.getId(), false));\r\n\t\tuserDAO.makeTransient(userDAO.getById(user.getId(), false));\r\n\t\trepoHelper.cleanUpRepository();\r\n\t\t\r\n\t\ttm.commit(ts);\t\r\n\t\t\r\n\t\tassert institutionalItemDAO.getById(institutionalItem.getId(), false) == null : \r\n\t\t\t\"Should not be able to find the insitutional item\" + institutionalItem;\r\n\t}", "title": "" }, { "docid": "602b268ff650b009ba6bd995625c7080", "score": "0.51683104", "text": "public int getNoOfItems() {\n return noOfItems_;\n }", "title": "" }, { "docid": "4ed943406edcd2fb71bfdf71849cc216", "score": "0.51582474", "text": "@Test\n\tpublic void testInstantNumAttemptItem(){\n\t\tcreateStudents(\"00111\");\n\t\tGradableItem gradableItem = new GradableItem();\n\t\tgradableItem.setTitle(\"Test\");\n\t\tgradableItem.setMaxAttempts(2);\n\t\tbbHandler.addGradableItem(gradableItem);\n\t\tItem item = marketPlaceDao.loadItem(\"OnceTwo\");\n\t\tmarketPlaceDao.persistPurhcase(\"00111\", item);\n\t\tbbHandler.useItem(item, \"Test\");\n\t\tassertEquals(4, gradableItem.getMaxAttempts());\n\t}", "title": "" }, { "docid": "f84a7eefed62e35fec4a0a431f77e9a4", "score": "0.51566285", "text": "public long coveredItemsCount();", "title": "" }, { "docid": "8d841134b08df849c7aeee1863c630eb", "score": "0.51537025", "text": "public int countArticle(String text) throws Exception;", "title": "" }, { "docid": "ee3b0531e67ef99e8d3cdc3beb5b8264", "score": "0.5153539", "text": "@Test\n public void testCount1() {\n int expected = 1;\n int first = twoX.countXX(\"abcxx\");\n \n assertEquals(expected, first);\n }", "title": "" }, { "docid": "a1dda6cecf034fce54e6b3456fefd3a1", "score": "0.5147215", "text": "public int getCount(String data) \n\t{\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "36425053b050893e88751621b5cec5e7", "score": "0.51468", "text": "@Test\n public void canGetNumStrings(){\n assertEquals(9, guitar.getNumStrings());\n\n }", "title": "" }, { "docid": "e72c150ad72c6f7e84805ee8a5ef3fe7", "score": "0.5143294", "text": "public void updateItemCounts() {\n List<PurApItem> items = ((AccountsPayableDocument) this.getDocument()).getItems();\n countOfBelowTheLine = PurApItemUtils.countBelowTheLineItems(items);\n countOfAboveTheLine = items.size() - countOfBelowTheLine;\n }", "title": "" }, { "docid": "49ba21c4de10862deb7c68c206addab7", "score": "0.51378775", "text": "public boolean isMarked()\n {\n return this.count > 0;\n }", "title": "" }, { "docid": "87843f32965bd8aecb24483c0c1144db", "score": "0.51375383", "text": "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-17 15:29:10.245 -0400\", hash_original_method = \"FF998EEBCE262ECE980198329C7BF044\", hash_generated_method = \"13D7DE7EE93A94596534CF0D0B0D9256\")\n \npublic int getItemCount() {\n return IMPL.getItemCount(mRecord);\n }", "title": "" }, { "docid": "b4d0092b752ddf7e1435fde93909660c", "score": "0.5137034", "text": "@Override\r\n\tpublic int count() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "5e025e1d8251a49d2f8972262d15ae9e", "score": "0.51361495", "text": "@Test\n public final void testGetCountEmptySlot() {\n System.out.println(\"getCountEmptySlot\");\n Manager instance = new Manager(TEN);\n int expResult = 0;\n int result = instance.getCountEmptySlot();\n assert (expResult != result);\n }", "title": "" }, { "docid": "e66b050915ab9b3f8cce4f42776a6c52", "score": "0.5131382", "text": "@Override\n\tpublic int getCount() {\n\t\treturn poemTitle.length;\n\t}", "title": "" }, { "docid": "0203aaeaf092489a8bc7709eeafaceb8", "score": "0.510514", "text": "public int numResultsClaimed(){\n waitForElementToAppear(numResultsClaimed);\n String numResultsText = findElement(numResultsClaimed).getText();\n return Integer.parseInt(numResultsText.substring(1,numResultsText.indexOf(')')));\n }", "title": "" }, { "docid": "c07e46940d3fa810122cf6fa5c61981f", "score": "0.5101519", "text": "public boolean checkCountAction(){\n\treturn\tgetCountActive(AppManager.DRIVER.findElement(By.xpath(\".//*[@id='list-active-projects']/div/div[1]/div/span\")).getText()) < 2; \n\t}", "title": "" }, { "docid": "d789280d268122ea5e7bbca16984fd53", "score": "0.51003677", "text": "@Test\n public void testGetRandomQuestionNumMultipleChoice() {\n int multipleChoiceQuestionCount = 0;\n for (int i = 0; i < NUM_QUESTIONS; i++) {\n final Question question = myQuestionManager.getRandomQuestion();\n if (question instanceof MultipleChoiceQuestion) {\n multipleChoiceQuestionCount++;\n }\n }\n assertEquals(\"getRandomQuestion does not return the correct amount of multiple choice questions\",\n NUM_MULTIPLE_CHOICE, multipleChoiceQuestionCount);\n }", "title": "" }, { "docid": "e950692262f72cb4779d86e6355a7482", "score": "0.5098762", "text": "boolean hasText();", "title": "" }, { "docid": "e950692262f72cb4779d86e6355a7482", "score": "0.5098762", "text": "boolean hasText();", "title": "" }, { "docid": "e950692262f72cb4779d86e6355a7482", "score": "0.5098762", "text": "boolean hasText();", "title": "" }, { "docid": "c974cdf311f85f1ad78c5a9c38881585", "score": "0.50952405", "text": "public int getNoOfItems() {\n return noOfItems_;\n }", "title": "" }, { "docid": "8ccde64344faef048aa1603b176260d8", "score": "0.5093276", "text": "public boolean checkItems() {\n\t\tboolean successfulCheck = true;\n\n\t\tString invalidItems = \"\";\n\t\tfor(T t : listData) {\n\t\t\tif(!t.check()) {\n\t\t\t\tsuccessfulCheck = false;\n\t\t\t\tinvalidItems += \"\\n\" + t.getIdentifier();\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tif (successfulCheck) {\n\t\t\t//custom title, warning icon\n\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\t\"Every item of the list is correctly configured\",\n\t\t\t\t\t\"Success!\",\n\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE,\n\t\t\t\t\tnew ImageIcon(\"images/valid.png\"));\n\t\t} else {\n\t\t\t//custom title, warning icon\n\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\t\"The following items aren't valid: \" + invalidItems,\n\t\t\t\t\t\"Warning!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\t\t\t\n\t\t}\n\t\t\n\t\treturn successfulCheck;\n\t}", "title": "" }, { "docid": "9561c1abb63b625f1337c1b991fd7321", "score": "0.5086961", "text": "@Test\n\tpublic void countSeqTest() {\n\t\tAssert.assertTrue(idb.countSeq(2, 0) == 6);\n\t}", "title": "" }, { "docid": "c477751540b7c28442b072287e2ffc8d", "score": "0.5078772", "text": "protected TextGuiSubitemTestObject itemText() \r\n\t{\r\n\t\treturn new TextGuiSubitemTestObject(\r\n getMappedTestObject(\"itemText\"));\r\n\t}", "title": "" } ]
5e29f68ba2680da29fa05f935fd905fe
/create a setter method to set the players score
[ { "docid": "1623797fa475da0d021051191d041afe", "score": "0.7634922", "text": "public void setScore(int scoreSet)\r\n {\r\n score = scoreSet;\r\n }", "title": "" } ]
[ { "docid": "c0feafb49e14be2c8943b15d7eac1782", "score": "0.8113304", "text": "void setPlayerScore(Label playerScore) {\n this.gamePlayerScore = playerScore;\n }", "title": "" }, { "docid": "f80d6c8a9f53b2ffe35e801edee118f1", "score": "0.79962605", "text": "public void SetScore(int score){\r\n ScorePoint = score;\r\n }", "title": "" }, { "docid": "00ec90e173b5b65610a0cc39f5603211", "score": "0.7938051", "text": "public void setScore(double score) { this.score = score; }", "title": "" }, { "docid": "36e3b23e1d86e396f0cf8aabf914353f", "score": "0.7901773", "text": "public void setScore(){\n\n }", "title": "" }, { "docid": "86bd0ca3d00212be566f9ce42881bc72", "score": "0.7783451", "text": "public void setScore(int value) {\n this.score = value;\n }", "title": "" }, { "docid": "a6a1c7193e66c79d9f5d6d9c9b366b46", "score": "0.7670173", "text": "@Override\r\n\tpublic void setScore(int score) {\n\t\t\r\n\t}", "title": "" }, { "docid": "4d068ddb794c3f5773e6ba14b8c23205", "score": "0.7613462", "text": "public void setScore() {\n\t\tscore1.setText\n\t\t\t(\" Player 1: \" + i + \" Boost: \" + player.getBoostsLeft());\n\t\tscore2.setText\n\t\t\t(\" Player 2: \" + j + \" Boost: \" + player2.getBoostsLeft());\n\t}", "title": "" }, { "docid": "317ad880324e8a09fc8cb813a431b78f", "score": "0.76054025", "text": "public void setScore(int score) {\n mScore = score;\n }", "title": "" }, { "docid": "b6e3e7e84b75bf45a63c1e1e526d1155", "score": "0.75761837", "text": "public void setScore(int score) {\n this.score = score;\n }", "title": "" }, { "docid": "c9ec13932e75aabc5b17eaf2ad49a1b0", "score": "0.7567483", "text": "public void setScore(int inScore){\r\n\t\t\tscore = inScore;\r\n\t\t}", "title": "" }, { "docid": "0e74cdd5d55a51384be04f3af81e735d", "score": "0.7541959", "text": "public void setScore(int score){\n\t\tthis.score=score;\n\t}", "title": "" }, { "docid": "6b462794a2b89141da0c75147ef36bf1", "score": "0.7536225", "text": "public void setScore(double score) {\n this.score = score;\n// propagateMaxScore(score);\n }", "title": "" }, { "docid": "70c227b0d7cfef6a9cc66281804dba2e", "score": "0.7533777", "text": "public void setScore(double score) {\r\n this.score = score;\r\n }", "title": "" }, { "docid": "0a310a45961ea3abb3a9104f0884a4a1", "score": "0.75183827", "text": "public void setScore(Integer score) {\r\n this.score = score;\r\n }", "title": "" }, { "docid": "b8b21a2716f7c43a82aff89b848c5e2b", "score": "0.74693066", "text": "private void setScore(long value) {\n \n score_ = value;\n }", "title": "" }, { "docid": "17b590cf84208e53460bcfca8bdfbc34", "score": "0.74627006", "text": "public void setScore(float score) {\n this.score = score;\n }", "title": "" }, { "docid": "1b8ad9bfd695318e6bb445295b69776f", "score": "0.7459766", "text": "public void setScore(Number score) {\n this.score = score;\n }", "title": "" }, { "docid": "03e7b4e702eaa4cff7d1de60f93d2696", "score": "0.74573964", "text": "public void setScore(int s) {\r\n\t\tthis.score = s;\r\n\t}", "title": "" }, { "docid": "2b5e37add8e2582e33d0e7b5e1a5dfa1", "score": "0.74434984", "text": "public void setScore(double score) {\n this.score = score;\n }", "title": "" }, { "docid": "751cc40d94c0865d804205d440b718ad", "score": "0.74404967", "text": "public void setScore(Integer score) {\n this.score = score;\n }", "title": "" }, { "docid": "28e668087df7e383fb0fcb692cc4de93", "score": "0.73800695", "text": "public static void setScore(int score) {\n\t\tLuna_Lander.score +=score;\n\t}", "title": "" }, { "docid": "3a112ac2e95c346ac2962d05675f5f57", "score": "0.73605025", "text": "public void setScore(int score) {\n\t\tthis.score += score;\n\t}", "title": "" }, { "docid": "b2d3623124b163f1137a618fd1b702f6", "score": "0.7321155", "text": "public void setScore(int score)\n\t{\n\t\tthis.score = score;\n\t}", "title": "" }, { "docid": "b2d3623124b163f1137a618fd1b702f6", "score": "0.7321155", "text": "public void setScore(int score)\n\t{\n\t\tthis.score = score;\n\t}", "title": "" }, { "docid": "0dd102f9deb4e71c24af58127b8aa0a5", "score": "0.72833705", "text": "public int getPlayerScore() {\n return playerScore;\n }", "title": "" }, { "docid": "9f9cc8f2378d3b9a4e5ae16890f319f5", "score": "0.7260313", "text": "public void setScore(int score) {\n this.score.setValue(score);\n }", "title": "" }, { "docid": "9a9b4534b62738ebc9cfa3a49497ce10", "score": "0.7214352", "text": "public void setScore(int score) {\n\t\tthis.score = score;\n\t}", "title": "" }, { "docid": "395ff42e12449accf8512eaad976316f", "score": "0.7195668", "text": "public PlayersState setScore(Array<Integer> score) {\n if (this.score == score) return this;\n return new PlayersState(\n players, score, tokens, turnPlayerIndex,\n followers, specialMeeples\n );\n }", "title": "" }, { "docid": "134d3143f4f720576c5272bdebe5d68d", "score": "0.7191947", "text": "void updateScore(int score);", "title": "" }, { "docid": "2465de9cb5893fd13d314d2c1e2b5800", "score": "0.716999", "text": "public void alterScore( int score)\n {\n // System.out.println(\"Score.alterScore\");\n this.score += score;\n }", "title": "" }, { "docid": "8df15a7cea49bb7336d855326d356da0", "score": "0.71693707", "text": "public void setScore(Integer score) {\n\t\tthis.score = score;\n\t}", "title": "" }, { "docid": "3684e12e9269d4591dc325343e41681e", "score": "0.7154208", "text": "@Override\n public void setScore() {\n view.setScore();\n }", "title": "" }, { "docid": "0e972e1ae3dfe15e35478242b9fc8e11", "score": "0.71450335", "text": "public void setScore(int newScore){\n\t\tchromosomeScore = newScore;\n\t}", "title": "" }, { "docid": "7c1079b4396eeef6d6e8ba389498a002", "score": "0.7128605", "text": "public void setScore()\r\n\t{\r\n\t\tSystem.out.println(\"What do you want to play to? Please input a whole positive number.\");\r\n\t\tgoalScore = scan.nextInt();\r\n\t\tscan.nextLine(); //clears input stream\r\n\t}", "title": "" }, { "docid": "63f84b5b3bae060d3ab535ccc978ba2e", "score": "0.71221274", "text": "public Builder setScore(int value) {\n \n score_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "63f84b5b3bae060d3ab535ccc978ba2e", "score": "0.71221274", "text": "public Builder setScore(int value) {\n \n score_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "56e09a21231196df52defb36c31350af", "score": "0.71119624", "text": "public void setpong(int score) {\n this.pongScore=score;\r\n\r\n }", "title": "" }, { "docid": "549d4ae9e99518ad675a2d414128b39a", "score": "0.7106804", "text": "@Override\r\n\t\t\tpublic void updateScore(Score opponentScore) {\n\r\n\t\t\t}", "title": "" }, { "docid": "549d4ae9e99518ad675a2d414128b39a", "score": "0.7106804", "text": "@Override\r\n\t\t\tpublic void updateScore(Score opponentScore) {\n\r\n\t\t\t}", "title": "" }, { "docid": "549d4ae9e99518ad675a2d414128b39a", "score": "0.7106804", "text": "@Override\r\n\t\t\tpublic void updateScore(Score opponentScore) {\n\r\n\t\t\t}", "title": "" }, { "docid": "549d4ae9e99518ad675a2d414128b39a", "score": "0.7106804", "text": "@Override\r\n\t\t\tpublic void updateScore(Score opponentScore) {\n\r\n\t\t\t}", "title": "" }, { "docid": "549d4ae9e99518ad675a2d414128b39a", "score": "0.7106804", "text": "@Override\r\n\t\t\tpublic void updateScore(Score opponentScore) {\n\r\n\t\t\t}", "title": "" }, { "docid": "549d4ae9e99518ad675a2d414128b39a", "score": "0.7106804", "text": "@Override\r\n\t\t\tpublic void updateScore(Score opponentScore) {\n\r\n\t\t\t}", "title": "" }, { "docid": "549d4ae9e99518ad675a2d414128b39a", "score": "0.7106804", "text": "@Override\r\n\t\t\tpublic void updateScore(Score opponentScore) {\n\r\n\t\t\t}", "title": "" }, { "docid": "549d4ae9e99518ad675a2d414128b39a", "score": "0.7106804", "text": "@Override\r\n\t\t\tpublic void updateScore(Score opponentScore) {\n\r\n\t\t\t}", "title": "" }, { "docid": "549d4ae9e99518ad675a2d414128b39a", "score": "0.7106804", "text": "@Override\r\n\t\t\tpublic void updateScore(Score opponentScore) {\n\r\n\t\t\t}", "title": "" }, { "docid": "549d4ae9e99518ad675a2d414128b39a", "score": "0.7106804", "text": "@Override\r\n\t\t\tpublic void updateScore(Score opponentScore) {\n\r\n\t\t\t}", "title": "" }, { "docid": "549d4ae9e99518ad675a2d414128b39a", "score": "0.7106804", "text": "@Override\r\n\t\t\tpublic void updateScore(Score opponentScore) {\n\r\n\t\t\t}", "title": "" }, { "docid": "549d4ae9e99518ad675a2d414128b39a", "score": "0.7106804", "text": "@Override\r\n\t\t\tpublic void updateScore(Score opponentScore) {\n\r\n\t\t\t}", "title": "" }, { "docid": "993991a48ae099d2b8b9906c19e4075c", "score": "0.70919645", "text": "public void setScore(final int score) {\n\t\tthis.score = score;\n\t}", "title": "" }, { "docid": "55f0254b7a050ece964924448b18408e", "score": "0.7059734", "text": "@Override\r\n\t\tpublic void setScore(String score) {\n\t\t\tthis.score = score;\r\n\t\t}", "title": "" }, { "docid": "73bcf9d2ef6f2ad9015bf51005916641", "score": "0.70514333", "text": "public Builder setMyScore(int value) {\n bitField0_ |= 0x00000001;\n myScore_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4ab7c43939c9baeb409525aea24d0d37", "score": "0.70190585", "text": "public void setScore(Byte score) {\n this.score = score;\n }", "title": "" }, { "docid": "474002b3a9ace843e1b4f077ab7af121", "score": "0.6991904", "text": "protected int getScore(){\n\t\treturn score;\n\t\t\n\t}", "title": "" }, { "docid": "9117e1fbb85f070130885d8258539b7e", "score": "0.6978881", "text": "public void setScore(int i) {\n\t\tif (chaScore > 10) {\n\t\t\tchaScore = i;\n\t\t} else if (oppScore > 10) {\n\t\t\toppScore = i;\n\t\t}\n\t}", "title": "" }, { "docid": "9712992b1b4bd41de7da442c0bc16675", "score": "0.69740623", "text": "public Builder setScore(int value) {\n bitField0_ |= 0x00000002;\n score_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "dc87dc1c3fb16819c64dad4297e8a1d4", "score": "0.6972843", "text": "public void setPlayerScoreboard(Player p) {\n p.setScoreboard(scoreboard);\n LoggerUtil.debug(DEBUG_SET_SCOREBOARD + p.getName());\n }", "title": "" }, { "docid": "a54218496e4e09d665858dd441f5bca7", "score": "0.6966337", "text": "public void updateScore() {\n\t\tscore += 100;\n\t}", "title": "" }, { "docid": "e0317fa9ab61c9c2792b825abd9bc03a", "score": "0.69620144", "text": "public void setScore(final double score) {\n\t\tthis.score = score;\n\t}", "title": "" }, { "docid": "78c461b4c13fb56b77bf53ac1be458aa", "score": "0.6952202", "text": "public Builder setScore(int value) {\n \n score_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "34f40f0f018e83a2727619f406d3aae5", "score": "0.69395113", "text": "private void setScore(Label label)\n {\n this.score = label;\n }", "title": "" }, { "docid": "f30f0e251fec098d78b5d754c40a2d87", "score": "0.6928128", "text": "public int getScore(){\r\n return score;\r\n }", "title": "" }, { "docid": "9925c95a9c9a51eefedd2ac468e5356d", "score": "0.69217634", "text": "public Label getPlayerScore() {\n return gamePlayerScore;\n }", "title": "" }, { "docid": "8ace4071a5caf4acaee26c23bad11089", "score": "0.68998045", "text": "public void changeScore(int score)\n\t{\n\t\tthis.score = score;\n\t}", "title": "" }, { "docid": "ea796cc81de0b035d2907da8bfce167a", "score": "0.6899212", "text": "public void setPosScore(int x, int y, int score) {\n\tthis.posx = x;\n\tthis.posy = y;\n\tthis.score = score;\n }", "title": "" }, { "docid": "ea6eb1cf51c4d3ec8559b58f70592425", "score": "0.689344", "text": "public int getScore(){\r\n\t\t\treturn score;\r\n\t\t}", "title": "" }, { "docid": "dab4e5d8f23a03cdf4f00ea082b013e8", "score": "0.6889901", "text": "void scoreChanged(int newValue);", "title": "" }, { "docid": "581da7c190022b7b585e3b691cc1817f", "score": "0.6885721", "text": "static void setScore(final Score score) {\n\t\tGoTetrisApplication.score = score;\n\t}", "title": "" }, { "docid": "28aaf1b4f92c8cf30c1af8af275b3c75", "score": "0.6883027", "text": "public Builder setScore(ServerData.Data.Score value) {\n if (scoreBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n score_ = value;\n onChanged();\n } else {\n scoreBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000080;\n return this;\n }", "title": "" }, { "docid": "ae0c0839613348d42105d610845dc302", "score": "0.687448", "text": "public void setmath(int score) {\n this.mathScore=score;\r\n\r\n }", "title": "" }, { "docid": "1dd69c38ea9fe9a710396a92f601ec48", "score": "0.6873012", "text": "public void setProfileScore(int value) {\n this.profileScore = value;\n }", "title": "" }, { "docid": "0a05b720f48279e3a2cc9745a4986b3b", "score": "0.6869278", "text": "private void increaseP2Score() {\n //se cambia para implementar setters y getters\n this.setPlayer2Points(this.getPlayer2Points() + 1);\n }", "title": "" }, { "docid": "0870eb468a06150a8f3a3f95fdfae39a", "score": "0.6863157", "text": "public int getPlayer1Score()\n {\n return p1Score;\n }", "title": "" }, { "docid": "fb4f4d97a01d7fd495d7ee2c6b96d3b3", "score": "0.6857773", "text": "public void setScore(BigDecimal score) {\n this.score = score;\n }", "title": "" }, { "docid": "f2926a716bbe8af6b631cc94a018c685", "score": "0.6856892", "text": "public int getScore() {\n return score;\n }", "title": "" }, { "docid": "01d72d758a2847f720f3d66e86d31125", "score": "0.6824129", "text": "public void updateScore() {\n\t\tscore.set(0, hasMoreCards());\n\t\tscore.set(1, hasMoreDenari());\n\t\tscore.set(2, hasSetteBello());\n\t\tscore.set(3, hasPrimiera());\n\t}", "title": "" }, { "docid": "e2d0dbcdb11772d6c6bb18ab38d12cee", "score": "0.68218094", "text": "public int getScore()\n {\n return my_score;\n }", "title": "" }, { "docid": "e2d0dbcdb11772d6c6bb18ab38d12cee", "score": "0.68218094", "text": "public int getScore()\n {\n return my_score;\n }", "title": "" }, { "docid": "4a50c0a1af5b0c553cd784b6f1de8d2b", "score": "0.68209267", "text": "public void updateScores() {\n Player player;\n player = game.getPlayer(1);\n score1.setText(\"Score: \" + player.getScore().toString());\n player = game.getPlayer(2);\n score2.setText(\"Score: \" + player.getScore().toString());\n player = game.getPlayer(3);\n score3.setText(\"Score: \" + player.getScore().toString());\n player = game.getPlayer(4);\n score4.setText(\"Score: \" + player.getScore().toString());\n }", "title": "" }, { "docid": "9816546b652ad7eff024d402e5053e03", "score": "0.6819003", "text": "public int getScore() {\n return myScore;\n }", "title": "" }, { "docid": "a600c73ae2de0d14dfa528424336f25e", "score": "0.6814622", "text": "@Override\n public int getScore() {\n return this.score;\n }", "title": "" }, { "docid": "dc84a95e5f78f2738dfd32e8d394172a", "score": "0.68137366", "text": "private void updatePlayerScores( int a_humanScore, int a_computerScore){\n // After each round is over, update the player scores here\n m_humanPlayer.updateScore( a_humanScore );\n m_computerPlayer.updateScore( a_computerScore );\n }", "title": "" }, { "docid": "19d9b09ff52489fdbb41271dc3be9622", "score": "0.680507", "text": "public int GetScore(){\r\n return ScorePoint;\r\n }", "title": "" }, { "docid": "fb9dfcebc1eed56bf066a557966b848f", "score": "0.680369", "text": "public void setScore(long score) {\n scoreText.setText(\"\" + score);\n }", "title": "" }, { "docid": "21aedc02b72cf4a8c882643089e444d2", "score": "0.67959243", "text": "public int getScore() {\n return score;\n }", "title": "" }, { "docid": "21aedc02b72cf4a8c882643089e444d2", "score": "0.67959243", "text": "public int getScore() {\n return score;\n }", "title": "" }, { "docid": "21aedc02b72cf4a8c882643089e444d2", "score": "0.67959243", "text": "public int getScore() {\n return score;\n }", "title": "" }, { "docid": "21aedc02b72cf4a8c882643089e444d2", "score": "0.67959243", "text": "public int getScore() {\n return score;\n }", "title": "" }, { "docid": "21aedc02b72cf4a8c882643089e444d2", "score": "0.67959243", "text": "public int getScore() {\n return score;\n }", "title": "" }, { "docid": "21aedc02b72cf4a8c882643089e444d2", "score": "0.67959243", "text": "public int getScore() {\n return score;\n }", "title": "" }, { "docid": "21aedc02b72cf4a8c882643089e444d2", "score": "0.67959243", "text": "public int getScore() {\n return score;\n }", "title": "" }, { "docid": "80bfacf962a688c7a104f3824f9a7a55", "score": "0.67914593", "text": "public Builder setScore(float value) {\n bitField0_ |= 0x00000080;\n score_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ea74c3559b81c2171103b2217ca9acfe", "score": "0.6787605", "text": "private void updateScore()\n\t{\n\t\tscoreCounter.setText(String.format(\"%d\", phoenix.getScore()));\n\t}", "title": "" }, { "docid": "ba16f2421b8c4a4679425cb1a478a45c", "score": "0.67770004", "text": "public void setquiz(int score) {\n this.quizScore=score;\r\n\r\n }", "title": "" }, { "docid": "a3004dda0fa9041de360f8c29a33d6b3", "score": "0.6769377", "text": "public void setRsScore(Integer rsScore)\n/* */ {\n/* 314 */ this.rsScore = rsScore;\n/* */ }", "title": "" }, { "docid": "48db7686b7fecf185eba9aa2d3f5df5d", "score": "0.6764154", "text": "public int getScore() {\n\t\t return score;\n\t}", "title": "" }, { "docid": "0a1447d3cba903e76d804fda4a9bdb84", "score": "0.6758641", "text": "public void incrementScore(){\n mScore++;\n }", "title": "" }, { "docid": "4021f046a866bec29087ced037e9d335", "score": "0.6751865", "text": "public void updateScore() {\n\t\tdouble scoreValue = gameManager.getScore();\n\t\tscore.setText(scoreValue + \"\");\n\t}", "title": "" }, { "docid": "873452cc597643222bfd1591f05f7423", "score": "0.67504716", "text": "public void setRedScore(int score) {\r\n redScore += score;\r\n }", "title": "" }, { "docid": "214dbaa2f811d500dc7c1d651b588bb2", "score": "0.6748225", "text": "public int GetScore() {\n return score;\n }", "title": "" } ]
19e9e2d333dc7f2357c5655748bfaf85
optional string site_group_id = 3;
[ { "docid": "0110f6d9fa3c99803f4fb2f898a83df5", "score": "0.6198754", "text": "public String getSiteGroupId() {\n return instance.getSiteGroupId();\n }", "title": "" } ]
[ { "docid": "a7e66416b3e25093c239c56925c35402", "score": "0.7501153", "text": "String getSiteGroupId();", "title": "" }, { "docid": "a7e66416b3e25093c239c56925c35402", "score": "0.7501153", "text": "String getSiteGroupId();", "title": "" }, { "docid": "a7e66416b3e25093c239c56925c35402", "score": "0.7501153", "text": "String getSiteGroupId();", "title": "" }, { "docid": "a7e66416b3e25093c239c56925c35402", "score": "0.7501153", "text": "String getSiteGroupId();", "title": "" }, { "docid": "a7e66416b3e25093c239c56925c35402", "score": "0.7501153", "text": "String getSiteGroupId();", "title": "" }, { "docid": "a7e66416b3e25093c239c56925c35402", "score": "0.7501153", "text": "String getSiteGroupId();", "title": "" }, { "docid": "a7e66416b3e25093c239c56925c35402", "score": "0.7501153", "text": "String getSiteGroupId();", "title": "" }, { "docid": "4ce9b0abe75d2de8c801be9b2cc86a8a", "score": "0.70706594", "text": "private void setSiteGroupId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n siteGroupId_ = value;\n }", "title": "" }, { "docid": "4ce9b0abe75d2de8c801be9b2cc86a8a", "score": "0.70706594", "text": "private void setSiteGroupId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n siteGroupId_ = value;\n }", "title": "" }, { "docid": "4ce9b0abe75d2de8c801be9b2cc86a8a", "score": "0.70706594", "text": "private void setSiteGroupId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n siteGroupId_ = value;\n }", "title": "" }, { "docid": "4ce9b0abe75d2de8c801be9b2cc86a8a", "score": "0.70706594", "text": "private void setSiteGroupId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n siteGroupId_ = value;\n }", "title": "" }, { "docid": "4ce9b0abe75d2de8c801be9b2cc86a8a", "score": "0.70706594", "text": "private void setSiteGroupId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n siteGroupId_ = value;\n }", "title": "" }, { "docid": "4ce9b0abe75d2de8c801be9b2cc86a8a", "score": "0.70706594", "text": "private void setSiteGroupId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n siteGroupId_ = value;\n }", "title": "" }, { "docid": "4ce9b0abe75d2de8c801be9b2cc86a8a", "score": "0.70706594", "text": "private void setSiteGroupId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n siteGroupId_ = value;\n }", "title": "" }, { "docid": "cb38a81354713e390a90848f35a41304", "score": "0.6721393", "text": "public String getSiteGroupId() {\n return siteGroupId_;\n }", "title": "" }, { "docid": "cb38a81354713e390a90848f35a41304", "score": "0.6721393", "text": "public String getSiteGroupId() {\n return siteGroupId_;\n }", "title": "" }, { "docid": "cb38a81354713e390a90848f35a41304", "score": "0.6721393", "text": "public String getSiteGroupId() {\n return siteGroupId_;\n }", "title": "" }, { "docid": "cb38a81354713e390a90848f35a41304", "score": "0.6721393", "text": "public String getSiteGroupId() {\n return siteGroupId_;\n }", "title": "" }, { "docid": "cb38a81354713e390a90848f35a41304", "score": "0.6721393", "text": "public String getSiteGroupId() {\n return siteGroupId_;\n }", "title": "" }, { "docid": "cb38a81354713e390a90848f35a41304", "score": "0.6721393", "text": "public String getSiteGroupId() {\n return siteGroupId_;\n }", "title": "" }, { "docid": "cb38a81354713e390a90848f35a41304", "score": "0.6721393", "text": "public String getSiteGroupId() {\n return siteGroupId_;\n }", "title": "" }, { "docid": "9c051bfccd68b88df1403d2887622796", "score": "0.63201773", "text": "private void setSiteGroupIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n siteGroupId_ = value.toStringUtf8();\n }", "title": "" }, { "docid": "9c051bfccd68b88df1403d2887622796", "score": "0.63201773", "text": "private void setSiteGroupIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n siteGroupId_ = value.toStringUtf8();\n }", "title": "" }, { "docid": "9c051bfccd68b88df1403d2887622796", "score": "0.63201773", "text": "private void setSiteGroupIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n siteGroupId_ = value.toStringUtf8();\n }", "title": "" }, { "docid": "9c051bfccd68b88df1403d2887622796", "score": "0.63201773", "text": "private void setSiteGroupIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n siteGroupId_ = value.toStringUtf8();\n }", "title": "" }, { "docid": "9c051bfccd68b88df1403d2887622796", "score": "0.63201773", "text": "private void setSiteGroupIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n siteGroupId_ = value.toStringUtf8();\n }", "title": "" }, { "docid": "9c051bfccd68b88df1403d2887622796", "score": "0.63201773", "text": "private void setSiteGroupIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n siteGroupId_ = value.toStringUtf8();\n }", "title": "" }, { "docid": "9c051bfccd68b88df1403d2887622796", "score": "0.63201773", "text": "private void setSiteGroupIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n siteGroupId_ = value.toStringUtf8();\n }", "title": "" }, { "docid": "f59b82921eae381e605bea4d866d55c3", "score": "0.6287332", "text": "public void setOpssec_group(java.lang.String param){\n localOpssec_groupTracker = true;\n \n this.localOpssec_group=param;\n \n\n }", "title": "" }, { "docid": "9240ab696c3439d5e33ecc98b616a723", "score": "0.6092165", "text": "public String getSiteid() {\r\n return siteid;\r\n }", "title": "" }, { "docid": "235db1718737f0024c872c1bcfd30b78", "score": "0.6069516", "text": "public Builder setSiteGroupId(\n String value) {\n copyOnWrite();\n instance.setSiteGroupId(value);\n return this;\n }", "title": "" }, { "docid": "235db1718737f0024c872c1bcfd30b78", "score": "0.6069516", "text": "public Builder setSiteGroupId(\n String value) {\n copyOnWrite();\n instance.setSiteGroupId(value);\n return this;\n }", "title": "" }, { "docid": "235db1718737f0024c872c1bcfd30b78", "score": "0.6069516", "text": "public Builder setSiteGroupId(\n String value) {\n copyOnWrite();\n instance.setSiteGroupId(value);\n return this;\n }", "title": "" }, { "docid": "235db1718737f0024c872c1bcfd30b78", "score": "0.6069516", "text": "public Builder setSiteGroupId(\n String value) {\n copyOnWrite();\n instance.setSiteGroupId(value);\n return this;\n }", "title": "" }, { "docid": "235db1718737f0024c872c1bcfd30b78", "score": "0.6069516", "text": "public Builder setSiteGroupId(\n String value) {\n copyOnWrite();\n instance.setSiteGroupId(value);\n return this;\n }", "title": "" }, { "docid": "235db1718737f0024c872c1bcfd30b78", "score": "0.6069516", "text": "public Builder setSiteGroupId(\n String value) {\n copyOnWrite();\n instance.setSiteGroupId(value);\n return this;\n }", "title": "" }, { "docid": "235db1718737f0024c872c1bcfd30b78", "score": "0.6069516", "text": "public Builder setSiteGroupId(\n String value) {\n copyOnWrite();\n instance.setSiteGroupId(value);\n return this;\n }", "title": "" }, { "docid": "1376dd29cd0ff83baf25519db9f61c5b", "score": "0.5991764", "text": "public void setSecuritygroup_name(java.lang.String param){\n localSecuritygroup_nameTracker = true;\n \n this.localSecuritygroup_name=param;\n \n\n }", "title": "" }, { "docid": "6a0dbed8828364ef961b985fa6fe2b62", "score": "0.5983344", "text": "public void setSiteid(String siteid) {\r\n this.siteid = siteid;\r\n }", "title": "" }, { "docid": "90417893d03ecf22152ba43ec5b4074b", "score": "0.59542155", "text": "public long getSiteId()\r\n \t{\r\n \t\treturn siteId;\r\n \t}", "title": "" }, { "docid": "5d4c48302d2ad032075ec591bbdb277e", "score": "0.59419596", "text": "public void pushAuthzGroups(String siteId) {\n }", "title": "" }, { "docid": "5c69a6c40ce921148a2c50b9aea596de", "score": "0.5923702", "text": "public void setIdGroup(int idGroup) {\n this.idGroup = idGroup;\n }", "title": "" }, { "docid": "20a643ddfe5f065c75dc27837516164c", "score": "0.59008557", "text": "public void setGroup_id(Integer group_id) {\n\t\tthis.group_id = group_id;\n\t}", "title": "" }, { "docid": "7d71fa61eceb27148cf2e4df293a0e32", "score": "0.5883349", "text": "public void setGroup(String value) {\r\n this.group = value;\r\n }", "title": "" }, { "docid": "7deed328a0c739d13b662f4b61af30aa", "score": "0.5868187", "text": "public String getSiteId() {\n return siteId;\n }", "title": "" }, { "docid": "cfcbaad1f7d0130b5624f70c35ff41d0", "score": "0.58236915", "text": "public String getSiteId() {\n return this.siteId;\n }", "title": "" }, { "docid": "c966f1f9623291d82b0ccc365bd23370", "score": "0.5823037", "text": "com.google.protobuf.ByteString\n getSiteGroupIdBytes();", "title": "" }, { "docid": "c966f1f9623291d82b0ccc365bd23370", "score": "0.5823037", "text": "com.google.protobuf.ByteString\n getSiteGroupIdBytes();", "title": "" }, { "docid": "c966f1f9623291d82b0ccc365bd23370", "score": "0.5823037", "text": "com.google.protobuf.ByteString\n getSiteGroupIdBytes();", "title": "" }, { "docid": "c966f1f9623291d82b0ccc365bd23370", "score": "0.5823037", "text": "com.google.protobuf.ByteString\n getSiteGroupIdBytes();", "title": "" }, { "docid": "c966f1f9623291d82b0ccc365bd23370", "score": "0.5823037", "text": "com.google.protobuf.ByteString\n getSiteGroupIdBytes();", "title": "" }, { "docid": "c966f1f9623291d82b0ccc365bd23370", "score": "0.5823037", "text": "com.google.protobuf.ByteString\n getSiteGroupIdBytes();", "title": "" }, { "docid": "c966f1f9623291d82b0ccc365bd23370", "score": "0.5823037", "text": "com.google.protobuf.ByteString\n getSiteGroupIdBytes();", "title": "" }, { "docid": "f4d87d518baa6c90b06a936ce0ebd8ba", "score": "0.5792401", "text": "private void clearSiteGroupId() {\n\n siteGroupId_ = getDefaultInstance().getSiteGroupId();\n }", "title": "" }, { "docid": "f4d87d518baa6c90b06a936ce0ebd8ba", "score": "0.5792401", "text": "private void clearSiteGroupId() {\n\n siteGroupId_ = getDefaultInstance().getSiteGroupId();\n }", "title": "" }, { "docid": "f4d87d518baa6c90b06a936ce0ebd8ba", "score": "0.5792401", "text": "private void clearSiteGroupId() {\n\n siteGroupId_ = getDefaultInstance().getSiteGroupId();\n }", "title": "" }, { "docid": "f4d87d518baa6c90b06a936ce0ebd8ba", "score": "0.5792401", "text": "private void clearSiteGroupId() {\n\n siteGroupId_ = getDefaultInstance().getSiteGroupId();\n }", "title": "" }, { "docid": "f4d87d518baa6c90b06a936ce0ebd8ba", "score": "0.5792401", "text": "private void clearSiteGroupId() {\n\n siteGroupId_ = getDefaultInstance().getSiteGroupId();\n }", "title": "" }, { "docid": "f4d87d518baa6c90b06a936ce0ebd8ba", "score": "0.5792401", "text": "private void clearSiteGroupId() {\n\n siteGroupId_ = getDefaultInstance().getSiteGroupId();\n }", "title": "" }, { "docid": "f4d87d518baa6c90b06a936ce0ebd8ba", "score": "0.5792401", "text": "private void clearSiteGroupId() {\n\n siteGroupId_ = getDefaultInstance().getSiteGroupId();\n }", "title": "" }, { "docid": "bd25025eda90ac7443603914aaa5c978", "score": "0.57689404", "text": "public void setSiteID(long value) {\r\n this.siteID = value;\r\n }", "title": "" }, { "docid": "add3fa3378502e819c85898e33afe396", "score": "0.5765538", "text": "void setGroupId(String groupId);", "title": "" }, { "docid": "5745cb958e37da6e624693341656d95e", "score": "0.5745678", "text": "public Integer getSiteid() {\n\t\treturn siteid;\n\t}", "title": "" }, { "docid": "2af93cb91d8ed123bdc255c7fbd76c7b", "score": "0.5743357", "text": "public void setSiteId(long siteId)\r\n \t{\r\n \t\tthis.siteId = siteId;\r\n \t}", "title": "" }, { "docid": "e598ad18f78cd0ebdb55f6d3003c4ca3", "score": "0.57082254", "text": "public Integer getGroup_id() {\n\t\treturn group_id;\n\t}", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "e04ad016770b7075d60f0262d5311e39", "score": "0.57070506", "text": "int getGroupId();", "title": "" }, { "docid": "281385ab2e2a27eade6d838b3b9926bc", "score": "0.56999654", "text": "public String getSITE_ID() {\n\t\treturn SITE_ID;\n\t}", "title": "" }, { "docid": "a6605eb81106909a3aa69d87b6454cd3", "score": "0.569162", "text": "public String getDpSiteId(){\n\t\treturn dpSiteId;\n\t}", "title": "" }, { "docid": "fd5784947d6ed240aa1047bb36f53a53", "score": "0.56737393", "text": "String getGroupId();", "title": "" }, { "docid": "fd5784947d6ed240aa1047bb36f53a53", "score": "0.56737393", "text": "String getGroupId();", "title": "" }, { "docid": "fd5784947d6ed240aa1047bb36f53a53", "score": "0.56737393", "text": "String getGroupId();", "title": "" }, { "docid": "6215ae5d349d61b7a580e43678e7f175", "score": "0.5673541", "text": "public String getGroupId();", "title": "" } ]
076f2fdab5053bd7bb0bbd5f06128ac6
IMP > if headless then never displayed irrespctive of the vdbgui param Display the Report's contents in a simple GUI. JFrame with a JList holding objects in this reports > only Files and Charts Double clicking / right popup on an elemnt brings up the File/Chart in a viewer. For files, native viewers only > Acrobat, etc For Charts > just put in a Chart displayer IMP > make sure that xomics does not get initialized due to this call
[ { "docid": "f58c5258c4837fb78154952599bbbd03", "score": "0.6892371", "text": "public void display() {\n\n if (SystemUtils.isHeadless()) {\n klog.info(\"Suppressing display reports as headless mode\");\n } else if (SystemUtils.isPropertyTrue(\"GSEA\")) {\n klog.info(\"Suppressing display reports as gsea app\");\n } else {\n klog.info(\"Displaying reports ...\");\n ToolReportDisplay display = new ToolReportDisplay(this);\n display.show();\n }\n }", "title": "" } ]
[ { "docid": "7eb2461a0e4145a7d061d96bf057296c", "score": "0.6926087", "text": "public void displayReport() {\r\n\t\t\r\n\t\treport = new ReportFrame(program);\r\n\t\treport.setVisible(true);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6d11d2c9d518f24b0b75bd2457ffb652", "score": "0.62368447", "text": "private static void showVisualizer(String xmlFileName) {\n // Create the main frame\n frame = new JFrame(\"CoVis Ver. 1.0\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n visDriver = new CoVis(xmlFileName);\n\n // Create Pulldown Menu\n frame.setJMenuBar(visDriver.makeMenuBar());\n // Create Dom data and the main Pane\n frame.getContentPane().add(visDriver.makeMainPanel());\n\n // Create the title\n String title = visDriver.getTitle();\n if (title != null)\n frame.setTitle(title);\n\n // Display the window\n frame.setSize(VisEnvironment.WIDTH, VisEnvironment.HEIGHT);\n frame.setLocation(VisEnvironment.X_LOCATION, VisEnvironment.Y_LOCATION);\n frame.setVisible(true);\n }", "title": "" }, { "docid": "06de1b0a077f812609b56c9cf416f4ab", "score": "0.62143904", "text": "private void fileReport() {\r\n\t\tif (reportPanel != null)\r\n\t\t\tcontentSwitcher.removeLayoutComponent(reportPanel);\r\n\t\treportPanel = new Report(profile);\r\n\t\tcontentPanel.add(reportPanel, \"REPORT\");\r\n\t\tcontentSwitcher.show(contentPanel, \"REPORT\");\r\n\t}", "title": "" }, { "docid": "1ba368bd236a446a2fca6effb1a93aad", "score": "0.6008189", "text": "public JInternalFrameReportar() {\n initComponents();\n }", "title": "" }, { "docid": "ff0e0bb2192c8b6a0000de54bc637939", "score": "0.59620714", "text": "protected void doDetrend() \n {\n // Create a new Detrend Frame\n DetrendDataDialog det = new DetrendDataDialog( this );\n seriesManager.getFrog().getDesktop().add(det);\n det.show(); \n \n }", "title": "" }, { "docid": "2ac46bca1de1d7fd4bddf95f15285b90", "score": "0.58735496", "text": "@Override\n\tpublic void display()\n\t{\n\t\tIReportBuilder builder = null;\n\t\tString fileType = \"\";\n\t\tif(this.getView().getFormat() == FileFormat.PDF)\n\t\t{\n\t\t\tbuilder = new PDFReportBuilder();\n\t\t\tfileType = \".pdf\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbuilder = new HTMLReportBuilder();\n\t\t\tfileType = \".html\";\n\t\t}\n\t\tMap<IProductGroup, List<IProduct>> inconsistentGroups =\n\t\t\t\tInventory.getInstance().getInconsistencies();\n\n\t\tReport report = new NoticesReport(inconsistentGroups, builder);\n\n\t\treport.createReport(this.makePath(fileType));\n\t}", "title": "" }, { "docid": "fc6084d2654633b83055d71072c2e5b3", "score": "0.5822542", "text": "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Report.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Report.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Report.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Report.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Report().setVisible(true);\n }\n });\n }", "title": "" }, { "docid": "7a93b646def4bba775d5de9713538f39", "score": "0.5788215", "text": "public report_tech() {\n initComponents();\n load();\n setIcon();\n }", "title": "" }, { "docid": "d1eb27b6d2bbff935d12c02a7fa0b8f9", "score": "0.5780315", "text": "public void showVisualization()\n {\n }", "title": "" }, { "docid": "a0cfc417ca61fad688154181f768b67f", "score": "0.5777299", "text": "@Override\r\n\tpublic void showDetailesFrame(AWSAccount account, CustomAWSObject customAWSObject, JScrollableDesktopPane jScrollableDesktopPan) {\n\t}", "title": "" }, { "docid": "8f122ea83ec25a43f22cfe139b353f57", "score": "0.57601655", "text": "public void Display()\n {\n UnaryAlgorithm unaryAlgorithmObj=new UnaryAlgorithm();\n unaryAlgorithmObj.StatementWiseSCore();\n \n PieChart pieChartObj = new PieChart();\n pieChartObj.displayPieChart();\n \n \n BarChart barChartObj = new BarChart();\n barChartObj.displayBarChart();\n \n \n \n }", "title": "" }, { "docid": "4123ba88128af0556a4dda3452bf9d6b", "score": "0.57461745", "text": "public static void createAndShowGUI() {\n javax.swing.JFrame frame = new javax.swing.JFrame(\" Bayes Analyze \");\n frame.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n\n @Override\n public void windowClosing(java.awt.event.WindowEvent evt) {\n }\n });\n InstallationEndPane pane = new InstallationEndPane();\n\n pane.setPostInstallationInstuctions(\"snaslnlsan nsalknlsadn nmaldmnsldnasl nalskdnlsadn aslkdnlasdn \");\n frame.add(pane);\n\n\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n// FidViewer.getInstance().updatePlot();\n }", "title": "" }, { "docid": "b76c2978f531b2341a6d7e6806d6ad9a", "score": "0.5734397", "text": "public JFrame produceVotingPercReport() {\r\n\t\t// TODO fix the report\r\n\t\ttry {\r\n\t\t\tClass.forName(Consts.JDBC_STR);\r\n\t\t\ttry (Connection conn = DriverManager.getConnection(Consts.CONN_STR)){\r\n\t\t\t\tHashMap<String, Object> params = new HashMap<>();\r\n\t\t\t\tJasperPrint print = JasperFillManager.fillReport(\r\n\t\t\t\t\t\tgetClass().getResourceAsStream(\"/boundary/VotingPercReport.jasper\"),\r\n\t\t\t\t\t\tparams, conn);\r\n\t\t\t\tJFrame frame = new JFrame(\"Voting Percentage\");\r\n\t\t\t\tframe.getContentPane().add(new JRViewer(print));\r\n\t\t\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\t\t\tframe.pack();\r\n\t\t\t\treturn frame;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "2e2d86a276ec22ddbac3cca1521ba98b", "score": "0.5688229", "text": "private void openPrintableView(){\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//Creating document\r\n\t\t\tDocument doc = new Document(PageSize.A4, 30, 30, 30, 30);\r\n\t\t\tFile temp = new File(App.EXPORT_FOLDER+\"/\"+s.getNombre().replace(' ', '_')+\".pdf\");\r\n\t\t\t\r\n\t\t\tPdfWriter.getInstance(doc, new FileOutputStream(temp));\r\n\t\t\tdoc.open();\r\n\t\t\t\r\n\t\t\tFont nf = new Font(Font.FontFamily.TIMES_ROMAN, 11, Font.NORMAL);\r\n\t\t\tPhrase p1 = new Phrase(getPrintableTitle(), new Font(Font.FontFamily.TIMES_ROMAN, 24, Font.BOLD | Font.UNDERLINE));\t\t\t\r\n \r\n\t\t\tParagraph sign_p = new Paragraph(s.getDesc().trim()+\"\\n\", nf);\r\n\r\n\t\t\tdoc.add(new Paragraph(p1));\r\n\t\t\tdoc.add(new Paragraph(\"\\n\\n\"));\r\n\t\t\tdoc.add(sign_p);\r\n \r\n\t\t\tdoc.close();\r\n\t\t\t\r\n\t\t\t//open system viewer\r\n\t\t\tDesktop.getDesktop().open(temp);\r\n\t\t/*\t\r\n\t\t\t//Reading document\r\n\t\t\tViewer v = new Viewer();\r\n\t\t\tv.setDocumentInputStream(new FileInputStream(temp));\r\n\t\t\tv.activate();\r\n\t\t\td.getContentPane().add(v);*/\r\n\t\t} \r\n\t\tcatch (Exception e) {e.printStackTrace();}\r\n\t\t/*\r\n\t\td.setLocationRelativeTo(null);\r\n\t\td.setVisible(true);*/\r\n\t}", "title": "" }, { "docid": "07fadd70709880c0a00295d69e12b71d", "score": "0.56864583", "text": "public static void display(Graph model) {\n\t\tJFrame frame = new JFrame(\"Graph Viewer\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tJGraph graphView = makeJGraph(model);\n\t\tframe.getContentPane().add(new JScrollPane(graphView));\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "title": "" }, { "docid": "e232e5a3a8880f01e9845b0deee7d2fe", "score": "0.56849116", "text": "@Override \n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "1982c12b79a4be6fc5805b3fdb9bcab9", "score": "0.56238", "text": "private void imprimir(){\n ConexionPG con=new ConexionPG();\n try {\n JasperReport jr= (JasperReport)JRLoader.loadObject(getClass().getResource(\"/mvc/vista/reportes/Blank_1.jasper\"));\n JasperPrint jp = JasperFillManager.fillReport(jr,null,con.getCon());\n JasperViewer jv= new JasperViewer(jp);\n jv.setVisible(true);\n } catch (JRException ex) {\n Logger.getLogger(ControlPersona.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "title": "" }, { "docid": "5b96a99c48952a46ac194752a9f400d5", "score": "0.5584107", "text": "public ReportViewer() {\n // Init UI components.\n jbInit();\n addListeners();\n\n // Center on screen.\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n setLocation(\n (screenSize.width - getWidth()) / 2,\n (screenSize.height - getHeight()) / 2);\n\n // Set date fields.\n startDateField.setText(Formats.DATE_FORMAT.format(new Date()));\n endDateField.setText(startDateField.getText());\n }", "title": "" }, { "docid": "c4039d0bec595d384524dde2eb19b22e", "score": "0.5582328", "text": "public void display(){\n \n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Windows\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(AgendaView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(AgendaView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(AgendaView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(AgendaView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n AgendaView view = new AgendaView();\n Agenda.getInstance().addObserver(view); \n view.setVisible(true);\n }\n });\n }", "title": "" }, { "docid": "62afd7ffaf0b46c4037f2de2bb75cf9e", "score": "0.5582128", "text": "public Visualizer() {\n\t\tsuper();\n\t\tinfos_ = new ArrayList<String[]>();\t\t// This is the data list (simulation results)\n\t\tbuild();\t\t\t\t\t\t\t\t// This calls for the building of the visualization window\n\t}", "title": "" }, { "docid": "ae7e3daf959150a353a2812fee79f78d", "score": "0.554917", "text": "public void display() {\n\n for (int i = 0; i<connections.length; i++) {\n float combVal = ((val/10)*(connections[i].val/10))*0.1f;\n fxVisCanvas.stroke(255, combVal*combVal);\n fxVisCanvas.line(pos.x, pos.y, connections[i].pos.x, connections[i].pos.y);\n }\n\n int c = color(FFTColorVis);\n if (colorNodes) {\n c = fittingBackgroundVisCol;\n }\n if (fillBars) {\n fxVisCanvas.fill(c, 0+constrain((val-5)*1.2f, 0, 155));\n if (strokeBars) {\n fxVisCanvas.stroke(c, 0+constrain((val-5)*1.2f, 0, 100));\n }\n } else {\n fxVisCanvas.noFill();\n if (strokeBars) {\n fxVisCanvas.stroke(c, 20+constrain((val-5)*1.2f, 0, 100));\n }\n }\n\n fxVisCanvas.ellipse(pos.x, pos.y, size, size);\n }", "title": "" }, { "docid": "984f10c6196dccef42288c5ce87e262a", "score": "0.5543903", "text": "public interface ViewerInt {\r\n\t\r\n\t//\r\n\r\n\r\n /**\r\n *\r\n * Allow user to open PDF file to display\r\n * @param defaultFile The file that will be displayed \r\n */\r\n void openDefaultFile(String defaultFile);\r\n\r\n /**\r\n *Allow user to open PDF file to display\r\n * @param defaultFile The file that will be displayed \r\n * @param page The page number on with the displayed file will be open\r\n */\r\n void openDefaultFileAtPage(String defaultFile, int page);\r\n \r\n void setRootContainer(Object rootContainer);\r\n\r\n /**\r\n * Should be called before setupViewer\r\n * @param props the set properties\r\n */\r\n void loadProperties(String props);\r\n\r\n /**\r\n * initialise and run client (default as Application in own Frame)\r\n */\r\n void setupViewer();\r\n \r\n /**\r\n * Have the viewer handle program arguments\r\n * @param args :: Program arguments passed into the Viewer.\r\n */\r\n void handleArguments(String[] args);\r\n\r\n /**\r\n * Execute Jpedal functionality from outside of the library using this method.\r\n * EXAMPLES\r\n * commandID = Commands.OPENFILE, args = {\"/PDFData/Hand_Test/crbtrader.pdf}\"\r\n * commandID = Commands.OPENFILE, args = {byte[] = {0,1,1,0,1,1,1,0,0,1}, \"/PDFData/Hand_Test/crbtrader.pdf}\"\r\n * commandID = Commands.ROTATION, args = {\"90\"}\r\n * commandID = Commands.OPENURL, args = {\"http://www.cs.bham.ac.uk/~axj/pub/papers/handy1.pdf\"}\r\n *\r\n * for full details see http://www.idrsolutions.com/access-pdf-viewer-features-from-your-code/\r\n *\r\n * @param commandID :: static int value from Commands to spedify which command is wanted\r\n * @param args :: arguements for the desired command\r\n * @return command\r\n *\r\n */\r\n @SuppressWarnings(\"UnusedReturnValue\")\r\n Object executeCommand(int commandID, Object[] args);\r\n\r\n\r\n /**\r\n * Allows external helper classes to be added to JPedal to alter default functionality.\r\n * <br><br>If Options.FormsActionHandler is the type then the <b>newHandler</b> should be\r\n * of the form <b>org.jpedal.objects.acroforms.ActionHandler</b>\r\n * <br><br>If Options.JPedalActionHandler is the type then the <b>newHandler</b> should be\r\n * of the form <b>Map</b> which contains Command Integers, mapped onto their respective\r\n * <b>org.jpedal.examples.viewer.gui.swing.JPedalActionHandler</b> implementations. For example,\r\n * to create a custom help action, you would add to your map, Integer(Commands.HELP) -> JPedalActionHandler.\r\n * For a tutorial on creating custom actions in the Viewer, see\r\n * <b>http://www.jpedal.org/support.php</b>\r\n *\r\n * @param newHandler Implementation of interface provided by IDR solutions\r\n * @param type Defined value into org.jpedal.external.Options class\r\n */\r\n void addExternalHandler(Object newHandler, int type);\r\n\r\n /**\r\n * run with caution and only at end of usage if you really need\r\n */\r\n void dispose();\r\n \r\n}", "title": "" }, { "docid": "5d18849685e62be484173f484380332a", "score": "0.5538626", "text": "public JFrame produceStatusPercReport() {\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(Consts.JDBC_STR);\r\n\t\t\ttry (Connection conn = DriverManager.getConnection(Consts.CONN_STR)){\r\n\t\t\t\tHashMap<String, Object> params = new HashMap<>();\r\n\t\t\t\tJasperPrint print = JasperFillManager.fillReport(\r\n\t\t\t\t\t\tgetClass().getResourceAsStream(\"/boundary/PercReportByStatus.jasper\"),\r\n\t\t\t\t\t\tparams, conn);\r\n\t\t\t\tJFrame frame = new JFrame(\"Voting Percentage Divided by Status\");\r\n\t\t\t\tframe.getContentPane().add(new JRViewer(print));\r\n\t\t\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\t\t\tframe.pack();\r\n\t\t\t\treturn frame;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "59e4b26cd461834e63cf4e9b04309445", "score": "0.5532954", "text": "public void displayRecorder() {\n DefaultMutableTreeNode node = null;\n try {\n node = (DefaultMutableTreeNode) trFileTree.getSelectionPath().getLastPathComponent();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Bitte wählen Sie einen Eintrag im Tree aus!\", \"Fehler\", JOptionPane.ERROR_MESSAGE);\n return;\n }\n if (node.getUserObject() instanceof ExplorerLayer) {\n try {\n ExplorerLayer explo = ((ExplorerLayer) node.getUserObject());\n if (explo instanceof CommandRun) {\n if ((((CommandRun) explo).getClassName().equals(\"ExecuteRecorderFileCommand\"))) {\n String rec = ExplorerIO.readRecFromCommand(Paths.get(explo.getPath().toString(), \"run.xml\"), explo.getDescription()).toLowerCase();\n Desktop.getDesktop().open(new File(explo.getPath().toString() + File.separator + rec));\n }\n }\n } catch (ParserConfigurationException | SAXException | IOException | XPathExpressionException ex) {\n ex.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.55312794", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "f5d03a70b227e63f8b16f8f7dc0f06a1", "score": "0.5529872", "text": "@Override\n\tpublic void visualiser() {\n\t\t\n\t}", "title": "" }, { "docid": "b843b2c282b3d71d35b8fc39b1657062", "score": "0.55256873", "text": "public ReportForPanel() {\n initComponents();\n }", "title": "" }, { "docid": "5b1927ef0eedf6d9acba849fcd48eecd", "score": "0.5509187", "text": "public static void disp(String imag) {\r\n\t\t//final JFileChooser fc = new JFileChooser();\r\n\t\tnew Viewer(imag);\r\n\t}", "title": "" }, { "docid": "2449a811464f6e223724ea69ea5d63d9", "score": "0.5504321", "text": "@Override\n\tpublic void display() {\n\t\t\n\t}", "title": "" }, { "docid": "2449a811464f6e223724ea69ea5d63d9", "score": "0.5504321", "text": "@Override\n\tpublic void display() {\n\t\t\n\t}", "title": "" }, { "docid": "2449a811464f6e223724ea69ea5d63d9", "score": "0.5504321", "text": "@Override\n\tpublic void display() {\n\t\t\n\t}", "title": "" }, { "docid": "2449a811464f6e223724ea69ea5d63d9", "score": "0.5504321", "text": "@Override\n\tpublic void display() {\n\t\t\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.54885346", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.54885346", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.54885346", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "50eec8608da399b5cc72e4d1284260f1", "score": "0.5484171", "text": "public Reportes() {\n initComponents();\n com_cliente.setVisible(false);\n }", "title": "" }, { "docid": "d5ef4e21b8b33932b8646926b06f63a4", "score": "0.54779553", "text": "@Override\r\n\tpublic void display() {\n\r\n\t}", "title": "" }, { "docid": "049264aa633f7aacc61cf61aa2c09433", "score": "0.54753405", "text": "private void displayAnalysis(){\n analysisSetPanel.removeAll();\n\n JPanel pluginPanel = new JPanel();\n analysisPlugin.customize(pluginPanel);\n analysisSetPanel.add(pluginPanel, BorderLayout.CENTER);\n \n JButton refreshBtn = new JButton(\"Refresh\");\n refreshBtn.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e){\n displayNumberScreen();\n }\n });\n analysisSetPanel.add(refreshBtn, BorderLayout.SOUTH);\n analysisSetPanel.validate();\n }", "title": "" }, { "docid": "a11d08695e862ceb218baee98b29a8dc", "score": "0.5472891", "text": "public void display() {\n\t\t\n\t}", "title": "" }, { "docid": "3f637a40d7978263ca5df925b4a56a9f", "score": "0.5471122", "text": "public void showProductionReport()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Load person overview\r\n\t\t\tFXMLLoader loader = new FXMLLoader();\r\n\t\t\tloader.setLocation(MainApp.class.getResource(\"view/ProductionReport.fxml\"));\r\n\t\t\tAnchorPane productionEntryView = (AnchorPane) loader.load();\r\n\t\t\t\r\n\t\t\t// Set person overview into the center of root layout\r\n\t\t\trootLayout.setCenter(productionEntryView);\r\n\t\t\t\t\t\t\r\n\t\t\t// Give the controller access to the MainApp\r\n\t\t\tProductionReportController controller = loader.getController();\r\n\t\t\tcontroller.setMainApp(this);\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eb599277b27107444d472a7bec122737", "score": "0.54635596", "text": "@Override\n public JReportFrame[] open()\n {\n JReportFrame[] result = null;\n\n Vector<AppResourceIFace> list = new Vector<AppResourceIFace>();\n DataProviderSessionIFace session = DataProviderFactory.getInstance().createSession();\n try\n {\n\n //XXX which of the reports should be editable? by whom? when? ...\n String[] mimes = {\"jrxml/label\", \"jrxml/report\"};\n for (int m = 0; m < mimes.length; m++)\n {\n \n for (AppResourceIFace ap : AppContextMgr.getInstance().getResourceByMimeType(mimes[m]))\n {\n if (ap instanceof SpAppResource)\n {\n if (((SpAppResource) ap).getSpAppResourceId() != null)\n {\n session.attach(ap);\n if (session.getData(SpReport.class, \"appResource\", ap,\n DataProviderSessionIFace.CompareType.Equals) != null)\n {\n Properties params = ap.getMetaDataMap();\n\n String tableid = params.getProperty(\"tableid\"); //$NON-NLS-1$\n String rptType = params.getProperty(\"reporttype\"); //$NON-NLS-1$\n\n if (StringUtils.isNotEmpty(tableid)\n && (StringUtils.isNotEmpty(rptType) \n && (rptType.equals(\"Report\") || rptType.equals(\"Invoice\"))))\n {\n if (repResIsEditableByUser(ap))\n {\n \tlist.add(ap);\n }\n }\n }\n session.evict(ap);\n }\n }\n }\n }\n } finally\n {\n session.close();\n }\n \n Collections.sort(list, new Comparator<AppResourceIFace>()\n {\n\n /*\n * (non-Javadoc)\n * \n * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)\n */\n // @Override\n public int compare(AppResourceIFace o1, AppResourceIFace o2)\n {\n return o1.toString().compareTo(o2.toString());\n }\n\n });\n if (list.size() > 0)\n {\n ChooseFromListDlg<AppResourceIFace> dlg = new ChooseFromListDlg<AppResourceIFace>(\n (Frame)null, UIRegistry.getResourceString(REP_CHOOSE_REPORT), list);\n dlg.setVisible(true);\n\n AppResourceIFace appRes = dlg.getSelectedObject();\n\n if (appRes != null)\n {\n result = new JReportFrame[1];\n result[0] = openReportFromResource(appRes);\n }\n }\n else\n {\n JOptionPane.showMessageDialog(UIRegistry.getTopWindow(), UIRegistry.getResourceString(\"REP_NO_REPORTS_TO_EDIT\"), \"\", JOptionPane.INFORMATION_MESSAGE);\n }\n return result;\n }", "title": "" }, { "docid": "8a388ff64e966d7967da4ee0527a7ed1", "score": "0.54614097", "text": "@Override\n\tvoid view(BillComsume bill) {\n\t\tSystem.out.println(\"here is viewer 1 visiter bill comsume.\");\n\t}", "title": "" }, { "docid": "2b6ef2f372aceb61b07e4f1f2c0ee0ec", "score": "0.54601806", "text": "@Override\n\tpublic void display() {\n\n\t}", "title": "" }, { "docid": "2b6ef2f372aceb61b07e4f1f2c0ee0ec", "score": "0.54601806", "text": "@Override\n\tpublic void display() {\n\n\t}", "title": "" }, { "docid": "c4fc72b0f4b4a5c0863959c13dcd0682", "score": "0.5451263", "text": "public JFrame produceVotersReport(String branchID) {\r\n\t\t// TODO fix the report\r\n\t\ttry {\r\n\t\t\tClass.forName(Consts.JDBC_STR);\r\n\t\t\ttry (Connection conn = DriverManager.getConnection(Consts.CONN_STR)){\r\n\t\t\t\tHashMap<String, Object> params = new HashMap<>();\r\n\t\t\t\tJasperPrint print = JasperFillManager.fillReport(\r\n\t\t\t\t\t\tgetClass().getResourceAsStream(\"/boundary/MissingVotersReport.jasper\"),\r\n\t\t\t\t\t\tparams, conn);\r\n\t\t\t\tJFrame frame = new JFrame(\"Missing Voters Report\");\r\n\t\t\t\tframe.getContentPane().add(new JRViewer(print));\r\n\t\t\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\t\t\tframe.pack();\r\n\t\t\t\treturn frame;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b8f883fcc71d5bad76443f3b7b8ce739", "score": "0.54479104", "text": "public Design() {\n Utils.initIcons(this);\n initComponents();\n getRootPane().setDefaultButton(go_button);\n initFileFilters();\n initChooseTree();\n initSolutionTable();\n initSliderListeners();\n statsComputed(false);\n progress_bar.setVisible(false);\n stop_button.setEnabled(false);\n progress_label.setVisible(false);\n stat_text_display.setEditable(false);\n browse_cost_values_label_solve.setVisible(false);\n browse_cost_values_panel_solve.setVisible(false);\n browse_cost_values_stats.setVisible(false);\n browse_cost_values_panel_stats.setVisible(false);\n histogram_tab.setEnabled(false);\n set_beta_TextField.setEnabled(false);\n fileNotLoaded();\n\n // Making parts related to infestation invisible.\n infestation_label_solve.setVisible(false);\n infestation_jComboBox_solve.setVisible(false);\n infestation_label_stats.setVisible(false);\n infestation_jComboBox_stats.setVisible(false);\n \n // if we're currently on a Mac, this code ensures that the about and quit\n // options in the Jane menu work as expected.\n String os = System.getProperty(\"os.name\");\n if (os.contains(\"Mac\")); {\n try {\n Application app = Application.getApplication();\n MacOSAboutHandler aboutHandler = new MacOSAboutHandler(action_panel, this);\n app.setAboutHandler(aboutHandler);\n MacOSQuitHandler quitHandler = new MacOSQuitHandler(this);\n app.setQuitHandler(quitHandler);\n } catch (Exception e) {\n }\n }\n }", "title": "" }, { "docid": "163d6be33fea41fd8bcb3d1880a6e926", "score": "0.54258686", "text": "public static void main( String[] args ) {\n final JFreeChart chart = createChart(createDataset());\n Display display = new Display();\n Shell shell = new Shell(display);\n shell.setSize(600, 400);\n shell.setLayout(new FillLayout());\n shell.setText(\"Test for jfreechart running with SWT\");\n final ChartComposite frame = new ChartComposite(shell, SWT.NONE, chart, true);\n //frame.setDisplayToolTips(false);\n \tframe.addChartMouseListener(new ChartMouseListener() {\n\t \t\tString slice;\n \t\tpublic void chartMouseClicked(ChartMouseEvent event) {\n \t\t\tPieSectionEntity entity = (PieSectionEntity) event.getEntity();\n \t\t\tif (entity != null) {\n \t\t\t\tString slice = (String) entity.getSectionKey();\n \t\t\t\tPiePlot plot = (PiePlot) chart.getPlot();\n \t\t\t\tif (this.slice != null) {\n \t\t\t\tplot.setExplodePercent(this.slice, 0.0);\n \t\t\t\t}\n \t\t\t\tif (slice == this.slice) {\n \t\t\t\tthis.slice = null;\n \t\t\t\t} else {\n \t\t\t\tplot.setExplodePercent(slice, 0.25);\n \t\t\t\tthis.slice = slice;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\tpublic void chartMouseMoved(ChartMouseEvent event) {}\n \t});\n\n frame.pack();\n shell.open();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch())\n display.sleep();\n }\n }", "title": "" }, { "docid": "d8c36cd77f61ccfdc55ea94a72d27795", "score": "0.5422107", "text": "public void displayAndRun();", "title": "" }, { "docid": "c6d995a660c1cb6fcbcc622acfcdf867", "score": "0.54163945", "text": "public static void main(String[] args) {\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n \n /** create the frame */\n JFrame f = new JFrame(\"\");\n\n /** mock up some chart data */\n XYSeriesCollection my_data_series= new XYSeriesCollection();\n XYSeries xysBytesRead = new XYSeries(\"bytes read\");\n XYSeries xysBytesWritten = new XYSeries(\"bytes written\");\n for (int i=0; i < 60; i++) {\n xysBytesRead.add(i,Math.random() * 100);\n xysBytesWritten.add(i,Math.random() * 20);\n }\n my_data_series.addSeries(xysBytesRead);\n my_data_series.addSeries(xysBytesWritten);\n \n /** create the chart and add it to our frame */\n JFreeChart XYLineChart=ChartFactory.createXYLineChart(\"Performance\",\"seconds\",\"bytes\",my_data_series,PlotOrientation.VERTICAL,true,true,false);\n final ChartPanel CP = new ChartPanel(XYLineChart);\n CP.setPreferredSize(new Dimension(WIDTH,HEIGHT)); \n f.add(CP);\n \n /** other frame details */\n f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n f.pack();\n f.setSize(new Dimension(WIDTH,HEIGHT));\n f.setVisible(true);\n f.setLocation(100, 100);\n \n }\n });\n \n System.out.println(\"goodbye.\");\n }", "title": "" }, { "docid": "d62f251369a08e3f26b4d6b13622269a", "score": "0.5412277", "text": "public static void main(String[] args) {\n\t\tDisplay display = new Display();\n\t\tShell shell = new Shell(display);\n\t\tshell.setSize(1000, 250);\n\t\tGenericView debuggerView = new GenericView(1, 2);\n\t\tdebuggerView.createPartControl(shell);\n\t\tshell.open();\n\t\twhile (!shell.isDisposed()) {\n\t\t\tif (!display.readAndDispatch()) {\n\t\t\t\tdisplay.sleep();\n\t\t\t}\n\t\t}\n\t\tdisplay.dispose();\n\t}", "title": "" }, { "docid": "0ac9d4f1efd8de1db6662cc13154aca6", "score": "0.54119354", "text": "private Report()\n {\n report = new ExtentReports(System.getProperty(\"user.dir\")+\"\\\\BSH-PC-084.html\");\n\n }", "title": "" }, { "docid": "f1ec08e2a0972a25a74057c558261bdb", "score": "0.54106176", "text": "@Override\n\tpublic void show() {\n\t}", "title": "" }, { "docid": "f1ec08e2a0972a25a74057c558261bdb", "score": "0.54106176", "text": "@Override\n\tpublic void show() {\n\t}", "title": "" }, { "docid": "41d6d33b45c45bfdc8008396b367ada6", "score": "0.54100424", "text": "public void createAndDisplayTheForm()\n\t{\n\t\tjava.awt.EventQueue.invokeLater(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tnew FitControlBinSelectionUI(fitControl, fitter).setVisible(true);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "6f437aa923cb6a70f91f3ea9ca784fe7", "score": "0.5406908", "text": "@Override\n\tpublic void show()\n\t{\n\t}", "title": "" }, { "docid": "9feb4404640b1014f3012a33de7f5f34", "score": "0.54052484", "text": "private void launchBrowser() {\n /* need to get browser setting */\n String sURLRoot = viewer.getCurrentProject().getURLRoot();\n String sURL;\n\tString browserExecPath = ProjectViewerConfig.getInstance().getBrowserPath();\n if (sURLRoot == \"\" )\n {\n JOptionPane.showMessageDialog(viewer, \"Web URL Not set for project\");\n return;\t\n }\n \n if (viewer.isFileSelected())\n {\n ProjectFile fileToView = viewer.getSelectedFile();\n \n /* Produce the url of the file based upon the projects urlRoot */\n sURL = sURLRoot + fileToView.getPath().toString().substring(viewer.getCurrentProject().getRoot().getPath().length());\n //sURL = sURLRoot + fileToView.getPath();\n JOptionPane.showMessageDialog(viewer, sURL);\n \n Runtime rt = Runtime.getRuntime();\n String[] callAndArgs = { browserExecPath, sURL };\n try {\n Process child = rt.exec(callAndArgs);\n child.wait(4);\n System.out.println(\"Process exit code is: \" + child.exitValue());\n }\n catch(IOException e) {\n System.err.println(\n \"IOException starting process!\");\n }\n catch(InterruptedException e) {\n System.err.println(\n \"Interrupted waiting for process!\");\n }\n } else { JOptionPane.showMessageDialog(viewer, \"No File selected\");}\t\n \n }", "title": "" }, { "docid": "2713a249ef52d15cd3a2f5b0f11bf129", "score": "0.5404792", "text": "@Override\r\n\tpublic void show() {\n\r\n\t}", "title": "" }, { "docid": "2713a249ef52d15cd3a2f5b0f11bf129", "score": "0.5404792", "text": "@Override\r\n\tpublic void show() {\n\r\n\t}", "title": "" }, { "docid": "3d0c6942a2679e8d33263421b89a68a1", "score": "0.53960705", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n reportViewerPanel = createViewer();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"org/sola/clients/swing/ui/reports/Bundle\"); // NOI18N\n setTitle(bundle.getString(\"ReportViewerForm.title\")); // NOI18N\n setModalExclusionType(java.awt.Dialog.ModalExclusionType.APPLICATION_EXCLUDE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 409, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "bc7a711cf8b4d66b6e3daa15ce1a5879", "score": "0.53929937", "text": "public static void show(String jdbcConnectionString, String ihfsConnectionString, String raxDBNameString, String logFilePath )\n {\n RaxBaseDataMgr dataMgr = new RaxBaseDataMgr( jdbcConnectionString, ihfsConnectionString, logFilePath );\n RaxBase raxBase = new RaxBase( dataMgr );\n raxBase.setTitle( \"RaxBase (\" + raxDBNameString + \") - OB8.3\" );\n raxBase.setVisible( true );\n }", "title": "" }, { "docid": "a7af63029cf9805e5b0a68f625f1936c", "score": "0.53900164", "text": "public void reportStatistics(){\n running=false;\n UI.clearGraphics();\n f.setVisible(true);\n for(JButton b:button){\n b.setVisible(false);\n }\n for(JButton b:reportButton){\n b.setVisible(true);\n }\n }", "title": "" }, { "docid": "3be25778604be49ac6451b297bb8f6b6", "score": "0.5388361", "text": "private void tailoredExportPage() {\n JOptionPane.showMessageDialog(null, \"Coming soon - Export tailored user report\");\r\n }", "title": "" }, { "docid": "04bdbc9c35e8ff0dc73e9f9f2606b7a5", "score": "0.53832114", "text": "public void displayGUI() {\n frame.setSize(740,700);\n frame.setResizable(false);\n\n Container container = frame.getContentPane();\n JLabel welcomeBanner = new JLabel(\" Welcome to The Fruit Store! (ID: \" + cartID + \")\");\n welcomeBanner.setFont(new Font(Font.DIALOG, Font.BOLD, 25));\n container.add(welcomeBanner, BorderLayout.PAGE_START);\n\n JPanel browsePanel = makeBrowsePanel();\n JPanel buttonPanel = makeButtonPanel();\n\n container.add(new JScrollPane(browsePanel,\n JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n JScrollPane.HORIZONTAL_SCROLLBAR_NEVER), BorderLayout.LINE_START);\n container.add(buttonPanel, BorderLayout.LINE_END);\n\n frame.setTitle(\"Client StoreView\");\n frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent we) {\n if(JOptionPane.showConfirmDialog(frame, \"Your cart will be lost. Are you sure?\") == JOptionPane.OK_OPTION){\n frame.setVisible(false);\n frame.dispose();\n }\n }\n });\n frame.setVisible(true);\n }", "title": "" }, { "docid": "f17daae74db1ef05c66d759e8028e15a", "score": "0.53703195", "text": "private void displayDialog() {\n\t\tsetDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\t\tsetSize(690, 600);\n\t\tsetResizable(false);\n\t\tDimension objScreenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint intTop = (objScreenSize.height - this.getHeight()) / 2;\n\t\tint intLeft = (objScreenSize.width - this.getWidth()) / 2;\n\n\t\tsetLocation(intLeft, intTop);\n\t\tsetTitle(\"Soccer World Cup 2018\");\n\t\tToolkit tk = getToolkit();\n\t\tsetIconImage(CtrlGroup.getMainWindowIcon(tk));\n\t}", "title": "" }, { "docid": "96358a14ab3d7093f31afe47778b0495", "score": "0.5369616", "text": "public Reportes() {\n initComponents();\n jp_filtros.setVisible(false);\n if (base.conectar()) {\n System.out.println(\"nitido\");\n }\n jtf_temporal.setVisible(false);\n jl_temporal.setVisible(false);\n jdc1.setVisible(false);\n jdc2.setVisible(false);\n btn_ver.setVisible(false);\n jl_de.setVisible(false);\n jl_a.setVisible(false);\n btn_ver2.setVisible(false);\n }", "title": "" }, { "docid": "ce40f99af7e3ff94809e2fcccbb0fa57", "score": "0.5368972", "text": "public void displayImportDialog() {\n ZomFrame frame = this.analysisControl.getFrame();\n ZomFrame_ImportDialog dlg = new ZomFrame_ImportDialog(frame, this.analysisControl);\n Dimension dlgSize = dlg.getPreferredSize();\n Dimension frmSize = frame.getSize();\n Point loc = frame.getLocation();\n dlg.setLocation((frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y);\n dlg.setModal(true);\n dlg.show();\n }", "title": "" }, { "docid": "75d378e009aa4d450d27ed157fc08cf9", "score": "0.5365172", "text": "public ExtractionGUI() {\n \n this.setVisible(true);\n initComponents();\n }", "title": "" }, { "docid": "ba0e80f12a5746d3ff126a6b1c991fd1", "score": "0.5364726", "text": "public static void main(String[] args) {\n PrintID staff = new PrintID (\"0825/2011\");\n //staff.setResizable(false);\n staff.setLocationRelativeTo(null);\n staff.setVisible(true); \n ScalePrintableFormat test = new ScalePrintableFormat();\n test.printCard(staff.idcardPan);\n }", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.5351179", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.5351179", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.5351179", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.5351179", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.5351179", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.5351179", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.5351179", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "afff9964475370755957c333bf7d8187", "score": "0.5348482", "text": "private void fileInitialReport() {\r\n\t\tif (reportPanel != null)\r\n\t\t\tcontentSwitcher.removeLayoutComponent(reportPanel);\r\n\t\treportPanel = new Report(profile);\r\n\t\tcontentPanel.add(reportPanel, \"REPORT\");\r\n\t}", "title": "" }, { "docid": "93373b6ea2b9cadfc1a7eeae3898c04e", "score": "0.5344795", "text": "public void display() {\n\t}", "title": "" }, { "docid": "785853cf91ccc94cb3ed5ac2065c70f2", "score": "0.5341532", "text": "private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\ttry {\r\n\t\t\t//UIManager.setLookAndFeel(\"de.javasoft.plaf.synthetica.SyntheticaBlackStarLookAndFeel\");\r\n\t\t\tfor (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\r\n\t\t\t\tif (\"Nimbus\".equals(info.getName())) {\r\n\t\t\t\t\tUIManager.setLookAndFeel(info.getClassName());\r\n\t\t\t\t\tbreak;\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\r\n\t\t//Create and set up the window.\r\n\t\tJFrame frame = new JFrame(\"Files_Lister_Excel\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\r\n\t\t//Create and set up the menu bar and content pane.\r\n\t\tConsolidatorDemo demo = new ConsolidatorDemo();\r\n\t\tdemo.setOpaque(true); //content panes must be opaque\r\n\t\tframe.setContentPane(demo);\r\n\r\n\t\t//Display the window.\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t\tdemo.setDefaultButton();\r\n\t}", "title": "" }, { "docid": "c13d297e03f3a8daad53bf68d568014e", "score": "0.53397125", "text": "public ViewPanel(ReportPOJO reportPOJO) {\n initComponents();\n showData(reportPOJO);\n }", "title": "" }, { "docid": "2d6b2e58b2b38495faba94b2153638be", "score": "0.53344536", "text": "public static void main(String[] args) {\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n final JFrame frame = createAndShowGUI();\n if (exportSvg)\n {\n \texportToSvg(frame);\n }\n else\n {\n \texportToPdf(frame);\n }\n }\n });\n }", "title": "" }, { "docid": "e849cff6e05f43c6e9c117aa4d043cde", "score": "0.5332378", "text": "private static void createAndShowUI()\n {\n \n JPanel panel = new JPanel();\n \n WBS Workbreakdown = new WBS();\n JTabbedPane tab = new JTabbedPane();\n Container cont= new Container();\n JFrame frame = new JFrame(\"WBS\");\n tab.add(\"Work Breakdown Structure\", Workbreakdown);\n frame.add(tab, BorderLayout.CENTER);\n frame.setSize(800,500);\n frame.setVisible(true);\n }", "title": "" }, { "docid": "a843dbdba5c7d821c567c920bbe71df9", "score": "0.533182", "text": "public static void showBugReportDialog(Window parent) {\n \t\t\n \t\tStringBuilder sb = new StringBuilder();\n \t\t\n \t\tsb.append(\"---------- Bug report ----------\\n\");\n \t\tsb.append('\\n');\n \t\tsb.append(\"Include detailed steps on how to trigger the bug:\\n\");\n \t\tsb.append('\\n');\n \t\tsb.append(\"1. \\n\");\n \t\tsb.append(\"2. \\n\");\n \t\tsb.append(\"3. \\n\");\n \t\tsb.append('\\n');\n \t\t\n \t\tsb.append(\"What does the software do and what in your opinion should it do in the \" +\n \t\t\t\t\"case described above:\\n\");\n \t\tsb.append('\\n');\n \t\tsb.append('\\n');\n \t\tsb.append('\\n');\n \t\t\n \t\tsb.append(\"Include your email address (optional; it helps if we can \" +\n \t\t\t\t\"contact you in case we need additional information):\\n\");\n \t\tsb.append('\\n');\n \t\tsb.append('\\n');\n \t\tsb.append('\\n');\n \t\t\n \n \t\tsb.append(\"(Do not modify anything below this line.)\\n\");\n \t\tsb.append(\"---------- System information ----------\\n\");\n \t\taddSystemInformation(sb);\n \t\tsb.append(\"---------- Error log ----------\\n\");\n \t\taddErrorLog(sb);\n \t\tsb.append(\"---------- End of bug report ----------\\n\");\n \t\tsb.append('\\n');\n \t\t\n \t\tBugReportDialog reportDialog = new BugReportDialog(parent,\n \t\t\t\t\t\ttrans.get(\"bugreport.reportDialog.txt\"), sb.toString(), false);\n \t\treportDialog.setVisible(true);\n \t}", "title": "" }, { "docid": "51fbd736562c133ead857c9c9a6ebf37", "score": "0.5324333", "text": "public void show()\n {\n StdDraw.show();\n }", "title": "" }, { "docid": "acfd694e82d8c2f4fedf0b641aa22045", "score": "0.5320007", "text": "private void singleExportPage() {\n JOptionPane.showMessageDialog(null, \"Coming soon - Export report of single user\");\r\n\r\n }", "title": "" }, { "docid": "debe1bb912779594daf0da15b86ba55c", "score": "0.53052795", "text": "public static void main( String args[] ) throws Exception\n {\n// String directory = \"/home/dennis/WORK/ISAW/SampleRuns\";\n// String file_name = directory + \"/GPPD12358.RUN\";\n// String file_name = directory + \"/SCD06496.RUN\";\n //RunfileRetriever rr = new RunfileRetriever( file_name );\n //DataSet ds = rr.getDataSet(1);\n\n //for ( int i = 0; i < 100; i++ )\n //ds.setSelectFlag( i, true );\n \n \n DataSet ds = new DataSet(); \n float[][] testData = ContourViewComponent.getTestDataArr(41,51,3,4);\n for (int i=0; i<testData.length; i++)\n ds.addData_entry(\n new FunctionTable(new UniformXScale(0, \n testData[i].length-1, \n testData[i].length),\n testData[i], \n i));\n ds.setSelectFlag(5, true);\n ds.setSelectFlag(6, true);\n\n// Displayable disp = new DataSetDisplayable(ds, \"Image View\");\n// Displayable disp = new DataSetDisplayable(ds, \"3D View\");\n \n// Displayable disp = new DataSetDisplayable(ds, \"Contour View\");//note dnw\n// Displayable disp = new DataSetDisplayable(ds, \"HKL Slice View\");\n Displayable disp2 = new DataSetDisplayable(ds, \"Scrolled Graph View\");\n Displayable disp = new DataSetDisplayable(ds, \"Selected Graph View\");\n// Displayable disp = new DataSetDisplayable(ds, \"Difference Graph View\");\n// Displayable disp = new DataSetDisplayable(ds, \"GRX_Y\");\n// Displayable disp = new DataSetDisplayable(ds, \"Parallel y(x)\");\n// Displayable disp = new DataSetDisplayable(ds, \"Instrument Table\");\n// Displayable disp = new DataSetDisplayable(ds, \"Table Generator\");\n \n //---------not in ViewManager\n// Displayable disp = new DataSetDisplayable(ds, \"Counts(x,y)\");\n// Displayable disp = new DataSetDisplayable(ds, \"2D Viewer\");\n// Displayable disp = new DataSetDisplayable(ds, \"Slice Viewer\");\n//***** Displayable disp = new DataSetDisplayable(ds, \"Contour:Qy,Qz vs Qx\");\n//***** Displayable disp = new DataSetDisplayable(ds, \"Contour:Qx,Qy vs Qz\");\n//***** Displayable disp = new DataSetDisplayable(ds, \"Contour:Qxyz slices\");\n \n disp.setLineAttribute(1, \"line color\", \"red\");\n disp.setLineAttribute(2, \"line color\", \"red\");\n disp.setLineAttribute(2, \"line tYpe\", \"dashdot\");\n disp.setLineAttribute(2, \"line tYpe\", \"solid\");\n //disp.setLineAttribute(1,\"transparent\", \"true\");\n disp.setLineAttribute(1, \"line tYpe\", \"doTtEd\");\n disp.setLineAttribute(1, \"Mark Type\", \"plus\");\n //disp.setLineAttribute(1, \"Mark color\", \"cyan\");\n \n disp.setViewAttribute(\"legend\", \"true\");\n disp.setViewAttribute(\"grid lines x\", 1);\n disp.setViewAttribute(\"grid lines y\", true);\n disp.setViewAttribute(\"grid color\", Color.red);\n \n// GraphicsDevice gd = new ScreenDevice();\n// GraphicsDevice gd = new FileDevice(\"C:/Documents and Settings/student/My Documents/My Pictures/test.jpg\");\n// GraphicsDevice gd = new PreviewDevice();\n GraphicsDevice gd = new PrinterDevice(\"Adobe PDF\");//HP LaserJet 4000 Series PCL Adobe PDF\n \n System.out.println(((DataSetDisplayable) disp).Ostate);\n // -------------For PrinterDevice\n //gd.setDeviceAttribute(\"orientation\", \"landscape\");\n //gd.setDeviceAttribute(\"copies\", 1);\n \n \n gd.setRegion(10, 0, 200, 600);\n //gd2.setRegion( 600,0, 600, 900 );\n // Vector bound = new Vector<Integer>();\n //bound.add(700);\n //bound.add(100);\n //((FileDevice)gd).setBounds(bound);\n gd.display( disp, true );\n gd.setRegion(200, 10, 250, 250 );\n System.out.println(gd.getBounds());\n gd.display( disp2, true );\n gd.setDeviceAttribute(\"orientation\", \"portrait\");\n //gd.setDeviceAttribute(\"file resolution\", value)\n //gd.setDeviceAttribute(\"printableareax\", .5f);\n //gd.setDeviceAttribute(\"printableareay\", .5f);\n //gd2.display( disp2,true);\n gd.print();\n //gd2.print();\n// gd.close();\n }", "title": "" }, { "docid": "37b8a38f30053dcc991cf5ff236c2833", "score": "0.5301393", "text": "public void createAndShowGui();", "title": "" } ]
3a4d83757ba4a06fd31dedbf552159f9
Additional information regarding the ordinance status.
[ { "docid": "2aea453995514d402a86746dd9558216", "score": "0.0", "text": "@XmlElement(name=\"statusReason\")\n @JsonProperty(\"statusReasons\")\n // Do not include this annotation: @XmlQNameEnumRef(OrdinanceStatusReason.class) There is a bug in enunciate for Collection<URI/String>\n public List<URI> getStatusReasons() {\n return statusReasons;\n }", "title": "" } ]
[ { "docid": "63cc33c9685800022824c8516685f80e", "score": "0.68397635", "text": "public void getStatus() {\r\n\r\n\r\n // Mencetak output yang diharapkan.\r\n System.out.println(\"Status Doge:\");\r\n System.out.println(\"Energy = \" + this.energy);\r\n }", "title": "" }, { "docid": "e9de4391045fd28915d26fb4fe0beb3f", "score": "0.6750586", "text": "@Override\r\n public String status() {\r\n return \"Oven (Temp: \" + getTemp() + \")\";\r\n }", "title": "" }, { "docid": "778b81e9264aa3c7dfd3826c967868da", "score": "0.6663287", "text": "@Override\n public String toString() {\n return this.status.status;\n }", "title": "" }, { "docid": "3dc61cd4cf17969238468b1a00f0ec5a", "score": "0.6564261", "text": "public String getStatus() {\n\t\treturn evento.getInfoEvento().getTpEvento();\n\t}", "title": "" }, { "docid": "6eb32061ac9f143fb2148364b0b776b7", "score": "0.6559453", "text": "public Integer getAccStatus() {\n return accStatus;\n }", "title": "" }, { "docid": "7771762fb057242fba2f19ffb8bdf5e6", "score": "0.6516268", "text": "@Override\r\n public String InsuranceStatus() {\r\n // TODO Auto-generated method stub\r\n return null;\r\n }", "title": "" }, { "docid": "280872c9466871733dc2a9427ae9a360", "score": "0.64615226", "text": "public String getStatus()\r\n\t{\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "fbea3c68ce0774b581e727b302020c4b", "score": "0.64522856", "text": "@Override\n\tpublic String getStatus() {\n\t\treturn _dmsPoc.getStatus();\n\t}", "title": "" }, { "docid": "11c24c9a228d7cc9b813f7ae32d773f8", "score": "0.6443128", "text": "public BigDecimal getStatus() {\n return status;\n }", "title": "" }, { "docid": "06dc50bda049323d58ced1fb26d950ce", "score": "0.64215237", "text": "public String getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "06dc50bda049323d58ced1fb26d950ce", "score": "0.64215237", "text": "public String getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "06dc50bda049323d58ced1fb26d950ce", "score": "0.64215237", "text": "public String getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "06dc50bda049323d58ced1fb26d950ce", "score": "0.64215237", "text": "public String getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "06dc50bda049323d58ced1fb26d950ce", "score": "0.64215237", "text": "public String getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "06dc50bda049323d58ced1fb26d950ce", "score": "0.64215237", "text": "public String getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "06dc50bda049323d58ced1fb26d950ce", "score": "0.64215237", "text": "public String getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "06dc50bda049323d58ced1fb26d950ce", "score": "0.64215237", "text": "public String getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "c43da4e5e8b82b0319c4c68058cda981", "score": "0.64182264", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"status\";\n\t}", "title": "" }, { "docid": "5a4d59268c1837501cb2696e72cd9aa5", "score": "0.64129937", "text": "public Integer getOrderstatus() {\n return orderstatus;\n }", "title": "" }, { "docid": "b3d28efbf7b92115e4299e639e56126e", "score": "0.64063674", "text": "@XmlAttribute\n @XmlQNameEnumRef(OrdinanceStatus.class)\n public URI getStatus() {\n return status;\n }", "title": "" }, { "docid": "afd9fb35ad070731f0e66f9219aab741", "score": "0.6403174", "text": "public String getStatus(){\r\n\t\treturn this.status ;\r\n\t}", "title": "" }, { "docid": "e95423792245cdc37ec7fbc0a7d7f39e", "score": "0.64002526", "text": "public String getStatusDetails() {\n return statusDetails;\n }", "title": "" }, { "docid": "1774198238fea60c8690cb534b0517dd", "score": "0.63946694", "text": "public String getStatus()\n\t{\n\t\treturn status;\n\t}", "title": "" }, { "docid": "aad27e3dbfb00a89205691c622e7f35e", "score": "0.63944674", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "bd3da9a2a7b5085647c89a80f5dcd5e5", "score": "0.6391796", "text": "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "bd3da9a2a7b5085647c89a80f5dcd5e5", "score": "0.6391796", "text": "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "bd3da9a2a7b5085647c89a80f5dcd5e5", "score": "0.6391796", "text": "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "15552974f33df6ba63f2f0469795a0c9", "score": "0.6388747", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "a5d3bd3cb7d3cc43848b8776d8392aac", "score": "0.63833785", "text": "public String getStatus() {\n return status;\n }", "title": "" }, { "docid": "4eaeef92836e16d64ce223a607d1404c", "score": "0.63695186", "text": "@Override\n public String getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "702a926eb1ce3444660887f3155447e1", "score": "0.6363932", "text": "public int getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "bb382a5226f0c642f653433149a184ca", "score": "0.63609487", "text": "public int getStatus() {\n return status;\n }", "title": "" }, { "docid": "bb382a5226f0c642f653433149a184ca", "score": "0.63609487", "text": "public int getStatus() {\n return status;\n }", "title": "" }, { "docid": "bb382a5226f0c642f653433149a184ca", "score": "0.63609487", "text": "public int getStatus() {\n return status;\n }", "title": "" }, { "docid": "e8e720f77a2b0c3498b1e0c245437ca3", "score": "0.6356071", "text": "public int getStatus() {\n return status;\n }", "title": "" }, { "docid": "63b129f5776785b638ff1599551791a6", "score": "0.6355839", "text": "@java.lang.Override\n public int getAcctStatus() {\n return acctStatus_;\n }", "title": "" }, { "docid": "64a923b5f367dcd8ceb8da99e1fbfca1", "score": "0.6355829", "text": "public String getStatus(){\n\t\treturn this.status ;\n\t}", "title": "" }, { "docid": "d97420111725e9ba64ded40604ffa924", "score": "0.6338941", "text": "public int getStatus() {\n return status;\n }", "title": "" }, { "docid": "d97420111725e9ba64ded40604ffa924", "score": "0.6338941", "text": "public int getStatus() {\n return status;\n }", "title": "" }, { "docid": "d97420111725e9ba64ded40604ffa924", "score": "0.6338941", "text": "public int getStatus() {\n return status;\n }", "title": "" }, { "docid": "d97420111725e9ba64ded40604ffa924", "score": "0.6338941", "text": "public int getStatus() {\n return status;\n }", "title": "" }, { "docid": "d97420111725e9ba64ded40604ffa924", "score": "0.6338941", "text": "public int getStatus() {\n return status;\n }", "title": "" }, { "docid": "d97420111725e9ba64ded40604ffa924", "score": "0.6338941", "text": "public int getStatus() {\n return status;\n }", "title": "" }, { "docid": "e795fb7e32b8a2f5a5ecb144d0eacc21", "score": "0.6332964", "text": "public String status() {\n return this.status;\n }", "title": "" }, { "docid": "e795fb7e32b8a2f5a5ecb144d0eacc21", "score": "0.6332964", "text": "public String status() {\n return this.status;\n }", "title": "" }, { "docid": "e795fb7e32b8a2f5a5ecb144d0eacc21", "score": "0.6332964", "text": "public String status() {\n return this.status;\n }", "title": "" }, { "docid": "e795fb7e32b8a2f5a5ecb144d0eacc21", "score": "0.6332964", "text": "public String status() {\n return this.status;\n }", "title": "" }, { "docid": "e795fb7e32b8a2f5a5ecb144d0eacc21", "score": "0.6332964", "text": "public String status() {\n return this.status;\n }", "title": "" }, { "docid": "6dd913e9c7cf214566ff03d3dcbf134e", "score": "0.6329716", "text": "public String getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "6dd913e9c7cf214566ff03d3dcbf134e", "score": "0.6329716", "text": "public String getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "6dd913e9c7cf214566ff03d3dcbf134e", "score": "0.6329716", "text": "public String getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "6dd913e9c7cf214566ff03d3dcbf134e", "score": "0.6329716", "text": "public String getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "6dd913e9c7cf214566ff03d3dcbf134e", "score": "0.6329716", "text": "public String getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "6dd913e9c7cf214566ff03d3dcbf134e", "score": "0.6329716", "text": "public String getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "6dd913e9c7cf214566ff03d3dcbf134e", "score": "0.6329716", "text": "public String getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "6dd913e9c7cf214566ff03d3dcbf134e", "score": "0.6329716", "text": "public String getStatus() {\n\t\treturn status;\n\t}", "title": "" }, { "docid": "da26d544cc279fa0c44e6192bf4779ec", "score": "0.63230157", "text": "public String getStatus() {\n return this.Status;\n }", "title": "" }, { "docid": "08dcf73359c9ac885cc478a8c3505d30", "score": "0.63229334", "text": "public String getStatus()\n\t{\n\t\tif(status == 0)\n\t\t{\n\t\t\treturn \"Not Started\";\n\t\t}\n\t\telse if(status == 1)\n\t\t{\n\t\t\treturn \"In Progress\";\n\t\t}\n\t\telse if(status == 2)\n\t\t{\n\t\t\treturn \"Complete\";\n\t\t}\n\t\telse if(status == 3)\n\t\t{\n\t\t\treturn \"Deleted\";\n\t\t}\n\t\treturn \"Not Started\";\n\t}", "title": "" }, { "docid": "5ae7aef9bb002dc6d6c6a2e500122d88", "score": "0.63218707", "text": "public int getStatus() {\n return status_;\n }", "title": "" }, { "docid": "fb1e26d7e5cfe052f974de4b447049fb", "score": "0.6321778", "text": "public String toString()\n\t{\n\t\treturn this.status;\n\t}", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.631593", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.631593", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.631593", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.631593", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.631593", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.631593", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "dc9a0ffd1ec879c2d2ac0527bc728d7c", "score": "0.631593", "text": "public Integer getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "e0f4323cca1db10649065299487a295a", "score": "0.6313479", "text": "public String getStatus() {\r\n return this.status;\r\n }", "title": "" }, { "docid": "0cc4274e5cb015de38ae98df2d6f8019", "score": "0.63123786", "text": "public String getOrderStatus() {\n return orderStatus;\n }", "title": "" }, { "docid": "0cc4274e5cb015de38ae98df2d6f8019", "score": "0.63123786", "text": "public String getOrderStatus() {\n return orderStatus;\n }", "title": "" }, { "docid": "73d16177a2e564a0ee616467f9a100f9", "score": "0.6310881", "text": "public String getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "a10f3913063f45b51e0d43ebe1337e8d", "score": "0.63079417", "text": "public String getStatus()\n {\n return this.status;\n }", "title": "" }, { "docid": "a835f77c2304d138501fce1787b7638e", "score": "0.630622", "text": "@java.lang.Override\n public int getAcctStatus() {\n return acctStatus_;\n }", "title": "" }, { "docid": "6afaba99ac92ecad61482408b025b174", "score": "0.6304322", "text": "public String getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "6afaba99ac92ecad61482408b025b174", "score": "0.6304322", "text": "public String getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "6afaba99ac92ecad61482408b025b174", "score": "0.6304322", "text": "public String getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "6afaba99ac92ecad61482408b025b174", "score": "0.6304322", "text": "public String getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "6afaba99ac92ecad61482408b025b174", "score": "0.6304322", "text": "public String getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "6afaba99ac92ecad61482408b025b174", "score": "0.6304322", "text": "public String getStatus() {\n return this.status;\n }", "title": "" }, { "docid": "6afaba99ac92ecad61482408b025b174", "score": "0.6304322", "text": "public String getStatus() {\n return this.status;\n }", "title": "" } ]
c7b809cc5bf75013118979d9ec5bab8a
Returns a measure of how "unsquare" the bounding box is.
[ { "docid": "dce5a3d9610cb2c624f79d425a9870b5", "score": "0.7545024", "text": "public double getUnsquareness() {\n\t\treturn Math.abs(1.0 - getAspectRatio());\n\t}", "title": "" } ]
[ { "docid": "78c2d3500d3a832d575f008b8a21ab97", "score": "0.6108097", "text": "@Override\r\n\tpublic double getWhiteSpaceArea() {\n\t\tdouble whiteSpaceArea = super.getAreaOfBoundingBox() - this.getAreaOf2DShape();\r\n\t\treturn whiteSpaceArea;\r\n\t}", "title": "" }, { "docid": "ff0ebc607bb1a98ef66ccea34cc9c46f", "score": "0.575347", "text": "int getNormalizedBoundingBoxesCount();", "title": "" }, { "docid": "2831c57375a77bf79c22f5b5fe39121d", "score": "0.5681895", "text": "public void squareArea() {\n\t\tdouble Area = this.shapeSide[0] * this.shapeSide[1]; // Side of square multiplied by side of square\n\t\tif (Dialogue.squareArea < Area) { // is existing squareArea is smaller than calculated area, override.\n\t\t\tDialogue.squareArea = Area;\n\t\t}\n\t}", "title": "" }, { "docid": "3816c03661389a0fd56c23ba733e2049", "score": "0.56745523", "text": "@Override\n\tpublic double getArea() {\n// Area of a rectangle is height * width\n\t\treturn height * width;\n\t}", "title": "" }, { "docid": "bd845267786d88c06211ac306c6c36fd", "score": "0.5651296", "text": "private double obtainNarrowThreshold() {\n\t\tint sides = this.initNode.getConfigCoords().getASVCount()-1;\n\t\treturn (BROOM_LENGTH/Math.sin(Math.PI/sides));\n\t}", "title": "" }, { "docid": "57b4db828fcb32e0c07fe79a4e0f0ea9", "score": "0.5643078", "text": "public double getArea()\n\t{\n\t\treturn width*height;\n\t}", "title": "" }, { "docid": "0ad1f586e175fc3cb6c9eee0242184de", "score": "0.5627603", "text": "public double normSqr() {\t\n\treturn VectorOperations.normSqr(re);\n }", "title": "" }, { "docid": "fc7f790e2c72863b112dee093bdc345b", "score": "0.56207216", "text": "@Override\r\n\tdouble getArea() {\n\t\treturn Math.sqrt(60);\r\n\t}", "title": "" }, { "docid": "6f9972a106441c2ba25424ad5dbc0202", "score": "0.5609067", "text": "APRectangle getAPBoundingBox();", "title": "" }, { "docid": "4408c43318a562e272ec4c062e56080e", "score": "0.56062496", "text": "public double calculateArea() {\n\t\treturn this.getLength() * this.getWidth();\n\t}", "title": "" }, { "docid": "5888f2bdba992f4b80bd6066532ed11a", "score": "0.5596264", "text": "double getArea() {\n\t\treturn this.width * this.height;\n\t\t\n\t}", "title": "" }, { "docid": "7b70cc14f84a1e1d19cc792eaa0d1cf8", "score": "0.55844957", "text": "public double getArea() {\r\n\t\treturn this.length * this.width;\r\n }", "title": "" }, { "docid": "cec7848c86a9440b28f74b07ed217e6a", "score": "0.5581733", "text": "public float getMagnitude()\n {\n return (float)Math.sqrt(x * x + y * y);\n }", "title": "" }, { "docid": "aee3dba44370fe44178a4364c73e9be8", "score": "0.55742574", "text": "int getRectScore() {\n\t\treturn (int) Math.round((double) points.size() / (width * height) * 100);\n\t}", "title": "" }, { "docid": "d5d218918790107123a9b7e6d4720a4b", "score": "0.55482996", "text": "public double square() {\n\t\tdouble ab = a.length(b);\n\t\tdouble bc = b.length(c);\n\t\tdouble ca = c.length(a);\n\t\tdouble p = this.perimeter() / 2;\n\t\tdouble h = (2 / ab)\n\t\t\t\t* Math.sqrt((p * (p - ab) * (p - bc) * (p - ca)) / 2);\n\t\treturn ab * h / 2;\n\t}", "title": "" }, { "docid": "60e049b58014d38517b840e389f1e7e2", "score": "0.554266", "text": "public double getArea(){\r\n return width * height;\r\n }", "title": "" }, { "docid": "604cf71c9967b98fa7372bbeb01ad189", "score": "0.55296135", "text": "public Rectangle getbounds_up() {\t\t\n\t\treturn new Rectangle((int) ((int)x +(width/2)-((width/2)/2)), (int)y, (int)width/2, (int)height/2);\n\t}", "title": "" }, { "docid": "6bbae5b7012c84d3b96a8bc87a9b58eb", "score": "0.5527911", "text": "public int calculateArea(){\r\n return lenght * width;\r\n }", "title": "" }, { "docid": "9baf07b46cd82a4d2ccd758268b60b40", "score": "0.5517513", "text": "@Override\r\n\tpublic double getArea() {\r\n\t\treturn width * height;\r\n\t}", "title": "" }, { "docid": "b9fd821dfdf4a937f71b25cbcb13eaa0", "score": "0.5516314", "text": "double getArea() {\n return this.length * this.width;\n }", "title": "" }, { "docid": "0df74b6a6098d02cadb2ba84d1db0959", "score": "0.5506687", "text": "@Max(20)\r\n private int getArea() {\n if (height != null && width != null) {\r\n return height * width;\r\n }\r\n return 0;\r\n }", "title": "" }, { "docid": "880a4f9fa517f23bc9c09d415ddae24d", "score": "0.54958135", "text": "public double area() {\r\n return length * width;\r\n }", "title": "" }, { "docid": "3a6fd842017adcfd086b7fdef0ac27b0", "score": "0.5495303", "text": "public float area(){\r\n return 0; \r\n }", "title": "" }, { "docid": "b779e6f14817a38980c70b2e3a341a42", "score": "0.5493026", "text": "public double getArea() {\r\n return (width * length);\r\n }", "title": "" }, { "docid": "f0c94c31857be6a0c9b032be53782617", "score": "0.54865074", "text": "public double getArea(){\n return width * height;\n }", "title": "" }, { "docid": "cf68c2b92b31789697526b55a0e889a9", "score": "0.54829395", "text": "public void square() {\n if (average != null) { average.square(); }\n if (stdDeviation != null) { stdDeviation.square(); }\n }", "title": "" }, { "docid": "991721284ec39eb30ff0e3e1e629ef9f", "score": "0.5478902", "text": "public GGVector getNormalized()\n {\n double magnitude = magnitude();\n return new GGVector(x / magnitude, y / magnitude);\n }", "title": "" }, { "docid": "a9f01f6c0abf08f2a92f40fba5ca7fa6", "score": "0.54786533", "text": "public int getArea() {\n return getWidth() * getHeight();\n }", "title": "" }, { "docid": "a263a54a17f3428aa20e252d31b15161", "score": "0.5474358", "text": "public int getArea()\n {\n double area = ((width + topWidth) / 2.0) * height;\n //Round\n area = area + 0.5;\n return (int)area;\n\t}", "title": "" }, { "docid": "8990032ac2aee41a3f360741c958eba9", "score": "0.54708475", "text": "public double calculateArea()\r\n\t{\r\n\t\treturn (length*width);\r\n\t}", "title": "" }, { "docid": "1935bd5ca1c4786ce59244139d1b2e58", "score": "0.54705036", "text": "public double computeArea() \n {\n return side * getHeight() / 2;\n }", "title": "" }, { "docid": "5a19a1fcc8fb75a60c4b4966e0db30b3", "score": "0.5466407", "text": "@Override\r\n\tpublic double area() {\n\t\treturn getLength() * getWidth();\r\n\t}", "title": "" }, { "docid": "3e30ac582526253cf3d5eb695417ee1b", "score": "0.5448255", "text": "public final double lengthIgnoringZ()\r\n\t{\r\n\t\treturn (double) FastMath.sqrtQuick(this.x*this.x + this.y*this.y);\r\n\t}", "title": "" }, { "docid": "679273e922afb8aec95084cba421ade2", "score": "0.54460067", "text": "public double getArea(){\n double product = width * height;\n return product;\n }", "title": "" }, { "docid": "83e6d1056d30239d752ffc66ede7ceaa", "score": "0.5441002", "text": "public int whereIsBall(){\n\t\tint width = x_max-x_min;\n\t\tint height = y_max-y_min;\n\t\tdouble avg = (width+height)/2;\n\t\tSystem.out.println(\"w = \"+width+\" height = \"+height+\" avg = \"+avg);\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "9d43f4786f112c98620f9c1a6bc6ea9d", "score": "0.54334104", "text": "public double getArea()\n\t{\n\t\treturn length * width;\n\t}", "title": "" }, { "docid": "abae699130eca54df8db9e7beab4e084", "score": "0.5422399", "text": "@Override\r\n\tdouble getArea() {\n\t\treturn height*width;\r\n\t}", "title": "" }, { "docid": "f7a14dac6bae375b97293e1fbca135d5", "score": "0.54214436", "text": "public Rectangle2D getCollisionBox() {\n double left = x;\n double top = y; \n double w = 0; \n double h = 0;\n \n if(type.equals(SIGN1)) {\n left -= 12;\n top -= 4;\n w = 24;\n h = 6;\n }\n \n return new Rectangle2D.Double(left, top, w, h);\n }", "title": "" }, { "docid": "c172ba833494aadefa8f2c40f416c560", "score": "0.5418987", "text": "public double norm(VectorBox u) {\n\tdouble sum = 0;\n\tfor (int i = 0; i < u.values.length; i++) {\n\t sum += square(u.values[i]);\n\t}\n\treturn Math.sqrt(sum);\n }", "title": "" }, { "docid": "b9500718931b43a9ad432d6c1fc89b01", "score": "0.54163986", "text": "public Box3 getBoundingBox() {\n return bound;\n }", "title": "" }, { "docid": "73315b51a2cadf4cc7a624e3c5a81e82", "score": "0.5404005", "text": "public int getArea() {\r\n\t\treturn width * height;\r\n\t}", "title": "" }, { "docid": "3cc6a0a5a6ed09691ae4aa1442f98863", "score": "0.540195", "text": "public double getMag()\n {\n return Math.sqrt((_x * _x) + (_y * _y));\n }", "title": "" }, { "docid": "4e4e938234bb240643db74dc168fdac5", "score": "0.5396239", "text": "double getArea() {\n return length * width;\n }", "title": "" }, { "docid": "5b23919e31011bfaa472e7e76c76f410", "score": "0.539396", "text": "@Override\r\n public double getArea() {\r\n return 2*length*width + 2*length*height + 2*width*height;\r\n }", "title": "" }, { "docid": "a2b98bc58ac07cde83a386e81af1fe0e", "score": "0.539315", "text": "public int getArea(){\r\n\t\treturn width*height;\r\n\t}", "title": "" }, { "docid": "13b6fd0322e5dc0c9e94fcdf389596f7", "score": "0.538995", "text": "double area() {\n\t\t\n\t\treturn Math.PI * getheight()/2;\n\t}", "title": "" }, { "docid": "4c63c9ba199cff12dea9f4388495965e", "score": "0.5382629", "text": "public int getArea() {\n\t\treturn width * height;\n\t}", "title": "" }, { "docid": "7ff52416a1f5dc82b50a64711c364780", "score": "0.53692037", "text": "public double getBoundingWidth () {\n\t\treturn myBoundingWidth;\n\t}", "title": "" }, { "docid": "e2287465c8e5c2094f9ea20603bfb57e", "score": "0.53640604", "text": "public double area() {\n\t\treturn length * width; // return area\r\n\t}", "title": "" }, { "docid": "cdc40a2247c70fd2544f72338744c9cf", "score": "0.53621626", "text": "public Vector2 getNormalized()\n {\n final float length = (float) Math.sqrt(x * x + y * y);\n\n float newX = x / length;\n float newY = y / length;\n\n return new Vector2(newX, newY);\n }", "title": "" }, { "docid": "a9d2bb70c39f13b814aa3fb7c8b4a0fc", "score": "0.53354293", "text": "int squareWidth() {\n\t\treturn (int) getSize().getWidth() / BoardWidth;\n\t}", "title": "" }, { "docid": "643f33674b44128814a479bfc5b0fe30", "score": "0.5333003", "text": "public double magnitude()\n {\n return Math.sqrt(x * x + y * y);\n }", "title": "" }, { "docid": "c32fd9a8439e912d5a4dc865e90717a6", "score": "0.53322744", "text": "float approximateUniformScale ();", "title": "" }, { "docid": "07a6c571114aaf74cb482fd91a97e5d5", "score": "0.5308425", "text": "public float magnitude()\r\n {\r\n return (float)Math.sqrt(x*x+y*y);\r\n }", "title": "" }, { "docid": "913f70d508d5bc955ce6a82a51bf2771", "score": "0.5300256", "text": "public float getNormSq() {\n return mX * mX + mY * mY + mZ * mZ;\n }", "title": "" }, { "docid": "33675789553e1d49cef65e6d5f0a22cc", "score": "0.5300196", "text": "@Override\n public double getArea() {\n return (sideLength*sideLength);\n }", "title": "" }, { "docid": "1aee98cc6e15f1f074069ab26409dcdd", "score": "0.5290964", "text": "public Rectangle getBoundingBox() {\n return new Rectangle(this.getX(), this.getY(), tWidth, tHeight);\n }", "title": "" }, { "docid": "c4e6af27dbed8b7466ac72126879a41c", "score": "0.5282228", "text": "public DoubleRectangle getRectHitbox() {\n\treturn new DoubleRectangle(cardinals[0].x, cardinals[0].y,\n\t\tcardinals[8].x - cardinals[0].x, cardinals[8].y\n\t\t\t- cardinals[0].y);\n }", "title": "" }, { "docid": "e2ad16a989f86d4d1c3c1969380b56e9", "score": "0.52816373", "text": "double area();", "title": "" }, { "docid": "40759d82cd0f2d8604f63fa6f68daa07", "score": "0.52803504", "text": "public VectorBox unit(VectorBox u) {\n\tint dimension = u.values.length;\n\tdouble[] vector = new double[dimension];\n\tdouble norm = norm(u);\n\tfor (int i = 0; i < dimension; i++) {\n\t double value = u.values[i];\n\t vector[i] = value / norm;\n\t}\n\treturn new VectorBox(vector);\n }", "title": "" }, { "docid": "084f9a72361e96e5b64d6db1494c6ba7", "score": "0.5254006", "text": "@Override\n public Rectangle getBoundingBox(){\n return new Rectangle(this.x, this.y, this.getWidth(), this.getHeight());\n }", "title": "" }, { "docid": "c90ad1a0adbc1e9f4bfaa3c9b478ea74", "score": "0.5251905", "text": "static double sqrLength(Point2D a) {\n return dot(a, a);\n }", "title": "" }, { "docid": "98a2b3ea93598207d01f4fdd30671681", "score": "0.52512497", "text": "public float length() {\n\t\treturn (float)Math.sqrt(x*x + y*y);\n\t}", "title": "" }, { "docid": "5dba2b6e5c274a43e70c015dd7a7fca3", "score": "0.52511567", "text": "@Override\n\tdouble getArea() {\n\t\treturn (base*height)*0.5;\n\t}", "title": "" }, { "docid": "0a988625da677de8c76a27c0b2ae06b6", "score": "0.52498937", "text": "@Override\n double perimeter() {\n return 0;\n }", "title": "" }, { "docid": "b63e81e87f291f64c212a38892210856", "score": "0.52474153", "text": "double getArea(){\t\t\t//creating a formula for area\n\t\treturn width * height;\n\t}", "title": "" }, { "docid": "c654674f52b3da52c7be64dfffb429a8", "score": "0.52463996", "text": "protected Coord3d squarify() {\r\n // Get the view bounds\r\n BoundingBox3d bounds;\r\n if (boundmode == ViewBoundMode.AUTO_FIT)\r\n bounds = scene.getGraph().getBounds();\r\n else if (boundmode == ViewBoundMode.MANUAL)\r\n bounds = viewbounds;\r\n else {\r\n assert false : \"unknown bounding mode\";\r\n bounds = new BoundingBox3d(); // just for compiling\r\n }\r\n\r\n // Compute factors\r\n float xLen = bounds.getXmax() - bounds.getXmin();\r\n float yLen = bounds.getYmax() - bounds.getYmin();\r\n float zLen = bounds.getZmax() - bounds.getZmin();\r\n float lmax = Math.max(Math.max(xLen, yLen), zLen);\r\n\r\n if (Float.isInfinite(xLen) || Float.isNaN(xLen) || xLen == 0)\r\n xLen = 1;//throw new ArithmeticException(\"x scale is infinite, nan or 0\");\r\n if (Float.isInfinite(yLen) || Float.isNaN(yLen) || yLen == 0)\r\n yLen = 1;//throw new ArithmeticException(\"y scale is infinite, nan or 0\");\r\n if (Float.isInfinite(zLen) || Float.isNaN(zLen) || zLen == 0)\r\n zLen = 1;//throw new ArithmeticException(\"z scale is infinite, nan or 0\");\r\n if (Float.isInfinite(lmax) || Float.isNaN(lmax) || lmax == 0)\r\n lmax = 1;//throw new ArithmeticException(\"z scale is infinite, nan or 0\");\r\n\r\n // Return a scaler\r\n return new Coord3d(lmax / xLen, lmax / yLen, lmax / zLen);\r\n }", "title": "" }, { "docid": "461addecda34b279a2a24aada1396aba", "score": "0.52454317", "text": "public double getArea() {\n\t\t\n\t\tdouble area = boundary.getArea();\n\t\tfor(EdgeLoop excluded: excludedArea)\n\t\t\tarea -= excluded.getArea();\n\t\t\n\t\treturn area;\n\t}", "title": "" }, { "docid": "4d34a5b80281162b77a8f450187472d2", "score": "0.5243582", "text": "public double getOboxWidth() {\n\t\treturn oboxWidth;\n\t}", "title": "" }, { "docid": "b3487ced61b3c83d6123a1fe92685071", "score": "0.52380574", "text": "public double measureOutOfBagError() {\n \n if (m_bagger != null) {\n return m_bagger.measureOutOfBagError();\n } else return Double.NaN;\n }", "title": "" }, { "docid": "5307edd1776109f78e4cc090845c41fe", "score": "0.5235198", "text": "@Override\n double area() {\n return 0;\n }", "title": "" }, { "docid": "74b8d38e76899815fd5f4fbef4f7d018", "score": "0.52314854", "text": "double getSizeInY();", "title": "" }, { "docid": "e322e81e4bd2699d842fdaf42de05fea", "score": "0.52240527", "text": "@Override\r\n\tpublic double getArea() {\r\n\t\treturn height * base / 2;\r\n\t}", "title": "" }, { "docid": "2a5ca685d6fa57a4a20cb3ae7bdf8312", "score": "0.5216475", "text": "@Override\n\tpublic double getArea() {\n\t\tthis.rectangle_area = side_1 * side_2;\n\t\treturn rectangle_area;\n\t}", "title": "" }, { "docid": "698bae461633ea80de5be8b36c0c2d9a", "score": "0.52142954", "text": "public double getNorm(){\n double squarenorm = Math.pow(this.x, 2)+Math.pow(this.y, 2)+Math.pow(this.z, 2);\n double norm = Math.sqrt(squarenorm);\n return norm;\n \n }", "title": "" }, { "docid": "6e71a1ca189e304bfafca63017c5a254", "score": "0.520593", "text": "@Override\r\n public double area() {\r\n return 0;\r\n }", "title": "" }, { "docid": "3eb58c053076a5cfdcfeb86f101f119c", "score": "0.52044207", "text": "public abstract int variantBoxScalingFactor();", "title": "" }, { "docid": "24f83dac6c27250c1daf7eeb38775ba0", "score": "0.5200648", "text": "public double calculateArea() {\n\t\treturn (0.25 * Math.sqrt(5 * (5 + 2 *(Math.sqrt(5)) * (Math.pow(side, 2)))));\r\n\t}", "title": "" }, { "docid": "3b6cd436e79d3e25bd9938afae8c5405", "score": "0.51886564", "text": "@Override\n public GeoBoundingBox getInternalBoundingBox() {\n return boundingBox;\n }", "title": "" }, { "docid": "00a13a15405aa3cf02bbe6b62e06d06e", "score": "0.5188253", "text": "public Vector normalized() {\n double length = getLength();\n if (length > 1e-6)\n return scale(1.0/length);\n return Vector.X;\n }", "title": "" }, { "docid": "5bc431d95abc456f0ef8ca95d0497d00", "score": "0.5181551", "text": "@Override\n\tpublic double getArea() {\n\t\t// TODO Auto-generated method stub\n\t\treturn width * height;\n\t}", "title": "" }, { "docid": "050d961c1e7348c83b582a38f32b512f", "score": "0.51814246", "text": "public double getOboxHeight() {\n\t\treturn oboxHeight;\n\t}", "title": "" }, { "docid": "e3a1385e21a37deffe7388ac5fa93b2b", "score": "0.51773036", "text": "public double getVariance() {\n return sumsq / (numItems - 1);\n }", "title": "" }, { "docid": "fc31ccbae79370b96335e9e5832e6c32", "score": "0.51739216", "text": "public float length()\n {\n return (float) Math.sqrt(x * x + y * y);\n }", "title": "" }, { "docid": "3151ae73ff5b4c03f5c236ffe16c8260", "score": "0.5172287", "text": "protected float areaRectangle(float W, float H){\r\n\tw = W;\r\n\th = H;\r\n\tarea = w * h;\r\n\treturn area;\r\n}", "title": "" }, { "docid": "54d8af9aa8238eb27640e6d7d4d51b44", "score": "0.51721627", "text": "public double getSupportUpperBound()\r\n/* 108: */ {\r\n/* 109:196 */ return (1.0D / 0.0D);\r\n/* 110: */ }", "title": "" }, { "docid": "b9610835a2e1a23d580420bb51890b21", "score": "0.51710767", "text": "public Vector2f borderBoxSize() {\n return boxSize(padding(), border());\n }", "title": "" }, { "docid": "76653a140f82ff4011851ec6298b1739", "score": "0.5170675", "text": "public Rect getBBox() throws PDFNetException {\n/* */ long l;\n/* 126 */ if ((l = GetBBox(this.a)) == 0L) {\n/* 127 */ return null;\n/* */ }\n/* 129 */ return new Rect(l);\n/* */ }", "title": "" }, { "docid": "9826a72c363d2fb158efc88c83940571", "score": "0.516909", "text": "@Override\n\tdouble getArea() {\n\t\treturn base*height;\n\t}", "title": "" }, { "docid": "8cdad92843979d15184764024437d6ee", "score": "0.5167291", "text": "public int getUnscaledDropHeight(Shape unscaledShape) {\r\n Rectangle rectangle = GeometryUtils.getBoundingRectangle(unscaledShape);\r\n int x1 = toXIndex((int)rectangle.getX() + 1);\r\n int x2 = toXIndex((int)GeometryUtils.getMaxX(rectangle)) + 1;\r\n int y1 = toYIndex((int)GeometryUtils.getMaxY(rectangle) - 1);\r\n boolean emptyRow = true;\r\n int y;\r\n for (y = y1; y < data[0].length;y++) {\r\n for (int i = x1; i < x2; i++) {\r\n if (data[i][y] != emptyType) {\r\n emptyRow = false;\r\n break;\r\n }\r\n }\r\n if (!emptyRow) break;\r\n }\r\n return Sizes.MIN_Y + y * Sizes.BLOCK - 1;\r\n }", "title": "" }, { "docid": "427cdb45773b9b0d62073b9db8c12eb0", "score": "0.5166571", "text": "double getArea();", "title": "" }, { "docid": "427cdb45773b9b0d62073b9db8c12eb0", "score": "0.5166571", "text": "double getArea();", "title": "" }, { "docid": "381fa53369a8940367ed45841165c35e", "score": "0.51650095", "text": "public double length() {\r\n return Math.sqrt(x * x + y * y);\r\n }", "title": "" }, { "docid": "894c69ecf868fee73333dd304b01d372", "score": "0.5163818", "text": "public float getSlipperiness();", "title": "" }, { "docid": "aea5d8a0ba231041f1084f8d1c666009", "score": "0.515594", "text": "public float norm()\n {\n return (float) FastMath.sqrt(w * w + x * x + y * y + z * z);\n }", "title": "" }, { "docid": "c5ab9368316e6c8a3153b9847a8d3ff7", "score": "0.51497644", "text": "@Override\n public Integer calculate() {\n int maxSize = 0;\n\n for (int row = 0; row < this.rows; ++row) {\n for (int col = 0; col < this.cols; ++col) {\n\n if (this.validRectanglePosition(row, col)) {\n int currSize = this.calculateMaxRectangleArea(\n row,\n col,\n row,\n col);\n\n if (currSize > maxSize) {\n maxSize = currSize;\n }\n }\n }\n }\n\n return maxSize;\n }", "title": "" }, { "docid": "1849bba830f4d1c8f8b29f40dda97222", "score": "0.5144322", "text": "public double getBoundingHeight () {\n\t\treturn myBoundingHeight;\n\t}", "title": "" }, { "docid": "d74cc82740443b011e8e92cc8f3953d3", "score": "0.51436996", "text": "public int pixelSize() {\r\n return Math.max(2, (int) Math.round(10.0 / (magnitude + 2)));\r\n }", "title": "" }, { "docid": "7418856f09b91d2c3a47e66e7faa1f43", "score": "0.5143499", "text": "public int getHeight()\n {\n return boxHeight;\n }", "title": "" }, { "docid": "babec78c09631e28fa6d22f6e902bce5", "score": "0.51225954", "text": "public double lengthSquared()\n {\n return this.v.distanceSquared(Point_3D.ZERO);\n }", "title": "" } ]
59117852ba67a32fd8c2f18aa1f00104
this is an unsued methof
[ { "docid": "7583716c04663627bf6211c6051d283d", "score": "0.0", "text": "@Generated(\"com.github.javaparser.generator.core.node.TypeCastingGenerator\")\n public void ifFieldDeclaration(Consumer<FieldDeclaration> action) {\n }", "title": "" } ]
[ { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.69667774", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.69667774", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.69667774", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.69667774", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "ef1b6c3f597a66c59960d73eadee6f25", "score": "0.69417936", "text": "private void apparence()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.6767683", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4862518dedb9e169c3cc620e5ebe04c5", "score": "0.6703481", "text": "@Override\r\n\tpublic void atura() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0eb970f9ff2401489f5e041df4670f10", "score": "0.67029697", "text": "public void method(){\n\t\t\n\t}", "title": "" }, { "docid": "5727c6d33ba6b9298776053648827a19", "score": "0.66657525", "text": "@Override\r\n\tpublic void method() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f256956c69d878530fa93a6e136e37bb", "score": "0.661672", "text": "@Override\n\tpublic void totoMethod() {\n\n\t}", "title": "" }, { "docid": "651ef6275f1a33ed6582a1599cab78d2", "score": "0.6572856", "text": "@Override\n\tpublic void bekle() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6531468", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6531468", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.6410487", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "73cc4c77a0f6a3e15ffbe205a56185d5", "score": "0.63976437", "text": "@Override\r\n\tpublic void methodOne() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.63341343", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "74578344538dd194907dffc0406cacac", "score": "0.6319645", "text": "@Override\n public void suicide() {\n \n }", "title": "" }, { "docid": "7c7fc86288848697fef9838568befab2", "score": "0.63143045", "text": "@Override\r\n\tpublic void moe() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.6287404", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "97914fd57b96c186642e9feec60baddf", "score": "0.62729317", "text": "@Override\r\n\tpublic void method() {\n\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.62613845", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "20aa3abef3af4ea8bcf5e834227be04c", "score": "0.62582916", "text": "@Override\n\tpublic void Pessoa() {\n\t\t\n\t}", "title": "" }, { "docid": "3e96e13be516f809ee3d9c051a94c53f", "score": "0.62404376", "text": "protected abstract void mo6283a();", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6234317", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "7a872a4edeea29f33195556a5964fb49", "score": "0.6233799", "text": "public void mo919a() {\n }", "title": "" }, { "docid": "5a13a6e8b477121b0c2b6af3b7302cbd", "score": "0.62324834", "text": "public abstract void mo16889d();", "title": "" }, { "docid": "d7405dbb7f385c28de1f97859172342b", "score": "0.623069", "text": "@Override\n\tpublic void affiche() {\n\t}", "title": "" }, { "docid": "72c51b6dce2ef90932e55f02a8e11507", "score": "0.62200856", "text": "public void method(){\n\t}", "title": "" }, { "docid": "db51ad8e6f15ad35a767d84e1e1eda68", "score": "0.6218515", "text": "@Override\n\t\t\tpublic void cry() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "025fba7a0946dab896c7563be24142f3", "score": "0.62096405", "text": "protected abstract void mo1584sv();", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.6203479", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "7a7954048e65c8aa9ee11a43e0a794c2", "score": "0.62009144", "text": "@Override\n\tpublic void disparar() {\n\n\t}", "title": "" }, { "docid": "f1ef39fc718bf2a95b15ec82dda063ee", "score": "0.6196513", "text": "@Override\n\tpublic void subo() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.6175035", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "464a6f9611e7130c067a4eb19f9d3718", "score": "0.61587006", "text": "@Override\r\n\t\tpublic void absMethod() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "464a6f9611e7130c067a4eb19f9d3718", "score": "0.61587006", "text": "@Override\r\n\t\tpublic void absMethod() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "fba36b6a112c0dbc3dd5aa61fe730a40", "score": "0.6156481", "text": "@Override\n\tpublic void subir() {\n\t\t\n\t}", "title": "" }, { "docid": "b096eae650ba80789eb6446d859169a3", "score": "0.6155999", "text": "protected void mo1586sx() {\n }", "title": "" }, { "docid": "677f434cde97ecb01dfcb3c598a29314", "score": "0.61549747", "text": "public abstract void mo7979d();", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.6138338", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "af1adf614eadb1a9afa77804d2ed4e42", "score": "0.6137756", "text": "@Override\r\n\tpublic void sub() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f9fa4d6203b441d4a00a824c3219ddb2", "score": "0.61327285", "text": "@Override\n\tprotected void doOperate() {\n\n\t}", "title": "" }, { "docid": "761f5db0b07474bff2090f23a6693efb", "score": "0.6129476", "text": "private void Prodto() {\n\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6123982", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.6123635", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "22f2421f5b9cc11d1699c42857b4dfe9", "score": "0.6114433", "text": "protected void mo1582st() {\n }", "title": "" }, { "docid": "2f2216d5b5c98690feaa3184c2634e23", "score": "0.6112595", "text": "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.60908175", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6e24d48e8560c36adea5f8855f946979", "score": "0.6086213", "text": "@Override\n\tpublic void mettreAJour() {\n\t\t\n\t}", "title": "" }, { "docid": "c56ced5e9768caa7a88a0e86dc1d02eb", "score": "0.60795695", "text": "@Override\n\tpublic void pintate() {\n\t\t\n\t}", "title": "" }, { "docid": "d07c1f5c9d405e36c1ebf9e7e586652e", "score": "0.60728604", "text": "private Solution() {\n /** Not using this function**/\n }", "title": "" }, { "docid": "be830e7770a95dcf549640eb04c17468", "score": "0.6066656", "text": "@Override //120\n\tpublic void nächsteRundeBereit() {\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.60648096", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "97e89823e199c25bcec3ab0c37e061d2", "score": "0.6054071", "text": "public void method_3223() {\r\n super();\r\n }", "title": "" }, { "docid": "951638c11e887c3f81bcc83306f4e413", "score": "0.6052327", "text": "@Override\r\n\tpublic void trunon() {\n\r\n\t}", "title": "" }, { "docid": "e1015320ebd19281106c72bd64f91695", "score": "0.60509217", "text": "public void method_3816() {\r\n super();\r\n }", "title": "" }, { "docid": "19c06c00fa9215d1b580bc6b56689ede", "score": "0.6049644", "text": "public void method_3391() {\r\n super.method_3391();\r\n }", "title": "" }, { "docid": "8c5179f41cce68f348bd2a2f206bac9f", "score": "0.6040942", "text": "public void method_7076() {\r\n super();\r\n }", "title": "" }, { "docid": "4492640dbe23effcd2f7959fad52b17b", "score": "0.6036432", "text": "void method_8422() {\r\n super();\r\n }", "title": "" }, { "docid": "6b3e0f17215c1362401960b0e574305d", "score": "0.60362905", "text": "public void method_3323() {\r\n super();\r\n }", "title": "" }, { "docid": "2ba22ff158b6e941041f9460eddd0944", "score": "0.60303545", "text": "@Override\n public void operation() {\n \n }", "title": "" }, { "docid": "282a0ae3da87246803d11a8fec33386a", "score": "0.6029697", "text": "@Override\n\tvoid s() {\n\t\t\n\t}", "title": "" }, { "docid": "53270845806b73fe26db37498655ab04", "score": "0.6018688", "text": "public void method_131() {}", "title": "" }, { "docid": "2bf96e1407715bf85de73def4d3c48ad", "score": "0.60014576", "text": "@Override\r\n\tpublic void duzenle(Object o) {\n\t\t\r\n\t}", "title": "" }, { "docid": "dd29cdd6fb7f7ffe147dd071b55e124e", "score": "0.60009974", "text": "public abstract void mo7978c();", "title": "" }, { "docid": "5e9644306db9b78bb4d9b81280f82d14", "score": "0.60004413", "text": "public Boolean method() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "34fa921d5b6b619a79de97a1c33dc21e", "score": "0.5992865", "text": "public abstract Object mo37489b();", "title": "" }, { "docid": "766ddc8a6c1ab418cd716941ce134592", "score": "0.5981564", "text": "protected abstract void mo4168a();", "title": "" }, { "docid": "c94a16c970558daa23ee84df46387d38", "score": "0.59675175", "text": "SpecialMethod(int a) {\n\t\t\n\t}", "title": "" }, { "docid": "0ab9693edb88f97a13e28b352ce1f07f", "score": "0.59666526", "text": "public abstract void mo5264a();", "title": "" }, { "docid": "cd6fde8ae1ab8b28a75022bbc07ba475", "score": "0.5962836", "text": "@Override\n\tpublic void totoMethod2() {\n\n\t}", "title": "" }, { "docid": "8c70207d7dbaf454c12ab6c804971376", "score": "0.59611833", "text": "public abstract void mo38829a();", "title": "" }, { "docid": "1c8347682ed172443243f70171c903b9", "score": "0.5957114", "text": "public abstract void mo464o();", "title": "" }, { "docid": "818994ffaf498e7deeb561150fd365fb", "score": "0.5955624", "text": "public void mo73965b() {\n }", "title": "" }, { "docid": "3015fa6f22915bd63985a8c39a5723fc", "score": "0.595455", "text": "@Override\n\tpublic int method2() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.5942245", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "4ccbf629ba73ea0666541a18d2c6466d", "score": "0.5937578", "text": "public final void mo71574y() {\n }", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.59267104", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "f9373fe23fea517b301da8cbc9fd09ee", "score": "0.5915132", "text": "public void mo1996b() {\n }", "title": "" }, { "docid": "350c9ac86602da6869c0042d698ea115", "score": "0.59142894", "text": "@Override\n public String getMethod() {\n return null;\n }", "title": "" }, { "docid": "b44be1e1b78bca3e0fe53ff4baa6e354", "score": "0.59133893", "text": "public void mo25878f() {\n }", "title": "" }, { "docid": "e76b20e311156faf2d280c053d61a91a", "score": "0.5910897", "text": "public void mo22976d() {\n }", "title": "" }, { "docid": "06522870097120e69057f0444494ef7f", "score": "0.59089357", "text": "@Override\n\tpublic void einsehen() {\n\t\t\n\t}", "title": "" }, { "docid": "9ee1da02ff1c67794e5ef4262fd80fb0", "score": "0.59083235", "text": "public abstract void mo103764e();", "title": "" }, { "docid": "576e7a8fe64dd05f44a028a3fe89fa29", "score": "0.5908047", "text": "public void method_9832() {\r\n super.method_9832();\r\n }", "title": "" }, { "docid": "c6c526e05117e91c26efaa3276a99a38", "score": "0.5905293", "text": "public abstract void mo13795m();", "title": "" }, { "docid": "7800f17307f01c26d71c1bdc9e54ecf4", "score": "0.5903293", "text": "protected ArktweetAnno() {/* intentionally empty block */}", "title": "" }, { "docid": "b2f0e84ed51b4da2099b003006c168b0", "score": "0.5902694", "text": "@Override\n\tpublic void coger() {\n\t\t\n\t}", "title": "" }, { "docid": "49d4e199ac856a2e29be550759b2d9f7", "score": "0.58991444", "text": "public void mo12306a() {\n }", "title": "" }, { "docid": "be5b488e24438265a0afcb40608b9a90", "score": "0.58948404", "text": "public void manterGarcom(){\n\t}", "title": "" }, { "docid": "52dfa4e16ed27fe86ddfc7733ef31fdb", "score": "0.589151", "text": "public void publicMethodXXX() {\n \n \t}", "title": "" }, { "docid": "90e9be10c2c69543036119c8db74189e", "score": "0.5889576", "text": "public void mo6944a() {\n }", "title": "" }, { "docid": "a4e0f91a4d31d1e082ad323e3764fbd3", "score": "0.5889311", "text": "public void method_1449() {\r\n super.method_1449();\r\n }", "title": "" }, { "docid": "81a4bc2b009c8590d3a527cc01da5d8f", "score": "0.58883774", "text": "public abstract void mo468s();", "title": "" }, { "docid": "1f8dc25ba346caee214669097f38b5b4", "score": "0.5885173", "text": "public abstract void mo5270b();", "title": "" }, { "docid": "f0e80dbf728371e6daa01e61cc71a8e5", "score": "0.5882375", "text": "@Override\r\n\tpublic void test6() {\n\t\t\r\n\t}", "title": "" }, { "docid": "555ef4e0462825494b2cea69540f132f", "score": "0.587562", "text": "public void mo23978b() {\n }", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.5873765", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "7461823d05de267c646d3d483a631e80", "score": "0.5868135", "text": "public abstract void mo15239a();", "title": "" }, { "docid": "8f596043c30879899cf051cbf77439be", "score": "0.58601743", "text": "void methodOne()\n {\n //can have non-static method\n }", "title": "" }, { "docid": "9434442c5a399946c94cae9e98315d44", "score": "0.5857362", "text": "public void mo5059a() {\n }", "title": "" } ]
24a952792d535c8e847fb37e90b9b2e1
Leetcode 123: Best Time to Buy and Sell StockIII(only 2 transactions allowed)
[ { "docid": "6353b2e3e702eaccb74dc7328c8c7359", "score": "0.5601997", "text": "public int maxProfit(int[] prices) {\n \n if(prices.length==0)\n return 0;\n \n int Ti10= 0;\n int Ti11= -(int)1e9;\n \n int Ti20= 0;\n int Ti21= -(int)1e9;\n \n for(int price: prices){\n \n Ti20=Math.max(Ti20,Ti21+price);\n Ti21=Math.max(Ti21,Ti10-price);\n \n Ti10=Math.max(Ti10,Ti11+price);\n Ti11=Math.max(Ti11,0 - price);\n }\n return Ti20;\n }", "title": "" } ]
[ { "docid": "c590812975c9a4a264c59ae8934848d7", "score": "0.71813893", "text": "public static int bestTimeToBuyAndSellStock(int[] stocks) {\n\n int profit = 0;\n for(int i = 0; i < stocks.length-1; i++){\n for(int j = i+1; j < stocks.length; j++){\n// prices.add(stocks[j]-stocks[i]);\n profit = Math.max(profit, stocks[j]-stocks[i]);\n }\n }\n// Collections.sort(prices);\n// return Math.max(0, prices.get(prices.size() - 1));\n return profit;\n\n/* optimized ... .clearly, this is dogshit\n int min = stocks[0] ;\n int maxProfit = 0;\n\n for(int i = 1; i < stocks.length; i++){\n maxProfit = Math.max(maxProfit, stocks[i] - min);\n\n min = stocks[i]<min ? stocks[i]:min;\n min = Math.max(min, stocks[i]);\n }\n// return maxProfit;*/\n }", "title": "" }, { "docid": "b9d3c0bdbd76d7514878dc383002e100", "score": "0.65405834", "text": "public int maxProfit(int[] prices) {\n if(prices.length==0)\n return 0;\n \n int Ti0=0;// initially when no stock is to be bought\n int Ti1=-(int)1e9;\n \n for(int ele: prices){\n Ti0=Math.max(Ti0,Ti1+ele);\n Ti1=Math.max(Ti1,0-ele);\n }\n \n return Ti0;\n}", "title": "" }, { "docid": "637298062a46df7f6720b4b80f6bc0e3", "score": "0.6500196", "text": "static int buySellStock1(int[] prices) {\n\n int minPrice = Integer.MAX_VALUE;\n int maxProfit = 0;\n\n for (int i = 0; i < prices.length; i++) {\n\n if (prices[i] < minPrice)\n minPrice = prices[i];\n else if (prices[i] - minPrice > maxProfit)\n maxProfit = prices[i] - minPrice;\n\n }\n\n return maxProfit;\n\n }", "title": "" }, { "docid": "37fc2697bb6db629fdf13615d3fb889a", "score": "0.6478445", "text": "public static int bestTimeStock(int[] prices) {\n if (prices == null || prices.length == 0)\n return 0;\n int local = 0;\n int global = 0;\n for (int i = 0; i < prices.length - 1; i++) {\n local = Math.max(local + prices[i + 1] - prices[i], 0);\n global = Math.max(local, global);\n }\n return global;\n }", "title": "" }, { "docid": "55a54a2754ab89021325d1514cd91420", "score": "0.64677227", "text": "private Double matchOrder(PriorityBlockingQueue<Order> pq, Order o){\n\t\tOrder bestCandidate = pq.peek();\n\t\tif(bestCandidate == null || o.getUnits() == 0){\n\t\t\treturn 0.0;\n\t\t}\n\t\tString security = o.getSecurityId();\n\t\tDouble transactionValue = bestCandidate.getValue();\t\n\t\tint placedUnits = 0;\n\t\tboolean shouldMakeTransaction = o.isBuying()?\n\t\t\t\t(o.getValue() >= transactionValue):\n\t\t\t\t\t(o.getValue() <= transactionValue);\n\t\t\t\t//for market_order offer the best trade available at that point in time\n\t\t\t\tif(o.getOrderType().equals(OrderType.MARKET_ORDER)){\n\t\t\t\t\tshouldMakeTransaction = true;\n\t\t\t\t}\n\n\t\t\t\tif(\tshouldMakeTransaction){\n\t\t\t\t\tint oUnits = o.getUnits();\n\t\t\t\t\tint bestCandidateUnits = bestCandidate.getUnits();\n //\n transactionValue = bestCandidate.getValue();\n //for bestCandidate is an MARKET_ORDER , values from bid/ask order should be considered\n if(bestCandidate.getOrderType().equals(OrderType.MARKET_ORDER)){\n if(bestCandidate.getValue().equals(HIGH_VALUE) || bestCandidate.getValue().equals(LOW_VALUE)) {\n transactionValue = o.getValue();\n }\n }\n //\n\n //If both the bestcandidate and placed order are MARKET_ORDER, then find the security market value based on\n //the price of next best limit order from order book\n if(bestCandidate.getOrderType().equals(OrderType.MARKET_ORDER) &&\n o.getOrderType().equals(OrderType.MARKET_ORDER)){\n transactionValue = getMarketPrice(pq);\n }\n\n\t\t\t\t\tif(oUnits > bestCandidateUnits){\n\t\t\t\t\t\tplacedUnits = bestCandidateUnits;\n\t\t\t\t\t\to.setUnits(oUnits - bestCandidateUnits);\n\t\t\t\t\t\tlogger.info(\"ORDER MATCHED - security: \" + security + \" placedUnits : \" + placedUnits + \" transactionValue : \" + transactionValue + \" o.isBuying() : \" + o.isBuying() );\n\t\t\t\t\t\tbestCandidate.setUnits(0);\t\t\t\t\n\t\t\t\t\t\tpq.remove(bestCandidate);\n\t\t\t\t\t}else if(oUnits < bestCandidateUnits){\n\t\t\t\t\t\tplacedUnits = oUnits;\n\t\t\t\t\t\to.setUnits(0);\n\t\t\t\t\t\tlogger.info(\"ORDER MATCHED - security: \" + security + \" placedUnits : \" + placedUnits + \" transactionValue : \" + transactionValue + \" o.isBuying() : \" + o.isBuying() );\n\t\t\t\t\t\tbestCandidate.setUnits(bestCandidateUnits - oUnits);\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tplacedUnits = oUnits;//either one... \n\t\t\t\t\t\to.setUnits(0);\t\t\t\t\n\t\t\t\t\t\tlogger.info(\"ORDER MATCHED - security: \" + security + \" placedUnits : \" + placedUnits + \" transactionValue : \" + transactionValue + \" o.isBuying() : \" + o.isBuying() );\n\t\t\t\t\t\tbestCandidate.setUnits(0);\n\t\t\t\t\tpq.remove(bestCandidate);\n\t\t\t\t\t}\n\t\t\t\t\t//If we still have units, attempt to match recursively\n\t\t\t\t\treturn transactionValue * placedUnits + matchOrder(pq,o);\n\t\t\t\t}\n\t\t\t\treturn placedUnits > 0 ? transactionValue: 0.0;\n\t}", "title": "" }, { "docid": "181a52b31f44af3b41c77a5bcbdea66d", "score": "0.6412381", "text": "private void matchBuyOrder(TradeOrder tradeOrder) {\n\t\tBTCRate currentBTCRate = null;\n\t\tList<BTCRate> listBtcRate = btcRateService.findAll(tradeOrder\n\t\t\t\t.getSymbol());\n\t\tif (!listBtcRate.equals(null) && (listBtcRate.size() > 0)) {\n\t\t\tcurrentBTCRate = listBtcRate.get(0);\n\t\t}\n\n\t\t// Get the open sell orders in a descending order\n\t\tList<TradeOrder> listOpenSellOrders = null;\n\n\t\tOrderTransaction orderTransaction = null;\n\t\tTradeOrder sellOrder = null;\n\t\tlistOpenSellOrders = tradeOrderDao.findOpenSellOrders(\n\t\t\t\ttradeOrder.getSymbol(), OrderType.SELL, OrderStatus.OPEN,\n\t\t\t\ttradeOrder.getPrice());\n\t\tlogger.info(\" DDDDDDDDD ORDER Symbol \"+tradeOrder.getSymbol()+\" Type \"+OrderType.SELL+\" status \"+OrderStatus.OPEN+\" Price \"+tradeOrder.getPrice());\n\t\tif (!listOpenSellOrders.equals(null) && listOpenSellOrders.size() > 0) {\n\t\t\tsellOrder = listOpenSellOrders.get(0);\n\t\t\tlogger.info(\"XXXXXXXX Executing an Order XXXXXXXX \");\n\n\t\t\t/***\n\t\t\t * Quantities Equal Create a Buy Order Transaction Create a Sell\n\t\t\t * Order Transaction Close a Buy Order Close a Sell Order\n\t\t\t * **/\n\t\t\tlogger.info(\"RRRRRRRRRRRRRRR Buy Order price \"+tradeOrder.getPrice()+\" By Order Quantity \"+tradeOrder.getUnfulfilledquantity()+\" Sell Order Price \"+sellOrder.getPrice()+\" Sell Order Quantity \"+sellOrder.getUnfulfilledquantity());\n\t\t\tif (tradeOrder.getUnfulfilledquantity().equals(\n\t\t\t\t\tsellOrder.getUnfulfilledquantity())) {\n\t\t\t\t// Task happens here\n\t\t\t\torderTransaction = new OrderTransaction();\n\t\t\t\torderTransaction.setTradeOrder(tradeOrder);\n\t\t\t\torderTransaction.setQuantity(sellOrder.getQuantity());\n\t\t\t\torderTransaction.setPrice(sellOrder.getPrice());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\torderTransaction.setTotal(sellOrder.getPrice()\n\t\t\t\t\t\t* sellOrder.getQuantity());\n\t\t\t\torderTransaction.setFee(FEEMULTIPLIER * sellOrder.getPrice()\n\t\t\t\t\t\t* sellOrder.getQuantity());\n\t\t\t\torderTransaction.setSymbol(sellOrder.getSymbol());\n\t\t\t\torderTransaction.setCorrespondingOrder(sellOrder);\n\t\t\t\torderTransaction.setOrderType(tradeOrder.getOrderType());\n\t\t\t\torderTransaction.setBtcRate(currentBTCRate);\n\n\t\t\t\torderTransactionService.add(orderTransaction);\n\t\t\t\t// Set the tradeOrder to closed\n\n\t\t\t\ttradeOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\t\t// tradeOrderDao.save(tradeOrder);\n\n\t\t\t\t// Save the sell Order in the Order transaction\n\t\t\t\torderTransaction.setTradeOrder(sellOrder);\n\t\t\t\torderTransaction.setCorrespondingOrder(tradeOrder);\n\t\t\t\torderTransaction.setOrderType(sellOrder.getOrderType());\n\t\t\t\torderTransactionService.add(orderTransaction);\n\n\t\t\t\t// Set the Sell Order as closed\n\t\t\t\tsellOrder.setOrderStatus(OrderStatus.CLOSED);\n\n\t\t\t\ttradeOrderDao.update(tradeOrder);\n\t\t\t\ttradeOrderDao.update(sellOrder);\n\n\t\t\t} else\n\t\t\t/***\n\t\t\t * Buy Order Quantity is less than Sell Order Quantity\n\t\t\t * \n\t\t\t * Create Buy Order Transaction Close Buy Order Create a Sell Order\n\t\t\t * Transaction with small quantity\n\t\t\t * \n\t\t\t * Update Sell Order with the new unfulfilled quantity - sell\n\t\t\t * unfulfilled - buy unfulfilled\n\t\t\t * ***/\n\t\t\tif (tradeOrder.getUnfulfilledquantity().compareTo(\n\t\t\t\t\tsellOrder.getUnfulfilledquantity()) < 0) {\n\t\t\t\t// Task happens here\n\t\t\t\torderTransaction = new OrderTransaction();\n\t\t\t\torderTransaction.setTradeOrder(tradeOrder);\n\t\t\t\torderTransaction.setQuantity(tradeOrder.getUnfulfilledquantity());\n\t\t\t\torderTransaction.setPrice(sellOrder.getPrice());\n\t\t\t\torderTransaction.setTotal(sellOrder.getPrice() * tradeOrder.getUnfulfilledquantity());\n\t\t\t\torderTransaction.setFee(FEEMULTIPLIER * sellOrder.getPrice() * tradeOrder.getUnfulfilledquantity() ); \n\t\t\t\torderTransaction.setSymbol(sellOrder.getSymbol());\n\t\t\t\torderTransaction.setCorrespondingOrder(sellOrder);\n\t\t\t\torderTransaction.setOrderType(tradeOrder.getOrderType());\n\t\t\t\torderTransaction.setBtcRate(currentBTCRate);\n\t\t\t\t\n\t\t\t\torderTransactionService.add(orderTransaction);\n\t\t\t\t//Set the tradeOrder to closed\n\t\t\t\t\n\t\t\t\ttradeOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\t\t//tradeOrderDao.save(tradeOrder);\n\t\t\t\t\n\t\t\t\t//Save the sell Order in the Order transaction\n\t\t\t\torderTransaction.setTradeOrder(sellOrder);\n\t\t\t\torderTransaction.setCorrespondingOrder(tradeOrder);\n\t\t\t\torderTransaction.setOrderType(sellOrder.getOrderType());\n\t\t\t\torderTransactionService.add(orderTransaction);\n\t\t\t\t\n\t\t\t\t//Set the Sell Order as closed\n\t\t\t\t//sellOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ttradeOrderDao.update(tradeOrder);\n\t\t\t\t\n\t\t\t\tsellOrder.setUnfulfilledquantity(sellOrder.getUnfulfilledquantity().longValue() - tradeOrder.getUnfulfilledquantity().longValue());\n\t\t\t\tsellOrder.setOrderStatus(OrderStatus.PARTIAL);\n\t\t\t\ttradeOrderDao.update(sellOrder);\n\n\n\t\t\t}\n\t\t\t/****\n\t\t\t * Buy Order is quantity is greater than sell order quantity Create\n\t\t\t * Buy Order Transaction with quantity equal to sell order quantity\n\t\t\t * update buy order partial quanity - buy order partial - sell order\n\t\t\t * partial\n\t\t\t * \n\t\t\t * Create a sell order transaction close sell order\n\t\t\t * \n\t\t\t * \n\t\t\t ***/\n\t\t\telse if (tradeOrder.getUnfulfilledquantity().compareTo(\n\t\t\t\t\tsellOrder.getUnfulfilledquantity()) > 0) {\n\t\t\t\t\n\t\t\t\torderTransaction = new OrderTransaction();\n\t\t\t\torderTransaction.setTradeOrder(tradeOrder);\n\t\t\t\torderTransaction.setQuantity(sellOrder.getUnfulfilledquantity());\n\t\t\t\torderTransaction.setPrice(sellOrder.getPrice());\n\t\t\t\torderTransaction.setTotal(sellOrder.getPrice() * sellOrder.getUnfulfilledquantity());\n\t\t\t\torderTransaction.setFee(FEEMULTIPLIER * sellOrder.getPrice() * sellOrder.getUnfulfilledquantity() ); \n\t\t\t\torderTransaction.setSymbol(sellOrder.getSymbol());\n\t\t\t\torderTransaction.setCorrespondingOrder(sellOrder);\n\t\t\t\torderTransaction.setOrderType(tradeOrder.getOrderType());\n\t\t\t\torderTransaction.setBtcRate(currentBTCRate);\n\t\t\t\t\n\t\t\t\torderTransactionService.add(orderTransaction);\n\t\t\t\t//Set the tradeOrder to closed\n\t\t\t\t\n\t\t\t\ttradeOrder.setOrderStatus(OrderStatus.PARTIAL);\n\t\t\t\t//tradeOrderDao.save(tradeOrder);\n\t\t\t\t\n\t\t\t\t//Save the sell Order in the Order transaction\n\t\t\t\torderTransaction.setTradeOrder(sellOrder);\n\t\t\t\torderTransaction.setCorrespondingOrder(tradeOrder);\n\t\t\t\torderTransaction.setOrderType(sellOrder.getOrderType());\n\t\t\t\torderTransactionService.add(orderTransaction);\n\t\t\t\t\n\t\t\t\t//Set the Sell Order as closed\n\t\t\t\t//sellOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\t\t\n\t\t\t\ttradeOrder.setUnfulfilledquantity(tradeOrder.getUnfulfilledquantity().longValue() - sellOrder.getUnfulfilledquantity().longValue());\n\t\t\t\ttradeOrderDao.update(tradeOrder);\n\t\t\t\t\n\t\t\t\t//sellOrder.setUnfulfilledquantity(sellOrder.getUnfulfilledquantity().longValue() - tradeOrder.getUnfulfilledquantity().longValue());\n\t\t\t\tsellOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\t\ttradeOrderDao.update(sellOrder);\n\n\n\t\t\t}\n\t\t\t// Execute the Orders\n\t\t\t// Save a record of tradeorder in the Orders Transaction\n\t\t\t// orderTransaction = new OrderTransaction();\n\t\t\t// orderTransaction.setTradeOrder(tradeOrder);\n\t\t}\n\t\t\telse {\n\t\t\t//There was not matching order in the sell orders\n\t\t\t//This means, no need doing this again\n\t\t\tprocessRecords = false;\n\t\t\tlogger.info(\"DDDDDDDDDDDD Didnt find any matching SELL ORDER, therefore will not continue with any processing here - stopped !\");\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "6c12c336627a4a2c1727fa90432722d0", "score": "0.6384843", "text": "public static void main(String[] args) {\r\n Scanner input = new Scanner(System.in);\r\n int n = input.nextInt();\r\n long[] prices = new long[n];\r\n HashMap<Long,Integer> indices = new HashMap<>();\r\n\r\n //Populate prices array with the input\r\n for(int i = 0; i < n; i++){\r\n prices[i] = input.nextLong();\r\n indices.put(prices[i],i);\r\n }\r\n\r\n Arrays.sort(prices);//Performs a double pivot quicksort and sorts ascending\r\n\r\n Long minimumLoss = Long.MAX_VALUE;\r\n\r\n //Iterate from end to start\r\n for(int i = n-1; i >0; i--){\r\n //Make sure it is a smaller loss\r\n if(prices[i]-prices[i-1] < minimumLoss){\r\n //Verify if the pair is a valid transaction\r\n if(indices.get(prices[i]) < indices.get(prices[i-1]))\r\n minimumLoss = prices[i]-prices[i-1];\r\n }\r\n }\r\n\r\n System.out.println(minimumLoss);\r\n\r\n }", "title": "" }, { "docid": "dbb43d13c21d2a076d0bfc1deb11238f", "score": "0.6377595", "text": "private void matchBuyOpenPartialOrder(TradeOrder tradeOrder){\n\t\tBTCRate currentBTCRate = null;\n\t\tList<BTCRate> listBtcRate = btcRateService.findAll(tradeOrder\n\t\t\t\t.getSymbol());\n\t\tif (!listBtcRate.equals(null) && (listBtcRate.size() > 0)) {\n\t\t\tcurrentBTCRate = listBtcRate.get(0);\n\t\t}\n\n\t\t// Get the open sell orders in a descending order\n\t\tList<TradeOrder> listOpenSellOrders = null;\n\n\t\tOrderTransaction orderTransaction = null;\n\t\tOrderTransaction sellOrderTransaction = null;\n\t\tTradeOrder sellOrder = null;\n//\t\tlistOpenSellOrders = tradeOrderDao.findOpenSellOrders(\n//\t\t\t\ttradeOrder.getSymbol(), OrderType.SELL, OrderStatus.OPEN,\n//\t\t\t\ttradeOrder.getPrice());\n\t\t\n\t\t//Include Partials in the list\n\t\tlistOpenSellOrders = tradeOrderDao.findOpenAndPartialSellOrders(\n\t\t\t\ttradeOrder.getSymbol(), OrderType.SELL, OrderStatus.OPEN, OrderStatus.PARTIAL,\n\t\t\t\ttradeOrder.getPrice());\n\n\t\tlogger.info(\" DDDDDDDDD ORDER Symbol \"+tradeOrder.getSymbol()+\" Type \"+OrderType.SELL+\" status \"+OrderStatus.OPEN+\" Price \"+tradeOrder.getPrice());\n\t\tif (!listOpenSellOrders.equals(null) && listOpenSellOrders.size() > 0) {\n\t\t\tsellOrder = listOpenSellOrders.get(0);\n\t\t\tlogger.info(\"XXXXXXXX Executing an Order XXXXXXXX \");\n\n\t\t\t/***\n\t\t\t * Quantities Equal Create a Buy Order Transaction Create a Sell\n\t\t\t * Order Transaction Close a Buy Order Close a Sell Order\n\t\t\t * **/\n\t\t\tlogger.info(\"RRRRRRRRRRRRRRR Buy Order price \"+tradeOrder.getPrice()+\" By Order Quantity \"+tradeOrder.getUnfulfilledquantity()+\" Sell Order Price \"+sellOrder.getPrice()+\" Sell Order Quantity \"+sellOrder.getUnfulfilledquantity());\n\t\t\tif (tradeOrder.getUnfulfilledquantity().equals(\n\t\t\t\t\tsellOrder.getUnfulfilledquantity())) {\n\t\t\t\t\n\t\t\t\t//This is independent of whether it is a sell or a buy \n\t\t\t\t// Task happens here\n\t\t\t\torderTransaction = new OrderTransaction();\n\t\t\t\torderTransaction.setTradeOrder(tradeOrder);\n\t\t\t\torderTransaction.setQuantity(sellOrder.getUnfulfilledquantity());\n\t\t\t\torderTransaction.setPrice(sellOrder.getPrice());\n\t\t\t\t\n\t\t\t\tDouble transactionFee = (FEEMULTIPLIER * sellOrder.getPrice() * sellOrder.getUnfulfilledquantity());\n\t\t\t\t\n\t\t\t\torderTransaction.setTotal(((sellOrder.getPrice()\n\t\t\t\t\t\t* sellOrder.getUnfulfilledquantity()) + transactionFee));\n\t\t\t\t\n\t\t\t\torderTransaction.setFee(FEEMULTIPLIER * sellOrder.getPrice()\n\t\t\t\t\t\t* sellOrder.getUnfulfilledquantity());\n\t\t\t\torderTransaction.setSymbol(sellOrder.getSymbol());\n\t\t\t\torderTransaction.setCorrespondingOrder(sellOrder);\n\t\t\t\t//orderTransaction.getSourceOrderList().add(sellOrder);\n\t\t\t\torderTransaction.setOrderType(tradeOrder.getOrderType());\n\t\t\t\torderTransaction.setBtcRate(currentBTCRate);\n\t\t\t\tsellOrderTransaction = orderTransaction;\n\t\t\t\t\n\t\t\t\t//if buy order is open\n\t\t\t\tif (tradeOrder.getOrderStatus().equals(OrderStatus.OPEN)){\n\n\t\t\t\t\torderTransactionService.add(orderTransaction);\n\t\t\t\t\t// Set the tradeOrder to closed\n\n\t\t\t\t\ttradeOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\t\t\ttradeOrderDao.update(tradeOrder);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t} else if (tradeOrder.getOrderStatus().equals(OrderStatus.PARTIAL)){\n\t\t\t\t\t//we have a partial buy order\n\t\t\t\t\t/***\n\t\t\t\t\t * Get the buy order transaction and update it\n\t\t\t\t\t * */\n\t\t\t\t\tupdatePartialBuyOrderBuySellEqual(tradeOrder, sellOrder);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\t\t\t// tradeOrderDao.save(tradeOrder);\n\n\t\t\t\tif (sellOrder.getOrderStatus().equals(OrderStatus.OPEN)){\n\t\t\t\t\t//The Sell Order is Open - normal operation\n\t\t\t\t\tsellOrderTransaction.setTradeOrder(sellOrder);\n\t\t\t\t\tsellOrderTransaction.setCorrespondingOrder(tradeOrder);\n\t\t\t\t\tsellOrderTransaction.setOrderType(sellOrder.getOrderType());\n\t\t\t\t\torderTransactionService.add(sellOrderTransaction);\n\t\t\t\t\tsellOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\t\t\ttradeOrderDao.update(sellOrder);\n\t\t\t\t} else if (sellOrder.getOrderStatus().equals(OrderStatus.PARTIAL)){\t\t\t\t\t\n\t\t\t\t\t/***\n\t\t\t\t\t * Get the buy order transaction and update it\n\t\t\t\t\t * */\n\t\t\t\t\tupdatePartialSellOrderBuySellEqual(tradeOrder, sellOrder);\n\t\t\t\t\t\n\t\t\t\t}\n\n\n\t\t\t\t\n\n\t\t\t} else\n\t\t\t/***\n\t\t\t * Buy Order Quantity is less than Sell Order Quantity\n\t\t\t * \n\t\t\t * Create Buy Order Transaction Close Buy Order Create a Sell Order\n\t\t\t * Transaction with small quantity\n\t\t\t * \n\t\t\t * Update Sell Order with the new unfulfilled quantity - sell\n\t\t\t * unfulfilled - buy unfulfilled\n\t\t\t * ***/\n\t\t\tif (tradeOrder.getUnfulfilledquantity().compareTo(\n\t\t\t\t\tsellOrder.getUnfulfilledquantity()) < 0) {\n\t\t\t\t\n\t\t\t\t//This is independent of whether it is a buy or a sell - this block of code before the if\n\t\t\t\t// Task happens here\n\t\t\t\torderTransaction = new OrderTransaction();\n\t\t\t\torderTransaction.setTradeOrder(tradeOrder);\n\t\t\t\torderTransaction.setQuantity(tradeOrder.getUnfulfilledquantity());\n\t\t\t\torderTransaction.setPrice(sellOrder.getPrice());\n\t\t\t\t\n\t\t\t\tDouble transactionFee = (FEEMULTIPLIER * sellOrder.getPrice() * tradeOrder.getUnfulfilledquantity());\n\t\t\t\t\n\t\t\t\torderTransaction.setTotal(((sellOrder.getPrice()\n\t\t\t\t\t\t* tradeOrder.getUnfulfilledquantity()) + transactionFee));\n\t\t\t\t\n//\t\t\t\torderTransaction.setTotal(sellOrder.getPrice() * tradeOrder.getUnfulfilledquantity());\n//\t\t\t\torderTransaction.setFee(FEEMULTIPLIER * sellOrder.getPrice() * tradeOrder.getUnfulfilledquantity() ); \n\t\t\t\torderTransaction.setFee(transactionFee);\n\t\t\t\torderTransaction.setSymbol(sellOrder.getSymbol());\n\t\t\t\torderTransaction.setCorrespondingOrder(sellOrder);\n\t\t\t\torderTransaction.setOrderType(tradeOrder.getOrderType());\n\t\t\t\torderTransaction.setBtcRate(currentBTCRate);\n\t\t\t\tsellOrderTransaction = orderTransaction;\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Buy Order is Open - Normal Processing\n\t\t\t\t * **/\n\t\t\t\tif (tradeOrder.getOrderStatus().equals(OrderStatus.OPEN)){\n\t\t\t\t\t\n\n\t\t\t\t\torderTransactionService.add(orderTransaction);\n\t\t\t\t\t//Set the tradeOrder to closed\n\t\t\t\t\t\n\t\t\t\t\ttradeOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\t\t\t//tradeOrderDao.save(tradeOrder);\n\n\t\t\t\t\ttradeOrderDao.update(tradeOrder);\n\n\t\t\t\t} \n\t\t\t\t//Partial Order - add it to an existing order transaction\n\t\t\t\telse if (tradeOrder.getOrderStatus().equals(OrderStatus.PARTIAL)){\n\t\t\t\t\t//Adding the trade order to a list and finally closing it up\n\t\t\t\t\t/*****************/\n\t\t\t\t\tupdatePartialBuyOrderBuyLessThanSell(tradeOrder, sellOrder);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Open Sell Order - do the processing normally\n\t\t\t\t * **/\n\t\t\t\tif (sellOrder.getOrderStatus().equals(OrderStatus.OPEN)){\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Save the sell Order in the Order transaction\n\t\t\t\t\tsellOrderTransaction.setTradeOrder(sellOrder);\n\t\t\t\t\tsellOrderTransaction.setCorrespondingOrder(tradeOrder);\n\t\t\t\t\tsellOrderTransaction.setOrderType(sellOrder.getOrderType());\n\t\t\t\t\t\n\t\t\t\t\ttradeOrder.setPartialquantity(tradeOrder.getUnfulfilledquantity());\n\t//\t\t\t\tsellOrderTransaction.getSourceOrderList().add(tradeOrder);\n\t\t\t\t\t\n\t\t\t\t\torderTransactionService.add(sellOrderTransaction);\n\t\t\t\t\t\n\t\t\t\t\t//Set the Sell Order as closed\n\t\t\t\t\t//sellOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tsellOrder.setUnfulfilledquantity(sellOrder.getUnfulfilledquantity().longValue() - tradeOrder.getUnfulfilledquantity().longValue());\n\t\t\t\t\tsellOrder.setOrderStatus(OrderStatus.PARTIAL);\n\t\t\t\t\ttradeOrderDao.update(sellOrder);\n\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * PARTAIL SELL ORDER - ADD IT TO A SELL ORDER TRANSACTION\n\t\t\t\t * **/\n\t\t\t\telse if (sellOrder.getOrderStatus().equals(OrderStatus.PARTIAL)){\n\t\t\t\t\tupdatePartialSellOrderBuyLessThanSell(tradeOrder, sellOrder);\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t\t/****\n\t\t\t * Buy Order is quantity is greater than sell order quantity Create\n\t\t\t * Buy Order Transaction with quantity equal to sell order quantity\n\t\t\t * update buy order partial quanity - buy order partial - sell order\n\t\t\t * partial\n\t\t\t * \n\t\t\t * Create a sell order transaction close sell order\n\t\t\t * \n\t\t\t * \n\t\t\t ***/\n\t\t\telse if (tradeOrder.getUnfulfilledquantity().compareTo(\n\t\t\t\t\tsellOrder.getUnfulfilledquantity()) > 0) {\n\t\t\t\t\n\t\t\t\t/****\n\t\t\t\t * This block is independent of whether it is a sell or a buy\n\t\t\t\t *\n\t\t\t\t * **/\n\t\t\t\t\n\t\t\t\torderTransaction = new OrderTransaction();\n\t\t\t\torderTransaction.setTradeOrder(tradeOrder);\n\t\t\t\torderTransaction.setQuantity(sellOrder.getUnfulfilledquantity());\n\t\t\t\torderTransaction.setPrice(sellOrder.getPrice());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tDouble transactionFee = (FEEMULTIPLIER * sellOrder.getPrice() * sellOrder.getUnfulfilledquantity());\n\t\t\t\t\n\t\t\t\torderTransaction.setFee(transactionFee);\n\t\t\t\t\n\t\t\t\torderTransaction.setTotal(((sellOrder.getPrice()\n\t\t\t\t\t\t* sellOrder.getUnfulfilledquantity()) + transactionFee));\n\n\t\t\t\t\n//\t\t\t\torderTransaction.setTotal(sellOrder.getPrice() * sellOrder.getUnfulfilledquantity());\n//\t\t\t\torderTransaction.setFee(FEEMULTIPLIER * sellOrder.getPrice() * sellOrder.getUnfulfilledquantity() ); \n\t\t\t\torderTransaction.setSymbol(sellOrder.getSymbol());\n\t\t\t\torderTransaction.setCorrespondingOrder(sellOrder);\n\t\t\t\torderTransaction.setOrderType(tradeOrder.getOrderType());\n\t\t\t\torderTransaction.setBtcRate(currentBTCRate);\n\t\t\t\tsellOrderTransaction = orderTransaction;\n\n\t\t\t\t\n\t\t\t\t/***\n\t\t\t\t *This is an Open Order\n\t\t\t\t *Normal processing \n\t\t\t\t ***/\n\t\t\t\tif (tradeOrder.getOrderStatus().equals(OrderStatus.OPEN)){\n\t\t\t\t\t\n\t\t\t\t\tsellOrder.setPartialquantity(sellOrder.getUnfulfilledquantity());\n//\t\t\t\t\torderTransaction.getSourceOrderList().add(sellOrder);\n\t\t\t\t\t\n\t\t\t\t\torderTransactionService.add(orderTransaction);\n\t\t\t\t\t//Set the tradeOrder to closed\n\t\t\t\t\t\n\t\t\t\t\ttradeOrder.setOrderStatus(OrderStatus.PARTIAL);\n\t\t\t\t\t//tradeOrderDao.save(tradeOrder);\n\t\t\t\t\t\n\t\t\t\t\ttradeOrder.setUnfulfilledquantity(tradeOrder.getUnfulfilledquantity().longValue() - sellOrder.getUnfulfilledquantity().longValue());\n\t\t\t\t\ttradeOrderDao.update(tradeOrder);\n\t\t\t\t\t\n\t\t\t\t} \n\t\t\t\t/***\n\t\t\t\t *This is a partial Order\n\t\t\t\t *Add it to an initial transaction \n\t\t\t\t ***/\n\t\t\t\telse if (tradeOrder.getOrderStatus().equals(OrderStatus.PARTIAL)){\n\t\t\t\t\tupdatePartialBuyOrderBuyGreaterThanSell(tradeOrder, sellOrder);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t/****\n\t\t\t\t * The Sell Order is Open\n\t\t\t\t * Normal Processing\n\t\t\t\t ***/\n\t\t\t\tif (sellOrder.getOrderStatus().equals(OrderStatus.OPEN)){\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tsellOrderTransaction.setTradeOrder(sellOrder);\n\t\t\t\t\tsellOrderTransaction.setCorrespondingOrder(tradeOrder);\n\t\t\t\t\tsellOrderTransaction.setOrderType(sellOrder.getOrderType());\n\t\t\t\t\torderTransactionService.add(sellOrderTransaction);\n\t\t\t\t\t\n\t\t\t\t\t//Set the Sell Order as closed\n\t\t\t\t\t//sellOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//sellOrder.setUnfulfilledquantity(sellOrder.getUnfulfilledquantity().longValue() - tradeOrder.getUnfulfilledquantity().longValue());\n\t\t\t\t\tsellOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\t\t\ttradeOrderDao.update(sellOrder);\n\n\t\t\t\t\t\n\t\t\t\t} else if (sellOrder.getOrderStatus().equals(OrderStatus.PARTIAL)){\n\t\t\t\t\tupdatePartialSellOrderBuyGreaterThanSell(tradeOrder, sellOrder);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//Save the sell Order in the Order transaction\n\n\n\t\t\t}\n\t\t\t// Execute the Orders\n\t\t\t// Save a record of tradeorder in the Orders Transaction\n\t\t\t// orderTransaction = new OrderTransaction();\n\t\t\t// orderTransaction.setTradeOrder(tradeOrder);\n\t\t}\n\t\t\telse {\n\t\t\t//There was not matching order in the sell orders\n\t\t\t//This means, no need doing this again\n\t\t\tprocessRecords = false;\n\t\t\tlogger.info(\"DDDDDDDDDDDD Didnt find any matching SELL ORDER, therefore will not continue with any processing here - stopped !\");\n\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "0d5d8bc270b8527a0ea4a23c224a4b42", "score": "0.6260699", "text": "public static int maximum_profit(int[] inventory, int order){\n HashMap<Integer, Integer> hm=new HashMap();\n for(int i:inventory){\n hm.put(i, hm.getOrDefault(i,0)+1);\n }\n// find the maximum value in map. avoid sort so that we can achieve solution in O(n)\n// we know that after each item is purchased profit is going to reduce by cut_item-1\n int cur_max = Integer.MIN_VALUE;\n for(int i:hm.keySet()){\n cur_max=Math.max(cur_max,i);\n }\n System.out.println(cur_max);\n int answer=0;\n while(order>0){\n // get the no of items in stock for cur_max inventory\n int no_items = Math.min(order, hm.get(cur_max));\n answer += no_items*cur_max; // calculate current profit\n order = order-no_items; // reduce no of items to order still\n int left_items = hm.get(cur_max) - no_items; // get the no of items in cur_max key and deduce the no of items ordered\n hm.put(cur_max-1, hm.getOrDefault(cur_max-1, 0)+no_items); // we know for when we order next item it's price is going to drop by 1\n // if there is entry in map then update the map value with no of items. if not create new entry\n // if no items are left in stock for max_profit inventory item. remove the entry from map and reduce the profit by 1\n if(left_items == 0){\n hm.remove(cur_max);\n cur_max--;\n }\n\n }\n\n return answer;\n\n }", "title": "" }, { "docid": "ec3cd2862842b3e5679487672763ae83", "score": "0.6129502", "text": "public int BuyAndSellStockStart(int[] prices){\n\n if (prices.length == 0){\n\n return 0;\n\n }\n\n int max = 0;\n int runningminimum = prices[0];\n\n for (int i = 0; i < prices.length ; i ++){\n\n //if the price is bigger than the current leftside minimum, it's a valid sell\n if (prices[i] > runningminimum)\n \n {\n\n max = Math.max(max, prices[i] - runningminimum);\n\n\n }\n\n else{\n //else, the number is less so it's a new minimum\n\n runningminimum = prices[i];\n }\n\n }\n\n return max;\n}", "title": "" }, { "docid": "bf287ddb999ade0ab6b5b2e38e7fd932", "score": "0.61032295", "text": "public int maxProfit(int[] prices) {\n \n if(prices.length==0)\n return 0;\n \n int Ti0=0;// initially when no stock is to be bought\n int Ti1=-(int)1e9;\n \n for(int price: prices){\n Ti0=Math.max(Ti0,Ti1 + price);\n Ti1=Math.max(Ti1,Ti0 - price);\n }\n \n return Ti0;\n }", "title": "" }, { "docid": "e1c73785c83766191427c861a590d038", "score": "0.5962578", "text": "public String bestCharge(List<String> inputs) {\n Map<String, Integer> orders = new LinkedHashMap<>(3);\n for (String s : inputs) {\n orders.put(s.split(\"x\")[0].trim(), Integer.valueOf(s.split(\"x\")[1].trim()));\n }\n //totalCosts according to promotion\n double[] totalCost = new double[salesPromotionRepository.findAll().size()];\n Map<String, Item> items = itemRepository.findAll()\n .stream().collect(Collectors.toMap(Item::getId, item -> item));\n double sum;\n double initCost = 0.0;\n for (int i = 0; i < salesPromotionRepository.findAll().size(); i++) {\n sum = 0.0;\n if (i == 0) {\n //the first promotion\n for (Map.Entry<String, Integer> entry : orders.entrySet()) {\n String itemId = entry.getKey();\n Integer itemCount = entry.getValue();\n sum += items.get(itemId).getPrice() * itemCount;\n }\n if (sum >= 30) {\n sum -= 6;\n }\n totalCost[i] = sum;\n } else {\n for (Map.Entry<String, Integer> entry : orders.entrySet()) {\n String itemId = entry.getKey();\n Integer itemCount = entry.getValue();\n sum += items.get(itemId).getPrice() * itemCount;\n if (salesPromotionRepository.findAll().get(i).getRelatedItems().contains(itemId)) {\n sum -= items.get(itemId).getPrice() * itemCount / 2.0;\n }\n }\n totalCost[i] = sum;\n }\n }\n int minIndex = 0;\n for (int i = 1; i < totalCost.length; i++) {\n if (totalCost[i] < totalCost[minIndex]) {\n minIndex = i;\n }\n }\n StringBuilder promotion = new StringBuilder(\"============= Order details =============\\n\");\n\n for (Map.Entry<String, Integer> entry : orders.entrySet()) {\n String itemId = entry.getKey();\n Integer itemCount = entry.getValue();\n double cost = items.get(itemId).getPrice() * itemCount;\n initCost += cost;\n promotion.append(items.get(itemId).getName())\n .append(\" x \").append(itemCount)\n .append(\" = \").append((int)cost).append(\" yuan\\n\");\n }\n promotion.append(\"-----------------------------------\\n\");\n if(initCost > totalCost[minIndex]) {\n promotion.append(\"Promotion used:\\n\");\n SalesPromotion minPromotion = salesPromotionRepository.findAll().get(minIndex);\n promotion.append(minPromotion.getDisplayName());\n for (int i = 0, n; i < (n = minPromotion.getRelatedItems().size()); i++) {\n if (i == 0) {\n promotion.append(\" (\").append(items.get(minPromotion.getRelatedItems().get(i)).getName()).append(\"£¬\");\n } else if (i == n - 1) {\n promotion.append(items.get(minPromotion.getRelatedItems().get(i)).getName())\n .append(\")\");\n } else {\n promotion.append(items.get(minPromotion.getRelatedItems().get(i)).getName())\n .append(\"£¬\");\n }\n }\n promotion.append(\"£¬saving \").append((int) (initCost - totalCost[minIndex])).append(\" yuan\\n\")\n .append(\"-----------------------------------\\n\");\n }\n promotion.append(\"Total£º\").append((int)totalCost[minIndex]).append(\" yuan\\n\")\n .append(\"===================================\");\n System.out.println(promotion);\n return String.valueOf(promotion);\n }", "title": "" }, { "docid": "bf70e4cf3619f42f10e720b7c746212d", "score": "0.5929552", "text": "public static Tuple find_buy_sell_stock_prices(int[] array) {\n\t\t\t if(array == null || array.length < 2) {\n\t\t\t return null;\n\t\t\t }\n\n\t\t\t int current_buy = array[0];\n\t\t\t int global_sell = array[1];\n\t\t\t int global_profit = global_sell - current_buy;\n\n\t\t\t int current_profit = Integer.MIN_VALUE;\n\t\t\t \n\t\t\t for(int i=1 ; i < array.length ; i++) {\n\t\t\t current_profit = array[i] - current_buy;\n\n\t\t\t if(current_profit > global_profit) {\n\t\t\t global_profit = current_profit;\n\t\t\t global_sell = array[i];\n\t\t\t }\n\n\t\t\t if(current_buy > array[i]) {\n\t\t\t current_buy = array[i];\n\t\t\t }\n\t\t\t }\n\n\t\t\t Tuple<Integer,Integer> result = new Tuple<Integer,Integer>(\n\t\t\t global_sell - global_profit, //buy price\n\t\t\t global_sell //sell price\n\t\t\t );\n\n\t\t\t return result;\n\t\t\t}", "title": "" }, { "docid": "72989e0c4268c81a9738a40351c1b167", "score": "0.5916723", "text": "public int maxProfitForKTransactions(int maxTransactions, List<Integer> prices) {\n\n int[] buy = new int[maxTransactions + 1];\n int[] sell = new int[maxTransactions + 1];\n\n for (int i = 0; i < buy.length; i++)\n buy[i] = Integer.MIN_VALUE;\n\n for (int p : prices) {\n for (int i = maxTransactions; i >= 1; i--) {\n sell[i] = Math.max(sell[i], buy[i] + p);\n buy[i] = Math.max(buy[i], sell[i - 1] - p);\n }\n }\n return sell[maxTransactions];\n }", "title": "" }, { "docid": "7d1e81d9ec5799b620ef9c6c5c1f466c", "score": "0.5911108", "text": "public int maxProfit(int k, int[] prices) {\n \n if(prices.length==0)\n return 0;\n\n if(k>=prices.length/2){\n\n int Ti0= 0;// initially when no stock is to be bought\n int Ti1= -(int)1e9;\n \n for(int price: prices){\n Ti0=Math.max(Ti0,Ti1 + price);\n Ti1=Math.max(Ti1,Ti0 - price);\n }\n \n return Ti0;\n }\n\n else{\n\n int Tik0[]=new int[k+1];\n int Tik1[]=new int[k+1];\n Arrays.fill(Tik1,-(int)1e9);\n\n for(int price: prices){\n for(int j=k;j>=0;j--){\n\n Tik0[j]=Math.max(Tik0[j],Tik1[j]+price);\n Tik1[j]=Math.max(Tik1[j],Tik0[j-1]-price);\n }\n }\n \n return Tik0[k];\n }\n }", "title": "" }, { "docid": "cf4010440b7967c972f59eb05e5523c1", "score": "0.5888835", "text": "public static int bestProfit(int [] prices){\r\n if(prices.length == 0 || prices.length==1 )\r\n return 0 ;\r\n int sum=0;\r\n for (int i = 0; i < prices.length-1; i++) {\r\n if(prices[i]<prices[i+1]){\r\n sum += prices[i+1]-prices[i];\r\n }\r\n }\r\n return sum;\r\n }", "title": "" }, { "docid": "d7ebd6a6a39ba73706ff4151c981fa3b", "score": "0.58876675", "text": "public int maxProfit_2nd_attempt(int[] prices) {\n int[] profits = new int[2];\n boolean flip = false;\n for(int i = 1; i < prices.length; i++){\n int buyPrice = prices[i-1];\n if(prices[i] > prices[i-1]) flip = true;\n while(i < prices.length && prices[i] > prices[i-1]) i++;\n if(flip) i--;\n int profit = prices[i] - buyPrice;\n //update the smaller profit in profits array\n int smallerIndex = profits[0] < profits[1] ? 0 : 1;\n profits[smallerIndex] = Math.max(profits[smallerIndex], profit);\n flip = false;;\n }\n return profits[0] + profits[1];\n }", "title": "" }, { "docid": "9193ddb3b445e8820c01bb4139623657", "score": "0.5868485", "text": "@Benchmark @OutputTimeUnit(TimeUnit.MICROSECONDS)\n\tprivate void buy(){\n\t\t/* must read game state to get the prices of goods\n\t\tbefore trying to make a purchase. (read -> buy) */\n\n\t\tMerchant myMerchant = null;\n\t\twhile (myMerchant == null){\n\t\t\tmyMerchant = merchants.get(RAND.nextInt(Merchant.getCount()));\n\t\t}\n\n\t\tGood good = myMerchant.getGoods()[RAND.nextInt(myMerchant.getGoodCount())];\n\n\t\tif (good.getPrice() < salary){\n\t\t\tgood.buy();\n\t\t\tsalary -= good.getPrice();\n\t\t\t/*String output = \"\";//-----------------------------------------------------------------------------------------------------------------\\n\";\n\t\t\t//output += \t\t\"\\n\";//|\\t\\t|\\t\\t|\\t\\t|\\t\\t\\t|\\t\\t|\\t\\t\\t\\t|\\n\";\n\t\t\toutput +=\t\t\"| Client: \" + id + \" | Merchant: \" + myMerchant.id() + \" | Good \" + good.id() + \" |\";\n\t\t\tSystem.out.print(output);\n\t\t\tString output2 = \"\";\n\t\t\tSystem.out.printf(\" Cost: $%.2f\", good.getPrice());\n\t\t\tSystem.out.printf(\" | Behavior: %.4f\", behavior);\n\t\t\tSystem.out.print(\" |\"); \n\t\t\tSystem.out.printf(\" Salary: $%.2f\", salary);\n\t\t\toutput2 +=\t\t\" |\\n\";//\\t|\\n|\\t\\t|\\t\\t|\\t\\t|\\t\\t\\t|\\t\\t|\\t\\t\\t\\t|\\n\";\n\t\t\toutput2 +=\t\t\"-----------------------------------------------------------------------------------------------------------------\\n\";\n\t\t\tSystem.out.print(output2);*/\n\t\t}\n\t}", "title": "" }, { "docid": "899ba8897f6867cffca917ca5a02dc3b", "score": "0.5865075", "text": "@Test\n public void algorithmCTest() {\n BigDecimal largestGain = new BigDecimal(0);\n BigDecimal sum = new BigDecimal(0);\n StopWatch stopWatch = new StopWatch();\n stopWatch.start();\n\n for (int i = 1; i < stockPrices.size(); i++) {\n BigDecimal priceDiff = stockPrices.get(i).subtract(stockPrices.get(i - 1));\n\n if (sum.compareTo(BigDecimal.ZERO) > 0) {\n sum = sum.add(priceDiff);\n } else {\n sum = priceDiff;\n }\n\n if (sum.compareTo(largestGain) > 0) {\n largestGain = sum;\n }\n }\n\n logger.info(String.format(\"AlgorithmC took %s(%s) to complete.\",\n stopWatch.getTime(TIME_UNIT), TIME_UNIT.toString(), largestGain.toString()));\n stopWatch.stop();\n assertEquals(EXPECTED_GAIN, largestGain);\n }", "title": "" }, { "docid": "132b0568616f2fb76e8cfa2c7927103a", "score": "0.5848556", "text": "public int maxProfit(int k, int[] prices) {\n if (prices == null || prices.length <= 1) return 0;\n if (k >= prices.length / 2) {//相当于不限制交易次数了\n int result = 0;\n for (int i = 1; i < prices.length; ++i) {\n result = Math.max(result, result + prices[i] - prices[i - 1]);\n }\n return result;\n }\n int[][][] dp = new int[prices.length][k + 1][2];\n //[days][transactions][isHold]\n for (int kk = 0; kk <= k; ++kk) {\n dp[0][kk][1] = -prices[0];//非法的状态\n }\n for (int i = 1; i < prices.length; ++i) {\n for (int kk = k; kk >= 1; --kk) {\n dp[i][kk][0] = Math.max(dp[i - 1][kk][0], dp[i - 1][kk][1] + prices[i]);\n //今天未持有 昨天未持有 昨天持有,但是今天卖了\n dp[i][kk][1] = Math.max(dp[i - 1][kk][1], dp[i - 1][kk - 1][0] - prices[i]);\n //今天持有 昨天持有 昨天未持有,今天买了\n }\n }\n return dp[prices.length - 1][k][0];\n }", "title": "" }, { "docid": "84f60148f7ea349d54cf5c2e9789cdb7", "score": "0.5827126", "text": "private static int maxProfit(int[] prices) {\n return 0;\n }", "title": "" }, { "docid": "7b31d832123c257d029f3f0d7d7e7b9f", "score": "0.5817077", "text": "private int mincostTickets(int days[], int costs[]) {\n int lastDay = days[days.length - 1];\n int dp[] = new int[lastDay + 1];\n boolean travelling[] = new boolean[lastDay + 1];\n\n // mark all the traveling days\n for (int i = 0; i < days.length; i++) {\n int day = days[i];\n // marking it true\n travelling[day] = true;\n }\n\n for (int i = 1; i < lastDay + 1; i++) {\n // if we are not travelling on a day, then cost of travelling will be safe as day before\n if (!travelling[i]) {\n dp[i] = dp[i - 1];\n continue;\n }\n\n // now its time to check which ticket we need to purchase\n int price2 = dp[i - 1] + costs[0]; // if we buy ticket every day then total expenses will be\n // cost of previous day + 2\n\n int price7 = costs[1] + dp[Math.max(0, i - 7)];// if we buy ticket on weekly basis then total\n // expense will be cost of 7 day before + cost of weekly ticket because it will cover a\n // complete week\n\n int price30 = costs[2] + dp[Math.max(0, i - 30)]; // same as above but for monthly tickets\n\n dp[i] = Math.min(price2, Math.min(price7, price30));\n }\n\n return dp[lastDay];\n\n }", "title": "" }, { "docid": "0061908a2296bb49ad7aacb7515c9637", "score": "0.5806997", "text": "private static int getMaxProfitOpt(int[] stockPrices) {\n\n // In case of less than two prices initial buy and corresponding sell\n // An out of bound error will occur. Mitigate this with a check.\n if (stockPrices.length < 2) {\n throw new IllegalArgumentException(\"Getting profit requires at least two sales.\");\n }\n\n int minPrice = stockPrices[0];\n int profit = stockPrices[1] - stockPrices[0];\n\n // It is essential that the iteration starts at 1 since one must buy\n // before selling. Starting at 0 is synonymous to buying and selling\n // at the same time.\n for (int i = 1; i < stockPrices.length; i++) {\n int currentPrice = stockPrices[i];\n int potentialProfit = currentPrice - minPrice;\n System.out.println(\"Potential profit @ \" + potentialProfit);\n profit = Math.max(profit, potentialProfit);\n minPrice = Math.min(minPrice, currentPrice);\n System.out.println(\"Intermediate profit @ \" + profit);\n }\n\n return profit;\n }", "title": "" }, { "docid": "b88b254db36a4ae4ff8e9a77622abcc1", "score": "0.58040655", "text": "public int maxProfit_1st_attempt(int[] prices) {\n int[] profits = new int[2];\n for(int i = 1; i < prices.length; i++){\n if(prices[i] > prices[i-1]){\n int smallerIndex = profits[0] > profits[1] ? 1 : 0;\n profits[smallerIndex] = Math.max(prices[i] - prices[i-1], profits[smallerIndex]);\n }\n }\n return profits[0] + profits[1];\n }", "title": "" }, { "docid": "5abc83ed424325b0fbdba9c2ec03cd13", "score": "0.58038557", "text": "public int findPriceAndCombo() {\n int cost = 1000;\n for (int a = 0; a < price.size(); a++) {\n int sum = 0;\n for (int b = 0; b < price.get(a).size(); b++) {\n boolean used = false;\n for (int c = 0; c < totalOrder.size(); c++) {\n if (combinations.get(a).get(b).equals(totalOrder.get(c))) {\n used = true; //for multiple orders, if an ID is reused for another part, this\n //will ignore the price of that already used ID\n }\n }\n if (!used) {\n sum = sum + Integer.parseInt(price.get(a).get(b)); //if the ID has not been used in the previous combination, then add to the price\n }\n }\n if (sum < cost) {\n cost = sum;\n orderCombo = combinations.get(a).toArray(new String[0]); //storing the combination with the lowest price\n }\n }\n return cost; //returns the lowest price\n }", "title": "" }, { "docid": "04e8b47776638a91c73a79568572e6bd", "score": "0.579377", "text": "public static int buyTicket(int input[], int k) {\n int timer = 0;\n Queue<Integer> queue = new LinkedList<>();\n PriorityQueue<Integer> pq = new PriorityQueue<>(Collections.reverseOrder());\n for (int i=0;i<input.length;i++){\n queue.add(i);\n pq.add(input[i]);\n }\n int i=0;\n while (!queue.isEmpty()){\n if (input[queue.peek()] < pq.peek()){\n queue.add(queue.poll());\n }else{\n int temp = queue.poll();\n pq.remove();\n timer++;\n if (temp == k){\n return timer;\n }\n }\n }\n return timer;\n\n\t}", "title": "" }, { "docid": "7ff6a7f12c0624589b5380285b9822b6", "score": "0.57916117", "text": "int getMaxProfit(int[] stockPricesYesterday) {\n if (stockPricesYesterday.length < 2) {\n throw new IllegalArgumentException(\"Getting a profit requires at least 2 prices\");\n }\n\n int biggest = Integer.MIN_VALUE;\n int biggestLocation = 0;\n for (int i = 0; i < stockPricesYesterday.length; i++) {\n int n = stockPricesYesterday[i];\n if (n > biggest) {\n biggest = n;\n biggestLocation = i;\n }\n }\n int smallestBeforeBiggest = Integer.MAX_VALUE;\n for (int i = biggestLocation; i >= 0; i--) {\n int n = stockPricesYesterday[i];\n if (n < smallestBeforeBiggest) {\n smallestBeforeBiggest = n;\n }\n }\n\n int smallest = Integer.MAX_VALUE;\n int smallestLocation = 0;\n for (int i = stockPricesYesterday.length - 1; i >= 0; i--) {\n int n = stockPricesYesterday[i];\n if (n < smallest) {\n smallest = n;\n smallestLocation = i;\n }\n }\n int biggestAfterSmallest = Integer.MIN_VALUE;\n for (int i = smallestLocation; i < stockPricesYesterday.length; i++) {\n int n = stockPricesYesterday[i];\n if (n > biggestAfterSmallest) {\n biggestAfterSmallest = n;\n }\n }\n int firstCandidateProfit = biggest - smallestBeforeBiggest;\n int secondCandidateProfit = biggestAfterSmallest - smallest;\n if (firstCandidateProfit >= secondCandidateProfit && firstCandidateProfit >= 0) {\n return firstCandidateProfit;\n } else if (firstCandidateProfit <= secondCandidateProfit && secondCandidateProfit >= 0){\n return secondCandidateProfit;\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "3ce8dca473daf281d7d780cb9eddcf42", "score": "0.57696795", "text": "public int checkPositiveQuantitiesOfSecurities(Trade existingTrade) {\n int quantityOfExistingTradeTicker = 0;\n List<Trade> allTradesOfExistingTradeTicker = tradeRepository.findBySecurityTicker(existingTrade.getSecurity_ticker());\n for (Trade obj : allTradesOfExistingTradeTicker) {\n if (obj.getType().equals(\"B\") && obj.getId() != existingTrade.getId()) {\n quantityOfExistingTradeTicker += obj.getQuantity();\n } else if (obj.getType().equals(\"S\") && obj.getId() != existingTrade.getId()) {\n quantityOfExistingTradeTicker -= obj.getQuantity();\n }\n }\n if (quantityOfExistingTradeTicker > 0) {\n return 1;\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "d28c1c07d4baced76da563430d2ab580", "score": "0.57694006", "text": "public final int buyItem(TradeGoods good) {\n Player player = NewCharacterControl.player;\n Ship ship = player.getShip();\n TradeGoods[] cargo = ship.getCargo();\n if (good == null) {\n return -1;\n }\n int index = 0;\n for (int i = 0; i < prices.length; i++) {\n if (good.getName().equals(goods[i].getName())) {\n index = i;\n }\n }\n // Player doesn't have enough money\n if (player.getMoney() < prices[index]) {\n return 1;\n }\n // Full cargo\n boolean full = true;\n for (TradeGoods t:cargo) {\n if (t == null) {\n full = false;\n }\n }\n if (full) {\n return 2;\n }\n // Merchant out of stock\n if (quantities[index] == 0) {\n return 3;\n }\n quantities[index]--;\n player.setMoney(player.getMoney() - prices[index]);\n ship.addCargo(good);\n if (player.addExp(5)) {\n return 5;\n }\n return 4;\n }", "title": "" }, { "docid": "f0ab0e409056b5be1fae078c7e0b50cc", "score": "0.5751219", "text": "int getBuyTime();", "title": "" }, { "docid": "f0ab0e409056b5be1fae078c7e0b50cc", "score": "0.5751219", "text": "int getBuyTime();", "title": "" }, { "docid": "8aefd1d5b58688678a6b9de578f0e634", "score": "0.5737618", "text": "@Test\n public void algorithmBTest() {\n BigDecimal lowestPrice = stockPrices.get(0);\n BigDecimal largestGain = new BigDecimal(0);\n StopWatch stopWatch = new StopWatch();\n stopWatch.start();\n\n for (int index = 1; index < stockPrices.size(); index++) {\n BigDecimal intervalGain = stockPrices.get(index).subtract(lowestPrice);\n if (intervalGain.compareTo(largestGain) > 0) {\n largestGain = intervalGain;\n }\n if (stockPrices.get(index).compareTo(lowestPrice) < 0) {\n lowestPrice = stockPrices.get(index);\n }\n }\n\n logger.info(String.format(\"AlgorithmB took %s(%s) to complete.\",\n stopWatch.getTime(TIME_UNIT), TIME_UNIT.toString(), largestGain.toString()));\n stopWatch.stop();\n assertEquals(EXPECTED_GAIN, largestGain);\n }", "title": "" }, { "docid": "07f116a81fce3c9407f3092b33673c22", "score": "0.57227916", "text": "@Test\n public void algorithmATest() {\n BigDecimal largestGain = new BigDecimal(0);\n StopWatch stopWatch = new StopWatch();\n stopWatch.start();\n\n for (int i = 0; i < stockPrices.size(); i++) {\n for (int j = i + 1; j < stockPrices.size(); j++) {\n BigDecimal intervalGain = stockPrices.get(j).subtract(stockPrices.get(i));\n\n if (intervalGain.compareTo(largestGain) > 0) {\n largestGain = intervalGain;\n }\n }\n }\n\n logger.info(String.format(\"AlgorithmA took %s(%s) to complete.\",\n stopWatch.getTime(TIME_UNIT), TIME_UNIT.toString(), largestGain.toString()));\n stopWatch.stop();\n assertEquals(EXPECTED_GAIN, largestGain);\n }", "title": "" }, { "docid": "22279b4d20c5018e6861d7a39cac203d", "score": "0.57057405", "text": "public int maxProfit(int[] prices) {\n int F_ik0 = 0, F_ik1 = Integer.MIN_VALUE, F_ik0_prev = 0;\n for (int price : prices) {\n int tmp = F_ik0;\n F_ik0 = Math.max(F_ik0, F_ik1 + price);\n F_ik1 = Math.max(F_ik1, F_ik0_prev - price);\n F_ik0_prev = tmp;\n }\n return F_ik0;\n}", "title": "" }, { "docid": "970bc3a2ab6aea9d20a4e24ed6a83855", "score": "0.5696226", "text": "public static void main(String args[]){\n\n int prices[] = {3, 693,5,61,57,2,67,7,700, 1000};\n int prices2[] = {7, 1, 5, 3, 6, 4};\n int prices3[] = {7, 6, 4, 3, 1};\n System.out.println(bestTimeToBuyAndSellStock(prices));\n System.out.println(bestTimeToBuyAndSellStock(prices2));\n System.out.println(bestTimeToBuyAndSellStock(prices3));\n\n\n //2. tests for add two numbers\n System.out.println(\"add two numbers start\");\n SinglyLinkedList<Integer> list = new SinglyLinkedList<Integer>().createFromInteger(7243);\n SinglyLinkedList<Integer> list1 = new SinglyLinkedList<Integer>().createFromInteger(564);\n addTwoNumbers(list, list1).traverse();\n System.out.println(\"add two numbers end\");\n\n\n //3. test for moveZeros\n System.out.println(\"Move zeros\");\n System.out.println(Arrays.toString(moveZeros(new int[]{0, 1, 0, 3, 12})));\n System.out.println(\"Move zeros\");\n\n //4. test for twoSum\n System.out.println(\"two sum start\");\n twoSum(new int[]{2, 7, 11, 15}, 9 );\n// twoSum(new int[]{0, 1, 0, 3, 12}, 4 );\n System.out.println(\"two sum end\");\n\n\n //5. test for print all permutations\n System.out.println(\"print all perms start\");\n printAllPermutations(123);\n System.out.println(\"print all perms end\");\n\n }", "title": "" }, { "docid": "1404a63be9d976e7a93c9f9b2bc199e9", "score": "0.569216", "text": "public int maxProfitwithManyTrans(int[] prices) {\n int profit = 0;\n \n for(int i = 1; i < prices.length; i++){\n int diff = prices[i] - prices[i-1];\n profit += diff > 0 ? diff : 0;\n }\n \n return profit;\n }", "title": "" }, { "docid": "cddc086139c848ca81bbd5284e50a445", "score": "0.5685009", "text": "public String bestCharge(List<String> inputs) {\n\t\tint sum1 = 0;\n\t\tint sum2 = 0;\n\t\tStringBuffer str1 = new StringBuffer(\"============= 订餐明细 =============\\n\");\n\t\tStringBuffer str2 = new StringBuffer(\"============= 订餐明细 =============\\n\");\n\n\t\tfor (SalesPromotion s : salesPromotionRepository.findAll()) {\n\t\t\tif (s.getType().equals(\"BUY_30_SAVE_6_YUAN\")) {\n\t\t\t\tfor (String i : inputs) {\n\t\t\t\t\tString id = i.split(\" x \")[0];\n\t\t\t\t\tint num = Integer.parseInt(i.split(\" x \")[1]);\n\t\t\t\t\tfor (Item item : itemRepository.findAll()) {\n\t\t\t\t\t\tif (item.getId().equals(id)) {\n\t\t\t\t\t\t\tstr1 = str1.append(item.getName() + \" x \" + num + \" = \" + (int)item.getPrice() * num + \"元\\n\");\n\n\t\t\t\t\t\t\tsum1 = (int) (sum1 + item.getPrice() * num);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (sum1 >= 30) {\n\t\t\t\t\tint discount = (int) (sum1 / 30) * 6;\n\t\t\t\t\tsum1 = (int) (sum1 - discount);\n\t\t\t\t\tstr1 = str1.append(\"-----------------------------------\\n\" + \"使用优惠:\\n\" + s.getDisplayName() + \",省\"\n\t\t\t\t\t\t\t+ discount + \"元\\n\" + \"-----------------------------------\\n\" + \"总计:\" + sum1 + \"元\\n\"+\"===================================\");\n\t\t\t\t} else {\n\t\t\t\t\tstr1 = str1.append(\"-----------------------------------\\n\" \n\t\t\t\t\t\t\t+ \"总计:\" + sum1 + \"元\\n\"+\"===================================\");\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tint discount = 0;\n\t\t\t\tString discountItems = \"\";\n\t\t\t\tfor (String i : inputs) {\n\t\t\t\t\tString id = i.split(\" x \")[0];\n\t\t\t\t\tint num = Integer.parseInt(i.split(\" x \")[1]);\n\t\t\t\t\tif (s.getRelatedItems().contains(id)) {\n\t\t\t\t\t\tfor (Item item : itemRepository.findAll()) {\n\t\t\t\t\t\t\tif (item.getId().equals(id)) {\n\t\t\t\t\t\t\t\tstr2 = str2.append(item.getName() + \" x \" + num + \" = \" + (int)item.getPrice() * num + \"元\\n\");\n\t\t\t\t\t\t\t\tif (discountItems.length() != 0) {\n\t\t\t\t\t\t\t\t\tdiscountItems += \",\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdiscountItems += item.getName();\n\t\t\t\t\t\t\t\tdiscount += item.getPrice() * num * 0.5;\n\t\t\t\t\t\t\t\tsum2 = (int) (sum2 + item.getPrice() * num * 0.5);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (Item item : itemRepository.findAll()) {\n\t\t\t\t\t\t\tif (item.getId().equals(id)) {\n\t\t\t\t\t\t\t\tstr2 = str2.append(item.getName() + \" x \" + num + \" = \" + (int)item.getPrice() * num + \"元\\n\");\n\t\t\t\t\t\t\t\tsum2 = (int) (sum2 + item.getPrice() * num);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstr2 = str2.append(\"-----------------------------------\\n\" + \"使用优惠:\\n\" + s.getDisplayName() + \"(\"\n\t\t\t\t\t\t+ discountItems + \"),省\" + discount + \"元\\n\" + \"-----------------------------------\\n\" + \"总计:\"\n\t\t\t\t\t\t+ sum2 + \"元\\n\"+\"===================================\");\n\t\t\t}\n\n\t\t}\n\n\t\treturn sum1>sum2?str2.toString():str1.toString();\n\t}", "title": "" }, { "docid": "be50a71e632b8ae7fe2f900fbd460395", "score": "0.567832", "text": "public int timeRequiredToBuy(int[] tickets, int k){\n return IntStream.range(0, tickets.length).map(i -> Math.min(tickets[i], i <= k ? tickets[k] : tickets[k] - 1)).sum();\n }", "title": "" }, { "docid": "703a9ec33c1169a1a7036d2c98f361ad", "score": "0.56518805", "text": "public void check_buyMore(String symbol, double price,\r\n int numShares, String name,\r\n int buyQuant)\r\n {\r\n Stock stock = new Stock();\r\n stock.symbol = symbol;\r\n stock.price = price;\r\n stock.numShares = numShares;\r\n stock.name = name;\r\n int expectNumShares = buyQuant + numShares;\r\n double actualCost = Stock.buyMore(stock, buyQuant);\r\n assertEquals(\"stock.numShares wrong\", expectNumShares, stock.numShares);\r\n double expectCost = -buyQuant * price;\r\n assertEquals(\"returned cost wrong\",expectCost,actualCost, 1e-4);\r\n assertEquals(\"price changed\",price,stock.price, 1e-4);\r\n assertEquals(\"symbol changed\",symbol,stock.symbol);\r\n assertEquals(\"name changed\",name,stock.name);\r\n }", "title": "" }, { "docid": "81d76c5ab2179dda43a2ee02ea0d60ad", "score": "0.5648906", "text": "public int maxProfit(int[] prices) {\n int n = prices.length;\n if (n < 2)\n return 0;\n int[] sell = new int[n];\n int[] buy = new int[n];\n\n buy[0] = -prices[0];\n buy[1] = -Math.min(prices[0], prices[1]);\n sell[1] = Math.max(buy[0] + prices[1], 0);\n\n for (int i = 2; i < n; i++) {\n buy[i] = Math.max(buy[i - 1], sell[i - 2] - prices[i]);\n sell[i] = Math.max(sell[i - 1], buy[i - 1] + prices[i]);\n // 同一支股票 不能如此sell[i] = Math.max(sell[i], sell[i - 2] + prices[i]);\n }\n return sell[n - 1];\n }", "title": "" }, { "docid": "a8b09a7d45d1bd4a47257838daafb9cb", "score": "0.56416875", "text": "private static void maxProfit(int[] prices) throws Exception {\n\t\t// Keep track of minprice, since current - minprice is potential at current.\n\t\t// Also keep track of: bought/sell dates and maxprofit\n\t\tint maxProfit = 0;\n\t\tint buyDate = 0;\n\t\tint sellDate = 0;\n\t\tint minDate = 0;\n\t\tint minPrice = prices[0];\n\t\t\n\t\tint currentProfit;\n\t\tfor (int i = 1; i < prices.length; i++) {\n\t\t\t// Check current - minprice\n\t\t\tcurrentProfit = prices[i] - minPrice;\n\t\t\tif (currentProfit > maxProfit) {\n\t\t\t\tmaxProfit = currentProfit;\n\t\t\t\tbuyDate = minDate;\n\t\t\t\tsellDate = i;\n\t\t\t}\n\t\t\t\n\t\t\t// Update minprice if needed\n\t\t\tif (prices[i] < minPrice) {\n\t\t\t\tminPrice = prices[i];\n\t\t\t\tminDate = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.print(\"Buy: \" + buyDate + \" Sell: \" + sellDate);\n\t}", "title": "" }, { "docid": "9de4a6a87836b1c0d60855a1f97eb69a", "score": "0.56353426", "text": "public void executePendingOrderVersion3() {\n\n\t\t/****\n\t\t * Get all the open buy orders ordered by their prices, The first Order\n\t\t * should be the one with highest price - willing to pay more\n\t\t * (descending prices)\n\t\t * **/\n\t\tlogger.info(\"Got into executePendingOrderVersion2 !!!\");\n\n\t\tList<TradeOrder> listPendingOrder = null;\n\t\tprocessRecords = true;\n\t\tList<Symbol> listSymbol = symbolService.findAll();\n\t\t\n\t\tfor (Symbol symbol : listSymbol) {\n\t\t\tprocessRecords = true;\n\t\t\twhile (processRecords){ //Do this until the day when processed record gets to false\n\t\t\t\t//Then stop\n\t\t\t\tlogger.info(\"Get into the while loop to try and process the orders! processRecords is true\");\n\t\t\t\t\n//\t\t\tlistPendingOrder = tradeOrderDao.findOpenBuyOrders(symbol,\n//\t\t\t\t\tOrderType.BUY, OrderStatus.OPEN);\n\t\t\tlistPendingOrder = tradeOrderDao.findOpenAndPartialBuyOrders(symbol,\n\t\t\t\t\tOrderType.BUY, OrderStatus.OPEN, OrderStatus.PARTIAL);\n\n\t\t\t\n\t\t\tif (!listPendingOrder.equals(null) && (listPendingOrder.size() > 0)) {\n\t\t\t\t// We have a buy order that is open\n\t\t\t\t// Let us process it - let us look for a matching order\n\t\t\t\tTradeOrder processBuyOrder = listPendingOrder.get(0);\n\t\t\t\tmatchBuyOpenPartialOrder(processBuyOrder);\n\t\t\t} else{\n\t\t\t\tprocessRecords = false;\n\t\t\t\tlogger.info(\"OOOOOOOOOOOO No OPEN BUY ORDERS means No Processing !\");\n\t\t\t}\n\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\n\n\t}", "title": "" }, { "docid": "0b0ba4881b365d1b416e7d1b6effbdd9", "score": "0.5618171", "text": "public int maxProfit(int[] prices) {\n Deque<Integer> stack = new LinkedList<>();\n stack.push(Integer.MAX_VALUE);\n int ans = 0;\n for (int i : prices) {\n if (i > stack.peek()) {\n ans += i - stack.pop();\n }\n stack.push(i);\n }\n return ans;\n }", "title": "" }, { "docid": "2310656763abe8eecdf6e2d22baf2798", "score": "0.5617837", "text": "@Test\n @Timeout(value = 150, unit = TimeUnit.MILLISECONDS)\n void getMaxProfitFor1Day() {\n int[] stockPrices = {14, 2, 4, 14, 12, 11, 12, 7, 9, 12, 19, 17, 3, 2, 3, 10, 7, 14, 14, 4, 17, 13, 20, 12,\n 9, 4, 3, 10, 18, 17, 17, 9, 5, 9, 7, 4, 12, 19, 15, 20, 19, 8, 8, 17, 20, 8, 16, 17, 17, 15, 10, 20,\n 16, 17, 17, 16, 1, 8, 14, 19, 14, 16, 17, 4, 1, 8, 4, 3, 2, 17, 17, 10, 19, 9, 4, 14, 19, 2, 9, 10,\n 6, 19, 5, 7, 1, 6, 10, 20, 8, 15, 1, 4, 20, 15, 6, 8, 17, 7, 14, 3, 2, 1, 5, 3, 13, 7, 11, 11, 3, 1,\n 7, 15, 15, 7, 8, 19, 6, 9, 2, 20, 12, 12, 4, 12, 13, 9, 20, 16, 7, 3, 4, 9, 18, 18, 18, 2, 19, 16, 7,\n 9, 6, 16, 9, 6, 16, 12, 18, 5, 13, 8, 6, 10, 3, 16, 7, 18, 14, 15, 6, 12, 4, 15, 8, 1, 8, 13, 5, 11,\n 8, 19, 15, 5, 19, 10, 9, 18, 12, 20, 4, 2, 16, 16, 9, 4, 13, 5, 15, 19, 19, 14, 2, 19, 2, 16, 6, 2,\n 13, 7, 17, 20, 11, 13, 14, 18, 17, 13, 3, 14, 4, 2, 2, 9, 17, 7, 1, 10, 7, 17, 6, 1, 8, 12, 13, 4, 16,\n 6, 5, 6, 19, 13, 7, 12, 17, 19, 8, 12, 6, 19, 4, 7, 13, 17, 3, 9, 12, 12, 8, 10, 2, 10, 15, 2, 12, 5,\n 9, 18, 8, 11, 6, 3, 16, 9, 15, 11, 5, 19, 14, 17, 16, 5, 8, 1, 19, 4, 2, 10, 20, 2, 11, 3, 14, 3, 16,\n 14, 12, 4, 14, 6, 7, 13, 10, 20, 13, 15, 7, 12, 11, 1, 2, 14, 7, 13, 9, 5, 6, 7, 20, 19, 8, 19, 3, 11,\n 3, 10, 10, 14, 13, 15, 16, 2, 3, 7, 4, 18, 9, 17, 1, 1, 7, 10, 13, 12, 12, 9, 19, 18, 3, 19, 7, 18, 7,\n 20, 4, 20, 8, 18, 13, 7, 16, 15, 1, 17, 13, 18, 8, 7, 16, 19, 8, 10};\n\n Instant startTime = Instant.now();\n\n int maxProfit = service.getMaxProfit(stockPrices);\n assertThat(maxProfit).isEqualTo(19);\n\n long elapsedTime = Duration.between(startTime, Instant.now()).toMillis();\n System.out.println(String.format(\"Max profit of $%d from %d data points computed in %dms\", maxProfit,\n stockPrices.length, elapsedTime));\n }", "title": "" }, { "docid": "560d39aa9f53e37c1ccfd6fe39bc1518", "score": "0.5603216", "text": "int getMarketDepthUpdatesBestBidAndAsk();", "title": "" }, { "docid": "4085dd33a4fecb790d9effcc359e25d6", "score": "0.55949646", "text": "public void calcWithRecursion(int item) { \t\r\n for (int i = 0; i <= maxIt[item]; i++) {\r\n iIt[item] = i;\r\n if(globalCount == 900) return;\r\n if (item < n-1) {\r\n calcWithRecursion(item+1);\r\n } else {\r\n \t\r\n \t//long start = System.nanoTime();\r\n int currVal = 0; // current value\r\n int currWei = 0; // current weight\r\n for (int j = 0; j < n; j++) {\r\n \t// constraints\r\n \t// make it realistic, we can't sell more than 1 stacks quickly\r\n \tif(iIt[j] > 99*2/3) continue;\r\n \tif(iIt[j] > 12/3 && items[j].getPriority() == 3) continue;\r\n \t//if(iIt[j] > 30/3 && items[j].getPriority() == 2) continue;\r\n \t\r\n currVal += iIt[j] * items[j].getValue();\r\n currWei += iIt[j] * items[j].getWeight();\r\n }\r\n \r\n if (currVal > best.getValue() && currWei <= sack.getWeight())\r\n {\r\n \tglobalCount ++;\r\n best.setValue (currVal);\r\n best.setWeight(currWei);\r\n for (int j = 0; j < n; j++) bestAm[j] = iIt[j];\r\n System.out.println(best.getValue());\r\n }\r\n //System.out.println(\"base case time: \" + (System.nanoTime() - start));\r\n } // else\r\n } // for (i)\r\n }", "title": "" }, { "docid": "4b753c452fe250a38ceb1996558866a0", "score": "0.5575634", "text": "private void updatePartialSellOrderBuyGreaterThanSell(TradeOrder tradeOrder, TradeOrder sellOrder){\n\t\t//Get the Transaction record for this order\n\t\tOrderTransaction orderTransaction = null;\n\t\tList<OrderTransaction> listOrderTransaction = orderTransactionService.findAll(sellOrder, sellOrder.getSymbol());\n\t\t\n\t\tif (!listOrderTransaction.equals(null) && listOrderTransaction.size() > 0){\n\t\t\tlogger.info(\" Got an order transaction record \"+listOrderTransaction.size()+\" Reccords -- Let me do the processing\" );\n\t\t\t//Got an Order Transaction in\n\t\t\t//Do the process\n\t\t\torderTransaction = listOrderTransaction.get(0);\n\t\t\t\n\t\t\tDouble transactionTotal = ((sellOrder.getPrice() * sellOrder.getUnfulfilledquantity()) + (sellOrder.getPrice() * sellOrder.getUnfulfilledquantity() * FEEMULTIPLIER));\n\t\t\tDouble transactionFee = (sellOrder.getPrice() * sellOrder.getUnfulfilledquantity() * FEEMULTIPLIER);\n\t\t\t//Increase the Transaction Order total\n\t\t\torderTransaction.setTotal(orderTransaction.getTotal().doubleValue() + transactionTotal);\n\t\t\torderTransaction.setFee(orderTransaction.getFee() != null ? (orderTransaction.getFee()+transactionFee) : (0 + transactionFee));\n\t\t\t//Increase the transaction order quantity\n\t\t\torderTransaction.setQuantity(orderTransaction.getQuantity().longValue() + sellOrder.getUnfulfilledquantity());\n\t\t\t\n\t\t\t//Set the sell order partial to it's quantity\n\t\t\ttradeOrder.setPartialquantity(sellOrder.getUnfulfilledquantity());\n\t\t\t//sellOrder.setUnfulfilledquantity(sellOrder.getUnfulfilledquantity().longValue() - tradeOrder.getUnfulfilledquantity());\n\t\t\t\n\t\t\t//Trade Order is the buy Order\n\t\t\torderTransaction.getSourceOrderList().add(tradeOrder);\n\t\t\t\n\t\t\torderTransactionService.update(orderTransaction);\n\t\t\t\n\t\t\tsellOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\ttradeOrderDao.update(sellOrder);\n\t\t\t\n\t\t} else{\n\t\t\tlogger.info(\"No Order transaction record !!!\");\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "742dcca3525c19dc2ff1fa0876c97259", "score": "0.5572799", "text": "private void buyItems() {\n int totalPrice = 0;\n int totalAmount = 0;\n for (MarketItem marketItem: items) {\n totalPrice += marketItem.getAmount() * marketItem.getUnitPrice();\n totalAmount += marketItem.getAmount();\n if (totalAmount > game.getSpace()) {\n shortToast(\"Not Enough Space\");\n return;\n }\n }\n if (totalPrice > game.getCredits()) {\n shortToast(\"Not enough credits\");\n } else {\n for (MarketItem marketItem: items) {\n buyItem(marketItem.getGoodType(),\n marketItem.getAmount(), marketItem.getUnitPrice());\n }\n playerCredits.setText(String.valueOf(game.getCredits()));\n\n shortToast(\"Transaction Complete\");\n resetInputs();\n updateHoldQuantity();\n }\n }", "title": "" }, { "docid": "c5c4462222132c1fe593685763cdab7c", "score": "0.5568663", "text": "public int maxProfit(int[] prices) {\n \n int Ti0= 0;\n int Ti1= -(int)1e9;\n int Ti2= 0;\n \n for(int price: prices){\n \n int temp=Ti0;\n Ti0=Math.max(Ti0,Ti1+price);\n Ti1=Math.max(Ti1,Ti2-price);\n Ti2=temp;\n }\n \n return Ti0;\n }", "title": "" }, { "docid": "2a9d8435efd47408d47082f8d62f529c", "score": "0.5567542", "text": "public int maxProfitOptimized(int k, int[] prices) {\n int len = prices.length;\n if (k >= len / 2) return quickSolve(prices);\n\n int[][] t = new int[k + 1][len];\n for (int i = 1; i <= k; i++) {\n // since previous to this no profile\n\n int tmpMax = t[i-1][0]-prices[0]; // very very standard thinking nothing fancy here\n // till previous step par jo profit tha .. usko buy karlo and then follow usualy cycle !!!\n // also\n for (int j = 1; j < len; j++) {\n // all dependss on k transactions\n // t[i][j] = Math.max(t[i][j - 1], prices[j] + tmpMax);\n // i am considering this equation since atmost K tractions\n // there could be less transactions thank K to get max profit\n // hence t[i-1][j] also\n t[i][j] = Math.max(t[i-1][j], Math.max(t[i][j-1],prices[j] + tmpMax));\n tmpMax = Math.max(tmpMax, t[i - 1][j - 1] - prices[j]);\n }\n }\n return t[k][len - 1];\n }", "title": "" }, { "docid": "4a0c8d3bb95e41f862dc30aa5c4a0ec5", "score": "0.5547525", "text": "public String bestCharge(List<String> inputs) {\n StringBuilder sb = new StringBuilder();\n List<Item> items = itemRepository.findAll();\n List<SalesPromotion> promotions = salesPromotionRepository.findAll();\n int originalPrice = 0;\n sb.append(\"============= 订餐明细 =============\\n\");\n Map<Item, Integer> orderedMap = new HashMap<>();\n for (String input : inputs) {\n String[] strs = input.split(\" \");\n for (Item item : items) {\n if (item.getId().equals(strs[0])) {\n orderedMap.put(item, Integer.parseInt(strs[2]));\n int price = (int) item.getPrice() * Integer.parseInt(strs[2]);\n sb.append(item.getName() + \" x \" + strs[2] + \" = \" + price + \"元\\n\");\n originalPrice += price;\n }\n }\n }\n sb.append(\"-----------------------------------\\n\");\n int one = originalPrice >= 30 ? 6 : 0, two = 0;\n for (Item item : orderedMap.keySet()) {\n if (promotions.get(1).getRelatedItems().contains(item.getId())) {\n two += (int) (item.getPrice() / 2) * orderedMap.get(item);\n }\n }\n if (one == 0 && two == 0) {\n sb.append(\"总计:\" + originalPrice + \"元\\n\");\n } else if (one >= two) {\n sb.append(\"使用优惠:\\n\");\n sb.append(promotions.get(0).getDisplayName());\n sb.append(\",省\" + one + \"元\\n\");\n sb.append(\"-----------------------------------\\n\");\n sb.append(\"总计:\" + (originalPrice - one) + \"元\\n\");\n }else {\n sb.append(\"使用优惠:\\n\");\n sb.append(promotions.get(1).getDisplayName() + \"(\");\n for (Item item : orderedMap.keySet()) {\n if (promotions.get(1).getRelatedItems().contains(item.getId())) {\n sb.append(item.getName() + \",\");\n }\n }\n sb.deleteCharAt(sb.length() - 1);\n sb.append(\")\");\n sb.append(\",省\" + two + \"元\\n\");\n sb.append(\"-----------------------------------\\n\");\n sb.append(\"总计:\" + (originalPrice - two) + \"元\\n\");\n }\n sb.append(\"===================================\");\n return sb.toString();\n }", "title": "" }, { "docid": "0cf2df1119e848b99a95a24dbb50a82c", "score": "0.5538747", "text": "@Override\n public void tickByTickAllLast(int reqId, int tickType, long time, double price, int size, TickAttribLast tickAttribLast, String exchange, String specialConditions) {\n price = Utils.round(price, contract.getRounding());\n synchronized (this) {\n if (time != counter_time || timeSales.isNewTrade()) {\n try {\n if (Math.abs(tradeCount.get(timeSales.getId()).getSize()) > 2) {\n timeSales.setNewTrade(false);\n //Date dateLong = new Date(tradeCount.get(counter_time).time);\n //System.out.println(dateLong + \" \" + tradeCount.get(counter_time).time);\n System.out.println(\" \" + tradeCount.get(timeSales.getId()).toString());\n timeSalesRepo.save(tradeCount.get(timeSales.getId()));\n }else{\n //System.out.println(\"DISCARD <<<< \" + tradeCount.get(timeSales.id).toString());\n }\n } catch (NullPointerException e) {\n // counter_time = time;\n // e.printStackTrace();\n }\n timeSales.incrementId();\n timeSales.setPrice(price);\n timeSales.setWay(timeSales.getBid(), timeSales.getAsk());\n if (timeSales.getWay().equals(\"SELL\")) {\n timeSales.setSize(- size);\n } else if(timeSales.getWay().equals(\"BUY\")) {\n timeSales.setSize(size);\n }else{\n timeSales.setSize(0);\n }\n timeSales.setTime(time);\n counter_time = time;\n try {\n tradeCount.put(timeSales.getId(), (TimeSales) timeSales.clone());\n timeSales.setStart(false);\n } catch (CloneNotSupportedException e) {\n e.printStackTrace();\n }\n // System.out.println(\"New >> \" + timeSales.toString());\n\n\n\n\n\n } else {\n try {\n if (timeSales.getWay().equals(\"SELL\")) {\n tradeCount.get(timeSales.getId()).setSize(tradeCount.get(timeSales.getId()).getSize() - size);\n } else {\n tradeCount.get(timeSales.getId()).setSize(tradeCount.get(timeSales.getId()).getSize() + size);\n }\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n\n // System.out.println(\"Update >> \" + tradeCount.get(timeSales.id).toString());\n\n }\n }\n }", "title": "" }, { "docid": "e1b2eb345a2566f5b11e139e09c60dd4", "score": "0.5529606", "text": "private int CoinsToPay() {\r\n\t\tif (this.cardsToDescard.isEmpty())\r\n\t\t\tthrow new IndexOutOfBoundsException(\"you have selected 0 cards to buy a permit tile\");\r\n\t\t\r\n\t\tint coinsToPay;\r\n\t\t\r\n\t\tif (this.cardsToDescard.size()==CouncilBalcony.getNumberofcouncillors())\r\n\t\t\tcoinsToPay=0;\r\n\t\telse {\r\n\t\t\tcoinsToPay=((CouncilBalcony.getNumberofcouncillors()-(this.cardsToDescard.size()))*3)+1;\r\n\t\t}\r\n\t\tfor (PoliticsCard card : cardsToDescard)\r\n\t\t\tif (\"Rainbow\".equals(card.getColour().getColour()))\r\n\t\t\t\tcoinsToPay++;\r\n\t\treturn coinsToPay;\r\n\t}", "title": "" }, { "docid": "300c08859c1c776cd24fb21fd29cd3c9", "score": "0.5529306", "text": "public int maxProfit(int[] prices) {\n if(prices.length == 0){ return 0;}\n int profit = 0;\n int buy = prices[0];\n boolean isSold = false;\n for(int i = 1; i<prices.length; i++){\n if(isSold){\n buy = prices[i];\n isSold = false;\n }else{\n if(prices[i]<=buy){\n buy = prices[i];\n }else{\n int current_sell = prices[i];\n int j = i+1;\n while(j<prices.length){\n if(prices[j]>=current_sell){\n current_sell = prices[j];\n j++;\n }else{\n break;\n }\n }\n i = j -1;\n profit = profit + current_sell - buy;\n isSold = true;\n }\n }\n }\n return profit;\n }", "title": "" }, { "docid": "c8801b866d9ac20a989de4a9ab4fec40", "score": "0.5519731", "text": "public int cheap_keyboard(){\n int price=9999;\n for (Item item : items) {//wir iterieren durch den ganzen Shop um die billigste Tastatur zu finden\n if (item instanceof Tastatur) {\n if (item.getPrice() < price)\n price = item.getPrice();\n }\n }\n return price;\n }", "title": "" }, { "docid": "4b6ee35f3ff627466a7db459f1bcf424", "score": "0.5504614", "text": "private void updatePartialBuyOrderBuyGreaterThanSell(TradeOrder tradeOrder, TradeOrder sellOrder){\n\t\t//Get the Transaction record for this order\n\t\tOrderTransaction orderTransaction = null;\n\t\tList<OrderTransaction> listOrderTransaction = orderTransactionService.findAll(tradeOrder, tradeOrder.getSymbol());\n\t\t\n\t\tif (!listOrderTransaction.equals(null) && listOrderTransaction.size() > 0){\n\t\t\tlogger.info(\" Got an order transaction record \"+listOrderTransaction.size()+\" Reccords -- Let me do the processing\" );\n\t\t\t//Got an Order Transaction in\n\t\t\t//Do the process\n\t\t\torderTransaction = listOrderTransaction.get(0);\n\t\t\t\n\t\t\tDouble transactionTotal = ((sellOrder.getPrice() * sellOrder.getUnfulfilledquantity()) + (sellOrder.getPrice() * sellOrder.getUnfulfilledquantity() * FEEMULTIPLIER));\n\t\t\tDouble transactionalFee = (sellOrder.getPrice() * sellOrder.getUnfulfilledquantity() * FEEMULTIPLIER);\n\t\t\t//Increase the Transaction Order total\n\t\t\torderTransaction.setTotal(orderTransaction.getTotal().doubleValue() + transactionTotal);\n\t\t\torderTransaction.setFee(orderTransaction.getFee() + transactionalFee);\n\t\t\t\n\t\t\t//Increase the transaction order quantity\n\t\t\torderTransaction.setQuantity(orderTransaction.getQuantity().longValue() + sellOrder.getUnfulfilledquantity());\n\t\t\t\n\t\t\t//Set the sell order partial to it's quantity\n\t\t\tsellOrder.setPartialquantity(sellOrder.getUnfulfilledquantity());\n\t\t\torderTransaction.getSourceOrderList().add(sellOrder);\n\t\t\t\n\t\t\torderTransactionService.update(orderTransaction);\n\t\t\ttradeOrder.setUnfulfilledquantity(tradeOrder.getUnfulfilledquantity() - sellOrder.getUnfulfilledquantity());\n\t\t\t//tradeOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\t\n\t\t\ttradeOrderDao.update(tradeOrder);\n\t\t\t\n\t\t} else{\n\t\t\tlogger.info(\"No Order transaction record !!!\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "a415bc82baa17acde96c6c22dbe598f2", "score": "0.5502871", "text": "@Test\n public void testBigOne() throws Exception {\n HuoBiExchange huoBiExchange = new HuoBiExchange();\n\n BigOneExchange bigOneClient = new BigOneExchange();\n\n List<String> haveCoins = new ArrayList<>();\n for (String coin : bigOneClient.symbols().keySet()) {\n if (huoBiExchange.symbols().containsKey(coin)) {\n haveCoins.add(coin);\n }\n }\n\n List<Exchange> exchanges = new ArrayList<>();\n exchanges.add(bigOneClient);\n exchanges.add(huoBiExchange);\n\n int time = 0;\n while (true) {\n for (String coin : haveCoins) {\n try {\n if (!coin.contains(\"usdt\")) {\n continue;\n }\n checkPriceCanBuy(coin,exchanges);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n System.out.println(\"决策第\"+time ++ +\"轮结束\");\n\n }\n }", "title": "" }, { "docid": "2ed3503659d6ec291c99ed57afc0ba27", "score": "0.54971737", "text": "public void do_trade () {\r\n\t\t\r\n\t\tIterator<Stock> i = stock_state.iterator();\r\n\t\t\r\n\t\twhile (i.hasNext()) {\r\n\r\n\t\t\tStock next_stock = i.next();\r\n\t\t\tRequest[] trade_result = new Request[2];\r\n\t\t\t\r\n\t\t\t/* call the trade method on the stock. It will check if a trade\r\n\t\t\t * is possible. If so, it will return is the two requests which\r\n\t\t\t * are matching and update the price of the stock as appropriate.\r\n\t\t\t */\r\n\t\t\ttrade_result = next_stock.trade();\r\n\t\t\t/* trade_result[0] is seller and trade_result[1] is buyer.\r\n\t\t\t * we have to update their account info of the buyer and seller\r\n\t\t\t */\r\n\t\t\t\r\n\t\t\tif (trade_result[0] == null && trade_result[1] == null) {\r\n\t\t\t\t// no possible tread here.\r\n\t\t\t\tcontinue;\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"----------------------------------------------------------------\");\r\n\t\t\t\tSystem.out.println(\"Trade # \" + trade_num);\r\n\t\t\t\tSystem.out.println(\"----------------------------------------------------------------\");\r\n\t\t\t\ttrade_num++;\r\n\t\t\t\t\r\n\t\t\t\tRequest buyer = trade_result[1];\r\n\t\t\t\tRequest seller = trade_result[0];\r\n\t\t\t\t\r\n\t\t\t\tint buyer_id = buyer.getCli();\r\n\t\t\t\tint seller_id = seller.getCli();\r\n\t\t\t\t\r\n\t\t\t\tAccount buyer_accnt = accnt_state[buyer_id-1];\r\n\t\t\t\tAccount seller_accnt = accnt_state[seller_id-1];\r\n\t\t\t\t\r\n\t\t\t\t/* When the tread is done, call the set stock method on the accounts of buyer and\r\n\t\t\t\t * seller. For buyer, we send the number of stocks as N and seller as -N (for indicating\r\n\t\t\t\t * reduction). This method then will update the number of shares and stock info of\r\n\t\t\t\t * the clients account. Note that that the price at which tread happens is seller's quotation\r\n\t\t\t\t */\r\n\t\t\t\t\r\n\t\t\t\t// first update the buyer \r\n\t\t\t\tbuyer_accnt.setStocks(next_stock.getSym(), buyer.getQuant(), seller.getOffer());\r\n\t\t\t\t// then update the seller \r\n\t\t\t\tseller_accnt.setStocks(next_stock.getSym(), -seller.getQuant(), seller.getOffer());\r\n\t\t\t\t\r\n\t\t\t\tnext_stock.printStock();\r\n\t\t\t\tSystem.out.print(\"[\");\r\n\t\t\t\tfor (int j=0; j < num_cli; j++) {\r\n\t\t\t\t\taccnt_state[j].printAccnt();\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"]\");\r\n\t\t\t\tSystem.out.println(\"----------------------------------------------------------------\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(\"Finished trading round\");\r\n\t}", "title": "" }, { "docid": "3e9d380c8d998b90b2a156439ee230f4", "score": "0.54944813", "text": "public double getPrice(){\n\t\t\r\n\t\tint q = 0;\r\n\t\tdouble cumulativePrice = 0;\r\n\t\tLocalTime compareTime = LocalTime.now().minus(MINUTES_FOR_PRICE_CALCULATION, ChronoUnit.MINUTES);\r\n\r\n\t\t// iterate over trades till the first one or the condition (now - 15min > timeStamp)\r\n\t\tfor(int i = trades.size()-1; i >=0; i--){\r\n\t\t\tTrade t = trades.get(i);\r\n\t\t\tif (t.timestamp.isBefore(compareTime)){\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\tq = q + t.quantity;\r\n\t\t\t\tcumulativePrice = cumulativePrice + t.price(); \r\n\t\t\t}\r\n\t\t}\r\n\t\tif(q != 0){\r\n\t\t\treturn cumulativePrice/q;\r\n\t\t} else {\r\n\t\t\treturn -1d;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a3541d51c6660efa5243bfba39e44325", "score": "0.5494229", "text": "public int maxProfit(int[] prices) {\n if(prices.length < 2) return 0;\n int buy1 = Integer.MIN_VALUE, buy2 = Integer.MIN_VALUE;//we use negative numbers to denote buy1 and buy2, thus use Integer.MIN_VALUE here is more convenient.\n int sell1 = 0, sell2 = 0;\n for(int i = 0; i < prices.length; i++){\n buy1 = Math.max(buy1, -prices[i]);\n sell1 = Math.max(sell1, buy1+prices[i]);\n buy2 = Math.max(buy2, sell1-prices[i]);\n sell2 = Math.max(sell2, buy2+prices[i]);\n }\n return sell2;\n }", "title": "" }, { "docid": "20aa3f31396462c8019c2c354aa5ebed", "score": "0.54421246", "text": "public int maxProfit(int[] prices) {\n int max = 0;\n int n = prices.length;\n \n if(n<2){ return 0;}\n \n int buy = prices[0];\n \n for(int i = 1; i<n; i++){\n if(prices[i]>buy){\n int profit = prices[i] - buy;\n if(profit > max){\n max = profit;\n }\n } else {\n buy = prices[i];\n }\n }\n return max;\n }", "title": "" }, { "docid": "32a0c5bcd5202a06876f58c20551b012", "score": "0.54405236", "text": "private void strategy() {\n Price prevPrice = null;\n OrderType prevType = null;\n OrderRecord prevOrder = null;\n for (OrderRecord order : ImmutableList.copyOf(market.getActiveOrders())) {\n prevPrice = order.getPrice();\n prevType = order.getOrderType();\n prevOrder = order;\n }\n\n estimator.addFundamentalObservation(sim.getCurrentTime(), fundamental.getFundamental());\n beliefBias.add(estimator.getCurrentEstimate()\n - trueFundamental.getValueAt(sim.getCurrentTime()).doubleValue());\n OrderType type = orderTypeDistribution.sample(typeRand);\n\n if (Math.abs(market.getHoldings() + type.sign()) <= maxPosition) {\n double finalEstimate = getFinalFundamentalEstimate();\n double privateBenefit =\n type.sign() * privateValue.valueForExchange(market.getHoldings(), type);\n double privateVal = finalEstimate + privateBenefit;\n\n Price bBid;\n Price bAsk;\n Pair<Price, Double> temp;\n Price toSubmit;\n if (market.getQuote().isDefined()) {\n bBid = market.getQuote().getBidPrice().get();\n bAsk = market.getQuote().getAskPrice().get();\n temp = bfEstimator.estimate(type, privateVal, bBid, bAsk, sim.getCurrentTime());\n toSubmit = temp.getLeft();\n if (toSubmit.longValue() >= 0) {\n boolean isZIR = Long.compare(toSubmit.longValue(), (long) 1) == 0\n || Long.compare(toSubmit.longValue(), Long.MAX_VALUE) == 0;\n // if haven't reached numTran, act as ZIR\n if (isZIR) {\n double demandedSurplus = shadingDistribution.sample(shadingRand);\n toSubmit = threshold.shadePrice(type, market.getQuote(), privateVal, demandedSurplus);\n\n if (prevType == null || prevType.sign() != type.sign()) {\n if (prevType != null) {\n market.withdrawOrder(prevOrder);\n }\n if (toSubmit.longValue() > 0) {\n market.submitOrder(type, toSubmit, 1);\n submissionDist.add(toSubmit.doubleValue() - finalEstimate);\n }\n } else {\n if (toSubmit.longValue() > 0) {\n boolean moreCompetitive = type.sign() > 0 ? toSubmit.compareTo(prevPrice) > 0\n : toSubmit.compareTo(prevPrice) < 0;\n // if toSubmit is equal to prePrice, do nothing\n if (moreCompetitive) {\n market.submitOrder(type, toSubmit, 1);\n submissionDist.add(toSubmit.doubleValue() - finalEstimate);\n market.withdrawOrder(prevOrder);\n\n } else if (toSubmit.equals(prevPrice)) {\n // do nothing\n } else {\n market.withdrawOrder(prevOrder);\n market.submitOrder(type, toSubmit, 1);\n submissionDist.add(toSubmit.doubleValue() - finalEstimate);\n }\n } else {\n market.withdrawOrder(prevOrder);\n }\n }\n } else {\n if (type.sign() * (privateVal - toSubmit.doubleValue()) > 0\n && Long.compare(toSubmit.longValue(), (long) 0) != 0) {\n if (prevType == null || prevType.sign() != type.sign()) {\n if (prevType != null) {\n market.withdrawOrder(prevOrder);\n }\n if (toSubmit.longValue() > 0) {\n market.submitOrder(type, toSubmit, 1);\n submissionDist.add(toSubmit.doubleValue() - finalEstimate);\n }\n } else {\n if (toSubmit.longValue() > 0) {\n boolean moreCompetitive = type.sign() > 0 ? toSubmit.compareTo(prevPrice) > 0\n : toSubmit.compareTo(prevPrice) < 0;\n // if toSubmit is equal to prePrice, do nothing\n if (moreCompetitive) {\n market.submitOrder(type, toSubmit, 1);\n submissionDist.add(toSubmit.doubleValue() - finalEstimate);\n market.withdrawOrder(prevOrder);\n\n } else if (toSubmit.equals(prevPrice)) {\n // do nothing\n } else {\n market.withdrawOrder(prevOrder);\n market.submitOrder(type, toSubmit, 1);\n submissionDist.add(toSubmit.doubleValue() - finalEstimate);\n }\n } else {\n if (prevOrder != null) {\n market.withdrawOrder(prevOrder);\n }\n }\n }\n } else {\n if (prevOrder != null) {\n market.withdrawOrder(prevOrder);\n }\n }\n }\n } else {\n if (prevOrder != null) {\n market.withdrawOrder(prevOrder);\n }\n }\n }\n // if there is either no bBid or bAsk, act as ZIR\n else {\n double demandedSurplus = shadingDistribution.sample(shadingRand);\n toSubmit = threshold.shadePrice(type, market.getQuote(), privateVal, demandedSurplus);\n\n if (prevType == null || prevType.sign() != type.sign()) {\n if (prevType != null) {\n market.withdrawOrder(prevOrder);\n }\n if (toSubmit.longValue() > 0) {\n market.submitOrder(type, toSubmit, 1);\n submissionDist.add(toSubmit.doubleValue() - finalEstimate);\n }\n } else {\n if (toSubmit.longValue() > 0) {\n boolean moreCompetitive = type.sign() > 0 ? toSubmit.compareTo(prevPrice) > 0\n : toSubmit.compareTo(prevPrice) < 0;\n // if toSubmit is equal to prePrice, do nothing\n if (moreCompetitive) {\n market.submitOrder(type, toSubmit, 1);\n submissionDist.add(toSubmit.doubleValue() - finalEstimate);\n market.withdrawOrder(prevOrder);\n } else if (toSubmit.equals(prevPrice)) {\n // do nothing\n } else {\n market.withdrawOrder(prevOrder);\n market.submitOrder(type, toSubmit, 1);\n submissionDist.add(toSubmit.doubleValue() - finalEstimate);\n }\n } else {\n market.withdrawOrder(prevOrder);\n }\n }\n }\n }\n\n scheduleNextArrival();\n }", "title": "" }, { "docid": "688c1c3edd1ba72271aee545da3222ea", "score": "0.5434977", "text": "private static int getMaxProfit(int[] stockPrices) {\n // calculate the max profit\n // Buffer to store tmp profit\n // However if we want a negative profit, say everything is a loss on a particular day.\n // initializing profit to 0 is a bad idea; the function will always return 0\n int profit = stockPrices[1] - stockPrices[0];\n for (int i = 0; i < stockPrices.length; i++) {\n for (int j = i + 1; j < stockPrices.length; j++) {\n int tmp = stockPrices[j] - stockPrices[i];\n System.out.println(\"TEMP \" + tmp);\n if (tmp > profit) profit = tmp;\n }\n }\n\n return profit;\n }", "title": "" }, { "docid": "341bf530498881062023fa5ab9b5bb42", "score": "0.54298943", "text": "public int maxProfit_optimized(int[] prices) {\n if(prices.length < 2) return 0;\n int K = 2;\n int[][] dp = new int[K+1][prices.length];\n for(int i = 1; i <= K; i++){\n int maxDiff = -prices[0];\n for(int j = 1; j < prices.length; j++){\n dp[i][j] = Math.max(dp[i][j-1], prices[j] + maxDiff);\n maxDiff = Math.max(maxDiff, dp[i-1][j] - prices[j]);\n }\n }\n return dp[K][prices.length-1];\n }", "title": "" }, { "docid": "3cb56e1867ea2f74cc862d20c590270a", "score": "0.5425543", "text": "public int minimumCost(int n, int[][] highways, int discounts){\n List<List<int[]>> g = IntStream.range(0, n).mapToObj(i -> new ArrayList<int[]>()).collect(Collectors.toList());\n for(int[] x : highways){\n int a = x[0], b = x[1], c = x[2];\n g.get(a).add(new int[]{b, c});\n g.get(b).add(new int[]{a, c});\n }\n PriorityQueue<int[]> q = new PriorityQueue<>(Comparator.comparingInt(o -> o[0]));\n int[][] dp = new int[n][discounts + 1];\n IntStream.range(0, n).forEach(i -> Arrays.fill(dp[i], Integer.MAX_VALUE));\n for(q.offer(new int[]{0, 0, 0}), dp[0][0] = 0; !q.isEmpty(); ){\n int e[] = q.poll(), cost = e[0], city = e[1], discount = e[2];\n if(city == n - 1)\n return cost;\n for(int[] x : g.get(city)){\n int next = x[0], weight = x[1];\n if(cost + weight < dp[next][discount]){\n q.offer(new int[]{cost + weight, next, discount});\n dp[next][discount] = cost + weight;\n }\n if(discount < discounts && cost + weight / 2 < dp[next][discount + 1]){\n q.offer(new int[]{cost + weight / 2, next, discount + 1});\n dp[next][discount + 1] = cost + weight / 2;\n }\n }\n }\n return -1;\n }", "title": "" }, { "docid": "ce1f7a33c049576d8227981c48943c2a", "score": "0.54251647", "text": "int getLastTradePrice();", "title": "" }, { "docid": "2661097ef279ac790742321e9ce1f08b", "score": "0.5413674", "text": "public static void main(String[] args) {\n \tScanner in = new Scanner(System.in);\n \n // declare and initialize variables\n \tint numShares = 0; // - This is the number of shares of this stock currently held in the account\n \tint purchasePrice = 0; //- (per share) paid for current stock in the account\n \tint marketPrice = 0; // - (per share) of this stock. This is the current market price for buying or selling this stock\n \tint availableFunds = 0; //- the amount the client is willing to spend on a transaction\n int totalBuyCost = 0;\n int transactionFee = 10; //$10 per transaction\n int numOfSharesToBuy = 0;\n int perShareBuyValue = 0;\n int totalBuyValue = 0;\n int perShareSellValue = 0;\n int totalSellValue = 0;\n \n // prompt for and collect inputs\n // Receiving user input and directing it to the proper variables\n \tSystem.out.println(\"Current Shares : \");\n numShares = in.nextInt();\n System.out.println(\"Purchase Price : \");\n purchasePrice = in.nextInt();\n System.out.println(\"Market Price : \");\n marketPrice = in.nextInt();\n System.out.println(\"Available Funds : \");\n availableFunds = in.nextInt();\n \n // compute required values\n numOfSharesToBuy = (availableFunds - transactionFee) / marketPrice; //calculating the # of stocks that the user should by if it's profitable, taking the funds subtracted by the fee and dividing it by the cost of the stock\n totalBuyCost = 10 + marketPrice * numOfSharesToBuy; //calculating the total buy cost by adding the fee of $10 to the market price and then multiplying this by the number of stocks\n perShareBuyValue = purchasePrice - marketPrice; //calculating the buy value of each share by taking the purchase price and subtracting the price of the stock on the market\n totalBuyValue = perShareBuyValue * numOfSharesToBuy; //calculating the total buy value by taking the buy value of each share calculated above and multiplying it by the number of shares that they will be buying\n perShareSellValue = marketPrice - purchasePrice; //calculating the profit per share sold by taking the market price they will sell it at and subtracting the initial price that was paid\n totalSellValue = perShareSellValue * numShares; //calculating the total sell value by taking the profit per share and multiplying it by the number of shares that will be sold\n \n // display required outputs\n //if the market price is greater than the purchase price and the available funds will account for the $10 fee then we can move onto determining if if the profit made by selling is greater than the transaction fee and if these all check out the program tells the user the amount of stocks they should buy\n \n if (marketPrice < purchasePrice && availableFunds > 10) {\n \tif (totalBuyValue > transactionFee) {\n \t\tSystem.out.println(\"Buy \" + numOfSharesToBuy + \" shares\");\n \t}\n \n // if the market price is greater than the original purchase price and the profit made by selling is greater than the $10 transaction fee then the program tells the user how many stocks to sell\n } else if (marketPrice > purchasePrice && totalSellValue > 10) {\n \tSystem.out.println(\"Sell \" + numShares + \" shares\");\n //if neither purchasing or selling stocks proves profitable then the program will tell the user to just hold their shares\n } else {\n \tSystem.out.println(\"Hold shares\");\n }\n\n }", "title": "" }, { "docid": "785862c2ee06ab39002c7ec2548d04a4", "score": "0.54117954", "text": "private void initiateSuperSimpleStockMarket() throws InterruptedException {\n Map<String, Stock> stockData = StockDataHelper.getStocks();\n Collection<Stock> stocks = stockData.values();\n //for given Stocks\n stocks.stream().forEach(stock -> {\n //for given price calculate dividend\n double dividendYield = stockService.calculateDividendYield(stock, 10.2);\n\n log.info(\"--YIELD FOR STOCK: \" + stock.getSymbol() + \" is \" + dividendYield + \" for price: \" + 10.2);\n\n //for given price calculate Price by earning ratio as per formula given in assignment\n double ratio = 0;\n try {\n ratio = stockService.calculatePriceByEarning(stock, 10.2);\n log.info(\"--P/E RATIO FOR STOCK: \" + stock.getSymbol() + \" is \" + ratio + \" for price: \" + 10.2);\n } catch (StockExceptions stockExceptions) {\n log.info(\"--The PE ratio for this stock doesn't exist: \" + stock.getSymbol());\n }\n\n });\n\n\n log.info(\"\\n\\n--Initiating trades for stocks TEA/GIN/ALE---\\n\");\n log.info(\"\\n\\n--Buying and selling each stock types at price 20.0 and 10.0 respectively ---\\n\");\n // Trades for given Stock TEA\n //BUY\n Stock tea = stockData.get(\"TEA\");\n LocalDateTime tradeTime = stockService.processTrade(tea, TradeType.BUY, 10, 20.0);\n log.info(\"TEA is bought successfully at:\" + tradeTime);\n //SELL\n tradeTime = null;\n tradeTime = stockService.processTrade(tea, TradeType.SELL, 5, 10.0);\n log.info(\"TEA is sold successfully at:\" + tradeTime);\n tradeTime = null;\n // Trades for given Stock GIN\n //BUY\n Stock gin = stockData.get(\"GIN\");\n tradeTime = stockService.processTrade(gin, TradeType.BUY, 5, 20.0);\n log.info(\"gin is bought successfully at:\" + tradeTime);\n tradeTime = null;\n //SELL\n tradeTime = stockService.processTrade(gin, TradeType.SELL, 5, 10.0);\n log.info(\"gin is sold successfully at:\" + tradeTime);\n tradeTime = null;\n // Trades for given Stock ALE\n //BUY\n Stock ale = stockData.get(\"ALE\");\n tradeTime = stockService.processTrade(ale, TradeType.BUY, 5, 20.0);\n log.info(\"ALE is bought successfully at:\" + tradeTime);\n //SELL\n tradeTime = stockService.processTrade(ale, TradeType.SELL, 10, 10.0);\n log.info(\"ALE is sold successfully at:\" + tradeTime);\n\n log.info(\"\\n\\n---Trades for stocks TEA/GIN/ALE completed ---\\n\");\n\n //calculate volume weighted stock price for last 15 mins trades\n\n double volumeWeightedStockPrice_tea = stockService.calculateVolWeightedStockPrice(tea);\n log.info(\"---VOLUME WEIGHTED STOCK PRICE FOR TEA:\" + volumeWeightedStockPrice_tea);\n\n double volumeWeightedStockPrice_gin = stockService.calculateVolWeightedStockPrice(gin);\n log.info(\"---VOLUME WEIGHTED STOCK PRICE FOR GIN:\" + volumeWeightedStockPrice_gin);\n\n double volumeWeightedStockPrice_ALE = stockService.calculateVolWeightedStockPrice(ale);\n log.info(\"---VOLUME WEIGHTED STOCK PRICE FOR ALE:\" + volumeWeightedStockPrice_ALE);\n\n //calculate Al share index\n\n double shareIndex = stockService.calculateAllShareIndex(stocks);\n log.info(\"---ALL SHARE INDEX:\" + shareIndex);\n\n }", "title": "" }, { "docid": "57583933ce08065c22f7579299bee32d", "score": "0.5408633", "text": "private float calcPrice(float stayTime)\n {\n float price = 0;\n\n if(stayTime < 0.5)\n {\n price = prices[0];\n }\n else if(stayTime > 0.5 && stayTime < 1)\n {\n price = prices[1];\n }\n else if(stayTime > 1 && stayTime < 2)\n {\n price = prices[2];\n }\n else if(stayTime > 2 && stayTime < 3)\n {\n price = prices[3];\n }\n else if(stayTime > 3 && stayTime < 4)\n {\n price = prices[4];\n }\n else if(stayTime > 4 && stayTime < 5)\n {\n price = prices[5];\n }\n else if(stayTime > 5 && stayTime < 24)\n {\n price = prices[6];\n }\n else if(stayTime > 24)\n {\n float temp = stayTime / 24;\n price = prices[7] * temp;\n }\n\n return price;\n }", "title": "" }, { "docid": "08c45b431111ad00220b3849cefb309d", "score": "0.54073834", "text": "int getMaxTransactions();", "title": "" }, { "docid": "5338c85f86361727e6fecf54ec8df9b6", "score": "0.5401319", "text": "public boolean canBid(long price) {\n long now = System.nanoTime();\n long result = now - lastTime;\n if (result > divisor) {\n lastTime = now;\n long leftOvers = v.sumThenReset() - spendRate;\n if (leftOvers > 0) {\n v.add(leftOvers);\n return false;\n }\n return true;\n }\n\n return price + v.sum() <= spendRate;\n }", "title": "" }, { "docid": "44d1acec5f02725ca8fe467152e06b06", "score": "0.54012626", "text": "public synchronized PurchaseOrSaleReceipt buy(String commodity, String quantity){\n\n int globalID = Integer.parseInt(commodity);\n int buyQuantity = Integer.parseInt(quantity);\n\n Commodity globalCommod = currentLobby.getCommodities()[globalID];\n\n String nameCommodity = globalCommod.getName();\n double price = globalCommod.getCurrentPrice();\n System.out.println(price);\n int currentGlobalQuantity = globalCommod.getQuantity();\n System.out.println(currentGlobalQuantity);\n\n // check if you have enough money && there is enough quantity on the market\n if (buyQuantity * price < this.money && buyQuantity < currentGlobalQuantity){\n\n // update quantity in portfolio\n portfolioQuantity[globalID] =+ buyQuantity;\n\n // update the global quantity\n globalCommod.setQuantity(currentGlobalQuantity - buyQuantity);\n\n // update user's money\n this.money = money - (buyQuantity * price);\n\n // GLOBAL PRICES CURRENTLY DO NOT CHANGE AS YOU BUY / SELL\n // NEED TO CHANGE\n\n System.out.printf(\"%d of %s was successfully bought.\\n\", buyQuantity, nameCommodity);\n\n\n String playerInstance = this.currentLobby.generatePlayersAndEquityString();\n int timeStampInt = toIntExact(this.currentLobby.gameTimer);\n PurchaseOrSaleReceipt purchaseRecipt = new PurchaseOrSaleReceipt(this.name , timeStampInt , globalID , buyQuantity , price , (buyQuantity * price), \"buy\" , \"empty\", playerInstance);\n this.currentLobby.transactionHistory.add(purchaseRecipt);\n System.out.println(purchaseRecipt.toString());\n return purchaseRecipt;\n // otherwise\n } else {\n System.out.println(\"Cannot buy, either quantity invalid or cash insufficient.\");\n }\n return null;\n\n }", "title": "" }, { "docid": "f4e43c9b159d724091d5810d59801a19", "score": "0.5400667", "text": "protected void CheckForNewTrades( int iMaxNumTradesToAdd )\r\n {\r\n\t\tif ( iMaxNumTradesToAdd <= 0 )\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n \t\r\n \tif ( GetCurrentTradeMaxXP() == GetCurrentTradeXP() )\r\n \t{\r\n \t\t// we've maxed out the xp at this level, offer a level up trade\r\n \t\t\r\n \t\tif ( CheckForLevelUpTrade() )\r\n \t\t{\r\n \t\t\tiMaxNumTradesToAdd--;\r\n \t\t\t\r\n \t\t\tif ( iMaxNumTradesToAdd <= 0 )\r\n \t\t\t{\r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \tiMaxNumTradesToAdd = CheckForMandatoryTrades( iMaxNumTradesToAdd );\r\n \t\r\n\t\tif ( iMaxNumTradesToAdd <= 0 )\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n \t\r\n MerchantRecipeList newTradeList = new MerchantRecipeList();\r\n \r\n switch ( getProfession() )\r\n {\r\n case 0: // peasant\r\n \t\r\n \tCheckForPeasantTrades( newTradeList );\r\n \t\r\n \tbreak;\r\n \t\r\n case 1: // librarian\r\n \t\r\n \tCheckForLibrarianTrades( newTradeList );\r\n \t\r\n break;\r\n\r\n case 2: // priest\r\n \t\r\n \tCheckForPriestTrades( newTradeList );\r\n \t\r\n \tbreak;\r\n \t\r\n case 3: // blacksmith\r\n \t\r\n \tCheckForBlacksmithTrades( newTradeList ); \t\r\n \t\r\n break;\r\n\r\n case 4: // butcher\r\n \t\r\n \tCheckForButcherTrades( newTradeList ); \t\r\n \r\n break;\r\n }\r\n\r\n if ( newTradeList.isEmpty() )\r\n {\r\n \tAddDefaultTradeToList( newTradeList );\r\n }\r\n else\r\n {\r\n Collections.shuffle( newTradeList );\r\n }\r\n\r\n if ( buyingList == null )\r\n {\r\n buyingList = new MerchantRecipeList();\r\n }\r\n\r\n for ( int iTempTradeCount = 0; iTempTradeCount < iMaxNumTradesToAdd && iTempTradeCount < newTradeList.size(); ++iTempTradeCount )\r\n {\r\n buyingList.addToListWithCheck( (MerchantRecipe)newTradeList.get( iTempTradeCount ) );\r\n }\r\n }", "title": "" }, { "docid": "9c250feaac2b77b2c0ea54d793bf4dbd", "score": "0.53994614", "text": "private Bid getTradeOffExhaustive(double ourUtility, Bid opponentBid,\n\t\t\tint count) {\n\t\tbestOpponentBid = getBestBid(opponentBid);\n\n\t\tif (bestOpponentUtility * acceptMultiplier >= ourUtility) {\n\t\t\treturn bestOpponentBid;\n\t\t}\n\n\t\tArrayList<Bid> bids = bidSpace.Project(\n\t\t\t\tbidSpace.getPoint(bestOpponentBid), ourUtility, count,\n\t\t\t\t(AdditiveUtilitySpace) this.utilitySpace, this.opponentModel);\n\t\tif (bids.size() == 0) {\n\t\t\treturn getTradeOffExhaustive(ourUtility, opponentBid, count + 10000);\n\t\t}\n\t\tdouble maxOpponentUtility = 0;\n\t\tBid bestBid = null;\n\n\t\tfor (Bid bid : bids) {\n\t\t\ttry {\n\t\t\t\tdouble opponentUtility = opponentModel\n\t\t\t\t\t\t.getNormalizedUtility(bid);\n\t\t\t\tif (opponentUtility > maxOpponentUtility) {\n\t\t\t\t\tmaxOpponentUtility = opponentUtility;\n\t\t\t\t\tbestBid = bid;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\treturn bestBid;\n\t}", "title": "" }, { "docid": "b547433a5cbcb4dd47d8ea2c1a430a75", "score": "0.53920996", "text": "public int cheapestAvailableShare() {\n\t\tShare cheapestShare = shares.get(0);\n\t\tfor (Share share: shares) {\n\t\t\t if (share.isAvailable() && share.getPrice() < cheapestShare.getPrice()) {\n\t\t\t\t cheapestShare = share;\n\t\t\t }\n\t\t}\n\t\treturn cheapestShare.getPrice();\n\t}", "title": "" }, { "docid": "7019d686c42c6586a71e510b62eaa399", "score": "0.53865707", "text": "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint numTCs = scan.nextInt();\n\t\tint[] TC = new int[numTCs];\n\t\tlong[][][] SellerVsFruitPrice = null;\n\t\tSellerVsFruitPrice = new long[TC.length][][];\n\t\tfor(int i = 0 ; i < TC.length ; i++)\n\t\t{\n\t\t\tint numSellers = scan.nextInt();\n\t\t\tSellerVsFruitPrice[i] = new long[numSellers][3];\n\t\t\tfor(int seller = 0 ; seller < numSellers ; seller++)\n\t\t\t{\n\t\t\t\tfor(int j = 0; j < numFruits ; j++)\n\t\t\t\t{\n\t\t\t\t\tSellerVsFruitPrice[i][seller][j] = scan.nextLong();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlong minCost = 0;\n\t\tfor(int i = 0 ; i < TC.length ; i++)\n\t\t{\n\t\t\t//int storage[] = new int[n+1];\n\t\t\t//long start = System.currentTimeMillis();\n\t\t\tminCost = BuyingFruitsDpRecursive(SellerVsFruitPrice[i],new HashMap<String,Long>(),0,0,0,\"\");\n\t\t\t//long end = System.currentTimeMillis();\n\t\t\t//System.out.println(\"Time taken to execute this dp recursive function MINE \" + (end-start)+\"ms\");\n\t\t\tSystem.out.println(minCost);\n\t\t}\n\t}", "title": "" }, { "docid": "b1bbbafe600385b62daa27006f6d04ab", "score": "0.5385189", "text": "private void updatePartialSellOrderBuyLessThanSell(TradeOrder tradeOrder, TradeOrder sellOrder){\n\t\t//Get the Transaction record for this order\n\t\tOrderTransaction orderTransaction = null;\n\t\tList<OrderTransaction> listOrderTransaction = orderTransactionService.findAll(sellOrder, sellOrder.getSymbol());\n\t\t\n\t\tif (!listOrderTransaction.equals(null) && listOrderTransaction.size() > 0){\n\t\t\tlogger.info(\" Got an order transaction record \"+listOrderTransaction.size()+\" Reccords -- Let me do the processing\" );\n\t\t\t//Got an Order Transaction in\n\t\t\t//Do the process\n\t\t\torderTransaction = listOrderTransaction.get(0);\n\t\t\t\n\t\t\tDouble transactionalFee = (sellOrder.getPrice() * tradeOrder.getUnfulfilledquantity() * FEEMULTIPLIER);\n\t\t\tDouble transactionTotal = ((sellOrder.getPrice() * tradeOrder.getUnfulfilledquantity()) +transactionalFee );\n\t\t\t\n\t\t\t//Increase the Transaction Order total\n\t\t\torderTransaction.setTotal(orderTransaction.getTotal().doubleValue() + transactionTotal);\n\t\t\torderTransaction.setFee(orderTransaction.getFee() + transactionalFee);\n\t\t\t//Increase the transaction order quantity\n\t\t\torderTransaction.setQuantity(orderTransaction.getQuantity().longValue() + tradeOrder.getUnfulfilledquantity());\n\t\t\t\n\t\t\t//Set the sell order partial to it's quantity\n\t\t\ttradeOrder.setPartialquantity(tradeOrder.getUnfulfilledquantity());\n\t\t\tsellOrder.setUnfulfilledquantity(sellOrder.getUnfulfilledquantity().longValue() - tradeOrder.getUnfulfilledquantity());\n\t\t\t\n\t\t\t//Trade Order is the buy Order\n\t\t\torderTransaction.getSourceOrderList().add(tradeOrder);\n\t\t\t\n\t\t\torderTransactionService.update(orderTransaction);\n\t\t\t\n\t\t\t\n\t\t\ttradeOrderDao.update(sellOrder);\n\t\t\t\n\t\t} else{\n\t\t\tlogger.info(\"No Order transaction record !!!\");\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "e9a7a5fc926c636268df40b34c3f3279", "score": "0.53806055", "text": "private static int findFinalCost(List<Integer> costs) {\n\t\tInteger r = new Integer(2);\n\t\tList<Integer> addedPrices = new ArrayList<>();\n\t\twhile(costs.size() !=1)\n\t\t{\n\t\t\tInteger min1 = new Integer(Collections.min(costs));\n\t\t\tcosts.remove(min1);\n\t\t\tInteger min2 = new Integer(Collections.min(costs));\n\t\t\tcosts.remove(min2);\n\t\t\t//System.out.println(\"Adding: \" + min1 + \" + \" + min2);\n\t\t\tcosts.add(min1 + min2);\n\t\t\taddedPrices.add(min1 + min2);\n\t\t\t//System.out.println(\"Set is: \" + costs);\n\t\t}\n\t\t//System.out.println(costs.get(0));\n\t\t//return null;\n\t\tint sum =0;\n\t\tfor(Integer e: addedPrices)\n\t\t\tsum += e;\n\t\treturn sum;\n\t}", "title": "" }, { "docid": "5698560e9315b8dd9776b980995279a7", "score": "0.5380399", "text": "public int findCheapestPrice(int n, int[][] flights, int src, int dst, int K) {\n //The goal of this problem is to find the lowest\n //cost from source to target\n //since here are all edges that is weighted\n //its better to use djkstra\n //we use PriorityQueue to store node idx, distance from beginning, ith stop\n\n //because of the limitation of max K stops, therefore\n //we have cases of broad nodeA at lowest cost but not lowest stop doesnt work\n //using PriorityQueue, idea is sorting with price ascending\n PriorityQueue<Stop> pq = new PriorityQueue<>(new Comparator<Stop>() {\n @Override\n public int compare(Stop a, Stop b) {\n return a.cost - b.cost;\n }\n });\n\n int minDst = Integer.MAX_VALUE;\n\n //since we are given n cities, we can use 2-d array to store all costs\n //costs[i][j] represents cost from i to j\n int[][] costs = new int[n][n];\n //each node can only broadcast once\n\n int[] dstCost = new int[n];\n int[] stop = new int[n];\n Arrays.fill(dstCost, Integer.MAX_VALUE);\n Arrays.fill(stop, Integer.MAX_VALUE);\n\n //the condition to add new element into pq is stop stop < k\n for (int i = 0; i < flights.length; i++) {\n costs[flights[i][0]][flights[i][1]] = flights[i][2];\n }\n\n //idx, cost, stop\n pq.offer(new Stop(src, 0, 0));\n while (!pq.isEmpty()) {\n Stop tmp = pq.poll();\n if (tmp.idx == dst) minDst = Math.min(minDst, tmp.cost);\n if (tmp.stop == K + 1) continue;\n\n for (int i = 0; i < n; i++) {\n if (costs[tmp.idx][i] == 0) {\n continue;\n }\n int newCost = tmp.cost + costs[tmp.idx][i];\n int newStop = tmp.stop + 1;\n if (newCost < dstCost[i]) {\n pq.offer(new Stop(i, newCost, newStop));\n dstCost[i] = newCost;\n stop[i] = Math.min(stop[i], newStop);\n } else if (newStop < stop[i]) {\n pq.offer(new Stop(i, newCost, newStop));\n stop[i] = newStop;\n }\n }\n }\n\n return minDst == Integer.MAX_VALUE? -1: minDst;\n }", "title": "" }, { "docid": "470c5ca328978867750c17b1efc748a4", "score": "0.53802335", "text": "public int bestClosingTime(String a) {\n int penalty = a.chars().filter(c -> c == 'Y').sum(), min = penalty, r = 0;\n for (int i = 0; i < a.length(); i++) {\n penalty += a.charAt(i) == 'N' ? 1 : -1;\n if (penalty < min) {\n min = penalty;\n r = i + 1;\n }\n }\n return r;\n }", "title": "" }, { "docid": "905236782a1efc85abc2afbb9b3bec4d", "score": "0.53726697", "text": "public int maxProfitLC(int[] prices) { //O(n)\n int minprice = Integer.MAX_VALUE;\n int maxprofit = 0;\n for (int price : prices) {\n if (price < minprice)\n minprice = price;\n else {\n maxprofit = Math.max(maxprofit, price - minprice);\n }\n }\n return maxprofit;\n }", "title": "" }, { "docid": "563194dcac452ab5b43ef692989d53fb", "score": "0.5367464", "text": "private boolean makeTrade(Transaction incoming, Transaction match) {\n System.out.println(\"SOLD!\");\n\n boolean ret;\n int quantity;\n\n if (match.getQuantity() > incoming.getQuantity()) { //Transaction can be entirely fulfilled\n quantity = incoming.getQuantity();\n\n match.setQuantity(match.getQuantity() - incoming.getQuantity());\n incoming.setQuantity(0);\n transactionDAO.update(match);\n ret = true;\n } else { // Transaction cannot be fulfilled completely, but match can be deleted\n quantity = match.getQuantity();\n\n incoming.setQuantity(incoming.getQuantity() - match.getQuantity());\n transactionDAO.delete(match);\n ret = false;\n }\n\n if (match.getAction() == 'A') {\n userDAO.updateUserFunds(match.getOwnerID(), 0.0 + quantity * match.getPrice());\n userDAO.updateUserFunds(incoming.getOwnerID(), 0.0 - quantity * match.getPrice());\n } else {\n userDAO.updateUserFunds(match.getOwnerID(), 0.0 - quantity * incoming.getPrice());\n userDAO.updateUserFunds(incoming.getOwnerID(), 0.0 + quantity * incoming.getPrice());\n }\n\n return ret;\n }", "title": "" }, { "docid": "ee3948e755e68326abcfbd14a73fa16f", "score": "0.5364698", "text": "static int maxProfitII(int[] prices) {\n\t\tint maxprofit = 0;\n\t\tfor (int i = 1; i < prices.length; i++) {\n\t\t\tif (prices[i] > prices[i - 1])\n\t\t\t\tmaxprofit += prices[i] - prices[i - 1];\n\t\t}\n\t\treturn maxprofit;\n\t}", "title": "" }, { "docid": "0b162893f42c56f498a53d1972cd2d03", "score": "0.53639877", "text": "private static void getMaxProfits(int[] priceArr) {\n if (priceArr.length == 1)\n return;\n\t\t\n\t\tList<Interval> list = new ArrayList<Interval>();\n\t\tint i = 0;\n\t\t// Find Local Minima. Note that the limit is (n-2) as we are\n // comparing present element to the next element. \n\t\twhile (i < priceArr.length - 1) {\n\t\t\twhile (i < priceArr.length - 1 && priceArr[i + 1] < priceArr[i])\n\t\t\t\ti++;\n\n\t\t\tif (i == priceArr.length - 1)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tInterval interval = new Interval();\n\t\t\tinterval.buy = i;\n\t\t\t\n\t\t\twhile (i < priceArr.length - 1 && priceArr[i + 1] > priceArr[i])\n\t\t\t\ti++;\n\n\t\t\tinterval.sell = i;\n\t\t\t\n\t\t\tlist.add(interval);\n\t\t\ti++;\n\t\t}\n\n\t\tfor (Interval interval : list)\n\t\t\tSystem.out.println(\"buy \" + interval.buy + \" sell \" + interval.sell);\n\t}", "title": "" }, { "docid": "2d4e0f0e4cf3c5cef153c9a05b122c6e", "score": "0.53634953", "text": "void topupBudget(Amount amount);", "title": "" }, { "docid": "a66c492cfa7a0292c56dfd9ea2f45d8e", "score": "0.5353633", "text": "public int maxProfit4(int[] prices, int fee) {\n if(prices.length <= 1) return 0;\n int[] buy = new int[prices.length];\n int[] hold = new int[prices.length];\n int[] skip = new int[prices.length];\n int[] sell = new int[prices.length];\n buy[0] = 0 - prices[0];\n hold[0] = 0 - prices[0];\n for(int i = 1; i < prices.length; i++){\n buy[i] = Math.max(skip[i-1], sell[i-1]) - prices[i];\n hold[i] = Math.max(buy[i-1], hold[i-1]);\n skip[i] = Math.max(skip[i-1], sell[i-1]);\n sell[i] = Math.max(buy[i-1], hold[i-1]) + prices[i] - fee;\n }\n // Get the max of all the 4 actions on the last day.\n int max = Math.max(buy[prices.length - 1], hold[prices.length - 1]);\n max = Math.max(skip[prices.length - 1], max);\n max = Math.max(sell[prices.length - 1], max);\n return Math.max(max, 0);\n }", "title": "" }, { "docid": "450682cdfc2769df2b8479856d1116d9", "score": "0.5348536", "text": "public int shoppingOffers_(List<Integer> price, List<List<Integer>> special, List<Integer> needs) {\n int[] p = new int[price.size()];\n int[] n = new int[needs.size()];\n for(int i=0; i<p.length; ++i){\n p[i] = price.get(i);\n n[i] = needs.get(i);\n min += p[i] * n[i];\n max = Math.max(max, n[i]);\n }\n int[][] s = new int[special.size()][p.length+1];\n for(int i=0; i<special.size(); ++i){\n for(int j=0; j<special.get(i).size(); ++j){\n s[i][j] = special.get(i).get(j);\n }\n }\n\n int[] u = new int[s.length];//each special can be used at most u[i] times\n calculate(s, u, n);\n int[] c = new int[s.length];//record current usage of each special\n /*\n for(int i : u){\n System.out.print(i + \"\\t\");\n }\n */\n dfs(s, p, n, u, c, 0);\n return min;\n }", "title": "" }, { "docid": "8475938f5db4a1d6c7c7cac0ac26b329", "score": "0.53361666", "text": "float getBuyRolloverInterest();", "title": "" }, { "docid": "b605b0a8c0b1fbeef80e6255f2d5e666", "score": "0.53350794", "text": "public void findTrueDwellTime() {\n if (getDwellTime() < minDwellTime) {\n double avgtime = (arrivalTime + departureTime) / 2;\n arrivalTime = (int) (avgtime - minDwellTime / 2);\n departureTime = (int) (avgtime + minDwellTime / 2);\n return;\n }\n\n // if we have only 2-4 transactions,and we're over the minimum\n // dwell time, we need to first find the median time, then find\n // the last alighting after that time\n // and set that as the departure time, and/or the first boarding\n // and\n // set that as the arrival time (only if it is less than the\n // arrival time)\n if (cepasTransactions.size() <= minTransactionClusterSize) {\n simpleDwellTimeAdjustment();\n return;\n }\n /*\n\t\t\t\t * cluster the transactions based on the deltaTapTimeLimit\n\t\t\t\t */\n int deltaTime = 0;\n int lastTime = (int) cepasTransactions.get(0).time;\n\n ArrayList<Integer> deltaTimes = new ArrayList<>();\n deltaTimes.add(0);\n ArrayList<ArrayList<CepasTransaction>> transactionClusters = new ArrayList<>();\n for (int i = 1; i < cepasTransactions.size(); i++) {\n CepasTransaction transaction = cepasTransactions.get(i);\n deltaTime = (int) (transaction.time - lastTime);\n deltaTimes.add(deltaTime);\n lastTime = (int) transaction.time;\n }\n ArrayList<CepasTransaction> transactionCluster = new ArrayList<>();\n transactionClusters.add(transactionCluster);\n for (int i = 0; i < deltaTimes.size(); i++) {\n deltaTime = deltaTimes.get(i);\n CepasTransaction transaction = cepasTransactions.get(i);\n if (deltaTime < maximumDeltaTapTimeForTransactionsBelongingToOneCluster || i == 0) {\n transactionCluster.add(transaction);\n } else {\n transactionCluster = new ArrayList<>();\n transactionCluster.add(transaction);\n transactionClusters.add(transactionCluster);\n }\n }\n // find the biggest cluster\n ArrayList<CepasTransaction> targetCluster = null;\n int maxSize = 1;\n for (ArrayList<CepasTransaction> cluster : transactionClusters) {\n if (cluster.size() > maxSize) {\n targetCluster = cluster;\n maxSize = cluster.size();\n } else {\n //with stricter boarding policies, a driver will probably wait before departing if more than one\n //passenger is fumbling for their card, so all transactions following the biggest cluster found so far\n //have to be added to that cluster, except for the last lone boarding, which is the fumbler.\n if (targetCluster != null && (transactionClusters.indexOf(cluster) < transactionClusters.size() - 1 || cluster.size() >= 2)) {\n targetCluster.addAll(cluster);\n maxSize = targetCluster.size();\n }\n }\n }\n if (targetCluster == null) {\n // no clusters bigger than 1, run the simplified procedure;\n simpleDwellTimeAdjustment();\n } else {\n Collections.sort(targetCluster);\n this.arrivalTime = (int) targetCluster.get(0).time;\n this.departureTime = (int) targetCluster.get(targetCluster.size() - 1).time;\n //make sure there are no boardings before the arrival time, nor any alightings after departure\n for (CepasTransaction t : this.cepasTransactions) {\n if (t.type.equals(CepasTransactionType.boarding))\n arrivalTime = (int) Math.min(arrivalTime, t.time);\n if (t.type.equals(CepasTransactionType.alighting))\n departureTime = (int) Math.max(departureTime, t.time);\n }\n if (getDwellTime() < minDwellTime) {\n int avgtime = (arrivalTime + departureTime) / 2;\n arrivalTime = avgtime - minDwellTime / 2;\n departureTime = avgtime + minDwellTime / 2;\n } else {\n //allow time for opening and closing of doors\n arrivalTime -= minDwellTime / 2;\n departureTime += minDwellTime / 2;\n }\n }\n }", "title": "" }, { "docid": "7404fddd2105a5846c62f8f9b21ca7b7", "score": "0.532941", "text": "public static void main(String[] args) {\n ArrayList<Integer> expenses = new ArrayList<>();\n expenses.add(500);\n expenses.add(1000);\n expenses.add(1250);\n expenses.add(175);\n expenses.add(800);\n expenses.add(120);\n\n// Create an application which solves the following problems.\n// How much did we spend?\n int sum = 0;\n for (int i = 0; i < expenses.size(); i++) {\n sum += expenses.get(i);\n }\n System.out.println(\"We spent: \" + sum);\n\n// Which was our greatest expense?\n int greatest = 0;\n for (int i = 0; i < expenses.size(); i++) {\n if (expenses.get(i) > greatest) {\n greatest = expenses.get(i);\n }\n }\n System.out.println(\"The greatest expence: \" + greatest);\n\n// Which was our cheapest spending?\n int cheapest = greatest;\n for (int i = 0; i < expenses.size(); i++) {\n if (expenses.get(i) < cheapest) {\n cheapest = expenses.get(i);\n }\n }\n System.out.println(\"The cheapest spend: \" + cheapest);\n\n// What was the average amount of our spendings?\n System.out.println(\"The average amount of our spending: \" + sum/expenses.size());\n }", "title": "" }, { "docid": "6ed9a9ec0033bd01205712e620f352df", "score": "0.53273606", "text": "static int bestSmallUnitToBuild(){\n try {\n int minQueue = 999999;\n int bestUnit = -1;\n for (int i = 1; i < 5; ++i) {\n if (i == 3) continue; //els tanks no son petits\n //mirem nomes lumberjacks, soldiers i scouts\n int a = rc.readBroadcast(Communication.unitChannels[i]);\n if (a < minQueue){\n minQueue = a;\n bestUnit = i;\n }\n }\n return bestUnit;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return -1;\n }", "title": "" }, { "docid": "618bead3d24bddb3ef1301def373b13a", "score": "0.5323718", "text": "void getBestDeal(){\n }", "title": "" }, { "docid": "81933ddc2347bcb633c713b889039715", "score": "0.5323", "text": "static int greedyApproach(int reqBottles, int capacity[]) {\n\n //not possible\n if (reqBottles <= 0) {\n return 0;\n }\n\n for (int i = capacity.length - 1; i >= 0; i--) {\n //compair sum of sorted bottle sizes and maximum capacity\n if (reqBottles >= capacity[i]) {\n return 1 + greedyApproach(reqBottles - capacity[i], Arrays.copyOf(capacity, capacity.length - 1));\n }\n }\n return 0;\n }", "title": "" }, { "docid": "1d82c2b7732f25a4fded69ff0f16a26a", "score": "0.53142834", "text": "public int maxProfit(int[] prices) {\r\n int profit1=0, profit2=0; \r\n for(int i=1; i<prices.length; i++){\r\n int copy=profit1;\r\n profit1=Math.max(profit1+prices[i]-prices[i-1], profit2);\r\n profit2=Math.max(copy, profit2);\r\n }\r\n return Math.max(profit1, profit2);\r\n }", "title": "" }, { "docid": "64f88642467c530954327f917cd7b1a9", "score": "0.531067", "text": "public Double buyTrade(Order buyOrder) {\n\t\tif(!buyOrder.isBuying() || buyOrder.getUnits() <= 0){\n\t\t\tthrow new IllegalArgumentException(\"buying a SELL order\");\n\t\t}\n\n\t\tString desiredSecurity = buyOrder.getSecurityId();\n\t\tDouble transactionValue = 0.0;\n\t\tPriorityBlockingQueue<Order> sellQueueForSecurity = sellMap.get(desiredSecurity);\n\t\tif(sellQueueForSecurity != null){\n\t\t\tsameBuyerSellerCheck(sellQueueForSecurity, buyOrder);\n\t\t\ttransactionValue = matchOrder(sellQueueForSecurity, buyOrder);\n\t\t}\n\t\tif(buyOrder.getUnits() > 0){\n\t\t\tif(buyMap.containsKey(desiredSecurity)){\n\t\t\t\tbuyMap.get(desiredSecurity).offer(buyOrder);\n\t\t\t}else{\n\t\t\t\t//creating and adding a new queue for an non-existing security.\n\t\t\t\tPriorityBlockingQueue<Order> pq = new PriorityBlockingQueue<Order>(INITIAL_CAPACITY, new BuySideComparator());\n\t\t\t\tpq.offer(buyOrder);\n\t\t\t\tbuyMap.put(desiredSecurity, pq);\n\t\t\t}\n\t\t}\n\t\tif(transactionValue == 0.0){\n\t\t\tlogger.info(\"BUY ORDER QUEUED {}\", buyOrder.getOrderId().toString());\n\t\t}\n\t\treturn transactionValue;\n\t}", "title": "" }, { "docid": "2cb3cd773d2ecce813997065e90ef2e4", "score": "0.5310088", "text": "private void updatePartialBuyOrderBuyLessThanSell(TradeOrder tradeOrder, TradeOrder sellOrder){\n\t\t//Get the Transaction record for this order\n\t\tOrderTransaction orderTransaction = null;\n\t\tList<OrderTransaction> listOrderTransaction = orderTransactionService.findAll(tradeOrder, tradeOrder.getSymbol());\n\t\t\n\t\tif (!listOrderTransaction.equals(null) && listOrderTransaction.size() > 0){\n\t\t\tlogger.info(\" Got an order transaction record \"+listOrderTransaction.size()+\" Reccords -- Let me do the processing\" );\n\t\t\t//Got an Order Transaction in\n\t\t\t//Do the process\n\t\t\torderTransaction = listOrderTransaction.get(0);\n\t\t\t\n\t\t\tDouble transactionTotal = ((sellOrder.getPrice() * tradeOrder.getUnfulfilledquantity()) + (sellOrder.getPrice() * tradeOrder.getUnfulfilledquantity() * FEEMULTIPLIER));\n\t\t\tDouble transactionFee = (sellOrder.getPrice() * tradeOrder.getUnfulfilledquantity() * FEEMULTIPLIER);\n\t\t\t//Increase the Transaction Order total\n\t\t\torderTransaction.setTotal(orderTransaction.getTotal().doubleValue() + transactionTotal);\n\t\t\torderTransaction.setFee(orderTransaction.getFee()+transactionFee);\n\t\t\t\n\t\t\t//Increase the transaction order quantity\n\t\t\torderTransaction.setQuantity(orderTransaction.getQuantity().longValue() + tradeOrder.getUnfulfilledquantity());\n\t\t\t\n\t\t\t//Set the sell order partial to it's quantity\n\t\t\tsellOrder.setPartialquantity(tradeOrder.getUnfulfilledquantity());\n\t\t\torderTransaction.getSourceOrderList().add(sellOrder);\n\t\t\t\n\t\t\torderTransactionService.update(orderTransaction);\n\t\t\t\n\t\t\ttradeOrder.setOrderStatus(OrderStatus.CLOSED);\n\t\t\t\n\t\t\ttradeOrderDao.update(tradeOrder);\n\t\t\t\n\t\t} else{\n\t\t\tlogger.info(\"No Order transaction record !!!\");\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "c88a8a2197b1e4c123264815f9610e45", "score": "0.53096515", "text": "public int maxProfit(int[] prices, int fee) {\n \n if(prices.length==0)\n return 0;\n \n int Ti0=0;\n int Ti1= -(int)1e9;\n \n for(int price: prices){\n\n Ti0=Math.max(Ti0,Ti1+price-fee);// I consider buying as a completion of one transaction for me\n \n Ti1=Math.max(Ti1,Ti0-price);\n }\n \n return Ti0;\n }", "title": "" }, { "docid": "7ed10514bf55a7b51899bfb8cc1be49d", "score": "0.5307928", "text": "public List<Integer> chooseCards() {\n List<Goods> sortedGoods = new ArrayList<>();\n List<Integer> result = new ArrayList<>();\n // reset his unused bribe money\n bribeMoney = 0;\n if (allLegal() || this.getMoney() <= Constants.MIN_BRIBE) {\n return super.chooseCards();\n } else {\n for (Integer aux : bag.getAssets()) {\n sortedGoods.add(allGoods.getGoodsById(aux));\n }\n AssetsProfitIDComparator assetsProfitIDComparator = new AssetsProfitIDComparator();\n Collections.sort(sortedGoods, assetsProfitIDComparator);\n int maxPenalty = 0;\n int illegalItems = 0;\n for (Goods temp : sortedGoods) {\n maxPenalty += temp.getPenalty();\n if (getMoney() - maxPenalty > 0 && result.size() < Constants.MAX_ITEMS) {\n result.add(temp.getId());\n if (temp.getType() == GoodsType.Illegal) {\n illegalItems++;\n }\n } else {\n // if he can't add anymore illegal but can still add legal\n maxPenalty -= temp.getPenalty();\n }\n }\n bribeMoney = 0;\n if (illegalItems <= 2) {\n this.bribeMoney = Constants.MIN_BRIBE;\n } else {\n if (illegalItems > 2) {\n this.bribeMoney = 2 * Constants.MIN_BRIBE;\n }\n }\n declaredID = 0;\n return result;\n }\n }", "title": "" }, { "docid": "015c69662a0a3fe755cb2d26a0fa0ec4", "score": "0.52995896", "text": "synchronized static int increaseProfit(int cheque) {\n marketProfit += cheque;\n return marketProfit;\n }", "title": "" }, { "docid": "a4c2a458bb83baceb35de21554b6f663", "score": "0.52986085", "text": "public int cutbackDebt(int amount);", "title": "" } ]
6a31825d0efecf9d948667439aa0ce6a
The rectangle can have its width changed. Does not affect height. When applied, the center coordinate will not be affected.
[ { "docid": "19a7397a48e9b522b389e638ae976bd0", "score": "0.0", "text": "public void setWidth(int w) {\n rect.x = rect.x + rect.width / 2 - w / 2;\n rect.width = w;\n }", "title": "" } ]
[ { "docid": "ceb22ca4ff4880e8d83744af76ee3d96", "score": "0.71352535", "text": "Rectangle(double newWidth, double newHeight) {\n\t\twidth = newWidth;\n\t\theight = newHeight;\n\t}", "title": "" }, { "docid": "647bcaa0fd521bb69e8d549952501ce7", "score": "0.711123", "text": "public void setBounds(Rectangle rectangle) {\n }", "title": "" }, { "docid": "e4af8b2e853ce59b700f6f5d14cf7076", "score": "0.69252473", "text": "public Rectangle() {\n super();\n width = 1.0;\n length = 1.0;\n }", "title": "" }, { "docid": "f3866fca5e38aa9726a5bf89c042d31f", "score": "0.68401897", "text": "@Override\n\tpublic void setRectangle(Rectangle rectangle)\n\t{\n\t}", "title": "" }, { "docid": "a85d0224374ccd10d85c65570848e1c8", "score": "0.6794953", "text": "public void setWidth(int w) {\n m_rectangle.width = w;\n }", "title": "" }, { "docid": "253f2d35b6e0329f9195e82e680dc0b4", "score": "0.67420906", "text": "public Rectangle( int width, int height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n selected = false;\r\n x = 0;\r\n y = 0;\r\n }", "title": "" }, { "docid": "f4b5e7d4eac09e3b77c94954c45a134c", "score": "0.66982764", "text": "public cgTaskRectangle()\n\t{\n\t\tsuper();\n\t\trectangle = new RoundRectangle2D.Float();\n\t}", "title": "" }, { "docid": "2d62865b4d597f57d4675f8cd1bbe0d6", "score": "0.6684697", "text": "public Rectangle (int width, int height) {\n this.width = width;\n this.height = height;\n }", "title": "" }, { "docid": "e1b2f6155ec500f8e8109a84e6871cd9", "score": "0.6670687", "text": "public void drawRect(int x, int y, int width, int height) {}", "title": "" }, { "docid": "cf63063a9f4e7c95ca91327cd6cc97ce", "score": "0.665413", "text": "public RectangleTool() {\n super();\n myCurX = getStartingX();\n myCurY = getStartingY();\n myWidth = 0;\n myHeight = 0;\n }", "title": "" }, { "docid": "184ebdce4ebc4e5a5a560d5d93f405a8", "score": "0.66401744", "text": "public Rectangle(Point upperLeft, double width, double height) {\r\n this.upperLeft = upperLeft;\r\n this.width = width;\r\n this.height = height;\r\n }", "title": "" }, { "docid": "933df0af7897c05f19ce867306448b28", "score": "0.6634983", "text": "public Rectangle(double newWidth, double newHeight) {\n //super(newWidth * newHeight, 2 * (newWidth + newHeight));\n width = newWidth;\n height = newHeight;\n area = height * width;\n perimeter = 2 * (height + width);\n }", "title": "" }, { "docid": "263e0582f3d5dfdf7ee84c608ef9dfc2", "score": "0.6584978", "text": "@Override\r\n public void handle(MouseEvent ev) {\n double var_x = ev.getSceneX() - x;\r\n double var_y = ev.getSceneY() - y;\r\n double new_x = width + var_x;\r\n double new_y = height + var_y;\r\n //modify width and height of rectangle in a certain range\r\n if(new_x > 10 && new_x < 240)\r\n rectangle.setWidth(new_x);\r\n if(new_y >10 && new_y < 240)\r\n rectangle.setHeight(new_y);\r\n }", "title": "" }, { "docid": "e710702fd288e1c79d73c60c63b74305", "score": "0.65659684", "text": "public Rectangle(Figure figure) {\n this.width = BigDecimal.valueOf(figure.getMinSize() / 5)\n .setScale(1, BigDecimal.ROUND_HALF_DOWN).doubleValue();\n this.height = BigDecimal.valueOf(figure.getMinSize() / 4)\n .setScale(1, BigDecimal.ROUND_HALF_DOWN).doubleValue();\n\n }", "title": "" }, { "docid": "83ca3dc23247f530864469119abae319", "score": "0.6534069", "text": "@Override\n\tpublic Rectangle getRect() {\n\t\treturn new Rectangle(xPos, yPos, width, 5);\n\t}", "title": "" }, { "docid": "9f9ebedfa0293e8782879a6f5d4f1163", "score": "0.65242946", "text": "Rectangle() {\n\t\t\n\t}", "title": "" }, { "docid": "bff474567798a0a12f77d32ff7caf677", "score": "0.65207374", "text": "public Rectangle(double width, double height) {\n this.width = width;\n this.height = height;\n }", "title": "" }, { "docid": "37c613d4f3089fcf4011ad7be70e0cdb", "score": "0.6516704", "text": "public Rectangle(Point upperLeft, double width, double height) {\r\n this.upperLeft = upperLeft;\r\n this.width = width;\r\n this.height = height;\r\n setEdges();\r\n this.fillColor = null;\r\n }", "title": "" }, { "docid": "5a224d38363556b9d748d80eb261a16b", "score": "0.65166867", "text": "public Rectangle(Rectangle rectangle) {\n\t\tthis(rectangle.getHeight(),rectangle.getWidth());\n\t\t\n\t}", "title": "" }, { "docid": "82a07cf8c5f587e797b9a538e1cfee58", "score": "0.6514434", "text": "public int getWidth() {\n return m_rectangle.width;\n }", "title": "" }, { "docid": "139b99c19182dddef1016c436deb6638", "score": "0.64975554", "text": "public Rectangle() {\n this.width = 0;\n this.height = 0;\n this.index = -1;\n this.x = 0;\n this.y = 0;\n this.rotated = false;\n this.fit = null;\n }", "title": "" }, { "docid": "8ea742a4351c8b7c7dcf0c3003634381", "score": "0.64779544", "text": "public Rectangle(Point upperLeft, double width, double height) {\n this.upperLeft = upperLeft;\n this.height = height;\n this.width = width;\n }", "title": "" }, { "docid": "cc19eb47b823f7331044513f4e9c9be3", "score": "0.6476181", "text": "protected Rect getRect(){\n return new Rect(x, y, x+width, y+width);\n }", "title": "" }, { "docid": "2479e2a9fa171cc825e1c0ab062c9506", "score": "0.6459165", "text": "public Rectangle(Location center, Location size) throws IllegalArgumentException {\n\t\tsuper(center);\n\t\tif(!isValidSize(size)) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid size for rectangle.\");\n\t\t}\n\t\tthis.setSize(size);\n\t}", "title": "" }, { "docid": "ca91a05ab204b2c016d3cbe543586eae", "score": "0.6452671", "text": "public Rectangle(double aWidth, double aHeight) {\r\n\t\tsuper();\r\n\t\twidth = aWidth;\r\n\t\theight = aHeight;\r\n\t}", "title": "" }, { "docid": "383950a337238323921c78acf99bebef", "score": "0.6416648", "text": "public NewRectangle(int length2, int width2) {\n newLength = length2;\n newWidth = width2;\n }", "title": "" }, { "docid": "31e5f398f5e113155d0bfadf11b4f1b3", "score": "0.64157563", "text": "public Rectangle(){\n\t\t\tL = 1;\n\t\t\tx = 0;\n\t\t\ty = 0;\n\t\t}", "title": "" }, { "docid": "9d6e5bfaa9a3c371818c656584d95621", "score": "0.63989276", "text": "public void createRectangle(){\n }", "title": "" }, { "docid": "077a7d44a1691f8fbddd10e4623b90b4", "score": "0.6394857", "text": "public Rectangle(double height,double width) {\n\t\tsuper(width);\n\t\tthis.height = height;\n\t\t\n\t}", "title": "" }, { "docid": "65373fd8d1de72880505315d751fec30", "score": "0.6382448", "text": "public Rectangle() {\n\t\tthis(minValue);\t\t\n\t}", "title": "" }, { "docid": "f10b20be6065686d02d998139dccc1e6", "score": "0.6359648", "text": "public Rectangle getBounds(){\n return new Rectangle((int) x, (int) y,47,50);\n }", "title": "" }, { "docid": "eaacd548f6b9a9692092e47584856f47", "score": "0.63460875", "text": "public Recta(){\r\n height = 30;\r\n width = 70;\r\n xPosition = 10;\r\n yPosition = 10;\r\n color = \"green\";\r\n isVisible = false;\r\n }", "title": "" }, { "docid": "bb0262b3b69da5b087636ac4fe9b321d", "score": "0.6327807", "text": "public Rectangle getRect(){return r;}", "title": "" }, { "docid": "d5d292cd430695483956d750a3783008", "score": "0.6305952", "text": "Rectangle getRectangle() {\n return new Rectangle(pos.x, pos.y, cellCols * cellSize, cellRows * cellSize);\n }", "title": "" }, { "docid": "d61cf35540ba8bf2ed599ffc6e1af5a3", "score": "0.6299937", "text": "public Rectangle(int width, int height, Point anchor, Color color) {\n this.width = width;\n this.height = height;\n this.anchor = anchor;\n this.color = color;\n }", "title": "" }, { "docid": "69dfe7f0ef99e612ffa5d0b5dbd6466e", "score": "0.6288527", "text": "public Rectangle getBounds(){\r\n return new Rectangle((int)x, (int)y+32,16,16);\r\n \r\n }", "title": "" }, { "docid": "a3803f0bb0129e12dacd3677cd340de5", "score": "0.62634784", "text": "public RectangleInsets() { this(1.0D, 1.0D, 1.0D, 1.0D); }", "title": "" }, { "docid": "6b9d1d7321298dd0df8a62f88b35c444", "score": "0.6258659", "text": "@Override\n public Rectangle getBounds() {\n return new Rectangle(x, y, 32, 32);\n }", "title": "" }, { "docid": "6438ac0b88d6c8d31b13cfb3c9d08995", "score": "0.625559", "text": "public Rectangle(Point upperLeft, double width, double height) {\r\n this.upperLeft = upperLeft;\r\n this.width = width;\r\n this.height = height;\r\n this.upperRight = new Point(this.upperLeft.getX() + this.width, this.upperLeft.getY());\r\n this.lowerLeft = new Point(this.upperLeft.getX(), this.upperLeft.getY() + this.height);\r\n this.lowerRight = new Point(upperRight.getX(), lowerLeft.getY());\r\n }", "title": "" }, { "docid": "4a32b1d59e46e9bc48a09456ca4e9bd8", "score": "0.6254198", "text": "public ComparableRectangle(double width, double height) {\n super(width, height);\n }", "title": "" }, { "docid": "a83818208369afe36a0ad49b99af1cbb", "score": "0.6249213", "text": "@Override\n public Rectangle hitbox() {\n return new Rectangle((int) x, (int) y, 4, 4);\n }", "title": "" }, { "docid": "fc521edfb51415cd7fcafaa3d3e16c25", "score": "0.6241421", "text": "public cgTaskRectangle(Point shapeCenter, Dimension size) throws IllegalArgumentException\n\t{\n\t\tsuper(shapeCenter, size);\n\n\t\trectangle = new RoundRectangle2D.Float(super.shapeCenter.x, super.shapeCenter.y, this.size.width, this.size.height, this.arcWidth, this.arcHeight);\n\t}", "title": "" }, { "docid": "403225e225b06c585ce8a5daf6a868ed", "score": "0.62315816", "text": "public CenteredRectLattice(float width,float height){\n super(width, height);\n }", "title": "" }, { "docid": "efac432e3c80969b0da78d03f3db231a", "score": "0.6231253", "text": "public RectBoundingBox(final Rectangle rectangle) {\n this.p0 = new P2d(rectangle.getX(), rectangle.getY());\n this.p1 = new P2d(rectangle.getWidth() * SystemVariables.SCALE_X, rectangle.getHeight() * SystemVariables.SCALE_Y);\n this.width = rectangle.getWidth();\n this.height = rectangle.getHeight();\n this.transform = new AffineTransform();\n }", "title": "" }, { "docid": "889d635136db0a8ee945c1d8a9f7e4da", "score": "0.62167054", "text": "void update(Rectangle rectangle);", "title": "" }, { "docid": "b0b2af9db4773feb187b4a29f72c0063", "score": "0.6214833", "text": "public Rectangle()\n {\n this(0, 0, 0, 0);\n }", "title": "" }, { "docid": "8b4c0527428669444448016cf3574187", "score": "0.6213767", "text": "public Rectangle(int len, int w)\n {\n length = len;\n width = w;\n }", "title": "" }, { "docid": "29ccd54bb1a11301096de2ca2fb909f6", "score": "0.6208167", "text": "void devDrawRectangle(int x, int y, int width, int height, Color color);", "title": "" }, { "docid": "fb13a9d9b1d270d39b10789b0b6eb713", "score": "0.6197243", "text": "public Rectangle(double x, double y, double width, double height, Color color) {\r\n\t\tsuper(new BoundingBox(new Point(x, y), width, height), color, true);\r\n\r\n\t}", "title": "" }, { "docid": "e0d5d6a5401a1f76ac90eddfa6fe04bf", "score": "0.6197233", "text": "public interface Rectangle {\n\n\t/** Gets the width of the rectangle.\n\t * \n\t * @return Rectangle width\n\t */\n\tpublic double getWidth();\n\t\n\t/** Gets the height of the rectangle\n\t * \n\t * @return Rectangle height\n\t */\n\tpublic double getHeight();\n\t\n\t/** Gets the origin X coordinate\n\t * \n\t * @return Origin X\n\t */\n\tpublic double getPositionX();\n\t\n\t/** Gets the origin Y coordinate.\n\t * \n\t * @return Origin Y\n\t */\n\tpublic double getPositionY();\n\t\n\t/** Gets the extent point X coordinate.\n\t * \n\t * @return Extent X\n\t */\n\tpublic double getPositionX2();\n\t\n\t/** Gets the extent point Y coordinate\n\t * \n\t * @return Extent Y\n\t */\n\tpublic double getPositionY2();\n\t\n\t/** Sets the value of this rectangle to another rectangle.\n\t * \n\t * @param other Other rectangle\n\t */\n\tpublic void set(Rectangle other);\n\t\n\t/** Tests if this rectangle is equal to another rectangle, comparing\n\t * their positions and sizes.\n\t * \n\t * @param other Rectangle to compare to\n\t * @return If the rectangles are identical\n\t */\n\tpublic default boolean equals(Rectangle other) {\n\t\tif (other == this) return true;\n\t\treturn getPositionX() == other.getPositionX() &&\n\t\t\t\tgetPositionY() == other.getPositionY() &&\n\t\t\t\tgetWidth() == other.getWidth() &&\n\t\t\t\tgetHeight() == other.getHeight();\n\t}\n\t\n}", "title": "" }, { "docid": "bbc9ac43b08058e672471e09ee294859", "score": "0.618821", "text": "public void updateDrawableRect(int compWidth, int compHeight) {\r\n int x = currentRect.x;\r\n int y = currentRect.y;\r\n int width = currentRect.width;\r\n int height = currentRect.height;\r\n\r\n //Make the width and height positive, if necessary.\r\n if (width < 0) {\r\n width = 0 - width;\r\n x = x - width + 1;\r\n if (x < 0) {\r\n width += x;\r\n x = 0;\r\n }\r\n }\r\n if (height < 0) {\r\n height = 0 - height;\r\n y = y - height + 1;\r\n if (y < 0) {\r\n height += y;\r\n y = 0;\r\n }\r\n }\r\n\r\n //The rectangle shouldn't extend past the drawing area.\r\n if ((x + width) > compWidth) {\r\n width = compWidth - x;\r\n }\r\n if ((y + height) > compHeight) {\r\n height = compHeight - y;\r\n }\r\n\r\n //Update rectToDraw after saving old value.\r\n if (rectToDraw != null) {\r\n previousRectDrawn.setBounds(\r\n rectToDraw.x, rectToDraw.y,\r\n rectToDraw.width, rectToDraw.height);\r\n rectToDraw.setBounds(x, y, width, height);\r\n } else {\r\n rectToDraw = new Rectangle(x, y, width, height);\r\n }\r\n }", "title": "" }, { "docid": "15a5e5e6340c40dfe83d9bf448cfc491", "score": "0.6186604", "text": "public RectangleInsets(double top, double left, double bottom, double right) { this(UnitType.ABSOLUTE, top, left, bottom, right); }", "title": "" }, { "docid": "b5cc830923fbbb41061eb27179007f5b", "score": "0.61858445", "text": "@Override\n public Rectangle getRect() {\n return null;\n }", "title": "" }, { "docid": "5ea448c8576ac2340611f3abd5147020", "score": "0.6165179", "text": "public static TextureCoordRect buildFromCenter(float width, float height)\n\t{\n\t\tTextureCoordRect rect=new TextureCoordRect(0.5f - width * 0.5f, 0.5f - height * 0.5f, width, height);\n\t\t\n\t\treturn rect;\n\t}", "title": "" }, { "docid": "4566ac53a2cf266d7ee4e8c7117c7cd5", "score": "0.6151159", "text": "@Override\n public Rectangle getBoundingBox() {\n return new Rectangle(xPos, yPos, 32, 32);\n }", "title": "" }, { "docid": "4f6974b48bd90f3cb0a3e5b9ac6390b5", "score": "0.6125145", "text": "public Rect(@NonNull Rect r) {\n set(r);\n }", "title": "" }, { "docid": "0d7dc63f8850074f6e3c366163154b82", "score": "0.6123848", "text": "public rectangle() { //creates a constructor\r\n\t\tsideLen =new double[4]; //initializes the array sideLen to have 4 spots\r\n\t}", "title": "" }, { "docid": "821acadd4c7435aed78191738eb37ef1", "score": "0.6109717", "text": "@Override\n\tpublic Component setBounds(int x, int y, int span_x, int span_y) {\n\t\treturn v;\n\t}", "title": "" }, { "docid": "6c2ea068f1552a2c766addf2692abd5f", "score": "0.61061907", "text": "public abstract Rectangle getValueBounds ();", "title": "" }, { "docid": "f4c22a34374aeb92f0ceb05c2b7fa700", "score": "0.6104407", "text": "public Rectangle(double width, double length) {\n super();\n this.width = width;\n this.length = length;\n }", "title": "" }, { "docid": "ef75cace2eb74fb27e3c650b822b1792", "score": "0.60973203", "text": "public Rectangle(Point upperLeft, double width, double height, java.awt.Color fillColor) {\r\n this.upperLeft = upperLeft;\r\n this.width = width;\r\n this.height = height;\r\n setEdges();\r\n this.fillColor = fillColor;\r\n\r\n }", "title": "" }, { "docid": "9fbfd0838fcc60a339c892e79d0238a0", "score": "0.6078434", "text": "Rectangle getCollisionRectangle();", "title": "" }, { "docid": "9fbfd0838fcc60a339c892e79d0238a0", "score": "0.6078434", "text": "Rectangle getCollisionRectangle();", "title": "" }, { "docid": "9fbfd0838fcc60a339c892e79d0238a0", "score": "0.6078434", "text": "Rectangle getCollisionRectangle();", "title": "" }, { "docid": "d6330e0c3f1d0b825b31f36fdaa36b37", "score": "0.6077518", "text": "public Rectangle(double x, double y) {\n\t\tlength = x;\n\t\twidth = y;\n\t}", "title": "" }, { "docid": "e6b0ef7aae6797d0140930bd28516e91", "score": "0.6069748", "text": "int getRectangleX();", "title": "" }, { "docid": "23475da34b4c06286a45be9740cbee4c", "score": "0.60676044", "text": "public Rect getBounds(){\n return new Rect(x,y,width,height);\n }", "title": "" }, { "docid": "44d849eb627d68bbaab38240af595579", "score": "0.6065861", "text": "public RectangleArea(int width, int height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t}", "title": "" }, { "docid": "ba1bea164e9c4de2c153b5937906aaed", "score": "0.6062181", "text": "public MyRectangle(String name, Posn location, Posn dimensions, MyColor color,\n Posn lifetime) {\n super(name, location, dimensions, color, lifetime);\n this.type = ShapeType.RECTANGLE;\n }", "title": "" }, { "docid": "03c7b39caae9f7865a8f515d6572282a", "score": "0.6058212", "text": "public void setX(int nx) {\n m_rectangle.x = nx;\n }", "title": "" }, { "docid": "912be146a069d77ce753d713dfe854c7", "score": "0.6044267", "text": "public RectBoundingBox() {\n this.p0 = new P2d(0, 0);\n this.p1 = new P2d(0, 0);\n this.transform = new AffineTransform();\n }", "title": "" }, { "docid": "856229aed130cc2e4e262461c6c82878", "score": "0.6029114", "text": "@Override\n\tpublic Rectangle getBoundingBox() {\n\t\treturn new Rectangle(x1, y1, width, height);\n\t}", "title": "" }, { "docid": "a8b63af83c40aecd26ace07ba8569d44", "score": "0.6026861", "text": "public void setHeight(int h) {\n m_rectangle.height = h;\n }", "title": "" }, { "docid": "af0fbfc36989fcc9df437cee9a58f318", "score": "0.60242486", "text": "public Rect(int x, int y, int w, int h) {\n set(x, y, w, h);\n }", "title": "" }, { "docid": "7205823b4dd5db06439ec2a763d3cf7c", "score": "0.60213166", "text": "public BasicRectangle(double x, double y, double width, double height) {\n\t\tsuper(new Rectangle2D.Double(x, y, width, height));\n\t}", "title": "" }, { "docid": "f9653ff53a7a8460b2a765526acc8bf4", "score": "0.6020522", "text": "public YellowBox(float x, float y, int width, int height) {\n super(x, y, width, height);\n }", "title": "" }, { "docid": "1582f72ec03d07dcdff0f0d45cdbdb43", "score": "0.6018389", "text": "public Rectangle() {\n int height = Greenfoot.getRandomNumber(120);\n int width = Greenfoot.getRandomNumber(120);\n if(height < 50) height = 50;\n if(width < 50) width = 50;\n GreenfootImage image = new GreenfootImage(width, height);\n image.setColor(Color.RED);\n image.fill();\n setImage(image);\n }", "title": "" }, { "docid": "53119e1cdaecc56ff572518c1c452c99", "score": "0.6017107", "text": "@Override\n public void setLayoutArea(double x, double y, double width, double height) {\n }", "title": "" }, { "docid": "e6c1d6676321d86950f89d44b38fcded", "score": "0.60165036", "text": "@Override\n\tpublic void draw_rectangle(int x, int y, int w, int h, int color) {\n\t\tg.setColor(convertColor(color));\n\t\tg.fillRect(x, y, w, h);\n\t}", "title": "" }, { "docid": "6bcc6cc07173b29d7d42a405a04acefc", "score": "0.60111994", "text": "public Rectangle Rectangle(Rectangle rec) {\n\t\t\t\n\t\t\t \n\t\t\t this.width = rec.getWidth();\n\t\t\t this.height= rec.getHeight();\n\t\t\t \n\t\t\t return this;\n\t\t}", "title": "" }, { "docid": "9962028bb707a4e9a390344168b543fa", "score": "0.6006751", "text": "public BasicRectangle(Rectangle2D rect) {\n\t\tsuper(rect);\n\t}", "title": "" }, { "docid": "1f3f6582db0940bfbfb8454f9a8b62e7", "score": "0.59970444", "text": "public Rectangle getBound() {\n\t\trectBound = new Rectangle();\n\t\trectBound.setX(posX);\n\t\trectBound.setY(posY);\n\t\trectBound.setWidth(width*1.2);\n\t\trectBound.setHeight(height*1.2);\n\t\treturn rectBound;\n\t}", "title": "" }, { "docid": "71fb540b7eefb41b87439a90d63e77cf", "score": "0.59959453", "text": "public Rectangle(GeometricalForm f, int width, int height, Color c){\n\t\tsuper(f,c);\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t}", "title": "" }, { "docid": "4e57b6ab8916f0d843c4ee0470c50552", "score": "0.5992115", "text": "@Override\n public void updateShape(final double theEndX, final double theEndY) {\n updateWidth(theEndX);\n updateHeight(theEndY);\n }", "title": "" }, { "docid": "89facc72e90e425cf4e747b1c96b14e2", "score": "0.59905696", "text": "protected Rectangle(Point lowerLeft, Point upperRight) {\n\t\tthis.lowerLeft = lowerLeft;\n\t\tthis.upperRight = upperRight;\n\t}", "title": "" }, { "docid": "148a5ce88134d9ed3a2a863bd403d5c7", "score": "0.5979322", "text": "public Rectangle getRect(){\n\t\treturn rect;\n\t}", "title": "" }, { "docid": "a6881801099014095359e5580d61062d", "score": "0.5976802", "text": "BuilderRectangleSign(){}", "title": "" }, { "docid": "631761c3fe8e1363627311ece2d723aa", "score": "0.5964432", "text": "public BackgroundPiece(double size, double x, double y){\n rectangle = new Rectangle(size, size);\n setPrefWidth(size);\n setPrefHeight(size);\n rectangle.setFill(Color.LIGHTGRAY);\n rectangle.setStroke(Color.BLACK);\n getChildren().add(rectangle);\n this.setTranslateX(x);\n this.setTranslateY(y);\n }", "title": "" }, { "docid": "c7a7edd12908e8ca9f2fe6ed34c4aa99", "score": "0.59632295", "text": "public void set(Rectangle other);", "title": "" }, { "docid": "2b3dcf0cd5a1b9aa6d38928c003f9cb3", "score": "0.59621674", "text": "public void drawRoundRect(int x, int y, int width, int height, int ellipseWidth, int ellipseHeight) {}", "title": "" }, { "docid": "166e2aa965a6e043f055a39fda5a4d8f", "score": "0.5952791", "text": "public Rectangle(int xPosition, int yPosition, int theWidthSize, int theHeightSize, String color) {\r\n this.xPosition = xPosition;\r\n this.yPosition = yPosition;\r\n this.widthSize = theWidthSize;\r\n this.heightSize = theHeightSize;\r\n this.color = color;\r\n draw();\r\n }", "title": "" }, { "docid": "c0ec7abf03232bb33bfd60469aae33c0", "score": "0.594698", "text": "public URect getBox() {\n\t\treturn new URect(x,y,w,h);\n\t}", "title": "" }, { "docid": "bffc58ebaa52dec031ce8fefef3ef3e6", "score": "0.5941276", "text": "public Rectangle getBounds() {\n\t\treturn new Rectangle((int) x, (int) y, 50, 80);\n\t}", "title": "" }, { "docid": "cf898ae817038cbd94a8e931c38fd2f7", "score": "0.5940434", "text": "public Rectangle()\n {\n \n }", "title": "" }, { "docid": "c25e91625c4702aa7c9ae5ee37376757", "score": "0.5939569", "text": "int getRectangleY();", "title": "" }, { "docid": "4c3cd6ef26ae5858a8b3b116ead2676d", "score": "0.59341276", "text": "public abstract Rect caculateRegion();", "title": "" }, { "docid": "7d69ec6ad8ad7ef7a890f50f3f128953", "score": "0.59284323", "text": "public Rectangle(double minX, double maxX, double maxY, double minY) {\n this(minX, maxX, maxY, minY, Double.NaN, Double.NaN);\n }", "title": "" }, { "docid": "d73d8d8cdb6b187b843b815044114cf2", "score": "0.5927478", "text": "@Override\r\n\tdouble getArea() {\n\t\treturn width*height;\r\n\t}", "title": "" }, { "docid": "f4c32520053f299b79bffe5fdd41dd5e", "score": "0.5923344", "text": "@Override\n public Rectangle getBoundingBox() {\n return new Rectangle(0, 0, 32, 32);\n }", "title": "" }, { "docid": "0c743a0143e86754440c8f2115429208", "score": "0.59147674", "text": "private Rectangle(final Location lowerLeft, final Location upperRight)\n {\n super(lowerLeft, new Location(upperRight.getLatitude(), lowerLeft.getLongitude()),\n upperRight, new Location(lowerLeft.getLatitude(), upperRight.getLongitude()));\n this.lowerLeft = lowerLeft;\n this.upperRight = upperRight;\n }", "title": "" }, { "docid": "e57869698459ef5d49268465e53a263a", "score": "0.59081197", "text": "public Rectangle getRectangle() {\r\n\t\treturn new Rectangle(x,y,width,height);\r\n\t}", "title": "" } ]
b30bc94386d6f731fff48c802708c8dd
A URL of the input message type. optional string request_type_url = 2;
[ { "docid": "9995ab97cabc8f12aee523720c8d96bf", "score": "0.5823357", "text": "public com.google.protobuf.ByteString\n getRequestTypeUrlBytes() {\n return instance.getRequestTypeUrlBytes();\n }", "title": "" } ]
[ { "docid": "58daf21c75cc634f1dfcf67fc1f32e06", "score": "0.7069199", "text": "public java.lang.String getRequestTypeUrl() {\n return requestTypeUrl_;\n }", "title": "" }, { "docid": "a4b269bb692307794b44f393b7b7974a", "score": "0.7036235", "text": "private void setRequestTypeUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n requestTypeUrl_ = value;\n }", "title": "" }, { "docid": "1d07a291e516dc4977eeea7a157fada5", "score": "0.6702154", "text": "public Builder setRequestTypeUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setRequestTypeUrl(value);\n return this;\n }", "title": "" }, { "docid": "5b5dd53e7bd95b0cca791c4c841e37f5", "score": "0.6700411", "text": "private void setRequestTypeUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n requestTypeUrl_ = value.toStringUtf8();\n }", "title": "" }, { "docid": "e75038edc8fceb174ea20124d1983712", "score": "0.6691469", "text": "public void setRequest_type(String request_type) {\n this.request_type = request_type;\n }", "title": "" }, { "docid": "cb714f1c2c7a4d879c9ca39137047975", "score": "0.66512865", "text": "public java.lang.String getRequestTypeUrl() {\n return instance.getRequestTypeUrl();\n }", "title": "" }, { "docid": "d663ddaa4298ad7623d480a7df575803", "score": "0.64719677", "text": "public void setRequestType(String requestType){\n this.requestType = requestType;\n }", "title": "" }, { "docid": "4439dfb582e85da7c878ea4dafa98f00", "score": "0.6269046", "text": "protomsg.CoincheMsg.ServerMsg.TypeRequestServer getTypeRequest();", "title": "" }, { "docid": "0dff18907878ffb23e4317480ae1568e", "score": "0.6222066", "text": "protomsg.CoincheMsg.ClientMsg.TypeRequestClient getTypeRequest();", "title": "" }, { "docid": "d3c10b186e61a810c2bd98783d280c0b", "score": "0.62100863", "text": "public com.google.protobuf.ByteString\n getRequestTypeUrlBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(requestTypeUrl_);\n }", "title": "" }, { "docid": "22a48c47a0151cde6482ef74b0028ebc", "score": "0.6171153", "text": "public String getRequest_type() {\n return request_type;\n }", "title": "" }, { "docid": "3fca5644c6557bf7036711d3ba70787b", "score": "0.6164788", "text": "java.lang.String getTypeUrl();", "title": "" }, { "docid": "6629bfb46fcf2343e4f771f79a91d561", "score": "0.59709066", "text": "@java.lang.Override\n public java.lang.String getRequestingUrl() {\n java.lang.Object ref = requestingUrl_;\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 requestingUrl_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "66090ff6a0eac03b6b804610597a2221", "score": "0.59595037", "text": "public Builder setRequestTypeUrlBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setRequestTypeUrlBytes(value);\n return this;\n }", "title": "" }, { "docid": "c1a7d5456c3ff39fe61c7659f5fb9b71", "score": "0.59227616", "text": "@java.lang.Override\n public java.lang.String getRequestUrl() {\n java.lang.Object ref = requestUrl_;\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 requestUrl_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "99f3fb5c9f66e95886f452bb42118c9d", "score": "0.58910656", "text": "public String getRequestType() {\n return this.requestType;\n }", "title": "" }, { "docid": "60170e7fa405cf8677cb7f3c570a5ed6", "score": "0.5857605", "text": "public java.lang.String getRequestUrl() {\n java.lang.Object ref = requestUrl_;\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 requestUrl_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "3446d456bbca206434557e0dc3b3a0d0", "score": "0.58454335", "text": "private void clearRequestTypeUrl() {\n \n requestTypeUrl_ = getDefaultInstance().getRequestTypeUrl();\n }", "title": "" }, { "docid": "7bda75b4fdf152c4f458fdd228cde70c", "score": "0.5827554", "text": "public java.lang.String getRequestingUrl() {\n java.lang.Object ref = requestingUrl_;\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 requestingUrl_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "1f71085ceea2408772520f409d0d4582", "score": "0.57708013", "text": "public interface Request extends Message {\n\t\n\t/**\n\t * This is the URI that is equivalent to the URL of the target Resource \n\t * endpoint: the destination address of the Request.\n\t * @return \n\t */\n\tpublic URI getEndpointURI();\n\t\n\tpublic Verb getVerb();\n\t\n\tpublic Map<String, Object> getURLParameters();\n\t\n\t\n\t/**\n\t * Returns a new instance with its URI replaced by the URI corresponding\n\t * to the new destination URI. Main purpose is to create separate \n\t * instances for distribution by Resource Folder\n\t * @param destination\n\t * @return \n\t */\n\tpublic Request delegate(URI endpointURI);\n\t\n}", "title": "" }, { "docid": "2c42d59d96448066c4f3a265bcbe877d", "score": "0.57474065", "text": "public void postRequest(String url, final String type) {\n RequestQueue queue = Volley.newRequestQueue(this);\n StringRequest request = new StringRequest(Request.Method.GET, url,\n new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n Log.d(\"Response\", response);\n\n try {\n JSONObject json_response = new JSONObject(response);\n\n processData(json_response.getBoolean(\"success\"), json_response.getString(\"message\"), json_response.getJSONObject(\"data\"), type);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"Error.Response\", error.toString());\n }\n }\n ) {\n @Override // We have to override here so that our own parameters are used\n protected Map<String, String> getParams()\n {\n return parameters;\n }\n };\n queue.add(request);\n }", "title": "" }, { "docid": "8d962143b48fd4c14b6b732a069ba222", "score": "0.5720261", "text": "public int getRequestType() {\n return requestType;\n }", "title": "" }, { "docid": "431d86b2d332171593a345e56aee705e", "score": "0.5712847", "text": "net.iGap.proto.ProtoRequest.Request getRequest();", "title": "" }, { "docid": "431d86b2d332171593a345e56aee705e", "score": "0.5712847", "text": "net.iGap.proto.ProtoRequest.Request getRequest();", "title": "" }, { "docid": "431d86b2d332171593a345e56aee705e", "score": "0.5712847", "text": "net.iGap.proto.ProtoRequest.Request getRequest();", "title": "" }, { "docid": "431d86b2d332171593a345e56aee705e", "score": "0.5712847", "text": "net.iGap.proto.ProtoRequest.Request getRequest();", "title": "" }, { "docid": "5b40b06d3cd44c2a44ec405520af98e6", "score": "0.5708299", "text": "public OriginCA request_type(String request_type) {\n this.request_type = request_type;\n return this;\n }", "title": "" }, { "docid": "ec52a94960563d845de23b22491c593a", "score": "0.57042646", "text": "java.lang.String getRequestUrl();", "title": "" }, { "docid": "e57aa5c51ecf19a6a530b0c5e21c85d1", "score": "0.56919885", "text": "private String getApiUrlPath(Request request, String type) {\n //Use the collection type in the path. This is defined in the api.xml file\n StringBuilder base = new StringBuilder(getRepository().getUrlBase());\n if (type.equals(ARG_ACTION_COMPARE)) {\n base.append(\"/model/compare\");\n } else if (type.equals(ARG_ACTION_MULTI_COMPARE)) {\n base.append(\"/model/multicompare\");\n } else if (type.equals(ARG_ACTION_ENS_COMPARE)) {\n base.append(\"/model/enscompare\");\n } else if (type.equals(ARG_ACTION_CORRELATION)) {\n base.append(\"/model/correlation\");\n } else if (type.equals(ARG_ACTION_TIMESERIES)) {\n base.append(\"/model/timeseries\");\n } else if (type.equals(ARG_ACTION_MULTI_TIMESERIES)) {\n base.append(\"/model/multitimeseries\");\n } else if (type.equals(ARG_ACTION_TEST)) {\n base.append(\"/model/test\");\n }\n if (request.defined(ARG_FREQUENCY)) {\n base.append(\"?\");\n base.append(getFrequencyArgs(request));\n }\n\n return base.toString();\n }", "title": "" }, { "docid": "7145cdb1b3db163a8e610357652ce3d1", "score": "0.5664568", "text": "public abstract String getRequestUrl();", "title": "" }, { "docid": "df2d12015141af0818fd434effcd492f", "score": "0.5649838", "text": "private void setResponseTypeUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n responseTypeUrl_ = value;\n }", "title": "" }, { "docid": "b385c406b54172778ebf34f0b200900c", "score": "0.56382686", "text": "public protomsg.CoincheMsg.ClientMsg.TypeRequestClient getTypeRequest() {\n protomsg.CoincheMsg.ClientMsg.TypeRequestClient result = protomsg.CoincheMsg.ClientMsg.TypeRequestClient.valueOf(typeRequest_);\n return result == null ? protomsg.CoincheMsg.ClientMsg.TypeRequestClient.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "90a30d23c1c83150ca647b513f329db7", "score": "0.56366205", "text": "public protomsg.CoincheMsg.ClientMsg.TypeRequestClient getTypeRequest() {\n protomsg.CoincheMsg.ClientMsg.TypeRequestClient result = protomsg.CoincheMsg.ClientMsg.TypeRequestClient.valueOf(typeRequest_);\n return result == null ? protomsg.CoincheMsg.ClientMsg.TypeRequestClient.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "1b7bac3be1e91431e1764b990f4cc5e7", "score": "0.56229347", "text": "public protomsg.CoincheMsg.ServerMsg.TypeRequestServer getTypeRequest() {\n protomsg.CoincheMsg.ServerMsg.TypeRequestServer result = protomsg.CoincheMsg.ServerMsg.TypeRequestServer.valueOf(typeRequest_);\n return result == null ? protomsg.CoincheMsg.ServerMsg.TypeRequestServer.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "16cacb07126321c8183a0ba94b542b83", "score": "0.56168246", "text": "private int getRequestType(HttpRequestType requestType) {\n int request = 0;\n switch (requestType) {\n case POST:\n request = Request.Method.POST;\n break;\n case PUT:\n request = Request.Method.PUT;\n break;\n case DELETE:\n request = Request.Method.DELETE;\n break;\n case GET:\n request = Request.Method.GET;\n break;\n }\n return request;\n }", "title": "" }, { "docid": "6c7e914d35b2806fbfd4d47d1c1817ab", "score": "0.56086814", "text": "private void parseType() {\n String type = header.getMessageType();\n\n if (type.equalsIgnoreCase(\"PUTCHUNK\")) {\n messageType = MessageTypes.PUTCHUNK;\n return;\n }\n if (type.equalsIgnoreCase(\"STORED\")) {\n messageType = MessageTypes.STORED;\n return;\n }\n\n if (type.equalsIgnoreCase(\"GETCHUNK\")) {\n messageType = MessageTypes.GETCHUNK;\n return;\n }\n if (type.equalsIgnoreCase(\"CHUNK\")) {\n messageType = MessageTypes.CHUNK;\n return;\n }\n\n if (type.equalsIgnoreCase(\"DELETE\")) {\n messageType = MessageTypes.DELETE;\n return;\n }\n\n if (type.equalsIgnoreCase(\"REMOVED\")) {\n messageType = MessageTypes.REMOVED;\n }\n }", "title": "" }, { "docid": "616652a0bf31c60cf3cb8bff282133b0", "score": "0.55944777", "text": "public protomsg.CoincheMsg.ServerMsg.TypeRequestServer getTypeRequest() {\n protomsg.CoincheMsg.ServerMsg.TypeRequestServer result = protomsg.CoincheMsg.ServerMsg.TypeRequestServer.valueOf(typeRequest_);\n return result == null ? protomsg.CoincheMsg.ServerMsg.TypeRequestServer.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "e72f4166cb4097213e3b7558e0dd8189", "score": "0.55924", "text": "public String getRequestURL();", "title": "" }, { "docid": "76e4604529838a860493ed6df86038e2", "score": "0.5592374", "text": "private String createUriToSendMessage(String url) {\n var ApiUrl = url.split(\"\\\\?\")[0];\n return String.format(\"%s?action=sendmsg\", ApiUrl);\n }", "title": "" }, { "docid": "7e2be57e42ee9da9fb36f608203f1b3e", "score": "0.55834174", "text": "@Override\n public String request(final RequestType message) throws AdaptorException {\n final String requestHandle = getNextHandle();\n synchronized (this.requests) {\n final Collection<? extends RequestInstanceType> requestInstances =\n getRequestInstances(message, requestHandle);\n if (requestInstances != null) {\n this.requests.put(requestHandle, new ConcurrentLinkedQueue<RequestInstanceType>(\n requestInstances));\n }\n }\n return requestHandle;\n }", "title": "" }, { "docid": "dd76f5c0c53d803d3c7c6c31355529cd", "score": "0.55787987", "text": "public java.lang.String getAddressOfRequestUrl() {\n java.lang.Object ref = addressOfRequestUrl_;\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 addressOfRequestUrl_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7fd1120ee204e5e56e6a1a2530488eba", "score": "0.5550917", "text": "@java.lang.Override\n public java.lang.String getAddressOfRequestUrl() {\n java.lang.Object ref = addressOfRequestUrl_;\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 addressOfRequestUrl_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "89f1d2fe00598128910f144f9ea672ec", "score": "0.553841", "text": "java.lang.String getRequester();", "title": "" }, { "docid": "8ad119b4bae8db09062ec48e5684aaf2", "score": "0.5525454", "text": "public String getType (){\n String endpoint = Constants.ENDPOINT;\n String type = url.substring(endpoint.length());\n type = type.substring(0, type.indexOf('/'));\n return type;\n }", "title": "" }, { "docid": "5a0e13cd2c87a85e713d702116d5f0df", "score": "0.5517251", "text": "private void setResponseTypeUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n responseTypeUrl_ = value.toStringUtf8();\n }", "title": "" }, { "docid": "e4bc4611b279c8fe6e48209433960e0d", "score": "0.5500364", "text": "@ApiModelProperty(value = \"A text identifier for the URL.\")\n public String getType() {\n return type;\n }", "title": "" }, { "docid": "bcdf62821187fea2e72be2f4d938d1ef", "score": "0.54830116", "text": "public Request(final String t) {\n\t\ttype = t;\n\t}", "title": "" }, { "docid": "bb8dc1a7fc78015028f63890997405a8", "score": "0.54713774", "text": "private String getReceivingURL() {\n HttpServletRequest httpReq = ServletActionContext.getRequest();\n StringBuffer receivingURL = httpReq.getRequestURL();\n String queryString = httpReq.getQueryString();\n if (queryString != null && queryString.length() > 0)\n receivingURL.append(\"?\").append(httpReq.getQueryString());\n\n return receivingURL.toString();\n }", "title": "" }, { "docid": "d46b3240f63b65e1c527b2523f689cc1", "score": "0.5447562", "text": "net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder();", "title": "" }, { "docid": "d46b3240f63b65e1c527b2523f689cc1", "score": "0.5447562", "text": "net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder();", "title": "" }, { "docid": "e0dbad8ca3efd4a8f27ee590cab41ab4", "score": "0.54450524", "text": "private String getRequestType(InvocationRequest request) throws RegistrationRequestException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn request.getParameter().toString();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tlogger.debug(cn + \".getAgentType() - Cannot determine Request Type\");\r\n\t\t\tthrow new RegistrationRequestException(\"Cannot Determine Agent Type of Request\",e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3dae8b564ce6b35a811c28f30344a8ec", "score": "0.5438885", "text": "java.lang.String getRequestingUrl();", "title": "" }, { "docid": "f4bc52c763ddd4ff498cebf1788a90e4", "score": "0.54248565", "text": "@Override\n\tpublic OutputMessage linkTypeMsg(LinkInputMessage msg) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1bc367b640e4912456c76165aad5c953", "score": "0.54217434", "text": "com.google.protobuf.ByteString\n getRequestUrlBytes();", "title": "" }, { "docid": "7ce72607dd44e5626a38d8585285662b", "score": "0.53988594", "text": "com.chatt.ufs.protobuf.MessageProtos.Message.ContentType getType();", "title": "" }, { "docid": "5ce23c8987b786e01f6fcecf65cf2030", "score": "0.53932863", "text": "public void setMessageType(int messageType) { this.messageType = messageType; }", "title": "" }, { "docid": "887e0498ee0af9b8b34172ee9fd534c9", "score": "0.5348576", "text": "public interface UrlType{\n int huibi_rule = 4;\n int user_protocol = 5;\n int about_us = 6;\n int after_sale = 7;\n }", "title": "" }, { "docid": "8cbf60974cc1efcdd515f243c25b5562", "score": "0.5333684", "text": "private String createUriToMarkMessage(String url) {\n var ApiUrl = url.split(\"\\\\?\")[0];\n return String.format(\"%s?action=markmsg\", ApiUrl);\n }", "title": "" }, { "docid": "01caa4997ad4d83fb942e2fe31991f69", "score": "0.53255993", "text": "int handleRequest(Message request);", "title": "" }, { "docid": "4033b48cee70c9ce7b3c84bb631b27d6", "score": "0.53100586", "text": "public java.lang.String getResponseTypeUrl() {\n return responseTypeUrl_;\n }", "title": "" }, { "docid": "7d6add159076a77bbec596110bf953e9", "score": "0.5271901", "text": "public Builder setRequestUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n requestUrl_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "577e9763faad704d06842579a5728854", "score": "0.52604586", "text": "public void setRequest(String request) {\n this.request = request;\n }", "title": "" }, { "docid": "4b76de9b3a37d3a769b30279642b5ab2", "score": "0.5251744", "text": "java.lang.String getAddressOfRequestUrl();", "title": "" }, { "docid": "e497594daf11ce102724b677e22136ee", "score": "0.5251579", "text": "com.google.protobuf.ByteString\n getTypeUrlBytes();", "title": "" }, { "docid": "a693f8880ceb7bfc19a1ebdb0463ca1c", "score": "0.5237684", "text": "@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public String send(String myUrl, String jsonInputString, String requestType) throws Exception {\n URL url = new URL(myUrl);\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setRequestMethod(requestType);\n con.setRequestProperty(\"Content-Type\", \"application/json; charset=utf-8\");\n con.setRequestProperty(\"Accept\", \"application/json\");\n con.setDoOutput(true);\n try (OutputStream os = con.getOutputStream()) {\n byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8);\n os.write(input, 0, input.length);\n }\n try (BufferedReader br = new BufferedReader(\n new InputStreamReader(con.getInputStream(), StandardCharsets.UTF_8))) {\n StringBuilder response = new StringBuilder();\n String responseLine = null;\n while ((responseLine = br.readLine()) != null) {\n response.append(responseLine.trim());\n }\n return response.toString();\n }\n }", "title": "" }, { "docid": "b93d757374c8cd050494330b603d18ce", "score": "0.523254", "text": "public void sendRequest(String type){\r\n InfoManager.getInfoManager().add(getId(), type);\r\n }", "title": "" }, { "docid": "fc0596c9f0a65eb2cf6357f49124e49d", "score": "0.5231359", "text": "public Builder setRequestingUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n requestingUrl_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8505fe02d3438c765a23561b71615d56", "score": "0.52274865", "text": "public void\trequestStart(RequestType requestType);", "title": "" }, { "docid": "6299ef18b42bb2d49629f8901c0dfe47", "score": "0.5215394", "text": "public void processRequest(String input) throws IOException {\n\t\tString[] splitInput = input.split(\":\");\n\t\tString request = splitInput[0].toLowerCase();\n\t\tif (request.equals(\"pouiimagerequest\")) {\n\t\t\tpouiImageRequest(splitInput[1]);\n\t\t}\n\t\telse if (request.equals(\"pouiinspectionrequest\")) {\n\t\t\tpouiInspectionRequest(splitInput[1]);\n\t\t}\n\t\telse if (request.equals(\"productlist\")) {\n\t\t\tproductListRequest();\n\t\t}\n\t\telse if (request.equals(\"reporttimings\")) {\n\t\t\treportTimings(input);\n\t\t}\n\t\telse if (request.equals(\"inspectioncheckrequest\")) {\n\t\t\tinspectionCheckRequest(input);\n\t\t}\n\t\telse {\n\t\t\tsendResponse(\"Request Not Supported\");\n\t\t}\n\t}", "title": "" }, { "docid": "93c688dcf1a908480cd478a94845e4aa", "score": "0.5215204", "text": "public void getLanguageFromInternet(final String requestType, String url) {\n try {\n Log.e(\"url : \",url);\n AndroidNetworking.get(url)\n .addHeaders(\"Content-Type\", \"application/json\")\n .build()\n .getAsString(new StringRequestListener() {\n @Override\n public void onResponse(String response) {\n if (languageResult != null)\n languageResult.recievedLang(requestType, response);\n// Log.e(\"url api response : \", response);\n }\n\n @Override\n public void onError(ANError anError) {\n if (languageResult != null)\n languageResult.recievedLangError(requestType);\n Log.d(\"Error:\", anError.getErrorDetail());\n Log.d(\"Error::\", anError.getResponse().toString());\n }\n });\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "de1e8174dc3a5e16e8369f44b33e2607", "score": "0.52130777", "text": "@Override\n public String handleInput(int request) {\n return DEFAULT_MESSAGE;\n }", "title": "" }, { "docid": "ac8e26412797001a2c523231be75e2b0", "score": "0.5206746", "text": "edu.psu.cse.vatest.VatestProto.ClientMessage.Type getType();", "title": "" }, { "docid": "d61bfdd4934ca3cf089bc280232f5acf", "score": "0.52066875", "text": "Type messageType();", "title": "" }, { "docid": "8597e6ae70a1816e1d2f47c421bea537", "score": "0.51862645", "text": "public void setRequestType(final int requestType) {\n switch (requestType) {\n case REQUEST_PUT:\n break;\n case REQUEST_GET:\n break;\n default:\n throw new IllegalArgumentException(\"Illegal request type: \" + requestType);\n }\n\n this.requestType = requestType;\n }", "title": "" }, { "docid": "d953ca7396e5bb5de686a51ad6d4652a", "score": "0.5185105", "text": "public Builder setAddressOfRequestUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n addressOfRequestUrl_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3239e137d5fc77e2f94c3eb84d2b05dd", "score": "0.51840687", "text": "@java.lang.Override\n public boolean hasRequestUrl() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "title": "" }, { "docid": "3bf83433008636e1ceddb4f001482e4d", "score": "0.5170881", "text": "private boolean isLiftMessage(RespondingGatewayProvideAndRegisterDocumentSetSecuredRequestType request) {\n boolean result = false;\n\n // Check to see if a url was provided in the message and if LiFT is supported\n if (request.getUrl() != null &&\n NullChecker.isNotNullish(request.getUrl().getUrl()) &&\n NullChecker.isNotNullish(request.getUrl().getId())) {\n result = true;\n }\n\n log.debug(\"isLiftMessage returning: \" + result);\n return result;\n }", "title": "" }, { "docid": "dbe9ea8e3ecd20276989bee191bd46bf", "score": "0.51627564", "text": "private String createUriToReceiveMessage(String url, Folder folder) {\n var ApiUrl = url.split(\"\\\\?\")[0];\n return String.format(\"%s?action=receivemsg&folder=%s\", ApiUrl, folder.toString());\n }", "title": "" }, { "docid": "2f9954e99b0a4d7da869e79548216089", "score": "0.5159536", "text": "public Request(int request){\n\t\t_requestType = request;\n\t}", "title": "" }, { "docid": "a23bdbd34479229132721871fecbb6cf", "score": "0.5154808", "text": "@Override\n public String getProtocol()\n {\n return _request.getProtocol();\n }", "title": "" }, { "docid": "f489a0b5cb6174fd5cd1d80079bc0c56", "score": "0.51456374", "text": "int getTypeRequestValue();", "title": "" }, { "docid": "f489a0b5cb6174fd5cd1d80079bc0c56", "score": "0.51456374", "text": "int getTypeRequestValue();", "title": "" }, { "docid": "d4bf62f3ba74ea02e35b55725a327d01", "score": "0.5140352", "text": "public Builder setResponseTypeUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setResponseTypeUrl(value);\n return this;\n }", "title": "" }, { "docid": "c44d5c7461733da5d35a8b26d05561fe", "score": "0.5138705", "text": "protected abstract void convertAndSend(RequestMessage inRequest);", "title": "" }, { "docid": "6effcd033ad9c7ea557df5df532a8cba", "score": "0.5130338", "text": "public int getTypeRequestValue() {\n return typeRequest_;\n }", "title": "" }, { "docid": "6effcd033ad9c7ea557df5df532a8cba", "score": "0.5130338", "text": "public int getTypeRequestValue() {\n return typeRequest_;\n }", "title": "" }, { "docid": "2c9325e96092bc5701ade41f6e591e32", "score": "0.5128488", "text": "public RequestHandler(String[] split) throws MalformedURLException {\n String headersStr = \"\";\n messageBodyStr = null;\n method = \"GET\"; //default\n for (int i = 0; i < split.length; i++) {\n\n if (split[i].equals(\"-M\") || split[i].equals(\"--method\")) {\n //check if it is not the last element :\n if (!(i == split.length - 1)) {\n method = split[i + 1];\n }\n if (method.equals(\"PATCH\")) {\n patchMethod = true;\n }\n }\n if (split[i].equals(\"-H\") || split[i].equals(\"--headers\")) {\n //check if it is not the last element :\n if (!(i == split.length - 1)) {\n headersStr = split[i + 1];\n headers = new ArrayList<>();\n setHeaders(headersStr);\n }\n }\n if (split[i].equals(\"-d\") || split[i].equals(\"--data\")) {\n //check if it is not the last element :\n if (!(i == split.length - 1)) {\n messageBodyStr = split[i + 1];\n //bodyFormData = new HashMap<>();\n //setBodyFormData(bodyFormDataStr);\n messageBodyStr = messageBodyStr.replace(\"\\\"\", \"\");\n hasBody = true;\n }\n }\n if (split[i].equals(\"--url\") || split[i].equals(\"--URL\")) {\n //check if it is not the last element :\n if (!(i == split.length - 1)) {\n urlStr = split[i + 1];\n if (!(urlStr.contains(\"http://\"))) {\n if (!(split[i + 1].contains(\"http://\")) || (split[i + 1].contains(\"https://\"))) {\n System.out.println(ANSI_RED + \"WARNING : Please enter a protocol for the chosen URL . \" + ANSI_RESET);\n } else {\n urlStr = split[i + 1];\n }\n }\n }\n url = new URL(urlStr);\n inputContainsURL = true;\n }\n //saving request body into a file :\n if (split[i].equals(\"--output\") || split[i].equals(\"-O\")) {\n //check if it is not the last element :\n if (!(i == split.length - 1)) {\n //if the user has given file name :\n fileName = split[i + 1];\n if (!(split[i + 1].contains(\".\"))) {\n fileName = null;\n }\n } else {\n fileName = null;\n }\n toSaveResBody = true;\n }\n if (split[i].equals(\"-f\")) {\n //set follow redirect true :\n followRedirectSetup = true;\n }\n if (split[i].equals(\"-i\")) {\n //response should contain headers :\n printHeaders = true;\n }\n if (split[i].equals(\"-S\") || split[i].equals(\"--save\")) {\n //request should be saved and serialized :\n toSaveRequest = true;\n }\n if (split[i].equals(\"list\")) {\n //all saved requests should be deserialized and the data should be shown :\n FileUtils.deserializeAllRequests();\n }\n if (split[i].equals(\"fire\")) {\n //save the index of requests we want to send :\n ArrayList<Integer> indexes = new ArrayList<>();\n int num = split.length - 2;\n for (int j = 1; j < num + 1; j++) {\n int index = Integer.parseInt(split[i + j]);\n indexes.add(index);\n }\n FileUtils.fireRequests(indexes);\n }\n if (split[i].equals(\"-j\") || split[i].equals(\"--json\")) {\n hasJsonBody = true;\n if (!(i == split.length - 1)) {\n jsonStr = split[i + 1];\n //set json body into 2d array list :\n //setJsonBody(jsonStr);\n } else {\n System.out.println(ANSI_RED + \"WARNING : You should enter json data after --json / -j . \" + ANSI_RESET);\n }\n\n }\n if (split[i].equals(\"--upload\")) {\n binaryFile = true;\n if (!(i == split.length - 1)) {\n binaryAddress = split[i + 1];\n } else\n System.out.println(ANSI_RED + \"WARNING : You should enter file's absolute path after --upload . \" + ANSI_RESET);\n }\n if (split[i].equals(\"--urlencoded\")) {\n formUrlEnc = true;\n if (!(i == split.length - 1)) {\n messageBodyStr = split[i + 1];\n } else\n System.out.println(ANSI_RED + \"WARNING : You should enter message body after --urlencoded . \" + ANSI_RESET);\n }\n }\n }", "title": "" }, { "docid": "1c62e2ecb93274a797c36684211c0ce6", "score": "0.5110846", "text": "public ReceivedMessage getClassFromMessage(String input){\n return null;\n }", "title": "" }, { "docid": "f20ba4769ccb3348d567280583d00dcc", "score": "0.5102149", "text": "private void setRequest(net.iGap.proto.ProtoRequest.Request value) {\n if (value == null) {\n throw new NullPointerException();\n }\n request_ = value;\n \n }", "title": "" }, { "docid": "f20ba4769ccb3348d567280583d00dcc", "score": "0.5102149", "text": "private void setRequest(net.iGap.proto.ProtoRequest.Request value) {\n if (value == null) {\n throw new NullPointerException();\n }\n request_ = value;\n \n }", "title": "" }, { "docid": "8d73450ff0d058ba0840f518597d7e96", "score": "0.50983924", "text": "@Override\n\tpublic StringBuffer getRequestURL() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "cd58103f15d67a0f6b24fa1efa557224", "score": "0.50921345", "text": "@java.lang.Override\n public java.lang.String getRequester() {\n java.lang.Object ref = requester_;\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 requester_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "09701ad7cce1d07cdecc2fbaf5e1d0f2", "score": "0.508757", "text": "public java.lang.String getResponseTypeUrl() {\n return instance.getResponseTypeUrl();\n }", "title": "" }, { "docid": "fc6ed0862f562cf6676d5c88d3ce6d14", "score": "0.50740707", "text": "@Override\n\tpublic String processRequest(String http_method, String url, HashMap<String, String> params) {\n\t\t\n\t\tlog.info(\"URL params : \"+params);\n\t\t\n\t\tString request_type = params.get(\"request_type\");\n\t\tif(request_type!=null) {\n\t\t\tif(request_type.equals(\"send_sms\")) {\n\t\t\t\tMIBService requestHandler = new MIBService();\n\t\t\t\treturn requestHandler.processRequest(http_method, url, params, \"sms\");\n\t\t\t}else if (request_type.equals(\"send_smsdd\")){\n\t\t\t\tMIBService requestHandler = new MIBService();\n\t\t\t\treturn requestHandler.processRequest(http_method, url, params, \"smsdd\");\n\t\t\t}else if (request_type.equals(\"send_sms_unicode\")){\n\t\t\t\tMIBService requestHandler = new MIBService();\n\t\t\t\treturn requestHandler.processRequest(http_method, url, params, \"unicode\");\n\t\t\t}else if (request_type.equals(\"send_smsdd_unicode\")){\n\t\t\t\tMIBService requestHandler = new MIBService();\n\t\t\t\treturn requestHandler.processRequest(http_method, url, params, \"smsdd_unicode\");\n\t\t\t}else if(request_type.startsWith(\"ping\")) {\n\t\t\t\tPingHandler requestHandler = new PingHandler();\n\t\t\t\treturn requestHandler.processRequest(http_method, url, params);\n\t\t\t}\n\t\t}\n\t\treturn \"400:1:1\";\n\t}", "title": "" }, { "docid": "a884ae23eb8cc9cefed573706b95a8e0", "score": "0.50680864", "text": "@java.lang.Override\n public java.lang.String getInputType() {\n java.lang.Object ref = inputType_;\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 inputType_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "a155e7d228b770d715926ab4ba94384b", "score": "0.5061973", "text": "@Override\r\n\tpublic Class<?> getRequestClazz() {\n\t\treturn Request.class;\r\n\t}", "title": "" }, { "docid": "37bd7eb03a7bfc801e5829fb03e5f8b4", "score": "0.505863", "text": "@Override\n public String getContentType()\n {\n return _request.getContentType();\n }", "title": "" }, { "docid": "0c25ae0a13d49e56f363b902375c34c5", "score": "0.5051887", "text": "public String getRequestUrl() {\n return requestUrl;\n }", "title": "" }, { "docid": "0c25ae0a13d49e56f363b902375c34c5", "score": "0.5051887", "text": "public String getRequestUrl() {\n return requestUrl;\n }", "title": "" }, { "docid": "d4607b4b67f79d0c192d6ca0177348e3", "score": "0.50510716", "text": "public RNFetchBlobBody setRequestType(RNFetchBlobReq.RequestType requestType2) {\n this.requestType = requestType2;\n return this;\n }", "title": "" } ]
eda6dceaebcd364230b396b3edf1f478
Allows a component to set a message for itself
[ { "docid": "70450a09e067f81da4c9e440956a328f", "score": "0.65865433", "text": "public void setComponentMessage(String msg) {\n\t\tm_componentmsg = msg;\n\t}", "title": "" } ]
[ { "docid": "eef4a62b98ce7661dc3006d0e20df8a4", "score": "0.7542427", "text": "public void setMessage(String text);", "title": "" }, { "docid": "4b7c7803363bec930c299db592374e72", "score": "0.7526139", "text": "public void setMessage(String message);", "title": "" }, { "docid": "4b7c7803363bec930c299db592374e72", "score": "0.7526139", "text": "public void setMessage(String message);", "title": "" }, { "docid": "5266b2dcc8de143ab0b3b49462e6e31d", "score": "0.75155777", "text": "void setMessage(String message);", "title": "" }, { "docid": "5266b2dcc8de143ab0b3b49462e6e31d", "score": "0.75155777", "text": "void setMessage(String message);", "title": "" }, { "docid": "f0e850bbf976a89adfbe979ac31d33c8", "score": "0.74450284", "text": "public void setMessage(String msgStr);", "title": "" }, { "docid": "281d750c94b0157f809f9e67030bf1e2", "score": "0.73898", "text": "public synchronized void setMessage (Object message)\n {\n\tmyMessage = message;\n }", "title": "" }, { "docid": "a301694443e1ebad1d1d181c4f91e291", "score": "0.7340978", "text": "public void setMessage(String string) {\n\t\t\n\t}", "title": "" }, { "docid": "e4dfbaf94ad9369c970049aa0f399a83", "score": "0.71752983", "text": "void setMessage(java.lang.String message);", "title": "" }, { "docid": "e4dfbaf94ad9369c970049aa0f399a83", "score": "0.71752983", "text": "void setMessage(java.lang.String message);", "title": "" }, { "docid": "f7903d8e3e76cec50adfdf301fa5261d", "score": "0.7173562", "text": "public void setMessage(String message) {\n _msg = message; \n }", "title": "" }, { "docid": "4198c1723be7762db8f9af5fd29a1fa1", "score": "0.7140707", "text": "public void setMessage(String s) { this.message = s; }", "title": "" }, { "docid": "79c74b22e2b1ee88461636827450c69c", "score": "0.70852786", "text": "public void setMessage(java.lang.String param){\n localMessageTracker = true;\n \n this.localMessage=param;\n \n\n }", "title": "" }, { "docid": "48092786828296ea33f5f9f452e74741", "score": "0.7053891", "text": "public void setMessage(final String message);", "title": "" }, { "docid": "c2dbf9891a418ac5eaaa36f18f5c92cc", "score": "0.7052711", "text": "public void SystemSetMessage(String message) {\n }", "title": "" }, { "docid": "433870fcd0d83af3f132ed7cd434a361", "score": "0.7028981", "text": "public void setMessage (String string) {\n\tmessage = string;\n}", "title": "" }, { "docid": "5421f4ef7687475c055a6badcff073f6", "score": "0.7014746", "text": "void setMessage(String labelMsg);", "title": "" }, { "docid": "c6217b27b33ebea50c49c7be689294b9", "score": "0.6990214", "text": "protected void setMessage(Message message) {\n\t\tthis.message = message;\n\t}", "title": "" }, { "docid": "df71425c1bbdf0d53d622d8bd27850c5", "score": "0.69000125", "text": "public void setMessage(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localMessageTracker = true;\r\n } else {\r\n localMessageTracker = true;\r\n \r\n }\r\n \r\n this.localMessage=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "52680248fe33b3aadef235d1e04d3d84", "score": "0.6885387", "text": "private void setMessage(com.mardomsara.social.pb.PB_Message value) {\n if (value == null) {\n throw new NullPointerException();\n }\n message_ = value;\n \n }", "title": "" }, { "docid": "5de437f4b5266348d2b303bc7b193695", "score": "0.6875468", "text": "Message() {\n this.messageType = 100;\n }", "title": "" }, { "docid": "bf949116224af03256ac49e2f1ef094c", "score": "0.6864147", "text": "void setMessage(final String message) {\r\n _message = message;\r\n }", "title": "" }, { "docid": "5c92c0edf0616ebacf17d1b91bd7b292", "score": "0.6797478", "text": "@Override\n\tpublic void setMessage(Message message) {\n\t\tthis.message = message;\n\t\tthis.doMethod();\n\t}", "title": "" }, { "docid": "7f1637976d1f7ce6cd048c51e95316ed", "score": "0.67889345", "text": "public void setMessage(java.lang.CharSequence value) {\n this.message = value;\n }", "title": "" }, { "docid": "21181b86cd237d32037f97c6f92819da", "score": "0.6762014", "text": "@Override\r\n public void setMessage(String message) {\r\n this.message = message;\r\n }", "title": "" }, { "docid": "e5a472f01d321ddb23ea3485ca657091", "score": "0.6749252", "text": "public void setMessage(Message message ) {\n this.message = message;\n setChanged();\n notifyObservers(this);\n }", "title": "" }, { "docid": "c7c142781ec2c1b41ff07e3eebd3745f", "score": "0.6744049", "text": "public void setMessage(Object requestor, String message, MessageType messageType);", "title": "" }, { "docid": "99da8f17d3a60222dc0aa80d8e057465", "score": "0.672346", "text": "public void setMessage(CharSequence message) { \n\t mMessage.setText(message); \n\t mMessage.setMovementMethod(ScrollingMovementMethod.getInstance()); \n\t }", "title": "" }, { "docid": "1ca262425bc5745677c9a53d6a9f1b71", "score": "0.67221797", "text": "void setInitialMessage(String message);", "title": "" }, { "docid": "e000fddd3ea902e3717a857530d31f17", "score": "0.6718291", "text": "public void setMessage1(String msg) { this.message1= msg; }", "title": "" }, { "docid": "8ceddfdbe45452daa06eca026d1032be", "score": "0.66868424", "text": "public void setMessage(String msg) {\n brMessageBox.setText(msg); // the default message box\n }", "title": "" }, { "docid": "9a6bb587a3139e76e915c6e710a6dd87", "score": "0.6674747", "text": "public void setMessage(Char220 param){\r\n \r\n this.localMessage=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "3fd9239d3f71715b0394e168952804ab", "score": "0.6667488", "text": "void setNilMessage();", "title": "" }, { "docid": "7a049b75129b7af4236100c1df61cc9b", "score": "0.65848505", "text": "public void personalMessageChanged(String personalMessage);", "title": "" }, { "docid": "3ddcffa3264c4ed16e2ceed78377693a", "score": "0.6578145", "text": "public void setMessage(String newMessage) {\n message = newMessage;\n }", "title": "" }, { "docid": "4e4cafb200b670aff3b42daa7ed1dd7f", "score": "0.6550367", "text": "public void message() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c536300501f98598aa9b2682781111b4", "score": "0.65383214", "text": "public void setMessage(final String value)\n\t{\n\t\tsetMessage( getSession().getSessionContext(), value );\n\t}", "title": "" }, { "docid": "7dffe51eade531d8cb7bf39ed44376a5", "score": "0.65333974", "text": "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "title": "" }, { "docid": "a28afe8402b205ef1c7504bb6b303dbd", "score": "0.6519672", "text": "public void setMessage(CharSequence message) {\n if (message != null && message.length() > 0) {\n findViewById(R.id.message).setVisibility(View.VISIBLE);\n TextView txt = (TextView) findViewById(R.id.message);\n txt.setText(message);\n txt.invalidate();\n }\n }", "title": "" }, { "docid": "4d6a77d00050d68b32d0f27f7d4187c4", "score": "0.6515393", "text": "public void setMessage(String m)\n {\n message = m;\n }", "title": "" }, { "docid": "d25523b3357a30974c7a045212610ff4", "score": "0.65015346", "text": "public void setMessage(String Message){ \r\n\t\t\tthis.MS = Message;\r\n\t\t}", "title": "" }, { "docid": "6195eae5f3b83daa8ff0bea0a53079c8", "score": "0.6479954", "text": "@Override\n\tpublic void messageEdit(message message) throws Exception {\n\t\tmd.messageEdit(message);\n\t}", "title": "" }, { "docid": "a007380f02e1c32f5ad9fac4e92a0d95", "score": "0.6469101", "text": "public static void setMessage(String msg) {\n\t\tcontext = msg+\"\\n\";\n\t\tjTextArea1.append(context);\n\t\tjTextArea1.setCaretPosition(jTextArea1.getText().length());\n\t}", "title": "" }, { "docid": "421d02280588b251a1d7f0615013668e", "score": "0.64591295", "text": "public void setMessage(String str) {\n this.message = str;\n }", "title": "" }, { "docid": "bacce8c06f8ca2f90295670af6ee0074", "score": "0.6455663", "text": "public void setMsg(java.lang.CharSequence value) {\n this.msg = value;\n }", "title": "" }, { "docid": "2ecf50383b2641fbafe2ab9408b512b5", "score": "0.64236116", "text": "public void setMessage(M message) throws EmptyTopicException;", "title": "" }, { "docid": "1e0ea39450f8fa549e6a4713fc843017", "score": "0.64157933", "text": "public void setMessage(String msg){\n JOptionPane.showMessageDialog(this, msg);\n reloadBtn.doClick();\n }", "title": "" }, { "docid": "294bfa4e399e63d52d365d996d3a1630", "score": "0.6411877", "text": "public void setMessage(String msg) {\r\n messageLabel.setText(msg);\r\n validate();\r\n }", "title": "" }, { "docid": "91d03553694bab1932ba70d42a099b5f", "score": "0.64050883", "text": "@Override\r\n\t\t\t\tpublic void message(String string, ControlObject controls, String messageId) {\n\t\t\t\t\t\r\n\t\t\t\t}", "title": "" }, { "docid": "0791a9f8fbf1bd47a0414b8af071cf10", "score": "0.6397481", "text": "public Builder setUserMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n userMessage_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a8d29734e44d6ddda4b90aecce33680e", "score": "0.6395955", "text": "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\r\n\t\t}", "title": "" }, { "docid": "6c0d9f048509c229fcd1d274e52959f8", "score": "0.63869214", "text": "public void setMessage(String message) {\r\n this.message = message;\r\n }", "title": "" }, { "docid": "12e38a77b4643e049d5df7f82b05ba6a", "score": "0.63860774", "text": "public abstract void sendMessage(@NotNull IChatBaseComponent message);", "title": "" }, { "docid": "51076fdcd5f30293b654c9702f4900ae", "score": "0.6352589", "text": "@Override\n\tpublic void setmsg(String msg) {\n\t\tthis.msg = msg;\n\t}", "title": "" }, { "docid": "9fa4379c1da8251783755e06afe8cd4e", "score": "0.635199", "text": "public SendMessage() {\n initComponents();\n }", "title": "" }, { "docid": "b38ec1d77c3a7b5f21587899d9c8c153", "score": "0.6329309", "text": "public void setMessage2(String msg) { this.message2= msg; }", "title": "" }, { "docid": "63dfc422c752e7e1c7e3584140211137", "score": "0.6327551", "text": "public SenatorMessagesNew() {\n initComponents();\n thisObj = this;\n }", "title": "" }, { "docid": "ecc57f8c9fec2c0aa01c152e6f2f374e", "score": "0.6324012", "text": "public void setAction(String msg) {\n message.add(msg);\n setChanged();\n notifyObservers(this);\n }", "title": "" }, { "docid": "ae3eef12f4feefe92e31989b531f0b3f", "score": "0.6316131", "text": "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t}", "title": "" }, { "docid": "463d3672fd788a52d90ecff751381ce0", "score": "0.63158804", "text": "void setMessage(SFRMMessage message) {\n this.message = message;\n }", "title": "" }, { "docid": "0f3d2fd7b61139a33451c93c4bd10a04", "score": "0.6309668", "text": "public void setMessage(final SessionContext ctx, final String value)\n\t{\n\t\tif ( ctx == null) \n\t\t{\n\t\t\tthrow new JaloInvalidParameterException( \"ctx is null\", 0 );\n\t\t}\n\t\tif( ctx.getLanguage() == null )\n\t\t{\n\t\t\tthrow new JaloInvalidParameterException(\"GeneratedB2BPermission.setMessage requires a session language\", 0 );\n\t\t}\n\t\tsetLocalizedProperty(ctx, MESSAGE,value);\n\t}", "title": "" }, { "docid": "0ea10b6a8a64ea91d446c0817466b7bf", "score": "0.6303845", "text": "default void setStatusMessage(String message){\n TicketManagerGUI.statusMessage = message;\n }", "title": "" }, { "docid": "054da4b4493a4cb89ccd7438c17520b2", "score": "0.6294317", "text": "public static void addMessage(String msg){\n msgBox.addMessage(msg);\n }", "title": "" }, { "docid": "417edce6360850e95eb576fc5c728c24", "score": "0.6265706", "text": "public void setMessage(String msg, int location) {\n switch(location) {\n case BOTTOM_LEFT :\n blMessageBox.setText(msg);\n break;\n default :\n case BOTTOM_RIGHT :\n brMessageBox.setText(msg);\n break;\n case TOP_RIGHT :\n trMessageBox.setText(msg);\n break;\n case TOP_LEFT :\n tlMessageBox.setText(msg);\n break;\n }\n }", "title": "" }, { "docid": "50cda7f338f798a2c4ae180886e43236", "score": "0.6258908", "text": "void setMessage(MimeMessage message);", "title": "" }, { "docid": "fe56adc85b53a180070e95440aa31159", "score": "0.6254406", "text": "@Override\r\n\tpublic void setStrMessage(String strMessage) {\n\t\tsuper.setStrMessage(strMessage);\r\n\t}", "title": "" }, { "docid": "25b34fd348150c56eaae983474036b5c", "score": "0.62513506", "text": "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\tnewMessage.setText(\"\");\n\t\t\t}", "title": "" }, { "docid": "a351b670d1367fc331ae03865c1e8a9f", "score": "0.6245997", "text": "public void notifyMessage(UniversalMessageBean msg) {\r\n\t}", "title": "" }, { "docid": "49a9b0de4662af9d0a8230751e7df812", "score": "0.6243495", "text": "@Override\n\tpublic void mensaje(String msg) {\n\t\t\n\t}", "title": "" }, { "docid": "df8acb63195ac22be4ab59d5c10121a6", "score": "0.6229802", "text": "public void setMessage(String message) {\r\n\t\tthis.message = message;\r\n\t}", "title": "" }, { "docid": "df8acb63195ac22be4ab59d5c10121a6", "score": "0.6229802", "text": "public void setMessage(String message) {\r\n\t\tthis.message = message;\r\n\t}", "title": "" }, { "docid": "f520e9be5bdce3d50f937e0c4bc0d2ae", "score": "0.62259686", "text": "@Override\n public Message getMessage() {\n return null;\n\n }", "title": "" }, { "docid": "77f316e31c89c248b0e48b2b226ff16a", "score": "0.6224043", "text": "final public void messageBox(String message){\n\t\tstat = message;\n\t\tupdateGui();\n\t}", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.62124443", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "63e7fb7832bc8133e32beaac2f4bba6f", "score": "0.62093085", "text": "@Override\n protected String messageOpened () {\n return null;\n }", "title": "" }, { "docid": "aa1b59fee4c480fa36306cef762bfdb8", "score": "0.62044907", "text": "public void setMessage (String string) {\n\tcheckWidget ();\n\tif (string == null) error (SWT.ERROR_NULL_ARGUMENT);\n\tmessage = string;\n\tif ((style & SWT.BALLOON) == 0) return;\n\tif (layoutMessage != 0) OS.g_object_unref (layoutMessage);\n\tlayoutMessage = 0;\n\tif (message.length () != 0) {\n\t\tbyte [] buffer = Converter.wcsToMbcs (null, message, true);\n\t\tlayoutMessage = OS.gtk_widget_create_pango_layout (handle, buffer);\n\t\tif (OS.GTK_VERSION >= OS.VERSION (2, 4, 0)) {\n\t\t\tOS.pango_layout_set_auto_dir (layoutMessage, false);\n\t\t}\n\t\tOS.pango_layout_set_wrap (layoutMessage, OS.PANGO_WRAP_WORD_CHAR);\n\t}\n\tif (OS.GTK_WIDGET_VISIBLE (handle)) configure ();\n}", "title": "" }, { "docid": "575429fb79326a6fa9827c6dcc477bda", "score": "0.62013537", "text": "public void setMessage (String message) {\r\n\tthis.message = message;\r\n\tif (label != null) {\r\n\t\tlabel.setText (message);\r\n\t\t// TODO - Only resize the shell when the user has not resized it\r\n\t\tPoint size = shell.getSize ();\r\n\t\tPoint newSize = shell.computeSize (SWT.DEFAULT, SWT.DEFAULT);\r\n\t\tif (newSize.x > size.x || newSize.y > size.y) shell.setSize (newSize);\r\n\t}\r\n}", "title": "" }, { "docid": "cfcd77949289433c6808429a90a02fbe", "score": "0.6200691", "text": "public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n message_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fd8a8ecbd8567209f4f4f3907d40f57a", "score": "0.61995316", "text": "public void addChatMessage(IChatComponent message) {\n/* 518 */ this.mc.ingameGUI.getChatGUI().printChatMessage(message);\n/* */ }", "title": "" }, { "docid": "79155b760ec94f2c654320e4f6dc1d6c", "score": "0.6195147", "text": "public HiveKa.avro.Console.Builder setMessage(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.message = value;\n fieldSetFlags()[0] = true;\n return this; \n }", "title": "" }, { "docid": "c01a5c10c88e03771ff6c8f68fbfa07a", "score": "0.6191963", "text": "private void setMessage(\n com.mardomsara.social.pb.PB_Message.Builder builderForValue) {\n message_ = builderForValue.build();\n \n }", "title": "" }, { "docid": "f69d2e590b6c4595d6ebb5c65b0bfd92", "score": "0.61814696", "text": "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t}", "title": "" }, { "docid": "9574779b91a3bff7fe86a7fa44699a3d", "score": "0.61792034", "text": "public void setMessage(final String message) {\r\n this.message = message;\r\n }", "title": "" }, { "docid": "279a543d678ae64a72132207f121ba35", "score": "0.6169651", "text": "@Override\n public void sendToReferee(Object message) {\n if (isOwner())\n thisListener.received(null, message);\n\n else\n client.sendTCP(message);\n }", "title": "" }, { "docid": "52de504553a4a6267a06af98d465d273", "score": "0.6161406", "text": "default void sendMessage(@NotNull BaseComponent component) {\n/* 682 */ spigot().sendMessage(component);\n/* */ }", "title": "" }, { "docid": "79316e352886fa8405d6c17bea8c2483", "score": "0.61603135", "text": "public void setMessage(String message) {\n\t\tthis.Message = message;\n\t}", "title": "" }, { "docid": "dbece89e4e8e7ed72c6d2b12b2178622", "score": "0.61563706", "text": "public Builder setMessage(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n message_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
12127095542257c7e90b52007fc9da60
Needed to convert from JSON in JAXRS to object
[ { "docid": "c6d51fc714c874b04ca9325843ddf5f2", "score": "0.0", "text": "public static Contact fromString(String jsonString) {\n ObjectMapper mapper = new ObjectMapper();\n Contact c = null;\n\n try {\n c = mapper.readValue(jsonString, Contact.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return c;\n }", "title": "" } ]
[ { "docid": "de306f93dfa9c830d4e9838ffa51be83", "score": "0.67752916", "text": "T fromJson(String json);", "title": "" }, { "docid": "8d6e4604741940cd8dccc7b760d1faf3", "score": "0.6730863", "text": "public T geObjectFromJSON(String objectAsJSON);", "title": "" }, { "docid": "47cd214de6a17fb8876646abf1c81f7c", "score": "0.6637114", "text": "T fromJson(Reader json);", "title": "" }, { "docid": "c0ca7771a59d6bcf5b6869ab8e27ebe7", "score": "0.65642476", "text": "T fromJson(InputStream json);", "title": "" }, { "docid": "a99df96d0a39a27b2ae41b93543fbe82", "score": "0.64796335", "text": "private void convertJsonToJavaObject(){\n\n Gson gson = new GsonBuilder().create();\n\n m_oWeather = gson.fromJson(m_sWeatherJson, Weather.class);\n }", "title": "" }, { "docid": "09c45f9e3d4cd3998f1236f15ccd1b9f", "score": "0.6062559", "text": "public interface JSONConversion {\n \n /**\n * Store information in a JSONObject\n * @return JSONObject containing information for this object.\n */\n public abstract JSONObject toJSONObject();\n \n}", "title": "" }, { "docid": "30656b9bb17667af23655303d1bbb678", "score": "0.6041906", "text": "Object deserialize(JsonContext context, Object pre, TypeUtil hint) throws IOException;", "title": "" }, { "docid": "103e80aa3bcfe82534553946c9c379d6", "score": "0.6008115", "text": "JSONObject asJSON();", "title": "" }, { "docid": "103e80aa3bcfe82534553946c9c379d6", "score": "0.6008115", "text": "JSONObject asJSON();", "title": "" }, { "docid": "50c39350edcaf1e1c48326924d551bd9", "score": "0.59120417", "text": "public static Object fromJson(String json, Class objectClass) throws Exception\r\n {\r\n JsonFactory f = new MappingJsonFactory();\r\n JsonParser jp = f.createJsonParser(json);\r\n Object obj = jp.readValueAs(objectClass);\r\n return obj;\r\n }", "title": "" }, { "docid": "7e1cd5b4cd40626fc8edd080476c9b1d", "score": "0.589696", "text": "public TransponderMessage jsonStringToObject(String json) {\n logger.info(\"jsonStringToObject String\");\n logger.info(\"jsonStringToObject\");\n JsonObject jn = new JsonObject(json);\n return jsonToObject(jn);\n }", "title": "" }, { "docid": "5e6193e96e7b5da8bc1279a09e4a6810", "score": "0.5879531", "text": "@Override\n public <T> T toDomainObject(Class<T> cls, String json)\n {\n return parser.parse(cls, json);\n }", "title": "" }, { "docid": "11223cc0a15e0c271dda4580d23b9aa1", "score": "0.5873193", "text": "public Jsonable fromJson(JSONObject json) throws JSONException;", "title": "" }, { "docid": "6fda66ab6c4fb7de3a9b139b27173606", "score": "0.5836372", "text": "private T fromJsonToObjHelper(JsonObject jsonContent, Integer pkId, Class<T> classRepresentingTable) {\n Gson gson = JsonHelper.GSON;\n\n Date dt = new Date();\n String dtJsonFormat = new SimpleDateFormat(DATE_FORMAT_IN_JSON).format(dt);\n LOG.info(dtJsonFormat);\n\n if (classRepresentingTable != Main_resource.class) {\n jsonContent.addProperty(\"creation_date\", dtJsonFormat);\n }\n\n // save primary key to json_content as well\n String pkFieldName = createPKFieldName(classRepresentingTable);\n jsonContent.addProperty(pkFieldName, pkId);\n\n String adjustedJsonObj = gson.toJson(jsonContent);\n\n // Map json to fields of class that represents table\n T entity = gson.fromJson(adjustedJsonObj, classRepresentingTable);\n\n // Set required fields\n entity.callSetId(pkId);\n entity.setCreation_date(dt);\n\n return entity;\n }", "title": "" }, { "docid": "c2df3e95a44f4b86730c1f33daca2745", "score": "0.5815464", "text": "private Libro requestJSONtoLibro(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t// convertir json del request body a Objeto\n\t\tBufferedReader reader = request.getReader();\n\t\tGson gson = new Gson();\n\t\tLibro libro = null;\n\t\ttry {\n\t\t\tlibro = gson.fromJson(reader, Libro.class);\n\t\t} catch (JsonSyntaxException e) {\n\t\t\tLOG.error(\"La sintaxis del objeto JSON recibido es incorrecta\");\n\t\t\tresponseObject = new Mensaje(\"La sintaxis del objeto JSON recibido es incorrecta\");\n\t\t\tresponseStatus = HttpServletResponse.SC_BAD_REQUEST;\n\t\t} catch (Exception e) {\n\t\t\tresponseStatus = HttpServletResponse.SC_BAD_REQUEST;\n\t\t\tresponseObject = e.getMessage();\n\t\t\tLOG.error(e);\n\t\t}\n\t\tLOG.debug(\" Json convertido a Objeto: \" + libro);\n\n\t\tif (libro == null) {\n\t\t\tthrow new Exception(\"El libro es null\");\n\t\t}\n\t\treturn libro;\n\t}", "title": "" }, { "docid": "df9afab4a6ea1cfa8ad3a9cc3138e134", "score": "0.5789759", "text": "public interface IResponse\r\n{\r\n /** Convert JSON to business object instance.\r\n * \r\n * @param caller instance of caller\r\n */\r\n public Primary process( final String json,final JsonObjectType classInfo );\r\n}", "title": "" }, { "docid": "d5a9262c08e135b756fb8ae45c2127bd", "score": "0.577071", "text": "private User convertUserFromJson(String h){\n return gson.fromJson(h, User.class);\n }", "title": "" }, { "docid": "98446701766c6b92244c91e2a779a50f", "score": "0.57462436", "text": "private BTCPrice mapJsonToEntity(String jsonData){\n\n try {\n return new ObjectMapper().readValue(jsonData, BTCPrice.class);\n } catch (JsonProcessingException e) {\n logger.error(\"PersistenceService.mapJsonToEntity - \" +\n \"Error when try map string json data to entity BTCPrice. Exception: {0}\", e.getMessage());\n return null;\n }\n }", "title": "" }, { "docid": "1b12d1a525f8b99b7978c9f11ebd64d7", "score": "0.57363385", "text": "public abstract JSONObject toJSONObject();", "title": "" }, { "docid": "1b12d1a525f8b99b7978c9f11ebd64d7", "score": "0.57363385", "text": "public abstract JSONObject toJSONObject();", "title": "" }, { "docid": "b93b9dc6347140d221d457b846afe9f0", "score": "0.5726382", "text": "public T fromJsonContentToObj(String json, Class<T> classRepresentingTable) {\n\n // expect json_content\n JsonObject jsonContent = JsonHelper.getFromJson(json);\n\n Integer pkId = utilitiesDAO.getNextSeqValForPKForTable(classRepresentingTable);\n\n return fromJsonToObjHelper(jsonContent, pkId, classRepresentingTable);\n }", "title": "" }, { "docid": "b8cefe6db520a97010ce1c0b493f2758", "score": "0.5695838", "text": "private ResultTypeJSONConverter() {\n super();\n }", "title": "" }, { "docid": "a706a811e74ded69ee3d5e68375cff0c", "score": "0.56680524", "text": "private JSONFacilityResponseData convertJSONIntoJavaObjectForFacility(UIResponse response) {\n\t\n\t\t\n\t\tObject data = response.getData();\n\t\t\n\t\tObjectMapper ob_Objectmapper = new ObjectMapper();\n\t\t\n\t\tJSONFacilityResponseData jsonResponseData = new JSONFacilityResponseData();\n\t\ttry {\n\t\t\tjsonResponseData = ob_Objectmapper.readValue(data.toString(),JSONFacilityResponseData.class);\n\t\t} catch (JsonParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (JsonMappingException 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}\n\t\t\n\t\treturn jsonResponseData;\n\t}", "title": "" }, { "docid": "eb3342fc1e96d2110977ebdb9326456a", "score": "0.565712", "text": "private Object parseResponseEntity(HttpEntity responseEntity) throws IOException {\r\n String entityString = IOUtils.toString(responseEntity.getContent(), \"UTF-8\");\r\n System.out.println(\"[REQUESTTHREAD]PARSED RESPONSE:\" + entityString);\r\n \r\n Object obj = JSONValue.parse(entityString);\r\n return obj;\r\n }", "title": "" }, { "docid": "0ce23e18f7349c971eabe76fc1952fcc", "score": "0.56498915", "text": "Object toJson(Object value);", "title": "" }, { "docid": "3a9108a3c7c9a2836e4c1b8da34be71f", "score": "0.5629759", "text": "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Cuenta getJson() {\n //TODO return proper representation object\n //throw new UnsupportedOperationException();\n return new Cuenta();\n }", "title": "" }, { "docid": "092c96c338b5f02365a6df3dae6dd184", "score": "0.5628491", "text": "public static <T> T fromJson(String json, Class<T> pojoClass) {\n T object;\n try { \t\n object = mapper.readValue(json, pojoClass);\n } catch (IOException e) {\n e.printStackTrace();\n //-- PJMFJ = POJO JSON MAPPER FROM JSON\n throw new BusinessException(\"IB-0500\", \"PJMFJ\");\n }\n\n return object;\n }", "title": "" }, { "docid": "5562c15bc343bb54aac77b93b7f4357a", "score": "0.56169486", "text": "public static <T> T stringToObject(String json, Class<T> cls) {\n T bean = null;\n try {\n bean = (new ObjectMapper()).readValue(json, cls);\n } catch (JsonParseException e) {\n e.printStackTrace();\n } catch (JsonMappingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } \n return bean;\n }", "title": "" }, { "docid": "875879de19ab7b1c8439e6e27c2df8fe", "score": "0.5605146", "text": "public interface JsonParser<T> {\n T fromJson(String json);\n String toJson(T value);\n}", "title": "" }, { "docid": "692cb8b05f2dfbda5552af562060d784", "score": "0.56046134", "text": "public static ArraryHelp JsonToObject(String json){\n\t\treturn JsonIterator.deserialize(json, ArraryHelp.class);\r\n\t}", "title": "" }, { "docid": "6f71e591098ad9d5734c8f36d00d1cf2", "score": "0.5596815", "text": "private FBSObject asObject() throws JsonException {\n if(value!=null) {\n return value;\n }\n throw new JsonException(null,com.ibm.xsp.extlib.core.ResourceHandler.getSpecialAudienceString(\"JSJson.JavaScriptvalueisnotanobject\")); // $NLX-JSJson.JavaScriptvalueisnotanobject-1$\n }", "title": "" }, { "docid": "82f80f3639f9a98c89549a990ef493e6", "score": "0.55787075", "text": "JSONObject asJSONObject();", "title": "" }, { "docid": "d38dc32d3c6bf0161e2cdacf1f418e5e", "score": "0.5575565", "text": "public static <T> T getRestApiResponseAsObject(String uri,\n TypeReference<T> typeReference) {\n return JMJson.withJsonResource(getResponseAsString(uri), typeReference);\n }", "title": "" }, { "docid": "83a8d12664b4f71b155897261474d711", "score": "0.5571945", "text": "protected Object readResolve()\n/* */ {\n/* 330 */ return new JsonFactory(this, this._objectCodec);\n/* */ }", "title": "" }, { "docid": "52bf451ad558d50a5d25240d78d05069", "score": "0.5571246", "text": "JSONObject toJson();", "title": "" }, { "docid": "63ec83cdf3063785c9c79b53a1a09d67", "score": "0.5562897", "text": "ResponseDefinitionBuilder json(Content content);", "title": "" }, { "docid": "cc89a1fa4a540f253afead3c2401d9d9", "score": "0.55580693", "text": "protected abstract T construct(JSONObject jsonObject);", "title": "" }, { "docid": "ff2221d87fb7ab51dd9ce750b6ca9dd3", "score": "0.5543904", "text": "public Object GET(String id) {\n\n Response response;\n if(StringUtils.isNotBlank(id)) {\n response = this.target.path(id).request(MediaType.APPLICATION_JSON).get();\n } else {\n response = this.target.request(MediaType.APPLICATION_JSON).get();\n }\n\n\n if (response.getStatus() != 200) {\n throw new RuntimeException(\"Failed : HTTP error code : \" + response.getStatus());\n }\n\n String entity = response.readEntity(String.class);\n\n JsonFactory factory = new JsonFactory();\n ObjectMapper mapper = new ObjectMapper(factory);\n// CollectionType types = mapper.getTypeFactory().constructCollectionType(List.class, Map.class);\n\n Object object;\n try {\n object = mapper.readValue(entity, Object.class);\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to read response.\", e);\n }\n return object;\n\n// TypeReference<HashMap<String,Object>> typeRef = new TypeReference<HashMap<String,Object>>() {};\n//\n// Map<String, Object> map = new HashMap<>();\n// try {\n// map = mapper.readValue(entity, typeRef);\n// } catch (IOException e) {\n// throw new RuntimeException(\"Failed to read response.\", e);\n// }\n// return map;\n }", "title": "" }, { "docid": "fdd2fa75ee29d68f3c4cc732b52ff40b", "score": "0.55218536", "text": "public static <T> T fromJson(String json, JavaType type){\n return execute(() -> OBJECT_MAPPER.readValue(json, type));\n }", "title": "" }, { "docid": "fe63fb9edb58782b7972ad29b8bf0e1a", "score": "0.550982", "text": "private PersonResponse convertToResponse(Person person) {\n PersonResponse personResponse = new PersonResponse();\n BeanUtils.copyProperties(person, personResponse);\n return personResponse;\n }", "title": "" }, { "docid": "f1f615e42cefe81c9a9412d178c0770d", "score": "0.5501455", "text": "private static Object injectJson(Object obj, String json) throws GridException {\n assert obj != null;\n assert json != null;\n\n Object desObj = deserialize(json);\n\n if (desObj != null)\n if (Map.class.isAssignableFrom(desObj.getClass()))\n mapInject(obj, (Map)desObj);\n else\n objectInject(obj, desObj);\n\n return obj;\n }", "title": "" }, { "docid": "8029d470a74a6ccab616324d280562d3", "score": "0.54991674", "text": "protected abstract T createEntity(E jsonEntity);", "title": "" }, { "docid": "d2909e4da23097cc8f31d26edcbb09c2", "score": "0.54876107", "text": "public <T extends Object> T fromJson(String json, Class<T> classe) {\n return new Gson().fromJson(json, classe);\n }", "title": "" }, { "docid": "98101559ae0c0e3cfdb62f552195c9b6", "score": "0.5487465", "text": "T fromJson(File json);", "title": "" }, { "docid": "9c10d5b2d2a78adbf957a50cfe1768e8", "score": "0.54845405", "text": "public interface JsonConverter {\n\n @NotNull\n ChartDataSet jsonToChartData(@NotNull JSONObject object);\n\n}", "title": "" }, { "docid": "30e15eba00e2bf52af37de24d358b9f4", "score": "0.54845303", "text": "public abstract UserType deserialize (Object datum) ;", "title": "" }, { "docid": "c300306f680ddeeb994f56773fa6e475", "score": "0.54830295", "text": "public void deserialize() {}", "title": "" }, { "docid": "d518a7b2fd240668992b3969fddff4c0", "score": "0.5482696", "text": "public String translateJson(String input);", "title": "" }, { "docid": "7c461478ebfffe30d8d8bea11e0e041a", "score": "0.546991", "text": "public static <T> T jsonToObject(String json, Class<T> classOfT) {\n\t\ttry {\n\t\t\treturn gson.fromJson(json, classOfT);\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn null;\n\n\t}", "title": "" }, { "docid": "90c94b150ec3dad7c1cea60e472dec5d", "score": "0.5468737", "text": "Mapping createMappingFromJSON(String json) throws IOException;", "title": "" }, { "docid": "d3c303ea520e7423540d0cbcd4f5c3b2", "score": "0.5465682", "text": "private Object fromJson(Field field, JsonElement json, int depth) {\n\n if (json == null || json.isJsonNull()){\n if (field.schema().isOptional()) return null;\n if (field.schema().type().equals(Schema.Type.ARRAY)) return new ArrayList<>();\n if (field.schema().type().equals(Schema.Type.MAP)) return new HashMap<>();\n else throw new IllegalArgumentException(print(field) + \" cannot be null.\");\n }\n\n switch (field.schema().type()){\n case INT8: return json.getAsByte();\n case INT16: return json.getAsShort();\n case INT32: return json.getAsInt();\n case INT64: return json.getAsLong();\n case FLOAT32: return json.getAsFloat();\n case FLOAT64: return json.getAsDouble();\n case BOOLEAN: return json.getAsBoolean();\n case STRING: return json.getAsString();\n case BYTES: return json.getAsString();\n case ARRAY:\n if (!json.isJsonArray()) break;\n List<Object> array = new ArrayList<>();\n json.getAsJsonArray().forEach(el -> array.add(fromJson(new Field(field.name()+\".child\", 0, field.schema().valueSchema()), el, depth+1)));\n return array;\n case MAP:\n if (!json.isJsonObject()) break;\n Map<String, Object> map = new HashMap<>();\n json.getAsJsonObject().entrySet().forEach(entry -> map.put(entry.getKey(), fromJson(new Field(field.name(), 0, field.schema().valueSchema()), entry.getValue(), depth+1)));\n return map;\n case STRUCT:\n if (!json.isJsonObject()) break;\n Struct struct = new Struct(field.schema());\n JsonObject obj = json.getAsJsonObject();\n\n for (Field child : field.schema().fields()) {\n JsonElement el = obj.get(child.name());\n Object value = fromJson(child, el, depth+1);\n if (value != null) struct.put(child, value);\n }\n return struct;\n }\n\n throw new IllegalArgumentException(json + \" cannot be cast to \" + print(field));\n }", "title": "" }, { "docid": "07d46169efa0f327e61a1f752bf2141d", "score": "0.5463832", "text": "public T jsonToObjOfType(String json, Class<T> classRepresentingTable) throws RihaRestException {\n\n T fromJson = null;\n\n try {\n\n if (JsonContentBasedTable.isJsonContentBasedTable(classRepresentingTable)) {\n // here gather logic for one group of tables/objects; they all\n // expect json_content and from json_content table entry will be\n // created\n if (classRepresentingTable == Comment.class) {\n fromJson = fromJsonContentToObjForComment(json, classRepresentingTable);\n } else {\n fromJson = fromJsonContentToObj(json, classRepresentingTable);\n }\n } else {\n fromJson = fromJsonContentToObj(json, classRepresentingTable);\n }\n\n } catch (Exception e) {\n // all unexpected exceptions handle here\n RihaRestError error = MyExceptionHandler.unmapped(e, json);\n throw new RihaRestException(error);\n }\n\n return fromJson;\n\n }", "title": "" }, { "docid": "27f6c233a3ba16497c360640dde4e56d", "score": "0.5448882", "text": "public static <T> T jsonFromString(String resource, Class<T> clazz) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n\n return mapper.readValue(resource, clazz);\n }", "title": "" }, { "docid": "8745f91783df006955def78e773c61ab", "score": "0.5441904", "text": "public static Object stringToObject(String json, Object bean) {\n try {\n bean = (new ObjectMapper()).readValue(json, bean.getClass());\n } catch (JsonParseException e) {\n e.printStackTrace();\n } catch (JsonMappingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } \n return bean;\n }", "title": "" }, { "docid": "3b70b96c689d58e26fcd09f05acade83", "score": "0.5437097", "text": "public Primary process( final String json,final JsonObjectType classInfo );", "title": "" }, { "docid": "9a8a96a1903f44e0b79263f08c367ffe", "score": "0.54289925", "text": "public ObjectMapper getObjectMapper (StringBuffer jsonToConvert) throws Exception{\n\t\tObjectMapper om = new ObjectMapper();\n om.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n\n JsonNode jsNode = om.readTree(this.halJsonPayload);\n String targetStr = jsNode.at(this.targetNode).toString();\n jsonToConvert.append(targetStr);\n \n return om;\n\t}", "title": "" }, { "docid": "f174f6fe8c60cdcd02e1a09409f9e0d4", "score": "0.5417286", "text": "public interface JsonParse<T> {\n BaseBean parseToBaseBean(String baseJson);\n\n T parseToModelBean(String baseJson);\n}", "title": "" }, { "docid": "f5451be68f9cb1c52fc1aebdb42a3ef6", "score": "0.54148585", "text": "public static <T> T json2pojo(String jsonStr, Class<T> clazz){\n \tT t = null;\n try {\n\t\t\tt = objectMapper.readValue(jsonStr, clazz);\n\t\t} catch (JsonParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (JsonMappingException 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}\n\t\treturn t;\n }", "title": "" }, { "docid": "9a182d4079c3921dce038eaa18b7fcca", "score": "0.5411867", "text": "public static CouchDBResponse parseJson (String json){\n GsonBuilder gb = new GsonBuilder();\n //gb.registerTypeAdapter(Raters.class, new RaterClassDeserializer());\n Gson gson = gb.create();\n CouchDBResponse reply= gson.fromJson(json, CouchDBResponse.class);\n return reply;\n }", "title": "" }, { "docid": "d5000a751f4c45e28a4a8b632d2cd2aa", "score": "0.541096", "text": "@Override\n public R call(T t) {\n return JSON.parseObject(t, new TypeReference<R>(){}.getType());\n }", "title": "" }, { "docid": "d1781bb7f2e89c69671d24343d6ad305", "score": "0.54079324", "text": "public static <T> T fromJson(String json, TypeReference<T> valueTypeRef) {\n T object;\n try {\n object = mapper.<T>readValue(json, valueTypeRef);\n } catch (IOException e) {\n e.printStackTrace();\n //-- PJMFJ = POJO JSON MAPPER FROM JSON\n throw new BusinessException(\"IB-0500\", \"PJMFJ\");\n }\n\n return object;\n }", "title": "" }, { "docid": "a928c787ed005041ec848b1687a592ae", "score": "0.54057115", "text": "private Member getFromJSON(String json) {\n Gson gson = new Gson();\n return (Member) gson.fromJson(json, Member.class);\n }", "title": "" }, { "docid": "ac57f44fba9f4bf3e158e34c83fb8a81", "score": "0.53802234", "text": "public static <T> Object fromJSO(JavaScriptObject jso, Class<T> clazz) {\n\t\tObject obj = null;\n\t\ttry {\n\t\t\t//String response = jsonObject.toString();\n\t\t\tString response = toJsonString(jso);\n\t\t\t//Logger.log(\"GetOnject.convertJSOtoObject()\" + response);\n\t\t\tobj = getObject(clazz, response);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Throwable e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn obj;\n\t}", "title": "" }, { "docid": "6cc40f3100e00d93bf6432af315d8dd7", "score": "0.5378958", "text": "public abstract String toJson();", "title": "" }, { "docid": "8784ec5f0b31cfdc93f5ff848ccade81", "score": "0.53692347", "text": "public Object fromJson(String jevent, Class<?> clazz)\n throws ObjectBuilder.Exception {\n\n JSONDeserializer<Object> deser = deserializers.get(clazz);\n\n if (deser == null) {\n JSONDeserializer<Object> newDeser = new JSONDeserializer<Object>();\n newDeser.use(null, clazz);\n\n deser = deserializers.putIfAbsent(clazz, newDeser);\n\n if (deser == null)\n deser = newDeser;\n }\n\n return deser.deserialize(jevent);\n\n }", "title": "" }, { "docid": "e11916016dbdd9842a409fa09eaa1361", "score": "0.5355551", "text": "public IJsonNode createJsonNode();", "title": "" }, { "docid": "9f2ccbedae0840ed159ca9454ee4e136", "score": "0.53523475", "text": "@Override\n\tpublic NewsData jsonToObject(JSONObject jsonObject) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c5040e64be10e8fc259ecaf1a9ae0ba5", "score": "0.53497547", "text": "private FoodItem jsonFieldsToFoodItem(JSONObject json) {\n return new FoodItem(\n json.getString(\"food_name\"),\n json.getInt(\"serving_qty\"),\n json.getInt(\"nf_calories\"));\n }", "title": "" }, { "docid": "abb953117316e37f9aff6a3f6ad23d34", "score": "0.5343628", "text": "public abstract JsonDeserializer<Object> unwrappingDeserializer(NameTransformer paramNameTransformer);", "title": "" }, { "docid": "a8cfe7431afb3fd5853fbd8ca872dfdd", "score": "0.53402156", "text": "public JSON()\n {\n }", "title": "" }, { "docid": "ae92ae31e5a3278c8e4dee029794ebac", "score": "0.5339607", "text": "public interface JsonPojo {\n}", "title": "" }, { "docid": "639e0ed096b457772e2523d5dd7935bc", "score": "0.533554", "text": "@JsonDeserialize(as = ExampleResource.class)\npublic interface Resource<ID> {\n\n\t/**\n\t * @return the id\n\t */\n\tpublic ID getId();\n\n\t/**\n\t * @param id the id to set\n\t */\n\tpublic void setId(ID id);\n\n}", "title": "" }, { "docid": "092b7280491046a8747a9c404c5d217f", "score": "0.5329976", "text": "public CodeGenerator_reqJSON(){}", "title": "" }, { "docid": "8de5c918a1f51fd37917564cf2f5019e", "score": "0.53292334", "text": "public static Object simpleJsonToObject(String jsonString, Class<?> c)\r\n {\r\n try\r\n {\r\n JSONObject obj = new JSONObject(jsonString);\r\n return toObject(obj, c);\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "4c57c7c2480929adb2d1d7b9b12a0575", "score": "0.53255385", "text": "private static JSONObject toJSONObject(ManagedObject obj, SerializingContext context) throws LMFResourceException {\n\t\tJSONObject object = new JSONObject();\n\t\tobject.put(JSON_KEY_TYPE, obj.type().getName());\n\t\tif (obj.type().isPrimitiveType()) {\n\t\t\tif (obj.type() == Primitives.BOOL) {\n\t\t\t\tobject.put(JSON_KEY_CONTENT, obj.boolValue());\n\t\t\t} else if (obj.type() == Primitives.INT || obj.type() == Primitives.ENUM) {\n\t\t\t\tobject.put(JSON_KEY_CONTENT, obj.intValue());\n\t\t\t} else if (obj.type() == Primitives.LONG) {\n\t\t\t\tobject.put(JSON_KEY_CONTENT, obj.longValue());\n\t\t\t} else if (obj.type() == Primitives.FLOAT) {\n\t\t\t\tobject.put(JSON_KEY_CONTENT, obj.floatValue());\n\t\t\t} else if (obj.type() == Primitives.DOUBLE) {\n\t\t\t\tobject.put(JSON_KEY_CONTENT, obj.doubleValue());\n\t\t\t} else if (obj.type() == Primitives.STRING) {\n\t\t\t\tobject.put(JSON_KEY_CONTENT, obj.stringValue());\n\t\t\t} else if (obj.type() == Primitives.LIST) {\n\t\t\t\tJSONArray array = new JSONArray();\n\t\t\t\tfor (ManagedObject o : obj.listContent()) {\n\t\t\t\t\tarray.put(toJSONObject(o, context));\n\t\t\t\t}\n\t\t\t\tobject.put(JSON_KEY_CONTENT, array);\n\t\t\t} else {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\t\t} else {\n\t\t\tMap<String, Object> kvstore = new HashMap<String, Object>();\n\t\t\tfor (Attribute attr : obj.type().getAttributes()) {\n\t\t\t\tif (attr.isContainment()) {\n\t\t\t\t\t// contained attribute\n\t\t\t\t\tif (attr.getValueType() == Primitives.LIST) {\n\t\t\t\t\t\tJSONArray array = new JSONArray();\n\t\t\t\t\t\tfor (ManagedObject o : obj.get(attr.getName()).listContent()) {\n\t\t\t\t\t\t\tif (o == null) array.put(JSONObject.NULL);\n\t\t\t\t\t\t\telse array.put(toJSONObject(o, context));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (array.length() > 0) kvstore.put(attr.getName(), array);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (obj.get(attr.getName()) != null) {\n\t\t\t\t\t\t\tkvstore.put(attr.getName(), toJSONObject(obj.get(attr.getName()), context));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// referenced attribute\n\t\t\t\t\tif (attr.getValueType() == Primitives.LIST) {\n\t\t\t\t\t\tJSONArray array = new JSONArray();\n\t\t\t\t\t\tfor (ManagedObject o : obj.get(attr.getName()).listContent()) {\n\t\t\t\t\t\t\tif (o == null) array.put(JSONObject.NULL);\n\t\t\t\t\t\t\telse array.put(toJSONReference(o, context));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (array.length() > 0) kvstore.put(attr.getName(), array);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (obj.get(attr.getName()) != null) {\n\t\t\t\t\t\t\tkvstore.put(attr.getName(), toJSONReference(obj.get(attr.getName()), context));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tobject.put(JSON_KEY_CONTENT, kvstore);\n\t\t}\n\t\treturn object;\n\t}", "title": "" }, { "docid": "26106f4f4ea140c4833b4c26cc03582f", "score": "0.53186274", "text": "@Override\r\n\tprotected ObtenerParametroResponse responseText(String json) {\n\t\tObtenerParametroResponse obtenerParametroResponse = JSONHelper.desSerializar(json, ObtenerParametroResponse.class);\r\n\t\treturn obtenerParametroResponse;\r\n\t}", "title": "" }, { "docid": "01440c28dfdcbadad85d7e45130ed88e", "score": "0.53172654", "text": "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n //throw new UnsupportedOperationException();\n return \"Hola mundo\";\n }", "title": "" }, { "docid": "1d5545ee78e0617489e8f6544aef1d48", "score": "0.5315619", "text": "public interface JSONAware {\n\n /**\n * @return JSON text\n */\n String toJSONString();\n}", "title": "" }, { "docid": "3a2c92eda418c0ce7fc3bfe50b5f547c", "score": "0.53126997", "text": "public abstract Object deserializeFromObject(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)\n/* */ throws IOException;", "title": "" }, { "docid": "bc344b5f72c703a2ea5c24793297d79e", "score": "0.5310729", "text": "public abstract ObjectNode toJson();", "title": "" }, { "docid": "5010544127185cce8b8fa8a33350880d", "score": "0.53097796", "text": "Mapping createMappingFromJSON(JsonNode json) throws IOException;", "title": "" }, { "docid": "c6bdadbef25143627b1f3c45fcd7693b", "score": "0.5309134", "text": "public ViewRequestEntity parseViewRequestJsonResponse(String response) {\n Gson gson = new Gson();\n JsonParser parser = new JsonParser();\n JsonObject jsonObject = parser.parse(response).getAsJsonObject();\n return gson.fromJson(jsonObject, ViewRequestEntity.class);\n }", "title": "" }, { "docid": "be1491488c36adda8b455ed96a172470", "score": "0.5305295", "text": "public ServiceResource() {\n mapper = new ObjectMapper();\n }", "title": "" }, { "docid": "f73cb93cd8346080e450c2e10e0bdce3", "score": "0.530384", "text": "public TransponderMessage messageToObject(Message message) throws DataFormatException {\n try {\n logger.info(\"messageToObject Message\");\n logger.info(\"messageToObject: \" + message.body());\n JsonObject jn = new JsonObject(message.body().toString());\n logger.info(\"Created json object: \" + jn.toString());\n return jsonToObject(jn);\n } catch (Exception e) {\n e.printStackTrace();\n throw new DataFormatException(\"Message is not JsonObject\");\n }\n }", "title": "" }, { "docid": "ac99e79a32389f2e010c69f7dd70dedf", "score": "0.5295365", "text": "public static Transaction jsonTransformer(InputStream incomingData) throws IOException {\n\t\tTransaction transaction = new Transaction();\n\t\tStringBuilder builder = new StringBuilder();\n\t\tString line = null;\n\t\tString resp = \"\";\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(incomingData));\n\n\t\twhile ((line = in.readLine()) != null) {\n\t\t\tbuilder.append(line);\n\t\t\tresp = resp + line.toString();\n\t\t}\n\t\tGson gson = new Gson();\n\t\ttransaction = gson.fromJson(resp, Transaction.class);\n\t\treturn transaction;\n\t}", "title": "" }, { "docid": "ced80466627972961c3c001b0edff3c8", "score": "0.52818114", "text": "@Test\n public void testConvertJsonToResponse_Successful() {\n WebContextFetchResponse emptyResponse = WebContextFetcher.convertJsonToResponse(\"{}\");\n Assert.assertTrue(\"Empty json dictionary does not return empty map.\",\n emptyResponse.context.isEmpty());\n\n WebContextFetchResponse response =\n WebContextFetcher.convertJsonToResponse(\"{\\\"testing\\\": \\\"onetwothree\\\"}\");\n Assert.assertEquals(\"Map with single key did not have correct key/val pair.\", \"onetwothree\",\n response.context.get(\"testing\"));\n Assert.assertEquals(\n \"Map with single key had more than one key.\", 1, response.context.size());\n }", "title": "" }, { "docid": "3e146dadd65a6c5c0a3527c523555df6", "score": "0.5281032", "text": "@GET\n @Produces(\"application/text\")\n //MediaType.APPLICATION_JSON\n public String getJson() {\n return \"\";\n }", "title": "" }, { "docid": "e25a6785f897530f782d406ebc981e3f", "score": "0.52755415", "text": "public ProductModel() {\n // Jackson deserialization\n }", "title": "" }, { "docid": "5474a9953bc6e4bd28c16e1b8dc7bf8b", "score": "0.52724", "text": "public interface CustomJson<JSON_OBJECT> {\n\n JSON_OBJECT objectFromJson(String url);\n}", "title": "" }, { "docid": "d8bb49eada8887c568a97ab6cada6f0e", "score": "0.52684295", "text": "private FromJsonUtil() {\n }", "title": "" }, { "docid": "fb089482093cf14ec5f6a3467f1fea92", "score": "0.5267497", "text": "public interface JsonBundleFactory {\n\n\t/**\n\t * Creates JsonBundleItemBean from ShoppingItemFormBean.\n\t * ShoppingItemFormBean has a flat structure, where root holds all children and descendants. \n\t * JsonBundleItemBean has a nested tree structure. \n\t * @param rootShoppingItem root shopping item.\n\t * @return converted json bundle.\n\t */\n\tJsonBundleItemBean createJsonBundleFromShoppingItemFormBean(\n\t\t\tfinal ShoppingItemFormBean rootShoppingItem);\n\n\t/**\n\t * serialize to json text.\n\t * @param jsonBundle JsonBundleItemDto object.\n\t * @return text representation of json bundle.\n\t */\n\tString serialize(final JsonBundleItemBean jsonBundle);\n\n\t/**\n\t * Deserialize json text into Java object. \n\t * @param bundleText text representation of json bundle.\n\t * @param jsonBundleClass the implementing class reference\n\t * @return JsonBundleItemBean object.\n\t */\n\tJsonBundleItemBean deserialize(String bundleText, Class<? extends JsonBundleItemBean> jsonBundleClass);\n\n}", "title": "" }, { "docid": "187bb63c1832442d0792b167ee3e4fbc", "score": "0.5262053", "text": "private Twitter jsonToTwitter(String result) {\n Twitter twits = null;\n if (result != null && result.length() > 0) {\n try {\n Gson gson = new Gson();\n twits = gson.fromJson(result, Twitter.class);\n } catch (IllegalStateException ex) {\n // just eat the exception\n }\n }\n return twits;\n }", "title": "" }, { "docid": "5a1ca716577d0a3af57335e5fd722beb", "score": "0.5257685", "text": "public ApplicationObjectPayload(String json)\n {\n this(parse(json));\n }", "title": "" }, { "docid": "059712933951e10a9946f445ca6f5137", "score": "0.5256265", "text": "Entity toEntity();", "title": "" }, { "docid": "48bdddb5f40ca7f6b8be1198cd860bb3", "score": "0.5254769", "text": "@POST\r\n/* 26: */ @Path(\"/consultarMotivoNotaCreditoClientePorOrganizacion\")\r\n/* 27: */ @Consumes({\"application/json\"})\r\n/* 28: */ @Produces({\"application/json\"})\r\n/* 29: */ public List<MotivoNotaCreditoClienteResponseDto> consultarMotivoNotaCreditoClientePorOrganizacion(ListaMotivoNotaCreditoClienteRequestDto request)\r\n/* 30: */ throws AS2Exception\r\n/* 31: */ {\r\n/* 32: */ try\r\n/* 33: */ {\r\n/* 34:34 */ Map<String, String> filtros = new HashMap();\r\n/* 35:35 */ filtros.put(\"idOrganizacion\", request.getIdOrganizacion() + \"\");\r\n/* 36:36 */ filtros.put(\"activo\", \"true\");\r\n/* 37: */ \r\n/* 38:38 */ List<MotivoNotaCreditoCliente> listaMotivoNotaCreditoCliente = this.motivoNotaCreditoClienteDao.obtenerListaCombo(MotivoNotaCreditoCliente.class, \"predeterminado\", false, filtros);\r\n/* 39:39 */ List<MotivoNotaCreditoClienteResponseDto> response = new ArrayList();\r\n/* 40:41 */ for (MotivoNotaCreditoCliente motivo : listaMotivoNotaCreditoCliente)\r\n/* 41: */ {\r\n/* 42:42 */ MotivoNotaCreditoClienteResponseDto motivoResponse = new MotivoNotaCreditoClienteResponseDto();\r\n/* 43:43 */ motivoResponse.setActivo(motivo.isActivo());\r\n/* 44:44 */ motivoResponse.setCodigo(motivo.getCodigo());\r\n/* 45:45 */ motivoResponse.setIdMotivoNotaCreditoCliente(Integer.valueOf(motivo.getId()));\r\n/* 46:46 */ motivoResponse.setNombre(motivo.getNombre());\r\n/* 47:47 */ motivoResponse.setIdOrganizacion(Integer.valueOf(motivo.getIdOrganizacion()));\r\n/* 48:48 */ motivoResponse.setIdSucursal(Integer.valueOf(motivo.getIdSucursal()));\r\n/* 49:49 */ motivoResponse.setIndicadorReversaTransformacion(motivo.isIndicadorReversaTransformacion());\r\n/* 50:50 */ motivoResponse.setDescripcion(motivo.getDescripcion());\r\n/* 51:51 */ motivoResponse.setPredeterminado(motivo.isPredeterminado());\r\n/* 52: */ \r\n/* 53:53 */ boolean encontre = false;\r\n/* 54:54 */ for (MotivoNotaCreditoClienteRequestDto motivoRequest : request.getListaMotivoNotaCreditoClienteRequest()) {\r\n/* 55:55 */ if (motivoResponse.getIdMotivoNotaCreditoCliente().equals(motivoRequest.getIdMotivoNotaCreditoCliente()))\r\n/* 56: */ {\r\n/* 57:56 */ encontre = true;\r\n/* 58:57 */ motivoRequest.setRevisado(Boolean.valueOf(true));\r\n/* 59:58 */ if (motivoResponse.getHashCode() == motivoRequest.getHashCode().intValue()) {\r\n/* 60: */ break;\r\n/* 61: */ }\r\n/* 62:59 */ response.add(motivoResponse); break;\r\n/* 63: */ }\r\n/* 64: */ }\r\n/* 65:64 */ if (!encontre) {\r\n/* 66:65 */ response.add(motivoResponse);\r\n/* 67: */ }\r\n/* 68: */ }\r\n/* 69:69 */ for (MotivoNotaCreditoClienteRequestDto motRequest : request.getListaMotivoNotaCreditoClienteRequest()) {\r\n/* 70:70 */ if (!motRequest.getRevisado().booleanValue())\r\n/* 71: */ {\r\n/* 72:71 */ MotivoNotaCreditoClienteResponseDto motivResponse = new MotivoNotaCreditoClienteResponseDto();\r\n/* 73:72 */ motivResponse.setIdMotivoNotaCreditoCliente(motRequest.getIdMotivoNotaCreditoCliente());\r\n/* 74:73 */ motivResponse.setActivo(false);\r\n/* 75:74 */ response.add(motivResponse);\r\n/* 76: */ }\r\n/* 77: */ }\r\n/* 78:78 */ return response;\r\n/* 79: */ }\r\n/* 80: */ catch (Exception e)\r\n/* 81: */ {\r\n/* 82:80 */ e.printStackTrace();\r\n/* 83:81 */ throw new AS2Exception(e.getMessage());\r\n/* 84: */ }\r\n/* 85: */ }", "title": "" }, { "docid": "92499196e9f6d891d524e306d758fe4f", "score": "0.52518195", "text": "public static User json2User(String json) {\n return new JSONDeserializer<User>().deserialize(json, User.class);\n }", "title": "" }, { "docid": "d88bd08020167ff4cf028d38f3020e1d", "score": "0.5241977", "text": "public String getJson();", "title": "" }, { "docid": "3f4ec616676de2c504da11050b69d11c", "score": "0.5237185", "text": "public static <T> T fromJson(String json, Class<?> type) {\n\n\t\tSystem.out.println(\"json: \" + json);\n\t\tT result = new Gson().<T>fromJson(json, type);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "6f3247ca90a5b57bbceaceed0317b6fc", "score": "0.5233595", "text": "protected Object createJavaObjectInstance(Class clazz, JsonObject jsonObj)\n {\n final boolean useMapsLocal = useMaps;\n String type = jsonObj.type;\n\n // We can't set values to an Object, so well try to use the contained type instead\n\t\tif (\"java.lang.Object\".equals(type))\n {\n\t\t\tObject value = jsonObj.get(\"value\");\n \tif (jsonObj.keySet().size() == 1 && value != null)\n {\n \t\ttype = value.getClass().getName();\n \t}\n }\n\n Object mate;\n\n // @type always takes precedence over inferred Java (clazz) type.\n if (type != null)\n { // @type is explicitly set, use that as it always takes precedence\n Class c;\n try\n {\n c = MetaUtils.classForName(type, reader.getClassLoader(), failOnUnknownType);\n }\n catch (Exception e)\n {\n if (useMapsLocal)\n {\n jsonObj.type = null;\n jsonObj.target = null;\n return jsonObj;\n }\n else\n {\n String name = clazz == null ? \"null\" : clazz.getName();\n throw new JsonIoException(\"Unable to create class: \" + name, e);\n }\n }\n if (c.isArray())\n { // Handle []\n Object[] items = jsonObj.getArray();\n int size = (items == null) ? 0 : items.length;\n if (c == char[].class)\n {\n jsonObj.moveCharsToMate();\n mate = jsonObj.target;\n }\n else\n {\n mate = Array.newInstance(c.getComponentType(), size);\n }\n }\n else\n { // Handle regular field.object reference\n if (MetaUtils.isPrimitive(c))\n {\n mate = MetaUtils.convert(c, jsonObj.get(\"value\"));\n }\n else if (c == Class.class)\n {\n mate = MetaUtils.classForName((String) jsonObj.get(\"value\"), reader.getClassLoader());\n }\n else if (c.isEnum())\n {\n mate = getEnum(c, jsonObj);\n }\n else if (Enum.class.isAssignableFrom(c)) // anonymous subclass of an enum\n {\n mate = getEnum(c.getSuperclass(), jsonObj);\n }\n else if (EnumSet.class.isAssignableFrom(c))\n {\n mate = getEnumSet(c, jsonObj);\n }\n else if ((mate = coerceCertainTypes(c.getName())) != null)\n { // if coerceCertainTypes() returns non-null, it did the work\n }\n else if (singletonMap.isAssignableFrom(c))\n {\n Object key = jsonObj.keySet().iterator().next();\n Object value = jsonObj.values().iterator().next();\n mate = Collections.singletonMap(key, value);\n }\n else\n {\n mate = newInstance(c, jsonObj);\n }\n }\n }\n else\n { // @type, not specified, figure out appropriate type\n Object[] items = jsonObj.getArray();\n\n // if @items is specified, it must be an [] type.\n // if clazz.isArray(), then it must be an [] type.\n if (clazz.isArray() || (items != null && clazz == Object.class && !jsonObj.containsKey(KEYS)))\n {\n int size = (items == null) ? 0 : items.length;\n mate = Array.newInstance(clazz.isArray() ? clazz.getComponentType() : Object.class, size);\n }\n else if (clazz.isEnum())\n {\n mate = getEnum(clazz, jsonObj);\n }\n else if (Enum.class.isAssignableFrom(clazz)) // anonymous subclass of an enum\n {\n mate = getEnum(clazz.getSuperclass(), jsonObj);\n }\n else if (EnumSet.class.isAssignableFrom(clazz)) // anonymous subclass of an enum\n {\n mate = getEnumSet(clazz, jsonObj);\n }\n else if ((mate = coerceCertainTypes(clazz.getName())) != null)\n { // if coerceCertainTypes() returns non-null, it did the work\n }\n else if (clazz == Object.class && !useMapsLocal)\n {\n if (unknownClass == null)\n {\n mate = new JsonObject();\n ((JsonObject)mate).type = Map.class.getName();\n }\n else if (unknownClass instanceof String)\n {\n mate = newInstance(MetaUtils.classForName(((String)unknownClass).trim(), reader.getClassLoader()), jsonObj);\n }\n else\n {\n throw new JsonIoException(\"Unable to determine object type at column: \" + jsonObj.col + \", line: \" + jsonObj.line + \", content: \" + jsonObj);\n }\n }\n else\n {\n mate = newInstance(clazz, jsonObj);\n }\n }\n jsonObj.target = mate;\n return jsonObj.target;\n }", "title": "" }, { "docid": "e7827b5d3a7fc58969483c7f42e2fccb", "score": "0.5222746", "text": "@GET(\"/wp-json/\")\n Call<MyModel> getData();", "title": "" }, { "docid": "84d99b80c45955afaf9a590433db2a25", "score": "0.5221349", "text": "public static <T> T gsonStringToObject(String json, Class<T> cls) {\n T newBean = (new Gson()).fromJson(json, cls);\n return newBean;\n }", "title": "" } ]
470724edac29529e28a28cb868f4d3ee
TODO: implement your filtering here
[ { "docid": "488b410234a135190fa8ca67c0be4521", "score": "0.0", "text": "@Override\n\t\t\tpublic HttpResponse clientToProxyRequest(HttpObject httpObject) {\n\t\t\t\tSystem.out.println(\"clientToProxyRequest invoked\");\n\t\t\t\tSystem.out.println(httpObject.toString());\n\t\t\t\tif (httpObject instanceof DefaultHttpRequest) {\n\t\t\t\t\tDefaultHttpRequest request = (DefaultHttpRequest) httpObject;\n\t\t\t\t\tSystem.out.println(\"it's a DefaultHttpRequest with uri:\");\n\t\t\t\t\tString uri = request.getUri();\n\t\t\t\t\tSystem.out.println(uri);\n\t\t\t\t\tSystem.out.println(request.toString());\n\t\t\t\t\tSystem.out.println(request.headers());\n\t\t\t\t\tif (uri.startsWith(HTTP_REPO1_MAVEN_ORG_MAVEN2)) {\n\t\t\t\t\t\tString gavstring = uri.substring(HTTP_REPO1_MAVEN_ORG_MAVEN2.length());\n\t\t\t\t\t\tSystem.out.println(\"gavstring=\" + gavstring);\n\t\t\t\t\t\tString[] parts = gavstring.split(\"/\");\n\t\t\t\t\t\tint len = parts.length;\n\t\t\t\t\t\tif (len < 4) {\n\t\t\t\t\t\t\tSystem.err.println(\"invalid length for gavstring \" + gavstring + \" len = \" + len\n\t\t\t\t\t\t\t\t\t+ \" should be at least 4\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString filename = parts[len - 1];\n\t\t\t\t\t\t\tString version = parts[len - 2];\n\t\t\t\t\t\t\tString artifactid = parts[len - 3];\n\t\t\t\t\t\t\tString group = String.join(\".\", Arrays.copyOfRange(parts, 0, len - 3));\n\t\t\t\t\t\t\tSystem.out.println(\"filename=\" + filename + \" version=\" + version + \" artifactid=\"\n\t\t\t\t\t\t\t\t\t+ artifactid + \" group=\" + group);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\treturn null;\n\t\t\t}", "title": "" } ]
[ { "docid": "7b67a34575cf61109deddc988c947646", "score": "0.6738076", "text": "@Override\n public int filterOrder() {\n return 1;\n }", "title": "" }, { "docid": "7b67a34575cf61109deddc988c947646", "score": "0.6738076", "text": "@Override\n public int filterOrder() {\n return 1;\n }", "title": "" }, { "docid": "940625ca3f6a38dd2349b67260b12198", "score": "0.6541192", "text": "@Override\n public boolean shouldFilter() {\n return true;\n }", "title": "" }, { "docid": "7e09b202a41c56bb79d7b138bdc375db", "score": "0.6459483", "text": "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "a4c7dc6d3e16a03c156c23706fda403e", "score": "0.6388031", "text": "@Override\n\tpublic int filterOrder() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "1b8fdd373fc8a35b853e51d4fffc9ed5", "score": "0.6356362", "text": "@Override\n\t\tpublic boolean shouldFilter() {\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "79219472f47426d50877ee9d14d94d80", "score": "0.6351669", "text": "@Override\n\t\tpublic int filterOrder() {\n\t\t\treturn 10;\n\t\t}", "title": "" }, { "docid": "85937e74df98b84b2c5e0c1a45d04580", "score": "0.6313043", "text": "@Override\r\n\tprotected void filterCondition() {\n\t\tsuper.filterCondition();\r\n\t}", "title": "" }, { "docid": "26567b481cc782a38ad48437a66d0933", "score": "0.6300068", "text": "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n List<Drive> filteredList = new ArrayList<>();//new list that contained only filtered items\n\n if (constraint == null || constraint.length() == 0) {//empty in search\n filteredList.addAll(drivefull);//get all items\n } else {\n String filterPattern = constraint.toString().toLowerCase().trim();//convert all to same pattern (caps lock)\n if (!flag) {//we want filtering by time\n for (Drive item : drivefull) {\n String string = item.getStartTime();//time\n if (string.toLowerCase().contains(filterPattern)) {\n filteredList.add(item);\n }\n }\n } else {\n for (Drive item : drivefull) {//we want filtering by distance\n String string = item.getDistance();//distance\n if (string.toLowerCase().contains(filterPattern)) {\n filteredList.add(item);\n }\n }\n }\n }\n FilterResults results = new FilterResults();\n results.values = filteredList;//the filtering list\n return results;\n }", "title": "" }, { "docid": "3ab58b33b37f414ede0429d2abb3c792", "score": "0.6296811", "text": "@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3ab58b33b37f414ede0429d2abb3c792", "score": "0.6296811", "text": "@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "dd21bf4100bf792a4f1d30c7fa1179c8", "score": "0.6197349", "text": "private void filterResults() {\n Results.find(Filters.text(\"https. -.jpg -.png -.jpeg\"))\n .projection(Projections.excludeId()).forEach(printBlock);\n }", "title": "" }, { "docid": "2c4130a79ab476e1b4039deae0091f59", "score": "0.6093254", "text": "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n Log.d(TAG, \"performFiltering: filtering started\");\n\n ArrayList<SearchResult> filteredResult = new ArrayList<>();\n\n if(constraint.toString().isEmpty()){\n Log.d(TAG, \"performFiltering: empty search bar \" + searchResultsAllArrayList.size());\n filteredResult.addAll(searchResultsAllArrayList);\n }\n else {\n\n for(SearchResult result: searchResultsAllArrayList){\n\n if(result.getName().toLowerCase().contains(constraint.toString().toLowerCase())){\n\n filteredResult.add(result);\n\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredResult;\n\n return filterResults;\n }", "title": "" }, { "docid": "fbe1306b37ed803cf147687775c2f477", "score": "0.60634553", "text": "ArrayList<T> getMatchingData(Filter filter);", "title": "" }, { "docid": "579268fc860b7386fd998ac7ef8f9143", "score": "0.6062829", "text": "public FilterResults performFiltering(CharSequence charSequence) {\n ArrayList arrayList = new ArrayList();\n if (charSequence == null || charSequence.length() == 0 || charSequence.equals(\"\")) {\n arrayList.addAll(OrderRecyclerViewAdapter.this.ordersDataFullList);\n } else {\n String trim = charSequence.toString().toLowerCase().trim();\n String str = \"Order in Queue\";\n String str2 = \"Completed\";\n String str3 = \"Processing Order\";\n String str4 = \"Shipping Product\";\n for (OrdersData ordersData : OrderRecyclerViewAdapter.this.ordersDataFullList) {\n if (ordersData.getDate().toLowerCase().contains(trim) || String.valueOf(ordersData.getOrder_ID()).contains(trim) || String.valueOf(ordersData.getUser_ID()).contains(trim) || String.valueOf(ordersData.getAmount()).contains(trim) || String.valueOf(ordersData.getQuantity()).contains(trim)) {\n arrayList.add(ordersData);\n }\n else if ((str.toLowerCase().contains(trim) && String.valueOf(ordersData.getOrder_Status()).contains(\"0\")) )\n {\n arrayList.add(ordersData);\n\n }\n else if((str2.toLowerCase().contains(trim) && String.valueOf(ordersData.getOrder_Status()).contains(\"4\"))) {\n arrayList.add(ordersData);\n }\n else if((str4.toLowerCase().contains(trim) && String.valueOf(ordersData.getOrder_Status()).contains(\"3\")))\n {\n\n arrayList.add(ordersData);\n\n }\n else if((str3.toLowerCase().contains(trim) && String.valueOf(ordersData.getOrder_Status()).contains(\"1\")))\n {\n Toast.makeText(contxt,\"Processing Data Found\",Toast.LENGTH_SHORT).show();\n arrayList.add(ordersData);\n }\n }\n }\n FilterResults filterResults = new FilterResults();\n filterResults.values = arrayList;\n return filterResults;\n }", "title": "" }, { "docid": "26b9b91f35b5cfd2cbe5cf635ab7e60c", "score": "0.60598963", "text": "@Override\n\tpublic boolean shouldFilter() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "96da0aa5f4e939aa585f9d95ad6f5b63", "score": "0.6048315", "text": "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n List<UserSimple> filteredList = new ArrayList<>();\n\n if(constraint.toString().isEmpty()){\n filteredList.addAll(countryListAll);\n } else {\n for (int i = 0; i < countryListAll.size(); i++) {\n String country = countryListAll.get(i).getCountry();\n if (country.toLowerCase().contains(constraint.toString().toLowerCase())) {\n filteredList.add(countryListAll.get(i));\n }\n }\n }\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n return filterResults;\n }", "title": "" }, { "docid": "00d482d4ab12f7dd8c01d5ac11354b26", "score": "0.6018258", "text": "public abstract String toFilter();", "title": "" }, { "docid": "1cbb6f1bb3c6f47a2396e1ca180371a5", "score": "0.5982562", "text": "String getMatchingDataToJson(Filter filter);", "title": "" }, { "docid": "d405cef14910cd9d89fe47184b91cf7c", "score": "0.5952299", "text": "public void updateFilter() { }", "title": "" }, { "docid": "d8e9adfc0f3ac8470aaed6e94d4a416f", "score": "0.5927962", "text": "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n List<Users> filteredList = new ArrayList<>();\n if (constraint.toString().isEmpty()){\n filteredList.addAll(list);\n }\n else {\n for (Users user : list){\n if (user.getUserName().toLowerCase().contains(constraint.toString().toLowerCase())){\n filteredList.add(user);\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n return filterResults;\n }", "title": "" }, { "docid": "525a29060ca292bb375f27e0134469c4", "score": "0.5922463", "text": "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n FilterResults results = new FilterResults();\n\n if (constraint != null && constraint.length() > 0) {\n //CONSTARINT TO UPPER\n constraint = constraint.toString().toLowerCase();\n\n ArrayList<RecentModel> filters = new ArrayList<RecentModel>();\n\n //get specific items\n for (int i = 0; i < resultsList.size(); i++) {\n ErrorMessage.E(\"filter\"+resultsList.get(i).getUsername()+\">>\"+constraint);\n if (resultsList.get(i).getUsername().toLowerCase().contains(constraint)) {\n RecentModel recentModel = new RecentModel();\n recentModel.setUser_id(resultsList.get(i).getUser_id());\n recentModel.setUsername(resultsList.get(i).getUsername());\n recentModel.setUser_profile_pic(resultsList.get(i).getUser_profile_pic());\n recentModel.setRole(resultsList.get(i).getRole());\n recentModel.setUnread_msg(resultsList.get(i).getUnread_msg());\n recentModel.setLast_message(resultsList.get(i).getLast_message());\n recentModel.setCreated_at(resultsList.get(i).getCreated_at());\n filters.add(recentModel);\n }\n }\n results.count = filters.size();\n results.values = filters;\n\n } else {\n results.count = resultsList.size();\n results.values = resultsList;\n }\n return results;\n }", "title": "" }, { "docid": "b65e93fc13511641ad37a226b0d1ccf7", "score": "0.5909212", "text": "public ArrayList<Post> doFilter() {\n\t\tArrayList<Post> postFiltered =new ArrayList<Post>();\n\t\tfor(String s : spec) {\n\t\tfor(Post p : post) {\n\t\t\tif(p.getLike()!=0) {\n\t\t\tif(p.getLike()==Integer.parseInt(s));\n\t\t\t\tpostFiltered.add(p);}\n\t\t}\n\t\t}\n\t\treturn postFiltered;\n\t}", "title": "" }, { "docid": "d1b11f2ef205d00fc517691bc8c8cf31", "score": "0.5865173", "text": "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n List<String> filteredList=new ArrayList<>();\n\n if (constraint.toString().isEmpty()){\n filteredList.addAll(stockList);\n }else {\n for (String stock:stockListAll){\n if (stock.toLowerCase().contains(constraint.toString().toLowerCase())){\n filteredList.add(stock);\n }\n }\n }\n\n FilterResults filterResults=new FilterResults();\n filterResults.values=filteredList;\n\n return filterResults;\n }", "title": "" }, { "docid": "bdb27796394fe312ce8d241da6d84507", "score": "0.58342946", "text": "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n FilterResults results = new FilterResults();\n\n if (constraint != null && constraint.length() > 0) {\n //CONSTARINT TO UPPER\n constraint = constraint.toString().toLowerCase();\n\n ArrayList<String> filters = new ArrayList<String>();\n\n //get specific items\n for (int i = 0; i < filterList.size(); i++) {\n if (filterList.get(i).toString().toLowerCase().contains(constraint)) {\n\n filters.add(filterList.get(i).toString());\n }\n }\n\n results.count = filters.size();\n results.values = filters;\n\n } else {\n results.count = filterList.size();\n results.values = filterList;\n\n }\n\n return results;\n }", "title": "" }, { "docid": "5c711116d7d7bc12b2858c4543c35825", "score": "0.5807393", "text": "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n String filterString = constraint.toString().toLowerCase();\n\n FilterResults results = new FilterResults();\n\n final List<Item> list = originalitems;\n\n int count = list.size();\n final ArrayList<Item> nlist = new ArrayList<Item>(count);\n\n Item filterableItem;\n\n for (int i = 0; i < count; i++) {\n filterableItem = list.get(i);\n if (filterableItem.getItemName().toLowerCase().contains(filterString) || filterableItem.getItemId().toLowerCase().startsWith(filterString) || filterableItem.getItemType().toLowerCase().startsWith(filterString)) {\n nlist.add(filterableItem);\n }\n }\n\n results.values = nlist;\n results.count = nlist.size();\n\n return results;\n }", "title": "" }, { "docid": "8212d49ef5f73a57c51f953a66e2eaad", "score": "0.5791974", "text": "public List<Employee> applyFilter(List<Employee> employee);", "title": "" }, { "docid": "25200e6d94e0ae861a3f224947e52f9a", "score": "0.57804465", "text": "@Override\r\n\t\t\tpublic List filter(List arg0) {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "c09d67cebfedab26228ee6af3c4dfb37", "score": "0.5756435", "text": "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n FilterResults results = new FilterResults();\n ArrayList<SingleRow> filterResults = new ArrayList<SingleRow>();\n String searchResult;\n if(constraint!=null&&constraint.length()>0)\n searchResult = constraint.toString().toLowerCase();\n\n else{\n results.count = filteredData.size();\n results.values= filteredData;\n return results;\n }\n\n int count = filteredData.size();\n String filterableString;\n\n for (int i = 0; i < count; i++) {\n filterableString = filteredData.get(i).menu;\n if (filterableString.toLowerCase().contains(searchResult)) {\n SingleRow singleRow = new SingleRow(filteredData.get(i).menu,filteredData.get(i).menuIcons);\n filterResults.add(singleRow);\n }\n }\n\n results.count = filterResults.size();\n results.values= filterResults;\n return results;\n\n }", "title": "" }, { "docid": "f186dd04e9004907441b7b4cc53a9615", "score": "0.57401323", "text": "default boolean isFiltering() {\n return false;\n }", "title": "" }, { "docid": "303ab0ea0009256a93c36323839a6332", "score": "0.57343113", "text": "private void filtroGoogle() {\n filtrarBusquedaGoogle();\n }", "title": "" }, { "docid": "3f6e003bb63b813770ef6d094a8040e9", "score": "0.5718047", "text": "@SuppressLint(\"DefaultLocale\")\n\t\t\t@Override\n\t\t\tprotected FilterResults performFiltering(CharSequence constraint) {\n\t\t\t\tFilterResults results= new FilterResults();\n\t\t\t\tComplaintListObj Filterdata[] = {};\n\t\t\t\tArrayList<ComplaintListObj>alFilterdata= new ArrayList<ComplaintListObj>();\n\t\t\t\t\n\t\t\t\tif (data == null) {\n\t\t\t\t\tUtils.log(\"Data results\",\"Null: \"+data.length);\n\t\t\t\t\tdata = Displaydata; \n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tUtils.log(\"Data results\",\"Not Null: \"+data.length);\n\t\t\t\t}\n\t\t\t\t\t// saves the original data in mOriginalValues\n\t\t\t\t\t if (constraint == null || constraint.length() == 0) {\n\t\t\t\t\t\t// alFilterdata.clear();\n\t\t\t // set the Original result to return \n\t\t\t results.count = data.length;\n\t\t\t results.values = data;\n\t\t\t } else {\n\t\t\t constraint = constraint.toString().toLowerCase();\n\t\t\t for (int i = 0; i <data.length; i++) {\n\t\t\t \tComplaintListObj complObj = data[i];\n\t\t\t \tUtils.log(\"data length\",\"is: \"+data.length);\n\t\t\t \tUtils.log(\"Filter results\",\"is: \"+data[i].getComplaintNo());\n\t\t\t String data1 = data[i].getComplaintNo();\n\t\t\t Utils.log(\"Search results\",\"is: \"+data1);\n\t\t\t // if (data1.toLowerCase().contains(constraint.toString())) {\n\t\t\t if (data1.toString().toLowerCase().startsWith(constraint.toString())) {\n\t\t\t \t Utils.log(\"constraint results\",\"is: \"+constraint.toString());\n\t\t\t \t// FilteredArrList.add(new Product(mOriginalValues.get(i).name,mOriginalValues.get(i).price));\n\t\t\t ComplaintListObj comp= new ComplaintListObj();\n\t\t\t comp.setComplaintId(data[i].getComplaintId());\n\t\t\t comp.setComplaintNo(data[i].getComplaintNo());\n\t\t\t comp.SetMemberLoginId(data[i].getMemberLoginId());\n\t\t\t alFilterdata.add(comp);\n\t\t\t // Utils.log(\"Last Length\",\": \"+Filterdata.length);\n\t\t\t Filterdata = alFilterdata.toArray(new ComplaintListObj[alFilterdata.size()]);\n\t\t\t Utils.log(\"Last Length\",\": \"+Filterdata.length);\n\t\t\t Utils.log(\"ArrayLIst Last Length\",\": \"+alFilterdata.size());\n\t\t\t \t/*\tFilterdata = new ComplaintListObj[]\n\t\t\t \t\t\t\t{comp};*/\n\t\t\t \t\t// notifyDataSetInvalidated();\n\t\t\t \t//\treturn results;\n\t\t\t \t\t\n\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t // set the Filtered result to return\n\t\t\t results.count = Filterdata.length;\n\t\t\t results.values = Filterdata;\n\t\t\t } \n\t \n\t\t\t\t\n\t\t\t\treturn results;\n\t\t\t}", "title": "" }, { "docid": "8d0dd607ab87d8e89e596813f31292be", "score": "0.5684343", "text": "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n FilterResults result = new FilterResults();\n String substr = constraint.toString().toLowerCase();\n if(substr == null || substr.length() == 0) {\n result.values = messagesO;\n result.count = messagesO.size();\n } else {\n final ArrayList<Message> nlist = new ArrayList<Message>();\n int count = messagesO.size();\n\n for(int i = 0;i<count;i++) {\n final Message message = messagesO.get(i);\n String value = \"\", value2 = \"\";\n value = message.getMessageFrom().toLowerCase();\n value2 = message.getMessageFrom().toLowerCase();\n if(value.contains(substr) || value2.contains(substr)) {\n nlist.add(message);\n }\n }\n result.values = nlist;\n result.count = nlist.size();\n }\n\n return result;\n }", "title": "" }, { "docid": "b07cf0499a94d6c1d59dbbb89e69d67f", "score": "0.5677251", "text": "private void filter(String text){\n\n listSearch = list.stream()\n .filter(userInfo -> userInfo.getWorkerIdString().toLowerCase().contains(text.toLowerCase())\n || userInfo.getFirstname().toLowerCase().contains(text.toLowerCase())\n || userInfo.getSurname().toLowerCase().contains(text.toLowerCase())\n || userInfo.getRole().toLowerCase().contains(text.toLowerCase())).\n collect(Collectors.toCollection(ArrayList::new));\n\n adapter.filterList(listSearch);\n }", "title": "" }, { "docid": "dfe5bf1a650e073f35fdd656e23bed79", "score": "0.56651956", "text": "private static Navajo filter(Navajo out) {\n return out;\n }", "title": "" }, { "docid": "51e00ecd1297c4a48a70f6c363ec293b", "score": "0.56426036", "text": "@Override\n protected Map getFilter() {\n Map filter = new HashMap();\n if (!Converter.isEmpty(id_lookup))\n filter.put(\"id_lookup\", id_lookup);\n if (!Converter.isEmpty(activo))\n filter.put(\"activo\", activo);\n return filter;\n }", "title": "" }, { "docid": "94bc3dbabe719bfac39ead16f7193b72", "score": "0.56359553", "text": "private void filter(String text, List<OrderModel> filtr_list) {\n List<OrderModel> filterdNames = new ArrayList<>();\n\n //looping through existing elements\n for (OrderModel s : filtr_list) {\n //if the existing elements contains the search input\n if (s.getShopName().toLowerCase().contains(text.toLowerCase())) {\n //adding the element to filtered list\n filterdNames.add(s);\n }\n }\n\n if (filterdNames.size() == 0) {\n Toast.makeText(this, \"No Record Found\", Toast.LENGTH_SHORT).show();\n }\n //calling a method of the adapter class and passing the filtered list\n orderAdapter.filterList(filterdNames);\n }", "title": "" }, { "docid": "63949e0ef46473892d21680b707b18a7", "score": "0.5627027", "text": "private void applyFilters() {\n List<RowFilter<ArticlesTableModel, Integer>> andFilters = new ArrayList<RowFilter<ArticlesTableModel, Integer>>();\n for (FilterUnit filterUnit : filters) {\n final int columnIndex = tableModel.findColumn(filterUnit.columnTitle);\n \n RowFilter<ArticlesTableModel, Integer> filter = null;\n if (FilterType.PART_TEXT == filterUnit.filterType) {\n filter = RowFilter.regexFilter((\"(?iu)\" + filterUnit.textField.getText().trim()), columnIndex);\n } else if (FilterType.FULL_TEXT == filterUnit.filterType) {\n filter = RowFilter.regexFilter(filterUnit.textField.getText().trim(), columnIndex);\n } else if (FilterType.NUMBER == filterUnit.filterType\n || FilterType.NUMBER_DIAPASON == filterUnit.filterType && !filterUnit.textField.getText().contains(\"-\")) {\n if (filterUnit.textField.getText().length() > 0) {\n String numberStr = filterUnit.textField.getText().trim().replace(\",\", \".\").replaceAll(\"[^0-9.]\", \"\");\n Double number = Double.parseDouble(numberStr);\n filter = RowFilter.numberFilter(RowFilter.ComparisonType.EQUAL, number, columnIndex);\n }\n } else if (FilterType.NUMBER_DIAPASON == filterUnit.filterType) {\n if (filterUnit.textField.getText().length() > 0) {\n String[] numbers = filterUnit.textField.getText().split(\"-\", 2);\n if (numbers.length > 1 && !numbers[0].trim().isEmpty() && !numbers[1].trim().isEmpty()) {\n String numbers0 = numbers[0].replace(\",\", \".\").replaceAll(\"[^0-9.]\", \"\");\n String numbers1 = numbers[1].replace(\",\", \".\").replaceAll(\"[^0-9.]\", \"\");\n final Double number1 = Double.parseDouble(numbers0);\n final Double number2 = Double.parseDouble(numbers1);\n filter = new RowFilter<ArticlesTableModel, Integer>() {\n @Override\n public boolean include(Entry<? extends ArticlesTableModel, ? extends Integer> entry) {\n Double number = (Double) tableModel.getRawValueAt(entry.getIdentifier(), columnIndex);\n return number > number1 && number < number2;\n }\n };\n }\n }\n } else if (FilterType.DATE == filterUnit.filterType\n || FilterType.DATE_DIAPASON == filterUnit.filterType && !filterUnit.textField.getText().contains(\"-\")) {\n if (filterUnit.textField.getText().length() > 0) {\n Date correctedDate = getCorrectedDate(filterUnit.textField.getText().trim());\n String correctedDateString = new SimpleDateFormat(filterUnit.columnDatePattern).format(correctedDate);\n filter = RowFilter.regexFilter(correctedDateString, columnIndex);\n }\n } else if (FilterType.DATE_DIAPASON == filterUnit.filterType) {\n if (filterUnit.textField.getText().length() > 0) {\n String[] dates = filterUnit.textField.getText().split(\"-\", 2);\n if (dates.length > 1 && !dates[0].trim().isEmpty() && !dates[1].trim().isEmpty()) {\n final Date correctedDate1 = getCorrectedDate(dates[0]);\n final Date correctedDate2 = getCorrectedDate(dates[1]);\n filter = new RowFilter<ArticlesTableModel, Integer>() {\n @Override\n public boolean include(Entry<? extends ArticlesTableModel, ? extends Integer> entry) {\n Date date = ((Calendar) tableModel.getRawValueAt(entry.getIdentifier(), columnIndex)).getTime();\n return date.after(addDays(correctedDate1, -1)) && date.before(addDays(correctedDate2, 1));\n }\n };\n }\n }\n }\n if (filter != null) {\n andFilters.add(filter);\n }\n sorter.setRowFilter(RowFilter.andFilter(andFilters));\n }\n }", "title": "" }, { "docid": "11bc5b4c1586c9d96786b4468846de16", "score": "0.5623174", "text": "private void Filter()\r\n {\r\n CustFirst = txtCustFirstName.getText()+ \"%\";\r\n CustProv = txtCustProv.getText()+ \"%\";\r\n CustCity = txtCustCity.getText() + \"%\";\r\n CustCountry = txtCustCountry.getText() + \"%\";\r\n \r\n fillTableCustomers();\r\n }", "title": "" }, { "docid": "2aed1c0ee4d2c81532c21485e8f868b0", "score": "0.56150275", "text": "private void filter() {\n\t\tform.setAllFieldsEnabled(false);\n\t\tcontroller.stateChangeRequest(Key.FILTER, form.getNonEmptyValues());\n\t}", "title": "" }, { "docid": "74da1548d57d53f03854ef9b27d2d099", "score": "0.5608445", "text": "private void filtroGoogle() {\n filtrarBusquedaGoogle();\n /*if (VariablesPtoVenta.vInd_Filtro.equalsIgnoreCase(FarmaConstants.INDICADOR_S)) {\n quitarFiltro();\n }else{\n filtrarBusquedaGoogle();\n }*/\n }", "title": "" }, { "docid": "ea86ddf39ff6411c9c8b29bce5adeff7", "score": "0.56076485", "text": "@Override\n \tpublic List<GrilleSalaire> filter(List<Predicat> predicats, Map<String, OrderType> orders, Set<String> properties,\n \t\t\tint firstResult, int maxResult) {\n \t\tList<GrilleSalaire> datas = super.filter(predicats, orders, properties, firstResult, maxResult);\n \t\tList<GrilleSalaire> result = new ArrayList<GrilleSalaire>();\n \t\tfor(GrilleSalaire elev:datas){\n \t\t\tresult.add(new GrilleSalaire(elev));\n \t\t}\n \t\treturn result;\n \t}", "title": "" }, { "docid": "59dbc828bb2054f2c0fdce50dfa56f3d", "score": "0.55914766", "text": "Filter getSource();", "title": "" }, { "docid": "59dbc828bb2054f2c0fdce50dfa56f3d", "score": "0.55914766", "text": "Filter getSource();", "title": "" }, { "docid": "414a0ac9c71a974b79e421fdb8f61708", "score": "0.5584505", "text": "void usingFilter() {\n System.out.println(\"------usingFilter------ \" );\n List<Employee> lList = new ArrayList<>();\n mEmployeeList.stream()\n .filter(lEmployee -> {\n if (lEmployee.getSalary() >= 15000 && lEmployee.getAge() >= 20) {\n System.out.println(\"Emp Id\"+lEmployee.getId());\n lList.add(lEmployee);\n return true;\n } else return false;\n })\n .forEach(lEmployee -> {\n System.out.println(\"ID ==>\" + lEmployee.getId());\n System.out.println(\"Name ==> \" + lEmployee.getName());\n System.out.println(\"Sal ==> \" + lEmployee.getSalary());\n System.out.println(\"Age ==>\" + lEmployee.getAge());\n System.out.println();\n });\n System.out.println(lList.size());\n }", "title": "" }, { "docid": "bfad0ffe3b4954ea257e0741539329d3", "score": "0.55775076", "text": "public interface Filter {\r\n\tpublic List<Grade> apply(List<Grade> grading) throws SizeException;\r\n}", "title": "" }, { "docid": "cb31dcb4c00283ed4fc66ccace34f60d", "score": "0.5561817", "text": "public void applyFilters() {\n\t\tmVertices = new HashSet<neoAsJungVertex>();\n\t\tmEdges = new HashSet<neoAsJungEdge>();\n\t\ttry (Transaction tx = mNeoGraphDb.beginTx()) {\n\t\t\tIterator<Map<String,Object>> rMapIterator = this.mExecutionEngine.execute(this.cypherFilter).iterator();\n\t\t\twhile (rMapIterator.hasNext()) {\n\t\t\t\tIterator<Object> neoObjects = rMapIterator.next().values().iterator();\n\t\t\t\twhile (neoObjects.hasNext())\n\t\t\t\t\tprocessFilterResult(neoObjects.next());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "86e88d66992f7d07f89434e65b7174d4", "score": "0.5561638", "text": "public abstract void addFilter();", "title": "" }, { "docid": "2962d250a0601037d7ec8e5055f158e2", "score": "0.55612785", "text": "ArrayList<FilmData> filterByDuration(float durationMin){\n ArrayList<FilmData> filteredSet = new ArrayList<FilmData>();\n for(FilmData film: films){\n if(film.getDuration() >= durationMin){\n filteredSet.add(film);\n }\n }\n return filteredSet;\n }", "title": "" }, { "docid": "ebcfabfc7657752ee7fbdf6d78736def", "score": "0.5548267", "text": "@Test\n public void testFilter() {\n System.out.println(\"\\nStarting testFilter\");\n String [] tags = {\"Chicken\", \"Cake\"};\n boolean [] checked = {true, false};\n RecipeTag newTag = new RecipeTag(\"Chicken\");\n recipeHandler.filter(tags, checked);\n List <Recipe> recipeList = recipeHandler.getAllRecipes();\n for (Recipe recipe: recipeList) {\n List<RecipeTag> tagList = recipe.getRecipeTagList();\n assertTrue(tagList.contains(newTag));\n }\n System.out.println(\"Finished testFilter\");\n }", "title": "" }, { "docid": "c40b7196836438f4b2d9c95955ce29d4", "score": "0.55470914", "text": "String getJsonMatchingDataFromJsonFilter(String filterToJson);", "title": "" }, { "docid": "e888ef9f70c33219cac0e4f893561714", "score": "0.5532205", "text": "public boolean filterEntry(EntryData data) {\n \t\t\t\treturn true;\n \t\t\t}", "title": "" }, { "docid": "5f1e5437f603b4d92b88519f736e102a", "score": "0.55245185", "text": "List<TMirSalesPos> findTMirSalesPoss(SearchFilter<TMirSalesPos> searchFilter);", "title": "" }, { "docid": "96018645b821925f96acfd4f77ee87f0", "score": "0.55177927", "text": "LinkedList<GameObject> collectObjects(String substr, boolean filterInactive) {\r\n LinkedList<GameObject> l = new LinkedList<GameObject>();\r\n for (Map.Entry<String, GameObject> entry : this.gameObjects.entrySet()) {\r\n GameObject obj = entry.getValue();\r\n if (obj.getId().contains(substr)) {\r\n if (filterInactive == true) {\r\n if (obj.isActive()) {\r\n l.add(obj);\r\n }\r\n } else {\r\n l.add(obj);\r\n }\r\n }\r\n }\r\n return l;\r\n }", "title": "" }, { "docid": "e37814809174602ea4f20589916ab4df", "score": "0.55130994", "text": "@Override\r\n\t\t\tpublic Object filter(Object arg0) {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "8406a9d848aa788719fc5f9d78df98f9", "score": "0.55103576", "text": "private void filterFiles(){\n try {\n switch (filters.valueOf(this.filterLine[0])) {\n case all:\n if (this.filterLine.length == 2 && this.filterLine[1].equals(\"NOT\"))\n this.files = filter(this.files, all, true);\n else if (this.filterLine.length == 1)\n this.files = filter(this.files, all, false);\n else{\n this.files = filter(this.files, all, false);\n this.addWarning(this.errorMsg + (this.firstSectionLine + 2));\n }\n break;\n case greater_than:\n if (this.filterLine.length == 3 && Double.valueOf(this.filterLine[1]) >= 0 &&\n this.filterLine[2].equals(\"NOT\"))\n this.files = filter(this.files, greater_than, Double.valueOf(this.filterLine[1]),\n true);\n else if (this.filterLine.length == 2 && Double.valueOf(this.filterLine[1]) >= 0)\n this.files = filter(this.files, greater_than, Double.valueOf(this.filterLine[1]),\n false);\n else {\n this.files = filter(this.files, all, false);\n this.addWarning(this.errorMsg + (this.firstSectionLine + 2));\n }\n break;\n case smaller_than:\n if (this.filterLine.length == 3 && Double.valueOf(this.filterLine[1]) >= 0 &&\n this.filterLine[2].equals(\"NOT\"))\n this.files = filter(this.files, smaller_than, Double.valueOf(this.filterLine[1]),\n true);\n else if (this.filterLine.length == 2 && Double.valueOf(this.filterLine[1]) >= 0)\n this.files = filter(this.files, smaller_than, Double.valueOf(this.filterLine[1]),\n false);\n else {\n this.files = filter(this.files, all, false);\n this.addWarning(this.errorMsg + (this.firstSectionLine + 2));\n }\n break;\n case contains:\n if (this.filterLine.length == 3 && this.filterLine[2].equals(\"NOT\"))\n this.files = filter(this.files, contains, this.filterLine[1], true);\n else if (this.filterLine.length == 2)\n this.files = filter(this.files, contains, this.filterLine[1], false);\n else {\n this.files = filter(this.files, all, false);\n this.addWarning(this.errorMsg + (this.firstSectionLine + 2));\n }\n break;\n case between:\n if (this.filterLine.length == 4 && (Double.valueOf(this.filterLine[1]) <=\n Double.valueOf(this.filterLine[2])) && Double.valueOf(this.filterLine[1]) >= 0 &&\n this.filterLine[3].equals(\"NOT\"))\n this.files = filter(this.files, between, Double.valueOf(this.filterLine[1]),\n Double.valueOf(this.filterLine[2]), true);\n else if (this.filterLine.length == 3 && (Double.valueOf(this.filterLine[1]) <=\n Double.valueOf(this.filterLine[2])) && Double.valueOf(this.filterLine[1]) >= 0)\n this.files = filter(this.files, between, Double.valueOf(this.filterLine[1]),\n Double.valueOf(this.filterLine[2]), false);\n else {\n this.files = filter(this.files, all, false);\n this.addWarning(this.errorMsg + (this.firstSectionLine + 2));\n }\n break;\n case executable:\n if (this.filterLine.length == 3 && this.filterLine[1].equals(\"YES\") &&\n this.filterLine[2].equals(\"NOT\"))\n this.files = filter(this.files, executable, true, true);\n else if (this.filterLine.length == 3 && this.filterLine[1].equals(\"NO\") &&\n this.filterLine[2].equals(\"NOT\"))\n this.files = filter(this.files, executable, false, true);\n else if (this.filterLine.length == 2 && this.filterLine[1].equals(\"YES\"))\n this.files = filter(this.files, executable, true, false);\n else if (this.filterLine.length == 2 && this.filterLine[1].equals(\"NO\"))\n this.files = filter(this.files, executable, false, false);\n else {\n this.files = filter(this.files, all, false);\n this.addWarning(this.errorMsg + (this.firstSectionLine + 2));\n }\n break;\n case file:\n if (this.filterLine.length == 3 && this.filterLine[2].equals(\"NOT\"))\n this.files = filter(this.files, file, this.filterLine[1], true);\n else if (this.filterLine.length == 2)\n this.files = filter(this.files, file, this.filterLine[1], false);\n else {\n this.files = filter(this.files, all, false);\n this.addWarning(this.errorMsg + (this.firstSectionLine + 2));\n }\n break;\n case hidden:\n if (this.filterLine.length == 3 && this.filterLine[1].equals(\"YES\") &&\n this.filterLine[2].equals(\"NOT\"))\n this.files = filter(this.files, hidden, true, true);\n else if (this.filterLine.length == 3 && this.filterLine[1].equals(\"NO\") &&\n this.filterLine[2].equals(\"NOT\"))\n this.files = filter(this.files, hidden, false, true);\n else if (this.filterLine.length == 2 && this.filterLine[1].equals(\"YES\"))\n this.files = filter(this.files, hidden, true, false);\n else if (this.filterLine.length == 2 && this.filterLine[1].equals(\"NO\"))\n this.files = filter(this.files, hidden, false, false);\n else {\n this.files = filter(this.files, all, false);\n this.addWarning(this.errorMsg + (this.firstSectionLine + 2));\n }\n break;\n case prefix:\n if (this.filterLine.length == 3 && this.filterLine[2].equals(\"NOT\"))\n this.files = filter(this.files, prefix, this.filterLine[1], true);\n else if (this.filterLine.length == 2)\n this.files = filter(this.files, prefix, this.filterLine[1], false);\n else {\n this.files = filter(this.files, all, false);\n this.addWarning(this.errorMsg + (this.firstSectionLine + 2));\n }\n break;\n case suffix:\n if (this.filterLine.length == 3 && this.filterLine[2].equals(\"NOT\"))\n this.files = filter(this.files, suffix, this.filterLine[1], true);\n else if (this.filterLine.length == 2)\n this.files = filter(this.files, suffix, this.filterLine[1], false);\n else {\n this.files = filter(this.files, all, false);\n this.addWarning(this.errorMsg + (this.firstSectionLine + 2));\n }\n break;\n case writable:\n if (this.filterLine.length == 3 && this.filterLine[1].equals(\"YES\") &&\n this.filterLine[2].equals(\"NOT\"))\n this.files = filter(this.files, writable, true, true);\n else if (this.filterLine.length == 3 && this.filterLine[1].equals(\"NO\") &&\n this.filterLine[2].equals(\"NOT\"))\n this.files = filter(this.files, writable, false, true);\n else if (this.filterLine.length == 2 && this.filterLine[1].equals(\"YES\"))\n this.files = filter(this.files, writable, true, false);\n else if (this.filterLine.length == 2 && this.filterLine[1].equals(\"NO\"))\n this.files = filter(this.files, writable, false, false);\n else {\n this.files = filter(this.files, all, false);\n this.addWarning(this.errorMsg + (this.firstSectionLine + 2));\n }\n break;\n }\n }\n catch (IllegalArgumentException e){\n this.files = filter(this.files, all, false);\n this.addWarning(this.errorMsg + (this.firstSectionLine + 2));\n }\n }", "title": "" }, { "docid": "7e8173b6b1860d2b12d970599287cf90", "score": "0.5509646", "text": "String getMatchingItemToJson(Filter filter);", "title": "" }, { "docid": "0a9cd4f08ae610b313df82b7c093bdec", "score": "0.5499654", "text": "public void searchFilter()\r\n\t{\r\n\t\tString search = JOptionPane.showInputDialog(this, \"Search:\", \"Search\", JOptionPane.PLAIN_MESSAGE);\r\n\t\tsearchFilter(search);\r\n\t\t\r\n\t\tif (search != null)\r\n\t\t\tfilters.put(doc.getBaseURI(), search);\r\n\t}", "title": "" }, { "docid": "743b73c8f21db2b95f1457e5986c59fb", "score": "0.5491514", "text": "ObservableList<Person> getFilteredPersonList();", "title": "" }, { "docid": "743b73c8f21db2b95f1457e5986c59fb", "score": "0.5491514", "text": "ObservableList<Person> getFilteredPersonList();", "title": "" }, { "docid": "743b73c8f21db2b95f1457e5986c59fb", "score": "0.5491514", "text": "ObservableList<Person> getFilteredPersonList();", "title": "" }, { "docid": "afbb58e52e169bfdfdddffa31a29dde5", "score": "0.548323", "text": "@In Boolean filter();", "title": "" }, { "docid": "430db20cc06d8a4dd4c3596d325df0bd", "score": "0.54820865", "text": "ObservableList<Activity> getFilteredWishlist();", "title": "" }, { "docid": "da14eae17d56f90281e5a0d3e9c6df91", "score": "0.5477975", "text": "@GetMapping(path=\"/query\", produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseBody\n public ResponseEntity<List<String>> query(@RequestParam String query) throws IOException, URISyntaxException {\n /*\n List<Question> result = this.questionRepo.getAll();\n Iterator<Question> i = result.iterator();\n while(i.hasNext()){\n Question q = i.next();\n if(!q.getTitle().toUpperCase().contains(query.toUpperCase())){\n System.out.println(\"removing question titled \"+q.getTitle());\n i.remove();\n }\n }*/\n\n List<Integer> docs = searchEngine.Query(query);\n List<Question> questions = this.questionRepo.getAll();\n\n List<Question> result = questions.stream().filter(question -> docs.contains(question.getQuestionID())).collect(Collectors.toList());\n System.out.println(result);\n\n final ByteArrayOutputStream out = new ByteArrayOutputStream();\n final ObjectMapper mapper = new ObjectMapper();\n\n mapper.writeValue(out, result);\n\n final byte[] data = out.toByteArray();\n return new ResponseEntity(data, HttpStatus.OK);\n }", "title": "" }, { "docid": "0fd37b0ff28105ae0823f20d2023c58f", "score": "0.5477553", "text": "private void filter(String text) {\n ArrayList<RestaurantResponse> filterdNames = new ArrayList<>();\n\n //looping through existing elements\n for (int i = 0; i < restaurantResponses.size(); i++) {\n //if the existing elements contains the search input\n if (restaurantResponses.get(i).getRestaurantName().toLowerCase().contains(text.toLowerCase())) {\n //adding the element to filtered list\n filterdNames.add(restaurantResponses.get(i));\n }\n }\n\n //calling a method of the adapter class and passing the filtered list\n findDealerAdapter.filterList(filterdNames);\n }", "title": "" }, { "docid": "9e4178a52330fc98d3a57c2fbc0cd55b", "score": "0.54696745", "text": "@Override\n\tpublic void filterBy(FilterCriteria criteria) {\n\n\t}", "title": "" }, { "docid": "9f9976f21177ad90afd44489c94f249f", "score": "0.5468669", "text": "private void filter(String text) {\n List<Account> filteredAccounts = new ArrayList<>();\n\n for (Account account : accounts) {\n if (account.getTitle().toLowerCase().contains(text.toLowerCase())) {\n filteredAccounts.add(account);\n }\n }\n\n adapter.filterList(filteredAccounts);\n }", "title": "" }, { "docid": "1992dc8a5af16984f191a0e2d8d72421", "score": "0.54613155", "text": "List<PatientAppointment> searchAppointments(AppointmentFilterDTO filterDTO);", "title": "" }, { "docid": "a639cf353f7dbe082969088c959805fe", "score": "0.54477465", "text": "List<TRptType> findTRptTypes(SearchFilter<TRptType> searchFilter);", "title": "" }, { "docid": "0b861a84c1329bb2615c5e4f18aaecc9", "score": "0.5446477", "text": "ObservableList<Food> getFilteredFoodList();", "title": "" }, { "docid": "d0136f94d1bdcd0b9a639d9b0a078f26", "score": "0.54412895", "text": "private void prepareSearchCriteria() {\n\n }", "title": "" }, { "docid": "ae9eff09c21512d6ecb5fb41e7dbfc96", "score": "0.5439465", "text": "@Test\n public void filterResultsTest(){\n GuestController gustController = new GuestController();\n Player p = new Player(12,\"hende\",\"abcd\",\"poco\",null,\"\",100,150);\n Coach p2 = new Coach(12,\"hendebi\",\"abcd\",\"shoco\",\"\",\"\",10,20);\n Controller.getInstance().addUser(p.getUserName(),p);\n Controller.getInstance().addUser(p2.getUserName(),p2);\n ASearchStrategy a=new SearchByCategory();\n List<IShowable> listTest=new ArrayList<IShowable>();\n listTest.add(p);\n listTest.add(p2);\n List<IShowable> list =gustController.filterResults(a,SearchCategory.PLAYER,listTest);\n for(IShowable l:list){\n if(l.getType()!=\"Player\"){\n assert(false);\n }\n }\n\n }", "title": "" }, { "docid": "9dbd3aa6cbe6010ec3c77c18a77a3863", "score": "0.5436131", "text": "protected void getAll (Predicate<? super T> filter, Collection<T> results)\n {\n for (int ii = 0, nn = _objects.size(); ii < nn; ii++) {\n T object = _objects.get(ii);\n if (object.updateLastVisit(_visit) && filter.apply(object)) {\n results.add(object);\n }\n }\n }", "title": "" }, { "docid": "48baba55f2d1827ab773904330473a41", "score": "0.54342264", "text": "private void filterData(String str) {\n tableViewCategories.getItems().clear();\n List<Categorie> filteredList = categorie.findAll(str);\n if(filteredList !=null) {//tableViewProduct.getItems().addAll(filteredList);\n observableTable.setAll(filteredList);\n tableViewCategories.setItems(observableTable);}\n }", "title": "" }, { "docid": "fbe817145da14d5ebf84e92780471d45", "score": "0.54328173", "text": "public Cons filter(P p) {\n // TODO by student\n }", "title": "" }, { "docid": "88fdf3905584a6c937cb0c5408494a79", "score": "0.54246384", "text": "@Override\n public ArrayList<FilterItem> getFilter() {\n ArrayList<FilterItem> filters = new ArrayList<FilterItem>();\n int group = 0;\n if (!((TextBox) companyMonitor.getWidget()).getText().isEmpty()) {\n filters.add(new FilterItem(\n UserDataField.COMPANY_NAME,\n Operation.OPERATION_LIKE, companyMonitor.getValue(), group));\n filters.add(new FilterItem(\n UserDataField.FIRST_NAME,\n Operation.OPERATION_LIKE, companyMonitor.getValue(), group));\n filters.add(new FilterItem(\n UserDataField.LAST_NAME,\n Operation.OPERATION_LIKE, companyMonitor.getValue(), group++));\n }\n if (!((TextArea) descriptionMonitor.getWidget()).getText().isEmpty()) {\n filters.add(new FilterItem(\n UserDataField.DESCRIPTION,\n Operation.OPERATION_LIKE, descriptionMonitor.getValue(), group++));\n }\n if (ratingMonitorFrom.getValue() != null) {\n filters.add(new FilterItem(\n SupplierField.OVERALL_RATING,\n Operation.OPERATION_FROM, ratingMonitorFrom.getValue(), group++));\n }\n if (ratingMonitorTo.getValue() != null) {\n filters.add(new FilterItem(\n SupplierField.OVERALL_RATING,\n Operation.OPERATION_TO, ratingMonitorTo.getValue(), group++));\n }\n return filters;\n }", "title": "" }, { "docid": "3d047fe987a70ed44d7bd1ef42706ae2", "score": "0.54221475", "text": "private void resetFilter(){\n filteredNationalIds = new ArrayList<Integer>();\r\n filteredUniqueIds = new ArrayList<Integer>();\r\n currentFilterPokemonArrayList = new ArrayList<Integer>();\r\n\r\n for(int i =1; i< pokemonFactory.getMAX_UNIQUE_ID()+1 ; i++ ){\r\n filteredUniqueIds.add(i);\r\n currentFilterPokemonArrayList.add(i);\r\n }\r\n\r\n for (int i=1; i <pokemonFactory.getMAX_NATIONAL_ID()+1; i++){\r\n filteredNationalIds.add(i);\r\n }\r\n }", "title": "" }, { "docid": "00532546e76145fd463f4793e983bf65", "score": "0.54206747", "text": "@Override\n\tpublic boolean dataIsFiltered() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f267d2a986d28e7d266ef45c52547881", "score": "0.5416866", "text": "ObservableList<Flashcard> getFilteredFlashcardList();", "title": "" }, { "docid": "6cc257ae8e9780c9c278abaea9411643", "score": "0.538381", "text": "private NoFilter() {\n // Do nada.\n }", "title": "" }, { "docid": "fa1bc27fbadc99a8db9ced8ef19629ab", "score": "0.5383305", "text": "@Override\n public void filterAndPrint() {\n List<Company> companies = null;\n\n try {\n companies = this.findAll();\n\n companies.stream()\n .filter(item -> item.getCountry().equals(\"CH\"))\n .sorted(Comparator.comparing(Company::getName).reversed())\n .forEach(c -> System.out.println(c.getName()));\n\n } catch (FileExtensionNotValid | FileExtensionNotSupported fileException) {\n System.out.println(fileException.getMessage());\n }\n }", "title": "" }, { "docid": "21fb92960abf128028fa469ac4496a0d", "score": "0.53817886", "text": "@Override\n\tpublic String[] filter(String value) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9e2d7d3750ec1854173e92fd0acf59b4", "score": "0.538161", "text": "ObservableList<Vendor> getFilteredVendorList();", "title": "" }, { "docid": "126b9878cc051bb48133e15e7181bf71", "score": "0.53778857", "text": "private void filterStats(int lowerLimit, int upperLimit, String statName){\r\n\r\n // Filter only if one of the values is not a default value\r\n if(lowerLimit > 0 || upperLimit < 999){\r\n ArrayList<Integer> tempFilterPokemonArrayList = new ArrayList<Integer>();\r\n tempFilterPokemonArrayList = pokemonFactory.getAllUniqueIDsFromStat(lowerLimit, upperLimit, statName);\r\n currentFilterPokemonArrayList.retainAll(tempFilterPokemonArrayList);\r\n tempFilterPokemonArrayList.clear();\r\n }\r\n\r\n }", "title": "" }, { "docid": "056baf280007cb2e8c608998bd8215c1", "score": "0.5374205", "text": "private void filter() {\n filteredList = new ArrayList<>();\n\n // check if the user does not want to search by distance\n // set user's lat lng to zero\n if(miles == 0){ currentLocation = new LatLng(0,0); }\n // search walk-ins first\n JSONObject response = null;\n try {\n response = new ServerRequester().execute(\"searchWalkIn.php\", \"whatever\"\n ,\"email\", Email\n ,\"firstName\", firstName\n ,\"lastName\", lastName\n ,\"subject\", subject\n ,\"university\", university\n ,\"distance\", Integer.toString(miles)\n ,\"walkInLat\", Double.toString(currentLocation.latitude) //IF Distance is zero, this must be zero as well\n ,\"walkInLong\", Double.toString(currentLocation.longitude) //If Distance is zero, ^^\n ,\"rating\", rating.toString()\n ).get();\n if (response == null) {//Something went horribly wrong, JSON failed to be formed meaning something happened in the server requester\n } else if (!response.isNull(\"error\")) {//Some incorrect information was sent, but the server and requester still processed it\n //TODO Handle Server Errors\n switch (response.get(\"error\").toString()) {\n case \"-1\": //Email Password Combo not in the Database\n break;\n case \"-2\": //Select Query failed due to something dumb\n // Print out response.get(\"errormessage\"), it'll have the mysql error with it\n\n break;\n case \"-3\": //Update Query Failed Due to New Email is already associated with another account\n break;\n case \"-4\": //Update Query Failed Due to Something Else Dumb that I haven't handled yet,\n // Print out response.get(\"errormessage\"), it'll have the mysql error with it\n Toast.makeText(getActivity(), \"'\"+Email+\"' not found.\", Toast.LENGTH_SHORT).show();\n break;\n default: //Some Error Code was printed from the server that isn't handled above\n\n break;\n }\n } else {//Everything went well\n Iterator<String> keys = response.keys();\n while (keys.hasNext()) {\n JSONObject next = (JSONObject) response.get(keys.next());\n // check if lat and lng are zero\n if(Double.parseDouble(next.get(\"walkInLat\").toString()) == 0 && Double.parseDouble(next.get(\"walkInLong\").toString()) == 0){\n //dont add it\n }else {\n filteredList.add(new NewItem(Integer.parseInt(next.get(\"profilePic\").toString()),\n next.get(\"firstName\").toString(),\n next.get(\"lastName\").toString(),\n next.get(\"email\").toString(),\n next.get(\"walkinStatus\").toString(),\n next.get(\"Subjects\").toString(),\n next.get(\"university\").toString(),\n Float.parseFloat(next.get(\"averageRating\").toString()),\n Double.parseDouble(next.get(\"walkInLat\").toString()),\n Double.parseDouble(next.get(\"walkInLong\").toString()),\n true\n ));\n }\n }\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n response = null;\n try {\n response = new ServerRequester().execute(\"search.php\", \"whatever\"\n ,\"email\", Email\n ,\"firstName\", firstName\n ,\"lastName\", lastName\n ,\"subject\", subject\n ,\"university\", university\n ,\"distance\", Integer.toString(miles)\n ,\"workLat\", Double.toString(currentLocation.latitude) //IF Distance is zero, this must be zero as well\n ,\"workLong\", Double.toString(currentLocation.longitude) //If Distance is zero, ^^\n ,\"rating\", rating.toString()\n ).get();\n if (response == null) {//Something went horribly wrong, JSON failed to be formed meaning something happened in the server requester\n } else if (!response.isNull(\"error\")) {//Some incorrect information was sent, but the server and requester still processed it\n //TODO Handle Server Errors\n switch (response.get(\"error\").toString()) {\n case \"-1\": //Email Password Combo not in the Database\n break;\n case \"-2\": //Select Query failed due to something dumb\n // Print out response.get(\"errormessage\"), it'll have the mysql error with it\n\n break;\n case \"-3\": //Update Query Failed Due to New Email is already associated with another account\n break;\n case \"-4\": //Update Query Failed Due to Something Else Dumb that I haven't handled yet,\n // Print out response.get(\"errormessage\"), it'll have the mysql error with it\n Toast.makeText(getActivity(), \"'\"+Email+\"' not found.\", Toast.LENGTH_SHORT).show();\n break;\n default: //Some Error Code was printed from the server that isn't handled above\n\n break;\n }\n } else {//Everything went well\n Iterator<String> keys = response.keys();\n while (keys.hasNext()) {\n // check if walk in exists first\n JSONObject next = (JSONObject) response.get(keys.next());\n // do nothing, do not add\n boolean flag = false;\n for(NewItem e : filteredList){\n if(e.getemail().equals(next.get(\"email\").toString())){flag = true;}\n }\n if(flag == true){}\n else{ // add to filtered list\n filteredList.add(new NewItem(Integer.parseInt(next.get(\"profilePic\").toString()),\n next.get(\"firstName\").toString(),\n next.get(\"lastName\").toString(),\n next.get(\"email\").toString(),\n next.get(\"walkinStatus\").toString(),\n next.get(\"Subjects\").toString(),\n next.get(\"university\").toString(),\n Float.parseFloat(next.get(\"averageRating\").toString()),\n Double.parseDouble(next.get(\"workLat\").toString()),\n Double.parseDouble(next.get(\"workLong\").toString()),\n false\n ));\n }\n }\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n adapter.filterList(filteredList);\n\n if(filteredList.size() == 0){\n Toast.makeText(getActivity(), \"No results found.\", Toast.LENGTH_SHORT).show();\n }\n\n }", "title": "" }, { "docid": "e80dd27d4af4400454a3d2ea7db3919e", "score": "0.5371476", "text": "ObservableList<FlashCard> getFilteredFlashCardList();", "title": "" }, { "docid": "9f4a1040ab053d4f6fd8285d096ed2be", "score": "0.5368976", "text": "private void filtrarBusquedaGoogle() {\n \n String condicion = txtProducto.getText().toUpperCase();\n \n if(!condicion.equals(\"\") && condicion.length() > 0){\n //inicializa el listado\n llenarListadoProductos(this.rucSelectEmpresa);//SIEMPRE INICIALIZA CON EL LISTADO PRINCIPAL\n //filtrar java\n ArrayList target = tableModelListaPrecioProductos.data; \n ArrayList filteredCollection = new ArrayList();\n \n Iterator iterator = target.iterator();\n while(iterator.hasNext()){\n ArrayList fila = (ArrayList)iterator.next();\n String descProd = fila.get(COL_DESC_PROD).toString().toUpperCase().trim().replace(\" \", \"\");\n String pCodigo = fila.get(1).toString().toUpperCase().trim();\n String pCodRUC = fila.get(23).toString().toUpperCase().trim();\n String pDesGenerico = fila.get(7).toString().toUpperCase().trim().replace(\" \", \"\");\n /*if(pCodigo.equalsIgnoreCase(\"135476\")){\n System.out.println(descProd.contains(condicion));\n System.out.println(pCodigo.contains(condicion));\n System.out.println(pDesGenerico.contains(condicion));\n }*/\n /*if(this.rucSelectEmpresa.equalsIgnoreCase(\"0\")){\n if(descProd.contains(condicion)||pCodigo.contains(condicion)||pDesGenerico.contains(condicion)){\n filteredCollection.add(fila);\n }\n }else{\n if( (descProd.contains(condicion)||pCodigo.contains(condicion)||pDesGenerico.contains(condicion))\n //&&pCodRUC.equals(this.rucSelectEmpresa)\n ){\n filteredCollection.add(fila);\n }\n }*/\n if(descProd.contains(condicion)||pCodigo.contains(condicion)||pDesGenerico.contains(condicion)){\n filteredCollection.add(fila);\n }\n }\n //limpia las tablas auxiliares \n tableModelListaPrecioProductos.data = filteredCollection;\n VariablesPtoVenta.vInd_Filtro = FarmaConstants.INDICADOR_S;\n tableModelListaPrecioProductos.fireTableDataChanged();\n setJTable(tblProductos);\n //iniciaProceso(false);\n tblModelListaSustitutos.clearTable();\n \n if(tblProductos.getRowCount()==0){\n lblMensajeFiltro.setText(\"No se encontraron datos para el filtro ingresado\");\n //Dflores: 06.09.2019 *Cuando no se encuentran similar vuelve a llenar contodo x eso comment!\n llenarListadoProductos(this.rucSelectEmpresa);\n }\n else{\n if(tblProductos.getRowCount()==1)\n lblMensajeFiltro.setText(tblProductos.getRowCount()+\" fila para el filtro aplicado\");\n else\n lblMensajeFiltro.setText(tblProductos.getRowCount()+\" filas para el filtro aplicado\");\n }\n \n }\n else{\n llenarListadoProductos(this.rucSelectEmpresa);\n lblMensajeFiltro.setText(\"No se encontraron datos para el filtro ingresado\");\n }\n \n if(tblProductos.getRowCount()>0)\n FarmaGridUtils.showCell(tblProductos, 0, 0);\n }", "title": "" }, { "docid": "81a13361677a70a35ce6397d1d08a2d3", "score": "0.536186", "text": "@Test\n void testGetUserSummaryFiltered() {\n Engagement e1 = MockUtils.mockMinimumEngagement(\"c1\", \"p1\", \"1111\");\n EngagementUser user1 = MockUtils.mockEngagementUser(\"one@redhat.com\", \"o\", \"ne\", \"developer\", \"11\", false);\n EngagementUser user2 = MockUtils.mockEngagementUser(\"a@example.com\", \"a\", \"a\", \"developer\", \"99\", false);\n e1.setRegion(\"r1\");\n e1.setEngagementUsers(Sets.newHashSet(user1, user2));\n\n // region 1, one red hat user, same other user, but capital\n Engagement e2 = MockUtils.mockMinimumEngagement(\"c2\", \"p2\", \"2222\");\n EngagementUser user3 = MockUtils.mockEngagementUser(\"two@redhat.com\", \"t\", \"wo\", \"admin\", \"22\", false);\n EngagementUser user4 = MockUtils.mockEngagementUser(\"A@example.com\", \"a\", \"a\", \"developer\", \"88\", false);\n e2.setRegion(\"r1\");\n e2.setEngagementUsers(Sets.newHashSet(user3, user4));\n\n // region 2, one red hat user, one other user\n Engagement e3 = MockUtils.mockMinimumEngagement(\"c3\", \"p3\", \"3333\");\n EngagementUser user5 = MockUtils.mockEngagementUser(\"three@redhat.com\", \"t\", \"hree\", \"developer\", \"33\", false);\n EngagementUser user6 = MockUtils.mockEngagementUser(\"b@example.com\", \"b\", \"b\", \"developer\", \"77\", false);\n e3.setRegion(\"r2\");\n e3.setEngagementUsers(Sets.newHashSet(user5, user6));\n\n repository.persist(e1, e2, e3);\n\n EngagementUserSummary summary = repository\n .findEngagementUserSummary(ListFilterOptions.builder().search(\"region=r1\").build());\n assertNotNull(summary);\n assertEquals(3, summary.getAllUsersCount());\n assertEquals(2, summary.getRhUsersCount());\n assertEquals(1, summary.getOtherUsersCount());\n\n }", "title": "" }, { "docid": "f70e64a6e0f9cacc5ff55d67986297a7", "score": "0.53583896", "text": "ObservableList<Guest> getFilteredGuestList();", "title": "" }, { "docid": "da0ee0ea554ed55ba6c9451c0e9a698b", "score": "0.53543735", "text": "@Override\n public void run() {\n filterList.clear();\n\n // If there is no search value, then add all original list items to filter list\n if (TextUtils.isEmpty(text)) {\n\n //Log.d(\"data adapter\",data.toString());\n filterList.addAll(data);\n\n } else {\n // Iterate in the original List and add it to filter list...\n for (Maquinaria item : data) {\n if (item.getNombre().toLowerCase().contains(text.toLowerCase())) {\n // Adding Matched items\n filterList.add(item);\n }\n }\n }\n\n // Set on UI Thread\n ((Activity) mContext).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // Notify the List that the DataSet has changed...\n notifyDataSetChanged();\n }\n });\n\n }", "title": "" }, { "docid": "f4e4e23f1438089d6870cc585ef0d7c5", "score": "0.5348548", "text": "private void findFilteredNotes(List<Note> filteredList, String filterPattern) {\n Set<String> filteredSet = new TreeSet<>();\n // loop through all of the available (chipped) notes\n for (Note note : notesFull) {\n if (note.getName().toLowerCase().contains(filterPattern)) {\n // checks through note names\n Log.i(TAG, \"ADDED \" + note.getName());\n filteredList.add(note);\n filteredSet.add(note.getName());\n } else {\n // filter through predictions list (if possible)\n List<Prediction> predictions = note.getPredictions();\n if (predictions != null) {\n for (Prediction prediction : predictions) {\n if (prediction.label.equals(\"Topic\") && prediction.text.toLowerCase().contains(filterPattern)) {\n // checks if note has already been added before\n if (!filteredSet.contains(note.getName())) {\n Log.i(TAG, \"ADDED (by keyword) \" + note.getName());\n filteredList.add(note);\n }\n filteredSet.add(note.getName());\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "e4be0a4b1253533c70452ef2db97bb87", "score": "0.5346884", "text": "public void filterStudentList(String oldValue, String newValue) {\n ObservableList<Student> filteredList = FXCollections.observableArrayList();\n if(filterInput == null || (newValue.length() < oldValue.length()) || newValue == null) {\n studentTable.setItems(observableStudentList);\n }\n else {\n newValue = newValue.toUpperCase();\n for(Student students : studentTable.getItems()) {\n String filterFirstName = students.getFirstName();\n String filterLastName = students.getLastName();\n if(filterFirstName.toUpperCase().contains(newValue) || filterLastName.toUpperCase().contains(newValue)) {\n filteredList.add(students);\n }\n }\n studentTable.setItems(filteredList);\n }\n }", "title": "" }, { "docid": "511fd294e77e54508e761af79437df3b", "score": "0.5345104", "text": "public static void useFiltertoCreateSubList() {\n // a collect original with 5 langauges\n // use filter to filter out language which less then 4 chars\n // the rest language will be put at a sub Collection\n List<String> languages = Arrays.asList(\"Java\", \"Scala\", \"C++\", \"Haskell\", \"Lisp\");\n List<String> filtered = languages.stream().filter(x -> x.length() > 4).collect(Collectors.toList());\n System.out.printf(\"Original List : %s, filtered list : %s %n\", languages, filtered);\n }", "title": "" }, { "docid": "f4d72378e2cc3e45113a57847e330093", "score": "0.534224", "text": "public void auditDetailFilterReports() \n\t{\n\t\toParameters.SetParameters(\"AuditDetailValueBefore\", get_field_value(\"Audit Detail\", auditDetailColumn));\n\t\tclick_button(\"Add Filter\", addFilterButton);\n\t\tclick_button(\"RateSheet filters DropDown\", rateSheetfiltersDropDown);\n\t\tclick_button(\"Audit Detail Element\", auditDetailElement);\n\t\tenter_text_value(\"Audit Detail Search Box\", filterSearchBox,oParameters.GetParameters(\"AuditDetailValueBefore\"));\n\t\tperformKeyBoardAction(\"ENTER\");\n\t\tclick_button(\"Filter Button\", filterButton);\n\t\twaitFor(auditDetailColumn, \"Audit Detail Column\");\n\t\toParameters.SetParameters(\"AuditDetailValueAfter\", get_field_value(\"Audit Detail\", auditDetailColumn));\n\n\t\tif(oParameters.GetParameters(\"AuditDetailValueBefore\").equalsIgnoreCase(oParameters.GetParameters(\"AuditDetailValueAfter\")))\n\t\t\toReport.AddStepResult(\"Audit Detail\",\"Reports are filtered based on Audit Details those reports are Displayed \", \"PASS\");\n\t\telse\n\t\t\toReport.AddStepResult(\"Audit Detail\",\"Reports are filtered based on Audit Details but those reports are not Displayed \", \"FAIL\");\n\n\t\toParameters.SetParameters(\"UserFilteredRecords\", get_field_value(\"No. of Records \", noOfRecordsElement).replaceAll(\"[, Records]\", \"\"));\n\t}", "title": "" }, { "docid": "90da2450a24315275df575c97f0b6883", "score": "0.5333518", "text": "@Override\r\n public List<Boolean> filter(Settings settings, VcfHeader vcfHeader, FilterDependencies filterDependencies) { \r\n List<Boolean> individualsLeft = new ArrayList<>();\r\n //loops to all individuals in header\r\n for(String indv: vcfHeader.getGenotypeSamples()){\r\n //if list of individuals to keep contains the individual in the header.\r\n if(settings.getKeepIndv().contains(indv)){\r\n //keep individual\r\n individualsLeft.add(true);\r\n } else{\r\n //remove individual\r\n individualsLeft.add(false);\r\n }\r\n }\r\n return individualsLeft;\r\n }", "title": "" }, { "docid": "08f88ecbe940fa3bd2a0fee144307791", "score": "0.5332151", "text": "@Override\n public void run() {\n filterList.clear();\n\n // If there is no search value, then add all original list items to filter list\n if (TextUtils.isEmpty(text)) {\n\n filterList.addAll(listItems);\n\n } else {\n // Iterate in the original List and add it to filter list...\n for (NightCLubModel.ResponseBean.RestaurantsBean item : listItems) {\n if (item.getRestaurant().getLocation().getAddress().toLowerCase().contains(text.toLowerCase()) ||\n item.getRestaurant().getName().toLowerCase().contains(text.toLowerCase())) {\n // Adding Matched items\n filterList.add(item);\n }\n }\n }\n\n // Set on UI Thread\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // Notify the List that the DataSet has changed...\n notifyDataSetChanged();\n }\n });\n\n }", "title": "" }, { "docid": "0af0a2a0b274607edb6a27e25c120d25", "score": "0.53301597", "text": "private void searchFilter(String searchTerm)\n {\n DefaultListModel filteredItems = new DefaultListModel();\n ///ArrayList palavras = getPalavras();\n \n getPalavras().stream().forEach((palavra) ->{\n String palavraInicial = palavra.toString().toLowerCase();\n String primeira_ocorrencia1 = String.valueOf(palavraInicial.charAt(0));\n String primeira_ocorrencia2 = String.valueOf(searchTerm.toLowerCase().charAt(0));\n if(primeira_ocorrencia1.equals(primeira_ocorrencia2)) filteredItems.addElement(palavra);\n });\n defaultListModel=filteredItems;\n superJList.setModel(defaultListModel);\n if (texto_perguntaJTX1.getText().isEmpty())\n {\n defaultListModel.clear();\n superJList.setModel(defaultListModel);\n }\n }", "title": "" }, { "docid": "780168def4d439c88cc7d5a96ecd6c26", "score": "0.53217447", "text": "private void filter(String text) {\n // New array list that will hold the filtered data\n ArrayList<Audio> filteredAudios = new ArrayList<>();\n\n // Looping through existing elements\n for (Audio audio : mAudioList) {\n // If the existing elements contains the search input\n if (audio.getTitle().toLowerCase().contains(text)\n || audio.getArtist().toLowerCase().contains(text)\n || audio.getAlbum().toLowerCase().contains(text)\n || audio.getGenre().toLowerCase().contains(text)) {\n //Adding the element to filtered list\n filteredAudios.add(audio);\n }\n }\n\n // Calling a method of the adapter class and passing the filtered list\n adapter.setFilteredList(filteredAudios);\n }", "title": "" }, { "docid": "1af2a72d82bacdd804ec4aea940f71d1", "score": "0.5321054", "text": "public Filter()\n {\n dataLoader = new AirbnbDataLoader();\n listings = dataLoader.load();\n listingsIT = listings.iterator();\n }", "title": "" }, { "docid": "b5ab8c4a0b478c0bc6a3ae536bc873a8", "score": "0.53191125", "text": "ObservableList<Card> getFilteredCardList();", "title": "" }, { "docid": "6b8191217054e175c356c5c9f3d74885", "score": "0.5315598", "text": "@Override\n protected void publishResults(CharSequence charSequence, FilterResults filterResults) {\n lista_de_usuarios.clear();\n lista_de_usuarios.addAll((ArrayList) filterResults.values);\n notifyDataSetChanged();\n }", "title": "" } ]
7eff493996e11be1156cf9a3db2a587b
$ANTLR end "rule__XTryCatchFinallyExpression__Group_3_0__0__Impl" $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_0__1" ../org.eclipse.xtext.idea.example.entities.ui/srcgen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15310:1: rule__XTryCatchFinallyExpression__Group_3_0__1 : rule__XTryCatchFinallyExpression__Group_3_0__1__Impl ;
[ { "docid": "f465bf2de69b31724ac7b56b59fed6fd", "score": "0.8072763", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15314:1: ( rule__XTryCatchFinallyExpression__Group_3_0__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15315:2: rule__XTryCatchFinallyExpression__Group_3_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0__130906);\n rule__XTryCatchFinallyExpression__Group_3_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" } ]
[ { "docid": "9dc65f0abc92b76b5968b7bd542eca79", "score": "0.8073962", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15377:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15378:2: rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0_1__131032);\n rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "250c82704f88004e0ee1825512bf665f", "score": "0.7996939", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15325:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15326:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15326:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15327:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15328:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )?\n int alt111=2;\n int LA111_0 = input.LA(1);\n\n if ( (LA111_0==80) ) {\n int LA111_1 = input.LA(2);\n\n if ( (synpred154_InternalEntities()) ) {\n alt111=1;\n }\n }\n switch (alt111) {\n case 1 :\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15328:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__0_in_rule__XTryCatchFinallyExpression__Group_3_0__1__Impl30933);\n rule__XTryCatchFinallyExpression__Group_3_0_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); \n }\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 }", "title": "" }, { "docid": "cebee344e301210c769492874cb4057a", "score": "0.7990782", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15440:1: ( rule__XTryCatchFinallyExpression__Group_3_1__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15441:2: rule__XTryCatchFinallyExpression__Group_3_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_1__131155);\n rule__XTryCatchFinallyExpression__Group_3_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "7a80166ced75c61b004aa66b2dfe7a7c", "score": "0.7941477", "text": "public final void rule__XTryCatchFinallyExpression__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15242:1: ( rule__XTryCatchFinallyExpression__Group__3__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15243:2: rule__XTryCatchFinallyExpression__Group__3__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__3__Impl_in_rule__XTryCatchFinallyExpression__Group__330764);\n rule__XTryCatchFinallyExpression__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "91a1b7e3fcaabc74c9af460f46bcd5b4", "score": "0.7894355", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14449:1: ( rule__XTryCatchFinallyExpression__Group_3_0__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14450:2: rule__XTryCatchFinallyExpression__Group_3_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0__129137);\n rule__XTryCatchFinallyExpression__Group_3_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "1a6263090bdaf47414d414f6cfc99582", "score": "0.78931576", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14512:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14513:2: rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0_1__129263);\n rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "100570eff048725f6f8abebc25ba430d", "score": "0.7854877", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14460:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14461:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14461:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14462:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14463:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )?\n int alt104=2;\n int LA104_0 = input.LA(1);\n\n if ( (LA104_0==79) ) {\n int LA104_1 = input.LA(2);\n\n if ( (synpred141_InternalGuiceModules()) ) {\n alt104=1;\n }\n }\n switch (alt104) {\n case 1 :\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14463:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__0_in_rule__XTryCatchFinallyExpression__Group_3_0__1__Impl29164);\n rule__XTryCatchFinallyExpression__Group_3_0_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); \n }\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 }", "title": "" }, { "docid": "93b70343dd3a8a2064be07097043221b", "score": "0.78511757", "text": "public final void rule__XTryCatchFinallyExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15163:1: ( ( () ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15164:1: ( () )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15164:1: ( () )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15165:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15166:1: ()\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15168:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "38d7e2a87e174fa33801928e7c962a73", "score": "0.7821138", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14575:1: ( rule__XTryCatchFinallyExpression__Group_3_1__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14576:2: rule__XTryCatchFinallyExpression__Group_3_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_1__129386);\n rule__XTryCatchFinallyExpression__Group_3_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "75380d9b381f37996a9341e673a1f94b", "score": "0.7818432", "text": "public final void rule__XTryCatchFinallyExpression__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14377:1: ( rule__XTryCatchFinallyExpression__Group__3__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14378:2: rule__XTryCatchFinallyExpression__Group__3__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__3__Impl_in_rule__XTryCatchFinallyExpression__Group__328995);\n rule__XTryCatchFinallyExpression__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "ddf6cae9a9b27416f6f1fcbc12e6198e", "score": "0.78049517", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12261:1: ( rule__XTryCatchFinallyExpression__Group_3_0__1__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12262:2: rule__XTryCatchFinallyExpression__Group_3_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0__124658);\n rule__XTryCatchFinallyExpression__Group_3_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "759756ba7363b0f54082a5316273741f", "score": "0.7794895", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12324:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12325:2: rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0_1__124784);\n rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "c7dfbc311ac1b55d2ac414e572961990", "score": "0.77798265", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15346:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15347:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0_1__030968);\n rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__1_in_rule__XTryCatchFinallyExpression__Group_3_0_1__030971);\n rule__XTryCatchFinallyExpression__Group_3_0_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "78465e2bd9eedf6a451a9c7451b8eedb", "score": "0.7772855", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15409:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15410:2: rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_1__031093);\n rule__XTryCatchFinallyExpression__Group_3_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__1_in_rule__XTryCatchFinallyExpression__Group_3_1__031096);\n rule__XTryCatchFinallyExpression__Group_3_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "3244ab293a2489d12fbc34621be0410c", "score": "0.77407634", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12387:1: ( rule__XTryCatchFinallyExpression__Group_3_1__1__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12388:2: rule__XTryCatchFinallyExpression__Group_3_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_1__124907);\n rule__XTryCatchFinallyExpression__Group_3_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "3d23e71ba66dc6f312e1ccdeba4ea663", "score": "0.77251995", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15278:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15279:2: rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0__030829);\n rule__XTryCatchFinallyExpression__Group_3_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__1_in_rule__XTryCatchFinallyExpression__Group_3_0__030832);\n rule__XTryCatchFinallyExpression__Group_3_0__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "221208fc9482b082231ca60c4f53fe06", "score": "0.7708335", "text": "public final void rule__XTryCatchFinallyExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14298:1: ( ( () ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14299:1: ( () )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14299:1: ( () )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14300:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14301:1: ()\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14303:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7a81b630fc97d0702de3bdf5a1a24444", "score": "0.7699326", "text": "public final void rule__XTryCatchFinallyExpression__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12189:1: ( rule__XTryCatchFinallyExpression__Group__3__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12190:2: rule__XTryCatchFinallyExpression__Group__3__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__3__Impl_in_rule__XTryCatchFinallyExpression__Group__324516);\n rule__XTryCatchFinallyExpression__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "1e5a4490a2cd0ad106145131de5a538f", "score": "0.76538163", "text": "public final void rule__XTryCatchFinallyExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15151:1: ( rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15152:2: rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__0__Impl_in_rule__XTryCatchFinallyExpression__Group__030581);\n rule__XTryCatchFinallyExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__1_in_rule__XTryCatchFinallyExpression__Group__030584);\n rule__XTryCatchFinallyExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "74d81b550ce8464594010522c6f8c62e", "score": "0.76525176", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14481:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14482:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0_1__029199);\n rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__1_in_rule__XTryCatchFinallyExpression__Group_3_0_1__029202);\n rule__XTryCatchFinallyExpression__Group_3_0_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "5ac221c8eeda7ec285667ad7f1bc8a4c", "score": "0.76401997", "text": "public final void ruleXTryCatchFinallyExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1760:2: ( ( ( rule__XTryCatchFinallyExpression__Group__0 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1761:1: ( ( rule__XTryCatchFinallyExpression__Group__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1761:1: ( ( rule__XTryCatchFinallyExpression__Group__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1762:1: ( rule__XTryCatchFinallyExpression__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1763:1: ( rule__XTryCatchFinallyExpression__Group__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1763:2: rule__XTryCatchFinallyExpression__Group__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__0_in_ruleXTryCatchFinallyExpression3705);\n rule__XTryCatchFinallyExpression__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); \n }\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 }", "title": "" }, { "docid": "7060b804c7e226d750437cd2109159f3", "score": "0.7632329", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14413:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14414:2: rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0__029060);\n rule__XTryCatchFinallyExpression__Group_3_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__1_in_rule__XTryCatchFinallyExpression__Group_3_0__029063);\n rule__XTryCatchFinallyExpression__Group_3_0__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "b1a5973fb3d6f531f7580a4d4540aef5", "score": "0.7624972", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14544:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14545:2: rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_1__029324);\n rule__XTryCatchFinallyExpression__Group_3_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__1_in_rule__XTryCatchFinallyExpression__Group_3_1__029327);\n rule__XTryCatchFinallyExpression__Group_3_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "a48165e402e2aaa619ec7c379188e033", "score": "0.76023763", "text": "public final void rule__XTryCatchFinallyExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15182:1: ( rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15183:2: rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__1__Impl_in_rule__XTryCatchFinallyExpression__Group__130642);\n rule__XTryCatchFinallyExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__2_in_rule__XTryCatchFinallyExpression__Group__130645);\n rule__XTryCatchFinallyExpression__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "cd0a0dccee4fd116183dea8f93501754", "score": "0.75812966", "text": "public final void ruleXTryCatchFinallyExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:1844:2: ( ( ( rule__XTryCatchFinallyExpression__Group__0 ) ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:1845:1: ( ( rule__XTryCatchFinallyExpression__Group__0 ) )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:1845:1: ( ( rule__XTryCatchFinallyExpression__Group__0 ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:1846:1: ( rule__XTryCatchFinallyExpression__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:1847:1: ( rule__XTryCatchFinallyExpression__Group__0 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:1847:2: rule__XTryCatchFinallyExpression__Group__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__0_in_ruleXTryCatchFinallyExpression3885);\n rule__XTryCatchFinallyExpression__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); \n }\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 }", "title": "" }, { "docid": "5d85991973d7d4d395b9ee8d6187cc7e", "score": "0.7539911", "text": "public final void rule__XTryCatchFinallyExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15213:1: ( rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15214:2: rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__2__Impl_in_rule__XTryCatchFinallyExpression__Group__230704);\n rule__XTryCatchFinallyExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__3_in_rule__XTryCatchFinallyExpression__Group__230707);\n rule__XTryCatchFinallyExpression__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "081aae750896af446e0596ee56581aad", "score": "0.74561226", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12293:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12294:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0_1__024720);\n rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__1_in_rule__XTryCatchFinallyExpression__Group_3_0_1__024723);\n rule__XTryCatchFinallyExpression__Group_3_0_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "f604517fd6d5399c24ebdeb5d688d362", "score": "0.74550956", "text": "public final void rule__XTryCatchFinallyExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14286:1: ( rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14287:2: rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__0__Impl_in_rule__XTryCatchFinallyExpression__Group__028812);\n rule__XTryCatchFinallyExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__1_in_rule__XTryCatchFinallyExpression__Group__028815);\n rule__XTryCatchFinallyExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "090a4d40287726160772a83d4f7a8f54", "score": "0.7452848", "text": "public final void rule__XTryCatchFinallyExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12110:1: ( ( () ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12111:1: ( () )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12111:1: ( () )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12112:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12113:1: ()\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12115:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c0851fb1416ca7b0a5eed4be2267f81a", "score": "0.7441805", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12225:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12226:2: rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0__024581);\n rule__XTryCatchFinallyExpression__Group_3_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__1_in_rule__XTryCatchFinallyExpression__Group_3_0__024584);\n rule__XTryCatchFinallyExpression__Group_3_0__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "3422b4c9f56e6dbb8efa72846226a5dc", "score": "0.7424623", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12356:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12357:2: rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_1__024845);\n rule__XTryCatchFinallyExpression__Group_3_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__1_in_rule__XTryCatchFinallyExpression__Group_3_1__024848);\n rule__XTryCatchFinallyExpression__Group_3_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "ec7247399d4749969cab8d6d6aa6a74b", "score": "0.7418211", "text": "public final void rule__XTryCatchFinallyExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14348:1: ( rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14349:2: rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__2__Impl_in_rule__XTryCatchFinallyExpression__Group__228935);\n rule__XTryCatchFinallyExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__3_in_rule__XTryCatchFinallyExpression__Group__228938);\n rule__XTryCatchFinallyExpression__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "01ad5f3c49fe49cf8d275ef31000ab9e", "score": "0.7414539", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12272:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12273:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12273:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12274:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12275:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )?\n int alt84=2;\n int LA84_0 = input.LA(1);\n\n if ( (LA84_0==64) ) {\n int LA84_1 = input.LA(2);\n\n if ( (synpred105_InternalSGen()) ) {\n alt84=1;\n }\n }\n switch (alt84) {\n case 1 :\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12275:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__0_in_rule__XTryCatchFinallyExpression__Group_3_0__1__Impl24685);\n rule__XTryCatchFinallyExpression__Group_3_0_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); \n }\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 }", "title": "" }, { "docid": "62cf7991675f682de5339864d12d8598", "score": "0.7406322", "text": "public final void rule__XTryCatchFinallyExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14317:1: ( rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14318:2: rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__1__Impl_in_rule__XTryCatchFinallyExpression__Group__128873);\n rule__XTryCatchFinallyExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__2_in_rule__XTryCatchFinallyExpression__Group__128876);\n rule__XTryCatchFinallyExpression__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "92fc10ea958e9577f36b83cc89a6498a", "score": "0.73730975", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15421:1: ( ( 'finally' ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15422:1: ( 'finally' )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15422:1: ( 'finally' )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15423:1: 'finally'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); \n }\n match(input,80,FOLLOW_80_in_rule__XTryCatchFinallyExpression__Group_3_1__0__Impl31124); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); \n }\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 }", "title": "" }, { "docid": "c3b6b377d258bf1914c20530aff0b460", "score": "0.7343344", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14493:1: ( ( ( 'finally' ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14494:1: ( ( 'finally' ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14494:1: ( ( 'finally' ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14495:1: ( 'finally' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14496:1: ( 'finally' )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14497:2: 'finally'\n {\n match(input,79,FOLLOW_79_in_rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl29231); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); \n }\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 }", "title": "" }, { "docid": "eeafda5fc18e20a5b4d289977d687fed", "score": "0.7328055", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15358:1: ( ( ( 'finally' ) ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15359:1: ( ( 'finally' ) )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15359:1: ( ( 'finally' ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15360:1: ( 'finally' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15361:1: ( 'finally' )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15362:2: 'finally'\n {\n match(input,80,FOLLOW_80_in_rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl31000); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); \n }\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 }", "title": "" }, { "docid": "173b182ff5091e56a9b6b8c97ef57842", "score": "0.73161227", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15388:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15389:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15389:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15390:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15391:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15391:2: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1_in_rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl31059);\n rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); \n }\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 }", "title": "" }, { "docid": "9111820a20a6716edb93c1e96939c70e", "score": "0.73128176", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14556:1: ( ( 'finally' ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14557:1: ( 'finally' )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14557:1: ( 'finally' )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14558:1: 'finally'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); \n }\n match(input,79,FOLLOW_79_in_rule__XTryCatchFinallyExpression__Group_3_1__0__Impl29355); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); \n }\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 }", "title": "" }, { "docid": "29b219e087e4fe4f184beb8cc631760b", "score": "0.72850555", "text": "public final void rule__XTryCatchFinallyExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12160:1: ( rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12161:2: rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__2__Impl_in_rule__XTryCatchFinallyExpression__Group__224456);\n rule__XTryCatchFinallyExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__3_in_rule__XTryCatchFinallyExpression__Group__224459);\n rule__XTryCatchFinallyExpression__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "587ec2697258a871ad68a619a34f4cdf", "score": "0.7283805", "text": "public final void rule__XTryCatchFinallyExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12098:1: ( rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12099:2: rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__0__Impl_in_rule__XTryCatchFinallyExpression__Group__024333);\n rule__XTryCatchFinallyExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__1_in_rule__XTryCatchFinallyExpression__Group__024336);\n rule__XTryCatchFinallyExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "a9c617aa98c17feddbc467149f6e1a8c", "score": "0.7257821", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15290:1: ( ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15291:1: ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15291:1: ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15292:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15292:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15293:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15294:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15294:2: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0_in_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl30861);\n rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n\n }\n\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15297:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15298:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15299:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )*\n loop110:\n do {\n int alt110=2;\n int LA110_0 = input.LA(1);\n\n if ( (LA110_0==82) ) {\n int LA110_2 = input.LA(2);\n\n if ( (synpred153_InternalEntities()) ) {\n alt110=1;\n }\n\n\n }\n\n\n switch (alt110) {\n \tcase 1 :\n \t // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15299:2: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0\n \t {\n \t pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0_in_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl30873);\n \t rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop110;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n\n }\n\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 }", "title": "" }, { "docid": "a1226cce9817609abee4cc787984a14d", "score": "0.7228188", "text": "public final void rule__XTryCatchFinallyExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12129:1: ( rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12130:2: rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__1__Impl_in_rule__XTryCatchFinallyExpression__Group__124394);\n rule__XTryCatchFinallyExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__2_in_rule__XTryCatchFinallyExpression__Group__124397);\n rule__XTryCatchFinallyExpression__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "792aa0773e524507f16d762ad829b524", "score": "0.72275376", "text": "public final void ruleXTryCatchFinallyExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:1629:2: ( ( ( rule__XTryCatchFinallyExpression__Group__0 ) ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:1630:1: ( ( rule__XTryCatchFinallyExpression__Group__0 ) )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:1630:1: ( ( rule__XTryCatchFinallyExpression__Group__0 ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:1631:1: ( rule__XTryCatchFinallyExpression__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:1632:1: ( rule__XTryCatchFinallyExpression__Group__0 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:1632:2: rule__XTryCatchFinallyExpression__Group__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__0_in_ruleXTryCatchFinallyExpression3424);\n rule__XTryCatchFinallyExpression__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); \n }\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 }", "title": "" }, { "docid": "e127f56a9aef4b33f42a06f5a15db8d0", "score": "0.7226627", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14523:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14524:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14524:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14525:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14526:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14526:2: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1_in_rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl29290);\n rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); \n }\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 }", "title": "" }, { "docid": "222a99f50a8db3ccde974203cbf94256", "score": "0.72041994", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15451:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15452:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15452:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15453:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15454:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15454:2: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1_in_rule__XTryCatchFinallyExpression__Group_3_1__1__Impl31182);\n rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); \n }\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 }", "title": "" }, { "docid": "35f41f90019a9123616409b1a8e48883", "score": "0.7177724", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14586:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14587:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14587:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14588:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14589:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14589:2: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1_in_rule__XTryCatchFinallyExpression__Group_3_1__1__Impl29413);\n rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); \n }\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 }", "title": "" }, { "docid": "f0a29882f28d1ed6dfc538e17eba88ec", "score": "0.71729755", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14425:1: ( ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14426:1: ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14426:1: ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14427:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14427:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14428:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14429:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14429:2: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0_in_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl29092);\n rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n\n }\n\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14432:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14433:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14434:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )*\n loop103:\n do {\n int alt103=2;\n int LA103_0 = input.LA(1);\n\n if ( (LA103_0==80) ) {\n int LA103_2 = input.LA(2);\n\n if ( (synpred140_InternalGuiceModules()) ) {\n alt103=1;\n }\n\n\n }\n\n\n switch (alt103) {\n \tcase 1 :\n \t // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14434:2: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0\n \t {\n \t pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0_in_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl29104);\n \t rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop103;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n\n }\n\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 }", "title": "" }, { "docid": "c7c3587ba509575b325ac1c4418ce9bc", "score": "0.706191", "text": "public final void rule__XTryCatchFinallyExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15194:1: ( ( 'try' ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15195:1: ( 'try' )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15195:1: ( 'try' )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15196:1: 'try'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \n }\n match(input,79,FOLLOW_79_in_rule__XTryCatchFinallyExpression__Group__1__Impl30673); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \n }\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 }", "title": "" }, { "docid": "116bda63447aad4df2fa0858246cfd34", "score": "0.70407367", "text": "public final void rule__XTryCatchFinallyExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14329:1: ( ( 'try' ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14330:1: ( 'try' )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14330:1: ( 'try' )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14331:1: 'try'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \n }\n match(input,78,FOLLOW_78_in_rule__XTryCatchFinallyExpression__Group__1__Impl28904); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \n }\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 }", "title": "" }, { "docid": "fcbc6a9426e4ed6cfdb34e4c38ffa3b2", "score": "0.69976914", "text": "public final void rule__XTryCatchFinallyExpression__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15253:1: ( ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15254:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15254:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15255:1: ( rule__XTryCatchFinallyExpression__Alternatives_3 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15256:1: ( rule__XTryCatchFinallyExpression__Alternatives_3 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15256:2: rule__XTryCatchFinallyExpression__Alternatives_3\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Alternatives_3_in_rule__XTryCatchFinallyExpression__Group__3__Impl30791);\n rule__XTryCatchFinallyExpression__Alternatives_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); \n }\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 }", "title": "" }, { "docid": "8ded2956350c3d9d220095049dd1c54d", "score": "0.6946605", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12368:1: ( ( 'finally' ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12369:1: ( 'finally' )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12369:1: ( 'finally' )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12370:1: 'finally'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); \n }\n match(input,64,FOLLOW_64_in_rule__XTryCatchFinallyExpression__Group_3_1__0__Impl24876); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); \n }\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 }", "title": "" }, { "docid": "07175dee0282d54d84d67bdbb58159d5", "score": "0.6905074", "text": "public final void rule__XTryCatchFinallyExpression__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14388:1: ( ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14389:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14389:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14390:1: ( rule__XTryCatchFinallyExpression__Alternatives_3 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14391:1: ( rule__XTryCatchFinallyExpression__Alternatives_3 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14391:2: rule__XTryCatchFinallyExpression__Alternatives_3\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Alternatives_3_in_rule__XTryCatchFinallyExpression__Group__3__Impl29022);\n rule__XTryCatchFinallyExpression__Alternatives_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); \n }\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 }", "title": "" }, { "docid": "df17777afcd7157cc6ae7c048aec047b", "score": "0.6889931", "text": "public final void rule__XTryCatchFinallyExpression__Alternatives_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:3218:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) ) | ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) ) )\n int alt33=2;\n int LA33_0 = input.LA(1);\n\n if ( (LA33_0==80) ) {\n alt33=1;\n }\n else if ( (LA33_0==79) ) {\n alt33=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 33, 0, input);\n\n throw nvae;\n }\n switch (alt33) {\n case 1 :\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:3219:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:3219:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:3220:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:3221:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:3221:2: rule__XTryCatchFinallyExpression__Group_3_0__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__0_in_rule__XTryCatchFinallyExpression__Alternatives_37006);\n rule__XTryCatchFinallyExpression__Group_3_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:3225:6: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:3225:6: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:3226:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:3227:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:3227:2: rule__XTryCatchFinallyExpression__Group_3_1__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__0_in_rule__XTryCatchFinallyExpression__Alternatives_37024);\n rule__XTryCatchFinallyExpression__Group_3_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); \n }\n\n }\n\n\n }\n break;\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 }", "title": "" }, { "docid": "5194a27d9f511f6fb3ef6f9802bbfa3c", "score": "0.6887521", "text": "public final void synpred154_InternalEntities_fragment() throws RecognitionException { \n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15328:2: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15328:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__0_in_synpred154_InternalEntities30933);\n rule__XTryCatchFinallyExpression__Group_3_0_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "title": "" }, { "docid": "c9dad335bfa12107c897b836a448e201", "score": "0.6886168", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12305:1: ( ( ( 'finally' ) ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12306:1: ( ( 'finally' ) )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12306:1: ( ( 'finally' ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12307:1: ( 'finally' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12308:1: ( 'finally' )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12309:2: 'finally'\n {\n match(input,64,FOLLOW_64_in_rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl24752); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); \n }\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 }", "title": "" }, { "docid": "00868066cbc4ef0f60bbaeb314693a79", "score": "0.68631387", "text": "public final void rule__XTryCatchFinallyExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15225:1: ( ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15226:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15226:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15227:1: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15228:1: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15228:2: rule__XTryCatchFinallyExpression__ExpressionAssignment_2\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__ExpressionAssignment_2_in_rule__XTryCatchFinallyExpression__Group__2__Impl30734);\n rule__XTryCatchFinallyExpression__ExpressionAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); \n }\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 }", "title": "" }, { "docid": "0715cadc0e0d37225d35721af829368c", "score": "0.68507105", "text": "public final void rule__XTryCatchFinallyExpression__Alternatives_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3459:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) ) | ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) ) )\n int alt35=2;\n int LA35_0 = input.LA(1);\n\n if ( (LA35_0==82) ) {\n alt35=1;\n }\n else if ( (LA35_0==80) ) {\n alt35=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 35, 0, input);\n\n throw nvae;\n }\n switch (alt35) {\n case 1 :\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3460:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3460:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3461:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3462:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3462:2: rule__XTryCatchFinallyExpression__Group_3_0__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__0_in_rule__XTryCatchFinallyExpression__Alternatives_37550);\n rule__XTryCatchFinallyExpression__Group_3_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3466:6: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3466:6: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3467:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3468:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3468:2: rule__XTryCatchFinallyExpression__Group_3_1__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__0_in_rule__XTryCatchFinallyExpression__Alternatives_37568);\n rule__XTryCatchFinallyExpression__Group_3_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); \n }\n\n }\n\n\n }\n break;\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 }", "title": "" }, { "docid": "1684f5637a59f977050596276bd677ad", "score": "0.6832328", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12335:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12336:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12336:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12337:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12338:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12338:2: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1_in_rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl24811);\n rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); \n }\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 }", "title": "" }, { "docid": "fbf250dc3d7c58ad0f18d2837f2cae3e", "score": "0.67985386", "text": "public final void rule__XTryCatchFinallyExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14360:1: ( ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14361:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14361:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14362:1: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14363:1: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14363:2: rule__XTryCatchFinallyExpression__ExpressionAssignment_2\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__ExpressionAssignment_2_in_rule__XTryCatchFinallyExpression__Group__2__Impl28965);\n rule__XTryCatchFinallyExpression__ExpressionAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); \n }\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 }", "title": "" }, { "docid": "4de160a8f5cae3dab096c25e07b059cf", "score": "0.6760323", "text": "public final void synpred141_InternalGuiceModules_fragment() throws RecognitionException { \n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14463:2: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14463:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__0_in_synpred141_InternalGuiceModules29164);\n rule__XTryCatchFinallyExpression__Group_3_0_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "title": "" }, { "docid": "29de418388a32d6fb082decdb5053774", "score": "0.67476207", "text": "public final void rule__XTryCatchFinallyExpression__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12200:1: ( ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12201:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12201:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12202:1: ( rule__XTryCatchFinallyExpression__Alternatives_3 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12203:1: ( rule__XTryCatchFinallyExpression__Alternatives_3 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12203:2: rule__XTryCatchFinallyExpression__Alternatives_3\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Alternatives_3_in_rule__XTryCatchFinallyExpression__Group__3__Impl24543);\n rule__XTryCatchFinallyExpression__Alternatives_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); \n }\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 }", "title": "" }, { "docid": "c11e9cb20a6c16196de9ef396c8393a1", "score": "0.67322993", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12398:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12399:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12399:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12400:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12401:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12401:2: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1_in_rule__XTryCatchFinallyExpression__Group_3_1__1__Impl24934);\n rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); \n }\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 }", "title": "" }, { "docid": "1eb4c95ad91767f0cb342f8de4db2af0", "score": "0.6726411", "text": "public final void rule__XTryCatchFinallyExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12141:1: ( ( 'try' ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12142:1: ( 'try' )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12142:1: ( 'try' )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12143:1: 'try'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \n }\n match(input,63,FOLLOW_63_in_rule__XTryCatchFinallyExpression__Group__1__Impl24425); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \n }\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 }", "title": "" }, { "docid": "e90bbf13f64ca0d84af426a12fe4a977", "score": "0.66649824", "text": "public final void rule__XTryCatchFinallyExpression__Group_3_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12237:1: ( ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12238:1: ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12238:1: ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12239:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12239:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12240:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12241:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12241:2: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0_in_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl24613);\n rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n\n }\n\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12244:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12245:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12246:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )*\n loop83:\n do {\n int alt83=2;\n int LA83_0 = input.LA(1);\n\n if ( (LA83_0==65) ) {\n int LA83_2 = input.LA(2);\n\n if ( (synpred104_InternalSGen()) ) {\n alt83=1;\n }\n\n\n }\n\n\n switch (alt83) {\n \tcase 1 :\n \t // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12246:2: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0\n \t {\n \t pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0_in_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl24625);\n \t rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop83;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n\n }\n\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 }", "title": "" }, { "docid": "f1a917c060b166a072e1628a0fd3aa97", "score": "0.6579808", "text": "public final void rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:20189:1: ( ( ruleXExpression ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:20190:1: ( ruleXExpression )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:20190:1: ( ruleXExpression )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:20191:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_140652);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); \n }\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 }", "title": "" }, { "docid": "747ec807a68aefe3494ef15e6ef9b43f", "score": "0.65613246", "text": "public final void rule__XTryCatchFinallyExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12172:1: ( ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12173:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12173:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12174:1: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12175:1: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12175:2: rule__XTryCatchFinallyExpression__ExpressionAssignment_2\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__ExpressionAssignment_2_in_rule__XTryCatchFinallyExpression__Group__2__Impl24486);\n rule__XTryCatchFinallyExpression__ExpressionAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); \n }\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 }", "title": "" }, { "docid": "d815bee801c14974a9bb1460240336e6", "score": "0.65222716", "text": "public final void synpred105_InternalSGen_fragment() throws RecognitionException { \n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12275:2: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:12275:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__0_in_synpred105_InternalSGen24685);\n rule__XTryCatchFinallyExpression__Group_3_0_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "title": "" }, { "docid": "5bdd6b0f7416884d50101a3e7d57f415", "score": "0.6490856", "text": "public final void rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:20204:1: ( ( ruleXExpression ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:20205:1: ( ruleXExpression )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:20205:1: ( ruleXExpression )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:20206:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_140683);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); \n }\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 }", "title": "" }, { "docid": "7c0f020a20150cfce5a4fc731985cf78", "score": "0.648721", "text": "public final void rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:18386:1: ( ( ruleXExpression ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:18387:1: ( ruleXExpression )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:18387:1: ( ruleXExpression )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:18388:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_137035);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); \n }\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 }", "title": "" }, { "docid": "7e7d218a7a9df621e7171abb63b18fd7", "score": "0.6458809", "text": "public final void entryRuleXTryCatchFinallyExpression() throws RecognitionException {\n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1748:1: ( ruleXTryCatchFinallyExpression EOF )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1749:1: ruleXTryCatchFinallyExpression EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionRule()); \n }\n pushFollow(FOLLOW_ruleXTryCatchFinallyExpression_in_entryRuleXTryCatchFinallyExpression3672);\n ruleXTryCatchFinallyExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXTryCatchFinallyExpression3679); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "27f534cf83868c9a0b705ec907409bb6", "score": "0.6453882", "text": "public final void entryRuleXTryCatchFinallyExpression() throws RecognitionException {\n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:1832:1: ( ruleXTryCatchFinallyExpression EOF )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:1833:1: ruleXTryCatchFinallyExpression EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionRule()); \n }\n pushFollow(FOLLOW_ruleXTryCatchFinallyExpression_in_entryRuleXTryCatchFinallyExpression3852);\n ruleXTryCatchFinallyExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXTryCatchFinallyExpression3859); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "d9def883785d41bbb359ece500e6002f", "score": "0.6453614", "text": "public final void rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:18401:1: ( ( ruleXExpression ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:18402:1: ( ruleXExpression )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:18402:1: ( ruleXExpression )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:18403:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_137066);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); \n }\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 }", "title": "" }, { "docid": "8a2b9ce5dbb88a99e54893f98e96149c", "score": "0.6419788", "text": "public final void rule__XTryCatchFinallyExpression__Alternatives_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:2672:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) ) | ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) ) )\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==65) ) {\n alt25=1;\n }\n else if ( (LA25_0==64) ) {\n alt25=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 25, 0, input);\n\n throw nvae;\n }\n switch (alt25) {\n case 1 :\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:2673:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:2673:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:2674:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:2675:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:2675:2: rule__XTryCatchFinallyExpression__Group_3_0__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__0_in_rule__XTryCatchFinallyExpression__Alternatives_35764);\n rule__XTryCatchFinallyExpression__Group_3_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:2679:6: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:2679:6: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:2680:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:2681:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:2681:2: rule__XTryCatchFinallyExpression__Group_3_1__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__0_in_rule__XTryCatchFinallyExpression__Alternatives_35782);\n rule__XTryCatchFinallyExpression__Group_3_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); \n }\n\n }\n\n\n }\n break;\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 }", "title": "" }, { "docid": "1feab4108cc1b42d430c1327a6648155", "score": "0.64067245", "text": "public final void rule__XThrowExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14971:1: ( ( () ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14972:1: ( () )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14972:1: ( () )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14973:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14974:1: ()\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14976:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "70fdabd7e28d2dd13a85aceb3203610f", "score": "0.63168555", "text": "public final void rule__XTypeLiteral__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14778:1: ( ( () ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14779:1: ( () )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14779:1: ( () )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14780:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14781:1: ()\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14783:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4b3b6039b63a615cee41249fa9dcea51", "score": "0.6314369", "text": "public final void rule__XReturnExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15067:1: ( ( () ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15068:1: ( () )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15068:1: ( () )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15069:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15070:1: ()\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15072:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d637556be3ce32cb3439f77b88c86362", "score": "0.62849385", "text": "public final void rule__Expression0__Group_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3465:1: ( rule__Expression0__Group_3__1__Impl )\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3466:2: rule__Expression0__Group_3__1__Impl\n {\n pushFollow(FOLLOW_rule__Expression0__Group_3__1__Impl_in_rule__Expression0__Group_3__17001);\n rule__Expression0__Group_3__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "8fc3a2b401e19bd9b6955202e3e8b4c5", "score": "0.62545353", "text": "public final void rule__XReturnExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14202:1: ( ( () ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14203:1: ( () )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14203:1: ( () )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14204:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14205:1: ()\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14207:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e17433aedae269168d2655ea409f951c", "score": "0.6246766", "text": "public final void rule__PackageDeclaration__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3857:1: ( ( '}' ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3858:1: ( '}' )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3858:1: ( '}' )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3859:1: '}'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPackageDeclarationAccess().getRightCurlyBracketKeyword_4()); \n }\n match(input,53,FOLLOW_53_in_rule__PackageDeclaration__Group__4__Impl8413); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPackageDeclarationAccess().getRightCurlyBracketKeyword_4()); \n }\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 }", "title": "" }, { "docid": "f1293b47d95b632e771f49983c2738c4", "score": "0.62393916", "text": "public final void rule__Expression0__Group_4__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3588:1: ( rule__Expression0__Group_4__3__Impl )\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3589:2: rule__Expression0__Group_4__3__Impl\n {\n pushFollow(FOLLOW_rule__Expression0__Group_4__3__Impl_in_rule__Expression0__Group_4__37246);\n rule__Expression0__Group_4__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "ba4a3fc8b88f6a4993f07338f1edb2e7", "score": "0.62268233", "text": "public final void rule__XThrowExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14106:1: ( ( () ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14107:1: ( () )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14107:1: ( () )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14108:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14109:1: ()\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14111:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e5af4df771b7410da229c6d41ea7e83c", "score": "0.6167484", "text": "public final void rule__XIfExpression__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:10314:1: ( rule__XIfExpression__Group__3__Impl rule__XIfExpression__Group__4 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:10315:2: rule__XIfExpression__Group__3__Impl rule__XIfExpression__Group__4\n {\n pushFollow(FOLLOW_rule__XIfExpression__Group__3__Impl_in_rule__XIfExpression__Group__321083);\n rule__XIfExpression__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XIfExpression__Group__4_in_rule__XIfExpression__Group__321086);\n rule__XIfExpression__Group__4();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "5ba718f2402fc42d68727f25823fe2bd", "score": "0.61461955", "text": "public final void rule__XAnnotation__Group_3__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:4198:1: ( ( ( '(' ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:4199:1: ( ( '(' ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:4199:1: ( ( '(' ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:4200:1: ( '(' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:4201:1: ( '(' )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:4202:2: '('\n {\n match(input,56,FOLLOW_56_in_rule__XAnnotation__Group_3__0__Impl9002); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()); \n }\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 }", "title": "" }, { "docid": "12cf31b793ece17f0a4160e515db8e18", "score": "0.6144808", "text": "public final void rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:15584:1: ( ( ruleXExpression ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:15585:1: ( ruleXExpression )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:15585:1: ( ruleXExpression )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:15586:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_131331);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); \n }\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 }", "title": "" }, { "docid": "818ce1797206c90d642bb6f497fb3c92", "score": "0.61230135", "text": "public final void rule__XTypeLiteral__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14859:1: ( rule__XTypeLiteral__Group__3__Impl rule__XTypeLiteral__Group__4 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:14860:2: rule__XTypeLiteral__Group__3__Impl rule__XTypeLiteral__Group__4\n {\n pushFollow(FOLLOW_rule__XTypeLiteral__Group__3__Impl_in_rule__XTypeLiteral__Group__330016);\n rule__XTypeLiteral__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTypeLiteral__Group__4_in_rule__XTypeLiteral__Group__330019);\n rule__XTypeLiteral__Group__4();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "93071ac9216f30736765938dd2af1619", "score": "0.61193764", "text": "public final void synpred3_InternalGuiceModules_fragment() throws RecognitionException { \n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2269:1: ( ( ( rule__XAnnotation__Group_3_1_0__0 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2269:1: ( ( rule__XAnnotation__Group_3_1_0__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2269:1: ( ( rule__XAnnotation__Group_3_1_0__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2270:1: ( rule__XAnnotation__Group_3_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAnnotationAccess().getGroup_3_1_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2271:1: ( rule__XAnnotation__Group_3_1_0__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2271:2: rule__XAnnotation__Group_3_1_0__0\n {\n pushFollow(FOLLOW_rule__XAnnotation__Group_3_1_0__0_in_synpred3_InternalGuiceModules4781);\n rule__XAnnotation__Group_3_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n\n }\n\n\n }\n }", "title": "" }, { "docid": "2723dea6c5c158421cc5ad344bd5953e", "score": "0.6085472", "text": "public final void rule__Expression0__Group_3__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3434:1: ( rule__Expression0__Group_3__0__Impl rule__Expression0__Group_3__1 )\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3435:2: rule__Expression0__Group_3__0__Impl rule__Expression0__Group_3__1\n {\n pushFollow(FOLLOW_rule__Expression0__Group_3__0__Impl_in_rule__Expression0__Group_3__06940);\n rule__Expression0__Group_3__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__Expression0__Group_3__1_in_rule__Expression0__Group_3__06943);\n rule__Expression0__Group_3__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "7c41d1f89341a7326b0cd786d7e04c20", "score": "0.6083623", "text": "public final void rule__XTypeLiteral__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13913:1: ( ( () ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13914:1: ( () )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13914:1: ( () )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13915:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13916:1: ()\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13918:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "be3c4cc96ef324833d5f88cdf66757a4", "score": "0.6075225", "text": "public final void rule__ReturnStatement__Group__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:26968:1: ( rule__ReturnStatement__Group__3__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:26969:2: rule__ReturnStatement__Group__3__Impl\r\n {\r\n pushFollow(FOLLOW_rule__ReturnStatement__Group__3__Impl_in_rule__ReturnStatement__Group__355007);\r\n rule__ReturnStatement__Group__3__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3214302864ef54d3232bbfbd46416047", "score": "0.60545146", "text": "public final void rule__XSwitchExpression__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:10599:1: ( rule__XSwitchExpression__Group__3__Impl rule__XSwitchExpression__Group__4 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:10600:2: rule__XSwitchExpression__Group__3__Impl rule__XSwitchExpression__Group__4\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__3__Impl_in_rule__XSwitchExpression__Group__321645);\n rule__XSwitchExpression__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__4_in_rule__XSwitchExpression__Group__321648);\n rule__XSwitchExpression__Group__4();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "e7089f4761d8774b5da1e9ebada538e3", "score": "0.6054045", "text": "public final void rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:15599:1: ( ( ruleXExpression ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:15600:1: ( ruleXExpression )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:15600:1: ( ruleXExpression )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:15601:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_131362);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); \n }\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 }", "title": "" }, { "docid": "03fbc991bf1f25a14aa269d61d752719", "score": "0.60482633", "text": "public final void rule__Expression0__Group_3__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3446:1: ( ( () ) )\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3447:1: ( () )\n {\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3447:1: ( () )\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3448:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getExpression0Access().getNumberExpressionAction_3_0()); \n }\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3449:1: ()\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3451:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getExpression0Access().getNumberExpressionAction_3_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3d62912a6e9d481ffd4281bf4caefcd9", "score": "0.60463715", "text": "public final void rule__Entity__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3975:1: ( rule__Entity__Group__3__Impl rule__Entity__Group__4 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:3976:2: rule__Entity__Group__3__Impl rule__Entity__Group__4\n {\n pushFollow(FOLLOW_rule__Entity__Group__3__Impl_in_rule__Entity__Group__38637);\n rule__Entity__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__Entity__Group__4_in_rule__Entity__Group__38640);\n rule__Entity__Group__4();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "0bb6a309a960162e03b114afb09afed1", "score": "0.6045223", "text": "public final void rule__XRelationalExpression__Group_1_0_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6025:1: ( ( () ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6026:1: ( () )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6026:1: ( () )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6027:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6028:1: ()\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6030:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a11fdf5d28891ef70bc8eb44b3b15844", "score": "0.6040222", "text": "public final void rule__ReturnStatement__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:26889:1: ( ( () ) )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:26890:1: ( () )\r\n {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:26890:1: ( () )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:26891:1: ()\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getReturnStatementAccess().getReturnStatementAction_0()); \r\n }\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:26892:1: ()\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:26894:1: \r\n {\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getReturnStatementAccess().getReturnStatementAction_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e01a7119211e284ec7294e0af71dcf6d", "score": "0.6039133", "text": "public final void rule__XThrowExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15021:1: ( rule__XThrowExpression__Group__2__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:15022:2: rule__XThrowExpression__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__XThrowExpression__Group__2__Impl_in_rule__XThrowExpression__Group__230331);\n rule__XThrowExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "c656c5873a94563a4eca2e9cbfc594ed", "score": "0.601455", "text": "public final void rule__XTypeLiteral__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13994:1: ( rule__XTypeLiteral__Group__3__Impl rule__XTypeLiteral__Group__4 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13995:2: rule__XTypeLiteral__Group__3__Impl rule__XTypeLiteral__Group__4\n {\n pushFollow(FOLLOW_rule__XTypeLiteral__Group__3__Impl_in_rule__XTypeLiteral__Group__328247);\n rule__XTypeLiteral__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTypeLiteral__Group__4_in_rule__XTypeLiteral__Group__328250);\n rule__XTypeLiteral__Group__4();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "e6671b5ffce44b3beb23958b39acd54b", "score": "0.6006489", "text": "public final void rule__XCatchClause__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14710:1: ( ( ')' ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14711:1: ( ')' )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14711:1: ( ')' )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14712:1: ')'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); \n }\n match(input,57,FOLLOW_57_in_rule__XCatchClause__Group__3__Impl29664); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); \n }\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 }", "title": "" }, { "docid": "001c1f8ca7102dcc6295a53cce3a7fd2", "score": "0.6002746", "text": "public final void rule__XOrExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:5208:1: ( rule__XOrExpression__Group__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:5209:2: rule__XOrExpression__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XOrExpression__Group__1__Impl_in_rule__XOrExpression__Group__111054);\n rule__XOrExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" } ]
3a64984e7f65748134d5e353ca067d4a
Creates a new instance of SourceInterestMapConverter
[ { "docid": "072a97625ff031405bb70c9e9e2bce43", "score": "0.8435155", "text": "public SourceInterestMapConverter() {\n\t\tentity = new SourceInterestMap();\n\t}", "title": "" } ]
[ { "docid": "47bbb387c478326734497b6232695bfc", "score": "0.5866561", "text": "public LocationsConverter() {\n }", "title": "" }, { "docid": "3e4ccf69f70b9ffc5399f23ce0b980bc", "score": "0.5733358", "text": "public SourceInterestMapConverter(SourceInterestMap entity, URI uri, int expandLevel) {\n\t\tthis(entity, uri, expandLevel, false);\n\t}", "title": "" }, { "docid": "95decd74b6f4c359414aa14d932f5e39", "score": "0.5541939", "text": "public SourceInterestMapConverter(SourceInterestMap entity, URI uri, int expandLevel,\n\t\t\tboolean isUriExtendable) {\n\t\tthis.entity = entity;\n\t\tthis.uri = (isUriExtendable) ? UriBuilder.fromUri(uri).path(entity.getId() + \"/\").build()\n\t\t\t\t: uri;\n\t\tthis.expandLevel = expandLevel;\n\t\tgetInterestAreaId();\n\t\tgetSourceId();\n\t}", "title": "" }, { "docid": "f8f20c68dc75b95bb4667e6a9dfe5c0f", "score": "0.54385215", "text": "Source createSource();", "title": "" }, { "docid": "d645c34e9e0292c01637365f915d512e", "score": "0.54006296", "text": "Map<SourceAndConverter, Map<String, Object>> getSacToMetadata();", "title": "" }, { "docid": "a16a8e670315bc9006b4e4c71b4945d1", "score": "0.53828573", "text": "@Override\n public java.util.Map convert(Map source) {\n return this.convert(source, false);\n }", "title": "" }, { "docid": "28c7f7e47a5e156637a659d0c6f12a40", "score": "0.5290984", "text": "public AnnotationMap() {}", "title": "" }, { "docid": "795a1a7341d44dfb97a8f8e2e4d28b4d", "score": "0.52856725", "text": "void register(SourceAndConverter src);", "title": "" }, { "docid": "f3c017466045e12429b023246556a8f4", "score": "0.52817774", "text": "List<SourceAndConverter> getSourceAndConvertersFromSource( Source source );", "title": "" }, { "docid": "7953a1d982d92bffaa0b0c6db3799e2a", "score": "0.52138424", "text": "public SearchableConverter() {\n }", "title": "" }, { "docid": "57a989551f5ed7b396ea2c6b71127187", "score": "0.5194821", "text": "@Override\n protected void updateSourceInfoMap() {\n }", "title": "" }, { "docid": "35be41a5e0b85847045616de170555df", "score": "0.51594335", "text": "MappingSourceType getMappingSource();", "title": "" }, { "docid": "98980989eb3d8a55a5d7667455e0c699", "score": "0.5141129", "text": "public Source( ) {\n \t\n }", "title": "" }, { "docid": "028d556a4286ceab23afba8dd26d892f", "score": "0.51125246", "text": "public Source() {}", "title": "" }, { "docid": "4273dbb3a3af7f62583401882fc819b9", "score": "0.50547", "text": "public Converter() \n\t{\t\t\t\n\t\n\t}", "title": "" }, { "docid": "66c34b6097c426e1a7f0e6b5dd1f9dfe", "score": "0.4943822", "text": "@Override\n\tpublic Mapper<TipoIndirizzo, TipoIndirizzoDto> createTipoIndirizzoMapper() {\n\t\treturn new TipoIndirizzoMapper();\n\t}", "title": "" }, { "docid": "ef83fe3c48d2f3952d50463250d786a8", "score": "0.49282768", "text": "@Override\n public java.util.Map convert(Map source, boolean logEntry) {\n List<Language> languages = null;\n if (source != null) {\n languages = this.languagesService.getLanguages(source.getOwner());\n }\n final String url = Settings.getInstance().getMapsWebPath(source.getOwner().getCode());\n java.util.Map map = new LinkedHashMap();\n map.put(\"id\", source.getId());\n map.put(\"description\", source.getDescription());\n map.put(\"color\", source.getColor());\n map.put(\"opacity\", source.getOpacity());\n map.put(\"is_external\", source.getIsExternal());\n if (source.getIsExternal()) {\n map.put(\"url\", source.getPath());\n } else {\n // Get path of the maps dir\n String path = Settings.getInstance().getMapsPath(source.getOwner().getCode());\n List urls = new ArrayList();\n for (Language lang : languages) {\n java.util.Map info = new LinkedHashMap();\n info.put(\"lang_id\", lang.getId());\n if (this.fileService.exists(path + lang.getCode() + \"/\" + source.getPath())) {\n info.put(\"url\", url + lang.getCode() + \"/\" + source.getPath());\n } else {\n info.put(\"url\", \"\");\n }\n urls.add(info);\n }\n map.put(\"urls\", urls);\n }\n if (logEntry) {\n map.put(\"owner_id\", source.getOwner().getId());\n }\n map.put(\"created_at\", DateTimeUtil.dateToString(source.getCreated()));\n map.put(\"create_operator\", source.getCreator());\n map.put(\"updated_at\", (source.getUpdated() == null ? \"\" : DateTimeUtil.dateToString(source.getUpdated())));\n map.put(\"update_operator\", (source.getUpdater() == null ? \"\" : source.getUpdater()));\n return map;\n }", "title": "" }, { "docid": "f2cc4d814f10b99d15034b0e97d51f3f", "score": "0.49054578", "text": "@Override\n\tpublic Mapper<TipoConver, TipoConverDto> createTipoConverMapper() {\n\t\treturn new TipoConverMapper();\n\t}", "title": "" }, { "docid": "3d85a1a6df24a21f4718dcb922db27f3", "score": "0.48736638", "text": "public SearchHit convert(SearchHit source);", "title": "" }, { "docid": "97db8249036def339133bf1ffff59a27", "score": "0.4863266", "text": "private Converter() {\n }", "title": "" }, { "docid": "c4a59c89ede0eb95f196ff8ddfb84f2b", "score": "0.48467046", "text": "public Convertor() {\r\n }", "title": "" }, { "docid": "7250f1f4670f04c90df6822002af3727", "score": "0.4826087", "text": "public Satellite() { super(); }", "title": "" }, { "docid": "bb1f6c5f6edd9195a6773944a54621a8", "score": "0.48187009", "text": "@Override\n\tpublic Mapper<StatoCivile, StatoCivileDto> createStatoCivileMapper() {\n\t\treturn new StatoCivileMapper();\n\t}", "title": "" }, { "docid": "508f0e8c97e8d617d46115af1c817c34", "score": "0.48144048", "text": "protected InputMap<N> createInputMap() {\n return new InputMap<>(node);\n }", "title": "" }, { "docid": "284bceaca9f5d3e9c9c328f2b30ebd8d", "score": "0.4807829", "text": "@Override\n\tprotected void init(Map<String, String> sourceObject) {\n\n\t}", "title": "" }, { "docid": "8b5b4c8147d84d4725a3f2d6af664a48", "score": "0.47994956", "text": "public LogisticsMap() {}", "title": "" }, { "docid": "5a071b1ac363faae5021b482c27d9218", "score": "0.47847092", "text": "public MapDetails(){}", "title": "" }, { "docid": "c543fff9a6a89172cd52c40709063593", "score": "0.47587472", "text": "public static MapTo getMapperFrom(Mappable source) {\n return new Mapper(source);\n }", "title": "" }, { "docid": "3d68993b4e57766825c23d802f466fd6", "score": "0.47430003", "text": "public RoutPointMapping() {\n\t\tthis(\"rout_point_mapping\", null);\n\t}", "title": "" }, { "docid": "7f8b716560dfbab48ce7d8222dda6ca2", "score": "0.47395664", "text": "public GeocodedWaypoint() {\n }", "title": "" }, { "docid": "4dd7bfd8144195c7ad8fdd4377f25617", "score": "0.47382963", "text": "List<SourceAndConverter> getSourceAndConverterFromSpimdata(AbstractSpimData asd);", "title": "" }, { "docid": "216a8f812e157874eca4a1d468279717", "score": "0.47376245", "text": "public <O> ContextawareStepMap<O> using(TypeConverter<I, O> typeConverter) {\n return new ContextawareStepMap<>(new ConverterInput<>(input, typeConverter));\n }", "title": "" }, { "docid": "c8859e7c3814a5c8e232e794dc677708", "score": "0.47357967", "text": "void addInboundConverter(InboundConverter converter);", "title": "" }, { "docid": "028b06cf4711bb8b8872e2b206720f8d", "score": "0.47262788", "text": "AttributeSourceGenerator() {\n }", "title": "" }, { "docid": "80787017502a5c55cb05c0bf64a877fd", "score": "0.4700083", "text": "public SourceEntry(Source observedSource) {\n\t\tsuper(observedSource);\n\t}", "title": "" }, { "docid": "14f709697fd487a60e67f73a44cb2c12", "score": "0.46955192", "text": "public NailMapper() {}", "title": "" }, { "docid": "22fb9a4b0c4c1926d8e6230bc94cc5c6", "score": "0.4683307", "text": "protected Map scan(Resource[] fromResources, File toDir) {\n return buildMap(fromResources, toDir, getMapper());\n }", "title": "" }, { "docid": "b035fd7f80b8d97f6ae429593a52241d", "score": "0.46812367", "text": "public static AlphabetConverter createConverterFromMap(final Map<Integer, String> originalToEncoded) {\n writelineStatic(\"/home/ubuntu/results/coverage/AlphabetConverter/AlphabetConverter_10_10.coverage\", \"a9bc0cb5-5e03-413c-a312-810fea8d300b\");\n final Map<Integer, String> unmodifiableOriginalToEncoded = Collections.unmodifiableMap(originalToEncoded);\n writelineStatic(\"/home/ubuntu/results/coverage/AlphabetConverter/AlphabetConverter_10_10.coverage\", \"7546f9a4-f571-4c98-848e-f21b73ad0735\");\n final Map<String, String> encodedToOriginal = new LinkedHashMap<String, String>();\n writelineStatic(\"/home/ubuntu/results/coverage/AlphabetConverter/AlphabetConverter_10_10.coverage\", \"19c5a1d0-d210-4585-a10a-b5eb844137f2\");\n final Map<Integer, String> doNotEncodeMap = new HashMap<Integer, String>();\n writelineStatic(\"/home/ubuntu/results/coverage/AlphabetConverter/AlphabetConverter_10_10.coverage\", \"5b5b919f-67d7-4c12-a5d8-58311551e2e1\");\n int encodedLetterLength = 1;\n writelineStatic(\"/home/ubuntu/results/coverage/AlphabetConverter/AlphabetConverter_10_10.coverage\", \"e5f6def9-d5f7-4f4e-98e3-7407a702b905\");\n for (final Entry<Integer, String> e : unmodifiableOriginalToEncoded.entrySet()) {\n writelineStatic(\"/home/ubuntu/results/coverage/AlphabetConverter/AlphabetConverter_10_10.coverage\", \"fb615554-10a4-46b2-bbd4-76a96db02327\");\n final String originalAsString = codePointToString(e.getKey());\n writelineStatic(\"/home/ubuntu/results/coverage/AlphabetConverter/AlphabetConverter_10_10.coverage\", \"84ede772-a5a1-46dd-98a9-1e1e6ba72741\");\n encodedToOriginal.put(e.getValue(), originalAsString);\n writelineStatic(\"/home/ubuntu/results/coverage/AlphabetConverter/AlphabetConverter_10_10.coverage\", \"60aad3c6-a977-44b5-a64d-c96b607e7043\");\n if (e.getValue().equals(originalAsString)) {\n writelineStatic(\"/home/ubuntu/results/coverage/AlphabetConverter/AlphabetConverter_10_10.coverage\", \"56ef7780-7271-4deb-81aa-2e6a6f9db21f\");\n doNotEncodeMap.put(e.getKey(), e.getValue());\n }\n writelineStatic(\"/home/ubuntu/results/coverage/AlphabetConverter/AlphabetConverter_10_10.coverage\", \"881700a7-33d2-441b-8847-c415244a8c51\");\n if (e.getValue().length() > encodedLetterLength) {\n writelineStatic(\"/home/ubuntu/results/coverage/AlphabetConverter/AlphabetConverter_10_10.coverage\", \"ee5ac65e-37cc-4879-88dc-908a53ce82d6\");\n encodedLetterLength = e.getValue().length();\n }\n }\n writelineStatic(\"/home/ubuntu/results/coverage/AlphabetConverter/AlphabetConverter_10_10.coverage\", \"5693e61d-8e4c-4c1c-9ec2-e60207bf8952\");\n return new AlphabetConverter(unmodifiableOriginalToEncoded, encodedToOriginal, encodedLetterLength);\n }", "title": "" }, { "docid": "b14efd0fb00917e3d88854de44f8b1c8", "score": "0.46751916", "text": "public Map()\n {\n createMap();\n }", "title": "" }, { "docid": "c396e3e9391a05a0badf79c02192dfa0", "score": "0.46707585", "text": "@Override\n\tpublic Mapper<TipoTitoloStudio, TipoTitoloStudioDto> createTipoTitoloStudioMapper() {\n\t\treturn new TipoTitoloStudioMapper();\n\t}", "title": "" }, { "docid": "64101fc29faeb9735d4c8dab38a7dfc5", "score": "0.4640927", "text": "public void initSource() {\n progressDialog = new ProgressDialog(context);\n progressDialog.setMessage(\"Definiendo la ruta ...\");\n\n GeoJsonSource routeGeoJsonSource = new GeoJsonSource(ROUTE_SOURCE_ID,\n FeatureCollection.fromFeatures(new Feature[] {}));\n\n if(map.getSource(ROUTE_SOURCE_ID) == null){\n map.addSource(routeGeoJsonSource);\n List<Feature> features = new ArrayList<>();\n\n for (Marker marker : map.getMarkers()) {\n features.add( Feature.fromGeometry(Point.fromLngLat(marker.getPosition().getLongitude(),\n marker.getPosition().getLatitude())));\n }\n FeatureCollection iconFeatureCollection = FeatureCollection.fromFeatures(features);\n\n GeoJsonSource iconGeoJsonSource = new GeoJsonSource(ICON_SOURCE_ID, iconFeatureCollection);\n map.addSource(iconGeoJsonSource);\n initLayers();\n }\n }", "title": "" }, { "docid": "7957799e2eec4c5b1f6031fcc90f48cc", "score": "0.46350947", "text": "RailLineMap createRailLineMap();", "title": "" }, { "docid": "24bc502d7922a20be0933a9cb0089c95", "score": "0.4632992", "text": "public interface ISourceAndConverterService\n{\n\n /**\n * Test if a Source is already registered in the Service\n * @param src\n * @return\n */\n boolean isRegistered(SourceAndConverter src);\n\n /**\n * Register a Bdv Source in this Service.\n * Called in the BdvSourcePostProcessor\n * @param src\n */\n void register(SourceAndConverter src);\n\n /**\n * Registers all sources contained with a SpimData Object in this Service.\n * Called in the BdvSourcePostProcessor\n */\n void register(AbstractSpimData asd);\n\n /**\n * @return list of all registered sources\n */\n List<SourceAndConverter> getSourceAndConverters();\n\n /**\n * Return sources assigned to a SpimDataObject\n */\n List<SourceAndConverter> getSourceAndConverterFromSpimdata(AbstractSpimData asd);\n\n /**\n * Removes a Bdv Source in this Service.\n * Called in the BdvSourcePostProcessor\n * @param sac\n */\n void remove(SourceAndConverter... sac);\n\n\n void linkToSpimData(SourceAndConverter sac, AbstractSpimData asd, int idSetup);\n\n /**\n * TODO: maybe remove this?\n * Gets lists of associated objects and data attached to a Bdv Source\n * @return\n */\n Map<SourceAndConverter, Map<String, Object>> getSacToMetadata();\n\n /**\n * Adds metadata for a sac\n * @return\n */\n void setMetadata(SourceAndConverter sac, String key, Object data);\n\n /**\n * Adds metadata for a sac\n *\n * @return\n */\n Object getMetadata(SourceAndConverter sac, String key);\n\n /**\n * Finds the list of corresponding registered sac for a source.\n */\n List<SourceAndConverter> getSourceAndConvertersFromSource( Source source );\n\n /**\n * Register an action ( a consumer of sourceandconverter array)\n * @param actionName\n * @param action\n * TODO : link a description ?\n */\n void registerAction(String actionName, Consumer<SourceAndConverter[]> action);\n\n /**\n * Removes an action from the registration\n * @param actionName\n */\n void removeAction(String actionName);\n\n /**\n *\n * @return a list of of action name / keys / identifiers\n */\n Set<String> getActionsKeys();\n\n /**\n * Gets an action from its identifier\n * @param actionName\n * @return\n */\n Consumer<SourceAndConverter[]> getAction(String actionName);\n\n}", "title": "" }, { "docid": "db80b900abec11cc544152b00a48c401", "score": "0.46275198", "text": "public PatternToSheetMapping(Sheet s) {\r\n\t\tsheet = s;\r\n\t\tfinal List<Region> regions = s.getRegions();\r\n\t\tinitializeMap(regions);\r\n\t\tloadConfigurationFromAutomaticallyDiscoveredXMLFiles();\r\n\t}", "title": "" }, { "docid": "1902dafe85ce35a6774c3d540d942300", "score": "0.46215156", "text": "public CoordinateTranslator() {\r\n\r\n\t}", "title": "" }, { "docid": "fd8512790bf4d14eaa387b62c8c416b3", "score": "0.46132508", "text": "public SourceFactory(BuilderConfiguration config, FieldInfoFactory infoFactory) {\n super(config, infoFactory);\n \n // set the config into the info factory (CASTOR-1346)\n infoFactory.setBoundProperties(config.boundPropertiesEnabled());\n \n this.memberFactory = new MemberFactory(config, infoFactory);\n _typeConversion = new TypeConversion(_config);\n }", "title": "" }, { "docid": "2849e0a7a8ce7f39fc2f939168b12ee8", "score": "0.46078202", "text": "PortMapsType1 createPortMapsType1();", "title": "" }, { "docid": "1b82638b01c99c19b697b3bc42d22e8e", "score": "0.46031836", "text": "@Override\n\tpublic Mapper<TipoSelezione, TipoSelezioneDto> createTipoSelezioneMapper() {\n\t\treturn new TipoSelezioneMapper();\n\t}", "title": "" }, { "docid": "6ae5c0300c3cca5228aad876d9ea76df", "score": "0.4589656", "text": "public static IConverter New() {return new ConvertRGBtoHSI();}", "title": "" }, { "docid": "aac594ff6cf6905dcb1af69afb41de46", "score": "0.458503", "text": "public ValueConverter() {}", "title": "" }, { "docid": "33a2af6aadf893fffcd98b6c7183e73c", "score": "0.4574005", "text": "public Primarysource() {\n }", "title": "" }, { "docid": "be439634d6b7a648ce73a31f334dc4f4", "score": "0.45722657", "text": "@Override\n\tpublic Mapper<CausaleEstinzione, CausaleEstinzioneDto> createCausaleEstinzioneMapper() {\n\t\treturn new CausaleEstinzioneMapper();\n\t}", "title": "" }, { "docid": "6e6b3071886a17e416c0933a8b9715ad", "score": "0.45627546", "text": "@Test\n public void testToTarget() {\n\n Source s = new Source();\n s.setMyIntegers( Arrays.asList( 5, 3, 7 ) );\n s.setMyStrings( Arrays.asList( \"five\", \"three\", \"seven\" ) );\n\n Target t = SourceTargetMapper.MAPPER.toTarget( s );\n assertEquals( new Integer( 5 ), t.getMyInteger() );\n assertEquals( \"seven\", t.getMyString() );\n }", "title": "" }, { "docid": "f355e1f534fa5a385819757c21d6a505", "score": "0.4558214", "text": "public static DataConverter create(String mappingXmlURI, InputStream vcdInputStream) throws SAXException, ParserConfigurationException, IOException {\n\t\t\n\t\tVDMMapping vdmMapping = new VDMMapping();\n\t\tVesselDataModel vdm = VDMLoader.load(vcdInputStream);\n\t\t\n\t\tURL url = DataConverterFactory.class.getResource( mappingXmlURI );\n\t\t\n\t\tvdmMapping.init( url.getFile(), vdm);\n\t\t\n\t\tDataConverter dataConverter = new JSONConverter(vdmMapping);\n\t\tdataConverter.updateVDM(vdm);\n\t\t\n\t\treturn dataConverter;\n\t}", "title": "" }, { "docid": "126aa1ef381004b0907e348d33c2e00d", "score": "0.4551316", "text": "protected Em createMapping() throws XMLException {\n return (Em) new XTPMapping();\n }", "title": "" }, { "docid": "fd00becc4538ccc6ab5e4116f31a2dd1", "score": "0.45468783", "text": "public LambdaConverter(\r\n Class<I> inClass, Class<O> outClass,\r\n BiFunction<I, Map<String, Object>, O> convertlet) {\r\n this.inClass = inClass;\r\n this.outClass = outClass;\r\n this.converter = convertlet;\r\n }", "title": "" }, { "docid": "5055cf5f11de142db2110b93518b529a", "score": "0.45458686", "text": "@Override\n\tpublic Mapper<StatoPremio, StatoPremioDto> createStatoPremioMapper() {\n\t\treturn new StatoPremioMapper();\n\t}", "title": "" }, { "docid": "8f28b2f61943aa07a7c63dc36d990379", "score": "0.4527368", "text": "public GraphMap createGraphMap(Template template);", "title": "" }, { "docid": "b5a9a7e97e4161d9d6f7b45f01a3a379", "score": "0.45236632", "text": "public PrefixMapStd() {}", "title": "" }, { "docid": "863043493176a7b3534acc6eadefc772", "score": "0.45117328", "text": "@Override\n\tpublic SourceIF newSource(String filename) {\n\t\t\n\t\treturn new SourceStub(filename);\n\t}", "title": "" }, { "docid": "0bd4a745dbce08b266ab186e2df95c56", "score": "0.4506813", "text": "@Override\n\tpublic Mapper<TipoSpecieGiuridica, TipoSpecieGiuridicaDto> createTipoSpecieGiuridicaMapper() {\n\t\treturn new TipoSpecieGiuridicaMapper();\n\t}", "title": "" }, { "docid": "e3100dab7dbf75e18649ed511a1e1e33", "score": "0.4505018", "text": "PortMapType1 createPortMapType1();", "title": "" }, { "docid": "3a2ac32d34f7222068176abd738b49de", "score": "0.4502453", "text": "@Override\n\tpublic Mapper<Sae, SaeDto> createSaeMapper() {\n\t\treturn new SaeMapper();\n\t}", "title": "" }, { "docid": "c1831ba81159d6ed837827cef61149ca", "score": "0.45011255", "text": "@Override\n public Converter createConverter(String className)\n {\n Converter converter = null;\n try\n {\n converter = (Converter) _mapLookUp(className, _converterIdMap);\n return converter;\n }\n catch (Exception e)\n {\n _LOG.log(e.getMessage());\n throw new FacesException(e.getMessage());\n }\n \n }", "title": "" }, { "docid": "ef91d9ab056d74880095ad63a3a7cc02", "score": "0.4500696", "text": "String createSource();", "title": "" }, { "docid": "fba408437173b815797adaa11cc45b95", "score": "0.4500151", "text": "default R mapExtended(T source) {\n return this.map(source);\n }", "title": "" }, { "docid": "4bc0cf34dc42bbbec2356bdd3f80c186", "score": "0.44931638", "text": "@Override\n public String toSource() {\n return initialSource;\n }", "title": "" }, { "docid": "7ee70afe6e9500dd60c0abbfc03bf68e", "score": "0.44928676", "text": "@Override\n\tpublic Mapper<Sesso, SessoDto> createSessoMapper() {\n\t\treturn new SessoMapper();\n\t}", "title": "" }, { "docid": "1214889df506d495509230133f07aad5", "score": "0.44904736", "text": "public MoodMap() {\n\n }", "title": "" }, { "docid": "da5b3ca4eff90e1141af31189dbca741", "score": "0.44852835", "text": "private void initSource(@NonNull Style loadedMapStyle) {\n try {\n loadedMapStyle.addSource(new GeoJsonSource(\"source-id\", new URI(\"asset://brussels_station_exits.geojson\")));\n } catch (URISyntaxException exception) {\n Timber.d(exception);\n }\n loadedMapStyle.addSource(new GeoJsonSource(\"background-geojson-source-id\"));\n }", "title": "" }, { "docid": "b6a35bc6b7d26db9eb3571bb627baef0", "score": "0.4472614", "text": "@Before\n public void setUp() { islandMap = new IslandMap(); }", "title": "" }, { "docid": "ab7425878808fce5e6e26dbb5b01fbe4", "score": "0.44589245", "text": "public interface MarkerProducers {\n /**\n * Returns a Marker object if this implementation wants to create one for the\n * given input data, or <code>null</code> otherwise.\n *\n * @param wp waypoint data\n * @param relativePath An path to use for constructing relative URLs or\n * <code>null</code> for no relative URLs\n * @return A Marker object, or <code>null</code>.\n */\n public Marker createMarker(WayPoint wp, File relativePath, MarkerLayer parentLayer, double time, double offset);\n}", "title": "" }, { "docid": "6ae9d7b14ed5972948bd1e3c23fa51d8", "score": "0.44546443", "text": "public ComicArtSource() {\n super(SOURCE_NAME);\n }", "title": "" }, { "docid": "1bc72f0e07a0f5605e296cf7e8cfbe9d", "score": "0.4452235", "text": "private ConfigSourceFactory() {\n }", "title": "" }, { "docid": "524600e643b3041f75d7929b896947d5", "score": "0.44439963", "text": "public MapPair() {}", "title": "" }, { "docid": "0b4c93d17c22df2065f27edafec5e270", "score": "0.44412944", "text": "@Override\n\tpublic Mapper<StatoPremioCopertura, StatoPremioCoperturaDto> createStatoPremioCoperturaMapper() {\n\t\treturn new StatoPremioCoperturaMapper();\n\t}", "title": "" }, { "docid": "f6dd574fc3b493284e590492a96bc519", "score": "0.44407207", "text": "public OLBingSource(){\n super();\n }", "title": "" }, { "docid": "a5323d271433dc43372d1757e2b2a857", "score": "0.44354737", "text": "private AnnotationsTranslator() {}", "title": "" }, { "docid": "c511b50acf013be78bfd17ddfa27a0ba", "score": "0.4430135", "text": "PortMapsType createPortMapsType();", "title": "" }, { "docid": "aceeb9407d466375d57edc76befb5d2f", "score": "0.44298333", "text": "public ToFigurePack(){}", "title": "" }, { "docid": "aa215c2b6341487a3416b14e7b63fc5e", "score": "0.44289932", "text": "public Conversion() {\n \n }", "title": "" }, { "docid": "9e413076ec99984e2b57299eaa373137", "score": "0.44248578", "text": "RemapStatesType createRemapStatesType();", "title": "" }, { "docid": "489d06db154f57d3e544a7747740cbdc", "score": "0.4416492", "text": "public FeatureRecommendIndiMapRecord() {\n super(FeatureRecommendIndiMap.FEATURE_RECOMMEND_INDI_MAP);\n }", "title": "" }, { "docid": "9f62b47682a5cc9f3c263efa4dfc1983", "score": "0.44117257", "text": "@Override\n\tpublic Mapper<TipoEnteRilascio, TipoEnteRilascioDto> createTipoEnteRilascioMapper() {\n\t\treturn new TipoEnteRilascioMapper();\n\t}", "title": "" }, { "docid": "d07e87dbe25bbfd385941b2084db8dff", "score": "0.44106805", "text": "private void CopyNoiseMap (NoiseMap source) throws NotImplementedException {\n// // Resize the noise map buffer, then copy the slabs from the source noise\n// // map buffer to this noise map buffer.\n// SetSize(source.GetWidth(), source.GetHeight());\n// for (int y = 0; y < source.GetHeight(); y++) {\n// const float*pSource = source.GetConstSlabPtr(0, y);\n// float*pDest = GetSlabPtr(0, y);\n// memcpy(pDest, pSource, (size_t) source.GetWidth() * sizeof(float));\n// }\n//\n// // Copy the border value as well.\n// m_borderValue = source.m_borderValue;\n throw new NotImplementedException();\n }", "title": "" }, { "docid": "2e6cb77bebc9d3424e0fcc297163c934", "score": "0.4408445", "text": "public SourceBuildStrategy() {\n }", "title": "" }, { "docid": "3e480d45589eb1aff6e97653ac53c88e", "score": "0.44017363", "text": "public CommonMap() {\n }", "title": "" }, { "docid": "d13b0583ee2a4ba3d321e08d1caaeac0", "score": "0.43939793", "text": "MappingModel getFeatureMapping();", "title": "" }, { "docid": "3eada0e7276d1311126c5363ce2113bd", "score": "0.43879455", "text": "@XmlTransient\n\tpublic SourceInterestMap getEntity() {\n\t\tif (entity.getId() == null) {\n\t\t\tSourceInterestMapConverter converter = UriResolver.getInstance().resolve(\n\t\t\t\t\tSourceInterestMapConverter.class, uri);\n\t\t\tif (converter != null) {\n\t\t\t\tentity = converter.getEntity();\n\t\t\t}\n\t\t}\n\t\treturn entity;\n\t}", "title": "" }, { "docid": "2f0cc61942cde9d244a545e0652bf307", "score": "0.43836996", "text": "private ActiveIssuesMap() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "28e1c3068b4a35b328b86644ea6fe8b9", "score": "0.43814912", "text": "public abstract Vector<IfMapSource> getAllAvailableMapSources();", "title": "" }, { "docid": "604eebcdac8a63f75fcca38da3d88dd1", "score": "0.43792596", "text": "public OclMappingFactoryImpl()\n {\n super();\n }", "title": "" }, { "docid": "5e210c8a6fc2549fbd161cf88e47dcc7", "score": "0.4374082", "text": "public void setSource(InformationSource config);", "title": "" }, { "docid": "31cd5ca63a8f53ec07a004f9159a5d5e", "score": "0.43732578", "text": "private List<Annotation> createZipkinAnnotations(Span span, Endpoint endpoint) {\n\t\tList<Annotation> annotationList = new ArrayList<>();\n\t\tfor (TimelineAnnotation ta : span.getTimelineAnnotations()) {\n\t\t\tAnnotation zipkinAnnotation = createZipkinAnnotation(ta.getMsg(),\n\t\t\t\t\tta.getTime(), endpoint, true);\n\t\t\tannotationList.add(zipkinAnnotation);\n\t\t}\n\t\treturn annotationList;\n\t}", "title": "" }, { "docid": "7c7db57050c66e783eb9129558b7d8b3", "score": "0.43706757", "text": "public interface Converter {\n\n\tpublic boolean canConvertOpenUrl(String format);\n\tpublic boolean canConvertCitation(String format);\n\tpublic ContextObjectEntity convert(Citation citation);\n\tpublic Citation convert(ContextObjectEntity entity);\n\n}", "title": "" }, { "docid": "505bc914ed6f4faa6b4668136b2bb16c", "score": "0.43673128", "text": "public Map(ImageExample imageExample) {\n \tc = new Coordinate(0, 0);\n \tI = imageExample;\n initMap();\n setPreferredSize(new Dimension(1221, 858));\n }", "title": "" }, { "docid": "fa44513bc186d63cd5ce92493b915bfd", "score": "0.4361957", "text": "void initializeMap();", "title": "" }, { "docid": "572eb1740bce27d619be6b9200affd94", "score": "0.43575245", "text": "protected abstract GridCoverageResource createSource() throws DataStoreException;", "title": "" }, { "docid": "d3d218b5369496a3a94c1c8344576c89", "score": "0.43572414", "text": "private Transcoder(Source[] source, Sink[] sink, List<Mapping> videoMappings, List<Mapping> audioMappings,\n List<Filter> extraFilters, int seekFrames, int maxFrames) {\n this.extraFilters = extraFilters;\n this.videoMappings = videoMappings;\n this.audioMappings = audioMappings;\n\n this.seekFrames = seekFrames;\n this.maxFrames = maxFrames;\n\n this.sources = source;\n this.sinks = sink;\n }", "title": "" }, { "docid": "b0104f676c2f0559e8e6ae6d9ebcb386", "score": "0.4356706", "text": "public AttributeMap() {\r\n\t}", "title": "" } ]
e4a1c6f0170002a9d24b9eb2c40a97ea
Devuelve un string con todos los campos del filtro activos separados por comas para su representacion
[ { "docid": "9ac32549581aaad3c2a3a11e337e4bec", "score": "0.71865505", "text": "public String generateStringCamposFiltro(){\r\n\t\tString listCamposFiltro = super.generateStringCamposFiltro();\r\n\t\tif(getRegion() !=null && (getRegion().getId() != null || getRegion().getNombre() != null)){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Region\").concat(\", \");\r\n\t\t}\r\n\t\tif(getEmplazamiento() != null && (getEmplazamiento().getId() !=null || getEmplazamiento().getNombre() != null)){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Emplazamiento\").concat(\", \");\r\n\t\t}\r\n\t\tif(getLocalizacion() != null && (getLocalizacion().getId() !=null || getLocalizacion().getNombre() != null)){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Localizacion\").concat(\", \");\r\n\t\t}\r\n\t\treturn finalizarGenerateStringCamposFiltro(listCamposFiltro);\r\n\t}", "title": "" } ]
[ { "docid": "f81ecebc1b9b1cebdec3709d70ba9ec8", "score": "0.59645367", "text": "public String getSqlParameters() {\n String result = \"(\";\n for (String status : this.filter) {\n // append comma if not the first element\n if (this.filter.indexOf(status) > 0) {\n result += \", \";\n }\n\n result += \"'\";\n result += status;\n result += \"'\";\n }\n result += \")\";\n\n return result;\n }", "title": "" }, { "docid": "6f768fb89cd2c62da5548875eb31cc06", "score": "0.5836627", "text": "@Override\n protected String obtenerCondiciones(Registro filtro) {\n StringBuilder query = new StringBuilder();\n if (filtro != null) {\n boolean isWhere = true;\n if (filtro.getId() != null) {\n query.append(isWhere ? \" WHERE\" : \" AND\")\n .append(\" ID = \").append(filtro.getId());\n isWhere = false;\n }\n if (filtro.getNombre() != null) {\n query.append(isWhere ? \" WHERE\" : \" AND\")\n .append(\" NOMBRE = '\").append(filtro.getNombre()).append(\"'\");\n isWhere = false;\n }\n if (filtro.getApellido() != null) {\n query.append(isWhere ? \" WHERE\" : \" AND\")\n .append(\" APELLIDO = '\").append(filtro.getApellido()).append(\"'\");\n isWhere = false;\n }\n if (filtro.getAlias() != null) {\n query.append(isWhere ? \" WHERE\" : \" AND\")\n .append(\" ALIAS = '\").append(filtro.getAlias()).append(\"'\");\n isWhere = false;\n }\n// if (filtro.getFechaNacimiento() != null) {\n// query.append(isWhere ? \" WHERE\" : \" AND\")\n// .append(\" FECHA_NACIMIENTO = '\").append(filtro.getFechaNacimiento()).append(\"'\");\n// isWhere = false;\n// }\n if (filtro.getCargo() != null) {\n query.append(isWhere ? \" WHERE\" : \" AND\")\n .append(\" CARGO = '\").append(filtro.getCargo()).append(\"'\");\n isWhere = false;\n }\n if (filtro.getCarrera() != null) {\n query.append(isWhere ? \" WHERE\" : \" AND\")\n .append(\" CARRERA = '\").append(filtro.getCarrera()).append(\"'\");\n isWhere = false;\n }\n if (filtro.getFoto() != null) {\n query.append(isWhere ? \" WHERE\" : \" AND\")\n .append(\" FOTO = '\").append(filtro.getFoto()).append(\"'\");\n isWhere = false;\n }\n if (filtro.getDirectorio() != null) {\n query.append(isWhere ? \" WHERE\" : \" AND\")\n .append(\" ID_DIRECTORIO = '\").append(filtro.getDirectorio().getUsuario().getId()).append(\"'\");\n isWhere = false;\n }\n if (filtro.getDireccion() != null) {\n query.append(isWhere ? \" WHERE\" : \" AND\")\n .append(\" ID_DIRECCION = \").append(filtro.getDireccion());\n isWhere = false;\n }\n if (filtro.getCorreoElectronico() != null) {\n query.append(isWhere ? \" WHERE\" : \" AND\")\n .append(\" ID_CORREO_ELECTRONICO = \").append(filtro.getCorreoElectronico().getId());\n }\n }\n return query.toString();\n }", "title": "" }, { "docid": "511b99014c486f1c361e8db1a69b7326", "score": "0.5815265", "text": "java.lang.String getFilter();", "title": "" }, { "docid": "511b99014c486f1c361e8db1a69b7326", "score": "0.5815265", "text": "java.lang.String getFilter();", "title": "" }, { "docid": "511b99014c486f1c361e8db1a69b7326", "score": "0.5815265", "text": "java.lang.String getFilter();", "title": "" }, { "docid": "511b99014c486f1c361e8db1a69b7326", "score": "0.5815265", "text": "java.lang.String getFilter();", "title": "" }, { "docid": "511b99014c486f1c361e8db1a69b7326", "score": "0.5815265", "text": "java.lang.String getFilter();", "title": "" }, { "docid": "09609036c4ef8eba6b187a644b55da01", "score": "0.5791068", "text": "public String getFilter() {\n\t\tif(this.name==null)\n\t\t\treturn \"\";\n\t\treturn (this.name==null?\"\":this.name)+\"=\"+(this.value==null?\"\":this.value);\n\t}", "title": "" }, { "docid": "fe258553dc8ee11bd9ec371b6a22c612", "score": "0.5784896", "text": "private String prepareSelectFieldList() {\n\t\tList<IQueryField> fields = query.getFieldList();\n\t\t\n\t\tif(fields == null || fields.isEmpty()){\n\t\t\treturn \"*\";\n\t\t} else {\n\t\t\treturn Glue.concat(query.getFieldList(), \", \");\n\t\t}\n\t}", "title": "" }, { "docid": "d2e59c31176258e327bd132989077c82", "score": "0.57822394", "text": "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"filter\" + value;\n\t\t}", "title": "" }, { "docid": "903a364fe4749a3a0a8b533f861f824c", "score": "0.5765524", "text": "public String getFilter() {\n\t\treturn (super.getFilter() + \n\t\t\t\t\" && FirstID=\" +firstID\n\t\t\t\t+ (!secondID.equals(\"\") ? \" && SecondID = \" +secondID : \"\")\n\t\t\t\t+ (!thirdID.equals(\"\") ? \" && ThirdID = \" +thirdID : \"\"));\n\t}", "title": "" }, { "docid": "3419f68c0d2590822e4d4b617cec8061", "score": "0.5758692", "text": "public String toString()\r\n\t{\r\n\t\tString filterAsString = \"\";\r\n\t\t\r\n\t\tif(!caseSensitive)\r\n\t\t{\r\n\t\t\tfilterAsString+= \"Non-CS \";\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfilterAsString+= \"CS \";\r\n\t\t}\r\n\t\t\r\n\t\tif(needAllSearchTerms)\r\n\t\t{\r\n\t\t\tfilterAsString+= \"Search for all of '\";\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfilterAsString+= \"Search for any of '\";\r\n\t\t}\r\n\t\t\r\n\t\tfor(String str: searchTerms)\r\n\t\t{\r\n\t\t\tfilterAsString+= str + \",\";\r\n\t\t}\r\n\t\t\r\n\t\t//remove last comma\r\n\t\tfilterAsString = filterAsString.substring(0, filterAsString.length()-1) + \"'\";\r\n\t\t\r\n\t\t//limited display space:\r\n\t\tif(filterAsString.length()>65)\r\n\t\t{\r\n\t\t\tfilterAsString = filterAsString.substring(0, 63) + \"...\";\r\n\t\t}\r\n\t\t\r\n\t\treturn filterAsString;\r\n\t}", "title": "" }, { "docid": "e56f7f3457c018ee233fe3b31856da2e", "score": "0.5696336", "text": "private String getFullSSCFilterString() {\n\t\t\tString result = getConfiguration().getFilterStringForVulnerabilitiesToBeSubmitted();\n\t\t\tif ( getVulnerabilityProcessor().isIgnorePreviouslySubmittedIssues() && StringUtils.isNotBlank(getConfiguration().getBugLinkCustomTagName()) ) {\n\t\t\t\tresult = StringUtils.isBlank(result) ? \"\" : (result+\" \");\n\t\t\t\tresult += getConfiguration().getBugLinkCustomTagName()+\":<none>\";\n\t\t\t}\n\t\t\t// SSC doesn't allow filtering on bugURL, so this is handled in createFilterForVulnerabilitiesToBeSubmitted\n\t\t\treturn result;\n\t\t}", "title": "" }, { "docid": "a1031aac4483030e49c26a8d75e6922f", "score": "0.5611576", "text": "private ArrayList<String> createFilterStringList(String filterValues)\n\t{\n\t\tArrayList<String> includeList = new ArrayList<String>(); \n\t\t\n\t\tStringTokenizer st = new StringTokenizer(filterValues, \",\"); \n\t\twhile (st.hasMoreTokens())\n\t\t{\n\t\t\tincludeList.add(st.nextToken());\n\t\t}\n\t\t\n\t\treturn includeList; \n\t}", "title": "" }, { "docid": "6e2d8401fef4a7e6d6175f88ef118901", "score": "0.55818", "text": "protected String filterListToString(NavigableSet<IMatFilter> lCurFilters) {\n \tStringBuffer sb = new StringBuffer();\n \tfor (IMatFilter bfCur : lCurFilters)\n \t\tsb.append(bfCur.toString()).append(\",\");\n \treturn sb.toString();\n }", "title": "" }, { "docid": "9a59c5123619482aa152f932b5bef03c", "score": "0.5569961", "text": "private String getFilters(String seprator) throws DAOException {\n\t\tString finalFilter = \"\";\n\t\tfor (int index = 0; index < filters.size(); index++)\n\t\t{\n\t\t\tif (index == filters.size() - 1)\n\t\t\t{\n\t\t\t\tseprator = \"\";\n\t\t\t}\n\t\t\tfinalFilter = finalFilter + filters.get(index) + \" \" + seprator + \" \";\n\t\t}\n\t\t\n\t\t\n\t\treturn finalFilter;\n\t}", "title": "" }, { "docid": "0b4fdcfe964c24f315f4e9d813578bbd", "score": "0.5566907", "text": "public String getFields(){\n return String.join(\",\", fields);\n }", "title": "" }, { "docid": "7260e8d2dc54dbc21541095973703a11", "score": "0.5564592", "text": "public FilterByStringRequest() {\n tableName = \"\";\n viewName = \"\";\n expression = \"\";\n mode = \"\";\n columnNames = new ArrayList<>();\n options = new LinkedHashMap<>();\n }", "title": "" }, { "docid": "b47326ac79cbd9b238d62667c8a53e9e", "score": "0.5534283", "text": "public String consultaFilros(String filtros) {\n String select = \"SELECT refe_refe, refe_desc, refe_estado, refe_came, refe_memori,refe_pantalla from in_trefe WHERE \"+filtros;\n System.out.println(\"Filtros\"+select);\n return select;\n }", "title": "" }, { "docid": "33dc3a3823a03d88ab190b5db46a5f47", "score": "0.54966855", "text": "private String buildFiltersInfoString (EarthquakeRepository earthquakeRepository) {\n LinkedList<String> resultList = new LinkedList<>();\n Map<String, Object> filters = earthquakeRepository.getFilters();\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.date_format));\n if (filters.containsKey(\"text\") && !((String) filters.get(\"text\")).isEmpty()) {\n resultList.add(\"\\\"\" + filters.get(\"text\") + \"\\\"\");\n }\n if (filters.containsKey(\"startDate\")) {\n resultList.add(dateFormat.format((Date) filters.get(\"startDate\")));\n } else {\n resultList.add(getString(R.string.beginning));\n }\n\n if (filters.containsKey(\"endDate\")) {\n resultList.add(dateFormat.format((Date) filters.get(\"endDate\")));\n } else {\n resultList.add(getString(R.string.today));\n }\n\n String result = \"\";\n for (String item : resultList) {\n if (result.isEmpty()) {\n result += item;\n } else {\n result += \" - \" + item;\n }\n }\n return result;\n }", "title": "" }, { "docid": "e759c14d8381e9af2fb07a1df00f734d", "score": "0.5486156", "text": "public String getSearchCriteria() {\n StringBuilder sb = new StringBuilder(21);\n Customer customerFilter = filter.getEntity();\n \n Long id = null;\n if (filter.hasParam(\"id\")) {\n id = filter.getLongParam(\"id\");\n } else if (has(customerFilter.getId())) {\n id = customerFilter.getId();\n }\n if (has(id)) {\n \n\t sb.append(\"<b>id</b>: \").append(id).append(\", \");\n }\n \n String name = null;\n if (filter.hasParam(\"name\")) {\n name = (String)filter.getParam(\"name\");\n } else if (has(customerFilter.getName())) {\n name = customerFilter.getName();\n }\n if (has(name)) {\n \n\t sb.append(\"<b>name</b>: \").append(name).append(\", \");\n }\n \n String email = null;\n if (filter.hasParam(\"email\")) {\n email = (String)filter.getParam(\"email\");\n } else if (has(customerFilter.getEmail())) {\n email = customerFilter.getEmail();\n }\n if (has(email)) {\n \n\t sb.append(\"<b>email</b>: \").append(email).append(\", \");\n }\n \n Date dateOfBirth = null;\n if (filter.hasParam(\"dateOfBirth\")) {\n dateOfBirth = (Date)filter.getParam(\"dateOfBirth\");\n } else if (has(customerFilter.getDateOfBirth())) {\n dateOfBirth = customerFilter.getDateOfBirth();\n }\n if (has(dateOfBirth)) {\n \n\t sb.append(\"<b>dateOfBirth</b>: \").append(dateOfBirth).append(\", \");\n }\n \n City city = null;\n if (filter.hasParam(\"city\")) {\n city = (City)filter.getParam(\"city\");\n } else if (has(customerFilter.getCity())) {\n city = customerFilter.getCity();\n }\n if (has(city)) {\n sb.append(\"<b>city</b>: \").append(city.getName()).append(\", \");\n }\n \n State state = null;\n if (filter.hasParam(\"state\")) {\n state = (State)filter.getParam(\"state\");\n } else if (has(customerFilter.getState())) {\n state = customerFilter.getState();\n }\n if (has(state)) {\n sb.append(\"<b>state</b>: \").append(state.getName()).append(\", \");\n }\n int commaIndex = sb.lastIndexOf(\",\");\n if (commaIndex != -1) {\n sb.deleteCharAt(commaIndex);\n }\n if (sb.toString().trim().isEmpty()) {\n PrimeFaces.current().executeScript(\"jQuery('div[id=footer] .fa-filter').addClass('ui-state-disabled')\");\n return getMessage(\"empty-search-criteria\");\n } else {\n PrimeFaces.current().executeScript(\"jQuery('div[id=footer] .fa-filter').removeClass('ui-state-disabled')\");\n }\n return sb.toString();\n }", "title": "" }, { "docid": "74c05deaa43bd4689c01ab14fa30ac24", "score": "0.53809947", "text": "private static String getSearchFields() {\n return \"'name' \";\n }", "title": "" }, { "docid": "830413365302fc0b00b8111f246567b9", "score": "0.53374845", "text": "public static ObservableList getStringExpressions() {\r\n \r\n List<String> lstExpressions = new ArrayList<>() ;\r\n \r\n for (String strOperatorText : mapFilterOperators.keySet()) {\r\n \r\n FilterOperatorType currentType = mapFilterOperatorsType.get(strOperatorText) ;\r\n if (currentType == FilterOperatorType.NONNUMERIC) {\r\n lstExpressions.add(strOperatorText) ;\r\n }\r\n }\r\n \r\n Collections.unmodifiableList(lstExpressions);\r\n ObservableList oblstExpressions = FXCollections.observableList(lstExpressions);\r\n return oblstExpressions;\r\n }", "title": "" }, { "docid": "531cddc5faeb6073a3c9e023707ec1e5", "score": "0.53221506", "text": "public String getFilter(){\n return filter;\n }", "title": "" }, { "docid": "bdc089ac15144f50fb84fd0d75eb991a", "score": "0.53052324", "text": "public List<String> build()\n {\n return filters;\n }", "title": "" }, { "docid": "fcbbc61a129150628a24d72092dd2ab2", "score": "0.5291139", "text": "String getIncFilter();", "title": "" }, { "docid": "f8a06af3579bb06f986af7d90a495fcb", "score": "0.52811915", "text": "public static String convertFilters(String[] filters) {\n\t\tString result = \"\";\n\t\tfor (String filter : filters) {\n\t\t\tresult += filter;\n\t\t\tresult += EVENT_FILTER_DELIMITER;\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "2795212ca2311bc0c6b4091858055342", "score": "0.526167", "text": "public abstract List<String> getDataLogFilterOptions();", "title": "" }, { "docid": "d22ee7ebec1ec99b8976f1c676b42734", "score": "0.52563745", "text": "@AutoEscape\n public String getParams();", "title": "" }, { "docid": "5ab8b74109b3fa3e72275f0642cec511", "score": "0.52414876", "text": "private String prepareFieldDescriptionList() {\n\t\tList<IQueryField> fl = this.query.getFieldList();\n\t\t\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i = 0; i < fl.size(); i++){\n\t\t\tIQueryField f = fl.get(i);\n\t\t\tsb.append(f.getFieldName());\n\t\t\t\n\t\t\tif (fl.get(i).getAlias() != null){\n\t\t\t\tsb.append(' ');\n\t\t\t\tsb.append(f.getAlias()); // alias carries TYPE here.\n\t\t\t}\n\t\t\tif(i != fl.size()-1) sb.append(\", \");\n\t\t}\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "533c4d68e5fddde372c9f36abbf7ccba", "score": "0.5231385", "text": "private String contratos() {\r\n\t\tString texto=\"\";\r\n\t\tif (!contratosVehiculos.isEmpty()) {\r\n\t\t\tfor (Contrato p : contratosVehiculos) {\r\n\t\t\t\ttexto += String.valueOf(p.getCodcontrato()) + \", \";\r\n\r\n\t\t\t}\r\n\t\t\treturn texto;\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "3dcf9449dd47b67b0fddc6e02bfd4b5c", "score": "0.5229957", "text": "String getExcFilter();", "title": "" }, { "docid": "627bf89a7cbd721f8dd05c1e83789342", "score": "0.5229887", "text": "public static String transformParameters(String texto, ECriterioBusqueda criterio) {\n if (vacio(texto)) {\n return \"%\";\n }\n switch (criterio) {\n case START:\n return \"%\" + texto.toUpperCase();\n case END:\n return texto.toUpperCase() + \"%\";\n case ANYWHERE:\n return \"%\" + texto.toUpperCase() + \"%\";\n default:\n return texto.toUpperCase();\n }\n }", "title": "" }, { "docid": "bbde27d65b2797797ea1fff76310e3af", "score": "0.5200466", "text": "public String getFilter() {\n\n\n return mFilterSQL;\n\n\n }", "title": "" }, { "docid": "fce4edf0fe9e342fc128b7ded812b967", "score": "0.519514", "text": "private String fetchFilters(final EmployeeWisePerqsReport bean) {\r\n\t\tString fromYr = bean.getFromYear();\r\n\t\tString toYr = bean.getToYear();\r\n\r\n\t\tString filters = \"Report Period : \" + fromYr + \" - \" + toYr;\r\n\t\tif (!bean.getDivId().equals(\"\")) {\r\n\t\t\tfilters += \"\\n\\nDivision : \" + bean.getDivName();\r\n\t\t}\r\n\t\tif (!bean.getBrnId().equals(\"\")) {\r\n\t\t\tfilters += \"\\n\\nBranch : \" + bean.getBrnName();\r\n\t\t}\r\n\t\tif (!bean.getDeptId().equals(\"\")) {\r\n\t\t\tfilters += \"\\n\\nDepartment : \" + bean.getDeptName();\r\n\t\t}\r\n\t\tif (!bean.getTypeId().equals(\"\")) {\r\n\t\t\tfilters += \"\\n\\nEmployee Type : \" + bean.getTypeName();\r\n\t\t}\r\n\t\tif(bean.getTaxableFlag().equals(\"Y\")){\r\n\t\t\tfilters+= \"\\n\\nTaxable Flag: Yes\";\r\n\t\t} else if(bean.getTaxableFlag().equals(\"N\")){\r\n\t\t\tfilters+= \"\\n\\nTaxable Flag: No\";\r\n\t\t}else {\r\n\t\t\tfilters+= \"\\n\\nTaxable Flag: All\";\r\n\t\t}\r\n\t\t\r\n\t\treturn filters;\r\n\t}", "title": "" }, { "docid": "98c0eea3601f8f7bdf412263cea3cf28", "score": "0.519458", "text": "protected void obtenerFiltros(Map<String, String> filters)\r\n/* 64: */ {\r\n/* 65: 81 */ filters.put(\"documento.documentoBase\", DocumentoBase.TRANSFORMACION_PRODUCTO.toString());\r\n/* 66: 82 */ filters.put(\"movimientoInventarioPadre\", OperacionEnum.IS_NOT_NULL.toString());\r\n/* 67: 83 */ if (this.numeroTransformacion != null) {\r\n/* 68: 84 */ filters.put(\"numero\", this.numeroTransformacion);\r\n/* 69: */ }\r\n/* 70: 86 */ this.numeroTransformacion = null;\r\n/* 71: */ }", "title": "" }, { "docid": "13e0811c57ebb9f6d5cc7dc223302736", "score": "0.5170016", "text": "public static JTextField[] campos() {\n JTextField[] campo = {jTextFieldCodVendor, jTextFieldNameVendor, jFormattedTextCnpjVendor, jFormattedTexInscritionStateVendor, jTextFieldUnityFederal, jFormattedTextPhoneVendor, jFormattedTextCelularVendor, jTextFieldContactVendor, jTextFieldCityVendor, jTextFieldAddressVendor, jTextFieldEmailVendor};\n return campo;\n }", "title": "" }, { "docid": "ba9b9ac4a10d91ecf5a3a43fb851b07c", "score": "0.51669854", "text": "public void fillFilters() {\n filters = new ArrayList<>();\n filterTypes = new ArrayList<>();\n Iterator itr = eventTypes.iterator();\n while(itr.hasNext()){\n String eventType = (String)itr.next();\n filters.add(eventType + \" Events\");\n filterTypes.add(eventType);\n }\n filters.add(\"Father's Side\");\n filters.add(\"Mother's Side\");\n filters.add(\"Male Events\");\n filters.add(\"Female Events\");\n filterTypes.add(\"paternal\");\n filterTypes.add(\"maternal\");\n filterTypes.add(\"m\");\n filterTypes.add(\"f\");\n }", "title": "" }, { "docid": "fe0f44978b47a11e425a1665015fb102", "score": "0.51630247", "text": "public String[] getInputs() {\n\t\tString[] tempArr = new String[fieldArr.length];\n\t\tfor(int i=0; i<tempArr.length; i++) {\n\t\t\ttempArr[i] = fieldArr[i].getText(); //Frage Text ab\n\t\t\ttempArr[i] = tempArr[i].trim();\t//schneide leerzeichen vorn/hinten ab\n\t\t}\n\t\treturn tempArr;\n\t}", "title": "" }, { "docid": "dad86724f187d250f660b6ed293c24ba", "score": "0.5126993", "text": "public String consultarTodosCaminosToString() {\n\t\tArrayList<Camino> todoCaminos = m.consultarTodosCaminos();\n\t\tIterator<Camino> it = todoCaminos.iterator();\n\t\tString listC = new String();\n\t\twhile(it.hasNext()) {\n\t\t\tCamino c = it.next();\n\t\t\tlistC = listC + c.consultarOrigen() + \" \" + c.consultarDestino() + \" \" + \n\t\t\tc.consultarTransporte() + \" \" + Integer.toString(c.consultarCapacidad()) + \"\\n\";\n\t\t}\n\t\treturn listC;\n\t}", "title": "" }, { "docid": "4a24008d312bb5b82afa892f5c457189", "score": "0.5124373", "text": "public String getSets(){\n ArrayList<String> sets = new ArrayList<>();\n for( String field : fields ){\n sets.add(field + \" = ?\");\n }\n return String.join(\",\", sets);\n }", "title": "" }, { "docid": "b994438680a4789109adc1c2748d04b2", "score": "0.5108723", "text": "public String toString() {\n\t\ttry {\n\t\t\treturn (String)this.oof.__getFilter().getClass().getMethod(\"build\",\n\t\t\t\tnew Class[] { this.getClass() }).invoke(\n\t\t\t\t\tthis.oof.__getFilter(), new Object[] { this });\n\t\t} catch (Exception e) {\n\t\t\t/* Fuck */\n\t\t\treturn \"(@@@@@ _End.toString FAILED: \" + e + \" @@@@@)\";\n\t\t}\n\t}", "title": "" }, { "docid": "72482b5ebfd0b94d92e705f72776c680", "score": "0.50999767", "text": "@Override\n public String getDadosFavoritos() {\n return this.getNome() + \",\" +this.getMarca() + \"e\" +this.getValor(); //concatenando strings\n }", "title": "" }, { "docid": "35b044752be996470273aac620059882", "score": "0.5087961", "text": "protected SimpleQueryFilter[] generateDataFilters() {\r\n\t\treturn this.searchComboBox.generateDataFilterArguments() ; \r\n\t}", "title": "" }, { "docid": "f4080c318c4498bcfdc2d871c38df73c", "score": "0.5076277", "text": "public String getFilter() {\r\n return this.filter;\r\n }", "title": "" }, { "docid": "eaad2e40002e65121f9bbd18ad587591", "score": "0.50753444", "text": "public String paramList() {\n switch (this) {\n case FILE:\n return \"file...\";\n case DIR:\n return \"directory\";\n case CANCEL_FILTERS:\n return \"\";\n case FILTER_FILENAME:\n return \"[-p] filter_string\";\n case FILTER_KEYWORD:\n return \"[-p] keyword...\";\n case FILTER_KEYWORD_RVALUE:\n return \"[-p] keyword rvalue\";\n case FILTER_KEYWORD_IVALUE:\n return \"[-p] keyword ivalue\";\n case ADD_CARD:\n return \"[-u] keyword rvalue [comment [ivalue]]\";\n case ADD_CARD_INDEX:\n return \"[-u] index keyword rvalue [comment [ivalue]]\";\n case ADD_CARD_AFTER_KEYWORD:\n return \"[-u] after_keyword keyword rvalue [comment [ivalue]]\";\n case REMOVE_CARD:\n return \"keyword\";\n case REMOVE_CARD_INDEX:\n return \"index\";\n case CHANGE_KEYWORD:\n return \"[-d] old_keyword new_keyword\";\n case CHANGE_RVALUE:\n return \"keyword rvalue\";\n case CHANGE_IVALUE:\n return \"keyword ivalue\";\n case CHANGE_COMMENT:\n return \"keyword comment\";\n case CHANGE_INDEX:\n return \"keyword index\";\n case CONCATENATE:\n return \"[-u] keyword (-s string | -k keyword_value)...\";\n case SHIFT:\n return \"keyword [-y year | -m month | -d day | -h hour | -min minute | -s second | -ms millisecond | -mics microsecond]+\";\n case JD:\n return \"[-u] keyword date_time\";\n case JD_KEYWORD:\n return \"[-u] keyword source_keyword\";\n default:\n return \"\";\n }\n }", "title": "" }, { "docid": "6f7078c0fb91d2b44c1b41633822e7aa", "score": "0.507425", "text": "private static String[] acquisizione_osservazione_lineare(){\n String[] ret_arr;\n //\n Scanner scanner = new Scanner(System.in);\n String osservazione = \"\";\n\n while(!(osservazione.startsWith(\"<\") && osservazione.endsWith(\">\"))){\n System.out.println(\"Inserire l'osservazione lineare desiderata nel formato <o1,o2,o3,...>\");\n osservazione = scanner.nextLine();\n }\n\n osservazione = osservazione.substring(1, osservazione.length()-1);\n ret_arr = osservazione.split(\",\");\n return ret_arr;\n }", "title": "" }, { "docid": "83e61a0a559a36c6e0de6a0f9606ddfd", "score": "0.5073251", "text": "public String prepareParams()\n {\n if(params.size() == 0) return \"\";\n\n String enc = \"\";\n for(Object entryObj : params.entrySet())\n {\n Map.Entry<String, Object> entry = (Map.Entry<String, Object>) entryObj;\n String name = entry.getKey();\n Object value = entry.getValue();\n\n enc += name + \"=\" + value + \"&\";\n }\n\n enc = enc.substring(0, enc.length() - 1);\n return enc;\n }", "title": "" }, { "docid": "5c8e1a8f962758888fb73ded89d0c8e3", "score": "0.5064771", "text": "public List<String> getCamposAuditables()\r\n/* 169: */ {\r\n/* 170:287 */ List<String> lista = new ArrayList();\r\n/* 171:288 */ lista.add(\"codigo\");\r\n/* 172:289 */ lista.add(\"nombre\");\r\n/* 173:290 */ lista.add(\"codigo_postal\");\r\n/* 174:291 */ lista.add(\"descripcion\");\r\n/* 175:292 */ lista.add(\"activo\");\r\n/* 176:293 */ return lista;\r\n/* 177: */ }", "title": "" }, { "docid": "778323f51e78800bef051c9117e08906", "score": "0.50579876", "text": "private PropertyFilter(String filterString) throws InvalidArgumentException {\n this.propertyNames = new HashSet<>();\n for (String token : SPLITTER.split(filterString)) {\n if (token.length() > 0 && !token.equals(ALL)) {\n for (char ch : token.toCharArray()) {\n if (Character.isWhitespace(ch) || ILLEGAL_CHARACTERS.indexOf(ch) != -1) {\n throw new InvalidArgumentException(\"Invalid filter '\" + filterString\n + \"' contains illegal characters.\");\n }\n }\n this.propertyNames.add(token);\n } else {\n throw new InvalidArgumentException(\"Invalid filter '\" + filterString\n + \"'. Filter must contains either '*' OR comma-separated list of properties.\");\n }\n }\n }", "title": "" }, { "docid": "e32d1bf7a7949cb19be54d8b4fd7b262", "score": "0.50480956", "text": "private String extraerValorPlataforma(String plataformas, String posicion) {\n\n\t\tString plataforma = \"\";\n\n\t\tplataforma = posicion;\n\t\tString listalibreria = \"\";\n\t\tlistalibreria = plataformas;\n\t\tlogger.info(\"extraerValorPlataforma Posicion:\" + posicion + \"; lista: \" + listalibreria);\n\t\tString[] arrStrGrupo = listalibreria.split(\",\");\n\n\t\tfor (String a : arrStrGrupo) {\n\n\t\t\tString[] arrStrobj = a.split(\"\\\\|\");\n\n\t\t\tif (arrStrobj[0].equals(posicion)) {\n\t\t\t\tplataforma = arrStrobj[1];\n\t\t\t\tbreak;\n\t\t\t} else\n\t\t\t\tcontinue;\n\t\t}\n\t\tlogger.info(\"obtenerTipoDocToOAC OUT:\" + plataforma);\n\n\t\treturn plataforma;\n\n\t}", "title": "" }, { "docid": "9478c54978c02a8f950f17aa237db5b1", "score": "0.5018358", "text": "public List<Cliente> consultarClientesPorParametro(Map<String, String> filtros);", "title": "" }, { "docid": "8095c859614d8e0078147b9dd6c15b7b", "score": "0.5001003", "text": "private String getVisibleServicesCondition() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\t// Uniquement les service affichables\n\t\tsb.append(\"(actOrdre<0 and grpAffichable='O')\");\n\t\t// Si rien n'est definit, alors visible par defaut\n\t\tsb.append(\" and (\");\n\t\t// Sinon, visible sur le Web...\n\t\tsb.append(\"grpVisibilite=nil or (grpVisibilite like '*WEB*'\");\n\t\t// ...et pour le vLan de l'utilisateur\n\t\tif (dtSession().connectedUserInfo().vLan() != null) {\n\t\t\tsb.append(\" and grpVisibilite like '*|\");\n\t\t\tsb.append(dtSession().connectedUserInfo().vLan()).append(\"|*'\");\n\t\t}\n\t\tsb.append(\")\"); // fin OR\n\t\t// ...et pour le groupe de l'utilisateur\n\t\tsb.append(\" and (grpVisibiliteStructure=nil\");\n\t\tNSArray<CktlRecord> listRepart = dtSession().dataCenter().serviceBus().repartStructuresForPersId(dtSession().connectedUserInfo().persId());\n\t\tif (listRepart.count() > 0) {\n\t\t\tsb.append(\" or (\");\n\t\t\tfor (int i = 0; i < listRepart.count(); i++) {\n\t\t\t\tCktlRecord recRepart = (CktlRecord) listRepart.objectAtIndex(i);\n\t\t\t\tsb.append(\"grpVisibiliteStructure like '*|\");\n\t\t\t\tsb.append(recRepart.stringForKey(\"cStructure\")).append(\"|*'\");\n\t\t\t\tif (i < listRepart.count() - 1) {\n\t\t\t\t\tsb.append(\" or \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t}\n\t\tsb.append(\")\"); // fin AND\n\t\tsb.append(\")\"); // fin AND\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "ce91b9376e6c06f16118a5c1e61bd422", "score": "0.49990073", "text": "public String getFilter()\n {\n return filter;\n }", "title": "" }, { "docid": "312d0793e5dab378ef3137f0c9ac9e70", "score": "0.4995212", "text": "@Transient\n public String getNombreCompleto(){\n String nombreCompleto = new String();\n\n if (this.nombres != null) {\n nombreCompleto = nombreCompleto + this.nombres + \" \";\n }\n else {\n nombreCompleto = nombreCompleto + \"SinInformacion \";\n }\n\n if (this.apellidoPaterno != null) {\n nombreCompleto = nombreCompleto + this.apellidoPaterno + \" \";\n }\n else {\n nombreCompleto = nombreCompleto + \"SinInformacion \";\n }\n\n if (this.apellidoMaterno != null) {\n nombreCompleto = nombreCompleto + this.apellidoMaterno;\n }\n else {\n nombreCompleto = nombreCompleto + \"SinInformacion \";\n }\n\n String[] names = nombreCompleto.split(\" \");\n StringBuilder b = new StringBuilder();\n for (String name : names) {\n if (name == null || name.isEmpty()) {\n b.append(\" \");\n continue;\n }\n b.append(name.substring(0, 1).toUpperCase())\n .append(name.substring(1).toLowerCase())\n .append(\" \");\n }\n return b.toString();\n }", "title": "" }, { "docid": "6b92173781405d38a7c0a2125cc631d5", "score": "0.49756202", "text": "public void toString(final StringBuilder builder) {\n\t\tswitch (filterType) {\n\t\tcase AND:\n\t\tcase OR:\n\t\t\tbuilder.append('(');\n\n\t\t\tfor (int i = 0; i < filterComponents.size(); i++) {\n\t\t\t\tif (i != 0) {\n\t\t\t\t\tbuilder.append(' ');\n\t\t\t\t\tbuilder.append(filterType);\n\t\t\t\t\tbuilder.append(' ');\n\t\t\t\t}\n\n\t\t\t\tbuilder.append(filterComponents.get(i));\n\t\t\t}\n\n\t\t\tbuilder.append(')');\n\t\t\tbreak;\n\n\t\tcase EQUALITY:\n\t\tcase CONTAINS:\n\t\tcase STARTS_WITH:\n\t\tcase GREATER_THAN:\n\t\tcase GREATER_OR_EQUAL:\n\t\tcase LESS_THAN:\n\t\tcase LESS_OR_EQUAL:\n\t\t\tbuilder.append(filterAttribute);\n\t\t\tbuilder.append(' ');\n\t\t\tbuilder.append(filterType);\n\t\t\tbuilder.append(' ');\n\n\t\t\tif (quoteFilterValue) {\n\t\t\t\ttry {\n\t\t\t\t\tbuilder.append(JsonUtils.toJson(filterValue));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogger.error(e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbuilder.append(filterValue);\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase PRESENCE:\n\t\t\tbuilder.append(filterAttribute);\n\t\t\tbuilder.append(' ');\n\t\t\tbuilder.append(filterType);\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "4b3093b1c4a76f4d092858ff59744d5e", "score": "0.49706313", "text": "public ArrayList<String> prepararEnvio() {\n\t\tStringTokenizer a = new StringTokenizer(txtReceptor.getText(),\",\");\r\n\t\tArrayList<String> listaSeleccionados = new ArrayList<String>();\r\n\t\twhile(a.hasMoreTokens()) {\r\n\t\t\tlistaSeleccionados.add(a.nextToken());\r\n\t\t}\r\n\t\t\r\n\t\t//Una vez ya seleccionados, debemos asegurarnos que no haya duplicados\r\n\t\tArrayList<String> listaDefinitiva = new ArrayList<String>();\r\n\t\t\r\n\t\tfor(int i=0; i<listaSeleccionados.size(); i++) {\r\n\t\t\tif(!listaDefinitiva.contains(listaSeleccionados.get(i))) {\r\n\t\t\t\tlistaDefinitiva.add(listaSeleccionados.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//La lista queda sin duplicados\r\n\t\treturn listaDefinitiva;\r\n\t}", "title": "" }, { "docid": "d31edd1fe8e890589e0392f819725559", "score": "0.49469554", "text": "@SuppressWarnings(\"unused\")\n public String getFilter()\n {\n return filter;\n }", "title": "" }, { "docid": "207657104e3237b7d02a371de8254214", "score": "0.49425402", "text": "public String[][] consultarFiltro(String filtro) {\n\n ArrayList<Faltas> lista = this.faltasDAO.consultarFiltro(filtro);\n if (lista == null || lista.isEmpty()) {\n return null;\n }\n\n String dados[][] = new String[lista.size()][4];\n for (int i = 0; i < lista.size(); i++) {\n dados[i][0] = String.valueOf(lista.get(i).getId());\n dados[i][2] = String.valueOf(lista.get(i).getFaltas());\n dados[i][3] = String.valueOf(lista.get(i).getId_aluno_faltas());\n }\n return dados;\n }", "title": "" }, { "docid": "d851610cf7d7d1e300b0c85eba61a94e", "score": "0.49308312", "text": "public String getParameters(String nombreParametro){\n\t\treturn p.getProperty(nombreParametro).trim();\n\t}", "title": "" }, { "docid": "379da218a0c4a32422691cf279945d2e", "score": "0.49279493", "text": "@java.lang.Override\n public java.lang.String getFilter() {\n java.lang.Object ref = filter_;\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 filter_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "379da218a0c4a32422691cf279945d2e", "score": "0.49279493", "text": "@java.lang.Override\n public java.lang.String getFilter() {\n java.lang.Object ref = filter_;\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 filter_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "79062c01ba1c2cb85cce584333620905", "score": "0.49233708", "text": "private void filtrar() {\n\t\tArrayList<RowFilter<Object,Object>> filtros = new ArrayList<RowFilter<Object,Object>>();\n\t\tfiltros.add(RowFilter.regexFilter(txtBuscar.getText(), 0));\n\t\tfiltros.add(RowFilter.regexFilter(txtBuscar.getText(), 1));\n\t\tfiltros.add(RowFilter.regexFilter(txtBuscar.getText(), 2));\n\t\tRowFilter<Object, Object> rf = RowFilter.orFilter(filtros);\n\t\tfiltrar.setRowFilter(rf);\n\t}", "title": "" }, { "docid": "d6e244c417b7ff845a641af7df570312", "score": "0.49062008", "text": "public java.lang.String getFilter() {\n java.lang.Object ref = filter_;\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 filter_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "d6e244c417b7ff845a641af7df570312", "score": "0.49062008", "text": "public java.lang.String getFilter() {\n java.lang.Object ref = filter_;\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 filter_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "d6e244c417b7ff845a641af7df570312", "score": "0.49062008", "text": "public java.lang.String getFilter() {\n java.lang.Object ref = filter_;\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 filter_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "df0568ec948c0fdd65f9d0ef73d30e83", "score": "0.4905061", "text": "private String getCSVString(Set<String> values) {\n String result = null;\n if (values != null) {\n StringBuffer sb = new StringBuffer();\n for (String ip : values) {\n if (notNullNorEmpty(ip)) {\n if (sb.length() > 0) {\n sb.append(\",\");\n }\n sb.append(ip.trim());\n }\n }\n if (sb.length() > 0) {\n result = sb.toString();\n }\n }\n return result;\n }", "title": "" }, { "docid": "6c9d7a4b6705dcd525f993f508fe0a03", "score": "0.48975968", "text": "Map<String, String> getFilter();", "title": "" }, { "docid": "86217f8c828d847108326acc41e291d5", "score": "0.48955545", "text": "public ArrayList<String[]> restrictionsToString(){\r\n ArrayList<String[]> restrictionsStrList = new ArrayList<>();\r\n Iterator<List<List<Integer>>> i = restrictions.iterator();\r\n while(i.hasNext()){\r\n List<List<Integer>> restriction = i.next();\r\n List<Integer> firstCard = restriction.get(0);\r\n List<Integer> secondCard = restriction.get(1);\r\n String[] restrictionStr = new String[2];\r\n restrictionStr[0] = this.categories.get(firstCard.get(CATEGORY)).getCards().get(firstCard.get(CARD)).getName();\r\n restrictionStr[1] = this.categories.get(secondCard.get(CATEGORY)).getCards().get(secondCard.get(CARD)).getName();\r\n restrictionsStrList.add(restrictionStr);\r\n }\r\n return restrictionsStrList;\r\n }", "title": "" }, { "docid": "4d30dd303ed2adb7ca3746aa7bd966ea", "score": "0.48884657", "text": "public String getStatementWithParams() {\n if( filterValues.size() == 0 )\n return getStatement();\n StringBuffer stmt = new StringBuffer();\n // We assume here, that all ? are bind variable place holders\n String[] parts = getStatement().split(\"\\\\?\");\n int i = 0;\n for( ; i<parts.length && i<filterValues.size(); i++ ) {\n if (filterBindingItems.get(i)!=null && filterBindingItems.get(i).isNumeric())\n stmt.append(parts[i]).append(filterValues.get(i));\n else\n stmt.append(parts[i]).append(\"'\").append(filterValues.get(i)).append(\"'\");\n }\n // This is usually just the part after the last ?\n for( ; i<parts.length; i++ )\n stmt.append(parts[i]).append(\" \");\n return stmt.toString();\n }", "title": "" }, { "docid": "55885ca47b6c0b38b730f050320ef7c0", "score": "0.48859823", "text": "public String getFilterProperty_text()\n {\n return filterProperty_text;\n }", "title": "" }, { "docid": "3aa517d93a4c99a9e5e6bc8d76adcaae", "score": "0.48831344", "text": "private String _renderWhereClause()\n {\n String whereStatement = \"\";\n ArrayList<String> filters;\n filters = this._getFilters();\n boolean hasFilters = (filters.size() > 0);\n Integer numberFilters = filters.size();\n if(numberFilters > 0) {\n Integer numberFieldsProcesed = 0;\n for(String whereCondition : filters) {\n if(numberFieldsProcesed != 0) {\n whereStatement += \" AND \";\n } else {\n whereStatement += \" WHERE \";\n }\n whereStatement += whereCondition;\n numberFieldsProcesed++;\n }\n }\n \n return whereStatement;\n }", "title": "" }, { "docid": "0ada0438b2439d155b18df1c58747fca", "score": "0.48792958", "text": "java.lang.String getConditions();", "title": "" }, { "docid": "aef4076f89b86bf31e87f4b047a265ba", "score": "0.48785082", "text": "@Override\n protected FilterResults performFiltering(CharSequence charSequence)\n {\n List<RecipeObject> filteredList = new ArrayList<>();\n\n if(charSequence == null || charSequence.length() == 0)\n {\n //show everything\n filteredList.addAll(recipeListFull);\n }\n else\n {\n String filterPattern = charSequence.toString().toLowerCase().trim();\n\n for(RecipeObject item: recipeListFull)\n {\n if(item.getRecipeName().toLowerCase().contains(filterPattern))\n {\n filteredList.add(item);\n }\n }\n }\n\n FilterResults results = new FilterResults();\n results.values = filteredList;\n\n return results;\n }", "title": "" }, { "docid": "4746dd19148cdfa78f49a6aeb14f6e1d", "score": "0.487209", "text": "@Test\n public void testFilterLetters11() {\n mycustomstring.setString(\" 98, 2\");\n assertEquals(\"98,2\", mycustomstring.filterLetters(2, false));\n }", "title": "" }, { "docid": "70ba1f5791f30664caccb9274c15f19d", "score": "0.48654553", "text": "private String getListDVMaParamsHelp(List<String> inputs){\n log.info(\"Vao method getListDVMaParamsHelp \");\n log.info(\"Inputs: \" + inputs.toString());\n String result = \"\";\n for(String each : inputs){\n if(each != \"\")\n result += \"'\"+each + \"',\";\n }\n result = result.substring(0, result.length()-1);\n log.info(\"Thoat method getListDVMaParamsHelp \");\n log.info(\"Output: \" + result);\n return result;\n\t}", "title": "" }, { "docid": "b7c7415b6963d33942b3d3d174261d01", "score": "0.4864483", "text": "private static String formatParameter(String text) {\n return text.trim().replaceAll(\"\\\\s+\", \" \").replaceAll(\"( )?\\\\[ ]\", \"[]\");\n }", "title": "" }, { "docid": "ffc21f95b3fdbcf3d0c69192208a3a56", "score": "0.48610857", "text": "public void Pesquisar() {\n cidadesfiltradas.clear();\n\n for (int i = 0; i < cidades.size(); i++) {\n Cidade data = cidades.get(i);\n\n if (!filtro.getText().equals(\"\")) {\n String filtro2 = filtro.getText().toString().toLowerCase();\n String condicao = data.getNome().toLowerCase();\n\n if (condicao.contains(filtro2)) {\n //se conter adiciona na lista de itens filtrados.\n cidadesfiltradas.add(data);\n }\n }else{\n cidadesfiltradas.addAll(cidades);\n }\n }\n }", "title": "" }, { "docid": "85ab00a509636fed2767eb1766911d4c", "score": "0.4860916", "text": "public static List<Properties> getFiltersProperties(String filtersShowletParam) {\n\t\tif (null == filtersShowletParam || filtersShowletParam.trim().length() == 0) {\n\t\t\treturn new ArrayList<Properties>();\n\t\t}\n\t\tString[] filterStrings = filtersShowletParam.split(\"\\\\+\");\n\t\tList<Properties> properties = new ArrayList<Properties>(filterStrings.length);\n\t\tfor (int i=0; i<filterStrings.length; i++) {\n\t\t\tString fullFilterString = filterStrings[i];\n\t\t\tString filterString = fullFilterString.substring(1, fullFilterString.length()-1);\n\t\t\tProperties props = getProperties(filterString, DEFAULT_FILTER_PARAM_SEPARATOR);\n\t\t\tproperties.add(props);\n\t\t}\n\t\treturn properties;\n\t}", "title": "" }, { "docid": "704c74ba2fa0871d11c334930bc467d2", "score": "0.4850335", "text": "protected String paramString() {\r\n\t\tStringBuffer result = new StringBuffer();\r\n\r\n\t\tresult.append(\"path=\" + (path == null ? \"null\" : path.toString()));\r\n\t\tresult.append(\",stroke=\"\r\n\t\t\t\t+ (stroke == null ? \"null\" : stroke.toString()));\r\n\t\tresult.append(\",strokePaint=\"\r\n\t\t\t\t+ (strokePaint == null ? \"null\" : strokePaint.toString()));\r\n\t\tresult.append(',');\r\n\t\tresult.append(super.paramString());\r\n\r\n\t\treturn result.toString();\r\n\t}", "title": "" }, { "docid": "9f851532692ab9d711b44cb56503c120", "score": "0.48477077", "text": "public String getFilterText() {\n\t\t\n\t\treturn getFilter().getText();\n\t}", "title": "" }, { "docid": "d54247c49a9e5ca12eb6878f4a9b933d", "score": "0.4845456", "text": "java.lang.String getCombinedForm();", "title": "" }, { "docid": "4f1e9e8b6895510a09f15e50e9b8d4e0", "score": "0.48453912", "text": "public List<String> obtenerRequisitos() {\n \n List<String> listaReque = new ArrayList<>();\n \n for(CursoReq cr: this.cursoProgramacion.getCurso().getListaReq()) {\n if(cr.getFlgActivo().equals(BigInteger.ONE))\n listaReque.add(cr.getCatalogo().getTxtNombre());\n }\n for(CursoPrereq cr: this.cursoProgramacion.getCurso().getListaPrereq()) {\n if(cr.getFlgActivo().equals(BigInteger.ONE))\n listaReque.add(\"Haber aprobado el curso \\\"\" + cr.getCursoPrereq().getNombre() + \"\\\"\");\n }\n return listaReque;\n }", "title": "" }, { "docid": "291a9ad4cbbe81e92bc080d154bf9f28", "score": "0.48429093", "text": "public String textFilter() {\n return getString(FhirPropertyNames.PROPERTY_TEXT_FILTER);\n }", "title": "" }, { "docid": "71a253600d54f507290f5bf3d9f14133", "score": "0.48373842", "text": "@Override\n protected FilterResults performFiltering(CharSequence charSequence) {\n\n List<String> filteredList = new ArrayList<>();\n\n if (charSequence == null || charSequence.length() == 0) {\n filteredList.addAll(allDataSet);\n } else {\n for (String course : allDataSet) {\n if (course.toLowerCase().contains(charSequence.toString().toLowerCase())) {\n filteredList.add(course);\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n filteredList.add(\"Add New Course\");\n return filterResults;\n }", "title": "" }, { "docid": "900a13968d9de3b380dfeef3a4968e4b", "score": "0.48344946", "text": "@Test\n\tpublic void testToString() {\n\t\tnew NexusFilterDescriptor(\"/kichwa1\", Operation.CONTAINS, null).toString();\n\t\tnew NexusFilterDescriptor(\"/kichwa1\", Operation.EQUALS, new String[] { \"123\" }).toString();\n\t\tnew NexusFilterDescriptor(\"/kichwa1\", Operation.CLOSED_INTERVAL, new String[] { \"123\", \"456\" }).toString();\n\t}", "title": "" }, { "docid": "cf7497620d3013dfea89ff8c0fbda810", "score": "0.4829551", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic void getFilterValues(AttributeLogFilter filter) {\r\n\t\tfilter.attribute_include = attribute_filter_include_box.isSelected();\r\n\t\tfilter.attribute_filterOn = (String) attribute_filter_filter_on.getSelectedItem();\r\n\t\tfilter.attribute_key = (String) attribute_filter_log_attributes.getSelectedItem();\r\n\t\tfilter.attribute_values.addAll((List<String>) attribute_filter_log_values.getSelectedItem());\r\n\r\n\t\tfilter.attribute_group_values.clear();\r\n\t\tfilter.attribute_group_values.addAll(attribute_group_values);\r\n\t}", "title": "" }, { "docid": "b285e7e3c881460a0d2f97cd68317876", "score": "0.48265254", "text": "@Override\r\n\tpublic String build() {\r\n\t\t\r\n\t\tList<String> exchangesWhiteList = new ArrayList<String>();\r\n\t\tfor(int i=0; i<permittedExchangesList.split(\",\").length; i++){\r\n\t\t\texchangesWhiteList.add(permittedExchangesList.split(\",\")[i]);\r\n\t\t}\r\n\t\t\r\n\t\tSearchSourceBuilder query=new SearchSourceBuilder();\r\n\t\tif(accType.equals(AccountType.PREMIUM) || accType.equals(AccountType.TRIAL)|| accType.equals(AccountType.ADMIN) || accType.equals(AccountType.MASTER)){\r\n\t\t\tquery.query(QueryBuilders.constantScoreQuery(\r\n\t\t\t\t\tFilterBuilders.matchAllFilter()))\r\n\t\t\t\t\t.fetchSource(false)\r\n\t\t\t\t\t.size(MAX_RESULTS);\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tquery.query(QueryBuilders.constantScoreQuery(FilterBuilders.boolFilter().must(FilterBuilders.termsFilter(\"exchange\", exchangesWhiteList))))\r\n\t\t\t\t\t.fetchSource(false)\r\n\t\t\t\t\t.size(MAX_RESULTS);\r\n\t\t}\r\n\t\t// Add aggregations\r\n\t\tfor(DistributionRequestField req : fields){\r\n\t\t\t\r\n\t\t\tString field = req.getField();\r\n\t\t\t\r\n\t\t\t// Can only perform statics on numeric fields\r\n\t\t\tif(Util.isNumberField(SearchCompany.class, field)){\r\n\t\t\t\tquery.aggregation(\r\n\t\t\t\t\tgetAggregationFilter(field, \r\n\t\t\t\t\t\tAggregationBuilders.stats(field)\r\n\t\t\t\t\t\t.field(field)));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn query.toString();\r\n\t}", "title": "" }, { "docid": "74dc6f824d603cdff8a098aa292449b9", "score": "0.48015118", "text": "private static void delimitedItemOfString() {\n List<String> sl = new ArrayList<String>();\n sl.add(\"ab\"); sl.add(\"cd\"); sl.add(\"ef\"); sl.add(\"gh\");\n String resultString = String.join(\", \", sl);\n System.out.println(resultString); // ab, cd, ef, gh\n }", "title": "" }, { "docid": "f3a95b5d5b399563b3dee0863d9f2865", "score": "0.47975057", "text": "protected String paramString() {\n String str = super.paramString() + (modal ? \",modal\" : \",modeless\");\n if (title != null) {\n str += \",title=\" + title;\n }\n return str;\n }", "title": "" }, { "docid": "234676ea5b7d126425afe64c7fca7a2f", "score": "0.47972322", "text": "private String separateAuthorsWithAnd(String authorText) {\n return authorText.replace(\",\", \" and\");\n }", "title": "" }, { "docid": "c37523f322f3cf465b9e482392e123b0", "score": "0.47969523", "text": "public void setFilter(String[] filter) {\n \t\tthis.filter = filter;\n \t}", "title": "" }, { "docid": "bfa96394c915e8b8e03f28be4dcf26f2", "score": "0.4795086", "text": "@Override\n public Filter getFilter() {\n return new Filter() {\n @Override\n protected FilterResults performFiltering(CharSequence charSequence) {\n String charString = charSequence.toString();\n if (charString.isEmpty()) {\n mFilteredData = mData;\n } else {\n List<Outlet> filteredList = new ArrayList<>();\n for (Outlet outlet : mData) {\n\n // name match condition. this might differ depending on your requirement\n // here we are looking for name or phone number match\n if (outlet.name.toLowerCase().contains(charString.toLowerCase()) ||\n outlet.type.name.toLowerCase().contains(charString.toLowerCase()) ||\n Integer.toString(outlet.agentId).contains(charSequence) ||\n Integer.toString(outlet.id).contains(charSequence) )\n {\n filteredList.add(outlet);\n }\n }\n\n mFilteredData = filteredList;\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = mFilteredData;\n return filterResults;\n }\n\n @Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n mFilteredData = (ArrayList<Outlet>) results.values;\n notifyDataSetChanged();\n }\n };\n }", "title": "" }, { "docid": "2638cbee7322c26f6b038bb5f16119d4", "score": "0.47932276", "text": "public String getSearchQuery() {\n String result = mName + \" \" + mType;\n for (int i = 0; i < result.length(); i++) {\n if (result.substring(i, i + 1).equals(\" \")) {\n result = result.substring(0, i) + \"+\" + result.substring(i + 1);\n }\n }\n\n return result;\n }", "title": "" }, { "docid": "8e3870ede66bc28a94ee7088176873dd", "score": "0.47862574", "text": "public String getFilter()\r\n\t{\r\n\t\treturn filter;\r\n\t}", "title": "" }, { "docid": "e0c7f1731599d027b2115b26352ec90c", "score": "0.4784005", "text": "public String[] getFilterNames ( ) {\r\n\t\tString[] names = new String[list_name.size()];\r\n\t\tfor (int i = 0 ; i < list_name.size() ; i++)\r\n\t\t\tnames[i] = (String)list_name.elementAt(i);\r\n\t\treturn names;\r\n\t}", "title": "" }, { "docid": "f18cb443f39f5a8dbcc408d35314db8c", "score": "0.4781133", "text": "public static String[] filtreShort(String[] noms) {\n ArrayList<String> nameList = new ArrayList<String>();\n\n for (String name : noms) {\n if (name.length() > 2) {\n nameList.add(name);\n }\n }\n String[] nameArray = nameList.toArray(new String[nameList.size()]);\n\n return nameArray;\n }", "title": "" }, { "docid": "d0a33f6c7092a4ea76d6dd3f4eec17c7", "score": "0.47756964", "text": "String getFilterName();", "title": "" }, { "docid": "860c27bc9fd05ced954b0cd622bc0f78", "score": "0.47711274", "text": "public String getFilterText() {\r\n return filterText;\r\n }", "title": "" }, { "docid": "3b709dda7c6411c0a9e216e5ea7fecd2", "score": "0.47507074", "text": "public String toString() {\n String and = \"\";\n StringBuilder sb = new StringBuilder();\n for (EventParameter param : map.values()) {\n sb.append(and);\n sb.append(param.toString());\n and = \" and \";\n }\n return sb.toString();\n }", "title": "" } ]
7ecc147413ff5d5e7e774bd0a79bb68d
Any metadata attached to the method. repeated .google.protobuf.Option options = 6;
[ { "docid": "f53284430bf5dfbbfea3c863dfe9d1b7", "score": "0.53454757", "text": "public java.util.List<com.google.protobuf.Option> getOptionsList() {\n return java.util.Collections.unmodifiableList(\n instance.getOptionsList());\n }", "title": "" } ]
[ { "docid": "8601a09762cbd4cb69ef39e30db0535f", "score": "0.6308663", "text": "public interface CmdOptions {\n /*@Option(shortName = \"w\", longName = \"wait\", defaultValue = \"0\",\n description = \"Don't start publishing until \"\n + \"this many clients have connected\")\n int getWaitForNumClients();*/\n\n /*@Option(shortName = \"n\", longName = \"num_types\",\n description = \"Send this many types of messages.\")\n int getNumMessageTypes();*/\n\n @Option(shortName = \"h\", defaultValue = \"localhost\",\n description = \"Connection address to set up for subscribers\")\n String getHost();\n\n @Option(shortName = \"f\", defaultValue = \"metadata_schema.csv\",\n description = \"Metadata schema configuration file name\")\n String getFilename();\n\n @Option(shortName = \"p\", defaultValue = \"61619\",\n description = \"Port to set up for subscribers\")\n int getPort();\n\n @Option(shortName = \"d\", defaultValue = \"30\",\n description = \"Number of seconds to test for\")\n int getDuration();\n\n @Option(helpRequest = true, description = \"Print this help message\")\n boolean getHelp();\n }", "title": "" }, { "docid": "6e849332a0aa481bc8f056b75960467a", "score": "0.6234617", "text": "com.google.protobuf.ByteString\n getOptionsBytes();", "title": "" }, { "docid": "8829575fd411148392d2e17fa5ca1382", "score": "0.6066978", "text": "public java.util.List<? extends com.google.protobuf.OptionOrBuilder> \n getOptionsOrBuilderList() {\n return options_;\n }", "title": "" }, { "docid": "8829575fd411148392d2e17fa5ca1382", "score": "0.6066978", "text": "public java.util.List<? extends com.google.protobuf.OptionOrBuilder> \n getOptionsOrBuilderList() {\n return options_;\n }", "title": "" }, { "docid": "ef1917f4047fb1b427798ff42abf7176", "score": "0.5889602", "text": "@Override\n public Map<String, String> getOptions() {\n return options;\n }", "title": "" }, { "docid": "addd0687c53c6ac44bb22d7a61c60dbc", "score": "0.58695936", "text": "@ApiModelProperty(required = true, value = \"The driver specific options used when creating the volume. \")\n @NotNull\n\n\n public Map<String, String> getOptions() {\n return options;\n }", "title": "" }, { "docid": "931845377b4485647a53bc0eaabb2ec6", "score": "0.58473366", "text": "java.lang.String getOptions();", "title": "" }, { "docid": "9743ecdfc94f3a8ed84ffc02ff870066", "score": "0.58457375", "text": "public java.util.List<com.google.protobuf.Option> getOptionsList() {\n return options_;\n }", "title": "" }, { "docid": "9743ecdfc94f3a8ed84ffc02ff870066", "score": "0.58457375", "text": "public java.util.List<com.google.protobuf.Option> getOptionsList() {\n return options_;\n }", "title": "" }, { "docid": "7971c07a85b9674698decd83b8a76fec", "score": "0.581782", "text": "net.devh.boot.grpc.examples.lib.MetaDataOrBuilder getMetadataOrBuilder();", "title": "" }, { "docid": "f0d491b2fb92e47ef3a2c4549881c844", "score": "0.5737896", "text": "public int getOptions();", "title": "" }, { "docid": "674fe3f5f718ce7030132836d3e7f795", "score": "0.5710267", "text": "public int options()\r\n/* 33: */ {\r\n/* 34: 87 */ return (int)this.info[5];\r\n/* 35: */ }", "title": "" }, { "docid": "82b30d893bac576e8f7a547752f8e9a8", "score": "0.5686499", "text": "public com.google.protobuf.Option.Builder addOptionsBuilder() {\n return getOptionsFieldBuilder().addBuilder(\n com.google.protobuf.Option.getDefaultInstance());\n }", "title": "" }, { "docid": "c1d220707592e8631777b053db0d601a", "score": "0.5634627", "text": "public Options getOptions() {\n return options;\n }", "title": "" }, { "docid": "f1f25bdff783b0ef9c8fbdcec1227fdf", "score": "0.5631996", "text": "public List<IOption> getOptions();", "title": "" }, { "docid": "8f6e87d2786eedbd63051e317fedad1e", "score": "0.5631092", "text": "@Override\r\n\t\tpublic void addLayoutOption(MethodGraphLayoutOption option) {\n\t\t}", "title": "" }, { "docid": "e52de8e3cc237cfa77c8682cb82daa81", "score": "0.55955654", "text": "public java.util.List<? extends com.google.protobuf.OptionOrBuilder> \n getOptionsOrBuilderList() {\n if (optionsBuilder_ != null) {\n return optionsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(options_);\n }\n }", "title": "" }, { "docid": "a2ef9c4df0f1d76b88b0db52c2617180", "score": "0.55339557", "text": "public String getOptions() {\r\n return this.options;\r\n }", "title": "" }, { "docid": "5e6ff1f5d5351f968940ca086988434c", "score": "0.55316186", "text": "@Override\r\n public String [] getOptions() {\r\n\r\n Vector<String> options = new Vector<String>();\r\n \r\n options.add(\"-P\"); \r\n options.add(\"\" + getBagSizePercent());\r\n\r\n if (getCalcOutOfBag()) { \r\n options.add(\"-O\");\r\n }\r\n\r\n if (getRepresentCopiesUsingWeights()) {\r\n options.add(\"-represent-copies-using-weights\");\r\n }\r\n\r\n Collections.addAll(options, super.getOptions());\r\n \r\n return options.toArray(new String[0]);\r\n }", "title": "" }, { "docid": "5e80cc6edea26e87a816e5fe93f69663", "score": "0.5531313", "text": "public abstract String getMyOptions();", "title": "" }, { "docid": "61a0c317b4feacd008b2cd40272d971f", "score": "0.5524935", "text": "net.devh.boot.grpc.examples.lib.MetaData getMetadata();", "title": "" }, { "docid": "cd4e6c34711d0b804247ffa5b11b0e52", "score": "0.5496805", "text": "private Options()\n {\n \t// ...\n }", "title": "" }, { "docid": "5df3d407f8c39558bcbd3263492fa3b2", "score": "0.54835", "text": "private Options() {\n }", "title": "" }, { "docid": "6d82fe85e94c4853721af22f14186f4f", "score": "0.54757524", "text": "public java.lang.String getOptions() {\n java.lang.Object ref = options_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n options_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "6b24c775292dee9d14832c65a4ba44a4", "score": "0.5463706", "text": "public InstanceMetadataOptions getMetadataOptions() {\n return this.metadataOptions;\n }", "title": "" }, { "docid": "93aed8fa9aac6697494314f835f07d03", "score": "0.5459425", "text": "com.google.protobuf.ByteString getInfo();", "title": "" }, { "docid": "93aed8fa9aac6697494314f835f07d03", "score": "0.5459425", "text": "com.google.protobuf.ByteString getInfo();", "title": "" }, { "docid": "47b4750786ea192cd1a1c808986caf8d", "score": "0.54516256", "text": "@Override\n public void parserOptions(final MutableDataHolder options) {\n\n }", "title": "" }, { "docid": "8fdf9a78dc4b9a66b5b9d3a594eeda75", "score": "0.5429754", "text": "public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder(\n int index) {\n if (optionsBuilder_ == null) {\n return options_.get(index); } else {\n return optionsBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "ab9059c0be7c523438a0b76926494cd1", "score": "0.5426365", "text": "public java.util.List<com.google.protobuf.Option> getOptionsList() {\n if (optionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(options_);\n } else {\n return optionsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "c39a82b63cf4875af083c0a395a77e6f", "score": "0.5426162", "text": "@Override\r\n public Enumeration<Option> listOptions() {\r\n\r\n Vector<Option> newVector = new Vector<Option>(3);\r\n\r\n newVector.addElement(new Option(\r\n \"\\tSize of each bag, as a percentage of the\\n\" \r\n + \"\\ttraining set size. (default 100)\",\r\n \"P\", 1, \"-P\"));\r\n newVector.addElement(new Option(\r\n \"\\tCalculate the out of bag error.\",\r\n \"O\", 0, \"-O\"));\r\n newVector.addElement(new Option(\r\n \"\\tRepresent copies of instances using weights rather than explicitly.\",\r\n \"-represent-copies-using-weights\", 0, \"-represent-copies-using-weights\"));\r\n\r\n newVector.addAll(Collections.list(super.listOptions()));\r\n \r\n return newVector.elements();\r\n }", "title": "" }, { "docid": "289163b9a1f182edb327ecdc65f4f56d", "score": "0.54242635", "text": "public Options getOptions()\n\t{\n\t\treturn options;\n\t}", "title": "" }, { "docid": "3b85f1ed54d37a23d272148fb7583f21", "score": "0.5423562", "text": "public String[] getOptions() {\n return this.options;\n }", "title": "" }, { "docid": "ca18de04a4ce9d0555bd533032be35f4", "score": "0.54207313", "text": "public java.lang.String getOptions() {\n java.lang.Object ref = options_;\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 options_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "31f11d9c28e8bcaeeb07943a6b068574", "score": "0.5413698", "text": "public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder(\n int index) {\n return options_.get(index);\n }", "title": "" }, { "docid": "31f11d9c28e8bcaeeb07943a6b068574", "score": "0.5413698", "text": "public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder(\n int index) {\n return options_.get(index);\n }", "title": "" }, { "docid": "10e1df45cb1a6bbd3a42d8a662c3a1a0", "score": "0.5382048", "text": "public int getOptions()\n\t{\n\t\treturn field_5_options;\n\t}", "title": "" }, { "docid": "bedc85bc8c9fc1c073603114874bce4e", "score": "0.5360536", "text": "@SuppressWarnings(\"static-access\")\n\tpublic static Options getCmdLineOptions(){\n\t\tOptions options = new Options();\n\t\toptions.addOption(OptionBuilder.withArgName(\"annotationPath\").hasArg().withDescription(\"Path to the GTF file containing the transcript/gene relationship\").create(MIBAT.OPT_PATH_ANNOTATION));\n\t\toptions.addOption(OptionBuilder.withArgName(\"results.xprs\").hasArg().withDescription(\"[optional] Text file containing RNA-seq transcript expression quantifications from eXpress\").create(\"e\"));\n\t\toptions.addOption(OptionBuilder.withArgName(\"footprint alignments\").hasArg().withDescription(\"SAM/BAM file containing alignments against the transcriptome\").create(\"f\"));\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"outputPrefix\").withArgName(\"outputPath\").hasArg().withDescription(\"Output prefix for results\").create(\"o\"));\n\t\toptions.addOption(OptionBuilder.withLongOpt(\"sample\").withDescription(\"Output sampling of read alignments based on EM transcript likelihoods\").create(\"s\"));\n\t\toptions.addOption(OptionBuilder.withArgName(\"maxIterations_EM\").hasArg().withDescription(\"Maximum number of EM iterations [default: 500]\").create(\"N\"));\n\t\toptions.addOption(OptionBuilder.withArgName(\"double\").hasArg().withDescription(\"Criteria for EM convergence [default: 0.0001]\").create(\"c\"));\n\t\toptions.addOption(OptionBuilder.withDescription(\"Write all genes/transcripts, even those with no observed footprints\").create(\"v\"));\n\t\toptions.addOption(OptionBuilder.withDescription(\"Count only footprints in the CDS (where available)\").create(\"cds\"));\n\t\toptions.addOption(OptionBuilder.withDescription(\"Include frame information for the footprints in the EM [automatically adds --cds]\").create(\"useFrame\"));\n\t\toptions.addOption(OptionBuilder.withDescription(\"Keep intermediate files\").create(\"DEV\"));\n\t\toptions.addOption(OptionBuilder.withDescription(\"Do not print progress to stderr\").create(\"noprog\"));\n\t\treturn options;\n\t}", "title": "" }, { "docid": "8018f278735b221ab991b030acd967a0", "score": "0.53583246", "text": "@Override\n public void options() {\n getConfig().options().copyDefaults(true).copyHeader(true);\n\n }", "title": "" }, { "docid": "b28a886e547541a810497d633c7cf2fc", "score": "0.53374475", "text": "private String commandHelp(Class<?> clazz) {\n final Cmd cmd = clazz.getAnnotation(Cmd.class);\n final StringBuilder sb = new StringBuilder(\"\\nUseage of \")\n .append(cmd.named())\n .append(\" :\\n\\n\");\n\n sb.append(\"\\t\");\n\n final StringBuilder sbOp = new StringBuilder();\n for (Field f : clazz.getDeclaredFields()) {\n\n if (f.isAnnotationPresent(NamedArg.class)) {\n final NamedArg namedArg = f.getAnnotation(NamedArg.class);\n sbOp.append(namedArg.named());\n if (namedArg.hasValue()) {\n sbOp.append(\":\");\n }\n }\n\n }\n if (sbOp.length() > 0) {\n sb.append(\"-[\").append(sbOp).append(\"]\").append(\" \");\n }\n\n for (Field f : clazz.getDeclaredFields()) {\n if (f.isAnnotationPresent(IndexArg.class)) {\n final IndexArg indexArg = f.getAnnotation(IndexArg.class);\n sb.append(indexArg.name()).append(\" \");\n }\n }\n\n sb.append(\"\\n\");\n sb.append(\"\\t\").append(cmd.desc()).append(\"\\n\\n\");\n\n\n int maxCol = 10;\n boolean hasOptions = false;\n for (Field f : clazz.getDeclaredFields()) {\n if (f.isAnnotationPresent(IndexArg.class)) {\n final IndexArg indexArg = f.getAnnotation(IndexArg.class);\n maxCol = Math.max(indexArg.name().length(), maxCol);\n hasOptions = true;\n }\n if (f.isAnnotationPresent(NamedArg.class)) {\n final NamedArg namedArg = f.getAnnotation(NamedArg.class);\n maxCol = Math.max(namedArg.named().length(), maxCol);\n hasOptions = true;\n }\n\n }\n\n if (hasOptions) {\n\n sb.append(\"\\nOptions :\\n\\n\");\n for (Field f : clazz.getDeclaredFields()) {\n if (f.isAnnotationPresent(NamedArg.class)) {\n final NamedArg namedArg = f.getAnnotation(NamedArg.class);\n final String named = \"[\" + namedArg.named() + (namedArg.hasValue() ? \":\" : \"\") + \"]\";\n final int diff = Math.max(maxCol, named.length()) - named.length();\n for (int i = 0; i < diff + 2; i++) {\n sb.append(\" \");\n }\n sb.append(named).append(\" : \");\n sb.append(namedArg.description());\n sb.append(\"\\n\");\n\n int len = diff + 2 + named.length() + 3;\n if (!isBlank(namedArg.description2())) {\n\n for (String split : split(namedArg.description2(), \"\\n\")) {\n for (int j = 0; j < len; j++) {\n sb.append(\" \");\n }\n sb.append(split).append(\"\\n\");\n }\n\n }\n\n }\n }\n\n for (Field f : clazz.getDeclaredFields()) {\n if (f.isAnnotationPresent(IndexArg.class)) {\n final IndexArg indexArg = f.getAnnotation(IndexArg.class);\n final int diff = Math.max(maxCol, indexArg.name().length()) - indexArg.name().length();\n for (int i = 0; i < diff + 2; i++) {\n sb.append(\" \");\n }\n sb.append(indexArg.name()).append(\" : \");\n sb.append(indexArg.description());\n sb.append(\"\\n\");\n\n int len = diff + 2 + indexArg.name().length() + 3;\n if (!isBlank(indexArg.description2())) {\n\n for (String split : split(indexArg.description2(), \"\\n\")) {\n for (int j = 0; j < len; j++) {\n sb.append(\" \");\n }\n sb.append(split).append(\"\\n\");\n }\n\n }\n\n }\n }\n\n }\n\n\n if (cmd.eg() != null\n && cmd.eg().length > 0) {\n sb.append(\"\\nExample : \\n\\n\");\n for (String eg : cmd.eg()) {\n sb.append(\" \").append(eg).append(\"\\n\");\n }\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "baf03e875773c491c9b462f83f2db8f8", "score": "0.53260416", "text": "private List<String> options() {\n return Lists.newArrayList(ConcourseShell.getAccessibleApiMethods());\n }", "title": "" }, { "docid": "a9fa8b34a8261b6029863593974bbe8f", "score": "0.53199726", "text": "public Future<Object> getMethodHelp(String methodName) throws DynamicCallException, ExecutionException {\n return call(\"getMethodHelp\", methodName);\n }", "title": "" }, { "docid": "807af1bffc73ab0d2b89393234315da9", "score": "0.5307944", "text": "public Collection getOptions() {\n return options;\n }", "title": "" }, { "docid": "78f8073931d19fc3dc705c3bacccbb4e", "score": "0.5307559", "text": "@NonNull\n public Options getOptions() {\n return options;\n }", "title": "" }, { "docid": "b927edc12d55692f8f73bb057378d541", "score": "0.530142", "text": "private static MethodDescriptor[] getMdescriptor() {\n final MethodDescriptor[] methods = new MethodDescriptor[36];\n\n try {\n methods[METHOD_addAttribute0] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"addAttribute\", new Class[] {\n java.lang.String.class, java.lang.Object.class})); // NOI18N\n methods[METHOD_addAttribute0].setDisplayName(\"\");\n methods[METHOD_addAttribute1] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"addAttribute\", new Class[] {\n java.lang.String.class, int.class, java.lang.Object.class})); // NOI18N\n methods[METHOD_addAttribute1].setDisplayName(\"\");\n methods[METHOD_addChild2] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"addChild\", new Class[] {\n java.lang.String.class, com.google.protobuf.Message.class})); // NOI18N\n methods[METHOD_addChild2].setDisplayName(\"\");\n methods[METHOD_addChild3] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"addChild\",\n new Class[] {java.lang.String.class})); // NOI18N\n methods[METHOD_addChild3].setDisplayName(\"\");\n methods[METHOD_addChild4] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"addChild\", new Class[] {\n java.lang.String.class, int.class, com.google.protobuf.Message.class})); // NOI18N\n methods[METHOD_addChild4].setDisplayName(\"\");\n methods[METHOD_addChild5] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"addChild\", new Class[] {\n java.lang.String.class, int.class})); // NOI18N\n methods[METHOD_addChild5].setDisplayName(\"\");\n methods[METHOD_build6] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"build\", new Class[] {})); // NOI18N\n methods[METHOD_build6].setDisplayName(\"\");\n methods[METHOD_buildPartial7] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"buildPartial\",\n new Class[] {})); // NOI18N\n methods[METHOD_buildPartial7].setDisplayName(\"\");\n methods[METHOD_clear8] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"clear\", new Class[] {})); // NOI18N\n methods[METHOD_clear8].setDisplayName(\"\");\n methods[METHOD_clone9] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"clone\", new Class[] {})); // NOI18N\n methods[METHOD_clone9].setDisplayName(\"\");\n methods[METHOD_getAttribute10] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"getAttribute\",\n new Class[] {java.lang.String.class})); // NOI18N\n methods[METHOD_getAttribute10].setDisplayName(\"\");\n methods[METHOD_getAttribute11] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"getAttribute\", new Class[] {\n java.lang.String.class, int.class})); // NOI18N\n methods[METHOD_getAttribute11].setDisplayName(\"\");\n methods[METHOD_getChild12] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"getChild\",\n new Class[] {java.lang.String.class})); // NOI18N\n methods[METHOD_getChild12].setDisplayName(\"\");\n methods[METHOD_getChild13] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"getChild\", new Class[] {\n java.lang.String.class, int.class})); // NOI18N\n methods[METHOD_getChild13].setDisplayName(\"\");\n methods[METHOD_isAttribute14] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"isAttribute\",\n new Class[] {java.lang.String.class})); // NOI18N\n methods[METHOD_isAttribute14].setDisplayName(\"\");\n methods[METHOD_isFieldIndexed15] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"isFieldIndexed\",\n new Class[] {java.lang.String.class})); // NOI18N\n methods[METHOD_isFieldIndexed15].setDisplayName(\"\");\n methods[METHOD_mergeFrom16] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"mergeFrom\",\n new Class[] {com.google.protobuf.Message.class})); // NOI18N\n methods[METHOD_mergeFrom16].setDisplayName(\"\");\n methods[METHOD_newSavePoint17] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"newSavePoint\",\n new Class[] {})); // NOI18N\n methods[METHOD_newSavePoint17].setDisplayName(\"\");\n methods[METHOD_removeAttribute18] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"removeAttribute\",\n new Class[] {java.lang.String.class})); // NOI18N\n methods[METHOD_removeAttribute18].setDisplayName(\"\");\n methods[METHOD_removeAttribute19] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"removeAttribute\",\n new Class[] {java.lang.String.class, int.class})); // NOI18N\n methods[METHOD_removeAttribute19].setDisplayName(\"\");\n methods[METHOD_removeChild20] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"removeChild\",\n new Class[] {java.lang.String.class})); // NOI18N\n methods[METHOD_removeChild20].setDisplayName(\"\");\n methods[METHOD_removeChild21] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"removeChild\", new Class[] {\n java.lang.String.class, int.class})); // NOI18N\n methods[METHOD_removeChild21].setDisplayName(\"\");\n methods[METHOD_setAttribute24] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"setAttribute\", new Class[] {\n java.lang.String.class, java.lang.Object.class})); // NOI18N\n methods[METHOD_setAttribute24].setDisplayName(\"\");\n methods[METHOD_setAttribute25] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"setAttribute\", new Class[] {\n java.lang.String.class, int.class, java.lang.Object.class})); // NOI18N\n methods[METHOD_setAttribute25].setDisplayName(\"\");\n methods[METHOD_setChild26] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"setChild\", new Class[] {\n java.lang.String.class, com.google.protobuf.Message.class})); // NOI18N\n methods[METHOD_setChild26].setDisplayName(\"\");\n methods[METHOD_setChild27] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"setChild\",\n new Class[] {java.lang.String.class})); // NOI18N\n methods[METHOD_setChild27].setDisplayName(\"\");\n methods[METHOD_setChild28] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"setChild\", new Class[] {\n java.lang.String.class, int.class, com.google.protobuf.Message.class})); // NOI18N\n methods[METHOD_setChild28].setDisplayName(\"\");\n methods[METHOD_setChild29] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"setChild\", new Class[] {\n java.lang.String.class, int.class})); // NOI18N\n methods[METHOD_setChild29].setDisplayName(\"\");\n methods[METHOD_size30] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"size\", new Class[] {})); // NOI18N\n methods[METHOD_size30].setDisplayName(\"\");\n methods[METHOD_toChild31] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"toChild\",\n new Class[] {java.lang.String.class})); // NOI18N\n methods[METHOD_toChild31].setDisplayName(\"\");\n methods[METHOD_toChild32] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"toChild\", new Class[] {\n java.lang.String.class, int.class})); // NOI18N\n methods[METHOD_toChild32].setDisplayName(\"\");\n methods[METHOD_toLastChild33] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"toLastChild\",\n new Class[] {java.lang.String.class})); // NOI18N\n methods[METHOD_toLastChild33].setDisplayName(\"\");\n methods[METHOD_toParent34] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"toParent\", new Class[] {})); // NOI18N\n methods[METHOD_toParent34].setDisplayName(\"\");\n methods[METHOD_toRoot35] =\n new MethodDescriptor(DynamicMessage.Builder.class.getMethod(\"toRoot\", new Class[] {})); // NOI18N\n methods[METHOD_toRoot35].setDisplayName(\"\");\n } catch (final Exception e) {\n }// GEN-HEADEREND:Methods\n // Here you can add code for customizing the methods array.\n\n return methods;\n }", "title": "" }, { "docid": "f4b22f3b9cb6b0b89a15db4c04a1ff4b", "score": "0.53008544", "text": "public Options getOptions() {\n\t\treturn options;\n\t}", "title": "" }, { "docid": "cd4338fa0fb0e05d847bd2d0858bc03e", "score": "0.52951306", "text": "public abstract PnDcp_BlockOptions getOption();", "title": "" }, { "docid": "542d76c4ece4e66ecf14bb272d1334f5", "score": "0.52912855", "text": "public String[] getOptions(){\n\t\treturn options;\n\t}", "title": "" }, { "docid": "85f0e69c96315e47e617a5468b5e06a1", "score": "0.52855086", "text": "public interface Options extends PipelineOptions { \n @Description(\n \"BigQuery table to write to, specified as \"\n + \"<project_id>:<dataset_id>.<table_id>. The dataset must already exist.\")\n @Validation.Required\n String getOutput();\n \n void setOutput(String value);\n \n @Description(\n \"BigQuery schema of the table to write to\")\n @Validation.Required\n TableSchema getOutputSchema();\n \n void setOutputSchema(TableSchema value);\n \n @Description(\n \"BigQuery expiration (seconds) of the table to write to\")\n @Validation.Required\n Integer getOutputTableExpirationSeconds();\n \n void setOutputTableExpirationSeconds(Integer value);\n\n @Validation.Required\n @Description(\"Temporary directory for BigQuery loading process\")\n ValueProvider<String> getBigQueryLoadingTemporaryDirectory();\n\n void setBigQueryLoadingTemporaryDirectory(ValueProvider<String> directory);\n }", "title": "" }, { "docid": "f0a078efda75e8a8b50e38d5e60f1a46", "score": "0.5272502", "text": "public com.google.protobuf.ByteString\n getOptionsBytes() {\n java.lang.Object ref = options_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n options_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "56ef1975797e2d013b32719b14dc820a", "score": "0.52718717", "text": "public VpcOptions getOptions() {\n return this.options;\n }", "title": "" }, { "docid": "deed8485bdbaf657bb9ba74b1833375d", "score": "0.52697307", "text": "@Override\n public String toString() {\n return option + \" \" + argument;\n }", "title": "" }, { "docid": "a279ff967751a778307d6b8072f1c9b0", "score": "0.52697074", "text": "private ServerMetadataResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "9c86f61010a58170db1f6e089d052370", "score": "0.52536464", "text": "protected Options getOptions()\n\t{\n\t\treturn options;\n\t}", "title": "" }, { "docid": "f1c76844cbcf61dd70e164f3855bd5d4", "score": "0.52502877", "text": "com.google.protobuf.ByteString\n getMethodBytes();", "title": "" }, { "docid": "7624d1e66dbf38d1c6b2b191d9559685", "score": "0.524703", "text": "public IOptionBuilder title();", "title": "" }, { "docid": "6dcb1cd6d3f5f5fd8c53b944a48aeefb", "score": "0.5244508", "text": "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "title": "" }, { "docid": "42eeade1c54d16ec883476649a2619f0", "score": "0.5240839", "text": "@Override\r\n public String getUsage() {\r\n return \"\"\r\n + \" -modernize : add Java 8 support (see the following sub-arguments)\\n\"\r\n + \" -finalize-fields mark all required fields as final\\n\"\r\n + \" -finalize-methods mark all implementation methods as final\\n\"\r\n + \" -privatize-fields mark all implementation fields as private\\n\"\r\n + \" -j8-optional return Optional from nullable getters\\n\"\r\n + \" -JSR303 add nullability annotations from Bean Validation API (v1.0)\\n\"\r\n + \" -JSR349 add nullability annotations from Bean Validation API (v1.1)\\n\"\r\n + \" -JSR305 add nullability annotations from Annotations for Software Defect Detection\\n\"\r\n + \" -findbugs add nullability annotations from Findbugs\\n\"\r\n + \" -lombok add nullability annotations from Project Lombok\\n\"\r\n + \" -android add nullability annotations from Android's support-annotations package\"\r\n ;\r\n }", "title": "" }, { "docid": "1e041694a1401e6c54037dac39d8f074", "score": "0.52400935", "text": "public byte[] getRequestedParams() { return getOption(55); }", "title": "" }, { "docid": "1b5aade4a5a8c44c4915331b1e119ea1", "score": "0.5231233", "text": "com.google.protobuf.ByteString\n getMetaBytes();", "title": "" }, { "docid": "f5a500bc0b6324aaa852246a7fea33d3", "score": "0.52261955", "text": "private static String methodDescriptor(Method m) {\n\t\tMethodType type = m.getType();\n\t\tif (m.isConstructor())\n\t\t\ttype = type.withReturnType(type.getTypeFactory().getVoidType());\n\t\tif (m.hasReceiver())\n\t\t\ttype = type.dropFirstArgument();\n\t\treturn type.getDescriptor();\n\t}", "title": "" }, { "docid": "bfb637446ff0bd43a7a3f997862f19f7", "score": "0.5211577", "text": "private VariantSetMetadata(com.google.protobuf.GeneratedMessage.Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "4d8ec03aa00540ca39f17495bec67745", "score": "0.5209625", "text": "public OptionsApiResponse() {\n }", "title": "" }, { "docid": "ea0632795de63f879996328b26a399b5", "score": "0.52058053", "text": "public final Map<ChannelOption<?>, Object> options() {\n return copiedMap(this.options);\n }", "title": "" }, { "docid": "cafab63bfe64e604edde8c5cd5fbaf4f", "score": "0.51946616", "text": "public DynamicMap getOptions() {\n\t\treturn _content.getNullableMap(\"options\");\t\t\n\t}", "title": "" }, { "docid": "c7d36772d7ee28fe37ad613d638b65cc", "score": "0.518916", "text": "public com.google.protobuf.ByteString\n getOptionsBytes() {\n java.lang.Object ref = options_;\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 options_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "b5546e3a3dd6164a664fbbea1cc35462", "score": "0.5187201", "text": "private Options setUpOptions() {\n \tOptions options = new Options();\n \toptions.addOption(OptionalCommand.FilterByUser.opt(),\n \t\t\t\t\t\ttrue, \n \t\t\t\t\t\t\"filter by user\");\n \toptions.addOption(OptionalCommand.FilterByKeyword.opt(), \n \t\t\t\t\t\ttrue, \n \t\t\t\t\t\t\"filter by keyword\");\n \tOption hideWordsOption = new Option(OptionalCommand.HideBlackListWords.opt(), \n \t\t\t\t\t\ttrue, \n \t\t\t\t\t\t\"hide words\");\n \thideWordsOption.setOptionalArg(true);\n \thideWordsOption.setArgs(maxWordArgs); \t\n \toptions.addOption(hideWordsOption);\n \t\n \toptions.addOption(OptionalCommand.HideNumbers.opt(), \n \t\t\t\t\t\tfalse,\n \t\t\t\t\t\t\"hide credit card and phone numbers\");\n \toptions.addOption(OptionalCommand.ObfuscateUsernames.opt(),\n \t\t\t\t\t\tfalse, \n \t\t\t\t\t\t\"Obfuscate usernames\");\n \toptions.addOption(OptionalCommand.Report.opt(),\n \t\t\t\t\t\tfalse,\n \t\t\t\t\t\t\"Generates a report of user activity\");\n \t\n \treturn options;\n }", "title": "" }, { "docid": "b165f170304bb887fb476ca490cb5548", "score": "0.51850855", "text": "private ServerMetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "a4604781cc354e029624adb95c244fe7", "score": "0.5180663", "text": "private Info(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "a4604781cc354e029624adb95c244fe7", "score": "0.5180663", "text": "private Info(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "2a15caee300727ccf3dd99227f6db23e", "score": "0.5176303", "text": "public void setOptions(String[] options) {\n this.options = options;\n }", "title": "" }, { "docid": "409532176f52355f7ba04fbbb7d20375", "score": "0.51742256", "text": "public void updateOptions(Properties options);", "title": "" }, { "docid": "3cbe32ff98847892bb48268c750218c0", "score": "0.5162539", "text": "public interface MethodDescriptor {\n\n\t/**\n\t * \n\t * @return The name of the method.\n\t */\n\tpublic String getMethodName();\n\n /**\n * @see {@link AbstractAccessFlags}.\n * @return The access flags denoting the modifiers on the method.\n */\n\tpublic AccessFlags getAccessFlags();\n\n\t/**\n\t * Specifies the type of the method. \n\t * \n\t * @return The class method type.\n\t */\n\tpublic MethodType getMethodType();\n\n /**\n * \n * @return The string representation of the method return type.\n */\n public String getReturnType();\n \n /**\n * \n * @return A (possibly empty) list of the string representations of the method parameter types.\n */\n public List<String> getParameterTypes();\n\n /**\n * \n * @return A (possibly empty) collection of the fully-qualified class names of all exceptions throwable by the method. \n */\n public Collection<String> getExceptionTypes();\n\n}", "title": "" }, { "docid": "36776e0485ffaaead9f063a0fc17b375", "score": "0.51619947", "text": "public Object getMethodHelp(String methodName) throws DynamicCallException, ExecutionException {\n return (Object)call(\"getMethodHelp\", methodName).get();\n }", "title": "" }, { "docid": "0ae1f195248fb578c03b2ec19d5e92b3", "score": "0.5160653", "text": "public Builder setOptionsBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n options_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "64802b8b05f81e08a43d09614ce9a69c", "score": "0.5152949", "text": "@Override\n\tpublic EmbedBuilder help() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ddd1273531a4fc01e0865925d6b9b1dd", "score": "0.51524305", "text": "protomsg.CoincheMsg.ServerMsg.InfoOrBuilder getInfoOrBuilder();", "title": "" }, { "docid": "0a5309bb01796a4c97598099eb9163d2", "score": "0.5148063", "text": "com.microsoft.schemas.xrm._2011.metadata.BooleanOptionSetMetadata addNewOptionSet();", "title": "" }, { "docid": "27db10f045683a6774228e8db1311522", "score": "0.51401633", "text": "public BitmapFactory.Options getOptions()\n {\n return mOptions;\n }", "title": "" }, { "docid": "e82db8da9ff331f5d349ef368e5d8d0b", "score": "0.5135897", "text": "private void addOptions(com.google.protobuf.Option value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureOptionsIsMutable();\n options_.add(value);\n }", "title": "" }, { "docid": "b881f83a48ef880e69f76c732850ffcf", "score": "0.51352525", "text": "@Override\n public String getHelp() {\n return \"Generates a Go server library with the gin framework using OpenAPI-Generator.\"\n + \"By default, it will also generate service classes.\";\n }", "title": "" }, { "docid": "ff30e7a73ac1a238e60d1dbde7e74e30", "score": "0.5134677", "text": "public com.google.protobuf.Option getOptions(int index) {\n if (optionsBuilder_ == null) {\n return options_.get(index);\n } else {\n return optionsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "dd59c8442b9be91ce8b0ddd3557f216d", "score": "0.5132474", "text": "@Override\r\n public void setOptions(String[] options) throws Exception {\r\n\r\n String bagSize = Utils.getOption('P', options);\r\n if (bagSize.length() != 0) {\r\n setBagSizePercent(Integer.parseInt(bagSize));\r\n } else {\r\n setBagSizePercent(100);\r\n }\r\n\r\n setCalcOutOfBag(Utils.getFlag('O', options));\r\n\r\n setRepresentCopiesUsingWeights(Utils.getFlag(\"represent-copies-using-weights\", options));\r\n\r\n super.setOptions(options);\r\n \r\n Utils.checkForRemainingOptions(options);\r\n }", "title": "" }, { "docid": "3140e0c06aa85440e7955589453dc4a0", "score": "0.51288974", "text": "@Override\n\tpublic Enumeration<Option> listOptions() {\n\t\tfinal List<Option> result = new ArrayList<Option>();\n\n\t\tresult.add(new Option(\n\t\t\t\t\"\\tSpecifies list of columns to used in the calculation of the \\n\"\n\t\t\t\t\t\t+ \"\\tdistance. 'first' and 'last' are valid indices.\\n\" + \"\\t(default: first-last)\",\n\t\t\t\t\"R\", 1, \"-R <col1,col2-col4,...>\"));\n\n\t\tresult.add(new Option(\"\\tInvert matching sense of column indices.\", \"V\", 0, \"-V\"));\n\n\t\treturn Collections.enumeration(result);\n\t}", "title": "" }, { "docid": "87c44a489a541540c84d48f456c4c087", "score": "0.51230305", "text": "public boolean areOptionsSupported(int requiredOptions) {\n return false;\r\n}", "title": "" }, { "docid": "3ee5d9829ee7b90e278cfcd0eb9a028f", "score": "0.51223487", "text": "static void addOptions(Options o){\n o.addOption(\"str\", \"singleThreadRead\", false, \"Use a single thread for file reading\");\n o.addOption(\"v1r\",\"version1Read\", false, \"Use old (version 1) CSVFileReader\");\n o.addOption(\"kaf\",\"keepAllFiles\", false, \"keep all temporary files\");\n }", "title": "" }, { "docid": "42838d263f084eee04a7bdc8d58eeb03", "score": "0.5117057", "text": "com.google.protobuf.ByteString\n getMethodBytes();", "title": "" }, { "docid": "03d0f8a1e2e856b76b930479d875ce2f", "score": "0.5115819", "text": "@JsType(isNative = true)\npublic interface ModifyOptions extends Options {\n\n\t/**\n\t * A function that takes an ol.MapBrowserEvent and returns a boolean to\n\t * indicate whether that event will be considered to add or move a vertex to\n\t * the sketch. Default is ol.events.condition.primaryAction.\n\t * \n\t * @param function\n\t */\n\t@JsProperty\n\tvoid setCondition(GenericFunction<?, ?> function);\n\n\t/**\n\t * A function that takes an ol.MapBrowserEvent and returns a boolean to\n\t * indicate whether that event should be handled. By default,\n\t * ol.events.condition.singleClick with ol.events.condition.noModifierKeys\n\t * results in a vertex deletion.\n\t * \n\t * @param function\n\t */\n\t@JsProperty\n\tvoid setDeleteCondition(GenericFunction<?, ?> function);\n\n\t/**\n\t * Pixel tolerance for considering the pointer close enough to a segment or\n\t * vertex for editing. Default is 10.\n\t * \n\t * @param clickTolerance\n\t */\n\t@JsProperty\n\tvoid setPixelTolerance(int clickTolerance);\n\n\t/**\n\t * Style used for the features being modified. By default the default edit\n\t * style is used (see ol.style).\n\t * \n\t * @param styleFunction\n\t */\n\t@JsProperty\n\tvoid setStyle(GenericFunction<?, ?> styleFunction);\n\n\t/**\n\t * The features the interaction works on. Required.\n\t * \n\t * @param features\n\t */\n\t@JsProperty\n\tvoid setFeatures(Collection<Feature> features);\n\n\t/**\n\t * Wrap the world horizontally on the sketch overlay. Default is false.\n\t * \n\t * @param wrapX\n\t */\n\t@JsProperty\n\tvoid setWrapX(boolean wrapX);\n\n}", "title": "" }, { "docid": "9b511916e4742804febb27ae40a5c492", "score": "0.5114656", "text": "public abstract MetaMethod[] getMethods();", "title": "" }, { "docid": "2bce31fc5f84c784a3a8fe153554de2b", "score": "0.5111812", "text": "public Enumeration listOptions() {\n \n Vector newVector = new Vector(5);\n newVector.addElement(new Option(\"\\tProduce debugging output.\\n\"\n\t\t\t\t + \"\\t(default no debugging output)\",\n\t\t\t\t \"D\", 0, \"-D\"));\n newVector.addElement(new Option(\"\\tSet the number of neighbors used to set\"\n\t\t\t\t + \" the kernel bandwidth.\\n\"\n\t\t\t\t + \"\\t(default all)\",\n\t\t\t\t \"K\", 1, \"-K <number of neighbours>\"));\n newVector.addElement(new Option(\"\\tSet the weighting kernel shape to use.\"\n\t\t\t\t + \" 1 = Inverse, 2 = Gaussian.\\n\"\n\t\t\t\t + \"\\t(default 0 = Linear)\",\n\t\t\t\t \"W\", 1,\"-W <number of weighting method>\"));\n newVector.addElement(new Option(\"\\tSet the attribute selection method\"\n\t\t\t\t + \" to use. 1 = None, 2 = Greedy.\\n\"\n\t\t\t\t + \"\\t(default 0 = M5' method)\",\n\t\t\t\t \"S\", 1, \"-S <number of selection method>\"));\n newVector.addElement(new Option(\"\\tDo not try to eliminate colinear\"\n\t\t\t\t + \" attributes.\\n\",\n\t\t\t\t \"C\", 0, \"-C\"));\n newVector.addElement(new Option(\"\\tSet ridge parameter (default 1.0e-8).\\n\",\n\t\t\t\t \"R\", 1, \"-R <double>\"));\n \n return newVector.elements();\n }", "title": "" }, { "docid": "4f5455bf4338f16a80ba7ee2f61e87ba", "score": "0.5103689", "text": "public boolean hasOptions() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "8c8d1d0fd82980263448881b8f5c9e33", "score": "0.5103507", "text": "public abstract MethodData getMethodData();", "title": "" }, { "docid": "2c8fd3160ff60c675ef2ebae96a7162b", "score": "0.51027006", "text": "private ModelMetadataResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "cd1de5e79bcb7e95b8a8a99963bdf4a0", "score": "0.50822765", "text": "public boolean hasOptions() {\n return fieldSetFlags()[8];\n }", "title": "" }, { "docid": "2a0f1d6e5111921ff083c90e98c03310", "score": "0.5080735", "text": "private ResponseCmdHeader(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "3f4ef066ab68951bf9f552bcb9946731", "score": "0.5080269", "text": "public Options()\n {\n }", "title": "" }, { "docid": "56cddaa0f32ec78d7216c5faaaa7b484", "score": "0.5077005", "text": "public boolean hasOptions() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "0d4fe212dd99e8cdbf5080e0cbef393d", "score": "0.50737995", "text": "public interface IMethodInfo {\n\n /**\n * @return name of the method\n */\n String getName();\n\n /**\n * @return parameters of the method\n */\n List<String> getParameters();\n\n /**\n * @return the return type of the method\n */\n String getReturnType();\n\n /**\n * @return exception of this method.\n */\n List<String> getExceptions();\n\n /**\n * @return descriptor of the method\n */\n String getDescriptor();\n\n /**\n * @return true if this method is transacted\n */\n boolean isTransacted();\n\n /**\n * @return AccessTimeout\n */\n IAccessTimeoutInfo getAccessTimeout();\n\n /**\n * @return locking strategy\n */\n ILockTypeInfo getLockType();\n\n /**\n * @return true if this method is afterBeginMethod\n */\n boolean isAfterBegin();\n\n /**\n * @return true if this method is beforeCompletionMethod\n */\n boolean isBeforeCompletion();\n\n /**\n * @return true if this method is afterCompletionMethod\n */\n boolean isAfterCompletion();\n\n\n}", "title": "" }, { "docid": "206ba1411db3802607aef68bc2d2db4b", "score": "0.50713056", "text": "@Override\n public Map<String, String> generateOptions() {\n Map<String, String> options = new HashMap<>(4);\n options.put(\"format\", getFormat());\n return options;\n }", "title": "" }, { "docid": "fafda513052f7081eb06e15b92b1599f", "score": "0.5070206", "text": "String getOption();", "title": "" } ]
112fb941c56f8aa18c3fe4cac76f10e0
repeated .DRG3010Q12grdPalistInfo items = 1;
[ { "docid": "94c45f63784bb67e5a057d629dfb0993", "score": "0.5828437", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfoOrBuilder getItemsOrBuilder(\n int index) {\n if (itemsBuilder_ == null) {\n return items_.get(index); } else {\n return itemsBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" } ]
[ { "docid": "8a9dc73d6ed19d061277d1316216222d", "score": "0.68134975", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo getItems(int index);", "title": "" }, { "docid": "b00bde1a3df0d7a40f08b9a6bdf896fd", "score": "0.6397263", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo> \n getItemsList();", "title": "" }, { "docid": "d4a55544d19d18eae3b7c38afe013e48", "score": "0.60550195", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfoOrBuilder getItemsOrBuilder(\n int index);", "title": "" }, { "docid": "bb3b02ef3a171d50b7487c182a42246d", "score": "0.6053381", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001Info> \n getLay9001ItemList();", "title": "" }, { "docid": "bb3b02ef3a171d50b7487c182a42246d", "score": "0.60531306", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001Info> \n getLay9001ItemList();", "title": "" }, { "docid": "c0a13e4865a6e0850bf37356e8434ff9", "score": "0.5998029", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo.Builder addItemsBuilder() {\n return getItemsFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "38a250552123b6ab6a6e7bd14d194ba9", "score": "0.5949437", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfoOrBuilder getItemsOrBuilder(\n int index) {\n return items_.get(index);\n }", "title": "" }, { "docid": "3421adfa22f6b347f4ff1eb4bb2610a2", "score": "0.5851394", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo getItems(int index) {\n return items_.get(index);\n }", "title": "" }, { "docid": "4e6cacf2082d91ff19d6eca9fe552ae3", "score": "0.5820049", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG9001R04lay9001RInfo getItems(int index);", "title": "" }, { "docid": "a28599a21b3dafae7d13c783bb58c616", "score": "0.58190376", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG9001R03lay9001RInfo getItems(int index);", "title": "" }, { "docid": "30d4e27b7b5b43eeb928992d55cb7452", "score": "0.58119524", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfoOrBuilder> \n getItemsOrBuilderList();", "title": "" }, { "docid": "67309113dd0e3164b6ce4267c34835f5", "score": "0.58029526", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG9001R04lay9001RInfo> \n getItemsList();", "title": "" }, { "docid": "2baf3fd1bcc2b44bc5a3df4a63364b03", "score": "0.57887095", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG9001R03lay9001RInfo> \n getItemsList();", "title": "" }, { "docid": "d1528f983188fb2b01263dc188784e6b", "score": "0.57814413", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo getItems(int index) {\n if (itemsBuilder_ == null) {\n return items_.get(index);\n } else {\n return itemsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "f498146aa0092b862b9c52f875f4859b", "score": "0.56552994", "text": "public lalr_item_set items() {return _items;}", "title": "" }, { "docid": "65c0e39565627cc42969591c903ad203", "score": "0.5605573", "text": "int getGrdDetailItemInfoCount();", "title": "" }, { "docid": "65c0e39565627cc42969591c903ad203", "score": "0.5605573", "text": "int getGrdDetailItemInfoCount();", "title": "" }, { "docid": "1af0c746c139b51db1e78ecc56999c38", "score": "0.5576714", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo.Builder getItemsBuilder(\n int index) {\n return getItemsFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "64b337b30b289235a64b71a7a6278182", "score": "0.5574994", "text": "public java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo> getItemsList() {\n return items_;\n }", "title": "" }, { "docid": "ac35c3d149b9314044404bbc88ceabcb", "score": "0.5561352", "text": "private void addItems(){\n //add item database to itemLIST\n items[0] = new ItemDTO(\"Apple\", 100, 0, 5);\n items[1] = new ItemDTO(\"Banana\", 150, 1, 5);\n items[2] = new ItemDTO(\"Orange\", 90, 2, 5);\n items[3] = new ItemDTO(\"Milk\", 70, 3, 5);\n items[4] = new ItemDTO(\"Coke\", 12, 4, 10);\n items[5] = new ItemDTO(\"Ham\", 50, 5, 15);\n items[6] = new ItemDTO(\"Toothbrush\", 30, 6, 20);\n items[7] = new ItemDTO(\"Shampoo\", 25, 7, 20);\n\n //for(int i = 0; i < items.length; i++){\n for (ItemDTO item : items) {\n if (item != null) {\n this.numberOfItems += 1;\n }\n }\n }", "title": "" }, { "docid": "4f3f272c184c6beb1a3674dd67e03004", "score": "0.5542212", "text": "private static void createItems() {\n breakItem = new CFancyItem(Material.DIAMOND_PICKAXE)\n .setDisplayname(\"§eBreak Collector\").setLore(Arrays.asList(required + Role.getByValue(Config.DESTROY_COLLECTOR_RANK).nicename,\n \"\", cycle)).addItemFlag(ItemFlag.HIDE_ATTRIBUTES).build();\n\n placeItem = new CFancyItem(Material.LEATHER_HELMET)\n .setDisplayname(\"§ePlace Collector\").setLore(Arrays.asList(required + Role.getByValue(Config.PLACE_COLLECTOR_RANK).nicename,\n \"\", cycle)).build();\n\n useItem = new CFancyItem(Material.DIAMOND)\n .setDisplayname(\"§eUse Collector\").setLore(Arrays.asList(required + Role.getByValue(Config.SELL_COLLECTOR_RANK).nicename,\n \"\", cycle)).build();\n }", "title": "" }, { "docid": "872c7850ed138fe098d23f9683031389", "score": "0.55215204", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3041P01grdChulgoJUSAOrderInfo> \n getItemsList();", "title": "" }, { "docid": "e179dec61f6652be092d224b76b88516", "score": "0.5521514", "text": "private void printItems(){\n int total = 0; \n int listSize = QuestInventory.getSize();\n if (listSize !=0 ){\n for(int i =0 ;i< listSize ;i++ ){ \n Item search = new Item(QuestInventory.remove()); \n ItemValue value = acceptedItems.get(search); \n total += value.getGoldPieces();\n \n int buffer= 15; \n //calculate the number of spaces between item name and price. \n buffer = buffer - search.toString().length(); \n String line = String.format(\"%s %\"+buffer+\"s GP\",search.toString(), value.toString());\n System.out.println(line);\n }\n System.out.println(\" ------\"); \n System.out.println(\"Total \"+ total+\" GP\");\n }else{\n // if there are no items in the list print this message \n System.out.println(\"No items were found exploring the maze.\"); \n } \n }", "title": "" }, { "docid": "216d0649b3b98c627e1e6fc4fd33cad4", "score": "0.5511281", "text": "public void generateItems() {\n for (int i = 0; i < 10; i++) {\n Item item = new Item(\"Name\" + i, 618 + i * 13);\n mainItemBase.put(item.getID(), item);\n itemListOrderedByAddition.add(item.getID());\n }\n }", "title": "" }, { "docid": "60020d84058a7f621c1757fca93c29c4", "score": "0.54997593", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG3041P01grdChulgoListInfo getItems(int index);", "title": "" }, { "docid": "3f70d22cd79ae2b42d7ea0bbe792a39d", "score": "0.54982895", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3041P01grdChulgoListInfo> \n getItemsList();", "title": "" }, { "docid": "c7b10dd8d5b887fb5206e3512a1d41e3", "score": "0.5497184", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12AntibioticListgrdAntibioticListInfo> \n getItemsList();", "title": "" }, { "docid": "9dd3c4aa118a11d58604840b6d2c4c1f", "score": "0.54945856", "text": "public PieceInfoItem[] getItems()\n{\n\n return(items);\n\n}", "title": "" }, { "docid": "08561063b2751c1b4462067a47019815", "score": "0.549114", "text": "public Builder addItems(nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo value) {\n if (itemsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureItemsIsMutable();\n items_.add(value);\n onChanged();\n } else {\n itemsBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "76719db908d2a6eec227a5a8a91f77cd", "score": "0.5485125", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3041P06grdActJUSAOrderInfo> \n getItemsList();", "title": "" }, { "docid": "16607d1869458ca5f3d67a8a1904d321", "score": "0.5466606", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG0140U00GrdDetailInfo> \n getGrdDetailItemList();", "title": "" }, { "docid": "d6930f4c0dfb6fee3c9685b7b858094f", "score": "0.5440124", "text": "public Builder setItems(\n int index, nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo value) {\n if (itemsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureItemsIsMutable();\n items_.set(index, value);\n onChanged();\n } else {\n itemsBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "6506c4560c0e70e82880dc8988456c05", "score": "0.54246825", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3041P05grdIpgoJUSAOrderInfo> \n getItemsList();", "title": "" }, { "docid": "965bac9abbeb4c5e082e6de04845aac0", "score": "0.541642", "text": "public void S252( )\n {\n nRC_Grid1 = (short)(localUtil.ctol( httpContext.cgiGet( \"nRC_Grid1\"), \".\", \",\")) ;\n nGXsfl_187_fel_idx = (short)(0) ;\n while ( nGXsfl_187_fel_idx < nRC_Grid1 )\n {\n nGXsfl_187_fel_idx = (short)(((subGrid1_Islastpage==1)&&(nGXsfl_187_fel_idx+1>subgrid1_recordsperpage( )) ? 1 : nGXsfl_187_fel_idx+1)) ;\n sGXsfl_187_fel_idx = GXutil.padl( GXutil.ltrim( GXutil.str( nGXsfl_187_fel_idx, 4, 0)), (short)(4), \"0\") ;\n chkavD_grd_sel.setInternalname( \"vD_GRD_SEL_\"+sGXsfl_187_fel_idx );\n edtavD_grd_memo_no_Internalname = \"vD_GRD_MEMO_NO_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_datetime_Internalname = \"vD_GRD_DATETIME_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_subject_id_Internalname = \"vD_GRD_SUBJECT_ID_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_crf_id_Internalname = \"vD_GRD_CRF_ID_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_crf_snm_Internalname = \"vD_GRD_CRF_SNM_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_crf_item_nm_Internalname = \"vD_GRD_CRF_ITEM_NM_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_memo_Internalname = \"vD_GRD_MEMO_\"+sGXsfl_187_fel_idx ;\n edtavD_grd_user_nm_Internalname = \"vD_GRD_USER_NM_\"+sGXsfl_187_fel_idx ;\n AV16D_GRD_SEL = GXutil.strtobool( httpContext.cgiGet( chkavD_grd_sel.getInternalname())) ;\n if ( ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd_memo_no_Internalname), \".\", \",\") < 0 ) ) || ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd_memo_no_Internalname), \".\", \",\") > 999 ) ) )\n {\n httpContext.GX_msglist.addItem(localUtil.getMessages().getMessage(\"GXM_badnum\"), 1, \"vD_GRD_MEMO_NO\");\n GX_FocusControl = edtavD_grd_memo_no_Internalname ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"GX_FocusControl\", GX_FocusControl);\n wbErr = true ;\n AV15D_GRD_MEMO_NO = (short)(0) ;\n }\n else\n {\n AV15D_GRD_MEMO_NO = (short)(localUtil.ctol( httpContext.cgiGet( edtavD_grd_memo_no_Internalname), \".\", \",\")) ;\n }\n if ( localUtil.vcdtime( httpContext.cgiGet( edtavD_grd_datetime_Internalname), (byte)(6), (byte)(0)) == 0 )\n {\n httpContext.GX_msglist.addItem(localUtil.getMessages().getMessage(\"GXM_baddatetime\", new Object[] {\"作成日時\"}), 1, \"vD_GRD_DATETIME\");\n GX_FocusControl = edtavD_grd_datetime_Internalname ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"GX_FocusControl\", GX_FocusControl);\n wbErr = true ;\n AV13D_GRD_DATETIME = GXutil.resetTime( GXutil.nullDate() );\n }\n else\n {\n AV13D_GRD_DATETIME = localUtil.ctot( httpContext.cgiGet( edtavD_grd_datetime_Internalname)) ;\n }\n if ( ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd_subject_id_Internalname), \".\", \",\") < 0 ) ) || ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd_subject_id_Internalname), \".\", \",\") > 999999 ) ) )\n {\n httpContext.GX_msglist.addItem(localUtil.getMessages().getMessage(\"GXM_badnum\"), 1, \"vD_GRD_SUBJECT_ID\");\n GX_FocusControl = edtavD_grd_subject_id_Internalname ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"GX_FocusControl\", GX_FocusControl);\n wbErr = true ;\n AV17D_GRD_SUBJECT_ID = 0 ;\n }\n else\n {\n AV17D_GRD_SUBJECT_ID = (int)(localUtil.ctol( httpContext.cgiGet( edtavD_grd_subject_id_Internalname), \".\", \",\")) ;\n }\n if ( ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd_crf_id_Internalname), \".\", \",\") < 0 ) ) || ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd_crf_id_Internalname), \".\", \",\") > 9999 ) ) )\n {\n httpContext.GX_msglist.addItem(localUtil.getMessages().getMessage(\"GXM_badnum\"), 1, \"vD_GRD_CRF_ID\");\n GX_FocusControl = edtavD_grd_crf_id_Internalname ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"GX_FocusControl\", GX_FocusControl);\n wbErr = true ;\n AV11D_GRD_CRF_ID = (short)(0) ;\n }\n else\n {\n AV11D_GRD_CRF_ID = (short)(localUtil.ctol( httpContext.cgiGet( edtavD_grd_crf_id_Internalname), \".\", \",\")) ;\n }\n AV12D_GRD_CRF_SNM = httpContext.cgiGet( edtavD_grd_crf_snm_Internalname) ;\n AV72D_GRD_CRF_ITEM_NM = httpContext.cgiGet( edtavD_grd_crf_item_nm_Internalname) ;\n AV14D_GRD_MEMO = httpContext.cgiGet( edtavD_grd_memo_Internalname) ;\n AV18D_GRD_USER_NM = httpContext.cgiGet( edtavD_grd_user_nm_Internalname) ;\n AV100GXV13 = 1 ;\n while ( AV100GXV13 <= AV47SD_RNRK_MEMO_C.size() )\n {\n AV48SD_RNRK_MEMO_I = (SdtB719_SD01_MEMO_B719_SD01_MEMOItem)((SdtB719_SD01_MEMO_B719_SD01_MEMOItem)AV47SD_RNRK_MEMO_C.elementAt(-1+AV100GXV13));\n if ( ( AV48SD_RNRK_MEMO_I.getgxTv_SdtB719_SD01_MEMO_B719_SD01_MEMOItem_Subject_id() == AV17D_GRD_SUBJECT_ID ) && ( AV48SD_RNRK_MEMO_I.getgxTv_SdtB719_SD01_MEMO_B719_SD01_MEMOItem_Memo_no() == AV15D_GRD_MEMO_NO ) && ( AV48SD_RNRK_MEMO_I.getgxTv_SdtB719_SD01_MEMO_B719_SD01_MEMOItem_Crf_id() == AV11D_GRD_CRF_ID ) )\n {\n AV48SD_RNRK_MEMO_I.setgxTv_SdtB719_SD01_MEMO_B719_SD01_MEMOItem_Sel_flg( AV16D_GRD_SEL );\n httpContext.ajax_rsp_assign_sdt_attri(\"\", false, \"AV48SD_RNRK_MEMO_I\", AV48SD_RNRK_MEMO_I);\n if (true) break;\n }\n AV100GXV13 = (int)(AV100GXV13+1) ;\n }\n /* End For Each Line */\n }\n if ( nGXsfl_187_fel_idx == 0 )\n {\n nGXsfl_187_idx = (short)(1) ;\n sGXsfl_187_idx = GXutil.padl( GXutil.ltrim( GXutil.str( nGXsfl_187_idx, 4, 0)), (short)(4), \"0\") ;\n chkavD_grd_sel.setInternalname( \"vD_GRD_SEL_\"+sGXsfl_187_idx );\n edtavD_grd_memo_no_Internalname = \"vD_GRD_MEMO_NO_\"+sGXsfl_187_idx ;\n edtavD_grd_datetime_Internalname = \"vD_GRD_DATETIME_\"+sGXsfl_187_idx ;\n edtavD_grd_subject_id_Internalname = \"vD_GRD_SUBJECT_ID_\"+sGXsfl_187_idx ;\n edtavD_grd_crf_id_Internalname = \"vD_GRD_CRF_ID_\"+sGXsfl_187_idx ;\n edtavD_grd_crf_snm_Internalname = \"vD_GRD_CRF_SNM_\"+sGXsfl_187_idx ;\n edtavD_grd_crf_item_nm_Internalname = \"vD_GRD_CRF_ITEM_NM_\"+sGXsfl_187_idx ;\n edtavD_grd_memo_Internalname = \"vD_GRD_MEMO_\"+sGXsfl_187_idx ;\n edtavD_grd_user_nm_Internalname = \"vD_GRD_USER_NM_\"+sGXsfl_187_idx ;\n }\n nGXsfl_187_fel_idx = (short)(1) ;\n }", "title": "" }, { "docid": "f54eeb4616d17a8b27ae8fee534c2c7a", "score": "0.5413453", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo.Builder addItemsBuilder(\n int index) {\n return getItemsFieldBuilder().addBuilder(\n index, nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "0afb6e24280ce9d500a01e21297f53bd", "score": "0.53955775", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12AntibioticListgrdAntibioticListInfo getItems(int index);", "title": "" }, { "docid": "1186dda9b35ed537689c5b8565270ecd", "score": "0.53905773", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG3041P01grdChulgoJUSAOrderInfo getItems(int index);", "title": "" }, { "docid": "988e8bc0f80bb74a911b0765e66f94ab", "score": "0.53883404", "text": "public static void _recallItems() {\r\n \r\n }", "title": "" }, { "docid": "5a256b8f6cbc62322c035dfa03f0f672", "score": "0.5387538", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001Info getLay9001Item(int index);", "title": "" }, { "docid": "5a256b8f6cbc62322c035dfa03f0f672", "score": "0.53867483", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001Info getLay9001Item(int index);", "title": "" }, { "docid": "dc0bd6c0fb442099cebd81296b1f59a3", "score": "0.5368487", "text": "int getLay9001ItemCount();", "title": "" }, { "docid": "dc0bd6c0fb442099cebd81296b1f59a3", "score": "0.5367821", "text": "int getLay9001ItemCount();", "title": "" }, { "docid": "5ce5309f7ddd2d3e6de857f039f909b1", "score": "0.53317773", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3041P06grdActListInfo> \n getItemsList();", "title": "" }, { "docid": "7890e6828ea93317a7d3ea430918d90d", "score": "0.5322136", "text": "int getBookInstItemsDataCount();", "title": "" }, { "docid": "d3f5b3013c7074a0930cc3633695aac1", "score": "0.53201586", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG9001R04lay9001RInfo.Builder addItemsBuilder() {\n return getItemsFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrgsModelProto.DRG9001R04lay9001RInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "0ea7b06ee9d2620c11775d984185e439", "score": "0.5314604", "text": "public nta.med.service.ihis.proto.DrgsModelProto.DRG9001R03lay9001RInfo.Builder addItemsBuilder() {\n return getItemsFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrgsModelProto.DRG9001R03lay9001RInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "007eba4357530f9e4a1d5916b7b140fa", "score": "0.5310558", "text": "void processRetinalField(ArrayList<ArrayList<Vector<String>>> visualArray){\n visField.clear();\n for (int tr = 0; tr < 7; tr++)\n for (int c = 0; c < 5; c++)\n if (visualArray.get(tr).get(c) != null){\n int r = 6 - tr;\n for (String item : visualArray.get(tr).get(c)){\n //add the GridObjects for the graphical display\n if (item.length() == 1 && (item.charAt(0) < '0' || item.charAt(0) > '9')){\n // have a regular grid object or a single-digit agent ID\n switch(item.charAt(0)) { \n case ' ': break;\n case '@': visField.add(new GOBRock(c, r, cellSize)); break; //Rock\n case '+': visField.add(new GOBFood(c, r, cellSize)); break; //Food\n case '#': visField.add(new GOBDoor(c, r, cellSize)); break; //Door\n case '*': visField.add(new GOBWall(c, r, cellSize)); break; //Wall\n case '=': visField.add(new GOBNarrows(c, r, cellSize)); break; //Narrows\n case 'K': visField.add(new GOBKey(c, r, cellSize)); break; //Key\n case 'T': visField.add(new GOBHammer(c, r, cellSize)); break; //Hammer\n case 'Q': visField.add(new GOBQuicksand(c, r, cellSize)); break; //Quicksand\n case 'O': visField.add(new GOBFoodCollect(c, r, cellSize)); break; //Food Collection\n case '$': visField.add(new GOBGold(c, r, cellSize, gd)); break; //Gold\n case 'R': visField.add(new GOBRobot(c, r, cellSize, gd)); break; // Robot Monster\n case 'G': visField.add(new GOBRayGun(c, r, cellSize, gd)); break; // Robot-Monster-Killing Ray-Gun\n default:\n }\n } else { // have an agent ID\n if (tr == 1 && c == 2)\n visField.add(new GOBAgent(c, r, cellSize, 'N')); // always facing North in visfield\n else \n visField.add(new GOBAgent(c, r, cellSize, '?'));\n }\n }\n }\n }", "title": "" }, { "docid": "9bf2dc7c28c5df9ec480b1e6c275267b", "score": "0.52883697", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfoOrBuilder> \n getItemsOrBuilderList() {\n return items_;\n }", "title": "" }, { "docid": "09994f5ef0b207f8d45312ab08d6d73c", "score": "0.52775216", "text": "int getGrdDetailItemCount();", "title": "" }, { "docid": "64e2fb128bdc5bd26a68ef35a0251fc9", "score": "0.5269745", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3041P06LabelInfo> \n getItemsList();", "title": "" }, { "docid": "30d6cade52d05215e5847b0da9c3aa17", "score": "0.52621204", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3041P05grdMixListInfo> \n getItemsList();", "title": "" }, { "docid": "2283ac69ce2c4bc214ed65218bf884a6", "score": "0.5255529", "text": "void setNilOverDueBVOItemArray(int i);", "title": "" }, { "docid": "860e475ff0f8c3da8905a68c297f6d0f", "score": "0.5242619", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG3041P06grdActListInfo getItems(int index);", "title": "" }, { "docid": "dbf8ed1a36ec66274cc95c086c3d668a", "score": "0.52416325", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG3041P06grdActJUSAOrderInfo getItems(int index);", "title": "" }, { "docid": "ae46b0fb246b327d539a7219f5f36224", "score": "0.52359164", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdDrgHistoryInfo getItems(int index);", "title": "" }, { "docid": "44b6d5eebbf66d206237d67a9824865a", "score": "0.52291703", "text": "@SuppressWarnings(\"unchecked\") mr_rpgrd()\n\t{\n\t\tsuper(2);\n\t\ttry\n\t\t{\n\t\t\tthis.setCursor(cl_dat.M_curWTSTS_pbst);\n\t\t//RETRIEVING PAKAGE TYPE DETAILS FROM CO_CDTRN\n\t\t\tM_rstRSSET=cl_dat.exeSQLQRY0(\"Select * from CO_CDTRN where CMT_CGMTP='SYS' and CMT_CGSTP='FGXXPKG'\");\n\t\t\tif(M_rstRSSET!=null)\n\t\t\t{\n\t\t\t\thstPKGTP=new Hashtable(10,0.2f);\n\t\t\t\twhile(M_rstRSSET.next())\n\t\t\t\t\thstPKGTP.put(M_rstRSSET.getString(\"CMT_CODCD\"),M_rstRSSET.getString(\"CMT_NCSVL\"));\n\t\t\t\tM_rstRSSET.close();\n\t\t\t}\n\t\t//RETRIEVING PRODUCT CODE DETAILS FROM CO_PRMST AND RETRIVING ALL POSSIBLE COMBINATIONS OF GRADE AND PKGTP\n/*\t\t\tM_rstRSSET=cl_dat.exeSQLQRY0(\"Select * from CO_PRMST order by PR_PRDCD\");\n\t\t\tif(M_rstRSSET!=null)\n\t\t\t{\n\t\t\t\tVector L_vtrGPPS=new Vector(20,5),L_vtrHIPS=new Vector(20,5),L_vtrGPNP=new Vector(20,5),L_vtrHINP=new Vector(20,5),L_vtrSPGP=new Vector(20,5),L_vtrSPHI=new Vector(20,5);\n\t\t\t\tEnumeration L_enmPKGWT=hstPKGTP.elements();\n\t\t\t\twhile(M_rstRSSET.next())\n\t\t\t\t{\n\t\t\t\t\tL_enmPKGWT=hstPKGTP.elements();\n\t\t\t\t\tif(M_rstRSSET.getString(\"PR_PRDCD\").substring(0,4).equals(\"5111\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!M_rstRSSET.getString(\"PR_PRDCD\").substring(6,7).equals(\"1\"))\n\t\t\t\t\t\t\twhile(L_enmPKGWT.hasMoreElements())\n\t\t\t\t\t\t\t\tL_vtrGPPS.addElement(M_rstRSSET.getString(\"PR_PRDDS\")+\"|\"+L_enmPKGWT.nextElement().toString());\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\twhile(L_enmPKGWT.hasMoreElements())\n\t\t\t\t\t\t\t\tL_vtrGPNP.addElement(M_rstRSSET.getString(\"PR_PRDDS\")+\"|\"+L_enmPKGWT.nextElement().toString());\n\t\t\t\t\t}\n\t\t\t\t\telse if(M_rstRSSET.getString(\"PR_PRDCD\").substring(0,4).equals(\"5112\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!M_rstRSSET.getString(\"PR_PRDCD\").substring(6,7).equals(\"1\"))\n\t\t\t\t\t\t\twhile(L_enmPKGWT.hasMoreElements())\n\t\t\t\t\t\t\t\tL_vtrHIPS.addElement(M_rstRSSET.getString(\"PR_PRDDS\")+\"|\"+L_enmPKGWT.nextElement().toString());\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\twhile(L_enmPKGWT.hasMoreElements())\n\t\t\t\t\t\t\t\tL_vtrHINP.addElement(M_rstRSSET.getString(\"PR_PRDDS\")+\"|\"+L_enmPKGWT.nextElement().toString());\n\t\t\t\t\t}\n\t\t\t\t\telse if(M_rstRSSET.getString(\"PR_PRDCD\").substring(0,4).equals(\"5211\"))\n\t\t\t\t\t\twhile(L_enmPKGWT.hasMoreElements())\n\t\t\t\t\t\t\tL_vtrSPGP.addElement(M_rstRSSET.getString(\"PR_PRDDS\")+\"|\"+L_enmPKGWT.nextElement().toString());\n\t\t\t\t\telse if(M_rstRSSET.getString(\"PR_PRDCD\").substring(0,4).equals(\"5212\"))\n\t\t\t\t\t\twhile(L_enmPKGWT.hasMoreElements())\n\t\t\t\t\t\t\tL_vtrSPHI.addElement(M_rstRSSET.getString(\"PR_PRDDS\")+\"|\"+L_enmPKGWT.nextElement().toString());\n\t\t\t\t}\n\t\t\t\tM_rstRSSET.close();\n\t\t\t\tobaGPPS=L_vtrGPPS.toArray();\n\t\t\t\tobaHIPS=L_vtrHIPS.toArray();\n\t\t\t\tobaGPNP=L_vtrGPNP.toArray();\n\t\t\t\tobaHINP=L_vtrHINP.toArray();\n\t\t\t\tobaSPGP=L_vtrSPGP.toArray();\n\t\t\t\tobaSPHI=L_vtrSPHI.toArray();\n\t\t\t}\n*/\n\t\t//RETRIEVING DETAILS OF PRODUCT CODE GROUPING AND PUTTING IN RESP VECTORS\n\t\t\tM_rstRSSET=cl_dat.exeSQLQRY0(\"Select SUBSTRING(CMT_CODCD,1,4) CMT_CODCD,CMT_CODDS from CO_CDTRN where CMT_CGMTP='MST' and CMT_CGSTP='COXXPGR' order by CMT_CODCD\");\n\t\t\tif(M_rstRSSET!=null)\n\t\t\t{\n\t\t\t\tvtrPGRDS=new Vector(10,2);vtrPGRCD=new Vector(10,2);\n\t\t\t\twhile(M_rstRSSET.next())\n\t\t\t\t{\n\t\t\t\t\tvtrPGRDS.addElement(M_rstRSSET.getString(\"CMT_CODDS\"));\n\t\t\t\t\tvtrPGRCD.addElement(M_rstRSSET.getString(\"CMT_CODCD\"));\n\t\t\t\t}\n\t\t\t}\n\t\t\tM_rstRSSET=cl_dat.exeSQLQRY0(\"Select * from CO_PRMST order by PR_PRDCD\");\n\t\t\tif(M_rstRSSET!=null)\n\t\t\t{\n\t\t\t\tvtrPSDSC=new Vector(20,5);vtrPSPRM=new Vector(10,5);vtrNPDSC=new Vector(20,5);\n\t\t\t\tvtrNPPS=new Vector(10,5);vtrSPDSC=new Vector(20,5);vtrSPPS=new Vector(10,5);\n\t\t\t\tVector L_vtrTEMP=null;//Vector for list of PRDCD|PKGWT\n\t\t\t\tEnumeration L_enmPKGWT=null;//Enumeration for all PKGWT\n\t\t\t\tString L_strPGRCD=null;//Substring of first 4 digits of PRDCD\n\t\t\t\twhile(M_rstRSSET.next())\n\t\t\t\t{\n\t\t\t\t\tL_enmPKGWT=hstPKGTP.elements();\n\t\t\t\t\tL_strPGRCD=M_rstRSSET.getString(\"PR_PRDCD\").substring(0,4);\n\t\t\t\t\tfor(int i=0;i<vtrPGRCD.size();i++)//SCAN TOTAL LIST OF PRODUCT CATAGORIES\n\t\t\t\t\t{\n\t\t\t\t\t\tif(L_strPGRCD.equals(vtrPGRCD.elementAt(i)))//FIND MATCHING PRODUCT CATAGORY\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(M_rstRSSET.getString(\"PR_PRDCD\").substring(0,2).equals(\"51\"))//GRADE IS OF PS\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(!M_rstRSSET.getString(\"PR_PRDCD\").substring(6,7).equals(\"1\"))//PRIME GRADE OF PS\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(vtrPSDSC.contains(vtrPGRDS.elementAt(i)))//PRODUCT CATAGORY ALREADY ADDED, THEN MODIFY EXISTING VECTOR, OTHERWISE, USE NEW\n\t\t\t\t\t\t\t\t\t\tL_vtrTEMP=(Vector)vtrPSPRM.elementAt(vtrPSDSC.indexOf(vtrPGRDS.elementAt(i)));\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\tL_vtrTEMP=new Vector(10,2);\n\t\t\t\t\t\t\t\t\twhile(L_enmPKGWT.hasMoreElements())//MAKE COMBINATION WITH ALL PKGWT AND OUT IN THE VECTOR\n\t\t\t\t\t\t\t\t\t\tL_vtrTEMP.addElement(M_rstRSSET.getString(\"PR_PRDDS\")+\"|\"+L_enmPKGWT.nextElement().toString());\n\t\t\t\t\t\t\t\t\tif(vtrPSDSC.contains(vtrPGRDS.elementAt(i)))//IF CATAGORY ALREADY EXISTS, REPLACE THE VECTOR OR ADD IT AND MAKE ENTRY TO DESRIPTION VECTOR\n\t\t\t\t\t\t\t\t\t\tvtrPSPRM.setElementAt(L_vtrTEMP,vtrPSDSC.indexOf(vtrPGRDS.elementAt(i)));\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvtrPSPRM.addElement(L_vtrTEMP);\n\t\t\t\t\t\t\t\t\t\tvtrPSDSC.addElement(vtrPGRDS.elementAt(i));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse//PS NON - PRIME\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(vtrNPDSC.contains(vtrPGRDS.elementAt(i)))//PRODUCT CATAGORY ALREADY ADDED, THEN MODIFY EXISTING VECTOR, OTHERWISE, USE NEW\n\t\t\t\t\t\t\t\t\t\tL_vtrTEMP=(Vector)vtrNPPS.elementAt(vtrNPDSC.indexOf(vtrPGRDS.elementAt(i)));\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\tL_vtrTEMP=new Vector(10,2);\n\t\t\t\t\t\t\t\t\twhile(L_enmPKGWT.hasMoreElements())//MAKE COMBINATION WITH ALL PKGWT AND OUT IN THE VECTOR\n\t\t\t\t\t\t\t\t\t\tL_vtrTEMP.addElement(M_rstRSSET.getString(\"PR_PRDDS\")+\"|\"+L_enmPKGWT.nextElement().toString());\n\t\t\t\t\t\t\t\t\tif(vtrNPDSC.contains(vtrPGRDS.elementAt(i)))//IF CATAGORY ALREADY EXISTS, REPLACE THE VECTOR OR ADD IT AND MAKE ENTRY TO DESRIPTION VECTOR\n\t\t\t\t\t\t\t\t\t\tvtrNPPS.setElementAt(L_vtrTEMP,vtrNPDSC.indexOf(vtrPGRDS.elementAt(i)));\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvtrNPPS.addElement(L_vtrTEMP);\n\t\t\t\t\t\t\t\t\t\tvtrNPDSC.addElement(vtrPGRDS.elementAt(i));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(M_rstRSSET.getString(\"PR_PRDCD\").substring(0,2).equals(\"52\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(vtrSPDSC.contains(vtrPGRDS.elementAt(i)))//PRODUCT CATAGORY ALREADY ADDED, THEN MODIFY EXISTING VECTOR, OTHERWISE, USE NEW\n\t\t\t\t\t\t\t\t\tL_vtrTEMP=(Vector)vtrSPPS.elementAt(vtrSPDSC.indexOf(vtrPGRDS.elementAt(i)));\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tL_vtrTEMP=new Vector(10,2);\n\t\t\t\t\t\t\t\twhile(L_enmPKGWT.hasMoreElements())//MAKE COMBINATION WITH ALL PKGWT AND OUT IN THE VECTOR\n\t\t\t\t\t\t\t\t\tL_vtrTEMP.addElement(M_rstRSSET.getString(\"PR_PRDDS\")+\"|\"+L_enmPKGWT.nextElement().toString());\n\t\t\t\t\t\t\t\tif(vtrSPDSC.contains(vtrPGRDS.elementAt(i)))//IF CATAGORY ALREADY EXISTS, REPLACE THE VECTOR OR ADD IT AND MAKE ENTRY TO DESRIPTION VECTOR\n\t\t\t\t\t\t\t\t\tvtrSPPS.setElementAt(L_vtrTEMP,vtrSPDSC.indexOf(vtrPGRDS.elementAt(i)));\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tvtrSPPS.addElement(L_vtrTEMP);\n\t\t\t\t\t\t\t\t\tvtrSPDSC.addElement(vtrPGRDS.elementAt(i));\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\t\t\t\t}\n\t\t\t\tM_rstRSSET.close();\n\t\t\t\tL_vtrTEMP=null;\n\t\t\t//CONVERTING ALL VECTORS IN vtrPSPRM to OBJECT ARRAYS if any element is added\n\t\t\t\tfor(int i=0;i<vtrPSPRM.size();i++)\n\t\t\t\t{\n\t\t\t\t\tL_vtrTEMP=(Vector)vtrPSPRM.elementAt(i);\n\t\t\t\t\tvtrPSPRM.removeElementAt(i);\n\t\t\t\t\tif(L_vtrTEMP.size()>0)\n\t\t\t\t\t\tvtrPSPRM.insertElementAt(L_vtrTEMP.toArray(),i);\n\t\t\t\t\telse\n\t\t\t\t\t\tvtrPSDSC.removeElementAt(i);\n\t\t\t\t}\n\t\t\t//CONVERTING ALL VECTORS IN vtrSPPS to OBJECT ARRAYS if any element is added\n\t\t\t\tfor(int i=0;i<vtrSPPS.size();i++)\n\t\t\t\t{\n\t\t\t\t\tL_vtrTEMP=(Vector)vtrSPPS.elementAt(i);\n\t\t\t\t\tvtrSPPS.removeElementAt(i);\n\t\t\t\t\tif(L_vtrTEMP.size()>0)\n\t\t\t\t\t\tvtrSPPS.insertElementAt(L_vtrTEMP.toArray(),i);\n\t\t\t\t\telse\n\t\t\t\t\t\tvtrSPDSC.removeElementAt(i);\n\t\t\t\t}\n\t\t\t//CONVERTING ALL VECTORS IN vtrNPPS to OBJECT ARRAYS if any element is added\n\t\t\t\tfor(int i=0;i<vtrNPPS.size();i++)\n\t\t\t\t{\n\t\t\t\t\tL_vtrTEMP=(Vector)vtrNPPS.elementAt(i);\n\t\t\t\t\tvtrNPPS.removeElementAt(i);\n\t\t\t\t\tif(L_vtrTEMP.size()>0)\n\t\t\t\t\t\tvtrNPPS.insertElementAt(L_vtrTEMP.toArray(),i);\n\t\t\t\t\telse\n\t\t\t\t\t\tvtrNPDSC.removeElementAt(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetMatrix(20,4);\n\t\t\tJPanel L_pnlPRDCT=new JPanel(null);\n\t\t\tadd(rdbPRDPS=new JRadioButton(\"Polystyrene\"),1,1,1,1,L_pnlPRDCT,'L');\n\t\t\tadd(rdbPRDSP=new JRadioButton(\"Sp. Polystyrene\"),1,2,1,1,L_pnlPRDCT,'L');\n\t\t\tadd(rdbPRDWP=new JRadioButton(\"Article of PS\"),1,3,1,0.95,L_pnlPRDCT,'L');\n\t\t\tButtonGroup L_btgTEMP=new ButtonGroup();\n\t\t\tL_btgTEMP.add(rdbPRDPS);L_btgTEMP.add(rdbPRDSP);L_btgTEMP.add(rdbPRDWP);\n\t\t\tL_pnlPRDCT.setBorder(BorderFactory.createTitledBorder(\"Product Catagory\"));\n\t\t\tadd(L_pnlPRDCT,2,1,2,3,this,'L');\n\t\t\tpnlPSCAT=new JPanel(null);\n\t\t\tadd(rdbPSPRM=new JRadioButton(\"Prime\"),1,1,1,1,pnlPSCAT,'L');\n\t\t\tadd(rdbPSNPR=new JRadioButton(\"Non-Prime\"),1,2,1,0.95,pnlPSCAT,'L');\n\t\t\tL_btgTEMP=new ButtonGroup();\n\t\t\tL_btgTEMP.add(rdbPSPRM);L_btgTEMP.add(rdbPSNPR);\n\t\t\tpnlPSCAT.setBorder(BorderFactory.createTitledBorder(\"PS Quality\"));\n\t\t\tadd(pnlPSCAT,4,1,2,2,this,'L');\n\t\t\t\n\t\t\tJPanel L_pnlRPTYP=new JPanel(null);\n\t\t\tadd(rdbCURNT=new JRadioButton(\"Current\"),1,1,1,1,L_pnlRPTYP,'L');\n\t\t\tadd(rdbDAYOP=new JRadioButton(\"Day Opening\"),1,2,1,0.95,L_pnlRPTYP,'L');\n\t\t\tL_btgTEMP=new ButtonGroup();\n\t\t\tL_btgTEMP.add(rdbCURNT);L_btgTEMP.add(rdbDAYOP);\n\t\t\tL_pnlRPTYP.setBorder(BorderFactory.createTitledBorder(\"Report Type\"));\n\t\t\tadd(L_pnlRPTYP,4,3,2,2,this,'L');\n\t\t\t\n\t\t\tM_txtFMDAT.setVisible(false);M_vtrSCCOMP.removeElement(M_txtFMDAT);\n\t\t\tM_lblFMDAT.setVisible(false);M_vtrSCCOMP.removeElement(M_lblFMDAT);\n\t\t\tM_txtTODAT.setVisible(false);M_vtrSCCOMP.removeElement(M_txtTODAT);\n\t\t\tM_lblTODAT.setVisible(false);M_vtrSCCOMP.removeElement(M_lblTODAT);\n\t\t\tM_pnlRPFMT.setVisible(true);\n\t\t\tM_rdbHTML.setSelected(true);\n\t\t\trdbPRDPS.setSelected(true);\n\t\t\trdbPSPRM.setSelected(true);\n\t\t\trdbDAYOP.setSelected(true);\n\t\t\tsetMatrix(20,6);\n\t\t}catch(Exception e)\n\t\t{setMSG(e,\"Child.Constructor\");}\n\t\tfinally\n\t\t{this.setCursor(cl_dat.M_curDFSTS_pbst);}\n\t}", "title": "" }, { "docid": "28b4b9ec86b452b615a1bef1bda2cfe9", "score": "0.52221847", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3041P05LabelInfo> \n getItemsList();", "title": "" }, { "docid": "92758485f06b7d0749017765b0550c98", "score": "0.5220647", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdDrgHistoryInfo> \n getItemsList();", "title": "" }, { "docid": "9071621b0c2b708574b1e81b1db37177", "score": "0.5215696", "text": "public Item getItem()\r\n/* 79: */ {\r\n/* 80:123 */ return this.item;\r\n/* 81: */ }", "title": "" }, { "docid": "3499c15ed04911fcf4a3229a5f06738f", "score": "0.5214613", "text": "static Item[] criaItens(Part[] Parts){\r\n\t\tItem[] res = new Item[4];\r\n\t\tres[0] = new Item(Parts[0],10);\r\n\t\tres[1] = new Item(Parts[5],50);\r\n\t\tres[2] = new Item(Parts[7],30);\r\n\t\tres[3] = new Item(Parts[2],5);\r\n\t\treturn res;\r\n\t}", "title": "" }, { "docid": "4601d75f1d35aff03220d40d93a5f971", "score": "0.5186634", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG3041P05grdIpgoJUSAOrderInfo getItems(int index);", "title": "" }, { "docid": "6091b36d5413530182c4aaea60e9c22d", "score": "0.5183925", "text": "public void okFindITEM1()\n {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPQuery q;\n int headrowno;\n\n q = trans.addQuery(project_contract_item_blk);\n q.addWhereCondition(\"PROJ_NO = ? AND CONTRACT_ID = ?\");\n q.addParameter(\"PROJ_NO\", headset.getValue(\"PROJ_NO\"));\n q.addParameter(\"CONTRACT_ID\", headset.getValue(\"CONTRACT_ID\"));\n q.addOrderByClause(\"FULL_PATH,ITEM_NO\"); \n q.includeMeta(\"ALL\");\n headrowno = headset.getCurrentRowNo();\n mgr.querySubmit(trans,project_contract_item_blk);\n headset.goTo(headrowno);\n }", "title": "" }, { "docid": "13c7b8d4f5ad3391c522c00f97d9ab75", "score": "0.5153169", "text": "int getGrdMasterItemInfoCount();", "title": "" }, { "docid": "447cb5e97756cb20d2875a1db26366b4", "score": "0.5151578", "text": "public java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001Info> getLay9001ItemList() {\n return lay9001Item_;\n }", "title": "" }, { "docid": "13c7b8d4f5ad3391c522c00f97d9ab75", "score": "0.51508343", "text": "int getGrdMasterItemInfoCount();", "title": "" }, { "docid": "447cb5e97756cb20d2875a1db26366b4", "score": "0.51483047", "text": "public java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001Info> getLay9001ItemList() {\n return lay9001Item_;\n }", "title": "" }, { "docid": "c502df61a58b1f5f0f47977de9d56954", "score": "0.51442677", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG3041P06LabelInfo getItems(int index);", "title": "" }, { "docid": "1f5cea6de70f4288e9eaa6110e2e2548", "score": "0.51432973", "text": "public static void initBaseItems()\r\n/* 125: */ {\r\n/* 126:137 */ itemLumar = new ItemParts(Config.getItemID(\"items.base.lumar.id\"), \"/eloraam/base/items1.png\");\r\n/* 127: */ \r\n/* 128: */ \r\n/* 129:140 */ itemLumar.a(tj.l);\r\n/* 130:143 */ for (int i = 0; i < 16; i++)\r\n/* 131: */ {\r\n/* 132:144 */ itemLumar.addItem(i, 32 + i, \"item.rplumar.\" + CoreLib.rawColorNames[i]);\r\n/* 133: */ \r\n/* 134:146 */ Config.addName(\"item.rplumar.\" + CoreLib.rawColorNames[i] + \".name\", CoreLib.enColorNames[i] + \" Lumar\");\r\n/* 135: */ \r\n/* 136: */ \r\n/* 137:149 */ ur dye = new ur(up.aW, 1, 15 - i);\r\n/* 138:150 */ GameRegistry.addShapelessRecipe(new ur(itemLumar, 2, i), new Object[] { up.aC, dye, dye, up.aT });\r\n/* 139: */ }\r\n/* 140:156 */ itemResource = new ItemParts(Config.getItemID(\"items.base.resource.id\"), \"/eloraam/base/items1.png\");\r\n/* 141: */ \r\n/* 142: */ \r\n/* 143:159 */ itemAlloy = new ItemParts(Config.getItemID(\"items.base.alloy.id\"), \"/eloraam/base/items1.png\");\r\n/* 144: */ \r\n/* 145: */ \r\n/* 146:162 */ itemResource.a(tj.l);\r\n/* 147:163 */ itemAlloy.a(tj.l);\r\n/* 148:164 */ itemResource.addItem(0, 48, \"item.ruby\");\r\n/* 149:165 */ itemResource.addItem(1, 49, \"item.greenSapphire\");\r\n/* 150:166 */ itemResource.addItem(2, 50, \"item.sapphire\");\r\n/* 151:167 */ itemResource.addItem(3, 51, \"item.ingotSilver\");\r\n/* 152:168 */ itemResource.addItem(4, 52, \"item.ingotTin\");\r\n/* 153:169 */ itemResource.addItem(5, 53, \"item.ingotCopper\");\r\n/* 154:170 */ itemResource.addItem(6, 54, \"item.nikolite\");\r\n/* 155: */ \r\n/* 156:172 */ itemAlloy.addItem(0, 64, \"item.ingotRed\");\r\n/* 157:173 */ itemAlloy.addItem(1, 65, \"item.ingotBlue\");\r\n/* 158:174 */ itemAlloy.addItem(2, 66, \"item.ingotBrass\");\r\n/* 159:175 */ itemAlloy.addItem(3, 67, \"item.bouleSilicon\");\r\n/* 160:176 */ itemAlloy.addItem(4, 68, \"item.waferSilicon\");\r\n/* 161:177 */ itemAlloy.addItem(5, 69, \"item.waferBlue\");\r\n/* 162:178 */ itemAlloy.addItem(6, 70, \"item.waferRed\");\r\n/* 163:179 */ itemAlloy.addItem(7, 71, \"item.tinplate\");\r\n/* 164:180 */ itemAlloy.addItem(8, 72, \"item.finecopper\");\r\n/* 165:181 */ itemAlloy.addItem(9, 73, \"item.fineiron\");\r\n/* 166:182 */ itemAlloy.addItem(10, 74, \"item.coppercoil\");\r\n/* 167:183 */ itemAlloy.addItem(11, 75, \"item.btmotor\");\r\n/* 168:184 */ itemAlloy.addItem(12, 76, \"item.rpcanvas\");\r\n/* 169: */ \r\n/* 170:186 */ itemRuby = new ur(itemResource, 1, 0);\r\n/* 171:187 */ itemGreenSapphire = new ur(itemResource, 1, 1);\r\n/* 172:188 */ itemSapphire = new ur(itemResource, 1, 2);\r\n/* 173: */ \r\n/* 174:190 */ itemIngotSilver = new ur(itemResource, 1, 3);\r\n/* 175:191 */ itemIngotTin = new ur(itemResource, 1, 4);\r\n/* 176:192 */ itemIngotCopper = new ur(itemResource, 1, 5);\r\n/* 177: */ \r\n/* 178:194 */ itemNikolite = new ur(itemResource, 1, 6);\r\n/* 179: */ \r\n/* 180:196 */ itemIngotRed = new ur(itemAlloy, 1, 0);\r\n/* 181:197 */ itemIngotBlue = new ur(itemAlloy, 1, 1);\r\n/* 182:198 */ itemIngotBrass = new ur(itemAlloy, 1, 2);\r\n/* 183:199 */ itemBouleSilicon = new ur(itemAlloy, 1, 3);\r\n/* 184:200 */ itemWaferSilicon = new ur(itemAlloy, 1, 4);\r\n/* 185:201 */ itemWaferBlue = new ur(itemAlloy, 1, 5);\r\n/* 186:202 */ itemWaferRed = new ur(itemAlloy, 1, 6);\r\n/* 187:203 */ itemTinplate = new ur(itemAlloy, 1, 7);\r\n/* 188:204 */ itemFineCopper = new ur(itemAlloy, 1, 8);\r\n/* 189:205 */ itemFineIron = new ur(itemAlloy, 1, 9);\r\n/* 190:206 */ itemCopperCoil = new ur(itemAlloy, 1, 10);\r\n/* 191:207 */ itemMotor = new ur(itemAlloy, 1, 11);\r\n/* 192:208 */ itemCanvas = new ur(itemAlloy, 1, 12);\r\n/* 193: */ \r\n/* 194:210 */ OreDictionary.registerOre(\"gemRuby\", itemRuby);\r\n/* 195:211 */ OreDictionary.registerOre(\"gemGreenSapphire\", itemGreenSapphire);\r\n/* 196:212 */ OreDictionary.registerOre(\"gemSapphire\", itemSapphire);\r\n/* 197: */ \r\n/* 198:214 */ OreDictionary.registerOre(\"ingotTin\", itemIngotTin);\r\n/* 199:215 */ OreDictionary.registerOre(\"ingotCopper\", itemIngotCopper);\r\n/* 200:216 */ OreDictionary.registerOre(\"ingotSilver\", itemIngotSilver);\r\n/* 201:217 */ OreDictionary.registerOre(\"ingotBrass\", itemIngotBrass);\r\n/* 202:218 */ OreDictionary.registerOre(\"dustNikolite\", itemNikolite);\r\n/* 203: */ \r\n/* 204: */ \r\n/* 205:221 */ itemNugget = new ItemParts(Config.getItemID(\"items.base.nuggets.id\"), \"/eloraam/base/items1.png\");\r\n/* 206: */ \r\n/* 207: */ \r\n/* 208:224 */ itemNugget.a(tj.l);\r\n/* 209:225 */ itemNugget.addItem(0, 160, \"item.nuggetIron\");\r\n/* 210:226 */ itemNugget.addItem(1, 161, \"item.nuggetSilver\");\r\n/* 211:227 */ itemNugget.addItem(2, 162, \"item.nuggetTin\");\r\n/* 212:228 */ itemNugget.addItem(3, 163, \"item.nuggetCopper\");\r\n/* 213: */ \r\n/* 214:230 */ itemNuggetIron = new ur(itemNugget, 1, 0);\r\n/* 215:231 */ itemNuggetSilver = new ur(itemNugget, 1, 1);\r\n/* 216:232 */ itemNuggetTin = new ur(itemNugget, 1, 2);\r\n/* 217:233 */ itemNuggetCopper = new ur(itemNugget, 1, 3);\r\n/* 218: */ \r\n/* 219:235 */ OreDictionary.registerOre(\"nuggetIron\", itemNuggetIron);\r\n/* 220:236 */ OreDictionary.registerOre(\"nuggetSilver\", itemNuggetSilver);\r\n/* 221:237 */ OreDictionary.registerOre(\"nuggetTin\", itemNuggetTin);\r\n/* 222:238 */ OreDictionary.registerOre(\"nuggetCopper\", itemNuggetCopper);\r\n/* 223: */ \r\n/* 224: */ \r\n/* 225:241 */ itemDrawplateDiamond = new ItemDrawplate(Config.getItemID(\"items.base.drawplateDiamond.id\"));\r\n/* 226: */ \r\n/* 227:243 */ itemDrawplateDiamond.b(\"drawplateDiamond\").c(27).e(255);\r\n/* 228: */ \r\n/* 229: */ \r\n/* 230: */ \r\n/* 231:247 */ itemBag = new ItemBag(Config.getItemID(\"items.base.bag.id\"));\r\n/* 232: */ \r\n/* 233:249 */ GameRegistry.addRecipe(new ur(itemBag, 1, 0), new Object[] { \"CCC\", \"C C\", \"CCC\", Character.valueOf('C'), itemCanvas });\r\n/* 234:252 */ for (int i = 1; i < 16; i++) {\r\n/* 235:253 */ GameRegistry.addRecipe(new ur(itemBag, 1, i), new Object[] { \"CCC\", \"CDC\", \"CCC\", Character.valueOf('C'), itemCanvas, Character.valueOf('D'), new ur(up.aW, 1, 15 - i) });\r\n/* 236: */ }\r\n/* 237: */ }", "title": "" }, { "docid": "6b198451cb98041bed177b947ac06ac1", "score": "0.5141419", "text": "public Builder addItems(\n int index, nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo value) {\n if (itemsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureItemsIsMutable();\n items_.add(index, value);\n onChanged();\n } else {\n itemsBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "7fa48242804e89285fabc165109c678b", "score": "0.51397026", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001InfoOrBuilder> \n getLay9001ItemOrBuilderList();", "title": "" }, { "docid": "7fa48242804e89285fabc165109c678b", "score": "0.51396996", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001InfoOrBuilder> \n getLay9001ItemOrBuilderList();", "title": "" }, { "docid": "e186bfc458459474595f43018a0d5ca3", "score": "0.51393074", "text": "Inventory fill(Item item);", "title": "" }, { "docid": "7185e6b19af9674fe384d5c997a55da9", "score": "0.51258945", "text": "void getItemsInfo(Item items[], ArrayList<Long> ids, int maxx, DB db) throws Exception {\r\n int processed = 0;\r\n int max = maxx;//ids.size();\r\n \r\n while(processed < max){\r\n StringBuilder sbb = new StringBuilder();\r\n int j;\r\n for (j = processed; j < Math.min(200 + processed, max); ++j) { \r\n sbb.append(items[(int)(long)ids.get(j)].id).append(\",\");\r\n }\r\n sbb.deleteCharAt(sbb.length()-1);\r\n processed = j;\r\n \r\n if(debug);\r\n System.out.println(\"Info fetched for : \"+processed+\"/\"+max+\" items.\");\r\n\r\n String response = fetchInfo(\"/v2/items\", \"ids\", sbb.toString());\r\n \r\n JSONParser parser = new JSONParser();\r\n Object obj = parser.parse(response);\r\n JSONArray itemIds = (JSONArray) obj;\r\n Iterator<Object> iterator = itemIds.iterator();\r\n\r\n while (iterator.hasNext()) {\r\n \r\n JSONObject object = (JSONObject) iterator.next();\r\n int id = (int)(long)object.get(\"id\");\r\n String chat_link = (String)object.get(\"chat_link\");\r\n String name = (String)object.get(\"name\");\r\n String icon = (String)object.get(\"icon\");\r\n String description = (String)object.get(\"description\");\r\n String type = (String)object.get(\"type\");\r\n String rarity = (String)object.get(\"rarity\");\r\n int level = (int)(long)object.get(\"level\");\r\n int vendor_value = (int)(long)object.get(\"vendor_value\");\r\n Long df = (Long)object.get(\"default_skin\");\r\n Integer default_skin = null;\r\n if(df!=null) default_skin = (int)(long)df;\r\n \r\n items[id].chat_link = chat_link;\r\n items[id].name = name;\r\n items[id].icon = icon;\r\n items[id].description = description;\r\n items[id].type = type;\r\n items[id].rarity = rarity;\r\n items[id].level = level;\r\n items[id].vendor_value = vendor_value;\r\n items[id].default_skin = default_skin;\r\n \r\n JSONArray flags = (JSONArray)object.get(\"flags\");\r\n Iterator<Object> flagsIterator = flags.iterator();\r\n while(flagsIterator.hasNext()){\r\n String ss = (String) flagsIterator.next();\r\n items[id].flags.add(ss);\r\n //System.out.println(\"Flag = \"+ss);\r\n }\r\n \r\n JSONArray gameTypes = (JSONArray)object.get(\"game_types\");\r\n Iterator<Object> gameTypesIterator = gameTypes.iterator();\r\n while(gameTypesIterator.hasNext()){\r\n String ss = (String) gameTypesIterator.next();\r\n items[id].game_types.add(ss);\r\n //System.out.println(\"Game types : \"+ss);\r\n }\r\n \r\n JSONArray restrictions = (JSONArray)object.get(\"restrictions\");\r\n Iterator<Object> restrictionsIterator = restrictions.iterator();\r\n while(restrictionsIterator.hasNext()){\r\n String ss = (String) restrictionsIterator.next();\r\n items[id].restrictions.add(ss);\r\n //System.out.println(\"Restrictions : \"+ss);\r\n }\r\n \r\n JSONObject details = (JSONObject)object.get(\"details\");\r\n String d_type, d_weight_class, d_damage_type;\r\n Long d_defense, d_min_power, d_max_power;\r\n \r\n switch(type){\r\n case \"Armor\":\r\n d_type = (String)details.get(\"type\");\r\n d_weight_class = (String)details.get(\"weight_class\");\r\n d_defense = (Long)details.get(\"defense\");\r\n //leave stat_choices, infusion slots, infix_upgrade, suffix_item_id, secondary_suffix_item_id for now\r\n //System.out.println(\"Armor type : \"+d_type+\" weight_class : \"+d_weight_class+\" defense : \"+d_defense);\r\n break;\r\n case \"Weapon\":\r\n d_type = (String)details.get(\"type\");\r\n d_damage_type = (String)details.get(\"damage_type\");\r\n d_min_power = (Long)details.get(\"min_power\");\r\n d_max_power = (Long)details.get(\"max_power\");\r\n d_defense = (Long)details.get(\"defense\");\r\n //System.out.println(\"Weapon type : \"+d_type+\" damage_type : \"+d_damage_type+\" min_power : \"+d_min_power+\" max_power : \"+d_max_power+\" defense : \"+d_defense);\r\n break;\r\n default:\r\n break;\r\n }\r\n db.addItemBatch(items[id]);\r\n }\r\n }\r\n db.pushItemsBatch();\r\n }", "title": "" }, { "docid": "62ef3fbb95e01c268746a898a9071b55", "score": "0.5121118", "text": "public void newItemList(int ItemId, String ItemName,\r\n String ItemDescription, double ShopValue, double LowAlch,\r\n double HighAlch, int Bonuses[]) {\n int slot = -1;\r\n for (int i = 0; i < 11740; i++) {\r\n if (ItemList[i] == null) {\r\n slot = i;\r\n break;\r\n }\r\n }\r\n\r\n if (slot == -1)\r\n return; // no free slot found\r\n ItemList newItemList = new ItemList(ItemId);\r\n newItemList.itemName = ItemName;\r\n newItemList.itemDescription = ItemDescription;\r\n newItemList.ShopValue = ShopValue;\r\n newItemList.LowAlch = LowAlch;\r\n newItemList.HighAlch = HighAlch;\r\n newItemList.Bonuses = Bonuses;\r\n ItemList[slot] = newItemList;\r\n }", "title": "" }, { "docid": "24c995ba38e190e35e5adbb775a4a961", "score": "0.51192206", "text": "public void displayItems() { // static attribute used as method is not associated with specific object instance\n\t\t\tSystem.out.println(\"\");\n\t\tfor (Map.Entry<String, Slot> loopy:itemMap.entrySet()) {\n\t\t\tSystem.out.println(loopy.getValue().getItemName() +\"|\" + loopy.getValue().getItemQuant());\n\t\t}\n\t}", "title": "" }, { "docid": "1232eaa3c015e5aa87e63fc6712af7b7", "score": "0.5119022", "text": "public void updateItemInfo() {\n int i = 0;\n for (UUID itemUuid : this.game.getInventory()) {\n String itemPapers = \"incorrect\";\n if (this.game.getItemPapers(itemUuid)) {\n itemPapers = \"correct\";\n }\n\n this.itemInfo.get(i).setText(\n this.game.getDeliveryPlanet(itemUuid)\n + \"\\n\" + this.game.getDeliveryNpc(itemUuid)\n + \"\\nDue time: \" + this.game.getItemDeliveryTime(itemUuid)\n + \"\\nPaper work status: \" + itemPapers\n );\n i++;\n }\n }", "title": "" }, { "docid": "19b619155a3309173b3c1846182d9674", "score": "0.5096762", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DrgsDRG5100P01LayBongtuInfo> \n getLayBongtuItemList();", "title": "" }, { "docid": "2621dd082a3f1ac6d3586537decf849d", "score": "0.5091246", "text": "private void buildDetails(Vector data,Hashtable all_bin_set,String HubNo,String SubuserAction,String Add_Item_id)\n{\n\tString checkednon = \"\";\n\n\ttry\n\t{\n\t\tHashtable summary = new Hashtable();\n\t\tsummary = (Hashtable)data.elementAt(0);\n\t\tint total = ((Integer)(summary.get(\"TOTAL_NUMBER\"))).intValue() ;\n\t\tout.println(\"<TABLE BORDER=\\\"0\\\" CELLSPACING=1 CELLPADDING=2 WIDTH=\\\"100%\\\" CLASS=\\\"moveup\\\">\\n\");\n\t\tint AddBinLineNum1 = getAddBinLineNum();\n\n\t\tint i = 0; //used for detail lines\n\t\tfor (int loop = 0 ; loop < total ; loop++)\n\t\t{\n\t\t i++;\n\t\t boolean createHdr = false;\n\n\t\t if ( loop%10 == 0 )\n\t\t { createHdr = true;\n\t\t }\n\n\t\t\tif ( createHdr )\n\t\t\t{\n\t\t\t\tout.println(\"<tr align=\\\"center\\\">\\n\");\n\t\t\t\tout.println(\"<TH width=\\\"2%\\\" height=\\\"38\\\">\"+res.getString(\"label.ok\")+\"</TH>\\n\");\n\t\t\t\tout.println(\"<TH width=\\\"5%\\\" height=\\\"38\\\">\"+res.getString(\"label.item\")+\"Item</TH>\\n\");\n\t\t\t\tout.println(\"<TH width=\\\"5%\\\" height=\\\"38\\\">\"+res.getString(\"label.pkg\")+\"</TH>\\n\");\n\t\t\t\tout.println(\"<TH width=\\\"5%\\\" height=\\\"38\\\">\"+res.getString(\"label.receiptid\")+\"</TH>\\n\");\n\t\t\t\tout.println(\"<TH width=\\\"5%\\\" height=\\\"38\\\">\"+res.getString(\"label.mfglot\")+\"</TH>\\n\");\n\t\t\t\tout.println(\"<TH width=\\\"5%\\\" height=\\\"38\\\">\"+res.getString(\"label.bin\")+\"</TH>\\n\");\n\t\t\t\tout.println(\"<TH width=\\\"20%\\\" height=\\\"38\\\">\"+res.getString(\"label.parentdesc\")+\"</TH>\\n\");\n\t\t\t\t//out.println(\"<TH width=\\\"5%\\\" CLASS=\\\"dgreen\\\" height=\\\"38\\\">Child Item</TH>\\n\");\n\t\t\t\t//out.println(\"<TH width=\\\"5%\\\" CLASS=\\\"dgreen\\\" height=\\\"38\\\">Child Pkg</TH>\\n\");\n\t\t\t\tout.println(\"<TH width=\\\"4%\\\" CLASS=\\\"dgreen\\\" height=\\\"38\\\" colspan=\\\"2\\\">\"+res.getString(\"label.bin\")+\"</TH>\\n\" );\n\t\t\t\t//out.println(\"<TH width=\\\"20%\\\" height=\\\"38\\\">Child Description</TH>\\n\");\n\t\t\t\tout.println(\"</tr>\\n\");\n\t\t\t}\n\n\t\t\tHashtable hD = new Hashtable();\n\t\t\thD = (Hashtable) data.elementAt(i);\n\n\t\t\tString hub=hD.get( \"HUB\" ) == null ? \"&nbsp;\" : hD.get( \"HUB\" ).toString();\n\t\t\tString item_id=hD.get( \"ITEM_ID\" ) == null ? \"&nbsp;\" : hD.get( \"ITEM_ID\" ).toString();\n\t\t\tString inventory_group=hD.get( \"INVENTORY_GROUP\" ) == null ? \"&nbsp;\" : hD.get( \"INVENTORY_GROUP\" ).toString();\n\t\t\tString original_item_id=hD.get( \"ORIGINAL_ITEM_ID\" ) == null ? \"&nbsp;\" : hD.get( \"ORIGINAL_ITEM_ID\" ).toString();\n\t\t\tString receipt_id=hD.get( \"RECEIPT_ID\" ) == null ? \"&nbsp;\" : hD.get( \"RECEIPT_ID\" ).toString();\n\t\t\tString Sel_bin=hD.get( \"BIN_NAME\" ) == null ? \"&nbsp;\" : hD.get( \"BIN_NAME\" ).toString();\n\t\t\tString mfg_lot=hD.get( \"MFG_LOT\" ) == null ? \"&nbsp;\" : hD.get( \"MFG_LOT\" ).toString();\n\t\t\tString expire_date=hD.get( \"EXPIRE_DATE\" ) == null ? \"&nbsp;\" : hD.get( \"EXPIRE_DATE\" ).toString();\n\t\t\tString lot_status=hD.get( \"LOT_STATUS\" ) == null ? \"&nbsp;\" : hD.get( \"LOT_STATUS\" ).toString();\n\t\t\tString quantity_available=hD.get( \"QUANTITY_AVAILABLE\" ) == null ? \"&nbsp;\" : hD.get( \"QUANTITY_AVAILABLE\" ).toString();\n\t\t\tString item_desc=hD.get( \"ITEM_DESC\" ) == null ? \"&nbsp;\" : hD.get( \"ITEM_DESC\" ).toString();\n\t\t\tString original_item_desc=hD.get( \"ORIGINAL_ITEM_DESC\" ) == null ? \"&nbsp;\" : hD.get( \"ORIGINAL_ITEM_DESC\" ).toString();\n\t\t\tString item_pkg=hD.get( \"ITEM_PKG\" ) == null ? \"&nbsp;\" : hD.get( \"ITEM_PKG\" ).toString();\n\t\t\tString original_item_pkg=hD.get( \"ORIGINAL_ITEM_PKG\" ) == null ? \"&nbsp;\" : hD.get( \"ORIGINAL_ITEM_PKG\" ).toString();\n\t\t\tString search_text=hD.get( \"SEARCH_TEXT\" ) == null ? \"&nbsp;\" : hD.get( \"SEARCH_TEXT\" ).toString();\n\t\t String bin=hD.get( \"BIN\" ) == null ? \"\" : hD.get( \"BIN\" ).toString();\n\n\t\t\tString Line_Check= ( hD.get( \"USERCHK\" ) == null ? \"&nbsp;\" : hD.get( \"USERCHK\" ).toString() );\n\t\t\tif ( Line_Check.equalsIgnoreCase( \"yes\" ) )\n\t\t\t{\n\t\t\t checkednon=\"checked\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t checkednon=\"\";\n\t\t\t}\n\n\t\t\tString chkbox_value=\"no\";\n\t\t\tif ( checkednon.equalsIgnoreCase( \"checked\" ) )\n\t\t\t{\n\t\t\t chkbox_value=\"yes\";\n\t\t\t}\n\n\t\t\tString Color = \" \";\n\t\t\tString childColor = \"CLASS=\\\"white\";\n\t\t\tif (i%2==0)\n\t\t\t{\n\t\t\t\tColor =\"CLASS=\\\"blue\";\n\t\t\t\tchildColor = \"CLASS=\\\"green8\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tColor =\"CLASS=\\\"white\";\n\t\t\t}\n\n\t\tout.println( \"<tr align=\\\"center\\\">\\n\" );\n\t\tout.println( \"<td \" + Color + \"\\\" width=\\\"2%\\\" height=\\\"38\\\"><INPUT TYPE=\\\"checkbox\\\" value=\\\"\" +chkbox_value+ \"\\\" onClick= \\\"checkValues(name,\"+i+\")\\\" \" + checkednon + \" NAME=\\\"row_chk\" + i + \"\\\"></td>\\n\" );\n\t\tout.println( \"<td \" + Color + \"l\\\" width=\\\"5%\\\">\" + original_item_id + \"</td>\\n\" );\n\t\tout.println( \"<td \" + Color + \"l\\\" width=\\\"5%\\\">\" + original_item_pkg + \"</td>\\n\" );\n\t\tout.println( \"<td \" + Color + \"l\\\" width=\\\"5%\\\">\" + receipt_id + \"</td>\\n\" );\n\t\tout.println( \"<td \" + Color + \"l\\\" width=\\\"5%\\\">\" + mfg_lot + \"</td>\\n\" );\n\t\tout.println( \"<td \" + Color + \"l\\\" width=\\\"5%\\\">\" + bin + \"</td>\\n\" );\n\n\t\tout.println( \"<td \" + Color + \"l\\\" width=\\\"20%\\\">\" + original_item_desc + \"</td>\\n\" );\n\n\t\t//out.println( \"<td \" + childColor + \"l\\\" width=\\\"5%\\\">\" + item_id + \"</td>\\n\" );\n\t\t//out.println( \"<td \" + childColor + \"l\\\" width=\\\"5%\\\">\" + item_pkg + \"</td>\\n\" );\n\t\tout.println( \"<td \" + childColor + \"r\\\" width=\\\"1%\\\">\\n\" );\n\t\tout.println(\"<INPUT TYPE=\\\"BUTTON\\\" CLASS=\\\"SUBMITDET\\\" onmouseover=\\\"className='SUBMITHOVERDET'\\\" onMouseout=\\\"className='SUBMITDET'\\\" name=\\\"addBin\" + i +\"\\\" value=\\\"+\\\" OnClick=\\\"showEmtyBins(\" + item_id + \",\" + i + \",\" + HubNo + \")\\\" ></TD>\\n\" );\n\t\tout.println( \"<td \" + childColor + \"l\\\" width=\\\"3%\\\">\\n\" );\n\t\tout.println( \"<select name=\\\"selectElementBin\" + i + \"\\\">\\n\" );\n\n\t\tHashtable in_bin_set= ( Hashtable ) all_bin_set.get( item_id );\n\t\tint bin_size=in_bin_set.size();\n\n\t\tif ( Sel_bin.trim().length() == 0 && bin.trim().length() == 0 )\n\t\t{\n\t\t out.println( \"<option selected value=\\\"\\\">\"+res.getString(\"label.none\")+\"</option>\\n\" );\n\t\t}\n\t\telse\n\t\t{\n\t\t out.println( \"<option selected value=\\\"\"+bin+\"\\\">\"+bin+\"</option>\\n\" );\n\t\t}\n\n\t\t//Select the last bin that was added for an item\n\t\tString bin_selected=\"\";\n\t\tif ( Add_Item_id.equalsIgnoreCase( \"NONE\" ) )\n\t\t{\n\t\t for ( int j=0; j < bin_size; j++ )\n\t\t {\n\t\t\tInteger key=new Integer( j );\n\t\t\tString bin_name= ( String ) in_bin_set.get( key );\n\t\t\tbin_selected=\"\";\n\t\t\tif ( bin_name.equalsIgnoreCase( Sel_bin ) )\n\t\t\t{\n\t\t\t bin_selected=\"selected\";\n\t\t\t}\n\t\t\tout.println( \"<option \" + bin_selected + \" value=\\\"\" + bin_name + \"\\\">\" + bin_name + \"</option>\\n\" );\n\t\t }\n\t\t}\n\t\telse\n\t\t{\n\t\t for ( int m=0; m < bin_size; m++ )\n\t\t {\n\t\t\tInteger key=new Integer( m );\n\t\t\tString bin_name= ( String ) in_bin_set.get( key );\n\t\t\tbin_selected=\"\";\n\n\t\t\tif ( i == AddBinLineNum1 )\n\t\t\t{\n\t\t\t if ( m == ( bin_size - 1 ) )\n\t\t\t {\n\t\t\t\tbin_selected=\"selected\";\n\t\t\t }\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t if ( bin_name.equalsIgnoreCase( Sel_bin ) )\n\t\t\t {\n\t\t\t\tbin_selected=\"selected\";\n\t\t\t }\n\t\t\t}\n\n\t\t\tout.println( \"<option \" + bin_selected + \" value=\\\"\" + bin_name + \"\\\">\" + bin_name + \"</option>\\n\" );\n\t\t }\n\t\t}\n\n\t\tout.println( \"</select></td>\\n\" );\n\n\t\t//out.println( \"<td \" + Color + \"l\\\" width=\\\"20%\\\">\" + item_desc + \"</td>\\n\" );\n\n\t\tout.println( \"<input type=\\\"hidden\\\" name=\\\"item_id\" + i + \"\\\" value=\\\"\" + item_id + \"\\\">\\n\" );\n\t\tout.println( \"<input type=\\\"hidden\\\" name=\\\"item_id\\\" value=\\\"\" + item_id + \"\\\">\\n\" );\n\t\tout.println(\"</tr>\\n\");\n\t\t}\n\n\t\tout.println(\"</table>\\n\");\n\t\tout.println(\"<TABLE BORDER=\\\"0\\\" CELLSPACING=0 CELLPADDING=0 WIDTH=\\\"100%\\\" CLASS=\\\"moveup\\\">\\n\");\n\t\tout.println(\"<tr>\");\n\t\tout.println(\"<TD HEIGHT=\\\"10\\\" WIDTH=\\\"100%\\\" VALIGN=\\\"MIDDLE\\\" BGCOLOR=\\\"#000066\\\">&nbsp;\\n\");\n\t\tout.println(\"</TD></tr>\");\n\t\tout.println(\"</table>\\n\");\n\n\t\tout.println(\"</form>\\n\");\n\t\tout.println(\"</body></html>\\n\");\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.printStackTrace();\n\t\tout.println(radian.web.HTMLHelpObj.printError(\"label.startnewtap\",intcmIsApplication,res));\n\t}\n\n\treturn;\n}", "title": "" }, { "docid": "461d041617c9aa4c866f96ed6bfeb04b", "score": "0.5090257", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfoOrBuilder> \n getItemsOrBuilderList() {\n if (itemsBuilder_ != null) {\n return itemsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(items_);\n }\n }", "title": "" }, { "docid": "fd068068deea315eaef392ba7dfc60cb", "score": "0.5087023", "text": "nta.med.service.ihis.proto.DrgsModelProto.DRG3041P05LabelInfo getItems(int index);", "title": "" }, { "docid": "0483ddc616bf39ffe39b130fd6a89fcf", "score": "0.5086671", "text": "@Override\npublic String toString() {\n\treturn \"Item[ uin = \"+uin+\",title = \"+title+\", no of copies = \"+numberOfCopies+\"]\";\n}", "title": "" }, { "docid": "30f7f50bf257542bb691c517987a20fd", "score": "0.5076254", "text": "public int getLay9001ItemCount() {\n return lay9001Item_.size();\n }", "title": "" }, { "docid": "30f7f50bf257542bb691c517987a20fd", "score": "0.5074984", "text": "public int getLay9001ItemCount() {\n return lay9001Item_.size();\n }", "title": "" }, { "docid": "cd79662bfa72e677a448c43704fc7c7f", "score": "0.5073916", "text": "public int getGrdDetailItemInfoCount() {\n return grdDetailItemInfo_.size();\n }", "title": "" }, { "docid": "cd79662bfa72e677a448c43704fc7c7f", "score": "0.5073916", "text": "public int getGrdDetailItemInfoCount() {\n return grdDetailItemInfo_.size();\n }", "title": "" }, { "docid": "06203a9fc9e19b8958316fb7c5725e16", "score": "0.50646806", "text": "int sizeOfOverDueBVOItemArray();", "title": "" }, { "docid": "333fae467ef92ed2f3392f0835f59d47", "score": "0.5045036", "text": "void buildItemIndices();", "title": "" }, { "docid": "dd08c2679ce132f7a4b763e8bced962d", "score": "0.50395435", "text": "private void _init(){\n /**\n * INITIALIZE TRAYS\n */\n int index = 0;\n try {\n ArrayList<String> all_items = this._sql_handler.getAllItemInformation();\n for(String str : all_items){\n String[] elements = str.split(\":\");\n _tray_lists.add(\n index,\n this._occupy_tray(elements, index)\n );\n index++;\n } // END FOR LOOP\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }", "title": "" }, { "docid": "8a0a7ae3d1e4913e43bdaabaea2b9dd2", "score": "0.5038985", "text": "public void generateItems() {\n\t\t// creates items and then there prices based of the stats of the crew member \n\t\tRandom itemModifier = new Random(); \n\t int extraItems = itemModifier.nextInt(5) - 2;\n\t\tint numOfItems = getOutpostHabitability() + extraItems + 4;\n\t\tfor (int i=0; i < numOfItems; i++) { \n\t\t\tint itemID = itemModifier.nextInt(9);\n\t\t\tswitch(itemID) {\n\t\t\t\tcase 0:\t\n\t\t\t\tcase 1:\n\t\t\t\tcase 2:\n\t\t\t\tcase 3: addToShopInventory(generateFuelCanister());\t\n\t\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\tcase 5: addToShopInventory(generateMedicalItem());\n\t\t\t\t\t\tbreak;\n\t\t\t\tcase 6: \n\t\t\t\tcase 7: addToShopInventory(generateFoodItem());\n\t\t\t\t\t\tbreak;\t\n\t\t\t\tcase 8: addToShopInventory(generateCrewItem()); \n\t\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "848d387142c696392a8aa28f28209a2f", "score": "0.5035985", "text": "public void S272( )\n {\n nRC_Grid2 = (short)(localUtil.ctol( httpContext.cgiGet( \"nRC_Grid2\"), \".\", \",\")) ;\n nGXsfl_344_fel_idx = (short)(0) ;\n while ( nGXsfl_344_fel_idx < nRC_Grid2 )\n {\n nGXsfl_344_fel_idx = (short)(((subGrid2_Islastpage==1)&&(nGXsfl_344_fel_idx+1>subgrid2_recordsperpage( )) ? 1 : nGXsfl_344_fel_idx+1)) ;\n sGXsfl_344_fel_idx = GXutil.padl( GXutil.ltrim( GXutil.str( nGXsfl_344_fel_idx, 4, 0)), (short)(4), \"0\") ;\n chkavD_grd2_sel.setInternalname( \"vD_GRD2_SEL_\"+sGXsfl_344_fel_idx );\n edtavD_grd2_date_Internalname = \"vD_GRD2_DATE_\"+sGXsfl_344_fel_idx ;\n edtavD_grd2_time_Internalname = \"vD_GRD2_TIME_\"+sGXsfl_344_fel_idx ;\n edtavD_grd2_memo_no_Internalname = \"vD_GRD2_MEMO_NO_\"+sGXsfl_344_fel_idx ;\n edtavD_grd2_memo_kbn_Internalname = \"vD_GRD2_MEMO_KBN_\"+sGXsfl_344_fel_idx ;\n edtavD_grd2_subject_id_Internalname = \"vD_GRD2_SUBJECT_ID_\"+sGXsfl_344_fel_idx ;\n edtavD_grd2_crf_id_Internalname = \"vD_GRD2_CRF_ID_\"+sGXsfl_344_fel_idx ;\n edtavD_grd2_crf_snm_Internalname = \"vD_GRD2_CRF_SNM_\"+sGXsfl_344_fel_idx ;\n edtavD_grd2_crf_item_nm_Internalname = \"vD_GRD2_CRF_ITEM_NM_\"+sGXsfl_344_fel_idx ;\n edtavD_grd2_memo_Internalname = \"vD_GRD2_MEMO_\"+sGXsfl_344_fel_idx ;\n edtavD_grd2_user_nm_Internalname = \"vD_GRD2_USER_NM_\"+sGXsfl_344_fel_idx ;\n edtavD_grd2_kakunin_Internalname = \"vD_GRD2_KAKUNIN_\"+sGXsfl_344_fel_idx ;\n edtavD_grd2_kakunin_user_nm_Internalname = \"vD_GRD2_KAKUNIN_USER_NM_\"+sGXsfl_344_fel_idx ;\n edtavD_grd2_kanryo_Internalname = \"vD_GRD2_KANRYO_\"+sGXsfl_344_fel_idx ;\n AV29D_GRD2_SEL = GXutil.strtobool( httpContext.cgiGet( chkavD_grd2_sel.getInternalname())) ;\n if ( localUtil.vcdate( httpContext.cgiGet( edtavD_grd2_date_Internalname), (byte)(6)) == 0 )\n {\n httpContext.GX_msglist.addItem(localUtil.getMessages().getMessage(\"GXM_faildate\", new Object[] {\"作成日\"}), 1, \"vD_GRD2_DATE\");\n GX_FocusControl = edtavD_grd2_date_Internalname ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"GX_FocusControl\", GX_FocusControl);\n wbErr = true ;\n AV22D_GRD2_DATE = GXutil.nullDate() ;\n }\n else\n {\n AV22D_GRD2_DATE = localUtil.ctod( httpContext.cgiGet( edtavD_grd2_date_Internalname), 6) ;\n }\n AV31D_GRD2_TIME = httpContext.cgiGet( edtavD_grd2_time_Internalname) ;\n if ( ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd2_memo_no_Internalname), \".\", \",\") < 0 ) ) || ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd2_memo_no_Internalname), \".\", \",\") > 999 ) ) )\n {\n httpContext.GX_msglist.addItem(localUtil.getMessages().getMessage(\"GXM_badnum\"), 1, \"vD_GRD2_MEMO_NO\");\n GX_FocusControl = edtavD_grd2_memo_no_Internalname ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"GX_FocusControl\", GX_FocusControl);\n wbErr = true ;\n AV28D_GRD2_MEMO_NO = (short)(0) ;\n }\n else\n {\n AV28D_GRD2_MEMO_NO = (short)(localUtil.ctol( httpContext.cgiGet( edtavD_grd2_memo_no_Internalname), \".\", \",\")) ;\n }\n AV27D_GRD2_MEMO_KBN = httpContext.cgiGet( edtavD_grd2_memo_kbn_Internalname) ;\n if ( ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd2_subject_id_Internalname), \".\", \",\") < 0 ) ) || ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd2_subject_id_Internalname), \".\", \",\") > 999999 ) ) )\n {\n httpContext.GX_msglist.addItem(localUtil.getMessages().getMessage(\"GXM_badnum\"), 1, \"vD_GRD2_SUBJECT_ID\");\n GX_FocusControl = edtavD_grd2_subject_id_Internalname ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"GX_FocusControl\", GX_FocusControl);\n wbErr = true ;\n AV30D_GRD2_SUBJECT_ID = 0 ;\n }\n else\n {\n AV30D_GRD2_SUBJECT_ID = (int)(localUtil.ctol( httpContext.cgiGet( edtavD_grd2_subject_id_Internalname), \".\", \",\")) ;\n }\n if ( ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd2_crf_id_Internalname), \".\", \",\") < 0 ) ) || ( ( localUtil.ctol( httpContext.cgiGet( edtavD_grd2_crf_id_Internalname), \".\", \",\") > 9999 ) ) )\n {\n httpContext.GX_msglist.addItem(localUtil.getMessages().getMessage(\"GXM_badnum\"), 1, \"vD_GRD2_CRF_ID\");\n GX_FocusControl = edtavD_grd2_crf_id_Internalname ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"GX_FocusControl\", GX_FocusControl);\n wbErr = true ;\n AV20D_GRD2_CRF_ID = (short)(0) ;\n }\n else\n {\n AV20D_GRD2_CRF_ID = (short)(localUtil.ctol( httpContext.cgiGet( edtavD_grd2_crf_id_Internalname), \".\", \",\")) ;\n }\n AV21D_GRD2_CRF_SNM = httpContext.cgiGet( edtavD_grd2_crf_snm_Internalname) ;\n AV73D_GRD2_CRF_ITEM_NM = httpContext.cgiGet( edtavD_grd2_crf_item_nm_Internalname) ;\n AV26D_GRD2_MEMO = httpContext.cgiGet( edtavD_grd2_memo_Internalname) ;\n AV32D_GRD2_USER_NM = httpContext.cgiGet( edtavD_grd2_user_nm_Internalname) ;\n AV23D_GRD2_KAKUNIN = httpContext.cgiGet( edtavD_grd2_kakunin_Internalname) ;\n AV24D_GRD2_KAKUNIN_USER_NM = httpContext.cgiGet( edtavD_grd2_kakunin_user_nm_Internalname) ;\n AV25D_GRD2_KANRYO = httpContext.cgiGet( edtavD_grd2_kanryo_Internalname) ;\n AV102GXV14 = 1 ;\n while ( AV102GXV14 <= AV43SD_EDIT_MEMO_C.size() )\n {\n AV44SD_EDIT_MEMO_I = (SdtB719_SD01_MEMO_B719_SD01_MEMOItem)((SdtB719_SD01_MEMO_B719_SD01_MEMOItem)AV43SD_EDIT_MEMO_C.elementAt(-1+AV102GXV14));\n if ( ( AV44SD_EDIT_MEMO_I.getgxTv_SdtB719_SD01_MEMO_B719_SD01_MEMOItem_Subject_id() == AV30D_GRD2_SUBJECT_ID ) && ( AV44SD_EDIT_MEMO_I.getgxTv_SdtB719_SD01_MEMO_B719_SD01_MEMOItem_Memo_no() == AV28D_GRD2_MEMO_NO ) && ( AV44SD_EDIT_MEMO_I.getgxTv_SdtB719_SD01_MEMO_B719_SD01_MEMOItem_Crf_id() == AV20D_GRD2_CRF_ID ) )\n {\n AV44SD_EDIT_MEMO_I.setgxTv_SdtB719_SD01_MEMO_B719_SD01_MEMOItem_Sel_flg( AV29D_GRD2_SEL );\n httpContext.ajax_rsp_assign_sdt_attri(\"\", false, \"AV44SD_EDIT_MEMO_I\", AV44SD_EDIT_MEMO_I);\n if (true) break;\n }\n AV102GXV14 = (int)(AV102GXV14+1) ;\n }\n /* End For Each Line */\n }\n if ( nGXsfl_344_fel_idx == 0 )\n {\n nGXsfl_344_idx = (short)(1) ;\n sGXsfl_344_idx = GXutil.padl( GXutil.ltrim( GXutil.str( nGXsfl_344_idx, 4, 0)), (short)(4), \"0\") ;\n chkavD_grd2_sel.setInternalname( \"vD_GRD2_SEL_\"+sGXsfl_344_idx );\n edtavD_grd2_date_Internalname = \"vD_GRD2_DATE_\"+sGXsfl_344_idx ;\n edtavD_grd2_time_Internalname = \"vD_GRD2_TIME_\"+sGXsfl_344_idx ;\n edtavD_grd2_memo_no_Internalname = \"vD_GRD2_MEMO_NO_\"+sGXsfl_344_idx ;\n edtavD_grd2_memo_kbn_Internalname = \"vD_GRD2_MEMO_KBN_\"+sGXsfl_344_idx ;\n edtavD_grd2_subject_id_Internalname = \"vD_GRD2_SUBJECT_ID_\"+sGXsfl_344_idx ;\n edtavD_grd2_crf_id_Internalname = \"vD_GRD2_CRF_ID_\"+sGXsfl_344_idx ;\n edtavD_grd2_crf_snm_Internalname = \"vD_GRD2_CRF_SNM_\"+sGXsfl_344_idx ;\n edtavD_grd2_crf_item_nm_Internalname = \"vD_GRD2_CRF_ITEM_NM_\"+sGXsfl_344_idx ;\n edtavD_grd2_memo_Internalname = \"vD_GRD2_MEMO_\"+sGXsfl_344_idx ;\n edtavD_grd2_user_nm_Internalname = \"vD_GRD2_USER_NM_\"+sGXsfl_344_idx ;\n edtavD_grd2_kakunin_Internalname = \"vD_GRD2_KAKUNIN_\"+sGXsfl_344_idx ;\n edtavD_grd2_kakunin_user_nm_Internalname = \"vD_GRD2_KAKUNIN_USER_NM_\"+sGXsfl_344_idx ;\n edtavD_grd2_kanryo_Internalname = \"vD_GRD2_KANRYO_\"+sGXsfl_344_idx ;\n }\n nGXsfl_344_fel_idx = (short)(1) ;\n }", "title": "" }, { "docid": "5c962dc36b55f5ba4fbca4162950399c", "score": "0.5025726", "text": "private ArrayList<ItemGrabacion.itemGab> getDatos() {\n return ItemGrabacion.ArregloLista();\n }", "title": "" }, { "docid": "ab50d14d8e9267f32c87326be9109ae5", "score": "0.50206035", "text": "private void fillInventory(Map<String, Integer> totalItemsQuantity){\n IngredientInventory ingredientInventory = IngredientInventory.getInstance();\n for(Map.Entry e: totalItemsQuantity.entrySet()){\n ingredientInventory.setIngredientQuantity((String)e.getKey(), (Integer)e.getValue());\n }\n ingredientInventory.setInitialIngredients();\n\n }", "title": "" }, { "docid": "cca719b86ecb55d8b13c1fcfd4b2b119", "score": "0.50135624", "text": "public void AddItemsToRecyclerViewArrayList(){\n\n Number = new ArrayList<>();\n Number.add(\"Trip Offer 1\");\n Number.add(\"Trip Offer 2\");\n Number.add(\"Trip Offer 3\");\n Number.add(\"Trip Offer 4\");\n Number.add(\"Trip Offer 5\");\n Number.add(\"Trip Offer 6\");\n Number.add(\"Trip Offer 7\");\n Number.add(\"Trip Offer 8\");\n Number.add(\"Trip Offer 9\");\n Number.add(\"Trip Offer 10\");\n\n }", "title": "" }, { "docid": "49aaedf15217337f8b091e0b95d3d978", "score": "0.5009863", "text": "private void addMockList() {\n\n for (int i=0;i<dataKeyString.size();i++){\n mAdapter.addItem(new GridItem(dataKeyString.get(i),dataKeyInteger.get(i),dataKeyImages.get(i)));\n }\n\n\n /* if (dataKeyString.size()>0){\n //mAdapter.addItem(new HeaderItem(\"Machine Details\"));\n for (int i=0;i<4;i++){\n mAdapter.addItem(new GridItem(dataKeyString.get(i),dataKeyInteger.get(i),\"\"));\n }\n\n if (Constants.USER_ROLE.equals(\"Operator\")){\n int count=0;\n for (int i=4;i<dataKeyString.size();i++){\n String image=operatorMachineCountList.get(count).getCategoryImage();\n mAdapter.addItem(new GridItem(dataKeyString.get(i),dataKeyInteger.get(i),image));\n count++;\n }\n\n }\n\n if (Constants.USER_ROLE.equals(\"Renter\")){\n if (dataKeyString.size()>4){\n for (int i=4;i<dataKeyString.size();i++){\n mAdapter.addItem(new GridItem(dataKeyString.get(i),dataKeyInteger.get(i),\"\"));\n }\n }\n }\n\n\n }*/\n /* int headerPosition = new Random().nextInt(19) + 1;\n\n for (int i = 0; i < 100; i++) {\n if (i % headerPosition == 0) {\n mAdapter.addItem(new HeaderItem(\"Header \" + getHeaderCounter()));\n headerPosition = new Random().nextInt(19) + 1;\n }\n\n mAdapter.addItem(new GridItem(\"Grid \" + getGridCounter(), mGridCounter));\n }*/\n }", "title": "" }, { "docid": "102930794d5068e0ebd9933a1b322651", "score": "0.5006451", "text": "public List<GroceryItem> reitrieveItemList() throws PantryException;", "title": "" }, { "docid": "5eac53724e22ccd0d6e8dbc730d36bc1", "score": "0.5001895", "text": "private void loadBagItem(GameCharacter role,NodeList itemList) {\n\n\t\tString itemName=\" \" ;\n\t\tint itemWeight=0;\n\t\tint itemPrice=0;\n\t\tItemFactory itemFc = null;\n\t\tString equipmentType = \" \";\n\t\tString itemType = \" \";\n\t\tint[] fixData = new int[15];\n\n\t\tfor (int j = 0; j < itemList.getLength(); j++) {\n\t\t\tNode itemChildren = itemList.item(j);\n\t\t\tif (itemChildren instanceof Element) {\n\n\t\t\t\tif (((Element) itemChildren).getTagName().compareToIgnoreCase(\n\t\t\t\t\t\tCharacterSave.FIELD_EQUIPMENT_TYPE) == 0) {\n\t\t\t\t\titemFc = new ItemFactory(itemChildren.getTextContent());\n\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(CharacterSave.FIELD_ITEM_TYPE) == 0) {\n\t\t\t\t\t\n\t\t\t\t\t\titemType = itemChildren.getTextContent();\n\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(CharacterSave.FIELD_ITEM_NAME) == 0) {\n\t\t\t\t\titemName = itemChildren.getTextContent();\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(CharacterSave.FIELD_ITEM_WEIGHT) == 0) {\n\t\t\t\t\titemWeight = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(CharacterSave.FIELD_ITEM_PRICE) == 0) {\n\t\t\t\t\titemPrice = (Integer\n\t\t\t\t\t\t\t.parseInt(itemChildren.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(CharacterSave.FIELD_ADJUST_ATK) == 0) {\n\t\t\t\t\tfixData[0] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(\n\t\t\t\t\t\t\t\tCharacterSave.FIELD_ADJUST_PHYSIC_ALARMOR) == 0) {\n\t\t\t\t\tfixData[1] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(\n\t\t\t\t\t\t\t\tCharacterSave.FIELD_ADJUST_MAGIC_RESIST) == 0) {\n\t\t\t\t\tfixData[2] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(\n\t\t\t\t\t\t\t\tCharacterSave.FIELD_ADJUST_ADATTACK_DISTANCE) == 0) {\n\t\t\t\t\tfixData[3] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(\n\t\t\t\t\t\t\t\tCharacterSave.FIELD_ADJUST_MOVE_DISTANCE) == 0) {\n\t\t\t\t\tfixData[4] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(\n\t\t\t\t\t\t\t\tCharacterSave.FIELD_ADJUST_STRENGTH) == 0) {\n\t\t\t\t\tfixData[5] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(\n\t\t\t\t\t\t\t\tCharacterSave.FIELD_ADJUST_DEXTERITY) == 0) {\n\t\t\t\t\tfixData[6] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(\n\t\t\t\t\t\t\t\tCharacterSave.FIELD_ADJUST_CONSTITUTION) == 0) {\n\t\t\t\t\tfixData[7] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(CharacterSave.FIELD_ADJUST_WISDOM) == 0) {\n\t\t\t\t\tfixData[8] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(\n\t\t\t\t\t\t\t\tCharacterSave.FIELD_ADJUST_INTELLIGENCE) == 0) {\n\t\t\t\t\tfixData[9] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(\n\t\t\t\t\t\t\t\tCharacterSave.FIELD_ADJUST_CHARISMA) == 0) {\n\t\t\t\t\tfixData[10] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(\n\t\t\t\t\t\t\t\tCharacterSave.FIELD_ADJUST_CURRENT_HP) == 0) {\n\t\t\t\t\tfixData[11] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(\n\t\t\t\t\t\t\t\tCharacterSave.FIELD_ADJUST_CURRENT_MP) == 0) {\n\t\t\t\t\tfixData[12] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(CharacterSave.FIELD_ADJUST_MAX_HP) == 0) {\n\t\t\t\t\tfixData[13] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t} else if (((Element) itemChildren).getTagName()\n\t\t\t\t\t\t.compareToIgnoreCase(CharacterSave.FIELD_ADJUST_MAX_MP) == 0) {\n\t\t\t\t\tfixData[14] = (Integer.parseInt(itemChildren\n\t\t\t\t\t\t\t.getTextContent()));\n\t\t\t\t\t\t\n\t\t\t\t\t role.getBackPack().getItems().add(itemFc.getItem(itemType,itemName,\n\t\t\t\t\t itemWeight, itemPrice, fixData));\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3961c27e28704d9273dfcc62c00e1efd", "score": "0.5001479", "text": "@Override\n\tpublic int getItemCount() {\n\t\treturn pial.size() + 1; // account for the header\n\t}", "title": "" }, { "docid": "fb2bd0bd3615c8f3b0b29b6d35369e10", "score": "0.4993154", "text": "protected void bhtp0010CaplicDatas() {\n }", "title": "" }, { "docid": "3ce6a299927df2accb5a7170515fbd6b", "score": "0.49913886", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG0201U00GrdOrderInfo> \n getGrdOrderItemList();", "title": "" }, { "docid": "3ce6a299927df2accb5a7170515fbd6b", "score": "0.49894798", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG0201U00GrdOrderInfo> \n getGrdOrderItemList();", "title": "" } ]
8a172a275e04c67df92e17da9bfeb5fd
The port that the flow uses to send outbound requests to initiate connection with the sender.
[ { "docid": "6815b25a2309ba8fc02ef0beb99b2279", "score": "0.0", "text": "public void setSenderControlPort(Integer senderControlPort) {\n this.senderControlPort = senderControlPort;\n }", "title": "" } ]
[ { "docid": "a9d611a2591012bda3aa0892d064ca7f", "score": "0.764526", "text": "public int getPort() { return port; }", "title": "" }, { "docid": "6779cd8881aef8a8a770203478d3fa08", "score": "0.7530722", "text": "@Override\n public int getPort() {\n return PORT;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.74530125", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.74530125", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.74530125", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.74530125", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.74530125", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.74530125", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "a6baf4214adc977995626850b13f5213", "score": "0.7446341", "text": "public int getPort() {\r\n return port;\r\n }", "title": "" }, { "docid": "51aca9dc82b09d110a0f9e30ea30fd20", "score": "0.7440243", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "3a4aef1f57e90bc65dbb57747d37816d", "score": "0.74322975", "text": "public int getPort();", "title": "" }, { "docid": "3a4aef1f57e90bc65dbb57747d37816d", "score": "0.74322975", "text": "public int getPort();", "title": "" }, { "docid": "3a4aef1f57e90bc65dbb57747d37816d", "score": "0.74322975", "text": "public int getPort();", "title": "" }, { "docid": "3a4aef1f57e90bc65dbb57747d37816d", "score": "0.74322975", "text": "public int getPort();", "title": "" }, { "docid": "ef3ed385c715f020154067a601b484bd", "score": "0.7412442", "text": "@java.lang.Override\n public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "ef3ed385c715f020154067a601b484bd", "score": "0.7412442", "text": "@java.lang.Override\n public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "59910d28a2eb26aa6818d590006d40b0", "score": "0.7406918", "text": "public int getPort() {\n return PORT;\n }", "title": "" }, { "docid": "0aed85f8ae5eebc5eab973983d09c798", "score": "0.73931456", "text": "private int getPort() {\n\t\treturn 8123;\n\t}", "title": "" }, { "docid": "f93ba36ed451757db5940eb8f3b7f6be", "score": "0.73929214", "text": "public int getPort()\n {\n return port;\n }", "title": "" }, { "docid": "15cf26403889753d828031cf40fc9f31", "score": "0.738627", "text": "@java.lang.Override\n public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "15cf26403889753d828031cf40fc9f31", "score": "0.738627", "text": "@java.lang.Override\n public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "ed1ad2410c586b548565c67c1681fe5c", "score": "0.73742795", "text": "public int getViaPort() { return this.viaPort; }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.73694885", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.73694885", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.73694885", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.73694885", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.73694885", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.73694885", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.73694885", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.73694885", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.73694885", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.73694885", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.73694885", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.73694885", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.73694885", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "8035884586afbbf96bf106da0dd49e34", "score": "0.7368095", "text": "public int getPort() {\r\r\n return port;\r\r\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.73665625", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.73665625", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.73665625", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.73665625", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.73665625", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.73665625", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "642dd56b55d51b86515c5119913c59a9", "score": "0.7344254", "text": "public int getPort()\n {\n return port;\n }", "title": "" }, { "docid": "9bee87199247cea20083ffd7e5c84751", "score": "0.7306609", "text": "protected int getPort() {\n return 9998;\n }", "title": "" }, { "docid": "fcfec4c906ce1d251cf2d2df13b0281b", "score": "0.72987133", "text": "public int getLocalPort();", "title": "" }, { "docid": "24d16cf5352d1aef5b030c8dd5165ea5", "score": "0.72872776", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "eac307964c0232c61238f67fba815005", "score": "0.72814244", "text": "public int getPort() {\r\n\t\treturn port;\r\n\t}", "title": "" }, { "docid": "c7b46b7b26b3a83219148d918936a395", "score": "0.7273727", "text": "public String getPort()\n {\n return port;\n }", "title": "" }, { "docid": "83a998d86909e6496fe52d3b7ee81dac", "score": "0.7260587", "text": "public int getPort(){\n return port;\n }", "title": "" }, { "docid": "15e82fad258efd1d1c44fac44895e934", "score": "0.724925", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ceec118a1734a68a99ad0a90ab333803", "score": "0.72418356", "text": "@java.lang.Override\n public long getPort() {\n return port_;\n }", "title": "" }, { "docid": "ceec118a1734a68a99ad0a90ab333803", "score": "0.72418356", "text": "@java.lang.Override\n public long getPort() {\n return port_;\n }", "title": "" }, { "docid": "da5ebf91b227d8dd8f6ec3e481760f0e", "score": "0.7238967", "text": "public int getPort() {\n return this.port;\n }", "title": "" }, { "docid": "26179bf19f4b3ade2014eb823743a582", "score": "0.72249335", "text": "public String getPort() {\n return port;\n }", "title": "" }, { "docid": "9b153ddd5d55e524843d65669a2b8cf4", "score": "0.72214234", "text": "public int getPort() {\r\n return this.port;\r\n }", "title": "" }, { "docid": "0c0d8e84ee5e3865c12511fd27bcd4ae", "score": "0.72208655", "text": "@java.lang.Override\n public long getPort() {\n return port_;\n }", "title": "" }, { "docid": "0c0d8e84ee5e3865c12511fd27bcd4ae", "score": "0.72208655", "text": "@java.lang.Override\n public long getPort() {\n return port_;\n }", "title": "" }, { "docid": "96deeeead5ec39f1f57fb6bb8fe1b900", "score": "0.7207418", "text": "public int getPort(){\r\n\t\treturn listenerSocket.getLocalPort();\r\n\t}", "title": "" }, { "docid": "1b4a203e135875c27f097aff4b9df91c", "score": "0.71956855", "text": "public int getPort() {\n return this.port;\n }", "title": "" }, { "docid": "1b4a203e135875c27f097aff4b9df91c", "score": "0.71956855", "text": "public int getPort() {\n return this.port;\n }", "title": "" }, { "docid": "1b4a203e135875c27f097aff4b9df91c", "score": "0.71956855", "text": "public int getPort() {\n return this.port;\n }", "title": "" }, { "docid": "1b4a203e135875c27f097aff4b9df91c", "score": "0.71956855", "text": "public int getPort() {\n return this.port;\n }", "title": "" }, { "docid": "1b4a203e135875c27f097aff4b9df91c", "score": "0.71956855", "text": "public int getPort() {\n return this.port;\n }", "title": "" }, { "docid": "0a6f4ee1dcf5251cefe7df6a65b88785", "score": "0.7188032", "text": "private int getPort() {\n return port;\n }", "title": "" }, { "docid": "bf735c526620ffd822269eabdcbd0436", "score": "0.7180519", "text": "public int getPort() {\n\t\treturn port;\n\t}", "title": "" }, { "docid": "bf735c526620ffd822269eabdcbd0436", "score": "0.7180519", "text": "public int getPort() {\n\t\treturn port;\n\t}", "title": "" }, { "docid": "bf735c526620ffd822269eabdcbd0436", "score": "0.7180519", "text": "public int getPort() {\n\t\treturn port;\n\t}", "title": "" }, { "docid": "bf735c526620ffd822269eabdcbd0436", "score": "0.7180519", "text": "public int getPort() {\n\t\treturn port;\n\t}", "title": "" }, { "docid": "bf735c526620ffd822269eabdcbd0436", "score": "0.7180519", "text": "public int getPort() {\n\t\treturn port;\n\t}", "title": "" }, { "docid": "bf735c526620ffd822269eabdcbd0436", "score": "0.7180519", "text": "public int getPort() {\n\t\treturn port;\n\t}", "title": "" }, { "docid": "2383494fd9a277d0baddef5f31231213", "score": "0.71554047", "text": "public int getPort(){\n return this.port;\n }", "title": "" }, { "docid": "2f56dd137318cdb40280ca8a9e82b636", "score": "0.71534353", "text": "public int getPort() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "2f56dd137318cdb40280ca8a9e82b636", "score": "0.71534353", "text": "public int getPort() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.7114599", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.7114599", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.7114599", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.7114599", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.7114599", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.7114599", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.7114599", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.7114599", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.7114599", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.7114599", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.7114599", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.7114599", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.7114599", "text": "int getPort();", "title": "" }, { "docid": "88bcb418a696c6e9f1cda9e849020948", "score": "0.7107341", "text": "public int getTransportPort() {\n return transportPort;\n }", "title": "" }, { "docid": "a2e1c05e968e6b9f5efeb1de11619cae", "score": "0.709891", "text": "public int getPort(){\n\t\treturn this.port;\n\t}", "title": "" }, { "docid": "ba59b3a22f472a2b1aa56ae781a6d6d8", "score": "0.7083282", "text": "public Integer getPort() {\n\t\treturn port;\n\t}", "title": "" }, { "docid": "e1d8756b73bc7d3691046fa1a18ec6dc", "score": "0.70747226", "text": "@Override\n\tpublic int getPort() {\n\t\treturn this.port;\n\t}", "title": "" }, { "docid": "8df29f7cf82363d70da8c64807ac5d3c", "score": "0.7064859", "text": "public java.lang.Integer getPort() {\n return port;\n }", "title": "" }, { "docid": "0cd631c7ed22c9c56173895bfc0d6488", "score": "0.7050322", "text": "public static int getPort() {\n return port;\n }", "title": "" }, { "docid": "31be252b23250776b25b9c904c1975ae", "score": "0.7047337", "text": "public Integer port() {\n return this.port;\n }", "title": "" }, { "docid": "31be252b23250776b25b9c904c1975ae", "score": "0.7047337", "text": "public Integer port() {\n return this.port;\n }", "title": "" }, { "docid": "2bff5499fb77005638b92a9d68fedf58", "score": "0.7038723", "text": "public int getPort() {\n // according to the docs, a InetSocketAddress is returned and the user must down-cast\n return ((InetSocketAddress) CHANNEL_FUTURE.channel().localAddress()).getPort();\n }", "title": "" }, { "docid": "819b124cf28ddde52533f805ccac26e6", "score": "0.70332336", "text": "public int getPort() {\n return mPort;\n }", "title": "" }, { "docid": "613f32c2f59dbf316fa97f465e3cb138", "score": "0.70274454", "text": "public int getLocalPort() {\n return 0;\n }", "title": "" }, { "docid": "01a045ca847490b6ea45d820f14facbd", "score": "0.7023372", "text": "public Integer get_port()\r\n\t{\r\n\t\treturn this.port;\r\n\t}", "title": "" }, { "docid": "b10878603113805ac0ca3a6bdf0b82e6", "score": "0.70072436", "text": "public abstract int getLocalPort();", "title": "" }, { "docid": "0b216a460800da04dd094a7338bd9f70", "score": "0.699831", "text": "public Integer getDestinationPort() {\n return this.destinationPort;\n }", "title": "" }, { "docid": "c45db0374670a30ecbc496ff7e380e85", "score": "0.69932926", "text": "public int getPort() {\n\t\treturn (remotePort);\n\t}", "title": "" } ]
5f992e9088d56ff73e4dc6b5ecde2b0e
intrusion sensors will use this function to pas along restores of TamperAlarms to the function of the space in turn the function will pas it to the global system
[ { "docid": "f6ad5e2ae000b7af33467da393b72eda", "score": "0.6097449", "text": "public void resetTamperAlarm(GenericSensor sensor)\n {\n checkInputs(sensor);\n if (tamperAlarm && !otherTamperAlarms())\n {\n tamperAlarm = false;\n intrusionSystem.resetTamperAlarm(this);\n System.out.println(\"Restored: \"+sensor.getSensorName()+\" value:\"+Integer.toString(sensor.getCurrentValue()));\n }\n }", "title": "" } ]
[ { "docid": "74a6bd50ec9f3add3a3c1bda3193ab5a", "score": "0.66923064", "text": "public void tamperingAlarm(GenericSensor sensor)\n {\n checkInputs(sensor);\n if (!tamperAlarm)\n {\n tamperAlarm = true;\n System.out.println(\"Tampering Alarm: \"+sensor.getSensorName()+\" value:\"+Integer.toString(sensor.getCurrentValue()));\n if (!isMaintenance())\n {\n intrusionSystem.soundTheTamperAlarm(this);\n }\n }\n }", "title": "" }, { "docid": "cb6916321a389800c9608b156aeba4ca", "score": "0.6458769", "text": "@Override\n public void teleopPeriodic() {\n SmartDashboard.putString(\"RobotStateInfo\",\"Teleop Periodic\");\n \n \n //teleoprunner.runAllMotors(teleoprunner.getAnalog());//runs runallmotors function in teleoprunner\n\n //SmartDashboard.putNumber(\"Potval\", teleoprunner.getAnalog());//puts potval on sdashboard\n \n teleoprunner.swapcameras();//runs swapcameras function in teleoprunner\n \n }", "title": "" }, { "docid": "d2595e7b3301146aaa2fcfda73e3314e", "score": "0.6360305", "text": "public void teleopPeriodic() {\r\n Scheduler.getInstance().run();\r\n Robot.drivetrain.getRightEncoderDistance();\r\n Robot.drivetrain.getLeftEncoderDistance();\r\n SmartDashboard.putNumber(\"setAngleToAngle to goal in Teleop Periodic\", Robot.getAngleToGoal());\r\n \r\n SmartDashboard.putNumber(\"GYRO VALUE\", RobotMap.gyro.getAngle());\r\n \r\n // pixyProcessing.periodic();\r\n \r\n //SmartDashboard.putNumber(\"Current Voltage Output\", RobotMap.pdp.getVoltage());\r\n //SmartDashboard.putNumber(\"Total Current Output\", RobotMap.pdp.getTotalCurrent());\r\n \r\n //System.out.println(\"Current Voltage Output: \" + RobotMap.pdp.getVoltage());\r\n // System.out.println(\"Total Current Output: \" + RobotMap.pdp.getTotalCurrent());\r\n \r\n \r\n Robot.gearManipulation.getEncoderValue();\r\n \r\n SmartDashboard.putBoolean(\"running\", true); \r\n \r\n if(powerState == PowerState.NORMAL){\r\n \tif(RobotMap.pdp.getVoltage() < 7.0){\r\n \t\tRobot.drivetrain.conservePower(true);\r\n \t\tpowerState = PowerState.POWERCONSERVING;\r\n \t}\r\n }\r\n if(powerState == PowerState.POWERCONSERVING){\r\n \t//Robot.drivetrain.conservePower(false);\r\n \t//powerState = PowerState.NORMAL;\r\n \t\r\n \t\r\n \tif(Math.abs(Robot.oi.pilotXboxSample.getY(Hand.kLeft))<0.3){\r\n \t\t\tRobot.drivetrain.conservePower(false);\r\n \t\t\tpowerState = PowerState.NORMAL;\r\n \t\t\r\n \t}\r\n \t\r\n }\r\n \r\n }", "title": "" }, { "docid": "3c6f09a0415482dc7d927a4b6959354d", "score": "0.6252531", "text": "public void teleopPeriodic()\n\t{\n//\t\tSmartDashboard.putNumber(\"Angle\", ahrs.getAngle());\n//\t\tSmartDashboard.putNumber(\"getDisplacementX\", ahrs.getDisplacementX());\n//\t\tSmartDashboard.putNumber(\"getDisplacementY\", ahrs.getDisplacementY());\n//\t\tSmartDashboard.putNumber(\"getDisplacementZ\", ahrs.getDisplacementZ());\n//\t\tSmartDashboard.putNumber(\"roll\", ahrs.getRoll());\n//\t\tSmartDashboard.putNumber(\"pitch\", ahrs.getPitch());\n//\t\tSmartDashboard.putNumber(\"RightEncoder\", drivetrain.getRightEncoderPosition());\n//\t\tSmartDashboard.putNumber(\"LeftEncoder\", drivetrain.getLeftEncoderPosition());\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "782288aca316b2172bc829f6b0f1981a", "score": "0.6168588", "text": "private boolean otherTamperAlarms()\n {\n for(GenericSensor input : myInputs)\n {\n if (input.getStatus() == \"TamperdLoop\")\n {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "42e7c054eba507fe37be0a48cf684559", "score": "0.6075024", "text": "@Override\r\n public void teleopPeriodic() {\r\n\r\n /* Drive by Joystick; Toggle Reverse or Inverted Drive */\r\n if (driveStick.getRawButtonPressed(Button.A)) {\r\n buttonA.state = !buttonA.state;\r\n }\r\n /*if (buttonA.state){\r\n driveTrain.arcadeDrive(driveStick.getRawAxis(Axis.LEFT_STICK_Y) * -1, driveStick.getRawAxis(Axis.RIGHT_STICK_X));\r\n } else if (!buttonA.state) {\r\n driveTrain.arcadeDrive(driveStick.getRawAxis(Axis.LEFT_STICK_Y), driveStick.getRawAxis(Axis.RIGHT_STICK_X));\r\n }*/\r\n driveTrain.arcadeDrive(driveStick.getY(), driveStick.getX());\r\n\r\n /*if (Math.abs(operatorJoy.getRawAxis(0)) > 0.5) {\r\n turret.rotateByJoystick(operatorJoy.getRawAxis(0));\r\n } else {\r\n turret.rotateByJoystick(0);\r\n }*/\r\n\r\n if (operatorJoy.getRawButtonPressed(turretUpButton)) {\r\n turret.raise();\r\n }\r\n\r\n if(operatorJoy.getRawButtonPressed(turretDownButton)) {\r\n turret.lower();\r\n }\r\n \r\n /* Increment & Decrement Turret Speed */\r\n if (operatorJoy.getRawButtonPressed(shooterSpeedUpButton)) {\r\n turret.setShooterSpeed(turret.shooterSpeed + 0.1);\r\n } else if (operatorJoy.getRawButtonPressed(shooterSpeedDownButton)) {\r\n turret.setShooterSpeed(turret.shooterSpeed - 0.1);\r\n }\r\n\r\n /* Manual Shoot Override */\r\n if (operatorJoy.getRawButton(shootButton) == true) { // Trigger to shoot\r\n /*stateMachine.currentState = RobotState.SHOOT;\r\n stateMachine.shoot = true\r\n stateMachine.timer.start();*/\r\n turret.activate();\r\n } else {\r\n turret.deactivate();\r\n }\r\n\r\n\r\n // Intake System Controls\r\n //intakeSystem.update();\r\n boolean intakeButtonPressed = operatorJoy.getRawButtonPressed(intakeButton);\r\n if (intakeButtonPressed) {\r\n intakeToggleState = !intakeToggleState;\r\n }\r\n\r\n if (intakeToggleState) {\r\n intakeSystem.intakeExtend();\r\n intakeSystem.activate();\r\n hopperSystem.greenIntakeOn();\r\n //hopperSystem.activate();\r\n } else {\r\n //hopperSystem.deactivate();\r\n intakeSystem.deactivate();\r\n intakeSystem.intakeRetract();\r\n hopperSystem.greenIntakeOff();\r\n }\r\n\r\n // Hopper Controls\r\n boolean hopperButton = operatorJoy.getRawButtonPressed(queueingButton);\r\n if (hopperButton) {\r\n hopperToggleState = !hopperToggleState;\r\n } \r\n\r\n if (hopperToggleState || di_q_switch.get()){\r\n hopperSystem.activate();\r\n } else {\r\n hopperSystem.deactivate();\r\n } \r\n \r\n\r\n double turretAxis = operatorJoy.getRawAxis(0);\r\n turret.rotateByJoystick(turretAxis, 0.25);\r\n stateMachine.update();\r\n\r\n //SmartDashboard.putNumber(\"Ball Count\", stateMachine.ballCount);\r\n SmartDashboard.putNumber(\"Left Shooter Speed\", turret.getLeftShooterSpeed());\r\n SmartDashboard.putNumber(\"Right Shooter Speed\", turret.getRightShooterSpeed());\r\n //SmartDashboard.putNumber(\"Speed Dial\", operatorJoy.getRawAxis(2)*50000);\r\n SmartDashboard.putBoolean(\"Reverse\", buttonA.state);\r\n}", "title": "" }, { "docid": "50d6f8e436d8de72eeb1ca5b6bfec886", "score": "0.6065991", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n //SmartDashboard.putString(\"default command\", Robot.driveTrain.getCurrentCommand().toString());\n// SmartDashboard.putString(\"Distance - Left\", Math.floor(RobotMap.driveTrainLeftEncoder.getDistance() * 1000) / 1000 + \"\");\n// SmartDashboard.putString(\"Rate - Left\", Math.floor(RobotMap.driveTrainLeftEncoder.getRate() * 1000) / 1000 + \"\");\n// SmartDashboard.putString(\"DistancePerPulse - Left\", Math.floor(RobotMap.driveTrainLeftEncoder.getDistance() / RobotMap.driveTrainLeftEncoder.get() * 1000) / 1000 + \"\");\n// SmartDashboard.putString(\"Distance - Right\", Math.floor(RobotMap.driveTrainRightEncoder.getDistance() * 1000) / 1000 + \"\");\n// SmartDashboard.putString(\"Rate - Right\", Math.floor(RobotMap.driveTrainRightEncoder.getRate() * 1000) / 1000 + \"\");\n// SmartDashboard.putString(\"DistancePerPulse - Right\", Math.floor(RobotMap.driveTrainRightEncoder.getDistance() / RobotMap.driveTrainRightEncoder.get() * 1000) / 1000 + \"\");\n// SmartDashboard.putString(\"running command: DriveTrain\", driveTrain.getCurrentCommand() + \"\");\n// SmartDashboard.putString(\"running command: Reloader\", reloader.getCurrentCommand() + \"\");\n// SmartDashboard.putString(\"running command: Collector\", collector.getCurrentCommand() + \"\");\n// SmartDashboard.putString(\"running command: Shooter\", shooter.getCurrentCommand() + \"\");\n//\t\tSmartDashboard.putNumber(\"DriveTrainLeftCopy:\", RobotMap.driveTrainLeftCopy.get());\n//\t\tSmartDashboard.putNumber(\"Drvw2iveTrainRightCopy:\", RobotMap.driveTrainRightCopy.get());\n\t\tSmartDashboard.putNumber(\"Shooter Rate - Encoder(Left)\", RobotMap.shooterShooterLeftEncoder.getRate());\n//\t\tSmartDashboard.putNumber(\"Shooter PID Rate \", RobotMap.shooterLeftPIDController.getSetpoint());\n//\t\tSmartDashboard.putString(\"Pdp Temp: \", RobotMap.driveTrainPdp.getTemperature() + \"\");\n//\t\t\n//\t\tSmartDashboard.putBoolean(\"Is ready to shoot: \", Robot.shooter.isReadyToShoot());\n \n }", "title": "" }, { "docid": "0246ee2d26c2eefe00b0750eb5d0d1a3", "score": "0.6062489", "text": "@Override\n public void periodic() {\n if(m_intake != null){\n m_intake.set(m_intakeSpeed);\n }\n \n \n //intake arm motor \n if(m_intakePid1 != null){\n if (isArmDown()){\n m_intakeArmMotor1.set(0);\n //System.out.println(\"Arm is down.\");\n }\n else {\n m_intakePid1.setReference(m_armPos, ControlType.kPosition);\n }\n }\n\n if(m_intakePid2 != null){\n if (isArmDown()){\n m_intakeArmMotor2.set(0);\n //System.out.println(\"Arm is down.\");\n }\n else {\n m_intakePid2.setReference(-m_armPos, ControlType.kPosition);\n }\n // m_intakePid.setReference(m_armPos, ControlType.kPosition);\n }\n }", "title": "" }, { "docid": "0b45a727523e4ebaff8a7976054ae733", "score": "0.6049256", "text": "@Override\n public void teleopPeriodic() \n {\n /* Gamepad processing */\n // double forward = -1 * m_joystick.getY();\n // double turn = m_joystick.getX();\n double forward = m_joystick.getRawAxis(5);\n double turn = m_joystick.getRawAxis(4);\n\n forward = Deadband(forward);\n turn = Deadband(turn);\n\n if( m_joystick.getRawButton(5))\n {\n RobotActualSpeed = ROBOT_MAX_SPEED;\n RobotActualTurnSpeed = ROBOT_MAX_TURNSPEED;\n }\n else\n {\n RobotActualSpeed = ROBOT_NORMAL_SPEED; \n RobotActualTurnSpeed = ROBOT_NORMAL_TURNSPEED;\n }\n \n forward = forward * RobotActualSpeed;\n turn = turn * RobotActualTurnSpeed;\n\n /* Arcade Drive using PercentOutput along with Arbitrary Feed Forward supplied by turn */\n if( sobj.busy() == false )\n {\n RightMotor.set(ControlMode.PercentOutput, forward, DemandType.ArbitraryFeedForward, +turn);\n LeftMotor.set(ControlMode.PercentOutput, forward, DemandType.ArbitraryFeedForward, -turn);\n SmartDashboard.putNumber(\"Speed Profile\", forward ); \n\n if( m_joystick.getRawButton(4) && sobj.busy() == false )\n sobj.Start_Move(true, ROBOT_MAX_SPEED, 25);\n \n\n if( m_joystick.getRawButton(1) && sobj.busy() == false )\n sobj.Start_Move(false, ROBOT_MAX_SPEED, 25);\n }\n sobj.scurve_move(); // Process any auto commands for scurve profile\n mast_obj.Mast_Controls();\n }", "title": "" }, { "docid": "b38a38048444dd94a3f6d8c2672ebaea", "score": "0.6008595", "text": "public void teleopPeriodic() {\r\n \tSmartDashboard.putNumber(\"Gear Intake Encoder Value\", Robot.gearIntake.gearLifter2.getEncPosition());\r\n \tSmartDashboard.putNumber(\"Speed of Drive\", Robot.driveTrain.leftFrontMotor.getEncVelocity());\r\n\t\tdouble shootSpeed = Robot.shooter.shooterMotorTwo.getSpeed();\r\n\t\tSmartDashboard.putNumber(\"yaw\", Robot.navx.getYaw());\r\n\t\tdouble motorOutput = Robot.shooter.shooterMotorTwo.getOutputVoltage() / Robot.shooter.shooterMotorTwo.getBusVoltage();\r\n\t\tdouble motorOutput2 = Robot.shooter.shooterMotorOne.getOutputVoltage() / Robot.shooter.shooterMotorOne.getBusVoltage();\r\n\r\n\t\tSmartDashboard.putNumber(\"Speed\", Robot.shooter.shooterMotorTwo.getSpeed());\r\n\t\t//System.out.println(\"ShotSpeed: \" + shootSpeed);\r\n\t\t//System.out.println(\"Error: \" + Robot.shooter.shooterMotorTwo.getClosedLoopError());\r\n\t\tSmartDashboard.putNumber(\"Error: \", Robot.shooter.shooterMotorTwo.getClosedLoopError());\r\n\t\tSmartDashboard.putNumber(\"P Value\", Robot.shooter.shooterMotorTwo.getP());\r\n\t\tSmartDashboard.putNumber(\"I Value: \", Robot.shooter.shooterMotorTwo.getI());\r\n\t\tSmartDashboard.putNumber(\"D Value: \",\tRobot.shooter.shooterMotorTwo.getD());\r\n\t\tSmartDashboard.putNumber(\"F Value: \", Robot.shooter.shooterMotorTwo.getF()); \r\n\t\tSmartDashboard.putNumber(\"Motor Output :\" , motorOutput);\r\n\t\tSmartDashboard.putNumber(\"Motor Output2\", motorOutput2);\r\n\t\t\r\n\t\tSmartDashboard.putNumber(\"Target Speed :\", Robot.shooter.shooterMotorTwo.getSetpoint());\r\n\t\tSmartDashboard.putNumber(\"Gear Intake Current\", Robot.gearIntake.gearLifter1.getOutputCurrent());\r\n\t\t\r\n\t\t//SmartDashboard.putNumber(\"Speed2\", Robot.shooter.shooterMotorOne.getSpeed());\r\n\t\tdouble diameter = 4;\r\n \tdouble circumference = diameter;\r\n \tdouble ticksRight = Robot.driveTrain.leftFrontMotor.getEncPosition();\r\n \tdouble ticksLeft = Robot.driveTrain.rightBackMotor.getEncPosition();\r\n \tdouble drivenRight = ((ticksRight/1024)*circumference);\r\n \tdouble drivenLeft = ((ticksLeft/1024)*circumference);\r\n \tSmartDashboard.putNumber(\"Driven Right\", drivenRight);\r\n \tSmartDashboard.putNumber(\"Driven Left\", drivenLeft);\r\n \tdouble avgDriven = ((Math.abs(drivenLeft) + Math.abs(drivenRight))/2);\r\n \tSmartDashboard.putNumber(\"dAvg Driven\", avgDriven);\r\n \tSmartDashboard.putNumber(\"Angle \", Robot.navx.getAngle());\r\n Scheduler.getInstance().run();\r\n \r\n \r\n //NetworkTable server = NetworkTable.getTable(\"Vision\");\r\n // System.out.println(server.getNumber(\"IMAGE_COUNT\",0.0));\r\n \r\n //table.getNumber(\"COG_X\",boxX);\r\n //table.getNumber(\"COG_Y\",boxY);\r\n //table.getNumber(\"COG_AREA\",boxA);\r\n //table.getNumber(\"IMAGE_HEIGHT\",imgH);\r\n //table.getNumber(\"IMAGE_WIDTH\",imgW);\r\n //System.out.println(boxX);\r\n //System.out.println(boxY);\r\n //System.out.println(boxA);\r\n }", "title": "" }, { "docid": "fe5ce1686a1f0265892d387e6e826951", "score": "0.59628874", "text": "@Override\n\tpublic void teleopPeriodic() {\n//\t\tif(initt == 0) {\n//\t\t\tMap.navx.reset();\n//\t\t\tMap.navx.zeroYaw();\n////\t\t\tMap.newGyro.reset();\n//\t\t\tinitt = 1;\n//\t\t}\n\t\tauto.OI.Enable();\n//\t\tdouble goal = SmartDashboard.getNumber(\"Goal\");\n//\t\tdouble speed = SmartDashboard.getNumber(\"Speed\");\n//\t\tif(Map.Xbox2.getAButton()) {\n//\t\t\tauto.order_ = 1;\n//\t\t}\n//\t\tif(Map.Xbox2.getYButton()) {\n//\t\t\tauto.angle(goal, speed, 1);\n//\t\t}\n\t\tSmartDashboard.putNumber(\"NavX Angle\", Map.navx.getAngle());\n\t\tSmartDashboard.putNumber(\"NavX Angle Mod\", (Map.navx.getAngle()) % 360);\n\t}", "title": "" }, { "docid": "f8960ccfe493d944b0b1b0d09223f346", "score": "0.59387976", "text": "public void autonomous() {\n shooterTilt.set(Relay.Value.kReverse);\n waitSasha(7.9); //7.8 prev\n shooterTilt.set(Relay.Value.kOff);\n shooter.set(-1);\n waitSasha(2.9); \n for(int i = 0; i < 3; i++){\n fire(true);\n waitSasha(0.3);\n fire(false);\n waitSasha(1.15);\n }\n }", "title": "" }, { "docid": "b2e0f542e8afa6f9c34c9587a3946f68", "score": "0.58977187", "text": "public void autonomous() {\n watchdogOff();\n//ref to above public void, calls that function.\n\n //for (int i = 0; i < 5; i++) {\n // drive.drive(0.5, 0.0); // drive 50% fwd 0% turn \n // Timer.delay(0.5); // wait function, number is in wx.yz format. \n // drive.drive(0.0, 0.75); // drive 0% fwd, 75% turn \n //motion.set(300); //300 % normal speed\n motion.set(1);\n motionRight.set(1);//300 % normal speed\n try {\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n System.out.println(\"Exception caused while Running a thread sleep 10s.\");\n }\n //}\n //drive.drive(0.0, 0.0); // drive 0% forward, 0% turn\n motion.set(0);\n motionRight.set(0);\n watchdogOn();\n }", "title": "" }, { "docid": "b45bca6054a8483029515f28a88df836", "score": "0.58762616", "text": "@Override\n public void teleopPeriodic() {\n // Teleop: Robot drive\n double speed = mGamepad.getForward() - mGamepad.getReverse();\n double rotation;\n mDrive.robotDrive(speed, mGamepad.getSteering());\n if (Math.abs(mGamepad.getSensetiveSteering()) > 0.1){\n rotation = mGamepad.getSensetiveSteering() * 1;\n }\n else{\n rotation = mGamepad.getSteering() * 0.75;\n }\n //speed = Utils.map(speed, 0, 1, Constants.speedDeadZone, 1);\n /*rotation = Utils.map(rotation, 0, 1, Constants.rotationDeadZone, 1);*/\n mDrive.robotDrive(speed, rotation, 1);\n /*mDrive.updateOdometry();\n NetworkTableEntry m_xEntry = NetworkTableInstance.getDefault().getTable(\"troubleshooting\").getEntry(\"X\");\n NetworkTableEntry m_yEntry = NetworkTableInstance.getDefault().getTable(\"troubleshooting\").getEntry(\"Y\");\n var translation = mDrive.odometry.getPoseMeters().getTranslation();\n m_xEntry.setNumber(translation.getX());\n m_yEntry.setNumber(translation.getY());*/\n mGamepad.forceFeedback(speed, rotation);\n // Teleop: Pivot\n if(mDrivePanel.pivotDown()){\n mIntake.pivotDown();\n }\n else if(mDrivePanel.pivotUp()){\n mIntake.pivotUp();\n }\n else{\n mIntake.pivotStall();\n }\n // Teleop: Gamepad Intake\n if(mDrivePanel.intakeIn() || mGamepad.getIntakeGamepad()){\n mIntake.intakeOn();\n }\n else if(mGamepad.getReverseIntakeGamepad()){\n mIntake.intakeReverse();\n }\n else{\n // If manual controls is not commanding to intake\n boolean isNotIntakeUsed = false;\n //Teleop: Manual Left Roller\n if(mDrivePanel.leftRoller()){\n mIntake.leftRoller();\n }\n else if(mDrivePanel.leftRollerReverse()){\n mIntake.leftRollerReverse();\n }\n else{\n isNotIntakeUsed = true;\n mIntake.stopLeftRoller();\n }\n //Teleop: Manual Center Roller\n if(mDrivePanel.centerRoller()){\n mIntake.centerRoller();\n }\n else if(mDrivePanel.centerRollerReverse()){\n mIntake.centerRollerReverse();\n }\n else{\n isNotIntakeUsed = true;\n mIntake.stopCenterRoller();\n }\n //Teleop: Manual Right Roller\n if(mDrivePanel.rightRoller()){\n mIntake.rightRollerReverse();\n }\n else if(mDrivePanel.rightRollerReverse()){\n mIntake.rightRoller();\n }\n else{\n isNotIntakeUsed = true;\n mIntake.stopRightRoller();\n }\n // If intake is not used\n if(isNotIntakeUsed){\n mIntake.intakeStop();\n }\n }\n\n /*if(mDrivePanel.shooterSpeedUp()){\n mShooter.blindSpeedUp(1);\n }\n else{\n mShooter.shooterStop();\n }*/\n //Teleop: Shoot | Uses feeder and accelator\n /*if(mGamepad.getStartShooting()){\n mShooter.blindShoot();;\n }\n else{\n mShooter.feederOff();\n }*/\n // Teleop: Shooter Speed Up | Uses Shooter and Accelerator Wheel\n if (mDrivePanel.isShooterSpeedUpPressed()){\n shooterPressed = !shooterPressed;\n }\n\n if (shooterPressed){\n mShooter.shooterSpeedUp(wantedRPM);\n }\n else{\n mShooter.shooterStop();\n }\n /*if(mDrivePanel.shooterSpeedUp()){\n mShooter.shooterSpeedUp(wantedRPM);\n }\n else{\n mShooter.shooterStop();\n }*/\n //Teleop: Shoot | Uses feeder and accelator\n if(mGamepad.getStartShooting()){\n mShooter.shoot(wantedRPM);\n }\n else{\n mShooter.feederOff();\n }\n\n if (mDrivePanel.climberUp()){\n mClimb.releaseClimber();\n }\n else if (mDrivePanel.climberDown()){\n mClimb.climb();\n }\n else if (mDrivePanel.climbHalt()){\n mClimb.hang();\n }\n else{\n mClimb.stopClimbMotor();\n }\n\n if (mDrivePanel.resetGyro()){\n mShooter.resetSensors();\n mShooter.resetPID();\n mDrive.resetSensors();\n maxSpeed = 0;\n maxAcc = 0;\n prevLeftSpeed = 0;\n prevRightSpeed = 0;\n mDrive.resetOdometry(new Pose2d());\n }\n\n if (mDrivePanel.autoAim()){\n if (mDrivePanel.autoAim()){\n double[] visionInfo = mVision.getInfo();\n if (visionInfo[0] > 0){\n \n if (Utils.tolerance(visionInfo[1], 0, 1)){\n double distance = mVision.estimateDistanceFromAngle(visionInfo[2]);\n System.out.println(\"Distance is \" + distance + \"m\");\n }\n else{\n double arcadeRotation = mDrive.turnPID(visionInfo[1]);\n System.out.println(\"Arcade is \" + arcadeRotation);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "c23040a5e6d374c22c14d1101e604977", "score": "0.5867044", "text": "@Override\n\tpublic void teleopPeriodic() throws IllegalMonitorStateException {\n \t//Assigns various variables to current values of stick\n\t\tjoystickA = stick.getRawButton(3);\n joystickB = stick.getRawButton(2);\n \tjoystickX = stick.getRawButton(4);\n \tjoystickY = stick.getRawButton(1);\n \tjoystickLSB = stick.getRawButton(11);\n \tjoystickRSB = stick.getRawButton(12);\n \tjoystickLB = stick.getRawButton(5);\n \tjoystickRB = stick.getRawButton(6);\n \tjoystickLSX = stick.getRawAxis(0);\n \tjoystickLSY = stick.getRawAxis(1);\n \tjoystickRSX = stick.getRawAxis(3);\n \tjoystickRSY = stick2.getRawAxis(1);\n \t//Must release button and repress to toggle slowBool, avoids rapid switching every time teleopPeriodic runs\n \tif (joystickA && interlock) {\n \t\tslowBool = !slowBool;\n \t\tinterlock = false;\n \t\tarduino.writeString(\"on\");\n \t\tTimer.delay(.02);\n \t\tarduino.flush();\n \t}\n \t//If button is not pressed, reset interlock allowing another press\n \telse if (!joystickA) {\n \t\tinterlock = true;\n \t}\n \tif (joystickX && interlock2) {\n \t\tahrs.reset();\n \t}\n \telse if (!joystickX) {\n \t\tinterlock2 = true;\n \t}\n \t//Robot drive code\n \tif (slowBool) {\n \t\t//If slowBool (activated by A) is true, then drive speed is halved\n \t\tjoyLeftOut = joystickLSY * .5;\n \t\tjoyRightOut = joystickRSY * .5;\n \t}\n \telse {\n \t\tjoyLeftOut = joystickLSY;\n \t\tjoyRightOut = joystickRSY;\n \t}\n \t// Sets tank drive equal to joystick variables\n \tmyRobot.tankDrive(joyLeftOut, joyRightOut, true);\n \t//Adds encoding distances to dashboard\n \tSmartDashboard.putNumber(\"TeleOp Right Distance:\", rightEncode.getDistance());\n \tSmartDashboard.putNumber(\"TeleOp Left Distance:\", leftEncode.getDistance());\n \tSmartDashboard.putNumber(\"Z axis:\", ahrs.getAngle());\n\n\t}", "title": "" }, { "docid": "2e7d43c164271d0f9bf3741e70cc5555", "score": "0.58621657", "text": "public void periodic() {\n \tdifferentialDrive.setMaxOutput(0.8);\n RobotMap.elevator.setNeutralMode(NeutralMode.Brake);\n\n \t\n \t\n \t/*\n \t * DRIVE COMMAND\n \t */\n \tdifferentialDrive.tankDrive(oi.getJoyYLeft(), oi.getJoyYRight()); \n \t\n \t\n \t\n \t/*\n \t * ELEVATOR COMMAND\n \t */\n \t\n \t//TODO: If power sent to motor, check for limit switch\n \t//elevator.setElevatorSpeed((-oi.getRightTrigger())/1.5);\n \t\n \t//TODO: \t\tFigure out which one is which\n \tif(/*(RobotMap.elevator.get() < 0 || RobotMap.elevator.get() > 0) && Elevator.getTopLimit()*/ oi.getRightTrigger() > 0.2 ) {\n \t\televator.setElevatorSpeed(0); \t\t\n \t}\n \t\n \telse if(/*(RobotMap.elevator.get() < 0 || RobotMap.elevator.get() > 0) && !Elevator.getTopLimit()*/oi.getLeftTrigger() > 0.2 ) {\n \t\televator.setElevatorSpeed(-0.5); \t\t\n \t} \n \t\n \t\n \t/*\n \t * LIFT COMMAND\n \t */\n \t\n \t//Up\n \tif(oi.getLeftBumper() && Lift.getTopLimit() ) {\n \t\tlift.setLiftSpeed(-LIFT_SPEED);\n \t}\n \t//Down\n \telse if(oi.getRightBumper() && !Lift.getBottomLimit()) {\n \t\tlift.setLiftSpeed(LIFT_SPEED);\n \t} else {\n \t\tlift.setLiftSpeed(0);\n \t}\n \t\n \t\n \t\n \t/*\n \t * ARM COMMAND\n \t */\n \t\n \t//TODO: TEST!!!\n \tif(oi.getButtonA()) {\n \t\tarm.setArmSpeed(-1);\n \t}\n \t\n \telse if(oi.getButtonB()) {\n \t\tarm.setArmSpeed(1);\n \t} else {\n \t\tarm.setArmSpeed(0);\n \t}\n \t\n \t\n \t\n \t//Close arm with right dpad, open with left\n \tif(oi.getButtonY()) {\n \t\tarm.closeArm(Value.kReverse);\n \t}\n \telse if(oi.getButtonX()) {\n \t\tarm.closeArm(Value.kForward);\n \t} \n \t\n \t\n \tif(oi.getSelect()) {\n \t\tRobotMap.winchMotor.set(0.6);\n \t} else {\n \t\tRobotMap.winchMotor.set(0);\n \t}\n \t\n \tSmartDashboard.putString(\"Solenoid State\", arm.getArmState());\n}", "title": "" }, { "docid": "a381aac6b3b8c260e4483ff555af9110", "score": "0.5855804", "text": "public void teleopPeriodic() {\r\n\t\t// Update the Smart Dashboard Data\r\n\t\tupdateSmartDashboardData();\r\n\r\n\t\t// Logic to control the Shifting Solenoid to Low Gear\r\n\t\tif (_driveController.getRawButton(1)) {\r\n\t\t\tclimbShifter.set(DoubleSolenoid.Value.kForward);\r\n\t\t}\r\n\t\t// Logic to control the Shifting Solenoid to High Gear\r\n\t\tif (_driveController.getRawButton(2)) {\r\n\t\t\tclimbShifter.set(DoubleSolenoid.Value.kReverse);\r\n\t\t}\r\n\r\n\t\t// When the button controlling this is not pressed, the cube-grabbing\r\n\t\t// mechanism is tilted up\r\n\t\t// If it is not, the mechanism will remain at its lowest point.\r\n\t\tif (_driveController.getRawButton(5) || _driveController.getRawButton(6)) {\r\n\t\t\tpneuTilt.set(DoubleSolenoid.Value.kReverse);\r\n\t\t} else {\r\n\t\t\tpneuTilt.set(DoubleSolenoid.Value.kForward);\r\n\t\t}\r\n\r\n\t\t// Logic for Cube Pickup and Release\r\n\t\tif (_cubeController.getRawButton(5)) {\r\n\t\t\t_pickupLeft.set(1);\r\n\t\t\t_pickupRight.set(-1);\r\n\t\t} else if (_cubeController.getRawButton(6)) {\r\n\t\t\t_pickupLeft.set(-1);\r\n\t\t\t_pickupRight.set(1);\r\n\t\t} else if (_cubeController.getRawAxis(2) != 0) {\r\n\t\t\t_pickupLeft.set(_cubeController.getRawAxis(2)); // 7\r\n\t\t\t_pickupRight.set(_cubeController.getRawAxis(2) * -1.0); // 7\r\n\t\t} else {\r\n\t\t\t_pickupLeft.set(_cubeController.getRawAxis(3) * -1.0); // 8\r\n\t\t\t_pickupRight.set(_cubeController.getRawAxis(3)); // 8\r\n\t\t}\r\n\r\n\t\t// Logic to Lift and Lower\r\n\t\tdouble curLiftVal = _cubeController.getRawAxis(1) * -0.8;\r\n\t\tif (curLiftVal > 0.1 && !limitSwitchHigh.get()) {\r\n\t\t\t_lift.set(curLiftVal);\r\n\t\t\t_lift2.set(curLiftVal);\r\n\t\t} else if (curLiftVal < -0.1 && !limitSwitchLow.get()) {\r\n\t\t\t_lift.set(curLiftVal * 0.5);\r\n\t\t\t_lift2.set(curLiftVal * 0.5);\r\n\t\t} else if (curLiftVal > 0.1 && limitSwitchHigh.get()) {\r\n\t\t\t_lift.set(0.07);\r\n\t\t\t_lift2.set(0.07);\r\n\t\t} else {\r\n\t\t\t_lift.set(0);\r\n\t\t\t_lift2.set(0);\r\n\t\t}\r\n\r\n\t\t// Logic for Cube Tilt\r\n\t\t// _pickupTilt.set(_cubeController.getRawAxis(5)); // was 5\r\n\r\n\t\t// Basic logic to drive the robot\r\n\t\tif (!limitSwitchLow.get()) {\r\n\t\t\t// Slow the robot down when not at low position on lift\r\n\t\t\t_drive.arcadeDrive(_driveController.getRawAxis(1) * -0.68, _driveController.getRawAxis(4) * 0.68);\r\n\t\t} else {\r\n\t\t\t// FULL SPEED!!! robot drive (not quite hyper speed though)\r\n\t\t\t_drive.arcadeDrive(_driveController.getRawAxis(1) * -1, _driveController.getRawAxis(4) * 0.75);\r\n\t\t}\r\n\r\n\t\t// Logic to reset sensor for auton testing\r\n\t\tif (_driveController.getRawButton(3)) {\r\n\t\t\t// When the blue \"X\" button is pressed on Drive Controller\r\n\t\t\tinitAndResetAll();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "08739b5d4cb4974c5bf6a2957cc8b635", "score": "0.58413255", "text": "@Override\n public void robotPeriodic() {\n pdp.clearStickyFaults();\n \n }", "title": "" }, { "docid": "2cc8f2d9071d4c56923dc8401abc5b1d", "score": "0.5797978", "text": "public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t\t\r\n\t\tSmartDashboard.putNumber(\"Chainsaw Position\", RobotMap.chainsawchainsawEncoder.getDistance());\r\n\t\tSmartDashboard.putNumber(\"Chainsaw Speed\", RobotMap.chainsawchainsawEncoder.getRate());\r\n\t\t\r\n\t\tSmartDashboard.putBoolean(\"LeftBumper\", Robot.drivetrain.getLeftBumper());\r\n\t\tSmartDashboard.putBoolean(\"RightBumper\", Robot.drivetrain.getRightBumper());\r\n\t\t\r\n\t\tSmartDashboard.putNumber(\"LeftIR\", Robot.drivetrain.getLeftIR());\r\n\t\tSmartDashboard.putNumber(\"RightIR\", Robot.drivetrain.getRightIR());\r\n\t\t\r\n\t\tSmartDashboard.putBoolean(\"Is Chainsaw Broken\", Robot.chainsaw.isBroken());\r\n\t\t\r\n\t\tSmartDashboard.putNumber(\"Tine Elevator Pot\", Robot.tineElevator.getPotValue());\r\n\t\tSmartDashboard.putNumber(\"Tine Gripper Pot\", Robot.tineGripper.getPotValue());\r\n\t\tSmartDashboard.putNumber(\"4 Bar Pot\", Robot.chainsaw4Bar.getPotValue());\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ae8af9f43d3e31c506414d26e403ccc5", "score": "0.57890904", "text": "public void teleopPeriodic() {\n //System.out.println(\"ARM_POT\" + robot.shooter.getPosition());\n \n double scalar = .75;\n // code with joysticks\n// double leftIn = driverLeft.getRawAxis(2);\n// double rightIn = driverRight.getRawAxis(2);\n// \n// if (driverRight.getRawButton(12) || driverRight.getRawButton(1)) {\n// scalar = 1.0;\n// } else if (driverRight.getRawButton(1)) {\n// scalar = 1.0;\n// }\n \n // code with gamepad\n double leftIn = driverPad.getRawAxis(2);\n double rightIn = driverPad.getRawAxis(4);\n \n if (driverPad.getRawButton(8)){\n scalar = 1.0;\n } else if (driverPad.getRawButton(7)){\n scalar = 1.0;\n }\n \n\n//\n // Note: Remove this if it isn't being used. I have a feeling it might\n // be buggy if accidentally triggered. Just keep drive in tank\n // drive state.\n \n //code with joysticks\n// if (driverLeft.getRawButton(12)) {\n// System.out.println(\"PID_BRAKE\");\n// robot.drivetrain.setState(DriveTrain.States.PID_BRAKE);\n// //robot.drivetrain.setState(driveState);\n// } else {\n// robot.drivetrain.setState(DriveTrain.States.TANK_DRIVE);\n// }\n // code with gamepad\n if(driverPad.getRawButton(7)){\n System.out.println(\"PID_BRAKE\");\n robot.drivetrain.setState(DriveTrain.States.PID_BRAKE);\n //robot.drivetrain.setState(driveState);\n }else {\n robot.drivetrain.setState(DriveTrain.States.TANK_DRIVE);\n }\n \n\n \n \n robot.drivetrain.setTankDrive(leftIn * scalar, rightIn * scalar);\n robot.drivetrain.run();\n\n double offset = 0.0;\n\n // Shooter state change conditional\n if (gamePad.getButton(9)) {\n state = Shooter.States.MANUAL;\n } else if (gamePad.getButton(10)) {\n state = Shooter.States.STAGE;\n } else if (gamePad.getButton(8)\n && robot.intake.state == Constants.Intake.EXTENDED) {\n\n // Note: consider removing the following block. It hasn't been used\n // since end of build.\n// if (gamePad.getButton(1) && gamePad.getButton(2)) {\n// offset = .05;\n// } else if (gamePad.getButton(2) && gamePad.getButton(3)) {\n// offset = .1;\n// } else if (gamePad.getButton(3) && gamePad.getButton(4)) {\n// offset = -.25;\n// } else if (gamePad.getButton(1) && gamePad.getButton(4)) {\n// offset = -.3;\n// } else if (gamePad.getButton(1)) {\n// offset = -.05;\n// } else if (gamePad.getButton(2)) {\n// offset = -.1;\n// } else if (gamePad.getButton(3)) {\n// offset = -.15;\n// } else if (gamePad.getButton(4)) {\n// offset = -.2;\n// }\n robot.shooter.setGoalOffset(offset); // Note: this too\n state = Shooter.States.SHOOT;\n } else if (gamePad.getButton(1)) {\n state = Shooter.States.SHORT_STAGE;\n \n } else if (gamePad.getButton(7)\n && robot.intake.state == Constants.Intake.EXTENDED) {\n state = Shooter.States.SHORT_SHOT;\n } else if (robot.intake.state == Constants.Intake.RETRACTED\n && robot.shooter.getOffsetFromBottom() < .75) {\n state = Shooter.States.STOW;\n } else if (robot.shooter.getShootDone()) {\n state = Shooter.States.HOLD;\n //} else if (robot.shooter.wantLiveCal()) {\n // state = Shooter.States.LIVE_CAL;\n } else if (robot.intake.output < 0) {\n state = Shooter.States.HOLD;\n robot.shooter.setGoalOffset(\n SmartDashboard.getNumber(\"StageOffset\", 0));\n }\n\n // Smart compressor logic to prevent further battery drain.\n // Stops compressor during any shot states or if the intake is running.\n if (robot.shooter.getState() == Shooter.States.SHOOT\n || robot.shooter.getState() == Shooter.States.SHORT_SHOT\n || intake == 1.0\n || gamePad.getButton(4)) {\n robot.comp.stop();\n } else {\n robot.comp.start();\n }\n\n // Manual control logic.\n robot.shooter.setManual(gamePad.getRightY() / 2);\n\n robot.shooter.setState(state);\n robot.shooter.run();\n\n // Intake system control.\n if (gamePad.getDPad(GamePad.DPadStates.UP)) {\n intake = 1.0;\n robot.intake.setMotors(intake);\n } else if (gamePad.getDPad(GamePad.DPadStates.DOWN)) {\n intake = 1.0;\n robot.intake.setMotors(-intake);\n\n } else {\n intake = 0.0;\n robot.intake.setMotors(intake);\n }\n\n robot.intake.setToggle(gamePad.getButton(5)\n || driverLeft.getRawButton(1)\n && driverRight.getRawButton(1));\n this.updateLcd();\n this.updateSmartDashboard();\n }", "title": "" }, { "docid": "edd186091d6a1412622703b41bd4a8a9", "score": "0.57827204", "text": "@Override\n public void autonomousPeriodic() {\n SmartDashboard.putString(\"RobotStateInfo\",\"Auto Periodic\");\n\n teleoprunner.idle();\n\n }", "title": "" }, { "docid": "d7dcb34d56bfd5dda171eb1417b95e36", "score": "0.5781033", "text": "public static void teleopPeriodic() {\n\n\t\tFRONT_POWER = ((Input.getRight().getRawAxis(2) - 1) / -2);\n\t\tif (Input.getRight().getRawButton(1)) {\n\t\t\tsetShooters(FRONT_POWER);\n\t\t} else {\n\t\t\tsetShooters(0);\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "ae4ef15258f2a9a4cf61ddc466f29dcf", "score": "0.57607585", "text": "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n Robot.drivetrain.getRightEncoderDistance();\r\n Robot.drivetrain.getLeftEncoderDistance();\r\n SmartDashboard.putNumber(\"GYRO VALUE\", RobotMap.gyro.getAngle());\r\n //gearAutonomous.start();\r\n //robotVision.periodic();\r\n \r\n }", "title": "" }, { "docid": "92ad2a30bc92b42106cf72d076584b18", "score": "0.5757312", "text": "@Override\n public void robotPeriodic() {\n /*SmartDashboard.putNumber(\"Shooter RPM\", mShooter.getShooterRPM());\n SmartDashboard.putNumber(\"Accelerator RPM\", mShooter.getAccRPM());\n SmartDashboard.putNumber(\"Shooter Rate\", mShooter.shooterEnc.getRate());\n SmartDashboard.putNumber(\"Accelerator Rate\", mShooter.accEnc.getRate());*/\n mSelectedMode = m_cameraChooser.getSelected();\n switch (mSelectedMode){\n case kProcessingMode:\n mVision.setCameraMode(false);\n break;\n case kDrivingMode:\n mVision.setCameraMode(true);\n break;\n }\n wantedRPM = SmartDashboard.getNumber(\"Wanted RPM\", wantedRPM);\n SmartDashboard.putNumber(\"Wanted RPM\", wantedRPM);\n SmartDashboard.putNumber(\"Shooter RPM\", mShooter.getShooterRPM());\n SmartDashboard.putNumber(\"Acc RPM\", mShooter.getAccRPM());\n SmartDashboard.putNumber(\"Shooter Rate\", mShooter.shooterEnc.getRate());\n SmartDashboard.putNumber(\"Acc Rate\", mShooter.accEnc.getRate());\n SmartDashboard.putBoolean(\"Is Ready For Shoot\", mShooter.isReadyForShoot(wantedRPM/60));\n SmartDashboard.putNumber(\"Drive Right Encoder\", mDrive.rightEncoder.getDistance());\n SmartDashboard.putNumber(\"Drive Left Encoder\", mDrive.leftEncoder.getDistance());\n SmartDashboard.putNumber(\"Gyro\", mDrive.getGyroAngle());\n SmartDashboard.putNumber(\"Heading\", mDrive.getFusedGyroRotation2D().getDegrees());\n double[] accAngles = new double[3];\n mDrive.pigeon.getAccelerometerAngles(accAngles);\n SmartDashboard.putNumber(\"Pigeon Acc X\", accAngles[0]);\n SmartDashboard.putNumber(\"Pigeon Acc Y\", accAngles[1]);\n SmartDashboard.putNumber(\"Pigeon Acc Z\", accAngles[2]);\n double leftDistance = mDrive.leftEncoder.getDistance();\n double rightDistance = mDrive.rightEncoder.getDistance();\n double curTime = timer.get();\n double dT = curTime - prevTime;\n double leftDiff = leftDistance - prevLeftDistance;\n double rightDiff = rightDistance - prevRightDistance;\n double leftSpeed = leftDiff/dT;\n double rightSpeed = rightDiff/dT;\n DifferentialDriveWheelSpeeds wheelSpeeds = new DifferentialDriveWheelSpeeds(leftSpeed, rightSpeed);\n ChassisSpeeds chassisSpeeds = Constants.kDriveKinematics.toChassisSpeeds(wheelSpeeds);\n double currentSpeed = chassisSpeeds.vxMetersPerSecond;\n //double currentSpeed = (leftSpeed + rightSpeed) / 2;\n double currentAcc = 0;\n double leftAcc = (leftSpeed - prevLeftSpeed) / dT;\n double rightAcc = (rightSpeed - prevRightSpeed) / dT;\n if (leftDiff > 0 && rightDiff > 0){\n currentAcc = leftAcc + rightAcc;\n }\n else{\n currentAcc = 0;\n }\n prevTime = curTime;\n SmartDashboard.putNumber(\"Left Speed\", leftSpeed);\n SmartDashboard.putNumber(\"Right Speed\", rightSpeed);\n SmartDashboard.putNumber(\"Speed\", currentSpeed);\n SmartDashboard.putNumber(\"Acceleration\", currentAcc);\n if (currentSpeed > maxSpeed){\n maxSpeed = currentSpeed;\n }\n if (currentAcc > maxAcc){\n maxAcc = currentAcc;\n }\n SmartDashboard.putNumber(\"MAX Speed\", maxSpeed);\n SmartDashboard.putNumber(\"MAX Acceleration\", maxAcc);\n prevLeftSpeed = leftSpeed;\n prevRightSpeed = rightSpeed;\n prevLeftDistance = leftDistance;\n prevRightDistance = rightDistance;\n }", "title": "" }, { "docid": "a51bbf8f33665e54f08adc227b074892", "score": "0.57272875", "text": "public void teleopPeriodic() {\n OperatorInterface.controlDriveTrain();\n OperatorInterface.controlShooter();\n OperatorInterface.controlFeeder();\n OperatorInterface.controlCamera();\n DriveTrain.rangeUltrasonics();\n LCD.println(DriverStationLCD.Line.kUser1, 1, \"\" + DriveTrain.getLeftDistance());\n LCD.println(DriverStationLCD.Line.kUser2, 1, \"\" + DriveTrain.getRightDistance());\n LCD.updateLCD();\n }", "title": "" }, { "docid": "c732a0a7ec789334c44351d61ff3a524", "score": "0.5714624", "text": "public void intrusionAlarm(GenericSensor sensor)\n {\n checkInputs(sensor);\n if (!intrusionAlarm && isArmed())\n {\n intrusionAlarm = true;\n System.out.println(\"Intrusion Alarm: \"+sensor.getSensorName()+\" value:\"+Integer.toString(sensor.getCurrentValue()));\n if (isArmed())\n {\n intrusionSystem.soundTheAlarm(this);\n }\n }\n this.space.setOccupation(sensor.getWatchInterval()*3);\n }", "title": "" }, { "docid": "07769d5b6d706e301c8427dc58d489b3", "score": "0.5711283", "text": "public void autonomousPeriodic() {\r\n\r\n }", "title": "" }, { "docid": "d9b78a0446362cb24e05804f71763d7d", "score": "0.5710814", "text": "@Override\n public void teleopPeriodic() {\n axisX = Math.pow(sticky.getRawAxis(0), 3);\n axisY = -1 * Math.pow(sticky.getRawAxis(1), 3);\n rotZ = sticky.getRawAxis(5) * 0.75;\n mecanum.driveCartesian(axisX, axisY, rotZ);\n\n // Subsystems\n Intake();\n elevator();\n intakeLift();\n ball();\n jack();\n hatch();\n logictechController();\n\n // Sensors\n if (connected) {\n LIDAR();\n }\n // if(conn){\n // NavX();\n // }\n\n Timer.delay(0.001);\n }", "title": "" }, { "docid": "364d60bda995f6d9a565b88de6aa17cf", "score": "0.5710638", "text": "@Override\n public void teleopPeriodic() {\n\n double multiplier = 0.8; //Base Speed\n if(m_driver.getRawButton(5)) { \n multiplier = 1.0; \n } //Drive base speed multiplier FAST\n if(m_driver.getRawButton(6)) { \n multiplier = 0.6; \n } //Drive base speed multiplier SLOW\n\n double drivePower = -multiplier * m_driver.getRawAxis(1); \n m_robotdrive.arcadeDrive(drivePower, multiplier * m_driver.getRawAxis(4));\n\n SmartDashboard.putNumber(\"Left Encoder Position\", m_leftencoder.getPosition());\n SmartDashboard.putNumber(\"Right Encoder Position\", m_rightencoder.getPosition());\n SmartDashboard.putNumber(\"Left Encoder Velocity\", m_leftencoder.getVelocity());\n SmartDashboard.putNumber(\"Right Encoder Velocity\", m_rightencoder.getVelocity());\n //displays drive base encoder values.\n\n if(m_operator.getPOV() == 0){ \n //D-PAD UP arm up\n intakeArm.set(Value.kReverse); \n }else if (m_operator.getPOV() == 180){ \n //D-PAD DOWN arm down\n intakeArm.set(Value.kForward); \n }//Intake arm up and down\n\n if(m_operator.getRawButton(2)) { // PICK BUTTON if boton held it SHOOTS shooter and shoter and intak convayer spin\n m_shooter.set(1);\n m_shootConv.set(1);\n m_intakeConv.set(1);\n } else if (m_operator.getRawButton(1)) { // PICK BUTTON if held it INTAKES \n m_intake.set(1);\n m_intakeConv.set(1);\n } else { //it turns off\n m_shooter.set(0);\n m_shootConv.set(0);\n m_intakeConv.set(0); \n m_intake.set(0);\n }\n\n /* if(m_operator.getRawButton(2)) { // PICK BUTTON if boton held shoot \n m_shooter.set(1);\n } else if (m_operator.getRawButton(1)) { // PICK BUTTON reverse shooter \n m_shooter.set(-1);\n } else { \n m_shooter.set(0);\n }\n\n if(m_operator.getRawButton(4)) { //PICK BUTTON move ball shooter convayer up\n m_shootConv.set(1);\n } else if (m_operator.getRawButton(3)) { // PICK BUTTON reverse shotter convayer\n m_shootConv.set(-1);\n } else { \n m_shootConv.set(0);\n }\n\n if(m_operator.getRawButton(5)) { //PICK BUTTON move ball intake convayer up \n m_intakeConv.set(1);\n } else if (m_operator.getRawButton(6)) { // PICK BUTTON reverse intake convayer\n m_intakeConv.set(-1);\n } else { \n m_intakeConv.set(0);\n }\n\n if(m_operator.getRawButton(7)) { //PICK BUTTON move ball intake\n m_intake.set(1);\n } else if (m_operator.getRawButton(8)) { //PICK BUTTON reverse intake \n m_intake.set(-1);\n } else { \n m_intake.set(0);\n } */\n \n }", "title": "" }, { "docid": "1327c4f95ed1e270d014016a65884f95", "score": "0.5691184", "text": "public void autonomousPeriodic()\n\t{\n//\t\tSmartDashboard.putNumber(\"Angle\", ahrs.getAngle());\n//\t\tSmartDashboard.putNumber(\"getDisplacementX\", ahrs.getDisplacementX());\n//\t\tSmartDashboard.putNumber(\"getDisplacementY\", ahrs.getDisplacementY());\n//\t\tSmartDashboard.putNumber(\"getDisplacementZ\", ahrs.getDisplacementZ());\n//\n//\t\tSmartDashboard.putNumber(\"RightEncoder\", drivetrain.getRightEncoderPosition());\n//\t\tSmartDashboard.putNumber(\"LeftEncoder\", drivetrain.getLeftEncoderPosition());\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "9070a84029a2da1f2355910d33520f45", "score": "0.56684417", "text": "public void teleopPeriodic() {\n boolean wedgeRan;\n\n driveControl.runDrive(); //Run the main drive control\n\n if (XBox.getRawButton(1)) { //A button\n wedgeArmController.runMotor(wedgeExtendLimit.getState(), wedgeRetractLimit.getState(), XBox.getRawAxis(2));\n wedgeRan = true;\n } else {\n wedgeArm.set(0);\n wedgeRan = false;\n }\n\n if (XBox.getRawButton(2) && !wedgeRan) { //B button\n rollerArmController.runMotor(rollerExtendLimit.getState(), rollerRetractLimit.getState(), XBox.getRawAxis(2));\n } else {\n rollerArm.set(0);\n }\n\n if (XBox.getRawButton(6)) {\n roller.set(1);\n } else {\n roller.set(0);\n }\n\n camera.runCamera(); //Run the camera\n }", "title": "" }, { "docid": "1a9f0989740ecb289af98930e5c44f35", "score": "0.5665429", "text": "public void testPeriodic() \n {\n\n EFrontRight.setReverseDirection(false);\n\n if (RightStick.getThrottle() > 0)\n {\n //pIDDrive(AFrontRight, minTurnDistance(EFrontRight, -45));\n pIDDrive(AFrontRight, angull());\n }\n else\n {\n AFrontRight.set(0);\n }\n\n\n\n if (RightStick.getRawButton(2)) //Talon built in PID????\n {\n //AFrontRight.config_kP(0, 0);\n //AFrontRight.config_kI(0, 0);\n //AFrontRight.config_kD(0, 0);\n //AFrontRight.configMotionCruiseVelocity(500);\n //AFrontRight.Motion\n }\n }", "title": "" }, { "docid": "f98e5f5246f9d646cc1ef52f7c6c8d73", "score": "0.5654433", "text": "public void autonomousPeriodic() {\n\n }", "title": "" }, { "docid": "f98e5f5246f9d646cc1ef52f7c6c8d73", "score": "0.5654433", "text": "public void autonomousPeriodic() {\n\n }", "title": "" }, { "docid": "a4aa94c9378f7509ef200e7a11b74358", "score": "0.5651729", "text": "@Override\n public void teleopPeriodic() {\n\n // Get Drive Joystick input for arcade driving\n\n double X = getJoystickValue(drive_stick, 1) * m_driveMotorSpeed;\n double Z = getJoystickValue(drive_stick, 2) * m_driveTurnSpeed;\n\n if (lastStage > 1){\n X = X *0.75; //reduce to 75% speed if lift is up beyond level 1\n }\n m_drive.arcadeDrive(-X, Z, true); // Drive the robot\n \n\n elevatorControl(); // call elevator lift control routine\n pistonControl(); // call piston control routine (for climbing and Hatch deployment)\n //ballControl(); // call ball control routine(for intake and shooting)\n ballControlSensor();\n // updateDisplays(); // call Dashboard debug display \n }", "title": "" }, { "docid": "2d601d6f86e5421c5b60fe90d49eeafd", "score": "0.5640187", "text": "public void autonomousPeriodic() {\n\n\t}", "title": "" }, { "docid": "10b5765a92261b463e8425aaaad7b0d4", "score": "0.5639392", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n if(Robot.isInDebugMode()) {\n\t\t\tgetDebugTable().putNumber(\"Left Joy X\", oi.getLeftStickX());\n\t\t\tgetDebugTable().putNumber(\"Left Joy Y\", oi.getLeftStickY());\n\t\t\tgetDebugTable().putNumber(\"Right Joy X\", oi.getRightStickX());\n\t\t\tgetDebugTable().putNumber(\"Right Joy Y\", oi.getRightStickY());\n\t\t\tgetDebugTable().putNumber(\"Left Joy Throttle\", oi.getLeftStickThrottle());\n\t\t\tgetDebugTable().putNumber(\"Corrected Left Joy Throttle\", oi.getCorrectedLeftStickThrottle());\n\t\t\tgetDebugTable().putBoolean(\"Touring Mode\", oi.isTouringMode());\n \tgetDebugTable().putBoolean(\"Robot/IsAutonomous\", this.isAutonomous());\n \tgetDebugTable().putBoolean(\"Robot/IsDisabled\", this.isDisabled());\n \tgetDebugTable().putBoolean(\"Robot/IsEnabled\", this.isEnabled());\n \tgetDebugTable().putBoolean(\"Robot/IsOperatorControl\", this.isOperatorControl());\n \tgetDebugTable().putBoolean(\"Robot/IsTest\", this.isTest());\n \tgetDebugTable().putBoolean(\"Robot/IsReal\", Robot.isReal());\n \tgetDebugTable().putBoolean(\"Robot/IsSimulation\", Robot.isSimulation());\n \tgetDebugTable().putBoolean(\"Robot/IsVerbose\", Robot.isVerbose());\n\t\t}\n }", "title": "" }, { "docid": "373ef41d0bb53ca6ea097236d743ae54", "score": "0.56367457", "text": "private void setAlarmstate() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e668c5a3134cf7f64ffce09a8b183bef", "score": "0.5633229", "text": "@Override\n public void autonomousPeriodic() {\n teleopPeriodic(); // for 2019 game only: call teleop in Autonomous mode\n\n }", "title": "" }, { "docid": "d756e3a6867ec0adc87888026e521f22", "score": "0.5626259", "text": "public void teleopPeriodic() {\r\n Scheduler.getInstance().run();\r\n\t\t//Arduino.update();\r\n\t\tupdateSmartDashboard();\t\r\n }", "title": "" }, { "docid": "a5474b20fde6a8b6f0c88536555f5d73", "score": "0.561648", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\t//86-87 Gets position of left joystick and sets it to wheelPower\n\t\tGenericHID.Hand leftJoystick = GenericHID.Hand.kLeft;\n\t\tdouble wheelPower = driveJoystick.getY(leftJoystick);\n\t\t\n\t\t//91-94 sets min/max wheel power to -1 and 1\n\t\tif (wheelPower > 1) {\n\t\t\twheelPower = 1;\n\t\t} else if (wheelPower < -1) {\n\t\t\twheelPower = -1;\n\t\t}\n\t\t//97-100 sets wheels to left joystick position\n\t\tflWheel.set(wheelPower);\n\t\tfrWheel.set(wheelPower);\n\t\tblWheel.set(wheelPower);\n\t\tbrWheel.set(wheelPower);\n\t\t\n\t\tGenericHID.Hand rightJoystick = GenericHID.Hand.kRight;\n\t\tdouble armPower = armJoystick.getY(rightJoystick);\n\t\t\n\t\t//106-110 sets min/max arm power to -1 and 1\n\t\tif (armPower > 1) {\n\t\t\tarmPower = 1;\n\t\t} else if (armPower < -1) {\n\t\t\tarmPower = -1;\n\t\t}\n\t\t//112-113 sets arm motors to right joystick position\n\t\tarm1.set(armPower);\n\t\tarm2.set(armPower);\n\t}", "title": "" }, { "docid": "62ba470b0f6d9c7b2936d752f41334d4", "score": "0.561446", "text": "public void teleopPeriodic() {\n \tupdateSmartDashboard(); //Continue running\n Scheduler.getInstance().run(); \n\n }", "title": "" }, { "docid": "c32dbea639f31b7cc44a1a9d8572e603", "score": "0.56029296", "text": "public void teleopPeriodic() {\n\t\tSmartDashboard.putData(collector);\n\t\tSmartDashboard.putNumber(\"Gyro\", Robot.drivetrain.getGyroAngle());\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "9b260c9711d6d9c769ddb78c6fafb8f8", "score": "0.55861056", "text": "private void rest(){\n System.out.println(\"Sensor has rested\");\n }", "title": "" }, { "docid": "2a150ab712e229356d127103fe8b6b9e", "score": "0.5567502", "text": "@Override\n public void teleopPeriodic() {\n // System.out.println(\"Teleop Periodic!\");\n\n // run this command for actual driving\n drive.drive();\n\n // run this comamand to drive with joystick\n // if(controller.getRawButtonPressed(11)) {\n // if(RobotMap.HALF_SPEED) {\n // RobotMap.HALF_SPEED = false;\n // } else {\n // RobotMap.HALF_SPEED = true;\n // }\n // }\n\n // if(RobotMap.HALF_SPEED) {\n // drive.joystickDriveHalfSpeed();\n // } else {\n // drive.joystickDrive();\n // }\n \n \n \n // if(OI.controller.getRawButtonPressed(6)) {\n \n // pneumaticsSubsystem.solenoid.set(DoubleSolenoid.Value.kForward);\n // } else if(OI.controller.getRawButtonPressed(5)) {\n // pneumaticsSubsystem.solenoid.set(DoubleSolenoid.Value.kReverse);\n // // solenoid.\n // System.out.println(pneumaticsSubsystem.solenoid.get());\n // }\n\n // if(OI.controller.getRawButtonPressed(2)) {\n \n // pneumaticsSubsystem.solenoid2.set(DoubleSolenoid.Value.kForward);\n // } else if(OI.controller.getRawButtonPressed(3)){\n // pneumaticsSubsystem.solenoid2.set(DoubleSolenoid.Value.kReverse);\n // }\n\n if(OI.controller.getRawButtonPressed(1)) {\n // move window motor\n drive.windowMotorForward();\n } else if(OI.controller.getRawButtonPressed(4)){\n drive.windowMotorBack();\n } else {\n // stop window motor\n drive.stopWindowMotor();\n }\n \n // this command is for testing limelight tracking\n //drive.followTarget();\n \n // below command is for that 1 test motor on beta bot\n // drive.testMotors(); \n }", "title": "" }, { "docid": "7987fd113202a1fbf1b202efec6dd6c7", "score": "0.55663836", "text": "@Override\n public void teleopPeriodic() {\n\n double forw = -1 * ((m_controller.getRawAxis(3) - m_controller.getRawAxis(2)) * scale); /* positive is forward */\n double turn = +1 * (m_controller.getRawAxis(0) * scale * 1.2); /* positive is right */\n\n /* deadband gamepad 10% */\n if (Math.abs(forw) < 0.10) {\n forw = 0;\n }\n if (Math.abs(turn) < 0.10) {\n turn = 0;\n }\n\n /* drive robot */\n _diffDrive.arcadeDrive(forw, turn);\n\n pidOut = m_pidController.calculate(fixedPot);\n //m_revolverMotor.set(pidOut * Math.abs(m_joystick.getY())); /*CHECK IF SENSOR IN PHASE BEFORE UNCOMMENTING*/\n\n /* Intake, Launcher, Revolver behaviour set depending on intake status */\n if (intakeRunning) {\n findTargetChamberAngle(false, fixedPot);\n m_pidController.setSetpoint(targetAngle);\n SmartDashboard.putNumber(\"Target Chamber\", targetChamber);\n if (m_joystick.getRawAxis(3) < 0) m_intakeMotor.set(kIntakeSpeed);\n } else {\n findTargetChamberAngle(true, fixedPot);\n m_pidController.setSetpoint(targetAngle);\n SmartDashboard.putNumber(\"Target Chamber\", targetChamber);\n m_intakeMotor.set(0);\n }\n\n /* If limit switch on the intake is triggered and revolver is in place, update revolver status */\n if (!intakeLimit.get() && Math.abs(targetAngle - fixedPot) < kRevolverTolerance) {\n findTargetChamberAngle(false, fixedPot);\n m_chamberStatus[targetChamber] = true;\n }\n\n /* Start launching sequence when trigger pressed */\n if (m_joystick.getTrigger()) {\n m_launcherMotor.set(kLauncherSpeed);\n /* Auto Launch based on time and soft limits */\n if (timer.get() > ejectDelayTarget && Math.abs(targetAngle - fixedPot) < kRevolverTolerance) {\n ejectDelayTarget = timer.get() + kEjectDelay;\n m_pusherMotor.set(kEjectorSpeed);\n }\n } else {\n m_launcherMotor.set(0);\n ejectDelayTarget = timer.get() + 1; // Creates initial delay for auto launch so flywheel can speed up\n }\n\n /* When soft limit hit, stop ejector motor and set timer to update revolver slot */\n if (!ejectorLimit.get()) {\n m_pusherMotor.set(0);\n retracting = true;\n retractDelayTarget = timer.get() + kRetractDelay;\n\n }\n\n /* If limit switch had been triggered and target time reached, update revolver slot */\n if (timer.get() > retractDelayTarget && retracting) {\n findTargetChamberAngle(true, fixedPot);\n m_chamberStatus[targetChamber] = false;\n retracting = false;\n }\n\n /* Run lift motors based on joystick y, and isolate each side if specific buttons pressed */\n if (!m_joystick.getRawButton(4)) m_leftLiftMotor.set(m_joystick.getY() * kLiftSpeed);\n if (!m_joystick.getRawButton(3)) m_rightLiftMotor.set(m_joystick.getY() * kLiftSpeed);\n\n /* Extends / Retracts Servos */\n if (mServoExtend) {\n m_leftServo.setSpeed(kServoExtend);\n m_rightServo.setSpeed(kServoExtend);\n } else {\n m_rightServo.setSpeed(kRightServoRetract);\n m_leftServo.setSpeed(kLeftServoRetract);\n }\n }", "title": "" }, { "docid": "0f62607f28da217618b1eccb9f164d20", "score": "0.5565281", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\twhile(isOperatorControl()&&isEnabled())\n\t\t{\n\t\t// following is drive train \n\t\t\t//chassis.tankDrive(joy1, joy2);\n\t\t\t//intakeAuto is a bool to toggele whether the intake\n\t\t\t//function is completed auotmatically or when the user releases the button\n\t\t\t//all the if statements are to allow other code to run\n\t\t\t\n\t\t\t//if(joy1.getRawButton(3))\n\t\t//\t{\n\t\t//\t\ts1.set(DoubleSolenoid.Value.kForward);\n\t\t//\t}\n\t\t//\telse if(joy1.getRawButton(4))\n\t\t//\t{\n\t\t//\t\ts1.set(DoubleSolenoid.Value.kReverse);\n\t\t\n\t\t// following is intake\n\t\t\t//code is there just commented out untill on bot\n\t\t\t/*if((intakeAuto &&intakeAutoRunning) ||(intakeAuto &&control.getRawButton(5)))\n\t\t\t{\n\t\t\t\tintakeLeft5.set(-1);\n\t\t\t\tintakeRight6.set(1);\n\t\t\t\tif(!intakeAutoRunning)\n\t\t\t\t{\n\t\t\t\t\tintakeAutoRunning=true;\n\t\t\t\t}\n\t\t\t\tif(intakeCounter.get()>0)\n\t\t\t\t{\n\t\t\t\t\tintakeLeft5.set(0);\n\t\t\t\t\tintakeRight6.set(0);\n\t\t\t\t\tintakeAutoRunning = false;\n\t\t\t\t\tintakeCounter.reset();\n\t\t\t\t}\n\t\t\t}\t\n\t\t\telse if(control.getRawButton(5))\n\t\t\t{\n\t\t\t\tintakeLeft5.set(-1);\n\t\t\t\tintakeRight6.set(1);\n\t\t\t}\n\t\t\telse if(control.getRawButton(6))\n\t\t\t{\n\t\t\t\tintakeLeft5.set(1);\n\t\t\t\tintakeRight6.set(-1);\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tintakeLeft5.set(0);\n\t\t\t\tintakeRight6.set(0);\n\t\t\t}\n\t\tif(control.getRawButton(10))\n\t\t{\n\t\t\tintakeAuto = true;\n\t\t}\n\t\telse if (control.getRawButton(12))\n\t\t{\n\t\t\tintakeAuto = false;\n\t\t}*/\n\t\t //following is lift with switches\n\t\t\t/*if(liftMovingTo == 1||(liftMovingTo == 0 &&control.getRawButton(7)))\n\t\t\t{\n\t\t\t\tif(liftPosition != 1)\n\t\t\t\t{\n\t\t\t\t\tif(intakeCounter.get()>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tlift7.set(0);\n\t\t\t\t\t\tliftMovingTo = 0;\n\t\t\t\t\t\tliftPosition = 1;\n\t\t\t\t\t\tliftCounter1.reset();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tlift7.set(-1);\n\t\t\t\t\t\tliftMovingTo = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(liftMovingTo == 2||(liftMovingTo == 0 &&control.getRawButton(9)))\n\t\t\t{\n\t\t\t\tif(liftPosition == 1)\n\t\t\t\t{\n\t\t\t\t\tif(intakeCounter.get()>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tlift7.set(0);\n\t\t\t\t\t\tliftMovingTo = 0;\n\t\t\t\t\t\tliftPosition = 2;\n\t\t\t\t\t\tliftCounter2.reset();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tlift7.set(1);\n\t\t\t\t\t\tliftMovingTo = 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(liftPosition == 3)\n\t\t\t\t{\n\t\t\t\t\tif(intakeCounter.get()>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tlift7.set(0);\n\t\t\t\t\t\tliftMovingTo = 0;\n\t\t\t\t\t\tliftPosition = 2;\n\t\t\t\t\t\tliftCounter2.reset();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tlift7.set(-1);\n\t\t\t\t\t\tliftMovingTo = 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif (liftMovingTo == 3||(liftMovingTo == 0 &&control.getRawButton(11)))\n\t\t\t\t{\n\t\t\t\tif(liftPosition != 3)\n\t\t\t\t{\n\t\t\t\t\tif(intakeCounter.get()>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tlift7.set(0);\n\t\t\t\t\t\tliftMovingTo = 0;\n\t\t\t\t\t\tliftPosition = 3;\n\t\t\t\t\t\tliftCounter3.reset();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tlift7.set(1);\n\t\t\t\t\t\tliftMovingTo = 3;\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t}*/\n\n\t\t// following is climber\n\t\t\t//**** code is there just commented out untill on bot\n\t\t\t\n\t\t/*\tif(control.getRawButton(1))\n\t\t\t{\n\t\t\t\tclimbLeft9.set(.25);\n\t\t\t\tclimbRight10.set(.25);\n\t\t\t}\n\t\t\telse if(control.getRawButton(2))\n\t\t\t{\n\t\t\t\tclimbLeft9.set(-.25);\n\t\t\t\tclimbRight10.set(-.25);\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tclimbLeft9.set(0);\n\t\t\t\tclimbRight10.set(0);\n\n\t\t\t}*/\n\t\t\n\t\tScheduler.getInstance().run();\n\t}}", "title": "" }, { "docid": "e669951c7b0ce6ad0db634d7b9765343", "score": "0.5559293", "text": "@Override\n\tpublic void teleopPeriodic()\n\t{\n\t\tif(Repository.SwitchBox.getRawButton(9))\n\t\t{\n\t\t\tRepository.Navx.reset();\n\t\t}\n\t\t\n\t\tcheckShooter();\n\t\tcheckDrive();\n\t}", "title": "" }, { "docid": "60ddca5795d9ccf90917530c7641f974", "score": "0.55566597", "text": "public void teleOpCode() {\n Common.dashNum(\"Servo angle\", arm.camServ.getAngle());\n\n compressor.setClosedLoopControl(true);\n\n double forward = 0;\n\t\tdouble turn = 0;\n\t\t\n \n if (Math.abs(front.getY(GenericHID.Hand.kLeft)) > 0.15 || Math.abs(front.getX(GenericHID.Hand.kLeft)) > 0.15) {\n forward = front.deadzone(front.getY(GenericHID.Hand.kLeft));\n turn = front.deadzone(front.getX(GenericHID.Hand.kLeft));\n } else {\n forward = back.deadzone(-back.getY(GenericHID.Hand.kLeft));\n turn = back.deadzone(back.getX(GenericHID.Hand.kLeft));\n }\n \n dt.accelDrive(-forward, -turn);\n \n /*\n if (driver.getPressed(Xbox.buttons.x)) {\n Common.dashNum(\"intake power\", 1);\n INTAKEMOT.set(1); \n }\n else if (driver.getPressed(Xbox.buttons.y)) {\n INTAKEMOT.set(-1);\n Common.dashNum(\"intake power\", -1);\n }\n else{\n INTAKEMOT.set(0);\n }\n */\n /*\n if (driver.getPressed(Xbox.buttons.a)) {\n //Common.debug(\"INTAKING HATCHES\");\n intake.intakeHatch();\n }\n else if (driver.getPressed(Xbox.buttons.b)) {\n intake.stopIntake();\n } else if (driver.getPressed(Xbox.buttons.rightTrigger)) {\n intake.placeGamePiece();\n } else if (driver.getPressed(Xbox.buttons.x)) {\n intake.intakeBall();\n }\n intake.update();\n intake.debug();\n \n if (driver.getPressed(Xbox.buttons.dPadLeft)) {\n //Common.debug(\"x\");\n arm.setTarget(-90);\n } else if (driver.getPressed(Xbox.buttons.dPadUp)) {\n //Common.debug(\"y\");\n arm.setTarget(0);\n } else if (driver.getPressed(Xbox.buttons.dPadRight)) {\n //Common.debug(\"b\");\n arm.setTarget(90);\n } else if (driver.getPressed(Xbox.buttons.dPadDown)) {\n Common.debug(\"Down\");\n arm.setTarget(120);\n }\n */\n \n if (front.getPressed(Xbox.buttons.y)) {\n arm.camTargetFront();\n arm.setTarget(0);\n }\n if (front.getPressed(Xbox.buttons.b)) {\n if (intake.hasBall()) {\n arm.camTargetFront();\n arm.setTarget(30);\n } else { //assume we have a hatch\n arm.camTargetFront();\n arm.setTarget(90);\n }\n }\n if (front.getPressed(Xbox.buttons.a)) {\n if (intake.hasBall()) {\n arm.camTargetFront();\n arm.setTarget(70);\n } else { //assume we have hatch\n arm.camTargetFront();\n arm.setTarget(90);\n }\n }\n if (front.getPressed(Xbox.buttons.rightBumper)) {\n arm.camTargetFront();\n arm.setTarget(115); //was 120\n intake.intakeBall();\n }\n if (front.getPressed(Xbox.buttons.leftBumper)) {\n arm.camTargetFront();\n arm.setTarget(90);\n intake.intakeHatch();\n }\n if (front.getPressed(Xbox.buttons.rightTrigger) || front.getPressed(Xbox.buttons.leftTrigger)) {\n arm.camTargetFront();\n intake.placeGamePiece();\n }\n if (front.getPressed(Xbox.buttons.x)) {\n arm.camTargetFront();\n intake.stopIntake();\n }\n if (front.getPressed(Xbox.buttons.dPadUp)) {\n arm.camTargetFront();\n } else if (back.getPressed(Xbox.buttons.dPadUp)) {\n arm.camTargetBack();\n }\n if (front.when(Xbox.buttons.leftThumb)) {\n dt.toggleShift();\n }\n \n\n //BACK STUFF\n\n if (back.getPressed(Xbox.buttons.y)) {\n arm.camTargetBack();\n arm.setTarget(0);\n }\n if (back.getPressed(Xbox.buttons.b)) {\n if (intake.hasBall()) {\n arm.camTargetBack();\n arm.setTarget(-30);\n } else { //assume we have a hatch\n arm.camTargetBack();\n arm.setTarget(-90);\n }\n }\n if (back.getPressed(Xbox.buttons.a)) {\n if (intake.hasBall()) {\n arm.camTargetBack();\n arm.setTarget(-70);\n } else { //assume we have hatch\n arm.camTargetBack();\n arm.setTarget(-90);\n }\n }\n if (back.getPressed(Xbox.buttons.rightBumper)) {\n arm.camTargetBack();\n arm.setTarget(-115);\n intake.intakeBall();\n }\n if (back.getPressed(Xbox.buttons.leftBumper)) {\n arm.camTargetBack();\n arm.setTarget(-90);\n intake.intakeHatch();\n }\n if (back.getPressed(Xbox.buttons.rightTrigger) || front.getPressed(Xbox.buttons.leftTrigger)) {\n arm.camTargetBack();\n intake.placeGamePiece();\n }\n if (back.getPressed(Xbox.buttons.x)) {\n arm.camTargetBack();\n intake.stopIntake();\n }\n if (back.getPressed(Xbox.buttons.dPadUp)) {\n arm.camTargetBack();\n }else if (front.getPressed(Xbox.buttons.dPadUp)) {\n arm.camTargetFront();\n }\n if (back.when(Xbox.buttons.leftThumb)) {\n dt.toggleShift();\n }\n\n\n \n intake.update();\n intake.debug();\n arm.update();\n arm.debug(); \n /*\n if (driver.when(Xbox.buttons.y)) {\n //open\n [\\]\n [\\]out.set(true);\n in.set(false);\n } else if (driver.when(Xbox.buttons.x)) {\n //close\n out.set(false);\n in.set(true);\n }\n */\n }", "title": "" }, { "docid": "4d3e8d2fa720a4a4476bf8b153c2bc55", "score": "0.5536738", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tRobot.m_oi.updateSmartDashboard();\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "3ff5a7bef529fd8313dc4f8ca31d02b5", "score": "0.55251294", "text": "@Override\n public void robotPeriodic() \n {\n sysstat.Check_System_Status(); // This object check game clock and pressure level\n }", "title": "" }, { "docid": "536ba4b2f65182293ac518aecd9f92d1", "score": "0.5512939", "text": "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n //requires();\r\n new autonomousFull();\r\n \r\n }", "title": "" }, { "docid": "30a8ee491aeec9a8d25408bb01d98fdb", "score": "0.55117154", "text": "@Override\n public void robotPeriodic() {\n \n }", "title": "" }, { "docid": "3055772c2abb05fef62511025e1f5f38", "score": "0.55114746", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tdrive.tankDrive(left.getRawAxis(1)*topSpeed, right.getRawAxis(1)*topSpeed);\n\t\ttopSpeed = left.getZ()/2.0-0.5;\n\t\tSmartDashboard.putNumber(\"left\", left.getZ() );\n\t\tspeed = left.getZ();\n\t\tSmartDashboard.putNumber(\"gyro\", gyro.getAngle());\n\t\tSmartDashboard.putNumber(\"GyroAngle\", gyro.getAngle());\n\t\tSmartDashboard.putNumber(\"GyroPos\", gyro.getPos());\n\t\tSmartDashboard.putNumber(\"GyroRate\", gyro.getRate());\n\t\tSmartDashboard.putNumber(\"GyroTemp\", gyro.getTemp());\n\n\t\t/* If right trigger pulls up\n\t\t * if released stop the elevator\n\t\t * if left trigger, elevator down\n\t\t * if both triggers, ?\n\t\t * if at top don't go up\n\t\t * if at bottom don't go down\n\t\t * \n\t\t * \n\t\t * \n\t\t * intakes\n\t\t * left button 3 take intakes\n\t\t * if released stop intaking\n\t\t * right button 3 to shoot\n\t\t * if released stop shooting\n\t\t * \n\t\t * \n\t\t * \n\t\t */\n\t\tif(left.getRawButton(1) == false) {\n\t\t\televator.set(0);\n\t\t\n\t\t}\n\t\telse {\n\t\t\televator.set(speed);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "5463d028102ebd0ccdda242133d0fbdc", "score": "0.55042535", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tSmartDashboard.putNumber(\"gyro\", robot.getAngle());\n\n\t\tdashboardLogger.updateData();\n\t\tlastTimeSec = currTimeSec;\n\t\tcurrTimeSec = robot.getTime();\n\t\tdeltaTimeSec = currTimeSec - lastTimeSec;\n\t\thumanControl.readControls();\n\t\tdriveController.update(currTimeSec, deltaTimeSec);\n\t\tvisionController.disable();\n\t\tlights.setEnabledLights();\n\t\tdashboardLogger.updateEssentialData();\n\n\t}", "title": "" }, { "docid": "28f496e85236ef92cd242e8c766d44d9", "score": "0.5503695", "text": "@Override\n public void update(double pNow)\n {\n this.currentNumTicks = talon.getSelectedSensorPosition();\n\n // Check to see if we are with in the landing range\n double deltaAngle = this.ticksToAngle(Math.abs(this.desiredNumTicks - this.currentNumTicks));\n if ( deltaAngle <= SystemSettings.kArmLandingRangeAngle ) {\n // We are with in the landing range, use the landing PID Gain values'\n pid.setPIDGains(SystemSettings.kArmLandingPIDGains);\n }\n else {\n // use the normal PID gains\n pid.setPIDGains(SystemSettings.kArmPIDGains);\n }\n\n // System.out.println(\"Arm.update: talon sensor ticks = \" + this.currentNumTicks);\n\n // Directly control the output \n // double output = this.mDesiredOutput;\n\n // Calculate the output to control arm position\n double output = this.calculateOutput();\n\n // Add the gravity compensation\n output += SystemSettings.kArmKg * Math.cos( this.ticksToAngle(this.currentNumTicks) - 90.0 );\n \n // Calculate the current/voltage ratio to detect a motor stall\n double current = talon.getOutputCurrent();\n double voltage = talon.getMotorOutputVoltage();\n double ratio = 0.0;\n // System.out.println(\"-----------Current ratio = \" + ratio + \"------------\");\n\n\n // When the motor is not running the voltage is zero and divide by zero \n // is undefined, we will calculate the ratio when the voltage is above\n // a minimum value\n if ( voltage > SystemSettings.kArmMinMotorStallVoltage ) {\n ratio = current / voltage;\n }\n\n SmartDashboard.putNumber(\"CurrentTicks\", currentNumTicks);\n\n SmartDashboard.putNumber(\"BasicArmVoltage\", voltage);\n SmartDashboard.putNumber(\"BasicArmCurrent\", current);\n SmartDashboard.putNumber(\"BasicArmStallRatio\", ratio);\n SmartDashboard.putNumber(\"BasicArmCurrentAngle\", this.ticksToAngle(this.currentNumTicks));\n SmartDashboard.putNumber(\"BasicArmDesiredAngle\", this.ticksToAngle(this.desiredNumTicks));\n SmartDashboard.putNumber(\"BasicArmDesiredAngleDelta\", this.ticksToAngle(this.desiredNumTicks - this.currentNumTicks));\n // debug\n // System.out.println( \"Arm.update initial output = \" + output );\n //System.out.println( \"Arm.update: current = \" + current + \", voltage = \" + voltage + \", ratio = \" + ratio);\n //System.out.println( \"Arm.update: motorOff = \" + this.motorOff + \", stalled = \" + this.stalled);\n\n\n // If the motor is off check for completion of the cool off period\n if(this.motorOff)\n {\n // System.out.println(\"*************** Motor OFF **********************************************\");\n if( mTimer.hasPeriodPassed(SystemSettings.kArmMotorOffTimeSec) )\n {\n // Cool Off Period has passed, turn the motor back on\n this.motorOff = false;\n this.mTimer.stop();\n this.mTimer.reset();\n }\n else\n {\n // The motor is off, make sure the output is 0.0\n output = 0.0;\n }\n }\n else \n {\n // check for stalled motor\n if(ratio > SystemSettings.kArmMaxCurrentVoltRatio)\n {\n // System.err.println(\"++++++++++++++++++++++++++ Motor STALLED ++++++++++++++++++++++++++++++++++++++\");\n // System.out.println( \"Arm.update: stalled: \" + this.stalled);\n // Motor is stalled, where we stalled already\n if(!this.stalled)\n {\n // Initial motor stall\n this.stalled = true;\n // Start counting stall time\n mTimer.reset();\n mTimer.start();\n }\n else\n {\n // Already stalled, check for maximum stall time\n if( mTimer.hasPeriodPassed(SystemSettings.kArmMaxStallTimeSec) )\n {\n // We've exceeded the max stall time, stop the motor\n // System.out.println( \"Arm.update Max stall time exceeded.\" );\n\n // We're stopping the motor so reset the stall flag\n this.stalled = false;\n\n // Setting output to 0.0 stops the motor\n output = 0.0;\n this.motorOff = true;\n\n // Restart the timer to measure the cooling off time after the stall\n mTimer.stop();\n mTimer.reset();\n mTimer.start(); // starting for cool-off period\n }\n }\n }\n else\n {\n // No longer stalled, clear the flag and reset the timer\n this.stalled = false;\n mTimer.stop();\n mTimer.reset();\n }\n }\n\n // System.out.println( \"Arm.update: About to set talon output )))))))))))))))))))))))))))))))))))))))= \" + output );\n\n if ( output < minOutputSeen ) {\n minOutputSeen = output;\n }\n\n if ( output > maxOutputSeen) {\n maxOutputSeen = output;\n }\n\n // System.out.println(\"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ min = \" + minOutputSeen + \" max= \" + maxOutputSeen);\n\n SmartDashboard.putNumber(\"BasicArmSetOutput\", output);\n // talon.set(ControlMode.PercentOutput, output);\n \n }", "title": "" }, { "docid": "32d5827f85d9577ae5080552fb1c5dd9", "score": "0.5489401", "text": "int DAQmxResetArmStartTrigTimescale(Pointer taskHandle);", "title": "" }, { "docid": "2f02729f50bce4071c44c2ef2e258067", "score": "0.54797137", "text": "private void enableTimePolicy() throws RTIexception\r\n {\n LogicalTime currentTime = convertTime( fedamb.federateTime );\r\n LogicalTimeInterval lookahead = convertInterval( fedamb.federateLookahead );\r\n\r\n ////////////////////////////\r\n // enable time regulation //\r\n ////////////////////////////\r\n this.rtiamb.enableTimeRegulation( currentTime, lookahead );\r\n\r\n // tick until we get the callback\r\n while( fedamb.isRegulating == false )\r\n {\r\n rtiamb.tick();\r\n }\r\n\r\n /////////////////////////////\r\n // enable time constrained //\r\n /////////////////////////////\r\n this.rtiamb.enableTimeConstrained();\r\n\r\n // tick until we get the callback\r\n while( fedamb.isConstrained == false )\r\n {\r\n rtiamb.tick();\r\n }\r\n }", "title": "" }, { "docid": "15fd2b6b707b40e66a0f6e5ee9dbe5b4", "score": "0.5470639", "text": "public void TRAP(){\n\t\tString tableAddr = MEMORY.getDirect(\"0\");\n\t\t String output = null;\n\t\t if(Integer.parseInt(deviceId.get(),2)==0){\n\t\t\t output = \"Illegal Memory Address to Reserved Locations \\n\";\n\t\t\t if(null!=Instruction.get())\n\t\t\t\t MEMORY.setDirect(Instruction.get(), \"000000000001\");\n\t\t\t else if(null!=SwitcheValue)\n\t\t\t\t MEMORY.setDirect(SwitcheValue, \"000000000001\");\n\t\t\t MEMORY.setDirect(PC.get(), \"000000000100\");\n\t\t \t }\n\t\t else if(Integer.parseInt(deviceId.get(),2)==1){\n\t\t\t output = \"Illegal TRAP Code \\n\";\n\t\t\t if(null!=Instruction.get())\n\t\t\t\t MEMORY.setDirect(Instruction.get(), \"000000000001\");\n\t\t\t else if(null!=SwitcheValue)\n\t\t\t\t MEMORY.setDirect(SwitcheValue, \"000000000001\");\n\t\t\t MEMORY.setDirect(PC.get(), \"000000000100\");\n\t\t \t }\n\t\t else if(Integer.parseInt(deviceId.get(),2)==2){\n\t\t\t output = \"Illegal Operation Code \\n\";\n\t\t\t if(null!=Instruction.get())\n\t\t\t\t MEMORY.setDirect(Instruction.get(), \"000000000001\");\n\t\t\t else if(null!=SwitcheValue)\n\t\t\t\t MEMORY.setDirect(SwitcheValue, \"000000000001\");\n\t\t\t MEMORY.setDirect(PC.get(), \"000000000100\");\n\t\t\t }\n\t\t else if(Integer.parseInt(deviceId.get(),2)==3){\n\t\t\t output = \"Illegal Memory Address Beyond 2048 \\n\";\n\t\t\t if(null!=Instruction.get())\n\t\t\t\t MEMORY.setDirect(Instruction.get(), \"000000000001\");\n\t\t\t else if(null!=SwitcheValue)\n\t\t\t\t MEMORY.setDirect(SwitcheValue, \"000000000001\");\n\t\t\t MEMORY.setDirect(PC.get(), \"000000000100\");\n\t\t\t }\n\t\t else{\n\t\t\t output = \"Trap Instruction \\n\";\n\t\t\t incrementPC();\n\t\t\t if(null!=Instruction.get())\n\t\t\t\t MEMORY.setDirect(Instruction.get(), \"000000000000\");\n\t\t\t else if(null!=SwitcheValue)\n\t\t\t\t MEMORY.setDirect(SwitcheValue, \"000000000000\");\n\t\t\t MEMORY.setDirect(PC.get(), \"000000000010\");\n\t\t }\n\t\t textField.append(output);\n\t\t System.out.println(output);\n\t}", "title": "" }, { "docid": "dc17a936fccbe57f63007be5faae0c7f", "score": "0.54700965", "text": "@Override\n public void robotPeriodic() {}", "title": "" }, { "docid": "fa77b58b1b3459576e309dd197ef77e0", "score": "0.5469229", "text": "public void teleopPeriodic() {\n \t/**\n \t * In this branch of the project support for a loop & if maze based system of controller input; however,\n \t * future branches should utilize event based input for the sake of a cleaner project and better programming practice.\n \t * \n \t * Note the structure of the code: the buttons are detected sequentially with priority those placed the highest\n \t * \n \t * */\n while(isEnabled() && isOperatorControl()){\n \t//Loops during FRC safe operator control time\n \n \t//All controls involving the drive train\n \t//driveTrain.MecanumDrive(gamepad);\n \t\n \t\n if (gamepad.getButton_A()) {\n \tSystem.out.println(\"Test\");\n \tSmartDashboard.putString(\"A\", \"True\");\n }\n \n else if (gamepad.getButton_B()){\n \t\n }\n \n else if (gamepad.getButton_X()){\n \t\n }\n \n else if (gamepad.getButton_Y()){\n \t\n }\n \n else if (gamepad.getButton_START()){\n \t\n }\n \n else if (gamepad.getButton_BACK()) {\n \t\n }\n \n else if (gamepad.getTrigger_Left()){\n \t\n }\n \n else if (gamepad.getTrigger_Right()){\n \tCannon.prepare_Fire();\n \tCannon.fire();\n \tCannon.reload();\n }\n \n\t\t\tCannon.tilt(0);\n \n }\n }", "title": "" }, { "docid": "1695e4aa1b244b47058fd82fa59e6bc9", "score": "0.5464673", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\n\t\tdrive.set(dPipe.apply(\n\t\t\t\t\t\tnew RotationalDriveSignal(mControlScheme.getThrottle(), mControlScheme.getWheel()),\n\t\t\t\t\t\tmControlScheme.getQuickTurnButton())\n\t\t);\n\n\t\tlift.set(mControlScheme.getLiftManualAxis());\n\n\t\t//lift.setRelitivePosition(mControlScheme.getLiftManualAxis(), mControlScheme.getDAxis(), 0.0);\n\n\n\t\tSmartDashboard.putNumber(\"Axis\", mControlScheme.getLiftManualAxis());\n\n\t\tlift.graphPIDOuts();\n\n\t\tif(mControlScheme.getLiftAutomaticAxis() > -.1 && mControlScheme.getLiftAutomaticAxis() < .1){\n\t\t\tbio.set(BIO.ControlState.NEUTRAL);\n\t\t}else if(mControlScheme.getLiftAutomaticAxis() > .1 && mControlScheme.getLiftAutomaticAxis() < .5){\n\t\t\tbio.set(BIO.ControlState.EXHALING);\n\t\t}else if(mControlScheme.getLiftAutomaticAxis() > .5){\n\t\t\tbio.set(BIO.ControlState.EXHALING_FAST);\n\t\t}else if(mControlScheme.getLiftAutomaticAxis() < -.1){\n\t\t\tbio.set(BIO.ControlState.INHALING);\n\t\t}else {\n\t\t\tbio.set(BIO.ControlState.NEUTRAL);\n\t\t}\n\n\t\tSystem.out.println(bio.getControlState());\n\n\t\tif(mControlScheme.getGrabbingButton()){\n\t\t\tbio.grasp(BIO.GraspingStatus.CLOSED);\n\t\t}else{\n\t\t\tbio.grasp(BIO.GraspingStatus.OPEN);\n\t\t}\n\n\t\tif(mControlScheme.getInhalingButton()){\n\t\t\tbio.rotate(false);\n\t\t}else{\n\t\t\tbio.rotate(true);\n\t\t}\n\n\t\tlift.loop();\n\n\t\tbio.update();\n\t\tmControlScheme.update((new Timestamp()).get());\n\t}", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.54586643", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.54586643", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.54586643", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "8c7f6ebfaaa9205017da1425cde8d995", "score": "0.54466367", "text": "@Override\n public void teleopPeriodic() {\n //new DriveMain(new DriveSubsystem()); // Should call DriveMain and execute robot code to drive. (OLD)\n \n }", "title": "" }, { "docid": "41c3ba791dd0155cd5d8a3a887984faa", "score": "0.544141", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n if(Robot.isInDebugMode()) {\n\t\t\tgetDebugTable().putNumber(\"Left Joy X\", oi.getLeftStickX());\n\t\t\tgetDebugTable().putNumber(\"Left Joy Y\", oi.getLeftStickY());\n\t\t\tgetDebugTable().putNumber(\"Right Joy X\", oi.getRightStickX());\n\t\t\tgetDebugTable().putNumber(\"Right Joy Y\", oi.getRightStickY());\n\t\t\tgetDebugTable().putNumber(\"Left Joy Throttle\", oi.getLeftStickThrottle());\n\t\t\tgetDebugTable().putNumber(\"Corrected Left Joy Throttle\", oi.getCorrectedLeftStickThrottle());\n\t\t\tgetDebugTable().putBoolean(\"Touring Mode\", oi.isTouringMode());\n \tgetDebugTable().putBoolean(\"Robot/IsAutonomous\", this.isAutonomous());\n \tgetDebugTable().putBoolean(\"Robot/IsDisabled\", this.isDisabled());\n \tgetDebugTable().putBoolean(\"Robot/IsEnabled\", this.isEnabled());\n \tgetDebugTable().putBoolean(\"Robot/IsOperatorControl\", this.isOperatorControl());\n \tgetDebugTable().putBoolean(\"Robot/IsTest\", this.isTest());\n \tgetDebugTable().putBoolean(\"Robot/IsReal\", Robot.isReal());\n \tgetDebugTable().putBoolean(\"Robot/IsSimulation\", Robot.isSimulation());\n \tgetDebugTable().putBoolean(\"Robot/IsVerbose\", Robot.isVerbose());\n\t\t}\n }", "title": "" }, { "docid": "06302ab31b8d1e13a7491d82799f7813", "score": "0.54351324", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\t/* \n\t\t * drive the robot\n\t\t */\n\t\tdouble joyY = driverJoystick.getY();\n\t\tdouble joyX = driverJoystick.getX();\n\t\t// we need to say -joyY because the joystick registers negative when\n\t\t// pushed forward, but arcadeDrive wants a positive number to move forward\n\t\tdrive.arcadeDrive(-joyY, joyX);\n\t\tSmartDashboard.putNumber(\"joystick X\", joyX);\n\t\tSmartDashboard.putNumber(\"joystick Y\", joyY);\n\t\t\n\t\t/*\n\t\t * handle the shooter button. if it's down and didn't used to be down,\n\t\t * then it's freshly depressed ('tripped'). If it's tripped, then toggle the\n\t\t * pickup motors (turn them off if they were on, and turn them on if they were off).\n\t\t */\n\t\t// read the button\n\t\tboolean shooterButtonIsDown = shooterButton.get();\n\t\t\n\t\t// figure out if we are tripped\n\t\tboolean shooterButtonIsTripped = false;\n\t\tif (lastShooterButton == false && shooterButtonIsDown == true) {\n\t\t\t// the button was not down before before, but is now\n\t\t\tshooterButtonIsTripped = true;\n\t\t}\n\t\t\n\t\t// remember for next time\n\t\tlastShooterButton = shooterButtonIsDown;\n\t\t\n\t\t// if we are tripped, figure out what to do with the shooter. Turn it off \n\t\t// if it was on, turn it on if it was off.\n\t\tif (shooterButtonIsTripped) {\n\t\t\tshooterIsOn = ! shooterIsOn;\n\t\t}\n\t\t\n\t\t// ...and turn the motors on or off...\n\t\tsetShooters(shooterIsOn);\n\t\t\n\t\t/*\n\t\t * handle the pickup button. only run the pickups when the button is down\n\t\t */\n\t\tif (pickupButton.get()) {\n\t\t\tsetPickup(true);\n\t\t} else {\n\t\t\tsetPickup(false);\n\t\t}\n\t\t\n\t\t/*\n\t\t * let the drivers see what the sensors have\n\t\t */\n\t\tputSensorValuesOnDashboard();\n\t}", "title": "" }, { "docid": "68e45a24106f1ff38ea7dbe71ea56b90", "score": "0.5434205", "text": "public void teleopInit() {\n \tRobot.drivetrain.setRampRate(12/0.1);//MaxVoltage/rampTime was 12/0.2\r\n \tRobot.drivetrain.resetEncoders();\r\n \tRobotMap.gyro.reset();\r\n }", "title": "" }, { "docid": "5b263a0fbeb190235f6d1b5403cba3c6", "score": "0.54155654", "text": "public void programSensor() {\n programAccelero();\n //programGyro();\n //programMagneto();\n }", "title": "" }, { "docid": "cb20f5aace0d4e9a226fc936f9d5b5e7", "score": "0.54076135", "text": "int DAQmxResetArmStartTrigTimestampEnable(Pointer taskHandle);", "title": "" }, { "docid": "b1e9f00c1d73eb026af9cf1be2e8b77e", "score": "0.5407503", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t}", "title": "" }, { "docid": "4ea41866168304acbfddf59640ea7c3a", "score": "0.54070157", "text": "public void teleopPeriodic() {\n if (teleopStateBroadcasted == true) {\n RRLogger.logDebug(this.getClass(), \"teleopPeriodic()\", \"Teleop State\");\n teleopStateBroadcasted = false;\n }\n\n // Using\n boolean tankDrive = false;\n drive.drive(tankDrive);\n RRLogger.logDebug(this.getClass(), \"teleopPeriodic()\", \"Arcade Drive\");\n }", "title": "" }, { "docid": "026b84f35fa8a0436abf5ff69e567a69", "score": "0.5400828", "text": "@Override\n\tpublic void increasetemperature() {\n\t\tSystem.out.println(\"You want florida hotter?!?!?!\");\n\t\t\n\t}", "title": "" }, { "docid": "f4a9d26e545bef4f9708c5ab2b61329a", "score": "0.5397768", "text": "void dtw_onSet_A(t_dynamicTW * x, t_floatarg f) {\n\n\tclock_t t;\n\n\tif (triggerGlobal == 0) {\n\n\t\t/*do nothing*/\n\n\t}\n\n\t//Sleep(2);\n\n\tpost(\"Number A: %f sending to array. Arr_position is %d\", f, arr_position);\n\n\tpost(\"Delay Time: %f\", delayTime);\n\n\tif (x - >match == 1) {\n\n\t\tpost(\"Match has been detected. Freezing Program!\");\n\n\t}\n\n\telse if (x - >match == 0) {\n\n\t\tif (arr_position >= 0) { //checks if array is filled. If not then store incoming value to next index\n\n\t\t\tx - >signal[arr_position] = f;\n\n\t\t\tarr_position--;\n\n\t\t}\n\n\t\telse { //If array is filled shift all values by 1 index and store at beginning of array\n\n\t\t\tt = clock();\n\n\t\t\tint i;\n\n\t\t\tx - >flag = 1; //makes it so that LCP result is stored in compared Value;\n\n\t\t\tfor (i = SIZE_ARRAY - 1; i > 0; i--) {\n\n\t\t\t\tx - >signal[i] = x - >signal[i - 1];\n\n\t\t\t}\n\n\t\t\tx - >signal[0] = f;\n\n\t\t\treplaceSignal2(x); //replaces the value in signal 2\n\n\t\t\treverseArray(x);\n\n\t\t\tdtw_genMatrix(x); //performs dtw\n\n\t\t\tt = clock() - t;\n\n\t\t\tdouble time_taken = ((double) t) / CLOCKS_PER_SEC; // in seconds\n\n\t\t\tpost(\"DTW took %f seconds to execute\", time_taken);\n\n\t\t\tsignalMatch(x); //checks is the signal is correct if it is trigger effect\n\n\t\t\t// if(time_taken == .002){\n\n\t\t\t// Sleep(8);\n\n\t\t\t// }\n\n\t\t\t// else if (time_taken == .001){\n\n\t\t\t// Sleep(9);\n\n\t\t\t// }\n\n\t\t}\n\n\t}\n\n}", "title": "" }, { "docid": "f25659990904d24e304ac1e35c594ea6", "score": "0.5397091", "text": "private void init() {//init in this case can be used like the on function\n\t\tRandomizer randomizer = new Randomizer(); \n\t\tInteger powerRand = randomizer.generateInt(0,1);\n\t\tInteger itemsRand = randomizer.generateInt(MIN_ITEMS,MAX_ITEMS);\n\t\tDate now = new Date();\n\t\t/* Check powerState until the user turns on the Refrigerator \n\t\t * Such a feature could be utilized by a company to check the diagnostics of the device \n\t\t * In hindsight it would be more efficient to send a signal back to the company when the device\n\t\t * is turned on. \n\t\t */\n\t\twhile(powerRand == 0){\n\t\t\tSystem.out.println(\"The Refrigerator is off - It may not be plugged in\");\n\t\t\tpowerRand = randomizer.generateInt(0,1); \n\t\t}\n\t\tpowerState = true;\n\t\tSystem.out.println(\"The Refrigerator is now on - The User plugged it in and Turned device on\");\n\n\t\tif(firstTimeOn == null){\n\t\t\tfirstTimeOn = now;\n\t\t\t//Create a random list of items and put them in the refrigerator \n\t\t\titemsL = Item.generateRandListofItems(itemsRand);\n\t\t\t//Set the default conditions of a refrigerator \n\t\t\tspecificTemperature = DEFAULT_TEMPERATURE; \n\t\t\tdoorOpen = false;\n\t\t\tdispenserPowerState = false;\n\t\t\tdispenseWater = true;//This means the dispenser if used would dispense water\t\n\t\t}\t\n\t}", "title": "" }, { "docid": "a40a2faf3608601e69a3955c38497eaf", "score": "0.53878057", "text": "private void audienceRed() throws InterruptedException {\n switch (mission) {\n\n case LEFT:\n // everything you own in a box to THE LEFT\n telemetry.addData(\"Mission:\", \"LEFT\");\n robot.encoderDrive(HardwareCatBot.DRIVE_SPEED, 5.0, 3.0, HardwareCatBot.DRIVE_MODE.driveStraight);\n robot.absoluteGyro(HardwareCatBot.TURN_SPEED, -35, 3.0, HardwareCatBot.TURN_MODE.PIVOT);\n robot.encoderDrive(HardwareCatBot.DRIVE_SPEED, 9, 3.0, HardwareCatBot.DRIVE_MODE.driveStraight);\n robot.absoluteGyro(HardwareCatBot.TURN_SPEED, -45, 3.0, HardwareCatBot.TURN_MODE.PIVOT);\n robot.encoderDrive(HardwareCatBot.DRIVE_SPEED, 2.0, 2.0, HardwareCatBot.DRIVE_MODE.driveStraight);\n telemetry.update();\n break;\n case CENTER:\n telemetry.addData(\"Mission:\", \"CENTER\");\n robot.lifterStepUp();\n robot.lifterStepUp();\n robot.robotWait(1.0);\n robot.absoluteGyro(HardwareCatBot.TURN_SPEED, -40, 3.0, HardwareCatBot.TURN_MODE.PIVOT);\n robot.encoderDrive(HardwareCatBot.DRIVE_SPEED, 7, 3.0, HardwareCatBot.DRIVE_MODE.driveStraight);\n break;\n case RIGHT:\n // mysterious as THE RIGHT SIDE of the moon\n telemetry.addData(\"Mission:\", \"RIGHT\");\n robot.absoluteGyro(HardwareCatBot.TURN_SPEED, -85, 5, HardwareCatBot.TURN_MODE.PIVOT);\n robot.encoderDrive(HardwareCatBot.DRIVE_SPEED, 3, 2, HardwareCatBot.DRIVE_MODE.driveStraight);\n break;\n }\n // In THE MIDDLE of a memory\n telemetry.addData(\"Mission:\", \"CENTER\");\n robot.gripperStepOut();\n robot.gripperStepOut();\n robot.gripperStepOut();\n robot.robotWait(1.5);\n robot.encoderDrive(HardwareCatBot.DRIVE_SPEED, -5.0, 2.0, HardwareCatBot.DRIVE_MODE.driveStraight);\n robot.absoluteGyro(HardwareCatBot.TURN_SPEED, 0, 1, HardwareCatBot.TURN_MODE.PIVOT);\n robot.encoderDrive(HardwareCatBot.DRIVE_SPEED, 2, 2, HardwareCatBot.DRIVE_MODE.driveStraight);\n\n robot.robotWait(5);\n\n\n }", "title": "" }, { "docid": "1f2bbb1a9d36a1ad28951ec45b04c1e3", "score": "0.5387571", "text": "@Override\n public void periodic() {\n if(agitatorDebug){\n //If in debug mode, put the agitator speed and temperature on SmartDashboard/Shuffleboard\n }\n }", "title": "" }, { "docid": "17cce4dd1613155943c44169641f2b7d", "score": "0.53794104", "text": "int DAQmxSetArmStartTrigTrigWhen(Pointer taskHandle, CVIAbsoluteTime.ByValue data);", "title": "" }, { "docid": "ee273476c6a57052661a576f18022e09", "score": "0.5378297", "text": "@Override\n public void autonomousPeriodic() {\n \n }", "title": "" }, { "docid": "0631277080ae3f8a61e50225b572db43", "score": "0.537599", "text": "@Override\r\n\tpublic void init() {\n\t\tmyrole = Roles.RELAY;\t\r\n\t\t//double endTime=0;\r\n\t\t\r\n\t\ttry {\r\n//\t\t\tinfraLeoLog = Logging.getLogger(\r\n//\t\t\t\t\tsinalgo.configuration.Configuration.getStringParameter(\"Log/LogFile\"));\r\n\t\t\tSimulationTime = sinalgo.configuration.Configuration.getDoubleParameter(\"SimTime\");\r\n\t\t\tProbSend = sinalgo.configuration.Configuration.getDoubleParameter(\"ProbSend\");\r\n\t\t\tEventsAmount = sinalgo.configuration.Configuration.getIntegerParameter(\"Event/NumEvents\");\r\n\t\t\tEventsTimes = sinalgo.configuration.Configuration.getIntegerParameter(\"Event/Time\");\r\n\t\t\tdensity = sinalgo.configuration.Configuration.getIntegerParameter(\"Density\");\r\n\t\t\t\r\n\t\t\t//daarpmswim = Logging.getLogger(\"daarpmswim\"+ProbSend+\"Log.txt\", true);\r\n\t\t\tfor (int i = 1; i <= EventsAmount; i++) {\r\n\t\t\t\tEventLeoTimer t = new EventLeoTimer(i);\r\n\t\t\t\tt.startEventAbsolute(sinalgo.configuration.Configuration.getDoubleParameter(\"Event/EventStart\"+i), this, i);\t\r\n\t\t\t}\t\r\n\t\t\teventEndTime = sinalgo.configuration.Configuration.getDoubleParameter(\"Event/EventEnd\");\r\n\t\t\tDataRate = sinalgo.configuration.Configuration.getIntegerParameter(\"Event/DataRate\");\r\n\t\t\tEventSize = sinalgo.configuration.Configuration.getIntegerParameter(\"Event/EventSize\");\r\n\t\t\tCommunicationRadius = sinalgo.configuration.Configuration.getIntegerParameter(\"UDG/rMax\");\r\n\t\t\tDropRate = sinalgo.configuration.Configuration.getIntegerParameter(\"TaxadePerda/dropRate\");\r\n\t\t\t\r\n\t\t\terro = sinalgo.configuration.Configuration.getDoubleParameter(\"TaxadePerda/dropRate\");\r\n\t\t\t\r\n\t\t} catch (CorruptConfigurationEntryException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\ttry {\r\n\t\t\t//Here, we have to get the battery implementation from Config.xml and inject into battery attribute\r\n\t\t\tString energyModel = Configuration.getStringParameter(\"Energy/EnergyModel\");\r\n\t\t\tif (energyModel.contains(\"Simple\")){\r\n\t\t\t\tbattery = new SimpleEnergy(this.ID);\r\n\t\t\t}\r\n\t\t} catch (CorruptConfigurationEntryException e) {\r\n\t\t\tTools.appendToOutput(\"Energy Model not found\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif (this.ID==1){\r\n\t\t\tthis.setColor(Color.RED);\r\n\t\t\tthis.myrole = Roles.SINK;\r\n\t\t\tthis.mystatus = Status.READY;\r\n\t\t\tisBorderNode = 2;\t\t//The sink is never border node\r\n\t\t\tsendMCI(); //Sink starts the flooding\t\t\r\n\t\t}\r\n\t\t\r\n\t\tVerifyBorderNodeTimer borderTimer = new VerifyBorderNodeTimer(this);\r\n\t\tborderTimer.startAbsolute(1000,this);\r\n\t\t//Event timers\r\n\t\tEndLeoTimer etimer = new EndLeoTimer();\r\n\t\tetimer.startAbsolute(SimulationTime, this);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "40a14e32b8d4f18e19070515630c1d2f", "score": "0.53754866", "text": "@Override\n public void autonomousPeriodic() {\n switch (autonSwitch) {\n case 0:\n if (!lowLimitIntake) {\n inLift.set(-1);\n } else {\n inLift.set(0.0);\n autonSwitch = 1;\n }\n break;\n case 1:\n if (connected) {\n LIDAR();\n if (!dist) {\n inRun.set(0.5);\n } else {\n mecanum.driveCartesian(0.0, 0.0, 0.0);\n inRun.set(0.0);\n autonSwitch = 2;\n }\n } else {\n autonSwitch = -1;\n }\n break;\n case 2:\n if (Jack.getOutputCurrent() < 40) {\n Jack.set(ControlMode.PercentOutput, 0.75);\n } else {\n Jack.set(ControlMode.PercentOutput, 0.0);\n time.start();\n autonSwitch = 3;\n }\n break;\n case 3:\n if (time.get() < 5) {\n inRun.set(1.0);\n } else {\n inRun.set(0.0);\n autonSwitch = -1;\n }\n break;\n case -1:\n teleopPeriodic();\n break;\n }\n // if(sticky.getAll)\n\n }", "title": "" }, { "docid": "4ce3f537fe2a593afefc0747302851ef", "score": "0.53723717", "text": "public void teleopInit() {\n if (autonomousCommand != null) autonomousCommand.cancel();\n arm.getPIDController().enable();\n shooter.getPIDController().enable();\n Scheduler.getInstance().add(new MonitorPiHeartbeat());\n }", "title": "" }, { "docid": "6d872aa63453702a5af77014d9fbc52a", "score": "0.53687334", "text": "public void resetIntrusionAlarm(GenericSensor sensor)\n {\n checkInputs(sensor);\n if (intrusionAlarm && !otherIntrusionAlarms())\n {\n intrusionAlarm = false;\n intrusionSystem.resetIntrusionAlarm(this);\n System.out.println(\"Restored: \"+sensor.getSensorName()+\" value:\"+Integer.toString(sensor.getCurrentValue()));\n }\n }", "title": "" }, { "docid": "3f5416dbd652b82e278fa5c2d2f04997", "score": "0.53477836", "text": "int DAQmxResetAnlgWinStartTrigDigFltrTimebaseRate(Pointer taskHandle);", "title": "" }, { "docid": "0f75feafc31248a39edfe08f5c1674bf", "score": "0.53474486", "text": "public void activaralarma(){\n Alarma alarm = new Alarma();\n Altavoz speaker = new Altavoz();\n \n alarm.activaralarma();\n speaker.activaralt();\n }", "title": "" }, { "docid": "e7a75161dcfeba21e69b86b9271f84e5", "score": "0.5340893", "text": "private ArmSubsystem() {\n // set up the new arm motor\n shoulderJointMotor = new RotationTalonSRX(RobotMap.kArmShoulderMotor, RobotMap.kArmShoulderMotorGearRatio);\n elbowJointMotor = new RotationTalonSRX(RobotMap.kArmElbowMotor);\n wristMotor = new RotationVictorSPX(RobotMap.kArmWristMotor, RobotMap.kArmWristMotorEncoderA, RobotMap.kArmWristMotorEncoderB);\n\n shoulderJointMotor.setSensorPhase(true);\n shoulderJointMotor.setInverted(true);\n shoulderJointMotor.setInvertedPosition(false);\n shoulderJointMotor.configNominalOutputForward(0, shoulderJointMotor.slotIdx);\n\t\tshoulderJointMotor.configNominalOutputReverse(0, shoulderJointMotor.slotIdx);\n\t\tshoulderJointMotor.configPeakOutputForward(1.0, shoulderJointMotor.slotIdx);\n shoulderJointMotor.configPeakOutputReverse(-1.0, shoulderJointMotor.slotIdx);\n \n shoulderJointMotor.set_kp(this.shoulderJointMotor_kP);\n shoulderJointMotor.set_ki(this.shoulderJointMotor_kI);\n shoulderJointMotor.set_kd(this.shoulderJointMotor_kD);\n\n shoulderJointMotor.configAllowableClosedloopError(10, shoulderJointMotor.slotIdx, shoulderJointMotor.timeoutMs);\n shoulderJointMotor.setHomeDegrees(20);\n shoulderJointMotor.setDegreesLimits(20, 335);\n\n elbowJointMotor.setInverted(false);\n elbowJointMotor.setSensorPhase(true);\n elbowJointMotor.setInvertedPosition(true);\n elbowJointMotor.configNominalOutputForward(0, elbowJointMotor.timeoutMs);\n\t\telbowJointMotor.configNominalOutputReverse(0, elbowJointMotor.timeoutMs);\n\t\telbowJointMotor.configPeakOutputForward(0.6, elbowJointMotor.timeoutMs);\n elbowJointMotor.configPeakOutputReverse(-0.6, elbowJointMotor.timeoutMs);\n\n \n elbowJointMotor.set_kp(this.elbowJointMotor_kP);\n elbowJointMotor.set_ki(this.elbowJointMotor_kI);\n elbowJointMotor.set_kd(this.elbowJointMotor_kD);\n\n elbowJointMotor.configAllowableClosedloopError(10, elbowJointMotor.slotIdx, elbowJointMotor.timeoutMs);\n \n elbowJointMotor.setHomeDegrees(187);\n elbowJointMotor.setDegreesLimits(-140, 190);\n\n wristMotor.configPeakOutputForward(0.5);\n wristMotor.configPeakOutputReverse(-0.5);\n wristMotor.configNominalOutputForward(0);\n wristMotor.configNominalOutputReverse(0);\n wristMotor.set_kp(this.wristJoint_kP);\n wristMotor.set_ki(this.wristJoint_kI);\n wristMotor.set_kd(this.wristJoint_kD);\n\n wristMotor.setInverted(false);\n wristMotor.setSensorPhase(false);\n wristMotor.setInvertedPosition(true);\n\n wristMotor.setHomeDegrees(150);\n wristMotor.setDegreesLimits(0, 360);\n\n superState = new ArmSuperState();\n }", "title": "" }, { "docid": "b5a67928a837ed5e392b1cfeed324e35", "score": "0.5330529", "text": "private void setupSensors(){\n sensorManager = (SensorManager)context.getSystemService(SENSOR_SERVICE);\n heartRate = sensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE);\n\n //Check if there are stress, breath rate or EDA sensors\n List<Sensor> deviceSensors = sensorManager.getSensorList(Sensor.TYPE_ALL);\n for(Sensor sensor : deviceSensors)\n {\n if(sensor.getName().contains(\"Stress\") || sensor.getName().contains(\"stress\"))\n stress = sensor;\n else if(sensor.getName().contains(\"Breath\") || sensor.getName().contains(\"breath\"))\n breathRate = sensor;\n else if(sensor.getName().contains(\"EDA\") || sensor.getName().contains(\"Electrodermal\") || sensor.getName().contains(\"electrodermal\"))\n EDA = sensor;\n }\n timeSent = new long[4];\n }", "title": "" }, { "docid": "6fa22d6475362116371df2839b17a986", "score": "0.532979", "text": "public void teleopPeriodic() {\n\t\tthis.mecanumDrive.drive(stick2.getX(), stick2.getY(),\n\t\t\t\tstick2.getTwist(), 0);\n\t\tint movement = -400;\n\t\tthis.moveingToPosition = stick.getRawButton(2);\n\t\tif (Math.abs(stick.getY()) > 0.1) {\n\t\t\tthis.totelifter.setSpeed(-stick.getY());\n\t\t} else if (stick.getRawButton(3)) {\n\t\t\tthis.totelifter.resetDown();\n\t\t} else if (this.moveingToPosition) {\n\t\t\tthis.totelifter.set(movement);\n\t\t} else if(this.stick.getRawButton(4)){\n\t\t\tthis.totelifter.set(6480);\n\t\t} else {\n\t\t\tthis.totelifter.setSpeed(0.0);\n\t\t}\n\n\t\tif (stick.getRawButton(5)) {\n\t\t\ttoteMunch.munch();\n\t\t} else if (stick.getRawButton(6)) {\n\t\t\ttoteMunch.spit();\n\t\t} else {\n\t\t\ttoteMunch.stop();\n\t\t}\n\t\t\n\t\t\n\t\tif(Math.abs(stick.getThrottle()) > 0.1){\n\t\t\tthis.grabber.set(-stick.getThrottle());\n\t\t} else {\n\t\t\tthis.grabber.set(0);\n\t\t}\n//\t\t\n\t\t\n\t\tdebug();\n\t}", "title": "" }, { "docid": "47055e726e8716e12cbee764cac1600b", "score": "0.53285044", "text": "protected void initialize() {\n \n pos = shooter.triggerPot.getAverageValue();\n System.out.println(\"Trigger Forward\");\n shooter.setTrigger(1);\n while (pos < Shooter.TRIGGER_END || (count < 100)){\n pos = shooter.returnTriggerPosition();\n System.out.println(\"P: \" + pos);\n // System.out.println(\"F: \" + shooter.armMotor.get());\n count++;\n Timer.delay(.05);\n \n }\n //Timer.delay(fTime);\n System.out.println(\"Trigger Backward\");\n shooter.setTrigger(-1);\n count = 0;\n while (pos > Shooter.TRIGGER_START || (count < 100)){\n pos = shooter.returnTriggerPosition();\n System.out.println(\"P: \" + pos);\n count++;\n Timer.delay(.05);\n }\n //Timer.delay(bTime);\n System.out.println(\"Trigger Finished\");\n shooter.setTrigger(0);\n shooter.triggerRunning = false;\n//\n// while (shooter.triggerPot.getAverageValue() < Shooter.TRIGGER_END) {\n// shooter.setTrigger(-1);\n// System.out.println(shooter.triggerPot.getAverageValue());\n// }\n// shooter.setTrigger(0);\n// while (shooter.triggerPot.getAverageValue() > Shooter.TRIGGER_START) {\n// shooter.setTrigger(.7);\n// \n// System.out.println(shooter.triggerPot.getAverageValue());\n// }\n// shooter.setTrigger(0);\n }", "title": "" }, { "docid": "f688a61b7bb4a86a504c9c35985f57bf", "score": "0.53272337", "text": "int DAQmxResetArmStartTrigTrigWhen(Pointer taskHandle);", "title": "" }, { "docid": "3579d468093e02929ac763e4b733473d", "score": "0.53213245", "text": "@Override\n public void robotPeriodic() {\n double is = SmartDashboard.getNumber(\"Intake Speed\", .5);\n if (is != intakeSpeed) {intakeSpeed = is;}\n\n\n toggleStick = arcadeStick.getRawButtonPressed(1);\n //Set Button to Integer Value\n if (toggleStick == true && toggle == 0) { //First Press\n toggle = 1; //If trigger is pressed and toggle hasn't been set yet/has cycled through then toggle = 1\n } else if (toggleStick == false && toggle == 1) { //First Release\n toggle = 2; //If trigger is released and toggle = 1 then toggle = 2\n } else if (toggleStick == true && toggle == 2) { //Second Press\n toggle = 3; //If trigger is pressed and toggle = 2 then toggle = 3\n } else if (toggleStick == false && toggle == 3) { //Second Release\n toggle = 0; //If trigger is released and toggle = 3 then toggle = 0\n } else if (toggleStick == false && toggle == 0) { //Completes the Cycle/Redundancy Backup\n toggle = 0; //If trigger is released and toggle = 0 then toggle = 0\n }\n\n //Determine Piston Position Based on Integer Value\n if (toggle == 1 || toggle == 2) { //Trigger is Pressed\n //intakeSol.set(Value.kForward); //Hatch Arm Down\n if (i < 50) { //50 = 1 second(1 = 20 milliseconds)\n intakeMotor.set(ControlMode.PercentOutput, intakeSpeed);\n //System.out.println(i);\n i++;\n } else if (i > 50) {\n intakeMotor.set(ControlMode.PercentOutput, 0);\n }\n } else if (toggle == 3 || toggle == 0) { //Trigger is Released\n //intakeSol.set(Value.kReverse); //Hatch Arm Up\n intakeMotor.set(ControlMode.PercentOutput, 0);\n i = 0;\n } //End Hatch Toggle Code\n\n //Compressor\n if (arcadeStick.getRawButton(2)) { //Compressor Off\n //compressor.setClosedLoopControl(false);\n } else if (arcadeStick.getRawButton(4)) { //Compressor On\n //compressor.setClosedLoopControl(true);\n } else {\n //compressor.setClosedLoopControl(false);\n }\n\n }", "title": "" }, { "docid": "98884b4cea831d074a71f41200beb96f", "score": "0.53196037", "text": "@Override\n public void periodic() {\n if (m_motor != null && m_motor2 != null){\n SmartDashboard.putBoolean(\"Sensor 1: \", sensor[0]);\n SmartDashboard.putBoolean(\"Sensor 2: \", sensor[1]);\n SmartDashboard.putBoolean(\"Sensor 3: \", sensor[2]);\n SmartDashboard.putBoolean(\"armedSwitch: \", armedSwitch);\n SmartDashboard.putNumber(\"The Ball Prediction is: \", ballPrediction);\n SmartDashboard.putBoolean(\"manualIndexer\", manual_switch);\n if(m_isEnabled){\n getInputs();\n if (m_beltState == BeltState.IDLE) {\n runIndexerSm();\n }\n runBeltSm();\n updateActuators();\n //setActuators();\n } \n }\n }", "title": "" }, { "docid": "e72216b1ca2538a54abc2baeb231c7f6", "score": "0.5317774", "text": "public void autonomousPeriodic() \n {\n //Read driverstation inputs\n driverstation.readInputs();\n \n if (!driverstation.autonomousOnSwitch)\n {\n driverstation.println(\"Autonomous Enabled\", 1);\n Autonomous.updateAutonomous(driverstation.autonomousModeSwitch);\n }\n else\n {\n driverstation.println(\"Autonomous Disabled\", 1);\n }\n \n //Print autonomous mode to driverstation\n switch (driverstation.autonomousModeSwitch)\n {\n case Autonomous.MODE_FRONT_KEY:\n //Front key mode\n driverstation.println(\"Mode: Front Key\" , 2);\n break;\n case Autonomous.MODE_BACK_KEY:\n //Back key mode\n driverstation.println(\"Mode: Back Key\" , 2);\n break;\n case Autonomous.MODE_FULL:\n //Front key mode\n driverstation.println(\"Mode: Full\" , 2);\n break;\n }\n \n //Reload compressor\n compressor.update();\n \n //Send data to the driverstation\n driverstation.sendData();\n }", "title": "" }, { "docid": "a3c4a6e5c1899a65937de7f6034b025f", "score": "0.53106123", "text": "@Override\n public void teleopPeriodic() {\n \n \n\n stickX = -Math.pow(stick.getRawAxis(1), 3);\n stickY = Math.pow(stick.getRawAxis(4), 3);\n\n\n\n // manual drive controls\n\n if(Math.abs(stickX) < 0.000124) {\n\n stickX =0;\n\n }\n\n if(Math.abs(stickY) < 0.000124) {\n\n stickY = 0;\n\n }\n\n\n\n // left and right speeds of the drivetrain\n\n stickX = stickX + stickY;\n\n stickY = stickX - stickY;\n\n\n\n // run the robot based on the left and right speeds of the drive train\n\n leftMotor.set(-stickX);\n rightMotor.set(stickY);\n\n }", "title": "" }, { "docid": "84a8e4794970c6941f41d45977a0da1f", "score": "0.5310363", "text": "@Override\n public void robotPeriodic() {\n // Use this for things that need to be constantly running,\n // i.e compressor\n smartDashboard();\n LimitSwitch();\n\n intakePosition = encoderIntake.getPosition();\n elevatorPosition = encoderElevator.getPosition();\n\n }", "title": "" }, { "docid": "c3cefde4d4484826a27c2acb7d502c58", "score": "0.5300859", "text": "int DAQmxResetDigEdgeArmStartTrigDigFltrTimebaseRate(Pointer taskHandle);", "title": "" }, { "docid": "57977c5499b77e640cda46c102bb87cd", "score": "0.5296106", "text": "@Override\n public void teleopPeriodic() {\n // NOTE: because this code executes before robotPeriodic in each iteration\n // the actions here occur BEFORE the scheduled commands run; this means that\n // commands can be added during this execution cycle and will be acted upon\n // within the current cycle.\n }", "title": "" }, { "docid": "630010dacd79fa24379a17f3f02d56cc", "score": "0.5285797", "text": "public void teleopPeriodic() {\n \t/* get gamepad axis */\n \tdouble leftYstick = _joy.getAxis(AxisType.kY);\n \tdouble motorOutput = _talon.getOutputVoltage() / _talon.getBusVoltage();\n \t/* prepare line to print */\n\t\t_sb.append(\"\\tout:\");\n\t\t_sb.append(motorOutput);\n _sb.append(\"\\tspd:\");\n _sb.append(_talon.getSpeed() );\n// System.currentTimeMillis()\n if(_joy.getRawButton(1)&&y==0){\n \tstarttime= System.currentTimeMillis();\n \ty++;\n }\n if(_joy.getRawButton(1)){\n \t/* Speed mode */\n \n \t \n \tdouble targetSpeed = 3000; /* 1500 RPM in either direction */\n \t_talon.changeControlMode(TalonControlMode.Speed);\n \t_talon.set(targetSpeed); /* 1500 RPM in either direction */\n\n \t/* append more signals to print when in speed mode. */\n _sb.append(\"\\terr:\");\n _sb.append(_talon.getClosedLoopError());\n _sb.append(\"\\ttrg:\");\n _sb.append(targetSpeed);\n if(_talon.getSpeed()>=3000 && x==0){\n \tendtime = System.currentTimeMillis();\n \ttime = endtime-starttime;\n \tSystem.out.print(time);\n \tx++;\n }\n } else {\n \t/* Percent voltage mode */\n \t_talon.changeControlMode(TalonControlMode.PercentVbus);\n \t_talon.set(leftYstick);\n }\n if(_joy.getRawButton(2)&&v==0){\n \tstarttime2= System.currentTimeMillis();\n \tv++;\n }\n if(_joy.getRawButton(2)){\n \tif(_talon.getSpeed()>=3000&&q==0){\n \t\tendtime2= System.currentTimeMillis();\n \t\ttime2 = endtime2-starttime2;\n \t\tSystem.out.print(time2);\n \t\tq++;\n \t}\n \tif(_talon.getSpeed()<3000){\n \t\t_talon.set(1);\n \t}\n \t\n }\n if(_talon.getSpeed()<2000){\n \t\tq=0;\n \t\tv=0;\n \t\tx=0;\n \t\ty=0;\n \t}\n\n if(++_loops >= 10) {\n \t_loops = 0;\n \tSystem.out.println(_sb.toString());\n }\n _sb.setLength(0);\n }", "title": "" }, { "docid": "0b54720b72362a3a682293ab0a18cff7", "score": "0.52802163", "text": "@Override\n\tpublic void autonomousPeriodic() {\n\t\trobot.updateGyro();\n\t\tSmartDashboard.putNumber(\"gyro\", robot.getAngle());\n\t\tvisionController.update();\n\t\tlights.setAutoLights();\n\t\tdashboardLogger.updateData();\n\t\tdashboardLogger.updateEssentialData();\n\n\t}", "title": "" } ]
67e912e49319ce5ca83a09fc1c528717
/realiza a compra de um equipamento qualquer
[ { "docid": "276501ea9a28c0f106e84c27608bca04", "score": "0.6985955", "text": "public void comprarEquipamentos(String equipamento, double preco, int quantidade){\n //instancia os dados de um objeto\n Compra compra = new Compra(equipamento, preco);\n //faz o pagamento da compra\n compra.pagar();\n //adiciona no vetor de compras\n petshop.getCompras().add(compra);\n }", "title": "" } ]
[ { "docid": "c26508cac67eaf988595834453d67ee5", "score": "0.6809082", "text": "public void compraEnMercado(Jugador jugadorActual, Equipamiento equipoElegido) throws JuegoException {\r\n // Establece el precio total del objeto incluyendo la Tasa del Mercader\r\n int precioTotal = equipoElegido.getPrecio() + (equipoElegido.getPrecio() / TASA_MERCADER);\r\n\r\n // Comprueba si el jugador dispone de monedas suficientes para la compra\r\n if (jugadorActual.getOroActual() >= precioTotal) {\r\n // Resta al comprador el coste total de la compra\r\n jugadorActual.setOroActual(jugadorActual.getOroActual() - precioTotal);\r\n\r\n // <<Para debug>>\r\n System.out.println(\"precio del equipo a la venta: \" + equipoElegido.getPrecio());\r\n System.out.println(\"antiguo propietario del equipo: \" + equipoElegido.getPropietario());\r\n System.out.println(\"oro del antiguo propietario: \" + equipoElegido.getPropietario().getOroActual());\r\n\r\n // Suma el precio de venta al jugador que ofrecia el objeto\r\n equipoElegido.getPropietario().setOroActual(equipoElegido.getPropietario().getOroActual() + equipoElegido.getPrecio());\r\n // Establece al comprador como nuevo propietario del objeto\r\n equipoElegido.setPropietario(jugadorActual);\r\n // Incluye el objeto en el inventario del comprador\r\n jugadorActual.actualizarInventario(equipoElegido, true);\r\n // Elimina el objeto de la lista del Bazar\r\n mercado.remove(equipoElegido);\r\n } else {\r\n throw new JuegoException(\"No dispones de oro suficiente para comprar este objeto\");\r\n }\r\n }", "title": "" }, { "docid": "d273bb23dbf119d26933681f6fd389a8", "score": "0.6408193", "text": "public Equipo(){\n\t\tthis.distanciaMaximaCombinacion = 1;\n\t\tthis.oponentesVencidos = 0;\n\t}", "title": "" }, { "docid": "b181c18898d5e7056a253dc65578c1a6", "score": "0.6296976", "text": "public void contromossaComputer(){\n\t\tTabellaTris tabellaTris = controllerTris.getTabellaTris();\n\n\t\tif(!partitaFinita){\n\t\t\tint index = controllerTris.getProxyDifficolta().getDifficoltà().generaMossa(tabellaTris);\n\t\t\tgriglia.get(index).setIcon(icone[1].disegna());\n\t\t\tcontrollerTris.getAlgoritmoTris().stabilisciVincitore(tabellaTris.getCaselle());\n\t\t\tpartitaFinita = controllerTris.getAlgoritmoTris().partitaFinita();\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "7740d44166c02a13f6dbd505c454b9bf", "score": "0.6237478", "text": "public void llamaNuevoEscenario()\n {\n MTienda auxiliar= (MTienda) getWorld();\n auxiliar.compraAtk();\n }", "title": "" }, { "docid": "a0dde3d02a8f6795f4877024a2a863b3", "score": "0.6234356", "text": "private void limpiar() {\n ed.setEnvio(null);\n Utiles.cargarComboPrioridades(cbxpriori);\n chbxfragil.setSelected(true);\n }", "title": "" }, { "docid": "bed74f55b9c8352b5d683a5429b023f9", "score": "0.6078814", "text": "public void realizaCargo(){\n Responsable[] arregloHabitantes; \r\n boolean resultado;\r\n \r\n java.sql.Date fechasql;\r\n //se confirma que la fecha sea la correcta para realizar el cargo de mantenimiento \r\n resultado = confirmaFecha();\r\n if (resultado){ \r\n arregloHabitantes = daoHabitantes.dameHabitantes();//Se traen todos los habitantes que estan en la BD \r\n Date fecha = new Date();//Se obtiene la fecha actual del sistema en una viariable Date \r\n for (Responsable Habitante : arregloHabitantes) {//Se hace un for, para iterar cada habitante\r\n this.cargaHabitantes(Habitante);//Se llama el metodo 'cargaHabitante' de esta clase para realizar la carga del mantenimiento\r\n daoHabitantes.actualizaHabitante(Habitante);//Se actualiza el habiatante en la base de datos\r\n fechasql = new java.sql.Date(fecha.getTime());//Se asigana a la variable de tipo sqlDate, la fecha actual del sistema\r\n //se crea el objeto pago con los datos sobre el cargo del mantenimiento para el habitante iterado\r\n pagos pagoHabitante = new pagos(0, fechasql, -50, Habitante.getId(), 4, Habitante.getSaldo());\r\n resultado = daoPagos.creaPago(pagoHabitante);//Se crea el nuevo pago en la base de dstos\r\n }\r\n //si todo bien, lanza alerta de confirmacion\r\n JOptionPane.showMessageDialog(null, \"Se genero el cargo a todos los habitantes con exito\"); \r\n controlPrincipal();\r\n }else{\r\n //si no es la fecha para realizar el cargo, se manda una alerta\r\n JOptionPane.showMessageDialog(null, \"Aun no es momento de hacer cargo del mes\"); \r\n controlPrincipal();\r\n }\r\n }", "title": "" }, { "docid": "507bbd0d59a735723e68274e54fdc9c5", "score": "0.6078748", "text": "private Equipo getComodin (){ // Devuelve el equipo comodin\n\t\tEquipo comodin;\n\t\tPartido partido;\n\t\tpartido = this.getPartidos().obtenerUltimo();\n\t\tcomodin = partido.getLocal(); // El equipo comodin es el local del �ltimo partido de la jornada\n\t\treturn comodin;\n\t}", "title": "" }, { "docid": "69cb3cbb9ca9c6db6cc1d9d143548aba", "score": "0.60468024", "text": "public void iniciar(){\n vistaEquipo.setTitle(\"Gestión de Equipos\");\n vistaEquipo.setLocationRelativeTo(null);\n vistaEquipo.btnEliminar.setEnabled(false);\n vistaEquipo.btnModificar.setEnabled(false);\n //nombre de las columnas\n modelo.addColumn(\"ID\");//les asigno nombres a las columnas\n modelo.addColumn(\"Descripcion\");//les asigno nombres a las columnas\n modelo.addColumn(\"Numero de Serie\");//les asigno nombres a las columnas\n modelo.addColumn(\"Número Inventario\");//les asigno nombres a las columnas\n modelo.addColumn(\"Ubicación\");//les asigno nombres a las columnas\n modelo.addColumn(\"Estatus\");//les asigno nombres a las columnas\n modelo.addColumn(\"Tipo\");//les asigno nombres a las columnas\n cargarTabla(vistaEquipo.tableEquipos);\n }", "title": "" }, { "docid": "3f91ab046e3e8c9c1fdab526603c89ed", "score": "0.60097533", "text": "public void limpiarAdquisicion() {\n if ((adquisicion != null) && (adquisicion.getAdqProcedimientoCompra() != null) && (!(adquisicion.getAdqProcedimientoCompra().getProcCompHabilitado()))) {\n listaProcedimientoCompraCombo.remove(adquisicion.getAdqProcedimientoCompra());\n }\n\n adquisicion = new Adquisicion();\n listaOrganizacionCombo.setSelected(-1);\n listaProveedoresCombo.setSelected(-1);\n listaFuentesCombo.setSelected(-1);\n listaMonedaCombo.setSelected(-1);\n listaComponenteProductoCombo.setSelected(-1);\n listaProcedimientoCompraCombo.setSelected(-1);\n listaTipoRegistroCompraCombo.setSelected(-1);\n listaTipoAdquisicionCombo.setSelected(-1);\n listaCentroCostoCombo.setSelected(-1);\n listaCausalCompraCombo.setSelected(-1);\n listaIdentificadorGrpErpCombo.setSelected(-1);\n ssUsuarioCompartidaId = -1;\n procedimientoCompraSelected = null;\n fuenteFinanciamientoSelected = null;\n\n }", "title": "" }, { "docid": "091702b7f67d440d29399f603ed0fe12", "score": "0.59648246", "text": "public InserirEnvioCarvao() {\n initComponents();\n this.setExtendedState(MAXIMIZED_BOTH); \n jLabelMunicipio.setText(\"Municipio: \"+ControlePrincipal.municipio);\n jLabelFazenda.setText(\"Fazenda: \"+ControlePrincipal.fazenda); \n jLabelTalhao.setText(\"Talhao: \"+ControlePrincipal.talhao); \n jLabelUPC.setText(\"UPC: \"+ControlePrincipal.upc); \n jLabelVolumeCarvaoPraca.setText(\"Volume atual de carvão na praça: \"+ControlePrincipal.carvao_praca+\" m³\");\n jLabelMaterialGenetico.setText(\"Material Genético: \"+ControlePrincipal.material_genetico);\n CarregarNome();\n }", "title": "" }, { "docid": "7a8d91c627f881072e8655eab5d7efa8", "score": "0.5950033", "text": "void cadatrarOportunidade(){\r\n\t\t}", "title": "" }, { "docid": "273e530b54f0a056a62bf2226cf44b00", "score": "0.59403485", "text": "public void buscarComponente() {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n String cadenaComp = request.getParameter(\"id_componente\");\n int id_componente = 0;\n try {\n int comp = Integer.parseInt(cadenaComp);\n id_componente = comp;\n } catch (NumberFormatException e) {\n id_componente = 0;\n }\n this.componente = this.colossal.getComponente(id_componente);\n if (this.componente != null) {\n List<ComponenteHasDependency> ch = this.colossal.findByComponentOwner(componente);\n this.componente.setComponenteHasDependencyList(ch);\n Collections.reverse(this.componente.getRevisionList());\n\n if (!(this.componente.getPeticionSubidaList().get(0).getUsuarioCodigo().getCodigo().intValue() == SessionManager.getUsuarioSession().getCodigo().intValue()) && SessionManager.getUsuarioSession().getTipoUsuario() == 0) {\n if (!this.componente.getPeticionSubidaList().get(0).getEstadoIdestado().getEstado().equalsIgnoreCase(\"Aprobado\")) {\n this.componente = null;\n }\n }\n }\n if (this.componente != null) {\n if (this.componente.getPeticionSubidaList().get(0).getEstadoIdestado().getEstado().equalsIgnoreCase(\"Eliminado\") && SessionManager.getUsuarioSession().getTipoUsuario() == 0) {\n this.componente = null;\n }\n }\n\n }", "title": "" }, { "docid": "3ec34e8ca46ebc63549f239ef77b30e6", "score": "0.5924983", "text": "static void Empezar() {\n String identificador = JOptionPane.showInputDialog(\"Ingrese el nombre de la carrera que servira como identificador\");\n int numeroDeCarriles = Integer.parseInt(JOptionPane.showInputDialog(\"Ingrese la cantidad de jugadores (3 jugadores como minimo)\"));\n int kilometros = Integer.parseInt(JOptionPane.showInputDialog(\"Ingrese la cantidad de kilometros que tendrá la carrera\"));\n pista = new Pista(kilometros, numeroDeCarriles);\n juego = new Juego(identificador, pista);\n carriles = new ArrayList();\n carros = new ArrayList();\n conductores = new ArrayList();\n for (int x = 1; x <= numeroDeCarriles; x++) {\n String nombre = JOptionPane.showInputDialog(\"Ingrese el nombre del jugador \" + x);\n String color = JOptionPane.showInputDialog(\"Ingrese el color del jugador \" + x);\n juego.crearJugador(x, nombre, color);\n Conductor conductor = new Conductor(nombre);\n Carro carro = new Carro(color);\n carro.asignarConductor(conductor);\n Posicion posicion = new Posicion();\n Carril carril = new Carril(posicion, kilometros * 1000, false);\n carril.agregarCarro(carro);\n carriles.add(carril);\n carros.add(carro);\n conductores.add(conductor);\n\n }\n juego.iniciarJuego();\n }", "title": "" }, { "docid": "edde8228e3f878e78ba2f1fcfa165548", "score": "0.59151167", "text": "@Override\n\tpublic void entrenar() {\n\t\tSystem.out.println(\"entrenar equipo (entrenador)\");\n\t}", "title": "" }, { "docid": "dd55b222e1eaba807e6afc8dba504cc2", "score": "0.591259", "text": "@Override\r\n\tpublic void jugarPartido() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8115db47b3d874636a4193a8000a7e43", "score": "0.58869886", "text": "private void RimozioneCarte() {\n\n\t\tint size = regione.getTesserePermessoScoperte().size();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tTesseraPermesso permesso = regione.getTesserePermessoScoperte().remove(0);\n\t\t\tregione.getMazzoTesserePermesso().aggiungiCarta(permesso);\n\t\t}\n\t}", "title": "" }, { "docid": "94b79786b3e2928257d6786652a91c89", "score": "0.5879673", "text": "private void supervisarEmpleo(){\r\n for(int i=0;i<listaEmpleados.size();i++){\r\n listaEmpleados.get(i).realizarEmpleo(getDiaActual());\r\n }\r\n }", "title": "" }, { "docid": "a92e6d0e2673cb9d8e90cf46430243de", "score": "0.5876978", "text": "@Override\r\n\tpublic void occupaCamere() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bba4ab4f47ed4f3266a0179381895c2c", "score": "0.58741736", "text": "private void setOpcionesDeTiro() {\n\t\t// datos iniciales del balon\n\t\tfinal Balon balon = new Balon(new Position(0, -yMeta), 0);\n\t\t// angulo horizontal de disparo\n\t\topcionesDisparo.clear();\n\t\tfinal double maxAng = Constants.ANGULO_VERTICAL_MAX;\n\t\tfor (int idJugador = 0; idJugador < 11; idJugador++) {\n\t\t\tfinal double fuerzaJugador = sp.getMyPlayerPower(idJugador);\n\t\t\tfinal double velocidadRemate = Constants.getVelocidadRemate(sp.getMyPlayerPower(idJugador));\n\t\t\tfinal double velocidadJugador = Constants.getVelocidad(sp.getMyPlayerSpeed(idJugador));\n\t\t\t// 0 -> tiro sacando, 1-> tiro normal\n\t\t\tfor (int tipoDisparo = 0; tipoDisparo < 2; tipoDisparo++) {\n\t\t\t\t// si la opcion no ha sido calculada\n\t\t\t\tfinal OpcionesDisparo opcion = new OpcionesDisparo(fuerzaJugador, tipoDisparo);\n\t\t\t\tif (!opcionesDisparo.contains(opcion)) {\n\t\t\t\t\t// se prueban diferentes opciones de fuerza\n\t\t\t\t\tfor (double fuerza = 1; fuerza >= 0.2; fuerza -= 0.01d) {\n\t\t\t\t\t\t// potecia obtenida dependiendo de la fuerza aplicada\n\t\t\t\t\t\tfinal double potencia = fuerza * velocidadRemate * (tipoDisparo == 0 ? 0.75 : 1);\n\t\t\t\t\t\t// se prueban diferentes opciones de angulos\n\t\t\t\t\t\tfor (double angZ = maxAng; round(angZ, 2) > 10; angZ -= 0.05) {\n\t\t\t\t\t\t\tangZ = round(angZ, 2);\n\t\t\t\t\t\t\t// angulo en radianes\n\t\t\t\t\t\t\tfinal double angRadZ = angZ * TO_RAD;\n\t\t\t\t\t\t\t// se obtiene la trayectoria del balon al punto\n\t\t\t\t\t\t\tfinal InfoTrayectoria info = obtenerDistanciaCalculada(balon, fuerza, potencia, angRadZ, velocidadJugador);\n\t\t\t\t\t\t\tif (info != null) {\n\t\t\t\t\t\t\t\tTreeSet<InfoTrayectoria> set = new TreeSet<InfoTrayectoria>();\n\t\t\t\t\t\t\t\tfinal TreeMap<Double, TreeSet<InfoTrayectoria>> map = opcion.getOpciones();\n\t\t\t\t\t\t\t\tif (map.containsKey(info.getDistancia())) {\n\t\t\t\t\t\t\t\t\tset = map.get(info.getDistancia());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tset.add(info);\n\t\t\t\t\t\t\t\tmap.put(info.getDistancia(), set);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// calculos con angulo 0\n\t\t\t\t\t\tfinal InfoTrayectoria info = obtenerDistanciaCalculada(balon, fuerza, potencia, 0, velocidadJugador);\n\t\t\t\t\t\topcion.getOpcionesAngCero().add(info);\n\t\t\t\t\t}\n\t\t\t\t\topcionesDisparo.add(opcion);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "b9f569d0d76a513db369abe25e49787d", "score": "0.586801", "text": "private void inizia() throws Exception {\n /* regola il nome della tavola dalla costante */\n super.setTavolaArchivio(RCC.NOME_TAVOLA);\n\n }", "title": "" }, { "docid": "7f591b7a7b2517cac351e55b04833217", "score": "0.58608544", "text": "public void bicicletaBuscarFabricante(){\n String fabricanteBici = ventana.leerDatoString(\"Ingresar fabricante de bicicleta a buscar:\\n\");\n ArrayList<BicicletaModel> bicicletas = bicicletaDAO.buscarBicicletas(fabricanteBici);\n ventana.getResultados().inicializarPanelMostrarBicicletas(bicicletas);\n }", "title": "" }, { "docid": "530611c8f415d73e81739aa9eca827b7", "score": "0.5843983", "text": "@Override\r\n public synchronized void ComprarProduto(String nomeProd, int dia, int mes, int ano, int add_stock) throws RemoteException {\n\r\n ArrayList<ClassProduto> arrayListClone = (ArrayList<ClassProduto>) Produtos.clone();\r\n\r\n for (int i = 0; i < arrayListClone.size(); i++) {\r\n ClassProduto a = arrayListClone.get(i);\r\n if (a.getNome().equals(nomeProd)) { //buscar objeto com o nome nomeProd\r\n //registar Compra\r\n OpCompra o = new OpCompra(a,dia, mes,ano,add_stock); //objeto compra criado e inicializado\r\n RegistarCompra(o);\r\n\r\n //adicionar stock no arraylist\r\n int tot = a.getStock() + add_stock;\r\n a.setStock(tot);\r\n arrayListClone.set(i,a); //alterar objeto atualizado (com novo stock) no arraylist\r\n Produtos= (ArrayList<ClassProduto>) arrayListClone.clone();\r\n try {\r\n EscreverFileProd(Produtos);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n break;\r\n }\r\n else{\r\n System.out.println(\"Produto não encontrado\");\r\n break;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "a0f0029019c9d3e49fbbb17603ba3b73", "score": "0.58387625", "text": "void actualizar(ItemsCompra ItemsCompra);", "title": "" }, { "docid": "4968601089c5ee7eb60ecd92cc31c70c", "score": "0.58354723", "text": "protected void setup() {\n SubastadorBehaviour comportamento;\n\n // Informase de que non se manexan os argumentos\n if (getArguments().length > 0) {\n System.out.println(\"ERRO no subastador, os argumentos non seran tidos en conta!!\");\n }\n // Crease a lista coas subastas (libros)\n libros = new ArrayList<>();\n libros.add(new Libro(\"Don Quijote\", (float) 10.0, (float) 2.0, \"En curso\"));\n //libros.add(new Libro(\"El perfume\", (float) 12.0, (float) 2.0, \"En curso\"));\n //libros.add(new Libro(\"El nombre de la rosa\", (float) 15.0, (float) 2.0, \"En curso\"));\n // Informase de que o subastador se iniciou correctamente\n System.out.println(\"Subastador: \" + getAID().getLocalName() + \" iniciandose....\");\n // Mostrase a interfaz grafica\n\t\tsubastadorGUI = new SubastadorGUI(libros, this);\n\t\tsubastadorGUI.setVisible(true);\n\t\t// Definese o codec a usar e a ontoloxia rexistrandoos no content manager\n getContentManager().registerLanguage(codec);\n getContentManager().registerOntology(ontology);\n // Engadese un comportamento por libro e gardamos a referencia\n for (Libro libro : libros) {\n comportamento = new SubastadorBehaviour(this, 10000, libro);\n //listaComprotamentos.add(comportamento);\n addBehaviour(comportamento);\n }\n // Terminase a execucion\n //doDelete();\n }", "title": "" }, { "docid": "665fb44d888709b3666da7448f069070", "score": "0.57991344", "text": "private void SostituzioneCarte() {\n\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tTesseraPermesso tessera = regione.getMazzoTesserePermesso().pescaCarte();\n\t\t\tregione.getTesserePermessoScoperte().add(tessera);\n\t\t}\n\n\t}", "title": "" }, { "docid": "a1046a055bd9521e4c3709b1db2e4cb7", "score": "0.57944167", "text": "public void avanzar(Enemigo e) {\r\n\t\tif (e.modoDios())\r\n\t\t{\tCelda celdaAnterior = e.getCelda();// PUEDE SER QUE TENGAMOS Q MANEJAR LOS POSX POS Y COMO EN CELDA\r\n\t\t\r\n\t\t\te.setX(super.miCelda.getPosX());\r\n\t\t\te.setY(super.miCelda.getPosY());\r\n\t\t\te.setCelda(super.miCelda);\r\n\t\t\te.setCeldaAnterior(celdaAnterior);\r\n\t\t\tmiCelda.agregarElementoACelda(e);\r\n\t\t\tceldaAnterior.eliminarElementoEnCelda();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "002d74d08b71edf2ecbe61f158ae1fcc", "score": "0.5775668", "text": "private void ubicarPortero() {\n\t\t// Si el arquero no est� en posicion de saque, se ubica lo mejor posible\n\t\tif (!sp.isStarts()) {\n\t\t\t// // se borra cualquier comando de movimiento asignado al portero\n\t\t\tfor (final Command c : comandos) {\n\t\t\t\tif (c.getPlayerIndex() == idxMiPortero && c instanceof CommandMoveTo && ultimoPasador != destinoPase) {\n\t\t\t\t\tcomandos.remove(c);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// si el portero puede controlar el balon, se busca el despeje\n\t\t\t// // verifico si el portero es la mejor opcion para interceptar el pase\n\t\t\tfinal DestinoBalon destino = obtenerMejorUbicado(trayectoria, true, true, false);\n\n\t\t\tif (destino != null /* && posFinalEnAreaGrande(destino.getPosBalon(), false) */&& !destino.isGanaRival()) {\n\t\t\t\tcomandos.add(new CommandMoveTo(idxMiPortero, destino.getPosBalon()));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcomandos.add(new CommandMoveTo(idxMiPortero, mejorPosArquero()));\n\t\t} else {\n\t\t\t// si tengo que sacar de meta\n\t\t\tif (sp.ballPosition().equals(metaAbajoDerecha) || sp.ballPosition().equals(metaAbajoIzquierda)) {\n\t\t\t\tcomandos.add(new CommandMoveTo(idxMiPortero, sp.ballPosition()));\n\t\t\t} else {\n\t\t\t\tcomandos.add(new CommandMoveTo(idxMiPortero, mejorPosArquero()));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fb9ed60427114f680f0ebf8093bc072d", "score": "0.5775218", "text": "private void ubicarEscuadronUno(){\n\t\tint y = 1;//0;\r\n\t\tint x = 1;//0;\r\n\t\tint cantidadAlgoFormers = this.escuadronUno.cantidadMiembrosEscuadron();\r\n\t\tfor(int i = 0; i < cantidadAlgoFormers; i++){\r\n\t\t\tthis.agregarAlgoFormer(this.escuadronUno.getAlgoFormer(i),new Posicion(x,y));\r\n\t\t\tif(x == 1){\r\n\t\t\t\tx = 2;//1;\r\n\t\t\t\ty = 1;//0;\r\n\t\t\t} else {\r\n\t\t\t\tx = 1;//0;\r\n\t\t\t\ty = 2;//1;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "008f00fe272e3a451f78e8d57cd4fcae", "score": "0.5770014", "text": "@Override\n\tpublic void comprarPorEmpresa(Colleague c) {\n\t\t\n\t}", "title": "" }, { "docid": "5278321e03270753a7ad69c26cc38600", "score": "0.57580894", "text": "@Override\n public void inizializza() {\n Navigatore nav;\n CompNav cnav;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* costruzione grafica */\n\n /* pannello con le 2 date */\n pan = PannelloFactory.orizzontale(null);\n pan.add(this.getCampo(NOME_CAMPO_DAL));\n pan.add(this.getCampo(NOME_CAMPO_AL));\n this.addPannello(pan);\n\n /* pannello con Navigatore Arrivi e Navigatore Partenze */\n pan = PannelloFactory.orizzontale(null);\n nav = this.getNavArrivi();\n cnav = new CompNav(nav, \"Arrivi\");\n pan.add(cnav);\n nav = this.getNavPartenze();\n cnav = new CompNav(nav, \"Partenze\");\n pan.add(cnav);\n this.addPannello(pan);\n\n /* pannello orizzontale con nav cambi, riepilogo e comandi */\n pan = PannelloFactory.orizzontale(null);\n pan.setAllineamento(Layout.ALLINEA_BASSO);\n nav = this.getNavCambi();\n cnav = new CompNav(nav, \"Cambi camera\");\n pan.add(cnav);\n pan.add(this.getRiepilogo());\n pan.add(this.getPanComandi());\n this.addPannello(pan);\n\n\n super.inizializza();\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "title": "" }, { "docid": "c07e6d2d65e39bbfeaafbd0bde597006", "score": "0.57462573", "text": "public void Alta() {\n Reparaciones reparacion = new Reparaciones();\n AltaReparacion1 alta = new AltaReparacion1(this,true, reparacion);// se abre una ventana de alta que recibe como parametro una nueva reparacion\n alta.setVisible(true);\n // si se pulso el boton aceptar en la ventana de alta se persiste la entidad reparacion en el entitymanager con el controlador y se añade a la lista\n if(alta.isAcaptaAlta()){\n controladorReparaciones.create(reparacion);\n reparacionesList.add(reparacion);\n jListClientes.setSelectedIndex(reparacionesList.indexOf(reparacion));\n jListClientes.setEnabled(false);\n btAlta.setEnabled(false);\n btBuscar.setEnabled(false);\n btModificar.setEnabled(false);\n btEliminar.setEnabled(false);\n btCancelar.setEnabled(true);\n btActualizar.setEnabled(false);\n setNecesitaGuardar(true);\n } \n }", "title": "" }, { "docid": "1768dcc27dfd0b6eb9f8d62afd0e3f17", "score": "0.5741372", "text": "private void setupEscenario2( )\r\n {\r\n tiendaDeLibros = new TiendaDeLibros( );\r\n fecha = new Date( );\r\n tiendaDeLibros.registrarLibro( \"Las mil y una noches\", \"AGHF324\", 530, 340, \"\" );\r\n tiendaDeLibros.registrarLibro( \"Pulgarcito\", \"HAGF456\", 500, 250, \"\" );\r\n }", "title": "" }, { "docid": "42dc1859c0fbb3e9a96bafe07fbcd865", "score": "0.57299185", "text": "public abstract boolean vencioEquipoContrario();", "title": "" }, { "docid": "62122b8936efda9622d240860690862b", "score": "0.57201874", "text": "Equipamento alterar(Equipamento Equipamento) throws Exception;", "title": "" }, { "docid": "6d8437bc30e5df633db7279ce376f450", "score": "0.5694014", "text": "@Override\n\tpublic void realizarAtaque() {\n\t\tthis.uni.realizarAtaque();\n\t}", "title": "" }, { "docid": "e24fc1efe34bd206f5276b6788d1dbad", "score": "0.5693438", "text": "public void entrar(){\n if(esperando.isEmpty())\n return;\n //obtive a crianca\n Crianca primeira = esperando.get(esperando.size() - 1);\n //retirei do vetor esperando\n esperando.remove(esperando.size() - 1);\n //adicionei na primeira posicao do vetor brincando\n brincando.add(0, primeira);\n }", "title": "" }, { "docid": "67c81a632fbe5a96a38828d89d960426", "score": "0.5675563", "text": "public void agregarComidaEspecialABordo() {\n\t\tfor (int x = 0; x<servicios.size();x++){\n\t\t\tservicios.get(x).agregarComidaEspecialAbordo();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "05eb235ec611d4d9dc63529e8f894073", "score": "0.56675833", "text": "public void agit(){\n\t\tint x=getObjectif().getLargeur();\n\t\tint y=getObjectif().getHauteur();\n\t\t\n\t\tif(r.peutTirer()){ // Si le robot a assez de vie\n\t\t\tCellule objectif=r.getVue().p.getCellule(x, y);\n\t\t\tRobot thisR=r.getVue().p.getCellule(x, y).getContenu(); // robot (à \"null\" ou pas) de la future case\n\t\t\t\n\t\t\tif(r.getType().substring(0, 1).equalsIgnoreCase(\"T\") || r.getType().substring(0, 1).equalsIgnoreCase(\"C\")){ // Si le robot courant est un Tireur ou un char\n\t\t\t\tif(thisR!=null && objectif.estBase()==0 && thisR.getEquipe()==r.getEquipe()) // Si un robot tire sur un robot de son equipe\n\t\t\t\t\tSystem.out.println(\"Hey man, no friendly fire! ;)\");\n\t\t\t\t\n\t\t\t\telse if(thisR!=null && objectif.estBase()==0){ // Si on ne tire pas sur une base\n\t\t\t\t\tthisR.subitTir(); // le robot attaque perd des pvs\n\t\t\t\t\tSystem.out.println(\"Attaque effectuee!\");\n\t\t\t\t}\n\t\t\t\telse // Si on ne tire sur rien\n\t\t\t\t\tSystem.out.println(\"Impossible, vous ne tirez pas sur un robot!\");\n\t\t\t}\n\t\t\telse if(r.getType().substring(0, 1).equalsIgnoreCase(\"P\")){ // Si le robot courant est un Piegeur\n\t\t\t\tif(thisR==null && objectif.estBase()==0){ // Si la case est vide et que ce n'est pas une base\n\t\t\t\t\tobjectif.ajoute(r.getEquipe()); // Ajoute une mine\n\t\t\t\t\tSystem.out.println(\"Attaque effectuee!\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"Impossible de poser une mine, case non vide!\");\n\t\t\t}\n\t\t\tr.setEnergie(r.getEnergie()-r.getCoutAction()); // mise a jour de l'energie\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Impossible, vous n'avez pas assez de vie pour attaquer!\");\n\t}", "title": "" }, { "docid": "8b02e6fd2e3e8d1c815c5d3bb4fabaf8", "score": "0.56586313", "text": "private void revisarCompra(Retencion retencion)\n {\n //Si la referencia es null creo una compra temporal para mostrar los datos\n if(retencion.getTipoDocumentoEnum().equals(TipoDocumentoEnum.LIBRE))\n {\n Compra compra=new Compra();\n compra.setProveedor(retencion.getProveedor());\n for (RetencionDetalle detalle : retencion.getDetalles()) {\n //detalle.get\n }\n }\n }", "title": "" }, { "docid": "85637432ce6f5210f9f3a04b8c32fe03", "score": "0.5653574", "text": "private void comprobarJornada(){\r\n //comprobar si ha comenzado la liga\r\n try{\r\n Date hoy = new Date();\r\n Jornada j = Main.consultarInicioJornada();\r\n if(j != null){\r\n if(hoy.after(j.getFechaInicio()) || hoy.compareTo(j.getFechaInicio()) == 1 ){\r\n equipos.setVisible(false);\r\n JOptionPane.showMessageDialog(this, \"Se ha deshabilitado la opción de Editar Equipo, ya que la liga ha comenzado ya.\");\r\n }\r\n }\r\n }\r\n catch( Exception ex){\r\n JOptionPane.showMessageDialog(this, ex.getClass() + \" \\n \" + ex.getMessage(), \"Error\", 0);\r\n }\r\n }", "title": "" }, { "docid": "45a086f661445462fed683905b00bc4a", "score": "0.5642652", "text": "public void atualizarMercadoria(Produto p) throws Exception {\n \n Statement stm;\n ResultSet rs;\n int qt = p.getId_produto();\n String sql2 = \"SELECT quantidade_estoque from produto WHERE id_produto=\" + qt;\n stm = conn.createStatement();\n rs = stm.executeQuery(sql2);\n if (rs.next()){\n int atualizar_mercadoria = rs.getInt(\"quantidade_estoque\") + p.getQuantidade_estoque();\n \n \n PreparedStatement pst;\n String sql = \"UPDATE produto SET quantidade_estoque=? WHERE id_produto=?\";\n\n pst = conn.prepareStatement(sql);\n pst.setInt(1, atualizar_mercadoria);\n pst.setInt(2, p.getId_produto());\n pst.execute();\n }\n }", "title": "" }, { "docid": "a0773186a8d82e2c583cac118e2e11b0", "score": "0.5641526", "text": "@Override\n public void procesaPercepcion(PantallaAccion.RenderizadorAccion entorno, float delta)\n {\n //Actualizacion de mana y de Vida.\n this.regenera(delta);\n \n //Evalucacion de visibilidad\n Mundo mundo=Mundo.getInstance();\n mundo.evaluaVisibilidad(this.casillaActual.x,this.casillaActual.y);\n \n /*Evaluacion de la existencia de llave, salida o empanada (fon de partida) si se ha cambiado de casilla*/\n if( ((DesplazamientoPersonaje)this.desplazamiento).hayCambioCasilla())\n {\n if(mundo.hayLLaveEnCasilla(this.casillaActual))\n {\n //añadimos el efecto de mostrar el texto de aviso\n entorno.getEfectosActivos().add(new EfectoGeneraAviso(Mundo.TEXTO_AVISO_LLAVE_ENCONTRADA,\n Mundo.COLOR_AVISO_LLAVE_ENCONTRADA,\n this.getPosX(),\n this.getPosY(),\n entorno));\n //Marcamos la llave como conseguida\n this.tieneLlave = true;\n }\n \n //Hemos llegado a la salida del nivel\n if(mundo.estaEnSalida(this.casillaActual))\n {\n if(this.tieneLlave) //Llamar al proceso de fin de nivel\n entorno.finalizaNivel();\n else //Mostrar mensaje flotante\n entorno.getEfectosActivos().add(new EfectoGeneraAviso(Mundo.TEXTO_AVISO_FALTA_LLAVE,\n Mundo.COLOR_AVISO_FALTA_LLAVE,\n this.getPosX(),\n this.getPosY(),\n entorno));\n }\n \n /* SE HA ENCONTRADO LA EMPANADA (FIN DE PARTIDA: EL JUGADOR HA GANADO.\n * Mostrar diálogo de ganador y fin de partida\n */\n if(mundo.hayEmpanadaEnCasilla(this.casillaActual))\n entorno.finalizaPartida();\n \n //MArcar la casilla como evaluada\n ((DesplazamientoPersonaje)this.desplazamiento).setCambioCasillaAnalizado();\n }\n }", "title": "" }, { "docid": "158cdc25a4bc9f4e09694cdc42dd7dd7", "score": "0.56399745", "text": "public ReservaHabitacion(){}", "title": "" }, { "docid": "e8ff33468739c7187a40d406ce4c4416", "score": "0.56276745", "text": "@Override\n\tpublic void actualizar() {\n\t\tassert(tuberia != null);\n\t\ttuberia.actualizar();\n\t\tlong aguaRestante = tuberia.getAguaRestante();\n\t\tif(aguaRestante <= 0){\n\t\t\ttuberia.parar();\n\t\t}\n\t\tStringBuilder stateString = new StringBuilder();\n\t\tstateString.append(\"Restante \").append(aguaRestante)\n\t\t\t\t.append(\" Tiempo \").append(tuberia.getTranscurrido());\n\t\t\n\t\tscreen.setBarraEstado(stateString.toString());\n\t\tif(tuberia.getEstado() == EstadoTuberia.FINALIZADA)\n\t\t\tscreen.abrirDialogo(\"Partida\", \"Partida Finalizada\");;\n\t}", "title": "" }, { "docid": "6438ff5c1054c5baf563faf1c6ce098b", "score": "0.56191194", "text": "private void comprobarTablero() {\r\n\t\tcolocarSimbolo();\r\n\t\tactualizarTablero();\r\n\t}", "title": "" }, { "docid": "1a078493c89b2e34ad94d4fbf3866105", "score": "0.5617857", "text": "public void limpiarcomponentes() \n\t{\n\t\tcomboBox_Centro.setSelectedIndex(-1);\n\t\tcomboBox_CargoActual.setSelectedIndex(-1);\n\t\tcomboBox_GrupoOcupacional.setSelectedIndex(-1);\n\t\t\n\t\tcomboBox_Centro.setEnabled(false);\n\t\tcomboBox_CargoActual.setEnabled(false);\n\t\tcomboBox_GrupoOcupacional.setEnabled(false);\n\t\t\n\t\ttextField_busqueda.setEditable(false);\n\t\ttextField_Edad.setEditable(false);\n\t\t\n\t\ttextField_busqueda.setText(\"\");\n\t\ttextField_Edad.setText(\"\");\n\n\t}", "title": "" }, { "docid": "31d308cf59fcb18d7e3a2b029921df60", "score": "0.56144404", "text": "public Pruebas_materiales() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setResizable(false); \n control.llenarPlantaBox(plantaCombo);\n plantaCombo.addItem(\"Todas\");\n control.llenarEstatusBox(estatus_combo);\n estatus_combo.removeItem(\"finalizado\");\n control.llenarTablaPruebas(tabla_prueba,\"Todas\",\"Todos\");\n \n }", "title": "" }, { "docid": "ba88b2598501f5e6dc4ecf3a987f28ce", "score": "0.5611907", "text": "@Override\r\n\tpublic void interactuarCon(CuatroXCuatro unaCuatroXCuatro) {\n\t\tMoto unaMoto = new Moto(unaCuatroXCuatro.getPosicion()); \r\n\t\tunaCuatroXCuatro.getConductor().setVehiculo(unaMoto);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "860ddc052a01dc756c0c46a07db340c2", "score": "0.56041574", "text": "public void inizializza() {\n /* variabili e costanti locali di lavoro */\n\n // se il portale lo prevede, aggiunge i bottoni standard\n Portale portale;\n portale = this.getPortale();\n if (portale!=null) {\n boolean usa;\n usa = portale.isUsaPulsantiStandard();\n if (usa) {\n this.addBottoniStandard();\n }// fine del blocco if\n\n }// fine del blocco if\n \n\n }", "title": "" }, { "docid": "f95a6f3fc02be45c530cfbbde617a065", "score": "0.56028444", "text": "public void setCompraComprobante(CompraComprobante compraComprobante) {\n this.compraComprobante = compraComprobante;\n }", "title": "" }, { "docid": "95192c13b9c3ee9b1166eab21c8b8913", "score": "0.5594253", "text": "public static void startGuerra(){\r\n\t\tint tamañoEjercitoHeroes=bueno.getSize();\r\n\t\tint tamañoEjercitoBestias=malo.getSize();\r\n\t\tint round=1;\r\n\t\twhile(tamañoEjercitoHeroes>0 && tamañoEjercitoBestias>0) {\r\n\t\t\tCampoBatalla.addLinea(\"************************************* Ronda \"+round +\" *************************************\" );\r\n\t\t\tint counter=0;\r\n\t\t\tCampoBatalla.addLinea(\" \");\r\n\t\t\twhile(counter<bueno.getSize() && counter<malo.getSize() ) {\r\n\t\t\t\tPersonaje atacante =bueno.getSoldier(counter);\r\n\t\t\t\tPersonaje defensor =malo.getSoldier(counter);\r\n\t\t\t\tCampoBatalla.addLinea(\"-> Combate \"+(counter+1)+\": \"+atacante.toString()+\" vs \"+defensor.toString() );\r\n\t\t\t\tcombate(atacante,defensor);\r\n\t\t\t\tcombate(defensor,atacante);\r\n\t\t\t\tif(defensor.getVida()<=0) {\r\n\t\t\t\t\tCampoBatalla.addLinea(\"\\t++++++++++ Muere \"+defensor.getNombre()+\" +++++++++++\");\r\n\t\t\t\t}else if(atacante.getVida()<=0) {\r\n\t\t\t\t\tCampoBatalla.addLinea(\"\\t++++++++++ Muere \"+atacante.getNombre()+\" +++++++++++\");\r\n\t\t\t\t}\r\n\t\t\t\tcounter++;\t\t\t\r\n\t\t\t\tCampoBatalla.addLinea(\" \");\r\n\t\t\t\t}\r\n\t\t\teliminaMuertos();\r\n\t\t\ttamañoEjercitoHeroes=bueno.getSize();\r\n\t\t\ttamañoEjercitoBestias=malo.getSize();\r\n\t\t\tif(tamañoEjercitoHeroes==0 && tamañoEjercitoBestias ==0) {\r\n\t\t\t\ttablas();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif(tamañoEjercitoHeroes==0 && malo.getSoldier(0) instanceof Bestia) {\r\n\t\t\t\tganaMalo();\r\n\t\t\t\tbreak;\r\n\t\t\t}else if (tamañoEjercitoHeroes==0 && malo.getSoldier(0) instanceof Heroe) {\r\n\t\t\t\tganaBueno();\r\n\t\t\t\tbreak;\r\n\t\t\t}else if(tamañoEjercitoBestias==0 && bueno.getSoldier(0) instanceof Heroe) {\r\n\t\t\t\tganaBueno();\r\n\t\t\t\tbreak;\r\n\t\t\t}else if(tamañoEjercitoBestias==0 && bueno.getSoldier(0) instanceof Bestia) {\r\n\t\t\t\tganaMalo();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tround++;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0bd74c69687deec15a8278507a08bb97", "score": "0.5593806", "text": "private static void modoCompleto ( ) throws Exception\r\n\t{\t\t\r\n\t\tmodoLexico ( );\r\n\t\t\r\n\t\tmodoSintatico ( );\r\n\t\t\r\n\t\t//modoSemantico ( );\r\n\t\t\r\n\t\tmodoGeraCodigo ( );\r\n\t}", "title": "" }, { "docid": "afa8de8bc89a4c8d0a6a36c1ff834589", "score": "0.55901915", "text": "public void crearReproduccion(){\r\n\t\tString descripcion = \"Se realiza a travez de copulacion\";\r\n\t\tanimal.setTipoReproduccion(descripcion, TipoReproduccion.viviparos);\r\n\t}", "title": "" }, { "docid": "7c64055bd375b7fb6e333d44c0350332", "score": "0.5587687", "text": "public void checaColision () {\n if (objBarra.getX() < 0) {\n objBarra.setX(0);\n }\n if (objBarra.getX() + objBarra.getAncho() > getWidth()) {\n objBarra.setX(getWidth() - objBarra.getAncho());\n }\n \n //Checa colision de la BOLA con el demas environment\n //Checa colision de la bola con la pared de la izquierda\n if (objBola.getX() < 3) {\n iVelBolaX *= -1;\n }\n //Checa la colision con la pared de arriba\n if (objBola.getY() < 25) {\n iVelBolaY *= -1;\n } \n //Checa la colision con la pared de la derecha\n if (objBola.getX() + objBola.getAncho() + 3 > getWidth()) {\n iVelBolaX *= -1;\n }\n if (objBola.getY() + objBola.getAlto() + 3 > getHeight()) {\n iVelBolaY *= -1;\n }\n //Checa colision de la bola con la barra\n if (objBola.colisiona(objBarra)) {\n calculaAngulo();\n }\n //Checa colision de la bola con los bloques\n for (Iterator<Objeto> iter = lnkBloques.iterator(); iter.hasNext();){\n Objeto objBloqueTemp = iter.next();\n if (objBola.colisiona(objBloqueTemp)) {\n iter.remove();\n iVelBolaY *= -1;\n }\n }\n }", "title": "" }, { "docid": "f5986c5d1ebe4ad6cddf66c7783db879", "score": "0.5585438", "text": "public static void equipar(Jogador j) \r\n\t{\r\n\t\tTelaEscolhaInventario tela = new TelaEscolhaInventario(j,false);\r\n\t\ttela.setVisible(true);\r\n\t\tiniciar(j);\r\n\t\t/*while(naTela == true) \r\n\t\t{\r\n\t\t\tif(tela.isVisible() == false) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\topcao = tela.getOpcaoSelecionada();\r\n\t\t\t\tif(opcao == -1) \r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, opcao + \" \\nItem: \" + j.iventario[opcao].getNome());\r\n\t\t\t\t\t\r\n\t\t\t\t\tmostrarInv(j);\r\n\t\t\t\t\tnaTela = false;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tj.equiparDoInv(j, opcao);\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, opcao + \" \\nItem: \" + j.iventario[opcao].getNome());\r\n\t\t\t\t\t\r\n\t\t\t\t\tmostrarInv(j);\r\n\t\t\t\t\tnaTela = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t\t\t\t//JOptionPane.showOptionDialog(null, \"Escolha o item\", \"Equipar\", JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE, null, yae, yae[0]);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d4c793d4c58c379cecd61232499db0b0", "score": "0.5572984", "text": "@Override\n public void setPartie() {\n int nombreDeJoueurs_;\n\n CustList<HandBelote> mains_=new CustList<HandBelote>();\n for (BeloteCardsScrollableList l: hands) {\n HandBelote m=new HandBelote();\n m.ajouterCartes(l.valMainBelote());\n m.setOrdre(displayingBelote.getOrderBeforeBids());\n m.trier(displayingBelote.getDisplaying().getSuits(), displayingBelote.getDisplaying().isDecreasing(), displayingBelote.getOrderBeforeBids());\n mains_.add(m);\n }\n HandBelote m=new HandBelote();\n m.ajouterCartes(remaining.valMainBelote());\n m.setOrdre(displayingBelote.getOrderBeforeBids());\n mains_.add(m);\n// for(int i=1;i<nombreDeMains_;i++) {\n// plc_=(BeloteCardsScrollableList)panelsCards.getComponent(i);\n// HandBelote m=new HandBelote();\n// m.ajouterCartes(plc_.valMainBelote());\n// m.setOrdre(displayingBelote.getOrdreAvantEncheres());\n// if(i<nombreDeMains_-1) {//On trie toutes les mains sauf le talon car l'ordre des cartes au talon est important\n// m.trier(displayingBelote.getCouleurs(), displayingBelote.getDecroissant(), displayingBelote.getOrdreAvantEncheres());\n// }\n// mains_.add(m);\n// }\n// nombreDeJoueurs_=nombreDeMains_-1;\n nombreDeJoueurs_=getHands(false).size();\n byte donneur_ = (byte) liste.getSelectedIndex();\n if (donneur_ == nombreDeJoueurs_) {\n// donneur_=(byte)Math.floor(nombreDeJoueurs_*MonteCarlo.randomDouble());\n donneur_=(byte)MonteCarloUtil.randomLong(nombreDeJoueurs_,getMain().getGenerator());\n }\n DealBelote donne_=new DealBelote(mains_,donneur_);\n partie = new GameBelote(GameType.EDIT,donne_,getReglesBelote());\n\n }", "title": "" }, { "docid": "9ca798507ff42420fa6f8f2bbb9cbd43", "score": "0.557234", "text": "@Override\n\tpublic void calcularEnvio() {\n\n\t}", "title": "" }, { "docid": "363eb1724a90bac1718f9863acdd40a5", "score": "0.556959", "text": "public void ControleEscolhaCadastroaba2() {\n\n\t}", "title": "" }, { "docid": "8c9bc911ca27ee6a9a38417123519719", "score": "0.5568947", "text": "private void compruebaFinPartida(){\n\n int numNormal = 0;\n boolean perdido = true;\n int size = tablero.length;\n\n for (int y=0; y<size; y++){\n for (int x=0; x<size; x++){\n //Si la Posicion contiene una bola Normal\n if (tablero[y][x] == NORMAL){\n numNormal++;\n\n //Si de momento no encuentra una Bola adyacente\n if (perdido){\n //Compruebo si tiene otra Normal Adyacente en Vertical\n if ((y >= 1) && (tablero[y - 1][x] == NORMAL)){\n //Si Delante de la Bola esta vacio o\n //Detras de la Adyacente esta vacio\n if ((((y + 1) < size) && (tablero[y + 1][x] == VACIO)) ||\n (((y - 2) >= 0 ) && (tablero[y - 2][x] == VACIO)))\n perdido = false;\n }\n //Compruebo si tiene otra Normal Adyacente en Horizontal\n if ((x >= 1) && (tablero[y][x - 1] == NORMAL)){\n //Si Arriba de la Bola esta cacio o\n //Abajo de la Adyacente esta vacio\n if ((((x + 1) < size) && (tablero[y][x + 1] == VACIO)) ||\n (((x - 2) >= 0 ) && (tablero[y][x - 2] == VACIO)))\n perdido = false;\n }\n }\n }\n }\n }\n //Si solo hay unoa Bola Normal -> Ha ganado la partida\n if (numNormal == 1)\n setFinPartida(true);\n //Si no ha encontrado bolas Adyacentes -> Ha perdido la partida\n else if (perdido)\n setFinPartida(false);\n }", "title": "" }, { "docid": "5b2413b78e4c95df1899ff7062e0c62b", "score": "0.5568582", "text": "public void actualiza(){\n if (bBarraMueve){\n if (iDireccionBarra == 3) {\n objBarra.setX(objBarra.getX() + 10);\n }\n if (iDireccionBarra == 4) {\n objBarra.setX(objBarra.getX() - 10);\n } \n }\n //Actualiza la bola\n \n if (bBolaMueve) {\n objBola.setX(objBola.getX() + iVelBolaX);\n objBola.setY(objBola.getY() + iVelBolaY);\n }\n }", "title": "" }, { "docid": "5b57897b3f0976c6e729581e15113180", "score": "0.5567778", "text": "public void activarTipo() {\n\t\tif(tipo.getSelectedItem().getValue().equals(Reintegro.REINTEGRO_RECIBOS))\n\t\t{\n\t\t\tVbox botonera = new Vbox();\n\t\t\tbotonera.appendChild(agregar);\n\t\t\tbotonera.appendChild(quitar);\n\t\t\tdatosreinegro.addComponente(botonera,listRecibos);\n\t\t\tdatosreinegro.setAnchoColumna(0,100);\n\t\t\ttipo.setDisabled(true);\n\t\t\tdatosreinegro.dibujar(contenedor);\n\t\t}\t\n\t\telse if (tipo.getSelectedItem().getValue().equals(Reintegro.REINTEGRO_CREDITO))\n\t\t{\n\t\t\t\n\t\t\tVbox botonera = new Vbox();\n\t\t\tbotonera.appendChild(notaCredito);\n\t\t\t\n\t\t\tdatosNotaCredito.addComponente(\"Nota Credito :\",nroNotaCredito);\n\t\t\tdatosNotaCredito.addComponente(\"Factura Afect. :\",factura);\n\t\t\tdatosNotaCredito.addComponente(\"Total Nota :\",totalNota);\n\t\t\tdatosNotaCredito.addComponente(\"Por Pagar :\",porpagar);\n\t\t\tdatosNotaCredito.setAnchoColumna(0,100);\n\t\t\ttipo.setDisabled(true);\n\t\t\tdatosNotaCredito.dibujar(contenedor);\n\t\t\tdatosNotaCredito.appendChild(notaCredito);\n\t\t}\n\t}", "title": "" }, { "docid": "1d11b77fd4448073fd8411d2dbe9d1f6", "score": "0.5559501", "text": "public void inicializar() {\n llenarCbxSeguro();\n cbxBeneficio.removeAllItems();\n oModeloCuentasxCobrarFarmacia.clear(); \n personalizaVistaTabla();\n if (oCuentaxcobrarTemp != null) {\n oCuentaxcobrarTemp = null;\n }\n }", "title": "" }, { "docid": "6b6774a91b6f06576affb985123038f6", "score": "0.5557517", "text": "private void carregaCombos() {\n Materia_PrimaService mService = new Materia_PrimaService();\n\n Vector<Materia_Prima> materia = new Vector<>(mService.buscarTodos());\n\n DefaultComboBoxModel dcm = new DefaultComboBoxModel(materia);\n\n jcbxMateria.setModel(dcm);\n }", "title": "" }, { "docid": "528d7abdb34d4ef563e564c9b876203f", "score": "0.55574733", "text": "public TelaEquipe() {\n initComponents();\n lstMilitaresSelecionadosEquipe = new ArrayList<>();\n sessao = Sessao.getInstancia();\n novaEquipe = true;\n mapMilitaresExcluir = new HashMap<>();\n militarControler = new MilitarControler();\n equipedao = new EquipeDAO();\n militarDAO = new MilitarDAO();\n tableMilitaresDisponiveis = (DefaultTableModel) jTableMilitaresDisponiveis.getModel();\n tableMilitaresAlocadosEquipe = (DefaultTableModel) jTableMilitaresEquipe.getModel();\n populaComboboxEquipes();\n populaTabelaMilitaresDisponiveis();\n\n }", "title": "" }, { "docid": "769f3e9187136d2340d29291257ea3c2", "score": "0.5555181", "text": "public Envio Registrarenvio(String equi,int indice, String re){\n\r\n if( !listaequipo.contains(equi) || (indice >= numeroproblema) || re.isEmpty() || !marcha){\r\n return null;\r\n }\r\n \r\n //dejamos indicado que registrarasegun el tipo\r\n return RegistrarSegunTipo( equi, indice, re);\r\n }", "title": "" }, { "docid": "640ecddba987adf40e6d3c8fb30acf5b", "score": "0.5549845", "text": "@SuppressWarnings(\"unused\")\n\t@Override\n\tpublic void ejecutar(Object... params) {\n\t\t\n\t\tString name = (String) params[0];\n\t\tVictima yo = (Victima) params[1];\n\t\tFocus f = (Focus) params[2];\n\t\tMisObjetivos mo = (MisObjetivos) params[3];\n\t\tInicioEstado ie = (InicioEstado) params[4];\n\t\t\n\t\tcomunicator = this.getComunicator();\n\t\t\t\t\n\t\tswitch(ie.getEstadoIniciado()){\n\t\tcase InicioEstado.ST_NuevoEscenario:\n\t\t\t\n\t\t\tPriorityBlockingQueue<Objetivo> pqO = mo.getMisObjetivosPriorizados();\n\t\t\twhile(!pqO.isEmpty()){\n\t\t\t\tObjetivo oo = pqO.poll();\n\t\t\t\tthis.getEnvioHechos().eliminarHechoWithoutFireRules(oo);\n\t\t\t\tmo.eliminarObjetivo(oo);\n\t\t\t}\n\t\t\tf.setFoco(null);\n\t\t\tthis.getEnvioHechos().actualizarHechoWithoutFireRules(mo);\n\t\t\tthis.getEnvioHechos().actualizarHechoWithoutFireRules(f);\n\t\t\tbreak;\n\t\tcase InicioEstado.ST_Inicio:\n\t\t\tObjetivo o = new PedirAyuda();\n\t\t\tmo.addObjetivo(o);\n\t\t\tf.setFoco(o);\n\n\t\t\tthis.getEnvioHechos().insertarHechoWithoutFireRules(o);\n\t\t\tthis.getEnvioHechos().actualizarHechoWithoutFireRules(mo);\n\t\t\tthis.getEnvioHechos().actualizarHechoWithoutFireRules(f);\n\t\tcase InicioEstado.ST_Fin:\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tthis.getEnvioHechos().eliminarHecho(ie);\n\t}", "title": "" }, { "docid": "ce8a4bf58cf256f9233a064aac958c17", "score": "0.5546779", "text": "private void limparTela() {\r\n\t\tvelhaTela.setSituacaoDoJogo(\"Pronto para iniciar a partida..\");\r\n\t\tvelhaIA.limparTabuleiro();\r\n\t\tvelhaDominio.limpar();\r\n\t\tvelhaTela.redesenhaPainelDoJogo();\r\n\t}", "title": "" }, { "docid": "74860f8d9c90d43bbb94a36555d7ec5d", "score": "0.5540709", "text": "private void crearPartidaArancelaria()\r\n/* 64: */ {\r\n/* 65:110 */ this.partidaArancelaria = new PartidaArancelaria();\r\n/* 66:111 */ this.partidaArancelaria.setIdOrganizacion(AppUtil.getOrganizacion().getId());\r\n/* 67:112 */ this.partidaArancelaria.setIdSucursal(AppUtil.getSucursal().getId());\r\n/* 68: */ }", "title": "" }, { "docid": "79a0cfc7977f385161f159cbbf859ccd", "score": "0.55405515", "text": "private void cargarCombosFicha() {\n logger.finest(\"-- FichaMB - CargarCombos --\");\n Integer orgPk = inicioMB.getOrganismo().getOrgPk();\n\n listaAreas = areasDelegate.obtenerAreasPorOrganismo(orgPk, true);\n// listaAreas = aplicacionMB.obtenerAreasPorOrganismo(orgPk);\n if (listaAreas != null && !listaAreas.isEmpty()) {\n listaAreasOrganismoCombo = new SofisCombo((List) listaAreas, \"areaNombre\");\n listaAreasOrganismoCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n Areas usuArea = inicioMB.getUsuario().getUsuArea(orgPk);\n // 9-12-2016 selecciona el área del usuario en caso de estar habilitada\n if (usuArea != null && listaAreas.contains(usuArea)) {\n listaAreasOrganismoCombo.setSelected(usuArea.getAreaPk());\n }\n }\n\n//\t\tlistaProgramas = programaDelegate.obtenerProgIniciadoPorOrg(orgPk);\n listaProgramas = programaDelegate.obtenerProgComboPorOrg(orgPk, true);\n if (listaProgramas != null && !listaProgramas.isEmpty()) {\n listaProgramasCombo = new SofisCombo((List) listaProgramas, \"nombreComboFicha\");\n listaProgramasCombo.addEmptyItem(Labels.getValue(\"comboProgramasFichaEmpty\"));\n }\n\n //la lista de usuarios con rol Director son los que se pueden seleccionar como sponsor.\n //String[] ordenUsuarios = new String[]{\"usuPrimerNombre\", \"usuSegundoNombre\", \"usuPrimerApellido\", \"usuSegundoApellido\"};\n //boolean[] ascUsuarios = new boolean[]{true, true, true, true};\n //List<SsUsuario> listaSponsor = ssUsuarioDelegate.obtenerUsuariosPorRol(SsRolCodigos.DIRECTOR, orgPk, ordenUsuarios, ascUsuarios);\n List<SsUsuario> listaSponsor = aplicacionMB.obtenerUsuariosPorRolActivos(SsRolCodigos.DIRECTOR, orgPk);\n if (listaSponsor != null && !listaSponsor.isEmpty()) {\n listaSponsorCombo = new SofisCombo((List) listaSponsor, \"usuNombreApellido\");\n listaSponsorCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n }\n\n //la lista de usuarios de la organizacion son los que se puede selecionar como adjunto.\n List<SsUsuario> listaAdjunto = aplicacionMB.obtenerTodosPorOrganismoActivos(orgPk);//ssUsuarioDelegate.obtenerTodosPorOrganismo(orgPk);\n if (listaAdjunto != null && !listaAdjunto.isEmpty()) {\n listaAdjuntoCombo = new SofisCombo((List) listaAdjunto, \"usuNombreApellido\");\n listaAdjuntoCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n }\n\n //la lista de los usuarios de la organizacion, son los que se pueden seleccionar como gerente\n List<SsUsuario> listaGerente = aplicacionMB.obtenerTodosPorOrganismoActivos(orgPk);//ssUsuarioDelegate.obtenerTodosPorOrganismo(orgPk);\n if (listaGerente != null && !listaGerente.isEmpty()) {\n listaGerenteCombo = new SofisCombo((List) listaGerente, \"usuNombreApellido\");\n listaGerenteCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n }\n\n //la lista de usuarios con rol PMO Federeda\n //List<SsUsuario> listaPmoFederada = ssUsuarioDelegate.obtenerUsuariosPorRol(new String[]{SsRolCodigos.PMO_FEDERADA, SsRolCodigos.PMO_TRANSVERSAL}, orgPk, new String[]{\"usuPrimerNombre\", \"usuSegundoNombre\", \"usuPrimerApellido\", \"usuSegundoApellido\"}, new boolean[]{true, true, true, true});\n List<SsUsuario> listaPmoFederada = aplicacionMB.obtenerUsuariosPorRolActivos(new String[]{SsRolCodigos.PMO_FEDERADA, SsRolCodigos.PMO_TRANSVERSAL}, orgPk);\n listaPmoFederada = SsUsuariosUtils.sortByNombreApellido(listaPmoFederada);\n if (listaPmoFederada != null && !listaPmoFederada.isEmpty()) {\n listaPmoFederadaCombo = new SofisCombo((List) listaPmoFederada, \"usuNombreApellido\");\n listaPmoFederadaCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n }\n\n //TODO pasarlas al managedBean\n listaMonedas = monedaDelegate.obtenerMonedas();\n if (listaMonedas != null && !listaMonedas.isEmpty()) {\n listaMonedaPreCombo = new SofisCombo((List) listaMonedas, \"monSigno\");\n listaMonedaPreCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n }\n\n Map<String, Object> filtroFuentes = new HashMap<>();\n filtroFuentes.put(\"habilitada\", true);\n\n listaFuentes = fuenteFinanciamientoDelegate.busquedaFuenteFiltro(orgPk, filtroFuentes, \"fueNombre\", 1);\n\n if (listaFuentes != null && !listaFuentes.isEmpty()) {\n listaFuentesPreCombo = new SofisCombo((List) listaFuentes, \"fueNombre\");\n listaFuentesPreCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n }\n\n listaComponenteProducto = componenteProductoDelegate.obtenerComponentesProductosPorOrgId(orgPk);\n if (listaComponenteProducto != null && !listaComponenteProducto.isEmpty()) {\n listaComponenteProductoCombo = new SofisCombo((List) listaComponenteProducto, \"comNombre\");\n listaComponenteProductoCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n }\n\n List<Etapa> listEtapas = etapaDelegate.obtenerEtapaPorOrgId(orgPk);\n if (listEtapas != null) {\n listaEtapaPubCombo = new SofisCombo((List) listEtapas, \"etaNombre\");\n listaEtapaPubCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n }\n\n FiltroObjectivoEstategicoTO filtroObjEstTO = new FiltroObjectivoEstategicoTO();\n filtroObjEstTO.setOrganismo(inicioMB.getOrganismo());\n filtroObjEstTO.setHabilitado(true);\n\n List<ObjetivoEstrategico> listaObjetivosEstrategicos = objetivoEstrategicoDelegate.obtenerPorFiltro(filtroObjEstTO);\n if (listaObjetivosEstrategicos != null) {\n listaObjetivosEstrategicosCombo = new SofisComboG<>(listaObjetivosEstrategicos, \"objEstNombre\");\n listaObjetivosEstrategicosCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n }\n\n //Carga los procedimientos de compra\n listaProcedimientoCompra = procedimiComponenteProductoDelegate.obtenerProcedimientosComprasPorOrgId(orgPk);\n if (listaProcedimientoCompra != null && !listaProcedimientoCompra.isEmpty()) {\n listaProcedimientoCompraCombo = new SofisCombo((List) listaProcedimientoCompra, \"procCompNombre\");\n listaProcedimientoCompraCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n }\n\n //Carga los identificadores GRP/ERP\n final FiltroIdentificadorGrpErpTO filtroIdentificadorGrpErpTO = new FiltroIdentificadorGrpErpTO();\n filtroIdentificadorGrpErpTO.setOrganismo(this.getInicioMB().getOrganismo());\n filtroIdentificadorGrpErpTO.setHabilitado(true);\n listaIdentificadorGrpErp = identificadorGrpErpDelegate.obtenerPorFiltro(filtroIdentificadorGrpErpTO);\n if (listaIdentificadorGrpErp != null && !listaIdentificadorGrpErp.isEmpty()) {\n listaIdentificadorGrpErpCombo = new SofisComboG((List) listaIdentificadorGrpErp, \"idGrpErpNombre\");\n listaIdentificadorGrpErpCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n }\n\n //la lista de usuarios que no son ni Editores ni Usuarios Externos\n listaUsuariosAdqCompartida = aplicacionMB.obtenerUsuariosPorRolActivos(new String[]{SsRolCodigos.PMO_FEDERADA, SsRolCodigos.PMO_TRANSVERSAL, SsRolCodigos.PMO_FEDERADA, SsRolCodigos.DIRECTOR, SsRolCodigos.USUARIO_COMUN}, orgPk);\n if (listaUsuariosAdqCompartida != null && !listaUsuariosAdqCompartida.isEmpty()) {\n listaUsuariosAdqCompartidaCombo = new ArrayList<>();\n for (SsUsuario u : listaUsuariosAdqCompartida) {\n Areas a = u.getUsuArea(orgPk);\n listaUsuariosAdqCompartidaCombo.add(new SelectItem(u.hashCode(), (a != null ? a.getAreaNombre() : \"SIN ÁREA\") + \" - \" + u.getUsuNombreApellido()));\n }\n Collections.sort(listaUsuariosAdqCompartidaCombo, AplicacionMB.COMBO_COMPARTOR);\n listaUsuariosAdqCompartidaCombo.add(0, new SelectItem(-1, Labels.getValue(\"comboEmptyItem\")));\n }\n\n List<TipoRegistroCompra> tipoRegistroCompra = Arrays.asList(TipoRegistroCompra.values());\n listaTipoRegistroCompraCombo = new SofisComboG(tipoRegistroCompra, \"text\");\n listaTipoRegistroCompraCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n listaTipoRegistroCompraCombo.setSelectedT(TipoRegistroCompra.COMPRA_ORIGINAL); // default COMPRA_ORIGINAL\n\n // cargar lista tipo adquisiciones\n FiltroTipoAdquisicionTO filtroAdquisicion = new FiltroTipoAdquisicionTO();\n filtroAdquisicion.setHabilitado(Boolean.TRUE);\n filtroAdquisicion.setOrganismo(this.getInicioMB().getOrganismo());\n List<TipoAdquisicion> tipoAdquisiciones = tipoAdquisicionDelegate.obtenerPorFiltro(filtroAdquisicion);\n listaTipoAdquisicionCombo = new SofisComboG<>(tipoAdquisiciones, \"tipAdqNombre\");\n listaTipoAdquisicionCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n\n // cargo lista centro costo\n FiltroCentroCostoTO filtroCentroCosto = new FiltroCentroCostoTO();\n filtroCentroCosto.setHabilitado(Boolean.TRUE);\n filtroCentroCosto.setOrganismo(this.getInicioMB().getOrganismo());\n List<CentroCosto> centros = centroCostoDelegate.obtenerPorFiltro(filtroCentroCosto);\n listaCentroCostoCombo = new SofisComboG<>(centros, \"cenCosNombre\");\n listaCentroCostoCombo.addEmptyItem(Labels.getValue(\"comboEmptyItem\"));\n }", "title": "" }, { "docid": "2b0b4cc42b48d888c18c44966eb297f5", "score": "0.5538622", "text": "public void cria() {\n\t\t\n\t\t// Pega o panel do tabuleiro\n\t\t_p = Control.getInstance().pegaPanel();\n\t\t\n\t\tif (Control.getInstance().pegaVencedor() != \"\") {\n\t\t\t\n\t\t\t// Cria a parabenização\n\t\t\tJOptionPane.showMessageDialog(_p, \"Parabéns!! O jogador \" + Control.getInstance().pegaVencedor() + \" venceu.\");\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t// Cria o texto de empate\n\t\t\tJOptionPane.showMessageDialog(_p, \"Foi um empate.\");\n\t\t}\n\t\t\n\t\t// Cria botão de Jogar\n\t\tint resposta = JOptionPane.showConfirmDialog(_p,\"Deseja voltar para o menu?\", \"Sair\", JOptionPane.YES_NO_OPTION);\n\n\t\tif (resposta == JOptionPane.YES_OPTION) {\n\t\t\tControl.resetaJogo();\n\t\t\tTabuleiro.resetaJogo();\n\t\t\tvoltaMenu();\n\t\t} else {\n\t\t\t System.exit(0);\n\t\t}\n\t}", "title": "" }, { "docid": "408622592acb0e6deb307fd97a8ce683", "score": "0.55349296", "text": "public String menuCompra() {\n\n\t\tIcon icono = new ImageIcon(getClass().getResource(\"../img/compra.png\"));\n\n\t\tString[] opciones = { \"Mostrar todos los valores\", \"Borrar Compra\", \"Crear Compra\", \"Modificar Compra\",\n\t\t\t\t\"Buscar por precio\", \"Buscar por clave\", \"Salir\" };\n\n\t\tString opcionElegida = (String) JOptionPane.showInputDialog(null, \"¿Que deseas realizar?\", \"Tabla Compra\",\n\t\t\t\tJOptionPane.QUESTION_MESSAGE, icono, opciones, opciones[0]);\n\n\t\treturn opcionElegida;\n\n\t}", "title": "" }, { "docid": "40a2564cd4cc57dcb8c0b5e5f0d9cc7e", "score": "0.552288", "text": "public void registrar() {\n ordenCompra.setObservacion(ordenCompra.getObservacion().toUpperCase());\r\n ordenCompra.setHoraRegistro(Utilitarios.horaActual());\r\n ordenCompra.setValorBruto(BigDecimal.ZERO);\r\n ordenCompra.setMontoDesc(BigDecimal.ZERO);\r\n ordenCompra.setValorNeto(BigDecimal.ZERO);\r\n ordenCompra.setMontoIgv(BigDecimal.ZERO);\r\n ordenCompra.setMontoTotal(BigDecimal.ZERO);\r\n res = ordenCompraBl.registrar(ordenCompra);\r\n if (res == 0) {\r\n MensajeView.registroCorrecto();\r\n } else {\r\n MensajeView.registroError();\r\n }\r\n listarOrdenCompra();\r\n }", "title": "" }, { "docid": "e52d88f77fc17ec55013471209d3aa5b", "score": "0.55187255", "text": "public void richiestaPosizionamentoPastore();", "title": "" }, { "docid": "0c965ee58751a4d9a3fd16fc0b373281", "score": "0.55020857", "text": "public void setComplemento_Solidario(int param){\n \n this.localComplemento_Solidario=param;\n \n\n }", "title": "" }, { "docid": "0c965ee58751a4d9a3fd16fc0b373281", "score": "0.55020857", "text": "public void setComplemento_Solidario(int param){\n \n this.localComplemento_Solidario=param;\n \n\n }", "title": "" }, { "docid": "86fce233d0c48838328df2c672ab19ca", "score": "0.5501023", "text": "public PedirComida() {\n initComponents();\n verPlatos();\n verBebidas();\n }", "title": "" }, { "docid": "020d78eb0131eb8bd4953fa8e2010117", "score": "0.5501022", "text": "public void modificarReserva(Usuario comprador) {\n\t\tif(comprador.getReservas().isEmpty())\r\n\t\t\tSystem.out.println(\"\\nNo tiene reservas\\n\");\r\n\t\telse {\r\n\t\t\tcomprador.mostrarReservas();\r\n\t\t\tSystem.out.println(\"Cual reserva desea modificar: \");\r\n\t\t\t\r\n\t\t\tString selectModificar = \"\"+(random.nextInt(comprador.getReservas().size()) + 1);\r\n\t\t\tint numModificar=1;\r\n\t\t\tif(esNumero(selectModificar))\r\n\t\t\t\tnumModificar=Integer.parseInt(selectModificar);\r\n\t\t\t\r\n\t\t\tif(numModificar>comprador.getReservas().size()|| numModificar<=0) \r\n\t\t\t\tcomprador.eliminarReserva(0);\r\n\t\t\telse\r\n\t\t\t\tcomprador.eliminarReserva(numModificar-1);\r\n\t\t\treservar(comprador);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "3551b40144c4f6a62a9a3b968a08c3a0", "score": "0.5491068", "text": "public void buscarSorteos() {\n\t\tmarco.anadirPantalla(new p02MenuSorteos.PantallaMenuSorteos(marco));\n\t\trelax();\n\t\t//System.out.println(\"Buscar Sorteos\");\n\t}", "title": "" }, { "docid": "beeb8fd31b934f181024d12a5a7058cc", "score": "0.54790366", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tcomboBoxSelectTerreno.setSelectedIndex(-1);\n\t\t\t\tcomboBoxSelectTerreno.setEnabled(true);\n\t\t\t\tcomboBoxSelectTipo.setSelectedIndex(-1);\n\t\t\t\tcomboBoxSelectTipo.setEnabled(true);\n\t\t\t\ttextFieldSpeed.setEnabled(true);\n\t\t\t\tend = true;\n\t\t\t\tset = false;\n\t\t\t\ttextFieldSpeed.setText(\"4\");\n\t\t\t\tfor (int i = 0; i < matrizLinhas; i++)\n\t\t\t\t\tfor (int j = 0; j < matrizColunas; j++)\n\t\t\t\t\t\tterreno.setPosicao(i, j, null);\n\t\t\t\tpintarTerreno(matriz);\n\n\t\t\t\t// Mata os agentes existentes no container\n\t\t\t\ttry {\n\t\t\t\t\tAgentController supervisor = cc.getAgent(\"SuperVisor\");\n\t\t\t\t\tsupervisor.kill();\n\t\t\t\t\tAgentController agente = cc.getAgent(\"Agente\");\n\t\t\t\t\tagente.kill();\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t}\n\n\t\t\t}", "title": "" }, { "docid": "98d291d816ac300954bf47754db2a430", "score": "0.5475743", "text": "public void actualiza() {\r\n // instrucciones para actualizar personajes\r\n iDireccionMosca = ((int) (Math.random() * (5 - 1) + 1));\r\n switch (iDireccionMosca) {\r\n\r\n case 1: {\r\n\r\n perMosca.setY(perMosca.getY() - perMosca.getVelocidad());\r\n break; //se mueve hacia arriba\r\n }\r\n case 2: {\r\n\r\n perMosca.setY(perMosca.getY() + perMosca.getVelocidad());\r\n break; //se mueve hacia abajo\r\n }\r\n case 3: {\r\n\r\n perMosca.setX(perMosca.getX() - perMosca.getVelocidad());\r\n break; //se mueve hacia la izquierda\r\n }\r\n case 4: {\r\n\r\n perMosca.setX(perMosca.getX() + perMosca.getVelocidad());\r\n break; //se mueve hacia la derecha\r\n }\r\n }\r\n //Detecta dónde está la mosca para ver qué clip correr\r\n if (perMosca.getX() > this.getWidth() / 2) {\r\n bUbicacionMosca = true;\r\n\r\n } else {\r\n bUbicacionMosca = false;\r\n\r\n }\r\n\r\n //Nena actualiza movimiento dependiendo de la tecla que se presionó\r\n switch (iDireccionCrowbar) {\r\n case 3:\r\n perCrowbar.derecha();\r\n break;\r\n case 4:\r\n perCrowbar.izquierda();\r\n break;\r\n case 5:\r\n perCrowbar.setX(perCrowbar.getX());\r\n break;\r\n\r\n }\r\n //Actualiza el movimiento de los caminadores\r\n for (Object lnkCharola : lnkCharolas) {\r\n Personaje perCharola = (Personaje) lnkCharola;\r\n if (perCharola.getGolpes() > 1) {\r\n perCharola.setVelocidad(perCharola.getVelocidad() + 1);\r\n perCharola.abajo();\r\n }\r\n }\r\n //Actualiza el movimiento de los corredores\r\n for (Object lnkProyectil : lnkProyectiles) {\r\n Personaje perProyectil = (Personaje) lnkProyectil;\r\n if (bBallFell) {\r\n perProyectil.setX(perCrowbar.getX() + perCrowbar.getAncho() / 2 - perProyectil.getAncho() / 2);\r\n perProyectil.setY(perCrowbar.getY() - 30);\r\n } else {\r\n perProyectil.setX(perProyectil.getX() + iMovX);\r\n perProyectil.setY(perProyectil.getY() + iMovY);\r\n }\r\n }\r\n if (iVidas < 1) {\r\n bGameOver = true;\r\n }\r\n if (bLevelCleared) {\r\n iLvl++;\r\n bLevelCleared = false;\r\n bGameStarted = true;\r\n bGameOver = false;\r\n bBallFell=true;\r\n if (iLvl > 3) {\r\n bGameWon = true;\r\n } else {\r\n try {\r\n leeArchivo(); //Carga datos\r\n } catch (IOException ex) {\r\n Logger.getLogger(BreakingBricks.class.getName()).log(Level.SEVERE,\r\n null, ex);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "c8528d20d73f7c339e496931bbb5cbff", "score": "0.5470067", "text": "public void finalizarCompra(){\r\n productoCon.agregarVenta(sesion.getListaProductos(), sesion.getUser().getId());\r\n sesion.getListaProductos().clear();\r\n FacesContext faces = FacesContext.getCurrentInstance();\r\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Completado\",\r\n \"Productos comprados.\");\r\n faces.addMessage(null, msg);\r\n }", "title": "" }, { "docid": "2dab464a04ee818202d1dc01b9d946b9", "score": "0.5469504", "text": "private void setCombos() {\n comboAula.removeAll();\n List<Aula> aulas = new ArrayList<Aula>();\n try {\n aulas = manager.getAulas();\n } catch (Exception ex) {\n Logger.getLogger(PnlMantenimientoActividadGestor.class.getName()).log(Level.SEVERE, null, ex);\n }\n comboAula.addItem(new ComboItem(language.getProperty(\"mantenimiento.Todas\"), 0));\n for(Aula aula: aulas) {\n comboAula.addItem(new ComboItem(aula.getNombre(),aula.getId()));\n } \n comboActivo.addItem(new ComboItem(language.getProperty(\"mantenimiento.Si\"), 0));\n comboActivo.addItem(new ComboItem(language.getProperty(\"mantenimiento.No\"), 1));\n \n }", "title": "" }, { "docid": "d485140de1aff81167995f639074ecbe", "score": "0.5468487", "text": "public InterfazConsultaEspecificaMaestro() throws ClassNotFoundException, SQLException {\n initComponents();\n //establece la posicion central de la interfaz\n this.setLocationRelativeTo(null);\n\n //coloca el icono en la interfaz\n setIconImage(new ImageIcon(getClass().getResource(\"/imagenes/icono.png\")).getImage());\n\n //cuenta el total de maestros\n contarMaestros();\n\n //limpia los campos\n limpiarCampos();\n\n //desactivamos la opcion de maximizar y minimizar asi como la de cerrar\n this.setResizable(false);\n setDefaultCloseOperation(0);\n\n //asigna el nombre de administrador a la interfaz\n jMenu1.setText(\"Mi cuenta: ADMINISTRADOR\");\n\n }", "title": "" }, { "docid": "2cde2c115973220070fded4e26d38696", "score": "0.5466362", "text": "private void initComposants() {\n\t\tToolkit kit = Toolkit.getDefaultToolkit();\n\t\tDimension screenSize = kit.getScreenSize();\n\n\t\tint fenHeight = 2 * screenSize.height / 3;\n\t\tint fenWidth = 3 * screenSize.width / 4;\n\n\t\t// personnalise et positionne la fenetre par rapport a l'ecran\n\t\tsetPreferredSize(new Dimension(fenWidth, fenHeight));\n\t\tsetLocation(screenSize.width / 10, screenSize.height / 10);\n\n\t\t// cree un titre de la fenetre\n\t\tString titre = \"Arene\";\n\t\tsetTitle(titre);\n\n\t\t// ajoute une operation si le bouton de fermeture de la fenetre est cliquee\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t\tinitMenuBar();\n\n\t\ttimerLabel = new TimerLabel();\n\t\tarenePanel = new AreneJPanel();\n\n\t\tgauchePanel = new JPanel(new BorderLayout());\n\t\tgauchePanel.add(timerLabel, BorderLayout.NORTH);\n\t\tgauchePanel.add(arenePanel, BorderLayout.CENTER);\n\n\t\tinfosPanel = new ElementsJPanel(this);\n\n\t\tJSplitPane jSplitPane = new JSplitPane();\n\t\tint dividerLocation = fenWidth / 2;\n\t\tjSplitPane.setDividerLocation(dividerLocation);\n\t\tjSplitPane.setLeftComponent(gauchePanel);\n\t\tjSplitPane.setRightComponent(infosPanel);\n\n\t\tsetVisible(true);\n\n\t\tgetContentPane().add(jSplitPane);\n\n\t\tpack();\n\t}", "title": "" }, { "docid": "53299eaf3f451735f1b4887f8afe6f31", "score": "0.5465103", "text": "private DettaglioAmmortamentoAnnuoCespite effettuaScrittureAmmortamentoResiduo(Cespite cespite) {\n\t\tfinal String methodName = \"gestisciFondoAmmortamentoEScritture\";\n\t\t\n\t\tAmmortamentoAnnuoCespite ammortamentoAnnuoCespite = cespite.getAmmortamentoAnnuoCespite();\n\t\t\n\t\tDettaglioAmmortamentoAnnuoCespite dettaglioAnnoDismissione = filtraDettaglioAnnoDismissione(ammortamentoAnnuoCespite.getDettagliAmmortamentoAnnuoCespite());\n\t\t\n\t\tif(dettaglioAnnoDismissione == null || dettaglioAnnoDismissione.getUid() == 0) {\n\t\t\tthrow new BusinessException(ErroreCore.ENTITA_NON_COMPLETA.getErrore(\"cespite con codice: \" + cespite.getCodice(), \"scritture non realizzabili, dettaglio ammortamento per l'anno di dismissione non presente.\"));\n\t\t}\n\t\t\n\t\tcancellaDettagliAnniSuccessiviADismissione(ammortamentoAnnuoCespite, dettaglioAnnoDismissione);\n\t\t\t\t\t\n\t\tBigDecimal importoFondoAmmortamento = obtainImportoFondoAmmortamento(dettaglioAnnoDismissione, cespite);\n\t\t\n\t\tPrimaNota pn = inserisciPrimaNotaAmmortamento(importoFondoAmmortamento, cespite.getTipoBeneCespite());\n\t\tDettaglioAmmortamentoAnnuoCespite dettaglioAmmortamentoCollegatoAllaScritturaDiAmmortamentoResiduo = inserisciNuovoDettaglioAmmortamento(ammortamentoAnnuoCespite, importoFondoAmmortamento,pn);\n\t\treturn dettaglioAmmortamentoCollegatoAllaScritturaDiAmmortamentoResiduo;\n\t\t\n\t}", "title": "" }, { "docid": "31559589b6a845a8bdbefda6ad60db2e", "score": "0.545981", "text": "public boolean esArbolCompleto()\n {\n int h = contadorAltura(raiz);\n return determinarCompleto(raiz,h);\n }", "title": "" }, { "docid": "4a7fbdd84fb601cf080d6e6599f7869e", "score": "0.54582924", "text": "public Estatuto atualizaEstatuto();", "title": "" }, { "docid": "4d38a4338b2d16c2031eb7fbeb74dd90", "score": "0.54566276", "text": "private void abrirAlta() {\n\n\t\tVentanaAltaReservas p = new VentanaAltaReservas(this, true);\n\t\tp.setVisible(true);\n\n\t}", "title": "" }, { "docid": "c2ed1dcd4a5a8f9e2e02fd55aaa74417", "score": "0.54438406", "text": "public void arrancar(){\r\n\t\thoraInicio= System.currentTimeMillis();\r\n\t\tif(estado!=EstadoEscenario.CONFIGURACION){\r\n\t\t\tthrow new IllegalArgumentException(\"No se puede actualizar el estado del escenario. \"+\r\n\t\t\t\t\t\"El escenario no esta configurado\");\r\n\t\t}\r\n\t\tcrono.start();\r\n\t\testado= EstadoEscenario.ARRANCADO;\r\n\t}", "title": "" }, { "docid": "a8cf345ea0f0f1a928e39fb23dd0cec7", "score": "0.5438214", "text": "@Override\r\n\tpublic void accionHilo() {\n\t\ttry {\r\n\t\t\tElemento elem = getMonitor().extraer(getTipo());\r\n\t\t\t//System.out.println(\"Tipo: \" + getTipo() + \"Elemento: \" + elem);\r\n\t\t} catch (InterruptedException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// Consumir elemento\r\n\t\ttry {\r\n\t\t\tThread.sleep((long) (Math.random() * 10));\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//System.out.println(\"Consumidor - Tipo \" + getTipo());\r\n\r\n\t}", "title": "" }, { "docid": "1418b0f2be01ac2aa5a24272827d5733", "score": "0.5420547", "text": "private void botaoEditarPacoteComercialSetup() {\n\t\tbotaoEditarPacoteComercial = new JButton(\"Editar Pacote Comercial\");\n\t\tbotaoEditarPacoteComercial.setBounds(609, 125, 218, 43);\n\t\tbotaoEditarPacoteComercial.setFont(new Font(\"Dubai Light\", Font.PLAIN, 15));\n\t\tbotaoEditarPacoteComercial.setBackground(Color.LIGHT_GRAY);\n\t\tbotaoEditarPacoteComercial.setFocusPainted(false);\n\t\tbotaoEditarPacoteComercial.setEnabled(false);\n\t\tbotaoEditarPacoteComercial.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tint row = table.getSelectedRow();\n\n\t\t\t\tif (row < 0) {\n\t\t\t\t\tJOptionPane.showMessageDialog(GUI_gestor_pacotes.this,\n\t\t\t\t\t\t\t\"Por favor selecione um Pacote Comercial\", \"Error\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tPacoteComercial pacoteComercialTemp = (PacoteComercial) table.getValueAt(row,\n\t\t\t\t\t\tPacoteComercialPesquisaModelTable.OBJECT_COL);\n\n\t\t\t\tCriarPacotesDialog dialog =\tnew CriarPacotesDialog(GUI_gestor_pacotes.this, pacoteComercialTemp, true);\n\t\t\t\tdialog.setResizable(false);\n\t\t\t\tdialog.setVisible(true);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "ab1b7993b3eef9334c8dae7eb69c5bcb", "score": "0.5418073", "text": "public void rattacherCroyants(Partie partie, Joueur j) {\r\n\t\t// Initialiser\r\n\t\tArrayList<CarteCroyant> centre = partie.getCentreCommun().getListCroyant();\r\n\t\tArrayList<CarteCroyant> cartePossible = this.possibleARattacher(partie, 0);\r\n\t\t//-------------Add Controleur à\r\n\t\tComponent[] components = ViewJouer.CentreTable.getComponents();\r\n\t\tfor(int i=0;i<components.length;i++){\r\n\t\t\tCButton cButton= (CButton) components[i];\r\n\t\t\tCarteAction ca=cButton.getCa();\r\n\t\t\tfor (int k=0;k<cartePossible.size();k++) {\r\n\t\t\t\tif ( ca== cartePossible.get(k)) {\r\n\t\t\t\t\tint finalK = k;\r\n\t\t\t\t\tcButton.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.GREEN), null));\r\n\t\t\t\t\tcButton.addActionListener(new action() {\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tPartie.bol.deposerInt(finalK);\r\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\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}\r\n\t\t}\r\n\r\n\t\tif (this.possibleARattacher(partie, 0).size() == 0) {\r\n\t\t\tSystem.out.println(j\r\n\t\t\t\t\t+ \" a utilise guide spirituel mais cette carte ne peut attacher aucun carte croyant car il n'y a pas de croyant sur la table OU les croyants sont trop nombreux à rattacher \");\r\n\t\t\tViewJouer.LabelSystem.setTexte(j\r\n\t\t\t\t\t+ \" a utilise guide spirituel mais cette carte ne peut attacher aucun carte croyant car il n'y a pas de croyant sur la table OU les croyants sont trop nombreux à rattacher \");\r\n\t\t\tSystem.out.println(this + \" \\r\\n est défaussé !\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Quand il reste encore de puissance ratacchement, on laisse joueur à\r\n\t\t// rechoisir les croyants\r\n\t\tint difference = 0;\r\n\t\twhile (cartePossible.size() > 0) {\r\n\t\t\tCarteCroyant croyant = j.choisirCroyantRattacher(cartePossible);\r\n\t\t\tthis.getCroyantRattache().add(croyant);\r\n\t\t\tcentre.remove(croyant);\r\n\t\t\tSystem.out.println(j.toString() + \"a utilise le GuideSpirituel \" + this.toString()\r\n\t\t\t\t\t+ \" pour rattacher le croyant \\r\\n\" + croyant.toString());\r\n\t\t\tViewJouer.LabelSystem.setTexte(j.toString() + \"a utilise le GuideSpirituel \" + this.getNom()\r\n\t\t\t\t\t+ \" pour rattacher le croyant \\r\\n\" + croyant.getNom());\r\n\t\t\tj.setNombreCroyant(j.getNombreCroyant() + croyant.NombreCroyantRepresente);\r\n\t\t\tdifference = difference + croyant.getNombreCroyantRepresente();\r\n\t\t\tcartePossible = this.possibleARattacher(partie, difference);\r\n\t\t}\r\n\t\tj.getAssociationGC().put(this, this.getCroyantRattache());\r\n\t\tj.notifyElement(new ChampRepaintEvent());\r\n\t\tpartie.getCentreCommun().getListCroyant().removeAll(this.getCroyantRattache());\r\n\t\tViewJouer.CentreTable.repaintCentre();\r\n\r\n\t}", "title": "" }, { "docid": "663ca3764357fd1bb518663b7d2974c3", "score": "0.54126966", "text": "void agregarEmpleadoConPagoBaseNegativo() throws CompaņiaException {\n\t\tControlCompaņia compaņia = new ControlCompaņia(new OrmBaseDatos());\n\t\tassertThrows(CompaņiaException.class, () -> compaņia.agregarEmpleado(\"Aitor Tilla\", \"p07\", -60000, 'h', 0, 0));\n\t}", "title": "" }, { "docid": "148cbd3b8caa59d167b0defdf0ecde4b", "score": "0.5411978", "text": "public void pintaEquipo() {\n Iterator it = this.equipo.entrySet().iterator();\n\n while (it.hasNext()) {\n Map.Entry e = (Map.Entry) it.next();\n if (equipo.get(Short.parseShort(e.getKey().toString())).getEquipado() == 1) {\n// hmGraficos.put(equipo.get(Short.parseShort(e.getKey().toString())).getEquipaEn(), pj.getInventario().getObjetos().get(Short.parseShort(e.getKey().toString())).getObjeto().getNombreGrafico());\n }\n\n\n }\n }", "title": "" }, { "docid": "9e75fff3bd453ae435e5c0e58cf0b060", "score": "0.54119724", "text": "public void act() \n {\n if(init){\n Field field=(Field) getWorld();\n String file=field.equips[position];\n setImage(file+\"equip.png\");\n init=false;\n }\n type();\n checkDisarm();\n checkWindow();\n }", "title": "" }, { "docid": "f3dd8601d2c204e2fb54943b559582a8", "score": "0.54078776", "text": "public void ControleEscolhaCadastroaba3() {\n\t}", "title": "" }, { "docid": "804aeb51c5365cb65a9eb4a5acdd5110", "score": "0.5406845", "text": "public static void main(String[] args) {\n \n //Para cotizar las casas\n Acciones casa1 = CotizacionesCasas.cotizarCasa(0, 3.4, 23, 10,0);\n casa1.vender();\n \n Acciones casa2 = CotizacionesCasas.cotizarCasa(1, 0, 30 , 2,200);\n casa2.rentar();\n \n \n //clase abstractA\n ClaseAbstracta Apartamento1 = CotizarApartamentos.cotizarApartamento(1);\n Apartamento1.setPrecio(23);\n Apartamento1.setNum_habitaciones(3);\n Apartamento1.setNum_residentes(3);\n \n Apartamento1.cotizarRentaApartamento();//se ejecuta el metodo\n \n ClaseAbstracta Apartamento2 = CotizarApartamentos.cotizarApartamento(2);\n Apartamento2.setPrecio(46);\n Apartamento2.setNum_habitaciones(6);\n Apartamento2.setNum_residentes(2);\n \n Apartamento2.cotizarRentaApartamento();//se ejecuta el metodo\n Apartamento2.cotizarRentaApartamento(67.3);//se manda dato a metodo sobrecargado\n \n \n //recorrer arreglo bidimensional\n String[][] saludos = new String[2][2];\n \n saludos[0][0]= \"Pepe\";\n saludos[0][1]= \"Maria\";\n saludos[1][0]= \"Eliezer\";\n saludos[1][1]= \"Blanca\"; \n \n for (int i=0; i < saludos.length; i++){\n for (int j=0; j < saludos.length; j++){\n System.out.println(\"Hola->>>\"+saludos[j][i]); \n }\n }\n }", "title": "" }, { "docid": "bae2a94f515ef15e673d8bf85ebeb203", "score": "0.5406171", "text": "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Modulo mod;\n JLabel label;\n Modello modello;\n Pannello pan;\n RiepilogoNew riepilogo;\n\n try { // prova ad eseguire il codice\n\n this.setTitolo(ArriviPartenze.TITOLO_FINESTRA);\n this.getDialogo().setModal(false);\n\n /* aggiunge i bottoni al dialogo */\n this.addBottoneStampa();\n this.addBottoneChiudi();\n\n this.creaCampi();\n this.creaNavigatori();\n\n /**\n * Aggiunge la label informativa sull'azienda in uso\n */\n label = new JLabel();\n label.setForeground(CostanteColore.BLU);\n this.setInfoLabel(label);\n this.getPannelloComandi().add(label);\n\n /* crea il modulo memoria per i cambi */\n this.creaMemoria();\n\n /* crea il pannello con i comandi manuali */\n pan = this.creaPanComandi();\n this.setPanComandi(pan);\n\n /* crea e registra il pannello Riepilogo Presenze */\n riepilogo = new RiepilogoNew();\n this.setRiepilogo(riepilogo);\n\n /* si registra presso il modulo albergo per */\n /* essere informato quando cambia l' azienda */\n mod = Progetto.getModulo(Albergo.NOME_MODULO);\n if (mod != null) {\n mod.addListener(AlbergoModulo.Evento.cambioAzienda, new AzioneCambioAzienda());\n mod.addListener(AlbergoModulo.Evento.cambioData, new AzioneCambioData());\n }// fine del blocco if\n\n /* si registra presso il modulo Prenotazione per */\n /* essere informato quando viene creato/modificato/eliminato un record */\n mod = PrenotazioneModulo.get();\n if (mod != null) {\n modello = mod.getModello();\n modello.addListener(Modello.Evento.trigger, new AzPrenotazioni());\n }// fine del blocco if\n\n /* si registra presso il modulo Periodo per */\n /* essere informato quando viene creato/modificato/eliminato un record */\n mod = PeriodoModulo.get();\n if (mod != null) {\n modello = mod.getModello();\n modello.addListener(Modello.Evento.trigger, new AzPeriodi());\n }// fine del blocco if\n\n /* si registra presso il modulo Clienti per */\n /* essere informato quando viene creato/modificato/eliminato un record */\n mod = ClienteAlbergoModulo.get();\n if (mod != null) {\n modello = mod.getModello();\n modello.addListener(Modello.Evento.trigger, new AzClienti());\n }// fine del blocco if\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "title": "" }, { "docid": "61beca3d7f1710e9cfc81603b6bf1a9a", "score": "0.53966624", "text": "public JfCadastroBlocoTransporte() {\n super(\"m2 - Cadastro Bloco - Transporte Escolar - \" + versao.getVersao() + \" - \" + versao.getAno());\n initComponents();\n\n //Altera icone na barra de titulo\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.getImage(\"C:/SURGI/imagens/SURGI32x32.png\");\n this.setIconImage(img);\n\n //centraliza tela\n setSize(getWidth(), getHeight());\n setLocationRelativeTo(null);\n \n preencheComboLote();\n }", "title": "" }, { "docid": "4764b020f10ef78afde7e72469468db2", "score": "0.5396532", "text": "private void posizionaCampi() {\n /* variabili e costanti locali di lavoro */\n PreventivoDialogo preve;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n preve = this.getPreventivo();\n\n pan = PannelloFactory.orizzontale(preve);\n pan.add(Nome.cliente.get());\n pan.add(Nome.arrivo.get());\n pan.add(Nome.partenza.get());\n this.add(pan);\n\n pan = PannelloFactory.orizzontale(preve);\n pan.add(Nome.camera.get());\n pan.add(Nome.preparazione.get());\n pan.add(Nome.adulti.get());\n pan.add(Nome.bambini.get());\n pan.add(Nome.pensione.get());\n this.add(pan);\n\n pan = PannelloFactory.orizzontale(preve);\n pan.setAllineamento(Layout.ALLINEA_CENTRO);\n pan.add(Nome.arrivoCon.get());\n pan.add(Nome.opzione.get());\n pan.add(Nome.caparra.get());\n pan.add(Nome.canale.get());\n this.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "title": "" } ]
15e01fc8a68e7fa0aea89a87c892522c
/ Set the width and height and initial values for the collision box. The only thing that will change
[ { "docid": "d0e74cfdcc01ef182b799d8ee17ad877", "score": "0.81690556", "text": "private void setUpCollisionBox()\n {\n \txLeftOffsetCollisionBox = width/COLLISION_WIDTH_DIV;\n \tcollisionBoxHeight = height - COLLISION_BOX_H_OFFSET;\n \n \tcollisionBox = new Rectangle(\n\t\t\t\t \t\txPos, \n\t\t\t\t \t\tyPos, \n\t\t\t\t \t\t(int)width / 2,\n\t\t\t\t \t\tcollisionBoxHeight);\n }", "title": "" } ]
[ { "docid": "6b7196893d753ef614bde24eef700a20", "score": "0.7224806", "text": "public void colapse(){\n\t\tsetBounds(getX(), getY(), getDefaultWidth(), getHeight());\n\t\tcollisionBounds.setWidth(getDefaultWidth());\n\t}", "title": "" }, { "docid": "558b2b282bda759883411218f05aaf72", "score": "0.688268", "text": "public BoundingBox()\n\t{\n\t\tcenter = new Vector2(0.0, 0.0);\n\t\twidth = 1.0;\n\t\theight = 1.0;\n\t}", "title": "" }, { "docid": "0fb470210412782924cbbd5c0ffeb268", "score": "0.6867157", "text": "public CollisionBox(int x, int y, int width, int height) \n\t{\n\t\tbox = new Rectangle(x, y, width, height);\n\t}", "title": "" }, { "docid": "6e427c73f17bcd578231ba45e6c54051", "score": "0.65629596", "text": "public void reset(){\n\t\tthis.setPosition(DEFAULT_X, DEFAULT_Y);\t\n\t\tsetBounds(getX(), getY(), getDefaultWidth(), getHeight());\n\t\tcollisionBounds.setWidth(defaultWidth);\n\t\tspeed = 400;\n\t\tsetGlue(true);\n\t}", "title": "" }, { "docid": "c4638a22f02cdb1a9e9502e6c97cb7e6", "score": "0.65268147", "text": "private void updateHitbox() {\n\t\tthis.hitbox = new collisionSphere(2 * scale, this.location);\n\t}", "title": "" }, { "docid": "4bc122ef799c28d19d6732713456178f", "score": "0.6444059", "text": "Box(){\r\n Height = -1; // Used -1 to initiate an uninitialized Box. \r\n Width = -1;\r\n Depth = -1;\r\n }", "title": "" }, { "docid": "14276cf6d83fce70afa1c8e9944d1856", "score": "0.6439308", "text": "Box(double len){\r\n Height = Width = Depth = len;\r\n\r\n }", "title": "" }, { "docid": "472b9ff8c7188648c2eb7769fb7b52a6", "score": "0.6425349", "text": "Rectangle getCollisionBox();", "title": "" }, { "docid": "6ae7840946cb8fce063a4f9744362825", "score": "0.64241475", "text": "public Box() {\n \tsuper();\n \tthis.max = new Point3d( 1, 1, 1 );\n \tthis.min = new Point3d( -1, -1, -1 );\n }", "title": "" }, { "docid": "f25c24cd45e2d149c6b3e5ee68a92b18", "score": "0.64016587", "text": "void setRectHitbox(float w, float h) {\n _hitbox = new PVector[]{\n new PVector(-w/2, h/2),\n new PVector(-w/2, -h/2),\n new PVector(w/2, -h/2),\n new PVector(w/2, h/2)\n };\n }", "title": "" }, { "docid": "3e8aa285cbdad449c16037577fe3ec0a", "score": "0.6389411", "text": "private void setSizeBox() {\n\t\t\tthis.leftX = pointsSubStroke.get(0).getX();\n\t\t\tthis.righX = pointsSubStroke.get(0).getX();\n\t\t\tthis.topY = pointsSubStroke.get(0).getY();\n\t\t\tthis.bottomY = pointsSubStroke.get(0).getY();\n\t\t\t\n\t\t\tfor(int i = 0; i < pointsSubStroke.size();i++) {\n\t\t\t\tdouble x = pointsSubStroke.get(i).getX();\n\t\t\t\tdouble y = pointsSubStroke.get(i).getX();\n\t\t\t\t\n\t\t\t\tthis.leftX = Math.min(x, leftX);\n\t\t\t\tthis.righX = Math.max(x, righX);\n\t\t\t\tthis.topY = Math.min(y, topY);\n\t\t\t\tthis.bottomY = Math.max(y, bottomY);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ce1810595e4adf71e87c113ba1f811fe", "score": "0.6359889", "text": "@Override\n public void onSizeChanged(int w, int h, int oldW, int oldH) {\n // Set the movement bounds for the ballParent\n box.set(0, 0, w, h);\n }", "title": "" }, { "docid": "8d733c2ec57a9cbc473b5de0b779d529", "score": "0.63459814", "text": "private void setCollision(){\n\t\tMapObjects mapObjects = map.getLayers().get(\"COLLISION\").getObjects();\n\t\tfor (int ii = 0; ii < mapObjects.getCount(); ++ii){\n\t\t\tRectangleMapObject rectangle_map_object = (RectangleMapObject) mapObjects.get(ii);\n\t\t\tareaCollision.add(new Rectangle(rectangle_map_object.getRectangle()));\n\t\t}\n\t}", "title": "" }, { "docid": "32efc2c7d443757eae67c9479caedf1a", "score": "0.6338633", "text": "private void setBox(){\n\t\tif((this.row >= 0 && this.row <= 2) && \n\t\t (this.column >= 0 && this.column <= 2)){\n\t\t\t\t\tthis.box = 1;\n\t\t\t\t\treturn;\n\t\t}\n\t\tif((this.row >= 0 && this.row <= 2) && \n\t\t (this.column >= 3 && this.column <= 5)){\n\t\t\t\t\tthis.box = 2;\n\t\t\t\t\treturn;\n\t\t}\n\t\tif((this.row >= 0 && this.row <= 2) && \n\t\t (this.column >= 6 && this.column <= 8)){\n\t\t\t\t\tthis.box = 3;\n\t\t\t\t\treturn;\n\t\t}\n\t\tif((this.row >= 3 && this.row <= 5) && \n\t\t (this.column >= 0 && this.column <= 2)){\n\t\t\t\t\tthis.box = 4;\n\t\t\t\t\treturn;\n\t\t}\n\t\tif((this.row >= 3 && this.row <= 5) && \n\t\t (this.column >= 3 && this.column <= 5)){\n\t\t\t\t\tthis.box = 5;\n\t\t\t\t\treturn;\n\t\t}\n\t\tif((this.row >= 3 && this.row <= 5) && \n\t\t (this.column >= 6 && this.column <= 8)){\n\t\t\t\t\tthis.box = 6;\n\t\t\t\t\treturn;\n\t\t}\n\t\tif((this.row >= 6 && this.row <= 8) && \n\t\t (this.column >= 0 && this.column <= 2)){\n\t\t\t\t\tthis.box = 7;\n\t\t\t\t\treturn;\n\t\t}\n\t\tif((this.row >= 6 && this.row <= 8) && \n\t\t (this.column >= 3 && this.column <= 5)){\n\t\t\t\t\tthis.box = 8;\n\t\t\t\t\treturn;\n\t\t}\n\t\tif((this.row >= 6 && this.row <= 8) && \n\t\t (this.column >= 6 && this.column <= 8)){\n\t\t\t\t\tthis.box = 9;\n\t\t\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "cbed5e2e4ca81068714d3656decdb65a", "score": "0.63058203", "text": "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }", "title": "" }, { "docid": "0b66da31dfdaaf60ca9e88abc346532e", "score": "0.62778836", "text": "private void actualizaHitbox() {\n hitbox = new Rect((int)(posX + 0.2 * bala.getWidth()), (int)(posY + 0.2 * bala.getHeight()), (int)(posX + 0.8 * bala.getWidth()), (int)(posY + 0.8 * bala.getHeight()));\n }", "title": "" }, { "docid": "adcb4bca8b7b0b9757ac41b11871a060", "score": "0.62769103", "text": "Box()\n\t{\n\t\twidth = -1; //use -1 to indicate an uninitialized box\n\t\theight = -1;\n\t\tdepth = -1;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "bdd6e1a5caaaa966360721a7007a1cd6", "score": "0.62712955", "text": "void resetRectHitbox() {\n setRectHitbox(_w, _h);\n }", "title": "" }, { "docid": "0bb096be4e9656b4acede48aca66e425", "score": "0.6251699", "text": "public void updateOptimalCollisionArea();", "title": "" }, { "docid": "05986922d1a6af828459662854450be2", "score": "0.6179166", "text": "public void updateBounds() {\n\t\tswitch (this.species){\n\t\tcase HOGCHOKER:\n\t\tcase SILVERSIDE:\n\t\tcase FLOUNDER:\n\t\t\tthis.topYBound = frameHeight / 3 * 2;\n\t\t\tthis.bottomYBound = frameHeight - imageHeight - frameBarSize;\n\t\t\tbreak;\n\t\tcase PERCH: \n\t\tcase MINNOW: \n\t\tcase WEAKFISH:\n\t\t\tthis.topYBound = frameHeight / 3;\n\t\t\tthis.bottomYBound = frameHeight / 3 * 2 - imageHeight;\n\t\t\tbreak;\n\n\t\tcase MENHADEN:\n\t\tcase MUMMICHOG:\n\t\t\tthis.topYBound = 0;\n\t\t\tthis.bottomYBound = frameHeight / 3 - imageHeight;\n\t\t\tbreak;\n\t\tcase GOLD:\n\t\tdefault:\n\t\t\ttopYBound = 0;\n\t\t\tbottomYBound = frameHeight;\n\t\t}\n\t}", "title": "" }, { "docid": "c7483fc5aee0f869c41a4af9fc46cddf", "score": "0.61516476", "text": "@Override\n public void setUpCollision(Collision collisionPoints){\n //Walls at the bottom\n collisionPoints.addBoxCollision(2,39,32,15,flicker);\n collisionPoints.addBoxCollision(41,39,35,15,flicker);\n collisionPoints.addBoxCollision(34,40,7,1,flicker);\n //Walls sides\n collisionPoints.addBoxCollision(2,1,11,37,flicker);\n collisionPoints.addBoxCollision(62,14,11,36,flicker);\n collisionPoints.addBoxCollision(2,1,74,12,flicker);\n\n //DETAIL\n //Front\n collisionPoints.addBoxCollision(33,14,8,4,flicker);\n //Seats left\n collisionPoints.addBoxCollision(14,21,17,3,flicker);\n collisionPoints.addBoxCollision(14,26,17,3,flicker);\n collisionPoints.addBoxCollision(14,31,17,3,flicker);\n collisionPoints.addBoxCollision(14,36,17,3,flicker);\n //Seats right\n collisionPoints.addBoxCollision(43,21,19,3,flicker);\n collisionPoints.addBoxCollision(43,26,19,3,flicker);\n collisionPoints.addBoxCollision(43,31,19,3,flicker);\n collisionPoints.addBoxCollision(43,36,19,3,flicker);\n }", "title": "" }, { "docid": "0342b376130be8a1d2f24354867e9a07", "score": "0.6147977", "text": "Rectangle(){\n height = 1;\n width = 1;\n }", "title": "" }, { "docid": "987f3d8bcdf06d53ec472fd3c57dddc0", "score": "0.6130798", "text": "public CollisionBox(String parameters) {\n\n\t\tString coordinates[] = parameters.split(\",\");\n\n\t\ttopleft.x = Integer.parseInt(coordinates[0]);\n\t\ttopleft.y = Integer.parseInt(coordinates[1]);\n\t\tbottomright.x = Integer.parseInt(coordinates[2]);\n\t\tbottomright.y = Integer.parseInt(coordinates[3]);\n\n\t}", "title": "" }, { "docid": "d6cf93bbb6eaf8d7ff2f6f25de7b81d4", "score": "0.6100833", "text": "public Box()\n\t{\n\t\t\n\t\ttopLeftX = 50;\n\t\ttopLeftY = 50;\n\t\twidth = 50;\n\t\theight = 25;\n\t\t\n\t}", "title": "" }, { "docid": "7359f61c3d75e9d6c9baa1add336be05", "score": "0.60992914", "text": "Box(Box ob){ //passing object to constructor\n\t\twidth = ob.width;\n\t\theight = ob.height;\n\t\tdepth = ob.depth;\n\t\t}", "title": "" }, { "docid": "88519ec593a0d6973154905cb912dc0c", "score": "0.6055701", "text": "@Test\n\tpublic void test() {\n\t\tCollisionBox cb = new CollisionBox(0,0,1,1);\n\t\tCollisionBox cb2 = new CollisionBox(1,1,1,1);\n\t\tassertEquals(false,cb.checkCollision(cb2));\n\t\t\n\t\tcb2.setPos(0, 0);\n\t\tassertEquals(true,cb.checkCollision(cb2));\n\n\t}", "title": "" }, { "docid": "4a19e89e9902a70bf455272b479b3dd9", "score": "0.6042793", "text": "Box(double w, double h, double d) {\n\n widgh =w;\n height =h;\n depth =d;\n\n}", "title": "" }, { "docid": "96afdde3482bd9efbec53e11aafe7a7b", "score": "0.60302573", "text": "public void collideBoundary() {\n\t\tif (getWorld() == null) return;\n\t\tif (getXCoordinate() < 1.01*getRadius())\n\t\t\tsetXVelocity(-getXVelocity());\n\t\tif (getXCoordinate() > getWorld().getWidth()-1.01*getRadius())\n\t\t\tsetXVelocity(-getXVelocity());\n\t\tif (getYCoordinate() < 1.01 * getRadius())\n\t\t\tsetYVelocity(-getYVelocity());\n\t\tif (getYCoordinate() > getWorld().getHeight()-1.01*getRadius())\n\t\t\tsetYVelocity(-getYVelocity());\n\t}", "title": "" }, { "docid": "5cf1bf51f097bb388ae2fae958df5c87", "score": "0.6029381", "text": "public void set() {\n if(keyLeft&&keyRight||!keyLeft&&!keyRight){\n xspeed *=0.8;\n }\n else if(keyLeft&&!keyRight) {\n xspeed--;\n }\n else if(keyRight&&!keyLeft){\n xspeed++;\n }\n if (xspeed>0 && xspeed <0.75) xspeed=0;\n if (xspeed<0 && xspeed >-0.75) xspeed=0;\n\n if (xspeed>7) xspeed=7;\n if (xspeed<-7) xspeed=-7;\n\n if(keyUp) {\n hitBox.y++;\n for(Wall wall: panel.walls) {\n if(wall.hitBox.intersects(hitBox)){\n yspeed=-8;\n }\n }\n hitBox.y--;\n }\n\n if (yspeed < 8) yspeed += 0.3;\n\n //Horizontal collisons\n hitBox.x += xspeed;\n for(Wall wall: panel.walls) {\n if(hitBox.intersects(wall.hitBox)){ //if on floor\n hitBox.x -= xspeed;//Moves hitbox back to last place\n while(!wall.hitBox.intersects(hitBox)){\n hitBox.x += Math.signum(xspeed);\n }\n hitBox.x -= Math.signum(xspeed); //Moves hitbox to space next to the wall\n panel.cameraX += x - hitBox.x;\n xspeed = 0;\n hitBox.x = x;\n }\n }\n\n //Vertical collisions\n hitBox.y += yspeed;\n for(Wall wall: panel.walls) {\n if(hitBox.intersects(wall.hitBox)){\n hitBox.y -= yspeed;\n while(!wall.hitBox.intersects(hitBox)) hitBox.y += Math.signum(yspeed);\n hitBox.y -= Math.signum(yspeed);\n yspeed = 0;\n y = hitBox.y;\n }\n }\n\n panel.cameraX -= xspeed;\n y += yspeed;\n hitBox.x=x;\n hitBox.y=y;\n\n //Death\n if(y>MainFrame.FRAME_HEIGHT+100) panel.reset();\n }", "title": "" }, { "docid": "d0003f1e49e2bff1c97defa0beaf0803", "score": "0.60266364", "text": "@Override\r\n public CollisionShape getColisionShape() {\n return new BoxCollisionShape(new Vector3f(11,0.3f,11));\r\n }", "title": "" }, { "docid": "2504b91fd069b3b68b4d14bef1b2bc7c", "score": "0.6005051", "text": "Rect getCollisionShape()\n {\n return new Rect(x+2,y+2,x +(width-2), y+(height-2));\n }", "title": "" }, { "docid": "90a2dc731746a7767b68be61e9cc5a94", "score": "0.600012", "text": "@Override\n public void update() {\n adjustRenderHitbox();\n if (renderHurtboxes) {\n renderHurtbox.setRect(player.getHurtbox().x / 1920 * gameWidth, player.getHurtbox().y / 1080 * gameHeight, player.getHurtbox().width / 1920 * gameWidth, player.getHurtbox().height / 1080 * gameHeight);\n }\n updateAnimationLoop();\n }", "title": "" }, { "docid": "09d72b8cd9b175d9f060d54d38a14805", "score": "0.59976184", "text": "@Test\n\tvoid testBoxCollision() {\n\t\tStage stage = new Stage();\n\t\tstage.initStage();\n\t\tstage.getCat().setX(100);\n\t\tint Y = stage.getCat().getY();\n\t\tBox box = new Box(100, Y);\n\t\tstage.getBoxes().add(box);\n\t\tstage.checkCollisions();\n\t\t\n\t\tassertEquals(2, stage.getStageOfGame());\n\t}", "title": "" }, { "docid": "23edd4d154535767f3093e3e16116458", "score": "0.5984008", "text": "Box(Box ob)\n\t{\n\t\t//pass object to constructor\n\t\twidth = ob.width;\n\t\theight = ob.height;\n\t\tdepth = ob.depth;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "e487811def3efb233eb99eb08f8552ec", "score": "0.5979685", "text": "Rectangle(double newWidth, double newHeight){\n height = newHeight;\n width = newWidth;\n }", "title": "" }, { "docid": "d7d42d868644bfecedc4547361fcad69", "score": "0.5979415", "text": "public void expand(){\n\t\tsetBounds(getX()-getWidth()/4, getY(), getWidth() * 1.5f, getHeight());\n\t\tcollisionBounds.setWidth(getWidth());\n\t}", "title": "" }, { "docid": "79a3da24665dd3b1fbf636b2b61d00b4", "score": "0.59697056", "text": "public BoundingBox(Vector2 c, double w, double h)\n\t{\n\t\tcenter = c;\n\t\twidth = w;\n\t\theight = h;\n\t}", "title": "" }, { "docid": "27ed26f71e80c436fb00b4d53db7d1d2", "score": "0.59524065", "text": "private void boxCreator(int[] pos, int width, int height) {\n for (int x = pos[0]; x < pos[0] + width; x++) {\n tiles[x][pos[1]] = Tileset.WALL;\n }\n for (int y = pos[1]; y < pos[1] + height; y++) {\n tiles[pos[0]][y] = Tileset.WALL;\n }\n for (int x = pos[0]; x < pos[0] + width; x++) {\n tiles[x][pos[1] + height] = Tileset.WALL;\n }\n for (int y = pos[1]; y < pos[1] + height + 1; y++) {\n tiles[pos[0] + width][y] = Tileset.WALL;\n }\n for (int y = pos[1] + 1; y < pos[1] + height; y++) {\n for (int x = pos[0] + 1; x < pos[0] + width; x++) {\n tiles[x][y] = Tileset.FLOWER;\n }\n }\n }", "title": "" }, { "docid": "4f4b79e360c4f16b1ed12cad799498ae", "score": "0.59496003", "text": "public void init(){\n\t\tsetSize (800,600);\n\t\t//el primer parametro del rectangulo en el ancho\n\t\t//y el alto\n\t\trectangulo = new GRect(120,80);\n\t\t\n\t}", "title": "" }, { "docid": "5ccd7822dd0cf86f622e458ead61435b", "score": "0.5947165", "text": "public void collision() {\n\t\tcapacity = 0;\n\t\tcolor = ColorUtil.YELLOW;\n\t}", "title": "" }, { "docid": "46e2cd70f7cd4af4a60905ef7df675c8", "score": "0.5933869", "text": "Box(){\n System.out.println(\"constructing box\");\n width = 10;\n height = 10;\n depth = 10;\n}", "title": "" }, { "docid": "1c27c42e8c210f93984b5d31ad1cd296", "score": "0.5927701", "text": "Rectangle() {\r\n\t\tlength = 1.0;\r\n\t\twidth = 1.0;\r\n\t}", "title": "" }, { "docid": "986767d05747ef0e1862436656656976", "score": "0.59095705", "text": "private static void init() {\n\t\t// TODO Auto-generated method stub\n\t\tviewHeight = VIEW_HEIGHT;\n\t\tviewWidth = VIEW_WIDTH;\n\t\tfwidth = FRAME_WIDTH;\n\t\tfheight = FRAME_HEIGHT;\n\t\tnMines = N_MINES;\n\t\tcellSize = MINE_SIZE;\n\t\tnRows = N_MINE_ROW;\n\t\tnColumns = N_MINE_COLUMN;\n\t\tgameOver = win = lost = false;\n\t}", "title": "" }, { "docid": "6fbe0f912799f7d6df5995cfaa3d83ae", "score": "0.59081864", "text": "public Rect hitBox(){\n return new Rect((int)getX(), (int)getY(), (int)getX() + spriteWidth, (int)getY() + spriteHeight);\n }", "title": "" }, { "docid": "e417b90d8121b3cc0656ab9fb3d1df81", "score": "0.5897897", "text": "public ConstRect()\r\n {\r\n x = 0;\r\n y = 0;\r\n width = 0;\r\n height = 0;\r\n }", "title": "" }, { "docid": "b4e049a2d5ad100c2d60bbcbaad66b2b", "score": "0.58974767", "text": "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 }", "title": "" }, { "docid": "3f1dfe172535e19e38c7ae528ea19003", "score": "0.58852345", "text": "public Box2DCollisionCreator(GameScreen screen) {\n world = screen.getWorld(); //Sets world to the GameScreen's World instance.\n\n\n //Sets map to the correct TiledMap instance, based on whether the Box2D boundaries are being created for\n // Level1 or Level2\n if (screen instanceof Level1Screen)\n map = ((Level1Screen) screen).getMap();\n else\n map = ((Level3Screen) screen).getMap();\n\n //Creates body and fixture variables which assign Objects their states within the world\n BodyDef bdef = new BodyDef();\n PolygonShape shape = new PolygonShape();\n FixtureDef fdef = new FixtureDef();\n Body body;\n\n //Sets body and fixture variables to it's respective values based on the TiledMap's MapObject instance's information.\n for (MapObject object : map.getLayers().get(3).getObjects().getByType(RectangleMapObject.class)) {\n Rectangle rect = ((RectangleMapObject) object).getRectangle();\n\n //The static bodies that represent the ground are made\n bdef.type = BodyDef.BodyType.StaticBody;\n bdef.position.set((rect.getX() + rect.getWidth() / 2) / Safety4Kids.PPM, (rect.getY() + rect.getHeight() / 2) / Safety4Kids.PPM);\n //the bodies are added to the game world\n body = world.createBody(bdef);\n\n shape.setAsBox(rect.getWidth() / 2 / Safety4Kids.PPM, rect.getHeight() / 2 / Safety4Kids.PPM);\n fdef.shape = shape;\n fdef.filter.categoryBits = B2DConstants.BIT_OBJECT;\n body.createFixture(fdef);\n }\n\n }", "title": "" }, { "docid": "0a5687a7aa9c501322fba636caf33a4b", "score": "0.5882628", "text": "public void createMinimap() {\n if (gameField.getFields().size() == 1024) {\n rootSize = 32;\n blockSize = 8;\n } else { //if size == 64^2 == 4096\n rootSize = 64;\n blockSize = 4;\n }\n int magnification = gameFieldController.getMagnification();\n if (AdvancedWarsApplication.getInstance().getGameScreenCon().base.getScene() != null) {\n positionBoxSizeX = blockSize *\n (AdvancedWarsApplication.getInstance().getGameScreenCon().base.getScene().getWidth() / (rootSize * magnification));\n\n positionBoxSizeY = blockSize *\n (AdvancedWarsApplication.getInstance().getGameScreenCon().base.getScene().getHeight() / (rootSize * magnification));\n } else {\n //for offline test\n positionBoxSizeX = (blockSize * 1920) / (rootSize * magnification);\n positionBoxSizeY = (blockSize * 1080) / (rootSize * magnification);\n }\n\n for (int i = 0; i < rootSize; ++i) {\n for (int j = 0; j < rootSize; ++j) {\n Field currentField = gameField.getFields().get(i * rootSize + j);\n Rectangle rectangle = new Rectangle(blockSize, blockSize);\n if (!currentField.getType().equals(\"Grass\")) {\n if (currentField.getType().equals(\"Water\")) {\n rectangle.setFill(Color.rgb(11, 89, 139));\n } else if (currentField.getType().equals(\"Forest\")) {\n rectangle.setFill(Color.rgb(38, 106, 0));\n } else { //if currentField equals Mountain\n rectangle.setFill(Color.rgb(95, 111, 54));\n }\n rectangle.relocate((i * blockSize) + 1, (j * blockSize) + 1);\n drawPane.getChildren().add(rectangle);\n }\n }\n }\n Rectangle rect = new Rectangle(positionBoxSizeX, positionBoxSizeY);\n Rectangle clip = new Rectangle(1, 1, positionBoxSizeX - 2, positionBoxSizeY - 2);\n positionBox = Shape.subtract(rect, clip);\n positionBox.setFill(Color.WHITE);\n drawPane.getChildren().add(positionBox);\n isCreated = true;\n }", "title": "" }, { "docid": "236469548f221b70e77975d07efb544b", "score": "0.5879304", "text": "public Box(int x, int y) {\r\n\t\tsuper(x,y);\r\n\t\tloadImage(\"box.png\");\r\n\t\tgetImageDimensions();\r\n\t}", "title": "" }, { "docid": "09456635571d563caaa296b18a18fd36", "score": "0.58697295", "text": "public HitBox(double x, double y, int width, int height){\n\t\trect = new Rectangle((int)x, (int)y, width, height);\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "5c7fdbafda4d2340e2b4d5a9b070811f", "score": "0.5863693", "text": "public Box(Vector3f min, Vector3f max)\n\t{\n\t\tsuper();\n\t\tupdateGeometry(min, max);\n\t}", "title": "" }, { "docid": "1f6d326be00abafc8180a590292e534b", "score": "0.58569807", "text": "private void init(){\n \tdimension.set(0.5f, 0.5f);\n \tsetAnimation(Assets.instance.goldCoin.animGoldCoin);\n \tstateTime = MathUtils.random(0.0f,1.0f);\n \t\n \t//regGoldCoin = Assets.instance.goldCoin.goldCoin;\n \t // Set bounding box for collision detection\n \tbounds.set(0,0,dimension.x, dimension.y);\n \tcollected = false;\n }", "title": "" }, { "docid": "e7c878fdbe40b0ec2a102b1eedaafcfb", "score": "0.5853487", "text": "Box(double len)\n\t{\n\t\t\n\t\twidth = height = depth = len;\n\t\t\n\t}", "title": "" }, { "docid": "ec24f3f640d5c2bc44fac0eb1b84f5ec", "score": "0.58517534", "text": "void resetRoundHitbox() {\n setRoundHitbox((_w+_h)/4);\n }", "title": "" }, { "docid": "da853f4fb7cf09bfbfa107d7bf7d372a", "score": "0.5830342", "text": "public void initialize(){\n this.height = DrawingHelper.getGameViewHeight();\n this.width = DrawingHelper.getGameViewWidth();\n this.xCoordinate = (AsteroidsData.getInstance().getShip().getxCoordinate() - this.width/2);\n this.yCoordinate = (AsteroidsData.getInstance().getShip().getyCoordinate() - this.height/2);\n\n initializeBounds();\n }", "title": "" }, { "docid": "1ecb157611833a0f7bf200a900ad3463", "score": "0.5827818", "text": "public void updateBounds() {\n this.setBounds(left, top, width, height);\n }", "title": "" }, { "docid": "09f0008ea0a6d486db8c9a9c873a5f06", "score": "0.5816794", "text": "TwoDShape5() {\n width = height = 0.0;\n }", "title": "" }, { "docid": "16ed8b922e7725a7111b4cd8c596bf15", "score": "0.5815848", "text": "public BoundingBox(double centerX, double centerY, double w, double h)\n\t{\n\t\tcenter = new Vector2(centerX, centerY);\n\t\twidth = w;\n\t\theight = h;\n\t}", "title": "" }, { "docid": "0726654f5056b38be33a75d779585ddb", "score": "0.5812863", "text": "public void initialize() {\n redCircle.setCenterX(100);\n redCircle.setCenterY(60);\n\n blueCircle.setCenterX(300);\n blueCircle.setCenterY(60);\n\n checkOverlap();\n\n }", "title": "" }, { "docid": "7560bbc28c678ad1c3c0f2bf1eacae8e", "score": "0.5812776", "text": "public void setBoxSize(int bs) {\n\t\tthis.boxSize = bs;\n\t}", "title": "" }, { "docid": "1216b6e0d6d49b0e02b245aeb43af771", "score": "0.58096945", "text": "public void resetPaddleWidth(){\n myRectangle.setWidth(myLength);\n }", "title": "" }, { "docid": "0c9e0e0a03ab92ca3a1c990ea2a4caaf", "score": "0.578847", "text": "public void updateBoundaries() {\n\t\t\n\t\tLOG.log(\"Updating boundaries.\");\n\t\t\n\t\tif (Program.WINDOW_MANAGER != null) {\n\t\t\t\n\t\t\tthis.setBounds(\n\t\t\t\tProgram.WINDOW_MANAGER.getScreenWidth() / 2 - this.getSize().width / 2,\n\t\t\t\tProgram.WINDOW_MANAGER.getScreenHeight() / 2 - this.getSize().height / 2,\n\t\t\t\tBOUNDS_LENGTH,\n\t\t\t\tBOUNDS_WIDTH\n\t\t\t);\n\t\t\tthis.setLocationRelativeTo(null);\n\t\t\t\n\t\t} else {\n\t\t\tthis.setBounds(10, 10, BOUNDS_LENGTH, BOUNDS_WIDTH);\n\t\t}\n\t}", "title": "" }, { "docid": "65daf5d60c84b9f398c7b2526234a622", "score": "0.5783135", "text": "Box(double h, double w, Double d){\r\n\r\n Height = h;\r\n Width = w;\r\n Depth = d;\r\n }", "title": "" }, { "docid": "c01b90b39833f051d6fdaac0c8a332a1", "score": "0.57821137", "text": "@Override\n\tpublic void createCollisionShape() {\n\t\t\n\t}", "title": "" }, { "docid": "00cd61c374b507ad83e6ce978e83b69c", "score": "0.5780011", "text": "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "title": "" }, { "docid": "c04a2c76f029fc95d4fdf0e8179a24f5", "score": "0.57717395", "text": "void setBox();", "title": "" }, { "docid": "17def11c876db473a4310b63621c0a7c", "score": "0.57585925", "text": "protected void createRect()\r\n\t{\r\n\t\trect = new Rectangle(getX(),getY(),width,height);\r\n\t}", "title": "" }, { "docid": "9fbfd0838fcc60a339c892e79d0238a0", "score": "0.575814", "text": "Rectangle getCollisionRectangle();", "title": "" }, { "docid": "9fbfd0838fcc60a339c892e79d0238a0", "score": "0.575814", "text": "Rectangle getCollisionRectangle();", "title": "" }, { "docid": "6f26b221e50acdb3dca80995aada6205", "score": "0.5739661", "text": "@Override\r\n\tpublic void onSizeChanged(int w, int h, int oldW, int oldH) {\r\n\t\t// Set the movement bounds for the ball\r\n\t\txMax = w - 1;\r\n\t\tyMax = h - 1;\r\n\t}", "title": "" }, { "docid": "66434190e65f9403e947037fccfd784a", "score": "0.5729218", "text": "public void setBounds(double anX, double aY, double aW, double aH) { setX(anX); setY(aY); setWidth(aW); setHeight(aH); }", "title": "" }, { "docid": "a791943466078c2133a164acbbc6bf31", "score": "0.5711163", "text": "public void updateHitbox() {\n\t\tresistorPosEnd = new Rectangle(x - 10, y - 10, 40, 40);\n\t\tresistorNegEnd = new Rectangle(x + 30, y, 40, 40);\n\t}", "title": "" }, { "docid": "f7c191f57cc390a25d6cef0806c65a90", "score": "0.5710696", "text": "public Rectangle() {\n\t\tthis.width = 1;\n\t\tthis.hight = 1;\n\t\tcounter++;\n\t}", "title": "" }, { "docid": "4699800cb7ba9a4da4cda6b5e6c4fbbc", "score": "0.5697206", "text": "public void setBounds(Rect bounds) {\r\n\t\tthis.widthAndHeight = bounds;\r\n\t\tc.setBounds(bounds);\r\n\t}", "title": "" }, { "docid": "67ab0f43ca9a717e8d076724276ee0ee", "score": "0.5691375", "text": "void setCollisionRule(CollisionRule collisionRule);", "title": "" }, { "docid": "3ea9ebf93591c639fd0ab5b167096fc9", "score": "0.5690857", "text": "private void updateBoxes(){\n if(model.getMap() != null) {\n DoubleVec position = invModelToView(new DoubleVec(canvas.getWidth()*0.5,canvas.getHeight()*0.5));\n inner = new Rectangle(position, 1.0/zoomFactor * fi * canvas.getWidth(), 1.0/zoomFactor * fi * canvas.getHeight(), 0);\n outer = new Rectangle(position, 1.0/zoomFactor * fo * canvas.getWidth(), 1.0/zoomFactor * fo * canvas.getHeight(), 0);\n }\n }", "title": "" }, { "docid": "3eb709e0253c419c8230ba95c07901f5", "score": "0.56905645", "text": "private Board()\r\n {\r\n this.grid = new Box[Config.GRID_SIZE][Config.GRID_SIZE];\r\n \r\n for(int i = 0; i < Config.NB_WALLS; i++)\r\n {\r\n this.initBoxes(Wall.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_CHAIR; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_PLAYER; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n }", "title": "" }, { "docid": "0173673aa7d0c08e8ce34d7124b2f83b", "score": "0.56826454", "text": "void resetHitboxCenter() {\n _hitboxCenter = new PVector(0, 0);\n }", "title": "" }, { "docid": "fe6f494cd26a7b40ca38a8f7ddc1cf7e", "score": "0.56715924", "text": "public BoundingBox(Coord origin, int width, int height) {\n\t\tsuper();\n\t\tthis.origin = origin;\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t}", "title": "" }, { "docid": "c7166f45b9fb36467d68b91db983f709", "score": "0.5665339", "text": "void setAreaForUpdate(int xOrigin, int yOrigin, int width, int height)\n {\n \n // TODO: xOrigin and yOrigin are always called as 0,0; possibility for optimisation?\n\n // Helper variables\n int xTileOrigin, yTileOrigin; // x, y values in terms of tiles \n int xTileMax, yTileMax; // maximum x, y values in terms of tiles\n\n\n // Check if an update is necessary at all\n if ((width == 0) || (height == 0))\n {\n return;\n }\n\n videocard.vgaMemReqUpdate = true;\n\n // Check which mode the adapter is in\n if (videocard.graphicsController.alphaNumDisable != 0)\n {\n // Graphics mode; calculate and set the tiles which need an update\n\n // Determine x, y values as a function of tiles\n xTileOrigin = xOrigin / VideoCard.X_TILESIZE;\n yTileOrigin = yOrigin / VideoCard.Y_TILESIZE;\n\n // Check if value is within current screen limits\n if (xOrigin < oldScreenWidth)\n {\n xTileMax = (xOrigin + width - 1) / VideoCard.X_TILESIZE;\n }\n else\n {\n xTileMax = (oldScreenWidth - 1) / VideoCard.X_TILESIZE;\n }\n \n // Check if value is within current screen limits\n if (yOrigin < oldScreenHeight)\n {\n yTileMax = (yOrigin + height - 1) / VideoCard.Y_TILESIZE;\n }\n else\n {\n yTileMax = (oldScreenHeight - 1) / VideoCard.Y_TILESIZE;\n }\n \n // Set tiles for updating; note that the upper limits ([x,y]tileMax) will be taken care of in setTileUpdate\n for (int yCounter = yTileOrigin; yCounter <= yTileMax; yCounter++)\n {\n for (int xCounter = xTileOrigin; xCounter <= xTileMax; xCounter++)\n {\n videocard.setTileUpdate(xCounter, yCounter, true);\n }\n }\n\n }\n else\n {\n // Text mode; simply invalidate the whole text snapshot\n Arrays.fill(videocard.textSnapshot, (byte) 0);\n }\n }", "title": "" }, { "docid": "bee258d6600b4fdbb38cae4b090ec2fd", "score": "0.5664695", "text": "public void setBounds(float x, float y, float width, float height) {\n internalGroup.setBounds(x, y, width, height);\n dataTrait.x = x;\n dataTrait.y = y;\n dataTrait.width = width;\n dataTrait.height = height;\n resetSprite();\n\n }", "title": "" }, { "docid": "5de38b29713e31ba7c899b5643b857dc", "score": "0.5653691", "text": "public Rectangle() {\n\t\twidth = 1;\n\t\theight = 1;\n\t}", "title": "" }, { "docid": "1f0d136ad8d6ffdda0c6b65bc60c209c", "score": "0.5645654", "text": "Box(double w, double h, double d)\n\t{\n\t\twidth = w;\n\t\theight = h;\n\t\tdepth = d;\n\t\t\n\t}", "title": "" }, { "docid": "40e08c058fd556df5b09fbbb97ef6b16", "score": "0.56443393", "text": "@Override\n\tpublic void setWidthAndHeight(int width, int height) {\n\t\t\n\t}", "title": "" }, { "docid": "a6196139e4b0e4a2eb296427f07931f4", "score": "0.5637375", "text": "public DrawGraphics() {\r\n box = new BouncingBox(200, 50, Color.RED);\r\n\tbox.setMovementVector(1,1);\r\n\r\n\tboxes = new ArrayList<BouncingBox>();\r\n\tboxes.add(new BouncingBox(35,40, Color.BLUE));\r\n\tboxes.get(0).setMovementVector(2,-1);\r\n\tboxes.add(new BouncingBox(120,80, Color.GREEN));\r\n\tboxes.get(1).setMovementVector(-1,2);\r\n\tboxes.add(new BouncingBox(500,80, Color.PINK));\r\n\tboxes.get(2).setMovementVector(-2,-2);\r\n }", "title": "" }, { "docid": "c57e1e26a8f938b043e70c02f872e9a7", "score": "0.56277275", "text": "@Override\r\n\tpublic void setBounds(int x, int y, int width, int height) {\r\n\t\tsuper.setBounds(x, y, width, height);\r\n\t\tpv.update();\r\n\t}", "title": "" }, { "docid": "a88e3aeca952482a4f05793ec26fda14", "score": "0.5627529", "text": "public Rectangle() {\n x = 0;\n y = 0;\n width = 0;\n height = 0;\n }", "title": "" }, { "docid": "7150639e94ef6d7756b30f06a8e043c5", "score": "0.5627291", "text": "@Override\n public void setBounds(Rectangle bounds) {\n final Rectangle repaintBounds = new Rectangle(getBounds());\n\n final Rectangle newBounds = new Rectangle(ajustOnGrid(bounds.x),\n ajustOnGrid(bounds.y), ajustOnGrid(bounds.width), bounds.height);\n\n newBounds.width = newBounds.width < MINIMUM_SIZE.x ? MINIMUM_SIZE.x\n : newBounds.width;\n\n this.bounds = newBounds;\n\n parent.getScene().repaint(repaintBounds);\n parent.getScene().repaint(newBounds);\n\n // Move graphics elements associated with this component\n leftMovableSquare.setBounds(computeLocationResizer(0));\n rightMovableSquare.setBounds(computeLocationResizer(bounds.width));\n\n setChanged();\n notifyObservers();\n }", "title": "" }, { "docid": "cbda9d87a1a79fa4ebd82d8d3481e3a3", "score": "0.56076527", "text": "public void borders() {\n if (loc.y > height) {\n vel.y *= -bounce;\n loc.y = height;\n }\n if ((loc.x > width) || (loc.x < 0)) {\n vel.x *= -bounce;\n } \n //if (loc.x < 0) loc.x = width;\n //if (loc.x > width) loc.x = 0;\n }", "title": "" }, { "docid": "ad43cb2cd6358f56b5b5e61aa7406db3", "score": "0.56071717", "text": "TwoDShape5(double x) {\n width = height = x;\n }", "title": "" }, { "docid": "2e3d8af08e982c98c23c932d0044c1f1", "score": "0.5607027", "text": "public void setSize(int x, int y)\n {\n \tthis.width = x;\n \tthis.height = y;\n }", "title": "" }, { "docid": "c21ac6111a3a3c8f7fc2adcc908c27f5", "score": "0.56031215", "text": "public Rectangle() {\n\t\tthis.corner = new Point();\n\t\tthis.size = new Point();\n\t}", "title": "" }, { "docid": "032315359c52845d3e0393eb9c684b9e", "score": "0.5596168", "text": "void setHitboxCenter(float x, float y) {\n _hitboxCenter = new PVector(x, y);\n }", "title": "" }, { "docid": "592dc6d3c9eba12da04b367e7970fc33", "score": "0.55738", "text": "private BioMightBoundBox setupDefaultBoundBox(String parentID) \r\n\t{\r\n\t\t// Initialize the position of the bounding box vars\r\n\t\tBigDecimal xPos = new BigDecimal(0.0);\r\n\t\tBigDecimal yPos = new BigDecimal(0.0);\r\n\t\tBigDecimal zPos= new BigDecimal(0.0);\r\n\t\t\r\n\t\t// Set to base 1x1x1 cube\r\n\t\tBigDecimal xVector= new BigDecimal(1.0);\r\n\t\tBigDecimal yVector= new BigDecimal(1.0); \r\n\t\tBigDecimal zVector= new BigDecimal(1.0);\r\n\t\r\n\t\t// Initialize the BoundBox\r\n\t\tBioMightBoundBox bioBoundBox = null;\r\n\t\r\n\t\t// Initialize the Connectors \r\n\t\tBioMightConnectors bioMightConnectors = null; \r\n\r\n\t\t// Initialize the Connector \r\n\t\tBioMightConnector bioMightConnector= null;\r\n\t\r\n\t\tdouble circumference = 0.0;\r\n\t\tdouble[] startPos = {0.0, 0.0, 0.0};\r\n\t\tdouble[][] startPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\t\r\n\t\t\r\n\t\t//**********************************************************************\r\n\t\t// ARMS BOUND BOX\t\t\r\n\t\t//\r\n\t\t// Set up the Bounding Box for the Arms\r\n\t\t// For default model, length of arms is 4.5\r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(0.0);\r\n\t\tyPos = new BigDecimal(-15.0);\r\n\t\tzPos= new BigDecimal(-5.0);\r\n\t\r\n\t\txVector= new BigDecimal(11.5);\r\n\t\tyVector= new BigDecimal(6.0); \r\n\t\tzVector= new BigDecimal(5.0);\r\n\t\t\r\n\t\t// Setup the boundbox\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\t// Set up its connectors\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\t\r\n\t\t//********************************************\r\n\t\t// ARM - ORGAN CONNECTORS\r\n\t\t//********************************************\r\n\t\r\n\t\t// EpitheliumTissue Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -5.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, Constants.ArmEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.ArmEpitheliumRef, bioMightConnector);\r\n\t\r\n\t\t//********************************************\t\r\n\t\t// ARMS - VASCULAR CONNECTORS \r\n\t\t//********************************************\r\n\t\r\n\t\t// InternalCarotidArteryEpithelium\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -5.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, \"InternalCarotidArteryEpithelium\",\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(\"InternalCarotidArteryEpithelium\", bioMightConnector);\r\n\t\r\n\t\t// ExternalCarotidArteryEpithelium \r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -5.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, \"ExternalCarotidArteryEpithelium\",\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(\"ExternalCarotidArteryEpithelium\", bioMightConnector);\r\n\t\r\n\t\t//********************************************\r\n\t\t// ARMS - MUSCULAR CONNECTORS\r\n\t\t//********************************************\r\n\r\n\t\r\n\t\t//********************************************\r\n\t\t// ARMS - SKELETAL CONNECTORS\r\n\t\t//********************************************\r\n\r\n\t\t// ThoracicVertebrae T6 \r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -5.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, \"CervicalVertebrae\",\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(\"CervicalVertebrae\", bioMightConnector);\r\n\t\t\r\n\t\t\r\n\t\t// Stuff the Connectors into the Bounding Box \r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\r\n\t\treturn (bioBoundBox);\t\r\n\t}", "title": "" }, { "docid": "05c91276f1f9980ca55bd50cbc7d8e6e", "score": "0.5566415", "text": "private BioMightBoundBoxes setupDefaultBoundBoxes() \r\n\t{\r\n\t\t// Set up the collection to hold the Bounding Boxes\r\n\t\tBioMightBoundBoxes bioBoundBoxes = null;\r\n\t\r\n\t\t// Initialize the position of the bounding box vars\r\n\t\tBigDecimal xPos = new BigDecimal(0.0);\r\n\t\tBigDecimal yPos = new BigDecimal(0.0);\r\n\t\tBigDecimal zPos= new BigDecimal(0.0);\r\n\t\t\r\n\t\t// Set to base 1x1x1 cube\r\n\t\tBigDecimal xVector= new BigDecimal(1.0);\r\n\t\tBigDecimal yVector= new BigDecimal(1.0); \r\n\t\tBigDecimal zVector= new BigDecimal(1.0);\r\n\t\r\n\t\t// Initialize a BoundBox\r\n\t\tBioMightBoundBox bioBoundBox = null;\r\n\t\r\n\t\t// Initialize Connectors \r\n\t\tBioMightConnectors bioMightConnectors = null; \r\n\r\n\t\t// Initialize a Connector \r\n\t\tBioMightConnector bioMightConnector= null;\r\n\t\r\n\t\tdouble circumference = 0.0;\r\n\t\tdouble[] startPos = {0.0, 0.0, 0.0};\r\n\t\tdouble[][] startPoints = null;\r\n\t\r\n\t\t//********************************************************************* \r\n\t\t// LEFT FOOT BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Feet\r\n\t\t// The connector for this will come from the incoming Bound Box\r\n\t\t// Both are defined like and bolt and they lock into position at the\r\n\t\t// interestion of both connectors\r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(0.0);\r\n\t\tyPos = new BigDecimal(-65.0);\r\n\t\tzPos= new BigDecimal(3.0);\r\n\t\r\n\t\txVector= new BigDecimal(1.0);\r\n\t\tyVector= new BigDecimal(4.0); \r\n\t\tzVector= new BigDecimal(1.0);\r\n\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\r\n\t\t// Feet Epithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(-2.0, -65.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, Constants.FootEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.FootEpitheliumRef, bioMightConnector);\r\n\t\t\r\n\t\t// Associate the connector on the Box\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\r\n\t\t// Put the Bounding Box in the collection\r\n\t\tbioBoundBoxes.setBoundingBox(Constants.LeftFootRef, bioBoundBox);\r\n\t\r\n\t\r\n\t\t//********************************************************************* er\r\n\t\t// RIGHT CNEMES BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Foot\r\n\t\t// On a porportioned human, the \r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(0.0);\r\n\t\tyPos = new BigDecimal(-14.0);\r\n\t\tzPos= new BigDecimal(-3.0);\r\n\t\r\n\t\txVector= new BigDecimal(1.0);\r\n\t\tyVector= new BigDecimal(4.0); \r\n\t\tzVector= new BigDecimal(1.0);\r\n\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\t\r\n\t\t// Foot Epithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(2.0, -65.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, Constants.FootEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.FootEpitheliumRef, bioMightConnector);\r\n\t\r\n\t\t// Associate the connector on the Box\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\r\n\t\t// Put the Bounding Box in the collection\r\n\t\tbioBoundBoxes.setBoundingBox(Constants.RightFootRef, bioBoundBox);\r\n\t\r\n\t\t// return the collection that holds both foot bound boxes\r\n\t\treturn (bioBoundBoxes);\r\n\t}", "title": "" }, { "docid": "69ea88832d74100fde13a660a679fa45", "score": "0.5557765", "text": "public void onBoundsChange(Rect bounds) {\n this.boxWidth = bounds.width();\n this.boxHeight = bounds.height() - this.pointerHeight;\n super.onBoundsChange(bounds);\n }", "title": "" }, { "docid": "e236be397c3a2a89c35ef5f370587d5a", "score": "0.55521697", "text": "void setBounds(Rectangle rectangle);", "title": "" }, { "docid": "63cbdaf71d1fc41efa8d8b64e41dd888", "score": "0.5550309", "text": "public RectangleShape(int xCoord, int yCoord, int widthOfRect, int heightOfRect)\n {\n System.out.println(\"setting x to: \"+ xCoord+\" & setting y to: \"+ yCoord);\n x = xCoord;\n y = yCoord;\n width = widthOfRect;\n height = heightOfRect;\n }", "title": "" }, { "docid": "508060a2b2eead8580163285c4d32aad", "score": "0.5546638", "text": "public void init() {\n\t\tsetSize(500,300);\n\t}", "title": "" }, { "docid": "25736fcc9f351370825eebca211ace5c", "score": "0.55462646", "text": "protected void setBox( float x, float y, float z ) {\r\n\t\tmodel.calculateBoundingBox(box);\r\n\t\taddPoz(box, x, y, z);\r\n\t\tcolRadius = box.getDimensions(GR.temp4).len() / 2f;\r\n\r\n\t\tisColCubic = true;\r\n\r\n\t\tif ( Math.max(box.getDimensions(GR.temp4).x, box.getDimensions(GR.temp4).y)\r\n\t\t\t\t\t/ Math.min(box.getDimensions(GR.temp4).x, box.getDimensions(GR.temp4).y) > maxRap )\r\n\t\t\tisColCubic = false;\r\n\t\tif ( Math.max(box.getDimensions(GR.temp4).x, box.getDimensions(GR.temp4).z)\r\n\t\t\t\t\t/ Math.min(box.getDimensions(GR.temp4).x, box.getDimensions(GR.temp4).z) > maxRap )\r\n\t\t\tisColCubic = false;\r\n\t\tif ( Math.max(box.getDimensions(GR.temp4).z, box.getDimensions(GR.temp4).y)\r\n\t\t\t\t\t/ Math.min(box.getDimensions(GR.temp4).z, box.getDimensions(GR.temp4).y) > maxRap )\r\n\t\t\tisColCubic = false;\r\n\t}", "title": "" } ]
2c5c4cbc34213589d391fd502ce9ffaf
Gets the posts that this user has posted
[ { "docid": "e5fa42a8a9a1ded886e28cf2e6433b2b", "score": "0.6940933", "text": "public ArrayList<Post> getPosts() {\r\n return posts;\r\n }", "title": "" } ]
[ { "docid": "555da7b54934578b530f45c20de1ec09", "score": "0.70992637", "text": "public void retrieveUserPosts() {\n final Post.Query postsQuery = new Post.Query();\n postsQuery.whereEqualTo(\"User\", ParseUser.getCurrentUser());\n\n postsQuery.addDescendingOrder(\"createdAt\");\n\n postsQuery.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> objects, ParseException e) {\n if (e == null) {\n gridAdapter.clear();\n gridAdapter.addAll(objects);\n } else {\n e.printStackTrace();\n }\n }\n });\n }", "title": "" }, { "docid": "aa8bee7f04748c7ddbe8e979f6dedb7f", "score": "0.7092527", "text": "public List<Post> getPosts() {\n return this.posts;\n }", "title": "" }, { "docid": "cfc588eb4a652f026327cb3699fc0976", "score": "0.70235735", "text": "@OneToMany(mappedBy=\"tuser\")\n\tpublic List<Post> getPosts() {\n\t\treturn this.posts;\n\t}", "title": "" }, { "docid": "cda4d29359eb7e7f9fd573a0d88c0ad6", "score": "0.6824757", "text": "List<Post> getMyPost(String userId);", "title": "" }, { "docid": "76b4890a7aafcccc48277d85883d456c", "score": "0.67800456", "text": "public List<FBPost> postsOf(String user){\n return this.posts.stream().filter(l->l.getUser().equals(user)).collect(toList());\n }", "title": "" }, { "docid": "8941ca88b7fcb67a3b1aedd8c6e8305a", "score": "0.6748664", "text": "private void queryPosts() {\n ParseQuery<Post> query = ParseQuery.getQuery(Post.class);\n // include data referred by user key\n query.include(Post.KEY_USER);\n // limit query to latest 20 items\n query.setLimit(display_limit);\n // order posts by creation date (newest first)\n query.addDescendingOrder(\"createdAt\");\n // start an asynchronous call for posts\n query.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> posts, ParseException e) {\n // check for errors\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n\n // for debugging purposes we print every post description to logcat\n for (Post post : posts) {\n Log.i(TAG, \"Post: \" + post.getDescription() + \", username: \" + post.getUser().getUsername());\n }\n\n // save received posts to list and notify adapter of new data\n allPosts.addAll(posts);\n adapter.notifyDataSetChanged();\n }\n });\n }", "title": "" }, { "docid": "62063dd31bd33abc4268abac7e4a0ea7", "score": "0.6725556", "text": "protected void queryPost() {\n\n ParseQuery<Post> query = new ParseQuery<Post>(Post.class);\n query.include(Post.KEY_USER);\n query.setLimit(20);\n query.addDescendingOrder(Post.KEY_CREATE_AT);\n query.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> posts, ParseException e) {\n if (e != null){\n Log.e(TAG, \"Issue with post query\");\n e.printStackTrace();\n return;\n }\n\n userPosts.addAll(posts);\n adapter.notifyDataSetChanged();\n }\n });\n }", "title": "" }, { "docid": "2be40cd0d35b8613b7818279283c048a", "score": "0.65717065", "text": "List<Post> findPostsRelationshipPost(Long postId, UserWcm user) throws WcmException;", "title": "" }, { "docid": "0595c96bdaa96a12d0ffdffd6f8f28a8", "score": "0.6536469", "text": "public List<DiscussionItem> getPosts()\n {\n List<DiscussionItem> posts = ( this.posts == null ) ? new LinkedList<DiscussionItem>() : this.posts;\n return this.posts;\n }", "title": "" }, { "docid": "3ab4b159f66cbb209d9cbd7fd6a54ee6", "score": "0.6439601", "text": "public List<FBPost> getPosts() {\n List<FBPost> aux = new ArrayList<FBPost>();\n for(FBPost s : this.posts){\n aux.add(s.clone());\n }\n return aux;\n }", "title": "" }, { "docid": "d620ad38d0f30e63917e572d287f92a2", "score": "0.63962203", "text": "List<Post> getAllPosts();", "title": "" }, { "docid": "554f7fc064c2699880b554e102844245", "score": "0.6381152", "text": "public List<Post> getPost() {\n\t\tString query = \"select * from Post\";\n\t\treturn (List<Post>) this.getJdbcTemplate().queryForObject(query, new PostMapper());\n\t}", "title": "" }, { "docid": "726c9526427e1e1e2792a12afc705340", "score": "0.6368584", "text": "@Override\n\tpublic List<Post> getAllUserPostsFrom(int from) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5b56381e8493a72912f1651ca03b0913", "score": "0.63639444", "text": "List<BisShopPost> getPosts();", "title": "" }, { "docid": "7c7f4cd5c110e02c6b1e72a59c0c331e", "score": "0.6335162", "text": "@Override\r\n\tpublic List<Posts> getAllPosts() {\n\t\treturn postsRepository.findAll();\r\n\t}", "title": "" }, { "docid": "1e256f7e938a95ed76b4534d2c794fc6", "score": "0.6252989", "text": "List<Post> getAllOtherPost(String userId);", "title": "" }, { "docid": "24f9f5d6ab24a43ff66eacca7f93986f", "score": "0.61913115", "text": "@GetMapping(\"/displayUserPost\")\r\n\tpublic List<UserPost> displayAllUser() \r\n\t{\r\n\t\treturn StaticSetup.userPostList;\r\n\t}", "title": "" }, { "docid": "3e51936107d4fefb5b5a1555c55f6b05", "score": "0.6138571", "text": "public Response getPosts()\r\n\t{\r\n\t\tif (_forum == null){\r\n\t\t\t_log.writeToLog(\"getPosts\", report.NO_FORUM);\r\n\t\t\treturn new Response(report.NO_FORUM);\r\n\t\t}\r\n\t\tif (_subForum == null){\r\n\t\t\t_log.writeToLog(\"getPosts\", report.NO_SUBFORUM);\r\n\t\t\treturn new Response(report.NO_SUBFORUM);\r\n\t\t}\r\n\t\t_log.writeToLog(\"getPosts\");\r\n\t\treturn new Response(report.OK, _subForum.getRootPosts());\r\n\t}", "title": "" }, { "docid": "8c783beeaf6edc38ead152b668f50d24", "score": "0.6134763", "text": "private void loadTopPosts() {\n final Post.Query postQuery = new Post.Query();\n postQuery.getTop().withUser();\n\n postQuery.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> objects, ParseException e) {\n if (e == null) {\n Log.d(TAG, Integer.toString(objects.size()));\n for (int i = 0; i < objects.size(); i++) {\n Log.d(TAG, \"Post [\" + i + \"] = \" + objects.get(i).getDescription());\n// + \"\\nusername: \" + objects.get(i).getUser().getUsername());\n }\n posts.clear();\n posts.addAll(objects);\n adapter.notifyDataSetChanged();\n\n } else {\n e.printStackTrace();\n }\n }\n });\n }", "title": "" }, { "docid": "82c43baa3439203b5e46733429bf5a08", "score": "0.6122544", "text": "@GET\n @Path(\"/ActivePosts\")\n @Produces(MediaType.APPLICATION_JSON)\n public List<Post> getActivePosts() {\n List<Post> posts = postDB.getAllActivePosts();\n if (posts == null || posts.isEmpty()) {\n return (List<Post>) Response.status(204).entity(\"no content found in the database!\").build();\n }\n //return list of users\n return postDB.getAllActivePosts();\n }", "title": "" }, { "docid": "fed382e01b20f36af63b7513d62c3169", "score": "0.61164516", "text": "public List<Post> getPostList() throws SQLException {\n List<Post> postList = listPost();\n List<Post> publishedPost = new ArrayList<>();\n for(int i=0;i<postList.size();i++){\n if(postList.get(i).getPublished() == 1){\n publishedPost.add(postList.get(i));\n }\n }\n return publishedPost;\n }", "title": "" }, { "docid": "28c26f6da93067345f216701d2806def", "score": "0.6075829", "text": "@RequestMapping(value = POSTS_URL, method = RequestMethod.GET)\n public Iterable<BlogPost> fetchPosts() {\n return postRepository.findAll();\n }", "title": "" }, { "docid": "c8217d38927e957d3a193bb67e36cc46", "score": "0.60723835", "text": "Post getPost(int postId);", "title": "" }, { "docid": "4e5750c29f61c363e1edadbef1d06ab1", "score": "0.6056937", "text": "public List<Post> getPosts() {\n List<Post> posts = new ArrayList<Post>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Post post = new Post(cursor.getString(0), cursor.getString(1), cursor.getString(2), cursor.getString(3), cursor.getString(4) );\n posts.add(post);\n } while (cursor.moveToNext());\n }\n\n // return contact list\n return posts;\n }", "title": "" }, { "docid": "72036c162e1ee5e5ed7fe9f9193c739f", "score": "0.6047909", "text": "public ArrayList<Post> readPosts(String username){\r\n\t\tr.validateUserFacebook(username);\r\n\t\tFacebookClient fbClient = new DefaultFacebookClient(ReadXMLfile.facebookData, Version.VERSION_2_12);\r\n\t\t// Connections support paging and are iterable\r\n\t\tConnection<Post> myFeed = fbClient.fetchConnection(\"me/feed\", Post.class, Parameter.with(\"limit\",10));\r\n\t\tArrayList<Post> fbPosts = new ArrayList<Post>();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tList<Attributes> filtersList = new ArrayList<Attributes>();\r\n\t\tfiltersList = r.readFiltersXMLfile();\t\r\n\r\n\t\t// Iterate over the feed to access the particular pages\r\n\t\tfor (List<Post> myFeedPage : myFeed) {\r\n\t\t\t// Iterate over the list of contained data to access the individual object\r\n\t\t\tfor (Post post : myFeedPage) {\r\n\t\t\t\t// Filters only posts that contain the keyword\r\n\t\t\t\tif(post.getMessage() != null) {\r\n\t\t\t\t\tif (keywordValidation(post.getMessage(), filtersList)) {\r\n\t\t\t\t\t\tfbPosts.add(post);\r\n\t\t\t\t\t\tSystem.out.println(\"---- Post ----\");\r\n\t\t\t\t\t\tSystem.out.println(\"Message: \"+ post.getMessage() + System.lineSeparator() + \"Id : \" + post.getId() + System.lineSeparator() + \"Created at : \" + sdf.format(post.getCreatedTime()));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn fbPosts;\t\r\n\t}", "title": "" }, { "docid": "5d931b3f3eb1199add1930d2fad07579", "score": "0.6044933", "text": "@Override\n\tpublic List<Post> getSomeLatestPosts(UserId id, int numberPosts, int postId) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "018d76444d8982b81f3742f5844c24d0", "score": "0.5992495", "text": "@Override\n\tpublic int getUserPostsCount() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "1798067a0ee1dc999213138023b85740", "score": "0.5980735", "text": "List<Relationship> findRelationshipsPost(Long postId, UserWcm user) throws WcmException;", "title": "" }, { "docid": "91a40d5be19c5e0f6293abbd84ad55c1", "score": "0.59556437", "text": "@Override\n\tpublic Set<Post> findAll() {\n\t\treturn super.findAll();\n\t}", "title": "" }, { "docid": "215546aa3334c32e177555c874ec7173", "score": "0.59487915", "text": "@Override\n\tpublic List<Posts> findByCreatorId(long userId) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "23790d59258d869beb2603771d4ede0f", "score": "0.5905141", "text": "public List<Post> getAllPosts() {\r\n // somehow List<Post> poats = new ArrayList didn't work. But declaration and alue assignment when separated worked.\r\n List<Post> posts;\r\n posts = new ArrayList<>();\r\n\r\n String POSTS_SELECT_QUERY = \"SELECT * FROM \" + TABLE_TASKS;\r\n\r\n // \"getReadableDatabase()\" and \"getWriteableDatabase()\" return the same object (except under low\r\n // disk space scenarios)\r\n SQLiteDatabase db = getReadableDatabase();\r\n Cursor cursor = db.rawQuery(POSTS_SELECT_QUERY, null);\r\n try {\r\n if (cursor.moveToFirst()) {\r\n do {\r\n Post newPost = new Post();\r\n newPost.text = cursor.getString(cursor.getColumnIndex(KEY_TASK_TEXT));\r\n posts.add(newPost);\r\n } while(cursor.moveToNext());\r\n }\r\n } catch (Exception e) {\r\n Log.d(TAG, \"Error while trying to get tasks from database\");\r\n } finally {\r\n if (cursor != null && !cursor.isClosed()) {\r\n cursor.close();\r\n }\r\n }\r\n return posts;\r\n }", "title": "" }, { "docid": "bac0cede9ba054235283eed3ae789b2f", "score": "0.58734846", "text": "public ArrayList getLikedPosts() {\r\n return likedPosts;\r\n }", "title": "" }, { "docid": "1f2b5551a6d7285aef99cfdcf64ee49e", "score": "0.58676064", "text": "public Query getAllPost(){\n return mCollection.orderBy(\"timestamp\", Query.Direction.DESCENDING);\n\n }", "title": "" }, { "docid": "87a7bc555bd917badb8efa4670f25206", "score": "0.5811377", "text": "@Override\n\tpublic List<Post> getAllFriendPostsFrom(UserId id, int from) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "abfed1731bb890d3d980c0eb29a79f19", "score": "0.5750726", "text": "public List<String> retrievePostByreply() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9d2eabff119bb5085024649c5721738a", "score": "0.5736218", "text": "public List<PostEntity> getPosts(Long viewerId, Long neighId) {\n LOGGER.log(Level.INFO, \"Gets all posts belonging to viewer with id {0} from neighborhood {1}\", new Object[]{viewerId, neighId});\n return viewerPersistence.find(viewerId, neighId).getPostsToView();\n }", "title": "" }, { "docid": "677d38fa276390922dfdbd687805dd59", "score": "0.57183087", "text": "public List<JsonNode> getAllPosts() {\n\n\t\tSystem.out.println(\"Fetching all Post objects through REST..\");\n\n\t\t// Fetch from 3rd party API; configure fetch\n\t\tfinal RequestHeadersSpec<?> spec = WebClient.create().get().uri(\"http://localhost:3000/JobOffer/view/\");\n\n\t\t// do fetch and map result\n\t\tfinal List<JsonNode> posts = spec.retrieve().toEntityList(JsonNode.class).block().getBody();\n\n\t\tSystem.out.println(String.format(\"...received %d items.\", posts.size()));\n\n\t\treturn posts;\n\n\t}", "title": "" }, { "docid": "dd98ed8d042248354d273917158324df", "score": "0.56827235", "text": "public FBPost getPost(int id){\n FBPost withID = new FBPost();\n for(FBPost x : posts){\n if(x.getId() == id)\n withID = x;\n }\n return withID;\n }", "title": "" }, { "docid": "a64c00f657ca89737864b74c257092d5", "score": "0.56313074", "text": "@GetMapping(value = \"/posts/user/{poster_name}\")\n @ResponseStatus(HttpStatus.OK)\n public List<PostViewModel> getPostsForPoster(@PathVariable String poster_name){\n try {\n int tester = service.findPostsByPoster(poster_name).get(0).getPostID();\n }catch (Exception e) {\n throw new ResponseStatusException(\n HttpStatus.NOT_FOUND, \"No Posts found for poster: \" + poster_name, e\n );\n }\n return service.findPostsByPoster(poster_name);\n }", "title": "" }, { "docid": "50bb803fa15417b37720968df4f23a70", "score": "0.5622026", "text": "JSONArray getPosts() throws UnirestException {\n String uri = wpSite + \"/wp-json/wp/v2/posts\";\n HttpResponse<JsonNode> jsonResponse = Unirest.get(uri).asJson();\n return jsonResponse.getBody().getArray();\n }", "title": "" }, { "docid": "073d33e44df05a7ef67084ff043a8a21", "score": "0.56016624", "text": "@GetMapping(\"/posts\")\r\n\tpublic ApiDataResponse<List<Post>> getAllPosts(){\n\t\tList<Post> allPostsList = postService.findAllPost();\r\n\t\treturn new ApiDataResponse<List<Post>>(allPostsList);\r\n\t }", "title": "" }, { "docid": "5637c5bff1b728d68634996d940f75c1", "score": "0.55869204", "text": "List<Post> top();", "title": "" }, { "docid": "d838c4f18e7cadc582fe2c56de50549b", "score": "0.5573803", "text": "@GetMapping(\"/\")\n @ResponseBody\n public ResponseEntity<?> getPosts(@RequestParam(value = \"user_id\", required = false) Long userId,\n @RequestParam(value = \"asc\") Boolean asc,\n @RequestParam(value = \"page\") Integer page) {\n\n Page<Post> posts;\n if (userId == null) {\n posts = postService.getAllPosts(page, asc);\n } else {\n posts = postService.getPostsByUserId(userId, page, asc);\n }\n List<PostDTO> postDTOS = new ArrayList<>();\n for (Post post : posts) {\n postDTOS.add(PostDTO.createDTO(post));\n }\n return ResponseEntity.status(HttpStatus.OK).body(postDTOS);\n }", "title": "" }, { "docid": "bc921094b8c319adf6b199dc8f36658c", "score": "0.5503049", "text": "private void ReadDataForPosts()\n {\n ReferenceForPosts.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n Post tmp=dataSnapshot.getValue(Post.class);\n tmp.id=dataSnapshot.getKey();\n posts.add(tmp);\n adapter.notifyDataSetChanged();\n\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "title": "" }, { "docid": "8e15fe267322b70221b96981944302e0", "score": "0.5499124", "text": "@Override\n public List<PostAllViewModel> getOnePageForeignPostsByUserId(String id, int pageNumber) throws Exception {\n User user = this.userRepository.findById(id)\n .filter(userValidation::isValid)\n .orElseThrow(Exception::new);\n\n Pageable pageable = PageRequest.of(pageNumber, 3, Sort.by(\"time\").descending());\n Page<Post> currentPage = this.postRepository.findAllByCreatorIdNotOrderByTimeDesc(id, pageable);\n\n return this.getCurrentPagePosts(currentPage, id);\n }", "title": "" }, { "docid": "efdac5a44a930ce7199d75810d494890", "score": "0.5494814", "text": "private List<IgPostEntity> fetchPosts(String userid, Long maxTs, Long minTs) throws MalformedURLException {\n\t\tList<IgPostEntity> postEntities = new ArrayList<IgPostEntity>();\n\n\t\tString mediaRecentUrl = buildIgFeedUrl(userid, maxTs, minTs);\n\n\t\tSystem.out.println(\"apiUrl \" + mediaRecentUrl);\n\n\t\t// if (depth++ > 10) {\n\t\t// System.out.println(\"Bailing after depth \" + depth);\n\t\t// return;\n\t\t// }\n\n\t\tHTTPRequest request = new HTTPRequest(new URL(mediaRecentUrl));\n\t\ttry {\n\t\t\tHTTPResponse response = fetcherService.fetch(request);\n\t\t\tint responseCode = response.getResponseCode();\n\t\t\tif (responseCode == 200) {\n\n\t\t\t\tJsonNode rootNode = mapper.readTree(response.getContent());\n\t\t\t\tJsonNode dataNode = rootNode.path(\"data\");\n\n\t\t\t\tint code = rootNode.path(\"meta\").path(\"code\").asInt();\n\n\t\t\t\tif (code == 200) {\n\n\t\t\t\t\t// String nextUrl =\n\t\t\t\t\t// rootNode.path(\"pagination\").path(\"next_url\").asText();\n\t\t\t\t\tLong maxTsThisPage = null;\n\n\t\t\t\t\tfor (JsonNode node : dataNode) {\n\n\t\t\t\t\t\tIgPostEntity postEntity = new IgPostEntity();\n\t\t\t\t\t\tpostEntity.fillFromNode(node);\n\n\t\t\t\t\t\tmaxTsThisPage = node.path(\"created_time\").asLong();\n\n\t\t\t\t\t\tSystem.out.println(postEntity.getCreated() + \" : \" + maxTsThisPage + \" : \"\n\t\t\t\t\t\t\t\t+ postEntity.getCaption());\n\n\t\t\t\t\t\t// look for existance of WPH tag...\n\t\t\t\t\t\tboolean added = false;\n\t\t\t\t\t\tJsonNode tagsNode = node.path(\"tags\");\n\t\t\t\t\t\tfor (JsonNode tagNode : tagsNode) {\n\t\t\t\t\t\t\tString tag = tagNode.textValue();\n\t\t\t\t\t\t\tSystem.out.print(tag + \" \");\n\t\t\t\t\t\t\tif (tag.equalsIgnoreCase(getTag())) {\n\t\t\t\t\t\t\t\tadded = true;\n\t\t\t\t\t\t\t\tpostEntities.add(postEntity);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"added:\" + added);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (maxTsThisPage != null) {\n\t\t\t\t\t\tDate max = new Date(maxTsThisPage);\n\t\t\t\t\t\tSystem.out.println(\"maxTs:\" + max);\n\t\t\t\t\t\tpostEntities.addAll(fetchPosts(userid, maxTsThisPage, minTs));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"all done!\");\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlog.warning(e.getMessage());\n\t\t}\n\t\treturn postEntities;\n\n\t}", "title": "" }, { "docid": "61b7d25ec7c44b17bbc009044f550619", "score": "0.5491284", "text": "public List<String> retrievePostByclick() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5ac74f6e56ade64ff9751189fe030f7f", "score": "0.5437344", "text": "public List<Post> getUnpublishedPostList() throws SQLException {\n List<Post> postList = listPost();\n List<Post> unpublishedPost = new ArrayList<>();\n for(int i=0;i<postList.size();i++){\n if(postList.get(i).getPublished() == 0){\n unpublishedPost.add(postList.get(i));\n }\n }\n return unpublishedPost;\n }", "title": "" }, { "docid": "32a1069e245d9f7aa855719128b968f1", "score": "0.5437194", "text": "@Override\n\tpublic int getUserMaxPostsId() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "0a1c3a0064a48523ddd37bdaa2532f5b", "score": "0.54288095", "text": "public List<WallPost> getHomePageWallPosts(Account currentUser){\n List<Long> wallPostsIds = wallPostRepository.getPageHomeWallPostIds(currentUser, getPage());\n if (wallPostsIds.isEmpty()){\n return Collections.emptyList();\n }\n return getWallPostsWithLikesAndComments(wallPostsIds,sortDesc);\n }", "title": "" }, { "docid": "35511221bb7607426d71e94026edfdca", "score": "0.5411525", "text": "@GetMapping(\"/posts\")\n @Timed\n public List<Post> getAllPosts() {\n log.debug(\"REST request to get all Posts\");\n return postRepository.findAll();\n }", "title": "" }, { "docid": "a9eca4a376e987112aaf8fece5dd50ea", "score": "0.53931516", "text": "@Override\n public List<PostAllViewModel> getOnePageFollowingPostsByUserId(String id, int pageNumber) throws Exception {\n this.userRepository.findById(id)\n .filter(userValidation::isValid)\n .orElseThrow(Exception::new);\n\n Pageable pageable = PageRequest.of(pageNumber, 2, Sort.by(\"time\").descending());\n Page<Post> currentPage = this.postRepository.getAllFollowingPosts(id, pageable);\n\n return this.getCurrentPagePosts(currentPage, id);\n }", "title": "" }, { "docid": "f2572c211ab1417d662ff08ac2e9e1f9", "score": "0.5344437", "text": "public List<Post> getDeletedPostList() throws SQLException {\n List<Post> postList = listPost();\n List<Post> deletedPost = new ArrayList<>();\n for(int i=0;i<postList.size();i++){\n if(postList.get(i).getPublished()==-1){\n deletedPost.add(postList.get(i));\n }\n }\n return deletedPost;\n }", "title": "" }, { "docid": "2a5d2655363446dec4db4ce089cd91bf", "score": "0.533632", "text": "public Post getPost(int postId) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "486235c3a935a30df59b72053cd2c6b7", "score": "0.5333587", "text": "public List<Post> getPosts(long threadId, int offset, int count) throws PersistenceException {\n if (offset < 0) {\n throw new IllegalArgumentException(\"offset should not be negative\");\n }\n if (count < 0) {\n throw new IllegalArgumentException(\"count should not be negative\");\n }\n if (count == 0) {\n return new ArrayList<Post>();\n }\n Connection conn = null;\n\n ResultSet rs = null;\n\n try {\n conn = Database.createConnection();\n PreparedStatement ps = null;\n try {\n ps = conn.prepareStatement(ForumPersistenceImpl.GET_POSTS);\n ps.setLong(1, threadId);\n rs = ps.executeQuery();\n List<Post> posts = new ArrayList<Post>();\n int index = 0;\n while (rs.next() && index - offset < count) {\n ++index;\n if (index > offset) {\n Post post = new Post();\n post.setId(rs.getLong(DatabaseConstants.POST_POST_ID));\n post.setThreadId(rs.getLong(DatabaseConstants.POST_THREAD_ID));\n post.setUserProfileId(rs.getLong(DatabaseConstants.POST_USER_PROFILE_ID));\n post.setContent(rs.getString(DatabaseConstants.POST_CONTENT));\n posts.add(post);\n }\n }\n return posts;\n } finally {\n Database.dispose(ps);\n }\n } catch (SQLException e) {\n throw new PersistenceException(\"Failed to get the posts\", e);\n } finally {\n Database.dispose(conn);\n }\n }", "title": "" }, { "docid": "7113aa562932744d6003718a253d9a0d", "score": "0.5321901", "text": "public void getMyPosts(HttpServletRequest _req, HttpServletResponse _res) {\r\n\t\t/* WARNING: NOT A VERY GOOD WAY TO HANDLE THE LIST OF POSTS THAT IS\r\n\t\t * BRINGING USER POST AND FRIENDS POST TOGETHER, BUT I WAS TOLD \r\n\t\t * \tTHAT I SHOULD TRY NOT TO CHANGE MUCH IN THE CODE\r\n\t\t * */\r\n\t\taux = new ArrayList<Post>();\r\n\t\tmyPosts = new ArrayList<Post>();\r\n\t\tmyFriendsPost = new ArrayList<Post>();\r\n\t\taux = p_bo.getPostRelatedToUser(user.getUser_id());\r\n\t\tfor(Post post:aux) {\r\n\t\t\tif ( post.getUser().getUser_id()==user.getUser_id()) {\r\n\t\t\t\tmyPosts.add(post);\r\n\t\t\t}else {\r\n\t\t\t\tmyFriendsPost.add(post);\r\n\t\t\t}\r\n\t\t}\r\n\t\t_req.setAttribute(\"myPosts\", myPosts); \r\n\t\t_req.setAttribute(\"myFriendsPost\", myFriendsPost);\r\n\t}", "title": "" }, { "docid": "a80d4a93e5fdc5d70bea7e78b472c024", "score": "0.53160524", "text": "private void loadSpecificUserPosts() {\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n //show newest post first ,for this load from list\n layoutManager.setStackFromEnd(true);\n layoutManager.setReverseLayout(true);\n //set this layout to recycler view\n\n specificProfileRecyclerView.setLayoutManager(layoutManager);\n\n\n //init post list\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child(\"Posts\");\n //query to load posts\n Query query = ref.orderByChild(\"uid\").equalTo(hisUId);\n //get all data from this ref\n query.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n postList.clear();\n for(DataSnapshot ds : dataSnapshot.getChildren())\n {\n ModelPost myPosts = ds.getValue(ModelPost.class);\n\n\n //add to list\n\n\n postList.add(myPosts);\n //adapter\n adapterPost = new AdapterPost(getApplicationContext(), postList,rl);\n //set the adapter to recycler view\n specificProfileRecyclerView.setAdapter(adapterPost);\n\n\n\n\n\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Toast.makeText(SpecifiProfile.this, \"\"+databaseError.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "title": "" }, { "docid": "edb11b7a48d05b4034d3140f23075674", "score": "0.5294138", "text": "public void generateFeed() {\n Post.Query query = new Post.Query();\n query.getTop();\n //no query conditions\n // Specify the object id\n query.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> objectList, ParseException e) {\n if (e == null) {\n for (int i = 0; i < objectList.size(); i++) {\n posts.add(objectList.get(i));\n feedAdapter.notifyItemInserted(objectList.size()-1);\n }\n } else {\n e.printStackTrace();\n }\n }\n });\n //Collections.reverse(posts);\n\n }", "title": "" }, { "docid": "9ecfc96fb224e96a3f5f4753af69f7a2", "score": "0.52818644", "text": "@Override\n public TopFriendsResult collect(User user, List<Post> posts) {\n\n // Populate friends-likes map\n Map<User, Integer> friendsLikesMap = new HashMap<User, Integer>();\n for (Post post : posts) {\n for (User liker : post.getLikes()) {\n\n // Ignore own likes\n if (liker.equals(user)) {\n continue;\n }\n\n if (!friendsLikesMap.containsKey(liker)) {\n friendsLikesMap.put(liker, 1);\n continue;\n }\n\n friendsLikesMap.put(liker, friendsLikesMap.get(liker) + 1);\n }\n }\n\n // Convert friends-likes map from map to sorted list ordered by like count (i.e. index 0 has friend with most likes)\n List<Map.Entry<User, Integer>>\n topFriendsList =\n new LinkedList<Map.Entry<User, Integer>>(friendsLikesMap.entrySet());\n Collections.sort(topFriendsList, new Comparator<Map.Entry<User, Integer>>() {\n public int compare(Map.Entry<User, Integer> o1,\n Map.Entry<User, Integer> o2) {\n return (o2.getValue()).compareTo(o1.getValue());\n }\n });\n\n return new TopFriendsResult(topFriendsList);\n }", "title": "" }, { "docid": "5e52c79247c7f8fab1c398d330c44531", "score": "0.52423775", "text": "public List<String> getCommentedUsers(final String postedBy);", "title": "" }, { "docid": "923b94819d73549c1cabee33e95a6f0c", "score": "0.5239901", "text": "@Override\n public int getItemCount() {\n return postArrayList.size();\n }", "title": "" }, { "docid": "209090bcad991005c6e26c41033f272f", "score": "0.5202964", "text": "public String getTimelinePosts(int usedId) throws Exception{\n\t\testabilishConnection();\n\t\ttry{\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tString query = \"select post_pk,post_senderId,post_statusText,post_date,post_like_count,userdetails_firstname,userdetails_lastname,userdetails_picurl from POST inner join USERDETAILS on post_senderId=userdetails_pk where post_receiverId=\"+usedId + \" and post_groupId is NULL and post_eventId is NULL order by post_date DESC\";\n\t\t\tmyResult = myConn.getStmt().executeQuery(query);\n\t\t\t/*while (myResult.next()){\n\t\t\t\tSystem.out.println(myResult.getString(\"post_pk\") + \" \" + myResult.getString(\"post_statusText\") + \" \" + myResult.getString(\"post_senderId\"));\n\t\t\t}*/\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\tSystem.out.println(\"\"+e.getMessage());\n\t\t}\n\t\tcatch(ClassNotFoundException e){\n\t\t\tSystem.out.println(\"\"+e.getMessage());\n\t\t}\t\t\n\t\tJSONArray str = Convertor.convertToJSON(myResult);\n\t\tcloseConnection();\n\t\t//System.out.println(str.toString());\n\t\treturn str.toString();\n\t}", "title": "" }, { "docid": "7d37ccca9028856c98508d5a763aa968", "score": "0.52006024", "text": "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"/getPosts\")\n public String getPosts() {\n //Declaring vars\n JSONArray array = new JSONArray();\n JSONObject response = new JSONObject();\n\n try {\n //Looping through all results from getAllPosts()\n for (Post p : this.postDB.getAllPosts()) {\n //Converting the Post to a json obj\n JSONObject obj = convertPostToJson(p);\n //Adding the json obj to the json array\n array.add(obj);\n\n }\n //Putting the array into a json obj\n response.put(\"Posts\", array);\n } catch (Exception e) {\n System.out.println(e);\n\n throw new javax.ws.rs.ServerErrorException(e.getMessage(), 500);\n }\n\n return array.toString();\n\n }", "title": "" }, { "docid": "33a8d0c26753140a95a66b0c67aa9a2e", "score": "0.5195563", "text": "JSONObject getPost(String postId) throws UnirestException {\n String uri = wpSite + String.format(\"/wp-json/wp/v2/posts/%s\", postId);\n HttpResponse<JsonNode> jsonResponse = Unirest.get(uri).asJson();\n return jsonResponse.getBody().getObject();\n }", "title": "" }, { "docid": "d4c906b9423b10e47f3ce95c260a47f6", "score": "0.51812214", "text": "public List<Post> getSearchPostList() throws SQLException {\n return search(keyword);\n }", "title": "" }, { "docid": "53b98e5dcf58db833cb23c6ff9e58225", "score": "0.51398474", "text": "public static void posts(Long userId) {\n User user = userId == null ? user() : (User) User.findById(userId);\n List<Post> posts = userId == null ? user.news() : user.posts;\n render(user, posts);\n }", "title": "" }, { "docid": "743eb3830c5c607eaad7cb46f514a735", "score": "0.5129804", "text": "@Override\n public List<PostDetailsQueryResult> getAllPostsMyOrNot(Integer from, Integer count, UUID userId, Boolean isMine) {\n String compare = (isMine == null || isMine) ? \"=\" : \"<>\";\n String queryString = String.format(\n \"SELECT new com.threadjava.post.dto.PostDetailsQueryResult(p.id, p.body, \" +\n \"(SELECT COALESCE(SUM(CASE WHEN pr.isLike = TRUE THEN 1 ELSE 0 END), 0) FROM p.reactions pr WHERE pr.post = p), \" +\n \"(SELECT COALESCE(SUM(CASE WHEN pr.isLike = FALSE THEN 1 ELSE 0 END), 0) FROM p.reactions pr WHERE pr.post = p), \" +\n \"(SELECT COUNT(*) FROM p.comments), \" +\n \"p.createdAt, p.updatedAt, i, p.user) \" +\n \"FROM Post p \" +\n \"LEFT JOIN p.image i \" +\n \"WHERE (cast(:userId as string) IS NULL OR p.user.id %s :userId AND p.deleted = false) \" +\n \"order by p.createdAt desc\", compare);\n\n Query query = entityManager.createQuery(queryString);\n query.setFirstResult(from);\n query.setMaxResults(count);\n query.setParameter(\"userId\", userId);\n return query.getResultList();\n }", "title": "" }, { "docid": "350945656b84a6dc83954954d189819c", "score": "0.5123853", "text": "public Map<Integer, Posting> getPostingMap() {\n return postingMap;\n }", "title": "" }, { "docid": "866674ac9e104c612c09480ff4b229c4", "score": "0.51158834", "text": "@Override\n\tpublic int getFriendPostsCount(UserId id) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ef9bdf779c74741956f0f3c08c045131", "score": "0.5097712", "text": "public int getNumberOfOwnPosts() {\n RealmQuery<CDPost> query = realm.where(CDPost.class);\n query.equalTo(\"isOwn\", 1);\n\n // Execute the query:\n RealmResults<CDPost> result = query.findAll();\n\n return result.size();\n }", "title": "" }, { "docid": "a7468f20ecd309257f92ab38be21c800", "score": "0.5092512", "text": "public Long getPostId() {\n return postId;\n }", "title": "" }, { "docid": "23d9614b897c2da02ba4344040404f42", "score": "0.5053254", "text": "public Integer getPostId() {\n return postId;\n }", "title": "" }, { "docid": "971afe90b72e16783507907eb787b23c", "score": "0.5052575", "text": "public List<Post> findAll();", "title": "" }, { "docid": "1f0bc4f6394804d3f78381462c248fda", "score": "0.5028767", "text": "public Post getPostById(Integer postId) throws SQLException, IOException {\n return getPostById_1(postId);\n }", "title": "" }, { "docid": "a9168754dbdc81c26e6e0c6cc5a7762a", "score": "0.5009803", "text": "@Override\n public List<PostAllViewModel> getOnePageUserPostsByUsername(String username, int pageNumber) throws Exception {\n User user = this.userRepository.findByUsername(username)\n .filter(userValidation::isValid)\n .orElseThrow(Exception::new);\n\n Pageable pageable = PageRequest.of(pageNumber, 3, Sort.by(\"time\").descending());\n Page<Post> currentPage = this.postRepository.findAllByCreatorIdOrderByTimeDesc(user.getId(), pageable);\n// List<Post> posts = this.postRepository.findAllByCreatorIdOrderByTimeDesc(id, pageable);\n\n return this.getCurrentPagePosts(currentPage, user.getId());\n }", "title": "" }, { "docid": "fcb49e2083b318f387fefa6ce70e4021", "score": "0.5005567", "text": "List<PostPO> findByBloggerId(long id);", "title": "" }, { "docid": "dfefe00fca74f1c4b9606d3b100e7461", "score": "0.49986067", "text": "public List<FBPost> postsOF(String user, LocalDateTime inicio, LocalDateTime fim) { //OU myList.stream().filter(x -> x.size() > 10 && x -> x.isCool()) ...\n return this.posts.stream().filter(l -> l.getPostTime().isAfter(inicio))\n .filter(l -> l.getPostTime().isBefore(fim))\n .filter(l -> l.getUser().equals(user))\n .collect(toList());\n //return posts.stream().filter(p->p.getUser() == user && p.getPostTime().compareTo(inicio)>0 && p.getPostTime().compareTo(fim)<0).collect(Collectors.toList());\n }", "title": "" }, { "docid": "13b33b18a97a18eb079676c7e4a4ec0b", "score": "0.49942553", "text": "public String getPostId() {\n return postId;\n }", "title": "" }, { "docid": "13b33b18a97a18eb079676c7e4a4ec0b", "score": "0.49942553", "text": "public String getPostId() {\n return postId;\n }", "title": "" }, { "docid": "e7860ec41dc73cfa8608176f7823c126", "score": "0.49914038", "text": "public Set<String> getMentionedUsers(List<Post> ps)throws NullPointerException;", "title": "" }, { "docid": "13eade55dd9d72c502be50986fce1a1c", "score": "0.4981225", "text": "public Iterable<Integer> post() {\n return post;\n }", "title": "" }, { "docid": "303fb3db6de1f64b5b7f9b79fdbc4e77", "score": "0.4970922", "text": "public String getPost() {\r\n return post;\r\n }", "title": "" }, { "docid": "f4a828e4488506a0a9aea27c1c12108b", "score": "0.49693322", "text": "public String getPost() {\n return post;\n }", "title": "" }, { "docid": "a792ea8d894e70a0457fa1c5766e5c53", "score": "0.49647617", "text": "public List<Integer> getNewsFeed(int userId) {\n maxHeap.clear();\n // 堆顶元素最大\n HashSet<Integer> followers = followMap.getOrDefault(userId, new HashSet<>());\n followers.add(userId);\n for (Integer user : followers) {\n Feed feed = this.feedMap.get(user);\n if (feed == null) continue;\n maxHeap.offer(feed);\n }\n int cnt = 0;\n List<Integer> ans = new ArrayList<>();\n while (maxHeap.size() > 0 && cnt < 10) {\n Feed poll = maxHeap.poll();\n ans.add(poll.postId);\n if (poll.next != null)\n maxHeap.offer(poll.next);\n cnt++;\n }\n return ans;\n }", "title": "" }, { "docid": "fe70f7800c37996fecc726fc5167d2f7", "score": "0.49572587", "text": "@Override\n\tpublic Post getPost(int postId) throws PostNotFoundException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b0b9aa0151a6364e7f93c606e060ec46", "score": "0.49551404", "text": "@GET(Constant.ALLPOSTSREQUEST)\n Call<List<Post>> getPostById(@Query(Constant.USER_ID) String user_id);", "title": "" }, { "docid": "c96ca1879ed2941ed8b29362be23e501", "score": "0.4951434", "text": "public String getPostContent() {\n\t\treturn postContent;\n\t}", "title": "" }, { "docid": "30772234e1c090605e40e556210bd6fe", "score": "0.49462542", "text": "public List<StudentWall> getStudentWallPosts(){\n\n // get the readable database instance\n SQLiteDatabase db = this.getReadableDatabase();\n\n // list of studentWall post\n List<StudentWall> studentWalls = new ArrayList<StudentWall>();\n\n // get the query output to cursor\n //Cursor cursor = db.rawQuery(\"SELECT * FROM \"+Constants.studentWall, null);\n Cursor cursor = db.query(Constants.studentWall, null, null, null, null, null, \"createdAt ASC\");\n // navigate through cursor and fetch values\n if(cursor.moveToFirst()){\n\n do{\n StudentWall studentWall = new StudentWall();\n\n studentWall.setObjectId(cursor.getString(1));\n studentWall.setPostDescription(cursor.getString(2));\n studentWall.setCreatedAt(new Date(cursor.getString(3)));\n studentWall.setUpdatedAt(new Date(cursor.getString(4)));\n studentWall.setLikes(cursor.getInt(5));\n studentWall.setDislikes(cursor.getInt(6));\n studentWall.setComments(cursor.getInt(7));\n studentWall.setUserObjectId(cursor.getString(8));\n studentWall.setUserImage(cursor.getBlob(8));\n studentWall.setMediaFile(cursor.getBlob(9));\n\n studentWalls.add(studentWall);\n\n }\n while(cursor.moveToNext());\n }\n\n db.close();\n\n return studentWalls;\n\n }", "title": "" }, { "docid": "64b513d4c75752385a6d0afb0bc6c4d2", "score": "0.4944521", "text": "Post getPost(String propertyId);", "title": "" }, { "docid": "0b5213a34a1456d28948646ac07bade3", "score": "0.49392524", "text": "public Hashtable getRecentPosts( final String blogid, final String username, final String password, final int numberOfPosts ) throws XmlRpcException {\n final Hashtable<String, Hashtable<String, Object>> result = new Hashtable<>();\n LOG.info( \"metaWeblog.getRecentPosts() called\");\n final Page page = m_context.getEngine().getManager( PageManager.class ).getPage( blogid );\n checkPermissions( page, username, password, \"view\" );\n\n final WeblogPlugin plugin = new WeblogPlugin();\n final List< Page > changed = plugin.findBlogEntries( m_context.getEngine(), blogid, new Date( 0L ), new Date() );\n changed.sort( new PageTimeComparator() );\n\n int items = 0;\n for( final Iterator< Page > i = changed.iterator(); i.hasNext() && items < numberOfPosts; items++ ) {\n final Page p = i.next();\n result.put( \"entry\", makeEntry( p ) );\n }\n\n return result;\n }", "title": "" }, { "docid": "931887203942bce9528fe632eebc4c24", "score": "0.49315712", "text": "@Override\n public void onSuccess(@NonNull List<Post> posts) {\n textView.setText(posts.get(0).getTitle());\n\n }", "title": "" }, { "docid": "9852944bb0542e4d7b2c56727d9cde46", "score": "0.49214885", "text": "public String getNewsfeedPosts(int usedId) throws Exception{\n\t\testabilishConnection();\n\t\ttry{\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tString query = \"select post_pk,post_statusText,post_senderId,post_date,post_like_count,post_img_url,userdetails_firstname,userdetails_lastname,userdetails_picurl from POST inner join USERDETAILS on post_senderId=userdetails_pk where (post_senderId IN(select friendlist_friend as friend_list from FRIENDLIST where friendlist_user = \"+usedId+\" and friendlist_status='accepted' union select friendlist_user as friend_list from FRIENDLIST where friendlist_friend = \"+usedId+\" and friendlist_status='accepted' union SELECT \"+usedId+\") or post_receiverId IN(select friendlist_friend as friend_list from FRIENDLIST where friendlist_user = \"+usedId+\" and friendlist_status='accepted' union select friendlist_user as friend_list from FRIENDLIST where friendlist_friend = \"+usedId+\" and friendlist_status='accepted' union SELECT \"+usedId+\")) and post_groupId is NULL and post_eventId is NULL order by post_date DESC\";\n\t\t\tmyResult = myConn.getStmt().executeQuery(query);\n\t\t\t/*while (myResult.next()){\n\t\t\t\tSystem.out.println(myResult.getString(\"post_pk\") + \" \" + myResult.getString(\"post_statusText\") + \" \" + myResult.getString(\"post_senderId\"));\n\t\t\t}*/\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\tSystem.out.println(\"\"+e.getMessage());\n\t\t}\n\t\tcatch(ClassNotFoundException e){\n\t\t\tSystem.out.println(\"\"+e.getMessage());\n\t\t}\t\t\n\t\tJSONArray str = Convertor.convertToJSON(myResult);\n\t\tcloseConnection();\n\t\treturn str.toString();\n\t}", "title": "" }, { "docid": "41d0a2743267acf5eba6e7f2987a77bd", "score": "0.49076194", "text": "@GetMapping(\"/profile/{id}/questions\")\n public CollectionModel<EntityModel<Posts>> getQuestionsByUserId(@PathVariable Integer id) {\n List<EntityModel<Posts>> questions = postsRepository.findAllByPostTypeIdAndOwnerUserId(1, id).stream().\n map((ques) -> {\n postsUtil.setVoteStatus(ques, null);\n postsUtil.setPostTags(ques);\n return postsAssembler.toModel(ques);\n }).collect(Collectors.toList());\n return CollectionModel.of(questions,\n linkTo(methodOn(UserProfileController.class).getQuestionsByUserId(id)).withSelfRel(),\n linkTo(methodOn(PostsController.class).getQuestions(null)).withRel(\"home\"));\n }", "title": "" }, { "docid": "89538d6d548ba5a08f2dc51e502db024", "score": "0.4896274", "text": "void findNewPosts();", "title": "" }, { "docid": "5dc9d63fc10e68a5bea896f4a94ecf59", "score": "0.48961455", "text": "@RequestMapping(method = RequestMethod.GET, path = \"/request/business/posts/all\")\n\tpublic List<BusinessPosts> getAllBusinessPosts() {\n\t\tList<BusinessPosts> businessPosts = businessPostRepository.findAll();\n\t\treturn businessPosts;\n\t}", "title": "" }, { "docid": "619ecd3e8f7dd765215719caf9ceeead", "score": "0.48925632", "text": "Hashtable< String, Object > getPost( final String postid, final String username, final String password ) throws XmlRpcException {\n final String wikiname = \"FIXME\";\n final Page page = m_context.getEngine().getManager( PageManager.class ).getPage( wikiname );\n checkPermissions( page, username, password, \"view\" );\n return makeEntry( page );\n }", "title": "" }, { "docid": "7209192cff7b0633b59a7ddd29f452a6", "score": "0.48866555", "text": "public Date getPostedDate() {\n\t\treturn postedDate;\n\t}", "title": "" }, { "docid": "a2933e04677fcf07b57a2b11866edb86", "score": "0.48829865", "text": "public Post viewPostById(int userId) throws Exception {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7105ab0da684904c3b306e24b33c2fe6", "score": "0.48820132", "text": "public PlayerPost getDataObject() {\n\t\treturn new PlayerPost(balance, rect.x, rect.y, name, score);\n\t}", "title": "" }, { "docid": "9245f3f96c63735a6db8065e40845bd9", "score": "0.48594767", "text": "@Override\r\n public int getItemCount() {\r\n int result = 0;\r\n if(mPostsList != null){\r\n result = mPostsList.size();\r\n }\r\n return result;\r\n }", "title": "" } ]
029958003eb35a1fe68643e12ebc91d8
Creates new form SetRangeDialog for a single dataset
[ { "docid": "068657d341c5200faa5d52c121f257f9", "score": "0.7967832", "text": "public SetRangeDialog(MotifLabGUI gui, NumericDataset dataset) {\n super(gui.getFrame(), true);\n this.gui = gui;\n initComponents();\n setTitle(\"Set data range\");\n minTextField.setText(\"\" + dataset.getMinAllowedValue());\n maxTextField.setText(\"\" + dataset.getMaxAllowedValue());\n baselineTextfield.setText(\"\" + dataset.getBaselineValue());\n this.dataset = dataset;\n getRootPane().setDefaultButton(okButton);\n cancelButton.addActionListener(new ActionListener() { // I must do it like this because NetBeans GUI designer screwed up...\n @Override\n public void actionPerformed(ActionEvent e) {\n setVisible(false);\n }\n });\n boolean scaleToIndividual=gui.getVisualizationSettings().scaleShownNumericalRangeByIndividualSequence(dataset.getName());\n // disable other controls if \"scale to individual\" is selected\n scaleToIndividualSequencesCheckbox.setSelected(scaleToIndividual);\n setScaleToFitIndividual(scaleToIndividual); // update other controls based on selected status\n scaleToIndividualSequencesCheckbox.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n boolean scaleToIndividual=scaleToIndividualSequencesCheckbox.isSelected();\n setScaleToFitIndividual(scaleToIndividual);\n }\n });\n }", "title": "" } ]
[ { "docid": "73b7fc46887f6ea31faa293edcda7ece", "score": "0.7558618", "text": "public SetRangeDialog(MotifLabGUI gui, NumericDataset[] datasets) {\n super(gui.getFrame(), true);\n this.gui = gui;\n initComponents();\n setTitle(\"Set data range\");\n double max = -Double.MAX_VALUE;\n double min = Double.MAX_VALUE;\n double baseline = Double.NaN;\n for (NumericDataset data : datasets) { // use most extreme values across all datasets\n if (data.getMinAllowedValue() < min) {\n min = data.getMinAllowedValue();\n }\n if (data.getMaxAllowedValue() > max) {\n max = data.getMaxAllowedValue();\n }\n if (baseline == Double.NaN) {\n baseline = data.getBaselineValue();\n } else if (baseline != data.getBaselineValue()) {\n baseline = 0;\n } else {\n baseline = data.getBaselineValue();\n }\n }\n minTextField.setText(\"\" + min);\n maxTextField.setText(\"\" + max);\n baselineTextfield.setText(\"\" + baseline);\n this.dataset = datasets;\n getRootPane().setDefaultButton(okButton);\n cancelButton.addActionListener(new ActionListener() { // I must do it like this because NetBeans GUI designer screwed up...\n @Override\n public void actionPerformed(ActionEvent e) {\n setVisible(false);\n }\n });\n VisualizationSettings settings=gui.getVisualizationSettings();\n boolean scaleToIndividual=false;\n for (NumericDataset track:datasets) {\n if (settings.scaleShownNumericalRangeByIndividualSequence(track.getName())) {scaleToIndividual=true;break;}\n }\n // disable other controls if \"scale to individual\" is selected\n scaleToIndividualSequencesCheckbox.setSelected(scaleToIndividual);\n setScaleToFitIndividual(scaleToIndividual); // update other controls based on selected status\n scaleToIndividualSequencesCheckbox.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n boolean scaleToIndividual=scaleToIndividualSequencesCheckbox.isSelected();\n setScaleToFitIndividual(scaleToIndividual);\n }\n }); \n }", "title": "" }, { "docid": "88df4e1da74f2d040a2deca0306a4dd3", "score": "0.6398851", "text": "public final void setDataRange(Range dataRange) {\r\n\tgetDisplayAdapter().setDataRange(dataRange);\r\n\tRange oldValue = fieldDataRange;\r\n\tfieldDataRange = dataRange;\r\n\tfirePropertyChange(\"dataRange\", oldValue, dataRange);\r\n}", "title": "" }, { "docid": "efa5d19e6b67ec3e920d6c2eb4c3bffa", "score": "0.63110214", "text": "void setRange(Range range);", "title": "" }, { "docid": "f524105e0f7f5c7aaeab14e122dee2b2", "score": "0.6302056", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n GetValueDialog dialog = new GetValueDialog(dialogTitle, lowerRangeLabelText, chart, \"lowerRange\");\n dialog.pack();\n dialog.setVisible(true);\n //chart.getXYPlot().getDomainAxis().setUpperBound(9);\n }", "title": "" }, { "docid": "9517f8e6500f5a1629d71651f7cd2873", "score": "0.5914875", "text": "private void rangeControl(){\r\n int minimum = box2.getValue() - 1; // Assign box2 value to minimum\r\n int max = box3.getValue() - 1; // Assign box3 value to max\r\n if (minimum > max){\r\n setMin(max); \r\n setLimit(minimum);\r\n }\r\n else{\r\n setMin(minimum);\r\n setLimit(max);\r\n }\r\n setCount(getMin());\r\n processDisplay();\r\n enableDisableButtons();\r\n }", "title": "" }, { "docid": "189332ca884ba38ad533e03cfaa3009d", "score": "0.5783857", "text": "public void setRange(String range) {\r\n this.range = range;\r\n }", "title": "" }, { "docid": "c01b04a306526eb7ed73055dcfb4ecb6", "score": "0.5576702", "text": "public void setRange(ConcreteType range) {this.range = range;}", "title": "" }, { "docid": "807e8d853ba1616abe34ada080495daf", "score": "0.55522037", "text": "public ReportRequest createNewDataQuery(PSDateRange range)\n {\n FastDateFormat formatter = FastDateFormat.getInstance(\"yyyy-MM-dd\");\n DateRange dateRange = new DateRange();\n dateRange.setStartDate(formatter.format(range.getStart()));\n dateRange.setEndDate(formatter.format(range.getEnd()));\n\n return new ReportRequest()\n .setDateRanges(Arrays.asList(dateRange));\n }", "title": "" }, { "docid": "7e3c3bd9ae9b99de77dc8b251d7cc606", "score": "0.5534765", "text": "private Component doMakeVerticalRangeWidget() {\n\n rangeLabel = new JLabel(\" Range: \");\n\n rdButton = new JButton(\"Change\");\n rdButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n RangeDialog rd = new RangeDialog(CrossSectionControl.this,\n getVerticalAxisRange(),\n \"Change Vertical Axis Range\",\n \"setVerticalAxisRange\");\n rd.showDialog();\n Range r = getVerticalAxisRange();\n rangeLabel.setText(\" Range: \" + \n getDisplayConventions().format(r.getMin())+\"/\"+\n getDisplayConventions().format(r.getMax()));\n }\n });\n Component c = GuiUtils.hbox(rdButton, rangeLabel);\n if (getAllowAutoScale()) {\n autoscaleCbx = GuiUtils.makeCheckbox(\"Auto-scale?\", this,\n \"autoScaleYAxis\");\n c = GuiUtils.leftRight(c, autoscaleCbx);\n if (autoscaleCbx.isSelected()) rdButton.setEnabled(false);\n }\n return c;\n\n }", "title": "" }, { "docid": "0d1aa3f8f4b1efa2765af5980914d100", "score": "0.55177927", "text": "public void setRange(int value) {\r\n this.range = value;\r\n }", "title": "" }, { "docid": "ed18896c23403741ca01cf3e800c71f4", "score": "0.5511478", "text": "public void setSelectRange(int start, int end) {\n Logger.i(TAG, \"setSelectRange\", \"start = \" + start + \" ,end = \" + end);\n mSelectionStart = start;\n mSelectionEnd = end;\n postInvalidate();\n }", "title": "" }, { "docid": "d482040557f965f73be638137c0bb8d1", "score": "0.548552", "text": "public void setRange() throws Exception {\n\t\tif( this.classid == -1 ) {\n\t\t\tQueryException.throwNewException(SaadaException.WRONG_PARAMETER, \"getRange functionnality cannot be used out of a class context\");\n\t\t\treturn ;\n\t\t}\n\t\tString table;\n\t\tif( this.nameattr.startsWith(\"_\")) {\n\t\t\ttable = this.classname; \n\t\t} else {\n\t\t\ttable = Database.getCachemeta().getCollectionTableName(this.getCollid(), Database.getCachemeta().getClass(this.classid).getCategory());\n\t\t}\n\t\tSQLQuery query = new SQLQuery();\n\t\tthis.range = new RangeValue();\n\t\tResultSet rs = query.run(\"SELECT DISTINCT \" + this.nameattr + \" FROM \" + table + \" LIMIT 11\");\n\t\tint cpt = 0 ;\n\t\twhile(rs.next() ) {\n\t\t\tthis.range.addToList(rs.getObject(1));\n\t\t\tcpt++;\n\t\t\tif( cpt > 10 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif( cpt > 10 ) {\n\t\t\trs = query.run(\"SELECT MIN(\" + this.nameattr + \"), MAX(\" + this.nameattr + \") FROM \" + table );\t\t\t\n\t\t\twhile(rs.next() ) {\n\t\t\t\tthis.range.setMin(rs.getObject(1));\n\t\t\t\tthis.range.setMax(rs.getObject(2));\n\t\t\t}\n\t\t}\n\t\tquery.close();\n\t}", "title": "" }, { "docid": "5279fc82ddd2326151a80baeaf9271c0", "score": "0.54820347", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n baselineTextfield = new javax.swing.JTextField();\n minTextField = new javax.swing.JTextField();\n baselineLabel = new javax.swing.JLabel();\n maxLabel = new javax.swing.JLabel();\n minLabel = new javax.swing.JLabel();\n maxTextField = new javax.swing.JTextField();\n buttonsPanel = new javax.swing.JPanel();\n leftButtonsPanel = new javax.swing.JPanel();\n scaleToFitAllButton = new javax.swing.JButton();\n rightButtonsPanel = new javax.swing.JPanel();\n okButton = new javax.swing.JButton();\n cancelButton = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n scaleToIndividualSequencesCheckbox = new javax.swing.JCheckBox();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setName(\"Form\"); // NOI18N\n\n jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel1.setName(\"jPanel1\"); // NOI18N\n\n baselineTextfield.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(motiflab.gui.MotifLabApp.class).getContext().getResourceMap(SetRangeDialog.class);\n baselineTextfield.setText(resourceMap.getString(\"baselineTextfield.text\")); // NOI18N\n baselineTextfield.setName(\"baselineTextfield\"); // NOI18N\n\n minTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n minTextField.setText(resourceMap.getString(\"minTextField.text\")); // NOI18N\n minTextField.setName(\"minTextField\"); // NOI18N\n\n baselineLabel.setText(resourceMap.getString(\"baselineLabel.text\")); // NOI18N\n baselineLabel.setName(\"baselineLabel\"); // NOI18N\n\n maxLabel.setText(resourceMap.getString(\"maxLabel.text\")); // NOI18N\n maxLabel.setName(\"maxLabel\"); // NOI18N\n\n minLabel.setText(resourceMap.getString(\"minLabel.text\")); // NOI18N\n minLabel.setName(\"minLabel\"); // NOI18N\n\n maxTextField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n maxTextField.setText(resourceMap.getString(\"maxTextField.text\")); // NOI18N\n maxTextField.setName(\"maxTextField\"); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(maxLabel)\n .addComponent(baselineLabel)\n .addComponent(minLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(minTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 225, Short.MAX_VALUE)\n .addComponent(maxTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 225, Short.MAX_VALUE)\n .addComponent(baselineTextfield, javax.swing.GroupLayout.DEFAULT_SIZE, 225, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(minLabel)\n .addComponent(minTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(maxLabel)\n .addComponent(maxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(baselineLabel)\n .addComponent(baselineTextfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n buttonsPanel.setName(\"buttonsPanel\"); // NOI18N\n buttonsPanel.setLayout(new java.awt.BorderLayout());\n\n leftButtonsPanel.setName(\"leftButtonsPanel\"); // NOI18N\n leftButtonsPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));\n\n scaleToFitAllButton.setText(resourceMap.getString(\"scaleToFitAllButton.text\")); // NOI18N\n scaleToFitAllButton.setToolTipText(resourceMap.getString(\"scaleToFitAllButton.toolTipText\")); // NOI18N\n scaleToFitAllButton.setName(\"scaleToFitAllButton\"); // NOI18N\n scaleToFitAllButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n scaleToFitAllButtonActionPerformed(evt);\n }\n });\n leftButtonsPanel.add(scaleToFitAllButton);\n\n buttonsPanel.add(leftButtonsPanel, java.awt.BorderLayout.WEST);\n\n rightButtonsPanel.setName(\"rightButtonsPanel\"); // NOI18N\n rightButtonsPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));\n\n okButton.setText(resourceMap.getString(\"okButton.text\")); // NOI18N\n okButton.setName(\"okButton\"); // NOI18N\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okButtonActionPerformed(evt);\n }\n });\n rightButtonsPanel.add(okButton);\n\n cancelButton.setText(resourceMap.getString(\"cancelButton.text\")); // NOI18N\n cancelButton.setName(\"cancelButton\"); // NOI18N\n rightButtonsPanel.add(cancelButton);\n\n buttonsPanel.add(rightButtonsPanel, java.awt.BorderLayout.EAST);\n\n jPanel2.setName(\"jPanel2\"); // NOI18N\n jPanel2.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));\n\n scaleToIndividualSequencesCheckbox.setText(resourceMap.getString(\"scaleToIndividualSequencesCheckbox.text\")); // NOI18N\n scaleToIndividualSequencesCheckbox.setName(\"scaleToIndividualSequencesCheckbox\"); // NOI18N\n jPanel2.add(scaleToIndividualSequencesCheckbox);\n\n buttonsPanel.add(jPanel2, java.awt.BorderLayout.NORTH);\n\n getContentPane().add(buttonsPanel, java.awt.BorderLayout.SOUTH);\n\n pack();\n }", "title": "" }, { "docid": "7d8fb2c0f3fdc95118d2324bc281e4c6", "score": "0.54655766", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n GetValueDialog dialog = new GetValueDialog(dialogTitle, upperLabelText, chart, \"upperDomain\");\n dialog.pack();\n dialog.setVisible(true);\n //chart.getXYPlot().getDomainAxis().setUpperBound(9);\n }", "title": "" }, { "docid": "584a99dbc08637726f600a4cf621a2ca", "score": "0.5417349", "text": "public Argument setRange(int min, int max)\n\t{\n\t\tif (this.getType() != ParamType.STRING)\n\t\t{\n\t\t\tthis.min = min;\n\t\t\tthis.max = max;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.min = 0;\n\t\t\tthis.max = max;\n\t\t}\n\n\t\tif (min != Integer.MIN_VALUE || max != Integer.MAX_VALUE)\n\t\t\tthis.hasRange = true;\n\n\t\treturn this;\n\t}", "title": "" }, { "docid": "3258975e8b13ccfd749a24a1ecd40253", "score": "0.54037553", "text": "public final void set_range (OECatalogRange range) {\n\t\tthis.tbegin = range.tbegin;\n\t\tthis.tend = range.tend;\n\t\tthis.mag_min_sim = range.mag_min_sim;\n\t\tthis.mag_max_sim = range.mag_max_sim;\n\t\tthis.mag_min_lo = range.mag_min_lo;\n\t\tthis.mag_min_hi = range.mag_min_hi;\n\t\tthis.mag_max_lo = range.mag_max_lo;\n\t\tthis.mag_max_hi = range.mag_max_hi;\n\t\tthis.gen_size_target = range.gen_size_target;\n\t\tthis.mag_excess = range.mag_excess;\n\t\tthis.mag_adj_meth = range.mag_adj_meth;\n\t\tthis.madj_gen_br = range.madj_gen_br;\n\t\tthis.madj_derate_br = range.madj_derate_br;\n\t\tthis.madj_exceed_fr = range.madj_exceed_fr;\n\t\tthis.madj_target_hi = range.madj_target_hi;\n\t\treturn;\n\t}", "title": "" }, { "docid": "97f5db2ad3d9a700c0a52f0cc0beaaf5", "score": "0.53821915", "text": "public void setRange(SourceRange range) {\n this.range = range;\n }", "title": "" }, { "docid": "5fd16c74942b1cf7fe56528e92e33c11", "score": "0.5355505", "text": "public void selectCalorieRange(View view){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.calorie_title);\n\n\n\n // Setup the new range seek bar\n final RangeSeekBar<Integer> rangeSeekBar = new RangeSeekBar<Integer>(this);\n // Set the range\n rangeSeekBar.setRangeValues(0, 2000);\n rangeSeekBar.setSelectedMinValue(20);\n rangeSeekBar.setSelectedMaxValue(657);\n\n rangeSeekBar.setTextAboveThumbsColorResource(android.R.color.black);\n\n LinearLayout linear = new LinearLayout(this);\n\n linear.addView(rangeSeekBar);\n\n\n\n\n builder.setPositiveButton(R.string.confirm, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n calorieMin = rangeSeekBar.getSelectedMinValue();\n calorieMax = rangeSeekBar.getSelectedMaxValue();\n\n\n }\n })\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n calorieMin=0;\n calorieMax=0;\n\n\n }\n });\n builder.setView(linear);\n // 3. Get the AlertDialog from create()\n builder.show();\n\n\n\n }", "title": "" }, { "docid": "f25cca33ee264d63267f24959750af5d", "score": "0.5342082", "text": "public void setRange(final String range) {\n setAttribute(ATTRIBUTE_RANGE, range);\n }", "title": "" }, { "docid": "1b2ecf7b2eab03327a8d4ba341ca3f37", "score": "0.53394103", "text": "void setOldRange(RangeI oldRange) {\n this.oldRange = oldRange;\n }", "title": "" }, { "docid": "7ce189f95534ee0965f7a124b5fcd904", "score": "0.5291844", "text": "private void setRange(double[] data) {\n max = Double.NEGATIVE_INFINITY;\n min = Double.POSITIVE_INFINITY;\n for (double d : data) {\n if (d > max) { max = d; }\n if (d < min) { min = d; }\n }\n }", "title": "" }, { "docid": "e1dd7739812770bbe1b53e25aff8b40a", "score": "0.5223271", "text": "public void setRange(String range) {\r\n this.range = range == null ? null : range.trim();\r\n }", "title": "" }, { "docid": "eb9985216fad6d44faa3507496cfbd55", "score": "0.51928455", "text": "@Nonnull\n public Builder range(NormalizationRange range)\n {\n element.setRange(range);\n\n return this;\n }", "title": "" }, { "docid": "c89dccfe96fe89d30ba687e38927efac", "score": "0.5185968", "text": "public void setRange(float range) {\n\t\tthis.range = range;\n\t}", "title": "" }, { "docid": "66f56e2c63ef7b830bb9d63e8e5bb23f", "score": "0.51745945", "text": "@Override\n public void setParamValueRange(String label, Object minValue, Object maxValue) {\n int n = _catalog.getNumParams();\n for (int i = 0; i < n; i++) {\n FieldDesc param = _catalog.getParamDesc(i);\n if (param != null) {\n String name = param.getName();\n String id = param.getId();\n if ((id != null && id.equalsIgnoreCase(label)) || (name != null && name.equalsIgnoreCase(label))) {\n if (param.isMin()) {\n setParamValue(i, minValue);\n } else if (param.isMax()) {\n setParamValue(i, maxValue);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "272bf57af8def9b69cfee0c533c4d38b", "score": "0.51719093", "text": "public void setRange(double minimum, double maximum) {\n setMinimum(minimum);\n setMaximum(maximum);\n }", "title": "" }, { "docid": "b51c3680c5ec407272a2904f6ad03810", "score": "0.51440406", "text": "RangeAxis createRangeAxis(String name, String value);", "title": "" }, { "docid": "2154a56c892aacae9c38f71d5b0f86d8", "score": "0.5140889", "text": "private void setRange(Iterable<Double> data) {\n max = Double.NEGATIVE_INFINITY;\n min = Double.POSITIVE_INFINITY;\n for (double d : data) {\n if (d > max) { max = d; }\n if (d < min) { min = d; }\n }\n }", "title": "" }, { "docid": "87ea1448f233121b3b8dde59ce818167", "score": "0.51130766", "text": "public void setRange(double min, double max) {\n\t\tthis.min = min;\n\t\tthis.max = max;\n\t}", "title": "" }, { "docid": "c70eaef48c2568d44743b1d11184ffc9", "score": "0.51099074", "text": "@Override\n public void setParamValueRange(String label, double minValue, double maxValue) {\n setParamValueRange(label, new Double(minValue), new Double(maxValue));\n }", "title": "" }, { "docid": "08423116adc39b9de3121f465bea3c8a", "score": "0.50636196", "text": "private void setParamRangeOId(DomainType domainType, String name, Map<String, String> minMaxOId) {\n domainType.setName(name);\n String minObservationId = minMaxOId.get(SosConstants.MIN_VALUE);\n String maxObservationId = minMaxOId.get(SosConstants.MAX_VALUE);\n if (minObservationId == null || maxObservationId == null || minObservationId.equals(\"\")\n || maxObservationId.equals(\"\")) {\n domainType.addNewNoValues();\n } else {\n RangeType range = domainType.addNewAllowedValues().addNewRange();\n range.addNewMinimumValue().setStringValue(minObservationId);\n range.addNewMaximumValue().setStringValue(maxObservationId);\n }\n }", "title": "" }, { "docid": "9905364f9e7812ee378b2db601e11e1b", "score": "0.50584745", "text": "public void getInitialRange(Rectangle2D.Double range)\n {\n range.x = -2;\n range.y = -1.5;\n range.height = 3;\n range.width = 3;\n }", "title": "" }, { "docid": "43ad39967df78def3dd5c0caefb7053e", "score": "0.504718", "text": "public final void setScaleRange(Range scaleRange) {\r\n\tif (getDisplayAdapter()==null){\r\n\t\treturn;\r\n\t}\r\n\tgetDisplayAdapter().setScaleRange(scaleRange);\r\n\tRange oldValue = fieldScaleRange;\r\n\tfieldScaleRange = scaleRange;\r\n\tfirePropertyChange(\"scaleRange\", oldValue, scaleRange);\r\n}", "title": "" }, { "docid": "4b6b2be267c4945ecc0af1d741950e82", "score": "0.50356233", "text": "public XMLDataRange() { \n \n }", "title": "" }, { "docid": "f9be4022d62b95f073bb0b9528354486", "score": "0.5034171", "text": "public PgRangeRecord() {\n super(PgRange.PG_RANGE);\n }", "title": "" }, { "docid": "ca497250723d43d35ed1598ee680db3e", "score": "0.5032843", "text": "public static RangeFragment newInstance() {\n RangeFragment fragment = new RangeFragment();\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 }", "title": "" }, { "docid": "70e190b548009ac703bdd27fc25455e1", "score": "0.49669486", "text": "public GramCreationDialog( PlotControlFrame f )\n {\n super( \"Periodogram Analysis\", false, true, false, false );\n \n frame = f; // grab the interesting frame\n \n this.setSize( new Dimension( 400, 190 ) );\n try {\n // Build the User Interface\n initUI( );\n } catch( Exception e ) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5c896653b03ecda5007805563fcb11ad", "score": "0.49586964", "text": "public void setRange(float low, float high)\n {\n this.low = low;\n this.high = high;\n xspline.setRange(low, high);\n yspline.setRange(low, high);\n }", "title": "" }, { "docid": "a6b07b05afcec3f2194ca90c8c2ec08b", "score": "0.4953812", "text": "BoundedRangeModel getRangeModel();", "title": "" }, { "docid": "dcf9c8a3a7d8f124083c19720ea067fb", "score": "0.4902888", "text": "public void formNewSelectionRange(int startPos, int endPos) {\n assert(!mSelection.contains(mAdapter.getModelId(startPos)));\n startRangeSelection(startPos);\n snapRangeSelection(endPos);\n }", "title": "" }, { "docid": "d91b0e8a18efa9c7f57e32a0dc4a6c15", "score": "0.48870292", "text": "public void setSelectionX(long begin, long end) {\n\t\t// lg.debug(\"Sel X: \" + begin + \"-\" + end);\n\t\tselectedAreaXbegin = begin;\n\t\tselectedAreaXend = end;\n\t\trepaint();\n\t}", "title": "" }, { "docid": "bdb4fa477adef146ac282227243e88d9", "score": "0.4884215", "text": "public void setRangeBegin(int value) {\n this.rangeBegin = value;\n }", "title": "" }, { "docid": "3e20307af3f814439c26b76dbf64b02d", "score": "0.48827597", "text": "public Register() {\n setLocationRelativeTo(null);\n initComponents();\n d.setSelectableDateRange(new java.util.Date(\"01/01/1960\"),\n new java.util.Date());\n }", "title": "" }, { "docid": "d8905d5d33efc620ee5acf9f3998d72a", "score": "0.48733783", "text": "public void setBeginPeriodDate() {\n mStartPeriodPickerDialog = new DatePickerDialog(getContext(), new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n mRealEstateViewModel.beginPeriodDate.setValue(newDate.getTime());\n\n // Display date selected\n mRealEstateSearchDialogBinding.searchBeginPeriodButton.setText( displayDateFormatter.format(newDate.getTime()));\n\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n mStartPeriodPickerDialog.setButton(DialogInterface.BUTTON_NEGATIVE, getString(R.string.cancel), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if (which == DialogInterface.BUTTON_NEGATIVE) {\n Log.i(TAG,\" Date is cancel \");\n mRealEstateViewModel.beginPeriodDate.setValue(null);\n }\n }\n });\n }", "title": "" }, { "docid": "0e976fb2b654efcfb7cdfd8997df6d36", "score": "0.48335892", "text": "public TimeRange() {\n initComponents();\n setVisible(true);\n setSize(getPreferredSize());\n }", "title": "" }, { "docid": "bd0ca99a5796f2d257309b51163e8ece", "score": "0.48079315", "text": "public Range getRange() {\n return range;\n }", "title": "" }, { "docid": "aa221a683bd35cfed09215eff399490d", "score": "0.48011735", "text": "public Range() {\n }", "title": "" }, { "docid": "23887191af7c4819c17e88c5aa3d00f7", "score": "0.47991002", "text": "public Range() {\n\n\t}", "title": "" }, { "docid": "2ae892999e1f89ebb1122f91497bb224", "score": "0.4797444", "text": "public void setRange(int bottom, int top, int block);", "title": "" }, { "docid": "db9d2dc5338473a988d1773479149cf7", "score": "0.47937128", "text": "public void setRangeStart(String rangeStart) {\n\t\tthis.rangeStart = rangeStart;\n\t}", "title": "" }, { "docid": "d52a732f55505a48d20aaecd77b1cafb", "score": "0.47916996", "text": "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\tprivate RangeFieldItem(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "title": "" }, { "docid": "997a8ce6ab2da5d4c40c6b48ac588fa1", "score": "0.47900072", "text": "public Range getRange() {\n \treturn range;\n }", "title": "" }, { "docid": "ca48af42a77f47bde48a9f80641b67cc", "score": "0.4782753", "text": "public double setRange(double r) {\n\t\treturn range = r;\n\t}", "title": "" }, { "docid": "310b745e7cb87c1d578cbfc5bb9b8d7e", "score": "0.478218", "text": "public void setRange(int min, int max) {\n if(min > max){\n minValue = SEEKBAR_DEFAULT_MIN;\n maxValue = SEEKBAR_DEFAULT_MAX;\n }else{\n minValue = min;\n maxValue = max;\n }\n\n esbSeekBar.setMax(getRange());\n\n if(!isInRange(currentValue)) {\n if (currentValue < minValue)\n currentValue = minValue;\n\n if (currentValue > maxValue)\n currentValue = maxValue;\n\n setValue(currentValue);\n }\n }", "title": "" }, { "docid": "93dd6f0b2a30f38a3f8de6307f2f243c", "score": "0.4780579", "text": "public PgRangeRecord(Long rngtypid, Long rngsubtype, Long rngcollation, Long rngsubopc, String rngcanonical, String rngsubdiff) {\n super(PgRange.PG_RANGE);\n\n set(0, rngtypid);\n set(1, rngsubtype);\n set(2, rngcollation);\n set(3, rngsubopc);\n set(4, rngcanonical);\n set(5, rngsubdiff);\n }", "title": "" }, { "docid": "3b34f82924e705d572d0bebdbd263361", "score": "0.47768086", "text": "public void setAxisRange(AxisEnum axis, double min, double max) {\r\n if (m_chart != null) {\r\n NumberAxis rangeAxis = getAxis(axis);\r\n rangeAxis.setRange(min, max);\r\n } \r\n \r\n switch (axis) {\r\n case X:\r\n m_xAxisRange = new double[]{min, max};\r\n break;\r\n case Y:\r\n m_yAxisRange = new double[]{min, max};\r\n break;\r\n }\r\n }", "title": "" }, { "docid": "d998e092d48fc77020887e4169565d29", "score": "0.47744313", "text": "private static IRegion modelRange2WidgetRange(IRegion region, ITextViewer textViewer) {\n \t\tif (textViewer instanceof ITextViewerExtension5) {\n \t\t\tITextViewerExtension5 extension= (ITextViewerExtension5) textViewer;\n \t\t\treturn extension.modelRange2WidgetRange(region);\n \t\t}\n \n \t\tIRegion visibleRegion= textViewer.getVisibleRegion();\n \t\tint start= region.getOffset() - visibleRegion.getOffset();\n \t\tint end= start + region.getLength();\n \t\tif (end > visibleRegion.getLength())\n \t\t\tend= visibleRegion.getLength();\n \n \t\treturn new Region(start, end - start);\n \t}", "title": "" }, { "docid": "76b175996931a897bac591e02dbabb89", "score": "0.4774348", "text": "@Override\n protected Dialog onCreateDialog(int id) {\n final Calendar c = Calendar.getInstance();\n switch (id) {\n case MONTHYEARDATESELECTOR_ID:\n return new MonthYearDateSlider(this,mMonthYearSetListener,c);\n }\n return null;\n }", "title": "" }, { "docid": "72f082651a3d0c38895a47e733122249", "score": "0.4772416", "text": "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n LayoutInflater inflater = (LayoutInflater) getContext().getSystemService\n (Context.LAYOUT_INFLATER_SERVICE);\n Bundle stretchParameters = getArguments();\n if (stretchParameters != null) {\n mMin = stretchParameters.getInt(\"min\");\n mMax = stretchParameters.getInt(\"max\");\n mPercentClipMin = stretchParameters.getInt(\"percent_clip_min\");\n mPercentClipMax = stretchParameters.getInt(\"percent_clip_max\");\n mStdDevFactor = stretchParameters.getInt(\"std_dev_factor\");\n mStretchType = (MainActivity.StretchType) stretchParameters.getSerializable(\"stretch_type\");\n }\n\n final AlertDialog.Builder paramDialog = new AlertDialog.Builder(getContext());\n @SuppressLint(\"InflateParams\")\n final View dialogView = inflater.inflate(R.layout.stretch_dialog_box, null);\n paramDialog.setView(dialogView);\n paramDialog.setTitle(R.string.stretch_rendering_parameters);\n paramDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dismiss();\n }\n });\n paramDialog.setPositiveButton(\"Render\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n ParametersListener activity = (ParametersListener) getActivity();\n activity.returnParameters(mMin, mMax, mPercentClipMin, mPercentClipMax, mStdDevFactor, mStretchType);\n }\n });\n // min max ui elements\n mMinTextView = dialogView.findViewById(R.id.min_value_text_view);\n mMaxTextView = dialogView.findViewById(R.id.max_value_text_view);\n mMinSeekBar = dialogView.findViewById(R.id.min_seek_bar);\n mMaxSeekBar = dialogView.findViewById(R.id.max_seek_bar);\n mMinSeekBar.setMax(255);\n mMaxSeekBar.setMax(255);\n mCurrMinTextView = dialogView.findViewById(R.id.curr_min_text_view);\n mCurrMaxTextView = dialogView.findViewById(R.id.curr_max_text_view);\n updateSeekBar(mMinSeekBar, mMin, mCurrMinTextView);\n updateSeekBar(mMaxSeekBar, mMax, mCurrMaxTextView);\n // percent clip ui elements\n mPercentClipMinTextView = dialogView.findViewById(R.id.percent_clip_min_value_text_view);\n mPercentClipMaxTextView = dialogView.findViewById(R.id.percent_clip_max_value_text_view);\n mPercentClipMinSeekBar = dialogView.findViewById(R.id.percent_clip_min_seek_bar);\n mPercentClipMaxSeekBar = dialogView.findViewById(R.id.percent_clip_max_seek_bar);\n mPercentClipMinSeekBar.setMax(99);\n mPercentClipMaxSeekBar.setMax(99);\n mCurrPercentClipMinTextView = dialogView.findViewById(R.id.curr_percent_clip_min_text_view);\n mCurrPercentClipMaxTextView = dialogView.findViewById(R.id.curr_percent_clip_max_text_view);\n updateSeekBar(mPercentClipMinSeekBar, mPercentClipMin, mCurrPercentClipMinTextView);\n updateSeekBar(mPercentClipMaxSeekBar, mPercentClipMax, mCurrPercentClipMaxTextView);\n // standard deviation ui elements\n mStdDevTextView = dialogView.findViewById(R.id.std_dev_text_view);\n mStdDevSeekBar = dialogView.findViewById(R.id.std_dev_seek_bar);\n mStdDevSeekBar.setMax(3);\n mCurrStdDevTextView = dialogView.findViewById(R.id.curr_std_dev_text_view);\n updateSeekBar(mStdDevSeekBar, mStdDevFactor, mCurrStdDevTextView);\n // set ui to previous selection\n if (mStretchType == MainActivity.StretchType.MIN_MAX) {\n setMinMaxVisibility(true);\n setPercentClipVisibility(false);\n setStdDevVisibility(false);\n } else if (mStretchType == MainActivity.StretchType.PERCENT_CLIP) {\n setMinMaxVisibility(false);\n setPercentClipVisibility(true);\n setStdDevVisibility(false);\n } else if (mStretchType == MainActivity.StretchType.STANDARD_DEVIATION) {\n setMinMaxVisibility(false);\n setPercentClipVisibility(false);\n setStdDevVisibility(true);\n }\n // seek bar listeners\n mMinSeekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n mMin = progress;\n updateSeekBar(mMinSeekBar, mMin, mCurrMinTextView);\n // move max to march min if max goes below min\n if (mMax < mMin) {\n mMax = mMin;\n updateSeekBar(mMaxSeekBar, mMax, mCurrMaxTextView);\n }\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) { }\n });\n mMaxSeekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n mMax = progress;\n updateSeekBar(mMaxSeekBar, mMax, mCurrMaxTextView);\n // move min to match max if min goes above max\n if (mMin > mMax) {\n mMin = mMax;\n updateSeekBar(mMinSeekBar, mMin, mCurrMinTextView);\n }\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) { }\n });\n\n mPercentClipMinSeekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n mPercentClipMin = progress;\n updateSeekBar(mPercentClipMinSeekBar, mPercentClipMin, mCurrPercentClipMinTextView);\n if (mPercentClipMin + mPercentClipMax > 100) {\n // constrain min + max <= 100\n mPercentClipMax = 100 - mPercentClipMin;\n updateSeekBar(mPercentClipMaxSeekBar, mPercentClipMax, mCurrPercentClipMaxTextView);\n }\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) { }\n });\n\n mPercentClipMaxSeekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n mPercentClipMax = progress;\n updateSeekBar(mPercentClipMaxSeekBar, mPercentClipMax, mCurrPercentClipMaxTextView);\n if (mPercentClipMin + mPercentClipMax > 100) {\n // constrain min + max <= 100\n mPercentClipMin = 100 - mPercentClipMax;\n updateSeekBar(mPercentClipMinSeekBar, mPercentClipMin, mCurrPercentClipMinTextView);\n }\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) { }\n });\n mStdDevSeekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n mStdDevFactor = progress;\n updateSeekBar(mStdDevSeekBar, mStdDevFactor, mCurrStdDevTextView);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) { }\n });\n // stretch type spinner\n List<String> stretchTypeArray = new ArrayList<>();\n stretchTypeArray.add(MainActivity.StretchType.MIN_MAX.toString()); //ordinals:0\n stretchTypeArray.add(MainActivity.StretchType.PERCENT_CLIP.toString()); //1\n stretchTypeArray.add(MainActivity.StretchType.STANDARD_DEVIATION.toString()); //2\n ArrayAdapter<String> stretchTypeSpinnerAdapter = new ArrayAdapter<>(getContext(), R.layout.stretch_spinner_text_view,\n stretchTypeArray);\n Spinner stretchTypeSpinner = dialogView.findViewById(R.id.stretch_type_spinner);\n stretchTypeSpinner.setAdapter(stretchTypeSpinnerAdapter);\n stretchTypeSpinner.setSelection(mStretchType.ordinal());\n stretchTypeSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n switch (position) {\n case 0:\n mStretchType = MainActivity.StretchType.MIN_MAX;\n setMinMaxVisibility(true);\n setPercentClipVisibility(false);\n setStdDevVisibility(false);\n break;\n case 1:\n mStretchType = MainActivity.StretchType.PERCENT_CLIP;\n setMinMaxVisibility(false);\n setPercentClipVisibility(true);\n setStdDevVisibility(false);\n break;\n case 2:\n mStretchType = MainActivity.StretchType.STANDARD_DEVIATION;\n setMinMaxVisibility(false);\n setPercentClipVisibility(false);\n setStdDevVisibility(true);\n break;\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n return paramDialog.create();\n }", "title": "" }, { "docid": "0e1939f3ce7f9a02a82228ad19d2c89a", "score": "0.47693646", "text": "public ValueRange range(TemporalField paramTemporalField) {\n/* 527 */ return super.range(paramTemporalField);\n/* */ }", "title": "" }, { "docid": "c64b62025b87c58f255ad62f7884e2c1", "score": "0.47691485", "text": "public int getRange() {\r\n return range;\r\n }", "title": "" }, { "docid": "99736467c460976b22df671c9f9692bb", "score": "0.47663528", "text": "public final Range getDataRange() {\r\n\treturn fieldDataRange;\r\n}", "title": "" }, { "docid": "3efb2e45e115244a5b9e9f6276f9da65", "score": "0.47491208", "text": "@Override\r\n\tprotected Dialog onCreateDialog(int id) {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\r\n\t\tswitch (id) {\r\n\t\tcase 5:\r\n\t\t\treturn new DateTimeSlider(this,mDateTimeSetListener,c);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "0e6a18516cafe96517a2722c81e88f25", "score": "0.47447777", "text": "void showDialog() {\r\n \tRoi roi = imp.getRoi();\r\n \tboolean rectOrOval = roi!=null && (roi.getType()==Roi.RECTANGLE||roi.getType()==Roi.OVAL);\r\n\toval = rectOrOval && (roi.getType()==Roi.OVAL);\t// Handle existing oval ROI\r\n \tif (roi==null || !rectOrOval)\r\n \t\tdrawRoi();\r\n GenericDialog gd = new GenericDialog(\"Specify\");\r\n gd.addNumericField(\"Width:\", iWidth, 0);\r\n gd.addNumericField(\"Height:\", iHeight, 0);\r\n gd.addNumericField(\"X Coordinate:\", iXROI, 0);\r\n gd.addNumericField(\"Y Coordinate:\", iYROI, 0);\r\n if (stackSize>1)\r\n \tgd.addNumericField(\"Slice:\", iSlice, 0);\r\n gd.addCheckbox(\"Oval\", oval);\r\n gd.addCheckbox(\"Centered\",centered);\r\n fields = gd.getNumericFields();\r\n gd.addDialogListener(this);\r\n gd.showDialog();\r\n if (gd.wasCanceled()) {\r\n \t if (roi==null)\r\n \t\timp.killRoi();\r\n \t else // *ALWAYS* restore initial ROI when cancelled\r\n \t\timp.setRoi(roi);\r\n }\r\n }", "title": "" }, { "docid": "e31eca130834465bd3254466f98e95da", "score": "0.4737029", "text": "@Override\n public void run() {\n Display.getDefault().asyncExec(new Runnable() {\n\n public void run() {\n if (_zRangeSelectionDialog == null) {\n Shell shell = new Shell(Display.getDefault().getActiveShell(), SWT.ON_TOP | SWT.APPLICATION_MODAL);\n _zRangeSelectionDialog = new ZRangeSelectionDialog(shell, _viewer);\n }\n if (_zRangeSelectionDialog.getShell() == null || _zRangeSelectionDialog.getShell().isDisposed()) {\n _zRangeSelectionDialog.create();\n _zRangeSelectionDialog.getShell().pack();\n Point size = _zRangeSelectionDialog.getShell().computeSize(250, SWT.DEFAULT);\n _zRangeSelectionDialog.getShell().setSize(size);\n }\n _zRangeSelectionDialog.getShell().setActive();\n _zRangeSelectionDialog.open();\n }\n });\n }", "title": "" }, { "docid": "c81481dc443bab00cadce5281395b8f2", "score": "0.47321162", "text": "public void setIsRange(Boolean isRange) {\n\t\tthis.isRange = isRange;\n\t}", "title": "" }, { "docid": "cf7d8f0e2eee4915eb715361261559f7", "score": "0.47320226", "text": "public AbstractRangeValidator(R minimum, R maximum)\r\n\t{\r\n\t\tsetRange(minimum, maximum);\r\n\t}", "title": "" }, { "docid": "bbc6698678b074ee252f42a26793e473", "score": "0.4721856", "text": "public void selectedRangeAdded(ListView listView, int rangeStart, int rangeEnd);", "title": "" }, { "docid": "c62c292bf6d845ab36ea85c2f325dea7", "score": "0.47130162", "text": "public void build(Dataset data) {\n Instance max = DatasetTools.maxAttributes(data);\n Instance min = DatasetTools.minAttributes(data);\n currentRange = max.minus(min);\n currentMiddle = min.add(max).divide(2);\n\n }", "title": "" }, { "docid": "2117557d851bfd2533927275d908404f", "score": "0.47123185", "text": "public String getRange() {\r\n return range;\r\n }", "title": "" }, { "docid": "1bbaa7bd8f2ad430b06121ceddfb750d", "score": "0.470764", "text": "public void setComboBox(int lowerLimit, int upperLimit) {\n String fromValue = Integer.toString(lowerLimit);\n String toValue = Integer.toString(upperLimit);\n from.setValue(fromValue);\n to.setValue(toValue);\n }", "title": "" }, { "docid": "b8c4bbeaddd7eb89e73ab9f8a6fd2b77", "score": "0.47066417", "text": "@SuppressWarnings(\"deprecation\")\n\tpublic static Dataset createRange(final double start, final double stop, final double step, final int dtype) {\n\t\treturn DatasetFactory.createRange(start, stop, step, dtype);\n\t}", "title": "" }, { "docid": "35859691f2a09a9cc696f5e34c5631ca", "score": "0.47018054", "text": "public void setSelectionWithStyleRanges(int start, int end) {\n if (!styleRangesWithinSel.isEmpty()) {\r\n setStyleRanges(customSelPoint.x, customSelPoint.y - customSelPoint.x, rangesWithinSel, styleRangesWithinSel.toArray(new StyleRange[]{}));\r\n }\r\n customSelPoint = new Point(start, end);\r\n styleRangesWithinSel.clear();\r\n customSelStyleRanges.clear();\r\n rangesWithinSel = null;\r\n customSelRanges = null;\r\n defaultSelPoint = null;\r\n StyleRange[] allStyleRangesWithinSel = getStyleRanges(start, end - start);\r\n if ((allStyleRangesWithinSel != null) && (allStyleRangesWithinSel.length > 0)) {\r\n rangesWithinSel = new int[allStyleRangesWithinSel.length*2];\r\n int i = 0;\r\n List<Point> styleRanges = new ArrayList<>();\r\n for (StyleRange sr : allStyleRangesWithinSel) {\r\n styleRanges.add(new Point(sr.start, sr.length));\r\n rangesWithinSel[i] = sr.start;\r\n rangesWithinSel[i + 1] = sr.length;\r\n i += 2;\r\n styleRangesWithinSel.add(sr);\r\n }\r\n\r\n List<Point> selRanges = new ArrayList<>();\r\n int currentPos = start;\r\n if (rangesWithinSel[0] > start) {\r\n selRanges.add(new Point(start, rangesWithinSel[0] - start));\r\n currentPos = rangesWithinSel[0] + rangesWithinSel[1];\r\n }\r\n i = 0;\r\n while ((currentPos < end) && (i < rangesWithinSel.length - 3)) {\r\n if ((rangesWithinSel[i] + rangesWithinSel[i + 1]) < rangesWithinSel[i + 2]) {\r\n selRanges.add(new Point(rangesWithinSel[i] + rangesWithinSel[i + 1],\r\n rangesWithinSel[i + 2] - (rangesWithinSel[i] + rangesWithinSel[i + 1])));\r\n }\r\n currentPos = rangesWithinSel[i] + rangesWithinSel[i + 1];\r\n i += 2;\r\n }\r\n\r\n if (rangesWithinSel[rangesWithinSel.length - 2] + rangesWithinSel[rangesWithinSel.length - 1] < end) {\r\n selRanges.add(new Point(rangesWithinSel[rangesWithinSel.length - 2] + rangesWithinSel[rangesWithinSel.length - 1],\r\n end - (rangesWithinSel[rangesWithinSel.length - 2] + rangesWithinSel[rangesWithinSel.length - 1])));\r\n }\r\n\r\n if (!selRanges.isEmpty()) {\r\n customSelRanges = new int[selRanges.size()*2];\r\n i = 0;\r\n for (Point selRange : selRanges) {\r\n customSelRanges[i] = selRange.x;\r\n customSelRanges[i + 1] = selRange.y;\r\n customSelStyleRanges.add(new StyleRange(selRange.x, selRange.y,\r\n getSelectionForeground(), getSelectionBackground()));\r\n i += 2;\r\n }\r\n }\r\n\r\n List<Point> allStyleRangesPoint = new ArrayList<>();\r\n allStyleRangesPoint.addAll(styleRanges);\r\n allStyleRangesPoint.addAll(selRanges);\r\n Collections.sort(allStyleRangesPoint, new Comparator<Point>() {\r\n\r\n @Override\r\n public int compare(Point o1, Point o2) {\r\n if ((o1 != null) && (o2 != null)) {\r\n Integer o1Start = o1.x;\r\n Integer o2Start = o2.x;\r\n return o1Start.compareTo(o2Start);\r\n }\r\n return 0;\r\n }\r\n\r\n });\r\n int[] allRanges = new int[allStyleRangesPoint.size()*2];\r\n i = 0;\r\n for (Point currPoint : allStyleRangesPoint) {\r\n allRanges[i] = currPoint.x;\r\n allRanges[i + 1] = currPoint.y;\r\n i += 2;\r\n }\r\n\r\n List<StyleRange> allStyleRanges = new ArrayList<>();\r\n allStyleRanges.addAll(styleRangesWithinSel);\r\n allStyleRanges.addAll(customSelStyleRanges);\r\n Collections.sort(allStyleRanges, new Comparator<StyleRange>() {\r\n\r\n @Override\r\n public int compare(StyleRange o1, StyleRange o2) {\r\n if ((o1 != null) && (o2 != null)) {\r\n Integer o1Start = o1.start;\r\n Integer o2Start = o2.start;\r\n return o1Start.compareTo(o2Start);\r\n }\r\n return 0;\r\n }\r\n });\r\n\r\n setStyleRanges(customSelPoint.x, customSelPoint.y - customSelPoint.x, allRanges, allStyleRanges.toArray(new StyleRange[]{}));\r\n performedCustomSelection = true;\r\n setSelection(start);\r\n } else {\r\n super.setSelection(start, end);\r\n }\r\n selectedWithStyles = new Point(start, end);\r\n }", "title": "" }, { "docid": "2e01f6b8e27e001645c4131008f1f77d", "score": "0.4699824", "text": "Range getRange();", "title": "" }, { "docid": "2e01f6b8e27e001645c4131008f1f77d", "score": "0.4699824", "text": "Range getRange();", "title": "" }, { "docid": "2ae3c4bfbd8200c8317c35ddea12ade0", "score": "0.469535", "text": "public void setNumberRange(Integer numberRange) {\n\t\tthis.numberRange = numberRange;\n\t}", "title": "" }, { "docid": "36be1dfdaf495fd3cf54c5aaa4f4a329", "score": "0.4693028", "text": "public Builder addRange(Number min, Number max) {\r\n return addRange(min, true, max, true);\r\n }", "title": "" }, { "docid": "bf3bbd0aa35525ba59267950a2590070", "score": "0.46804985", "text": "private NumericRangeFacet(String name, List<Range> ranges) {\r\n super(name);\r\n this._ranges.addAll(ranges);\r\n }", "title": "" }, { "docid": "78927f9a3ebfd63b8c08250a9629aefc", "score": "0.4673901", "text": "public int getRange() {\r\n\t\treturn range;\r\n\t}", "title": "" }, { "docid": "29e0a49ee53f9a0f58630361f2b292b1", "score": "0.46635747", "text": "public final OECatalogRange get_range () {\n\t\treturn new OECatalogRange (\n\t\t\ttbegin,\n\t\t\ttend,\n\t\t\tmag_min_sim,\n\t\t\tmag_max_sim,\n\t\t\tmag_min_lo,\n\t\t\tmag_min_hi,\n\t\t\tmag_max_lo,\n\t\t\tmag_max_hi,\n\t\t\tgen_size_target,\n\t\t\tmag_excess,\n\t\t\tmag_adj_meth,\n\t\t\tmadj_gen_br,\n\t\t\tmadj_derate_br,\n\t\t\tmadj_exceed_fr,\n\t\t\tmadj_target_hi\n\t\t);\n\t}", "title": "" }, { "docid": "a61e920f9d8404b2b8a2f1c5145df98b", "score": "0.46552423", "text": "public Range getRange() {\r\n\t\treturn range;\r\n\t}", "title": "" }, { "docid": "55080aebba33611e58d665ad4c85920f", "score": "0.4650219", "text": "public void setRangeEnd(int value) {\n this.rangeEnd = value;\n }", "title": "" }, { "docid": "79bce262d2147dcdc29cd68fb250edfd", "score": "0.46459147", "text": "public abstract Dialog showEditValueDialog(int index);", "title": "" }, { "docid": "4e17e1cb1625f26a0943ff0b747c9e4d", "score": "0.46427932", "text": "public FeSet with(FeRangeElement value) {\n\tif (includes(value)) {\n\t\treturn this;\n\t}\n\telse {\n\t\treturn FeSet.construct((edition().with(iDSpace().newID(), value)));\n\t}\n/*\nudanax-top.st:25245:FeSet methodsFor: 'accessing'!\n{FeSet CLIENT} with: value {FeRangeElement}\n\t\"Add a RangeElement to the set\"\n\t\n\t(self includes: value)\n\t\tifTrue: [^self]\n\t\tifFalse: [^FeSet construct: (self edition\n\t\t\twith: self iDSpace newID\n\t\t\twith: value)]!\n*/\n}", "title": "" }, { "docid": "c76c1be271c63b11dc88f7ff077abc1a", "score": "0.46377906", "text": "public static Button addDeleteRangeButton(ImageWindow window, int classIndex) {\r\n\t\t Button delRange = new Button(\"delete range\"); \r\n\t\t delRange.addActionListener(new ActionListener() { \r\n\t\t @Override \r\n\t\t public void actionPerformed(ActionEvent ae) {\r\n\t\t \tImagePlus classImage = window.getImagePlus();\r\n\t\t \t\tint nSlices = classImage.getNSlices();\r\n\t\t \t\tint currentSlice = classImage.getCurrentSlice();\r\n\t\t \t\t// user dialog to indicate deletion range\r\n\t\t \tGenericDialog gd = new GenericDialog(\"Indicate Range:\");\r\n\t\t \tgd.addSlider(\"From: \", 1, nSlices, currentSlice, 1);\r\n\t\t \tgd.addSlider(\"To: \", 1, nSlices, currentSlice, 1);\r\n\t\t\t\t\tgd.showDialog();\r\n\t\t\t\t\tif (gd.wasCanceled()) return;\r\n\t\t\t\t\tint beginIdx = (int)gd.getNextNumber();\r\n\t\t\t\t\tint endIdx = (int)gd.getNextNumber();\r\n\t\t\t\t\tif (endIdx<beginIdx) {\t// swap begin and end slice index, so (begin < end)\r\n\t\t\t\t\t\tint temp = endIdx;\r\n\t\t\t\t\t\tendIdx = beginIdx;\r\n\t\t\t\t\t\tbeginIdx = temp;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfor (int idx=endIdx; idx>=beginIdx; idx--)\r\n\t\t\t\t\t\tclassWiseResult.get(classIndex).remove(idx-1);\t// update class wise result arraylist\r\n\t\t\t\t\tif (endIdx==nSlices && beginIdx==1) {\t// whole range, then close the image stack\r\n\t\t\t\t\t\tclassImage.changes=false;\r\n\t\t\t\t\t\tclassImage.close();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tint range = endIdx - beginIdx + 1;\t// closed range between begin and end idx [beginIdx, endIdx];\r\n\t\t\t\t\t// prepare image stack and overlay\r\n\t\t\t\t\tImageStack stack = classImage.getStack();\r\n\t\t\t\t\tOverlay overlay = classImage.getOverlay();\r\n\t\t \t\tOverlay newOverlay = new Overlay();\r\n\t\t \t\tif (overlay!=null) {\r\n\t\t \t\t\tfor (Roi roi : overlay.duplicate().toArray()) {\r\n\t\t \t\t\t\tint roiPosition = roi.getPosition();\r\n\t\t \t\t\t\tif (roiPosition < beginIdx) {\r\n\t\t \t\t\t\t\tnewOverlay.add(roi);\t// roi position before delete index stay the same\r\n\t\t \t\t\t\t} else if (roiPosition > endIdx) {\r\n\t\t \t\t\t\t\troi.setPosition(roiPosition-range);\t// roi position move forward by range\r\n\t\t \t\t\t\t\tnewOverlay.add(roi);\r\n\t\t \t\t\t\t}\t// roi position at delete index will be removed from array\r\n\t\t \t\t\t}\r\n\t\t \t\t\tclassImage.setOverlay(newOverlay);\r\n\t\t \t\t}\r\n\t\t\t\t\tfor (int idx=endIdx; idx>=beginIdx; idx--)\r\n\t\t\t\t\t\tstack.deleteSlice(idx);\t// recursively delete slices from the end to the begin index\r\n\t\t\t\t\tclassImage.setStack(classImage.getTitle(), stack);\r\n\t\t\t\t\tclassImage.changes = true;\r\n\t\t } \r\n\t\t }); \r\n\t\t return delRange;\r\n\t\t}", "title": "" }, { "docid": "abe8f5a00dc704017104745dc881cc39", "score": "0.46339473", "text": "public AgeRange(Integer min, Integer max) {\n\t\tthis.min = min;\n\t\tthis.max = max;\n\t}", "title": "" }, { "docid": "039aa18dc7472a2448c8d9b773e9eea8", "score": "0.4628232", "text": "public void setStartRange(LocalDateTime startRange) { this.startRange.set(startRange); }", "title": "" }, { "docid": "678109cef1669497249b16c5d3271a1e", "score": "0.46261528", "text": "public AttributeValueDialog( AttributeValueObject attributeValueObject )\n {\n super( PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell() );\n this.attributeValueObject = attributeValueObject;\n }", "title": "" }, { "docid": "9a80c0f730b1c751b03d9d57e6aa820d", "score": "0.4618899", "text": "public void generateRange(){\n\t\tdouble min = customRange[0];\n\t\tdouble max = customRange[1];\n\t\tdouble variance = (max - min) / (step - 1);\n\t\tactualValue = new double[step];\n\t\tfor (int i = 0 ; i < (step - 1) ; i++){\n\t\t\tactualValue[i] = min + (i * variance);\n\t\t}\n\t\tactualValue[step - 1] = max;\n\t}", "title": "" }, { "docid": "d17e4708f49706efc14901b261aef78f", "score": "0.46066356", "text": "public final GraphicsAxis setRange(double min, double max){\n //this.axisRange.setMinMax(min, max);\n \tthis.attr.setAxisAutoScale(false);\n this.attr.setAxisMinimum(min);\n this.attr.setAxisMaximum(max);\n if(this.getAttributes().isLog()==true){\n List<Double> ticks = this.attr.getRange().getDimensionTicksLog(this.numberOfMajorTicks);\n //axisLabels.updateLog(ticks);\n } else {\n List<Double> ticks = this.attr.getRange().getDimensionTicks(this.numberOfMajorTicks);\n this.axisTicks.init(ticks);\n //axisLabels.update(ticks);\n }\n return this;\n }", "title": "" }, { "docid": "ae6701e7375b541335e71d011e7dfe98", "score": "0.46027082", "text": "public Range(final int from, final int to){\n\t\tthis(from,to, new StepSize(DEFAULT_STEP));\n\t}", "title": "" }, { "docid": "03a0679b496574ec5ef405528c38b2d7", "score": "0.45997", "text": "private void setBoundaries(){\n double min,max;\n\n try {\n // Get min and max and range between them\n min = Double.parseDouble(this.valueMinField);\n max = Double.parseDouble(this.valueMaxField);\n\n if(min >= max){ // range is invalid\n throw new RuntimeException(\"Max must be greater than min for range\");\n }\n\n // set upper and lower boundaries for reading files later\n this.gradeAnalyzer.setLowerBound(min);\n this.gradeAnalyzer.setUpperBound(max);\n\n // lock upper and lower boundaries - can't change anymore\n this.boundariesLocked = true;\n\n\n recordAction(String.format(\"Set boundaries: %s to %s\\n\", valueMinField, valueMaxField));\n } catch (NumberFormatException e) { // wrong data type\n recordAction(String.format(\"Failed set boundaries: %s to %s\\n\", valueMinField, valueMaxField));\n showError(new RuntimeException(\"Data point(s) is of the wrong data type. Please enter an integer or decimal value for range. (Boundaries have wrong data type)\")); // if it isn't a number\n } catch (Exception e) {\n recordAction(String.format(\"Failed set boundaries: %s to %s\\n\", valueMinField, valueMaxField));\n showError(e); // any other exceptions\n }\n }", "title": "" }, { "docid": "e10da3d80879f67d75637526e767784b", "score": "0.45982847", "text": "public interface SetDateRangeListener {\n /**\n * Listener for values from DateRangePicker\n * \n * @param startYear selected start year\n * @param startMonth selected start month or null\n * @param startWeekday selected start weekday or null\n * @param startDay selected start day of the month or occurrence if startWeekday isn't null\n * @param startVarDate selected start variable date ie easter or null\n * @param endYear selected end year\n * @param endMonth selected end month or null\n * @param endWeekday selected end weekday or null\n * @param endDay selected end day of the month or occurrence if endWeekday isn't null\n * @param endVarDate selected end variable date ie easter or null\n */\n void setDateRange(int startYear, @Nullable Month startMonth, @Nullable WeekDay startWeekday, int startDay, @Nullable VarDate startVarDate, int endYear,\n @Nullable Month endMonth, @Nullable WeekDay endWeekday, int endDay, @Nullable VarDate endVarDate);\n}", "title": "" }, { "docid": "e721f3c7af0040971fe780c7aed6450e", "score": "0.45946032", "text": "private void setEndPeriodDate() {\n mEndPeriodPickerDialog = new DatePickerDialog(getContext(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, month, dayOfMonth);\n\n mRealEstateViewModel.endPeriodDate.setValue(newDate.getTime());\n\n }\n\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n\n mEndPeriodPickerDialog.setButton(DialogInterface.BUTTON_NEGATIVE, getString(R.string.cancel), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if (which == DialogInterface.BUTTON_NEGATIVE) {\n Log.i(TAG,\" Date is cancel \");\n mRealEstateViewModel.endPeriodDate.setValue(null);\n }\n }\n });\n }", "title": "" }, { "docid": "ea09513d6b0b1231f954772df997b30e", "score": "0.45822075", "text": "public void setSelection( final int start, final int end ) {\n checkWidget();\n deselectAll();\n select( start, end );\n int count = itemHolder.size();\n if( end >= 0\n && start <= end\n && ( ( style & SWT.SINGLE ) == 0 || start == end ) \n && count != 0 \n && start < count ) \n {\n setFocusIndex( Math.max( 0, start ) );\n }\n }", "title": "" }, { "docid": "96500020ed264318e63428e1268a6db9", "score": "0.45620713", "text": "public IntIterableRangeSet(IntVar var) {\n this();\n copyFrom(var);\n }", "title": "" }, { "docid": "d94b628ceb93c3b540146fe6da970301", "score": "0.4561593", "text": "public void dialogBuilder(final TextView set, final int position) {\n final AlertDialog.Builder sudokuWords = new AlertDialog.Builder(this);\n sudokuWords.setTitle(\"Select the word to insert\");\n\n /* The list of choices */\n sudokuWords.setItems(model.words.getChoiceWords(), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int dialogChoice) {\n if (dialogChoice != -1) {\n // Set the new value from the dialogue builder\n model.puzzle.setValueWithUndo(position, dialogChoice);\n updateProgressBar();\n set.setText(capitalize(model.getDisplayedTextAt(position)));\n\n }\n }\n });\n sudokuWords.show();\n\n }", "title": "" }, { "docid": "d0e0454f3d151faa37b99fa5c42cc4c0", "score": "0.45596114", "text": "@DISPID(11) //= 0xb. The runtime will prefer the VTID if present\r\n @VTID(30)\r\n word.Range range();", "title": "" }, { "docid": "80233f7bf783a7105153619dddcb34e4", "score": "0.45565253", "text": "void doShowDataSets()\n {\n \n DataSetManager frame = new DataSetManager(projManager.getCurrentProject(), false);\n \n Dimension dlgSize = frame.getPreferredSize();\n Dimension frmSize = getSize();\n Point loc = getLocation();\n frame.setLocation( (frmSize.width - dlgSize.width) / 2 + loc.x,\n (frmSize.height - dlgSize.height) / 2 + loc.y);\n \n \n frame.pack();\n frame.setVisible(true);\n \n }", "title": "" }, { "docid": "fecad07f36fe23e7f6dec41d193bb532", "score": "0.45514542", "text": "public void setLimits(double xmin, double ymin, double xmax, double ymax) {\n\t\tthis.xmin = xmin;\n\t\tthis.ymin = ymin;\n\t\tthis.xmax = xmax;\n\t\tthis.ymax = ymax;\n\t}", "title": "" } ]
cbcf39309285b65326f2d07b835514cf
Internal quicksort method that makes recursive calls. Uses medianofthree partitioning and a cutoff of 10.
[ { "docid": "310376b2eb858b2203024d21efd332b3", "score": "0.6039131", "text": "public static <AnyType extends Comparable<? super AnyType>>\n void quicksort4(AnyType[] a, int left, int right)\n {\n if( left + CUTOFF <= right )\n {\n AnyType pivot = medianElementPivot(a, left, right);\n \n // Begin partitioning\n int i = left, j = right - 1;\n for( ; ; )\n {\n while( a[ ++i ].compareTo( pivot ) < 0 && right > i ) { }\n while( a[ --j ].compareTo( pivot ) > 0 && left < j) { }\n if(i < j)\n swapReferences( a, i, j );\n else\n break;\n }\n\n swapReferences(a, i, right - 1); // Restore pivot\n\n quicksort4(a, left, i - 1); // Sort small elements\n quicksort4(a, i + 1, right); // Sort large elements\n }\n else // Do an insertion sort on the subarray\n insertionSort(a, left, right);\n }", "title": "" } ]
[ { "docid": "38e13617018f15e349c9218fbe0b7f52", "score": "0.7441914", "text": "private static void quickSort(int [] a, int left, int right)\n\t{\n\t\tif (left < right) // more remaining to sort?\n\t\t\t{\n\t // get median of 3\n int pivot = getPivot(a, left, right);\n \n // move pivot out of way\n swap(a, pivot, right);\n pivot = right; // and update index\n \n // get partitions \n int i = left; // move forward from beginning\n int j = right - 1; // move backward from end (skip pivot)\n \n // create partitions by moving larger items to right,\n // and smaller items to left partition\n while (i < j)\n {\n // keep moving i until we find an item that belongs\n // on the other side\n while (a[i] < a[pivot])\n i++;\n // now, i points to first item > pivot value\n \n // keep moving j until we find an item that belongs\n // on the other side\n while (a[j] > a[pivot])\n j--;\n // now, j points to first item < pivot value\n \n if (i < j) // haven't crossed yet?\n {\n swap(a, i, j); \n i++; \n j--; \n }\n }\n // now, the two partitions have been created,\n // so, put pivot back in the middle\n \n swap(a, i, pivot);\n pivot = i; // and update index\n \n // partitions are ready, so sort them\n quickSort(a, left, pivot-1);\n quickSort(a, pivot+1, right);\n \n } \n }", "title": "" }, { "docid": "cde70430168a53d94df325bf023e9732", "score": "0.7418866", "text": "public static <AnyType extends Comparable<? super AnyType>>\n void quicksort3(AnyType[] a, int left, int right)\n {\n if(left + CUTOFF <= right )\n {\n Random random = new Random();\n \n int rand1 = random.nextInt(right - left) + left;\n int rand2 = random.nextInt(right - left) + left;\n int rand3 = random.nextInt(right - left) + left;\n \n AnyType pivot = randomMedianElementPivot(a, right, rand1, rand2, rand3);\n\n // Begin partitioning\n int i = left - 1, j = right;\n for( ; ; )\n {\n while(a[++i].compareTo(pivot) < 0 && right > i) { }\n while(a[--j].compareTo(pivot) > 0 && left < j) { }\n if( i < j )\n swapReferences( a, i, j );\n else\n break;\n }\n\n swapReferences(a, i, right); // Restore pivot\n\n quicksort3(a, left, i - 1); // Sort small elements\n quicksort3(a, i + 1, right); // Sort large elements\n }\n else // Do an insertion sort on the subarray\n insertionSort(a, left, right);\n }", "title": "" }, { "docid": "56129334eeaf7ec86014979a28c78403", "score": "0.7058351", "text": "public static <T extends Comparable<T>> void quicksort(T[] data, int left, int right)\n\t{\n\t\tif ((right - left) > 1)\n\t\t{\n\t\t\tint mid = (left + right) / 2;\n\t\t\t\n\t\t\tint temp = Helper.medianof3(data[0], data[mid], data[data.length - 1]);\n\t\t\tint pivot = 0;\n\t\t\t\n\t\t\tif (temp == 1)\n\t\t\t\tpivot = 0;\n\t\t\tif (temp == 2)\n\t\t\t\tpivot = mid;\n\t\t\tif (temp == 3)\n\t\t\t\tpivot = data.length - 1;\n\t\t\t\n\t\t\tHelper.swap(data, (int)data[pivot], (int)data[0]);\n\t\t\t\n\t\t\tleft = 0;\n\t\t\tright = data.length - 1;\n\t\t}\n\t\t\n\t\tint l = left;\n\t\tint r = right;\n\t\tdo\n\t\t{\n\t\t\twhile (l < r && (int)data[l] <= (int)data[left])\n\t\t\t\tl++;\n\t\t\twhile (l < r && (int)data[r] > (int)data[left])\n\t\t\t\tr--;\n\t\t\tHelper.swap(data, (int)data[l], (int)data[r]);\n\t\t}\n\t\twhile(l < r);\n\t\t\n\t\tif ((int)data[l] > (int)data[left])\n\t\t\tl--;\n\t\t\n\t\tHelper.swap(data, (int)data[left], (int)data[l]);\n\t\t\n\t\tquicksort(data, left, l);\n\t\tquicksort(data, l + 1, right);\n\t\t\n\n\t\t// // base case of recursive function\n\t\t// if (size <= 1)\n\t\t// {\n\t\t// \treturn;\n\t\t// }\n\n\t\t// int mid = (size + 1) / 2;\n\n\t\t// int temp = medianof3(data[0], data[mid], data[size - 1]);\n\t\t// int pivot = 0;\n\n\t\t// // set pivot the the mediam of the numbers\n\t\t// if (temp == 1)\n\t\t// {\n\t\t// \tpivot = 0;\n\t\t// }\n\t\t// if (temp == 2)\n\t\t// {\n\t\t// \tpivot = mid;\n\t\t// }\n\t\t// if (temp == 3)\n\t\t// {\n\t\t// \tpivot = size - 1;\n\t\t// }\n\n\t\t// // perform first swap\n\t\t// swap(data[pivot], data[0]);\n\n\t\t// int left = 0;\n\t\t// int right = size - 1;\n\n\t\t// // shift left and right elements while performing swaps\n\t\t// do\n\t\t// {\n\t\t// \twhile (left < right && data[left] <= data[0])\n\t\t// \t{\n\t\t// \t\tleft++;\n\t\t// \t}\n\t\t// \twhile (left < right && data[right] > data[0])\n\t\t// \t{\n\t\t// \t\tright--;\n\t\t// \t}\n\t\t// \tswap(data[left], data[right]);\n\t\t// }\n\t\t// while (!(left >= right));\n\t\t\n\t\t// if (data[left] > data[0])\n\t\t// {\n\t\t// \tleft--;\n\t\t// }\n\n\t\t// // perform third swap\n\t\t// swap(data[0], data[left]);\n\n\t\t// // recursively iterate through left side\n\t\t// quicksort(data, left);\n\t\t// // recursively iterate through right side\n\t\t// quicksort(data + left + 1, size - left - 1);\n\n\t}", "title": "" }, { "docid": "8f3ea82e231ebac1a3f6d6d64d762614", "score": "0.69671786", "text": "public static void QuickSort3(int[] arr, int start, int end) {\n if (start >= end)\n return;\n\n // Initializing the pointers.\n high = 0;\n low = 0;\n\n // Doing a partition operation and returning the index of the pivot.\n partition(arr, start, end);\n\n // Recurse on the range from start to before pivot.\n QuickSort3(arr, start, low - 1);\n // Recurse on the range from after pivot to end.\n QuickSort3(arr, high + 1, end);\n }", "title": "" }, { "docid": "e629ba873ed49940c67108b82f35f9e7", "score": "0.6924115", "text": "private int medianOfThreePivot(int leftIdx, int rightIdx) {\n T left = array[leftIdx];\n int midIdx = (leftIdx + rightIdx) / 2;\n T mid = array[midIdx];\n T right = array[rightIdx];\n\n // spaghetti median of three algorithm\n // does at most 3 comparisons\n if (comp.compare(left, mid) > 0) {\n if (comp.compare(mid, right) > 0) {\n return midIdx;\n } else if (comp.compare(left, right) > 0) {\n return rightIdx;\n } else {\n return leftIdx;\n }\n } else {\n if (comp.compare(left, right) > 0) {\n return leftIdx;\n } else if (comp.compare(mid, right) > 0) {\n return rightIdx;\n } else {\n return midIdx;\n }\n }\n }", "title": "" }, { "docid": "afff6123e3a53d3a664b1adec871f950", "score": "0.6902533", "text": "private static void quicksort(int[] intArray, int left, int right) {\r\n \r\n if (left + CUTOFF <= right) {\r\n int pivot = median3(intArray, left, right);\r\n\r\n int i = left, j = right - 1;\r\n for (;;) {\r\n while (intArray[++i] < pivot) {\r\n }\r\n while (intArray[--j] > pivot) {\r\n }\r\n if (i < j) {\r\n swapReferences(intArray, i, j);\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n swapReferences(intArray, i, right - 1);\r\n\r\n quicksort(intArray, left, i - 1); \r\n quicksort(intArray, i + 1, right);\r\n }\r\n }", "title": "" }, { "docid": "48385a6f69a3605089391298b5385b7f", "score": "0.68417925", "text": "private static <T extends Comparable<? super T>> T median3(T[] a, int left, int right) {\n int center = (left + right) / 2;\n if (a[center].compareTo(a[left]) < 0)\n swapReferences(a, left, center);\n if (a[right].compareTo(a[left]) < 0)\n swapReferences(a, left, right);\n if (a[right].compareTo(a[center]) < 0)\n swapReferences(a, center, right);\n\n // Place pivot at position right - 1\n swapReferences(a, center, right - 1);\n return a[right - 1];\n }", "title": "" }, { "docid": "1b3837efda19f4056a7552a47808e682", "score": "0.67183393", "text": "public static void quickP3Sort(int[] sortArray, int p, int r)\n\t{\n\t\tint cutoff = 10; // Testing shows inserSort works better when array size <= 10\n\t\t\n\t\tint n = r-p+1;\n\t\tif (n <= cutoff)\n\t\t{\n\t\t\tinsertSort(sortArray, p, r);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint m = median3(sortArray, p, p+(n/2), r);\n\t\tint temp = sortArray[m];\n\t\tsortArray[m] = sortArray[p];\n\t\tsortArray[p] = temp;\n\t\t\n\t\tint q = partition(sortArray, p, r);\n\t\tquickSort(sortArray, p, q-1);\n\t\tquickSort(sortArray, q+1, r);\n\t}", "title": "" }, { "docid": "06370470c345492a8ae75e98981df6f7", "score": "0.6690267", "text": "quickSort(arr[], low, high)\n {\n if (low < high)\n {\n /* pi is partitioning index, arr[pi] is now\n at right place */\n pi = partition(arr, low, high);\n\n quickSort(arr, low, pi - 1); // Before pi\n quickSort(arr, pi + 1, high); // After pi\n }\n }", "title": "" }, { "docid": "7d6d74d86f41980d97aeca2a7eddf068", "score": "0.6603707", "text": "void quicksort(int arr[], int low, int high) \n\t{ \n\t\tif (low < high) \n\t\t{ \n\t\t\t/* pi is partitioning index, arr[pi] is \n\t\t\tnow at right place */\n\t\t\tint pi = partition(arr, low, high); \n\n\t\t\t// Recursively sort elements before partition and after partition \n\t\t\tquicksort(arr, low, pi-1); \n\t\t\tquicksort(arr, pi+1, high); \n\t\t} \n\t}", "title": "" }, { "docid": "1408acaa384cb4a0974586baa824d9da", "score": "0.6549287", "text": "private static void quicksort(int[] a, int first, int last, PivotSelector pivotSelector) {\n if (last - first + 1 < MIN_SIZE) {\n insertionSort(a, first, last);\n } else {\n // create the partition: Smaller | Pivot | Larger\n int pivotIndex = partition (a, first, last, pivotSelector);\n // sort subarrays Smaller and Larger\n quicksort(a, first, pivotIndex - 1, pivotSelector);\n quicksort(a, pivotIndex + 1, last, pivotSelector);\n }\n }", "title": "" }, { "docid": "cd2e027e5e2d8a22e5ee456a78d2fb64", "score": "0.6534135", "text": "private static <T extends Comparable<? super T>> void quickSelect(T[] a, int left, int right, int k) {\n if (left + CUTOFF <= right) {\n T pivot = median3(a, left, right);\n\n // Begin partitioning\n int i = left, j = right - 1;\n for (; ; ) {\n while (a[++i].compareTo(pivot) < 0) {}\n while (a[--j].compareTo(pivot) > 0) {}\n if (i < j)\n swapReferences(a, i, j);\n else\n break;\n }\n\n swapReferences(a, i, right - 1); // Restore pivot\n\n if (k <= i)\n quickSelect(a, left, i - 1, k);\n else if (k > i + 1)\n quickSelect(a, i + 1, right, k);\n } else // Do an insertion sort on the subarray\n insertionSort(a, left, right);\n }", "title": "" }, { "docid": "f9aee35dc639b2e3a7a037903bd6e986", "score": "0.6531495", "text": "public void wiggleSort3(int[] nums) {\n int n = nums.length;\n\n int median = (int)findMedian(nums);\n\n int i = 0;\n int j = 0;\n int k = n-1;\n\n while (j <= k) {\n int virtualIndex = getVirtualIndex(j, n);\n if (nums[virtualIndex] > median) {\n swap(nums, getVirtualIndex(i++, n), getVirtualIndex(j++, n));\n } else if (nums[virtualIndex] < median) {\n swap(nums, getVirtualIndex(j, n), getVirtualIndex(k--, n));\n } else {\n ++j;\n }\n }\n }", "title": "" }, { "docid": "ed2db450afc191ae014f9004572e8a6f", "score": "0.64757365", "text": "private static void quicksort(Comparable[] a, int low, int high) {\n if (low + QuickSortCUTOFF > high)\n insertionSort(a, low, high);\n else {\n // Sort low, middle, high\n int middle = (low + high) / 2;\n if (a[middle].compareTo(a[low]) < 0)\n swapReferences(a, low, middle);\n if (a[high].compareTo(a[low]) < 0)\n swapReferences(a, low, high);\n if (a[high].compareTo(a[middle]) < 0)\n swapReferences(a, middle, high);\n\n // Place pivot at position high - 1\n swapReferences(a, middle, high - 1);\n Comparable pivot = a[high - 1];\n\n // Begin partitioning\n int i, j;\n for (i = low, j = high - 1; ;) {\n while (a[++i].compareTo(pivot) < 0)\n ;\n while (pivot.compareTo(a[--j]) < 0)\n ;\n if (i >= j)\n break;\n swapReferences(a, i, j);\n }\n\n // Restore pivot\n swapReferences(a, i, high - 1);\n\n quicksort(a, low, i - 1); // Sort small elements\n quicksort(a, i + 1, high); // Sort large elements\n }\n }", "title": "" }, { "docid": "bc5e87c32a7c342e3d69d95fafd1d08f", "score": "0.64550424", "text": "private static void test()\n {\n boolean previousShowSteps = showSteps;\n showSteps = false;\n \n System.out.println(\"-- Tests --\");\n \n // tests all permutations of 3 nums\n System.out.println(\"- pivot picks median -\");\n \n int[] arr = {1,2,3};\n int index = pickPivot(arr, 0, 2);\n System.out.println(index == 1);\n \n int[] arr2 = {3,1,2};\n index = pickPivot(arr2, 0, 2); \n System.out.println(index == 2);\n\n int[] arr3 = {2,1,3};\n index = pickPivot(arr3, 0, 2); \n System.out.println(index == 0);\n \n int[] arr4 = {1,3,2};\n index = pickPivot(arr4, 0, 2); \n System.out.println(index == 2);\n \n int[] arr5 = {2,3,1};\n index = pickPivot(arr5, 0, 2); \n System.out.println(index == 0);\n \n int[] arr6 = {3,2,1};\n index = pickPivot(arr6, 0, 2); \n System.out.println(index == 1);\n \n System.out.println(\"- sorting tests -\");\n System.out.println(\"no output means tests passed\");\n \n // test random arrays with lengths from 2 to 1000\n for (int i = 2; i <= 1000; i++)\n {\n int[] randomArray = randomArrayOfLength(i);\n int[] randomArraySortedByJava = randomArray.clone();\n int[] randomArraySortedByMe = randomArraySortedByJava.clone();\n \n Arrays.sort(randomArraySortedByJava);\n quickSort(randomArraySortedByMe);\n \n boolean result = Arrays.equals(randomArraySortedByJava, randomArraySortedByMe);\n if (!result)\n {\n System.out.println(\"failed quickSort: \" + Arrays.toString(randomArray));\n }\n }\n \n System.out.println(\"-- End Tests --\\n\");\n \n showSteps = previousShowSteps;\n }", "title": "" }, { "docid": "5a046ad4d8c91abd91afb9ff90e993cb", "score": "0.64536095", "text": "private static void quicksort(Vector rules, int p, int r) {\n/* 500 */ while (p < r) {\n/* 501 */ int q = partition(rules, p, r);\n/* 502 */ quicksort(rules, p, q);\n/* 503 */ p = q + 1;\n/* */ } \n/* */ }", "title": "" }, { "docid": "17f511cb02b8deaf3652e16f594e47b9", "score": "0.64503473", "text": "private void quickSort(int[] arr, int low, int high) {\n // True: when there is at least 1 item\n if (high > low) {\n int pivot = partition(arr, low, high);\n // after partition, pivot is at its proper position\n // numbers at left ; < pivot\n // numbers at right; > pivot\n // we don't need to touch pivot again\n quickSort(arr, low, pivot - 1);\n quickSort(arr, pivot + 1, high);\n }\n }", "title": "" }, { "docid": "6de8862c86816e2f02d2cc2d258c2435", "score": "0.6449431", "text": "private static int median3(int[] intArray, int left, int right) {\r\n int center = (left + right) / 2;\r\n if (intArray[center] < intArray[left]) {\r\n swapReferences(intArray, left, center);\r\n }\r\n if (intArray[right] < intArray[left]) {\r\n swapReferences(intArray, left, right);\r\n }\r\n if (intArray[right] < intArray[center]) {\r\n swapReferences(intArray, center, right);\r\n }\r\n swapReferences(intArray, center, right - 1);\r\n return intArray[right - 1];\r\n }", "title": "" }, { "docid": "47ac31578a011a98698bc38bee6b1c16", "score": "0.6439405", "text": "void quickSort(int arr[], int low, int high)\r\n {\r\n if (low < high)\r\n {\r\n /* pi is partitioning index, arr[pi] is\r\n now at right place */\r\n int pi = partition(arr, low, high);\r\n\r\n // Recursively sort elements before\r\n // partition and after partition\r\n quickSort(arr, low, pi-1);\r\n quickSort(arr, pi+1, high);\r\n }\r\n }", "title": "" }, { "docid": "72cd77c32d34b95c7ff06141cd02c4b9", "score": "0.6399489", "text": "public static void quickSort3Arrays(int mainArr[], int arr2[], int arr3[], int startingInd, int endingInd) {\n\t\tif (startingInd < endingInd) {\n\t\t\t/*\n\t\t\t * pi is partitioning index, arr[pi] is now at right place\n\t\t\t */\n\t\t\tint pi = partition(mainArr, arr2, arr3, startingInd, endingInd);\n\n\t\t\t// Recursively sort elements before\n\t\t\t// partition and after partition\n\t\t\tquickSort3Arrays(mainArr, arr2, arr3, startingInd, pi - 1);\n\t\t\tquickSort3Arrays(mainArr, arr2, arr3, pi + 1, endingInd);\n\t\t}\n\t}", "title": "" }, { "docid": "356752efc4d4a99e72462017a19197d3", "score": "0.63979036", "text": "public static int partition(int[] list, int first, int last) {\n\t\t\t\tint pivot = list[first]; //choose the first element as the pivot\n\t\t\t\tint low = first + 1; //index for forward search, initially, low points to the second element in the partial array \n\t\t\t\tint high = last; //index for backward search, high points to the last element in the partial array initially\n\t\t\t\t\n\t\t\t\twhile (high > low) {//keep searching until the high is no longer greater than low\t\t\t\t\t\n\t\t\t\t\twhile (low <= high && list[low] <= pivot) //search forward in the array for the first element that is greater than the pivot\n\t\t\t\t\t{\n\t\t\t\t\t\tnumQuick++;//we increment our counter for the quick sort\n\t\t\t\t\t\tlow++; //advance the index low forward to find the first value greater than the pivot\n\t\t\t\t\t}\n\t\t\t\t\t//search backward from right for the first element in the array that is less than or equal to the pivot\n\t\t\t\t\twhile (low <= high && list[high] > pivot) \n\t\t\t\t\t{\n\t\t\t\t\t\tnumQuick++; //we increment our counter for the quick sort\n\t\t\t\t\t\thigh--; //move the index high backward to find the first value less than or equal to the pivot\n\t\t\t\t\t}\n\t\t\t\t\t//now swap these two elements, high and low in the list\n\t\t\t\t\tif (high > low) { \n\t\t\t\t\t\tint temp3 = list[high]; //store the element at index high in a temporary variable\n\t\t\t\t\t\tlist[high] = list[low]; //make the element at the index high as the element at the low index\n\t\t\t\t\t\tlist[low] = temp3; //then reset the element at the index at low to be the element at the high index\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (high > first && list[high] >= pivot) //we decrement high until high is no longer greater than the first and the element at index high is no longer greater than the pivot\n\t\t\t\t{\n\t\t\t\t\tnumQuick++; //we increment our counter variable here\n\t\t\t\t\thigh--; //we decrement the high index here\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t//swap pivot with list[high]\n\t\t\t\tif (pivot > list[high]) { //if pivot is greater than the element at the index high, we swap\n\t\t\t\t\tnumQuick++; //we increment our counter variable here\n\t\t\t\t\tlist[first] = list[high]; //set our the element at first index to be the element at the high index\n\t\t\t\t\tlist[high] = pivot; //set the element at high index to be the pivot\n\t\t\t\t\treturn high; //we return the high index \n\t\t\t\t}\n\t\t\t\telse { //otherwise if the pivot is less than the element at the index high, we return the first index\n\t\t\t\t\tnumQuick++; //we increment our counter variable here as well\n\t\t\t\t\treturn first;\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "2b8da373420e98233fd57bfe196933fb", "score": "0.6386132", "text": "private void quickSort(int[] samples, int first, int last) {\r\n\r\n if (first < last) {\r\n /* pivot is partitioning index, sample[pivot] is\r\n now at right place */\r\n int pivot = partition(samples, first, last);\r\n\r\n\r\n// print the array after\r\n printPartition(samples, pivot, first, last);\r\n\r\n\r\n // Recursively sort elements before\r\n // partition and after partition\r\n quickSort(samples, first, pivot - 1);\r\n quickSort(samples, pivot + 1, last);\r\n }\r\n\r\n }", "title": "" }, { "docid": "89179f8ee89c197ad4ca444c0250d2a5", "score": "0.636537", "text": "public void quickSort() {\n \n int i = 0;\n int n = arr.length - 1;\n \n quickHelperRec(arr, i, n);\n }", "title": "" }, { "docid": "a584c01581f2dac9596185bd9c892f48", "score": "0.63399386", "text": "public static int partition3way(int arr[], int pivotVal, int lo, int hi){\n\n int i = lo; // i is the mid counter\n\n while(i <= hi ) { // when unknown region is 0 length !!!\n if (arr[i] < pivotVal ){\n Array.swap(arr, i, lo);\n ++lo;\n ++i;\n } else if (arr[i] == pivotVal){\n ++i;\n } else if (arr[i] > pivotVal) {\n Array.swap(arr, i, hi);\n --hi;\n }\n }\n\n return lo; //partition index used for next recursion\n }", "title": "" }, { "docid": "754116bfbb67f32b270ec42c5a88242b", "score": "0.6319792", "text": "private void quickSort(int[] arr, int low, int high){\r\n arr = numeros;\r\n if (low < high){\r\n int pi = partition(arr, low, high);\r\n quickSort(arr, low, pi-1);\r\n quickSort(arr, pi+1, high);\r\n }\r\n }", "title": "" }, { "docid": "fffe0a8ba3f6f6a0bfe9b32af0da1994", "score": "0.6302434", "text": "static void QuickSort(double a[], int lo0, int hi0) {\r int lo = lo0;\r int hi = hi0;\r double mid;\r\r if ( hi0 > lo0)\r {\r\r /* Arbitrarily establishing partition element as the midpoint of\r * the array.\r */\r mid = a[ ( lo0 + hi0 ) / 2 ];\r\r // loop through the array until indices cross\r while( lo <= hi )\r {\r /* find the first element that is greater than or equal to \r * the partition element starting from the left Index.\r */\r\t while( ( lo < hi0 ) && ( a[lo] < mid ))\r\t\t ++lo;\r\r /* find an element that is smaller than or equal to \r * the partition element starting from the right Index.\r */\r\t while( ( hi > lo0 ) && ( a[hi] > mid ))\r\t\t --hi;\r\r // if the indexes have not crossed, swap\r if( lo <= hi ) \r {\r swap(a, lo, hi);\r ++lo;\r --hi;\r }\r }\r\r /* If the right index has not reached the left side of array\r * must now sort the left partition.\r */\r if( lo0 < hi )\r QuickSort( a, lo0, hi );\r\r /* If the left index has not reached the right side of array\r * must now sort the right partition.\r */\r if( lo < hi0 )\r QuickSort( a, lo, hi0 );\r\r }\r }\r\t\r\t/**\r\t * Exchange ith and ith element in the arrat a.\r\t */\t\r static void swap(double a[], int i, int j)\r {\r double T;\r T = a[i]; \r a[i] = a[j];\r a[j] = T;\r\r }\r\t/**\r\t * Sort method envoke quicksort.\r\t */ \r public static void sort(double a[]) \r {\r QuickSort(a, 0, a.length - 1);\r }\r}", "title": "" }, { "docid": "71890a243e7b2037c13f4982bdfd631c", "score": "0.62951857", "text": "public static void main(String[] args) {\r\n\t\t//int arr[] = {14,33,27,10,35,19,42,44};\r\n\t\t//int arr[] = {40,20,10,80,60,50,7,30,100};\r\n\t\t\r\n\t\tQuickSort ob = new QuickSort();\r\n\t\t\r\n\t\t//Middle element pivot\r\n\t\tint arr[] = {2,3,4,6,5,1};\r\n\t\tob.quickSortMiddleElementPivot(arr);\r\n\t\tSystem.out.print(\"Quick Sort[Asc] (Pivot = Middle Element): \");\r\n\t\tfor(int a:arr){\r\n\t\t\tSystem.out.print(\" \"+a);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t//First element Pivot\r\n\t\tint arr1[] = {2,3,4,6,5,1};\r\n\t\tob.quickSortMiddleElementPivot(arr1);\r\n\t\tSystem.out.print(\"Quick Sort[Asc] (Pivot = First Element): \");\r\n\t\tfor(int a:arr1){\r\n\t\t\tSystem.out.print(\" \"+a);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t// Last element Pivot\r\n\t\tint arr2[] = { 2, 3, 4, 6, 5, 1 };\r\n\t\tob.quickSortMiddleElementPivot(arr2);\r\n\t\tSystem.out.print(\"Quick Sort[Asc] (Pivot = Last Element): \");\r\n\t\tfor (int a : arr2) {\r\n\t\t\tSystem.out.print(\" \" + a);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t//Generic Method\r\n\t\tint arr3[] = { 2, 3, 4, 6, 5, 1 };\r\n\t\tob.quickSortGenericMethod(arr3);\r\n\t\tSystem.out.print(\"Quick Sort[Asc] (Generic Method): \");\r\n\t\tfor (int a : arr3) {\r\n\t\t\tSystem.out.print(\" \" + a);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "0e7a9caded58ca4afa6579c3e5ffffd5", "score": "0.62779874", "text": "private static void quickSortRecursive(int[] arr, int lo, int hi)\n {\n if (hi - lo < 1)\n {\n return;\n }\n \n // get pivot\n int pivotIndex = Sorting.pickPivot(arr, lo, hi);\n int pivot = arr[pivotIndex];\n \n if (showSteps)\n {\n System.out.println(\"lo: \" + lo + \", hi: \" + hi);\n System.out.print(\"State before iter: \");\n printArrayInRange(arr, lo, hi);\n System.out.println(\"pivot: \" + pivot);\n }\n \n // swap pivot to with num at lo\n arr[pivotIndex] = arr[lo];\n arr[lo] = pivot;\n \n if (showSteps)\n {\n System.out.print(\"swaped pivot state: \");\n printArrayInRange(arr, lo, hi);\n }\n \n // now partition in place\n int bottomPtr = lo + 1;\n int topPtr = hi;\n while (topPtr > bottomPtr)\n {\n if (arr[topPtr] > pivot)\n {\n topPtr--;\n }\n else if (arr[bottomPtr] < pivot)\n {\n bottomPtr++;\n }\n else\n {\n int tmp = arr[bottomPtr];\n arr[bottomPtr] = arr[topPtr];\n arr[topPtr] = tmp;\n \n topPtr--;\n \n if (showSteps)\n {\n System.out.print(\"swap, new state: \");\n printArrayInRange(arr, lo, hi);\n }\n }\n }\n \n // swap pivot back\n // handles case here where pivot could be the smallest element of the array\n if (arr[lo] > arr[lo+1])\n {\n arr[lo] = arr[bottomPtr];\n arr[bottomPtr] = pivot;\n }\n \n if (showSteps)\n {\n System.out.print(\"State after iter: \");\n printArrayInRange(arr, lo, hi);\n System.out.println(\"----\");\n }\n \n // now sort top and bottom half the same way\n quickSortRecursive(arr, lo, bottomPtr-1);\n quickSortRecursive(arr, bottomPtr+1, hi);\n }", "title": "" }, { "docid": "2d956a27eafcdb8a688f3bff70a5c8c8", "score": "0.6276212", "text": "public void quickSortMiddleElementPivot(int arr[])\r\n\t{\r\n\t\tquickSortMiddleElementPivot(arr,0,arr.length-1);\r\n\t}", "title": "" }, { "docid": "8609b0dbb2e5efed303650719a68d8e9", "score": "0.6266902", "text": "public static void quickSortMed(int[] array, int low, int high) {\n\t\tif (array == null || array.length == 0)\n\t\t\treturn;\n \n\t\tif (low >= high)\n\t\t\treturn;\n \n\t\t// Get the pivot point\n\t\tint middle = low + (high - low) / 2;\n\t\tint pivot = array[middle];\n \n\t\t// make left less pivot and right more pivot\n\t\tint i = low, j = high;\n\t\twhile (i <= j) {\n\t\t\twhile (array[i] < pivot) {\n\t\t\t\ti++;\n\t\t\t}\n \n\t\t\twhile (array[j] > pivot) {\n\t\t\t\tj--;\n\t\t\t}\n \n\t\t\tif (i <= j) {\n\t\t\t\tint temp = array[i];\n\t\t\t\tarray[i] = array[j];\n\t\t\t\tarray[j] = temp;\n\t\t\t\ti++;\n\t\t\t\tj--;\n\t\t\t}\n\t\t}\n \n\t\t// recursively sort two sub parts\n\t\tif (low < j)\n\t\t\tquickSortMed(array, low, j);\n \n\t\tif (high > i)\n\t\t\tquickSortMed(array, i, high);\n\t}", "title": "" }, { "docid": "9750f0f5c40708195bfaca6237290ad3", "score": "0.6233173", "text": "public static void quickSort(int[] elements, int low, int high) {\n if(high > low){\n int indexPivot = partition(elements, low, high);\n quickSort(elements, low, indexPivot - 1);\n\n quickSort(elements,indexPivot, high);\n } \n\n }", "title": "" }, { "docid": "65c8b4d6c621120242f836c956999494", "score": "0.6168299", "text": "private void quicksort(T[] array, int lowerIndex, int upperIndex, boolean isRandom) {\n // If we have a random quicksort, swap the upperIndex with a random value from the range \n // lowerIndex (i) - upperIndex (x)\n if (isRandom && lowerIndex != upperIndex) {\n Random random = new Random();\n int randomIndex = random.nextInt(upperIndex - lowerIndex);\n \n swap(array, randomIndex + lowerIndex, upperIndex);\n }\n \n // All elements to the left and right of the pivot are in the correct positions.\n int partition = partition(array, lowerIndex, upperIndex);\n\n // Once we've partitioned a region of two elements we know they're in the right locations,\n // so we short-circuit here.\n if (upperIndex - lowerIndex <= 1) {\n return;\n }\n \n // Check to make sure we actually have elements to the left of the partitioning point.\n if (lowerIndex != partition) {\n\n // Recurse from the lower index to the element preceding the partition.\n quicksort(array, lowerIndex, partition - 1, isRandom);\n }\n \n // Make sure we have elements to the right of the paritioning point.\n if (upperIndex != partition) {\n\n // Recurse from the element following the partition to the end.\n quicksort(array, partition + 1, upperIndex, isRandom);\n }\n }", "title": "" }, { "docid": "3d9bda6014e974e179a6dd0ce5026f1c", "score": "0.61607057", "text": "static void quickSort(int arr[], int l, int h)\n{\n if (l < h)\n {\n int p = partition(arr, l, h); /* Partitioning index */\n quickSort(arr, l, p - 1);\n quickSort(arr, p + 1, h);\n }\n}", "title": "" }, { "docid": "6b0bc7cfb7bab9230e3434ad6d2af000", "score": "0.6133237", "text": "private void quicksort(List<E> data, int low, int high) {\n if (low < high) {\n int p = partition(data, low, high);\n quicksort(data, low, p);\n quicksort(data, p + 1, high);\n }\n }", "title": "" }, { "docid": "b2a82d452a82584fc6b28abb5e40054e", "score": "0.6124513", "text": "public static void quickSort(int[] list, int first, int last) {\n\t\t\t\tif (last > first) { //if the last element is greater than the first element, we do the partition and apply quick sort recursively\n\t\t\t\t\tint pivotIndex = partition(list, first, last); //stores the index of the pivot, after the partition is complete we get the correct position of the pivot\n\t\t\t\t\tquickSort(list, first, pivotIndex-1); //recursively call the quick sort on the first half of the partitioned array\n\t\t\t\t\tquickSort(list, pivotIndex+1, last); //recursively call the quick sort on the second half of the partitioned array\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "2efa48393d74a52094424b108692b2cc", "score": "0.61039525", "text": "private static void quickSort(int[] arr, int lo, int hi) {\n if (lo >= hi)\n return;\n int pivot = quickSortHelper(arr, lo, hi);\n quickSort(arr, lo, pivot - 1);\n quickSort(arr, pivot + 1, hi);\n }", "title": "" }, { "docid": "05c2a3f57c0e621e765b79a73c2a7560", "score": "0.6091676", "text": "public void quickSortIncomeHelp (CustomerRecord pivot, CustomerRecord[] a, int small, int big)\r\n {\r\n\tif (small < big)\r\n\t{\r\n\t int left = small; //left = start of array\r\n\t int right = big; //right = end of array\r\n\t pivot = a [left]; //pivot customer record is the left element\r\n\r\n\t while (left < right) //when left does not pass right marker, then do the rest\r\n\t {\r\n\t\t//if income on the right is bigger than or equal to the pivoting customer record's income and right is still greater than left\r\n\t\twhile (Integer.parseInt (a [right].getIncome ()) >= Integer.parseInt (pivot.getIncome ()) && right > left)\r\n\t\t{\r\n\t\t right--; //decrease right pointer by 1\r\n\t\t}\r\n\t\ta [left] = a [right]; //replace the left customer record with the right customer record once the pivot's age is bigger than the right element\r\n\r\n\t\t//if income on the left is less than the pivoting customer record's income and right is still greater than left\r\n\t\twhile (Integer.parseInt (a [left].getIncome ()) < Integer.parseInt (pivot.getIncome ()) && left < right)\r\n\t\t{\r\n\t\t left++; //increase left marker\r\n\t\t}\r\n\t\ta [right] = a [left]; //once it isn't, then replace the right element with the contents of the left element\r\n\t } //end of outer while loop\r\n\r\n\t a [right] = pivot; //insert pivot point into where the pointers are\r\n\t quickSortIncomeHelp (pivot, a, small, left - 1); //recursive method - keeps sorting from the left side\r\n\t quickSortIncomeHelp (pivot, a, right + 1, big); //recursive method - keeps sorting from the right side\r\n\t}\r\n }", "title": "" }, { "docid": "3b6b8e6825680e34cd8ae70c43b97bf8", "score": "0.60742044", "text": "private static void quickSort(Object a[], int l, int r, int[] indexes) {\r\n int M = 4;\r\n int i;\r\n int j;\r\n Object v;\r\n\r\n if ((r - l) > M) {\r\n i = (int) ((r + (long) l) / 2);\r\n if (FastQSortAlgorithm.compare(a[l], a[i]) > 0) {\r\n FastQSortAlgorithm.swap(a, l, i, indexes); // Tri-Median Methode!\r\n }\r\n if (FastQSortAlgorithm.compare(a[l], a[r]) > 0) {\r\n FastQSortAlgorithm.swap(a, l, r, indexes);\r\n }\r\n if (FastQSortAlgorithm.compare(a[i], a[r]) > 0) {\r\n FastQSortAlgorithm.swap(a, i, r, indexes);\r\n }\r\n\r\n j = r - 1;\r\n FastQSortAlgorithm.swap(a, i, j, indexes);\r\n i = l;\r\n v = a[j];\r\n for (;;) {\r\n while (FastQSortAlgorithm.compare(a[++i], v) < 0) {\r\n }\r\n while (FastQSortAlgorithm.compare(a[--j], v) > 0) {\r\n }\r\n if (j < i) {\r\n break;\r\n }\r\n FastQSortAlgorithm.swap(a, i, j, indexes);\r\n }\r\n FastQSortAlgorithm.swap(a, i, r - 1, indexes);\r\n FastQSortAlgorithm.quickSort(a, l, j, indexes);\r\n FastQSortAlgorithm.quickSort(a, i + 1, r, indexes);\r\n }\r\n }", "title": "" }, { "docid": "e5199a53be926bc85ee1bfe0e7ad12cc", "score": "0.6045753", "text": "public void QuickSort(int[] a, int izq, int der) {\r\n\t\t\t\r\n\t\t\tint pivote = a[izq]; \r\n\t\t\tint left = izq;\r\n\t\t\tint right = der;\r\n\t\t\tint aux;\r\n\t\t\t\r\n\t\t\t//Mientras el limite izquierdo sea menor al limite derecho, se ejecutara este ciclo\r\n\t\t\t//Cuando es igual, significa que ya se compararon todos los numeros del arreglo\r\n\t\t\twhile (left < right) {\r\n\t\t\t\t//Mientras el numero evaluado sea menor o igual que el pivote, el limite izquierdo avanza\r\n\t while (a[left] <= pivote && left < right) {\r\n\t left++;\r\n\t }\r\n\t //Mientras el numero evaluado sea mayor que el pivote, el limite derecho disminuye\r\n\t while (a[right] > pivote) {\r\n\t right--;\r\n\t }\r\n\t \r\n\t //Si el limite izquiero es menor al limite derecho entonces se intercambias los valores\r\n\t //de los arreglos en estas posiciones\r\n\t if (left < right) {\r\n\t aux = a[left];\r\n\t a[left] = a[right];\r\n\t a[right] = aux;\r\n\t }\r\n\t \r\n\t //Seguimos comparando si left < right por que esto puede cambiar dentro del while\r\n\t }\r\n\t\t\t\r\n\t\t\t//Luego intercambiamo los extremos del arreglo\r\n\t a[izq] = a[right];\r\n\t a[right] = pivote;\r\n\t \r\n\t //esto define el rango de la siguiente iteracion recursiva\r\n\t if (izq < right - 1) {\r\n\t \t//Si el limite inicial izquierdo es menor a el limite derecho actual menos 1, entonces se vuelve a ciclar\r\n\t \t//Esto permite ciclar solo si hay datos que ordenar\r\n\t QuickSort(a, izq, right - 1);\r\n\t }\r\n\t if (right + 1 < der) {\r\n\t \t//Si el limite inicial derecho es mayor a el limite derecho actual mas 1, entonces se vuelve a ciclar\r\n\t \t//Esto permite ciclar solo si hay datos que ordenar\r\n\t QuickSort(a, right + 1, der);\r\n\t }\r\n\t\t}", "title": "" }, { "docid": "b6f949d0349fa92ccbe8a4c54a5dd2a8", "score": "0.6032625", "text": "public static void quickSort(int arr [], int lo, int up) {\n\t\t\n\t\t/** If lo >= up, the current recursion is the last one */\n\t\tif (lo < up) {\n\t\t\t\n\t\t\t/** Finds a new pivot to partition around */\n\t\t\tint prt = findPartition(arr, lo, up);\n\t\t\t\n\t\t\t/** Partitions into two subarrays, recursively sorting the entire array around pivots */\n\t\t\tquickSort(arr, lo, prt - 1);\n\t\t\tquickSort(arr, prt + 1, up);\n\t\t}\t\n\t}", "title": "" }, { "docid": "c7ed6115e318077e2b05f0c9516ba61a", "score": "0.60243005", "text": "public static <T extends Comparable> void quickSort(List<T> list, int low, int high) {\n if (low < high) {\n //partition the array around pi=>partitioning index and return pi\n int pi = partition(list, low, high);\n\n // sort each partition recursively\n quickSort(list, low, pi - 1);\n quickSort(list, pi + 1, high);\n }\n }", "title": "" }, { "docid": "8407e471f44924b06af6b236a113753f", "score": "0.60101676", "text": "private static int quickSort(Comparable[] arr, int low, int high){\n\n int originHigh = high;\n int originLow = low;\n\n if(low >= high || high >= arr.length){\n return 0;\n }\n else if(low == high - 1){\n if(AlgorithmTools.less(arr[low], arr[high])){\n AlgorithmTools.exchange(arr, low, high);\n }\n return 1;\n }\n int compareTimes = 0;\n\n int middle = low;\n\n low = low + 1;\n while(low < high){\n if((AlgorithmTools.less(arr[low], arr[middle]))){\n AlgorithmTools.exchange(arr, low, high);\n high --;\n }else{\n low ++;\n }\n compareTimes ++;\n if(low == high)break;\n if(AlgorithmTools.less(arr[middle], arr[high])){\n AlgorithmTools.exchange(arr, low, high);\n low ++;\n }else{\n high --;\n }\n compareTimes ++;\n }\n\n if(AlgorithmTools.less(arr[middle], arr[high])){\n AlgorithmTools.exchange(arr, middle, high);\n middle = high;\n }\n else{\n AlgorithmTools.exchange(arr, middle, high - 1);\n middle = high - 1;\n }\n\n compareTimes += quickSort(arr, middle + 1, originHigh);\n compareTimes += quickSort(arr, originLow, middle - 1);\n\n return compareTimes;\n\n }", "title": "" }, { "docid": "b669720be186099d3e5902d681bdb5c9", "score": "0.6001095", "text": "private static void quickSort(int[] array, int minIndex, int maxIndex) {\r\n\t\t// return, if only one element is to sort\r\n\t\tif (minIndex >= maxIndex) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// choose pivot and marker\r\n\t\tint pivot = array[minIndex];\r\n\t\tint lowerMarker = minIndex + 1;\r\n\t\tint upperMarker = maxIndex;\r\n\t\tboolean running = true;\r\n\t\t// swap elements\r\n\t\twhile (running) {\r\n\t\t\t// skip elements til marker found element to swap\r\n\t\t\twhile (lowerMarker <= maxIndex && array[lowerMarker] <= pivot) {\r\n\t\t\t\tlowerMarker++;\r\n\t\t\t}\r\n\t\t\twhile (upperMarker >= minIndex && array[upperMarker] > pivot) {\r\n\t\t\t\tupperMarker--;\r\n\t\t\t}\r\n\t\t\tif (lowerMarker < upperMarker) {\r\n\t\t\t\t// swap elements\r\n\t\t\t\tint temp = array[upperMarker];\r\n\t\t\t\tarray[upperMarker] = array[lowerMarker];\r\n\t\t\t\tarray[lowerMarker] = temp;\r\n\t\t\t} else {\r\n\t\t\t\trunning = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// sort in pivot\r\n\t\tint temp = array[minIndex];\r\n\t\tarray[minIndex] = array[upperMarker];\r\n\t\tarray[upperMarker] = temp;\r\n\r\n\t\t// sort lower part\r\n\t\tquickSort(array, minIndex, upperMarker - 1);\r\n\t\t// sort upper part\r\n\t\tquickSort(array, upperMarker + 1, maxIndex);\r\n\t}", "title": "" }, { "docid": "16a0fc00c506a3ec24493804bcbd5281", "score": "0.59947264", "text": "private static void quickSort(int[] array, int top, int bottom, int[] counter) {\n if (bottom < top) {\n int p = quickSortSwapping(array, top, bottom, counter);\n\n quickSort(array, p-1, bottom, counter); //bottom half\n quickSort(array, top, p+1, counter); //top half\n }\n\n }", "title": "" }, { "docid": "024f5f735a20bbfbe925465c7d059d16", "score": "0.5969951", "text": "public static int partition(int[] data, int start, int end) {\n if (start==end) return start;\n Random randgen = new Random(2);\n int[] pivots = {data[start],data[(end-start)/2],data[end]};\n Arrays.sort(pivots);\n int pivot = pivots[1]; //median\n // System.out.println(Arrays.toString(data));\n // System.out.println(\"Start: \" + start);\n // System.out.println(\"End: \" + end);\n // System.out.println(\"Pivot: \" + pivot);\n // System.out.println();\n int pivotInd = (end-start)/2;\n if (data[start] == pivot) pivotInd=start;\n if (data[end] == pivot) pivotInd=end;\n data[pivotInd] = data[start]; //move pivot out of the way\n //System.out.println(printArray(data));\n data[start] = pivot;\n int s = start;\n int e = end;\n s++;\n int cur = data[s];\n while (s != e) {\n cur = data[s];\n if (cur > pivot) {\n int holder = data[s];\n data[s] = data[e];\n data[e] = holder;\n e--;\n }\n else if (cur < pivot) {\n s++;\n }\n else if (cur == pivot) {\n int chances = randgen.nextInt() % 2;\n if (chances == 0) {\n s++;\n }\n else {\n int holder = data[s];\n data[s] = data[e];\n data[e] = holder;\n e--;\n }\n }\n }\n if (data[s] <= pivot) {\n data[start] = data[s];\n data[s] = pivot;\n\n return s;\n }\n else {\n data[start] = data[s-1];\n data[s-1] = pivot;\n return s-1;\n }\n }", "title": "" }, { "docid": "a8a4ac25b7d4f7984394bd7201c39f0c", "score": "0.595451", "text": "public static void QuickSort(int[] A, int first, int last) {\n if(first<last){\n int P = A[last];\n int l = first;\n int h = last-1;\n while (l<h) {\n if(A[l]<P){\n l++;\n }else if(A[h]>=P){\n h--;\n }else{\n int tmp = A[h];\n A[h]=A[l];\n A[l] = tmp;\n h--;\n l++;\n }\n }\n if(l==h){\n if(A[l]>=P){\n h--;\n }else{\n l++;\n }\n }\n if(h==first-1){\n int tmp = A[first];\n A[first]=A[last];\n A[last] = tmp;\n l=first+1;\n h=first;\n }else{\n A[last]=A[h+1];\n }\n try{\n // Recursion\n QuickSort(A,first,h);\n QuickSort(A,l,last);\n }catch (StackOverflowError ex){\n ex.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "1d1dabe8cf76209ff7a20cfb4842ddf4", "score": "0.594665", "text": "private static <T> void myQuicksort(T[] arr, int low, int high, Comparator<T> comparator,\n Random rand) {\n\n\n if (low < high) {\n int pivotIndex = low + rand.nextInt(high - low);\n T pivot = arr[pivotIndex];\n swap(arr, pivotIndex, high);\n\n int start = low;\n int end = high;\n\n\n\n while (low < high) {\n while (low < high && comparator.compare(arr[low], pivot) <= 0) {\n low++;\n }\n\n if (low < high) {\n arr[high] = arr[low];\n high--;\n }\n\n\n while (low < high && comparator.compare(arr[high], pivot) >= 0) {\n high--;\n }\n\n if (low < high) {\n arr[low] = arr[high];\n low++;\n }\n }\n\n arr[high] = pivot;\n\n myQuicksort(arr, start, high - 1, comparator, rand);\n myQuicksort(arr, high + 1, end, comparator, rand);\n\n\n }\n }", "title": "" }, { "docid": "e343c33e274ccc29c56a1229b7be33da", "score": "0.5943874", "text": "private static void quickSort(int[] array, int startIndex, int endIndex) {\n\t\tif (endIndex > startIndex) {\n\t\t\tint partitionIndex = partition(array, startIndex, endIndex);\n\t\t\tquickSort(array, startIndex, partitionIndex - 1);\n\t\t\tquickSort(array, partitionIndex + 1, endIndex);\n\t\t}\n\t}", "title": "" }, { "docid": "ffe9f111c4d2b98c2af44e4b2741ab85", "score": "0.5942058", "text": "public static void main(String[] args)\n {\n int size = Integer.parseInt(args[0]);\n\n //create new arrayList using quickSorter\n ArrayList<Integer> toSort = QuickSorter.generateRandomList(size);\n //create 3 copies of it\n ArrayList<Integer> toSortRandom = (ArrayList<Integer>) toSort.clone();\n ArrayList<Integer> toSortMedianRandom = (ArrayList<Integer>) toSort.clone();\n ArrayList<Integer> toSortMedian = (ArrayList<Integer>) toSort.clone();\n\n //record unsorted array into unsorted.txt\n // file output\n try\n {\n //open unsorted.txt (in args) for output\n File output_file = new File(args[2]);\n PrintWriter unsortedOut;\n unsortedOut = new PrintWriter(output_file);\n\n //for each item in the arraylist, output it to the file.\n toSort.forEach(n -> unsortedOut.println(n));\n unsortedOut.close();\n }\n catch (Exception e)\n {\n System.out.println(\"Exception: \" + e);\n } \n \n\n //Save duration of sort using FIRST_ELEMENT,RANDOM_ELEMENT, MEDIAN_OF_THREE_RANDOM_ELEMENTS, MEDIAN_OF_THREE_ELEMENTS\n //sort with first element\n Duration firstTime = QuickSorter.timedQuickSort(toSort, QuickSorter.PivotStrategy.MEDIAN_OF_THREE_RANDOM_ELEMENTS);\n Duration randomTime = QuickSorter.timedQuickSort(toSortRandom, QuickSorter.PivotStrategy.RANDOM_ELEMENT);\n Duration randomMedTime = QuickSorter.timedQuickSort(toSortMedianRandom, QuickSorter.PivotStrategy.MEDIAN_OF_THREE_RANDOM_ELEMENTS);\n Duration medianTime = QuickSorter.timedQuickSort(toSortMedian, QuickSorter.PivotStrategy.MEDIAN_OF_THREE_ELEMENTS);\n \n\n // output report (should be sorted now) to sorted.txt\n try {\n // open unsorted.txt (in args) for output\n File output_file = new File(args[1]);\n PrintWriter reportOut;\n reportOut = new PrintWriter(output_file);\n\n // for each item in the arraylist, output it to the file.\n reportOut.println(\"Array Size = \" + args[0]);\n reportOut.println(\"FIRST_ELEMENT : \" + firstTime);\n reportOut.println(\"RANDOM_ELEMENT : \" + randomTime);\n reportOut.println(\"MEDIAN_OF_THREE_RANDOM_ELEMENTS : \" + randomMedTime);\n reportOut.println(\"MEDIAN_OF_THREE_ELEMENTS : \" + medianTime);\n\n reportOut.close();\n } catch (Exception e) {\n System.out.println(\"Exception: \" + e);\n }\n\n\n\n\n\n //output toSort (should be sorted now) to sorted.txt\n try\n {\n //open unsorted.txt (in args) for output\n File output_file = new File(args[3]);\n PrintWriter sortedOut;\n sortedOut = new PrintWriter(output_file);\n\n //for each item in the arraylist, output it to the file.\n toSort.forEach(n -> sortedOut.println(n));\n sortedOut.close();\n }\n catch (Exception e)\n {\n System.out.println(\"Exception: \" + e);\n } \n\n\n\n //print \n // Duration test2 = timedQuickSort(toSort, RANDOM_ELEMENT);\n // Duration test3 = timedQuickSort(toSort, MEDIAN_OF_THREE_RANDOM_ELEMENTS);\n // Duration test4 = timedQuickSort(toSort, MEDIAN_OF_THREE_ELEMENTS);\n\n\n }", "title": "" }, { "docid": "31e17adbb5f5ae489f2560c9aa8df57b", "score": "0.59386855", "text": "private static void quicksort(int min, int max) {\n int i = min;\n int j = max;\n\n try {\n int pivot = numbers[i+(j - i)/2];\n while (i <= j) {\n while (numbers[j] > pivot) {\n j--;\n }\n while (numbers[i] < pivot) {\n i++;\n }\n if (i <= j) {\n swap(i, j);\n i++;\n j--;\n }\n }\n printArray(numbers);\n } catch (ArrayIndexOutOfBoundsException a){\n System.out.println(\"\\n\" + \"Arrayen är tom\");\n }\n // börjar om qiucksort på de värden som inte är på rätt plats\n if (min < j){\n quicksort(min, j);\n }\n if (i < max){\n quicksort(i, max);\n }\n }", "title": "" }, { "docid": "4397b975c3ff56e2b291d105352ed307", "score": "0.59336835", "text": "static void qSort(double a[], int low, int high) \n { \n if (low < high) \n { \n int pi = partition(a, low, high); \n \n qSort(a, low, pi-1); \n qSort(a, pi+1, high); \n } \n }", "title": "" }, { "docid": "6d4c9f1a27761072a7ad08ddc2cf592c", "score": "0.59250194", "text": "void quickSort(int[] arr, int left, int right) {\n if (left < right) {\r\n int pivot = getPivot(arr, left, right);\r\n quickSort(arr, left, pivot - 1); // pivot not include\r\n quickSort(arr, pivot + 1, right);\r\n }\r\n }", "title": "" }, { "docid": "30153eaf77b0354258bf7b335d326f7c", "score": "0.5923545", "text": "public static void main(String[] args) {\n\t\tint[] arr = {1, 4, 2, 4, 2, 6, 1, 2, 4, 1, 5, 3, 9, 1, 2, 4, 1, 4, 4, 4};\n ThreeSort ts = new ThreeSort();\n ts.quickSort(arr);\n System.out.println(\"after sorting##\");\n for(int i =0;i<arr.length;i++){\n \tSystem.out.print(arr[i]+\" \");\n }\n\t}", "title": "" }, { "docid": "427b3f3c51ee9100f27d99aaf0f0fb19", "score": "0.59213406", "text": "private static int quickSortHelper(int[] arr, int lo, int hi) {\n int idx = lo - 1;\n int pivot = arr[hi];\n\n for (int i = lo; i < hi; i++) {\n if (arr[i] < pivot) {\n idx++;\n swap(arr, idx, i);\n }\n }\n\n swap(arr, idx + 1, hi);\n\n return idx + 1;\n }", "title": "" }, { "docid": "aab12eb6971cd4497ff4248d74247ec7", "score": "0.59188217", "text": "@Test\n public void quickSortTestCaseWith10ElementsAndFirstPivotStrategy() throws Exception {\n sortAndCheckArrayFromResource(10, \"/QuickSort_10.txt\", 25,\n (a, start, end) -> QuickSort.sortChoosingFirstElementAsPivot(a, 0, end));\n }", "title": "" }, { "docid": "2b4ab9a02e83ca3d82eb86d4001c45d3", "score": "0.59108883", "text": "@Test\n public void quickSortTestCaseWith1000ElementsAndFirstPivotStrategy() throws Exception {\n sortAndCheckArrayFromResource(1000, \"/QuickSort_1000.txt\", 10297,\n (a, start, end) -> QuickSort.sortChoosingFirstElementAsPivot(a, 0, end));\n }", "title": "" }, { "docid": "73b583ac9f52ced7113991763b6a59ab", "score": "0.5903821", "text": "void quickSort(int arr[], int left, int right) {\n int index = partition(arr, left, right);\n if (left < index - 1) {\n quickSort(arr, left, index - 1);\n }\n if (index < right) {\n quickSort(arr, index, right);\n }\n }", "title": "" }, { "docid": "bbefc19188e194e472f5dc77420eb377", "score": "0.58984727", "text": "private int quickHelper(int array [], int i, int n) {\n \n int low = 0;\n int hi = 0;\n int mid = 0;\n int pivot = 0;\n int temp = 0;\n boolean done = false;\n\n \n mid = i + (n - i) / 2;\n pivot = array[mid];\n\n low = i;\n hi = n;\n\n while (!done) {\n\n \n while (array[low] < pivot) {\n low++;\n }\n\n \n while (pivot < array[hi]) {\n hi--;\n }\n\n \n if (low >= hi) {\n done = true;\n } else {\n \n temp = array[low];\n array[low] = array[hi];\n array[hi] = temp;\n\n low++;\n hi--;\n }\n }\n\n return hi;\n \n }", "title": "" }, { "docid": "7b1d031c051a74556839eb9a7dda6097", "score": "0.58965135", "text": "public void quickSortAgeHelp (CustomerRecord pivot, CustomerRecord[] a, int small, int big)\r\n {\r\n\tif (small < big)\r\n\t{\r\n\t int left = small; //left = start of array\r\n\t int right = big; //right = end of array\r\n\t pivot = a [left]; //pivot customer record is the left element\r\n\r\n\t while (left < right) //when left does not pass right marker, then do the rest\r\n\t {\r\n\t\t//if age on the right is bigger than or equal to the pivoting customer record's age and right is still greater than left\r\n\t\twhile (Integer.parseInt (a [right].getAge ()) >= Integer.parseInt (pivot.getAge ()) && right > left)\r\n\t\t{\r\n\t\t right--; //decrease right pointer by 1\r\n\t\t}\r\n\t\ta [left] = a [right]; //replace the left customer record with the right customer record once the pivot's age is bigger than the right element\r\n\r\n\t\t//if age on the left is less than the pivoting customer record's age and right is still greater than left\r\n\t\twhile (Integer.parseInt (a [left].getAge ()) < Integer.parseInt (pivot.getAge ()) && left < right)\r\n\t\t{\r\n\t\t left++; //increase the left marker to continue checking subsequent elements\r\n\t\t}\r\n\t\ta [right] = a [left]; //once it isn't, then replace the right element with the contents of the left element\r\n\t } //end of outer while loop\r\n\r\n\t a [right] = pivot; //insert pivot point into where the pointers are\r\n\t quickSortAgeHelp (pivot, a, small, left - 1); //recursive method - keeps sorting from the left side\r\n\t quickSortAgeHelp (pivot, a, right + 1, big); //recursive method - keeps sorting from the right side\r\n\t}\r\n }", "title": "" }, { "docid": "473d58bf678d2a2b5d094a1faae05de3", "score": "0.5886665", "text": "private void quicksort(int start, int end) {\n if (start == end) {\n return;\n }\n\n //find pivot using partition()\n int[] pivots = partition(start, end);\n\n //sort subarrays before and after pivot range\n quicksort(start, pivots[0]);\n quicksort(pivots[1] + 1, end);\n }", "title": "" }, { "docid": "7e8106ece935824e6b2a638fa0ab020b", "score": "0.5874727", "text": "private static void QuickSort(int[] arr, int i, int j) {\n\t\t\n\t\tif(i<j) {\n\t\t\tint pi = partition(arr, i, j);\n\t\t\tQuickSort(arr, i, pi-1);\n\t\t\tQuickSort(arr, pi+1, j);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "f534e728020608f47910d29c8b816416", "score": "0.5860344", "text": "public static <T extends Comparable<? super T>> void QuickSort(T[] array, int start, int end) {\n\n\t\t//Cancel if only 1 item is selected or if recursion has gone too far.\n\t\tif (end-start == 1 || end-start <= 0) return;\n\n\t\t//Position of last swapped item\n\t\tint lastSwappedTo = start; //Set to start, as we work with the position after this value\n\n\t\t//Select the pivot\n\t\t//Get the item half way though the list, with respect to the section we are working on \n\t\t// Half of (end - start), added to start value.\n\t\tdouble d = (start + (end-start)/2);\n\t\tint pivotPos = (int)d ;\n\n\n\t\t//and swap it with the left (start) position, where it needs to be\n\t\tswap(array, start, pivotPos);\n\n\t\t//Set pivot point and store value\n\t\tpivotPos = start;\n\t\tT pivotVal = array[start];\n\n\t\t//Pivot is chosen, placed, and ready\n\n\t\t//For each item\n\t\tfor (int pos = start + 1; pos < end; pos++) {\n\t\t\t//If its less than the pivot\n\t\t\tif (array[pos].compareTo(pivotVal) <= 0) {\n\t\t\t\tlastSwappedTo = lastSwappedTo + 1; // Update last swapped\n\n\t\t\t\t//Swap to one ahead of the last swapped item\n\t\t\t\tswap(array, lastSwappedTo, pos);\n\n\n\t\t\t}\n\t\t}\n\t\t//Swap pivot with final last swapped\n\t\tswap(array, lastSwappedTo, pivotPos);\n\t\tpivotPos = lastSwappedTo; //update pivotPos\n\n\n\t\t//Recurse into sub arrays\n\t\tQuickSort(array, start, pivotPos); //Handle First partition\n\t\tQuickSort(array, pivotPos + 1, end); //Handle Third partition\n\n\t}", "title": "" }, { "docid": "cba49f7a3c1500b7309069854ec28f3c", "score": "0.58602196", "text": "public static void quickSort(int[] arr, int low,int high)\n {\n if(arr==null||arr.length==0)\n {\n return;\n }\n if(low>=high)\n {\n return;\n }\n int middle=low+(high-low)/2;\n int pivot = arr[middle];\n int i=low;\n int j=high;\n while(i<=j)\n {\n while(arr[i]<pivot)\n {\n i++;\n }\n while(arr[j]>pivot)\n {\n j--;\n }\n if(i<=j)\n {\n int temp = arr[i];\n arr[i]=arr[j];\n arr[j]=temp;\n i++;\n j--;\n\n }\n }\n if(low<j)\n {\n quickSort( arr,low,j);\n }\n if(high>i)\n {\n quickSort( arr,i,high);\n }\n }", "title": "" }, { "docid": "eaa0b27b48d2a8ca426b2792cf0739c8", "score": "0.5845792", "text": "public void quickSort(){\n \n }", "title": "" }, { "docid": "b905792936b9f2b971bbae56aa54411b", "score": "0.5833473", "text": "public static <AnyType extends Comparable<? super AnyType>>\n void quicksort3(AnyType[] a)\n {\n quicksort3(a, 0, a.length - 1);\n }", "title": "" }, { "docid": "8d51c99ecbee5da60ff3b1e46d79fc94", "score": "0.5824212", "text": "private void quickSort(Comparable<T>[] array, int left, int right) {\n if (left < right) {\n int pivotIndex = left + (int) ((Math.random() * (right - left)));\n int newPivot = partition(array, left, right, pivotIndex);\n\n quickSort(array, left, newPivot - 1);\n quickSort(array, newPivot + 1, right);\n }\n }", "title": "" }, { "docid": "30caa1b1e9bfbd3ed084939e80ddb48b", "score": "0.58153266", "text": "@Test\n public void quickSortTestCaseWith100ElementsAndFirstPivotStrategy() throws Exception {\n sortAndCheckArrayFromResource(100, \"/QuickSort_100.txt\", 615,\n (a, start, end) -> QuickSort.sortChoosingFirstElementAsPivot(a, 0, end));\n }", "title": "" }, { "docid": "b5a305ea4f026f68d51c8b232ecddcb4", "score": "0.58123547", "text": "public QuickSort(){\n\t\tthis.mode=SortMode.FIXED;\n\t\trand=new Random();\n\t\tthis.arraySizeAtWhichRunInsertionSort=this.DONT_RUN_INSERTION_SORT;\n\t\tis=new InsertionSort();\n\t}", "title": "" }, { "docid": "9977cf7bf0d2032bdc2e83bc869625b9", "score": "0.58072", "text": "private int Median3x3(){\n for (int i = 0; i < neighborAry.length - 1; i++) {\n for (int j = 0; j < neighborAry.length - i - 1; j++) { \n\n if (neighborAry[j] > neighborAry[j + 1]) { \n int tmp = neighborAry[j]; \n neighborAry[j] = neighborAry[j + 1]; \n neighborAry[j + 1] = tmp; \n } \n } \n }\n return neighborAry[5]; // #5 is the Median number\n }", "title": "" }, { "docid": "be39e6311bde217d79eae42d432db66e", "score": "0.5802242", "text": "public static void quickSort(Integer[] arr, int lo, int hi){\n if(lo < hi){\n int pivot = partition(arr, lo, hi);\n quickSort(arr, lo, pivot -1);\n quickSort(arr, pivot + 1, hi);\n }\n }", "title": "" }, { "docid": "bc4cc35d34d7b3b380060803f7804c7f", "score": "0.58011055", "text": "@Test\n\tpublic void testQuickSort()\n\t{\n\t\tdouble[] arr = {22.22, 3.21, 6.32, 19.86, 5.41};\n\t\tdouble[] result = {3.21, 5.41, 6.32, 19.86, 22.22};\n\t\tassertTrue(Arrays.equals(result, SortComparison.quickSort(arr)));\n\t}", "title": "" }, { "docid": "42fff74fc68b25431fa2995b562414c9", "score": "0.57786304", "text": "void QuickSort(int a[], int lo0, int hi0) throws Exception\n {\n int lo = lo0;\n int hi = hi0;\n int mid;\n\n if ( hi0 > lo0)\n {\n\n /* Arbitrarily establishing partition element as the midpoint of\n * the array.\n */\n mid = a[ ( lo0 + hi0 ) / 2 ];\n\n // loop through the array until indices cross\n while( lo <= hi )\n {\n /* find the first element that is greater than or equal to\n * the partition element starting from the left Index.\n */\n\t while( ( lo < hi0 ) && pauseTrue(lo0, hi0) && ( a[lo] < mid ))\n\t\t ++lo;\n\n /* find an element that is smaller than or equal to\n * the partition element starting from the right Index.\n */\n\t while( ( hi > lo0 ) && pauseTrue(lo0, hi0) && ( a[hi] > mid ))\n\t\t --hi;\n\n // if the indexes have not crossed, swap\n if( lo <= hi )\n {\n swap(a, lo, hi);\n ++lo;\n --hi;\n }\n }\n\n /* If the right index has not reached the left side of array\n * must now sort the left partition.\n */\n if( lo0 < hi )\n QuickSort( a, lo0, hi );\n\n /* If the left index has not reached the right side of array\n * must now sort the right partition.\n */\n if( lo < hi0 )\n QuickSort( a, lo, hi0 );\n\n }\n }", "title": "" }, { "docid": "446808885c895dc92060eaddb1ae9546", "score": "0.57660204", "text": "private static void quickSort(int[] a, int start, int end) {\n\n while (end - start > 1) {\n // Partition the array\n int[] pivot = partition(a, start, end);\n\n // Recursively sort the elements of the smallest part of the\n // partitioned array and update 'start' and 'end' to the values\n // corresponding to the largest part of the array\n if ((pivot[0] - start) < (end - (pivot[1] + 1))) {\n quickSort(a, start, pivot[0]);\n start = pivot[1] + 1;\n }\n else {\n quickSort(a, pivot[1] + 1, end);\n end = pivot[0];\n }\n }\n }", "title": "" }, { "docid": "2609980dbdf3fd0e9eb0ad7cc37fd89a", "score": "0.5765588", "text": "private static int med3(int x[], int a, int b, int c) {\n\treturn (x[a] < x[b] ?\n\t\t(x[b] < x[c] ? b : x[a] < x[c] ? c : a) :\n\t\t(x[b] > x[c] ? b : x[a] > x[c] ? c : a));\n }", "title": "" }, { "docid": "a5f760a459a75397739b0178df0e89fd", "score": "0.57645184", "text": "public void quickSort(int min, int max){\r\n\t\tint pivot;\r\n\t\tif (min<max){\r\n\t\t\tpivot = partition(min, max);\r\n\t\t\tquickSort(min, pivot-1);\r\n\t\t\tquickSort(pivot+1, max);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7007279860f1bf70c35325d760902c42", "score": "0.575765", "text": "public static <AnyType extends Comparable<? super AnyType>>\n void quicksort2(AnyType[] a, int left, int right)\n {\n if(left + CUTOFF <= right)\n {\n Random random = new Random();\n int rand = random.nextInt(right - left) + left;\n \n AnyType pivot = a[rand];\n \n if(rand != right)\n swapReferences(a, rand, right);\n \n // Begin partitioning\n int i = left - 1, j = right;\n for( ; ; )\n {\n while(a[++i].compareTo(pivot) < 0 && right > i) { }\n while(a[--j].compareTo(pivot) > 0 && left < j) { }\n if(i < j) \n swapReferences(a, i, j);\n else\n break;\n }\n\n swapReferences(a, i, right); // Restore pivot\n\n quicksort2(a, left, i - 1); // Sort small elements\n quicksort2(a, i + 1, right); // Sort large elements\n }\n else // Do an insertion sort on the subarray\n insertionSort(a, left, right);\n }", "title": "" }, { "docid": "3ee6a60f299b75ed9e3c8b505725962e", "score": "0.57534933", "text": "public static void quicksort(int[] A, int lo, int hi) {\n if (lo < hi) {\r\n int dp = partition1(A, lo, hi);\r\n quicksort(A, lo, dp-1);\r\n quicksort(A, dp+1, hi);\r\n }\r\n }", "title": "" }, { "docid": "4751b5a28180a0f0376b1fce9e986208", "score": "0.575036", "text": "public void quickSort()\r\n {\r\n sort(head, last);\r\n }", "title": "" }, { "docid": "e9d8cbc82f8cd090b36cfa5657169c3a", "score": "0.5733466", "text": "public static <AnyType extends Comparable<? super AnyType>>\n void quicksort1(AnyType[] a, int left, int right)\n {\n if( left + CUTOFF <= right )\n {\n AnyType pivot = a[left];\n swapReferences(a, left, right);\n \n // Begin partitioning\n int i = left - 1, j = right;\n for( ; ; )\n {\n while((a[++i].compareTo(pivot) < 0) && right > i) { }\n while((a[--j].compareTo(pivot) > 0) && left < j) { }\n if(i < j)\n swapReferences(a, i, j);\n else\n break;\n }\n\n swapReferences(a, i, right); // Restore pivot\n\n quicksort1(a, left, i - 1); // Sort small elements\n quicksort1(a, i + 1, right); // Sort large elements\n }\n else // Do an insertion sort on the subarray\n insertionSort(a, left, right);\n }", "title": "" }, { "docid": "8394654c0cd66efc273953810013b91e", "score": "0.57207376", "text": "private static final void m372quickSortAa5vz7o(short[] array, int left, int right) {\n int index = m368partitionAa5vz7o(array, left, right);\n if (left < index - 1) {\n m372quickSortAa5vz7o(array, left, index - 1);\n }\n if (index < right) {\n m372quickSortAa5vz7o(array, index, right);\n }\n }", "title": "" }, { "docid": "c7792c6a9d715fb781cdadf9eb3d8ef8", "score": "0.5702243", "text": "private static void quickSort(Comparable[] sortedCollection, int left, int right) {\n\t\tint original_left = left;\n\t\tint original_right = right;\n\t\tComparable mid = sortedCollection[ (left + right) / 2];\n\t\tdo {\n\t\t\twhile (sortedCollection[left].compareTo(mid) < 0) {\n\t\t\t\tleft++;\n\t\t\t}\n\t\t\twhile (mid.compareTo(sortedCollection[right]) < 0) {\n\t\t\t\tright--;\n\t\t\t}\n\t\t\tif (left <= right) {\n\t\t\t\tComparable tmp = sortedCollection[left];\n\t\t\t\tsortedCollection[left] = sortedCollection[right];\n\t\t\t\tsortedCollection[right] = tmp;\n\t\t\t\tleft++;\n\t\t\t\tright--;\n\t\t\t}\n\t\t} while (left <= right);\n\t\tif (original_left < right) {\n\t\t\tquickSort(sortedCollection, original_left, right);\n\t\t}\n\t\tif (left < original_right) {\n\t\t\tquickSort(sortedCollection, left, original_right);\n\t\t}\n\t}", "title": "" }, { "docid": "f87c7ed88d12415f8785323ea1bddffb", "score": "0.5677035", "text": "public static void quickSort(String[] arrayToSort, int low, int high) {\n String pivot, temp;\n //\"Low\" and \"high\" indices to work up from bottom and down from top\n int l, h;\n boolean pivotLocFound = false;\n //If we are looking at only one element\n //Or got passed in an \"incorrect\" value for high\n if (high <= low) {\n return;\n } else {\n //Set pivot to lowest element of array\n pivot = arrayToSort[low];\n l = low + 1;\n h = high - 1;\n //Looping until we find where the pivot char should be placed\n while (!pivotLocFound) {\n //\"Scanning\" left until we find an element larger than the pivot\n while (l < high-1 && arrayToSort[l].compareTo(pivot) < 0) {\n l++;\n }\n //Scanning right until we find an element smaller than the pivot\n while (h > low && arrayToSort[h].compareTo(pivot) > 0) {\n h--;\n }\n //If l and h cross, we have found the new location for our pivot\n if (l >= h) {\n pivotLocFound = true;\n //Otherwise, we swap the elements at l and h\n //And continue scanning until we find our pivot location\n } else {\n temp = arrayToSort[l];\n arrayToSort[l] = arrayToSort[h];\n arrayToSort[h] = temp;\n //Incrementing l and decrementing h since we just swapped\n //those elements and there is no need to \"review\" them\n l++;\n h--;\n }\n }\n //Placing pivot at new location\n arrayToSort[low] = arrayToSort[h];\n arrayToSort[h] = pivot;\n //Sorting elements to left and right of pivot\n quickSort(arrayToSort, low, h);\n quickSort(arrayToSort, h + 1, high);\n }\n return;\n }", "title": "" }, { "docid": "5320ca38cec18b3f90dbeb8a77be6591", "score": "0.56758773", "text": "public void wquickSort(int[] array, int low, int high){\n\t\tint i = low;\n\t\tint j = high;\n\t\t\n\t\tint pivot = high;\n\t\t\n\t\twhile(i <= j){\n\t\t\twhile(array[i] < pivot){\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t\twhile(array[j] > pivot){\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\tif(i <= j){\n\t\t\t\tswap(array, i, j);\n\t\t\t\ti++;\n\t\t\t\tj--;\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tif(low < j){\n\t\t\tquickSort(array, low, j);\n\t\t}\n\t\t\n\t\tif(i < high){\n\t\t\tquickSort(array, i, high);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "a9ad75175e6243782478f2702f712207", "score": "0.5662656", "text": "void QuickSort(String arr[], int first, int last) {\n if (first < last) {\n int p = divide(arr, first, last);\n QuickSort(arr, first, p - 1);\n QuickSort(arr, p + 1, last);\n }\n }", "title": "" }, { "docid": "1e752c78b035d6db2a5261624d5bbbd9", "score": "0.56277806", "text": "private static void quickSort(Comparable[] sortedCollection, int left,\n \t\t\tint right) {\n \t\tint original_left = left;\n \t\tint original_right = right;\n \t\tComparable mid = sortedCollection[(left + right) / 2];\n \t\tdo {\n \t\t\twhile (sortedCollection[left].compareTo(mid) < 0) {\n \t\t\t\tleft++;\n \t\t\t}\n \t\t\twhile (mid.compareTo(sortedCollection[right]) < 0) {\n \t\t\t\tright--;\n \t\t\t}\n \t\t\tif (left <= right) {\n \t\t\t\tComparable tmp = sortedCollection[left];\n \t\t\t\tsortedCollection[left] = sortedCollection[right];\n \t\t\t\tsortedCollection[right] = tmp;\n \t\t\t\tleft++;\n \t\t\t\tright--;\n \t\t\t}\n \t\t} while (left <= right);\n \t\tif (original_left < right) {\n \t\t\tquickSort(sortedCollection, original_left, right);\n \t\t}\n \t\tif (left < original_right) {\n \t\t\tquickSort(sortedCollection, left, original_right);\n \t\t}\n \t}", "title": "" }, { "docid": "fb96545983da23dccb79584fb731ab5a", "score": "0.56075656", "text": "public static void quicksort(double[] a, int[] index, int left, int right) {\r\n\t if (right <= left) return;\r\n\t int i = partition(a, index, left, right);\r\n\t quicksort(a, index, left, i-1);\r\n\t quicksort(a, index, i+1, right);\r\n\t}", "title": "" }, { "docid": "6dccfe1b242b37c5edf5d267aa228977", "score": "0.5600272", "text": "static int partition_pivot_first(ArrayList<Integer> arr, int low, int high)\r\n {\n int pivot = arr.get(low);\r\n //put the pivot at the end of the array\r\n Collections.swap(arr,low,high);\r\n\r\n int store = low ;\r\n\r\n for(int j = low; j <= high - 1; j++)\r\n { //if the array[j] is less then the pivot we swap it with the store\r\n if (arr.get(j) < pivot)\r\n {\r\n Collections.swap(arr,store,j);\r\n //increment the store index\r\n store++;\r\n }\r\n countQuickSelect1++;\r\n }\r\n //replace the pivot with the store\r\n Collections.swap(arr,store,high);\r\n return (store);\r\n }", "title": "" }, { "docid": "4db2d8869fbdae37d6d392ba125f4594", "score": "0.55898404", "text": "private static int partition(byte[] arr, int startIndex, int endIndex){ // divides the array into two sections, elements to left of pivot are smaller than pivot and\n int pivot = endIndex; // to the right of pivot are larger than pivot, pivot is chosen randomly as rightmost element\n int leftIndex = startIndex; //1. elements smaller than pivot are placed at this position and then this position is incremented\n for(int i = startIndex; i < endIndex; i++){ // loop runs form leftMost index till 2nd rightMostIndex ( index left of pivot)\n if(arr[i]<arr[pivot]){ // if the element is smaller than pivot, then it is swapped with the leftIndex(see 1.)\n Main.swap(arr,i, leftIndex); // so all elements that were swapped with leftIndex are smaller than pivot\n leftIndex++; // leftIndex is increment after the swap to represent new position that the smaller than pivot elements\n } // should be swapped with\n } // since the loop runs only through non-pivot section of the array,\n Main.swap(arr,leftIndex, (byte) pivot); // the pivot is swapped with the leftIndex as all elements smaller than pivot are placed at to the left of incremented leftIndex\n return leftIndex; // this is the new pivot position ( leftIndex ), all elements to the left of leftIndex are smaller than pivot and\n }", "title": "" }, { "docid": "9dd427693596a8a78112ca8a3c66d266", "score": "0.5584379", "text": "private static int partition (int[] array, int first, int last, PivotSelector pivotSelector) {\n\n int pivotIndex = pivotSelector.choosePivotIndex(array, first, last);\n swap(array, pivotIndex, last);\n pivotIndex = last;\n int pivot = array[pivotIndex];\n // determine subarrays Smaller = a[first..endSmaller]\n // and Larger = a[endSmaller+1..last-1]\n // such that entries in Smaller are <= pivot and\n // entries in Larger are >= pivot; initially, these subarrays are empty\n int indexFromLeft = first;\n int indexFromRight = pivotIndex - 1;\n boolean done = false;\n while (!done) {\n // starting at beginning of array, leave entries that are < pivot;\n // locate first entry that is >= pivot; you will find one,\n // since last entry is >= pivot\n while (array[indexFromLeft] < pivot) {\n indexFromLeft++;\n }\n // starting at end of array, leave entries that are > pivot;\n // locate first entry that is <= pivot; you will find one,\n // since first entry is <= pivot\n while (indexFromRight >=0 && array[indexFromRight] > pivot) {\n indexFromRight--;\n }\n\n if (indexFromLeft < indexFromRight) {\n swap(array, indexFromLeft, indexFromRight);\n indexFromLeft++;\n indexFromRight--;\n } else {\n done = true;\n }\n } \n\n\n // place pivot between Smaller and Larger subarrays\n swap(array, pivotIndex, indexFromLeft);\n pivotIndex = indexFromLeft;\n return pivotIndex;\n }", "title": "" }, { "docid": "05f7c14bd8b2b7f3df3f1ad021617bba", "score": "0.553377", "text": "public void quickSort(DNode left, DNode right)\r\n {\r\n if(left.getPrev() == right || left == right) // base case for when the method is recursing to the left (checks if the size of the working area is 1)\r\n return;\r\n \r\n left = left.getPrev(); // offset the pointers so it wont move on a swap\r\n right = right.getNext();\r\n \r\n DNode pivotNode = partition(left.getNext(), right.getPrev()); // call the partition method to set the pivotNode to its sorted postion in the linked list\r\n \r\n if(left.getNext() == right || left == right) // base case for when the method is recursing to the right (checks if the size of the working area is 1) \r\n return;\r\n \r\n quickSort(left.getNext(), pivotNode.getPrev()); // recursively call quick sort to partition the left side of the linked list\r\n quickSort(pivotNode.getNext(), right.getPrev()); // recursively call quick sort partition the right side of the linked list\r\n \r\n }", "title": "" }, { "docid": "0ee2488cb117db3292a629d28ca1613a", "score": "0.5528486", "text": "private static void sort1(int x[], int off, int len) {\n\t// Insertion sort on smallest arrays\n\tif (len < 7) {\n\t for (int i=off; i<len+off; i++)\n\t\tfor (int j=i; j>off && x[j-1]>x[j]; j--)\n\t\t swap(x, j, j-1);\n\t return;\n\t}\n\n\t// Choose a partition element, v\n\tint m = off + (len >> 1); // Small arrays, middle element\n\tif (len > 7) {\n\t int l = off;\n\t int n = off + len - 1;\n /*\n\t if (len > 40) { // Big arrays, pseudomedian of 9\n\t\tint s = len/8;\n\t\tl = med3(x, l, l+s, l+2*s);\n\t\tm = med3(x, m-s, m, m+s);\n\t\tn = med3(x, n-2*s, n-s, n);\n\t }\n */\n\t m = med3(x, l, m, n); // Mid-size, med of 3\n\t}\n\tint v = x[m];\n\n\t// Establish Invariant: v* (<v)* (>v)* v*\n\tint a = off, b = a, c = off + len - 1, d = c;\n\twhile(true) {\n\t while (b <= c && x[b] <= v) {\n\t\tif (x[b] == v)\n\t\t swap(x, a++, b);\n\t\tb++;\n\t }\n\t while (c >= b && x[c] >= v) {\n\t\tif (x[c] == v)\n\t\t swap(x, c, d--);\n\t\tc--;\n\t }\n\t if (b > c)\n\t\tbreak;\n\t swap(x, b++, c--);\n\t}\n\n\t// Swap partition elements back to middle\n\tint s, n = off + len;\n\ts = Math.min(a-off, b-a ); vecswap(x, off, b-s, s);\n\ts = Math.min(d-c, n-d-1); vecswap(x, b, n-s, s);\n\n\t// Recursively sort non-partition-elements\n\tif ((s = b-a) > 1)\n\t sort1(x, off, s);\n\tif ((s = d-c) > 1)\n\t sort1(x, n-s, s);\n }", "title": "" }, { "docid": "56f2a6eee08bb96bd6556c7399cf93c8", "score": "0.5518841", "text": "private static <T> void quickSortHelper(T[] arr, Comparator<T> comparator,\r\n Random rand, int left, int right) {\r\n\r\n if (right == left) {\r\n return;\r\n } else if (right - left == 1) {\r\n return;\r\n }\r\n\r\n int pivotIndex = rand.nextInt(right - left) + left;\r\n T pivot = arr[pivotIndex];\r\n switchArray(arr, left, pivotIndex);\r\n int leftIndex = left + 1;\r\n int rightIndex = right - 1;\r\n\r\n while (leftIndex <= rightIndex) {\r\n while (leftIndex <= rightIndex\r\n && comparator.compare(pivot, arr[leftIndex]) >= 0) {\r\n leftIndex++;\r\n }\r\n while (leftIndex <= rightIndex\r\n && comparator.compare(pivot, arr[rightIndex]) <= 0) {\r\n rightIndex--;\r\n }\r\n if (leftIndex < rightIndex) {\r\n switchArray(arr, leftIndex, rightIndex);\r\n leftIndex++;\r\n rightIndex--;\r\n }\r\n }\r\n\r\n switchArray(arr, left, rightIndex);\r\n quickSortHelper(arr, comparator, rand, left, rightIndex);\r\n quickSortHelper(arr, comparator, rand, rightIndex + 1, right);\r\n\r\n }", "title": "" }, { "docid": "b94bb08ae03ae7213a49e52abd84d646", "score": "0.5514292", "text": "private void qsort(final int[] res, final int first, int last) {\n\t\tif (last < first) return;\n\t\t// Step 1, pick a pivot. We will just use halfway-through-array for idx of pivot\n\t\tint idxOfPivot = partition(res, (first + last) / 2, first, last);\n\t\t// Step 2, sort the two halves\n\t\tqsort(res, first, idxOfPivot - 1);\n\t\tqsort(res, idxOfPivot + 1, last);\n\t}", "title": "" }, { "docid": "f7f0fa81c606b867013697baa685a50e", "score": "0.5511441", "text": "private void sort(int []v, int low, int high){\n\t\t\n\t\tint subArraySize=high-low;\n\t\t//if low less or equal high\n\t\tif(subArraySize<=0){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//if the array size is small enough for insertion sort and insertion sort is enabled - use it\n\t\tif(subArraySize<=this.arraySizeAtWhichRunInsertionSort && this.arraySizeAtWhichRunInsertionSort!=this.DONT_RUN_INSERTION_SORT){\n\t\t\tis.sort(v,low,high);\n\t\t\treturn;\n\t\t}\n\t\t//use quick sort instead otherwise\n\t\telse{\n\t\t\t\n\t\t\tint pivotIndex;\n\t\t\t//if fixed pivotal point\n\t\t\tif(this.mode==SortMode.FIXED || this.mode==SortMode.FIXED_AND_INSERTION){\n\t\t\t\tpivotIndex=low;\n\t\t\t}\n\t\t\t//else randomize pivotal point\n\t\t\telse{\n\t\t\t\tpivotIndex=rand.nextInt(high-low+1)+low;\n\t\t\t}\n\t\t\tpivotIndex=low;\n\t\t\t\n\t\t\t//extract the pivot value\n\t\t\tint pivot=v[pivotIndex];\n\n\t\t\tint indexFromLeft = low;\n\t\t\tint indexFromRight = high;\n\t\t\t\n\t\t //Go from both sides\n\t\t while (indexFromLeft <= indexFromRight) {\n\t\t // Keep looking for an index from left that is higher than pivot\n\t\t // Searching from the left\n\t\t while (v[indexFromLeft] < pivot) {\n\t\t \t indexFromLeft++;\n\t\t }\n\t\t // Keep looking for an index from right that is lower than pivot\n\t\t // Searching from the right\n\t\t while (v[indexFromRight] > pivot) {\n\t\t \t indexFromRight--;\n\t\t }\n\n\t\t // Now we've found two index that we can switch. One from the right that is lower, and one from the left that is higher\n\t\t if (indexFromLeft <= indexFromRight) {\n\t\t swap(v,indexFromLeft, indexFromRight);\n\t\t indexFromLeft++;\n\t\t indexFromRight--;\n\t\t }\n\t\t }\n\t\t \n\t\t //now recursively sort the left sub array\n\t\t if (low < indexFromRight)\n\t\t sort(v,low, indexFromRight);\n\t\t //recursively sort right sub array\n\t\t if (indexFromLeft < high)\n\t\t sort(v,indexFromLeft, high);\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "dcdf22fac9720365d3d120a0c81f1855", "score": "0.55098", "text": "public static void main(String[] args) {\n int[] arr={23,11,2,34,1};\n int[] newarr=quicksort(arr,0,4);\n for(int i=0;i<newarr.length;i++){System.out.println(newarr[i]);}\n }", "title": "" }, { "docid": "d89de6616effc160c220e24ccd3a25ff", "score": "0.55079585", "text": "public void quickSort(int p, int r){\n //the index of the partition\n int part = 0;\n if (p < r){\n part = partition(p, r);\n quickSort(p, part - 1);\n quickSort(part + 1, r);\n }\n }", "title": "" }, { "docid": "2e6f35db9d9748695973d2bfe120dc5e", "score": "0.54918826", "text": "static void quickSort(int a[]) {\n quickSortSplit(a, 0, a.length - 1);\n }", "title": "" }, { "docid": "ae811d073657366ac04cbdd54abb8e6f", "score": "0.54909855", "text": "public MyList<Integer> quickSort(MyList<Integer> m){\r\n\t\t//-----------------------------\r\n\t\t//Output Variable --> InitialValue\r\n\t\t//-----------------------------\r\n\t\tMyList<Integer> res = null;\r\n\r\n\r\n\t\t//-----------------------------\r\n\t\t//SET OF OPS\r\n\t\t//-----------------------------\r\n\r\n\t\t//-----------------------------\r\n\t\t// I. SCENARIO IDENTIFICATION\r\n\t\t//-----------------------------\r\n\t\tint scenario = 0;\r\n\t\t//Rule 1. MyList m is empty\r\n\t\tif (m.length() == 0)\r\n\t\t\tscenario = 1;\r\n\t\telse{\r\n\t\t\t//Rule 2. MyList m contains one element\r\n\t\t\tif (m.length() == 1)\r\n\t\t\t\tscenario = 2;\r\n\t\t\t\t//Rule 3. MyList m contains more than one element\r\n\t\t\telse\r\n\t\t\t\tscenario = 3;\r\n\t\t}\r\n\t\t\r\n\t\t//-----------------------------\r\n\t\t// II. SCENARIO IMPLEMENTATION \r\n\t\t//-----------------------------\r\n\t\t\t\r\n\t\tswitch(scenario){\r\n\t\t\tcase 1:{\r\n\t\t\t\tres = new MyDynamicList<Integer>();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 2:{\r\n\t\t\t\tres = new MyDynamicList<Integer>();\r\n\t\t\t\tres.addElement(0,m.getElement(0));\r\n\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 3:{\r\n\t\t\t\tres = new MyDynamicList<Integer>();\r\n\t\t\t\tint pivot = m.getElement(m.length()/2);\r\n\t\t\t\tm.removeElement(m.length()/2);\r\n\t\t\t\tMyList<Integer> low = smallerMyList(m,pivot);\r\n\t\t\t\tMyList<Integer> high = biggerEqualMyList(m,pivot);\r\n\t\t\t\tlow = quickSort(low);\r\n\t\t\t\thigh = quickSort(high);\r\n\t\t\t\tres = concatenate(low,high);\r\n\t\t\t\tint element = res.getElement(res.length()/2);\r\n\t\t\t\tif(pivot == element){\r\n\t\t\t\t\tres.addElement(res.length()/2,element);\r\n\t\t\t\t}\r\n\t\t\t\tint i = 0;\r\n\t\t\t\tint length = res.length();\r\n\t\t\t\twhile(i<length){\r\n\t\t\t\t\tint temp = res.getElement(i);\r\n\t\t\t\t\tif(pivot<temp){\r\n\t\t\t\t\t\tres.addElement(i,pivot);\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\tm.addElement((m.length()/2),pivot);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\r\n\t\t//-----------------------------\r\n\t\t//Output Variable --> Return FinalValue\r\n\t\t//-----------------------------\t\t\r\n\t\treturn res;\t\t\r\n\t}", "title": "" }, { "docid": "7af9ff0f9d0c8cfb6759ab21bd1e9af7", "score": "0.54861915", "text": "public static void quicksort(int[] data) {\n quickSortH(data, 0, data.length-1);\n }", "title": "" }, { "docid": "04bb0907a0bfdf06de10027b68d35a05", "score": "0.546785", "text": "void QuickSort(char arr[], int l, int h)\n {\n // create auxiliary stack\n int stack[] = new int[h-l+1];\n \n // initialize top of stack\n int top = -1;\n \n // push initial values in the stack\n stack[++top] = l;\n stack[++top] = h;\n \n // keep popping elements until stack is not empty\n while (top >= 0)\n {\n // pop h and l\n h = stack[top--];\n l = stack[top--];\n \n // set pivot element at it's proper position\n int p = partition(arr, l, h);\n \n // If there are elements on left side of pivot,\n // then push left side to stack\n if ( p-1 > l )\n {\n stack[ ++top ] = l;\n stack[ ++top ] = p - 1;\n }\n \n // If there are elements on right side of pivot,\n // then push right side to stack\n if ( p+1 < h )\n {\n stack[ ++top ] = p + 1;\n stack[ ++top ] = h;\n }\n }\n }", "title": "" } ]
5e185150f8b61ce5105970ef4a853eb6
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
[ { "docid": "2d3bb2317e95f225ecc81f473857ba56", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n dataView = new javax.swing.JTable();\n info = new javax.swing.JLabel();\n\n setName(\"Form\"); // NOI18N\n\n jScrollPane1.setName(\"jScrollPane1\"); // NOI18N\n\n dataView.setModel(data);\n dataView.setName(\"dataView\"); // NOI18N\n jScrollPane1.setViewportView(dataView);\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(lprms.LPRMSApp.class).getContext().getResourceMap(Panel_UserCheckin.class);\n info.setText(resourceMap.getString(\"info.text\")); // NOI18N\n info.setName(\"info\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)\n .addComponent(info, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(info))\n );\n }", "title": "" } ]
[ { "docid": "cd0b28bea46d143fe752578508c201dc", "score": "0.7728592", "text": "private void initComponents() {//GEN-BEGIN:initComponents\n }", "title": "" }, { "docid": "e8b4768b3e3c4c6ca716dae9d0c39df9", "score": "0.749507", "text": "public RealEstatesForm() {\n initComponents();\n }", "title": "" }, { "docid": "4bbfe05cc175e36d651bc35bf0039652", "score": "0.74365294", "text": "public Mainform() {\n initComponents();\n \n }", "title": "" }, { "docid": "17113ab7a06544a62482637e283ac13d", "score": "0.7394026", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n }", "title": "" }, { "docid": "17113ab7a06544a62482637e283ac13d", "score": "0.7394026", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n }", "title": "" }, { "docid": "b431c293f27700e21b92be92177c04a2", "score": "0.73482597", "text": "public UIForm() {\n initComponents();\n }", "title": "" }, { "docid": "37a5472d5b0f35cf64a077bc1dd978c4", "score": "0.73213893", "text": "public Form() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72913563", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72913563", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72913563", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "d3a53f58370a794f26006a784930f8b8", "score": "0.7262225", "text": "public PatDetails_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "5db94d450d3a61db9bf0919e0a4c9e47", "score": "0.7258635", "text": "public Settings_Form() {\n\t\tinitComponents();\n\t\tthis.setLocationRelativeTo(null);\n\t\tsetTextFields();\n\t}", "title": "" }, { "docid": "a2932c04e2171d72b51775e937c4c541", "score": "0.7213159", "text": "public Form1() {\n initComponents();\n }", "title": "" }, { "docid": "81d45a20ed732bcd6dedf7f2b0b279c4", "score": "0.71821874", "text": "public BookingFinalForm() {\n\n //setting bounds of frame\n this.setBounds(100,100,600,500);\n \n }", "title": "" }, { "docid": "28425600ef9ec80e82f03c8c1fc97f1d", "score": "0.71193105", "text": "public STD_VERWALTUNG_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "6772005bb57f5d51b0486dfb4df53996", "score": "0.7072892", "text": "public Editorial() {\n initComponents();\n }", "title": "" }, { "docid": "8e6426acec09bd7d8941839da3b4ae8f", "score": "0.7072282", "text": "public AlapForm() {\n initComponents();\n }", "title": "" }, { "docid": "5404bd5b48c01940ff09ecf78aff0f75", "score": "0.7069414", "text": "public form() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "title": "" }, { "docid": "c58a3c50604b103bf527bda149ca82f1", "score": "0.70501465", "text": "public CambiarContra_Form() {\n initComponents();\n }", "title": "" }, { "docid": "3a50f1029d74ca3be461298e0a51ec1e", "score": "0.7021532", "text": "public frmDoktorTanimlari() {\n initComponents();\n }", "title": "" }, { "docid": "f4b759b0eabda5922df2c2fb08ab2d21", "score": "0.69982266", "text": "public Newpatientform() {\n initComponents();\n }", "title": "" }, { "docid": "c847654ce9a8d1508110ef4143b7f57b", "score": "0.69890785", "text": "public SiParkirUI() {\n initComponents();\n }", "title": "" }, { "docid": "9b0cb168fcd80af9f1fa25903df601f1", "score": "0.69558924", "text": "public ItemForm() {\n initComponents();\n }", "title": "" }, { "docid": "5f10421a33305da5756d42032ef779d1", "score": "0.6948077", "text": "public FrmBarang() {\n initComponents();\n }", "title": "" }, { "docid": "485a92304965cba5e32a2a56fc95993c", "score": "0.6947408", "text": "public MainForm() {\r\n super(\"Main Form\");\r\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n initComponents();\r\n }", "title": "" }, { "docid": "abca895b2170b8f8186464c00859db0a", "score": "0.6939296", "text": "public Kuis1() {\n initComponents();\n }", "title": "" }, { "docid": "5cdd76d5cc764a2b816720f953a7027a", "score": "0.69270515", "text": "public PetunjukPenggunaan() {\n initComponents();\n }", "title": "" }, { "docid": "f9a87b0b8df9ff1f04c283119bcf5f01", "score": "0.6925969", "text": "public displayform() {\n initComponents();\n }", "title": "" }, { "docid": "f7498ded95c7459dad1aa1125436d930", "score": "0.69253075", "text": "public GUI_ThemSuaQuanAo() {\n initComponents();\n }", "title": "" }, { "docid": "37b6840ba0594794d42cdb8f710d4395", "score": "0.69219214", "text": "public ur06b1() {\n initComponents();\n }", "title": "" }, { "docid": "50b81da83b435c4121d8d36034eabcb0", "score": "0.6913218", "text": "public pizzaordergui() {\n initComponents();\n }", "title": "" }, { "docid": "3d68e2c2d1cb4e5a084cff9b2c57447f", "score": "0.689293", "text": "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "title": "" }, { "docid": "a5e2982f7d19fbd7905607eb8b5483fa", "score": "0.68698454", "text": "public frmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "a5e2982f7d19fbd7905607eb8b5483fa", "score": "0.68698454", "text": "public frmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "a5e2982f7d19fbd7905607eb8b5483fa", "score": "0.68698454", "text": "public frmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "10137775cb07cc0e8d53a42ec1680054", "score": "0.6865676", "text": "public FormPerson() {\n initComponents();\n prepareForm();\n setLocationRelativeTo(null);\n setVisible(true);\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6852327", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6852327", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6852327", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "e3dfb0c2f82437c8d72117b1150c77e6", "score": "0.68460906", "text": "public formSoma() {\n initComponents();\n }", "title": "" }, { "docid": "152f657dec90d8015f1e16ee7ea6854b", "score": "0.6839441", "text": "public chiefp21() {\n initComponents();\n }", "title": "" }, { "docid": "7233c2c898544f3f6abd4cb82768ee82", "score": "0.6838745", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 496, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 496, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "f9a62b34de062f3fdfe71ded48f6aa83", "score": "0.6828905", "text": "public FrmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "426c4c46dea4d1dcaa78976eaa6a16ce", "score": "0.68280095", "text": "public formGoiMon() {\n initComponents();\n }", "title": "" }, { "docid": "f00f3f9815468f9c3ded201ed26737a4", "score": "0.68207073", "text": "public ResultsForm() {\n initComponents();\n }", "title": "" }, { "docid": "894693ac5a5e798f40dc439e479f7e5e", "score": "0.6814439", "text": "public HangmanUI()\n {\n initComponents();\n }", "title": "" }, { "docid": "051a55aa53cf1aaaeb6dc20c1a7b737b", "score": "0.68102634", "text": "public lcChemMD() {\n initComponents();\n }", "title": "" }, { "docid": "7a4a0fb3bd294fd5796bb13ba405fd3d", "score": "0.6807375", "text": "public SHAS_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "fad22554042e1b8a318b01286577b06a", "score": "0.68018615", "text": "public AddSongFrm() {\n initComponents();\n }", "title": "" }, { "docid": "ce231278c5415b58a1ca52dc82d54e4f", "score": "0.6792609", "text": "public DesignGUI() {\n initComponents();\n }", "title": "" }, { "docid": "c824c290917e23b543552924ff5ca7ff", "score": "0.6791686", "text": "public Flight_Information() {\n initComponents();\n }", "title": "" }, { "docid": "122000e89363123e51e320eec8a37f1c", "score": "0.67866695", "text": "public PatientForm() {\n initComponents();\n }", "title": "" }, { "docid": "9c130aefb85466c73aded825b084df44", "score": "0.6785185", "text": "public MoviesForm() {\n initComponents();\n }", "title": "" }, { "docid": "9dd96efaf9432449e9a8e04f5a1c9e4d", "score": "0.67561865", "text": "public Old_FrameCadastroAvl() {\n initComponents();\n }", "title": "" }, { "docid": "41af56a3df9a40a1a17cc3881f2fa044", "score": "0.6754156", "text": "public ProductsForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "2a7abfdc3eb3de312f8992e65907394e", "score": "0.6751671", "text": "public Cwk() {\n initComponents();\n }", "title": "" }, { "docid": "15ce48f40675d6343e5b61362bb9f832", "score": "0.6748418", "text": "public StudentUI() {\n initComponents();\n }", "title": "" }, { "docid": "4b7e1ef9075f78ad5a3b1752a9d9d22b", "score": "0.67479235", "text": "public d_Main() {\n initComponents();\n \n }", "title": "" }, { "docid": "8d6cfb05c40166aad916761121d49b51", "score": "0.6744482", "text": "public ServiceDetailsGUI() {\n initComponents();\n }", "title": "" }, { "docid": "4e106ae7a7b0c0cfe394c917a9b32bdf", "score": "0.674226", "text": "public NewCarForm() {\n super(\"Add New Car\");\n initComponents();\n setLocationRelativeTo(null);\n conn = JavaConnect.connectDb();\n }", "title": "" }, { "docid": "1b3dee170a39d75443ee085bc72d6c94", "score": "0.6740158", "text": "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents()\r\n {\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 684, Short.MAX_VALUE)\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 483, Short.MAX_VALUE)\r\n );\r\n }", "title": "" }, { "docid": "fd485bdfb087f52829ceea57b4655cbc", "score": "0.6736837", "text": "public UpdateForm() {\n initComponents();\n jLabel1.setVisible(false);\n jLabel2.setVisible(false);\n jLabel3.setVisible(false);\n txtName.setVisible(false);\n txtHomeTown.setVisible(false);\n txtPhone.setVisible(false);\n }", "title": "" }, { "docid": "f53b8cb13594faba8eea0453cb92ba36", "score": "0.67316943", "text": "public WhatWeOfferFrame() {\n initComponents();\n }", "title": "" }, { "docid": "cf6097dcf2ff572b1142ca9458aab7a3", "score": "0.6731376", "text": "public frmCustomer() {\n initComponents();\n }", "title": "" }, { "docid": "130e2ee7095a33015a483b40d2c5f423", "score": "0.67313373", "text": "public AddFrame() {\n initComponents();\n\n jTextField1.setText(null);\n jTextField2.setText(null);\n jTextField4.setText(null);\n \n }", "title": "" }, { "docid": "b1dc49e68642392f5a24c1f8b56230f6", "score": "0.6730547", "text": "public Racun() {\n initComponents();\n }", "title": "" }, { "docid": "90a6f56ddaf85cb99025c57ed7a906c4", "score": "0.67295384", "text": "public FormUser() {\n initComponents();\n this.setLocation(0, 150);\n }", "title": "" }, { "docid": "f34b058ac0206ba07aac79347505d8a6", "score": "0.6728265", "text": "public EhhsistantGUI() {\n initComponents();\n }", "title": "" }, { "docid": "4b1b16b647a7f02f62eb4b2d4d957647", "score": "0.6726845", "text": "public Pregunta5() {\n initComponents();\n }", "title": "" }, { "docid": "cf01e40ca73a7c25909e63f5afad0871", "score": "0.6721024", "text": "public Tugas1() {\n initComponents();\n }", "title": "" }, { "docid": "215de132ed2b69437c537e57e3358be9", "score": "0.6719498", "text": "public LaundryFrame() {\n initComponents();\n }", "title": "" }, { "docid": "cd28b35499f064da0634bd647583b159", "score": "0.67147285", "text": "public Studentframe() {\n initComponents();\n }", "title": "" }, { "docid": "2326a6ff6073efbea2b151e3efc84e80", "score": "0.67122674", "text": "public GUIPagtos() {\n initComponents();\n }", "title": "" }, { "docid": "621411ac09401e2363ffb7152b508b83", "score": "0.6709738", "text": "public UserListForm() {\n initComponents();\n }", "title": "" }, { "docid": "a747df9e716eccdf556b0df271bdb10f", "score": "0.67011464", "text": "public jpLecuyer() {\n initComponents();\n }", "title": "" }, { "docid": "f23a8913333f237ffbaf21d9c70deb48", "score": "0.6700581", "text": "public suhu() {\n initComponents();\n }", "title": "" }, { "docid": "f23a8913333f237ffbaf21d9c70deb48", "score": "0.6700581", "text": "public suhu() {\n initComponents();\n }", "title": "" }, { "docid": "45467e91bb851f8133584e37cba9866a", "score": "0.6694044", "text": "public MPframe() {\n initComponents();\n }", "title": "" }, { "docid": "2fc720f850f9d115252430cc8455c87e", "score": "0.668966", "text": "public BasePanelForm() {\n initComponents();\n }", "title": "" }, { "docid": "8c540e4ea7d722be6f768d8b45ec8965", "score": "0.6688597", "text": "public FrmMain() {\n initComponents();\n }", "title": "" }, { "docid": "8c540e4ea7d722be6f768d8b45ec8965", "score": "0.6688597", "text": "public FrmMain() {\n initComponents();\n }", "title": "" }, { "docid": "e9c667e330af9f292639de982df07f01", "score": "0.6688374", "text": "public DreamGUI() {\n initComponents();\n }", "title": "" }, { "docid": "320512266a4f36eff0842389b089768f", "score": "0.66858745", "text": "public nhanVienForm() {\n initComponents();\n init();\n\n }", "title": "" }, { "docid": "068aaa41811215ad82f63ce6d6db0e90", "score": "0.6684794", "text": "public frmPrincipall() {\n initComponents();\n }", "title": "" }, { "docid": "82b91be09cfa9974003384049dcd30a6", "score": "0.66838217", "text": "public Frhosobenhan() {\n initComponents();\n }", "title": "" }, { "docid": "676139c62ce639e43ccb839239e111d7", "score": "0.668332", "text": "public New_Librarian() {\n initComponents();\n }", "title": "" }, { "docid": "15428cb69f877c12dec0a8afa57c4999", "score": "0.6682557", "text": "public frmDescricaoAtendimento() {\n initComponents();\n }", "title": "" }, { "docid": "9c710eea7ae348d99ee55ec7265da139", "score": "0.66816854", "text": "public UI() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "5b5a055f2223a1ffd95c2733e2d69a0e", "score": "0.6679519", "text": "public JFormPassageiro() {\n initComponents();\n }", "title": "" }, { "docid": "083b4b6b69b02db07fa2d867b9b7decf", "score": "0.6679298", "text": "public FormPetugas() {\n initComponents();\n }", "title": "" }, { "docid": "904042565319552d05b540cc4c71b6d1", "score": "0.66753924", "text": "public MainJFormGUI() {\r\n initComponents();\r\n setEvent();\r\n setTitle(\"QUẢN LÝ QUÁN ĂN\");\r\n jlbTenNhanVien.setText(NhanVienBus.nhanVienDangNhap.getTenNV());\r\n ChucVuBUS chucVuBUS = new ChucVuBUS();\r\n jlbChucVu.setText(chucVuBUS.getChucVuByMaChucVu(NhanVienBus.nhanVienDangNhap.getMaCV()).getTenChucVu());\r\n }", "title": "" }, { "docid": "d56b2a2923a71ba164e1dbe6774308ed", "score": "0.6675206", "text": "public Ques12() {\n initComponents();\n }", "title": "" }, { "docid": "52d9b3cc58c6fc26455839a43ecaddcf", "score": "0.6673851", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 703, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 535, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "40f19e8a2ec781de929c8389a58c7116", "score": "0.6673078", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "title": "" }, { "docid": "bf6fe12ebdf7306560f672e4f7c09871", "score": "0.66703063", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 224, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 266, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "0c5905ced98324f5893dec823438988c", "score": "0.6667859", "text": "public PhoneNumberGUI() {\n initComponents();\n this.setSize(400,300);\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "72e9407f2a8c77e1ec604d30d1cc45db", "score": "0.6664264", "text": "public UI() {\n initComponents();\n }", "title": "" }, { "docid": "f062d655931b31f9b0b47b4bb36beb49", "score": "0.6664197", "text": "public StoreHouseFrame() {\n initComponents();\n }", "title": "" }, { "docid": "0ad1ce74acfc509e1a85d3aa588a495d", "score": "0.66641766", "text": "public frmCalculadora() {\n initComponents();\n }", "title": "" }, { "docid": "0ad1ce74acfc509e1a85d3aa588a495d", "score": "0.66641766", "text": "public frmCalculadora() {\n initComponents();\n }", "title": "" }, { "docid": "dc7a4591eec0dd6b7ffe3d6bcc1bcdf9", "score": "0.66627055", "text": "public JFrame() {\n initComponents();\n }", "title": "" } ]
f2d0de492a3572b1e134326c62127741
optional string key = 1;
[ { "docid": "1743079f210957b1efbbd4de1d7b8cd6", "score": "0.0", "text": "public java.lang.String getKey() {\n java.lang.Object ref = key_;\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 key_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" } ]
[ { "docid": "a62a7cd807444a420ec2da608388ef53", "score": "0.7004464", "text": "private static String getKey(String key)\n {\n return key;\n }", "title": "" }, { "docid": "69f66e8d8cc60806bf8b85f455f06a2b", "score": "0.6771576", "text": "void setKey(String key);", "title": "" }, { "docid": "566c16ee9d34cd6f4e9fd3f6ef82ce36", "score": "0.67612576", "text": "public Object getKey()\n{\n return key;\n}", "title": "" }, { "docid": "412508077e301a65f87a34f70e38b238", "score": "0.67343384", "text": "public abstract String get(String key) ;", "title": "" }, { "docid": "4717631b74ba83a35f895464ac603c63", "score": "0.6727028", "text": "public String getKey() { return _key; }", "title": "" }, { "docid": "a6ea4bd3b509a0c8681976bfaebd5602", "score": "0.6693967", "text": "public void setKey(Key[] param){\n \n validateKey(param);\n\n localKeyTracker = param != null;\n \n this.localKey=param;\n }", "title": "" }, { "docid": "a6ea4bd3b509a0c8681976bfaebd5602", "score": "0.6693967", "text": "public void setKey(Key[] param){\n \n validateKey(param);\n\n localKeyTracker = param != null;\n \n this.localKey=param;\n }", "title": "" }, { "docid": "affad6172dadaa2158cadfe81fb62ece", "score": "0.6670231", "text": "public String getKey() {\n/* 68 */ return this.key;\n/* */ }", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.66484505", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.66484505", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.66484505", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.66484505", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.66484505", "text": "String getKey();", "title": "" }, { "docid": "db42a4593427e6acf3600708ad44a6d6", "score": "0.6616006", "text": "String key();", "title": "" }, { "docid": "949d5cd2bbbb0b8f588d5ff217138fd9", "score": "0.6524473", "text": "public void setKey(String key);", "title": "" }, { "docid": "4b5f8871ac654e3c3af0dad55e1fe804", "score": "0.64953375", "text": "String get(String key);", "title": "" }, { "docid": "4b5f8871ac654e3c3af0dad55e1fe804", "score": "0.64953375", "text": "String get(String key);", "title": "" }, { "docid": "4b5f8871ac654e3c3af0dad55e1fe804", "score": "0.64953375", "text": "String get(String key);", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.64714783", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.64714783", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.64714783", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.64714783", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.64714783", "text": "java.lang.String getKey();", "title": "" }, { "docid": "7258d6223d581a9a9fea295698c57058", "score": "0.643018", "text": "protected void validateKey(Key[] param){\n \n }", "title": "" }, { "docid": "7258d6223d581a9a9fea295698c57058", "score": "0.643018", "text": "protected void validateKey(Key[] param){\n \n }", "title": "" }, { "docid": "6c7a3745add4a9829eaa6a12b6b47e77", "score": "0.64210117", "text": "abstract int getKey();", "title": "" }, { "docid": "ed65c772bf52096167ba3bae05247f2e", "score": "0.6407134", "text": "private static String getKey() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.64005125", "text": "int getKey();", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.64005125", "text": "int getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.63726294", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.63726294", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.63726294", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.63726294", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.63726294", "text": "public String getKey();", "title": "" }, { "docid": "7f32184f7c99423397c8cb10b7f1bc3a", "score": "0.6372549", "text": "private static interface Key {\n }", "title": "" }, { "docid": "ee4a38824e911354617ed651815322f1", "score": "0.6371706", "text": "String getString(String key);", "title": "" }, { "docid": "ee4a38824e911354617ed651815322f1", "score": "0.6371706", "text": "String getString(String key);", "title": "" }, { "docid": "ee4a38824e911354617ed651815322f1", "score": "0.6371706", "text": "String getString(String key);", "title": "" }, { "docid": "ee4a38824e911354617ed651815322f1", "score": "0.6371706", "text": "String getString(String key);", "title": "" }, { "docid": "2e14a98020d1682cdd3c5af34d91e8d5", "score": "0.63619", "text": "public String get(String key);", "title": "" }, { "docid": "2e14a98020d1682cdd3c5af34d91e8d5", "score": "0.63619", "text": "public String get(String key);", "title": "" }, { "docid": "2e14a98020d1682cdd3c5af34d91e8d5", "score": "0.63619", "text": "public String get(String key);", "title": "" }, { "docid": "fadb4164ad7262929cef90991bafa3ef", "score": "0.6349774", "text": "@Override\n\tpublic void setKey(Long arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "9671f93955c8d4df9a9759d1377fdd35", "score": "0.6346816", "text": "public String key();", "title": "" }, { "docid": "4f91e269a4381a6e1a8ee1d0dd93976a", "score": "0.63084376", "text": "public interface KeySet {\n public static final String KEY_CATEGORY_ID = \"key_category_id\";\n}", "title": "" }, { "docid": "d9af979e80acd2b6b88d8b511a6b02c4", "score": "0.62745583", "text": "String t(String key);", "title": "" }, { "docid": "abe3a6617acd944715b358501de3f4ac", "score": "0.62569547", "text": "int index(String key);", "title": "" }, { "docid": "abe2a5b524e8f59f139d9797ffa7a8a3", "score": "0.62406975", "text": "@Override\r\n public String getKeyString() {\r\n return key;\r\n }", "title": "" }, { "docid": "d31901a7a2240ec5855895b702682f5a", "score": "0.62376785", "text": "String getInitParameter(final String key);", "title": "" }, { "docid": "e56955b15b83ff0b7b0e900ec0272049", "score": "0.62300664", "text": "public abstract void add(String key, String value) ;", "title": "" }, { "docid": "006a9b611aec6acf61c36f410757106e", "score": "0.6229091", "text": "public String getKey()\n {\n return key;\n }", "title": "" }, { "docid": "7f16e70e8b5763559c4857e4076bbbe5", "score": "0.6224628", "text": "public int getKey(){\r\n return key;\r\n }", "title": "" }, { "docid": "e90eb09965b299d40eca785fe830085e", "score": "0.62110066", "text": "public abstract Object getKey();", "title": "" }, { "docid": "80537ca68e9eb93c7d2f545b074acd5a", "score": "0.6204589", "text": "String getString(final String key);", "title": "" }, { "docid": "fb2484510fca82fd4fe2778bda2e7606", "score": "0.61965644", "text": "public String getKey ()\n {\n return key;\n }", "title": "" }, { "docid": "a5123079d389e35155a91ec6b0de9772", "score": "0.6192788", "text": "boolean getKey();", "title": "" }, { "docid": "9116bff0461ea6f2122ea6c4b18d1305", "score": "0.61871666", "text": "String key( int index );", "title": "" }, { "docid": "1009a951d6682597726a1002940194d2", "score": "0.61664635", "text": "public OptionalBuilderColon key(String key) throws InvalidValueException;", "title": "" }, { "docid": "ce765d0385f25a338ec5d83caa5841b5", "score": "0.6164641", "text": "public void setKey(String key) {\n this.key = key;\n }", "title": "" }, { "docid": "ce765d0385f25a338ec5d83caa5841b5", "score": "0.6164641", "text": "public void setKey(String key) {\n this.key = key;\n }", "title": "" }, { "docid": "ce765d0385f25a338ec5d83caa5841b5", "score": "0.6164641", "text": "public void setKey(String key) {\n this.key = key;\n }", "title": "" }, { "docid": "75ba6704e0b29e4e26c64bccb8e1188a", "score": "0.61620003", "text": "public String getString(String key);", "title": "" }, { "docid": "7e691ad03956f38847dd3d3493d6c873", "score": "0.61472607", "text": "public int getInt(String key);", "title": "" }, { "docid": "904f2e5c4f797c71c7579fb4285e1536", "score": "0.61070013", "text": "String key(int index);", "title": "" }, { "docid": "89ae8feccacd76f6f2ddac930d4ba835", "score": "0.6098744", "text": "String load(String key);", "title": "" }, { "docid": "a0129d6746556e4afc04e12d125c555b", "score": "0.6090364", "text": "abstract boolean isKey(String key);", "title": "" }, { "docid": "725c5ba401777befd6399cf253b850b5", "score": "0.6084101", "text": "public void setFieldKey(String aString){ \r\n fieldKey = aString;\r\n }", "title": "" }, { "docid": "fd3f37c3d2422293e0815b856bd8b11a", "score": "0.60801756", "text": "public void setKey(java.lang.String key) {\r\n this.key = key;\r\n }", "title": "" }, { "docid": "329abacf95e8034137811ccc89546a2d", "score": "0.6079104", "text": "void add(String key){\n\t\tkeys.add(key);\n\t}", "title": "" }, { "docid": "67b038a9dc7f94eeac70a717418acdfe", "score": "0.6066337", "text": "public abstract Object get(String key);", "title": "" }, { "docid": "00997ef7d1acbac8349cabdd5b204114", "score": "0.6057561", "text": "public void addKey(Key param){\n if (localKey == null){\n localKey = new Key[]{};\n }\n\n \n //update the setting tracker\n localKeyTracker = true;\n \n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localKey);\n list.add(param);\n this.localKey =\n (Key[])list.toArray(\n new Key[list.size()]);\n\n }", "title": "" }, { "docid": "00997ef7d1acbac8349cabdd5b204114", "score": "0.6057561", "text": "public void addKey(Key param){\n if (localKey == null){\n localKey = new Key[]{};\n }\n\n \n //update the setting tracker\n localKeyTracker = true;\n \n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localKey);\n list.add(param);\n this.localKey =\n (Key[])list.toArray(\n new Key[list.size()]);\n\n }", "title": "" }, { "docid": "b8143861de4d2db0170e6ae9f163d0a8", "score": "0.60410297", "text": "@Test\n\tpublic void getKeyTest() {\n\t\tAssert.assertEquals(getDefaultKey(DEFAULT_LONG, DEFAULT_STRING), getDefaultRecord().getKey());\n\t}", "title": "" }, { "docid": "335b3c05376dc98a893e5530816dd31f", "score": "0.60397243", "text": "public interface Keys {\r\n String SUB_CATE_NAME = \"subCateName\" ;\r\n String SUB_CATE_ID = \"subCateId\" ;\r\n String SUB_NUMBER_OF_ITEMS = \"numberOfItems\" ;\r\n\r\n int GOOGLE_LOGIN_CODE = 1234 ;\r\n\r\n\r\n\r\n}", "title": "" }, { "docid": "559766672a9f8f9e260b71e280113288", "score": "0.60307974", "text": "public abstract int key();", "title": "" }, { "docid": "962575841682b48e718cfdf55db37dcc", "score": "0.60186255", "text": "public void setKey(final String key);", "title": "" }, { "docid": "5b29b158c438670e7304b56e493af9b0", "score": "0.6015224", "text": "@Override\npublic boolean hasKey() {\n\treturn false;\n}", "title": "" }, { "docid": "adf4566cada5e7c35753a9643887fa22", "score": "0.60079175", "text": "String getItem(String key);", "title": "" }, { "docid": "68c667b7f0345a044c27f7a4d644672d", "score": "0.6007357", "text": "protected abstract String getData(String key);", "title": "" }, { "docid": "9f996509ef34e145fee57184ef2a74a8", "score": "0.6002454", "text": "public void setKey(String key) {\n\t\tthis.key = key;\n\t}", "title": "" }, { "docid": "79f8e9e83cac3226105a2adc2b1409d3", "score": "0.59881383", "text": "@Override\r\n\tpublic void setKey(byte[] key) {\n\t\t\r\n\t}", "title": "" }, { "docid": "f4b6e6965d498328b3bf57d8b3300f21", "score": "0.5981579", "text": "public abstract String get(Field key);", "title": "" }, { "docid": "57f2a94a075a34c9d03b5613f9edfe9e", "score": "0.5972634", "text": "Object supply(Object key);", "title": "" }, { "docid": "257339a5a2c133d82625ae639957563c", "score": "0.5969809", "text": "java.lang.String getParametersOrThrow(java.lang.String key);", "title": "" }, { "docid": "d243fdc054b042fec913264ef4e19bcb", "score": "0.5966785", "text": "@Override\n\t\t\tpublic Integer getKey() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "b5cefad1a3f93df3ff86e911cebb5442", "score": "0.5964011", "text": "@Test\n public void keyTest() {\n // TODO: test key\n }", "title": "" }, { "docid": "198e15210892b23493b29002240b01a4", "score": "0.5944833", "text": "@Override\n\tpublic String getBlockParam(String key) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0d1ce17cd29b019a8dd5b32f00e7dee0", "score": "0.59440345", "text": "public int Key() { return key; }", "title": "" }, { "docid": "d377e43da843565c84d565159507b3b1", "score": "0.59433347", "text": "@Override\n\tpublic String get(String key) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6f245c4b4b25441021b9fe64b9be12b0", "score": "0.5928846", "text": "public void setKey(RawData key){\n\t\tthis.key = key;\n\t}", "title": "" }, { "docid": "f1ed941d9098fc3a873c58152b24e7da", "score": "0.5928075", "text": "public void testGetKey() {\n\t\ttested.setName(\"uniqueName\");\n\t\tassertEquals(\"uniqueName.key\", tested.getKey(\"key\"));\n\t}", "title": "" }, { "docid": "fbd0ec78f3a00be7ff1eddbdaa59e87a", "score": "0.59253144", "text": "K getKey( );", "title": "" }, { "docid": "932cfeba95572b339143b830938947be", "score": "0.5919374", "text": "void insert(int key, String data);", "title": "" }, { "docid": "afe6060f8199eb4baef65024898b302a", "score": "0.5918764", "text": "public String getValueByKey(String key);", "title": "" }, { "docid": "ba048899693c1f098a7cae7ce1561928", "score": "0.5917515", "text": "Field field( String key );", "title": "" }, { "docid": "ebd5c3b705251c5561c376adc1aea153", "score": "0.5913671", "text": "public Tiido_parametrosKey() {\r\n\t}", "title": "" }, { "docid": "5d3d51cad187cdf87d99f5487e8e5912", "score": "0.59128726", "text": "int getInteger(String key);", "title": "" }, { "docid": "1e3ab75d870ca453111aca21ac020f8d", "score": "0.59073406", "text": "@Override\n\tpublic Long getKey() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "315ce3f48e0f2bcabb66c4e3c40d1325", "score": "0.5906943", "text": "ParsedName get(@Param(\"key\") int key);", "title": "" }, { "docid": "e9d5333d4ad6c28940e57ac67192bb91", "score": "0.58985984", "text": "com.google.protobuf.ByteString getKey();", "title": "" }, { "docid": "e9d5333d4ad6c28940e57ac67192bb91", "score": "0.58985984", "text": "com.google.protobuf.ByteString getKey();", "title": "" } ]
ffe51cdd911df0dd4f804eb587887658
Returns a tweet feed of the user specified by cookie
[ { "docid": "080f52e92ee150f11f60f6e5934b0a34", "score": "0.5572698", "text": "@GET\r\n\t@Path(\"tweets\")\r\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\r\n\tpublic Timeline getNewsFeed(@QueryParam(\"page\") @DefaultValue(\"1\") int page,\r\n\t\t\t@CookieParam(\"ITD_AuthToken\") Cookie authToken);", "title": "" } ]
[ { "docid": "31a5bbbf0bc37f41077b1b4e16fa073b", "score": "0.67643476", "text": "public List<Tweet> getTweetsForUser(Long userId);", "title": "" }, { "docid": "b318cd22fe9bda2ea718f9fad932b7c9", "score": "0.59238917", "text": "public void getTweets(){\n\n\tfor (int i = 0; i < count; i ++ ) {\n\t\tSystem.out.println(List.get(i));\n\t}\n\n\t}", "title": "" }, { "docid": "72e579c6720979eee91b926ae6a4fd98", "score": "0.5825518", "text": "@GET\r\n\t@Path(\"tweets/{tweetId}\")\r\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\r\n\tpublic Tweet getTweet(@PathParam(\"tweetId\") long tweetId, \r\n\t\t\t@CookieParam(\"ITD_AuthToken\") Cookie authToken);", "title": "" }, { "docid": "d54221506e754f38942f285fd40dd341", "score": "0.57323724", "text": "@GET\r\n\t@Path(\"tweets/user/{username}\")\r\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\r\n\tpublic Timeline getTimeline(@PathParam(\"username\") String username, \r\n\t\t\t@QueryParam(\"page\") @DefaultValue(\"1\") int page,\r\n\t\t\t@CookieParam(\"ITD_AuthToken\") Cookie authToken);", "title": "" }, { "docid": "bfc7e169ada1a3773d2c9e7d4311f0e9", "score": "0.56862646", "text": "public List<Tweet> getTweetsByUser(User user) {\n return userDAO.getTweetsByUser(user);\n }", "title": "" }, { "docid": "2630c9af8f3e7f1cd20cb697d185468c", "score": "0.5623773", "text": "public List<Integer> getNewsFeed(int userId) {\r\n List<Tweet> temp = new LinkedList<Tweet>();\r\n \r\n Set<Integer> myFollowee;\r\n if( userFollows.containsKey(userId))\r\n myFollowee = userFollows.get(userId);\r\n else\r\n myFollowee = new HashSet<Integer>();\r\n myFollowee.add(userId);\r\n Iterator<Integer> itr = myFollowee.iterator();\r\n while( itr.hasNext() ) {\r\n Integer current = itr.next();\r\n List<Tweet> currentPosts = (userTimeline.containsKey(current)) ? userTimeline.get(current) : (new LinkedList<Tweet>());\r\n for(int i=0; i<Math.min(10, currentPosts.size()); i++)\r\n temp.add(currentPosts.get(i));\r\n }\r\n myFollowee.remove(userId);\r\n //System.out.println(temp.toString());\r\n Collections.sort(temp, new Comparator<Tweet>() {\r\n public int compare(Tweet o1, Tweet o2) {\r\n return -Integer.compare(o1.timeId, o2.timeId);\r\n }\r\n });\r\n \r\n List<Integer> ans = new ArrayList<Integer>();\r\n for(int i=0; i<Math.min(10, temp.size()); i++)\r\n ans.add(temp.get(i).tweetId);\r\n return ans;\r\n }", "title": "" }, { "docid": "c4e00f7eb31eda2e9cc8a05c6c9e679b", "score": "0.55966496", "text": "public List<UserPost> retrievePosts(String userName) {\n\tUser user = null;\n\n\ttry {\n\t user = twitter.showUser(userName);\n\t} catch (TwitterException ex) {\n\t System.out.println(\"Invalid user: \" + ex);\n\t return null;\n\t}\n\n\tSystem.out\n\t\t.println(\"==========================================================\");\n\tSystem.out.println(\" Tweets\");\n\tSystem.out\n\t\t.println(\"==========================================================\");\n\tSystem.out.println(\"TweetsCount: \" + user.getStatusesCount());\n\n\tint tweetCount = 0;\n\tint pageNo = 0;\n\n\tif (user.getStatusesCount() == 0) {\n\t UserPost twPost = new UserPost();\n\t twPost.setUserId(userName);\n\t twPost.setPostText(\"\");\n\t twPost.setPostId(\"\");\n\t twPost.setPostDate(new Date());\n\t twPost.setPlaceOfPost(\"\");\n\n\t getTwPosts().add(twPost);\n\t}\n\twhile (tweetCount < user.getStatusesCount()) {\n\t pageNo++;\n\t Paging paging;\n\t List<Status> tweets = null;\n\t try {\n\t\tpaging = new Paging(pageNo, 200);\n\t\ttweets = twitter.getUserTimeline(userName, paging);\n\t } catch (TwitterException ex) {\n\t\tSystem.err.println(\"\\nCan't retrieve tweets: \" + ex);\n\t\tSystem.out\n\t\t\t.println(\"\\nProgram is still running waiting for resetCount...: \");\n\t\tbreak;\n\t }\n\n\t DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n\n\t for (Status tweet : tweets) {\n\n\t\tif (tweet != null) {\n\t\t UserPost twPost = new UserPost();\n\t\t twPost.setUserId(userName);\n\t\t tweetCount++;\n\t\t System.out.println(\" ________\");\n\t\t System.out.println(\" Tweet_\"\n\t\t\t + tweetCount);\n\t\t System.out.println(\" --------\");\n\t\t System.out.println(\"Tweet: \" + tweet.getText());\n\t\t twPost.setPostText(tweet.getText());\n\t\t System.out.println(\"Tweet Id: \" + tweet.getId());\n\t\t twPost.setPostId(Long.toString(tweet.getId()));\n\t\t System.out.println(\"Tweet location: \"\n\t\t\t + tweet.getGeoLocation());\n\t\t System.out.println(\"Language: \" + tweet.getLang());\n\n\t\t Date tweetDate = tweet.getCreatedAt();\n\t\t dateFormat.format(tweetDate);\n\t\t System.out.println(\"Tweet time: \" + tweetDate.toString());\n\t\t twPost.setPostDate(tweetDate);\n\t\t if (user.getStatus().getPlace() != null) {\n\t\t\tSystem.out.println(\"Place of tweet: \"\n\t\t\t\t+ tweet.getPlace().getFullName());\n\t\t\ttwPost.setPlaceOfPost(tweet.getPlace().getFullName());\n\t\t } else {\n\t\t\tSystem.out.println(\"Place of tweet: null\");\n\t\t\ttwPost.setPlaceOfPost(\"\");\n\t\t }\n\t\t getTwPosts().add(twPost);\n\n\t\t}\n\n\t }\n\n\t}\n\treturn getTwPosts();\n }", "title": "" }, { "docid": "9662c8c54ed19d0fc7da7eff93c2a1d6", "score": "0.5515341", "text": "List<Tweet> getRetweets(long tweetId, int count) throws TwitterException;", "title": "" }, { "docid": "a467bbc97cb1c010c38d4762bd355f79", "score": "0.5435162", "text": "public static List<String> getTweets(String id,int count){\n List<String> tweets = new ArrayList<>();\n if(id.length() ==0)\n id = \"realDonaldTrump\";\n \n if(count<=0){\n count = 25;\n } \n \n if(count>200){\n count = 200;\n } \n \n String URL = \"https://twitter.com/\"+id;\n try{\n \n Document document = Jsoup.connect(URL).timeout(10000).get();\n Elements divs = document.select(\"div.stream-container\");\n \n // we use this variable to get more than 20 tweets\n String mpos = divs.first().attr(\"data-min-position\");\n \n\n document.select(\"p.tweet-text\").forEach(e -> {tweets.add(e.html());});\n while(tweets.size()<count){\n String jurl = \"https://twitter.com/i/profiles/show/\"+id+\"/timeline/tweets?include_available_features=1&include_entities=1&max_position=\"+mpos+\"&reset_error_state=false\";\n TwitterJson twitter = new Gson().fromJson(new InputStreamReader(new URL(jurl).openStream()), TwitterJson.class);\n mpos = twitter.getMin_position();\n Document doc = Jsoup.parseBodyFragment(twitter.getItems_html());\n doc.select(\"p.tweet-text\").forEach(e -> {tweets.add(e.html());});\n \n } \n \n }catch(Exception e){\n e.printStackTrace();\n }finally{ \n return tweets.stream().limit(count).collect(Collectors.toList());\n }\n }", "title": "" }, { "docid": "fd281347f4f57d64a5a63fefbbcd1c87", "score": "0.54178816", "text": "public List<Integer> getNewsFeed(int userId) {\n PriorityQueue<Tweet> queue = new PriorityQueue<>(new Comparator() {\n @Override\n public int compare(Object o1, Object o2) {\n long timestamp1 = ((Tweet) o1).timestamp;\n long timestamp2 = ((Tweet) o2).timestamp;\n if (timestamp1 < timestamp2) {\n return 1;\n } else if (timestamp1 == timestamp2) {\n return 0;\n } else {\n return -1;\n }\n }\n });\n\n if (tweets.containsKey(userId)) {\n for (int i = 0; i < tweets.get(userId).size() && i < NUM_TWEETS; i++) {\n queue.add(tweets.get(userId).get(i));\n }\n }\n\n if (followees.containsKey(userId)) {\n for (int followee : followees.get(userId)) {\n if (followee == userId || !tweets.containsKey(followee)) {\n continue;\n }\n\n for (int i = 0; i < tweets.get(followee).size() && i < NUM_TWEETS; i++) {\n queue.add(tweets.get(followee).get(i));\n }\n }\n }\n\n List<Integer> newsFeed = new ArrayList<>();\n for (int i = 0; !queue.isEmpty() && i < NUM_TWEETS; i++) {\n newsFeed.add(queue.poll().id);\n }\n\n return newsFeed;\n }", "title": "" }, { "docid": "36188176481353a819cd2034191dba22", "score": "0.53829753", "text": "@Override\n protected void getCachedTweets() {\n }", "title": "" }, { "docid": "f183770e8304f5b68b34e618c5fae3d3", "score": "0.5372297", "text": "public List < Status > getTweets(String user) {\n // TODO Auto-generated method stubs\n AuthUtility au = new AuthUtility();\n ConfigurationBuilder cb = au.getCB();\n Twitter twitter = getTwitter(cb);\n return getTopTenStatuses(twitter, user);\n\n\n }", "title": "" }, { "docid": "e5abc3f889bedb97821ae34ddc0663ac", "score": "0.525899", "text": "public List<Integer> getNewsFeed(int userId) {\n LinkedList<Integer> result = new LinkedList<>();\n User user = userMap.get(userId);\n if (null == user) {\n return result;\n }\n PriorityQueue<Tweet> queue = new PriorityQueue<>(FEED_LIMIT, new Comparator<Tweet>() {\n @Override\n public int compare(Tweet o1, Tweet o2) {\n return Integer.compare(o1.time, o2.time);\n }\n });\n for (Tweet tweet : user.tweets) {\n addTweetQueue(queue, tweet);\n }\n for (int followeeId : user.followSet) {\n User followee = userMap.get(followeeId);\n if (followee == null) {\n continue;\n }\n for (Tweet tweet : followee.tweets) {\n addTweetQueue(queue, tweet);\n }\n }\n while (!queue.isEmpty()) {\n result.addFirst(queue.poll().tweetId);\n }\n return result;\n }", "title": "" }, { "docid": "13af2f507c025a90c623bbe8d9a926af", "score": "0.52228886", "text": "public List<Integer> getNewsFeed(int userId) {\n\n Set<Integer> followingUserIds = this.followers.getOrDefault(userId, new HashSet<>());\n followingUserIds.add(userId);\n\n\n List<TweetWithTimeStamp> feedTweetsToShow = new ArrayList<>();\n\n for (Integer currentUserId : followingUserIds) {\n feedTweetsToShow.addAll(this.userPosts.getOrDefault(currentUserId, new ArrayList<>()));\n }\n\n feedTweetsToShow.sort(Comparator.comparingInt(TweetWithTimeStamp::getTimeStamp).reversed());\n\n List<Integer> output = new ArrayList<>();\n for (int i = 0; i < 10 && i < feedTweetsToShow.size(); i++) {\n output.add(feedTweetsToShow.get(i).getTweetId());\n }\n\n return output;\n\n }", "title": "" }, { "docid": "913344bc74f4111ee1b852df442d2c4d", "score": "0.52120876", "text": "List<Tweet> findAll();", "title": "" }, { "docid": "cdf37dc421d14a672146799bd9448d75", "score": "0.51863074", "text": "public void GetTweet() throws TwitterException, IOException {\r\n\r\n\t\ttry {\r\n\t\t\tconnection();\r\n\t\t\t// Getting time line -- Start\r\n\t\t\tResponseList<Status> list = twitter.getHomeTimeline();\r\n\t\t\tfor (Status each : list) {\r\n\t\t\t\tSystem.out.println(\"User name :: @\" + each.getUser().getScreenName()\r\n\t\t\t\t\t\t+ \" - \" + each.getUser().getName() + \"\\n\" + each.getText()\r\n\t\t\t\t\t\t+ \"\\n\" + each.getRetweetCount());\r\n\t\t\t}\r\n\t\t\t// Getting time line -- End\r\n\t\t}catch (TwitterException te) {\r\n\t\t\tte.printStackTrace();\r\n\t\t\tSystem.out.println(\"Failed to read tweets: \" + te.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5fb87d1f77461607853a0e308f02df2f", "score": "0.5137235", "text": "public List<Integer> getNewsFeed(int userId) {\n List<Integer> resultList = new ArrayList<>();\n User user = userMap.get(userId);\n if (user == null){\n return resultList;\n }\n Set<Integer> followeeIds = new HashSet<>(user.getFolloweeIdSet());\n followeeIds.add(userId);\n PriorityQueue<Twitt> queue = new PriorityQueue<Twitt>(followeeIds.size(), (t1, t2)->(t2.time-t1.time));\n for(Integer followeeId: followeeIds){\n Twitt twitt = userMap.get(followeeId).getTwittHead();\n if(twitt == null){\n continue;\n }\n queue.add(twitt);\n }\n\n int i = 1;\n while(!queue.isEmpty() && i <= 10){\n Twitt poll = queue.poll();\n i++;\n resultList.add(poll.getTweetId());\n if (poll.next != null){\n queue.add(poll.next);\n }\n\n }\n System.out.println(resultList.toString());\n return resultList;\n }", "title": "" }, { "docid": "f7a124e0d2aab4047f8394fea075472a", "score": "0.5127802", "text": "public void downloadTweets() {\n ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\n if (networkInfo != null && networkInfo.isConnected()) {\n new JSONTwitterParser(this).execute(ScreenName);\n } else {\n Toast.makeText(getApplicationContext(),\"Please check your internet connection\",Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "0abc67f7c772aed778b2064dee7628f2", "score": "0.50894386", "text": "public List<Integer> getNewsFeed(int userId) {\n Queue<Tweet> heap = new PriorityQueue<>(10, new Comparator<Tweet>() {\n public int compare(Tweet t1, Tweet t2) {\n return t2.t - t1.t;\n }\n });\n Set<Integer> followerList = followMap.getOrDefault(userId, new HashSet<Integer>());\n for (int id : followerList) {\n for (Tweet t : tweetMap.getOrDefault(id, new ArrayList<Tweet>())) {\n heap.add(t);\n }\n }\n for (Tweet t : tweetMap.getOrDefault(userId, new ArrayList<Tweet>())) {\n heap.add(t);\n }\n int count = 0;\n List<Integer> result = new ArrayList<>();\n while (!heap.isEmpty() && count < 10) {\n result.add(heap.poll().id);\n count++;\n }\n return result;\n }", "title": "" }, { "docid": "433d7e897f37f422fd9f93a99279c95f", "score": "0.5075085", "text": "public List<Integer> getNewsFeed(int userId) {\n List<Integer> newsFeed = new ArrayList<>();\n PriorityQueue<Tweet> pq = new PriorityQueue<>(\n new Comparator<Tweet>() {\n @Override\n public int compare(Tweet o1, Tweet o2) {\n return o1.ts.compareTo(o2.ts);\n }\n }\n );\n// List userTweets = usersTweetList.get(userId).stream().map(e->e.tweetId).collect(Collectors.toList());\n\n// newsFeed.addAll(userTweets);\n Set<Integer> followers = usersFollowersList.get(userId);\n if(followers != null && followers.size() > 0) {\n for (Integer followerId : followers) {\n List<Tweet> foTweets = usersTweetList.get(followerId);\n if (foTweets == null || foTweets.size() == 0)\n continue;\n for (Tweet foTweet : foTweets) {\n if (pq.size() < feedMaxNum) {\n pq.add(foTweet);\n } else {\n if (foTweet.ts.compareTo(pq.peek().ts) < 0) {\n break;\n } else {\n pq.add(foTweet);\n pq.poll();\n }\n\n }\n }\n }\n }\n\n return pq.stream().map(e->e.tweetId).collect(Collectors.toList());\n }", "title": "" }, { "docid": "be40fa840b10a16d866497946b41c45f", "score": "0.50638753", "text": "@GetMapping(\"/gettweets/{email}\")\n\tpublic ResponseEntity<List<TweetResponse>> getAllTweets(@PathVariable String email) {\n\t\treturn ResponseEntity.ok().body(tweetService.getAllTweets(email));\n\t}", "title": "" }, { "docid": "3728b759acb6f3edc1c47ba942a14c70", "score": "0.50403666", "text": "List<TenderBookmark> findTenderBookmarkByUserId(int userId);", "title": "" }, { "docid": "63a2a0c83ecf43940beab8226c1a98a9", "score": "0.50061876", "text": "private List<Tweet> queryTweets(Map request, Dao<Tweet, Integer> tweetDao) {\n QueryBuilder<Tweet, Integer> queryBuilder =\n tweetDao.queryBuilder();\n // query for all accounts that have \"qwerty\" as a password\n\t\tList<Tweet> list = new ArrayList<Tweet>();\n\t\ttry {\n\t\t\tString user = (String) request.get(\"user\");\n\t\t\tif( user.isEmpty() ) user = \"user1\";\n\t\t\t\tSystem.out.println(\"USER IS EMPTY!\");\n\t\t\t// the 'password' field must be equal to \"qwerty\"\n\t\t\tqueryBuilder.where().eq(\"userId\", user);\n\t\t\t// prepare our sql statement\n\t\t\tPreparedQuery<Tweet> preparedQuery = queryBuilder.prepare();\n\t\t\tlist = tweetDao.query(preparedQuery);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "0a7fac0dd3c63f26d519c5907427ff91", "score": "0.49999478", "text": "public void tweetNow() {\n\n\tScanner input = new Scanner(System.in);\n\n\tString user = getUsername();\n\n\n\tSystem.out.println(\"What would you like to tweet?\");\n\ttweet = user +input.nextLine();\n\n\n\n\tif(tweet.length() > 140){\n\t System.out.println(\"too many characters, please try again\");\n\t tweet = null;\n\t }\n\telse {\n\t\tList.add(tweet);\n\t\tcount++;\n\t } \n\t \n\t}", "title": "" }, { "docid": "1697c720937a1f23007d5c5f94be532d", "score": "0.49677417", "text": "@RequestMapping(value = \"/rest/user/trends\",\n method = RequestMethod.GET,\n produces = \"application/json\")\n @ResponseBody\n @Timed\n public List<Trend> getUserTrends(@RequestParam(\"screen_name\") String username) {\n String currentLogin = authenticationService.getCurrentUser().getLogin();\n String domain = DomainUtil.getDomainFromLogin(currentLogin);\n return trendService.getTrendsForUser(DomainUtil.getLoginFromUsernameAndDomain(username, domain));\n }", "title": "" }, { "docid": "dc423d195445b62d514bc860f81aca5b", "score": "0.49517348", "text": "public Tweet findById(Long id) {\n\t\treturn tweetRepository.findById(id).get();\r\n\t}", "title": "" }, { "docid": "c5aa093d06524178bddc3ed98eab8016", "score": "0.49388272", "text": "public List<Integer> getNewsFeed(int userId) {\n PriorityQueue<Tweet> maxHeap = new PriorityQueue<>((o1, o2) -> o2.timestamp - o1.timestamp);\n\n // 如果自己发了推文也要算上\n if (twitter.containsKey(userId)) {\n maxHeap.offer(twitter.get(userId));\n }\n\n Set<Integer> followingList = followings.get(userId);\n if (followingList != null && followingList.size() > 0) {\n for (Integer followingId : followingList) {\n Tweet tweet = twitter.get(followingId);\n if (tweet != null) {\n maxHeap.offer(tweet);\n }\n }\n }\n\n List<Integer> res = new ArrayList<>(10);\n int count = 0;\n while (!maxHeap.isEmpty() && count < 10) {\n Tweet head = maxHeap.poll();\n res.add(head.id);\n\n if (head.next != null) {\n maxHeap.offer(head.next);\n }\n count++;\n }\n return res;\n }", "title": "" }, { "docid": "bfb81995c8a7cc8d58132248d5902f36", "score": "0.4937126", "text": "public List<Integer> getNewsFeed(int userId) {\n List<Twitte> tws = followeerTwitteMap.get(userId);\n List<Integer> res = new ArrayList();\n if (tws == null) {\n return res;\n }\n Collections.sort(tws);\n for (int i = 0; i < 10 && i < tws.size(); i++) {\n res.add(tws.get(i).id);\n }\n return res;\n }", "title": "" }, { "docid": "fa4b21281dd5873a2fec98441284762c", "score": "0.49348548", "text": "public List<Integer> getNewsFeed(int userId) {\n List<Integer> res = new ArrayList<>();\n TweetComparator comp = new TweetComparator();\n PriorityQueue<Tweet> queue = new PriorityQueue<>(comp);\n //List<List<Tweet>> tweets = new ArrayList<>();\n if (posts.containsKey(userId)) {\n // get itself posts\n for (Tweet tweet : posts.get(userId)) {\n queue.offer(tweet);\n }\n }\n if (friends.containsKey(userId)) {\n Set<Integer> fs = friends.get(userId);\n for (Integer user: fs) {\n if (posts.containsKey(user)) {\n for (Tweet tweet : posts.get(user)) {\n queue.offer(tweet);\n }\n }\n }\n }\n int k = 0;\n while(! queue.isEmpty() && k < 10) {\n res.add(queue.poll().id);\n k ++;\n }\n return res;\n }", "title": "" }, { "docid": "d3075d815ef8c3f88cc537e982446932", "score": "0.49074453", "text": "Tweet findOne(Long id);", "title": "" }, { "docid": "1ad3e3024f14d471fcd7b3f4c092747e", "score": "0.4906408", "text": "public List<Integer> getNewsFeed(int userId) {\n List<List<int[]>> tweets = new ArrayList<>();\n List<Integer> res = new ArrayList<>();\n if (!this.map.containsKey(userId)) {\n return res;\n }\n User user = this.map.get(userId);\n tweets.add(user.tweetIds);\n for (int follower : user.follower) {\n if (this.map.containsKey(follower)) {\n tweets.add(this.map.get(follower).tweetIds);\n }\n }\n\n int[] indexs = new int[tweets.size()];\n for (int i = 0; i < 10; i++) {\n int max = -1;\n int val = -1;\n int indexsLoaction = 0;\n for (int j = 0; j < tweets.size(); j++) {\n if (indexs[j] >= tweets.get(j).size()) {\n continue;\n }\n int[] temp = tweets.get(j).get(indexs[j]);\n if (temp[1] > max) {\n max = temp[1];\n val = temp[0];\n indexsLoaction = j;\n }\n }\n if (max != -1) {\n indexs[indexsLoaction]++;\n res.add(val);\n }\n\n }\n return res;\n }", "title": "" }, { "docid": "e2b46d3f39e2fc08d84986c5edc16a39", "score": "0.48720577", "text": "public List < Status > getTopTenStatuses(Twitter twitter, String user) {\n // TODO Auto-generated method stub\n List < Status > statusList = null;\n List < Status > statuses = new ArrayList < Status > ();\n /*Loop through the list of all and get the latest 10 status*/\n try {\n statusList = twitter.getUserTimeline(user);\n for (int i = 0; i < 10; i++) {\n statuses.add(statusList.get(i));\n }\n } catch (TwitterException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return statuses;\n }", "title": "" }, { "docid": "20cd51c44d23afa976861b39ba1a9ec8", "score": "0.48475587", "text": "public TwitterWithTimestamp() {\n usersTweetList =new HashMap<>();\n usersFollowersList = new HashMap<>();\n feedMaxNum = 10;\n }", "title": "" }, { "docid": "10275034305e7afbfd8feb649e73f336", "score": "0.48389632", "text": "private String[] downloadTweets(Integer resourceIDS[]) {\n\t\t\tfinal int simulatedDelay = 2000;\n\t\t\tString[] feeds = new String[resourceIDS.length];\n\t\t\ttry {\n\t\t\t\tfor (int idx = 0; idx < resourceIDS.length; idx++) {\n\t\t\t\t\tInputStream inputStream;\n\t\t\t\t\tBufferedReader in;\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// Pretend downloading takes a long time\n\t\t\t\t\t\tThread.sleep(simulatedDelay);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\tinputStream = mContext.getResources().openRawResource(\n\t\t\t\t\t\t\tresourceIDS[idx]);\n\t\t\t\t\tin = new BufferedReader(new InputStreamReader(inputStream));\n\n\t\t\t\t\tString readLine;\n\t\t\t\t\tStringBuffer buf = new StringBuffer();\n\n\t\t\t\t\twhile ((readLine = in.readLine()) != null) {\n\t\t\t\t\t\tbuf.append(readLine);\n\t\t\t\t\t}\n\n\t\t\t\t\tfeeds[idx] = buf.toString();\n\n\t\t\t\t\tif (null != in) {\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\treturn feeds;\n\t\t}", "title": "" }, { "docid": "fd4e0fd08a6d50fd25a91bcb506830df", "score": "0.4836457", "text": "private void getFavoritesList() {\n\t\tString prefsFile = getResources().getString(R.string.preferencesFilename);\n\t\tSharedPreferences prefs = getSharedPreferences(prefsFile, 0);\n\t\tString key = getResources().getString(R.string.preferencesUserpass);\n\t\tString userpass = prefs.getString(key, \"\");\n\t\t\n\t\tServerCommunicator comm = new ServerCommunicator(this, TAG);\n\t\tcomm.sendGetAllFavoritesRequest(userpass);\n\t}", "title": "" }, { "docid": "2f3fcef5dde468bba3ccf59590e6ac5b", "score": "0.48163232", "text": "Tweet(){\n }", "title": "" }, { "docid": "183b6a61b7b18ccc365eac2224a67a9f", "score": "0.47952905", "text": "@Override\n public Tweet showTweet(String[] args) throws OAuthMessageSignerException, OAuthExpectationFailedException, IOException, URISyntaxException, OAuthCommunicationException {\n if (args.length < 2) {\n throw new IllegalArgumentException(\"Invalid amount of arguments!\");\n }\n return service.showTweet(args[1], null);\n }", "title": "" }, { "docid": "4448324b45834e1e96760ba31e078bf3", "score": "0.478292", "text": "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public ArrayList<NewsFeedItem> getNewsFeed(){\n if(getSession().isAdmin()){\n return newsDB.getNewsFeedAdmin();\n }\n else{\n return newsDB.getNewsFeed(getSession().getUser().getId());\n }\n }", "title": "" }, { "docid": "596cf05bfb1e46f5e014e39019b1389d", "score": "0.47493467", "text": "public void prepareTweetsList()\n {\n tweetList = new ArrayList<Object>();\n final TextView txtNoTweets = (TextView) findViewById(R.id.no_tweets);\n //REST added\n TwitService twitService = restAdapter.create(TwitService.class);\n if (registeredUserId == null) {\n registeredUserId = \"55aea961f4aa1cb3ec9ed3d4\";\n }\n twitService.getUserTweets(registeredUserId, \"home\", new Callback<List<Twit>>() {\n\n @Override\n public void success(List<Twit> twits, Response response) {\n Log.d(\"velicina liste\", \"broj:\" + tweetList.size());\n for (Twit twit : twits) {\n AddObjectToList(R.drawable.ic_bird, twit.getOwnerName(), twit.getContent(), \"11.11.2015\", twit.getId());\n }\n if (twits.isEmpty()) {\n txtNoTweets.setVisibility(View.VISIBLE);\n lview.setVisibility(View.INVISIBLE);\n } else {\n txtNoTweets.setVisibility(View.INVISIBLE);\n }\n adapter.notifyDataSetChanged();\n }\n\n @Override\n public void failure(RetrofitError error) {\n //TO-DO go to error page\n }\n });\n //end of rest\n }", "title": "" }, { "docid": "0358f669369de285fdcebb92003eaa89", "score": "0.47432086", "text": "public List<Integer> getNewsFeed(int userId) {\n ArrayList<Integer> followers = getFollowers(userId);\n\n ArrayList<Integer> userFeed = new ArrayList<>();\n\n int count = 0;\n for (int i = newsFeed.size() - 1; i >= 0; --i) {\n if (count == 10) {\n break;\n }\n Pair newsFeedPair = newsFeed.get(i);\n int id_of_user = (int) newsFeedPair.getKey();\n if (followers.contains(id_of_user) || id_of_user == userId) {\n ++count;\n userFeed.add((int) newsFeedPair.getValue());\n }\n }\n return userFeed;\n }", "title": "" }, { "docid": "b789a6bb17a323ad80d2133e6938cbbe", "score": "0.47326863", "text": "public List<Integer> getNewsFeed(int userId) {\n if (!followerMap.containsKey(userId)) {\n insertUser(userId);\n }\n List<Integer> result = new LinkedList<>();\n int count = 0;\n PriorityQueue<PriorityQueueNode> queue = new PriorityQueue<>(new PairComparator());\n final Set<Integer> follwers = followerMap.get(userId);\n follwers.add(userId);\n for (Integer follower : follwers) {\n final int indexOfLastTweet = getIndexOfLastTweet(follower);\n if (indexOfLastTweet >= 0)\n queue.add(new PriorityQueueNode(follower, tweets.get(follower).get(indexOfLastTweet).tweetId, indexOfLastTweet, tweets.get(follower).get(indexOfLastTweet).tweetCounter));\n }\n do {\n if (queue.size() > 0) {\n final PriorityQueueNode latestTweet = queue.poll();\n result.add(latestTweet.tweetId);\n if (latestTweet.index > 0)\n queue.add(new PriorityQueueNode(latestTweet.userId, tweets.get(latestTweet.userId).get(latestTweet.index - 1).tweetId, latestTweet.index - 1, tweets.get(latestTweet.userId).get(latestTweet.index - 1).tweetCounter));\n }\n } while (++count < 10);\n return result;\n }", "title": "" }, { "docid": "553394c3398721911ccf4ac5aaa22a4c", "score": "0.47033823", "text": "public String[] getAllTweetAsString() ;", "title": "" }, { "docid": "c567626d8fc3399df88c21eb676c9fda", "score": "0.47019997", "text": "public void postTweet(int userId, int tweetId) {\n newsFeed.add(new Pair(userId, tweetId));\n }", "title": "" }, { "docid": "be1f69443a2d0417f9e547d19fec444a", "score": "0.47013283", "text": "public List<Tweet> FilterTweet(List<Tweet> tweets)\n {\n List<Tweet> filteredTweet = null;\n\n if (tweets != null) {\n filteredTweet = tweets.stream()\n .filter(tweet -> (tweet.getRetweeted() == false) &&\n (Pattern.matches(\"\\w*\", tweet.getText())))\n .map(tweet)\n .collect(toList());\n }\n\n return filteredTweet;\n }", "title": "" }, { "docid": "f32b53af135952c57f553cf8477b3fcc", "score": "0.46890932", "text": "public void fetchMyFeedFromServer() {\n\t\tif (Util.isOnline(getActivity())) {\n\t\t\tif (!TextUtils.isEmpty(userID)) {\n\t\t\t\tMyFeedHandler handler = new MyFeedHandler(this);\n\t\t\t\tMyFeedThread task = new MyFeedThread(getActivity()\n\t\t\t\t\t\t.getApplicationContext(), userID, offset, count,\n\t\t\t\t\t\thandler);\n\t\t\t\tThread t = new Thread(task);\n\t\t\t\tt.start();\n\t\t\t}\n\t\t} else {\n\t\t\tif(mPullToRefreshListView != null){\n\t\t\t\tmPullToRefreshListView.onRefreshComplete();\n\t\t\t}\n\t\t\tToast.makeText(getActivity(),\n\t\t\t\t\tgetResources().getString(R.string.no_network_pull_refresh),\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}\n\t}", "title": "" }, { "docid": "025af985f8fcc75356379c7a1de6bd0b", "score": "0.46795946", "text": "public Tweet favoritedBy(User u, int pos, boolean favorited) {\n\t\treturn userTimeline.favoritedBy(u, pos, favorited);\n\t}", "title": "" }, { "docid": "fa0feb3ff210702b13b6e5258421fa5f", "score": "0.46638334", "text": "@RequestMapping(method=RequestMethod.GET)\n public String searchTwitter(Model model) throws InterruptedException{\n \t//Check if this app has been authorized\n if (connectionRepository.findPrimaryConnection(Twitter.class) == null) {\n return \"redirect:/connect/twitter\";\n }\n \n \n SearchResults searchResults = twitter.searchOperations().search(\"-RT Uber\"); //Searches for tweets\n tweetList = searchResults.getTweets();\t\t\t\t\t\t\t\t\t\t //Stores result of search in tweetList\n\n \tCompany company = companyRepository.findCompanyByCompanyName(\"Uber\");\n \t\n \t//Get each tweet data\n for(Tweet tweet:tweetList) {\n \tLong id = tweet.getId();\n \tString screenName = tweet.getUser().getScreenName();\n \tUser user = new User(id,screenName);\n \tuser.setFollowerCount(tweet.getUser().getFollowersCount());\n \tuserRepository.save(user);\n \t\n \tcompany.tweetedBy(user);\t\t//User tweeted about company, make the link\n \t\n \t//Get the RTs of this tweet\n List<Tweet> rtUserList = twitter.timelineOperations().getRetweets(user.getId());\n user = userRepository.findUserByScreenName(user.getName()); \n \n try {\n if(rtUserList!=null) {\n \tuser.setRetweetCount(rtUserList.size());\n for(Tweet rUser:rtUserList) {\n \tUser user1 = new User(rUser.getUser().getId(),rUser.getUser().getScreenName());\n \tuser1.setFollowerCount(rUser.getUser().getFollowersCount());\n \tuser1.setRetweetCount(0);\n \tuserRepository.save(user1);\n \tif(!user.retweets.contains(user1))\n \t\tuser.retweetedBy(user1);\n }\n }\n }\n //If the rate-limit is exceeded, don't want to just crash, save the RTs data we got thus far\n catch(RateLimitExceededException e) {\n \tuserRepository.save(user);\n \tcompanyRepository.save(company);\n }\n //Save this user to neo4j\n \tuserRepository.save(user);\n }\n companyRepository.save(company);\n \n //Just to output the tweets to a webpage\n model.addAttribute(\"tweetList\",tweetList);\n return \"search\";\n }", "title": "" }, { "docid": "a2851030e141ad7536836377631af916", "score": "0.4660666", "text": "@Override\n public void getTweets(@NonNull final LoadTweetListCallback callback, final int limit) {\n if (!mTokenReceived || mToken ==null) {\n mTweetListServiceApi.getToken(new TwitterListService.TweetTokenCallback() {\n\n @Override\n public void onTokenStarted() {\n callback.onFetchTokenStarted();\n }\n\n @Override\n public void onTokenReceived(String token, boolean success) {\n if (token != null) {\n callback.onFetchTokenComplete();\n mTokenReceived = true;\n mToken = token;\n getTweetsInner(token, callback, 0, limit);\n } else {\n mTokenReceived = false;\n }\n }\n });\n } else {\n getTweetsInner(mToken, callback, 0, limit);\n\n }\n\n }", "title": "" }, { "docid": "153a953f1c9864c8766362184e4a6249", "score": "0.46557665", "text": "public void readTweetFollow(String cadena) {\n\t\tString[] aux = UtilsConsoleTwitter.divideCadena(cadena, ConstantsConsoleTwitter.Simbol.SIMBOL_WALL);\n\n\t\tString name = aux[0];\n\n\t\tUtilsFollow.readPersonFollow(name)\n\t\t\t.stream()\n\t\t\t.forEach(b -> UtilsPerson.readTweetPerson(b)\n\t\t\t\t .stream()\n\t\t\t\t\t.forEach(c -> System.out.println(\n\t\t\t\t\t\t\t\t c.getUser() + \" - \" + \n\t\t\t\t\t\t\t\t c.getTweet() + \" - \" + \n\t\t\t\t\t\t\t\t c.getTimeAgo())));\n\n\t}", "title": "" }, { "docid": "fa2b3301ca52f174064d0612c967b5d6", "score": "0.4631682", "text": "public List<Integer> getNewsFeed(int userId) {\n List<Integer> res = new LinkedList<>();\n if (users.containsKey(userId)) {\n if (messages.size() > 0) {\n ListIterator<Pair<Integer, Integer>> iterator = messages.listIterator(messages.size() - 1);\n int count = 0;\n Set<Integer> followed = users.get(userId);\n while (iterator.hasPrevious() && count < 10) {\n Pair<Integer, Integer> message = iterator.previous();\n if (followed.contains(message.getKey())) {\n res.add(message.getValue());\n count++;\n }\n }\n }\n }\n return res;\n }", "title": "" }, { "docid": "9e34f7d6ae11d771be192437996b4d77", "score": "0.46230388", "text": "public Tweet favorite(String screenName, int pos, boolean favorite) {\n\t\tTweet t = favoritesTimeline.favorite(screenName, pos, favorite);\n\t\thomeTimeline.favorite(screenName, pos, favorite);\n\t\treturn t;\n\t}", "title": "" }, { "docid": "cce0759d84a106e3770c6603886988a0", "score": "0.46195957", "text": "public static Tweet fromJSON(JSONObject jsonObject){\n Tweet tweet = new Tweet();\n\n try {\n tweet.body = jsonObject.getString(\"text\");\n tweet.uid = jsonObject.getString(\"id\");\n tweet.createdAt = jsonObject.getString(\"created_at\");\n tweet.user = User.fromJSON(jsonObject.getJSONObject(\"user\"));\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n return tweet;\n\n }", "title": "" }, { "docid": "3635a0b14156fa55bf7e3a5935c4175e", "score": "0.46098977", "text": "RealtimeListAccess<Activity> getFeedActivityStream(Identity userIdentity) throws AccessDeniedException,\n ServiceException;", "title": "" }, { "docid": "b4b3652cb69aba65c5bc65f3571082fe", "score": "0.46039936", "text": "Tweet retweet(long tweetId) throws TwitterException;", "title": "" }, { "docid": "6306999a0b907965ef5b521ddd68c910", "score": "0.46037894", "text": "@POST\r\n\t@Path(\"tweets\")\r\n\t@Consumes({MediaType.TEXT_PLAIN})\r\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\r\n\tpublic Response postTweet(String message,\r\n\t\t\t@CookieParam(\"ITD_AuthToken\") Cookie authToken, @Context UriInfo uris);", "title": "" }, { "docid": "5d1cb01fc048a57d63980e1fed7ebe66", "score": "0.45956904", "text": "TenderBookmark findTenderBookmark(int tenderId, int userId);", "title": "" }, { "docid": "06df57fa99c983e19698070bedf30659", "score": "0.45942262", "text": "public static List<Tweet> search(SharedPreferences prefs, String msg)\r\n\t\t\tthrows Exception {\n\t\tTwitter twitter = new TwitterFactory().getInstance();\r\n\t\tString tmp = prefs.getString(\"Current_Hashtag\",\r\n\t\t\t\t\"Error pref doesnt exist\");\r\n\t\tQuery query = new Query(\"#\" + tmp);\r\n\t\tQueryResult result = twitter.search(query);\r\n\t\tList<Tweet> tweets = result.getTweets();\r\n\r\n\t\treturn tweets;\r\n\t}", "title": "" }, { "docid": "10a8a825d77f07b6f7a5e660c818b89c", "score": "0.4579606", "text": "public Tweet retweetedBy(User u, int pos) {\n\t\treturn userTimeline.retweetedBy(u, pos);\n\t}", "title": "" }, { "docid": "778d3a54d1a64b90062b33d0c0e0dec3", "score": "0.4575363", "text": "public List<Post> getUserPosts(Long userId);", "title": "" }, { "docid": "bb508b7be574f882bb6a2f222b8d04d0", "score": "0.45664936", "text": "public interface TweetService {\n public List<Tweet> getTweets(String userId);\n public Tweet getTweet(String tweetId);\n public Tweet createTweet(Tweet tweet, String userUid);\n}", "title": "" }, { "docid": "945fa5ea3384239cb2ad7cc03f00056a", "score": "0.45600834", "text": "public static ResultSetWithCursor getUserTimeline(PLYRestClient client, String userID, Integer count,\n String sinceID, String untilID, Boolean showOpines, Boolean showReviews, Boolean showPictures,\n Boolean showProducts, Boolean includeFriends) {\n String url = \"/timeline/user/\" + userID;\n\n String resultsUrl = \"/timeline/user/\" + userID;\n\n Map<String, String> parameters = new HashMap<String, String>();\n if (!StringUtils.isEmpty(count)) {\n parameters.put(\"count\", count.toString());\n }\n if (!StringUtils.isEmpty(sinceID)) {\n parameters.put(\"since_id\", sinceID);\n }\n if (!StringUtils.isEmpty(untilID)) {\n parameters.put(\"until_id\", untilID);\n }\n if (!StringUtils.isEmpty(showOpines)) {\n parameters.put(\"opines\", showOpines.toString());\n }\n if (!StringUtils.isEmpty(showReviews)) {\n parameters.put(\"reviews\", showReviews.toString());\n }\n if (!StringUtils.isEmpty(showPictures)) {\n parameters.put(\"images\", showPictures.toString());\n }\n if (!StringUtils.isEmpty(showProducts)) {\n parameters.put(\"products\", showProducts.toString());\n }\n if (!StringUtils.isEmpty(includeFriends)) {\n parameters.put(\"include_friends\", includeFriends.toString());\n }\n url = UrlHelper.addQueryParameterPlaceholderToUrl(url, parameters);\n\n ResponseEntity<BaseObject[]> response = client.exchange(url, HttpMethod.GET, BaseObject[].class,\n parameters);\n List<BaseObject> results = new ArrayList<BaseObject>(Arrays.asList(response.getBody()));\n ResultSetWithCursor cursor = new ResultSetWithCursor();\n cursor.setResults(results);\n if (results.size() == 0) {\n return cursor;\n }\n String newestId = results.get(0).getId();\n Map<String, String> parametersSince = new HashMap<String, String>(parameters);\n parametersSince.put(\"since_id\", newestId);\n String resultsUrlSince = UrlHelper.addQueryParameterToUrl(resultsUrl, parametersSince);\n cursor.setSinceThisResultsUrl(resultsUrlSince);\n String oldestId = results.get(results.size() - 1).getId();\n Map<String, String> parametersUntil = new HashMap<String, String>(parameters);\n parametersUntil.put(\"until_id\", oldestId);\n String resultsUrlUntil = UrlHelper.addQueryParameterToUrl(resultsUrl, parametersUntil);\n cursor.setUntilThisResultsUrl(resultsUrlUntil);\n resultsUrl = UrlHelper.addQueryParameterToUrl(resultsUrl, parameters);\n cursor.setThisResultsUrl(resultsUrl);\n return cursor;\n }", "title": "" }, { "docid": "6bf2d27563da0f9c7a1080fa80ca3f72", "score": "0.4523451", "text": "public List<Post> getPostsByUsername(String username);", "title": "" }, { "docid": "5cba105e25251e881f0e8739d6628610", "score": "0.4519305", "text": "@GET\r\n\t@Path(\"followees\")\r\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\r\n\tpublic Users getFollowees(@CookieParam(\"ITD_AuthToken\") \r\n\t\t\tCookie authToken);", "title": "" }, { "docid": "a025c85861c28817f0cbb990ffcceb30", "score": "0.446316", "text": "private String getTwitterStream() {\n String results = null;\n\n // Step 1: Encode consumer key and secret\n try {\n // URL encode the consumer key and secret\n String urlApiKey = URLEncoder.encode(CONSUMER_KEY, \"UTF-8\");\n String urlApiSecret = URLEncoder.encode(CONSUMER_SECRET, \"UTF-8\");\n\n // Concatenate the encoded consumer key, a colon character, and the\n // encoded consumer secret\n String combined = urlApiKey + \":\" + urlApiSecret;\n\n // Base64 encode the string\n String base64Encoded = Base64.encodeToString(combined.getBytes(), Base64.NO_WRAP);\n\n // Step 2: Obtain a bearer token\n HttpPost httpPost = new HttpPost(TwitterTokenURL);\n httpPost.setHeader(\"Authorization\", \"Basic \" + base64Encoded);\n httpPost.setHeader(\"Content-Type\", \"application/x-www-form-urlencoded;charset=UTF-8\");\n httpPost.setEntity(new StringEntity(\"grant_type=client_credentials\"));\n String rawAuthorization = getResponseBody(httpPost);\n Authenticated auth = jsonToAuthenticated(rawAuthorization);\n\n // Applications should verify that the value associated with the\n // token_type key of the returned object is bearer\n if (auth != null && auth.token_type.equals(\"bearer\")) {\n\n // Step 3: Authenticate API requests with bearer token\n HttpGet httpGet = new HttpGet(TwitterStreamURL + id);\n\n // construct a normal HTTPS request and include an Authorization\n // header with the value of Bearer <>\n httpGet.setHeader(\"Authorization\", \"Bearer \" + auth.access_token);\n httpGet.setHeader(\"Content-Type\", \"application/json\");\n // update the results with the body of the response\n results = getResponseBody(httpGet);\n }\n } catch (UnsupportedEncodingException ex) {\n } catch (IllegalStateException ex1) {\n }\n return results;\n }", "title": "" }, { "docid": "c80b4c259e826f99f3f23fdfb18c7e76", "score": "0.4462726", "text": "public List<Integer> getNewsFeed(int userId) {\n if (!map.containsKey(userId)) {\n map.put(userId , new HashSet<>());\n map.get(userId).add(userId);\n }\n int cnt = 0;\n List<Integer> ret = new ArrayList<>();\n for (int i = list.size() - 1 ; i >= 0 ; --i) {\n int[] cur = list.get(i);\n if (!map.containsKey(cur[0])) {\n map.put(cur[0] , new HashSet<>());\n map.get(cur[0]).add(cur[0]);\n }\n if (map.get(cur[0]).contains(userId)) {\n ret.add(cur[1]);\n if (++cnt == 10) {\n return ret;\n }\n }\n }\n return ret;\n }", "title": "" }, { "docid": "8bdc5c066e2909f7739be79acf80768e", "score": "0.4457534", "text": "public void postTweet(int userId, int tweetId) {\n List<Tweet> tweetList = null;\n follow(userId, userId);\n if(usersTweetList.containsKey(userId)){\n tweetList = usersTweetList.get(userId);\n } else {\n tweetList = new ArrayList<>();\n usersTweetList.put(userId,tweetList);\n }\n tweetList.add(new Tweet(userId,tweetId));\n }", "title": "" }, { "docid": "d4ae0865dcffad11aff9a8c25a5802fc", "score": "0.4437313", "text": "public List<User> getFavorites(User user){\n List<User> favorites = new LinkedList<>();\n for(int i=0; i<user.getFavorites().size(); i++){\n favorites.add(getUser(user.getFavorites().get(i)));\n }\n return favorites;\n }", "title": "" }, { "docid": "0e296eb88b46a773d36fa40ed4d7040a", "score": "0.44283336", "text": "public String tweet() {\n\t\treturn this.tweet;\n\t}", "title": "" }, { "docid": "d2dc11474e54fc3fdfeeaffd41d2fb21", "score": "0.4421506", "text": "public ArrayList<FilmWatched> getDataFilmWatched(String username){\n \t\n \tArrayList<FilmWatched> ds = new ArrayList<>();\n getInstance();\n try { \n stm = cnn.createStatement();\n String query = \"SELECT * FROM WATCHED_FILM WHERE username_ = '\"+username+\"'\";\n rs = stm.executeQuery(query);\n while(rs.next()){\n ds.add(new FilmWatched(rs.getString(1).trim(),rs.getInt(2),rs.getString(3).trim()));\n }\n rs.close();\n stm.close();\n CloseConnect();\n } catch (SQLException ex) {\n System.out.println(\"Error: \" + ex.toString());\n }\n return ds;\n }", "title": "" }, { "docid": "3b48b9b92ecd5e17fc957232efcea900", "score": "0.44189584", "text": "private void loginToTwitter() {\n // Check if already logged in\n if (!isTwitterLoggedInAlready()) {\n ConfigurationBuilder builder = new ConfigurationBuilder();\n builder.setUseSSL(true); \n builder.setOAuthConsumerKey(TWITTER_CONSUMER_KEY);\n builder.setOAuthConsumerSecret(TWITTER_CONSUMER_SECRET);\n Configuration configuration = builder.build();\n \n TwitterFactory factory = new TwitterFactory(configuration);\n twitter = factory.getInstance();\n \n try {\n requestToken = twitter.getOAuthRequestToken(TWITTER_CALLBACK_URL);\n this.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(requestToken.getAuthenticationURL())));\n } catch (TwitterException e) {\n e.printStackTrace();\n }\n } else {\n // user already logged into twitter\n Toast.makeText(getApplicationContext(),\n \"Ya se encuentra identificado en twitter\", Toast.LENGTH_LONG).show();\n \n }\n }", "title": "" }, { "docid": "26d2bd5e5d9c0d5b2843996d151b70bf", "score": "0.44147784", "text": "public TwitterUser(String username, List<String> tweets) {\n this.username = username;\n this.tweets = tweets;\n }", "title": "" }, { "docid": "5187ef041312f523a74e8f9d6b4e8b23", "score": "0.4406514", "text": "private void getTweetsFromServer() {\n Call<List<TweetModel>> call = mTService.getTweets();\n call.enqueue(new Callback<List<TweetModel>>() {\n @Override\n public void onResponse(Call<List<TweetModel>> call, Response<List<TweetModel>> response) {\n\n if (response.isSuccessful()) {\n //update the adapter data\n mAdapter.updateAdapterData(response.body());\n mAdapter.notifyDataSetChanged();\n } else {\n ErrorModel errorModel = ErrorUtils.parseError(response);\n Toast.makeText(getBaseContext(), \"Error type is \" + errorModel.type + \" , description \" + errorModel.description, Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<List<TweetModel>> call, Throwable t) {\n //occur when fail to deserialize || no network connection || server unavailable\n Toast.makeText(getBaseContext(), \"Fail it >> \" + t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "title": "" }, { "docid": "628c24469e1ced896a89c8b7a6fb22f4", "score": "0.44046962", "text": "Tweet(String message, Date date){\n this.message=message;\n this.date=date;\n }", "title": "" }, { "docid": "3ba2e4de5c0b13460f34ca0a7c9efe2f", "score": "0.44030666", "text": "TrackerUsers getFromUser();", "title": "" }, { "docid": "b7dd3e89014907136c7cb9c796db387c", "score": "0.44021815", "text": "public String getUserTwitter() {\n\t\treturn userTwitter;\n\t}", "title": "" }, { "docid": "4440f7bc35d79e32af022627cb6f0bcc", "score": "0.4399115", "text": "void onFavouriteUser(String userId);", "title": "" }, { "docid": "dfc9ff29b49c3478fca6c7e2c0c07b8c", "score": "0.43947875", "text": "@GetMapping(value = \"/feed\")\n public String getFeed(Model m, Principal p) {\n //get current user\n ApplicationUser currentUser = appUserRepository.findByUsername(p.getName());\n Set<ApplicationUser> followFriends = currentUser.getFriends();\n m.addAttribute(\"followingFriends\", followFriends);\n //for the nav bar\n m.addAttribute(\"myProfile\", true);\n m.addAttribute(\"user\", true);\n\n return \"feed\";\n }", "title": "" }, { "docid": "8ee0433059a823e6e0a924da7d71a4d1", "score": "0.4390803", "text": "public List<Integer> getNewsFeed(int userId) {\n\t\tList<ArrayList<Tweet>> followersAndTweetsMappings=new ArrayList<ArrayList<Tweet>>();\n\n\t\tif(userFollowersmappings.containsKey(userId)){\n\t\t\tArrayList<Integer> followerIds=userFollowersmappings.get(userId);\n\n\n\t\t\tfor(Integer followeId : followerIds){\n\t\t\t\tif(userTweetIDmappings.containsKey(followeId)){\n\t\t\t\t\tfollowersAndTweetsMappings.add(userTweetIDmappings.get(followeId));\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t\n\t\t ArrayList<Tweet> tweetListForUserId = userTweetIDmappings.get(userId);\n\t\t\n\t\t if(tweetListForUserId!=null) {\n\t\t followersAndTweetsMappings.add(tweetListForUserId);\n\t\t }\n\n\t\treturn mergeArrays(followersAndTweetsMappings);\n\n\n\t}", "title": "" }, { "docid": "94e397a0b4b89fc8df66debdb75e99e2", "score": "0.43834096", "text": "private static String fetchTimelineTweet(String endPointUrl)\n\t\t\tthrows IOException {\n\t\tHttpsURLConnection connection = null;\n\n\t\ttry {\n\t\t\tURL url = new URL(endPointUrl);\n\t\t\tconnection = (HttpsURLConnection) url.openConnection();\n\t\t\tconnection.setRequestProperty(\"Host\", \"api.twitter.com\");\n\t\t\tconnection.setRequestProperty(\"User-Agent\", \"anyApplication\");\n\t\t\tconnection.setRequestProperty(\"Authorization\", \"Bearer \" +\t bearerToken);\n\t\t\tconnection.setUseCaches(false);\n\t\t\t\n\t\t\tSystem.out.println(\"endPointUrl \"+endPointUrl);\n\t\t\tSystem.out.println(\"Authorization \"+connection.getRequestProperty(\"Authorization\"));\n\t\t\tSystem.out.println(\"User-Agent \"+connection.getRequestProperty(\"User-Agent\"));\n\t\t\tSystem.out.println(\"Host \"+connection.getRequestProperty(\"Host\"));\n\t\t\t\n\t\t\tSystem.out.println(\"RequestMethod \"+connection.getRequestMethod());\n\n\t\t\t// Parse the JSON response into a JSON mapped object to fetch fields\n\t\t\t// from.\n\t\t\tSystem.out.println(\"CONN RESP CODE \" + connection.getResponseCode()+\" ok= \"+HttpsURLConnection.HTTP_OK);\n\t\t\treadResponse(connection);\n\n\t\t\treturn new String();\n\t\t} catch (MalformedURLException e) {\n\t\t\tthrow new IOException(\"Invalid endpoint URL specified.\", e);\n\t\t} finally {\n\t\t\tif (connection != null) {\n\t\t\t\tconnection.disconnect();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6bdbc72c9c3833111332b11fd7369853", "score": "0.43796572", "text": "UserDTO getUserByTwitterId(String twitterId);", "title": "" }, { "docid": "13ceb511ff882ca716f6d1039978bd83", "score": "0.43765274", "text": "public void postTweet(int userId, int tweetId) {\r\n Tweet post = new Tweet(timeStamp, tweetId);\r\n timeStamp++;\r\n List<Tweet> currentTimeline;\r\n if( userTimeline.containsKey(userId) )\r\n currentTimeline = userTimeline.get(userId);\r\n else\r\n currentTimeline = new LinkedList<Tweet>();\r\n currentTimeline.add(0, post);\r\n userTimeline.put(userId, currentTimeline);\r\n }", "title": "" }, { "docid": "432e49e14792171c6c448b2780a6fec7", "score": "0.4376133", "text": "@Cacheable(\"suggest-users-cache\")\n public Collection<User> suggestUsers(String login) {\n Map<String, Integer> userCount = new HashMap<String, Integer>();\n List<String> friendIds = friendshipService.getFriendIdsForUser(login);\n List<String> sampleFriendIds = reduceCollectionSize(friendIds, SAMPLE_SIZE);\n for (String friendId : sampleFriendIds) {\n List<String> friendsOfFriend = friendshipService.getFriendIdsForUser(friendId);\n friendsOfFriend = reduceCollectionSize(friendsOfFriend, SUB_SAMPLE_SIZE);\n for (String friendOfFriend : friendsOfFriend) {\n if (!friendIds.contains(friendOfFriend) && !friendOfFriend.equals(login)) {\n incrementKeyCounterInMap(userCount, friendOfFriend);\n }\n }\n }\n List<String> mostFollowedUsers = findMostUsedKeys(userCount);\n List<User> userSuggestions = new ArrayList<User>();\n for (String mostFollowedUser : mostFollowedUsers) {\n User suggestion = userService.getUserByLogin(mostFollowedUser);\n if ( suggestion.getActivated() ){\n userSuggestions.add(suggestion);\n }\n }\n if (userSuggestions.size() > SUGGESTIONS_SIZE) {\n return userSuggestions.subList(0, SUGGESTIONS_SIZE);\n } else {\n return userSuggestions;\n }\n }", "title": "" }, { "docid": "c669a2a5403cdefc2b5f6d943e894af6", "score": "0.43747008", "text": "public Tweet(String content) {\n\t\tif (StringUtil.isEmpty(content)) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\"Content must not be empty/null.\");\n\t\t}\n\t\t//\n\t\tHashtable data = new Hashtable();\n\t\tdata.put(MetadataSet.TWEET_CONTENT, content);\n\t\tsetData(data);\n\t\t//\n\t\tvalidateContent();\n\t}", "title": "" }, { "docid": "6cd36d856cad8f52624e503e0b6483b5", "score": "0.4369505", "text": "public TweetAdapter(List<Tweet> tweets) {\n mTweets = tweets;\n }", "title": "" }, { "docid": "ad25e292e0151e1c9fc9713ce4684ebb", "score": "0.43676698", "text": "public static void main(String[] args) throws IOException{\n String outputFileName=\"tweetsV2-Hugo.txt\";\n String filePath=\"/Users/Hugo/NetBeansProjects/smartDownloader/TwitterData\";\n \n /*CHANGE YOUR CREDENTIALS HERE*/\n String apiKey=\"X5QaYPl89YnwR9qjB2ro5mN4H\";//\"AHLzvp7J0ONr7wXsVY3Xw\"; //\n String apiSecret=\"xy0zCGHjhzyG9Tl96lD9CT1GtZuhKi9RSItIOZp8420KkDusZ7\"; //\"I3N4lCKEbsI0AAVJSpS1dUOiRwMbr07ZYGBlEA0I\"; //\n String tokenValue=\"34494124-wZpEvlhYgFrISqCvq5ZiX8VLbPAQk386fX88uT2Ln\"; //\"41588502-rl79tU9e8UWTCd4G1d6CZjj8dzEZn7FB6Hecp9H3B\";//\"34494124-wZpEvlhYgFrISqCvq5ZiX8VLbPAQk386fX88uT2Ln\";\n String tokenSecret=\"UUeshZc0CRsr0jDD1OSFqDJ2piVaiREaiQkueDJR7lIvQ\"; //\"mxZIf9CsbVctgouYDiCROKojhGO4JhII5yIJemN1n8\";//\"UUeshZc0CRsr0jDD1OSFqDJ2piVaiREaiQkueDJR7lIvQ\";\n \n /*ADD SEARCH TOPICS FOR TWITTER HERE*/\n String topics=\"ecstasy halloween\";\n \n int sleepTimeTweet=20000;\n int sleepTimeRequest=300000;\n final SmartDownloader smartDownloader = new SmartDownloader(outputFileName, apiKey, apiSecret, tokenValue, tokenSecret, filePath, topics);\n smartDownloader.start();\n }", "title": "" }, { "docid": "41dfbd9e4247500ed97e9988b1b7ec55", "score": "0.43628064", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn \"@\" + username + \" \" + dateTime.format(DateTimeFormatter.ofPattern(\"MM/dd/yyyy HH:mm\")) + \"\\n\" + tweet;\r\n\t}", "title": "" }, { "docid": "ce2c53b139aa9bd84f87c7fc0d7325da", "score": "0.4351262", "text": "public Twitter() {\n followees = new HashMap<>();\n tweets = new HashMap<>();\n\n currentTime = 0;\n }", "title": "" }, { "docid": "f141a7430dc099232c7dc4e49dc24a10", "score": "0.43472144", "text": "public interface TweetDao {\n\n List<Tweet> getMentionedTweets(Long id);\n}", "title": "" }, { "docid": "a04079be5cae55e7e1eba32198ec05ca", "score": "0.43417636", "text": "public Twitter() {\n followers = new HashMap<>();\n userPosts = new HashMap<>();\n this.currentTime = 1;\n }", "title": "" }, { "docid": "54ade8c6c66538ea750d1c163a946c24", "score": "0.43413562", "text": "private void getUserInfo(String userName) {\n twtUserLbl.setText(userName); //set the username label\n long userID; //get a long ready\n try {\n userID = twt.getUserID(userName); //try to convert the username to a userID\n twtUserIDLbl.setText(String.valueOf(userID)); //set the userID label to that ID we just got\n } catch (TwitterException ex) { //catch any twitter related errors\n Logger.getLogger(Gui.class.getName()).log(Level.SEVERE, null, ex); //log it just in case\n }\n try {\n Date d = twt.getLastTweetDate(userName); //try to get the date of the user's last tweet\n if(d != null) { //if they actually tweeted before\n SimpleDateFormat ft = new SimpleDateFormat (\"MM.dd.yyyy 'at' hh:mm a\");\n twtLastLbl.setText(ft.format(d)); //set the last tweet label to the formatted date\n }\n else {\n twtLastLbl.setText(\"Unable to get last Tweet date\");\n }\n //got the user's data, so start enabling the necessary buttons\n twtProfileBtn.setEnabled(true); \n remUserBtn.setEnabled(true);\n } catch (TwitterException ex) { \n Logger.getLogger(Gui.class.getName()).log(Level.SEVERE, null, ex); //log it just in case\n }\n }", "title": "" }, { "docid": "f10e0fce0e58ecbc424d37125c423049", "score": "0.43350735", "text": "String getTodoListRss(String listId);", "title": "" }, { "docid": "b325f2a5314e17f4a77c7f9e750de575", "score": "0.43348387", "text": "private void loginToTwitter() {\n\t\t// Check if already logged in\n\t\tif (!isTwitterLoggedInAlready()) {\n\t\t\tTwitterFactory factory = new TwitterFactory(getConfiguration());\n\t\t\ttwitter = factory.getInstance();\n\t\t\tnew AsyncTask<Void, Void, Void>() {\n\t\t\t\t@Override\n\t\t\t\tprotected Void doInBackground(Void... arg0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\trequestToken = twitter.getOAuthRequestToken(AppData.TWITTER_CALLBACK_URL);\n\t\t\t\t\t\tstartActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(requestToken.getAuthenticationURL())));\n\t\t\t\t\t} catch (TwitterException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}.execute();\n\t\t\t\n\t\t} else {\n\t\t\t// user already logged into twitter\n\t\t\tToast.makeText(getActivity(),\"Already Logged into twitter\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "title": "" }, { "docid": "82ea0c3669c90a7cfd0c3933cfc93ed9", "score": "0.4331919", "text": "public void postTweet(int userId, int tweetId) {\n Tweet tweet = new Tweet();\n tweet.id = tweetId;\n tweet.timestamp = currentTime++;\n\n if (!tweets.containsKey(userId)) {\n tweets.put(userId, new LinkedList<>());\n }\n tweets.get(userId).add(0, tweet);\n }", "title": "" }, { "docid": "37d986632f16a27a30157df2cbd1b217", "score": "0.43300623", "text": "String createTokenForCookie(String userId);", "title": "" }, { "docid": "7cb1fb854af274e0c8c4b419029f023e", "score": "0.43288338", "text": "public void postTweet(int userId, int tweetId) {\n Twitte tw = new Twitte(tweetId, userId);\n List<Twitte> tws = followeerTwitteMap.get(userId);\n if (tws == null) {\n tws = new ArrayList();\n followeerTwitteMap.put(userId, tws);\n }\n tws.add(tw);\n Set<Integer> followers = followeeMap.get(userId);\n if (followers == null) {\n followers = new HashSet<Integer>();\n followeeMap.put(userId, followers);\n return;\n }\n for (Integer id : followers) {\n tws = followeerTwitteMap.get(id);\n if (tws == null) {\n tws = new ArrayList();\n followeerTwitteMap.put(id, tws);\n }\n tws.add(tw);\n }\n }", "title": "" }, { "docid": "9703a8ca85f42adbdbde22c6a5f67885", "score": "0.43240353", "text": "@Override\n\tpublic List<Movie> getFavourites(int userId) {\n\t\tSystem.out.println(\"Inside getFavourites() method in UserService\");\n\t\tList<Movie> movies = userRepo.findFavourites(userId);\n\t\treturn movies;\n\t}", "title": "" }, { "docid": "69ac2cb6df89d65cac64e1d26f8bdd0b", "score": "0.43163988", "text": "public List<Status> getTweetsByTopic(String topic, int numberOfTweets) throws TwitterException, InterruptedException {\n \tfinal TwitterStream twitterStream = new TwitterStreamFactory().getInstance();\n final BlockingQueue<Status> statuses = new LinkedBlockingQueue<Status>(10000); \n final StatusListener listener = new StatusListener() {\n\n public void onStatus(Status status) {\n statuses.offer(status); // Add received status to the queue\n }\n\n\t\t\t@Override\n\t\t\tpublic void onException(Exception ex) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDeletionNotice(\n\t\t\t\t\tStatusDeletionNotice statusDeletionNotice) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onScrubGeo(long userId, long upToStatusId) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onStallWarning(StallWarning warning) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n };\n\n final FilterQuery fq = new FilterQuery();\n final String keywords[] = {topic};\n \n fq.track(keywords);\n\n twitterStream.addListener(listener);\n twitterStream.filter(fq);\n \n final List<Status> collected = new ArrayList<Status>(numberOfTweets);\n \n while (collected.size() < numberOfTweets) {\n // TODO: Handle InterruptedException\n final Status status = statuses.poll(10, TimeUnit.SECONDS); \n \n if (status == null) {\n continue;\n }\n \n \tSystem.out.println(\"CAPTURE TWEET: \" + status.getText());\n collected.add(status);\n }\n \n twitterStream.shutdown();\n return collected;\n }", "title": "" }, { "docid": "24f6dadcbdbb500d0624fd71444f10ef", "score": "0.4312473", "text": "public void comentariospost(){\r\n try {\r\n ResponseList<Comment> results = facebook.getCommentReplies(\"11422827368\");\r\n for(int i=0;i<results.size();i++)\r\n System.out.println(results.get(i));\r\n } catch (FacebookException ex) {\r\n Logger.getLogger(Metodos.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "3ef9438cf9682a7f88619165f86b1fbe", "score": "0.4306015", "text": "public TweetsAdapter(Context context, List<Tweet> tweets){\n this.context = context;\n this.tweets = tweets;\n }", "title": "" }, { "docid": "ceda5f2ede0118147bd63f315bbb3124", "score": "0.4303061", "text": "List<RememberMe> getByUser(@NotNull String userIdentifier);", "title": "" } ]
13314e289b814ca424609719f8196b08
Validate the fields and if the result is not null it tries to update based on the ID
[ { "docid": "db7fca79aee87f9da145c36037bda048", "score": "0.0", "text": "@FXML\r\n\t// CALLED WHEN UPDATE BUTTON IS CLICKED\r\n\t// Updates the informed Batch\r\n\tvoid updateBatch(ActionEvent event) {\n\t\tBatch updateBatch = validateFields(true);\r\n\t\tif (updateBatch != null) {\r\n\t\t\t// If the Update doesnt work, sends an error message, otherwise inform the user\r\n\t\t\t// about success\t\t\t\r\n\t\t\tif (batchDao.updateBatch(updateBatch)) {\r\n\t\t\t\talertInfo.setHeaderText(\"Batch updated\");\r\n\t\t\t\talertInfo.setContentText(\"Your batch data has been updated and stored in stock\");\r\n\t\t\t\talertInfo.show();\r\n\t\t\t} else {\r\n\t\t\t\talertInfo.setHeaderText(\"Error while updating Batch\");\r\n\t\t\t\talertInfo.setContentText(\"There was an error while updating batch, check if your batchID is correct\");\r\n\t\t\t\talertInfo.show();\r\n\t\t\t}\r\n\r\n\t\t\t// Refresh the list of batches on the GUI, so the data is accurate\r\n\t\t\trefreshBatchList();\r\n\t\t}\r\n\r\n\t}", "title": "" } ]
[ { "docid": "7f352991df5f22f90705c8852b8f475c", "score": "0.61075604", "text": "void testUpdateById();", "title": "" }, { "docid": "8a5c07c39f2c5ddea6fe49bc3d34af9c", "score": "0.608288", "text": "@Override\n protected Response doUpdate(Long id, JSONObject data) {\n return null;\n }", "title": "" }, { "docid": "324c198a5193f04c1d03a1d5a875a497", "score": "0.6012431", "text": "int updateByPrimaryKeySelective(UserRegDTO record);", "title": "" }, { "docid": "4938f29475700bb13630469a7cfcea9c", "score": "0.59534955", "text": "@Test\n\tpublic void updateShouldUpdateACLientWhenIdExists() {\n\t\n\t\tClient client = ClientFactory.createClient();\n\t\tclient.setName(nonExistingName);\n\t\tclient.setCpf(nonExistingCpf);\n\t\t\n\t\tclient = repository.save(client);\n\t\tOptional<Client> result = repository.findById(client.getId());\n\t\t\n\t\tAssertions.assertEquals(result.get().getId(), 1);\n\t\tAssertions.assertEquals(result.get().getName(), nonExistingName);\n\t\tAssertions.assertEquals(result.get().getCpf(), nonExistingCpf);\n\t}", "title": "" }, { "docid": "4820551e26cc553d3936742b20a3b275", "score": "0.58998924", "text": "@SuppressWarnings(\"unused\")\n private void validateMyFields(int id, String name) {\n // do validate fields\n }", "title": "" }, { "docid": "5d81c581330ef98687c1202460bf8b9b", "score": "0.5894687", "text": "@RequestMapping(value = \"/{id}\",method = RequestMethod.PUT,consumes = {\"application/json\"},produces = {\"application/json\"})\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void updateMuestra(@PathVariable(\"id\") String id, @RequestBody MuestraBasic muestra, HttpServletRequest request, HttpServletResponse response){\n ObjectId idMongo=new ObjectId(id);\n\n Map<String,String> results=new HashMap<>();\n if(! idMongo.equals( muestra.getId()))\n throw new HTTP400Exception(\"El ID no coincide!\");\n else\n this.muestrasService.updateMuestra(muestra,results);\n\n }", "title": "" }, { "docid": "1ca4fc240867b67410bae9888c6d2c9a", "score": "0.58677006", "text": "@Override\n public Item update(int ID) {\n return null;\n }", "title": "" }, { "docid": "dfe3dc1f3199811a3036da6bc27e4b3d", "score": "0.5863614", "text": "@Override\n\tpublic Diploma update(Integer id, Diploma entity) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7f8e49e2ff8c9b2a27080494ce2cb525", "score": "0.5846797", "text": "int updateByPrimaryKey(ProblemOption record);", "title": "" }, { "docid": "b81645514b71f447b116c14ca79e0cae", "score": "0.58461785", "text": "RequestGetDto update(@EntityExists(message = ENTITY_EXISTS + REQUEST, entityType = EntityType.REQUEST) int id,\n @Valid RequestUpdateDto updateDto);", "title": "" }, { "docid": "ec42927107f3f75c61f9b6222a117230", "score": "0.58411574", "text": "public abstract JednostkaLekcyjna findOneForUpdate(Long id);", "title": "" }, { "docid": "679ae53667a8fb0cf06f78c86ce5029b", "score": "0.58063406", "text": "private void setId(String id) {\n\t\t//Check that input isn't null\n\t\tif (id == null) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid id\");\n\t\t}\n\t\t//Check that input isn't an empty string\n\t\tif (id.equals(\"\")) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid id\");\n\t\t}\n\t\t//Set the field if all conditions are met\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "26bd9ead1891ed313ed39c297e77d6d6", "score": "0.5803978", "text": "int updateByPrimaryKeySelective(_exception record);", "title": "" }, { "docid": "22b12acffec8c330bdb7fb026262497f", "score": "0.5787767", "text": "int updateByPrimaryKey(UserRegDTO record);", "title": "" }, { "docid": "b3de7deb5cb9fb8e9d7c6c4415ca5c64", "score": "0.5729901", "text": "private void validateUpdateCompetence(String description, Integer id) throws InvalidParameterObjectException {\n\n if (description == null || description.isBlank()) {\n throw new InvalidParameterObjectException(\"Description must be required\");\n }\n\n if (description.length() > 50) {\n throw new InvalidParameterObjectException(\"Description must be at most 50 characters\");\n }\n\n if (id == null) {\n throw new InvalidParameterObjectException(\"ID must be not null\");\n }\n }", "title": "" }, { "docid": "f833bd4b697ae46e50942cb72b2bad19", "score": "0.57283294", "text": "@Override\n public ResponseMessage updateEntity(JsonBody jsonBody, long id) {\n String message = \"no string\";\n\n if (jsonBody.getCar() != null) {\n message = handleCarUpdate(jsonBody, id);\n }else if (jsonBody.getDriver() != null) {\n message = HandleDriverUpdate(jsonBody, id);\n } else {\n message = \"Can't update - please input proper json\";\n }\n return new ResponseMessage(message);\n }", "title": "" }, { "docid": "779d943aa0c01b55f885cc1155a49651", "score": "0.5719296", "text": "int updateByPrimaryKeySelective(ProblemOption record);", "title": "" }, { "docid": "f9ab3637ad8c1b23ccd3d8e4cf77696d", "score": "0.5715774", "text": "void update(FieldValidatorDto dto);", "title": "" }, { "docid": "955fac69079876da67bb37ca9199565c", "score": "0.5711552", "text": "int updateByPrimaryKey(_exception record);", "title": "" }, { "docid": "35f7df4ec42ee75ab2c36ac4936427d8", "score": "0.570739", "text": "public void updateRecord(int ID, String email, String pass, String name, String college, String year)\n\t{\n\t\tisUnique = true;\n\t\ttry\n\t\t{\n\t\t\tPreparedStatement preparedStatement = con.prepareStatement(UPDATE_QUERY);\n\t preparedStatement.setString(1, email);\n\t preparedStatement.setString(2, pass);\n\t preparedStatement.setString(3, name);\n\t preparedStatement.setString(4, college);\n\t preparedStatement.setString(5, year);\n\t preparedStatement.setInt(6, ID);\n\t \n\t System.out.println(preparedStatement);\n\t preparedStatement.executeUpdate();\n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t\tisUnique = false;\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "8bdb1a48760ae83ddccfdc2fd6ab3235", "score": "0.5702446", "text": "public void UpdateUserDetailsAt(String id, UserDetails user){\n\n //Table table = dyDB.getTable(\"UserDetails\");\n\n Query searchUserQuery = new Query(Criteria.where(\"_id\").is(id));\n UserDetails savedUser = mongotemplate.findOne(searchUserQuery, UserDetails.class,\"UserDetails\");\n System.out.println(savedUser);\n\n HashMap<String, AttributeValue> key = new HashMap<String, AttributeValue>();\n key.put(\"id\", new AttributeValue().withS(id));\n\n Map<String, AttributeValueUpdate> updateItems = new HashMap<String, AttributeValueUpdate>();\n\n if(user.getUser_name()!=null) {\n savedUser.setUser_name(user.getUser_name());\n updateItems.put(\"user_name\", new AttributeValueUpdate().withAction(AttributeAction.PUT).withValue(new AttributeValue().withS(user.getUser_name())));\n }\n\n if(user.getImg()!=null) {\n savedUser.setImg(user.getImg());\n updateItems.put(\"img\", new AttributeValueUpdate().withAction(AttributeAction.PUT).withValue(new AttributeValue().withS(user.getImg())));\n }\n\n if(user.getRole()!=null)\n {\n savedUser.setRole(user.getRole());\n updateItems.put(\"role\", new AttributeValueUpdate().withAction(AttributeAction.PUT).withValue(new AttributeValue().withS(user.getRole())));\n }\n\n if(user.getRegion()!=null) {\n savedUser.setRegion(user.getRegion());\n updateItems.put(\"region\", new AttributeValueUpdate().withAction(AttributeAction.PUT).withValue(new AttributeValue().withS(user.getRegion())));\n }\n\n if(user.getEducation()!=null)\n {\n savedUser.setEducation(user.getEducation());\n updateItems.put(\"education\", new AttributeValueUpdate().withAction(AttributeAction.PUT).withValue(new AttributeValue().withS(user.getEducation())));\n }\n\n if(user.getWorkex()!=null) {\n savedUser.setWorkex(user.getWorkex());\n updateItems.put(\"workex\", new AttributeValueUpdate().withAction(AttributeAction.PUT).withValue(new AttributeValue().withS(user.getWorkex())));\n }\n\n if(user.getSummary()!=null) {\n savedUser.setSummary(user.getSummary());\n updateItems.put(\"summary\", new AttributeValueUpdate().withAction(AttributeAction.PUT).withValue(new AttributeValue().withS(user.getSummary())));\n }\n\n if(user.getEducationDetails()!=null) {\n savedUser.setImg(user.getEducationDetails());\n updateItems.put(\"educationDetails\", new AttributeValueUpdate().withAction(AttributeAction.PUT).withValue(new AttributeValue().withS(user.getEducationDetails())));\n }\n\n if(user.getSkills()!=null) {\n savedUser.setSkills(user.getSkills());\n updateItems.put(\"skills\", new AttributeValueUpdate().withAction(AttributeAction.PUT).withValue(new AttributeValue().withS(user.getSkills())));\n\n //delete all existing skills for the user\n System.out.println(\"Delete all existing skills\");\n String sql = \"SELECT count(1) FROM skills WHERE user_id =\" + id + \"\";\n Integer numberOfSkills = jdbcTemplate.queryForObject(sql, Integer.class);\n\n if(numberOfSkills > 0) {\n jdbcTemplate.execute(\" DELETE FROM skills where user_id = \" + id + \"\");\n jdbcTemplate.execute(\" DELETE FROM skillsPref where user_id = \" + id + \"\");\n }\n\n //get all skills\n HashMap<String,Integer> skillMapping = new HashMap<String,Integer>();\n String sql1 = \"SELECT skillID,skillName FROM skillsMapping\";\n List<Map<String, Object>> skillsList = jdbcTemplate.queryForList(sql1);\n\n for(int i = 0 ; i< skillsList.size() ; i++)\n {\n Map<String, Object> skill = skillsList.get(i);\n skillMapping.put((String)skill.get(\"skillName\" ),(Integer) skill.get(\"skillID\"));\n }\n\n Random rand = new Random();\n //Add all new skills correspoding to user in skills table\n List<String> newSkillsList = Arrays.asList(user.getSkills().split(\",\"));\n for(String skill : newSkillsList)\n {\n //get skill ID\n System.out.println();\n jdbcTemplate.execute(\n \"INSERT INTO skills(user_id,item_id) values(\"\n + Integer.parseInt(id) + \",\"\n + skillMapping.get(skill.trim().toLowerCase())+ \")\");\n\n jdbcTemplate.execute(\n \"INSERT INTO skillsPref(user_id,item_id,preference) values(\"\n + Integer.parseInt(id) + \",\"\n + skillMapping.get(skill.trim().toLowerCase())+ \",\"\n + (rand.nextInt(5)+1) + \")\");\n }\n }\n\n if(user.getCertifications()!=null){\n savedUser.setCertifications(user.getCertifications());\n updateItems.put(\"certifications\", new AttributeValueUpdate().withAction(AttributeAction.PUT).withValue(new AttributeValue().withS(user.getCertifications())));\n }\n\n ReturnValue returnValues = ReturnValue.ALL_NEW;\n\n UpdateItemRequest updateItemRequest = new UpdateItemRequest()\n .withTableName(\"UserDetails\").withKey(key)\n .withAttributeUpdates(updateItems)\n .withReturnValues(returnValues);\n\n UpdateItemResult res = dynamoDBClient.updateItem(updateItemRequest);\n\n //save to mongodb\n mongotemplate.save(savedUser, \"UserDetails\");\n\n //TODO insert into redis - user ID , name , Image\n String insertTag;\n\n if(user.getUser_name()==null) {\n\n UserDetails getCompany = mapper.load(UserDetails.class, id);\n\n //redis HASH-MAP\n String tag = getCompany.getUser_name().toLowerCase();\n insertTag = tag.toLowerCase().replace(\" \", \"_\");\n }\n else\n {\n insertTag = user.getUser_name().toLowerCase().replace(\" \",\"_\");\n }\n\n UserDetails getUser = mapper.load(UserDetails.class, id);\n String default_image = \"http://pronetnode.elasticbeanstalk.com/assets/images/sample.jpg\";\n final String keyForHash = String.format( \"users:%s\", id );\n final Map< String, Object > properties = new HashMap< String, Object >();\n\n\n properties.put(UserFields.USERID.toString(), id);\n properties.put(UserFields.NAME.toString(),getUser.getUser_name());\n properties.put(UserFields.USERLOGO.toString(), getUser.getImg());\n if(user.getRegion()!=null)\n properties.put(UserFields.REGION.toString(),user.getRegion());\n else\n properties.put(UserFields.REGION.toString(),\"Not Available\");\n\n //query: hgetall jobs:11 / 11 is jobID\n redisTemplate.opsForHash().putAll(keyForHash, properties);\n\n final String keyForSet1 = String.format(\"tags:users:%s\", insertTag);\n score = redisTemplate.opsForZSet().size(keyForSet1);\n //populating tags for search\n //ZRANGE tags:jobs:new_position_for_SE 0 0 WITHSCORES\n redisTemplate.opsForZSet().add(keyForSet1, id, score + 1);\n\n }", "title": "" }, { "docid": "6b275a9b6a9f8aa80a9ab7bfa178a3d9", "score": "0.56955916", "text": "@Transactional\n public BookingDTO update(Long id, UpdateBookingRequestBody requestBody) {\n\n Booking booking = this.findBooking(id);\n this.checkCancelledStatus(booking);\n // check if email is present\n if (nonNull(requestBody.getEmail())) {\n booking.setEmail(requestBody.getEmail());\n }\n // check if user name is present\n if (nonNull(requestBody.getName())) {\n booking.setUserName((requestBody.getName()));\n }\n // if dates are present, i need to check if they are available\n if (nonNull(requestBody.getArrivalDate()) && nonNull(requestBody.getDepartureDate())) {\n this.checkAvailableBookingDate(requestBody, booking.getId());\n booking.setBookingDateRange(\n Range.closed(requestBody.getArrivalDate(), requestBody.getDepartureDate()));\n }\n\n log.info(String.format(\"Updating booking %s\", booking.getId()));\n booking = this.bookingRepository.save(booking);\n\n return this.bookingTransformer.transform(booking);\n }", "title": "" }, { "docid": "34950a913a10469c4b2846eb332d290c", "score": "0.5695348", "text": "@PUT\n @Path(\"/{id}\")\n @Produces(value = MediaType.APPLICATION_JSON)\n @Consumes(value = MediaType.APPLICATION_JSON)\n public Response updatePatient(@PathParam(value = \"id\") int id, PatientUpdateDto updateDto) {\n ServiceResponse<String> serviceResponse = new ServiceResponse();\n Response response;\n try {\n if (StringUtils.isNotEmpty(updateDto.getEmail()) || StringUtils.isNotEmpty(updateDto\n .getPhoneNumber()) || StringUtils.isNotEmpty(updateDto.getGender()) || updateDto.getAge() != 0 || (updateDto.getStatus() != null && (updateDto.getStatus()\n == PatientStatus.STATUS_INACTIVE || updateDto.getStatus() == PatientStatus.STATUS_ACTIVE\n || updateDto.getStatus() == PatientStatus.STATUS_DELETED))) {\n final Patient patient = patientService.get(id);\n\n if (patient != null) {\n\n\n if (StringUtils.isNotEmpty(updateDto.getEmail())) {\n patient.setEmail(updateDto.getEmail());\n }\n if (StringUtils.isNotEmpty(updateDto.getPhoneNumber())) {\n patient.setPhoneNumber(updateDto.getPhoneNumber());\n }\n if (StringUtils.isNotEmpty(updateDto.getName())) {\n patient.setName(updateDto.getName());\n }\n if (StringUtils.isNotEmpty(updateDto.getGender())) {\n patient.setGender(updateDto.getGender());\n }\n if (updateDto.getAge() != 0) {\n patient.setAge(updateDto.getAge());\n }\n\n if (updateDto.getStatus() == PatientStatus.STATUS_INACTIVE || updateDto.getStatus()\n == PatientStatus.STATUS_ACTIVE || updateDto.getStatus() == PatientStatus.STATUS_DELETED) {\n patient.setStatus(new PatientStatus(updateDto.getStatus()));\n }\n patientService.update(patient);\n serviceResponse.setBody(\"Patient details updated \");\n response = RESTfulUtil.getOk(serviceResponse);\n } else {\n response = RESTfulUtil.getBadRequest();\n }\n } else {\n response = RESTfulUtil.getBadRequest();\n }\n } catch (ServiceException e) {\n LOGGER.error(e.getMessage(), e);\n response = RESTfulUtil.getInternalServerError();\n }\n return response;\n }", "title": "" }, { "docid": "3254940fc890e062153c4b7905d04a9e", "score": "0.568269", "text": "@Override\n\tpublic User update(long id, User entity) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b70fe506b0a230224b9351013a310fb8", "score": "0.5652055", "text": "int updateByPrimaryKeySelective(IntegrityInfo record);", "title": "" }, { "docid": "e584bee5185a34438b2e8f0f185dea6a", "score": "0.56509733", "text": "int updateByPrimaryKeySelective(UserTemp record);", "title": "" }, { "docid": "96138a902036c5d18b88c154ed51c569", "score": "0.5639119", "text": "int updateByPrimaryKey(UserTemp record);", "title": "" }, { "docid": "e8375da123ef63d1424ab3ac9204608f", "score": "0.5635992", "text": "int updateByPrimaryKeySelective(ClueRemark record);", "title": "" }, { "docid": "b6066812cae592d6ce5e9ce699bde778", "score": "0.56246245", "text": "@Override\n\tpublic void update() {\n\t\tSQLManager sqlManager = SQLManager.getConnection();\n\t\t\n\t\t// Condition where\n\t\tString where = \"id = \"+this.id;\n\t\t\n\t\t// Run the query\n\t\tsqlManager.update(TABLE_NAME, getHashMap(), where);\n\t\t\n\t}", "title": "" }, { "docid": "d1fb8aa626cb2f57ff2b7f2ff00f03e7", "score": "0.56227165", "text": "private static void updatingRecord() {\n\t\tint id = MyConsole.getNumber(\"Enter Employee ID to Update\");\r\n\t\tString name = MyConsole.getString(\"Enter the name to update\");\r\n\t\tString address = MyConsole.getString(\"Enter the Address to update\");\r\n\t\tdouble salary = MyConsole.getDouble(\"Enter the salary to update\");\r\n\t\t//create the employee object\r\n\t\tEmployee emp = new Employee(id, name, address, salary);\r\n\t\t//pass this object to the update function and handle exceptions if any...\r\n\t\ttry {\r\n\t\t\tcollection.updateEmployee(emp);\r\n\t\t} catch (Exception e) {\r\n\t\t\tMyConsole.print(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1fcf0b699d27ee2616c5ff05af1b080c", "score": "0.5622464", "text": "@Override\r\n\tpublic Cc2r update(Cc2r obj) throws DAOException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "264baf0766d0d968872afece50af6c0d", "score": "0.5622356", "text": "@Override\n\tpublic SMObject updateObject(String schema, SMValue id,\n\t\t\tList<SMCondition> conditions, List<SMUpdate> updateActions)\n\t\t\tthrows InvalidSchemaException, DatastoreException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "addc61b00028040d205b05e4c1338f92", "score": "0.562221", "text": "@Override\n\tprotected boolean update(IdUpdateContext context, String id) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8b3f784eec11cb3d3c8c862fd9fe39af", "score": "0.5614569", "text": "int updateByPrimaryKeySelective(CorrelativeUserInfo record);", "title": "" }, { "docid": "a7044ea24ff88d37dd479dfd0ba3814d", "score": "0.5613024", "text": "int updateByPrimaryKeySelective(PojoTypeJson record);", "title": "" }, { "docid": "d9ed4c9d194b01341559c426742fbe9d", "score": "0.56041706", "text": "@Override\n\tpublic boolean update(String id, String name, String pwd, String sex, String email, String zhuanye) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "789d41eadf27f27de51f8f3ea0cd3643", "score": "0.5592757", "text": "int updateByPrimaryKeySelective(EmploymentDD record);", "title": "" }, { "docid": "b18a31fc9a8b1f88c700c0c1729ea05e", "score": "0.55880404", "text": "int updateByPrimaryKeySelective(Flowentity record);", "title": "" }, { "docid": "57498ce7cd719770840d128a625c60ca", "score": "0.5580249", "text": "int updateByPrimaryKeySelective(SysEmail record);", "title": "" }, { "docid": "72261dfe1cada8ae4de6993e73ac678a", "score": "0.5579329", "text": "@PutMapping(\"/{id}\")\n public @ResponseBody\n ResponseDTO update(\n @ModelAttribute(\"id\") Long id,\n @RequestBody @Valid IngresosEgresos model,\n Errors errors) {\n \n User userDetail = ((User) SecurityContextHolder.getContext().getAuthentication().getPrincipal());\n ResponseDTO response = new ResponseDTO();\n BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();\n try {\n inicializarIngresosEgresosManager();\n \n// if(errors.hasErrors()){\n// \n// response.setStatus(400);\n// response.setMessage(errors.getAllErrors()\n//\t\t\t\t.stream()\n//\t\t\t\t.map(x -> x.getDefaultMessage())\n//\t\t\t\t.collect(Collectors.joining(\",\")));\n// return response;\n// } \n// \n// Personas ejPersona = new Personas();\n// model.setEmpresa(new Empresas(userDetail.getIdEmpresa())); \n// ejPersona.setDocumento(model.getDocumento());\n// \n// Map<String, Object> personaMaps = personaManager.getLike(ejPersona, \"id\".split(\",\"));\n// if (personaMaps != null\n// && personaMaps.get(\"id\").toString().compareToIgnoreCase(model.getId().toString()) != 0) {\n// response.setStatus(205);\n// response.setMessage(\"Ya existe una persona con el mismo documento.\");\n// return response;\n// } \n// \n// model.setEmpresa(new Empresas(userDetail.getIdEmpresa()));\n// model.setFechaModificacion(new Timestamp(System.currentTimeMillis()));\n// model.setIdUsuarioModificacion(userDetail.getId());\n \n //usuarioManager.editar(model);\n \n response.setStatus(200);\n response.setMessage(\"Persona modificado/a con exito\");\n } catch (Exception e) {\n logger.error(\"Error: \",e);\n response.setStatus(500);\n response.setMessage(\"Error interno del servidor.\");\n }\n\n return response;\n }", "title": "" }, { "docid": "3d85ddc43160859c16945bdb9dae0465", "score": "0.5577484", "text": "CounselorFieldTemp update(CounselorFieldTemp entity);", "title": "" }, { "docid": "57a8728444986fa0a0e0f5dd9ebe1727", "score": "0.55715156", "text": "@Override\r\n\tpublic Usuario update(Usuario entity, Integer id) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "747c99bd347bde3d7ce9aff2ceacb30b", "score": "0.5561587", "text": "int updateByPrimaryKeySelective(FileUploadInfo record);", "title": "" }, { "docid": "8fa35e6c9a670e40b49d3e02303378f6", "score": "0.55615157", "text": "@Override\n\tpublic int update(int id) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "e75b8da8bd384c61b46d6682fb5351f5", "score": "0.55519414", "text": "public MessageModel updateOneEmpleado(Empleado_update update, String documento){\n if (!tokenBoolean && !rolAdmin.equals(\"adminUser\")) \n throw new DatosNoUnauthorized(\"No esta autorizado\");\n \n if(!validateData.getValidateDocumento(update.getNDocumento()))\n throw new DatosNoUnauthorized(\"El documento sólo puede ser número\");\n if(update.getNDocumento() == null || update.getNDocumento().length() < 8)\n throw new DatosNoUnauthorized(\"El documento no puede ser menor a 8 o Estar vacio\");\n if(!validateData.getValidateTelefono(update.getTelefono()))\n throw new DatosNoUnauthorized(\"El telefono sólo puede ser número\");\n if(update.getTelefono() == null || update.getTelefono().length() < 6)\n throw new DatosNoUnauthorized(\"No telefono puede ser menor a 6 o Estar vacio\");\n if(!validateData.getValidateText(update.getNombres()))\n throw new DatosNoUnauthorized(\"Los/El nombre no puede estar vacio o contener caracteres ilegales o números\");\n if(!validateData.getValidateText(update.getApellidos()))\n throw new DatosNoUnauthorized(\"Los/El apellidos no puede estar vacio o contener caracteres ilegales o números\");\n if(!validateData.getValidateEmail(update.getCorreo()))\n throw new DatosNoUnauthorized(\"Email introducido no corresponde\");\n if(update.getCargo().length() < 2 )\n throw new DatosNoUnauthorized(\"El Cargo no puede estar vacio o contener caracteres ilegales o números\");\n if(update.getDepartamento().length() <2)\n throw new DatosNoUnauthorized(\"El Departamento no puede estar vacio o contener caracteres ilegales o números\");\n if(update.getMunicipio().length() < 2)\n throw new DatosNoUnauthorized(\"El Municipio no puede estar vacio o contener caracteres ilegales o números\");\n \n \n boolean updateB = Edao.setUpdateEmpleado(documento, update);\n \n if(!updateB)\n throw new DatosNoUnauthorized(\"No se pudo actualizar hay algún error\");\n \n MessageModel msg = new MessageModel();\n msg.setMessage(\"Actualizado correctamente\");\n return msg;\n }", "title": "" }, { "docid": "2c25f9c96168b18e38eab1b3b626a938", "score": "0.5550171", "text": "int updateByPrimaryKeySelective(Employmentinfo record);", "title": "" }, { "docid": "1edf000ac0475588c133aab69bb32729", "score": "0.55486405", "text": "Optional<ProductsDTO> partialUpdate(ProductsDTO productsDTO);", "title": "" }, { "docid": "ac7af0d0cd48d90e6086fc2296b6b089", "score": "0.55454415", "text": "int updateByPrimaryKeySelective(Registration record);", "title": "" }, { "docid": "c0cec8ca161762e981512a5ee56a97a7", "score": "0.5544269", "text": "int updateByPrimaryKey(IntegrityInfo record);", "title": "" }, { "docid": "9111bbb72f4ea3bfbd4209e6f7333240", "score": "0.5541682", "text": "public void update() {\n if (!frame.getTxtID().getText().trim().isEmpty()) {\n mobil b = new mobil(); \n b.setNopol(frame.getTxtNopol().getText());\n b.setTujuan(frame.getTxtTujuan().getSelectedItem().toString()); \n b.setId(Integer.parseInt(frame.getTxtID().getText())); \n implMobil.update(b);\n JOptionPane.showMessageDialog(null, \"Update Data sukses\");\n} else {\n JOptionPane.showMessageDialog(frame, \"Pilih data yang akan di ubah\");\n}\n}", "title": "" }, { "docid": "cee705e4cd63e94c6b64bf3a9eab9939", "score": "0.5535993", "text": "int updateByPrimaryKeySelective(FinancialExpectations record);", "title": "" }, { "docid": "d4ccbfc80b0b3e15d9513652a64f7645", "score": "0.553423", "text": "int updateByPrimaryKeySelective(Datospersona record);", "title": "" }, { "docid": "1151411e70841a554de2998cb3f436aa", "score": "0.553373", "text": "int updateByPrimaryKeySelective(ResourcePOJO record);", "title": "" }, { "docid": "1d12f23da92f45bb2d2178f8c5ddf422", "score": "0.55308324", "text": "@PutMapping(\"/{idnotificador}\")\r\n\t Notificador updateNotificador(@RequestBody Notificador notificador, @PathVariable (\"idnotificador\") int idnotificador) {\r\n\r\n\t return notificadordao.findById(idnotificador)\r\n\t .map(notificadores -> {\r\n\t \r\n\t \t notificadores.setNombre(notificador.getNombre());\r\n\t \t notificadores.setApellido(notificador.getApellido());\r\n\t \t notificadores.setPassword(notificador.getPassword());\r\n\t \t notificadores.setPais(notificador.getPais());\r\n\t \t notificadores.setEdad(notificador.getEdad());\r\n\t \t return notificadordao.save(notificadores);\r\n\t })\r\n\t .orElseGet(() -> {\r\n\t notificador.setId(idnotificador);\r\n\t return notificadordao.save(notificador);\r\n\t \r\n\t });\r\n\t }", "title": "" }, { "docid": "24b5c57f2d9b7f5cb6ac1fd5be890577", "score": "0.5527274", "text": "int updateByPrimaryKey(FinancialExpectations record);", "title": "" }, { "docid": "f304b6225fe560a710abbe6740403dd8", "score": "0.5526694", "text": "int updateByPrimaryKeySelective(UserInfo record);", "title": "" }, { "docid": "f304b6225fe560a710abbe6740403dd8", "score": "0.5526694", "text": "int updateByPrimaryKeySelective(UserInfo record);", "title": "" }, { "docid": "d27e0fa25e4dd86fb528dc05227f9e0f", "score": "0.5526513", "text": "int updateByPrimaryKeySelective(Question record);", "title": "" }, { "docid": "ca3a86c93a649303ce16e6cc4ad69757", "score": "0.5524754", "text": "private void btnUpdateActionPerformed(java.awt.event.ActionEvent evt) {\n int confirmationChoice = JOptionPane.showConfirmDialog(null, \"Are you sure you want to update this?\", \"Confirm update\", JOptionPane.WARNING_MESSAGE);\n if (confirmationChoice != JOptionPane.OK_OPTION){\n return;\n }\n\n try {\n if (isValidData()) {\n\n //check if department number exists\n if (!(txtDocId.getText().trim().equals(rsDoc.getString(\"doctor_id\"))) && isDuplicate(Integer.parseInt(txtDocId.getText().trim())))\n {\n lblDocIdError.setText(\"Doctor id already exists\");\n lblDocIdError.setVisible(true);\n\n javax.swing.JLabel label = new javax.swing.JLabel(\"Doctor ID already exists\");\n label.setFont(new java.awt.Font(\"Arial\", java.awt.Font.BOLD, 18));\n JOptionPane.showMessageDialog(null, label, \"ERROR\", JOptionPane.INFORMATION_MESSAGE);\n return;\n }\n \n //If id changed, stop it\n if (!txtDocId.getText().trim().equals(rsDoc.getString(\"doctor_id\"))) {\n if (isDocTreatingPatient(rsDoc.getString(\"doctor_id\"))) {\n JOptionPane.showMessageDialog(null, \"Can't update doctorid having treatment\");\n return;\n }\n if (isDocWorkingForWard(rsDoc.getString(\"doctor_id\"))) {\n JOptionPane.showMessageDialog(null, \"Remove assignment from ward first\");\n return;\n }\n }\n\n String statement = \"UPDATE doctor SET doctor_id = \" + \n txtDocId.getText().trim() + \n \", first_name = '\" + txtFname.getText().trim().toUpperCase() +\n \"', last_name = '\" + txtLname.getText().trim().toUpperCase() + \n \"', speciality = '\" + txtSpec.getText().trim().toUpperCase() + \n \"', salary = \" + txtSalary.getText().trim() + \n \" WHERE doctor_id = \" + rsDoc.getString(\"doctor_id\");\n \n int result = dBCon.executePrepared(statement);\n\n if (result > 0) {\n //updated succesfully\n javax.swing.JLabel label = new javax.swing.JLabel(\"Doctor No \" + txtDocId.getText() + \" updated successfully.\");\n label.setFont(new java.awt.Font(\"Arial\", java.awt.Font.BOLD, 18));\n JOptionPane.showMessageDialog(null, label, \"SUCCESS\", JOptionPane.INFORMATION_MESSAGE);\n\n getNewData();\n } else {\n System.out.println(\"Error! Failed server side\");\n // check validation errors\n }\n\n } else {\n javax.swing.JLabel label = new javax.swing.JLabel(\"Please fix validation errors...\");\n label.setFont(new java.awt.Font(\"Arial\", java.awt.Font.BOLD, 18));\n JOptionPane.showMessageDialog(null, label, \"ERROR\", JOptionPane.ERROR_MESSAGE);\n return;\n }\n\n } catch (SQLException e) {\n //error updating department\n JOptionPane.showMessageDialog(null, \"Error updating doctor.\" + e.getMessage());\n\n }\n }", "title": "" }, { "docid": "afb622b2d50a98e4e760481e1ebccb33", "score": "0.5524505", "text": "@Test\n\t@Order(3)\n\tvoid update() throws Exception {\n\t\tlog.info(\"update\");\n\t\t\n\t\tOptional<Customer> customerOptional=customerService.findById(email);\n\t\t\n\t\t//siga si es verdadero(existe)\t\n\t\tassertTrue(customerOptional.isPresent(),\"El customer no existe\");\n\t\t\n\t\t//obtengo el customer\n\t\tCustomer customer=customerOptional.get();\n\t\t\n\t\t//modifico\n\t\tcustomer.setEnable(\"N\");\n\t\t\n\t\tcustomerService.update(customer);\n\t}", "title": "" }, { "docid": "91388bc235b4008a7ef4a400cca08116", "score": "0.5518217", "text": "int updateByPrimaryKeySelective(Exam record);", "title": "" }, { "docid": "624100f207e7c3ebf5859e251c491ffb", "score": "0.5511402", "text": "@Test\n public void whenGivenId_shouldUpdateProduct_ifFound() {\n Product product = new Product();\n \n product.setId(101);\n product.setName(\"iPhone\");\n product.setQuantity(1);\n product.setPrice(2500);\n\n Product newProduct = new Product();\n product.setName(\"Samsung\");\n\n given(productRepository.findById(product.getId())).willReturn(Optional.of(product));\n productService.updateProduct(product.getId(), newProduct);\n\n verify(productRepository).save(newProduct);\n verify(productRepository).findById(product.getId());\n }", "title": "" }, { "docid": "0dd11bc94561ea1d436f198dce08676d", "score": "0.5510729", "text": "protected void editField(HttpServletRequest request, HttpServletResponse response, ChurIncomeDataHolder _ChurIncome) throws Exception{\n\r\n if (!isMissing(request.getParameter(\"year\"))) {\r\n m_logger.debug(\"updating param year from \" +_ChurIncome.getYear() + \"->\" + request.getParameter(\"year\"));\r\n _ChurIncome.setYear(WebParamUtil.getIntegerValue(request.getParameter(\"year\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"week\"))) {\r\n m_logger.debug(\"updating param week from \" +_ChurIncome.getWeek() + \"->\" + request.getParameter(\"week\"));\r\n _ChurIncome.setWeek(WebParamUtil.getStringValue(request.getParameter(\"week\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"churMemberId\"))) {\r\n m_logger.debug(\"updating param churMemberId from \" +_ChurIncome.getChurMemberId() + \"->\" + request.getParameter(\"churMemberId\"));\r\n _ChurIncome.setChurMemberId(WebParamUtil.getLongValue(request.getParameter(\"churMemberId\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"incomeItemId\"))) {\r\n m_logger.debug(\"updating param incomeItemId from \" +_ChurIncome.getIncomeItemId() + \"->\" + request.getParameter(\"incomeItemId\"));\r\n _ChurIncome.setIncomeItemId(WebParamUtil.getLongValue(request.getParameter(\"incomeItemId\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"ammount\"))) {\r\n m_logger.debug(\"updating param ammount from \" +_ChurIncome.getAmmount() + \"->\" + request.getParameter(\"ammount\"));\r\n _ChurIncome.setAmmount(WebParamUtil.getDoubleValue(request.getParameter(\"ammount\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"timeCreated\"))) {\r\n m_logger.debug(\"updating param timeCreated from \" +_ChurIncome.getTimeCreated() + \"->\" + request.getParameter(\"timeCreated\"));\r\n _ChurIncome.setTimeCreated(WebParamUtil.getTimestampValue(request.getParameter(\"timeCreated\")));\r\n\r\n }\r\n\r\n m_actionExtent.beforeUpdate(request, response, _ChurIncome);\r\n m_ds.update(_ChurIncome);\r\n m_actionExtent.afterUpdate(request, response, _ChurIncome);\r\n }", "title": "" }, { "docid": "4c914fe85b1a451eb4a1dc135fe3067f", "score": "0.55101204", "text": "int updateByPrimaryKey(CommonParam record);", "title": "" }, { "docid": "c149417a22379362618fff86f0c92374", "score": "0.5509874", "text": "int updateByPrimaryKeySelective(CommonParam record);", "title": "" }, { "docid": "79bf79499d87560e29f77761f488adbf", "score": "0.5506894", "text": "int updateByPrimaryKeySelective(BuildingDO record);", "title": "" }, { "docid": "59a5c062f3fc95a2c277b80cc6aa4d88", "score": "0.5504844", "text": "int updateByPrimaryKeySelective(NeeqCompanyRecruitmentOnline record);", "title": "" }, { "docid": "32ca2a28a1a7e90abc21b7700cb30a4c", "score": "0.5499769", "text": "int updateByPrimaryKeySelective(Vias record);", "title": "" }, { "docid": "a1ef428c3eb5fd7e6e5ba33744c78bc9", "score": "0.54967815", "text": "int updateByPrimaryKeySelective(UqsQuestion record);", "title": "" }, { "docid": "c1a6494f9f4e3b1a83889a23ad433e2b", "score": "0.54938257", "text": "int updateByPrimaryKeySelective(Calificacion record);", "title": "" }, { "docid": "e2c05f31cdf4a34cf38fbc0a8065b0f3", "score": "0.5491246", "text": "int updateByPrimaryKeySelective(Tblpp record);", "title": "" }, { "docid": "0b300a7f9aceb4a626f17eae06a25bc1", "score": "0.5489608", "text": "int updateByPrimaryKey(Candidate record);", "title": "" }, { "docid": "92d31c1560f338d1f03336ce0ac7c9ae", "score": "0.54782027", "text": "@PutMapping(\"/{id}\")\r\n public ResponseEntity<?> update(@PathVariable(\"id\") long id, @Valid Livro livro, BindingResult result) {\r\n\r\n try {\r\n\r\n //valida campos\r\n if(result.hasErrors()) {\r\n return new ResponseEntity(result.getAllErrors(), HttpStatus.UNPROCESSABLE_ENTITY);\r\n }\r\n\r\n //Verifica se está cadastrado\r\n Livro findLivro = livroService.findById(id);\r\n\r\n if (findLivro== null) {\r\n return new ResponseEntity(new CustomErrorType(\"Item de id = \" + id + \" não encontrado.\"),\r\n HttpStatus.NOT_FOUND);\r\n }\r\n\r\n //atualiza o livro\r\n livroService.update(livro);\r\n\r\n return new ResponseEntity<>(livro, HttpStatus.OK);\r\n\r\n } catch (Exception e) {\r\n\r\n return new ResponseEntity(HttpStatus.BAD_REQUEST);\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "25e22d8353b6452d6378f206300d7386", "score": "0.5477893", "text": "@PostMapping(\"/update\")\n public ResponseEntity<ResponseDTO> updateTask(@RequestBody TaskUpdateDTO dto, HttpServletRequest request) {\n if (!this.taskStatusRepository.existsTaskStatusById(dto.getTaskStatusId())) {\n responseDTO.setContent(false);\n responseDTO.setMessage(\"Update fail taskStatus not found id - \" + dto.getTaskStatusId());\n return new ResponseEntity<>(responseDTO, HttpStatus.OK);\n }\n\n if (!this.taskPrioriryRepository.existsTaskPrioriryById(dto.getTaskPrioriryId())) {\n responseDTO.setContent(false);\n responseDTO.setMessage(\"Update fail taskPriority not found id - \" + dto.getTaskPrioriryId());\n return new ResponseEntity<>(responseDTO, HttpStatus.OK);\n }\n\n if (!this.customerRepository.existsCustomerByIdAndDeleteFlag(dto.getCustomerId(), Status.ACTIVE.getStatus())) {\n responseDTO.setContent(false);\n responseDTO.setMessage(\"Update fail customer not found id - \" + dto.getCustomerId());\n return new ResponseEntity<>(responseDTO, HttpStatus.OK);\n }\n\n if (this.taskRepository.existsTaskByIdAndDeleteFlag(dto.getTaskId(), Status.ACTIVE.getStatus())) {\n if (!this.customerRepository.existsCustomerByIdAndDeleteFlag(dto.getCustomerId(), Status.ACTIVE.getStatus())) {\n responseDTO.setContent(false);\n responseDTO.setMessage(\"UPdate fail customer not found id - \" + dto.getCustomerId());\n return new ResponseEntity<>(responseDTO, HttpStatus.OK);\n }\n\n boolean isNull = false;\n boolean flgCheckAllMatchExistByEmployeeId = true;\n\n if (dto.getEmployeeId() == null) {\n isNull = true;\n }else{\n if (dto.getEmployeeId().size() > 0) {\n isNull = false;\n flgCheckAllMatchExistByEmployeeId = dto.getEmployeeId().stream()\n .allMatch(employeeId -> this.employeeRepository\n .existsEmployeeByIdAndDeleteFlag(employeeId, Status.ACTIVE.getStatus()));\n }\n }\n\n if (isNull == false && flgCheckAllMatchExistByEmployeeId == false) {\n responseDTO.setContent(false);\n responseDTO.setMessage(\"Update fail some of the employeeId not match \");\n return new ResponseEntity<>(responseDTO, HttpStatus.OK);\n }\n this.taskService.updateTask(dto, isNull, request);\n responseDTO.setContent(dto);\n responseDTO.setMessage(\"Update success\");\n\n } else {\n responseDTO.setContent(false);\n responseDTO.setMessage(\"Update fail not found task with id - \" + dto.getCustomerId());\n return new ResponseEntity<>(responseDTO, HttpStatus.OK);\n }\n\n return new ResponseEntity<>(responseDTO, HttpStatus.OK);\n }", "title": "" }, { "docid": "812bc70ca7661d3ae21175e8afa11e23", "score": "0.54763186", "text": "boolean update(P pojo);", "title": "" }, { "docid": "6ccc43762d8d10c7d7af765dd39528f7", "score": "0.54720306", "text": "int updateByPrimaryKeySelective(WorkPlace record);", "title": "" }, { "docid": "c1e428dbf40d19dc174df3a5be857330", "score": "0.5471812", "text": "int updateByPrimaryKeySelective(Information record);", "title": "" }, { "docid": "0bf9bfb932fa5c2beb6e3c1046f8d2bb", "score": "0.54695266", "text": "int updateByPrimaryKey(DepartmentalExcellenceRecord record);", "title": "" }, { "docid": "5051781cecede052dc0194677aaf1860", "score": "0.5467944", "text": "int updateByPrimaryKeySelective(AccountPartialReconcileEntity record);", "title": "" }, { "docid": "b6258c97648435f722d7c524bfc16413", "score": "0.54664725", "text": "int updateByPrimaryKeySelective(PocDao record);", "title": "" }, { "docid": "776c3b49d3be2677669cb7be4a750558", "score": "0.5465786", "text": "int updateByPrimaryKey(PojoTypeJson record);", "title": "" }, { "docid": "e846d686fa17b53eacc91230c5318349", "score": "0.54605985", "text": "int updateByPrimaryKeySelective(Oder record);", "title": "" }, { "docid": "c7f21fded13152ad08c7f664980104b4", "score": "0.54587346", "text": "int updateByPrimaryKeySelective(CocoIssue record);", "title": "" }, { "docid": "c823363c0e10fe776ebdbe2e01c38cf9", "score": "0.54570216", "text": "int updateByPrimaryKeySelective(bannerBean record);", "title": "" }, { "docid": "460f01cfe7078819678fbf12dae45b69", "score": "0.54488426", "text": "int updateById(Class<? extends Entity> clazz, Object id, Update update) throws UnifyException;", "title": "" }, { "docid": "c29613c01834f4388a4dd59cf0ed65fa", "score": "0.5448357", "text": "int updateByPrimaryKeySelective(CrudItem record);", "title": "" }, { "docid": "927005d8fa0e7b3efaab8b5107318f24", "score": "0.54463047", "text": "int updateByPrimaryKeySelective(InterfaceConfig record);", "title": "" }, { "docid": "20bac29dfe1c024a7e54eedb3a4074dc", "score": "0.54448885", "text": "@Override\r\n public Item update( Item item,\r\n int id )\r\n {\n return null;\r\n }", "title": "" }, { "docid": "bc26a0cb6f20098875ccc601400db173", "score": "0.5444225", "text": "int updateByPrimaryKeySelective(ChooseLesson record);", "title": "" }, { "docid": "c74ec73c7801a0da7f46aa389f3c9f48", "score": "0.54432887", "text": "int updateByPrimaryKey(Flowentity record);", "title": "" }, { "docid": "8647e8af6e320b9c93bbfccae28d765a", "score": "0.54430807", "text": "ServerResponse updateByPrimaryKeySelective(UserModel record);", "title": "" }, { "docid": "6cf6cdf53759725490de1fd018980a86", "score": "0.5438996", "text": "int updateByPrimaryKeySelective(SysDict record);", "title": "" }, { "docid": "70ad45e401d44b69d2bfd58beeab74d7", "score": "0.5435898", "text": "int updateByPrimaryKeySelective(Poll record);", "title": "" }, { "docid": "88e93b2e7eb6a0d23cce07785d3834ef", "score": "0.5430502", "text": "@Override\n public Person updatePerson(Person person) {\n\n \tSystem.out.println(\"--------\"+person);\n Person existing = Person.getPersonById(person.getIdPerson());\n Person newPerson = Person.getPersonById(person.getIdPerson());\n\n if (existing == null) {\n return null;\n } else {\n newPerson.setIdPerson(person.getIdPerson());\n \n if (person.getName() == null){\n \tnewPerson.setName(existing.getName());\n }\n else if (!(person.getName().equals(existing.getName()))){\n \tnewPerson.setName(person.getName());\n }\n else{\n \tnewPerson.setName(existing.getName());\n }\n \n if (person.getBirthdate() == null){\n \tnewPerson.setBirthdate(existing.getBirthdate());\n }\n else if (!(person.getBirthdate().equals(existing.getBirthdate()))){\n \tnewPerson.setBirthdate(person.getBirthdate());\n }\n else{\n \tnewPerson.setBirthdate(existing.getBirthdate());\n }\n \n if (person.getLastname() == null){\n \tnewPerson.setLastname(existing.getLastname());\n }\n else if (!(person.getLastname().equals(existing.getLastname()))){\n \tnewPerson.setLastname(person.getLastname());\n }\n else{\n \tnewPerson.setLastname(existing.getLastname());\n }\n \n if (person.getEmail() == null){\n \tnewPerson.setEmail(existing.getEmail());\n }\n else if (!(person.getEmail().equals(existing.getEmail()))){\n \tnewPerson.setEmail(person.getEmail());\n }\n else{\n \tnewPerson.setEmail(existing.getEmail());\n }\n \n if (person.getUsername() == null){\n \tnewPerson.setUsername(existing.getUsername());\n }\n else if (!(person.getUsername().equals(existing.getUsername()))){\n \tnewPerson.setUsername(person.getUsername());\n }\n else{\n \tnewPerson.setUsername(existing.getUsername());\n }\n \n Person.updatePerson(newPerson);\n }\n\n return Person.updatePerson(newPerson);\n }", "title": "" }, { "docid": "b5414b93a9ff0c185184a8d075d90815", "score": "0.5429777", "text": "int updateByPrimaryKeySelective(PatientBaseInfo record);", "title": "" }, { "docid": "1160cfa162677c67d0c41431cd3882fc", "score": "0.54260355", "text": "abstract protected void executeUpdateQuery(T entity) throws ValidatorException;", "title": "" }, { "docid": "e3231a771b180a02a2ddd3938dc3be8f", "score": "0.5425651", "text": "public String handleCarUpdate(JsonBody jsonBody, long id) {\n\n carRepository.findById(id).map(\n car -> {\n Car jsonCar = jsonBody.getCar();\n\n if (jsonCar.getLicensePlate() != null) car.setLicensePlate(jsonCar.getLicensePlate());\n\n if (jsonCar.getConvertible() != null) car.setConvertible(jsonCar.getConvertible());\n\n if (jsonCar.getRating() != null) car.setRating(jsonCar.getRating());\n\n if (jsonCar.getRating() != null) car.setRating(jsonCar.getRating());\n\n if (jsonCar.getEngineType() != null) car.setEngineType(jsonCar.getEngineType());\n\n if (jsonCar.getManufacturer() != null) car.setManufacturer(jsonCar.getManufacturer());\n\n return carRepository.save(car);\n }\n );\n\n return \"Car Successfully updated \";\n }", "title": "" }, { "docid": "9ecc67f88c1edf8cdd80281fe08c16e8", "score": "0.54244936", "text": "public void doUpdate()throws Exception{\n if(!gui2Record())return;\r\n Object objBuyer=slkBuyer.getSelectedValue();\r\n Object objMaker=slkMaker.getSelectedValue();\r\n Object objCnty=cbxCountry.getSelectedItem();\r\n StringBuffer sb=new StringBuffer();\r\n sb.append(\" select count(*) from offshore_rule where BUYER_ID=\");\r\n sb.append(objBuyer);sb.append(\" and Maker_ID=\");sb.append(objMaker);\r\n sb.append(\" and COUNTRY='\");sb.append(util.MiscFunc.Replace(objCnty.toString(),\"'\",\"''\"));\r\n sb.append(\"' \");\r\n boolean isNew=true;\r\n if(recToMapping.getInt(\"record_delete_flag\")!=-1){\r\n sb.append(\" and RULE_SEQ <> \");sb.append(recToMapping.get(\"RULE_SEQ\"));\r\n isNew=false;\r\n }\r\n java.util.Vector vctChk=exgui2.CONST.BASIC_MAIN_EJB.getDatas(\r\n util.PublicVariable.USER_RECORD,sb.toString(),1,9999);\r\n Record rec2test=(Record)vctChk.get(0);\r\n if(rec2test.getInt(0)>0){\r\n exgui.verification.VerifyLib.showAlert(\"RULE Already Exists\",\"Rule Already Exists\");\r\n return;\r\n }\r\n handleRec();\r\n if(!isNew) pnl2Reload.reload();\r\n thisObj.dispose();\r\n }", "title": "" }, { "docid": "50faab0e4da5365edd426967dd94cbc0", "score": "0.5423531", "text": "public boolean update(){\r\n\t\t\tif(id == 0)\r\n\t\t\t\treturn true;\r\n\t\t\ttry {\r\n\t\t\t\tDatabase db = Database.getInstance();\r\n\t\t\t\tdb.connect();\r\n\t\t\t\tdb.query(\"UPDATE users SET first_name = ?, second_name = ?, id_function = ?, id_address = ?, email = ?, phonenumber = ?, password = ? WHERE id = ?\");\r\n\t\t\t\tdb.prepare(first_name, second_name, function.data.id, address.data.id, email, phonenumber, password, id);\r\n\t\t\t\tif(db.execute()){\r\n\t\t\t\t\t//db.close();\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\t//db.close();\r\n\t\t\t} catch(DatabaseException dbe){\r\n\t\t\t\tSystem.out.println(\"Warning: Unable to update user instance.\");\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "title": "" }, { "docid": "d2adbec0cba83c0e5f4ad496117fba24", "score": "0.54205745", "text": "int updateByPrimaryKeySelective(IrUiViewCustomEntity record);", "title": "" }, { "docid": "443e43ddac975ca0c95d8ca88c3840b9", "score": "0.5420073", "text": "int updateByPrimaryKey(ResourcePOJO record);", "title": "" } ]
d114a8e5ebe91f0989e4ee733ca97b32
Can share space with a single robot.
[ { "docid": "6b08a20a79c023d8a03ba4b568617e7b", "score": "0.73743653", "text": "@Override\r\n\tpublic boolean shareSpace(Entity other) {\n\t\treturn other instanceof Robot;\r\n\t}", "title": "" } ]
[ { "docid": "79c783dc94fe6b394352059cc35f7d3e", "score": "0.6190087", "text": "void setSharing(Sharing sharing);", "title": "" }, { "docid": "151153b403ebb42e9b03f71483c56391", "score": "0.600575", "text": "public abstract void shareMaster();", "title": "" }, { "docid": "5eb2cfc28d0017ba63c1857d31222096", "score": "0.59254104", "text": "public boolean isSharingToolsAmongViews();", "title": "" }, { "docid": "ca4ece6eb1dfac19f57bcc0887f3ee03", "score": "0.5884432", "text": "@Override\n\tpublic boolean isCanCreateSharedFolder();", "title": "" }, { "docid": "a9aaf36725244bf9b91569c8eb94fefc", "score": "0.56249064", "text": "boolean hasSharedBy();", "title": "" }, { "docid": "ddfdd2ad08299e45b5b1b17e65991eb0", "score": "0.5624701", "text": "public void setSharing(int sharing) {\n\t\tcheckRange(sharing, 1, Integer.MAX_VALUE);\n\t\tthis.sharing = sharing;\n\t}", "title": "" }, { "docid": "b339a5264f047cab4fe625ed37aca247", "score": "0.56103635", "text": "@Test\n\tpublic void testHasShare(){\n\t\tassertFalse(client.hasShare(company));\n\t\tclient.initialShare(500, company);\n\t\tassertTrue(client.hasShare(company));\n\t}", "title": "" }, { "docid": "1a8b0fc7f26beac267bf9db4adbd52c9", "score": "0.55959815", "text": "public boolean canAccess(String player, String world, String node);", "title": "" }, { "docid": "4f0c942bb4b844a460e03a26cb2f2e9c", "score": "0.54915047", "text": "@Override\n\tpublic boolean isShared() {\n\t\treturn model.isShared();\n\t}", "title": "" }, { "docid": "8900c96f0ec402296364367bad4fdfc1", "score": "0.54899406", "text": "boolean addShare(String s){\n // Controlla se gia condiviso con l'utente s\n if( sharedWith.indexOf(s) != -1)\n return false;\n // Aggiunge condivisore\n sharedWith.add(s);\n return true;\n }", "title": "" }, { "docid": "cae07a7a11e2e3381ce79a14b8ae4879", "score": "0.54326385", "text": "public void setShareScope(String scope);", "title": "" }, { "docid": "4a8dccb5f64904e848019dae895da777", "score": "0.54044855", "text": "boolean isSetShare();", "title": "" }, { "docid": "57c874b03926cff8d77d84e9e74368c1", "score": "0.5396545", "text": "String share(String user, int kind);", "title": "" }, { "docid": "10b77006748de1a3d2e9e5c62e1e1ff0", "score": "0.53958774", "text": "boolean hasSharedSlot();", "title": "" }, { "docid": "98fed7e9e483c0bdbb41d29b21af3589", "score": "0.53307027", "text": "int getSharedBy();", "title": "" }, { "docid": "ceb432ea5645065d47f51917dc37c4ac", "score": "0.5268877", "text": "public int sharing() {\n\t\treturn sharing;\n\t}", "title": "" }, { "docid": "a3fae380db0e39272318f69ef7cf800e", "score": "0.52462244", "text": "@Override\n\t\tpublic boolean setupServer(KeyShares share) {\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "fa3c5eb2d5160aa348310a3f647c482e", "score": "0.524109", "text": "String share(String user);", "title": "" }, { "docid": "958caa5d1e0147904cc274df0acb6ca0", "score": "0.5233765", "text": "public interface ISharedController {\r\n void add(Shared shared);\r\n\r\n void setList(final OnMapListener listener, boolean isConnect);\r\n\r\n void addLocal(Shared shared);\r\n\r\n void removeLocal(Shared shared);\r\n\r\n List<SharedPoint> getSharedList();\r\n\r\n SharedPoint findSharedByIndex(String index);\r\n\r\n void cleanDatabase(OnMapListener listener);\r\n\r\n void existsWithImage(final Shared shared, final OnSharedListener listener);\r\n\r\n void send(SecurityMessage message);\r\n\r\n void send(SafetyMessage message);\r\n\r\n void cleanEventListener();\r\n\r\n void setSharedList(List<SharedPoint> sharedList);\r\n\r\n List<String> findSharedsByKey(String[] keys);\r\n}", "title": "" }, { "docid": "39c28722492a8cbe60c4a1ba68c6a7ed", "score": "0.5230614", "text": "boolean isNilShare();", "title": "" }, { "docid": "18428ae0644750db1bfee89e1aa5f66a", "score": "0.52244383", "text": "OperationStatusResponse share(String imageName, String permission) throws InterruptedException, ExecutionException, ServiceException, IOException;", "title": "" }, { "docid": "68838cfe12d537f501bb3db0791ced1f", "score": "0.52108574", "text": "public String getShareScope();", "title": "" }, { "docid": "bf65586d8415c20651144e8b63314ac0", "score": "0.5151857", "text": "public interface IShareable {\n\n /**\n * 分享调用用口函数\n *\n * @param params\n */\n void share(ShareParams params);\n\n /**\n * 分享平台执行分享过程\n */\n void doShare();\n\n <T> T getShareParams();\n\n void setShareActionListener(ShareActionListener listener);\n\n void setPlatform(IPlatform platform);\n\n}", "title": "" }, { "docid": "31a6a74af30f56ee2516ce8fa5c422a7", "score": "0.51448774", "text": "public final boolean isShared() {\n return shared;\n }", "title": "" }, { "docid": "bd6d655d746287a201413a9c18744b7d", "score": "0.5134033", "text": "boolean hasSharedUrl();", "title": "" }, { "docid": "182534fda8e630c8e6c93c4d20027831", "score": "0.5115167", "text": "public void setGHI_Share_With(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localGHI_Share_WithTracker = true;\n } else {\n localGHI_Share_WithTracker = false;\n \n }\n \n this.localGHI_Share_With=param;\n \n\n }", "title": "" }, { "docid": "182534fda8e630c8e6c93c4d20027831", "score": "0.5115167", "text": "public void setGHI_Share_With(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localGHI_Share_WithTracker = true;\n } else {\n localGHI_Share_WithTracker = false;\n \n }\n \n this.localGHI_Share_With=param;\n \n\n }", "title": "" }, { "docid": "215de7547ab02bff6c34001094e46f24", "score": "0.5107768", "text": "public void share() throws ContextException, RemoteException;", "title": "" }, { "docid": "56e78d12246a234ffa47ba3261a488d4", "score": "0.5078218", "text": "public boolean sharesLocksWith( Locker other){\n if (super.sharesLocksWith(other)) {\n return true;\n }\n else if (other instanceof ThreadLocker) {\n return thread == ((ThreadLocker)other).thread;\n }\n else {\n return false;\n }\n }", "title": "" }, { "docid": "6b5890269932606d9889296b6c3a5eca", "score": "0.50736034", "text": "void setShare(com.microsoft.schemas.xrm._2011.metadata.CascadeType.Enum share);", "title": "" }, { "docid": "791f7ab9df4214f2f30888481cb5ab34", "score": "0.5069812", "text": "static boolean isMutter() {\n/* 596 */ return (isNetWMName(\"Mutter\") || isNetWMName(\"GNOME Shell\"));\n/* */ }", "title": "" }, { "docid": "50d14fab2eb599e9a5200431fc4acf69", "score": "0.50680494", "text": "public boolean anyCanDo(List<Robot> lsRobot) {\n\t\tfor (Robot rob : lsRobot) {\n\t\t\tif (rob.getAvailableAtacks() != null\n\t\t\t\t\t|| rob.getAvailableMove() != null) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "49e197aa1cbda61be58666c628cfe350", "score": "0.5051186", "text": "@Test\n\tpublic void testInitialShare() {\n\t\tassertFalse(client.hasShare(company)); \n\t\tclient.initialShare(1, company);\n\t\tassertTrue(client.hasShare(company));\n\t}", "title": "" }, { "docid": "02f0756307f8e76d18f7fc267e27428f", "score": "0.5035533", "text": "public boolean isShowShareOption() {\n/* 112 */ return this.showShareOption;\n/* */ }", "title": "" }, { "docid": "6fdcbfaad1dac655da9ec64d7210943b", "score": "0.5026979", "text": "public final boolean mo95718e() {\n if (C38037a.m121403a() || TextUtils.equals(this.f99179e, \"fromWeb\")) {\n return this.f99176b.getAwemeControl().canShare();\n }\n return false;\n }", "title": "" }, { "docid": "f3d48b50f86d74cea76c5868c0dda0a9", "score": "0.5014377", "text": "boolean canLinkTo(World world, BlockPos pos, EnumFacing facing, boolean checkDuplicates);", "title": "" }, { "docid": "b9eb95fe9a69d18601e8feb628cebb1f", "score": "0.50087154", "text": "public static boolean wglShareLists(long arg0, long arg1) {\n\n final long __addr_ = wglProcAddressTable._addressof_wglShareLists;\n if (__addr_ == 0) {\n throw new GLException(String.format(\"Method \\\"%s\\\" not available\", \"wglShareLists\"));\n }\n return dispatch_wglShareLists0(arg0, arg1, __addr_);\n }", "title": "" }, { "docid": "00a66aac99d94ba5dbf637ca1959ed8d", "score": "0.5003469", "text": "Future<OperationResponse> beginSharingAsync(String imageName, String permission);", "title": "" }, { "docid": "bde9f8f52a0e58969b1fdf0580c1ff22", "score": "0.5002442", "text": "@Test\n public void testIsAllowed() throws MalformedURLException {\n RobotsTxt robots = new RobotsTxt(\"test\");\n\n // Test that empty robots.txt allows all\n assertThat(robots.isAllowed(\"googlebot-news\", new URL(\"http://example.com/page\")).getIsAllowed()).isTrue();\n\n RobotsTxt.DirectiveGroup directiveGroup;\n directiveGroup = new RobotsTxt.DirectiveGroup();\n directiveGroup.userAgents.add(\"googlebot-news\");\n directiveGroup.addDirective(new RobotsTxt.Directive(RobotsTxt.DirectiveType.ALLOW, \"/p\"));\n directiveGroup.addDirective(new RobotsTxt.Directive(RobotsTxt.DirectiveType.DISALLOW, \"/\"));\n robots.directives.add(directiveGroup);\n assertThat(robots.isAllowed(\"googlebot-news\", new URL(\"http://example.com/page\")).getIsAllowed()).isTrue();\n\n directiveGroup = new RobotsTxt.DirectiveGroup();\n directiveGroup.userAgents.add(\"googlebot\");\n directiveGroup.addDirective(new RobotsTxt.Directive(RobotsTxt.DirectiveType.ALLOW, \"/folder/\"));\n directiveGroup.addDirective(new RobotsTxt.Directive(RobotsTxt.DirectiveType.DISALLOW, \"/folder\"));\n robots.directives.add(directiveGroup);\n assertThat(robots.isAllowed(\"Googlebot/2.1 (+http://www.google.com/bot.html)\",\n new URL(\"http://example.com/folder/page\")).getIsAllowed()).isTrue();\n assertThat(robots.isAllowed(\"googlebot-news\", new URL(\"http://example.com/folder/page\")).getIsAllowed())\n .isFalse();\n assertThat(robots.isAllowed(\"googlebo\", new URL(\"http://example.com/folder/page\")).getIsAllowed())\n .isTrue();\n assertThat(robots.isAllowed(\"foo\", new URL(\"http://example.com/folder/page\")).getIsAllowed())\n .isTrue();\n\n directiveGroup = new RobotsTxt.DirectiveGroup();\n directiveGroup.userAgents.add(\"*\");\n directiveGroup.addDirective(new RobotsTxt.Directive(RobotsTxt.DirectiveType.ALLOW, \"/page\"));\n directiveGroup.addDirective(new RobotsTxt.Directive(RobotsTxt.DirectiveType.DISALLOW, \"/*.htm\"));\n robots.directives.add(directiveGroup);\n assertThat(robots.isAllowed(\"foo\", new URL(\"http://example.com/folder/page\")).getIsAllowed())\n .isTrue();\n }", "title": "" }, { "docid": "cbadc35d09e5498d5e4dc60186a55858", "score": "0.49886304", "text": "public boolean isShared() {\n return getSharedByMessage() != null;\n }", "title": "" }, { "docid": "329f91d14590191c154965ac12dc876b", "score": "0.49883223", "text": "public interface ShareAction {\n boolean share(ShareObject shareObject);\n}", "title": "" }, { "docid": "46a42857c900e2c188942467e1cf85e8", "score": "0.49834338", "text": "public boolean isShareSuper() {\r\n return shareSuper;\r\n }", "title": "" }, { "docid": "1084780853b6ffad8cbc796170bc9123", "score": "0.4965771", "text": "public SharingPolicy( ) {\n\t}", "title": "" }, { "docid": "35ac36f437092a0cad2a33a4dd4a7992", "score": "0.4959243", "text": "public void setShared(boolean shared) {\n this.isShared = shared;\n }", "title": "" }, { "docid": "703f5b0c34b4ed36d052795d4f7b64d3", "score": "0.49546453", "text": "@Test\n\tpublic void testShareSize(){\n\t\tassertNotEquals(500,client.shareSize(company),0.01);\n\t\tclient.initialShare(500, company);\n\t\tassertEquals(500,client.shareSize(company),0.01);\n\t}", "title": "" }, { "docid": "ce4ade88b67295eada29f4b13e2318a3", "score": "0.49426216", "text": "public void setSpaces(Space spaceOne, Space spaceTwo) {\r\n //identifies the two spaces with the door\r\n // this method should also call the addDoor method from Space\r\n this.connected = new ArrayList<Space>();\r\n this.connected.add(spaceOne);\r\n this.connected.add(spaceTwo);\r\n }", "title": "" }, { "docid": "e8142420628675f056619aec315a58bc", "score": "0.4940539", "text": "boolean isManageable();", "title": "" }, { "docid": "9f60c517ac520155e13856f76f671b91", "score": "0.49380594", "text": "com.microsoft.schemas.xrm._2011.metadata.CascadeType.Enum getShare();", "title": "" }, { "docid": "8905659d8c243f5ff1a2cdb2814085d7", "score": "0.49358323", "text": "public void share(ShareObj ... shareObjs) {\n for (ShareObj shareObj : shareObjs) {\n shareObj.mobwrite = this;\n this.shared.put(shareObj.file, shareObj);\n this.logger.log(Level.INFO, \"Sharing shareObj: \\\"\" + shareObj.file + \"\\\"\");\n }\n\n if (this.syncThread == null || !this.syncThread.isAlive()) {\n this.syncThread = new SyncThread(this);\n try {\n this.syncThread.start();\n } catch (IllegalThreadStateException e) {\n // Thread already started.\n }\n }\n }", "title": "" }, { "docid": "c8277fef44b3f07ef80f95dd88d3f15a", "score": "0.49137557", "text": "public void clickOnSharedVideoTab()\n\t{\n\t\tString locator = vidoeLocator.getLocator(\"VideoHeader.Sharedvideo\");\n\t\tclickOn(locator);\n\t}", "title": "" }, { "docid": "de02609ec254cbb0693a4462698b17a2", "score": "0.4912877", "text": "private void getCursorSharing() {\n try {\n String cursorId = \"databaseParameter.sql\";\n\n /* array to hold parameters */\n Parameters myPars = new Parameters();\n myPars.addParameter(\"String\",\"cursor_sharing\");\n\n QueryResult myResult = ExecuteDisplay.execute(cursorId,myPars,false,false,null);\n String[][] resultSet = myResult.getResultSetAsStringArray();\n\n if (!resultSet[0][1].toLowerCase().equals(\"exact\")) cursorSharingExact = false;\n }\n catch (Exception e) {\n displayError(e);\n }\n }", "title": "" }, { "docid": "f893f249bb310e085506894baffe54de", "score": "0.49121058", "text": "private void share_puzzle() {\n }", "title": "" }, { "docid": "e0d4b69081941f5288328188e073fd43", "score": "0.49035007", "text": "private boolean canSwim() {\n for (Item item : storage.questItems)\n if (item instanceof SwimGear)\n return true;\n return false;\n }", "title": "" }, { "docid": "ed3cdedb71d21b1f5051a43570052fb5", "score": "0.48974633", "text": "@Override\n\tpublic boolean getShareTag() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "661538e3f3ed45ca3259897b9488fffe", "score": "0.489076", "text": "private void checkSharedCtxAllowed(ResourceRequestUser rUser, String tag, TransferTaskRequestElement e)\n throws ForbiddenException\n {\n // If nothing to check or sharedCtxGrantor not set for src or dest then we are done.\n if (e == null) return;\n String srcGrantor = e.getSrcSharedCtx();\n String dstGrantor = e.getDestSharedCtx();\n\n // Grantor not null indicates attempt to share.\n boolean srcShared = !StringUtils.isBlank(srcGrantor);\n boolean dstShared = !StringUtils.isBlank(dstGrantor);\n\n // If no sharing we are done\n if (!srcShared && !dstShared) return;\n\n String srcSysId = e.getSourceURI().getSystemId();\n String srcPath = e.getSourceURI().getPath();\n String dstSysId = e.getDestinationURI().getSystemId();\n String dstPath = e.getDestinationURI().getPath();\n\n // If a service request the username will be the service name. E.g. files, jobs, streams, etc\n boolean allowed = (rUser.isServiceRequest() && SVCLIST_SHAREDCTX.contains(rUser.getJwtUserId()));\n if (allowed)\n {\n // Src and/or Dest shared, log it\n if (srcShared) log.trace(LibUtils.getMsgAuthR(\"FILES_AUTH_SHAREDCTX_SRC_TXFR\", rUser, tag, srcSysId, srcPath, srcGrantor));\n if (dstShared) log.trace(LibUtils.getMsgAuthR(\"FILES_AUTH_SHAREDCTX_DST_TXFR\", rUser, tag, dstSysId, dstPath, dstGrantor));\n }\n else\n {\n // Sharing not allowed. Log systems and paths involved\n String msg = LibUtils.getMsgAuthR(\"FILES_UNAUTH_SHAREDCTX_TXFR\", rUser, tag, srcSysId, srcPath, dstSysId,\n srcGrantor, dstPath, dstGrantor);\n log.warn(msg);\n throw new ForbiddenException(msg);\n }\n }", "title": "" }, { "docid": "853ed704f13c94f4049f69de142a7c4f", "score": "0.4887721", "text": "private void setSharedMenusForNetworkStatus() {\n\n\n\t\t//this.fileNewAction.setEnabled(!App.isLoggedIn());\n\t\tthis.remarkAction.setEnabled(App.isLoggedIn());\n\t\t// TODO Add others\n\n\t\tsetMenusForNetworkStatus();\n\t}", "title": "" }, { "docid": "3e31effb7020f3cfa291569d5b5e8590", "score": "0.48821065", "text": "boolean hasIsMineCarDrive();", "title": "" }, { "docid": "e75b65aa8ca3112773cda6b9f7059bd4", "score": "0.48787457", "text": "public boolean getShareTag()\n {\n return true;\n }", "title": "" }, { "docid": "bed9c92344649c5e6b95913a419995bc", "score": "0.48782283", "text": "Future<OperationStatusResponse> shareAsync(String imageName, String permission);", "title": "" }, { "docid": "ab58582b38e016465829878052c74882", "score": "0.4871645", "text": "default boolean canSpawn(Location loc) {\n return true;\n }", "title": "" }, { "docid": "bf87f1cda6ef82426be36343b0413ecf", "score": "0.48708588", "text": "public boolean isSharedTextFieldDisplayed()\n\t{\n\t\tboolean result;\n\t\tString locator= vidoeLocator.getLocator(\"IndividualVideoDetails.ShareUser\");\n\t\tresult = isElementDisplayed(locator);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "42d1001cc0c8319e4dabf4e199635a10", "score": "0.48702735", "text": "public static boolean isShareType(String type)\n {\n if (type != null && (type.contains(\"ONLINE\") || type.contains(\"PHONE\")))\n {\n return true;\n }\n return false;\n // switch (type)\n // {\n // case MEDIA_ONLINE_MOVIE:\n // case MEDIA_ONLINE_MUSIC:\n // case MEDIA_ONLINE_PICTURE:\n // case MEDIA_ONLINE_NEWS:\n // case MEDIA_ONLINE_WEBSITE:\n // case MEDIA_FM_MUSIC:\n // case MEDIA_QIYI_VIDEO:\n // case MEDIA_WEBVIEW:\n // return true;\n // default:\n // break;\n // }\n }", "title": "" }, { "docid": "45ec8097eeda4f625a61a37ab2c38afb", "score": "0.48668975", "text": "OperationResponse beginSharing(String imageName, String permission) throws IOException, ServiceException;", "title": "" }, { "docid": "6322b09f6f39ca6a6db17a694b0dcfe5", "score": "0.48633814", "text": "@Test\n public void testShareVC_byMember () throws\n ProcessingException, KustvaktException {\n Response response = target().path(API_VERSION).path(\"vc\")\n .path(\"~nemo\").path(\"nemo-vc\").path(\"share\").path(\"@marlin-group\")\n .request()\n .header(Attributes.AUTHORIZATION, HttpAuthorizationHandler\n .createBasicAuthorizationHeaderValue(\"nemo\", \"pass\"))\n .post(Entity.form(new Form()));\n\n testResponseUnauthorized(response, \"nemo\");\n }", "title": "" }, { "docid": "2c1dd0db895c525a1e152abf7d4e22e9", "score": "0.48606834", "text": "private void robotTurn() {\n\t\twhile (true) {\n\t\t\tPoint robotPoint = robot.putToken(makeSet(Const.ROBOT),\n\t\t\t\t\tmakeSet(Const.OPPOENT),\n\t\t\t\t\tarena.width,\n\t\t\t\t\tarena.height);\n\t\t\tSystem.out.println(\"Robot put \" + robotPoint);\n\t\t\ttry {\n\t\t\t\tarena.addPoint(robotPoint, Const.ROBOT);\n\t\t\t\tbreak;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6e64e34a4f713a8ed20024e03394817e", "score": "0.48593992", "text": "private Boolean checkRobots(String url) {\n\t\ttry{\n\t\t\tURL curURL=new URL(url);\n\t\t\tString host=curURL.getHost(); // get the host of url\n\t\t\tArrayList<String> disallowArr =robotsMap.get(host); // list of disallow for the certain host\n\t\t\tif (disallowArr==null){ // if we can't find the list of disallow for that host\n\t\t\t\tdisallowArr=new ArrayList<String>(); // create a new list\n\n\t\t\t\tString robotLink=\"http://\"+host+\"/robots.txt\";\n\t\t\t\tURL robotURL=new URL(robotLink); // url for robots.txt\n\t\t\t\ttry {\n\t\t\t\t\t// try to connect to robots.txt and read\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(robotURL.openStream()));\n\t\t\t\t\tString s;\n\t\t\t\t\twhile ((s = in.readLine()) != null) { // read robots.txt line by line\n\t\t\t\t\t\tString dis=\"Disallow: \";\n\t\t\t\t\t\tif (s.indexOf(dis)==0) { // find \"Disallow: \"\n\t\t\t\t\t\t\tString disallowPath=s.substring(dis.length()); // get the path after \"Disallow\"\n\t\t\t\t\t\t\tdisallowArr.add(disallowPath); // add the path to disallow list\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\trobotsMap.put(host, disallowArr); // map the host with disallow list\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\treturn true; // return true when we can't find robots.txt\n\t\t\t\t}\n\t\t\t}\n\t\t\t// check if the url is allowed to visit by comparing with the path in disallow list\n\t\t\tString path=curURL.getPath(); // get the path of url\n\t\t\tfor (int i=0;i<disallowArr.size(); i++) { // for each disallow path in disallow list\n\t\t\t\tif (path.indexOf(disallowArr.get(i))==0) { // if match \n\t\t\t\t\treturn false; \n\t\t\t\t}\n\t\t\t}\n\t\t\t// otherwise\n\t\t\treturn true;\n\t\t} catch (MalformedURLException e1) {\n\t\t\te1.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "beef5d537b25f6ae12410c5d4a6ebefb", "score": "0.48540005", "text": "private void shareMovie() {\n if (!trailerList.isEmpty()){\n Intent i = new Intent(Intent.ACTION_SEND);\n String firstTrailer = \"https://www.youtube.com/watch?v=\" + trailerList.get(0).getKey();\n i.putExtra(Intent.EXTRA_TEXT, getString(R.string.movie_sharing) + \" \" + firstTrailer);\n i.setType(\"text/plain\");\n if (i.resolveActivity(getPackageManager()) != null) {\n startActivity(Intent.createChooser(i, getString(R.string.share_using)));\n }\n }else{\n Toast.makeText(this, R.string.try_again_share, Toast.LENGTH_SHORT).show();\n }\n\n }", "title": "" }, { "docid": "b3b5ad38faf9f26a98c9ab3004338a16", "score": "0.48527768", "text": "boolean isExclusiveOwner();", "title": "" }, { "docid": "5361e10e2a7940f4c64e68ee5d7b4d2a", "score": "0.4852111", "text": "public boolean canUse() { return true; }", "title": "" }, { "docid": "3beae3c8bf1c30a9b7908efe0b04ddab", "score": "0.485121", "text": "public synchronized void enableLootshare(Account account) {\n\t\tif (getRank(account) < lootShareReq) {\n\t\t\tLoginServerChannelManager.sendReliablePacket(account.getWorld(), LoginChannelsPacketEncoder.encodePlayerVarUpdate(account.getUsername(), LoginProtocol.VAR_TYPE_LOOTSHARE, 0).getBuffer());\n\t\t\tLoginServerChannelManager.sendUnreliablePacket(account.getWorld(), LoginChannelsPacketEncoder.encodePlayerFriendsChatSystemMessage(account.getUsername(), \"You do not have a enough rank to use lootshare on this friends chat channel.\").getBuffer());\n\t\t\treturn;\n\t\t}\n\n\t\tif (account.isLobby() || (account.getWorld().getInformation().getFlags() & 0x8) == 0) {\n\t\t\tLoginServerChannelManager.sendReliablePacket(account.getWorld(), LoginChannelsPacketEncoder.encodePlayerVarUpdate(account.getUsername(), LoginProtocol.VAR_TYPE_LOOTSHARE, 0).getBuffer());\n\t\t\tLoginServerChannelManager.sendUnreliablePacket(account.getWorld(), LoginChannelsPacketEncoder.encodePlayerFriendsChatSystemMessage(account.getUsername(), \"LootShare is disabled on this world.\").getBuffer());\n\t\t\treturn;\n\t\t}\n\n\t\tLoginServerChannelManager.sendReliablePacket(account.getWorld(), LoginChannelsPacketEncoder.encodePlayerVarUpdate(account.getUsername(), LoginProtocol.VAR_TYPE_LOOTSHARE, 1).getBuffer());\n\t}", "title": "" }, { "docid": "eba5580bd8a46061a2d311c380c729e9", "score": "0.4847899", "text": "@Test\n\tpublic void testNewShare() {\n\t\tclient.initialShare(1, company);\n\t\tclient.newShare(1, company);\n\t\tassertEquals(2, client.shareSize(company),0.01);\n\t}", "title": "" }, { "docid": "93f97aad2c5ac109823c4d8bcd0ff414", "score": "0.48466665", "text": "private void openShare() {\n\t\tUri uri = Uri.parse(\"smsto:\");\n\t\tIntent myShareIntent = new Intent(Intent.ACTION_SENDTO, uri);\n\t\tmyShareIntent.putExtra(\"sms_body\", share_text);\n\t\tstartActivity(myShareIntent);\n\t}", "title": "" }, { "docid": "feedce8fb1c2ca9be08925afeb3a29f4", "score": "0.48454285", "text": "public void setShareSuper(boolean shareSuper) {\r\n this.shareSuper = shareSuper;\r\n }", "title": "" }, { "docid": "0cf4e42fd0eff9b27f82e55719f0cb96", "score": "0.48427045", "text": "boolean isLuShared(String luName) {\n IntegerNmsResponse response;\n try {\n response = (IntegerNmsResponse) client.execute(IntegerNmsResponse.class, \"scsidisk\", \"lu_shared\", luName);\n } catch (CloudRuntimeException ex) {\n if (ex.getMessage().contains(\"does not exist\")) {\n return false;\n }\n throw ex;\n }\n return response != null && response.getResult() > 0;\n }", "title": "" }, { "docid": "d6cd1bfaba02ed613a45acba9659549a", "score": "0.48390728", "text": "@Test\n public void testShareVC_notOwner () throws\n ProcessingException, KustvaktException {\n Response response = target().path(API_VERSION).path(\"vc\")\n .path(\"~marlin\").path(\"marlin-vc\").path(\"share\")\n .path(\"@marlin group\")\n .request()\n .header(Attributes.AUTHORIZATION, HttpAuthorizationHandler\n .createBasicAuthorizationHeaderValue(\"dory\", \"pass\"))\n .post(Entity.form(new Form()));\n\n testResponseUnauthorized(response, \"dory\");\n }", "title": "" }, { "docid": "2de7bcff8c05ebab0c2be96f1c8aa25e", "score": "0.48316312", "text": "public void startSharedWs(View view) {\n Intent intent = new Intent(this, SharedWorkspaces.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "60ab7d3f204cb3f687714acd08a789c0", "score": "0.48312235", "text": "@Override\n\tpublic boolean isCanCreatePersonalAgent();", "title": "" }, { "docid": "ab58e29ea59a1bd9cbe4655586dda6b5", "score": "0.48253506", "text": "void xsetShare(com.microsoft.schemas.xrm._2011.metadata.CascadeType share);", "title": "" }, { "docid": "7b61f78048521142f0820cf218017277", "score": "0.4824984", "text": "public boolean isShow() {\n \t\tif (isMyWorkspace()) {\n \t\t\treturn privacyManager.isViewable(curSite, getUserId());\n \t\t} \n \t\telse {\n \t\t\treturn privacyManager.isViewable(getSiteId(), getUserId());\n \t\t}\n \t}", "title": "" }, { "docid": "83cc65b5cf54aece67af5db4abdc6d19", "score": "0.4824446", "text": "boolean isOwner(TeamSpace teamSpace);", "title": "" }, { "docid": "4114cd7a7818817aec31a4ee8cb17cb7", "score": "0.48206568", "text": "@Test\n public void testTwoBridgeServersInOneVMDoShareCMR() throws Exception {\n // slow start for dispatcher\n serverVM0.invoke(() -> ConflationDistributedTestHelper.setIsSlowStart(\"30000\"));\n\n Integer port3 = serverVM0\n .invoke(() -> HARQueueNewImplDistributedTest.createOneMoreBridgeServer(Boolean.TRUE));\n\n createClientCache(getServerHostName(), PORT1, port3, \"0\");\n final String client1Host = getServerHostName();\n clientVM1.invoke(() -> HARQueueNewImplDistributedTest.createClientCache(client1Host,\n PORT1, PORT2, \"1\"));\n final String client2Host = getServerHostName();\n clientVM2.invoke(() -> HARQueueNewImplDistributedTest.createClientCache(client2Host,\n PORT1, PORT2, \"1\"));\n\n registerInterestListAll();\n clientVM1.invoke(HARQueueNewImplDistributedTest::registerInterestList);\n clientVM2.invoke(HARQueueNewImplDistributedTest::registerInterestList);\n\n serverVM0.invoke((SerializableRunnableIF) HARQueueNewImplDistributedTest::createEntries);\n\n serverVM0.invoke(() -> HARQueueNewImplDistributedTest.verifyRegionSize(5, 5));\n serverVM0.invoke(\n () -> HARQueueNewImplDistributedTest.verifyRegionSize(5, 5));\n }", "title": "" }, { "docid": "92b6cafbd1eb617979dbd918d91295b1", "score": "0.48202282", "text": "protected boolean hasAccessPermission(Space space) throws Exception {\n return spaceService.hasAccessPermission(space, getUserId());\n }", "title": "" }, { "docid": "c4f55cbc7f3c92b857b36cf6ce5f9a22", "score": "0.48149166", "text": "FolderAutoShareInfo(){}", "title": "" }, { "docid": "e9d5d5d650097ce06a350a4beaf0d8fc", "score": "0.4810769", "text": "public abstract boolean canHaveAsWorld(World world);", "title": "" }, { "docid": "b495cc34c2b2e2f567329001eff833c3", "score": "0.47959128", "text": "void setZoneShared(boolean shared) {\n sharedZone = shared;\n }", "title": "" }, { "docid": "b4ab2a5434705eb81ec5f1cb312f8acc", "score": "0.47906202", "text": "protected boolean share(JSONArray args, CallbackContext callbackContext)\n throws JSONException {\n if (args.length() != 1) {\n callbackContext.error(ERROR_ARGUMENTS);\n }\n \n final JSONObject params = args.getJSONObject(0);\n final SendMessageToWX.Req req = new SendMessageToWX.Req();\n req.transaction = String.valueOf(System.currentTimeMillis());\n \n if (params.has(KEY_ARG_SCENE)) {\n req.scene = params.getInt(KEY_ARG_SCENE);\n } else {\n req.scene = SendMessageToWX.Req.WXSceneTimeline;\n }\n \n // run in background\n cordova.getThreadPool().execute(new Runnable() {\n @Override\n public void run() {\n try {\n req.message = buildSharingMessage(params.getJSONObject(KEY_ARG_MESSAGE));\n } catch (JSONException e) {\n e.printStackTrace();\n currentCallbackContext.error(e.getMessage());\n }\n Boolean sended = api.sendReq(req);\n if (sended) {\n currentCallbackContext.success();\n } else {\n currentCallbackContext.error(\"发送失败\");\n }\n }\n });\n return true;\n }", "title": "" }, { "docid": "b7261c56423de82d483c4bb0ebbefe6e", "score": "0.47892714", "text": "@Test(dependsOnMethods = \"shouldCreateShare\")\n public void shouldFindBestShare() throws Exception {\n Share newShare = service.createShare(new RootContext(), \"/alice/allergies/pollen\", PAT)\n .getOrThrow();\n try {\n Request request = new Request();\n request.setUri(\"http://localhost/alice/allergies/pollen\");\n Share share = service.findShare(request);\n assertThat(share.getResourceSetId()).isEqualTo(\"157bc0e4-3d6c-4e3e-ab0a-11370372d37f\");\n } finally {\n service.removeShare(newShare.getId());\n }\n }", "title": "" }, { "docid": "6268cd0f3945457f21b2719b10abdd28", "score": "0.47788638", "text": "@ZAttr(id=1351)\n public boolean isPublicSharingEnabled() {\n return getBooleanAttr(Provisioning.A_zimbraPublicSharingEnabled, false);\n }", "title": "" }, { "docid": "1231fdc8ee6fbe1bb7cffca1068365a2", "score": "0.47773382", "text": "com.microsoft.schemas.xrm._2011.metadata.CascadeType xgetShare();", "title": "" }, { "docid": "36039d5a694ef7309440a939a50ccaeb", "score": "0.47766617", "text": "@Test\n\tpublic final void testSetRobotControl() {\n\t\ttestLocation1.addThing(computer1);\n\t\tRobot robot = new Robot(robotID, robotPurpose, testLocation1);\n\t\t\n\t\tcomputer1.setRobotControl(robot);\n\t\tassertEquals(\"Connect computer to robot\", \n\t\t\t\tcomputer1.robotControlled(), robot);\n\t\tassertEquals(\"Connect robot to computer\", \n\t\t\t\trobot.robotController(), computer1);\t\t\n\t\t\n\t}", "title": "" }, { "docid": "adcbb2a35658c7be8e1a96e5f8eb565f", "score": "0.4772552", "text": "public static List<VwSpaceModel> searchForCurrentUserWithShared() {\n final UserModel currentUser = BaseAdminController.getConnectedUser();\n return find(\n \" SELECT vwSpace \"\n + \" FROM VwSpaceModel vwSpace \"\n + \" WHERE vwSpace.userShared.id = ?1 \"\n + \" ORDER BY vwSpace.name\",\n currentUser.getId()).fetch();\n }", "title": "" }, { "docid": "6e8e104d42c9af2cf7264b3fdd29b512", "score": "0.4770951", "text": "private void synAction() {\n\t\tAdminMgr.synTopoInfo();\n\t}", "title": "" }, { "docid": "5d8abd25dc47a79bdca9b9394dcef3da", "score": "0.4741341", "text": "private void showShare() {\n OnekeyShare oks = new OnekeyShare();\n //关闭sso授权\n oks.disableSSOWhenAuthorize();\n\n // title标题,印象笔记、邮箱、信息、微信、人人网和QQ空间使用\n oks.setTitle(\"分享此App\");\n // titleUrl是标题的网络链接,仅在人人网和QQ空间使用\n oks.setTitleUrl(\"https://github.com/Alan-CQU/DailyNews\");\n // text是分享文本,所有平台都需要这个字段\n oks.setText(\"DailyNews\");\n // imagePath是图片的本地路径,Linked-In以外的平台都支持此参数\n //oks.setImagePath(\"/sdcard/test.jpg\");//确保SDcard下面存在此张图片\n // url仅在微信(包括好友和朋友圈)中使用\n oks.setUrl(\"https://github.com/Alan-CQU/DailyNews\");\n\n\n // comment是我对这条分享的评论,仅在人人网和QQ空间使用\n //oks.setComment(\"我是测试评论文本\");\n // site是分享此内容的网站名称,仅在QQ空间使用\n oks.setSite(getString(R.string.app_name));\n // siteUrl是分享此内容的网站地址,仅在QQ空间使用\n oks.setSiteUrl(\"http://sharesdk.cn\");\n\n // 启动分享GUI\n oks.show(this);\n }", "title": "" }, { "docid": "5cb9d7e06fd383e481d23ccd0c2d5cf6", "score": "0.4732745", "text": "public int getSharedBy() {\n return sharedBy_;\n }", "title": "" }, { "docid": "0eceef6012999851d30e4d81b48a7544", "score": "0.47219792", "text": "public boolean isDocSharingPageDisplayed() throws Exception {\n try {\n logInstruction(\"LOG INSTRUCTION: Checking whether DocSharing page or not.\");\n frameSwitch.switchToFrameContent();\n flag = lblTitle.isDisplayedAfterWaiting(waitTime);\n return flag;\n } catch (Exception e) {\n throw new Exception(\"This is not a doc sharing page. \" + e.getLocalizedMessage());\n }\n }", "title": "" }, { "docid": "d01b5e54989e4590dbd0077daf85ba63", "score": "0.47153506", "text": "int getSharedSlot();", "title": "" }, { "docid": "e6503bd286acd030afc9c49e87cff3b5", "score": "0.4705799", "text": "String getShared();", "title": "" }, { "docid": "7c3b34562fe6e6b2e1a450c1e25f7fe0", "score": "0.4703168", "text": "protected abstract boolean isCommandAllowed();", "title": "" }, { "docid": "97c0ded415a23ef9b26c8022b51e6114", "score": "0.47006124", "text": "public static boolean handleItemShare(Item drop, McMMOPlayer mcMMOPlayer) {\n ItemStack itemStack = drop.getItemStack();\n ItemShareType dropType = ItemShareType.getShareType(itemStack);\n\n if (dropType == null) {\n return false;\n }\n\n Party party = mcMMOPlayer.getParty();\n\n if (!party.sharingDrops(dropType)) {\n return false;\n }\n\n ShareMode shareMode = party.getItemShareMode();\n\n if (shareMode == ShareMode.NONE) {\n return false;\n }\n\n List<Player> nearMembers = PartyManager.getNearMembers(mcMMOPlayer);\n\n if (nearMembers.isEmpty()) {\n return false;\n }\n\n Player winningPlayer = null;\n ItemStack newStack = itemStack.clone();\n\n nearMembers.add(mcMMOPlayer.getPlayer());\n int partySize = nearMembers.size();\n\n drop.remove();\n newStack.setAmount(1);\n\n switch (shareMode) {\n case EQUAL:\n int itemWeight = ItemWeightConfig.getInstance().getItemWeight(itemStack.getType());\n\n for (int i = 0; i < itemStack.getAmount(); i++) {\n int highestRoll = 0;\n\n for (Player member : nearMembers) {\n McMMOPlayer mcMMOMember = UserManager.getPlayer(member);\n int itemShareModifier = mcMMOMember.getItemShareModifier();\n int diceRoll = Misc.getRandom().nextInt(itemShareModifier);\n\n if (diceRoll <= highestRoll) {\n mcMMOMember.setItemShareModifier(itemShareModifier + itemWeight);\n continue;\n }\n\n highestRoll = diceRoll;\n\n if (winningPlayer != null) {\n McMMOPlayer mcMMOWinning = UserManager.getPlayer(winningPlayer);\n mcMMOWinning.setItemShareModifier(mcMMOWinning.getItemShareModifier() + itemWeight);\n }\n\n winningPlayer = member;\n }\n\n McMMOPlayer mcMMOTarget = UserManager.getPlayer(winningPlayer);\n mcMMOTarget.setItemShareModifier(mcMMOTarget.getItemShareModifier() - itemWeight);\n awardDrop(winningPlayer, newStack);\n }\n\n return true;\n\n case RANDOM:\n for (int i = 0; i < itemStack.getAmount(); i++) {\n winningPlayer = nearMembers.get(Misc.getRandom().nextInt(partySize));\n awardDrop(winningPlayer, newStack);\n }\n\n return true;\n\n default:\n return false;\n }\n }", "title": "" }, { "docid": "efd9776b8437fed43924eb1c9a451512", "score": "0.4697829", "text": "boolean canSee(Player target) {\n int i;\n if (this.position.getRoom() == target.position.getRoom())\n return true;\n for (i = 0; i < this.position.getDoors().size(); i++) {\n if (this.position.getDoors().get(i).getRoom() == target.position.getRoom())\n return true;\n }\n return false;\n }", "title": "" } ]
42d55b7426e3597b81deb3733ff7e488
Deletes all the bulk processes associated to a report
[ { "docid": "de331f446528836319c70d0a4a924556", "score": "0.697211", "text": "public void deleteBulkByReport(ReportDefinition reportDefinition){\n //VIZIX-641, fix delete bulk registries\n\n\n\n BooleanBuilder be = new BooleanBuilder();\n be = be.and(QBackgroundProcessEntity.backgroundProcessEntity.moduleName.eq(\"reports\"));\n be = be.and(QBackgroundProcessEntity.backgroundProcessEntity.columnValue.eq(reportDefinition.getId().toString()));\n List<BackgroundProcessEntity> reportBulkProcessList = BackgroundProcessEntityService.getInstance()\n .listPaginated(be, null, null);\n deleteReportBulkProcessList(reportBulkProcessList);\n }", "title": "" } ]
[ { "docid": "237ad36b7af8866966e5cf946dce29cf", "score": "0.7703884", "text": "private void deleteReportBulkProcessList(List<BackgroundProcessEntity> reportBulkProcessList){\n for(BackgroundProcessEntity backgroundProcess : reportBulkProcessList){\n BooleanBuilder beEntity = new BooleanBuilder();\n beEntity = beEntity.and(QBackgroundProcessEntity.backgroundProcessEntity.backgroundProcess.id.\n eq(backgroundProcess.getBackgroundProcess().getId())).and(QBackgroundProcessEntity.backgroundProcessEntity.moduleName.eq(\"reports\"));\n List<BackgroundProcessEntity> backgroundProcessEntityList = BackgroundProcessEntityService.getInstance().listPaginated(beEntity,null,null);\n for ( BackgroundProcessEntity backgroundProcessEntity:backgroundProcessEntityList) {\n BackgroundProcessEntityService.getInstance().delete(backgroundProcessEntity);\n }\n BooleanBuilder be = new BooleanBuilder();\n be = be.and(QBackgroundProcessDetail.backgroundProcessDetail.backgroundProcess.id\n .eq(backgroundProcess.getBackgroundProcess().getId()));\n List<BackgroundProcessDetail> reportBulkProcessDetailsList = BackgroundProcessDetailService.getInstance()\n .listPaginated(be, null, null);\n for(BackgroundProcessDetail rbpd : reportBulkProcessDetailsList){\n be = new BooleanBuilder();\n be = be.and(QBackgroundProcessDetailLog.backgroundProcessDetailLog.backgroundProcessDetail.id\n .eq(rbpd.getId()));\n List<BackgroundProcessDetailLog> reportBulkProcessDetailLogs = BackgroundProcessDetailLogService.getInstance()\n .listPaginated(be, null, null);\n for(BackgroundProcessDetailLog rbpdl : reportBulkProcessDetailLogs){\n BackgroundProcessDetailLogService.getInstance().delete(rbpdl);\n }\n BackgroundProcessDetailService.getInstance().delete(rbpd);\n }\n BackgroundProcessService.getInstance().delete(backgroundProcess.getBackgroundProcess());\n }\n }", "title": "" }, { "docid": "9a4421306e78af58510a4cd6d7fb5a9b", "score": "0.65367293", "text": "public void findPendingDeleteBulkAndExecute(){\n logger.info(\"Looking for pending delete Bulk Process\");\n Session session = HibernateSessionFactory.getInstance().getCurrentSession();\n Transaction transaction = session.getTransaction();\n try {\n transaction.begin();\n BooleanBuilder be = new BooleanBuilder();\n be = be.and(QBackgroundProcess.backgroundProcess.typeProcess.eq(Constants.DELETE_PROCESS));\n be = be.and(QBackgroundProcess.backgroundProcess.status.ne(Constants.COMPLETED));\n List<BackgroundProcess> reportBulkProcessList = BackgroundProcessService.getInstance()\n .listPaginated(be, null, null);\n BackgroundProcess pendingDeleteBulk = (reportBulkProcessList.size() > 0)? reportBulkProcessList.get(0) : null;\n if(pendingDeleteBulk != null){\n logger.warn(\"Pending delete Bulk Process found, starting it\");\n ReportAppService.instance().startPendingDeleteJob(pendingDeleteBulk);\n }\n } catch (Exception ex) {\n logger.error(ex.getMessage(), ex);\n HibernateDAOUtils.rollback(transaction);\n } finally {\n transaction.commit();\n }\n }", "title": "" }, { "docid": "8d951a1b5e4dc3998941f19eca84aa8b", "score": "0.61799145", "text": "@Override\n\tpublic void deleteProcessFiles(int process_num) {\n\t\tgetSqlSession().delete(\"deleteProcessFiles\",process_num);\n\t}", "title": "" }, { "docid": "a28d12370685af74e77f84c100dfc0e1", "score": "0.59748065", "text": "public void cancelBulkProcess(Long bulkProcessId){\n BooleanBuilder b = new BooleanBuilder();\n b= b.and(QBackgroundProcess.backgroundProcess.id.eq(bulkProcessId));\n List<BackgroundProcess> lstReportBulkProcess = BackgroundProcessService.getInstance().listPaginated(b, null, null);\n int count = 0 ;\n if(lstReportBulkProcess != null ){\n for(BackgroundProcess reportBulkProcess : lstReportBulkProcess) {\n BooleanBuilder bb = new BooleanBuilder();\n bb.and(QBackgroundProcessDetail.backgroundProcessDetail.backgroundProcess.eq(reportBulkProcess));\n List<BackgroundProcessDetail> lstReportBulkDetail = BackgroundProcessDetailService.getInstance().listPaginated(bb, null, null);\n if((lstReportBulkDetail!=null) && (!lstReportBulkDetail.isEmpty())){\n for(BackgroundProcessDetail reportBulkDetail : lstReportBulkDetail) {\n reportBulkDetail.setStatus(Constants.CANCELED);\n BackgroundProcessDetailService.getInstance().update(reportBulkDetail);\n }\n }\n reportBulkProcess.setChecked(true);\n reportBulkProcess.setStatus(Constants.CANCELED);\n BackgroundProcessService.getInstance().update(reportBulkProcess);\n count++;\n logger.info(\"Bulk Process :\" + reportBulkProcess.getId()+\" has been canceled.\");\n }\n } else {\n logger.warn(\"There is not any BUl Process to cancel.\");\n }\n }", "title": "" }, { "docid": "0e3d59f44538b04db947fd0876f90727", "score": "0.59640056", "text": "@Override\r\n\tpublic void deleteAllInBatch() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8e4431ecfca3875cab27644398e1356e", "score": "0.59573126", "text": "@Override\n\t\t\tpublic void deleteAllInBatch() {\n\n\t\t\t}", "title": "" }, { "docid": "d33230f78f0852e7dba9cdcbe7830882", "score": "0.5905664", "text": "@Override\r\n\tpublic void batchDelete(List<Long> ids) throws Exception {\n\r\n\t\tfor(long id:ids){\r\n\t\t\tsurveyMapper.deleteByPrimaryKey(id);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bd2d783a6af75df413dc7cd96664c1a7", "score": "0.5826625", "text": "@Override\n\tpublic void deleteAllInBatch() {\n\t\t\n\t}", "title": "" }, { "docid": "4fbda17624c5419c0889fb5846a56fb6", "score": "0.5616919", "text": "@Override\n\tpublic void deleteProcess(int process_num) {\n\t\tgetSqlSession().delete(\"deleteProcess\",process_num);\n\t}", "title": "" }, { "docid": "3200a512bf3cbf107ed35b6f0f517f8a", "score": "0.56155175", "text": "protected void cleanup()\n {\n this.logger.debug(\"Cleaning a batch control invocation.\");\n try\n {\n if (this.batchStdErr != null) \n {\n this.getBatchStandardError();\n this.batchStdErr.close();\n this.batchStdErr = null;\n }\n if (this.batchStdOut != null)\n {\n this.getAllStandardOut();\n this.batchStdOut.close();\n this.batchStdOut = null;\n }\n \n final IConfig conf = ConfigFactory.getInstance();\n if (Boolean.parseBoolean(conf.getProperty(\"Batch_Clean_Up\", \"false\")) \n && !this.workingDir.equals(this.workingDirBase))\n {\n this.recusiveDelete(new File(this.workingDir));\n }\n \n /* Delete instruction file. */\n final File file = new File(this.fileName);\n if (Boolean.parseBoolean(conf.getProperty(\"Batch_Instruct_File_Delete\", \"true\")) && file.isFile()\n && !file.delete())\n {\n this.logger.warn(\"Failed to delete file \" + file.getAbsolutePath());\n }\n }\n catch (IOException ex)\n {\n this.logger.warn(\"Failed to clean a batch control invocation because of error \" + ex.getMessage());\n }\n \n }", "title": "" }, { "docid": "4404c0b69e93a4a9c6335933dcb18414", "score": "0.55958056", "text": "@Override\r\n\tpublic boolean batchDeleteReportBean(String sql) {\n\t\treturn DBUtil.execute(sql)>0;\r\n\t}", "title": "" }, { "docid": "b016e2a788cee9ff847e86fe8e16a8a5", "score": "0.5578485", "text": "void deleteAllTasks();", "title": "" }, { "docid": "7fcb8da989051d78be26d6c8ab82048c", "score": "0.5578437", "text": "public void deleteAll();", "title": "" }, { "docid": "7fcb8da989051d78be26d6c8ab82048c", "score": "0.5578437", "text": "public void deleteAll();", "title": "" }, { "docid": "7fcb8da989051d78be26d6c8ab82048c", "score": "0.5578437", "text": "public void deleteAll();", "title": "" }, { "docid": "dd0c24f5768c79f30408098041825018", "score": "0.55748236", "text": "public void destroyAllModules() {\n visitRepository.deleteAll();\n employeeRepository.deleteAll();\n dictionaryRepository.deleteAll();\n medicalEmployeeRepository.deleteAll();\n }", "title": "" }, { "docid": "e575708a8a1e2a4cf88a801652b33e1d", "score": "0.5572069", "text": "public void deleteAllRecords() {\n deleteAllRecordsFromProvider();\n }", "title": "" }, { "docid": "e3267134aad26a915d2ef6e5f0574747", "score": "0.5561826", "text": "BusinessProcess delete(String schemaId);", "title": "" }, { "docid": "9013d9d675693c3194478f2d31ebf975", "score": "0.5514079", "text": "@Override\n\tpublic void delBatch(String[] ids) {\n\t\t\n\t}", "title": "" }, { "docid": "4b1d8e1720e04068eb45c34224bc8712", "score": "0.5509427", "text": "@RequestMapping(value = WFLOW_NAME_URL + \"/processInstances\", method = DELETE)\n @ResponseBody\n public ResponseEntity<Void> deleteProcessInstances(\n \t\t\t@PathVariable(WFLOW_NAME) String wflowName) {\n \t\n \tif (!processExists(wflowName)) {\n \t\treturn notFound();\n \t}\n \tprocessInstanceService.deleteProcessInstancesByKey(wflowName);\n \treturn noContent();\n }", "title": "" }, { "docid": "ae1737fd2f43ab385202d3e4d02e6b23", "score": "0.5491991", "text": "public void stopAll() {\n\n for (final ManagedProcess process : myProcesses) {\n process.close();\n }\n\n if (myWorkingDirectory != null) {\n delete(myWorkingDirectory);\n\n // Delete any strangler directories.\n final File parent = myWorkingDirectory.getParentFile();\n for (final File child : parent\n .listFiles(new TestDirectoryFilenameFilter())) {\n delete(child);\n }\n }\n\n myWorkingDirectory = null;\n }", "title": "" }, { "docid": "b23ad881c1b676e6384b083a4b1d14e7", "score": "0.5474478", "text": "public void deleteAll() {\n\t\t\n\t}", "title": "" }, { "docid": "b23ad881c1b676e6384b083a4b1d14e7", "score": "0.5474478", "text": "public void deleteAll() {\n\t\t\n\t}", "title": "" }, { "docid": "25ceafe3a0a1447ae170692d8b00ed63", "score": "0.5440357", "text": "public String batchdelete() throws Exception {\r\n\t\t\r\n\t\t//List videoList = VideoService.findVideoByKeywordIntervenId(getKeywordIntervenId());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor(int deleteId : getBatchdeleteids()) {\r\n\t\t\tlog.debug(\"#########delete id is: \" + deleteId);\r\n\t\t\t\r\n\t\t\tShieldChannel shieldChannel = ShieldChannelPeer.retrieveByPK(deleteId);\r\n\t\t\tShieldChannelPeer.doDelete(shieldChannel);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}", "title": "" }, { "docid": "cebab5c85c2ade67943c7b8e243ba13c", "score": "0.5430727", "text": "@Delete(\"json\")\n public void bulkDelete() {\n \t\n \tString[] run_ids = getRequest().getAttributes().get(\"list\").toString().split(\",\");\n \n for (String r : run_ids) {\n System.out.println(\"To delete :\"+r);\n Filter propertyFilter=\n \t PropertyFilter.eq(\"id\", Integer.parseInt(r));\n Query<Entity> query;\n query = Query.newEntityQueryBuilder()\n \t .setKind(\"record\")\n \t .setFilter(propertyFilter).build();\n QueryResults<Entity> results = datastore.run(query);\n List<Entity> listEntities = new ArrayList<>();\n results.forEachRemaining(entity -> listEntities.add(entity));\n List<Key> listKeys = new ArrayList<>();\n for(Entity e : listEntities){\n \tlistKeys.add(e.getKey());\n }\n Key [] keys_tab = batch(Key.class, listKeys);\n //par defaut, on peut pas supprimer plus de 500 entites a la fois,\n //donc, on splitte en petits tableau de max 500 et on envoie des requetes delete de max 500\n if(keys_tab.length > 500) {\n \t\n\t\t\t\tfor (int i = 0; i < keys_tab.length - 500 + 1; i += 500) {\n\t\t\t\t\tKey [] keys_tab_splitted = Arrays.copyOfRange(keys_tab, i, i + 500);\n\t\t\t\t\tdatastore.delete(keys_tab_splitted);\n\t\t\t\t}\n \tif (keys_tab.length % 500 != 0) {\n \t\tKey [] keys_tab_splitted = Arrays.copyOfRange(keys_tab, keys_tab.length - keys_tab.length % 500, keys_tab.length);\n \t\tdatastore.delete(keys_tab_splitted);\n \t}\n }else {\n \tdatastore.delete(keys_tab);\n }\n \n }\n \n \n }", "title": "" }, { "docid": "57dfd1dca6f094b3d45e06b8170e3350", "score": "0.5423206", "text": "@Override\n\t\t\tpublic void deleteAll() {\n\n\t\t\t}", "title": "" }, { "docid": "06317ac5fc7f385fbcd3a0c1e770f9ae", "score": "0.5420865", "text": "public void deleteAll() {\n\t\tthis.promoEventRepo.deleteAll();\n\t\tthis.bookingRepo.deleteAll();\n\t\tthis.offeringRepo.deleteAll();\n\t\tthis.tourRepo.deleteAll();\n\t\tthis.tourGuideRepo.deleteAll();\n\t\tthis.nonFAQQueryRepo.deleteAll();\n\t\tthis.customerRepo.deleteAll();\n\t\tthis.promoEventRepo.deleteAll();\n\n\t\tlog.info(\"successfully cleared all repos\");\n\t\t// this.loginUserRepo.deleteAll();\n\t}", "title": "" }, { "docid": "3b2e57ff7bb78b3275c34bca9869db4d", "score": "0.5420551", "text": "void deleteAll();", "title": "" }, { "docid": "3b2e57ff7bb78b3275c34bca9869db4d", "score": "0.5420551", "text": "void deleteAll();", "title": "" }, { "docid": "3b2e57ff7bb78b3275c34bca9869db4d", "score": "0.5420551", "text": "void deleteAll();", "title": "" }, { "docid": "3b2e57ff7bb78b3275c34bca9869db4d", "score": "0.5420551", "text": "void deleteAll();", "title": "" }, { "docid": "72231d7ef96e972207db1a55c53986fe", "score": "0.54105526", "text": "@Override\n\tpublic int deleteBatch(List<? extends Number> ids) throws Exception {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "72231d7ef96e972207db1a55c53986fe", "score": "0.54105526", "text": "@Override\n\tpublic int deleteBatch(List<? extends Number> ids) throws Exception {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "7f4060152e58dc800867ef063101f429", "score": "0.5376434", "text": "@Transactional\n\tpublic void cleanup() {\n\t\tfor (AgentInfo each : agentManagerRepository.findAll()) {\n\t\t\tif (!each.getState().isActive()) {\n\t\t\t\tagentManagerRepository.delete(each);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "29dbc8bcaec6910a4bafad1d0cec19bd", "score": "0.5370412", "text": "@SuppressWarnings(\"unchecked\")\n private void deleteDisseminationJobs()\n\t{\n\t\tList<DisseminationJob> finalDissJobs = new ArrayList<DisseminationJob>();\n\n\t\tQuery jobQuery = entityManager.createQuery(\"SELECT dj FROM DisseminationJob dj WHERE dj.finalState = '\" + SUCCESS_DISS_STATE + \"' OR dj.finalState = '\" + FAILURE_DISS_STATE + \"'\");\n\n\t\tfinalDissJobs = jobQuery.getResultList();\n\n\t\tfor (DisseminationJob dissJob : finalDissJobs)\n\t\t{\n\t\t\tif (LOG.isInfoEnabled()) {\n\t\t\t\tLOG.info(\"Deleting finished dissemination job: {}\", dissJob.getId());\n\t\t\t}\n\n\t\t\tentityManager.remove(dissJob);\n\t\t}\n\n\t}", "title": "" }, { "docid": "50394351708c0455050a50a3efe8f7a4", "score": "0.5360141", "text": "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "title": "" }, { "docid": "50394351708c0455050a50a3efe8f7a4", "score": "0.5360141", "text": "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "title": "" }, { "docid": "930c28cf5a8266c57ede7f1a602c7997", "score": "0.53533757", "text": "private void clearTargetProcesses() {\n this.targetProcesses_ = GeneratedMessageLite.emptyProtobufList();\n }", "title": "" }, { "docid": "ad79548324a95610febb58dcbaf66ebe", "score": "0.5333536", "text": "public void deleteAllTerminalData();", "title": "" }, { "docid": "f17d2d711778db775dce00cb5a29527e", "score": "0.5320733", "text": "private void deletePendingReport(int reportId) {\n \t\tAddReportModel model = new AddReportModel();\n \t\tUploadPhotoAdapter pendingPhoto = new UploadPhotoAdapter(getActivity());\n \t\tif (reportId > 0) {\n \t\t\tif (model.deleteReport(reportId)) {\n \t\t\t\t// delete images\n \t\t\t\tfor (int i = 0; i < pendingPhoto.getCount(); i++) {\n \t\t\t\t\tImageManager.deletePendingPhoto(getActivity(), \"/\"\n \t\t\t\t\t\t\t+ pendingPhoto.getItem(i).getPhoto());\n \t\t\t\t}\n \t\t\t\t// return to report listing page.\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "02b022787d77220d8e24115b323ec1f7", "score": "0.5307029", "text": "public void deleteAll() {\n siteLogs.deleteAll();\n nodes.deleteAll();\n setups.deleteAll();\n sites.deleteAll();\n equipmentConfiguration.deleteAll();\n equipment.deleteAll();\n log.info(\"Deleted all data\");\n }", "title": "" }, { "docid": "a317ccac3eb604cdd2ea6f568c66d00f", "score": "0.52846694", "text": "@Override\n\tpublic void deleteAll() throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "3ff381ed8738d8c1304c194638aab611", "score": "0.5280416", "text": "@DeleteMapping(\"/processos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteProcesso(@PathVariable Long id) {\n log.debug(\"REST request to delete Processo : {}\", id);\n processoService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "title": "" }, { "docid": "47ebd153b79ed090f6cb2eee5c063ec7", "score": "0.52759105", "text": "public void PurgeIndexes()\r\n\t{\n\t\tPageManagerSingleton.getInstance().deleteIdxFiles();\r\n\t\t\r\n\t\t// Set to null everything\r\n\t\tLineItemDateIndex = null;\r\n\t\tLineItemOrderIndex = null;\r\n\t\tCustomerPKIndex = null;\r\n\t\tCustomerCountryCodeIndex = null;\r\n\t\tRegionNameIndex = null;\r\n\t\tNationFKIndex = null;\r\n\t\tNationPKIndex = null;\r\n\t\tNationNameIndex = null;\r\n\t\tSupplierFKIndex = null;\r\n\t\tSupplierPKIndex = null;\r\n\t\tPartSuppPartFKIndex = null;\r\n\t\tPartSuppSuppFKIndex = null;\r\n\t\tPartSizeIndex = null; \r\n\t\tPartPKIndex = null; \r\n\t\tOrderDateIndex = null;\r\n\t\tOrderPKIndex = null;\r\n\t}", "title": "" }, { "docid": "afcff3c83c4b7f12e7eeb0e2beb15c19", "score": "0.5271476", "text": "@Override\n protected void runUnsafe() throws IOException {\n Path reportDirectory = getReportDirectory();\n Files.walkFileTree(reportDirectory, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n Files.delete(file);\n getLogger().debug(Messages.COMMAND_REPORT_CLEAN_ITEM_DELETED, file);\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\n Files.delete(dir);\n getLogger().debug(Messages.COMMAND_REPORT_CLEAN_ITEM_DELETED, dir);\n return FileVisitResult.CONTINUE;\n }\n });\n\n getLogger().info(Messages.COMMAND_REPORT_CLEAN_REPORT_CLEANED, reportDirectory);\n }", "title": "" }, { "docid": "5ee202638e5e0826657e2d5651de3423", "score": "0.5271036", "text": "public void deleteAll() {\n\t\topen();\n\t\ttry\n\t\t{\n\t\t\t\tQuery query=DB.query();\n\t\t\t\tquery.constrain(Condorcet.class);\n\t\t\t\tObjectSet result = query.execute();\n\t\t\t\n\t\t\t\twhile(result.hasNext())\n\t\t\t\t{\n\t\t\t\t\tDB.delete(result.next());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"[DB4O]All Condorcet was deleted\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"[DB4O]ERROR:All Condorcet could not be deleted\");\n\t\t\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "658e6f868257faaac07cb2d3607b449e", "score": "0.5263707", "text": "public int deleteAll();", "title": "" }, { "docid": "f9d026a9a7c479a7fb541d53e5f9e5f6", "score": "0.5258625", "text": "int deleteByPrimaryKeyBulk(@Param(\"ids\") List<Long> ids);", "title": "" }, { "docid": "f1c9d13b4dbd1bf957e8688c5132c0af", "score": "0.52540505", "text": "@Override\r\n\tpublic void deleteAllProJobType(String[] arrayProJobType_IDS) throws Exception {\n\t\tdao.delete(\"PreJobMapper.deleteAllProJobType\", arrayProJobType_IDS);\r\n\t}", "title": "" }, { "docid": "953f103485281550296876e6603d02d3", "score": "0.5251675", "text": "@WorkerThread\n private static List<DocumentSnapshot> deleteQueryBatch(final Query query) throws Exception {\n QuerySnapshot querySnapshot = Tasks.await(query.get());\n\n WriteBatch batch = query.getFirestore().batch();\n for (DocumentSnapshot snapshot : querySnapshot) {\n batch.delete(snapshot.getReference());\n }\n Tasks.await(batch.commit());\n\n return querySnapshot.getDocuments();\n }", "title": "" }, { "docid": "1e84fe7dacfec02d84437b8ea78ece6b", "score": "0.52515125", "text": "public void deleteProcess(Long idBackend);", "title": "" }, { "docid": "11d10db5257b6350237902a2de6d1853", "score": "0.52427506", "text": "@After\n public void clearGeneratedFiles() throws IOException {\n for (File file : new File(reportsPath).listFiles()) {\n if (file.getAbsoluteFile().getName().startsWith(\"TEMPLATE_ERT\")) {\n Files.delete(file.toPath());\n }\n }\n Files.delete(sequenceFixedFilePath);\n }", "title": "" }, { "docid": "6c0dd717f728cb1af31f25bf9399af6f", "score": "0.52267194", "text": "@Override\n public void deleteAll() {\n\n }", "title": "" }, { "docid": "923e227ad1254e1491ea367ad4ca0c11", "score": "0.52210695", "text": "@Override\n\tpublic void deleteAll() {\n\t}", "title": "" }, { "docid": "3f6b6c3e036973c42c7d2aefb860772e", "score": "0.5201365", "text": "public void deleteDocumentPages(long[] pageIds) throws ServiceManagementException {\n\t\t\n\t\tfor(int i=0; i< pageIds.length; i++){\n\t\t\tdeleteDocumentPage(pageIds[i]);\n\t\t}\n\t}", "title": "" }, { "docid": "d5ab9daaeb6e0cd4b27166773ce7fde7", "score": "0.52011096", "text": "@Override\r\n\tpublic void deleteAll() {\n\r\n\t}", "title": "" }, { "docid": "3afc5d10e5001c00ebb8fc10c6bbdc7e", "score": "0.5196083", "text": "public void delete(Long id) {\n log.debug(\"Request to delete Report : {}\", id);\n List<Report> children = reportRepository.findAllChildReports(id);\n for(Report report: children){\n reportRepository.deleteById(report.getId());\n }\n reportRepository.deleteById(id);\n }", "title": "" }, { "docid": "69e84aea4aeefb9d289e497b1c3329e4", "score": "0.5193473", "text": "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "title": "" }, { "docid": "69e84aea4aeefb9d289e497b1c3329e4", "score": "0.5193473", "text": "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "title": "" }, { "docid": "69e84aea4aeefb9d289e497b1c3329e4", "score": "0.5193473", "text": "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "title": "" }, { "docid": "69e84aea4aeefb9d289e497b1c3329e4", "score": "0.5193473", "text": "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "title": "" }, { "docid": "c0042004a847c5c352cfeb4eddae2517", "score": "0.51918244", "text": "@Override\n\tpublic void deleteAll() {\n\n\t}", "title": "" }, { "docid": "504aed9253b4c47956206bee6d87cd52", "score": "0.5180663", "text": "public void deleteAll() {\n driver.get(manageUrl);\n wait.until(pageLoadedCondition());\n List<WebElement> streamToDelete = driver.findElements(By.name(\"steramToDelete\"));\n for (WebElement e : streamToDelete) {\n e.click();\n }\n driver.findElement(By.xpath(\"//*[@id=\\\"main_content\\\"]/div/div/div[1]/form/button\")).submit();\n wait.until(pageLoadedCondition());\n }", "title": "" }, { "docid": "5fb994728ab599d8d895e54848e73d25", "score": "0.5168546", "text": "@Override\n public void deleteAll() {\n \n }", "title": "" }, { "docid": "48b6334cf97ea35052c18c7f2ddfeb43", "score": "0.51657873", "text": "@Override\n\tpublic int deleteProcessByNo(String productNo) {\n\t\treturn session.delete(\"adminMapper.deleteProcess\", productNo);\n\t}", "title": "" }, { "docid": "c5cb9e2fd710d63d732fd414f5320f1a", "score": "0.5144035", "text": "private void doDeleteAll() {\n System.out.print(\"\\n[Performing DELETE ALL] ... \");\n try {\n Statement st = conn.createStatement();\n st.executeUpdate(\"TRUNCATE TABLE COFFEES\");\n } catch (SQLException ex) {\n System.err.println(ex.getMessage());\n }\n }", "title": "" }, { "docid": "2aa6f0155a26a300a3a291af898c3cb8", "score": "0.5130697", "text": "@Override\r\n\tpublic void workMultiDelete(Map<String, Object> params) {\n\t\tprojectDAO.workMultiDelete(params);\r\n\t}", "title": "" }, { "docid": "48883ba395d8830bebde6f1a949fe5b0", "score": "0.513039", "text": "void deleteAllTransactions();", "title": "" }, { "docid": "4850c553626bac0076ed43322e56b3e6", "score": "0.5128631", "text": "public void removeProcesses(int remove)\n {\n for(int i = 1; i <= remove; i++)\n {\n int numProcesses = processList.getNumProcesses();\n remove(lblProcesses.get(numProcesses - 1));\n remove(txtSizes.get(numProcesses - 1));\n remove(btnClear.get(numProcesses - 1));\n remove(btnRandom.get(numProcesses - 1));\n \n lblProcesses.remove(numProcesses - 1);\n txtSizes.remove(numProcesses - 1);\n btnClear.remove(numProcesses - 1);\n btnRandom.remove(numProcesses - 1);\n memoryPanel.getBlockList().removeBlockByAssociatedPID(numProcesses);\n processList.removeWaitingProcessByPID(numProcesses); //Need to remove waitingProcess first since it finds it by comparing itself to processes in processList.\n processList.removeLastProcess();\n }//end loop\n \n validateComponents();\n validateMemoryPanel();\n validateWaitingPanel();\n }", "title": "" }, { "docid": "9e1a8931311cb2621ea266409904a03f", "score": "0.51264983", "text": "void unsetBulkLocal();", "title": "" }, { "docid": "71186e6af60ae18c93229dc4e27a1fb3", "score": "0.51153445", "text": "void clearQueue(CoreSubsets monitorCoreSubsets)\n\t\t\tthrows IOException, ProcessException, InterruptedException {\n\t\tfor (var core : monitorCoreSubsets) {\n\t\t\tsendRequest(new ClearReinjectionQueue(core));\n\t\t}\n\t\tfinishBatch();\n\t}", "title": "" }, { "docid": "de1dbcc304b66ca3d47d257baa342d73", "score": "0.51144534", "text": "@Transactional\n public void delete(Iterable<Long> ids) {\n List<OrderDetail> toDelete = getOrderDetailRepository().findAll(ids);\n getOrderDetailRepository().deleteInBatch(toDelete);\n }", "title": "" }, { "docid": "1ca31332ed3316a808ccb5db35c3a853", "score": "0.5113639", "text": "private void deleteAll() {\n isbnService.deleteAllLookedUpIsbns();\n reloadIsbns();\n }", "title": "" }, { "docid": "338cdd7f561bd7c98bdec50a60ac526e", "score": "0.5110379", "text": "public int deleteByIndexPapersNum(java.util.Collection<String> indexs)throws RuntimeDaoException;", "title": "" }, { "docid": "01e4f967df6c1228150f03d4feba13bb", "score": "0.5110336", "text": "public void deleteProcessor(int serial_no) {\n\t\tjdbcTemplate.update(\"DELETE from processor WHERE id = ?\",serial_no); \r\n\t\tSystem.out.println(\"data Deleted!!\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5ed1b577bc29b9052988531cb319bb60", "score": "0.510308", "text": "@Override\n public void doIt() {\n for (VirtualHost virtualHost : MyOrg.getInstance().getVirtualHosts()) {\n VirtualHost.setVirtualHostForThread(virtualHost);\n Set<WorkflowProcess> processes =\n WorkflowSystem.getInstance() == null ? null : WorkflowSystem.getInstance().getProcesses();\n if (processes == null) {\n continue;\n }\n //let's process 1000 processes per thread\n ArrayList<WorkflowProcess> processesToProcess = new ArrayList<WorkflowProcess>();\n Iterator<WorkflowProcess> iterator = processes.iterator();\n do {\n totalProcesses++;\n processesToProcess.add(iterator.next());\n if (processesToProcess.size() >= 1000 || !iterator.hasNext()) {\n MigrateFiles migrateFiles = new MigrateFiles(processesToProcess);\n migrateFiles.start();\n try {\n migrateFiles.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n throw new Error(e);\n }\n processesToProcess = new ArrayList<WorkflowProcess>();\n }\n\n } while (iterator.hasNext());\n\n VirtualHost.releaseVirtualHostFromThread();\n\n }\n\n //so, now, let's delete all the groups, if possible\n\n out.println(\"Went through \" + totalProcesses + \" processes. Could not migrate (due to lack of repository): \"\n + totalProcessesUnableToBeMigrated);\n out.println(\"Went through \" + totalProcessFilesPassedThrough + \" files. Had already migrated \"\n + totalFilesAlreadyMigrated + \" total files migrated \" + totalFilesMigrated\n + \" total files unable to migrate due to exception\" + processFilesUnableToBeMigrated.size());\n\n out.println(\"Listing the exceptions that caused the processFiles not to be migrated \");\n for (Throwable ex : processFilesUnableToBeMigrated.values()) {\n out.println(ex.toString());\n }\n\n out.println(\"Number of files for which we could not find the user: \" + processFilesWithoutUser.size()\n + \" listing the classes\");\n Multiset<Class<? extends ProcessFile>> processFilesWithoutUserClasses = HashMultiset.create();\n for (ProcessFile processFileWithoutUser : processFilesWithoutUser) {\n processFilesWithoutUserClasses.add(processFileWithoutUser.getClass());\n }\n\n for (Entry<Class<? extends ProcessFile>> fileClassEntry : processFilesWithoutUserClasses.entrySet()) {\n Class<? extends ProcessFile> clazz = fileClassEntry.getElement();\n out.println(\"Class \" + clazz.getSimpleName() + \" nr: \" + processFilesWithoutUserClasses.count(clazz));\n }\n\n //\tout.println(\"Number of files for without creation date: \" + processFilesWithoutCreationDate.size()\n //\t\t+ \" listing the classes\");\n //\tMultiset<Class<? extends ProcessFile>> processFilesWithoutCreationDateClasses = HashMultiset.create();\n //\tfor (ProcessFile processFileWithoutCreationDate : processFilesWithoutCreationDate) {\n //\t processFilesWithoutCreationDateClasses.add(processFileWithoutCreationDate.getClass());\n //\t}\n\n for (Entry<Class<? extends ProcessFile>> fileClassEntry : processFilesWithoutUserClasses.entrySet()) {\n Class<? extends ProcessFile> clazz = fileClassEntry.getElement();\n out.println(\"Class \" + clazz.getSimpleName() + \" nr: \" + processFilesWithoutUserClasses.count(clazz));\n }\n\n out.println(\"Got \" + processFilesWithUserButNoPermission.size()\n + \" process files for whom we found a user, but they had no permission\");\n\n out.println(\"Found \" + foundUsers + \" users\");\n }", "title": "" }, { "docid": "1aef2f57722ac6bede1a31c45bfd4b3c", "score": "0.5101916", "text": "@Transactional(readOnly = false)\n\tpublic boolean batchDelete(List<Serializable> orderFormIds) {\n\t\tfor (Serializable id : orderFormIds) {\n\t\t\tdelete((Long) id);\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "b5c04da87f0f5171473e4d6d537d694c", "score": "0.50959134", "text": "private void cleanupSiteItems(Session session)\n {\n // Cleanup site items garbage from test runs\n Query q = session\n .createQuery(\"delete from PSSiteItem where referenceId > 9999\");\n q.executeUpdate();\n \n q = session.createQuery(\"delete from PSPubItem where referenceId > 9999\");\n q.executeUpdate();\n \n q = session.createQuery(\"delete from PSPubStatus where editionId = \"\n + TEST_EDITION);\n q.executeUpdate();\n }", "title": "" }, { "docid": "da477ee067d5eaf04cc8c195c8a7b46f", "score": "0.5095232", "text": "@Override\n\tpublic void deleteAll() {\t\t\n\t\tproductDao.deleteAll();\n\t}", "title": "" }, { "docid": "056a544558f696ee70123fbf040d793c", "score": "0.50937045", "text": "@SuppressWarnings(\"unchecked\")\n private void purgeStagingPost()\n\t{\n\t\tboolean isRunning = isPurgeStagingPostAlreadyRunning();\n\t\tif (isRunning) return;\n\n\t\ttry{\n\t\t\tsetPurgeStagingPostRunning(true);\n\n\t\t\t// Query for those entries that have reached the configured purging time\n\t\t\tlong purgeTime = stagingPostPurgingTime * 60 * 1000;\n\t\t\tint maxPurgedRequestsByCycle = 1000;\n\n\t\t\tDate compareDate = new Date(System.currentTimeMillis() - purgeTime);\n\t\t\t\n\t\t\t// Purge remaining processed requests (potentially processed request in error)\n\t\t\tQuery prQuery = entityManager.createQuery(\"SELECT pr FROM ProcessedRequest pr WHERE pr.creationDate < '\" + compareDate + \"'\");\n prQuery.setMaxResults(maxPurgedRequestsByCycle);\n\t\t\tList<ProcessedRequest> prEntries = prQuery.getResultList();\n for (ProcessedRequest pr : prEntries)\n {\n if (LOG.isInfoEnabled()) {\n LOG.info(\"Deleting processed request: {}\", pr.getId());\n }\n String fileUri = pr.getUri();\n \n if (fileUri != null) {\n try {\n LOG.info(\"Deleting staging post file: {}\", pr.getUri());\n\n File folder = new File(stagingPostDirectory, fileUri);\n\n String parent = folder.getParent();\n\n // Remove file from staging post\n FileUtils.deleteDirectory(folder);\n\n // ... and recursivly remove all empty parent folders up to the staging post folder\n GlobalDataCollectionUtils.recursivelyDeleteEmptyParentDirectoriesUpToRoot(parent,\n stagingPostDirectory);\n } catch (IOException ioe) {\n LOG.error(\"Cannot delete staging post file : \" + fileUri, ioe);\n }\n }\n\n processedRequestService.deleteProcessedRequestWithAdHoc(pr.getId());\n }\n\t\t}\n\t\tfinally {\n\t\t\tsetPurgeStagingPostRunning(false);\n\t\t}\n\t}", "title": "" }, { "docid": "0c4a8ba5ddd3d38345453073dba32a15", "score": "0.5089008", "text": "@Override\n public void delete() {\n List <PointPermit> pointPermitsForDel = pointPermitService.getAll();\n List <Action> actionsForDel = actionService.getAll();\n List <Absence> absencesForDel = absenceService.getAll();\n List <Edit> editsForDel = editService.getAll();\n\n for (PointPermit pp : pointPermitsForDel) {\n pointPermitService.delete(pp.getId());\n }\n\n for (Action act : actionsForDel) {\n actionService.delete(act.getId());\n }\n\n for (Absence abs : absencesForDel) {\n absenceService.delete(abs.getId());\n }\n\n for (Edit edit : editsForDel) {\n editService.delete(edit.getId());\n }\n\n super.delete();\n }", "title": "" }, { "docid": "a82d8f246671165a1d579868d3e227ce", "score": "0.5087518", "text": "public void teardown() throws InterruptedException, TimeoutException {\n WriteBatch batch = firestore.batch();\n\n for (TestCollection collection : initialData) {\n CollectionReference ref = firestore.document(testDocument).collection(collection.path());\n for (TestDocument document : collection.documents()) {\n DocumentReference docRef = ref.document(document.id());\n batch.delete(docRef);\n\n logger.info(\"Removing document: \" + docRef.getPath());\n }\n }\n\n waitForBatch(batch);\n }", "title": "" }, { "docid": "14fb8b0b82b59ce608b7ee41764fe7a1", "score": "0.5084278", "text": "protected void deletePrepareRequests() {\n // Don't want to know about the class prepare events.\n if (!prepareRequests.isEmpty()) {\n Iterator iter = prepareRequests.iterator();\n try {\n while (iter.hasNext()) {\n EventRequest er = (EventRequest) iter.next();\n VirtualMachine vm = er.virtualMachine();\n EventRequestManager erm = vm.eventRequestManager();\n erm.deleteEventRequest(er);\n }\n } catch (VMDisconnectedException vmde) {\n // this will happen all the time\n }\n prepareRequests.clear();\n }\n }", "title": "" }, { "docid": "97667ca3f0f43ab00eaf0aa7bda4ce65", "score": "0.5080434", "text": "@Override\r\n\tpublic boolean batchDeleteRepairBean(String sql) {\n\t\treturn DBUtil.execute(sql)>0;\r\n\t}", "title": "" }, { "docid": "a3fa68b0313057e3bae01f1f416107d1", "score": "0.5078855", "text": "@Transactional\r\n\tpublic int deleteGroupListSf(List<Object> objectList, String processId) {\r\n\t\tlogger.debug(\"--- Inicio -- delete Listado Grupos ---\");\r\n\t\tint processedRecords = 0;\r\n\t\tboolean processOk = false;\r\n\t\tString processErrorCause = null;\r\n\t\tHistoricBatchVO historicoDeleteRecord = null;\r\n\t\tGroupVO grupoToDelete = null;\r\n\t\t\r\n\t\t//Se crea la sesión y se inica la transaccion\r\n\t\tSession session = sessionFactory.openSession();\r\n\t\t\r\n\t\tfor (Object object : objectList) {\r\n\t\t\thistoricoDeleteRecord = new HistoricBatchVO();\r\n\t\t\thistoricoDeleteRecord.setStartDate(new Date());\r\n\t\t\thistoricoDeleteRecord.setOperation(ConstantesBatch.DELETE_RECORD);\r\n\t\t\thistoricoDeleteRecord.setObject(ConstantesBatch.OBJECT_GROUP);\r\n\t\t\thistoricoDeleteRecord.setProcessId(processId);\r\n\t\t\tgrupoToDelete = new GroupVO();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tgrupoToDelete = (GroupVO) object;\r\n\t\t\t\thistoricoDeleteRecord.setSfidRecord(grupoToDelete.getSfid());\r\n\t\t\t\tQuery sqlDeleteQuery = session.createQuery(\"DELETE GroupVO WHERE sfid = :sfidFiltro\");\r\n\t\t\t\t//Seteamos el campo por el que filtramos el borrado\t\t\t\r\n\t\t\t\tsqlDeleteQuery.setString(\"sfidFiltro\", grupoToDelete.getSfid());\t\t\t\t\r\n\t\t\t\t//Ejecutamos la actualizacion\t\t\t\t\r\n\t\t\t\tsqlDeleteQuery.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tlogger.debug(\"--- Fin -- deleteGrupo ---\" + grupoToDelete.getSfid());\r\n\t\t\t\tprocessOk = true;\r\n\t\t\t\tprocessedRecords++;\r\n\t\t\t} catch (HibernateException e) {\r\n\t\t\t\tlogger.error(\"--- Error en deleteGrupo: ---\" + grupoToDelete.getSfid(), e);\r\n\t\t\t\tprocessOk = false;\r\n\t\t\t\tprocessErrorCause = ConstantesBatch.ERROR_DELETE_RECORD;\r\n\t\t\t}\r\n\r\n\t\t\thistoricoDeleteRecord.setSuccess(processOk);\r\n\t\t\thistoricoDeleteRecord.setErrorCause(processErrorCause);\r\n\t\t\thistoricoDeleteRecord.setEndDate(new Date());\r\n\t\t\thistoricBatchDAO.insertHistoric(historicoDeleteRecord);\r\n\t\t}\r\n\t\tlogger.debug(\"--- Fin -- delete Listado Grupos ---\");\r\n\t\tsession.close();\r\n\t\treturn processedRecords;\r\n\t}", "title": "" }, { "docid": "ed170bc92f72b502fda11c86ec61a2c8", "score": "0.50691", "text": "private void clean() {\n for (PathFinder pf : lPathFinder) {\n pf.stop();\n }\n }", "title": "" }, { "docid": "2e3393513ff094254933badd1112f9a9", "score": "0.5068409", "text": "public void removeAll() throws SystemException {\n\t\tfor (Product product : findAll()) {\n\t\t\tremove(product);\n\t\t}\n\t}", "title": "" }, { "docid": "09cf19391af3316b674ce4e3ae16aff6", "score": "0.50645274", "text": "public void clean(ObjID[] ids, long sequenceNum, VMID vmid, boolean strong)\n {\n for (ObjID id : ids) {\n if (dgcLog.isLoggable(Log.VERBOSE)) {\n dgcLog.log(Log.VERBOSE, \"id = \" + id +\n \", vmid = \" + vmid + \", strong = \" + strong);\n }\n\n ObjectTable.unreferenced(id, sequenceNum, vmid, strong);\n }\n }", "title": "" }, { "docid": "31c11f891fcdec21ad886dda34a972bd", "score": "0.5064185", "text": "@Query(\"DELETE FROM task\")\n void deleteAll();", "title": "" }, { "docid": "27e3399e25bb9567dfa29a0b104b2df0", "score": "0.5062102", "text": "@Override\r\n\tpublic void deleteAll() {\n\t\trepository.deleteAll();\r\n\t}", "title": "" }, { "docid": "9b50dc41a1faeb4de646978ea85d64ba", "score": "0.5059859", "text": "@After\n\tpublic void cleanService() {\n\t\tfor(Tag t : tagService.findAll()) {\n\t\t\ttagService.delete(t);\n\t\t}\n\t}", "title": "" }, { "docid": "e68d84b9bf5f2a508896a8088781b7d1", "score": "0.50562555", "text": "public static void cleanAll() {\n \t// Users\n \tofy().delete().entities(getAllUsers());\n \t// Teams\n \tofy().delete().entities(getAllTeams());\n \t// Schedules\n \tofy().delete().entities(getAllTeamSchedules());\n \t// Results\n \tofy().delete().entities(getAllScoreResults());\n \t// Paris\n \tofy().delete().entities(getAllScoreParis());\n \tofy().delete().entities(getAllVictoryParis());\n \t// ...\n }", "title": "" }, { "docid": "a2c1880fa71b1aec4dfd8be8314f87bb", "score": "0.50344485", "text": "public void deleteByIds(Long[] ids) throws Exception{\n\t}", "title": "" }, { "docid": "589bd311b36d744918f21158ac1ca11d", "score": "0.5034305", "text": "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (DmHistoryPort dmHistoryPort : findAll()) {\n\t\t\tremove(dmHistoryPort);\n\t\t}\n\t}", "title": "" }, { "docid": "b1db8fcd13ea6fe5faca32ab7953f41f", "score": "0.5024207", "text": "int deleteAll();", "title": "" }, { "docid": "8b986fe39a465ae1b7c6e90e6b1c0b76", "score": "0.50218153", "text": "@Override\n\tpublic void removeAll() {\n\t\tfor (Attachment attachment : findAll()) {\n\t\t\tremove(attachment);\n\t\t}\n\t}", "title": "" }, { "docid": "4d47fab1df28f4e79a2b4674423b76d8", "score": "0.50188667", "text": "public void deleteAllDocumentPages(long docId) throws ServiceManagementException {\n\t\tPreparedStatement preparedDELETEStatement = null;\n\t\t\n\t\t// get the connection\n\t\tConnection conn = openConnection();\n\t\t\n\t\t// \n\t\t// process the request\n\t\t\n\t\t\n\t\t// create the query\n\t\tString deleteQuery = \" DELETE FROM document_page WHERE document_id = ?\";\n\t\t\n\t\t// create the statement\n\t\ttry {\n\t\t\tpreparedDELETEStatement = conn\n\t\t\t .prepareStatement(deleteQuery);\n\t\t\t\n\t\t\t// execute the statement \n\t\t\tpreparedDELETEStatement.setLong(1, docId);\n\t\t\tpreparedDELETEStatement.execute();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\t// re-throw the proper exception\n\t\t\tthrow new ServiceManagementException(\"Error while deleting docuemnt pages for a doc with id= \" + docId, e);\n\t\t}\n\n\t\t// release the connection\n\t\tcloseConnection(conn);\n\t}", "title": "" }, { "docid": "0bb56869ff41dff0309aff0e4cc2b2f7", "score": "0.50174093", "text": "@Override\n\tpublic void deleteImage(int processfiles_num) {\n\t\tgetSqlSession().delete(\"deleteImage\",processfiles_num);\n\t}", "title": "" }, { "docid": "4ae69a3bd2ac094f86217dcc67a4c9ee", "score": "0.50124973", "text": "public void removerNormasProcedimentos(String[] ids) throws ControladorException;", "title": "" }, { "docid": "4e0226d5a641ce0b56f89de363fee8f5", "score": "0.5008226", "text": "public void purgeAllTransactions() throws JeeslConstraintViolationException\n\t{\n\t\tPath token = Paths.get(System.getProperty(\"user.home\") +File.separator +\"devModeActivator.token\");\n\t\tif(Files.exists(token))\n\t\t{\n\t\t\tlogger.info(\"In DEV MODE - PURGING ALL TRANSACTIONs\");\n\t\t\tfor (TRANSACTION transactionToDelete : fTs.fTransactions(null,JeeslTsData.QueryInterval.closedOpen,null,null))\n\t\t\t{\n\t\t\t\tlogger.info(AbstractLogMessage.deleteEntity(transactionToDelete));\n\t\t\t\tfTs.deleteTransaction(transactionToDelete);\n\t\t\t}\n\t\t}\n\t\ttransaction = null;\n\t\treloadTransactions();\n\t}", "title": "" } ]
7f7aed24e0b307da71c8cb64a7c0df8c
Gets program codes for family
[ { "docid": "0788b9247e54061878e4f494a33a622d", "score": "0.6853067", "text": "public StreamResult fetchProgramCodesForFamily() throws UnsupportedEncodingException {\r\n JSONObject root = new JSONObject();\r\n JSONArray arr = new JSONArray();\r\n root.put(DATA, arr);\r\n populateProgramCodes(arr);\r\n return new StreamResult(new ByteArrayInputStream(root.toString().getBytes(UTF_8)));\r\n }", "title": "" } ]
[ { "docid": "573e1fe9844651c260b0e2b98712c6e6", "score": "0.6459149", "text": "@Override\n public CodeList[] family() {\n return values();\n }", "title": "" }, { "docid": "24abe7d58087e290d73b2f9a0cc68f47", "score": "0.64509183", "text": "private static Map<Integer, String> GetPrograms() {\r\n\t\tHashMap<Integer, String> ret = new HashMap<>();\r\n\t\tint i = 1;\r\n\t\tfor (IMLProgram program : IMLTestPrograms.getValidPrograms()) {\r\n\t\t\tret.put(i++, program.code);\r\n\t\t}\r\n\t\tret.put(0, \"\"); // exit\r\n\t\treturn ret;\r\n\t}", "title": "" }, { "docid": "bdb3d8e76bb31acca7957203c9c594bf", "score": "0.5937879", "text": "String getFamily();", "title": "" }, { "docid": "ad2c3cca8971871d7277a7a8b32c5f4d", "score": "0.59126216", "text": "public Program loadCodes() {\r\n return null;\r\n }", "title": "" }, { "docid": "ea31619e2c7bd4534d1438dc19b639d0", "score": "0.59049416", "text": "String[] getCodes();", "title": "" }, { "docid": "7c28099e0c61df89b1c10f83c8cdd29f", "score": "0.57442725", "text": "public String getProgram (){\n\t\treturn program;\n\t}", "title": "" }, { "docid": "0cae2ba74c1a2989569670db7f924a50", "score": "0.5738137", "text": "public byte[] getProgram() {\n return program;\n }", "title": "" }, { "docid": "903e177d9c17003e0c911c03653e5a81", "score": "0.5721013", "text": "java.lang.String getCode();", "title": "" }, { "docid": "903e177d9c17003e0c911c03653e5a81", "score": "0.5721013", "text": "java.lang.String getCode();", "title": "" }, { "docid": "903e177d9c17003e0c911c03653e5a81", "score": "0.5721013", "text": "java.lang.String getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.56952", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.56952", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.56952", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.56952", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.56952", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.56952", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.56952", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.56952", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.56952", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.56952", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.56952", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.56952", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.56952", "text": "int getCode();", "title": "" }, { "docid": "9bf95810f25c7e7e961298c4bbdf556d", "score": "0.5677495", "text": "final String getFamily_NoClientCode() {\n return getFamily(Locale.getDefault());\n }", "title": "" }, { "docid": "fd1d791587460f2eb029ce02bd9a0eae", "score": "0.5654191", "text": "public int getProCode() {\n\t\treturn proCode;\n\t}", "title": "" }, { "docid": "582f7edf72fd74f74cbed5a427adb62f", "score": "0.5607854", "text": "public Program getProgram(Address addr);", "title": "" }, { "docid": "a383711f81d92396589273e906e63c18", "score": "0.5606344", "text": "String getCode();", "title": "" }, { "docid": "a383711f81d92396589273e906e63c18", "score": "0.5606344", "text": "String getCode();", "title": "" }, { "docid": "a383711f81d92396589273e906e63c18", "score": "0.5606344", "text": "String getCode();", "title": "" }, { "docid": "a383711f81d92396589273e906e63c18", "score": "0.5606344", "text": "String getCode();", "title": "" }, { "docid": "a383711f81d92396589273e906e63c18", "score": "0.5606344", "text": "String getCode();", "title": "" }, { "docid": "97e6b6ee9f58b2591866be991e5b83bf", "score": "0.56053156", "text": "public int getCode();", "title": "" }, { "docid": "d12d1677180aa46eab0eebdd9c2ee5f7", "score": "0.5594155", "text": "public String getProgram() {\n return program;\n }", "title": "" }, { "docid": "ed826a3bc1d6519a4c4f51e6765f518e", "score": "0.5591585", "text": "@SuppressWarnings(\"unchecked\")\r\n public LGPProgram getProgram() {\r\n int[][] code;\r\n int i, s;\r\n Function[] d;\r\n InstructionSet is;\r\n\r\n s = this.m_fc;\r\n\r\n if (s <= 0)\r\n return LGPProgram.EMPTY_PROGRAM;\r\n\r\n is = this.m_is;\r\n d = this.m_funcs;\r\n code = new int[s][];\r\n for (i = 0; i < s; i++) {\r\n code[i] = d[i].getCode(is);\r\n }\r\n\r\n return new LGPProgram(this.m_is, code).postProcess(this.m_parameters);\r\n }", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.5563995", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.55626816", "text": "int getCodeValue();", "title": "" }, { "docid": "ba956cdeeefd22d91125f78a7fed88e1", "score": "0.55626816", "text": "int getCodeValue();", "title": "" }, { "docid": "bd87651982c70f71392dfebdb4419b9b", "score": "0.5526513", "text": "public Program[] getAllOpenPrograms();", "title": "" }, { "docid": "cdeb766f7cdcdd7dc1a1483c753fbae6", "score": "0.54810673", "text": "public Program getProgram();", "title": "" }, { "docid": "cdeb766f7cdcdd7dc1a1483c753fbae6", "score": "0.54810673", "text": "public Program getProgram();", "title": "" }, { "docid": "cdeb766f7cdcdd7dc1a1483c753fbae6", "score": "0.54810673", "text": "public Program getProgram();", "title": "" }, { "docid": "6fb9031817ac8381b25f519c9812d926", "score": "0.54785603", "text": "com.google.protobuf.ByteString getCode();", "title": "" }, { "docid": "022fe1487d66c0a2e768571ff2a69954", "score": "0.5460043", "text": "private List<Program> getListOfPrograms() throws BiffException, IOException\r\n {\r\n List<Program> listOfPrograms=ReadWriteExcel.readProgramDetails();\r\n return listOfPrograms;\r\n }", "title": "" }, { "docid": "36e20edf6e2d3a69fbc4ec864d1ad35b", "score": "0.54498583", "text": "public int getAppCode() {\r\n\t\treturn iCodeEx;\r\n\t}", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5443731", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5443731", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5443731", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5443731", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.54436773", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.54436773", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" }, { "docid": "79bf3d18d70f4372d142e00d1deb819b", "score": "0.5442935", "text": "forge_abi.Enum.StatusCode getCode();", "title": "" } ]
a0aa105f9599d874823e88eaebe5c7b6
// // // LED // // // SET LED
[ { "docid": "cb1a3dff9bfc173420096ae27ed7bc19", "score": "0.6725276", "text": "protected static final int setLed(Coreable core, LED_STATUS led_status){\r\n if( !hasDevice(core) || led_status == null) return -1;\r\n return FreenectLibrary.get().freenect_set_led(core.getDevice(), led_status.getValue());\r\n }", "title": "" } ]
[ { "docid": "133f95a4049303db6ae573c96d564a06", "score": "0.7911557", "text": "void setLedStatus(LedStatus ledStatus);", "title": "" }, { "docid": "9fa9930dc74399437be5418331197ce6", "score": "0.7582092", "text": "public void setLED(boolean on) throws IOException {\r\n if (on) {\r\n led.setValue(1);\r\n }\r\n else {\r\n led.setValue(0);\r\n }\r\n }", "title": "" }, { "docid": "6f393a6c300ad872a2c0b413109ecd83", "score": "0.7500576", "text": "public static native void setLed(int led, boolean state);", "title": "" }, { "docid": "cec5a9884321d93f7bfde677aaff8c1d", "score": "0.68923193", "text": "public void setLedState(boolean isOn) {\n if (isOn) {\n visionTable.getEntry(\"ledMode\").setNumber(3);\n } else {\n visionTable.getEntry(\"ledMode\").setNumber(1);\n }\n }", "title": "" }, { "docid": "d75cfb3bb901332df1106f72d3ecefba", "score": "0.6811137", "text": "public void setLEDMode(double value){\r\n table.getEntry(\"ledMode\").setNumber(value);\r\n }", "title": "" }, { "docid": "054e54126aa9a491f298720ad1827092", "score": "0.6514979", "text": "public void lightsOut()\n {\n _limelightTable.getEntry(\"ledMode\").setNumber(1);\n }", "title": "" }, { "docid": "e9f580b6b91db1fa95d5fc0c4994a60b", "score": "0.6463248", "text": "public void turnOnUserLED(int id) throws IOException {\n\t\tif (id != 0 && id != 1)\n\t\t\tthrow new IOException(\"Invalid id\");\n\n\t\tgpioLED.writePin(5 + id, 0);\n\t}", "title": "" }, { "docid": "790d004b710daa4fc31c1c1a26faa595", "score": "0.6441092", "text": "public void on(){\n System.out.println(\"Light: turn on\");\n }", "title": "" }, { "docid": "342d778fde89215ac0898cffc7a80850", "score": "0.64240634", "text": "@Override\n\tpublic void sOn() {\n\t\tSystem.out.println(\"Led light is turned on\");\n\t}", "title": "" }, { "docid": "8afc8add2ec0ab3e6f78b389a3cce9da", "score": "0.6383819", "text": "public void setGpioPin(int key,int value){\n\t\tif(value == GPIO_ON){\n\t\t\tledPin[key].high();\n\t\t}\n\t\telse{\n\t\t\tledPin[key].low();\n\t\t} \n\t}", "title": "" }, { "docid": "b506015213ae627b9265408802a27f18", "score": "0.63714755", "text": "@Override\n public void execute() {\n if (_on){\n _pixy2.setLamp((byte)1, (byte)1);\n _pixy2.setLED(_r, _g, _b);\n } else {\n _pixy2.setLamp((byte)0, (byte)0);\n }\n }", "title": "" }, { "docid": "dc379dde0505655e5fad29e9fe720ef2", "score": "0.63696647", "text": "@Override\n public void affect(Led led) {\n led.setColor(led.getColor().next());\n }", "title": "" }, { "docid": "381c5ced0eb7aecbb74f5d6c31069a66", "score": "0.63667345", "text": "public void turnOn();", "title": "" }, { "docid": "5f73df8cfd6acae06c91ba7c41be9253", "score": "0.6304174", "text": "public void sendYellow(View view) {\n\t\t// Do something in response to button\n\t\tTextView TextView1 = (TextView) findViewById(R.id.textView1);// Android\n\t\ttry {\n\t\t\tbyte[] buf = \"LED\\r\".getBytes();\n\t\t\ttemp[yellowPhysicaloid].write(buf, buf.length);\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (channels[yellowPhysicaloid].startsWith(\"ON\"))\n\t\t\t\tbuf = \"OFF\\r\".getBytes();\n\t\t\telse\n\t\t\t\tbuf = \"ON\\r\".getBytes();\n\n\t\t\ttemp[yellowPhysicaloid].write(buf, buf.length);\n\t\t\tTextView1.setText(\"Toggle yellow\");\n\t\t} catch (Exception e) {\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "9876935d996476cbe137e75774005646", "score": "0.629056", "text": "LedStatus getLedStatus();", "title": "" }, { "docid": "5505ce017d799e1139972fd8ca10bf42", "score": "0.62811345", "text": "public void turnOnSensor(){\n this.status = true;\n }", "title": "" }, { "docid": "14e69177c54fb04c2714a53f81f10aee", "score": "0.6278732", "text": "public SetLEDs(LEDs l) {\n addRequirements(l);\n // Use addRequirements() here to declare subsystem dependencies.\n }", "title": "" }, { "docid": "0bfd1e0da0bf633c62482138f0609d21", "score": "0.6268096", "text": "void setBrightness( int brightness );", "title": "" }, { "docid": "60626d844868a0afcba961f4a1b6dd14", "score": "0.62661046", "text": "public void turnONRadion() {\n radio.setSwitchStatus(true);\n }", "title": "" }, { "docid": "0fc6b1a51d21d18019fb1fdfeef90b47", "score": "0.6258158", "text": "public void sendRed(View view) {\n\t\tTextView TextView1 = (TextView) findViewById(R.id.textView1);// Android\n\t\ttry {\n\t\t\tbyte[] buf = \"LED\\r\".getBytes();\n\t\t\ttemp[redPhysicaloid].write(buf, buf.length);\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (channels[redPhysicaloid].startsWith(\"ON\"))\n\t\t\t\tbuf = \"OFF\\r\".getBytes();\n\t\t\telse\n\t\t\t\tbuf = \"ON\\r\".getBytes();\n\n\t\t\ttemp[redPhysicaloid].write(buf, buf.length);\n\t\t\tTextView1.setText(\"Toggle Red\");\n\t\t} catch (Exception e) {\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "30d5ff379a96ad2edefd1885dc73b95f", "score": "0.62379444", "text": "void turnOn() {\n\t\tif(!on) {\n\t\t\ton = true;\n\t\t}\n\t}", "title": "" }, { "docid": "0a9ecb393748ccf50e35b94110455881", "score": "0.6189803", "text": "public void power(){\n \n powerOn = !powerOn; \n }", "title": "" }, { "docid": "e8e5fc247ea3ae27a60b193139129d60", "score": "0.618348", "text": "public void switchLights() {\n\t\tStreetLight light;\n\t\t\n\t\tif (!blocked) {\n\t\t\tblocked = true;\n\t\t\tfor(StreetLight sl: lights)\n\t\t\t\tsl.setColor(LightColor.RED);\n\t\t} else {\n\t\t\tcalculateFactors();\n\t\t\tcycleControl();\n\t\t\tif ((light = selectStreetLight()) == null)\n\t\t\t\treturn;\n\t\t\ttimer.setTimer(light.getFactor());\n\t\t\tlight.setColor(LightColor.GREEN);\n\t\t\tblocked = false;\n\t\t}\n\t}", "title": "" }, { "docid": "6b342b8ea41377d8e8956266951310b2", "score": "0.61724716", "text": "public void setLightRail(boolean lit) {\n lights = lit;\n }", "title": "" }, { "docid": "ad700b412ceb8f3cb7dc504aba9c5bbd", "score": "0.6123694", "text": "public void onOff(){ \n OnOff = !(OnOff);\n \n }", "title": "" }, { "docid": "7f169ec12367c87f7ad1255e5417d39f", "score": "0.61103046", "text": "public void actionToggleLED(View v) {\n OutputStream mmOutStream = null;\n try {\n if (clientSocket.isConnected()) {\n\n // TelephonyManager\n TelephonyManager tManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\n String uid = tManager.getDeviceId();\n\n mmOutStream = clientSocket.getOutputStream();\n mmOutStream.write(uid.getBytes());\n } else {\n buttonEnviar.setEnabled(false);\n Toast.makeText(getApplicationContext(), \"Not connected\", Toast.LENGTH_SHORT).show();\n }\n } catch (IOException e) {\n Log.d(TAG, e.getMessage());\n buttonEnviar.setEnabled(false);\n }\n }", "title": "" }, { "docid": "b5e9861d8678f5e2da739475bb76981a", "score": "0.60882336", "text": "public void turnOn() {\r\n\t\ttv.estado = true;\r\n\t}", "title": "" }, { "docid": "47ab95bedf87775a5d4f387269775f61", "score": "0.6063614", "text": "void laserOn();", "title": "" }, { "docid": "f42ffa6e6eadf2c6b47add28dcdd2f05", "score": "0.60620093", "text": "@Override\n public void end(boolean interrupted) {\n LEDs.setAll(0, 0, 0);\n LEDs.activate();\n }", "title": "" }, { "docid": "6b79cb0e493d6dcd0254f427d2be06f6", "score": "0.60555035", "text": "private void changeColor(final boolean normal){\n \n if(mRobot != null)\n {\n // If normal, send command to show BLUE light, or else, send command to show RED light\n if(normal)\n RGBLEDOutputCommand.sendCommand(mRobot, 0, 0, 255);\n else\n RGBLEDOutputCommand.sendCommand(mRobot, 255, 0, 0);\n }\n }", "title": "" }, { "docid": "720f86d853942d9252a5b4f865ac6183", "score": "0.6054826", "text": "public void setLedColor(final eu.hansolo.steelseries.tools.LedColor LED_COLOR)\n {\n this.ledColor = LED_COLOR;\n final boolean LED_WAS_ON = currentLedImage.equals(ledImageOn) ? true : false;\n \n ledImageOff = create_LED_Image(getWidth(), 0, LED_COLOR);\n ledImageOn = create_LED_Image(getWidth(), 1, LED_COLOR);\n\n if (orientation == javax.swing.SwingConstants.HORIZONTAL)\n {\n // Horizontal\n ledImageOff = create_LED_Image(getHeight(), 0, ledColor);\n ledImageOn = create_LED_Image(getHeight(), 1, ledColor);\n }\n else\n {\n // Vertical\n ledImageOff = create_LED_Image(getWidth(), 0, ledColor);\n ledImageOn = create_LED_Image(getWidth(), 1, ledColor);\n } \n \n currentLedImage = LED_WAS_ON == true ? ledImageOn : ledImageOff;\n\n repaint();\n }", "title": "" }, { "docid": "ceec845a7a6b78c08551c3ab05af5a5d", "score": "0.6037464", "text": "@Override\n public void handleGET(CoapExchange exchange) {\n exchange.respond(\"LED is red.\");\n\t\tfinal GpioController gpio = GpioFactory.getInstance();\n\t\tfinal GpioPinDigitalOutput redPin = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_00, \"RED\", PinState.LOW);\n \tredPin.setShutdownOptions(true, PinState.LOW);\n\t\tredPin.toggle();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(3000);\n\t\t\tredPin.low();\n\t\t\tgpio.shutdown();\n\t\t\tgpio.unprovisionPin(redPin);\n\t\t}\n\t\tcatch(InterruptedException e){\n\t\t\tredPin.low();\n\t\t\tgpio.shutdown();\n\t\t\tgpio.unprovisionPin(redPin);\n\t\t}\n\t}", "title": "" }, { "docid": "59ff9f8a49ca5cdbec79b1ef0a8c1764", "score": "0.60287154", "text": "public abstract void setFlashing(int color, int mode, int onMS, int offMS);", "title": "" }, { "docid": "6bd33d2120c602dddf13e584c119b731", "score": "0.5969002", "text": "public void turn() {\r\n\t\tMain.run.mainGUI.enableButtons();\r\n\t\tMain.run.mainGUI.setStatus(\"Your Turn....\");\r\n\t\tMain.run.mainGUI.enableButtons();\r\n\t}", "title": "" }, { "docid": "74b0ef5dbe0af96f1d38fd703c246309", "score": "0.5964478", "text": "public void turnOn(int x, int y);", "title": "" }, { "docid": "f4953a6d960e1ae8adbc722ed548f87d", "score": "0.59616995", "text": "public void lightOn(Color color){\n active = color;\n }", "title": "" }, { "docid": "63c3c8bb1d965b61cc2b2ad3c4e14544", "score": "0.59616345", "text": "void onLightChange(boolean lightOn);", "title": "" }, { "docid": "b55c2bf3e3afe61373609901ce4bb9b8", "score": "0.595656", "text": "public void turnOffSensor(){this.status = false;}", "title": "" }, { "docid": "dfa15c5669a2b7d3df75e075d0f8a7c9", "score": "0.5935557", "text": "private void setYellow()\n {\n setColors(2.0,3.0,4.0,5.0,3.0,4.0);\n }", "title": "" }, { "docid": "1eaa257a1832d378ee461afac9be4bcc", "score": "0.59190005", "text": "boolean turnOn();", "title": "" }, { "docid": "8e554050d4975abb0b5e223c4dfcbe41", "score": "0.59125423", "text": "public void switchOn() {\n\n\t\tinit();\n\t}", "title": "" }, { "docid": "1c253068796bad4ee0f9e47ac2a96ff1", "score": "0.5908419", "text": "public void turnOnSysLED() throws IOException {\n\t\tTiLight.getInstance().turnOn(0);\n\t}", "title": "" }, { "docid": "e2f2aca7baf032911df0ec878d37e2b8", "score": "0.59032255", "text": "@Override\n public void handleGET(CoapExchange exchange) {\n exchange.respond(\"LED is blue.\");\n\t\tfinal GpioController gpio = GpioFactory.getInstance();\n\t\tfinal GpioPinDigitalOutput bluePin = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_02, \"BLUE\", PinState.LOW);\n\t\tbluePin.setShutdownOptions(true, PinState.LOW);\t\n \tbluePin.toggle();\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(3000);\n\t\t\tbluePin.low();\n\t\t\tgpio.shutdown();\n\t\t\tgpio.unprovisionPin(bluePin);\n\t\t}\n\t\tcatch(InterruptedException e){\n\t\t\tbluePin.low();\n\t\t\tgpio.shutdown();\n\t\t\tgpio.unprovisionPin(bluePin);\n\t\t}\n\t}", "title": "" }, { "docid": "529672136cc6177db2821798d2b9cb9a", "score": "0.5898679", "text": "public void turnOffUserLED(int id) throws IOException {\n\t\tif (id != 0 && id != 1)\n\t\t\tthrow new IOException(\"Invalid id\");\n\n\t\tgpioLED.writePin(5 + id, 1);\n\t}", "title": "" }, { "docid": "5bb2d74dcc3e4290e9ce266ec7419c0b", "score": "0.5893478", "text": "private void flashLightOn() {\n try {\n String cameraID = cameraManager.getCameraIdList()[0];\n\n cameraManager.setTorchMode(cameraID, true);\n\n toggleOnOff.setText(\"ON\");\n toggleOnOff.setChecked(true);\n // isTorchEnable = true;\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "f534196e491744a6ade727cae87cfde9", "score": "0.5883592", "text": "public void setRed(int value) {\n this.red = value;\n }", "title": "" }, { "docid": "dac872ca36caccf10cbfc25f6395a782", "score": "0.5880178", "text": "protected void update() {\n \n if (Timer.getFPGATimestamp() < lastTime + 0.05)\n return;\n \n lastTime = Timer.getFPGATimestamp();\n \n /*++position;\n position %= 3;\n int p = position;\n \n for(int led_number = 0; led_number < NUM_LEDS; led_number++)\n {\n leds[led_number].R = (p == 0) ? 255 : 0; ++p; p %= 3;\n leds[led_number].G = (p == 0) ? 255 : 0; ++p; p %= 3;\n leds[led_number].B = (p == 0) ? 255 : 0; ++p; p %= 3;\n ++p; p %= 3;\n }*/\n \n double position = (Timer.getFPGATimestamp() / 3) % NUM_LEDS;\n \n if (DriverStation.getInstance().isDisabled())\n {\n for(int led_number = 0; led_number < NUM_LEDS; led_number++)\n {\n if ((led_number < NUM_LEDS / 2) ^ (Timer.getFPGATimestamp() % 1 < 0.5))\n {\n leds[led_number].R = 128;\n leds[led_number].G = 128;\n leds[led_number].B = 0;\n }\n else\n {\n leds[led_number].R = 0;\n leds[led_number].G = 0;\n leds[led_number].B = 0;\n }\n }\n }\n else\n {\n for(int led_number = 0; led_number < NUM_LEDS; led_number++)\n {\n int intensity = (int)Math.max(255 / (1 + Math.abs(position - led_number)), 255 / (1 + Math.abs((position - led_number + NUM_LEDS) % NUM_LEDS)));\n\n if (!DriverStation.getInstance().isOperatorControl())\n {\n leds[led_number].R = 0;\n leds[led_number].G = intensity;\n leds[led_number].B = 0;\n }\n else if (DriverStation.getInstance().getAlliance() == DriverStation.Alliance.kRed)\n {\n leds[led_number].R = intensity / 2;\n leds[led_number].G = 0;\n leds[led_number].B = 0;\n }\n else\n {\n leds[led_number].R = 0;\n leds[led_number].G = 0;\n leds[led_number].B = intensity / 2;\n }\n }\n }\n \n device.show(leds);\n }", "title": "" }, { "docid": "27a6de424be8b5dae6a2ec028447b3c1", "score": "0.58717805", "text": "private void switchTurn() {\r\n turnColour = getEnemyColour();\r\n }", "title": "" }, { "docid": "f24c0f788a4049863a1222f731b28878", "score": "0.5871726", "text": "public void motorOn(int power);", "title": "" }, { "docid": "37687de8616168155ee31d36659d6546", "score": "0.58511883", "text": "void setNightModeState(boolean b);", "title": "" }, { "docid": "872074a9f07efd5551749c555859016a", "score": "0.5841591", "text": "void cycleLights() throws InterruptedException;", "title": "" }, { "docid": "ea6610746993a190e6f5bc5bc1c68df0", "score": "0.5835765", "text": "public void turnOn() {\n nodeIsRunning = true;\n }", "title": "" }, { "docid": "207424f796ef294fe42a42f0735edf32", "score": "0.5819965", "text": "public void switchDriveMode(){\n\n bullyMode = !bullyMode;\n gearBoxSolenoid.set(bullyMode);\n }", "title": "" }, { "docid": "e75083785657f4d4bc5e4a0a0e552f8b", "score": "0.58193195", "text": "@Override\n\tpublic void sOff() {\n\t\tSystem.out.println(\"Led light is turned off\");\n\t}", "title": "" }, { "docid": "21c6a9b365b66c4a5330c787a1a6dbfa", "score": "0.5816552", "text": "public void setBlue(int value) {\n this.blue = value;\n }", "title": "" }, { "docid": "0ec2eab131f74a0292d8cbc891ed52f3", "score": "0.58159775", "text": "public abstract boolean setSwitchState(int switchNumber, SwitchStatus newSwitchState, Object hardwareClientRef);", "title": "" }, { "docid": "d6a1d01ef0d519de69637c4dd56f0743", "score": "0.58133453", "text": "void onEnable();", "title": "" }, { "docid": "9e3d6ced7575d976f72838c27aa481e3", "score": "0.58125687", "text": "public void setLightsOn(boolean lightsOn) {\r\n this.lightsOn = lightsOn;\r\n this.trainController.trainModel.setLightsOn(lightsOn);\r\n }", "title": "" }, { "docid": "6b55a89987f7089e7c0c9b8364b18266", "score": "0.58116204", "text": "public void onEnable() {}", "title": "" }, { "docid": "64d0287f88ca025d260cf43d1abe4f44", "score": "0.5796389", "text": "void onChange(int color);", "title": "" }, { "docid": "b0a4fa617e6e86d9c105f363d1c21a9e", "score": "0.5795868", "text": "private int getLED(int pos) {\n return constrain((int) GameEngine.map(pos, 0, 1000, 0, numLeds - 1), numLeds - 1);\n }", "title": "" }, { "docid": "558c79f6f8aa6ae607dce8af2bf932db", "score": "0.5790464", "text": "@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tLog.i(TAG, \"led1_switch isChecked = \" + isChecked);\r\n\t\t\t\tif (isChecked) {\r\n\t\t\t\t\tledx_value[0] = 0x11;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tledx_value[0] = 0x10;\r\n\t\t\t\t}\r\n\t\t\t\tDeviceScanActivity.WriteCharX(\r\n\t\t\t\t\t\tDeviceScanActivity.gattCharacteristic_char1,\r\n\t\t\t\t\t\tledx_value);\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "ff3ce82f7ddf8acabd7d5ffad180eb20", "score": "0.5783233", "text": "public void setLedVisible(final boolean LED_VISIBLE)\n {\n this.ledVisible = LED_VISIBLE;\n repaint();\n }", "title": "" }, { "docid": "1b43f5b8500d1c0da6174e51b2ebb983", "score": "0.5780437", "text": "void setColor(byte r, byte g, byte b) throws ActuatorFailedException;", "title": "" }, { "docid": "a4e1a7da5b9349ebd490b02674e820f6", "score": "0.5776336", "text": "void setColor(int rgb) throws ActuatorFailedException;", "title": "" }, { "docid": "07daa857bdf385ab534d487fcc774bca", "score": "0.5773345", "text": "public native int setPortPin(int port, int pin, int on);", "title": "" }, { "docid": "c3a752c4939220ab6febc83520964732", "score": "0.57698315", "text": "public void setBrightness(int b)\n {\n ac.writeBrightness(b);\n }", "title": "" }, { "docid": "33a33eabb0504986f8be4b3c45600685", "score": "0.5765616", "text": "public void setBlutSwitch(boolean switch_blue) {\n switch_id.setChecked(switch_blue);\n }", "title": "" }, { "docid": "63d93c7cd28b2fb9640ad7a8e2d16f88", "score": "0.57642263", "text": "void laserOff();", "title": "" }, { "docid": "f73e9e753122c9f5abe1bf61e64c4bfe", "score": "0.5756473", "text": "public native void setLightsMode(int Mode) throws DecoderException;", "title": "" }, { "docid": "fed1fe770322eb2b5141db3a8336d7d7", "score": "0.5756335", "text": "public void changeColor(int val){\n FlashLight myFlashLight = activityWeakReference.get();\n if(myFlashLight == null || myFlashLight.isFinishing()){\n return;\n }\n switch(val){\n case 1:\n System.out.println(\"in 1\");\n myFlashLight.myTextView.setBackgroundColor(Color.MAGENTA);\n try{Thread.sleep(250);}\n catch(Exception e){e.printStackTrace();}\n break;\n case 2:\n System.out.println(\"in 2\");\n myFlashLight.myTextView.setBackgroundColor(Color.MAGENTA);\n try{Thread.sleep(400);}\n catch(Exception e){e.printStackTrace();}\n break;\n case 3:\n System.out.println(\"in 3\");\n myFlashLight.myTextView.setBackgroundColor(Color.GRAY);\n try{Thread.sleep(500);}\n catch(Exception e){e.printStackTrace();}\n break;\n }\n }", "title": "" }, { "docid": "5ef1cac596d1743dce82b207a86066c3", "score": "0.57293385", "text": "public void setLedBlinking(final boolean LED_BLINKING)\n {\n this.ledBlinking = LED_BLINKING;\n if (LED_BLINKING)\n {\n LED_BLINKING_TIMER.start();\n }\n else\n {\n setCurrentLedImage(getLedImageOff());\n LED_BLINKING_TIMER.stop();\n }\n }", "title": "" }, { "docid": "f71157137e750cbd73561449906b9847", "score": "0.5726682", "text": "@Override\n public void handleGET(CoapExchange exchange) {\n exchange.respond(\"LED is green.\");\n\t\tfinal GpioController gpio = GpioFactory.getInstance();\n\t\tfinal GpioPinDigitalOutput greenPin = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_01, \"GREEN\", PinState.LOW);\n\t\tgreenPin.setShutdownOptions(true, PinState.LOW);\n\t\tgreenPin.toggle();\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(3000);\n\t\t\tgreenPin.low();\n\t\t\tgpio.shutdown();\n\t\t\tgpio.unprovisionPin(greenPin);\n\t\t}\n\t\tcatch(InterruptedException e){\n\t\t\tgreenPin.low();\n\t\t\tgpio.shutdown();\n\t\t\tgpio.unprovisionPin(greenPin);\n\t\t}\n\t}", "title": "" }, { "docid": "f2e2133825cab2d171d377d5586d4f6e", "score": "0.57254356", "text": "public void turnOnBoost() {\n if (ColorAutomaticBrightnessController.DEBUG) {\n Slog.e(\"ColorAutomaticBrightnessController\", \"setLightSensorEnabled mBrightnessBoost = \" + mBrightnessBoost);\n }\n int i = mBrightnessBoost;\n if (i == 4 || i == 0 || i == 2) {\n mBrightnessBoost = 3;\n }\n }", "title": "" }, { "docid": "41e3d68c224ea96424460e619ebf8b3d", "score": "0.57162553", "text": "public void onEnable() { }", "title": "" }, { "docid": "42798ab518c4878b85865ed8bba9286c", "score": "0.56961465", "text": "@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tLog.i(TAG, \"led2_switch isChecked = \" + isChecked);\r\n\t\t\t\tif (isChecked) {\r\n\t\t\t\t\tledx_value[0] = 0x21;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tledx_value[0] = 0x20;\r\n\t\t\t\t}\r\n\t\t\t\tDeviceScanActivity.WriteCharX(\r\n\t\t\t\t\t\tDeviceScanActivity.gattCharacteristic_char1,\r\n\t\t\t\t\t\tledx_value);\r\n\t\t\t}", "title": "" }, { "docid": "645ec1a4b748f5057e6c93dbecf1df9e", "score": "0.56946945", "text": "@Override\r\n public void startApp() {\r\n System.out.println(\"Starting GPIOLEDTest....mike\");\r\n pinTest = new GPIOLED(23); // was 23 \r\n // pinTest2 = new GPIOLED(24);\r\n System.err.println(\"debug 1\");\r\n try {\r\n pinTest.start();\r\n// pinTest2.start();\r\n } catch (DeviceNotFoundException ex) {\r\n System.out.println(\"DeviceException: mike\" + ex.getMessage());\r\n notifyDestroyed();\r\n } catch (IOException ex) {\r\n System.out.println(\"startApp: IOException: \" + ex);\r\n notifyDestroyed();\r\n }\r\n System.out.println(\"debug 2\");\r\n pinTest.blink(8);\r\n // pinTest2.blink(4);\r\n }", "title": "" }, { "docid": "3a0c5683b9f86da9b337eeb137ccc8ff", "score": "0.56878334", "text": "public abstract void setBrightness(float brightness, int brightnessMode);", "title": "" }, { "docid": "4c02926e8a8d619272599a891068093a", "score": "0.56859237", "text": "private void light(String status){\n if(status.equals(\"on\")){\n item.setIsOn(true);\n }\n else if(status.equals(\"off\")){\n item.setIsOn(false);\n }\n }", "title": "" }, { "docid": "c7800d37560fb03bc5422fdccd4dda93", "score": "0.56842905", "text": "public void push(Button b) {\r\n b.setCurrent(OFF.instance());\r\n System.out.println(\" turning OFF\");\r\n }", "title": "" }, { "docid": "ef6c284484b17163070a23a67883f9a1", "score": "0.5680332", "text": "public void setBleed(float bleed);", "title": "" }, { "docid": "876afb7be678311d02d00baa7cda4dd9", "score": "0.56802064", "text": "private void setLights(){\n\t\tmScene.setLights(mLight,mOrigin);\n\t}", "title": "" }, { "docid": "b6f1fa6a973cdc1da4c9630e0526a339", "score": "0.5678351", "text": "@Override\n\t\t\tpublic void run() {\t\n//\t\t\t\tNativeDev.WritePort(WAKEUP);\n//\t\t\t\tSystemClock.sleep(200);\t\n\t\t\t\tNativeDev.WritePort(WAKEUP);\n\t\t\t\tSystemClock.sleep(100);\n\t\t\t\tNativeDev.WritePort(SET_POWER_UP_S9);\n\t\t\t\tSystemClock.sleep(100);\t\n\t\t\t\tNativeDev.WritePort(WAKEUP);\n\t\t\t\tSystemClock.sleep(100);\t\n\t\t\t\tNativeDev.WritePort(SET_POWER_EMV_3V);\n\t\t\t}", "title": "" }, { "docid": "168cd68dfb8cac3cc0c51cbe9e5ad71f", "score": "0.5676725", "text": "public abstract void setBrightness(float brightness);", "title": "" }, { "docid": "1ca7dc7b0bd16bc1561efe7b69d5456b", "score": "0.5673439", "text": "static public void enable(int id) \n\t{\n\t\tif (id < 0 || id >= lights.size()) {\n\t\t\tLog.error(\"Incorrect light number\");\n\t\t\treturn;\n\t\t}\n\t\tenable(lights.get(id));\n\t}", "title": "" }, { "docid": "69d57dd641f945ba54152df6ccf085d1", "score": "0.5665982", "text": "private String onOff(boolean b) { return b ? \"1\" : \"0\"; }", "title": "" }, { "docid": "a7e4dae4643556b97bde88a4f3677c38", "score": "0.56559616", "text": "public void setBrightness(float brightness);", "title": "" }, { "docid": "f9d482d8e3e378a9cbdc41d8c33e5ca8", "score": "0.56480944", "text": "private void bluetoothControlSetState(boolean newState){\r\n if (!DISABLE_BLUETOOTH){\r\n if (btDeviceConnected){\r\n mBlue.SendMessage(BT_CONTROL_STATE_CMD +\" \"+String.valueOf(newState?1:0));\r\n btHasControl = newState;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "384ebac76b0b8374b17bbb6f3bc38ead", "score": "0.56393135", "text": "void setColor(int color);", "title": "" }, { "docid": "8db683bd8d955a0d2a5c1b14bc76aa12", "score": "0.56384635", "text": "void changeColor();", "title": "" }, { "docid": "0e3244377d5299f77859fcc21d5fb255", "score": "0.5638352", "text": "public abstract void toggledOn();", "title": "" }, { "docid": "65907656eee837d1b966676929058041", "score": "0.5629921", "text": "public void low() {\n setValue(Gpio.LOW);\n }", "title": "" }, { "docid": "e6a10b0c14e83802f1423f4887025130", "score": "0.56231725", "text": "@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tLog.i(TAG, \"led3_switch isChecked = \" + isChecked);\r\n\t\t\t\tif (isChecked) {\r\n\t\t\t\t\tledx_value[0] = 0x41;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tledx_value[0] = 0x40;\r\n\t\t\t\t}\r\n\t\t\t\tDeviceScanActivity.WriteCharX(\r\n\t\t\t\t\t\tDeviceScanActivity.gattCharacteristic_char1,\r\n\t\t\t\t\t\tledx_value);\r\n\t\t\t}", "title": "" }, { "docid": "b6c0c8af76527b3047faeb71040a4c5b", "score": "0.5617209", "text": "public void turnOff();", "title": "" }, { "docid": "edb564e6fc5addef9e5d08d4ea8ede7d", "score": "0.5615992", "text": "public void setDisplayBacklight(boolean state) {\n mcp.setAndWritePin(LCD_LIGHT, state);\n }", "title": "" }, { "docid": "007b31480e4549a49cc2cd97631264a0", "score": "0.560798", "text": "public static void setIOState(int pinNum, boolean state){\n\t\t\n\t\tString cmd = \"python \" + ExternalResources.SCRIPT_PATH + ExternalResources.IO_OUTPUT_SCRIPT +\" -p \" + pinNum + \" -s \" + (state?1:0);\n\t\t\n\t\tLog.d(\"setIOState -> command: |\" + cmd + \"|\");\n\t\t\n\t\tif(Env.runningOnTargetDevice()){\n\t\t\ttry {\n\t\t\t\tProcess p = Runtime.getRuntime().exec(cmd);\n\t\t\t\t\n\t\t\t\tif(Tasker.DEBUG_MODE){\n\t\t\t\t\tLog.d(\"Task execution (readTemp) completed\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t//String response = in.readLine();\n\t\t\t\tin.readLine();\n\t\t\t\t\n\t\t\t\tTasker.ioOutputStates[pinNum] = (state?1:0);\n\t\t\t\t \n\t\t\t\tIOLogger.add(pinNum, state);\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(\"TaskExecutor :: Exception cought when tried to set output pin: \" + e.toString());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}else{\n\t\t\tLog.i(\"<<RUN PYTHON SCRIPT>> : \" + cmd);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "739f574e0a6a4555b04668b730bed396", "score": "0.56068903", "text": "public void motorsOn(){\r\n shooterMotor1.set(-1);\r\n shooterMotor2.set(-1);\r\n shooterOn = true;\r\n }", "title": "" }, { "docid": "08b2278d097899bdd93294146bf707e4", "score": "0.5606804", "text": "void turnoff() {\n\t\tif (on) {\n\t\t\ton = false;\n\t\t}\n\t}", "title": "" }, { "docid": "078c88b42f1271463f9dc4c9add16993", "score": "0.5590918", "text": "void activateLightMode();", "title": "" }, { "docid": "d99af4c2bedbb87290608e2a299de772", "score": "0.5580621", "text": "private void setRed()\n {\n setColors(2.0,3.0,4.0,5.0,3.0,4.0);\n }", "title": "" } ]
e427adcb38e8b37b48bda0475b498efc
String sql="select count() from institution_training where institution_id=:insId ";
[ { "docid": "8195305e1a3ea0ff42223cc6479ca68a", "score": "0.66009974", "text": "@Override\r\n\tpublic int getTrainingCount(int insId, SearchInstitutionCondition condition) {\n\t\tMap<String,Object> param=new HashMap<String,Object>();\r\n\t\tparam.put(\"insId\", insId);\r\n\t\tparam.put(\"degree\", condition.getDegree());\r\n\t\tparam.put(\"keyword\", \"%\"+CommonUtils.killNull(condition.getKeyword())+\"%\");\r\n//\t\treturn getNamedParameterJdbcTemplate().queryForInt(sql,param);\r\n\t\treturn getNamedParameterJdbcTemplate().queryForInt(getListSql(true, condition),param);\r\n\t}", "title": "" } ]
[ { "docid": "c658df16bb7a0b3193aa024cb073761d", "score": "0.723672", "text": "@Query(\"SELECT COUNT(*) FROM \" + IndexRomaji.TABLE_NAME)\n int count();", "title": "" }, { "docid": "00c529e5a0492cc36d82d6d965d7a895", "score": "0.7203028", "text": "int countByExample(IrpUserCovertGoodsExample example) throws SQLException;", "title": "" }, { "docid": "36dba034654c765d6f3f8fcf420af714", "score": "0.70074004", "text": "public void plusSqlResultCount();", "title": "" }, { "docid": "07e4afea4501f7486c843cb6dabfd1ee", "score": "0.698137", "text": "SqlStatement createCountStatement(QueryContext context,Object params);", "title": "" }, { "docid": "04876c5ba94592d478cc5861d458544a", "score": "0.6696477", "text": "int countByExample(TEmisorExample example) throws SQLException;", "title": "" }, { "docid": "554aee718c6426ae0d8cf603d2eef367", "score": "0.66819006", "text": "int countByExample(SystemUserExample example) throws SQLException;", "title": "" }, { "docid": "b70892c3ceea74cde12bf5ef3a173e6d", "score": "0.6678285", "text": "int countByExample(IrpSuggestionExample example) throws SQLException;", "title": "" }, { "docid": "a9a07fc87fd2dc4f4d19382b1265586c", "score": "0.6647006", "text": "int countByExample(IrpWorkflowObjExample example) throws SQLException;", "title": "" }, { "docid": "89f9368c6a4e19424f883ea5e24eab5f", "score": "0.6636439", "text": "@Query(\"SELECT COUNT(*) FROM TblSectorOds e WHERE e.idNivelSector = :idNivelSector\")\n long countSectorODSByIdNivelSector(@Param(\"idNivelSector\") TblNivelSector tblNivelSector);", "title": "" }, { "docid": "8c0fabe4505a3940c85358822ee8b2fe", "score": "0.6555149", "text": "public int countOccupantStudents()\n\t{\n\t\treturn jdbcTemplate.queryForObject(\"SELECT COUNT(*) FROM occupants WHERE occupants.occupation = 'scholar' OR occupants.occupation = 'pre-school'\", Integer.class);\n\t}", "title": "" }, { "docid": "3f9a3c757d5202da45cc62cfb3ace70c", "score": "0.6548162", "text": "int countByExample(SysUserRoleExample example) throws SQLException;", "title": "" }, { "docid": "ca4e769c3c6ad353fa47d626a326f75e", "score": "0.64494103", "text": "int countByExample(TProductoServicioExample example) throws SQLException;", "title": "" }, { "docid": "5cb926b39c2e713f60e84bc7b1a9e961", "score": "0.6434651", "text": "public static int hitungKwhmaks_sudahcek() {\n int count;\r\n \r\n String sql = \"select count(idpel) from dpm where totkwh>kwh_maks AND status_monitoring is not null\";\r\n // JdbcTemplate jdbc = new JdbcTemplate(datasource);\r\n\r\n try {\r\n count = jdbcTemplate.queryForObject(sql, Integer.class);\r\n } catch (Exception ex) {\r\n count = 0;\r\n }\r\n JdbcUtils.closeConnection(DatabaseConnection.getmConnection());\r\n return count;\r\n \r\n }", "title": "" }, { "docid": "cc4386d37b8333e43799a6daef7f5485", "score": "0.64203185", "text": "public static int hitungKwh0_sudahcek() {\n int count;\r\n \r\n String sql = \"select count(idpel) from dpm where totkwh=0 AND status_monitoring is not null\";\r\n // JdbcTemplate jdbc = new JdbcTemplate(datasource);\r\n\r\n try {\r\n count = jdbcTemplate.queryForObject(sql, Integer.class);\r\n } catch (Exception ex) {\r\n count = 0;\r\n }\r\n JdbcUtils.closeConnection(DatabaseConnection.getmConnection());\r\n return count;\r\n \r\n }", "title": "" }, { "docid": "ed781ca6df5dc106be7d96e7d2fadbc5", "score": "0.6387573", "text": "long countByResult_Participation_Exercise_Id(Long exerciseId);", "title": "" }, { "docid": "1add4a66de149e5da847136008f43a5c", "score": "0.6317706", "text": "public String prepareCountQuery(String tableName) {\n return \"SELECT COUNT(*) FROM \" + tableName;\n }", "title": "" }, { "docid": "a6354db073f3602fb328c9b9556d7061", "score": "0.6297076", "text": "public static int hitungKwh0_semua() {\n int count;\r\n \r\n String sql = \"select count(idpel) from dpm where totkwh=0\";\r\n // JdbcTemplate jdbc = new JdbcTemplate(datasource);\r\n\r\n try {\r\n count = jdbcTemplate.queryForObject(sql, Integer.class);\r\n } catch (Exception ex) {\r\n count = 0;\r\n }\r\n JdbcUtils.closeConnection(DatabaseConnection.getmConnection());\r\n return count;\r\n \r\n }", "title": "" }, { "docid": "bf3e92947b6498653d7297c747f9f772", "score": "0.6290566", "text": "long queryCount(String HQL, List<Object> params);", "title": "" }, { "docid": "011480cf1be9694b80649c77923fcc94", "score": "0.6274447", "text": "public int countStudent() {\r\n\t\tint count = 0;\r\n\t\tcreateConnection();\r\n\r\n\t\tString SQL = \"{call count_all_student(?)}\";\r\n\t\ttry {\r\n\t\t\tcstmt = con.prepareCall(SQL);\r\n\t\t\tcstmt.registerOutParameter(1, java.sql.Types.INTEGER);\r\n\t\t\tcstmt.execute();\r\n\t\t\tcount = cstmt.getInt(\"count\");\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tcloseConnection();\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "f24d8eb2cfef0d875ab5b6b7927a199f", "score": "0.62731767", "text": "int countByExample(CmsWindowDataExample example) throws SQLException;", "title": "" }, { "docid": "3e09334e7213b0d47948aa79155c15a3", "score": "0.6239056", "text": "int countByPreparedStatement(PreparedStatement ps) throws SQLException\n {\n ResultSet rs = null;\n try \n {\n int iReturn = -1;\n rs = ps.executeQuery();\n if (rs.next())\n iReturn = rs.getInt(\"MCOUNT\");\n if (iReturn != -1)\n return iReturn;\n }\n finally\n {\n getManager().close(rs);\n }\n throw new SQLException(\"Error in countByPreparedStatement\");\n }", "title": "" }, { "docid": "3e09334e7213b0d47948aa79155c15a3", "score": "0.6239056", "text": "int countByPreparedStatement(PreparedStatement ps) throws SQLException\n {\n ResultSet rs = null;\n try \n {\n int iReturn = -1;\n rs = ps.executeQuery();\n if (rs.next())\n iReturn = rs.getInt(\"MCOUNT\");\n if (iReturn != -1)\n return iReturn;\n }\n finally\n {\n getManager().close(rs);\n }\n throw new SQLException(\"Error in countByPreparedStatement\");\n }", "title": "" }, { "docid": "647062fa5e2e0d4d0f61c08c16f71492", "score": "0.6237754", "text": "int getResultCount();", "title": "" }, { "docid": "bf4ce955bab58fdc65a4b79db7feef8a", "score": "0.62374127", "text": "@Query(\"select count(u) from User u\")\n\n int getAllUserProfiles();", "title": "" }, { "docid": "5ffbe0558c7aa33c3a558939bc71b534", "score": "0.6230077", "text": "private int countByPreparedStatement(PreparedStatement ps) throws DaoException\n {\n ResultSet rs = null;\n try\n {\n int iReturn = -1;\n rs = ps.executeQuery();\n if (rs.next()) {\n iReturn = rs.getInt(\"MCOUNT\");\n }\n if (iReturn != -1) {\n return iReturn;\n }\n }\n catch(SQLException e)\n {\n throw new DataAccessException(e);\n }\n finally\n {\n this.getManager().close(rs);\n }\n throw new DataAccessException(\"Error in countByPreparedStatement\");\n }", "title": "" }, { "docid": "23821e8dfc80e3a9360479de0ff7fb54", "score": "0.6220064", "text": "@Override\n\tpublic Long count() {\n\n\t\tLong result = 0L;\n\n\t\tString sql = \"select count(1) from NewsCat\";\n\t\tObject[] params = {};\n\n\t\ttry {\n\n\t\t\tresult = getTmpl().queryForObject(sql, params, Long.class);\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "d42c3ff5ee0a66f417f2e3cac75cd5d9", "score": "0.62166077", "text": "long countByExample(TbDBSExample example);", "title": "" }, { "docid": "5181830ddf34d4babff545502872e7c6", "score": "0.6212326", "text": "int countByExample(TblSmsVerifyCodeDAOExample example);", "title": "" }, { "docid": "db624828aacfb7ee6fa3bd738e91ebf2", "score": "0.62011594", "text": "Long getCount(com.onewebsql.query.LExp whereClause) ;", "title": "" }, { "docid": "02b77d2fbb7a1f079da415c615c02c84", "score": "0.6179928", "text": "@Override\n\tpublic StringBuffer getCountClauseHQL(SearchBean searchBean) {\n\t\treturn new StringBuffer(\"select count(i) from Invoice as i \"\n\t\t\t\t+ \"left join i.sales as sal left join sal.stockItem as si join i.customer as cus\");\n\t}", "title": "" }, { "docid": "6971138194d3311d82245e4e11b009ac", "score": "0.61619586", "text": "@Override\r\n\tpublic int getCount(String hql) {\n\t\tQuery q = this.getHibernateTemplate().getSessionFactory().getCurrentSession().createQuery(hql);\r\n\t\treturn Integer.parseInt(q.list().get(0).toString());\r\n\t}", "title": "" }, { "docid": "0bb03a09ce7c9d911f3cf08717516a50", "score": "0.61514044", "text": "public static int hitungKwhMaks_semua() {\n int count;\r\n \r\n String sql = \"select count(idpel) from dpm where totkwh>kwh_maks\";\r\n // JdbcTemplate jdbc = new JdbcTemplate(datasource);\r\n\r\n try {\r\n count = jdbcTemplate.queryForObject(sql, Integer.class);\r\n } catch (Exception ex) {\r\n count = 0;\r\n }\r\n JdbcUtils.closeConnection(DatabaseConnection.getmConnection());\r\n return count;\r\n \r\n }", "title": "" }, { "docid": "b6014dc053032f7f18ea7423434dadd5", "score": "0.6150974", "text": "public static int hitungKwh0_belumcek() {\n int count;\r\n \r\n String sql = \"select count(idpel) from dpm where totkwh=0 AND status_monitoring is null\";\r\n // JdbcTemplate jdbc = new JdbcTemplate(datasource);\r\n\r\n try {\r\n count = jdbcTemplate.queryForObject(sql, Integer.class);\r\n } catch (Exception ex) {\r\n count = 0;\r\n }\r\n JdbcUtils.closeConnection(DatabaseConnection.getmConnection());\r\n return count;\r\n \r\n }", "title": "" }, { "docid": "ca6b95b656b0e452e3d12d9a631f043f", "score": "0.6150426", "text": "@Transactional\n\tpublic Integer countIndCitiess() {\n\t\treturn ((Long) indCitiesDAO.createQuerySingleResult(\"select count(o) from IndCities o\").getSingleResult()).intValue();\n\t}", "title": "" }, { "docid": "77bcbe488f312d28e17d59fc0dc4d891", "score": "0.6149703", "text": "public static int hitungKwhmaks_belumcek() {\n int count;\r\n \r\n String sql = \"select count(idpel) from dpm where totkwh>kwh_maks AND status_monitoring is null\";\r\n // JdbcTemplate jdbc = new JdbcTemplate(datasource);\r\n\r\n try {\r\n count = jdbcTemplate.queryForObject(sql, Integer.class);\r\n } catch (Exception ex) {\r\n count = 0;\r\n }\r\n JdbcUtils.closeConnection(DatabaseConnection.getmConnection());\r\n return count;\r\n \r\n }", "title": "" }, { "docid": "42f512fa1226c323262364dd65301746", "score": "0.6142966", "text": "public int count(Session session) {\r\n \t\treturn ((Long) session.createQuery(\"select count(*) from DataSet\").uniqueResult()).intValue();\r\n \t}", "title": "" }, { "docid": "5412ef66acdc19896800f7242f1680c1", "score": "0.61396927", "text": "@Query(\"SELECT COUNT(*) from Address\")\n int countAddress();", "title": "" }, { "docid": "4cdeda4c8b25ae065f12d295d7e4aee7", "score": "0.61320394", "text": "public int countAll(Connection conn) throws SQLException {\r\n\r\n String sql = \"SELECT count(*) FROM TRAMITEINTERNO\";\r\n PreparedStatement stmt = null;\r\n ResultSet result = null;\r\n int allRows = 0;\r\n\r\n try {\r\n stmt = conn.prepareStatement(sql);\r\n result = stmt.executeQuery();\r\n\r\n if (result.next())\r\n allRows = result.getInt(1);\r\n } finally {\r\n if (result != null)\r\n result.close();\r\n if (stmt != null)\r\n stmt.close();\r\n }\r\n return allRows;\r\n }", "title": "" }, { "docid": "bca6277049abbac577ad581342ae861b", "score": "0.6129992", "text": "long countByResult_Participation_Exercise_Course_Id(Long courseId);", "title": "" }, { "docid": "ed154c1b1a772c05ee99512f8eb3a03a", "score": "0.6112745", "text": "public int countByInitiative(long initiativeId);", "title": "" }, { "docid": "0c7c6077cde7bb57f2f12ea819de3bc2", "score": "0.6112157", "text": "@Override\n public long getTotalCount()\n {\n Connection connection = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n String sql = \"select count(*) from people\";\n try\n { \n connection = JdbcUtil.getConnection();\n ps = connection.prepareStatement(sql);\n rs = ps.executeQuery();\n while (rs.next())\n {\n return rs.getLong(\"count(*)\");\n }\n } catch (Exception e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } finally\n {\n StreamUtil.closeStream(rs, ps, connection);\n }\n return 0;\n }", "title": "" }, { "docid": "147f3ac154a42758eeb1028daebc7563", "score": "0.607961", "text": "public abstract int getRowCount(String query)throws BPFDBException;", "title": "" }, { "docid": "167463b9c94795d65244e3b34de52dca", "score": "0.60714597", "text": "@SqlQuery(\"SELECT \" +\r\n \"CASE \" +\r\n \" WHEN COUNT(*) > 0 THEN true \" +\r\n \" ELSE false \" +\r\n \"END \" +\r\n \"FROM person \" +\r\n \"WHERE identifier = :idt\")\r\n boolean identifierTest(@BindBean Person person);", "title": "" }, { "docid": "f82d9e1ecd2d4555a36f6feed709a09b", "score": "0.6062474", "text": "int getIdDetailsCount();", "title": "" }, { "docid": "01f6d3e45f1e484d71a201048a962615", "score": "0.6051512", "text": "@SelectProvider(type = TbUserSqlProvider.class, method = \"countByExample\")\n long countByExample(TbUserExample example);", "title": "" }, { "docid": "27d0c53958a1af6a221249c073722305", "score": "0.60497147", "text": "public String countByExample(LdUserExample example) {\n SQL sql = new SQL();\n sql.SELECT(\"count(*)\").FROM(\"user\");\n applyWhere(sql, example, false);\n return sql.toString();\n }", "title": "" }, { "docid": "334bd028d62a7575ec2e3ef27426d491", "score": "0.6042861", "text": "@Query(\"SELECT COUNT(*) FROM TblSectorOds e WHERE e.idNivelSector = :idNivelSector AND e.sectorPadreId = :sectorPadreId\")\n long countSectorODSByIdNivelSectorAndSectorPadreId(@Param(\"idNivelSector\") TblNivelSector tblNivelSector,\n @Param(\"sectorPadreId\") TblSectorOds TblSectorOds);", "title": "" }, { "docid": "871652daa54c2f27e2c22de8c9a97e0b", "score": "0.6036387", "text": "long count(String query);", "title": "" }, { "docid": "871652daa54c2f27e2c22de8c9a97e0b", "score": "0.6036387", "text": "long count(String query);", "title": "" }, { "docid": "871652daa54c2f27e2c22de8c9a97e0b", "score": "0.6036387", "text": "long count(String query);", "title": "" }, { "docid": "871652daa54c2f27e2c22de8c9a97e0b", "score": "0.6036387", "text": "long count(String query);", "title": "" }, { "docid": "871652daa54c2f27e2c22de8c9a97e0b", "score": "0.6036387", "text": "long count(String query);", "title": "" }, { "docid": "871652daa54c2f27e2c22de8c9a97e0b", "score": "0.6036387", "text": "long count(String query);", "title": "" }, { "docid": "871652daa54c2f27e2c22de8c9a97e0b", "score": "0.6036387", "text": "long count(String query);", "title": "" }, { "docid": "871652daa54c2f27e2c22de8c9a97e0b", "score": "0.6036387", "text": "long count(String query);", "title": "" }, { "docid": "71edbbfc722b262ec0f8e9c9d7d79b42", "score": "0.60279727", "text": "long countByExample(SjUserExample example);", "title": "" }, { "docid": "b743fa86e6c562b40bf4fb0f9f751384", "score": "0.6027096", "text": "public void count_load() {\r\n\t\tcount = 0;\r\n\t\ttry {\r\n\t\t\tpst = con.prepareStatement(\"select * from test_conduite\");\r\n\t\t\trs = pst.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\tlblNoTestConduite.setText(\"No Test Conduite : \"+getCount());\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "2556d81a795f161989e2afadd5d1a6ff", "score": "0.60216904", "text": "public static FunctionCall count() {\n return new FunctionCall(new CustomSql(\"COUNT\"));\n }", "title": "" }, { "docid": "a48da73a8a61e55192f577cd28fbf29f", "score": "0.60032576", "text": "@SelectProvider(type=PkonlySqlProvider.class, method=\"countByExample\")\n int countByExample(PkonlyExample example);", "title": "" }, { "docid": "bae68fc0be4105d5c123b6932f17ec04", "score": "0.5997964", "text": "public String countByExample(PkfieldsExample example) {\n SQL sql = new SQL();\n sql.SELECT(\"count(*)\").FROM(\"PKFIELDS B\");\n applyWhere(sql, example, false);\n return sql.toString();\n }", "title": "" }, { "docid": "3b52ff221e273a31a92634ebed1d2800", "score": "0.5990972", "text": "long countByResult_Participation_Exercise_IdAndResult_Assessor_Id(Long exerciseId, Long tutorId);", "title": "" }, { "docid": "9823c37dcdd94ea80c0e3884566a2bc2", "score": "0.5989618", "text": "public int getTrainCount() {\n \tint count;\n \t//Create SQL Query\n String countQuery = \"SELECT * FROM \" + TRAINS_TABLE;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(countQuery, null);\n count = cursor.getCount();\n cursor.close();\n db.close();\n return count; //Return the count of trains\n }", "title": "" }, { "docid": "b19ba782b5913ee6b8eb9b68c919ed8e", "score": "0.59867096", "text": "@Override\n\tpublic long queryConutByData() throws SQLException {\n\t\tQueryRunner queryRunner =new QueryRunner(C3P0Utils.getDataSource());\n\t\tObject object = queryRunner.query(ManagerTransactionUtils.getConnection(),\"select count(*) from shop\", new ScalarHandler());\n\t\tlong totalCount=(long)object;\n\t\treturn totalCount;\n\t}", "title": "" }, { "docid": "bffded45b977257b1199627a220dcfd3", "score": "0.5985073", "text": "@Override\n\tpublic int getCount() throws DatastoreException {\n\t\tLong count = namedParameterJdbcTemplate.queryForObject(SELECT_COUNT, new MapSqlParameterSource(), Long.class); \n\t\t\n\t\treturn count.intValue();\n\t}", "title": "" }, { "docid": "bb0d1b8bcf35eb8ae71e9c8ef6851958", "score": "0.59810436", "text": "public Long selectCount() {\n\t\tString hql=\"select count(id) from Discuss where deleted=0\";\n\t\tQuery query = getSession().createQuery(hql);\n if( query != null ){\n \treturn (Long)query.uniqueResult();\n }\n\t\treturn null;\n\t}", "title": "" }, { "docid": "317c66150f6510578c0d9a5f48bfc5cb", "score": "0.59766155", "text": "@SelectProvider(type= TUserSqlProvider.class, method=\"countByExample\")\n long countByExample(TUserCriteria example);", "title": "" }, { "docid": "c9dfa620b1a2010a654f065c49ddf95e", "score": "0.5973604", "text": "@Query(\"select count(task.id) from Application app left join Task task on task.id = app.taskID where app.applicant = :applicant\")\n Integer totalApplication(String applicant);", "title": "" }, { "docid": "4736549a4afa5ec0eaad8af81c73e6e8", "score": "0.59734327", "text": "public int QueryCount(String from_sql) {\n\t\treturn dbHelper.QueryCount(from_sql);\r\n\t}", "title": "" }, { "docid": "263fc71c3c12483bfb054e936e764586", "score": "0.5961569", "text": "public int numOfRegisteredCourses(int studentId) throws SQLException;", "title": "" }, { "docid": "5138a733d2b4b15b9a5195bd70ddd8ef", "score": "0.5956907", "text": "@SelectProvider(type=MarketTradeCalSqlProvider.class, method=\"countByExample\")\n long countByExample(MarketTradeCalCriteria example);", "title": "" }, { "docid": "d6522135e3fce562508d0877a9d40e29", "score": "0.5955781", "text": "private String getCountSQL() {\n String sql = getSQL();\r\n // remove the select\r\n sql = sql.substring(sql.indexOf(\"from\"));\r\n // add the count select\r\n sql = createHeader() + sql;\r\n \r\n return sql;\r\n }", "title": "" }, { "docid": "45d669382bc50981b5dc462a7c54b822", "score": "0.5936256", "text": "@Query(value = \"select count(a.accountId) from Account a\")\n\tint countAccounts();", "title": "" }, { "docid": "95a2ce148db59b7a84c1acf4bd79ffe8", "score": "0.5928481", "text": "@SelectProvider(type=CategorySqlProvider.class, method=\"countByExample\")\n long countByExample(CategoryExample example);", "title": "" }, { "docid": "ccf98e55eeec75efd25bafa9fba8c742", "score": "0.5921908", "text": "public int countAll() throws SQLException\n {\n return countWhere(\"\");\n }", "title": "" }, { "docid": "ccf98e55eeec75efd25bafa9fba8c742", "score": "0.5921908", "text": "public int countAll() throws SQLException\n {\n return countWhere(\"\");\n }", "title": "" }, { "docid": "e46c74aeb1237b1dfcdd8a0b3aa34d92", "score": "0.5907937", "text": "long countByResult_Participation_Exercise_Course_IdAndResult_Assessor_Id(Long courseId, Long tutorId);", "title": "" }, { "docid": "b07ffaf23089ada44b5a9b7d98072974", "score": "0.59039265", "text": "public int count(String... sqlParams) {\r\n\t\tQuery query;\r\n\t\tString qlString = \"SELECT count(\" + tableName + \") FROM \" + entityName + \" as \" + tableName;\r\n\t\tif(sqlParams.length >= 2) \r\n\t\t\tqlString += \" WHERE \" + tableName + \".\" + sqlParams[0] + \" LIKE \" + \"'\" + sqlParams[1] + \"'\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tquery = em.createQuery(qlString);\t\r\n\t\t\treturn safeLongToInt((Long)query.getSingleResult());\r\n\t\t\t\r\n\t\t} catch (NoResultException e) {\r\n\t\t\tlogger.error(e);\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "18709981ff989aa6e9e49590d7457918", "score": "0.58941996", "text": "public int countWhere(String where) throws SQLException\n {\n String sql = \"select count(*) as MCOUNT from extrachargetax \" + where;\n Connection c = null;\n Statement pStatement = null;\n ResultSet rs = null;\n try \n {\n int iReturn = -1; \n c = getConnection();\n pStatement = c.createStatement();\n rs = pStatement.executeQuery(sql);\n if (rs.next())\n {\n iReturn = rs.getInt(\"MCOUNT\");\n }\n if (iReturn != -1)\n return iReturn;\n }\n finally\n {\n getManager().close(pStatement, rs);\n freeConnection(c);\n }\n throw new SQLException(\"Error in countWhere\");\n }", "title": "" }, { "docid": "2478848e923eeb3d46e8645a10e2a6a1", "score": "0.5885777", "text": "@Override\r\n public Vector<Integer> queryUserTimes() throws Exception {\n Session ses = sessionFactory.openSession();\r\n String sql = \"select usercount(uname) from users\";\r\n Query query = ses.createSQLQuery(sql);\r\n Vector<Integer>temp=new Vector<Integer>(query.list());\r\n ses.close();\r\n return temp;\r\n }", "title": "" }, { "docid": "30d6c3a90ef33a38d3c4bdcb96e08588", "score": "0.58799213", "text": "public String countByExample(TLTLimitedFeatureExample example) {\n BEGIN();\n SELECT(\"count(*)\");\n FROM(\"TLT_LIMITED_FEATURE\");\n applyWhere(example, false);\n return SQL();\n }", "title": "" }, { "docid": "61635b62cf117bf9769431d5a4f52820", "score": "0.58786577", "text": "int selectCount(DicTypes record) throws DataAccessException;", "title": "" }, { "docid": "d2b8544081eb7bac682c370c88180ac0", "score": "0.58631766", "text": "long countByExample(DashboardAdExample example);", "title": "" }, { "docid": "730495d7d1ce1672a1db0904a098c17c", "score": "0.5860565", "text": "@Override\n public int countWhere(String where) throws DaoException\n {\n String sql = new StringBuffer(\"SELECT COUNT(*) AS MCOUNT FROM fl_person_group \")\n \t\t .append(null == where ? \"\" : where).toString();\n // System.out.println(\"countWhere: \" + sql);\n Connection c = null;\n Statement st = null;\n ResultSet rs = null;\n try\n {\n int iReturn = -1;\n c = this.getConnection();\n st = c.createStatement();\n rs = st.executeQuery(sql);\n if (rs.next())\n {\n iReturn = rs.getInt(\"MCOUNT\");\n }\n if (iReturn != -1) {\n return iReturn;\n }\n }\n catch(SQLException e)\n {\n throw new DataAccessException(e);\n }\n finally\n {\n this.getManager().close(st, rs);\n this.freeConnection(c);\n sql = null;\n }\n throw new DataAccessException(\"Error in countWhere where=[\" + where + \"]\");\n }", "title": "" }, { "docid": "5f80253b7589ece2cbf2cc3982668b22", "score": "0.585619", "text": "@SelectProvider(type=BonusPointLogSqlProvider.class, method=\"countByExample\")\n int countByExample(BonusPointLogExample example);", "title": "" }, { "docid": "0c6a75f727b398951d771bafe8008992", "score": "0.5850965", "text": "int getTotalCount(String query) {\n\t\tint count = 0;\n\t\ttry {\n\t\t\t\n\t\t\tString loginUser = \"mytestuser\";\n\t String loginPasswd = \"mypassword\";\n\t String loginUrl = \"jdbc:mysql://localhost:3306/moviedb?allowMultiQueries=true\";\n\t Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\t Connection dbcon = DriverManager.getConnection(loginUrl, loginUser, loginPasswd);\n\t\t\tStatement statement = dbcon.createStatement();\n\t\t\t//removes words before the where clause, and we replace the beginning to find the count\n\t\t\tSystem.out.println(\"before making count query\");\n\t\t\tquery = makeCountQuery(query, \"from\");\n\t\t\tSystem.out.println(\"after making count query\");\n\t\t\tSystem.out.println(query);\n\t ResultSet rs = statement.executeQuery(query);\n\t\t\tSystem.out.println(\"after executing count query\");\n\n\t //get count from results\n\t\t\tif (rs.next())\n\t\t\t\tcount = Integer.parseInt(rs.getString(1));\n\t System.out.println(\"after executing count query\");\n\t rs.close();\n\t statement.close();\n\t dbcon.close(); \n\t\t} catch (SQLException ex) {\n while (ex != null) {\n System.out.println(\"SQL Exception: \" + ex.getMessage());\n ex = ex.getNextException();\n } // end while\n } // end catch SQLException\n\t\t\n catch (java.lang.Exception ex) {\n \t\tSystem.out.print(\"exception in java.lang\");\n return count;\n }\n\t\t\n\t\treturn count;\n\t}", "title": "" }, { "docid": "64c56f055c2c6350e6715562256910b9", "score": "0.5845843", "text": "public static int hitungKwh0_sudahcek(String pBlth) {\n int count;\r\n \r\n String sql = \"select count(idpel) from dpm where totkwh=0 AND status_monitoring is not null\"\r\n + \" AND blth='\" + pBlth + \"'\";\r\n // JdbcTemplate jdbc = new JdbcTemplate(datasource);\r\n\r\n try {\r\n count = jdbcTemplate.queryForObject(sql, Integer.class);\r\n } catch (Exception ex) {\r\n count = 0;\r\n }\r\n JdbcUtils.closeConnection(DatabaseConnection.getmConnection());\r\n return count;\r\n \r\n }", "title": "" }, { "docid": "c58ae1ce5f7cddcd85d502dc26d30031", "score": "0.58446836", "text": "public int countByExample(Mi310Example example) {\n Integer count = (Integer) getSqlMapClientTemplate().queryForObject(\"MI310.abatorgenerated_countByExample\", example);\n return count.intValue();\n }", "title": "" }, { "docid": "b7f345749be446d83e11b6725c0907f7", "score": "0.58436596", "text": "public static final long count(Connection conn, String sql, TblBase<?> tbl/*,List<Object> params*/) throws SQLException {\n // Connection conn = getConn();\n System.out.println(\"▲ \" + sql);\n PreparedStatement ps = conn.prepareStatement(sql);\n ps.clearBatch();\n ps.clearParameters();\n ps.clearWarnings();\n int index = 1;\n for (Object param : tbl.getParams2()) {\n ps.setObject(index++, param);\n }\n ResultSet rs = ps.executeQuery();\n long result = -1; // return this when the table is EMPTY!\n while (rs.next()) {\n result = rs.getLong(1);\n break;\n }\n rs.close();\n ps.close();\n return result;\n }", "title": "" }, { "docid": "7595947234a38b6f9c827389b90c1d44", "score": "0.5842966", "text": "public static int hitungKwhmaks_sudahcek(String pBlth) {\n int count;\r\n \r\n String sql = \"select count(idpel) from dpm where totkwh>kwh_maks AND status_monitoring is not null\"\r\n + \" AND blth='\" + pBlth + \"'\";\r\n // JdbcTemplate jdbc = new JdbcTemplate(datasource);\r\n\r\n try {\r\n count = jdbcTemplate.queryForObject(sql, Integer.class);\r\n } catch (Exception ex) {\r\n count = 0;\r\n }\r\n JdbcUtils.closeConnection(DatabaseConnection.getmConnection());\r\n return count;\r\n \r\n }", "title": "" }, { "docid": "e219bdffdb225d97451200edc19f7be7", "score": "0.5828947", "text": "public static int hitungKwh0_sudahApprove(String pBlth) {\n int count;\r\n \r\n String sql = \"select count(idpel) from dpm where totkwh=0 AND approve is not null\"\r\n + \" AND blth='\" + pBlth + \"'\";\r\n // JdbcTemplate jdbc = new JdbcTemplate(datasource);\r\n\r\n try {\r\n count = jdbcTemplate.queryForObject(sql, Integer.class);\r\n } catch (Exception ex) {\r\n count = 0;\r\n }\r\n JdbcUtils.closeConnection(DatabaseConnection.getmConnection());\r\n return count;\r\n \r\n }", "title": "" }, { "docid": "46ea4722e4f044e1b36d4a34398c06ce", "score": "0.5824886", "text": "@Override\n\tpublic int selectCount(SqlSession session) {\n\t\treturn session.selectOne(\"community.selectCount\");\n\t}", "title": "" }, { "docid": "f6ba9febc09f660eced2235cb47683fb", "score": "0.5811994", "text": "public int rowCount( String tableName )\n {\n int noOfRows = 0;\n try\n {\n String query = \"SELECT COUNT(*) FROM \" + tableName;\n SqlRowSet rs = jdbcTemplate.queryForRowSet( query );\n \n if( rs.next() )\n {\n noOfRows = rs.getInt( 1 );\n }\n } \n catch ( Exception e )\n {\n e.printStackTrace();\n }\n return noOfRows;\n }", "title": "" }, { "docid": "ca8911c6959cb3392b9c0b0672e2bd45", "score": "0.58080786", "text": "public int countByExample(IrpCheckerLinkExample example) throws SQLException {\r\n Integer count = (Integer) getSqlMapClientTemplate().queryForObject(\"IRP_CHECKER_LINK.ibatorgenerated_countByExample\", example);\r\n return count;\r\n }", "title": "" }, { "docid": "4ba32d0261019a2a255c20c632d2fcfa", "score": "0.58042055", "text": "int countByExample(PlantrecordExample example);", "title": "" }, { "docid": "73ddb34252a12cea554665d7f1e66c75", "score": "0.58034295", "text": "public void countMobile(){\r\n Session session = factory.openSession();\r\n Transaction tx = null;\r\n try{\r\n tx = session.beginTransaction();\r\n Criteria cr = session.createCriteria(Mobile.class);\r\n\r\n // To get total row count.\r\n cr.setProjection(Projections.rowCount());\r\n List rowCount = cr.list();\r\n\r\n System.out.println(\"Total Count: \" + rowCount.get(0) );\r\n tx.commit();\r\n }catch (HibernateException e) {\r\n if (tx!=null) tx.rollback();\r\n e.printStackTrace(); \r\n }finally {\r\n session.close(); \r\n }\r\n }", "title": "" }, { "docid": "c4ca26cdffea75c76e0cff85539f924d", "score": "0.5802482", "text": "@Override\r\n\tpublic int getCount(String user,String pass){\n\t\t\r\n\t\tjdbcTemplate.setDataSource(getDataSource());\r\n\r\n\t\treturn jdbcTemplate.queryForInt(sql.COUNT_USER_REG , user,pass);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bc4f868aea76b70af1c82052a9f8407f", "score": "0.5801481", "text": "long countByExample(PatientInhospitalExample example);", "title": "" }, { "docid": "ad3e0e7f6bee18ac116da91d4e14963e", "score": "0.5795431", "text": "long countByExample(SUserExample example);", "title": "" }, { "docid": "679eb0e5629fd46cc29d9448c43b6102", "score": "0.57920957", "text": "private int liveDemo(){\n\t\t Connection con = null;\n\t\t int count= 0;\n\t\t try\n\t\t {\n\t\t\t con=getConnection();\n\t\t\t String sql = \"SELECT count(*) FROM lms_live_demo where NOTIFY=? and QUERY!=? group by email,date(qry_date),course\";\n\t\t\t\tPreparedStatement ps = con.prepareStatement(sql);\n\t\t\t\tps.setString(1, \"n\");\n\t\t\t\tps.setString(2, \"Request For Live Demo send by Admin\");\n\t\t\t\t\tResultSet rs=ps.executeQuery();\n\t\t\t\t\twhile(rs.next()){\n\t\t\t\t\t\t\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\trs.close();\n\t\t\t\t\t\n\t\t\t\t\n\t\t }\n\t\t catch(SQLException sqe){\n\t\t\tSystem.out.println(sqe);sqe.printStackTrace();\n\t\t}finally{closeConnection(con);}\n\t\t \n\t\t\t return count;\n\t }", "title": "" }, { "docid": "a010a101d3da80cdf8c2599d6d7f28c1", "score": "0.5788662", "text": "int countByExample(ToyAdminExample example);", "title": "" } ]
fefc01f190921f7e4efe51750d642085
Damage the cowl. Returns amount of excess damage
[ { "docid": "0765eed7fff325e1b23accd449d40c36", "score": "0.712661", "text": "public int damageCowl(int amount) {\n if (hasCowl()) {\n if (amount < cowlArmor) {\n cowlArmor -= amount;\n return 0;\n }\n amount -= cowlArmor;\n cowlArmor = 0;\n return amount;\n }\n return amount; // No cowl - return full damage\n }", "title": "" } ]
[ { "docid": "84bceff1780579a8579f5ec7f7451468", "score": "0.7440673", "text": "@Override\n public int damage() {\n int newDamage=criticalStrike();\n return newDamage;\n }", "title": "" }, { "docid": "0a50b60c0a467417571efaa3edd6fe3c", "score": "0.7399584", "text": "public int computeDamageTo(Combatant opponent) { return 0; }", "title": "" }, { "docid": "ac262364ba08eca86a26f9a2deb482e4", "score": "0.72625417", "text": "int getDamage();", "title": "" }, { "docid": "ac262364ba08eca86a26f9a2deb482e4", "score": "0.72625417", "text": "int getDamage();", "title": "" }, { "docid": "ac262364ba08eca86a26f9a2deb482e4", "score": "0.72625417", "text": "int getDamage();", "title": "" }, { "docid": "ac262364ba08eca86a26f9a2deb482e4", "score": "0.72625417", "text": "int getDamage();", "title": "" }, { "docid": "ac262364ba08eca86a26f9a2deb482e4", "score": "0.72625417", "text": "int getDamage();", "title": "" }, { "docid": "5b57a859f9a6bb9a1b8c969f3e10497a", "score": "0.72363484", "text": "@Override\n\tpublic int calculateDamage() \n\t{\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "bb840909b224097051b54742bb9bb412", "score": "0.71405834", "text": "public int giveDamage();", "title": "" }, { "docid": "cb09055f47a0a09f751e6ac920f3d8cf", "score": "0.70970803", "text": "protected void takeDamage(int damage)\n {\n health = health - damage;\n \n }", "title": "" }, { "docid": "4ff118c599dcaf515deb8f1d4936dcda", "score": "0.7082329", "text": "@Override\n public int doDamage() {\n if (difficulty <5)\n return damage;\n else \n return damage*2;\n }", "title": "" }, { "docid": "0a37cc01e353fea7cda61dbf1d5de8f1", "score": "0.7018977", "text": "public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}", "title": "" }, { "docid": "1e5e8d399b33400ae98efb8b70ae8d18", "score": "0.69812346", "text": "public int getDamage() {\n //TODO\n return 1;\n }", "title": "" }, { "docid": "dab74c9843fdc58449fbdd1c80b4704d", "score": "0.69722116", "text": "public int getDamage () {\n\t\treturn (this.puissance + stuff.getDegat());\n\t}", "title": "" }, { "docid": "da17e0b565293ba03629dcb1bdf07740", "score": "0.6933533", "text": "public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }", "title": "" }, { "docid": "d8a4e0329fc9132ee8e6d090cb3af34d", "score": "0.6921616", "text": "public int computeRangedDamageTo(Combatant opponent) { return 0; }", "title": "" }, { "docid": "f7316bbfe2d12852c7f3147946ff083b", "score": "0.69073695", "text": "public void reduceHealth(int damage){\n health -= damage;\n }", "title": "" }, { "docid": "e964cabd016f90e0330ecf9cef0f89a2", "score": "0.6903844", "text": "public void hurt(int damage)\n {\n \t hp -= (damage - ( damage * armor / 100 ));\n \t //System.out.println(\"hp: \" + hp);\n }", "title": "" }, { "docid": "6d079af6626348c3730d38dd567c3195", "score": "0.6875347", "text": "private void calculateDamage() {\n this.baseDamage = this.actualBaseDamage;\n this.applyPowers();\n this.baseDamage = Math.max(this.baseDamage - ((this.baseDamage * this.otherCardsPlayed) / this.magicNumber), 0);\n }", "title": "" }, { "docid": "23deda4cdc6e8613204a7b8e3fec1755", "score": "0.68709266", "text": "private void takeDamage(int damage){ health -= damage;}", "title": "" }, { "docid": "5b73bb86835eda29bd13a06055d1c7d4", "score": "0.6840691", "text": "public int attack()\n {\n int percent = Randomizer.nextInt(100) + 1;\n int baseDamage = super.attack();\n if(percent <= 5)\n {\n baseDamage *= 2;\n baseDamage += 50;\n }\n return baseDamage;\n }", "title": "" }, { "docid": "6e85cd8ae3666d6558584ff2eebcd56f", "score": "0.68281347", "text": "public int getDamage() {\n\t\treturn (int) (Math.random() * damageVariance) + damage;\n\t}", "title": "" }, { "docid": "d88db332bc0f8b7c35fcccaa001a8c3a", "score": "0.67807853", "text": "public void takeDamage(int damage) {\n Random rand = new Random();\n int game = rand.nextInt(51) + 75;\n double game2 = (double) game;\n double percDamage = game2/100.0;\n double realSomething = (double) damage;\n double actualDamageNotReal = realSomething * percDamage;\n int actualDamage = (int) actualDamageNotReal;\n int actualDmg = actualDamage - this.armour;\n if (actualDmg <= 0){\n actualDmg = 0;\n }\n this.health -= actualDmg;\n slowDisplay(String.format(\"%s takes %s damage, now at %s\\n\",this.name,actualDmg,this.health));\n\n }", "title": "" }, { "docid": "2417b34738c87163268829acc38d71ce", "score": "0.677722", "text": "AbilityDamage getAbilityDamage();", "title": "" }, { "docid": "4b3da9457d8092d268048fcc18028f2c", "score": "0.67715144", "text": "@Override\n public double getDamageAmount() {\n return this.getStrength().getAbilityValue();\n }", "title": "" }, { "docid": "b815d7e8ae20dbc690c23fb2f8a67533", "score": "0.6753586", "text": "PreventionEffectData preventDamage(GameEvent damageEvent, Ability source, Game game, int amountToPrevent);", "title": "" }, { "docid": "1b67936e272ad772772685a4fd8bb964", "score": "0.6750875", "text": "public int getDamage() {\n return damage_;\n }", "title": "" }, { "docid": "1b67936e272ad772772685a4fd8bb964", "score": "0.6750875", "text": "public int getDamage() {\n return damage_;\n }", "title": "" }, { "docid": "1b67936e272ad772772685a4fd8bb964", "score": "0.6750875", "text": "public int getDamage() {\n return damage_;\n }", "title": "" }, { "docid": "1b67936e272ad772772685a4fd8bb964", "score": "0.6750875", "text": "public int getDamage() {\n return damage_;\n }", "title": "" }, { "docid": "1b67936e272ad772772685a4fd8bb964", "score": "0.6750875", "text": "public int getDamage() {\n return damage_;\n }", "title": "" }, { "docid": "9ed5a52014cea47d228d64a38d47c35e", "score": "0.6747726", "text": "public void takeDamage(int damage) {\n\t\tlife = (life-damage<0)?0:life-damage;\n\t}", "title": "" }, { "docid": "2ddbb5cba3e2c935c25f2f0c831b11eb", "score": "0.6747477", "text": "public int getDamage() {\n return damage_;\n }", "title": "" }, { "docid": "2ddbb5cba3e2c935c25f2f0c831b11eb", "score": "0.6747477", "text": "public int getDamage() {\n return damage_;\n }", "title": "" }, { "docid": "2ddbb5cba3e2c935c25f2f0c831b11eb", "score": "0.6747477", "text": "public int getDamage() {\n return damage_;\n }", "title": "" }, { "docid": "2ddbb5cba3e2c935c25f2f0c831b11eb", "score": "0.6747477", "text": "public int getDamage() {\n return damage_;\n }", "title": "" }, { "docid": "2ddbb5cba3e2c935c25f2f0c831b11eb", "score": "0.6747477", "text": "public int getDamage() {\n return damage_;\n }", "title": "" }, { "docid": "f214c72ad7d8594a209a889c7fe72d86", "score": "0.67437655", "text": "public void takeDamage(int damage);", "title": "" }, { "docid": "ad94b66873a44852f57e54fcdcc1c394", "score": "0.673934", "text": "public double getOverhitDamage()\n\t{\n\t\treturn overhitDamage;\n\t}", "title": "" }, { "docid": "7cbceacfb913c53129e61b2e42ddfc2d", "score": "0.67239165", "text": "public int getDamage() {\r\n\t\treturn damage;\r\n\t}", "title": "" }, { "docid": "dfab06a168b18617b0602522586b64b8", "score": "0.67183846", "text": "public double getDamage() {\r\n\t\treturn damage;\r\n\t}", "title": "" }, { "docid": "94577259cc178c38a2d85ce4554fcdfc", "score": "0.6700613", "text": "public int calcCharMagicDamage() \n\t{\n\t\treturn npcInt;\n\t}", "title": "" }, { "docid": "6348811cb7c6b61c0f77c412d14f6253", "score": "0.66991657", "text": "public float getHungerDamage();", "title": "" }, { "docid": "98c47ccdccb6ad03da910736a16549ab", "score": "0.6692684", "text": "public void damage(int amount) {\n \tshield = shield - amount;\n }", "title": "" }, { "docid": "db1a580e09faee1f3a775248b7734352", "score": "0.66858256", "text": "public void takeDamage(int damage) {\n this.damageTaken += damage;\n }", "title": "" }, { "docid": "7997a2b0d3940cb78404aa48fba9ccbb", "score": "0.66638565", "text": "public int takeDamage(int damage) \r\n\t{\r\n\t\t//Pre: an int damage\r\n\t\t//Post: reduces health variable by damage\r\n\t\tif(health - damage > 0) \r\n\t\t{\r\n\t\t\thealth -= damage;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\thealth = 0;\r\n\t\t}\r\n\t\treturn health;\r\n\t}", "title": "" }, { "docid": "cf1e3e9bc8ae0a38172d5ff7ccac7d09", "score": "0.66549975", "text": "public double getDamage() {\n return damage;\n }", "title": "" }, { "docid": "ae4ddd38ece353ebc3bd63de9dda7454", "score": "0.6643569", "text": "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t}", "title": "" }, { "docid": "d76a3e6f23cbd39946c6bce87c651f68", "score": "0.66407335", "text": "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "24ca9acfa8959d8dd898594c631bdbff", "score": "0.66329074", "text": "@Override\n public int getEffectiveDamage(Hero hero){\n return (hero.getDex() + hero.getBonusDex()) * 2 + this.damage;\n }", "title": "" }, { "docid": "320316481a59e43369409029f9f377ff", "score": "0.66308045", "text": "public int getDamage() {\n return damage;\n }", "title": "" }, { "docid": "582d603431189f9cfd804868566d85aa", "score": "0.6628342", "text": "public void takeDamage(int damage) {\r\n this.health -= damage;\r\n if(this.health < 0)\r\n this.health = 0;\r\n }", "title": "" }, { "docid": "3c0618b81528fad9b43e4c85e785dc4b", "score": "0.662233", "text": "@Override\n protected int strengthViability(Creature c){\n int baseViability = super.strengthViability(c);\n if (Elements.elementDamageMultiplier(c,bossFormation.getFrontCreature().getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST * 3);\n }\n if (Elements.elementDamageMultiplier(bossFormation.getFrontCreature(),c.getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST / 3);\n }\n return baseViability;\n }", "title": "" }, { "docid": "a250df78375afdf9befb8487b685922a", "score": "0.66215986", "text": "public short getSiegeWeaponDamage();", "title": "" }, { "docid": "3583ded06e61b3b0dcd5a31a1f2f0ffe", "score": "0.6614707", "text": "public short getHandThrowDamage();", "title": "" }, { "docid": "69ed66acc1b68b7d3169482a487f47da", "score": "0.6614232", "text": "public int getDamage() {\r\n\t\treturn myDamage;\r\n\t}", "title": "" }, { "docid": "8b90f41ec5534662f53a6c12496da154", "score": "0.6592095", "text": "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "title": "" }, { "docid": "ccbe62a55ed16ff883800b9ed39b6d85", "score": "0.6584952", "text": "private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }", "title": "" }, { "docid": "ff7fb0f13ba22121fb40a00a1b4db6fd", "score": "0.6576521", "text": "public int getDamage() {\n\t\t\treturn damage;\n\t\t}", "title": "" }, { "docid": "4ea7b0303b8135c30b53ffb9e23908b7", "score": "0.6572104", "text": "public double progress() {\n if (damage <= 0) {\n return damage;\n }\n double n = noise.nextValue();\n damage = damage + (k * damage * damage) + l + n;\n return damage;\n }", "title": "" }, { "docid": "e80f5e8f1039276ffbcac7e4f245048c", "score": "0.6567343", "text": "public void suffer(int damage){\r\n\t\thp -= damage;\r\n\t\tinvulnerable = true;\r\n\t}", "title": "" }, { "docid": "8d10c4678ef414f3075af3a5f86d6280", "score": "0.6551278", "text": "public void reduceHealth(int ammo_damage){\n this.health -= ammo_damage;\n }", "title": "" }, { "docid": "7c92758c463e9455fb1e0e640d6c7e24", "score": "0.6547253", "text": "public int getDamage() {\n\t\treturn this.damage;\n\t}", "title": "" }, { "docid": "428f5a6c6ce8cb988bab4810d9c73483", "score": "0.6540307", "text": "private void subtractEnemySheild(int damage) {\n this.enemyShield -= damage;\n }", "title": "" }, { "docid": "02c21833f066f9499c5a1646dc07c22b", "score": "0.6536061", "text": "public int getDamage()\n\t{\n\t\treturn Damage;\n\t}", "title": "" }, { "docid": "c09167d037fa0b6d6e4b109b6a9a49ff", "score": "0.6519092", "text": "public int takeDamage(int damage) {\n damage -= ARMOR;\r\n // set new hp\r\n return super.takeDamage(damage);\r\n }", "title": "" }, { "docid": "336a658fdea98c0fa41f626bdee0bfcb", "score": "0.6509476", "text": "public short getBowDamage();", "title": "" }, { "docid": "c520db0338e8d9ba5fc42778107efbd2", "score": "0.6488347", "text": "public double attack(Legendary other) {\n double effectiveness = getTypeEffectiveness(other);\n double dmg = computeDamage(effectiveness);\n String attackStatus = Mokedex.getAttackStatus(effectiveness);\n \n LockFactory.getLock(\"mok\").lock();\n other.hp -= dmg;\n System.out.println(name + \" dealt \" + dmg + \"HP to \" + other.name + \"!\\n\");\n System.out.println(attackStatus);\n other.display();\n System.out.println(other.name + \" has \" + Math.max(0, other.hp) + \" remaining health.\\n\");\n if (other.hasFainted()) {\n System.out.println(other.name + \" has fainted!\\n\");\n }\n LockFactory.getLock(\"mok\").unlock();\n other.takeRevenge(this);\n\n return dmg;\n }", "title": "" }, { "docid": "81cadf698d9b2722381b6d9e25129cd2", "score": "0.6458628", "text": "public void receiveDamage(double damage) {\r\n health = health - damage;\r\n }", "title": "" }, { "docid": "446ee4bc59d3cf36d8c66852f1b8f358", "score": "0.64536697", "text": "public void damage(int damageTaken) {\n //TODO: Create specific damage methods instead of damage calls everywhere(see damagedByBullet())\n if (!invincible) {\n this.hp -= damageTaken;\n }\n }", "title": "" }, { "docid": "ed8f60a355336c4b85929ad1e92a8c76", "score": "0.6449048", "text": "private int attack(int chance, int additionalDamage) {\n if (diceRoll(10) <= chance) { //A statement where we call a diceRoll, if we hit under or equals the chance to hit, we calculate the damage\n int attackValue = player.getAttackValue() * (diceRoll(4) + additionalDamage); //Here we get the players attackValue, which then gets multiplied by a diceRoll + the additionalDamage from the chosen attack\n int damageDealt = 0;\n if (attackValue >= opponent.getArmor()) { //We check if our attackValue is greater than or equals to the opponents armor. If it is not, we don't deal any damage.\n damageDealt = (attackValue - opponent.getArmor()) + 1; //If we attack through the opponents armor, we deal the remaining damage + 1. (if we deal 1 damage and opponent has 1 armor, we still deal 1 damage)\n opponent.changeHealth(damageDealt * -1); //Changes the opponents health\n }\n return damageDealt;\n }\n return -1;\n }", "title": "" }, { "docid": "0f60feaa7a01045eb681f4636827452c", "score": "0.6437058", "text": "public static double valueOfMinionDamage(int damage) {\n return Math.min(AI.VALUE_OF_DESTROY, 2.466 * Math.log(damage / 2. + 1));\n }", "title": "" }, { "docid": "dfed8a29e6a7357324a3e7223bf01497", "score": "0.64294696", "text": "@Override\n public int damage(){\n int damage = 0;\n Random rand = new Random();\n int x = rand.nextInt(20) + 1;\n if (x == 1)\n damage = 50;\n return damage; \n }", "title": "" }, { "docid": "68a5f6212ea1b92fc31ac99280f2ff0c", "score": "0.6414154", "text": "public float getDamage() {\n return damage;\n }", "title": "" }, { "docid": "6d44e204e197232211f253ee26ab7527", "score": "0.6398714", "text": "public final void applyDamage(DamageDTO damage) {\n int rolledDamage = damage.getMaxDamage();\n if (rolledDamage > 0) {\n this.currentHitPoints -= rolledDamage;\n }\n if (this.currentHitPoints <= 0) {\n this.die();\n }\n }", "title": "" }, { "docid": "c5ab534883d4dc3b5f4d275007018548", "score": "0.63942546", "text": "@Override\n public void attackedByPaladin(double attack) {\n this.attack += (2 * attack) / 3;\n damageCounter = Math.max(damageCounter - (2 * attack) / 3, 0);\n }", "title": "" }, { "docid": "60b3db2d1e8159cfc66942cf691c6142", "score": "0.6390717", "text": "public double damageCalculation(Player player, NPC mob) {\r\n double weapon = player.getWeapon().getDamage();\r\n double attack = player.getStats().getAttack();\r\n double defence = mob.getStats().getDefence();\r\n double critMulti = 1;\r\n\r\n// Chance chance = new Chance(player.getLevel(), player.getStats().getDexterity(), player.getCharacterClass());\r\n Chance chance = new Chance(player.getStats().getCritChance());\r\n boolean crit = chance.getSuccess();\r\n\r\n if (crit) {\r\n critMulti = 2;\r\n System.out.println(\"CRIT!\");\r\n } else {\r\n// System.out.println(\"No crit\");\r\n }\r\n\r\n return ((weapon + attack) * 2 - defence) * critMulti;\r\n }", "title": "" }, { "docid": "f560b9d83850c78a788e13c4f4bd349a", "score": "0.6386478", "text": "public void getDamaged(float dmg) {\n\t\tStagePanel.addValueLabel(parentGP,dmg,Commons.cAttack);\n\t\tif(shield - dmg >= 0) {\n\t\t\tshield-=dmg;\n\t\t\tdmg = 0;\n\t\t}else {\n\t\t\tdmg-=shield;\n\t\t\tshield = 0;\n\t\t}\n\t\tif(health-dmg > 0) {\n\t\t\thealth-=dmg;\n\t\t}else {\n\t\t\thealth = 0;\n\t\t}\n\t\tSoundEffect.play(\"Hurt.wav\");\n\t}", "title": "" }, { "docid": "73844b5473e055388cb0a0507df38b77", "score": "0.63747877", "text": "private void subtractPlayerSheild(int damage) {\n this.playerShield -= damage;\n }", "title": "" }, { "docid": "93a84723a3456a5f90c7d8bb59a87894", "score": "0.63593405", "text": "public void handleAttack(int damage) {\n this.health -= damage;\n }", "title": "" }, { "docid": "dfeff1b25f6285b06e3c5d28c5f5fdf3", "score": "0.6348311", "text": "public int getWeaponDamage() {\n return Math.round(type.getWeaponDamage()*type.getItemLevelMultipliers()\n\t\t\t\t[level - 1]);\n }", "title": "" }, { "docid": "aadbbb70a2b833588931946234780a7d", "score": "0.6343482", "text": "public int getEquippedWeaponDamage() {\n return 0;\n }", "title": "" }, { "docid": "b5c060dd35ab855fe9b1b8bfeb2bff54", "score": "0.63389146", "text": "@Override\r\n\tpublic String attack(int damage) {\n\t\treturn damage +\"로 공격 합니다.\";\r\n\t}", "title": "" }, { "docid": "71ed850f55b7c56fc2284e426b7811c0", "score": "0.6338581", "text": "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "title": "" }, { "docid": "0b9aef5d293400d8895af974615bd66b", "score": "0.6336943", "text": "public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }", "title": "" }, { "docid": "acacaf2c560df49d9a92ec4b6d89fd17", "score": "0.633549", "text": "public void dealDamage(int damage) {\r\n\t\thealth -= damage;\r\n\t\tif (health <= 0)\r\n\t\t\tdeath = true;\r\n\t\t_checkInvariant();\r\n\t}", "title": "" }, { "docid": "17740c0780c9701de8109073a059f61a", "score": "0.6334743", "text": "public int getDamageTaken() {\n return this.damageTaken;\n }", "title": "" }, { "docid": "a82adf7b031790d8d4e52463bf929e2f", "score": "0.6334179", "text": "public static int getMaxDamage() {\n\t\treturn MAX_DAMAGE;\n\t}", "title": "" }, { "docid": "97f900a70e793aec7abdde9d00d86bba", "score": "0.6330359", "text": "public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }", "title": "" }, { "docid": "18213ec3a3d5114fafa94e83285748fb", "score": "0.6325105", "text": "public int calculateAttack() {\n int attack = 0;\n for (Weapon w : equippedWeapons) {\n attack += w.getType().getDamage();\n }\n return attack;\n }", "title": "" }, { "docid": "f182e279fa40ae09e6fcb42f89824e21", "score": "0.63178384", "text": "public double mageStrike()\r\n\t{\r\n\t\tdouble r = random.nextDouble();\r\n\t\tdmg2 = dmg + ((2*pRange)/100) * (r - 0.5) * dmg;\r\n\t\tif (r < (crit/100))\r\n\t\t{\r\n\t\t\tdmg2 = 2*dmg2;\r\n\t\t\taggro = aggro * 1.4;\r\n\t\t}\r\n\t\taggro = aggro * 1.2;\r\n\t\treturn dmg2;\r\n\t}", "title": "" }, { "docid": "9882c1c353df6aea45ceb370e6cc484c", "score": "0.6310958", "text": "public static void damageStep () {\r\n // rough plan:\r\n // #1: flip defending monster, if face down -> see flipMonster(...);\r\n // #2: Ask CPU and player for possible effect negation! (For an attack negation it is too late!) -> see below in this method\r\n // #3: calculate damage, kill monsters, if needed\r\n // (consider also banishing and immunity, also copied passive effect of (Holy) Lance)\r\n // -> see makeDamageCalculation(...);\r\n // #4: decrease life points, if needed -> see isDealingBattleDamageAndContinuingGame(...);\r\n // #5: consider passive (also copied) trap monster effects -> see possibleSuicideEffect(...);\r\n // #6: display Win/Lose dialog and end match, if needed -> see Game.over(...);\r\n // #7: finally end the attack (consider the effects that happen afterwards), thus allowing the next attack -> endDamageStep(...);\r\n \r\n // about #1:\r\n if (Game.ActiveGuardingMonster.isFaceDown) {flipMonster(Game.ActiveGuardingMonster);}\r\n // about #2:\r\n if (Game.ActiveAttackingMonster.canBeNegated() || Game.ActiveGuardingMonster.canBeNegated()) {\r\n AIinterrupts.cpuIsUsingEffectNegateDuringBattlePhase(); // ask CPU to negate effects first\r\n // ask player to negate effect here\r\n boolean isCanceling = false;\r\n boolean hasEffectNegateHandTrap = Hand.lookForEffectNegateOnHand(true);\r\n boolean hasEffectNegateOnField = Hand.lookForEffectNegateOnField(true);\r\n if (hasEffectNegateHandTrap || hasEffectNegateOnField) {\r\n if (hasEffectNegateHandTrap && !hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (!hasEffectNegateHandTrap && hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n else {\r\n int intDialogResult = YuGiOhJi.multipleChoiceDialog(\"Do you want to negate effects on the field?\", \"You can negate passive effects.\", new String[]{\"yes, by discarding Neutraliser\", \"yes, by paying the cost worth 1 card\", \"no (default)\"}, \"no (default)\");\r\n if (intDialogResult==0) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (intDialogResult==1) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n }\r\n }\r\n if (!isCanceling) {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n }\r\n else {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n \r\n }", "title": "" }, { "docid": "42f0429405d9325cd4aeb309614d1a21", "score": "0.63087875", "text": "public void takeDamage(int amount){\r\n\t\tthis.life = this.life - amount;\r\n\t}", "title": "" }, { "docid": "041c4e7dfd548d71e5e87ac4771782f6", "score": "0.6285594", "text": "private static int playerDamageDealt(int playerAttack, int monsterDefense){\r\n int playerDamageDealt;\r\n playerDamageDealt = (playerAttack - monsterDefense);\r\n return playerDamageDealt;\r\n }", "title": "" }, { "docid": "148e6e67db0ced5c2ecb10a93a900207", "score": "0.6285091", "text": "private void subtractEnemyHealth(int damage) {\n this.enemyShipHealth -= damage;\n }", "title": "" }, { "docid": "e2a0dedf0ecf349a43de29106066003b", "score": "0.6284213", "text": "public void damagePlayer(int damage){\n hero.decreaseHp(damage);\n }", "title": "" }, { "docid": "5b6c8bf9e848fb452bbea228679090f8", "score": "0.6281665", "text": "public int getDamageDealt () {\r\n\t\treturn this.damageDealt;\r\n\t}", "title": "" }, { "docid": "02da3e5c01b208aea82594fca524c233", "score": "0.6280256", "text": "public void takeAttack(int damage) {\r\n if(this.evasion > 0)\r\n this.evasion--;\r\n else\r\n this.takeDamage(damage);\r\n }", "title": "" }, { "docid": "b601f7de3e3e2aae9ee7df61edfc4b93", "score": "0.6267", "text": "@Basic @Immutable\n\tpublic int getDamage() {\n\t\treturn this.damage;\n\t}", "title": "" }, { "docid": "105d75a2b132c5aac2032a1f4b8053d9", "score": "0.62359446", "text": "public int getWeaponDamage()\n {\n \t\treturn mystuff.getWepDmg();\n }", "title": "" } ]
da4d309c2e8a23f69d4206009969d51e
$ANTLR end "rule__Feature__Group__0__Impl" $ANTLR start "rule__Feature__Group__1" ../org.eclipse.papyrus.alf.ui/srcgen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:16662:1: rule__Feature__Group__1 : rule__Feature__Group__1__Impl ;
[ { "docid": "bad5622206affcb90e4fd13ffde5a1a2", "score": "0.7680815", "text": "public final void rule__Feature__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:16666:1: ( rule__Feature__Group__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:16667:2: rule__Feature__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Feature__Group__1__Impl_in_rule__Feature__Group__134722);\r\n rule__Feature__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" } ]
[ { "docid": "5f6c4a0b2dc242c849b05a145be170fb", "score": "0.74408674", "text": "public final void rule__Feature__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:16635:1: ( rule__Feature__Group__0__Impl rule__Feature__Group__1 )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:16636:2: rule__Feature__Group__0__Impl rule__Feature__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Feature__Group__0__Impl_in_rule__Feature__Group__034660);\r\n rule__Feature__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Feature__Group__1_in_rule__Feature__Group__034663);\r\n rule__Feature__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "f2ee5bb3497a9daa711f85d47e14c933", "score": "0.7278431", "text": "public final void ruleFeature() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:3147:2: ( ( ( rule__Feature__Group__0 ) ) )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:3148:1: ( ( rule__Feature__Group__0 ) )\r\n {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:3148:1: ( ( rule__Feature__Group__0 ) )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:3149:1: ( rule__Feature__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getFeatureAccess().getGroup()); \r\n }\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:3150:1: ( rule__Feature__Group__0 )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:3150:2: rule__Feature__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__Feature__Group__0_in_ruleFeature6689);\r\n rule__Feature__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getFeatureAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "5791419eb99bb9cc0b5c6b1a8cfcb31f", "score": "0.72517216", "text": "public final void rule__Feature__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:16647:1: ( ( '.' ) )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:16648:1: ( '.' )\r\n {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:16648:1: ( '.' )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:16649:1: '.'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getFeatureAccess().getFullStopKeyword_0()); \r\n }\r\n match(input,80,FOLLOW_80_in_rule__Feature__Group__0__Impl34691); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getFeatureAccess().getFullStopKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "cc2446868db34a1a991fc10f4f2c2db6", "score": "0.68005234", "text": "public final void rule__Annotation__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23564:1: ( ( ( rule__Annotation__Group_1__0 )? ) )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23565:1: ( ( rule__Annotation__Group_1__0 )? )\r\n {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23565:1: ( ( rule__Annotation__Group_1__0 )? )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23566:1: ( rule__Annotation__Group_1__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getAnnotationAccess().getGroup_1()); \r\n }\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23567:1: ( rule__Annotation__Group_1__0 )?\r\n int alt177=2;\r\n int LA177_0 = input.LA(1);\r\n\r\n if ( (LA177_0==54) ) {\r\n alt177=1;\r\n }\r\n switch (alt177) {\r\n case 1 :\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23567:2: rule__Annotation__Group_1__0\r\n {\r\n pushFollow(FOLLOW_rule__Annotation__Group_1__0_in_rule__Annotation__Group__1__Impl48327);\r\n rule__Annotation__Group_1__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getAnnotationAccess().getGroup_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "07de7fb5d73db17085ffb8c103019c4a", "score": "0.67624134", "text": "public final void rule__Feature_Or_SequenceOperationOrReductionOrExpansion_Or_Index__Group_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:16350:1: ( rule__Feature_Or_SequenceOperationOrReductionOrExpansion_Or_Index__Group_0__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:16351:2: rule__Feature_Or_SequenceOperationOrReductionOrExpansion_Or_Index__Group_0__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Feature_Or_SequenceOperationOrReductionOrExpansion_Or_Index__Group_0__1__Impl_in_rule__Feature_Or_SequenceOperationOrReductionOrExpansion_Or_Index__Group_0__134102);\r\n rule__Feature_Or_SequenceOperationOrReductionOrExpansion_Or_Index__Group_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "45ea7d81c11e6f6ca12da3797facdc79", "score": "0.6670352", "text": "public final void rule__XFeatureCall__Group_1_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13665:1: ( rule__XFeatureCall__Group_1_2__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13666:2: rule__XFeatureCall__Group_1_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__1__Impl_in_rule__XFeatureCall__Group_1_2__127668);\n rule__XFeatureCall__Group_1_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "fba2f2b41e23d0898e2a446648e21e60", "score": "0.66648096", "text": "public final void rule__Annotation__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23553:1: ( rule__Annotation__Group__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23554:2: rule__Annotation__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Annotation__Group__1__Impl_in_rule__Annotation__Group__148300);\r\n rule__Annotation__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "402088a74d56f1e991770bcc6122606c", "score": "0.66616124", "text": "public final void rule__Objective__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPuRSUEML.g:3355:1: ( rule__Objective__Group_1__1__Impl )\n // InternalPuRSUEML.g:3356:2: rule__Objective__Group_1__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Objective__Group_1__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "bf678296b208a9dd3f75440bade6bab3", "score": "0.66040623", "text": "public final void rule__Agent__Group_6_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPuRSUEML.g:3139:1: ( rule__Agent__Group_6_2__1__Impl )\n // InternalPuRSUEML.g:3140:2: rule__Agent__Group_6_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Agent__Group_6_2__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "4185bf891df604a583e6190c244b9a7f", "score": "0.6595478", "text": "public final void rule__FQN__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.eclipsecon.scoping.ui/src-gen/org/eclipse/eclipsecon/scoping/ui/contentassist/antlr/internal/InternalScoping.g:795:1: ( rule__FQN__Group_1__1__Impl )\n // ../org.eclipse.eclipsecon.scoping.ui/src-gen/org/eclipse/eclipsecon/scoping/ui/contentassist/antlr/internal/InternalScoping.g:796:2: rule__FQN__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__FQN__Group_1__1__Impl_in_rule__FQN__Group_1__11538);\n rule__FQN__Group_1__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "8ea89394a81c38ac328494ee10d8ea16", "score": "0.65936196", "text": "public final void rule__Annotations__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23440:1: ( ( ( rule__Annotations__Group_1__0 )* ) )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23441:1: ( ( rule__Annotations__Group_1__0 )* )\r\n {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23441:1: ( ( rule__Annotations__Group_1__0 )* )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23442:1: ( rule__Annotations__Group_1__0 )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getAnnotationsAccess().getGroup_1()); \r\n }\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23443:1: ( rule__Annotations__Group_1__0 )*\r\n loop176:\r\n do {\r\n int alt176=2;\r\n int LA176_0 = input.LA(1);\r\n\r\n if ( (LA176_0==53) ) {\r\n alt176=1;\r\n }\r\n\r\n\r\n switch (alt176) {\r\n \tcase 1 :\r\n \t // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23443:2: rule__Annotations__Group_1__0\r\n \t {\r\n \t pushFollow(FOLLOW_rule__Annotations__Group_1__0_in_rule__Annotations__Group__1__Impl48082);\r\n \t rule__Annotations__Group_1__0();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return ;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop176;\r\n }\r\n } while (true);\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getAnnotationsAccess().getGroup_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "05ef5c3555fd1f657687310c288d8b19", "score": "0.658728", "text": "public final void rule__Annotation__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23524:1: ( rule__Annotation__Group__0__Impl rule__Annotation__Group__1 )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23525:2: rule__Annotation__Group__0__Impl rule__Annotation__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Annotation__Group__0__Impl_in_rule__Annotation__Group__048240);\r\n rule__Annotation__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Annotation__Group__1_in_rule__Annotation__Group__048243);\r\n rule__Annotation__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "01ee16a80fe33c71cd8869ae32de5106", "score": "0.6548777", "text": "public final void rule__Annotations__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23429:1: ( rule__Annotations__Group__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23430:2: rule__Annotations__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Annotations__Group__1__Impl_in_rule__Annotations__Group__148055);\r\n rule__Annotations__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "2bd7bbf65d53fded4126823466e52b92", "score": "0.65487254", "text": "public final void rule__FQN__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.eclipsecon.scoping.ui/src-gen/org/eclipse/eclipsecon/scoping/ui/contentassist/antlr/internal/InternalScoping.g:732:1: ( rule__FQN__Group__1__Impl )\n // ../org.eclipse.eclipsecon.scoping.ui/src-gen/org/eclipse/eclipsecon/scoping/ui/contentassist/antlr/internal/InternalScoping.g:733:2: rule__FQN__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__FQN__Group__1__Impl_in_rule__FQN__Group__11414);\n rule__FQN__Group__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "b029c08781eefe694c4f5273f55de01e", "score": "0.65475994", "text": "public final void rule__Expression0__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3339:1: ( rule__Expression0__Group_1__1__Impl )\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3340:2: rule__Expression0__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__Expression0__Group_1__1__Impl_in_rule__Expression0__Group_1__16757);\n rule__Expression0__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "09a9d633e0299ae9efb31f2e00f4bfb5", "score": "0.6539426", "text": "public final void rule__XFeatureCall__Group_1_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12798:1: ( rule__XFeatureCall__Group_1_2__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12799:2: rule__XFeatureCall__Group_1_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__1__Impl_in_rule__XFeatureCall__Group_1_2__125895);\n rule__XFeatureCall__Group_1_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "c3157f2fee71e86a75a376a0ade8d459", "score": "0.65322936", "text": "public final void rule__OpOther__Group_6_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:6822:1: ( rule__OpOther__Group_6_1_0_0__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:6823:2: rule__OpOther__Group_6_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__OpOther__Group_6_1_0_0__1__Impl_in_rule__OpOther__Group_6_1_0_0__114215);\n rule__OpOther__Group_6_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "f01c2cee3e11687071fc92bb9ee82cea", "score": "0.65315723", "text": "public final void rule__Operation__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:4265:1: ( rule__Operation__Group__1__Impl rule__Operation__Group__2 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:4266:2: rule__Operation__Group__1__Impl rule__Operation__Group__2\n {\n pushFollow(FOLLOW_rule__Operation__Group__1__Impl_in_rule__Operation__Group__19201);\n rule__Operation__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__Operation__Group__2_in_rule__Operation__Group__19204);\n rule__Operation__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "2b6c14897e0bc47ad9722ebd557985f5", "score": "0.65135866", "text": "public final void rule__Annotation__Group_1__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23585:1: ( rule__Annotation__Group_1__0__Impl rule__Annotation__Group_1__1 )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23586:2: rule__Annotation__Group_1__0__Impl rule__Annotation__Group_1__1\r\n {\r\n pushFollow(FOLLOW_rule__Annotation__Group_1__0__Impl_in_rule__Annotation__Group_1__048362);\r\n rule__Annotation__Group_1__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Annotation__Group_1__1_in_rule__Annotation__Group_1__048365);\r\n rule__Annotation__Group_1__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "31150d72b61b8b535a45a4108f5fbd3e", "score": "0.6509247", "text": "public final void rule__XFeatureCall__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13579:1: ( ( ( rule__XFeatureCall__Group_1_2__0 )* ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13580:1: ( ( rule__XFeatureCall__Group_1_2__0 )* )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13580:1: ( ( rule__XFeatureCall__Group_1_2__0 )* )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13581:1: ( rule__XFeatureCall__Group_1_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13582:1: ( rule__XFeatureCall__Group_1_2__0 )*\n loop99:\n do {\n int alt99=2;\n int LA99_0 = input.LA(1);\n\n if ( (LA99_0==59) ) {\n alt99=1;\n }\n\n\n switch (alt99) {\n \tcase 1 :\n \t // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13582:2: rule__XFeatureCall__Group_1_2__0\n \t {\n \t pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__0_in_rule__XFeatureCall__Group_1__2__Impl27508);\n \t rule__XFeatureCall__Group_1_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop99;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); \n }\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 }", "title": "" }, { "docid": "d24e9b7604398111cfcb294ca04f417f", "score": "0.6506425", "text": "public final void rule__ActiveClassDefinition__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:11182:1: ( rule__ActiveClassDefinition__Group__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:11183:2: rule__ActiveClassDefinition__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__ActiveClassDefinition__Group__1__Impl_in_rule__ActiveClassDefinition__Group__123883);\r\n rule__ActiveClassDefinition__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "170ebbddbd11ccd4282f0b68c3e59183", "score": "0.64947784", "text": "public final void rule__Expression900fy__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:2034:1: ( rule__Expression900fy__Group_0__1__Impl )\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:2035:2: rule__Expression900fy__Group_0__1__Impl\n {\n pushFollow(FOLLOW_rule__Expression900fy__Group_0__1__Impl_in_rule__Expression900fy__Group_0__14189);\n rule__Expression900fy__Group_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "37d10d16e415c58d87d7e6bce365cff9", "score": "0.6488438", "text": "public final void rule__OpOther__Group_6__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:6729:1: ( rule__OpOther__Group_6__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:6730:2: rule__OpOther__Group_6__1__Impl\n {\n pushFollow(FOLLOW_rule__OpOther__Group_6__1__Impl_in_rule__OpOther__Group_6__114033);\n rule__OpOther__Group_6__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "100e856dcd93de4b16d072c9dc5b2b8c", "score": "0.6482587", "text": "public final void rule__Group__Group_6__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalToscaDsl.g:5422:1: ( rule__Group__Group_6__1__Impl )\n // InternalToscaDsl.g:5423:2: rule__Group__Group_6__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Group__Group_6__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "3f2e30157eba4144da02c4202de07265", "score": "0.6481161", "text": "public final void rule__Annotation__Group_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23597:1: ( ( '(' ) )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23598:1: ( '(' )\r\n {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23598:1: ( '(' )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23599:1: '('\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getAnnotationAccess().getLeftParenthesisKeyword_1_0()); \r\n }\r\n match(input,54,FOLLOW_54_in_rule__Annotation__Group_1__0__Impl48393); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getAnnotationAccess().getLeftParenthesisKeyword_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "4163762830c22c042bc9021afd5e7587", "score": "0.6475727", "text": "public final void rule__ActivityDefinition__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:13236:1: ( rule__ActivityDefinition__Group__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:13237:2: rule__ActivityDefinition__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__ActivityDefinition__Group__1__Impl_in_rule__ActivityDefinition__Group__127948);\r\n rule__ActivityDefinition__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d88a4c30509aaa49539b079afaad1113", "score": "0.64719623", "text": "public final void rule__FeatureConfiguration__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3230:1: ( ( 'feature' ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3231:1: ( 'feature' )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3231:1: ( 'feature' )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3232:1: 'feature'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFeatureConfigurationAccess().getFeatureKeyword_1()); \n }\n match(input,41,FOLLOW_41_in_rule__FeatureConfiguration__Group__1__Impl6910); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFeatureConfigurationAccess().getFeatureKeyword_1()); \n }\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 }", "title": "" }, { "docid": "c18e6731a6fe51b655dace8b7282ebde", "score": "0.6457617", "text": "public final void rule__Annotation__Group_1__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23645:1: ( rule__Annotation__Group_1__2__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23646:2: rule__Annotation__Group_1__2__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Annotation__Group_1__2__Impl_in_rule__Annotation__Group_1__248484);\r\n rule__Annotation__Group_1__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "cc3d26f50702666f44055690a03341df", "score": "0.64545274", "text": "public final void rule__ClassDefinition__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:10681:1: ( rule__ClassDefinition__Group__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:10682:2: rule__ClassDefinition__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__ClassDefinition__Group__1__Impl_in_rule__ClassDefinition__Group__122893);\r\n rule__ClassDefinition__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "5f224c9ec8920a03f6d8a45af37c0193", "score": "0.6447317", "text": "public final void rule__XFeatureCall__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12527:1: ( ( ( rule__XFeatureCall__Group_1__0 )? ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12528:1: ( ( rule__XFeatureCall__Group_1__0 )? )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12528:1: ( ( rule__XFeatureCall__Group_1__0 )? )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12529:1: ( rule__XFeatureCall__Group_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12530:1: ( rule__XFeatureCall__Group_1__0 )?\n int alt89=2;\n int LA89_0 = input.LA(1);\n\n if ( (LA89_0==25) ) {\n alt89=1;\n }\n switch (alt89) {\n case 1 :\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12530:2: rule__XFeatureCall__Group_1__0\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__0_in_rule__XFeatureCall__Group__1__Impl25363);\n rule__XFeatureCall__Group_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_1()); \n }\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 }", "title": "" }, { "docid": "f735c8f58e9187988d1b5d537ce19b29", "score": "0.64372593", "text": "public final void rule__XFeatureCall__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12712:1: ( ( ( rule__XFeatureCall__Group_1_2__0 )* ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12713:1: ( ( rule__XFeatureCall__Group_1_2__0 )* )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12713:1: ( ( rule__XFeatureCall__Group_1_2__0 )* )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12714:1: ( rule__XFeatureCall__Group_1_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12715:1: ( rule__XFeatureCall__Group_1_2__0 )*\n loop92:\n do {\n int alt92=2;\n int LA92_0 = input.LA(1);\n\n if ( (LA92_0==51) ) {\n alt92=1;\n }\n\n\n switch (alt92) {\n \tcase 1 :\n \t // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12715:2: rule__XFeatureCall__Group_1_2__0\n \t {\n \t pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__0_in_rule__XFeatureCall__Group_1__2__Impl25735);\n \t rule__XFeatureCall__Group_1_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop92;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); \n }\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 }", "title": "" }, { "docid": "fed87cfb5262ffc5c7899bad73a52e1d", "score": "0.6435894", "text": "public final void rule__Agent__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPuRSUEML.g:2761:1: ( rule__Agent__Group__6__Impl )\n // InternalPuRSUEML.g:2762:2: rule__Agent__Group__6__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Agent__Group__6__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "407f929b9c5c3ad455400b7a7430d589", "score": "0.6434222", "text": "public final void rule__Expression__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:15982:1: ( rule__Expression__Group__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:15983:2: rule__Expression__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Expression__Group__1__Impl_in_rule__Expression__Group__133371);\r\n rule__Expression__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "526063a55656e9c0212b0e40ec49a7e4", "score": "0.6428986", "text": "public final void rule__Objective__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPuRSUEML.g:3193:1: ( rule__Objective__Group_0__1__Impl rule__Objective__Group_0__2 )\n // InternalPuRSUEML.g:3194:2: rule__Objective__Group_0__1__Impl rule__Objective__Group_0__2\n {\n pushFollow(FOLLOW_34);\n rule__Objective__Group_0__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Objective__Group_0__2();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "580d32c48819e5eb6c7e682862ee4748", "score": "0.64251834", "text": "public final void rule__XAdditiveExpression__Group_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7039:1: ( rule__XAdditiveExpression__Group_1_0_0__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:7040:2: rule__XAdditiveExpression__Group_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XAdditiveExpression__Group_1_0_0__1__Impl_in_rule__XAdditiveExpression__Group_1_0_0__114640);\n rule__XAdditiveExpression__Group_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "fcd4a66436eb237a44abf45c6a456292", "score": "0.6423988", "text": "public final void rule__Expression0__Group_4_2_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3718:1: ( rule__Expression0__Group_4_2_1__1__Impl )\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:3719:2: rule__Expression0__Group_4_2_1__1__Impl\n {\n pushFollow(FOLLOW_rule__Expression0__Group_4_2_1__1__Impl_in_rule__Expression0__Group_4_2_1__17497);\n rule__Expression0__Group_4_2_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "2030437d916ce87ef4e6dad7a27a2d49", "score": "0.6412376", "text": "public final void rule__FQN__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.eclipsecon.scoping.ui/src-gen/org/eclipse/eclipsecon/scoping/ui/contentassist/antlr/internal/InternalScoping.g:764:1: ( rule__FQN__Group_1__0__Impl rule__FQN__Group_1__1 )\n // ../org.eclipse.eclipsecon.scoping.ui/src-gen/org/eclipse/eclipsecon/scoping/ui/contentassist/antlr/internal/InternalScoping.g:765:2: rule__FQN__Group_1__0__Impl rule__FQN__Group_1__1\n {\n pushFollow(FOLLOW_rule__FQN__Group_1__0__Impl_in_rule__FQN__Group_1__01476);\n rule__FQN__Group_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__FQN__Group_1__1_in_rule__FQN__Group_1__01479);\n rule__FQN__Group_1__1();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "6a0a1deaa38d182a8bed8916f7dd1a2e", "score": "0.6407315", "text": "public final void rule__XFeatureCall__Group_3_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13820:1: ( rule__XFeatureCall__Group_3_1_1__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13821:2: rule__XFeatureCall__Group_3_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1__1__Impl_in_rule__XFeatureCall__Group_3_1_1__127975);\n rule__XFeatureCall__Group_3_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "73ce2495378e95aa00cd18a11e21af70", "score": "0.64064455", "text": "public final void rule__XFeatureCall__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13538:1: ( rule__XFeatureCall__Group_1__1__Impl rule__XFeatureCall__Group_1__2 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13539:2: rule__XFeatureCall__Group_1__1__Impl rule__XFeatureCall__Group_1__2\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__1__Impl_in_rule__XFeatureCall__Group_1__127418);\n rule__XFeatureCall__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__2_in_rule__XFeatureCall__Group_1__127421);\n rule__XFeatureCall__Group_1__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "ac1c3592897fad83fd95cafd47874b31", "score": "0.6402137", "text": "public final void rule__XFeatureCall__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13382:1: ( rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13383:2: rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__1__Impl_in_rule__XFeatureCall__Group__127106);\n rule__XFeatureCall__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group__2_in_rule__XFeatureCall__Group__127109);\n rule__XFeatureCall__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "d0e775fa9c346e3d8a12ed6fec8b57e2", "score": "0.63986534", "text": "public final void rule__XAdditiveExpression__Group_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7011:1: ( rule__XAdditiveExpression__Group_1_0_0__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:7012:2: rule__XAdditiveExpression__Group_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XAdditiveExpression__Group_1_0_0__1__Impl_in_rule__XAdditiveExpression__Group_1_0_0__114514);\n rule__XAdditiveExpression__Group_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "a737eb83a669dcc6b044305aae5c1c2a", "score": "0.6397093", "text": "public final void rule__Annotations__Group_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23492:1: ( rule__Annotations__Group_1__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23493:2: rule__Annotations__Group_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Annotations__Group_1__1__Impl_in_rule__Annotations__Group_1__148179);\r\n rule__Annotations__Group_1__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "f7d6554525b210a97b20b255720f1f0e", "score": "0.63921523", "text": "public final void rule__Annotation__Group_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23616:1: ( rule__Annotation__Group_1__1__Impl rule__Annotation__Group_1__2 )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23617:2: rule__Annotation__Group_1__1__Impl rule__Annotation__Group_1__2\r\n {\r\n pushFollow(FOLLOW_rule__Annotation__Group_1__1__Impl_in_rule__Annotation__Group_1__148424);\r\n rule__Annotation__Group_1__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Annotation__Group_1__2_in_rule__Annotation__Group_1__148427);\r\n rule__Annotation__Group_1__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "25e7280f1f4bc9dffd0c3189376bcf98", "score": "0.6389778", "text": "public final void rule__OpOther__Group_6__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6701:1: ( rule__OpOther__Group_6__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6702:2: rule__OpOther__Group_6__1__Impl\n {\n pushFollow(FOLLOW_rule__OpOther__Group_6__1__Impl_in_rule__OpOther__Group_6__113907);\n rule__OpOther__Group_6__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "34b4713740fa3481d57745b9095b35c6", "score": "0.63891035", "text": "public final void rule__XFeatureCall__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13394:1: ( ( ( rule__XFeatureCall__Group_1__0 )? ) )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13395:1: ( ( rule__XFeatureCall__Group_1__0 )? )\n {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13395:1: ( ( rule__XFeatureCall__Group_1__0 )? )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13396:1: ( rule__XFeatureCall__Group_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_1()); \n }\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13397:1: ( rule__XFeatureCall__Group_1__0 )?\n int alt96=2;\n int LA96_0 = input.LA(1);\n\n if ( (LA96_0==27) ) {\n alt96=1;\n }\n switch (alt96) {\n case 1 :\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13397:2: rule__XFeatureCall__Group_1__0\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__0_in_rule__XFeatureCall__Group__1__Impl27136);\n rule__XFeatureCall__Group_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_1()); \n }\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 }", "title": "" }, { "docid": "af40787e8f5b2475f8e78ff9b81248a4", "score": "0.63884264", "text": "public final void rule__OpOther__Group_6_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:6761:1: ( rule__OpOther__Group_6_1_0__0__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:6762:2: rule__OpOther__Group_6_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__OpOther__Group_6_1_0__0__Impl_in_rule__OpOther__Group_6_1_0__014094);\n rule__OpOther__Group_6_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "142a5a01839cd10adc174f2722a8d0e1", "score": "0.6386785", "text": "public final void rule__OpOther__Group_6_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6794:1: ( rule__OpOther__Group_6_1_0_0__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6795:2: rule__OpOther__Group_6_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__OpOther__Group_6_1_0_0__1__Impl_in_rule__OpOther__Group_6_1_0_0__114089);\n rule__OpOther__Group_6_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "edbe76e1e8db657dda1bf313c3554872", "score": "0.6382942", "text": "public final void rule__PackageDefinition__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:9713:1: ( rule__PackageDefinition__Group__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:9714:2: rule__PackageDefinition__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__PackageDefinition__Group__1__Impl_in_rule__PackageDefinition__Group__120979);\r\n rule__PackageDefinition__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "481b2866006afdc6dbcc0165e5044500", "score": "0.63740796", "text": "public final void rule__QUALIFIEDID__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.hsos.richwps.lang.ui/src-gen/de/hsos/richwps/ui/contentassist/antlr/internal/InternalDSL.g:3680:1: ( rule__QUALIFIEDID__Group__1__Impl )\n // ../de.hsos.richwps.lang.ui/src-gen/de/hsos/richwps/ui/contentassist/antlr/internal/InternalDSL.g:3681:2: rule__QUALIFIEDID__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__QUALIFIEDID__Group__1__Impl_in_rule__QUALIFIEDID__Group__17413);\n rule__QUALIFIEDID__Group__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "17b1afa2c754edcc454ca57cd823517c", "score": "0.6369985", "text": "public final void rule__ActivityDefinitionOrStub__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:13297:1: ( rule__ActivityDefinitionOrStub__Group__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:13298:2: rule__ActivityDefinitionOrStub__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__ActivityDefinitionOrStub__Group__1__Impl_in_rule__ActivityDefinitionOrStub__Group__128069);\r\n rule__ActivityDefinitionOrStub__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "106fed36c8b4bdb60960903c174e047c", "score": "0.6369615", "text": "public final void rule__Model__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:917:1: ( rule__Model__Group__1__Impl )\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:918:2: rule__Model__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__Model__Group__1__Impl_in_rule__Model__Group__11986);\n rule__Model__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "e8e3dd3bce2c08c8b2e693589f88e183", "score": "0.6367347", "text": "public final void rule__XFeatureCall__Group_3_1_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13883:1: ( rule__XFeatureCall__Group_3_1_1_1__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13884:2: rule__XFeatureCall__Group_3_1_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1_1__1__Impl_in_rule__XFeatureCall__Group_3_1_1_1__128099);\n rule__XFeatureCall__Group_3_1_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "53b5e40c9c4d8480490db3218808e956", "score": "0.6364319", "text": "public final void rule__XFeatureCall__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12671:1: ( rule__XFeatureCall__Group_1__1__Impl rule__XFeatureCall__Group_1__2 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12672:2: rule__XFeatureCall__Group_1__1__Impl rule__XFeatureCall__Group_1__2\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__1__Impl_in_rule__XFeatureCall__Group_1__125645);\n rule__XFeatureCall__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__2_in_rule__XFeatureCall__Group_1__125648);\n rule__XFeatureCall__Group_1__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "84990fe3607db799f293cdb5a4621153", "score": "0.6357733", "text": "public final void rule__RedefinitionClause__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:14890:1: ( rule__RedefinitionClause__Group__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:14891:2: rule__RedefinitionClause__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__RedefinitionClause__Group__1__Impl_in_rule__RedefinitionClause__Group__131218);\r\n rule__RedefinitionClause__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "dc7ac8a2dff30d545fd9536f69078430", "score": "0.63568944", "text": "public final void rule__QUALIFIEDNAME__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.hsos.richwps.lang.ui/src-gen/de/hsos/richwps/ui/contentassist/antlr/internal/InternalDSL.g:3556:1: ( rule__QUALIFIEDNAME__Group__1__Impl )\n // ../de.hsos.richwps.lang.ui/src-gen/de/hsos/richwps/ui/contentassist/antlr/internal/InternalDSL.g:3557:2: rule__QUALIFIEDNAME__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__QUALIFIEDNAME__Group__1__Impl_in_rule__QUALIFIEDNAME__Group__17170);\n rule__QUALIFIEDNAME__Group__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "e477b1254c2fc23ba0fff64cef50fd64", "score": "0.63566756", "text": "public final void rule__XFeatureCall__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13567:1: ( rule__XFeatureCall__Group_1__2__Impl rule__XFeatureCall__Group_1__3 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13568:2: rule__XFeatureCall__Group_1__2__Impl rule__XFeatureCall__Group_1__3\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__2__Impl_in_rule__XFeatureCall__Group_1__227478);\n rule__XFeatureCall__Group_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__3_in_rule__XFeatureCall__Group_1__227481);\n rule__XFeatureCall__Group_1__3();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "643eefa6eddb2f6d19b864ec6b0c4a1c", "score": "0.6347929", "text": "public final void rule__Operation__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:4234:1: ( rule__Operation__Group__0__Impl rule__Operation__Group__1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:4235:2: rule__Operation__Group__0__Impl rule__Operation__Group__1\n {\n pushFollow(FOLLOW_rule__Operation__Group__0__Impl_in_rule__Operation__Group__09139);\n rule__Operation__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__Operation__Group__1_in_rule__Operation__Group__09142);\n rule__Operation__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "bd8f15c800c495234156e0f93d628ccb", "score": "0.6345683", "text": "public final void rule__Float__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalBehaviordsl.g:14106:1: ( ( ( rule__Float__Group_1__0 )? ) )\n // InternalBehaviordsl.g:14107:1: ( ( rule__Float__Group_1__0 )? )\n {\n // InternalBehaviordsl.g:14107:1: ( ( rule__Float__Group_1__0 )? )\n // InternalBehaviordsl.g:14108:1: ( rule__Float__Group_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFloatAccess().getGroup_1()); \n }\n // InternalBehaviordsl.g:14109:1: ( rule__Float__Group_1__0 )?\n int alt74=2;\n int LA74_0 = input.LA(1);\n\n if ( (LA74_0==55) ) {\n alt74=1;\n }\n switch (alt74) {\n case 1 :\n // InternalBehaviordsl.g:14109:2: rule__Float__Group_1__0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Float__Group_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFloatAccess().getGroup_1()); \n }\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 }", "title": "" }, { "docid": "22e0168521e9ee6d2848d77f7c75cd46", "score": "0.6345062", "text": "public final void rule__XFeatureCall__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12515:1: ( rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12516:2: rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__1__Impl_in_rule__XFeatureCall__Group__125333);\n rule__XFeatureCall__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group__2_in_rule__XFeatureCall__Group__125336);\n rule__XFeatureCall__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "dd175a0b1d9dfd4834408fcb266afae0", "score": "0.6343224", "text": "public final void rule__QUALIFIEDID__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.hsos.richwps.lang.ui/src-gen/de/hsos/richwps/ui/contentassist/antlr/internal/InternalDSL.g:3743:1: ( rule__QUALIFIEDID__Group_1__1__Impl )\n // ../de.hsos.richwps.lang.ui/src-gen/de/hsos/richwps/ui/contentassist/antlr/internal/InternalDSL.g:3744:2: rule__QUALIFIEDID__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__QUALIFIEDID__Group_1__1__Impl_in_rule__QUALIFIEDID__Group_1__17537);\n rule__QUALIFIEDID__Group_1__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "5c8a5589292ba8a57bd94acbcd9213e9", "score": "0.63408697", "text": "public final void rule__Model__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.eclipsecon.scoping.ui/src-gen/org/eclipse/eclipsecon/scoping/ui/contentassist/antlr/internal/InternalScoping.g:263:1: ( rule__Model__Group__1__Impl )\n // ../org.eclipse.eclipsecon.scoping.ui/src-gen/org/eclipse/eclipsecon/scoping/ui/contentassist/antlr/internal/InternalScoping.g:264:2: rule__Model__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__Model__Group__1__Impl_in_rule__Model__Group__1489);\n rule__Model__Group__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "33a3cdabab27ac5943a2c161fb755edd", "score": "0.6337707", "text": "public final void rule__Objective__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPuRSUEML.g:3328:1: ( rule__Objective__Group_1__0__Impl rule__Objective__Group_1__1 )\n // InternalPuRSUEML.g:3329:2: rule__Objective__Group_1__0__Impl rule__Objective__Group_1__1\n {\n pushFollow(FOLLOW_14);\n rule__Objective__Group_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Objective__Group_1__1();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "83920c510fa99d71c31c1086f932f3b6", "score": "0.63374376", "text": "public final void rule__XAdditiveExpression__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:6946:1: ( rule__XAdditiveExpression__Group_1__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:6947:2: rule__XAdditiveExpression__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XAdditiveExpression__Group_1__1__Impl_in_rule__XAdditiveExpression__Group_1__114459);\n rule__XAdditiveExpression__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "1dc903b671d0cee73e0de179b1653f07", "score": "0.63346297", "text": "public final void rule__ClassDeclaration__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:10587:1: ( rule__ClassDeclaration__Group__1__Impl rule__ClassDeclaration__Group__2 )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:10588:2: rule__ClassDeclaration__Group__1__Impl rule__ClassDeclaration__Group__2\r\n {\r\n pushFollow(FOLLOW_rule__ClassDeclaration__Group__1__Impl_in_rule__ClassDeclaration__Group__122708);\r\n rule__ClassDeclaration__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__ClassDeclaration__Group__2_in_rule__ClassDeclaration__Group__122711);\r\n rule__ClassDeclaration__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "4be052e733a4904a2428a625171cf94b", "score": "0.63341063", "text": "public final void rule__Declaration__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../algorithmMaker.input.ui/src-gen/algorithmMaker/ui/contentassist/antlr/internal/InternalInput.g:2057:1: ( rule__Declaration__Group__1__Impl )\n // ../algorithmMaker.input.ui/src-gen/algorithmMaker/ui/contentassist/antlr/internal/InternalInput.g:2058:2: rule__Declaration__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__Declaration__Group__1__Impl_in_rule__Declaration__Group__14188);\n rule__Declaration__Group__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "4aaf76784d153b469adfd5fbb5223179", "score": "0.6325854", "text": "public final void rule__Agent__Group_6__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPuRSUEML.g:3085:1: ( rule__Agent__Group_6__2__Impl )\n // InternalPuRSUEML.g:3086:2: rule__Agent__Group_6__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Agent__Group_6__2__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "270ccb217fcb4b603463082814d904c5", "score": "0.63249147", "text": "public final void rule__XFeatureCall__Group_3_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12953:1: ( rule__XFeatureCall__Group_3_1_1__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12954:2: rule__XFeatureCall__Group_3_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1__1__Impl_in_rule__XFeatureCall__Group_3_1_1__126202);\n rule__XFeatureCall__Group_3_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "3ad2a292bc911685a5e8c47b819e0eb6", "score": "0.63241404", "text": "public final void rule__XAdditiveExpression__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:6978:1: ( rule__XAdditiveExpression__Group_1_0__0__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:6979:2: rule__XAdditiveExpression__Group_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XAdditiveExpression__Group_1_0__0__Impl_in_rule__XAdditiveExpression__Group_1_0__014520);\n rule__XAdditiveExpression__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "a904976511bab0f5483970980ca77744", "score": "0.63237077", "text": "public final void rule__Agent__Group_4__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPuRSUEML.g:2869:1: ( rule__Agent__Group_4__1__Impl )\n // InternalPuRSUEML.g:2870:2: rule__Agent__Group_4__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Agent__Group_4__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "902b6dad3b113af4fb19a557f57ee81b", "score": "0.6322997", "text": "public final void rule__XAdditiveExpression__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6918:1: ( rule__XAdditiveExpression__Group_1__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6919:2: rule__XAdditiveExpression__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XAdditiveExpression__Group_1__1__Impl_in_rule__XAdditiveExpression__Group_1__114333);\n rule__XAdditiveExpression__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "8d8652daac3d08ddfb2db4a7aa64c600", "score": "0.6320697", "text": "public final void rule__QUALIFIEDNAME__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.hsos.richwps.lang.ui/src-gen/de/hsos/richwps/ui/contentassist/antlr/internal/InternalDSL.g:3619:1: ( rule__QUALIFIEDNAME__Group_1__1__Impl )\n // ../de.hsos.richwps.lang.ui/src-gen/de/hsos/richwps/ui/contentassist/antlr/internal/InternalDSL.g:3620:2: rule__QUALIFIEDNAME__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__QUALIFIEDNAME__Group_1__1__Impl_in_rule__QUALIFIEDNAME__Group_1__17294);\n rule__QUALIFIEDNAME__Group_1__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "d5f4b2cdb0e77d15da315ed41c00ad38", "score": "0.63199824", "text": "public final void rule__Test__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStateMachine.g:990:1: ( rule__Test__Group__1__Impl )\n // InternalStateMachine.g:991:2: rule__Test__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Test__Group__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "f0e3296b4173abc1e20bfb958da92a7a", "score": "0.6318795", "text": "public final void rule__Expression1150fx__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:1353:1: ( rule__Expression1150fx__Group__1__Impl )\n // ../ai.vital.flora2.edit.ui/src-gen/ai/vital/flora2/edit/ui/contentassist/antlr/internal/InternalFlora2Editor.g:1354:2: rule__Expression1150fx__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__Expression1150fx__Group__1__Impl_in_rule__Expression1150fx__Group__12848);\n rule__Expression1150fx__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "597f190d33135fc42f2e870775def916", "score": "0.6312939", "text": "public final void rule__FQN__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.eclipsecon.scoping.ui/src-gen/org/eclipse/eclipsecon/scoping/ui/contentassist/antlr/internal/InternalScoping.g:703:1: ( rule__FQN__Group__0__Impl rule__FQN__Group__1 )\n // ../org.eclipse.eclipsecon.scoping.ui/src-gen/org/eclipse/eclipsecon/scoping/ui/contentassist/antlr/internal/InternalScoping.g:704:2: rule__FQN__Group__0__Impl rule__FQN__Group__1\n {\n pushFollow(FOLLOW_rule__FQN__Group__0__Impl_in_rule__FQN__Group__01355);\n rule__FQN__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__FQN__Group__1_in_rule__FQN__Group__01358);\n rule__FQN__Group__1();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "94df842101ed747aa3cb2a2743e9a09e", "score": "0.63122046", "text": "public final void rule__URI__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.hsos.richwps.lang.ui/src-gen/de/hsos/richwps/ui/contentassist/antlr/internal/InternalDSL.g:3806:1: ( rule__URI__Group__1__Impl )\n // ../de.hsos.richwps.lang.ui/src-gen/de/hsos/richwps/ui/contentassist/antlr/internal/InternalDSL.g:3807:2: rule__URI__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__URI__Group__1__Impl_in_rule__URI__Group__17659);\n rule__URI__Group__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "cb6eb53001add3696b9ef8850e0b4eea", "score": "0.6311856", "text": "public final void rule__FeatureConfiguration__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3187:1: ( rule__FeatureConfiguration__Group__0__Impl rule__FeatureConfiguration__Group__1 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3188:2: rule__FeatureConfiguration__Group__0__Impl rule__FeatureConfiguration__Group__1\n {\n pushFollow(FOLLOW_rule__FeatureConfiguration__Group__0__Impl_in_rule__FeatureConfiguration__Group__06818);\n rule__FeatureConfiguration__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__FeatureConfiguration__Group__1_in_rule__FeatureConfiguration__Group__06821);\n rule__FeatureConfiguration__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "24c1fa262b78c616da92956a2a1e4724", "score": "0.63105655", "text": "public final void rule__XFeatureCall__Group_4_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10733:1: ( rule__XFeatureCall__Group_4_1_1__1__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:10734:2: rule__XFeatureCall__Group_4_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_4_1_1__1__Impl_in_rule__XFeatureCall__Group_4_1_1__121664);\n rule__XFeatureCall__Group_4_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "34f53bb922749354e8facae9c1c9e4f4", "score": "0.6306002", "text": "public final void rule__XFeatureCall__Group_1_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13634:1: ( rule__XFeatureCall__Group_1_2__0__Impl rule__XFeatureCall__Group_1_2__1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13635:2: rule__XFeatureCall__Group_1_2__0__Impl rule__XFeatureCall__Group_1_2__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__0__Impl_in_rule__XFeatureCall__Group_1_2__027606);\n rule__XFeatureCall__Group_1_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1_2__1_in_rule__XFeatureCall__Group_1_2__027609);\n rule__XFeatureCall__Group_1_2__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "034075a06e7170b890b9334fc306739d", "score": "0.63058543", "text": "public final void rule__Annotations__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23400:1: ( rule__Annotations__Group__0__Impl rule__Annotations__Group__1 )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23401:2: rule__Annotations__Group__0__Impl rule__Annotations__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Annotations__Group__0__Impl_in_rule__Annotations__Group__047995);\r\n rule__Annotations__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Annotations__Group__1_in_rule__Annotations__Group__047998);\r\n rule__Annotations__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d2750349e8a50d5f8fd68671724dd8b3", "score": "0.6305602", "text": "public final void rule__XAdditiveExpression__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6950:1: ( rule__XAdditiveExpression__Group_1_0__0__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6951:2: rule__XAdditiveExpression__Group_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XAdditiveExpression__Group_1_0__0__Impl_in_rule__XAdditiveExpression__Group_1_0__014394);\n rule__XAdditiveExpression__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "24b27c1abfb599d662dd72021f4089c9", "score": "0.6304125", "text": "public final void rule__FeatureConfiguration__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3218:1: ( rule__FeatureConfiguration__Group__1__Impl rule__FeatureConfiguration__Group__2 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3219:2: rule__FeatureConfiguration__Group__1__Impl rule__FeatureConfiguration__Group__2\n {\n pushFollow(FOLLOW_rule__FeatureConfiguration__Group__1__Impl_in_rule__FeatureConfiguration__Group__16879);\n rule__FeatureConfiguration__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__FeatureConfiguration__Group__2_in_rule__FeatureConfiguration__Group__16882);\n rule__FeatureConfiguration__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "bc08e6b48ce683a38cf48b9c798b7dbe", "score": "0.63033706", "text": "public final void rule__Agent__Group_6_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPuRSUEML.g:3112:1: ( rule__Agent__Group_6_2__0__Impl rule__Agent__Group_6_2__1 )\n // InternalPuRSUEML.g:3113:2: rule__Agent__Group_6_2__0__Impl rule__Agent__Group_6_2__1\n {\n pushFollow(FOLLOW_14);\n rule__Agent__Group_6_2__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Agent__Group_6_2__1();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "695257317770db80f76afd8ef0a554b2", "score": "0.6302884", "text": "public final void rule__XFeatureCall__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13507:1: ( rule__XFeatureCall__Group_1__0__Impl rule__XFeatureCall__Group_1__1 )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13508:2: rule__XFeatureCall__Group_1__0__Impl rule__XFeatureCall__Group_1__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__0__Impl_in_rule__XFeatureCall__Group_1__027356);\n rule__XFeatureCall__Group_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__1_in_rule__XFeatureCall__Group_1__027359);\n rule__XFeatureCall__Group_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "00c0511f63b14bb1423f318327436ad8", "score": "0.6299843", "text": "public final void rule__OpOther__Group_6_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6733:1: ( rule__OpOther__Group_6_1_0__0__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:6734:2: rule__OpOther__Group_6_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__OpOther__Group_6_1_0__0__Impl_in_rule__OpOther__Group_6_1_0__013968);\n rule__OpOther__Group_6_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "92757068e1bfb720b05d983e66f01c4a", "score": "0.6299659", "text": "public final void rule__ClassDefinition__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:10652:1: ( rule__ClassDefinition__Group__0__Impl rule__ClassDefinition__Group__1 )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:10653:2: rule__ClassDefinition__Group__0__Impl rule__ClassDefinition__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__ClassDefinition__Group__0__Impl_in_rule__ClassDefinition__Group__022833);\r\n rule__ClassDefinition__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__ClassDefinition__Group__1_in_rule__ClassDefinition__Group__022836);\r\n rule__ClassDefinition__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "017ab21fdf737ba8fa2a6bcbadd395ff", "score": "0.62994677", "text": "public final void rule__ProcessDefinition__Group_2_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalGoatComponentsParser.g:2042:1: ( rule__ProcessDefinition__Group_2_0__1__Impl )\n // InternalGoatComponentsParser.g:2043:2: rule__ProcessDefinition__Group_2_0__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ProcessDefinition__Group_2_0__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "d2130aeabdfe8ab30cc3c42f860abf79", "score": "0.62983644", "text": "public final void rule__XFeatureCall__Group_3_1_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13016:1: ( rule__XFeatureCall__Group_3_1_1_1__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13017:2: rule__XFeatureCall__Group_3_1_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_3_1_1_1__1__Impl_in_rule__XFeatureCall__Group_3_1_1_1__126326);\n rule__XFeatureCall__Group_3_1_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "4807457222e1bf5de4db4ed0cb54266d", "score": "0.62979263", "text": "public final void rule__LocationPrimitiveFCExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalBehaviordsl.g:13591:1: ( rule__LocationPrimitiveFCExpression__Group__1__Impl )\n // InternalBehaviordsl.g:13592:2: rule__LocationPrimitiveFCExpression__Group__1__Impl\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__LocationPrimitiveFCExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "45d89f523e42b2268c8aa2d6ede7dcf0", "score": "0.6296676", "text": "public final void rule__AdditiveExpressionCompletion__Group_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:21174:1: ( rule__AdditiveExpressionCompletion__Group_1__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:21175:2: rule__AdditiveExpressionCompletion__Group_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__AdditiveExpressionCompletion__Group_1__1__Impl_in_rule__AdditiveExpressionCompletion__Group_1__143594);\r\n rule__AdditiveExpressionCompletion__Group_1__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d5d0ad1e474545fbb9f6ba140dda3672", "score": "0.6296499", "text": "public final void rule__PlusOrMinus__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalGoatComponentsParser.g:6396:1: ( rule__PlusOrMinus__Group__1__Impl )\n // InternalGoatComponentsParser.g:6397:2: rule__PlusOrMinus__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__PlusOrMinus__Group__1__Impl();\n\n state._fsp--;\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 }", "title": "" }, { "docid": "dc76b3521faedacafe2c54c66127d095", "score": "0.62943006", "text": "public final void rule__XAnnotation__Group_3_1_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:4311:1: ( rule__XAnnotation__Group_3_1_0__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:4312:2: rule__XAnnotation__Group_3_1_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XAnnotation__Group_3_1_0__1__Impl_in_rule__XAnnotation__Group_3_1_0__19220);\n rule__XAnnotation__Group_3_1_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "76b992c8922a1ce48ff10628641f3143", "score": "0.6293477", "text": "public final void rule__AdditiveExpressionCompletion__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:21113:1: ( rule__AdditiveExpressionCompletion__Group__1__Impl )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:21114:2: rule__AdditiveExpressionCompletion__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__AdditiveExpressionCompletion__Group__1__Impl_in_rule__AdditiveExpressionCompletion__Group__143472);\r\n rule__AdditiveExpressionCompletion__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "7695086d5637954589ea6454dab2f5e9", "score": "0.6292554", "text": "public final void rule__ActiveClassDefinition__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:11153:1: ( rule__ActiveClassDefinition__Group__0__Impl rule__ActiveClassDefinition__Group__1 )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:11154:2: rule__ActiveClassDefinition__Group__0__Impl rule__ActiveClassDefinition__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__ActiveClassDefinition__Group__0__Impl_in_rule__ActiveClassDefinition__Group__023823);\r\n rule__ActiveClassDefinition__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__ActiveClassDefinition__Group__1_in_rule__ActiveClassDefinition__Group__023826);\r\n rule__ActiveClassDefinition__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "629f58d9aac1cbe4934cb1b4047ba676", "score": "0.6288599", "text": "public final void rule__XAnnotation__Group_3_1_0_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:4374:1: ( rule__XAnnotation__Group_3_1_0_1__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:4375:2: rule__XAnnotation__Group_3_1_0_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XAnnotation__Group_3_1_0_1__1__Impl_in_rule__XAnnotation__Group_3_1_0_1__19344);\n rule__XAnnotation__Group_3_1_0_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "f632378694737d14739a354218ece08e", "score": "0.6287532", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8243:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:8244:2: rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_0_0__117011);\n rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "ef3933430b8ccd29e44fde02495be844", "score": "0.6283542", "text": "public final void rule__XAnnotation__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:4090:1: ( rule__XAnnotation__Group__1__Impl rule__XAnnotation__Group__2 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:4091:2: rule__XAnnotation__Group__1__Impl rule__XAnnotation__Group__2\n {\n pushFollow(FOLLOW_rule__XAnnotation__Group__1__Impl_in_rule__XAnnotation__Group__18782);\n rule__XAnnotation__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XAnnotation__Group__2_in_rule__XAnnotation__Group__18785);\n rule__XAnnotation__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "a5f4fb6bd8055c33b6366249b23882e6", "score": "0.6279378", "text": "public final void rule__End__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalBehaviordsl.g:14315:1: ( rule__End__Group__1__Impl )\n // InternalBehaviordsl.g:14316:2: rule__End__Group__1__Impl\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__End__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "d2c4c67657bdd2a22798bdfb2b13f5a7", "score": "0.62776035", "text": "public final void rule__XFeatureCall__Group_1__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13596:1: ( rule__XFeatureCall__Group_1__3__Impl )\n // ../org.eclipse.xtext.idea.example.entities.ui/src-gen/org/eclipse/xtext/idea/example/entities/ui/contentassist/antlr/internal/InternalEntities.g:13597:2: rule__XFeatureCall__Group_1__3__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__3__Impl_in_rule__XFeatureCall__Group_1__327539);\n rule__XFeatureCall__Group_1__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "93b67f406cca6013efccc4f10f34dc11", "score": "0.627672", "text": "public final void rule__Annotation__Group_1__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23656:1: ( ( ')' ) )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23657:1: ( ')' )\r\n {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23657:1: ( ')' )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:23658:1: ')'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getAnnotationAccess().getRightParenthesisKeyword_1_2()); \r\n }\r\n match(input,55,FOLLOW_55_in_rule__Annotation__Group_1__2__Impl48512); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getAnnotationAccess().getRightParenthesisKeyword_1_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "21af6694f6bbb12dec4cafcf3510de72", "score": "0.62766534", "text": "public final void rule__XFeatureCall__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12700:1: ( rule__XFeatureCall__Group_1__2__Impl rule__XFeatureCall__Group_1__3 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12701:2: rule__XFeatureCall__Group_1__2__Impl rule__XFeatureCall__Group_1__3\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__2__Impl_in_rule__XFeatureCall__Group_1__225705);\n rule__XFeatureCall__Group_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_1__3_in_rule__XFeatureCall__Group_1__225708);\n rule__XFeatureCall__Group_1__3();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" } ]
b1664a43e41c369704ee69360bdfb5ee
repeated .DRG0120U00GrdDrg0120ItemInfo list_info = 1;
[ { "docid": "ad21a2dacc1bbc5969b473574a17bd50", "score": "0.5929678", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfoOrBuilder> \n getListInfoOrBuilderList() {\n return listInfo_;\n }", "title": "" } ]
[ { "docid": "bb3b02ef3a171d50b7487c182a42246d", "score": "0.6581512", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001Info> \n getLay9001ItemList();", "title": "" }, { "docid": "bb3b02ef3a171d50b7487c182a42246d", "score": "0.658104", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001Info> \n getLay9001ItemList();", "title": "" }, { "docid": "aeb79e14cfc73b489d8caa173910d814", "score": "0.64439505", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1InfoOrBuilder> \n getListInfoOrBuilderList();", "title": "" }, { "docid": "5ae8aecae315178d5d2c83f3252f16e9", "score": "0.6409341", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfoOrBuilder> \n getListInfoOrBuilderList();", "title": "" }, { "docid": "6f20baa3a3b2730b0c544383e22ad0d2", "score": "0.6325277", "text": "nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1Info getListInfo(int index);", "title": "" }, { "docid": "2a1ff26a3052da8d02c430634ddf1261", "score": "0.6318723", "text": "nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo getListInfo(int index);", "title": "" }, { "docid": "1e0a0dc8a9f73a15cb53be339f6ed280", "score": "0.6288596", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfoOrBuilder getListInfoOrBuilder(\n int index) {\n return listInfo_.get(index);\n }", "title": "" }, { "docid": "30fdecd26f863c578f26b3b2af4438e3", "score": "0.6283589", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo.Builder addListInfoBuilder() {\n return getListInfoFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "d2e3607805ad329de570b2574a585439", "score": "0.62097716", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfoOrBuilder getListInfoOrBuilder(\n int index) {\n if (listInfoBuilder_ == null) {\n return listInfo_.get(index); } else {\n return listInfoBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "903a0de0f8aad78ee080004a538718a4", "score": "0.62095714", "text": "java.util.List<nta.med.service.ihis.proto.DrugModelProto.DRG9001GetLay9001Info> \n getListItemList();", "title": "" }, { "docid": "96979c8eb077da4a076c7ff613292bdb", "score": "0.61765605", "text": "java.util.List<nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1Info> \n getListInfoList();", "title": "" }, { "docid": "515d1c4ea7c2a3a0165a22490c2a67e5", "score": "0.61603695", "text": "java.util.List<nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo> \n getListInfoList();", "title": "" }, { "docid": "b82e64312a41683dd0431b5ecf6d58e5", "score": "0.6155177", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1InfoOrBuilder getListInfoOrBuilder(\n int index) {\n return listInfo_.get(index);\n }", "title": "" }, { "docid": "194dbe1286a27c4b7ac0a46e042d57ee", "score": "0.6120977", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfoOrBuilder> \n getListInfoOrBuilderList();", "title": "" }, { "docid": "1196607a1b6fcff6c914503936429270", "score": "0.6102646", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo getListInfo(int index) {\n return listInfo_.get(index);\n }", "title": "" }, { "docid": "5467a6ca4b900349b988cc0e42280d05", "score": "0.6064537", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfoOrBuilder> \n getListInfoOrBuilderList() {\n if (listInfoBuilder_ != null) {\n return listInfoBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(listInfo_);\n }\n }", "title": "" }, { "docid": "90fdc7cab3110072fcc5cb4cf1c585ca", "score": "0.6062945", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1InfoOrBuilder getListInfoOrBuilder(\n int index) {\n if (listInfoBuilder_ == null) {\n return listInfo_.get(index); } else {\n return listInfoBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "fac06bb158512006d57b8f5f3c65439a", "score": "0.6061907", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRG9001GetLay9001InfoOrBuilder> \n getListItemOrBuilderList();", "title": "" }, { "docid": "7fa48242804e89285fabc165109c678b", "score": "0.6057546", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001InfoOrBuilder> \n getLay9001ItemOrBuilderList();", "title": "" }, { "docid": "7fa48242804e89285fabc165109c678b", "score": "0.60568273", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG9001R02Lay9001InfoOrBuilder> \n getLay9001ItemOrBuilderList();", "title": "" }, { "docid": "a35a753793ce457bd79421dad1c263e0", "score": "0.6045866", "text": "nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfo getListInfo(int index);", "title": "" }, { "docid": "a2569459d83bd1075fff67d60e55fb6d", "score": "0.60415953", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo getListInfo(int index) {\n if (listInfoBuilder_ == null) {\n return listInfo_.get(index);\n } else {\n return listInfoBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "49e5eb56d3a36f6dab4b5dde1a394326", "score": "0.60327864", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfoOrBuilder getListInfoOrBuilder(\n int index) {\n return listInfo_.get(index);\n }", "title": "" }, { "docid": "67309113dd0e3164b6ce4267c34835f5", "score": "0.602191", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG9001R04lay9001RInfo> \n getItemsList();", "title": "" }, { "docid": "f84bc7cb9192572b8494229ca07eb100", "score": "0.60122025", "text": "void mo103611a(List<ComposerInfo> list, int i);", "title": "" }, { "docid": "c4b92f3f99e0ef11a346c2e9b9adca38", "score": "0.59939885", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1Info getListInfo(int index) {\n return listInfo_.get(index);\n }", "title": "" }, { "docid": "e3d8f4645fd34237256ff56e5a5b25dc", "score": "0.59877723", "text": "nta.med.service.ihis.proto.DrugModelProto.DRG9001GetLay9001Info getListItem(int index);", "title": "" }, { "docid": "2baf3fd1bcc2b44bc5a3df4a63364b03", "score": "0.59837496", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG9001R03lay9001RInfo> \n getItemsList();", "title": "" }, { "docid": "52afde8ced3eb9bf39e191339879b483", "score": "0.5977325", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1Info.Builder addListInfoBuilder() {\n return getListInfoFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1Info.getDefaultInstance());\n }", "title": "" }, { "docid": "dc0bc1b1ad39ad46b44a1d4e7fb6e339", "score": "0.5957324", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1InfoOrBuilder> \n getListInfoOrBuilderList() {\n if (listInfoBuilder_ != null) {\n return listInfoBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(listInfo_);\n }\n }", "title": "" }, { "docid": "f5f856f2fc5f2693f93352c38aa6fafd", "score": "0.5942474", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1Info getListInfo(int index) {\n if (listInfoBuilder_ == null) {\n return listInfo_.get(index);\n } else {\n return listInfoBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "43e2600911ddcb631ed95d215ba36a41", "score": "0.59140265", "text": "java.util.List<nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfo> \n getListInfoList();", "title": "" }, { "docid": "71c68f63f25986f56420f4b93c19a36e", "score": "0.59107953", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DrgsDRG0130U00GrdDrg0130ListItemInfo> \n getGrdDrg0130ListList();", "title": "" }, { "docid": "d137c72eacf15a4820e0f5602f2a1e16", "score": "0.5910327", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108InfoOrBuilder> \n getListInfoOrBuilderList();", "title": "" }, { "docid": "d137c72eacf15a4820e0f5602f2a1e16", "score": "0.59095883", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108InfoOrBuilder> \n getListInfoOrBuilderList();", "title": "" }, { "docid": "7d242bf4302bb39fe4cb855a6ea02ee8", "score": "0.58832437", "text": "java.util.List<nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo> \n getInputListList();", "title": "" }, { "docid": "b266f47dd1fb1d3aa707d9a5c759c1f0", "score": "0.58600277", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfoOrBuilder> \n getListInfoOrBuilderList() {\n if (listInfoBuilder_ != null) {\n return listInfoBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(listInfo_);\n }\n }", "title": "" }, { "docid": "16607d1869458ca5f3d67a8a1904d321", "score": "0.585174", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG0140U00GrdDetailInfo> \n getGrdDetailItemList();", "title": "" }, { "docid": "7b71b9994d883e18ef22e9d43f7de424", "score": "0.58380604", "text": "nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo getInputList(int index);", "title": "" }, { "docid": "fff0ef8194c610437afe7bf5e421bff9", "score": "0.5833052", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1InfoOrBuilder> \n getListInfoOrBuilderList() {\n return listInfo_;\n }", "title": "" }, { "docid": "6c977cbd41f6406b59da5c0d8ba41e72", "score": "0.5824418", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfoOrBuilder getListInfoOrBuilder(\n int index) {\n if (listInfoBuilder_ == null) {\n return listInfo_.get(index); } else {\n return listInfoBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "8393d806554eb64462f9784436dcc614", "score": "0.58187187", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfo.Builder addListInfoBuilder() {\n return getListInfoFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "6c89072fe49b001095f399c1c86703c6", "score": "0.5785653", "text": "java.util.List<nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKGrdOcsChkFullInfo> \n getListItemList();", "title": "" }, { "docid": "1aabce8ddd3b4dc70baa148b0e27549d", "score": "0.5776786", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108InfoOrBuilder> \n getListInfoOrBuilderList() {\n if (listInfoBuilder_ != null) {\n return listInfoBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(listInfo_);\n }\n }", "title": "" }, { "docid": "1aabce8ddd3b4dc70baa148b0e27549d", "score": "0.5775858", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108InfoOrBuilder> \n getListInfoOrBuilderList() {\n if (listInfoBuilder_ != null) {\n return listInfoBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(listInfo_);\n }\n }", "title": "" }, { "docid": "6597542caa19080ef6360746bef0d913", "score": "0.5770875", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfo getListInfo(int index) {\n return listInfo_.get(index);\n }", "title": "" }, { "docid": "903368c388b08f80badaf212bef0e2ce", "score": "0.57701534", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKGrdOcsChkFullInfoOrBuilder> \n getListItemOrBuilderList();", "title": "" }, { "docid": "099a5d8b3699684c3d065790ad4d285a", "score": "0.5752321", "text": "java.util.List<jd.search.request.JdSearchRequest.BookInstItemsData> \n getBookInstItemsDataList();", "title": "" }, { "docid": "f4de70576002f5b5dcc4f9a263721de6", "score": "0.5746185", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfoOrBuilder> \n getListInfoOrBuilderList() {\n return listInfo_;\n }", "title": "" }, { "docid": "8d19756ebcc48593fbe72fd7c7b571e6", "score": "0.5741103", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108InfoOrBuilder getListInfoOrBuilder(\n int index) {\n return listInfo_.get(index);\n }", "title": "" }, { "docid": "8d19756ebcc48593fbe72fd7c7b571e6", "score": "0.57402176", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108InfoOrBuilder getListInfoOrBuilder(\n int index) {\n return listInfo_.get(index);\n }", "title": "" }, { "docid": "9e3c797dab3ae629817a7f4c158cecaf", "score": "0.5708956", "text": "java.util.List<nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfo> \n getInputListList();", "title": "" }, { "docid": "64e2fb128bdc5bd26a68ef35a0251fc9", "score": "0.5708434", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3041P06LabelInfo> \n getItemsList();", "title": "" }, { "docid": "c7b10dd8d5b887fb5206e3512a1d41e3", "score": "0.57013977", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12AntibioticListgrdAntibioticListInfo> \n getItemsList();", "title": "" }, { "docid": "175db4d5532bfa8c7759316514ddfcf2", "score": "0.57000273", "text": "nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfo getInputList(int index);", "title": "" }, { "docid": "f4df86742810fa4d2dd1957be1d06e50", "score": "0.56931275", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0102U00GrdDetailInfo getListInfo(int index) {\n if (listInfoBuilder_ == null) {\n return listInfo_.get(index);\n } else {\n return listInfoBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "3f70d22cd79ae2b42d7ea0bbe792a39d", "score": "0.5688152", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3041P01grdChulgoListInfo> \n getItemsList();", "title": "" }, { "docid": "28b4b9ec86b452b615a1bef1bda2cfe9", "score": "0.5678387", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3041P05LabelInfo> \n getItemsList();", "title": "" }, { "docid": "b4b964d7eea5cb27b6578197ca802b5c", "score": "0.5677062", "text": "public void info(Customlist<Integer> list) {\n\t\t\r\n\t}", "title": "" }, { "docid": "92a896c5e91607a8fb3f4593a07d69f4", "score": "0.56750953", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108InfoOrBuilder> \n getListInfoOrBuilderList() {\n return listInfo_;\n }", "title": "" }, { "docid": "92a896c5e91607a8fb3f4593a07d69f4", "score": "0.56746864", "text": "public java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108InfoOrBuilder> \n getListInfoOrBuilderList() {\n return listInfo_;\n }", "title": "" }, { "docid": "b00bde1a3df0d7a40f08b9a6bdf896fd", "score": "0.5666464", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfo> \n getItemsList();", "title": "" }, { "docid": "7e917e3aab1d59e87b44afc787318d97", "score": "0.5665742", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKGrdOcsChkFullInfoOrBuilder> \n getListInfoOrBuilderList();", "title": "" }, { "docid": "745d57c9a039aa1ce6eaa4a56895bac6", "score": "0.56580776", "text": "nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108Info getListInfo(int index);", "title": "" }, { "docid": "745d57c9a039aa1ce6eaa4a56895bac6", "score": "0.5656833", "text": "nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108Info getListInfo(int index);", "title": "" }, { "docid": "6db4f0102dd8c59cf586fedc9f280863", "score": "0.5656148", "text": "java.util.List<nta.med.service.ihis.proto.CommonModelProto.TripleListItemInfo> \n getGrdDetailList();", "title": "" }, { "docid": "872c7850ed138fe098d23f9683031389", "score": "0.5653705", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3041P01grdChulgoJUSAOrderInfo> \n getItemsList();", "title": "" }, { "docid": "3fd17b33da3403a917c072672cd1d7f4", "score": "0.563311", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108Info.Builder addListInfoBuilder() {\n return getListInfoFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108Info.getDefaultInstance());\n }", "title": "" }, { "docid": "3fd17b33da3403a917c072672cd1d7f4", "score": "0.56303155", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108Info.Builder addListInfoBuilder() {\n return getListInfoFieldBuilder().addBuilder(\n nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108Info.getDefaultInstance());\n }", "title": "" }, { "docid": "dac925ffb77e7071a2bee125c25c6d43", "score": "0.56258696", "text": "java.util.List<nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKGrdOcsChkInfo> \n getListItemList();", "title": "" }, { "docid": "eb8de0b14f46a3bc653421b614c3e396", "score": "0.562389", "text": "LCMetaData getMetaData(List x);", "title": "" }, { "docid": "30d4e27b7b5b43eeb928992d55cb7452", "score": "0.5616818", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG3010Q12grdPalistInfoOrBuilder> \n getItemsOrBuilderList();", "title": "" }, { "docid": "d829975b09c266b1fc37e4a5194a26c0", "score": "0.5613744", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo.Builder addListInfoBuilder(\n int index) {\n return getListInfoFieldBuilder().addBuilder(\n index, nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "68649c341c49b93afc0ba4d539981971", "score": "0.56105244", "text": "interface CodeList158 {\n}", "title": "" }, { "docid": "6edcc398e903bc2f00c56838625e6c62", "score": "0.5604175", "text": "java.util.List<? extends org.qmstr.grpc.service.Datamodel.InfoNodeOrBuilder> \n getAdditionalInfoOrBuilderList();", "title": "" }, { "docid": "6edcc398e903bc2f00c56838625e6c62", "score": "0.5604175", "text": "java.util.List<? extends org.qmstr.grpc.service.Datamodel.InfoNodeOrBuilder> \n getAdditionalInfoOrBuilderList();", "title": "" }, { "docid": "5287c449bc9f914830193635d4fb8b84", "score": "0.5590615", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfoOrBuilder> \n getGrdDetailItemInfoOrBuilderList();", "title": "" }, { "docid": "5287c449bc9f914830193635d4fb8b84", "score": "0.5590615", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG0102U01GrdDetailItemInfoOrBuilder> \n getGrdDetailItemInfoOrBuilderList();", "title": "" }, { "docid": "86c375644dab9b7243250d1b53b3dcf1", "score": "0.55837584", "text": "java.util.List<nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108Info> \n getListInfoList();", "title": "" }, { "docid": "86c375644dab9b7243250d1b53b3dcf1", "score": "0.55826443", "text": "java.util.List<nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108Info> \n getListInfoList();", "title": "" }, { "docid": "94004988040abb7e044d3df5708bcbe0", "score": "0.5581322", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfoOrBuilder> \n getInputListOrBuilderList();", "title": "" }, { "docid": "7f26f7677ce6893aba6d124230dce72e", "score": "0.5577272", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKGrdOcsChkInfoOrBuilder> \n getListItemOrBuilderList();", "title": "" }, { "docid": "23432e319829af4d668dbe90c6093609", "score": "0.55743086", "text": "public Builder addListInfo(nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo value) {\n if (listInfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListInfoIsMutable();\n listInfo_.add(value);\n onChanged();\n } else {\n listInfoBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "44fbc972037e3689a509e967c9660165", "score": "0.55729944", "text": "java.util.List<jd.search.request.JdSearchRequest.InstCid3Data> \n getInstCid3DataList();", "title": "" }, { "docid": "8b588fdd36b73a5e8047d752148ceed3", "score": "0.55711", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG9001GetLay9001InfoOrBuilder getListItemOrBuilder(\n int index) {\n return listItem_.get(index);\n }", "title": "" }, { "docid": "c2e42d8d22ab724e67c6ffb744715195", "score": "0.55652684", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfo.Builder getListInfoBuilder(\n int index) {\n return getListInfoFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "3c79b2f9e8100fa0b13bdc75c637b9dd", "score": "0.55629665", "text": "nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120ItemInfoOrBuilder getListInfoOrBuilder(\n int index);", "title": "" }, { "docid": "606e550e9c1660c3681e91dbf86adba2", "score": "0.5559206", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108InfoOrBuilder getListInfoOrBuilder(\n int index) {\n if (listInfoBuilder_ == null) {\n return listInfo_.get(index); } else {\n return listInfoBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "606e550e9c1660c3681e91dbf86adba2", "score": "0.5557643", "text": "public nta.med.service.ihis.proto.DrugModelProto.DRGOCSCHKgrdOCS0108InfoOrBuilder getListInfoOrBuilder(\n int index) {\n if (listInfoBuilder_ == null) {\n return listInfo_.get(index); } else {\n return listInfoBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "6506c4560c0e70e82880dc8988456c05", "score": "0.5554969", "text": "java.util.List<nta.med.service.ihis.proto.DrgsModelProto.DRG3041P05grdIpgoJUSAOrderInfo> \n getItemsList();", "title": "" }, { "docid": "ff3a385d43ed712ee8a388862d9a5140", "score": "0.55546033", "text": "java.util.List<? extends nta.med.service.ihis.proto.DrgsModelProto.DRG9001R04lay9001RInfoOrBuilder> \n getItemsOrBuilderList();", "title": "" }, { "docid": "9727d3f52e3c4f1242cfe9c38b05d83c", "score": "0.55534124", "text": "private void processPlayList(android.media.MediaScanner.FileEntry r19, android.database.Cursor r20) throws android.os.RemoteException {\r\n /*\r\n r18 = this;\r\n r6 = r18;\r\n r7 = r19;\r\n r8 = r7.mPath;\r\n r0 = new android.content.ContentValues;\r\n r0.<init>();\r\n r9 = r0;\r\n r0 = 47;\r\n r10 = r8.lastIndexOf(r0);\r\n if (r10 < 0) goto L_0x0101;\r\n L_0x0014:\r\n r0 = r7.mRowId;\r\n r2 = \"name\";\r\n r3 = r9.getAsString(r2);\r\n if (r3 != 0) goto L_0x0042;\r\n L_0x001f:\r\n r4 = \"title\";\r\n r3 = r9.getAsString(r4);\r\n if (r3 != 0) goto L_0x0040;\r\n L_0x0028:\r\n r4 = 46;\r\n r4 = r8.lastIndexOf(r4);\r\n if (r4 >= 0) goto L_0x0037;\r\n L_0x0030:\r\n r5 = r10 + 1;\r\n r5 = r8.substring(r5);\r\n goto L_0x003d;\r\n L_0x0037:\r\n r5 = r10 + 1;\r\n r5 = r8.substring(r5, r4);\r\n L_0x003d:\r\n r3 = r5;\r\n r11 = r3;\r\n goto L_0x0043;\r\n L_0x0040:\r\n r11 = r3;\r\n goto L_0x0043;\r\n L_0x0042:\r\n r11 = r3;\r\n L_0x0043:\r\n r9.put(r2, r11);\r\n r2 = r7.mLastModified;\r\n r2 = java.lang.Long.valueOf(r2);\r\n r3 = \"date_modified\";\r\n r9.put(r3, r2);\r\n r2 = 0;\r\n r2 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\r\n r3 = \"members\";\r\n if (r2 != 0) goto L_0x0073;\r\n L_0x005a:\r\n r2 = \"_data\";\r\n r9.put(r2, r8);\r\n r2 = r6.mMediaProvider;\r\n r4 = r6.mPlaylistsUri;\r\n r2 = r2.insert(r4, r9);\r\n r0 = android.content.ContentUris.parseId(r2);\r\n r3 = android.net.Uri.withAppendedPath(r2, r3);\r\n r12 = r0;\r\n r14 = r2;\r\n r15 = r3;\r\n goto L_0x008b;\r\n L_0x0073:\r\n r2 = r6.mPlaylistsUri;\r\n r2 = android.content.ContentUris.withAppendedId(r2, r0);\r\n r4 = r6.mMediaProvider;\r\n r5 = 0;\r\n r4.update(r2, r9, r5, r5);\r\n r3 = android.net.Uri.withAppendedPath(r2, r3);\r\n r4 = r6.mMediaProvider;\r\n r4.delete(r3, r5, r5);\r\n r12 = r0;\r\n r14 = r2;\r\n r15 = r3;\r\n L_0x008b:\r\n r0 = r10 + 1;\r\n r1 = 0;\r\n r16 = r8.substring(r1, r0);\r\n r5 = android.media.MediaFile.getMimeTypeForFile(r8);\r\n r2 = r5.hashCode();\r\n r3 = -1165508903; // 0xffffffffba87bed9 float:-0.001035656 double:NaN;\r\n r4 = 2;\r\n r0 = 1;\r\n if (r2 == r3) goto L_0x00bf;\r\n L_0x00a1:\r\n r3 = 264230524; // 0xfbfd67c float:1.891667E-29 double:1.305472245E-315;\r\n if (r2 == r3) goto L_0x00b5;\r\n L_0x00a6:\r\n r3 = 1872259501; // 0x6f9869ad float:9.433895E28 double:9.250190995E-315;\r\n if (r2 == r3) goto L_0x00ac;\r\n L_0x00ab:\r\n goto L_0x00c9;\r\n L_0x00ac:\r\n r2 = \"application/vnd.ms-wpl\";\r\n r2 = r5.equals(r2);\r\n if (r2 == 0) goto L_0x00ab;\r\n L_0x00b4:\r\n goto L_0x00ca;\r\n L_0x00b5:\r\n r1 = \"audio/x-mpegurl\";\r\n r1 = r5.equals(r1);\r\n if (r1 == 0) goto L_0x00ab;\r\n L_0x00bd:\r\n r1 = r0;\r\n goto L_0x00ca;\r\n L_0x00bf:\r\n r1 = \"audio/x-scpls\";\r\n r1 = r5.equals(r1);\r\n if (r1 == 0) goto L_0x00ab;\r\n L_0x00c7:\r\n r1 = r4;\r\n goto L_0x00ca;\r\n L_0x00c9:\r\n r1 = -1;\r\n L_0x00ca:\r\n if (r1 == 0) goto L_0x00f1;\r\n L_0x00cc:\r\n if (r1 == r0) goto L_0x00e2;\r\n L_0x00ce:\r\n if (r1 == r4) goto L_0x00d3;\r\n L_0x00d0:\r\n r17 = r5;\r\n goto L_0x0100;\r\n L_0x00d3:\r\n r0 = r18;\r\n r1 = r8;\r\n r2 = r16;\r\n r3 = r15;\r\n r4 = r9;\r\n r17 = r5;\r\n r5 = r20;\r\n r0.processPlsPlayList(r1, r2, r3, r4, r5);\r\n goto L_0x0100;\r\n L_0x00e2:\r\n r17 = r5;\r\n r0 = r18;\r\n r1 = r8;\r\n r2 = r16;\r\n r3 = r15;\r\n r4 = r9;\r\n r5 = r20;\r\n r0.processM3uPlayList(r1, r2, r3, r4, r5);\r\n goto L_0x0100;\r\n L_0x00f1:\r\n r17 = r5;\r\n r0 = r18;\r\n r1 = r8;\r\n r2 = r16;\r\n r3 = r15;\r\n r4 = r9;\r\n r5 = r20;\r\n r0.processWplPlayList(r1, r2, r3, r4, r5);\r\n L_0x0100:\r\n return;\r\n L_0x0101:\r\n r0 = new java.lang.IllegalArgumentException;\r\n r1 = new java.lang.StringBuilder;\r\n r1.<init>();\r\n r2 = \"bad path \";\r\n r1.append(r2);\r\n r1.append(r8);\r\n r1 = r1.toString();\r\n r0.<init>(r1);\r\n throw r0;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: android.media.MediaScanner.processPlayList(android.media.MediaScanner$FileEntry, android.database.Cursor):void\");\r\n }", "title": "" }, { "docid": "d057d851c279865899280b3c15ecb7d8", "score": "0.554557", "text": "private static void _addItemInfo(Object data, ArrayList<ArrayList<Object>> resultInf) {\n ArrayList<Object> record = new ArrayList<>(); \n // Normalne data\n record.add(data);\n // Meno id\n record.add(data);\n resultInf.add(record); \n }", "title": "" }, { "docid": "49509c087e8cb3de6703dac4038ea0b6", "score": "0.5544327", "text": "void mo103612a(List<ComposerInfo> list, List<ComposerInfo> list2, int i);", "title": "" }, { "docid": "23131d4dbe0fab11b3059054ac2e2017", "score": "0.55415976", "text": "nta.med.service.ihis.proto.DrugModelProto.DRG0120U00GrdDrg0120Item1InfoOrBuilder getListInfoOrBuilder(\n int index);", "title": "" }, { "docid": "2eb00d99208e5403524d9f3fb87597e3", "score": "0.55396074", "text": "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "title": "" }, { "docid": "2eb00d99208e5403524d9f3fb87597e3", "score": "0.55396074", "text": "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "title": "" }, { "docid": "2eb00d99208e5403524d9f3fb87597e3", "score": "0.55396074", "text": "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "title": "" }, { "docid": "2eb00d99208e5403524d9f3fb87597e3", "score": "0.55396074", "text": "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "title": "" }, { "docid": "2eb00d99208e5403524d9f3fb87597e3", "score": "0.55396074", "text": "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "title": "" } ]
a0ebb2b86104856be4a5724b13f22749
Returns the last element of the list, or zero if the list is empty.
[ { "docid": "bc152e73fa34ac1f90e245d015ed6fff", "score": "0.7457787", "text": "public final long last() {\n\t\treturn this.size > 0 ? this.values[this.size - 1] : 0L;\n\t}", "title": "" } ]
[ { "docid": "e8577871d28dc3b3cd8214ef659e401f", "score": "0.80199015", "text": "public int last(){\r\n\t\tint notThere = -1;\r\n\t\tif(count==0){\r\n\t\t\treturn notThere;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn list[count-1];\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "87bf9636583200a29f16ef90015ad40e", "score": "0.78263426", "text": "public T last() {\n int size = this.list.size();\n return size > 0 ? this.list.get(size - 1) : null;\n }", "title": "" }, { "docid": "0ce24957ab25d47bed540dec8a6db3a6", "score": "0.7540734", "text": "public double getLast() {\n if (size == 0) {\n throw new IndexOutOfBoundsException(\"Tried to access the last element in an empty list\");\n }\n\n return elements[size - 1];\n }", "title": "" }, { "docid": "460b0267e7aa7154fe8ede28fcbb2813", "score": "0.7380012", "text": "int getLast() {\n if ( this.isEmpty() ) {\n throw new RuntimeException(\"List Error: getLast() called on empty List\");\n }\n return back.data;\n }", "title": "" }, { "docid": "2bade71e860f04b9a7839a5819814812", "score": "0.7351569", "text": "public int getLast() {\n\n if (isEmpty()) {\n throw new NoSuchElementException(\"There is no elements in the list\");\n }\n return getNode(size - 1).value;\n }", "title": "" }, { "docid": "526b1edd41e21c66de38600b53b250c3", "score": "0.71758413", "text": "@Override\n\tpublic T getLast() throws NoSuchElementException {\n\t\tif (size == 0) {\n\t\t\tthrow new NoSuchElementException(\"Empty List\");\n\t\t} else {\n\t\t\treturn tail.element;\n\t\t}\n\t}", "title": "" }, { "docid": "f2115e5e00fab0c9f9130bd0c7e39a80", "score": "0.7155508", "text": "public E getLast() {\n\t\tE toReturn=null;\n\t\ttry {\n\t\t\ttoReturn =lista.last().element();\n\t\t} catch (EmptyListException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn toReturn;\n\n\t}", "title": "" }, { "docid": "58cf464d6fd3775b1f774cf188e24ca5", "score": "0.71201587", "text": "@Override\n\tpublic Position<E> last() throws EmptyListException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "948101865f46d370ddd4fe48f8af4cd1", "score": "0.7013868", "text": "public final @Nullable E last() {\n if (this == EMPTY) return null;\n E single = asElement();\n if (single != null) return single;\n List<E> list = asRandomAccess();\n if (list != null) {\n return list.isEmpty() ? null : list.get(list.size() - 1);\n }\n E cur = null;\n for (E e : this) {\n cur = e;\n }\n return cur;\n }", "title": "" }, { "docid": "0209d8df93083aa9777c5562048c8686", "score": "0.692832", "text": "public LAtom last() {\n\t\tif (values.size() < 1) { return new LList(); }\n\t\treturn values.get(values.size()-1);\n\t}", "title": "" }, { "docid": "a5d62080f05fd93807357e7de51011bc", "score": "0.69042766", "text": "protected short getLastElement(short[] itemSet) {\r\n // Check for empty item set\r\n\tif (itemSet == null) return(0);\r\n\t// Otherwise return last element\r\n return(itemSet[itemSet.length-1]);\r\n\t}", "title": "" }, { "docid": "b987b916889700c64c7a722ca83d169f", "score": "0.68700707", "text": "public <T> T lastValue(List<T> elements) {\n int numElements = elements.size();\n return elements.get(numElements-1);\n }", "title": "" }, { "docid": "4ab87e847fc34572b587675525a513f9", "score": "0.68498737", "text": "public T last() {\n\t\treturn get(size - 1);\n\n\t}", "title": "" }, { "docid": "ec6da388f1e2c67456a1b65eb2608472", "score": "0.6780677", "text": "public E last() {\n if (isEmpty()) return null;\n return tail.getElement();\n }", "title": "" }, { "docid": "704fa64b7d18aa01a3690b5ba01f190b", "score": "0.6777125", "text": "public T peekLast() {\n if (isEmpty())\n throw new RuntimeException(\"Empty List\");\n\n return tail.data;\n }", "title": "" }, { "docid": "447c9e7a04143253751a9b782906f5f1", "score": "0.67417806", "text": "@Override\r\n\tpublic Object last() {\r\n\r\n\t\t/*\r\n\t\t * If empty, throw exception. Otherwise, return the last element.\r\n\t\t */\r\n\r\n\t\tif (tail == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else\r\n\t\t\treturn tail.data;\r\n\t}", "title": "" }, { "docid": "cdb2eb2d36a2c9162b8480e418be4d82", "score": "0.671646", "text": "public T last() {\n if (this.isEmpty())\n throw new NoSuchElementException();\n return get(this.size - 1);\n }", "title": "" }, { "docid": "691746ba84f458b9c72f8e10b7ac2f5a", "score": "0.67067415", "text": "public T getLast() {\n Node<T> temp = head;\n if (head == null) {\n return null;\n } \n else {\n while (temp.getnext() != null) {\n temp = temp.getnext();\n }\n return temp.getItem();\n }\n }", "title": "" }, { "docid": "2536b55ee8fbefe03a23397d908dff56", "score": "0.6687317", "text": "public T last() throws IndexOutOfBoundsException {\n return this.get(this.size() - 1);\n }", "title": "" }, { "docid": "25f2ef3fdb3e35c5ffb7348545b0ef1b", "score": "0.6685537", "text": "public E removeLast() {\n\t\tE toReturn=null;\n\t\ttry {\n\t\t\ttoReturn=lista.remove(lista.last());\n\t\t\tsize--;\n\t\t} catch (InvalidPositionException|EmptyListException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn toReturn;\n\t}", "title": "" }, { "docid": "4a1d5afb1c7083eac3f7e11706fe7e40", "score": "0.6651929", "text": "public int getLast() {\n return sentinel.prev.item;\n }", "title": "" }, { "docid": "ab4beebc1ee012532cae19b02bdbea9c", "score": "0.6650579", "text": "public E last() { return linkedList.getRear(back); }", "title": "" }, { "docid": "2b6c6cca7691228eb53e27bcd146a110", "score": "0.6627481", "text": "public <T> T lastValueLL(LinkedList<T> elements) {\n int numElements = elements.size();\n return elements.getLast();\n }", "title": "" }, { "docid": "57dfe9af52db55452cb0207b83d4b317", "score": "0.6624203", "text": "public T getLast () {\r\n\r\n\t\tif (size > 0){\r\n\t\t\tpointer = last;\r\n\t\t\treturn last.getData();\r\n\t\t}\r\n\t\treturn null;\r\n\r\n\t}", "title": "" }, { "docid": "f0466dd39f90ab1d01567bdf29b8e522", "score": "0.66002935", "text": "public int getValueOfLastIndex() {\n if (this.indexOfLastElement == -1) {\r\n return (this.indexOfLastElement + 1);\r\n } else {\r\n return this.indexOfLastElement;\r\n }\r\n }", "title": "" }, { "docid": "aaae515b9ee7311b8222c72ed780c6ca", "score": "0.6566808", "text": "public String getLastAux() {\n throw new RuntimeException(\"Cannot get the last of an empty list\");\n }", "title": "" }, { "docid": "5725587b813b123bece6d26fe12ca63a", "score": "0.65595084", "text": "@Override\n public E last( ) {\n if (isEmpty( )) return null;\n return data[(f+sz-1)%data.length];\n }", "title": "" }, { "docid": "52fbc9e66d1c90ac78ae7c977e882cdd", "score": "0.65432453", "text": "public int getLastIndex(ArrayList<Task> list) {\n int index = list.size() - ARRAY_INDEX_FINDER;\n return Math.max(index, ZERO);\n }", "title": "" }, { "docid": "0c1790e50f33e762ba8ecb5c01e67861", "score": "0.65425575", "text": "public T last(){\r\n\r\n\t\tif(getTail() != null){\r\n\t\t\treturn getTail().getInfo();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"Can't Get LAST element, As myQueue is empty\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d2721fb2a33b5f5723d3054ed76dbe0c", "score": "0.6534082", "text": "@Override\n public E getLast() throws IllegalStateException {\n if (size <= 0){\n String message = \"The list is empty \";\n throw new IndexOutOfBoundsException(message);\n }\n \n return get(size()-1);\n }", "title": "" }, { "docid": "0321777ac435f4d488c98bea67bdfb17", "score": "0.65095544", "text": "private int lastNotEmpty(){\n int i = elements.length-1;\n while (elements[i]==null) { i--; }\n return i+1;\n }", "title": "" }, { "docid": "12258b2c51197a0c1f1adc64472ddfec", "score": "0.65043443", "text": "@Override\r\n public Node last() {\n if(!isEmpty()){\r\n Node aux = head;\r\n while(aux != null){\r\n if(aux.getNext() == null) break;\r\n else aux = aux.getNext();\r\n }return aux;\r\n }else return null;\r\n }", "title": "" }, { "docid": "cb1a08c7cb9e7bc58056589246b1ed41", "score": "0.64945006", "text": "private int lastNodeIndex() {\n return nodeList.size()-1;\n }", "title": "" }, { "docid": "80576d555b465a6fe571198d4fe77628", "score": "0.6486765", "text": "public E getLast()\n {\n Node<E> myLastNode = myHead;\n \n // If the linked list is empty return null\n if(myHead == null)\n {\n return null;\n } \n \n // Loop through the linked list until reaching the end. Return the datum of the last node.\n for(Node<E> myStart = myHead; myStart != null; myStart = myStart.getNext())\n {\n if(myStart.getNext() == null)\n {\n myLastNode = myStart;\n }\n }\n \n return myLastNode.getData();\n }", "title": "" }, { "docid": "0957f55705d20a8457e37fabb77a3d35", "score": "0.6485576", "text": "public E getLast() {\n final Node<E> l = last;\n if (l == null)\n throw new NoSuchElementException();\n return l.item;\n }", "title": "" }, { "docid": "43590eb66a3937a91d9af22153823def", "score": "0.64308304", "text": "public double max() {\n\t\tdouble max = -1000000000.0;\n\t\tif (size > 0) {\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tif (list[i] > max) max = list[i];\n\t\t\t}\n\t\t\t\n\t\t\treturn max;\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Error: cannot find max value because list is empty.\");\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "16c129e1404113c3957cc2f57ccedcb0", "score": "0.6424157", "text": "public static Integer max(ArrayList<Integer> list){\r\n\t\t\r\n\t\tCollections.sort(list);\r\n\t\tInteger broj = list.get(list.size() - 1);\r\n\t\treturn broj;\t\r\n\t}", "title": "" }, { "docid": "12a57cdba05e130be1818243e1b5b39c", "score": "0.64084065", "text": "final public int getLast() {\n return last;\n }", "title": "" }, { "docid": "77884dbca1c473de342a8e8038ba05aa", "score": "0.6401368", "text": "public int getValueOfLastElement() {\n if (this.indexOfLastElement == -1) {\r\n return (sizeOfMatrix + 1);\r\n } else {\r\n return sudukoArray[indexOfLastElement];\r\n }\r\n }", "title": "" }, { "docid": "ef4b302ef6d342e0aa590eb8197e9ee7", "score": "0.6376782", "text": "public int getMax()\n\t{\n\t\treturn tickList.size() - 1;\n\t}", "title": "" }, { "docid": "2868e37c54dea119fa49054565e6059c", "score": "0.6361216", "text": "T last()\n\t\t {\n\t\t\t node<T> temp = this.head[0];\n\t\t\t while(temp.next !=null)\n\t\t\t {\n\t\t\t\ttemp = temp.next;\n\t\t\t }\n\t\t\t\treturn temp.data;\n\n\t\t\t \n\t\t }", "title": "" }, { "docid": "5651b562ad3a2370d3c3318a38c84dd5", "score": "0.6351882", "text": "public int getLast() {\n return last;\n }", "title": "" }, { "docid": "618a791fbd15c18a0d790fa7adc9fe8a", "score": "0.6328648", "text": "public int getLast() {\n\t\t\treturn this.last;\n\t\t}", "title": "" }, { "docid": "135971b94f7632259f7ae9b8a9c19354", "score": "0.63028187", "text": "public int first(){\r\n\t\tint notThere = -1;\r\n\t\tif(count==0){\r\n\t\t\treturn notThere;\r\n\t\t}\r\n\t\telse{\r\n\t\t\t return list[0];\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2c89a0427cc8cf055118db29d205a54a", "score": "0.62977153", "text": "public T last() {\n return lastEntry.element;\n }", "title": "" }, { "docid": "93096e89affcf021c2f886931679b932", "score": "0.6275478", "text": "public N pop() {\n\t\treturn list.remove(list.size()-1);\n\t}", "title": "" }, { "docid": "d723a482c50986573bdc5a904d0c8239", "score": "0.6250181", "text": "public OutputNumberMem getLast(){\n return outputNumberMemList.get(outputNumberMemList.size() - 1);\n }", "title": "" }, { "docid": "78d86ed3d3547fe92783edfb87b8dcdb", "score": "0.62483656", "text": "public E peek() {\n return theList.get(size()-1); // this throws outOfBoundsException\n }", "title": "" }, { "docid": "b91088221aa7e7a897732e95e40c2597", "score": "0.6243592", "text": "@Override\n\tpublic Position<E> last() {\n\t\treturn position(tail.getPrev());\n\t}", "title": "" }, { "docid": "e6b14b892bbc7ec225c122eb34435596", "score": "0.62204695", "text": "public int removeLast() {\n\n if (isEmpty()) {\n throw new NoSuchElementException(\"There is no elements in the list\");\n }\n Node last = null;\n if (size == 1) {\n last = head;\n head = null;\n } else {\n Node secondLast = getNode(size - 2);\n last = secondLast.next;\n secondLast.next = null;\n }\n\n size--;\n return last.value;\n }", "title": "" }, { "docid": "fe3cbfbbbb9fcc8f05053b0627be3e6f", "score": "0.6207695", "text": "E getLast() throws NoSuchElementE;", "title": "" }, { "docid": "fe3cbfbbbb9fcc8f05053b0627be3e6f", "score": "0.6207695", "text": "E getLast() throws NoSuchElementE;", "title": "" }, { "docid": "017bd22805a008108f50aa9aae34d975", "score": "0.6175958", "text": "public int lastIndex() {\n return this.size() - 1;\n }", "title": "" }, { "docid": "b72dfec68a1fb85247d21ac25ef6bb81", "score": "0.61634976", "text": "public T last();", "title": "" }, { "docid": "b72dfec68a1fb85247d21ac25ef6bb81", "score": "0.61634976", "text": "public T last();", "title": "" }, { "docid": "3834b925bcb665ac0dca956595b396b4", "score": "0.6159849", "text": "@Override\n public T removeLast() { // ---------------------------need to fix\n if (size == 0) {\n return null;\n }\n size -= 1;\n nextlast -= 1;\n T item = items[nextlast];\n items[nextlast] = null;\n resize();\n return item;\n }", "title": "" }, { "docid": "ed8afc99ee553b04d0e0f56a23023ea4", "score": "0.6154701", "text": "public T largest() {\n\tT ans=list.get(0);\n\tfor(int i=1; i<list.size(); i++) {\n\t\tT nextNum = list.get(i); \n\t\tif(nextNum.doubleValue() > ans.doubleValue()) { //checks if the next numbers in the arraylist are bigger than the number in the zero index\n\t\t\tans=nextNum; //if yes then sets ans to be the highest number\n\t\t}\n\t\t//if the if statement isn't run than it returns the number at the zero index\n}\n\treturn ans;\n}", "title": "" }, { "docid": "88321da0ce523525b21eeb000370147a", "score": "0.6142797", "text": "public T top()\n {\n try\n {\n return aList.get(aList.size() - 1);\n }\n catch (ArrayIndexOutOfBoundsException e)\n {\n throw f;\n }\n\n }", "title": "" }, { "docid": "b45d7227b6131013352cc44bc1316895", "score": "0.6124181", "text": "Position<E> last();", "title": "" }, { "docid": "be3120075a62259eae652cad72692168", "score": "0.6114228", "text": "private int getMaxIndex() {\n return elements.size() - 1;\n }", "title": "" }, { "docid": "ec1d822947701596faf6e9b153640910", "score": "0.6104454", "text": "public static int lastElm(int[] arr) {\n return arr[arr.length - 1];\n }", "title": "" }, { "docid": "2c812811a037a8567f632e8ee9ad9c1e", "score": "0.60872453", "text": "T getLast() throws NullPointerException;", "title": "" }, { "docid": "d9d67bdcb850577b7ba6dfa4f6bb9516", "score": "0.6045801", "text": "public int returnMax(List<Integer> list) {\n int max = Integer.MIN_VALUE;\n int index = -1;\n for (int i = 0; i < list.size(); ++i) {\n if (list.get(i) > max) {\n max = list.get(i);\n index = i;\n }\n }\n return list.get(index);\n }", "title": "" }, { "docid": "6231967891c7a1ef19d8b22a80caa389", "score": "0.6038708", "text": "public SlotValue getLastSlot() {\n List<SlotValue> sorted = getSortedSlotAsList();\n return sorted.isEmpty() ? null : sorted.get(sorted.size() - 1);\n }", "title": "" }, { "docid": "2e84d6fb03931c8b845ea0bc791a4e4e", "score": "0.6037566", "text": "public static long last(long[] array) {\n\t\treturn array[array.length - 1];\n\t}", "title": "" }, { "docid": "07d26a99eb3db33066fdd5feb3f257b1", "score": "0.60358983", "text": "public Node<E> getLast() {\n if (tail == null) {\n return null;\n } else {\n return tail;\n }\n }", "title": "" }, { "docid": "2b496657a90bcfff9d5a7f0a267ef505", "score": "0.6025097", "text": "public static int highest(int[] list) {\n return 0;\n }", "title": "" }, { "docid": "bc7df1af52f4faf8b01a0e2aad46fe8e", "score": "0.6022841", "text": "public int getRear() {\n if (size == 0) {\n return -1;\n }\n return last == 0 ? arr[arr.length - 1] : arr[last - 1];\n }", "title": "" }, { "docid": "e7102ba526f1085f691da8fc9f0e1da4", "score": "0.6019656", "text": "public static Integer max(ArrayList<Integer> list) {\n\t\tif ((list.size() == 0) || (list == null)) {\r\n\t\t\treturn null;\r\n\r\n\t\t}\r\n\t\tInteger max = 0;\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tif (list.get(i) > max) {\r\n\t\t\t\tmax = list.get(i);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn max;\r\n\t}", "title": "" }, { "docid": "274866a3250c7e57684d3c3a3d35c7fb", "score": "0.6012989", "text": "private double max(ArrayList<Double> responseTimeList){\n return responseTimeList.get(responseTimeList.size()-1);\n }", "title": "" }, { "docid": "1241488eb32132ddd0b5732a3ec75781", "score": "0.6004153", "text": "public Object getNextValue() {\n/* 204 */ return (this.index >= this.list.size() - 1) ? null : this.list.get(this.index + 1);\n/* */ }", "title": "" }, { "docid": "15cb4db77eacb25562dde1ab813a3c24", "score": "0.5992388", "text": "public Object lastElement() {\n return this.getModel().last();\r\n }", "title": "" }, { "docid": "aa0fc35f560b206868e63c995082a7c6", "score": "0.59814376", "text": "public T getLast() {\n return _tail;\n }", "title": "" }, { "docid": "9c4d1ab9318e2e95a7a3e54c9ba730d1", "score": "0.59812903", "text": "public SimpleSequence last() {\n\t\treturn (SimpleSequence) _sequences.lastElement();\n\t}", "title": "" }, { "docid": "543637c2f0888b68e9d57dcc52192f24", "score": "0.5957746", "text": "public int getAddsLast() {\n return adds-addsLast;\n }", "title": "" }, { "docid": "0bef36b38f23b564d370344bd489d6ef", "score": "0.5956864", "text": "private boolean testLast(IndexedUnsortedList<Integer> list, Integer expectedElement, Result expectedResult) {\n Result result;\n try {\n Integer retVal = list.last();\n if (retVal.equals(expectedElement)) {\n result = Result.MatchingValue;\n } else {\n result = Result.Fail;\n }\n } catch (NoSuchElementException e) {\n result = Result.NoSuchElement;\n } catch (Exception e) {\n System.out.printf(\"%s caught unexpected %s\\n\", \"testLast\", e.toString());\n e.printStackTrace();\n result = Result.UnexpectedException;\n }\n return result == expectedResult;\n }", "title": "" }, { "docid": "32e000d1b89c0b14eb50be66c7344010", "score": "0.59474826", "text": "public N top() {\n\t\treturn list.get(list.size()-1);\n\t}", "title": "" }, { "docid": "b323989ad9c97a77eddc68ac7c7fc5d4", "score": "0.594349", "text": "public int last(int node) {\n while (true) {\n final int right = right(node);\n if (right == NIL) {\n break;\n }\n node = right;\n }\n return node;\n }", "title": "" }, { "docid": "2e89ae69ff16e84db05c9854b44a8a32", "score": "0.5941938", "text": "public Object pop() {\n\t\tif(!isEmpty()) { //if the arraylist is not emptyu\n\t\t\tObject obj = list.get(list.size()-1);\n\t\t\tlist.remove(list.size()-1);\n\t\t\treturn obj;\n\t\t}else {\n\t\t\tSystem.out.println(\"the dynamic list is null\");\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "f7e07073275429abcc99f0c0287b60b4", "score": "0.5940353", "text": "public static int last(int[] array) {\n\t\treturn array[array.length - 1];\n\t}", "title": "" }, { "docid": "9e85fc8b50d6edb7b4084730fa0e4a7a", "score": "0.59344643", "text": "@Override\n public Node<T> getLast() {\n return this.offsetGet(this.getSize() - 1);\n }", "title": "" }, { "docid": "6cab3138ea7694973639b7a768d7dcfa", "score": "0.5932112", "text": "public T removeLast() {\n if (isEmpty()) {\n return null;\n }\n StuffNode last = sentinel.prev;\n sentinel.prev = last.prev;\n last.prev.next = sentinel;\n\n size--;\n return last.item;\n }", "title": "" }, { "docid": "65314498c53c0720d3c29e9b1d3042f6", "score": "0.59278166", "text": "public int lastIndexOf(ArrayList<Integer> list, int value) {\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tif (list.contains(value)) {\r\n\t\t\t\treturn list.lastIndexOf(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 21;\r\n\t}", "title": "" }, { "docid": "ff21437f921f68423084be14a19e789f", "score": "0.5923185", "text": "@Override\n public Offer getLast() {\n if (offersList == null) {\n try {\n this.init();\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n }\n }\n return offersList.getLast();\n }", "title": "" }, { "docid": "7b2a5da598d45047e80587bb6a383d56", "score": "0.592029", "text": "public E removeLast() {\n\t\t if (head==null) { // list is empty\n\t\t\t throw new IllegalStateException(\"removeLast: list is empty\");\n\t\t }\n\t\t if (head.next==null) { // list is a singleton list\n\t\t\t E temp = head.data;\n\t\t\t head = null;\n\t\t\t size--;\n\t\t\t return temp;\n\t\t }\n\t\t // list has two or more elements\n\t\t Node<E> current = head;\n\t\t \n\t\t while (current.next.next!=null) {\n\t\t\t current = current.next;\n\t\t }\n\t\t E temp = current.next.data;\n\t\t current.next = null;\n\t\t size--;\n\t\t return temp;\n\t\t\n\t}", "title": "" }, { "docid": "a0c7371d009452087d1fb79e9d37ac80", "score": "0.59107584", "text": "@Override\n public Object getLast() {\n LinkListWrite.LinkListWriteIterator iter=readlist.iterator();\n if (iter.size()<0){\n throw new NoSuchElementException();\n }\n if(iter.size()==1){\n E temp=(E) iter.takenext();\n iter.delete();\n return temp;\n }\n while (iter.hasNext()){\n if (iter.nexttonext())\n break;\n iter.next();\n }\n iter.next();\n E temp=(E) iter.takenext();\n return temp;\n }", "title": "" }, { "docid": "3bddb2ac4c6d9469ec37447ec11c93de", "score": "0.5898018", "text": "public int peek() {\n if (isEmpty()) {\n System.out.println(\"No elements in the array\");\n return -1;\n }\n\n return this.list[0];\n }", "title": "" }, { "docid": "3d8c65ec7f6edf306b6d7b44987b91b8", "score": "0.5896493", "text": "public Comparable getLast()\n {\n if (frente == null) throw new NoSuchElementException(\"Error: la lista esta vacia...\");\n TSBNode p = frente;\n while( p.getNext() != null ) { p = p.getNext(); }\n return p.getInfo();\n }", "title": "" }, { "docid": "d75c3aadb786c09ff75d37f03aa1ab29", "score": "0.5893165", "text": "public int lastIndexOf(Object data)\r\n {\r\n \tListIterator<E> iterator = listIterator(size);\r\n while(iterator.hasPrevious())\r\n {\r\n \tif(iterator.previous().equals(data))\r\n \t{\r\n \t\treturn iterator.nextIndex();\r\n \t}\r\n }\r\n return -1;\r\n }", "title": "" }, { "docid": "367f9224f5c0696ab15698fd6a85d723", "score": "0.58880746", "text": "public int lastIndexOf(final String element) {\n\t\treturn _list.lastIndexOf(element);\n\t}", "title": "" }, { "docid": "6bcacdbd6014dd3bf6621035d33b09c2", "score": "0.58866686", "text": "public T removeLast() {\n if (size == 0) {\n return null;\n }\n int pLastOld = beforeIndex(nextLast);\n T lastItemOld = items[pLastOld];\n items[pLastOld] = null;\n nextLast = pLastOld;\n size--;\n\n // downsizing\n if ((items.length > 16) && (size / items.length) <= MEMO_USE_RATIO) {\n resize(size);\n }\n return lastItemOld;\n }", "title": "" }, { "docid": "c7a3942835c84ae8f33947564a130bc5", "score": "0.5885957", "text": "int getCurrent() {\n if ( this.isEmpty() ) {\n throw new RuntimeException(\"List Error: getCurrent() called on empty List\");\n }else if ( this.offEnd() ) {\n throw new RuntimeException(\"List Error: getCurrent() called on Null Pointer\");\n }\n return curr.data;\n }", "title": "" }, { "docid": "2a7e5f6b7ae4fc77ab7abcb185f6a0f8", "score": "0.5885354", "text": "private SLLNode getLastNode() //helper method\n\t{\n\t\tif (isEmpty())\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tSLLNode lastNode = head; //start at the head of the LinkedList\n\t\t\n\t\t//while theres a node after the current node (which is head right now)\n\t\twhile(lastNode.next != null)\n\t\t{\n\t\t\tlastNode = lastNode.next; //set the last node as lastnode's next\n\t\t\t//until it reaches the last node (when next node is null)\n\t\t}\n\t\treturn lastNode;\n\t}", "title": "" }, { "docid": "343dd83d5b3fac19b6fb2a99865e7be3", "score": "0.5881608", "text": "public void testLastIndexOf() {\r\n assertEquals(-1, list.lastIndexOf(\"A\"));\r\n list.add(\"A\");\r\n assertEquals(0, list.lastIndexOf(\"A\"));\r\n list.add(\"A\");\r\n assertEquals(1, list.lastIndexOf(\"A\"));\r\n list.add(\"B\");\r\n assertEquals(1, list.lastIndexOf(\"A\"));\r\n assertEquals(2, list.lastIndexOf(\"B\"));\r\n list.add(\"A\");\r\n assertEquals(3, list.lastIndexOf(\"A\"));\r\n }", "title": "" }, { "docid": "94662ec93e74597b73fc97b3bb3056c9", "score": "0.5881592", "text": "public Object last() {\n return last;\n }", "title": "" }, { "docid": "45602557048f41c680ed7e8d137bd8a8", "score": "0.5877087", "text": "public int getLastIndex()\n {\n return lastIndex;\n }", "title": "" }, { "docid": "43f93a2369cbce6af9f0ac72b5cff828", "score": "0.58710617", "text": "public T peekLast();", "title": "" }, { "docid": "43f93a2369cbce6af9f0ac72b5cff828", "score": "0.58710617", "text": "public T peekLast();", "title": "" }, { "docid": "823e764f5a3f3c180b125bead00257aa", "score": "0.5870524", "text": "public Item removeLast() {\r\n\t\tif (sentinel.prev.equals(sentinel)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tDLList toRemove = sentinel.prev; \r\n\t\t\tDLList moveToLast = toRemove.prev;\r\n\t\t\tsentinel.prev = moveToLast; // Set the second-to-last node as the last node.\r\n\t\t\tmoveToLast.next = sentinel;\r\n\t\t\ttoRemove.prev = null;\r\n\t\t\ttoRemove.next = null;\r\n\t\t\tsize -= 1;\r\n\t\t\treturn toRemove.item;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a6d29583efa944afb59087018d47bb29", "score": "0.5858929", "text": "private boolean testLast(IndexedUnorderedListADT<Integer> list, Integer expectedElement, Result expectedResult) {\n\t\tResult result;\n\t\ttry {\n\t\t\tInteger retVal = list.last();\n\t\t\tif (retVal.equals(expectedElement)) {\n\t\t\t\tresult = Result.MatchingValue;\n\t\t\t} else {\n\t\t\t\tresult = Result.Fail;\n\t\t\t}\n\t\t} catch (EmptyCollectionException e) {\n\t\t\tresult = Result.EmptyCollection;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.printf(\"%s caught unexpected %s\\n\", \"testLast\", e.toString());\n\t\t\te.printStackTrace();\n\t\t\tresult = Result.UnexpectedException;\n\t\t}\n\t\treturn result == expectedResult;\n\t}", "title": "" } ]
49767b7152d2eadba6581bf94a4e2cef
Gifttaker g1=new Gifttaker(); g1.acceptGift(this);
[ { "docid": "605009bbb4e24e210dcaf47e4b8f6447", "score": "0.0", "text": "public void show()\r\n\t{\n\t\tSystem.out.println(length+\"\\n\"+bredth+\"\\n\"+height);\r\n\t}", "title": "" } ]
[ { "docid": "3d75055988307903f17f9aae66e7e652", "score": "0.6866526", "text": "public void sendBox() {\n\t\tGiftTaker gf = new GiftTaker();\n\t\tgf.acceptGift(this);\n\t}", "title": "" }, { "docid": "807a204d32fd94a3363cf3d93b5948f2", "score": "0.66428", "text": "public void give_gifts() throws IOException {\r\n Assign_gifts ob=new Assign_gifts();\r\n ob.give_gifts(couple_arr,gift_arr);\r\n }", "title": "" }, { "docid": "01dbf228363d3878ac1bd9ffd0dbc1b5", "score": "0.63710666", "text": "public void add_gift(gift g) {\n\t\tgifts_given.add(g);\n\t}", "title": "" }, { "docid": "5463b539dbcfa22e6f1e8993b6e45b0e", "score": "0.61588776", "text": "public void acceptGift(Box box) {\n\t\tSystem.out.println(\"Gift Accepted\");\n\t}", "title": "" }, { "docid": "58f456f21fefcf7a47d6f0fb01679fa1", "score": "0.61027956", "text": "public void attack(){\n attacking.attack();\n }", "title": "" }, { "docid": "a73f7f28e1c27941acdd68dab69e06a1", "score": "0.6033656", "text": "public boolean isIsGift() {\n return isGift;\n }", "title": "" }, { "docid": "9201994572a4ff5e58db729278cc07bb", "score": "0.5988942", "text": "abstract public ArrayList<Gift> Gifting(ArrayList<Gift> allgifts);", "title": "" }, { "docid": "d6006ded83a01cbcd6bb63b78a6b8f9b", "score": "0.59418595", "text": "public void act() \n {\n GifImage pull = new GifImage(\"miner-pull.gif\");\n GifImage blow = new GifImage(\"miner_dynamite_animation.gif\");\n if(pullObject)\n {\n setImage(pull.getCurrentImage());\n }else{\n setImage(\"miner.png\");\n }\n \n if(blowObject)\n {\n setImage(blow.getCurrentImage());\n }else{\n setImage(\"miner.png\");\n }\n \n }", "title": "" }, { "docid": "ce176b10a5c8a879f01a1a950889988f", "score": "0.59312105", "text": "public static void upgradeGambler( Gambler g ){\n Woo._gold -= 10000;\n g.upgradeEffect();\n}", "title": "" }, { "docid": "5002c997bdb7c2b57ecae25c6d232393", "score": "0.588569", "text": "public void chase(MM mm){\n Gift gift = new WildGift(new Ring());\n }", "title": "" }, { "docid": "9808969fa047bdd3f05dd0880d71be58", "score": "0.58104604", "text": "public void imprimirGrafo() {\n\r\n\t}", "title": "" }, { "docid": "743245edef6a8cb4aa3c585589ddb50b", "score": "0.57752526", "text": "public Builder gift(Short gift) {\n obj.setGift(gift);\n return this;\n }", "title": "" }, { "docid": "f3ff44fc26bf69311ba5f0a0348d5cd6", "score": "0.5672882", "text": "public static void main(String[] args) {\n\n\n// IFeline jaguar = new Jaguar(10, 20f);\n// Jaguar jaguar = new Jaguar(10, 20f);\n IFelineWild jaguar = new Jaguar(10, 20f);\n\n jaguar.hunt();\n\n\n\n\n }", "title": "" }, { "docid": "c2013fd3fae115970fb237eec245e06d", "score": "0.56691116", "text": "private void showSelectGunner() {\n }", "title": "" }, { "docid": "de1a61f7e0b80521b4673fbe250d1513", "score": "0.566442", "text": "public void newEx(Girl g) {\r\n\t\tthis.exgfs.add(g);\r\n\t\tthis.gf = null;\r\n\t\tthis.is_committed = false;\r\n\t\tthis.happiness = 0;\r\n\t\tthis.money_spent = 0;\r\n\t}", "title": "" }, { "docid": "e4ab8ee6d73bf82c4c4bc93a09785edf", "score": "0.5659898", "text": "void cook(Vegitables veg)\r\n {\n \tSystem.out.println(\" i m in cooking\");\r\n \tveg.cook();\r\n \tveg.steam();\r\n \tveg.grinding();\r\n \t// here all these 3 above methods are overridden, so based on the instance type , means if the veg \r\n \t// contains the instance of Potato class then then it will run potato class specific implementation\r\n \t// or if veg contains instance of Bringal class, then it will run Bringal class specific \r\n \t// implementation\r\n \t\r\n \t// here we are still having a parent type reference, by that we can not refer sub class members.\r\n \t// so we down casted according to our requirement\r\n \t\r\n \tif(veg instanceof Potato)\r\n \t\t((Potato)veg).frying();\r\n \tif(veg instanceof Bringal)\r\n \t\t((Bringal)veg).soSoupCurry();\r\n }", "title": "" }, { "docid": "1c88a999dfe9800b0504bb6a6fb39596", "score": "0.5630347", "text": "public void msgHereIsGlass(Glass g) {\r\n\t\tsynchronized(glasses) {\r\n\t\t\tglasses.add(new MyGlass(g));\r\n\t\t}\r\n\t\tstateChanged();\r\n\t}", "title": "" }, { "docid": "9349d1e172c525d6e3d5ae94328573d2", "score": "0.56035894", "text": "public void attack() {\r\n\t}", "title": "" }, { "docid": "07d226580630a1d16b16c4d9b396fe22", "score": "0.5595004", "text": "void getNewShot() {\n }", "title": "" }, { "docid": "4edb5d978e3ba1bafe2a0aebb660599b", "score": "0.55880374", "text": "public void setIsGift(final boolean value) {\n this.isGift = value;\n }", "title": "" }, { "docid": "ff5ca69905c2c3d2676ce958d9523c27", "score": "0.55790716", "text": "public interface GiveGift {\n public void giveDolls();\n\n public void giveFlowers();\n\n public void GiveChocolate();\n}", "title": "" }, { "docid": "c5eb69d418145b74292e68ab4c412706", "score": "0.557384", "text": "public Gum(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "095fbecc870be6f03656f445f8047c1d", "score": "0.55734307", "text": "public Griaule(ImageCallBack imgCbk) {\r\n try {\r\n finger = new GrFinger();\r\n imageCallBack = imgCbk;\r\n } catch (GrErrorException ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "16ddcce7de697fca3d7d6a0bddb3f05a", "score": "0.5561481", "text": "@Override\n public void attack(){\n\n }", "title": "" }, { "docid": "168604e4a4653a85e32b2a9c2928ffba", "score": "0.55569994", "text": "public Adventure(){\n gc=new GameController();\n }", "title": "" }, { "docid": "64845ba165651edb28c958e5a5aa30e9", "score": "0.55516946", "text": "public void fireTakePicture()\r\n/* 215: */ {\r\n/* 216:213 */ this.gui.fireTakePicture(this.imei);\r\n/* 217: */ }", "title": "" }, { "docid": "e780db31c335c6ecd86627553b87e173", "score": "0.5551578", "text": "public void playWithPigGirl() {\n\t\tPrinter.getInstance().print(this.getClass().getSimpleName(), Thread.currentThread().getStackTrace()[1].getMethodName(), \"The farmer listened to the pig girl playing piano\");\n\t\tPrinter.getInstance().print(this.getClass().getSimpleName(), Thread.currentThread().getStackTrace()[1].getMethodName(), \"The farmer played chess with pig girl\");\n\t}", "title": "" }, { "docid": "9d7277a28006712d0733744e107eac6f", "score": "0.55377495", "text": "@Override\n\tprotected void attack(GameManager gm, int direction) {\n\n\t}", "title": "" }, { "docid": "50177edb349642bc9569d9235c2eef1c", "score": "0.5534053", "text": "private void g() {\n }", "title": "" }, { "docid": "759317bfc152c5bd6f4202d6fb20267c", "score": "0.5532875", "text": "public void leggi(){\n \n }", "title": "" }, { "docid": "f6b9dc2979a05806aa4dc9f9424c6b70", "score": "0.5526417", "text": "void attack(ICharacter foe);", "title": "" }, { "docid": "4cd28e4e4669b90eba81ee20e8c26674", "score": "0.55158466", "text": "private void giveGift(MM mm, WarmGift warmGift) {\n\n\t}", "title": "" }, { "docid": "6c292b974f1d8596888115766002c12f", "score": "0.5515541", "text": "public Gangster()\n {\n image.scale(image.getWidth() / 2, image.getHeight() / 2);\n setImage(image);\n customerType = 3;\n\n }", "title": "" }, { "docid": "ecbd5c72003b371c39257c60dff55b5d", "score": "0.5514867", "text": "public void g() {\n }", "title": "" }, { "docid": "e056f80651c72f7884e0ef85fbfb84ac", "score": "0.55140835", "text": "public void generarGrafo() {\n\r\n\t}", "title": "" }, { "docid": "db8dd469cfd9b524ae496e968a498eca", "score": "0.5503698", "text": "public void goFish() {\r\n hand.addCard(hand.drawCard());\r\n }", "title": "" }, { "docid": "9bccc74bd4f8d52dd1aeeff3c204cb5f", "score": "0.5493367", "text": "public PokerGambler() {\r\n\t}", "title": "" }, { "docid": "a5e030865611309c32811314fc48cfea", "score": "0.5490653", "text": "@Override\n\tpublic void gaga() {\n\t\tbird.zhizhi();\n\t}", "title": "" }, { "docid": "405c9e0fb76e6febe7a7f8a9fba35253", "score": "0.547349", "text": "public void take(Game game){\n }", "title": "" }, { "docid": "0afc30be1cb7e7b77d7a909210633101", "score": "0.54508865", "text": "public void damage(){\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "0f0fb7d936eb063a689d6595845bc7b1", "score": "0.5445767", "text": "public void buyGood(GoodType good, int quantity) {ship.buyGood(good, quantity);}", "title": "" }, { "docid": "b5f464631a52f8ed9317899132b7c356", "score": "0.5421765", "text": "public TAnzeige(boolean applet) {\n\t\t// generelle Einstellungen\n\t\tfapplet = applet;\n\t\tfdim = new TVektor(TSharedObjects.FENSTER_BREITE,\n\t\t\tTSharedObjects.FENSTER_HOEHE);\n\t\tfmeldung = new TText(new TVektor(40, 20), null,\n\t\t\tnew Font(\"Arial\", Font.BOLD, 13), 10);\n\n\t\t// unsichtbaren Cursor generieren. Den setzen wir aber erst, wenns\n\t\t// losgeht, weil es sonst verwirrend ist, wenn man keinen auf dem\n\t\t// Titelscreen sieht\n\t\tfinvisiCursor = java.awt.Toolkit.getDefaultToolkit().createCustomCursor(\n\t\t\tnew java.awt.image.BufferedImage(1, 1,\n\t\t\tjava.awt.image.BufferedImage.TYPE_4BYTE_ABGR),\n\t\t\tnew java.awt.Point(0, 0), \"NOCURSOR\");\n\n\t\t// wir registrieren uns als Chef\n\t\tTSharedObjects.setAnzeige(this);\n\n\t\t// Spieltimer erzeugen\n\t\tfzeitgeber = new javax.swing.Timer(45, new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\ttry {\n\t\t\t\t\tbewege();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Fehler im Spiel: \" + e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.out.println(\"Beende\");\n\t\t\t\t\tTSharedObjects.endGame();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// Laden der Ressourcen\n\t\ttry {\n\t\t\tTConfig.ladeRessourcen();\n\t\t\t// Einige Sachen laden, damit die \"Engine\" läuft\n\t\t\t// Die werden sowieso wieder weggeschmissen\n\t\t\tfspieler = new TSpieler(\n\t\t\t\tTSpieler.Schwierigkeitsgrade.normal);\n\t\t\tflevel = new TLevel(1);\n\t\t\tflevel.setAktuelleMeldung(\"TITEL\");\n\t\t\t//TSound.play(\"STARTSOUND\");\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tTSharedObjects.endGame();\n\t\t}\n\t\t\n\t\t// Fadenkreuz erzeugen\n\t\tffadenkreuz = new TBildObjekt(new TVektor(50, 50), null,\n\t\t\tnew TVektor(0, 0), \"FADENKREUZ\");\n\n\t\t// Partikelverwaltung erzeugen und registrieren\n\t\tTSharedObjects.setPartikelVerwaltung(new TPartikelVerwaltung());\n\t\tTSharedObjects.getPartikelVerwaltung().setHohesDetail(fhdetail);\n\n\t\t// Fenstereinstellungen\n\t\tsetFocusable(true);\n\t\tsetBackground(new Color(70, 70, 70));\n\t\n\t\t// Fenster-neu-zeichnen-Timer\n\t\tfupdater = new javax.swing.Timer(40, new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\n\t\t// Mouse-Listener\n\t\taddMouseMotionListener(new MouseMotionListener() {\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\tffadenkreuz.setKoord(new TVektor(e.getX()-23, e.getY()-23));\n\t\t\t\taktionmouseMoved(e.getX(),e.getY());\n\t\t\t}\n\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\tffadenkreuz.setKoord(new TVektor(e.getX()-23, e.getY()-23));\n\t\t\t\taktionmouseMoved(e.getX(),e.getY());\n\t\t\t}\n\t\t});\n\t\taddMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {}\n\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tif (fspieler != null) {\n\t\t\t\t\tif (e.getButton() == MouseEvent.BUTTON1) {\n\t\t\t\t\t\tfspieler.clickaktiv();\n\t\t\t\t\t}\n\t\t\t\t\tif (e.getButton() == MouseEvent.BUTTON3) {\n\t\t\t\t\t\tfspieler.nextWaffe();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tif (fspieler != null) {\n\t\t\t\t\tif (e.getButton() == MouseEvent.BUTTON1) {\n\t\t\t\t\t\tfspieler.clicknichtaktiv();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Bugfix: Wenn man mit dem Cursor das Fenster betritt\n\t\t\t// oder verlaesst, soll der Spieler anhalten - die Tasten\n\t\t\t// sollen \"losgelassen\" werden\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\ttastenLoslassen();\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\ttastenLoslassen();\n\t\t\t}\n\t\t});\n\n\t\t// Keylistener\n\t\taddKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint kc = e.getKeyCode();\n\n\t\t\t\t// Nur wenn ein Spieler da ist, kann der Spieler reagieren\n\t\t\t\tif ((fspieler != null) && fspielGestartet) {\n\t\t\t\t\tif ((kc == KeyEvent.VK_RIGHT) ||\n\t\t\t\t\t\t(kc == KeyEvent.VK_D)) {\n\t\t\t\t\t\tfspieler.bewegen(TSpieler.Bewegung.rechts, true);\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((kc == KeyEvent.VK_LEFT) ||\n\t\t\t\t\t (kc == KeyEvent.VK_A)) {\n\t\t\t\t\t\tfspieler.bewegen(TSpieler.Bewegung.links, true);\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((kc == KeyEvent.VK_UP) ||\n\t\t\t\t\t\t(kc == KeyEvent.VK_W)) {\n\t\t\t\t\t\tfspieler.bewegen(TSpieler.Bewegung.oben, true);\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((kc == KeyEvent.VK_DOWN) ||\n\t\t\t\t\t\t(kc == KeyEvent.VK_S)) {\n\t\t\t\t\t\tfspieler.bewegen(TSpieler.Bewegung.unten, true);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (kc == KeyEvent.VK_N) {\n\t\t\t\t\t\tfspieler.nextWaffe();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tint kc = e.getKeyCode();\n\n\t\t\t\tif (kc == KeyEvent.VK_SPACE) {\n\t\t\t\t\tif (fspielGestartet) {\n\t\t\t\t\t\tif (fzeitgeber.isRunning()) {\n\t\t\t\t\t\t\tpause();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tflevel.deaktiviereMeldung();\n\t\t\t\t\t\t\tstart();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Nur wenn ein Spieler da ist, kann der Spieler reagieren\n\t\t\t\tif ((fspieler != null) && fspielGestartet) {\n\n\t\t\t\t\tif ((kc == KeyEvent.VK_RIGHT) ||\n\t\t\t\t\t\t(kc == KeyEvent.VK_D)) {\n\t\t\t\t\t\tfspieler.bewegen(TSpieler.Bewegung.rechts, false);\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((kc == KeyEvent.VK_LEFT) ||\n\t\t\t\t\t\t(kc == KeyEvent.VK_A)) {\n\t\t\t\t\t\tfspieler.bewegen(TSpieler.Bewegung.links, false);\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((kc == KeyEvent.VK_UP) ||\n\t\t\t\t\t\t(kc == KeyEvent.VK_W)) {\n\t\t\t\t\t\tfspieler.bewegen(TSpieler.Bewegung.oben, false);\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((kc == KeyEvent.VK_DOWN) ||\n\t\t\t\t\t\t(kc == KeyEvent.VK_S)) {\n\t\t\t\t\t\tfspieler.bewegen(TSpieler.Bewegung.unten, false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tSystem.out.println(\"Temporäre Daten löschen...\");\n\t\t// Garbage-Collector aufrufen, dadurch verhindern wir\n\t\t// das Laggen am Anfang\n\t\tSystem.gc();\n\t}", "title": "" }, { "docid": "334ef004d37e8a4fcb1536d5c0330b1e", "score": "0.54129", "text": "private void Mansion(){\n\t\tImageView imageDeck = (ImageView) mainView.findViewById(R.id.Mansion);\n\t\timageDeck.setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n if (player.EXPLORE > 0) {\n Mansion.EXPLORE();\n combat(Mansion.getCurrentMonster());\n\n\n if (battleResult) {\n // Get Rewards\n player.DECORATIONS += Mansion.getDecoration();\n setDamageHUD();\n } else {\n player.HEALTH -= Mansion.getDamage();\n setDamageHUD();\n }\n showPopup(v, Mansion.getName(), Mansion.getHealth(), Mansion.getDamage(), Mansion.getDecoration());\n\n setDiscardHUD();\n setDeckHUD();\n player.EXPLORE--;\n checkWin();\n }\n }\n });\n\t}", "title": "" }, { "docid": "10f8c5a1ac50f3f9a3afc21040e2b831", "score": "0.54110485", "text": "public Bird(){\n\n super();\n\n setSound(\"Tweet\");\n\n flyingType = new ItFlys();\n\n }", "title": "" }, { "docid": "205708f717439e2716f35354b126df73", "score": "0.54064494", "text": "public void whenAttacking();", "title": "" }, { "docid": "06e1fe736e73eea07424c550efb78fe0", "score": "0.54022604", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t SharedPreferences sp = context.getSharedPreferences(\"iDragon\", Context.MODE_PRIVATE);\n\t\t boolean bFacebookLiked = sp.getBoolean(\"isLike\", false);\n\t\t int nLock;\n\t\t if (itemtype == 0)\n\t\t \tnLock = frames.getFrameWithId1(realPos).getLockFlag();\n\t\t else\n\t\t \tnLock = frames.getFrameWithId2(realPos).getLockFlag();\n\n\t\t if (!bFacebookLiked && nLock == Frame.FRAMELOCK) {\n\t\t \t// dexter\n\t\t\t\t/**\t Dialog dialog = new Dialog(context);\n\t\t\t\t\tdialog.setContentView(R.layout.gift_layout);\n\t\t\t\t\t\n\t\t\t\t\tdialog.setTitle(\"抽獎活動\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t\tWebView wv=(WebView)dialog.findViewById(R.id.gift_web);\n\t\t\t\t\tGiftFragment gf=new GiftFragment(activity, wv); */\n\t\t \t\n\t\t \tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\t LayoutInflater inflater = ((Activity) context).getLayoutInflater();\n\t\t builder.setView(inflater.inflate(R.layout.gift_layout, null));\n\t\t builder.setNegativeButton(\"確定\", null);\n\t\t AlertDialog dialog = builder.create();\n\t\t dialog.setTitle(\"抽獎活動\");\n\t\t dialog.show();\n\t\t WebView wv=(WebView)dialog.findViewById(R.id.gift_web);\n\t\t\t\t\tGiftFragment gf=new GiftFragment(activity, wv); \n\t\t\t\t\t\n\t\t \t/**mDialog = new DlgWindow1(context, R.style.CustomDialog, \"驗證SK2U粉絲團\", \"取消\", \"前往解鎖\", new OnClickListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tmDialog.dismiss();\n\t\t\t\t\t\t}\n\t\t }, new OnClickListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t((MainActivity)context).onClickLock();\n\t\t\t\t\t\t\tmDialog.dismiss();\n\t\t\t\t\t\t}\n\t\t });\n\t\t\t\t\tmDialog.show();*/\n\t\t \treturn;\n\t\t }\n\t\t else \n\t\t \t((MainActivity)context).selectFrameFragment(itemtype==0 ? realPos:realPos+18);\n\t\t\t}", "title": "" }, { "docid": "fbbf64695d99a26325593f3868821554", "score": "0.5399194", "text": "public void msgGlassConveyorFamilyToConveyor(Glass g);", "title": "" }, { "docid": "8898698a9794eb0f901d07001419f120", "score": "0.5398933", "text": "public GzsxfkAction(){\n\t\t\n\t}", "title": "" }, { "docid": "ca9c7da839d6a374a2305fe063a2efe3", "score": "0.53961796", "text": "public Integer getGiftId() {\n\t\treturn giftId;\n\t}", "title": "" }, { "docid": "2ed728fe582c2acb0e1111c765edfbad", "score": "0.53917795", "text": "public void kick()\n {\n }", "title": "" }, { "docid": "a13c6c7bf974c5645d5ace102820cdd6", "score": "0.5378037", "text": "public void inici() {\r\n \r\n \r\n }", "title": "" }, { "docid": "6688dc077ea7bc7d368b727e1ad0cdac", "score": "0.53753144", "text": "public void shootUp();", "title": "" }, { "docid": "7fc7901b7f2b0b76deed0fc22d51a5d0", "score": "0.5373511", "text": "public void action(Giocatore g) {\r\n OutputMediator.println(\"Prenditi un caffè! \");\r\n azione.esegui(g);\r\n }", "title": "" }, { "docid": "3cef59a47c336875a9cd34f9c3014441", "score": "0.5372764", "text": "private void deliverIngredient()\n\t{\n\t\tcandyMachine.addIngredient(candyType);\n\t}", "title": "" }, { "docid": "8f35802f5069a9fe9a0ba14aad26caab", "score": "0.5369286", "text": "public void openGodGiftBox(){\r\n\t\twhile (getItem(GOD_GIFT_BOX, true, true).exists()){\r\n\t\t\tuseItem(GOD_GIFT_BOX);\r\n\t\t\t\r\n\t\t\twhile (getItem(BAG_EXTENSION, true, true).exists()){\r\n\t\t\t\tuseItem(BAG_EXTENSION);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdeleteTrash(false);\r\n\t\t\t\r\n\t\t\tfor (int i=0; i<10; i++){\r\n\t\t\t\tFScript.execTask(\"sendInput {ESCAPE}\", owner.getId()); //exit out of anything in the way (C panel from last god box)\r\n\t\t\t\tFScript.sleep(500);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cd4ecebd582d4dada9b0652519a3d3d7", "score": "0.5368003", "text": "public void setGiftName(String giftName) {\n\t\tthis.giftName = giftName;\n\t}", "title": "" }, { "docid": "9f3d0eb56387751171c88c20207b99c2", "score": "0.53636533", "text": "public void setGiftId(Integer giftId) {\n\t\tthis.giftId = giftId;\n\t}", "title": "" }, { "docid": "faf3903d6841ede8c1a5c77b70aed058", "score": "0.53613883", "text": "public void steer() {\n\n\t}", "title": "" }, { "docid": "567a4aef69b3d887a324248a7cfaa42d", "score": "0.5354524", "text": "@Override\n\tpublic void attack() {\n\t\t\n\t}", "title": "" }, { "docid": "567a4aef69b3d887a324248a7cfaa42d", "score": "0.5354524", "text": "@Override\n\tpublic void attack() {\n\t\t\n\t}", "title": "" }, { "docid": "20ecaf05e911e5b54f74ba1087cffdbe", "score": "0.5352794", "text": "public OverfishingGame(){\t\n\t\tsuper();\n\t\tsetIsDone(false);\n\t\tloadRes();\n\t\t\n\t\tsoundDoer.loadClip(\"/game1songv2.wav\");\n\t\tsoundDoer.loadClip(\"/losesound2.wav\");\n\t\tsoundDoer.playLoadedClip(0);\n\t\t\n\t\tdialogBox=new DialogBox(this);\n\t\t\n\t}", "title": "" }, { "docid": "43103467f19997f054d59821f23eeae7", "score": "0.53434086", "text": "public void takingDamage(){\n\t\ttakingDamage = true;\n\t}", "title": "" }, { "docid": "a194ee49be8cd50e0fe5f01eb6d79462", "score": "0.5341864", "text": "public void shakerStart() {\n\t\t\n\t\tshaker = (ImageView) findViewById(R.id.shaker);\n\t\tshaker.setClickable(true);\n\n//\t\t// Implement On click listener\n//\t\tshaker.setOnClickListener(new OnClickListener() {\n//\t\t\tpublic void onClick(View v) {\n//\t\t\t\tshaker.setImageDrawable(getResources().getDrawable(R.drawable.shaker_closed));\n//\t\t\t\tshakerOpen = true;\n//\t\t\t\t\n////\t\t\t\ti.putExtra(\"ingredients\", drinkPicks);\n////\t\t\t\tstartActivity(i);\n//\t\t\t}\n//\t\t});\n\t}", "title": "" }, { "docid": "98c16313594f70fee2cae0aa6f4178bc", "score": "0.5340533", "text": "@OnClick(R.id.iv_gambarKaryawan)\n void ambilGambar() {\n\n BottomSheetDialogFotoKonter bottomSheetDialogFotoKonter = new BottomSheetDialogFotoKonter();\n bottomSheetDialogFotoKonter.show(getSupportFragmentManager(), \"Ambil Foto Konter\");\n\n }", "title": "" }, { "docid": "193ba9f585d6e5006a4d0a2b690a364a", "score": "0.533919", "text": "@Override\n\tpublic void reactToClick(Game g) {\n\n\t}", "title": "" }, { "docid": "03ae4dbadfb231296e582d93b702ebbe", "score": "0.5316956", "text": "public String getGiftName() {\n\t\treturn giftName;\n\t}", "title": "" }, { "docid": "51952c6cb58cd9b1e858880e68bd09be", "score": "0.53117704", "text": "private void flyAway(){\n\t\t\n\t}", "title": "" }, { "docid": "27de1a608bbd44e9d97f5e7c5ffb78bd", "score": "0.5307183", "text": "@Override\r\n\tvoid eating() \r\n\t{\r\n\t\tSystem.out.println(\"mydog is eating\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7c658bfa38ce9e19490c596c33467bc9", "score": "0.5303972", "text": "public void eatFood(){\n }", "title": "" }, { "docid": "b9ba8e657ab81efe8005dbcee56acca7", "score": "0.53021985", "text": "public GameManager (Waka waka, Ghost ghost, Fruit fruit) {\n this.waka = waka;\n this.ghost = ghost;\n this.fruit = fruit;\n frightenedLength = 0;\n}", "title": "" }, { "docid": "4bf5225be1edc26ea10f2ed721582b78", "score": "0.52955085", "text": "public GameGUI(Game g)\n {\n game = g;\n ImageIcon icon = g.getCurrentRoom().getIcon();\n createGUI(icon); \n }", "title": "" }, { "docid": "7c85d31c5ab7731db353e0059f3e7fc2", "score": "0.5275839", "text": "public MountainBike() {\r\n super();\r\n this.lowframe = new LowFrame(); \r\n }", "title": "" }, { "docid": "c4f5d46ed25e9ceac48a9c10591a6172", "score": "0.5275676", "text": "public Game(Game g)\n {\n this.Fruit_list = g.getFruit_listCopy();\n this.pacman_list = g.getPacman_listCopy();\n this.MyMap = g.MyMap;\n }", "title": "" }, { "docid": "67b247c52948b88396b6937b8434d41b", "score": "0.52739346", "text": "public Hitung() {\n initComponents();\n }", "title": "" }, { "docid": "11d87aa25365256137ded8e0bf92c896", "score": "0.52673864", "text": "private void sendGlass(MyGlass mg) {\r\n\t\tdoStartConveyor();\r\n\t\tmg.gs = GlassState.sent;\r\n\t}", "title": "" }, { "docid": "1bea32c1981be6d5077b4fce46b98ec2", "score": "0.52553105", "text": "public EnemyShipViewGreen(SpaceAttackGame game) {\n super(game);\n }", "title": "" }, { "docid": "093e6686fb1eca9a14db1e22001066ab", "score": "0.5250675", "text": "public void comesIntoPlay(){}", "title": "" }, { "docid": "5e4c3ac766b282c01b8c6fc27bdac6c5", "score": "0.5249839", "text": "public BadGuy(){\n alive = true;\n badmissile = new ArrayList<BadMissile>();\n }", "title": "" }, { "docid": "dc34e49fdadce3ed9a0a073ed5ed2e4c", "score": "0.5247218", "text": "public void inscription() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d70cc2963df6284f542b816fdab8525", "score": "0.5244987", "text": "boolean hasSendGift();", "title": "" }, { "docid": "80d8640222581cd70aedf88c4cba5486", "score": "0.52449477", "text": "void juice_button_add_Actionlistenr() {\r\n\r\n\t\tjuice_apple_button.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tif (guestP1.isVisible())\r\n\t\t\t\t\tguestP1.setVisible(false);\r\n\t\t\t\telse if (guestP2.isVisible())\r\n\t\t\t\t\tguestP2.setVisible(false);\r\n\t\t\t\telse if (guestP3.isVisible())\r\n\t\t\t\t\tguestP3.setVisible(false);\r\n\t\t\t\telse if (guestP4.isVisible()) {\r\n\t\t\t\t\tguestP4.setVisible(false);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(juice_apple_button, \"No guest \", \"Title\",\r\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tJOptionPane.showMessageDialog(juice_apple_button, \"APPLE JUICE! \" + \"\\nPRICE: \" + juice_price,\r\n\t\t\t\t\t\t\"JUICE IMFOMATION\", JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\t\t\tUserFile.Users.get(idx).setAppleRefri((UserFile.Users.get(idx).getAppleRefri() - 1));\r\n\t\t\t\tUserFile.Users.get(idx).setMoney(UserFile.Users.get(idx).getMoney() + juice_price);\r\n\t\t\t\tUserFile.Users.get(idx).setAppleJuice(UserFile.Users.get(idx).getAppleJuice() + 1);\r\n\t\t\t\tconsumer.add(\"apple\");\r\n\r\n\t\t\t\tjuice_price = 0;\r\n\t\t\t\tchangeImfo(2);\r\n\t\t\t\tjuice_apple_button.setVisible(false);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\t//\r\n\t\tjuice_orange_button.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t//\r\n\t\t\t\tif (guestP1.isVisible())\r\n\t\t\t\t\tguestP1.setVisible(false);\r\n\t\t\t\telse if (guestP2.isVisible())\r\n\t\t\t\t\tguestP2.setVisible(false);\r\n\t\t\t\telse if (guestP3.isVisible())\r\n\t\t\t\t\tguestP3.setVisible(false);\r\n\t\t\t\telse if (guestP4.isVisible())\r\n\t\t\t\t\tguestP4.setVisible(false);\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(juice_orange_button, \"No guest \", \"Title\",\r\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tJOptionPane.showMessageDialog(juice_orange_button, \"ORANGE JUICE! \" + \"\\nPRICE: \" + juice_price,\r\n\t\t\t\t\t\t\"JUICE IMFOMATION\", JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\t\t\tUserFile.Users.get(idx).setOrangeRefri((UserFile.Users.get(idx).getOrangeRefri() - 1));\r\n\t\t\t\tUserFile.Users.get(idx).setMoney(UserFile.Users.get(idx).getMoney() + juice_price);\r\n\t\t\t\tUserFile.Users.get(idx).setOrangeJuice(UserFile.Users.get(idx).getOrangeJuice() + 1);\r\n\t\t\t\tconsumer.add(\"orange\");\r\n\r\n\t\t\t\tjuice_price = 0;\r\n\t\t\t\tchangeImfo(2);\r\n\t\t\t\tjuice_orange_button.setVisible(false);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tjuice_straw_button.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tif (guestP1.isVisible())\r\n\t\t\t\t\tguestP1.setVisible(false);\r\n\t\t\t\telse if (guestP2.isVisible())\r\n\t\t\t\t\tguestP2.setVisible(false);\r\n\t\t\t\telse if (guestP3.isVisible())\r\n\t\t\t\t\tguestP3.setVisible(false);\r\n\t\t\t\telse if (guestP4.isVisible())\r\n\t\t\t\t\tguestP4.setVisible(false);\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(juice_straw_button, \"No guest \", \"Title\",\r\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tJOptionPane.showMessageDialog(juice_straw_button, \"STRAWBERRY\" + \"\\nPRICE: \" + juice_price,\r\n\t\t\t\t\t\t\"JUICE IMFOMATION\", JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\t\t\tUserFile.Users.get(idx).setStrawberryRefri((UserFile.Users.get(idx).getStrawberryRefri() - 1));\r\n\t\t\t\tUserFile.Users.get(idx).setMoney(UserFile.Users.get(idx).getMoney() + juice_price);\r\n\t\t\t\tUserFile.Users.get(idx).setStrawberryJuice(UserFile.Users.get(idx).getStrawberryJuice() + 1);\r\n\t\t\t\tconsumer.add(\"strawberry\");\r\n\r\n\t\t\t\tjuice_price = 0;\r\n\t\t\t\tchangeImfo(2);\r\n\t\t\t\tjuice_straw_button.setVisible(false);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tjuice_grape_button.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tif (guestP1.isVisible())\r\n\t\t\t\t\tguestP1.setVisible(false);\r\n\t\t\t\telse if (guestP2.isVisible())\r\n\t\t\t\t\tguestP2.setVisible(false);\r\n\t\t\t\telse if (guestP3.isVisible())\r\n\t\t\t\t\tguestP3.setVisible(false);\r\n\t\t\t\telse if (guestP4.isVisible())\r\n\t\t\t\t\tguestP4.setVisible(false);\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(juice_grape_button, \"No guest \", \"Title\",\r\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tJOptionPane.showMessageDialog(juice_grape_button, \"GRAPE JUICE! \" + \"\\nPRICE: \" + juice_price,\r\n\t\t\t\t\t\t\"JUICE IMFOMATION\", JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\t\t\tUserFile.Users.get(idx).setMoney(UserFile.Users.get(idx).getMoney() + juice_price);\r\n\t\t\t\tUserFile.Users.get(idx).setGrapeRefri((UserFile.Users.get(idx).getGrapeRefri() - 1));\r\n\t\t\t\tUserFile.Users.get(idx).setGrapeJuice(UserFile.Users.get(idx).getGrapeJuice() + 1);\r\n\t\t\t\tconsumer.add(\"grape\");\r\n\r\n\t\t\t\tjuice_price = 0;\r\n\t\t\t\tchangeImfo(2);\r\n\t\t\t\tjuice_grape_button.setVisible(false);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\trecipe.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(recipe,\r\n\t\t\t\t\t\t\"<Fruit juice recipe> \\n apple juice\\n-needs 4 apples(=one appleBox)\\n-click appleBox!\\n \"\r\n\t\t\t\t\t\t\t\t+ \"orange juice\\n-needs 4 oranges(=one orangeBox)\\n-click orangeBox! \\n\"\r\n\t\t\t\t\t\t\t\t+ \"grape juice\\n-needs N 2 grapes(=one grapeBox)\\n-click grapeBox! \\n\"\r\n\t\t\t\t\t\t\t\t+ \"strawberry juice\\n-needs 8 strawberrys(=one strawberryBox)\\n-click strawberryBox!\",\r\n\t\t\t\t\t\t\"RECIPE IMFOMATION\", JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tf.fileSave();\r\n\r\n\t}", "title": "" }, { "docid": "c2dd8cd9d76f8e8d4417024855e3a78a", "score": "0.52404606", "text": "public void irAPosicion() {\n\t\t\n\t}", "title": "" }, { "docid": "7969cae8ed671dd7e94b6b295274d909", "score": "0.5238168", "text": "boolean hasOpenGift();", "title": "" }, { "docid": "4fd3284a9fe37d8b99ff294d37b869a6", "score": "0.52312034", "text": "public void effectuer() {\n\t}", "title": "" }, { "docid": "0410429956c8a1e24644e31d3ff39d3e", "score": "0.52303135", "text": "public Frog(Protag pc){\r\n \t int enemy = pc.getLevel();\r\n \t setLevel(enemy);\r\n setAttack(4);\r\n setHealth(4);\r\n setDifficulty(\"Easy\");\r\n setName(\"Frog\");\r\n }", "title": "" }, { "docid": "2a7e56adaca3b91f508bdd7b61deab51", "score": "0.52281123", "text": "int attack(Unit goodGuy);", "title": "" }, { "docid": "c3d3e0266602ed5188a20b3808baeb13", "score": "0.52243644", "text": "public void invia(){\n \n }", "title": "" }, { "docid": "8496115664b45a01c573099b97258da7", "score": "0.52235484", "text": "static void SetGraphics( Graphics g1 )\r\n\t{\r\n \r\n\r\n\t}", "title": "" }, { "docid": "153aafcc74ab18e0659dd7ee6859a902", "score": "0.522111", "text": "private GameOver() {\r\n\r\n\t}", "title": "" }, { "docid": "e7fd32ed11bd6036d7b9ae03828ffcce", "score": "0.5219645", "text": "public Golduck() {\r\n super(\"Golduck\", \"Golduck\", 55, 1.7, 76.6, BASE_ATTACK_POWER, \r\n BASE_DEFENSE_POWER, BASE_STAMINA_POWER); \r\n }", "title": "" }, { "docid": "2b3bddb5230f30d78fbbf05f80e27202", "score": "0.52063155", "text": "public void setG( int g ){\n this.g = g;\n }", "title": "" }, { "docid": "7d572d5ca8220c16931e797e8d4c4b78", "score": "0.5202785", "text": "public void sellGood(GoodType good, int quantity) {ship.sellGood(good, quantity);}", "title": "" }, { "docid": "b42d684efb0027b2713557e54a136faf", "score": "0.520134", "text": "public void mueveDisparoAlien()\r\n{\r\nfor (int i=0; i<listLaser.size(); i++)\r\n((Grafico) listLaser.get(i)).mover(5);\r\n}", "title": "" }, { "docid": "aef4f515f90198184f410352f940e58d", "score": "0.519971", "text": "@Override\n public void mineClicked() {\n\n }", "title": "" }, { "docid": "d29f312925b6b0270684ebba7462cded", "score": "0.51980036", "text": "public void act() \n {\n gameOver(); //method gameOver\n }", "title": "" }, { "docid": "ee0358dd42755b7bdcc85665fd5823e6", "score": "0.51912194", "text": "public Grafo() {\r\n\t}", "title": "" }, { "docid": "bd268750fd6fd3666d90311724647165", "score": "0.5183064", "text": "@Override\r\n\tpublic void takeDamage() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cc2eee54b25f0d1ccc456916b83da442", "score": "0.5183061", "text": "public void hop()\n {\n System.out.printf(\"Gerbil %d is hopping mad!\\n\", gerbilNumber);\n }", "title": "" }, { "docid": "4663995cb45464a7151850bf72ef2f49", "score": "0.51805276", "text": "public void disegna(Graphics2D g) {\n\t\t\n\t\tstato=new Stato(g,giocatore,img);\n\t\tbg = img.getimg(\"stars.gif\");\n\t\tg.setPaint(new TexturePaint(bg, new Rectangle(-t,0,bg.getWidth(),bg.getHeight())));\n\t\tg.fillRect(0,0,getWidth(),getHeight());\n\t\t\n\t\tfor(int i=0; i<animati.size(); i++) {\n\t\t\tAnimato m = (Animato)animati.get(i);\n\t\t\tm.paint(g);\n\t\t}\n\t\t\n\t\t\n\t\tgiocatore.paint(g);\n\t\tstato.drawStato(g);\n\t\tstrategy.show();\n\t}", "title": "" }, { "docid": "2c705681b451f1057fa33cd7f0920a65", "score": "0.51784664", "text": "@Override\n\tpublic void fight() {\n\n\t}", "title": "" }, { "docid": "61d1cf996d2d81fcc5ba8acfa2440a04", "score": "0.5172165", "text": "private Gibbr() {\n }", "title": "" } ]
d610c370f1c02052767230317a0c137c
This constructor creates the constraint instance.
[ { "docid": "2d80fa3095b9dba35e818d98d597cccb", "score": "0.5749236", "text": "public Constraint(Structure constraintStructure, Long ownerOMA,\r\n\t\t\tIpo influenceIpo, BlenderContext blenderContext) throws BlenderFileException {\r\n\t\tthis.blenderContext = blenderContext;\r\n\t\tthis.name = constraintStructure.getFieldValue(\"name\").toString();\r\n\t\tPointer pData = (Pointer) constraintStructure.getFieldValue(\"data\");\r\n\t\tif (pData.isNotNull()) {\r\n\t\t\tdata = pData.fetchData(blenderContext.getInputStream()).get(0);\r\n\t\t\tPointer pTar = (Pointer)data.getFieldValue(\"tar\");\r\n\t\t\tif(pTar!= null && pTar.isNotNull()) {\r\n\t\t\t\tStructure targetStructure = pTar.fetchData(blenderContext.getInputStream()).get(0);\r\n\t\t\t\tLong targetOMA = pTar.getOldMemoryAddress();\r\n\t\t\t\tSpace targetSpace = Space.valueOf(((Number) constraintStructure.getFieldValue(\"tarspace\")).byteValue());\r\n\t\t\t\tObjectHelper objectHelper = blenderContext.getHelper(ObjectHelper.class);\r\n\t\t\t\tSpatial target = (Spatial) objectHelper.toObject(targetStructure, blenderContext);\r\n\t\t\t\tthis.target = new Feature(target, targetSpace, targetOMA, blenderContext);\r\n\t\t\t} else {\r\n\t\t\t\tthis.target = null;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new BlenderFileException(\"The constraint has no data specified!\");\r\n\t\t}\r\n\t\tSpace ownerSpace = Space.valueOf(((Number) constraintStructure.getFieldValue(\"ownspace\")).byteValue());\r\n\t\tthis.owner = new Feature(ownerSpace, ownerOMA, blenderContext);\r\n\t\tthis.ipo = influenceIpo;\r\n\t}", "title": "" } ]
[ { "docid": "7295334407973dfff3a7d6ace4ebd3a7", "score": "0.80465615", "text": "Constraint createConstraint();", "title": "" }, { "docid": "7295334407973dfff3a7d6ace4ebd3a7", "score": "0.80465615", "text": "Constraint createConstraint();", "title": "" }, { "docid": "7295334407973dfff3a7d6ace4ebd3a7", "score": "0.80465615", "text": "Constraint createConstraint();", "title": "" }, { "docid": "0d2b9f1878b90b316073328939a5243f", "score": "0.76624256", "text": "public AbstractConstraint() {\n // empty no arguments constructor for persistence\n\t}", "title": "" }, { "docid": "1f0146c5afeb98558ba520833781465f", "score": "0.73055404", "text": "public AbstractParameterConstraint() {}", "title": "" }, { "docid": "f28cf7e1a7fb6b3aaf2dc141a40641ac", "score": "0.6775698", "text": "@Override\n public void initialize(ValidClass constraintAnnotation) {\n }", "title": "" }, { "docid": "be1ba1ba0b14a3e83764d2b4f667d857", "score": "0.6450597", "text": "ConstraintSet createConstraintSet();", "title": "" }, { "docid": "9ed6584f0e931648c550fcca4370a03c", "score": "0.644223", "text": "public Constraint(){ // On initialise les solvers\r\n\t\thourS = new Solver(\"Hour range solver\");\r\n\t}", "title": "" }, { "docid": "20bec6688eb021bccbac60b2ef7ed318", "score": "0.6379267", "text": "public ConstraintNode(Expression expr) {\n\t\taddNode(expr, null);\n\t}", "title": "" }, { "docid": "39e5c16b6e9d54a65e0f75e59535365b", "score": "0.63570476", "text": "protected CourseGroupCreditsSumConstraint() {\n // needed for CDI\n }", "title": "" }, { "docid": "22b59fea791a620ede5b98df04a14362", "score": "0.6356651", "text": "ConstraintSpace createConstraintSpace();", "title": "" }, { "docid": "031bf523027f5d956c95e7019dc3469e", "score": "0.62463367", "text": "public Constraint(String label, int A, int B, int C)\n {\n if (!label.equals(\"First\") &&\n !label.equals(\"Second\") &&\n !label.equals(\"Third\"))\n {\n // we may throw a new ClassCastException here!\n System.err.println(\"Michael's advice: you shall create a new Constraint object with a proper label, either, \\\"First\\\", \\\"Second\\\" or \\\"Thrid\\\"\");\n this.label = \"Unknown\";\n this.A = A;\n this.B = B;\n this.C = C;\n }\n else\n {\n this.label = label;\n this.A = A;\n this.B = B;\n this.C = C;\n }\n }", "title": "" }, { "docid": "63b39a6b98703114d43a386e6fffd3b3", "score": "0.6240131", "text": "public Constraint(final int value)\n\t{\n\t\tinit(AlignmentType.CONSTANT, value);\n\t}", "title": "" }, { "docid": "d764bd4e5ad6532d7056745bf991daa4", "score": "0.6187406", "text": "@Override\n\tpublic void initialize(ValidateLanguage constraintAnnotation) {\n\t\t\n\t}", "title": "" }, { "docid": "53d17a5f81cd550571590bbca3cb6c32", "score": "0.6103967", "text": "protected Bounds() {\n }", "title": "" }, { "docid": "96bf1c546e7b1dac6421b4aab3529b17", "score": "0.59981203", "text": "private CONSTRAINTREF(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "9b9e09b35d5a7c4e2d91e882d4160cf9", "score": "0.59784424", "text": "public KlangexprValidator() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "8160c164aa480d089792b63339c7f785", "score": "0.59732145", "text": "public void setConstraint(ConOp lc);", "title": "" }, { "docid": "a2ad173158ee79136d7deb734491d508", "score": "0.5968497", "text": "public TableConstraintsRecord() {\n\t\tsuper(com.davidm.mykindlenews.generated.jooq.information_schema.tables.TableConstraints.TABLE_CONSTRAINTS);\n\t}", "title": "" }, { "docid": "a637ea175d39a909fb68ea8373a7420f", "score": "0.5925944", "text": "public Restrictions() {\n\t}", "title": "" }, { "docid": "b39882ad0629ca52d6150f9d351c3be8", "score": "0.5917713", "text": "public SeqObjective()\n {\n }", "title": "" }, { "docid": "edb646118aaa4b73e304b4cd60a4635b", "score": "0.58784205", "text": "public RangeConstraint(T min, T max) {\n this.min = min;\n this.max = max;\n }", "title": "" }, { "docid": "6d2f3bb14dd0efef134caee45fd484a3", "score": "0.5848887", "text": "public Solver() {}", "title": "" }, { "docid": "d2e84173a5602d243c32769f444eebec", "score": "0.58423954", "text": "public AliasConstraint() {\n\t\tisTrue = false;\n\t\tisFalse = false;\n\t}", "title": "" }, { "docid": "cc474d39fa5cbd59c12a7d741f97b371", "score": "0.57908374", "text": "public ConstraintWidgetContainer() {\n }", "title": "" }, { "docid": "29fcddc6ccd67821a2a94d4d5888553f", "score": "0.5788522", "text": "public CertificationCriterionEntity() {\r\n\t\t// Default constructor\r\n\t}", "title": "" }, { "docid": "4fe9ac4a95c615465a786b66fea3d237", "score": "0.57701373", "text": "public MyInjectingConstraintValidatorFactory(ResourceContext resourceContext) {\n this.resourceContext = resourceContext;\n }", "title": "" }, { "docid": "01893fa69448e05b2df41e94f7b721fe", "score": "0.57041556", "text": "public AffixConstraintsFailure() {\n\t}", "title": "" }, { "docid": "aecc9528925af20081af50a7b9b32bf7", "score": "0.5696436", "text": "public Payrule() {\n\t}", "title": "" }, { "docid": "274aa2d729a73a1d3a7fe40746784407", "score": "0.5675044", "text": "RackAwareGoal(BalancingConstraint constraint) {\n _balancingConstraint = constraint;\n }", "title": "" }, { "docid": "f10ac7ba210b6f21b5fd2fc058d94165", "score": "0.56525034", "text": "public Constraint getConstraint() {\r\n return constraint;\r\n }", "title": "" }, { "docid": "a544522dec67835c7034ccfb2806ecc5", "score": "0.5639564", "text": "@Override\n\tpublic void initialize(Hobby constraintAnnotation) {\n\t\tvalidHobbies = constraintAnnotation.hobbies();\n\t}", "title": "" }, { "docid": "384afacb3aea2f66989008028d6cd21b", "score": "0.56372494", "text": "public Policy() {\n }", "title": "" }, { "docid": "1cc5271d66a76c3dffe3cc86e03ca44f", "score": "0.5635276", "text": "ConstraintRedundancy createConstraintRedundancy();", "title": "" }, { "docid": "27e2e297b58c9cdc7af191a00f1ee677", "score": "0.5629284", "text": "public Compound(List<? extends Constraint> constraints) {\n this.constraints = new ArrayList<Constraint>();\n for (Constraint constraint : constraints) {\n if (constraint instanceof Compound) {\n this.constraints.addAll(((Compound) constraint).constraints);\n } else {\n this.constraints.add(constraint);\n }\n }\n }", "title": "" }, { "docid": "fe3387d74e1720d502358ca083146c6c", "score": "0.5612173", "text": "public meConstraint(String c, List<String> p)\n {\n _cons = c;\n _params = p;\n }", "title": "" }, { "docid": "ccec6e1e5479125eeb27d3e69ca6352d", "score": "0.56060994", "text": "public FRequirement()\n {\n }", "title": "" }, { "docid": "138a4bf88b0b7da40f661f9784c3055c", "score": "0.55990493", "text": "public LevelOrderTreeNodeSearcher(final TreeNodeConstraint<T> constraint) {\n\t\tsuper(constraint);\n\t}", "title": "" }, { "docid": "d86e55f2ac1e46cb23004deba1f4face", "score": "0.5597465", "text": "private CSPSolver() {}", "title": "" }, { "docid": "c6026fc47ca49d19e3db88bc04e77324", "score": "0.5592964", "text": "public void initialize(Size constraint) {\n min = constraint.min();\n max = constraint.max();\n if (min < 0) throw new ValidationException(\"Min cannot be negative\");\n if (max < 0) throw new ValidationException(\"Max cannot be negative\");\n if (max < min) throw new ValidationException(\"Max cannot be less than Min\");\n }", "title": "" }, { "docid": "124afa2af63b8110de20394844e55669", "score": "0.55878586", "text": "public NonRigidBodyStickConstraint()\n\t{\n\t\t_dist = 0;\n\t\t_aToB = new Vector2();\n\t}", "title": "" }, { "docid": "1aaf4c200a4faa3a77739ae303240b24", "score": "0.55845946", "text": "RuleImpl() {\n super();\n }", "title": "" }, { "docid": "9e9d360088a977d890121dae0a9da77c", "score": "0.5549613", "text": "private Validator() {\n }", "title": "" }, { "docid": "e3b6a02cb9e32138beca240566eea85d", "score": "0.55378366", "text": "public Constraint(final float value)\n\t{\n\t\tinit(AlignmentType.PERCENT, value);\n\t}", "title": "" }, { "docid": "e0639e7ac623246fb30474ab499b2765", "score": "0.55154634", "text": "public NameConstraintsExtension(Boolean paramBoolean, Object paramObject) throws IOException {\n/* 170 */ this.extensionId = PKIXExtensions.NameConstraints_Id;\n/* 171 */ this.critical = paramBoolean.booleanValue();\n/* */ \n/* 173 */ this.extensionValue = (byte[])paramObject;\n/* 174 */ DerValue derValue = new DerValue(this.extensionValue);\n/* 175 */ if (derValue.tag != 48) {\n/* 176 */ throw new IOException(\"Invalid encoding for NameConstraintsExtension.\");\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 186 */ if (derValue.data == null)\n/* */ return; \n/* 188 */ while (derValue.data.available() != 0) {\n/* 189 */ DerValue derValue1 = derValue.data.getDerValue();\n/* */ \n/* 191 */ if (derValue1.isContextSpecific((byte)0) && derValue1.isConstructed()) {\n/* 192 */ if (this.permitted != null) {\n/* 193 */ throw new IOException(\"Duplicate permitted GeneralSubtrees in NameConstraintsExtension.\");\n/* */ }\n/* */ \n/* 196 */ derValue1.resetTag((byte)48);\n/* 197 */ this.permitted = new GeneralSubtrees(derValue1); continue;\n/* */ } \n/* 199 */ if (derValue1.isContextSpecific((byte)1) && derValue1\n/* 200 */ .isConstructed()) {\n/* 201 */ if (this.excluded != null) {\n/* 202 */ throw new IOException(\"Duplicate excluded GeneralSubtrees in NameConstraintsExtension.\");\n/* */ }\n/* */ \n/* 205 */ derValue1.resetTag((byte)48);\n/* 206 */ this.excluded = new GeneralSubtrees(derValue1); continue;\n/* */ } \n/* 208 */ throw new IOException(\"Invalid encoding of NameConstraintsExtension.\");\n/* */ } \n/* */ \n/* 211 */ this.minMaxValid = false;\n/* */ }", "title": "" }, { "docid": "b2c49065111d81a02780b7bf53f929c6", "score": "0.5509148", "text": "@Override\n\tpublic void initialize(ClienteInsert constraintAnnotation) {\n\n\t}", "title": "" }, { "docid": "4c176595521b5931ac304e0518c302aa", "score": "0.5503376", "text": "public Graph0Comp (Constraints C, Graph0 G, Graph0 H) {\n super (C,G.source,H.target);\n this.G = G;\n this.H = H;\n C.gap0 (left,G.left);\n C.gap0 (H.right,right);\n C.gap0 (G.top,top);\n C.gap0 (H.top,top);\n C.gap0 (bot,G.bot);\n C.gap0 (bot,H.bot);\n C.gap1 (G.right, H.left);\n }", "title": "" }, { "docid": "4172051af4fd4f066414b01b6b91bce1", "score": "0.5490552", "text": "public RecursiveKnapsackSolver() { //null constructor, static classes don't need to be initialized\n }", "title": "" }, { "docid": "0a2bf29408755642b047b4cd00894dc1", "score": "0.54889107", "text": "private ARCHETYPECONSTRAINT(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "dd00982dc599a5639eda76c8c506e245", "score": "0.5488734", "text": "protected abstract void bakeConstraint();", "title": "" }, { "docid": "7a1db09a12fcb56c7a07e054c282793f", "score": "0.5483108", "text": "public QuestionCriteria()\n {\n this(null, null, null, null, 0);\n }", "title": "" }, { "docid": "aa221a683bd35cfed09215eff399490d", "score": "0.54483944", "text": "public Range() {\n }", "title": "" }, { "docid": "ba9cc29f27c587a7ea1ad098215d9094", "score": "0.54446965", "text": "public ObjectiveModel() {\n\t\tsuper(0,0,1,1);\n\t}", "title": "" }, { "docid": "4b867b5af18bb8f4fd38419f85ecdbe5", "score": "0.544053", "text": "public CellConstraints createCellConstraints() {\r\n\t\ttry {\r\n\t\t\treturn new CellConstraints(m_column, m_row, m_colspan, m_rowspan, FormUtils.toAlignment(m_halign), FormUtils.toAlignment(m_valign), m_insets);\r\n\t\t} catch (Exception e) {\r\n\t\t\t/**\r\n\t\t\t * an exception can potentially be thrown if the vertical or\r\n\t\t\t * horizontal alignments get mangled somehow. This should never\r\n\t\t\t * happen though\r\n\t\t\t */\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn new CellConstraints();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "30416c77de8189624fdf9b994266a8cb", "score": "0.5419873", "text": "public void Constructor(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "994d664971887e0cf7755eb9c9f66146", "score": "0.5418197", "text": "ExpressionType getConstraint();", "title": "" }, { "docid": "b4f29ad3e27a4357703d51285e83fa79", "score": "0.54168344", "text": "public URule() {\r\n super();\r\n }", "title": "" }, { "docid": "a30d9ff1ec6cedc2b00c0d2ac8453fb9", "score": "0.54122937", "text": "public Sch1_Objective_2() {\n }", "title": "" }, { "docid": "225fe622a4df22839d24c78dbeb82f2d", "score": "0.54081273", "text": "public Binding()\n {\n this(null, null, null);\n }", "title": "" }, { "docid": "0035d0fc446b380b8e5b3e8da0009630", "score": "0.5403667", "text": "private ConstraintBindingSet(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "0bf1d7b7dcdfff34de9022a38c1c5cfb", "score": "0.53971124", "text": "protected Criterion(String condition, Object value)\r\n/* 894: */ {\r\n/* 895:764 */ this(condition, value, null);\r\n/* 896: */ }", "title": "" }, { "docid": "e8974a71922b3d0a67a965d5569235b8", "score": "0.53940886", "text": "public RoleAssignment() {\n }", "title": "" }, { "docid": "1e465995c76d9f42f5e4625bcccd4d1b", "score": "0.5377196", "text": "public CA()\n\t{\n\t\tthis(new Config());\n\t}", "title": "" }, { "docid": "8e6f4264c66a32adc195c85cef39e7c2", "score": "0.53724223", "text": "public A112813() {\n this(1, 3);\n }", "title": "" }, { "docid": "28fca3221a113c0c140db6785e1d39a5", "score": "0.53710693", "text": "public Expression(){}", "title": "" }, { "docid": "da18b71835ac95c5f874ce3f07d38eec", "score": "0.5369718", "text": "public void setConstraint(Constraint newConstraint) {\r\n constraint = newConstraint;\r\n }", "title": "" }, { "docid": "df4b43b7b49cec19cb0a9211ce601a24", "score": "0.5364508", "text": "public abstract void generateInitialConstraints();", "title": "" }, { "docid": "ecbc550983c5e82840586273a4a3c9b2", "score": "0.5362246", "text": "public Attribute() {\n }", "title": "" }, { "docid": "e00057996515a62826dd58cf5f0036a2", "score": "0.5361571", "text": "public Verification() {\n }", "title": "" }, { "docid": "cba52d8057c57693a99f9f6f801d6f46", "score": "0.5356322", "text": "public LinearKernel() {\n\t\t\n\t}", "title": "" }, { "docid": "6072af0a9a73a07a7cecab6ebfb26abc", "score": "0.5318008", "text": "public Obj(int dim)\n\t{\n\t\tthis.dim = dim;\n\t\tthis.coords = new IntDomainVar[this.dim];\n\t\tthis.relatedExternalConstraints = new ArrayList<ExternalConstraint>();\n\t\tthis.relatedInternalConstraints = new ArrayList<InternalConstraint>();\n\t}", "title": "" }, { "docid": "aac7820d7300093d10f10922097954d3", "score": "0.5317227", "text": "public Interval() { }", "title": "" }, { "docid": "c8fef1c51602ee2fe83e3c7069a78374", "score": "0.5310097", "text": "public StandardPackageValidator() {\n }", "title": "" }, { "docid": "9e190499b3f81e6cc534524b278fc4a8", "score": "0.53087986", "text": "public ValidarResource() {\n }", "title": "" }, { "docid": "29f9d8f7788b33f13c85c6825218b522", "score": "0.5287291", "text": "private RigidBody(Shape shape, final double x, final double y) {\n super(shape);\n com = new XPoint(x, y);\n }", "title": "" }, { "docid": "cec0d96ad6cb0ad97a58a2b3b6deac59", "score": "0.5279707", "text": "public Parameter() {\r\n }", "title": "" }, { "docid": "80e192b667a083f6f003ad122867a3a4", "score": "0.5274009", "text": "public DependencySpecBuilder() {\n }", "title": "" }, { "docid": "3b515759dfb033d729d26c37da6717ef", "score": "0.5269213", "text": "public Parameter() {\n }", "title": "" }, { "docid": "0c1892e73071a1b43c3c8bb52daea2a1", "score": "0.5268692", "text": "public LineConstraint(Point point1, Point point2) {\n this.point1 = point1;\n this.point2 = point2;\n this.length = calculateDistance(); // Length of constraint is the initial distance between the points\n }", "title": "" }, { "docid": "358138b5b6bf177a50e39de35624170a", "score": "0.52646977", "text": "private DistributorTransactionValidator() {\n\t\t/* Private Constructor */\n\t}", "title": "" }, { "docid": "ab837c8f9dc63caae0de936fd38fb995", "score": "0.5234634", "text": "public AbstractPersistentStore(String[] constraintParams){ \n\tthis.consParams = constraintParams; \n}", "title": "" }, { "docid": "3cce9a0ca9406d274732ddd4dbfdb85e", "score": "0.52328056", "text": "public FpValidator() {\n super();\n }", "title": "" }, { "docid": "5aa07acc102a9bca78eca737e873b7b4", "score": "0.5230449", "text": "@Override\r\n\t\tpublic void initialize(Hour constraintAnnotation) {\n\t\t}", "title": "" }, { "docid": "f32d9e9154c373d568507c8e5db92456", "score": "0.5230238", "text": "public Schema() {\r\n\r\n super();\r\n }", "title": "" }, { "docid": "f5ef7d2db9ed0b40b1dd53fa8e32b738", "score": "0.52143544", "text": "public PathConstraint(String path)\n\t{\n\t\tsuper(2);\n\t\tthis.pa = new PathAccessor(path, BioPAXLevel.L3);\n\t}", "title": "" }, { "docid": "71149c1b95f5d497f0c2da3d110ad1cf", "score": "0.5209978", "text": "public Rectangle() {\n\t\t// Call designated constructor\n\t\tthis(0.0, 0.0, 0.0, 0.0);\n\t}", "title": "" }, { "docid": "b4f981424d56e331c7cf7ddba8fac4fd", "score": "0.52096754", "text": "protected Criterion(String condition, Object value, Object secondValue)\r\n/* 908: */ {\r\n/* 909:777 */ this(condition, value, secondValue, null);\r\n/* 910: */ }", "title": "" }, { "docid": "25f70093c14119495b4e6ac694388db2", "score": "0.52033114", "text": "public ConfProcValidator ()\r\n\t{\r\n\t\tsuper ();\r\n\t}", "title": "" }, { "docid": "28176b8551f0ee027c88d07e886400d8", "score": "0.5201789", "text": "public Circulo() {\n }", "title": "" }, { "docid": "00dc142ff83421fa21698b3b47a8eda9", "score": "0.5196584", "text": "private PriorityConstants(){}", "title": "" }, { "docid": "fdb6dce652289be29ce9b5eb2b5efd26", "score": "0.51957613", "text": "public GenericGraph() {\n }", "title": "" }, { "docid": "197735c7c2121a7d87130f898bcd83d6", "score": "0.5193637", "text": "protected Contract() {\n\t\tthis.balance = BigInteger.ZERO;\n\t\tthis.balanceRed = BigInteger.ZERO;\n\t}", "title": "" }, { "docid": "5a10496948558076a8d77caa33c9791d", "score": "0.5193594", "text": "public LinearKernel()\n {\n super();\n }", "title": "" }, { "docid": "e2d0c7ed9ea64e5de962e16ffd12bbe2", "score": "0.51905644", "text": "public AlignmentConstraint(Node f, Node s, Type t, int min, int max, boolean[] atts, boolean [] fs) {\n this.node1 = f;\n this.node2 = s;\n this.type = t;\n this.min = min;\n this.max = max;\n if (t == Type.PARENT_CHILD) {\n attributes = new boolean[6];\n fills = new boolean[2];\n fills = fs;\n } else {\n attributes = new boolean[11];\n }\n this.attributes = atts;\n }", "title": "" }, { "docid": "c96c5d4ea6f9e9356a7f74704418034e", "score": "0.5190404", "text": "public Case2() {\r\n\t\t// Cria��o das vari�veis\r\n\t\tsuper(allVar);\r\n\t\t\r\n\t\tDomain<String> atividades = new Domain<>(\r\n\t\t\t\tCOMP0409, COMP0438, COMP0412, COMP0408, COMP0461, \r\n\t\t\t\tESCOMP0409, ESCOMP0438, ESCOMP0412, ESCOMP0408, ESCOMP0461,\r\n\t\t\t\tTRABALHO,\r\n\t\t\t\tVAZIO, VAZIO, VAZIO, VAZIO\r\n\t\t);\r\n\t\t\r\n\t\tfor (Variable var : getVariables())\r\n\t\t\tsetDomain(var, atividades);\r\n\t\t\r\n\t\t/* RESTRI��ES */\r\n\t\t// Restri��es Un�rias\r\n\t\taddConstraint(new UnaryConstraint(H2T1, COMP0409));\r\n\t\taddConstraint(new UnaryConstraint(H2T2, COMP0409));\r\n\t\taddConstraint(new UnaryConstraint(H4T1, COMP0409));\r\n\t\taddConstraint(new UnaryConstraint(H4T2, COMP0409));\r\n\t\t\r\n\t\taddConstraint(new UnaryConstraint(H6T1, COMP0438));\r\n\t\taddConstraint(new UnaryConstraint(H6T2, COMP0438));\r\n\t\taddConstraint(new UnaryConstraint(H6T3, COMP0438));\r\n\t\taddConstraint(new UnaryConstraint(H6T4, COMP0438));\r\n\t\t\r\n\t\taddConstraint(new UnaryConstraint(H3T3, COMP0412));\r\n\t\taddConstraint(new UnaryConstraint(H3T4, COMP0412));\r\n\t\taddConstraint(new UnaryConstraint(H5T3, COMP0412));\r\n\t\taddConstraint(new UnaryConstraint(H5T4, COMP0412));\r\n\t\t\r\n\t\taddConstraint(new UnaryConstraint(H2T5, COMP0408));\r\n\t\taddConstraint(new UnaryConstraint(H2T6, COMP0408));\r\n\t\taddConstraint(new UnaryConstraint(H4T5, COMP0408));\r\n\t\taddConstraint(new UnaryConstraint(H4T6, COMP0408));\r\n\t\t\r\n\t\taddConstraint(new UnaryConstraint(H2N2, COMP0461));\r\n\t\taddConstraint(new UnaryConstraint(H2N3, COMP0461));\r\n\t\taddConstraint(new UnaryConstraint(H4N2, COMP0461));\r\n\t\taddConstraint(new UnaryConstraint(H4N3, COMP0461));\r\n\t\t\r\n\t\taddConstraint(new UnaryConstraint(H2M1, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H2M2, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H2M3, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H2M4, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H2M5, TRABALHO));\r\n\r\n\t\taddConstraint(new UnaryConstraint(H3M1, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H3M2, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H3M3, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H3M4, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H3M5, TRABALHO));\r\n\r\n\t\taddConstraint(new UnaryConstraint(H4M1, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H4M2, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H4M3, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H4M4, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H4M5, TRABALHO));\r\n\r\n\t\taddConstraint(new UnaryConstraint(H5M1, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H5M2, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H5M3, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H5M4, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H5M5, TRABALHO));\r\n\r\n\t\taddConstraint(new UnaryConstraint(H6M1, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H6M2, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H6M3, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H6M4, TRABALHO));\r\n\t\taddConstraint(new UnaryConstraint(H6M5, TRABALHO));\r\n\t\t\r\n\t\t// Restri��es de volume\r\n\t\taddConstraint(new VolumeConstraint(allVar, COMP0409, 4));\r\n\t\taddConstraint(new VolumeConstraint(allVar, COMP0438, 4));\r\n\t\taddConstraint(new VolumeConstraint(allVar, COMP0412, 4));\r\n\t\taddConstraint(new VolumeConstraint(allVar, COMP0408, 4));\r\n\t\taddConstraint(new VolumeConstraint(allVar, COMP0461, 4));\r\n\t\t\r\n\t\taddConstraint(new VolumeConstraint(allVar, ESCOMP0409, 2));\r\n\t\taddConstraint(new VolumeConstraint(allVar, ESCOMP0438, 2));\r\n\t\taddConstraint(new VolumeConstraint(allVar, ESCOMP0412, 2));\r\n\t\taddConstraint(new VolumeConstraint(allVar, ESCOMP0408, 2));\r\n\t\taddConstraint(new VolumeConstraint(allVar, ESCOMP0461, 2));\r\n\t\t\r\n\t\taddConstraint(new VolumeConstraint(allVar, TRABALHO, 25));\r\n\t}", "title": "" }, { "docid": "fe0a7f750383e0bd7fad641027820d82", "score": "0.5187779", "text": "public ConceptAssertion(String x,String c) {\r\n\tsuper();\r\n\tindividual=x;\r\n\tconcept=c;\r\n}", "title": "" }, { "docid": "dfd7d46550bb35df441ad1af963b39be", "score": "0.5186813", "text": "public Condition() {\n super();\n this.lambda = null;\n }", "title": "" }, { "docid": "f5581abc8f15209fe6e79aac69342528", "score": "0.5184022", "text": "public CellConstraintsMemento() {\r\n\r\n\t}", "title": "" }, { "docid": "7d8d9599215858b61c4ce294e15b7a6b", "score": "0.5175131", "text": "public Assignment() {\r\n\t}", "title": "" }, { "docid": "556eb6903ed1f0d5607ba158b7375d34", "score": "0.517236", "text": "public RangeAndStartClassifier() {}", "title": "" } ]
5f590cbb583ca2c3e57e67efdafe9ef3
Created by plus on 14321.
[ { "docid": "70d415a22d3f3a9795b9b01fdc9e5a53", "score": "0.0", "text": "@Repository\npublic interface UserMapper {\n\n @Select(\"SELECT USER_ID AS USERID,NAME,EMAIL,PASSWORD,SEX FROM USER WHERE NAME = #{name}\")\n User getUser(String name);\n\n @Insert(\"INSERT INTO USER (USER_ID,NAME,EMAIL,PASSWORD,SEX) VALUE (#{id},#{name},#{email},#{password},#{sex})\")\n void insertUser(User user);\n\n}", "title": "" } ]
[ { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6299451", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "f777356e2cd2fecd871f35f7e556fda8", "score": "0.62010175", "text": "public void mo3640e() {\n }", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.5991891", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.5991891", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "a55a150557f80abcbd733ee3162b0661", "score": "0.5989371", "text": "private void m18301a() {\n }", "title": "" }, { "docid": "432a53d7cc7bff50c3cce7662418fe22", "score": "0.58925617", "text": "private static void daelijeom() {\n\t\t\n\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.5767487", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "609ec2ff060d9d4cb0276468f482734d", "score": "0.5743975", "text": "public void mo89673a() {\n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5709318", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "0b06f1c2066a7ed1df417a1383204e17", "score": "0.5570356", "text": "Internal internal();", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5535842", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "117880abb5124676c2fe5925b9c9291e", "score": "0.55185884", "text": "private void partenza() {\n }", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.55108476", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "5314003d8592219f71035b81985fabc0", "score": "0.5505749", "text": "@Override\n\tpublic void roule() {\n\t\t\n\t}", "title": "" }, { "docid": "359987993ad84757f9d7a12eaf38d2d7", "score": "0.5503473", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.55025285", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "b08f4638320db7d0a618ea28376deec3", "score": "0.5485836", "text": "private static void atrim() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5481134", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "b8cd427648ea50c94f93c47d407d10a0", "score": "0.546637", "text": "public void mo3639d() {\n }", "title": "" }, { "docid": "619a28ba3c7707bdf8bb1451d5c3d12b", "score": "0.5456923", "text": "public void mo25069a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.54257476", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.54196596", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "2bcac1bab4eaa6c9cc4cb7e33c684cef", "score": "0.54168", "text": "public void mo1691a() {\n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5405403", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "3211287bc24304a8ca2975647e8a262e", "score": "0.54002976", "text": "public void mo1702b() {\n }", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.5398006", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53870124", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53870124", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53870124", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53870124", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53870124", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53870124", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53870124", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53870124", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "ab499170bffb402933a50d63a97e69dd", "score": "0.5383469", "text": "@Override\r\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "feb1a9485d06df38283881186fb528a9", "score": "0.5374184", "text": "@Override\n \tprotected void initialize() {\n \n \t}", "title": "" }, { "docid": "e98e1f8ddb7a94a5d95c29c94232f737", "score": "0.53522867", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.5351136", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.5351136", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "cf1fe3fbd7326948a60560edefd4f5ec", "score": "0.53480077", "text": "private void m18303b() {\n }", "title": "" }, { "docid": "cdf2a119ee69429ad4420d45c29db1b6", "score": "0.5313029", "text": "@Override\n\tpublic void netword() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5312691", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "6a8c6480f9fa5ab89d0437d00ffffccc", "score": "0.529398", "text": "@Override\n public void tirer() {\n\n }", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.5278688", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "65022f0bb57de78da8518cd156b102e6", "score": "0.5257723", "text": "private void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "de8c2aa495b8cdade7e8895e58745ea2", "score": "0.52545047", "text": "public void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "7721677c9c247497df61f02707d2c6d5", "score": "0.52337474", "text": "void mo15172af();", "title": "" }, { "docid": "a7cff18dc205a0d79dbe54bb988e6894", "score": "0.5228955", "text": "public void emettreSon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5220787", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5220787", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5220787", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.52178556", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.52178556", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "2d61391fe8770661f25917f3770f2a26", "score": "0.52122283", "text": "@Override\n\t\tpublic void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.52035475", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.52035475", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.52035475", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.52035475", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.52021366", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.5194426", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "615018f0186427ab904e872db6726b2d", "score": "0.51912236", "text": "@Override\n public void init()\n {\n \n }", "title": "" }, { "docid": "10e00e5505d97435b723aeadb7afb929", "score": "0.5181199", "text": "@Override\n\tpublic void pintar2() {\n\t\t\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5174218", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5167567", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5167567", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "f4f48197b3fa17ad117947be0d5a5650", "score": "0.51637626", "text": "public void mo2849x() {\n }", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.5158483", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5141348", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "8abd71401843bdc0499ea12a3a300664", "score": "0.5139668", "text": "private void exibirInfo() {\n\t\t\n\t}", "title": "" }, { "docid": "e41230eaa4480036f1db3ae4856b5e2c", "score": "0.51365423", "text": "@Override\n\tpublic void evoluer() {\n\t\t\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.51317376", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "dd7a00150b5c2e71163d8c684316f9ed", "score": "0.51301885", "text": "public void mo3638c() {\n }", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.51297224", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.51297224", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.51297224", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.51297224", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "0e6111ae009ad752a364e5e9fb168e98", "score": "0.5127604", "text": "@Override\n\tpublic void volumne() {\n\t\t\n\t}", "title": "" }, { "docid": "ee030ae76394814130f77e2c54b762c4", "score": "0.51262915", "text": "@Override\n\t void init() {\n\t }", "title": "" }, { "docid": "06c407b3cacc3e964dfd7296780a7d20", "score": "0.512162", "text": "public abstract void mo79858d();", "title": "" }, { "docid": "3f651ef5a6fad17e313e8da4ea72b6e3", "score": "0.5117714", "text": "@Override\n\tpublic void CT() {\n\t\t\n\t}", "title": "" }, { "docid": "3e6e2e657db69bfc88c40c8467801266", "score": "0.5116983", "text": "@Override\r\n\tpublic void ben() {\n\t\t\r\n\t}", "title": "" }, { "docid": "be30a755a49491d0c1db538cbb3c601d", "score": "0.5113806", "text": "@Override\r\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "13e4409784fd6f872b474e6effe9726e", "score": "0.5110251", "text": "@Override\n protected void initialization() {\n\n\n\n }", "title": "" }, { "docid": "1dc1426b3b1c079ac18377166a6b34d3", "score": "0.5109211", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "18619fb436efbffc5fe3d164db596301", "score": "0.51090574", "text": "private void method_3485() {\r\n super();\r\n }", "title": "" }, { "docid": "f4e7a43c10e818fcfb7ca7db0c504bf3", "score": "0.5108812", "text": "private void init()\n\t{\n\t\n\t}", "title": "" }, { "docid": "365a661b2084f764f5e458915ff735ac", "score": "0.5107442", "text": "@Override\n public int getMunition() {\n return 0;\n }", "title": "" }, { "docid": "1b6e09a6782d50972c182ef576e82c8d", "score": "0.5104557", "text": "public void mo5729d() {\n }", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.5101546", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5097172", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.509385", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.509385", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "2d09c2667d02737311a032c800665cb0", "score": "0.50881875", "text": "void mo21758Dp();", "title": "" }, { "docid": "21676454c2f1028533fcdc413508af02", "score": "0.5082228", "text": "@Override\r\n public long position() {\n return 0;\r\n }", "title": "" }, { "docid": "3fb636b9ce0d711892980996a1771579", "score": "0.5079176", "text": "public final void mo53187a() {\n }", "title": "" }, { "docid": "656716153b22493864f462d3892b023d", "score": "0.50752497", "text": "public abstract void mo79857c();", "title": "" }, { "docid": "1bb2ba2fd698bfb2b8b88494f3d5649d", "score": "0.507404", "text": "@Override\n\tpublic void init()\n\t{\n\t}", "title": "" }, { "docid": "3ea264268cd945e9281ac9d06e9bb7c5", "score": "0.5072551", "text": "@Override\n\tpublic void euphoria() {\n\t\t\n\t}", "title": "" }, { "docid": "3ea264268cd945e9281ac9d06e9bb7c5", "score": "0.5072551", "text": "@Override\n\tpublic void euphoria() {\n\t\t\n\t}", "title": "" }, { "docid": "d885268f3758445bfb42a96de5584d1c", "score": "0.5070276", "text": "public void superPerotti() {\n\t}", "title": "" }, { "docid": "9c0be8b41abbc5a688c29d02287c4158", "score": "0.5068433", "text": "public void wyjscie(){}", "title": "" } ]
ced9ed5f75573e5963bf80e56462d0b6
Make this return true when this Command no longer needs to run execute()
[ { "docid": "b15ab5b5dec6646fbde6cc3610cdbcbf", "score": "0.621065", "text": "protected boolean isFinished() {\r\n return false;\r\n }", "title": "" } ]
[ { "docid": "85596fd338399eb5eae9019df615bb49", "score": "0.764683", "text": "@Override\n\tpublic boolean Unexecute() \n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "731cd340842b79b78b00bf14bc04e049", "score": "0.7450012", "text": "@Override\r\n\t\t\tpublic boolean execute() {\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" }, { "docid": "f8ae50aea75575a7cbd12eb146909789", "score": "0.7086973", "text": "@Override\r\n\tprotected boolean needExecuteImmediate() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "da3e48fcf865223995f004e92848c25d", "score": "0.678269", "text": "@Override\n public boolean shouldExecute()\n {\n return true;\n }", "title": "" }, { "docid": "d8ad157c983fd8d53b6bd4c29027c95d", "score": "0.6744121", "text": "@Override\n protected boolean isFinished() {\n System.out.println(\"AutonomousCommand: isFinished() called\");\n return false;\n }", "title": "" }, { "docid": "e67fdd071eca7fa702ce37f8290ab756", "score": "0.6674755", "text": "public boolean isExecute() {\n return execute;\n }", "title": "" }, { "docid": "0a394d0f29c185db58938a335b536758", "score": "0.6627425", "text": "@Override\n public boolean shouldContinueExecuting()\n {\n return true;\n }", "title": "" }, { "docid": "5513d6593792cc9163a90181449fe88c", "score": "0.646631", "text": "@Override\n\tpublic boolean isCanExecute() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "84367548e0a254a7d5390f73374c53e9", "score": "0.6428479", "text": "@Override\r\n public boolean execute(String script) {\n return false;\r\n }", "title": "" }, { "docid": "b11efd673a3c8d6c12376480aecc76d2", "score": "0.6414306", "text": "@Override\n public boolean redo() {\n execute();\n return true;\n }", "title": "" }, { "docid": "612d49d5330531bbbae86260e21fd5a8", "score": "0.6377752", "text": "@Override\r\n protected boolean isFinished() {\r\n return false;\r\n }", "title": "" }, { "docid": "612d49d5330531bbbae86260e21fd5a8", "score": "0.6377752", "text": "@Override\r\n protected boolean isFinished() {\r\n return false;\r\n }", "title": "" }, { "docid": "eef63e5181bcfb095372f45b09374d1d", "score": "0.6358834", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "eef63e5181bcfb095372f45b09374d1d", "score": "0.6358834", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "eef63e5181bcfb095372f45b09374d1d", "score": "0.6358834", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "eef63e5181bcfb095372f45b09374d1d", "score": "0.6358834", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "eef63e5181bcfb095372f45b09374d1d", "score": "0.6358834", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "eef63e5181bcfb095372f45b09374d1d", "score": "0.6358834", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "a27d1166e5a573796373e72952c7f275", "score": "0.6330236", "text": "@Override\n\tpublic boolean isExecuted() {\n\t\treturn executed;\n\t}", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.63182455", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.63182455", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.63182455", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.63182455", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.63182455", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.63182455", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.63182455", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.63182455", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.63182455", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "b2f2c27a63357eaccec9d7abb12eff53", "score": "0.6311761", "text": "protected boolean isFinished() {\r\n return CommandBase.globalState.readyToShoot();\r\n }", "title": "" }, { "docid": "c26d2f2db1561c34d7bb481395e4c7c8", "score": "0.63045424", "text": "@Override\n\tpublic boolean processCommad(Command command) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "be36d97dc208c3bd944ea95f0e520fee", "score": "0.6273579", "text": "public static boolean quitCommand()\n \t{\n \t\tif (preventLoss(null, 0)) return (false);\n \t\tQuitJob job = new QuitJob();\n return (true);\n \t}", "title": "" }, { "docid": "eca50e355e004236f2b900c0bee40033", "score": "0.62729216", "text": "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "1f7e8b270e5ea2e054aefd0163a6ad49", "score": "0.62726694", "text": "@Override\n\tpublic boolean execute(Guild guild, TextChannel channelOfExecution) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.6249328", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.6249328", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.6249328", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.6249328", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.6249328", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.6249328", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.6249328", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.6249328", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.6249328", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.6249328", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e7c7e6071bdf30d78ef56ba3efcabbd6", "score": "0.62295496", "text": "@Override\n\tpublic boolean handle(Command command) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f9bac08106a1f63f82dac364293ab1e2", "score": "0.6225897", "text": "@CanExecute\n\tpublic boolean canExecute() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "aa087869f27a25269f2a54e7d5c05d59", "score": "0.6222246", "text": "protected boolean isFinished() {\r\n\t return false;\r\n\t}", "title": "" }, { "docid": "3accba0bd6402d935f8cbdffe359753c", "score": "0.61891896", "text": "@Override\n\tprotected void execute() {}", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.6184621", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5016f15a135bc136ebd980feb0f04df2", "score": "0.61839134", "text": "protected boolean isFinished() \r\n {\r\n return false;\r\n }", "title": "" }, { "docid": "06c6f9a480202c887e0058a981df5665", "score": "0.6174865", "text": "protected boolean isFinished()\n {\n return false;\n }", "title": "" }, { "docid": "7383966edd1f819c29c18c2d98d79fdb", "score": "0.61708194", "text": "@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7383966edd1f819c29c18c2d98d79fdb", "score": "0.61708194", "text": "@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7383966edd1f819c29c18c2d98d79fdb", "score": "0.61708194", "text": "@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.61623466", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.61623466", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.61623466", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.61623466", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "4c087c1d269bb73bbef6e13e6adc7458", "score": "0.6159102", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "4c4ef6c3b4021a2cb8501e142d7c6861", "score": "0.614759", "text": "protected boolean isFinished()\r\n {\r\n return false;\r\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.6133856", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.6133856", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.6133856", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.6133856", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.6133856", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.6133856", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.6133856", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.6133856", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.6133856", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.6133856", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.6133856", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.6133856", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" } ]
ea56018637bfae98d9c08487cab3e33d
Called on OP_WRITE event
[ { "docid": "22f4151b8213ddda8a16b9e8d66e086e", "score": "0.0", "text": "public void canWrite() throws IOException;", "title": "" } ]
[ { "docid": "beda473da333fba59bf6c1a46686daf4", "score": "0.74030954", "text": "public void write(){\n }", "title": "" }, { "docid": "1b20f94f0dad48655ea309961dd0930a", "score": "0.73399806", "text": "@Override\n\tpublic void write() {\n\n\t}", "title": "" }, { "docid": "a2618a23d05c84327fb964fb61e4a6b0", "score": "0.72792983", "text": "public void write() {\n \t\t// TODO implement this\n \t}", "title": "" }, { "docid": "5af2fad49b79e2848325018d6255000e", "score": "0.7148153", "text": "@Override\n\t\t\tpublic void write(int arg0) throws IOException {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b97fa4f448a2fc72eacaa3a591549108", "score": "0.70819634", "text": "@Override\n protected void onWrite() throws IOException {\n }", "title": "" }, { "docid": "3ec308022ddc28c0bdddbf7b170a92ad", "score": "0.70759183", "text": "void doWrite() {\n setWriteCommand();\n }", "title": "" }, { "docid": "f7aa97f04344bda7e24257edd9ad5760", "score": "0.67962146", "text": "@Override\n\tpublic void doWrite() throws IOException {\n\t\tactiveSinceLastTimeoutCheck = true;\n\t\tbbout.flip();\n\t\tsc.write(bbout);\n\t\tbbout.compact();\n\t\tprocessOut();\n\t\tupdateInterestOps();\n\t}", "title": "" }, { "docid": "87401f3769b90a1c0b634eed344ac944", "score": "0.67078876", "text": "Write getWrite();", "title": "" }, { "docid": "d08daa70e342c1f210ce358b9a4d9b73", "score": "0.66626877", "text": "@Override\n\tpublic void write(DataOutput arg0) throws IOException {\n\t\t\n\t}", "title": "" }, { "docid": "45e89d1246856e17586bd8584f8199e8", "score": "0.6541063", "text": "public void write(StorableOutput dw) {\n }", "title": "" }, { "docid": "eb2823c07d2cbfba183adf99e085def5", "score": "0.64966375", "text": "public void write(T event) {\n\n\t\tint nextPos;\n\t\n\t\ttry {\n\t\t\tthis.writeLock.lockInterruptibly();\n\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(\"Locked Thread is Interrupted\");\n\t\t\tThread.currentThread().interrupt();\n\t\t\treturn;\n\t\t}\n\n\t\t\n\t\t\tif (nextWrite.get() == -1 || nextWrite.get() >= FIXED_BUFFER_SIZE) {\n\t\t\t\tnextPos = 0;\n\t\t\t\tnextWrite.set(0);\n\t\t\t} else {\n\t\t\t\tif (nextWrite.get() == FIXED_BUFFER_SIZE - 1) {\n\t\t\t\t\tnextPos = 0;\n\t\t\t\t\tnextWrite.set(0);\n\t\t\t\t} else {\n\t\t\t\t\tnextPos = nextWrite.incrementAndGet();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Writing\" + event.toString());\n\t\t\tthis.buffer[nextPos] = event;\n\t\t\tthis.nextRead.set(nextPos);\n\t\t\tisReadAllowed.set(true);\n\t\t\tthis.writeLock.unlock();\n\t\t\n\n\t}", "title": "" }, { "docid": "5d9a4705ea4f1297cb9e4fa3584618f8", "score": "0.64442384", "text": "@Override\n\tpublic int handleWrite(Connection c) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "53f705692da74ec526da53caac09a45b", "score": "0.64125675", "text": "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\n\t}", "title": "" }, { "docid": "dcd8260ae78f8e2db0cdaafab8f69a62", "score": "0.64083856", "text": "@Override\n public synchronized void write(Event event) throws IOException\n {\n delegate.write(event);\n uncommittedWriteCount++;\n\n commitIfNeeded();\n }", "title": "" }, { "docid": "ae909659d708e54cdf2197aac844869c", "score": "0.64020234", "text": "@Override\n\tpublic Boolean write() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ae909659d708e54cdf2197aac844869c", "score": "0.64020234", "text": "@Override\n\tpublic Boolean write() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8c3683a36f8dc499150d22a0671585c3", "score": "0.63872904", "text": "@Override\r\n public void write(int b) throws IOException {\n }", "title": "" }, { "docid": "1b8f48bd9fdcdd9726280587a41171b4", "score": "0.63669735", "text": "@Override\r\n public void write(final int b) throws IOException {\n\r\n }", "title": "" }, { "docid": "2b4da9043250435cd341a3ac65324a43", "score": "0.6354029", "text": "@Override\n\t\t\t\tpublic void write(int b) throws IOException {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "7f46d0ab82f767077724683f63780be6", "score": "0.6335407", "text": "@Override\r\n\tpublic void write(DataOutput output) throws IOException {\n\t\t\r\n\t}", "title": "" }, { "docid": "cd235416bb331eb53842ec0a6c413a73", "score": "0.6318647", "text": "void writeData() throws IOException;", "title": "" }, { "docid": "7c70e03cd9ae362ba7769a2d4f1a0024", "score": "0.63080835", "text": "void write(DataOutput out) throws IOException;", "title": "" }, { "docid": "322428a4f474b0fb8883d0c1e6043107", "score": "0.63049585", "text": "abstract R doWrite(long tmOutMS) throws FaultException, E;", "title": "" }, { "docid": "6708462def1bf8003b6a3f0b7c5fcfac", "score": "0.62846273", "text": "private void writeFile() throws EventException {\n\t}", "title": "" }, { "docid": "ea3b8a353c8d8601491ca1f615cc5959", "score": "0.6270117", "text": "@Override public void write(byte[] cbuf, int off, int len) throws IOException {\n\t\t\tsynchronized (NXTBee.this){\n\t\t\t\tNXTBee.this.writeOutbound.write(cbuf, off, len);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "64b6c7ffbbfe30ab5482af7931f5226e", "score": "0.6252007", "text": "synchronized int srbObjWrite( int srbFD, byte output[], int length )\n throws IOException\n {\n if (DEBUG > 0) {\n date = new Date().getTime();\n System.err.println(\"\\n srbObjWrite\");\n }\n startSRBCommand( F_SRBO_WRITE, 2 );\n\n sendArg( srbFD );\n sendArg( output, length );\n flush( );\n\n commandStatus();\n int result = returnInt();\n if (result < 0) {\n throw new SRBException( \"Write failed\", result );\n }\n else\n return result;\n }", "title": "" }, { "docid": "fbb757ef5756ba4e85ffd6c7499f97f3", "score": "0.6245585", "text": "@Override\n\t\tpublic void onWriteNumber(int staut) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "2f140177afca6432160721e7408f4aad", "score": "0.6221156", "text": "@Override\n\tpublic void write(int b) throws IOException {\n\t\t\n\t}", "title": "" }, { "docid": "505d977f557ae5339f17b1beff932111", "score": "0.62075126", "text": "@Override\r\n\t\tpublic void writeComplete(ChannelHandlerContext ctx,\r\n\t\t\t\tWriteCompletionEvent e) throws Exception {\n\t\t\tsuper.writeComplete(ctx, e);\r\n\t\t}", "title": "" }, { "docid": "e964026e803379e7502b40efe7f1b31e", "score": "0.61798763", "text": "public void write(int b)\r\n/* 102: */ throws IOException\r\n/* 103: */ {\r\n/* 104:120 */ this.count += 1L;\r\n/* 105: */ }", "title": "" }, { "docid": "fb34b3d16172c0025863a14964dede22", "score": "0.617701", "text": "@Override\n public void setWriteListener(WriteListener arg0) {\n\n }", "title": "" }, { "docid": "3ebac6b7d3568454fef988dabae1cac9", "score": "0.6171533", "text": "private void initWriting() {\n\t\t\n\t}", "title": "" }, { "docid": "c441dc880538d731f7253d0c5bfaaf41", "score": "0.61321443", "text": "@Override\n public void write(final DataOutput output) {\n }", "title": "" }, { "docid": "ab5fb6e96802c792d3eaad23f2e779a7", "score": "0.6128647", "text": "private void write()\n\t{\n\t\topenWrite();\n\t\ttry\n\t\t{\n\t\t\tfileWrite.write(savedData, 0, savePoints);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcloseWrite();\n\t}", "title": "" }, { "docid": "45d58424bc298da794109f071a203625", "score": "0.6118148", "text": "@Override\r\n\tpublic void writeToBuffer(com.stars.network.server.buffer.NewByteBuffer buff) {\n\t\t\r\n\t}", "title": "" }, { "docid": "abf067fdc37484686bc48cf021363bca", "score": "0.61045516", "text": "public abstract String write(String command);", "title": "" }, { "docid": "a18e671c37eb0fc37edc066c9ea5f1f2", "score": "0.60930455", "text": "@Override\r\n public void writeObject(final Object obj) throws IOException {\n\r\n }", "title": "" }, { "docid": "78e0fdf28e6e3ebda71f7d4714887722", "score": "0.6089299", "text": "public void write(int addr, int word)\r\n/* :71: */ {\r\n/* :72:767 */ setOpadd(addr);\r\n/* :73:768 */ FPP.this.data.memory[(addr & 0x7FFF)] = (word & 0xFFF);\r\n/* :74: */ }", "title": "" }, { "docid": "6764d8736863430aede434e10e0fcc3d", "score": "0.60706335", "text": "public void write() {\n\t\tcreate(fileOutput);\n\t}", "title": "" }, { "docid": "04acc8bda1efc40f56549bbfa3e90b4b", "score": "0.606801", "text": "public void write(int b) {\n\t\t}", "title": "" }, { "docid": "f82658f8a93f39534f431be3dd6fa9cd", "score": "0.6065194", "text": "void writeData(DataOutput out) throws IOException;", "title": "" }, { "docid": "4e69442553a88eac2287fb6e8a24abce", "score": "0.6063651", "text": "@Override\n \tpublic void write(int c) throws IOException {\n \t\tn.checkWriteCrash(\"write(\" + c + \")\");\n \t\t\n \t\tsuper.write(c);\n \t\tsuper.flush();\n \t}", "title": "" }, { "docid": "e738e5b5b52ab1b6aa8962fe528f0b19", "score": "0.6047155", "text": "public void write(int arg0) throws IOException {\n\t\t// Do nothing in this black hole\n\t}", "title": "" }, { "docid": "b3cffb82bf5b1e9b5b34bc9742e23c17", "score": "0.6045808", "text": "public void write(DataOutput out) throws IOException {\n\r\n\t}", "title": "" }, { "docid": "6e42b9b9755019892ae3543a96beb4d3", "score": "0.60386246", "text": "@Override\r\n\tpublic void setWriteListener(WriteListener arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "c096d989f8f39c1351f60544ad64b0fd", "score": "0.60356903", "text": "@Override\n\t\t\tpublic void setWriteListener(WriteListener arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "47a8a8ec5356a1173cd41859a323e8eb", "score": "0.60243523", "text": "protected void write0(WriteRequest writeRequest) {\n writeRequest.getFuture().setWritten(false);\n }", "title": "" }, { "docid": "5a55ba0bca839f4323c95dea3c0d2b1f", "score": "0.60157204", "text": "@SuppressWarnings(\"unchecked\")\n\t\tpublic void sendWriteCommand() {\n\t\t\tif (dataRead == false){\n\t\t\t\tdataRead = true;\n\t\t\t\tthis.sendReadCommand();\n\t\t\t}\n\t\t\toutMetadata.put(\"cmd\",\"DW\");\n\t\t\tthis.sendDataToSwift();\n\t\t\t\n\t\t\toutMetadata.clear();\n\t\t\tif (metadata.isModified())\n\t\t\t\toutMetadata.put(\"object_metadata\", metadata.getAll());\n\t\t\tif (response.headers.isModified())\n\t\t\t\toutMetadata.put(\"response_headers\",response.headers.getAll());\n\t\t\tif (request.headers.isModified())\n\t\t\t\toutMetadata.put(\"request_headers\", request.headers.getAll());\n\t\t\tthis.sendDataToSwift();\n\t\t\t\n\t\t\trequest.command_sent = true;\n\t\t}", "title": "" }, { "docid": "de0d9358d36db60e738ace7f034f6e05", "score": "0.6008773", "text": "private static void writeOp(byte[] inBuffer,\n int inOffset,\n int count,\n byte[] outBuffer,\n int write_pos,\n int buff_len)\n {\n if ((write_pos + count) <= buff_len)\n {\n //single op\n System.arraycopy(inBuffer, inOffset, outBuffer, write_pos, count);\n }\n else\n {\n //till end and from beginning\n int tillEndCount;\n int fromStartCount;\n tillEndCount = buff_len - write_pos;\n fromStartCount = count - tillEndCount;\n System.arraycopy(inBuffer, inOffset, outBuffer,\n write_pos, tillEndCount);\n System.arraycopy(inBuffer, inOffset + tillEndCount,\n outBuffer, 0, fromStartCount); \n }\n }", "title": "" }, { "docid": "8fbeed6616e1b9bf17544b58e80bcd36", "score": "0.6006145", "text": "private void write(I2CDevice deviceUsed, byte[] writebuff)\n {\n try\n {\n //deviceUsed.write(address, buffer, 0, size);\n deviceUsed.write(writebuff);\n } catch (IOException ex)\n {\n Logger.getLogger(Communication.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "2a10fe59b136e817893823399c9d83a1", "score": "0.60055876", "text": "public void writeTo(OutputStream out) throws IOException {\n/* 157 */ doWriteTo(out, true);\n/* */ }", "title": "" }, { "docid": "32da4c17f6d0a6ceddde58d047cc0d21", "score": "0.59799546", "text": "private void doWrite() {\r\n\t\tInstant previousLastWritten = lastWritten;\r\n\t\ttry {\r\n\t\t\tlastWritten = Instant.now(); \r\n\t\t\tString logData = aggregateSince(previousLastWritten);\r\n\t\t\tif (logData.length() > 0) {\r\n\t\t\t\twriter.write(logData);\r\n\t\t\t\twriter.flush();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlastWritten = previousLastWritten;\r\n\t\t\tLOG.error(\"Error journaling, \", e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5ab7e4f598e5de47e9bfcf6c2c3bc145", "score": "0.59640056", "text": "private void write(int i) throws IOException {\n os.write((\"\" + i).getBytes());\n os.flush();\n }", "title": "" }, { "docid": "fa19b1acf54cf6210c25b004e6b771ff", "score": "0.5952735", "text": "public void write(java.io.OutputStream out) throws java.io.IOException { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "5e7b81dffc35d0d9e0c95bd5e1618aa1", "score": "0.59494835", "text": "private void writeNew(HttpServletRequest req, HttpServletResponse res)\r\n throws ServletException, IOException {\r\n HttpSession session = req.getSession(true);\r\n Connection conn = null;\r\n \r\n String oper = req.getParameter(\"oper\");\r\n conn = (Connection) session.getValue(\"conn\");\r\n if (oper == null) oper = \"SEL_CHANGED\";\r\n if (oper.equals(\"CREATE\")) {\r\n if (createPhenotype(req, res, conn))\r\n writeFrame(req, res);\r\n } else {\r\n writeNewPage(req, res);\r\n }\r\n }", "title": "" }, { "docid": "4425c0aae56aac95b4a7c4ad529547e4", "score": "0.59490806", "text": "static void out_flush()\n {\n if (out_pos != 0)\n {\n /* set out_pos to 0 before ui_write, to avoid recursiveness */\n int len = out_pos;\n out_pos = 0;\n ui_write(out_buf, len);\n }\n }", "title": "" }, { "docid": "3af6d6d6213196fce0424ce31c9bcc44", "score": "0.5948655", "text": "@Override\n public void setWriteListener(WriteListener writeListener) {\n }", "title": "" }, { "docid": "171bf2a23dd42440c6d1e77a95a3c066", "score": "0.59351575", "text": "public void write(byte[] buffer){\r\n\t\t\ttry {\r\n\t\t\t\toutput.write(buffer);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\thandler.obtainMessage(JankenGame.MESSAGE_WRITE,-1,-1,buffer).sendToTarget();\r\n\t\t}", "title": "" }, { "docid": "a09a446e4c4556d26e03552ff56ff35c", "score": "0.5904546", "text": "public void write (int b) throws IOException\n { \n out.write (b);\n count++;\n }", "title": "" }, { "docid": "02ed23b1a226b8491312c94232f5e8f8", "score": "0.5903857", "text": "public void write(byte[] b, int off, int len)\r\n/* 114: */ throws IOException\r\n/* 115: */ {\r\n/* 116:130 */ this.count += len;\r\n/* 117: */ }", "title": "" }, { "docid": "1227f10732e10080ddb6585ec32b7d91", "score": "0.5903537", "text": "public void write( int b ) throws IOException {\n outputStream.write( b );\n }", "title": "" }, { "docid": "b127c5e63f3623fb876ec06ce0e1db67", "score": "0.58961236", "text": "@Test\n public void outOfOrderWriteTest() throws IOException, AlluxioException {\n AlluxioURI filePath = new AlluxioURI(PathUtils.uniqPath());\n FileOutStream os = mFileSystem.createFile(filePath, mWriteAlluxio);\n\n // Write something small, so it is written into the buffer, and not directly to the file.\n os.write((byte) 0);\n\n // A length greater than 0.5 * BUFFER_BYTES and less than BUFFER_BYTES.\n int length = (BUFFER_BYTES * 3) / 4;\n\n // Write a large amount of data (larger than BUFFER_BYTES/2, but will not overflow the buffer.\n os.write(BufferUtils.getIncreasingByteArray(1, length));\n os.close();\n\n checkWrite(filePath, mWriteAlluxio.getUnderStorageType(), length + 1, length + 1);\n }", "title": "" }, { "docid": "19358e0f3037a076e743d6407045123d", "score": "0.58898836", "text": "@Override\r\n\tpublic void write(DataOutput out)throws IOException{\n\t\tSent.write(out);\r\n\t\tRecieved.write(out);\r\n\t}", "title": "" }, { "docid": "a4c123f8d0ae4b97f40a4dd900079c73", "score": "0.58635163", "text": "public void write(byte[] data) throws IOException {\r\n os.write(data);\r\n }", "title": "" }, { "docid": "c82c4a2be1ac3b854bd372f84058ac6a", "score": "0.58610225", "text": "private final void socketWriteExecute() throws IOException, CloseConnectionException {\n this.channel.write(this.writeBuffer);\n\n if (!this.writeBuffer.hasRemaining()) {\n\n if (this.socketWriteConditionalClose()) {\n this.socketWriteFullClear();\n throw new CloseConnectionException();\n } else {\n if (this.writeBufferLastPacket) {\n this.socketWriteFullClear();\n } else {\n this.socketWritePartialClear();\n }\n }\n\n }\n\n }", "title": "" }, { "docid": "6ab8f45e5cbb883375e5276fa969c3a5", "score": "0.58566904", "text": "@Override public void write(int c) throws IOException {\n\t\t\tsynchronized (NXTBee.this){\n\t\t\t\tNXTBee.this.writeOutbound.write(c);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "207eb7194fd391961f878836a051bb3e", "score": "0.5853912", "text": "public void write(int b) throws IOException {\n\t}", "title": "" }, { "docid": "60c27a6c6133c22116f40cdda040c9af", "score": "0.5850438", "text": "public abstract void write(final Marshaller marshaller) throws IOException;", "title": "" }, { "docid": "4d6ddfe3dfc168e7c4f106cceba8df40", "score": "0.58469236", "text": "public void write( byte[] buffer, int length );", "title": "" }, { "docid": "b233666a24c0c05ebb92a5050c686781", "score": "0.58465147", "text": "@Override\n protected void doFlush() throws IOException {\n }", "title": "" }, { "docid": "248849bec310681357c9523724b82aa0", "score": "0.58405095", "text": "public void writeToFile();", "title": "" }, { "docid": "5e1e6583adc7d188751fb11a372d0520", "score": "0.5838831", "text": "@Override\r\n public void writeInt(final int v) throws IOException {\n\r\n }", "title": "" }, { "docid": "6ba87a7a7157748789c1379aa99b6f63", "score": "0.58370835", "text": "public void write(byte buffer) {\r\n try {\r\n mmOutStream.write(buffer);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n // XXX?\r\n }\r\n }", "title": "" }, { "docid": "c6a16af5dd52a47602a817b9b6fb76ae", "score": "0.58367187", "text": "@Override public void write(byte[] cbuf) throws IOException {\n\t\t\tNXTBee.this.writeOutbound.write(cbuf, 0, cbuf.length);\n\t\t}", "title": "" }, { "docid": "0915b7db407330598e160306bf5b4b2c", "score": "0.5832602", "text": "public void write() {\n try {\n String msg = \"dd\";\n msg += \"\\n\";\n\n mmOutStream.write(msg.getBytes());\n } catch (IOException e) {\n Log.e(TAG, \"Exception during write\", e);\n }\n }", "title": "" }, { "docid": "6324a40f598ef00fd1af1f2ec48185f0", "score": "0.5832132", "text": "@Override\n\tpublic void save(ObjectOutputStream op) {\n\t\t\n\t}", "title": "" }, { "docid": "1981132492d43eeafb410dadd2543bb7", "score": "0.58274996", "text": "public abstract void write(OutputStream outputStream) throws IOException;", "title": "" }, { "docid": "68fb9bbcce76b060ce209450afcd07ef", "score": "0.58205074", "text": "public interface WriteHandler extends Handler {}", "title": "" }, { "docid": "abc860c1401255ea1ed7f6fb7a8a42c6", "score": "0.5808991", "text": "@Override\r\n public void write(final byte[] b) throws IOException {\n\r\n }", "title": "" }, { "docid": "7b6a6f765349f58079673ed8afe392bc", "score": "0.58056843", "text": "public abstract void write(byte[] b);", "title": "" }, { "docid": "f6cd867c7661d9741f832815d7f56482", "score": "0.58049047", "text": "int write(byte[] buffer, int offset, int len) throws RemoteException;", "title": "" }, { "docid": "1fbce0f1ce0266947a9d745581dc9794", "score": "0.5802886", "text": "public void write(int b) throws IOException {\n/* 138 */ this.avail--;\n/* 139 */ this.buffer[this.pos++] = (byte)b;\n/* 140 */ dumpBuffer(true);\n/* */ }", "title": "" }, { "docid": "8a8877145654f9dcfe4868505a0ef127", "score": "0.5800759", "text": "public final void writeInternal(Void data) {\n AtomicFile file = getFile();\n FileOutputStream output = null;\n try {\n output = file.startWrite();\n write(output);\n file.finishWrite(output);\n } catch (IOException e) {\n file.failWrite(output);\n Slog.e(TAG, \"Failed to write dynamic usage for secondary code files.\", e);\n }\n }", "title": "" }, { "docid": "990506f0a7cf7ef6026c06ce9b637cb7", "score": "0.57959783", "text": "@Override\n\tpublic void write(FileRegion file, Callback callback) {\n\t\t\n\t}", "title": "" }, { "docid": "b4763e0c853606468a3852fea3b3e5d0", "score": "0.57939565", "text": "public void write(O op, WriteBuilder wb) throws AsyncException, InterruptedException, IOException {\n if (SyncLevel.BATCH_ASYNC == syncLevel) {\n dataCubeIo.writeAsync(op, wb);\n } else {\n dataCubeIo.writeSync(op, wb);\n }\n }", "title": "" }, { "docid": "17c665c70a6daac83ab691c9c72527ed", "score": "0.5787934", "text": "@Override\n \tpublic void write(byte[] buffer) throws IOException {\n \t\tsuper.write(buffer);\n \t\tprogress += buffer.length;\n \t\tif(proLis != null)proLis.onProgress(progress, size);\n \t}", "title": "" }, { "docid": "31479f47543edcf819ffd32b400d72d9", "score": "0.5786704", "text": "@Override\n public void flush() throws IOException {\n writer.flush();\n }", "title": "" }, { "docid": "63ef6d3e4b94af0544dad77a0038ddd9", "score": "0.57829416", "text": "public void writeTo(DataOutput dos) throws IOException {\n dos.write(codedForm);\n }", "title": "" }, { "docid": "f016212a3b53bb2a5be9c34fec4373f1", "score": "0.5780656", "text": "@Override\n public synchronized void write (R val)\n {\n while ((inPnt == outPnt) && !empty)\n { try\n { \n \t wait (); // the calling thread must block if FIFO is fully occupied\n }\n catch (InterruptedException e) {}\n }\n\n mem[inPnt] = val;\n inPnt = (inPnt + 1) % mem.length;\n empty = false;\n notifyAll ();\n }", "title": "" }, { "docid": "3f249a6cfc57f3ed968d5618227fbebb", "score": "0.5773891", "text": "public final void write() {\r\n final File file = new File(DIRECTORY);\r\n if (file.exists()) {\r\n file.delete();\r\n }\r\n final ByteBuffer buffer = ByteBuffer.allocate(100000);\r\n for (String s : IPS) {\r\n buffer.put((byte) 1);\r\n ByteBufferUtils.putString(s, buffer);\r\n }\r\n buffer.put((byte) 0);//EOF.\r\n buffer.flip();\r\n try (RandomAccessFile raf = new RandomAccessFile(file, \"rw\");\r\n FileChannel channel = raf.getChannel()) {\r\n channel.write(buffer);\r\n raf.close();\r\n channel.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "d4c4e8686349ff7d6f067aa47d8c94e1", "score": "0.57718843", "text": "@Override\n void writeBuffer(OutputStream s, byte [] buf, int off, int len)\n throws IOException {\n /*\n * Copy data out of buffer, it's ready to go.\n */\n ByteBuffer netBB = (ByteBuffer)\n (ByteBuffer.allocate(len).put(buf, 0, len).flip());\n engine.writer.putOutboundDataSync(netBB);\n }", "title": "" }, { "docid": "1c75f1722ff7aaef442bd6b3b2628052", "score": "0.57708985", "text": "private void put(int i) {\n if (protocol > 0) {\n if (i < 256) {\n file.write(BINPUT);\n file.write((char)i);\n return;\n }\n file.write(LONG_BINPUT);\n file.write((char)( i & 0xFF));\n file.write((char)((i >>> 8) & 0xFF));\n file.write((char)((i >>> 16) & 0xFF));\n file.write((char)((i >>> 24) & 0xFF));\n return;\n }\n file.write(PUT);\n file.write(String.valueOf(i));\n file.write(\"\\n\");\n }", "title": "" }, { "docid": "af3663afadeda6163359ede83c26fdc8", "score": "0.576705", "text": "public final compParser.write_return write() throws RecognitionException {\n compParser.write_return retval = new compParser.write_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal103=null;\n Token string_literal105=null;\n Token CSTE_CHAINE106=null;\n compParser.exp_return exp104 = null;\n\n\n CommonTree string_literal103_tree=null;\n CommonTree string_literal105_tree=null;\n CommonTree CSTE_CHAINE106_tree=null;\n RewriteRuleTokenStream stream_CSTE_CHAINE=new RewriteRuleTokenStream(adaptor,\"token CSTE_CHAINE\");\n RewriteRuleTokenStream stream_WRITE=new RewriteRuleTokenStream(adaptor,\"token WRITE\");\n RewriteRuleSubtreeStream stream_exp=new RewriteRuleSubtreeStream(adaptor,\"rule exp\");\n try {\n // /home/vincent/Bureau/comp.g:80:10: ( 'write' exp -> ^( WRITE exp ) | 'write' CSTE_CHAINE -> ^( WRITE CSTE_CHAINE ) )\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==WRITE) ) {\n int LA25_1 = input.LA(2);\n\n if ( (LA25_1==CSTE_CHAINE) ) {\n alt25=2;\n }\n else if ( ((LA25_1>=IDF && LA25_1<=CST_ENT)||LA25_1==41||LA25_1==54||(LA25_1>=63 && LA25_1<=64)) ) {\n alt25=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 25, 1, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 25, 0, input);\n\n throw nvae;\n }\n switch (alt25) {\n case 1 :\n // /home/vincent/Bureau/comp.g:80:14: 'write' exp\n {\n string_literal103=(Token)match(input,WRITE,FOLLOW_WRITE_in_write1198); \n stream_WRITE.add(string_literal103);\n\n pushFollow(FOLLOW_exp_in_write1200);\n exp104=exp();\n\n state._fsp--;\n\n stream_exp.add(exp104.getTree());\n\n\n // AST REWRITE\n // elements: exp\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 80:25: -> ^( WRITE exp )\n {\n // /home/vincent/Bureau/comp.g:80:27: ^( WRITE exp )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(WRITE, \"WRITE\"), root_1);\n\n adaptor.addChild(root_1, stream_exp.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // /home/vincent/Bureau/comp.g:81:10: 'write' CSTE_CHAINE\n {\n string_literal105=(Token)match(input,WRITE,FOLLOW_WRITE_in_write1217); \n stream_WRITE.add(string_literal105);\n\n CSTE_CHAINE106=(Token)match(input,CSTE_CHAINE,FOLLOW_CSTE_CHAINE_in_write1219); \n stream_CSTE_CHAINE.add(CSTE_CHAINE106);\n\n\n\n // AST REWRITE\n // elements: CSTE_CHAINE\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 81:30: -> ^( WRITE CSTE_CHAINE )\n {\n // /home/vincent/Bureau/comp.g:81:32: ^( WRITE CSTE_CHAINE )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(WRITE, \"WRITE\"), root_1);\n\n adaptor.addChild(root_1, stream_CSTE_CHAINE.nextNode());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "title": "" }, { "docid": "e56611d35092c84ed16ffbfce3a0b9c4", "score": "0.5765092", "text": "private void writeProc() throws Exception {\n\t\tWriter writer = new Writer(this.procPath,this.procDataList);\n\t\twriter.running();\n\t}", "title": "" }, { "docid": "119206675a8334512283eafa814d084a", "score": "0.57611585", "text": "public void writeUpdate(DataOutputStream os) throws IOException {\n \tVector2D v = tmp.reset(getPosition());\n \tos.writeDouble(v.getX());\n \tos.writeDouble(v.getY());\n \tv = tmp.reset(getVelocity());\n \tos.writeDouble(v.getX());\n \tos.writeDouble(v.getY());\n \tos.writeDouble(getAcceleration());\n os.writeShort(lastHitPlayerIndex);\n os.writeShort(secondLastHitPlayerIndex);\n // NOTE: make sure that methods update() and skipUpdate() match!!!!\n }", "title": "" }, { "docid": "e65d0cb7bfc7d0daa5263769b3febed0", "score": "0.5756059", "text": "WriteBuffer getWriteBuffer();", "title": "" }, { "docid": "cdfe1c5865ab1d19d0474c3188b6d3b4", "score": "0.5753374", "text": "@Override\n \tprotected void startWrite() throws IOException {\n \t\t_segmenter.getFlowControl().startWrite(_baseName, Shape.STREAM_WITH_HEADER);\t\t\n \t}", "title": "" }, { "docid": "ac367d47012103b7101ab4c6b514734f", "score": "0.57498163", "text": "@Override\r\n public void writeByte(final int v) throws IOException {\n\r\n }", "title": "" }, { "docid": "87650be1904f2cdc14d4ea3f8ab25b62", "score": "0.5749487", "text": "public int rawWrite(byte[] buffer, int offset, int len) throws RemoteException;", "title": "" }, { "docid": "3a86da267481a30c1ec2ff13ebcbdabf", "score": "0.5747586", "text": "@Override\n\tpublic void write(String msg) {\n\t\ttry {\n\t\t\tbw.write(msg + \"\\n\");\n\t\t\tbw.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "bde758606a74c5f7b1eea7ca5ec548bc", "score": "0.5743501", "text": "public void emit(DataOutputStream out) throws IOException {\n out.writeChar(attribute_name_index);\n out.writeInt(buf.size());\n buf.writeTo(out);\n output.close();\n buf.close();\n }", "title": "" } ]
da98e4b7b53a4d0101b58a9db2ed8b33
get the top of the stack
[ { "docid": "13a888aba76661fa954d4900dbe443cc", "score": "0.79893726", "text": "public int top() {\n //return -1 if stack is empty\n if (isEmpty()) {\n return -1;\n }\n return arrayStack[top];\n }", "title": "" } ]
[ { "docid": "539f80729bd56d68b41e23fc687b8aee", "score": "0.8461725", "text": "public E top(){\n\t\t\treturn Stack[top];\n\t\t}", "title": "" }, { "docid": "7a0ec722575169363aac6105d5d72f17", "score": "0.8381707", "text": "public int top() {\n return stack.peek();\n }", "title": "" }, { "docid": "964edf086138155153838c347b4a831a", "score": "0.82984877", "text": "public T top() {\n\t\treturn stackList.getFirst();\n\t}", "title": "" }, { "docid": "866137b8c994af2ecf4c360b5730c7c6", "score": "0.8294085", "text": "int getTop(){\n if( this.isEmpty() ){\n throw new RuntimeException(\n \"Stack Error: getTop() called on empty Stack\");\n }\n return top.data;\n }", "title": "" }, { "docid": "958eae7660e8685af950c08d8ce2be28", "score": "0.80977136", "text": "public int top() {\n \tif(stack.isEmpty())\n \t{\n \t\treturn Integer.MAX_VALUE;\n \t}\n \telse\n \t{\n \t\treturn stack.peek().val;\n \t}\n }", "title": "" }, { "docid": "363eaf25b808c18fa31549f7377f3e21", "score": "0.80397344", "text": "@Override\n public T top() {\n assert (!(stack.getData() == null));\n {\n return stack.getData();\n }\n }", "title": "" }, { "docid": "8cb5d4ad6e746d585cb6f8a6bfb3005b", "score": "0.7954543", "text": "public Symbol top() throws BadTypeException {\n Entry e = this.numstack.top();\n return e.getSymbol();\n }", "title": "" }, { "docid": "6c6a3228a1069a2e9a85a99b9e0bcb69", "score": "0.7910266", "text": "public int top() {\n\t\twhile (!stack1.isEmpty()) {\n\t\t\tstack2.push(stack1.pop());\n\t\t}\n\t\tint result = stack2.peek();\n\t\twhile (!stack2.isEmpty()) {\n\t\t\tstack1.push(stack2.pop());\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "cc31c2be52dc31439d40545eed043574", "score": "0.7794035", "text": "public int top() {\n return st.peek();\n \n }", "title": "" }, { "docid": "d309a976ed328b83c092b84b9ed61480", "score": "0.77483326", "text": "public static void getTopOfTheStack(){\n\n System.out.println(\"Top Of the Stack method has been called\");\n if(stackIndex>-1) {\n System.out.println(\"Top Most Element of the Stack Now is: \" + (arrayStack[stackIndex]));\n }else {\n System.out.println(\"Empty Stack\");\n }\n }", "title": "" }, { "docid": "ee0062df15b0ff6fa367a579f8819b08", "score": "0.7711133", "text": "public float top() {\n\t\ttry {\n\t\t\tfloat pk = st.peek();\n\t\t\treturn pk;\n\t\t} catch (EmptyStackException ee) {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"No elements on the stack to perform the operation.\");\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "01721007b26dd5b1a5dc4d39cd4b04ab", "score": "0.7677858", "text": "public X top() throws Exception{\n\t\tthrow new Exception(\"Method top applied to an empty stack\");}", "title": "" }, { "docid": "8a1e9669bbe26f784b40726abff520f3", "score": "0.7667338", "text": "private int indexOfTop(int stackNum) {\n\t\tint offset = stackNum * stackCapacity;\n\t\tint size = sizes[stackNum];\n\t\treturn offset + size - 1;\n\t}", "title": "" }, { "docid": "aeccba2b806a1291efbc075c917d2fd7", "score": "0.7655169", "text": "public String getTopItem()\n\t{\n\t\tString s = stack.peek();\n\t\treturn s;\n\t}", "title": "" }, { "docid": "17b844e82385f87aaa41d50325cbc843", "score": "0.7615251", "text": "public int top() {\n return top; \n }", "title": "" }, { "docid": "35651519253e4a76b6f430dfe15793ab", "score": "0.76035786", "text": "public int top()\n\t{\n\t\treturn top;\n\t}", "title": "" }, { "docid": "7438ca7373474d8d687cce903c4acfe3", "score": "0.75929207", "text": "public int top();", "title": "" }, { "docid": "822624a78e0cb628eea224848180cfcb", "score": "0.75666237", "text": "public int top() throws java.lang.Exception\n {\n if (vstack.empty())\n throw new Exception(\n \"Internal parser error: top() called on empty virtual stack\");\n\n return ((Integer)vstack.peek()).intValue();\n }", "title": "" }, { "docid": "4219dcbe799adb37db27d0e40540c870", "score": "0.75414693", "text": "public int top() {\n return top;\n }", "title": "" }, { "docid": "4bcf0fef2d1e05f3df4203ac9e3b3aed", "score": "0.75096345", "text": "public String top() {\n return this.top;\n }", "title": "" }, { "docid": "4afbd99a5d6ec8b0646affe813b6771b", "score": "0.7457131", "text": "public int top() \r\n {\r\n \treturn q.peek();\r\n }", "title": "" }, { "docid": "9e4976f14806327c0f9191b821fcaffc", "score": "0.7455078", "text": "T top();", "title": "" }, { "docid": "2c57e54ea61d7f48da7a478ee6ab6332", "score": "0.7390982", "text": "String getTop();", "title": "" }, { "docid": "2c57e54ea61d7f48da7a478ee6ab6332", "score": "0.7390982", "text": "String getTop();", "title": "" }, { "docid": "c4c54c69a5e7a9b41aebceb377e1a3dc", "score": "0.7361294", "text": "public int getTop() {\r\n return top;\r\n }", "title": "" }, { "docid": "6aaed941046ab96ad7a5b5715cc7f0b4", "score": "0.73514056", "text": "public int top(){\n return tail.data;\n }", "title": "" }, { "docid": "d1c1e29ac49fcfc787a3af9504d588fb", "score": "0.7347441", "text": "static int absTopOfStack(int stackNum) {\n return stackNum * stackSize + stackPointer[stackNum];\n }", "title": "" }, { "docid": "d07598f72c83c9a7eafa14673a92b938", "score": "0.73388284", "text": "public int getTop(){\n\t\treturn this.topVal;\n\t}", "title": "" }, { "docid": "31215e7798475c400f8183b0458eb28a", "score": "0.73260754", "text": "void firstOnStack();", "title": "" }, { "docid": "03d3258e9716158831ae8b0cf91aa78f", "score": "0.7319832", "text": "public abstract Object top ();", "title": "" }, { "docid": "8c9bc27f468840c864b310eb37462617", "score": "0.73126656", "text": "public int peek() {\n return stack.get(0);\n }", "title": "" }, { "docid": "4b6edc557c71c4ca4e0525ec3cf492e9", "score": "0.7294736", "text": "public int min() {\n return minStack.top();\n }", "title": "" }, { "docid": "cef598dcb8a7a80c1e094560ad743e58", "score": "0.7278179", "text": "public DNode getTop() {\n return this.top;\n }", "title": "" }, { "docid": "915d8429b8b26c0b7ce3958e237ab752", "score": "0.726696", "text": "public final Node getTop() {\r\n return topProperty().get();\r\n }", "title": "" }, { "docid": "74334c3748b193f4a5a66e16f3278d97", "score": "0.7266169", "text": "public char top(){\r\n if(!stackContent.isEmpty()) {\r\n return stackContent.get(stackContent.size() - 1);\r\n }\r\n return 0;\r\n }", "title": "" }, { "docid": "fdf69c3272e1a078d137b0d0facb41e4", "score": "0.72575533", "text": "int top() {\n if (q.isEmpty()) return -1;\n return q.peek();\n }", "title": "" }, { "docid": "1c3d64dd3ab7840884e56db071224992", "score": "0.7233401", "text": "public int top() {\n\t\treturn queue.peek();\n \n }", "title": "" }, { "docid": "e6bc4fde7c621be69a75b22454c38506", "score": "0.72261274", "text": "public int top() {\n return top.val;\n }", "title": "" }, { "docid": "a774db288ddc2711a4204b16076132ef", "score": "0.7216", "text": "public int top() {\r\n\t\treturn _head.getValue();\r\n\t}", "title": "" }, { "docid": "926ab0fc263ad79562bd7aabb2887096", "score": "0.72102684", "text": "public int top() {\n return data.peek();\n }", "title": "" }, { "docid": "4f396d0a85de51d4e8dbff503a953fc1", "score": "0.72065824", "text": "public AnyType peek() {\n\t\t// peek the stack top\n\t\t// return stack top but do not pop\n\t\t// return null for empty stack\n\t\t// O(1)\n\t\tif(size == 0)\n\t\t\treturn null;\n\t\treturn tail.prev.data;\n\t}", "title": "" }, { "docid": "7a09d90121662d307bb0b91b4a268fc0", "score": "0.72058815", "text": "public int top() {\n return q1.peek();\n }", "title": "" }, { "docid": "369049a402801e0513cebfe77a19880f", "score": "0.7183328", "text": "@Override\n\tpublic T top() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2c0987181878f9df9e06f302415dcf9e", "score": "0.7158379", "text": "@Override\n\tpublic T top() {\n\t\treturn tail.getElement();\n\t}", "title": "" }, { "docid": "400b4ca6390684f0e65c79ff4e726f34", "score": "0.7156414", "text": "public int getTop() {\n return mTop;\n }", "title": "" }, { "docid": "ea67184900e831750c98375f22fcd9c9", "score": "0.71545434", "text": "public int top() {\n if(!empty()) {\n return getLast(false);\n }\n return -1;\n }", "title": "" }, { "docid": "231212bfaee0b839bc1724d3ff11dd02", "score": "0.7147889", "text": "public Object peek(){\n\t\treturn top.getObj();\n\n\t}", "title": "" }, { "docid": "f6996bd2a4ce362fde6ae28139e240d0", "score": "0.7146687", "text": "public T peek() {\n\t\tif(stack.isEmpty())\n\t\t\treturn null;\n\t\telse\n\t\t\treturn stack.get(stack.size()-1);\n\t}", "title": "" }, { "docid": "ffe990077112c8cdc92db7552e2dab10", "score": "0.714198", "text": "public int top() \n\t{\n\t\treturn queue.peek();\n\t}", "title": "" }, { "docid": "21eafdc3ba5b0af8e5526cd4987063fa", "score": "0.7130013", "text": "@Override\n\tpublic E top() throws Underflow {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "662f43b12ba61e2599f2e206c014e696", "score": "0.7127747", "text": "public int top() {\n return transfer(false);\n }", "title": "" }, { "docid": "4da99a5c5b05395ac8d89518ebe75d08", "score": "0.71081513", "text": "public String peek() {\n\n return stackArray[top];\n }", "title": "" }, { "docid": "4579a922be7bc1728b02343f0e5f6f66", "score": "0.71071243", "text": "public int top() {\n\t\treturn queue.peek();\n\t}", "title": "" }, { "docid": "1227f45ea34c9c517d454555351e1e38", "score": "0.7086311", "text": "public String peek() {\n\t\tif (stack != null) {\n\t\t\treturn stack[counter - 1]; // the top of the stack\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\n\t}", "title": "" }, { "docid": "14b2cc7b3770fae93e0f3682665bec20", "score": "0.7084211", "text": "public T peek() {\r\n\t\tT element = null;\r\n\t\tif(!isEmpty()) {\r\n\t\t\telement = stack[top-1];\r\n\t\t}\r\n\t\treturn element;\r\n\t}", "title": "" }, { "docid": "cce8e7a72b943a458ef38886a0285128", "score": "0.7082398", "text": "public Token getTopToken() {\n return pileOfTokens[topOfPile];\n }", "title": "" }, { "docid": "039343e950bc33833b8dc933c85481c8", "score": "0.7075742", "text": "public V top() {\n if (isEmpty())\n return null;\n return array[top];\n }", "title": "" }, { "docid": "2222bc68fc899d292b3c755d77153106", "score": "0.70751524", "text": "public int top() {\n return queue.peek();\n }", "title": "" }, { "docid": "991fc52d1f9f345aa111d4f752b51374", "score": "0.7065245", "text": "public int peek() {\r\n return (int) runTimeStack.get(runTimeStack.size() - 1);\r\n }", "title": "" }, { "docid": "ce56514d8002363b115577136105c6ca", "score": "0.706277", "text": "public T top() {\n if (this.headNode != null) {\n return (T) this.headNode.data;\n }\n return null;\n }", "title": "" }, { "docid": "e0029b7781f6a5e94ee6b5328fefeba8", "score": "0.7049149", "text": "public int peek() {\r\n if (!runTimeStack.isEmpty()) {\r\n return runTimeStack.get(runTimeStack.size() - 1);\r\n }\r\n\r\n return 0;\r\n }", "title": "" }, { "docid": "57d754e0fe388d51e3bcbe776ff4ff2c", "score": "0.70485175", "text": "public int top() {\n return topElem;\n }", "title": "" }, { "docid": "65c81ffe7f50a4b1c9d62d1db4e6fbef", "score": "0.70436054", "text": "public int top() {\n\t return queue.get(getSize() - 1);\n\t }", "title": "" }, { "docid": "bc68dfb3597cb646bfd37241370c3be9", "score": "0.70424813", "text": "public int top() {\n\t\tint nums[]=new int[queue.size()];\n\t\tfor(int i=0;i<nums.length;i++){\n\t\t\tnums[i]=queue.pop();\n\t\t}\n\t\tfor(int i=0;i<nums.length;i++){\n\t\t\tqueue.add(nums[i]);\n\t\t}\n\t\treturn nums[nums.length-1];\n\t}", "title": "" }, { "docid": "ea06a72d78ea4debacd5200383e32166", "score": "0.7036447", "text": "public synchronized AbilitySlice top() {\r\n if (isEmpty()) {\r\n Log.warn(LABEL, \"Get top AbilitySlice failed, stack is empty.\", new Object[0]);\r\n return null;\r\n }\r\n return this.slices.get(this.slices.size() - 1);\r\n }", "title": "" }, { "docid": "00e9c808a4b1ded99ef093e8030c86ea", "score": "0.70127034", "text": "public Item peek() {\n return stack[size-1];\n }", "title": "" }, { "docid": "dec98a95e673f62d308ccd1bae067217", "score": "0.70026946", "text": "public String peek(){\n return top.getString();\n }", "title": "" }, { "docid": "519fe614b5078e7a2c07797bf07f55bd", "score": "0.70014966", "text": "public int top() {\n \t//pull all the elements in cur to another;\n \tInteger top = null;\n \twhile( cur.size() > 0 ){\n \t\ttop = cur.poll();\n \t\tanother.add(top);\n \t}\n \t//switch\n \tQueue<Integer> tmp = another;\n \tanother = cur;\n \tcur = tmp;\n \treturn top;\n }", "title": "" }, { "docid": "028e420a8cdb38964c24b8434b99188c", "score": "0.69800496", "text": "@Override\r\n public Object peek() {\r\n Object peekedObject;\r\n if(top == null) {\r\n throw new EmptyStackException();\r\n }\r\n peekedObject = top.getData();\r\n return peekedObject;\r\n }", "title": "" }, { "docid": "ed9de7744c83038f9366d706da882c48", "score": "0.69708496", "text": "@Override\n public E peek() {\n if (top == null) {\n throw new EmptyStackException();\n }\n return top.item;\n }", "title": "" }, { "docid": "b1a41a5ba81b75222592691c48706ff1", "score": "0.6964556", "text": "public Node extractTop(){\n Node top = this.heap[0]; //Save top\n this.heap[0] = this.heap[this.heapSize-1]; //Swap top with last\n this.heapSize--; //Lessen heap size by 1\n heapify(0); //Insure min Heap structure\n return top; //Return extracted node\n }", "title": "" }, { "docid": "93fc1c8b4132ceac95d96c51d4cebe35", "score": "0.6959455", "text": "public int top()\n\t{\n\t\treturn deque.peekLast();\n\t}", "title": "" }, { "docid": "4bc41eb8bbb0f0875d5f3b8edd55b03c", "score": "0.6949415", "text": "private JsonScope peek() {\n/* 317 */ return this.stack.get(this.stack.size() - 1);\n/* */ }", "title": "" }, { "docid": "20411cead02ca812d3a37107368091dd", "score": "0.6937062", "text": "public int top() \n {\n return !popper.isEmpty() ? popper.peek() : Integer.MAX_VALUE;\n }", "title": "" }, { "docid": "bca7525c27602e98a2441563063186fd", "score": "0.69353896", "text": "String getStack();", "title": "" }, { "docid": "6965600aedf9d614393e4c235698ad5b", "score": "0.6933181", "text": "static void stack_peek(Stack<Integer> stack) \r\n\t{ \r\n\t\tInteger element = (Integer) stack.peek(); \r\n\t\tSystem.out.println(\"Element on stack top : \" + element); \r\n\t}", "title": "" }, { "docid": "63e91e70ce79a86244b0200c32ba01cb", "score": "0.6924091", "text": "@Override\n public char top() throws EmptyContainerException {\n if (list == null) {\n throw new EmptyContainerException(\"Stack is empty\");\n }\n\n LinkedList cur = list;\n return cur.getData();\n\n }", "title": "" }, { "docid": "251a35dd076d7aa246012da4e6c95d80", "score": "0.69036746", "text": "public Object peek() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(len>0) {\r\n\t\t\tObject p = top.value;\t// get value without removing it\r\n\t\t\treturn p;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthrow new RuntimeException(); // stack is Empty\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "a051c96fc73b189530148c11e47b0fa2", "score": "0.6898279", "text": "public Object peek() {\n\t\treturn top.getData();\n\t}", "title": "" }, { "docid": "d2e753784caa96186cb6b8e82c6035bf", "score": "0.68883944", "text": "@Test\n public void testTop(){\n ms = new MyStack();\n try{\n ms.top();\n }catch (EmptyStackException e){\n System.out.println(\"Error, cannot call Top on an empty stack\");\n }\n }", "title": "" }, { "docid": "99cace8d7b7b333bfd7faa00d9b651e4", "score": "0.68867546", "text": "public int getVariableTop() { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "4f54d253ddc22b65b2e1079c06e36d78", "score": "0.68807465", "text": "@Override\n\tpublic E peek() {\n\t\treturn stack.get(size()-1);\n\t}", "title": "" }, { "docid": "8db1e2ea0d187106858f3b839cc89f39", "score": "0.68805814", "text": "public T peek() throws EmptyStackException {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException(\"The Stack is empty.\");\n\t\t} else\n\t\t\treturn stack[top];\n\t}", "title": "" }, { "docid": "3b6f77b51d2389d6e2b75a5fcea721df", "score": "0.6877378", "text": "public int top() {\n return queue.peekLast();\n }", "title": "" }, { "docid": "01489ba3b103ceb1d2d42885ee4b35ad", "score": "0.6871539", "text": "@Override\n\tpublic E peek() {\n\t\tif (!isEmpty()) {\n\t\t\treturn top.getData();\n\t\t} else {\n\t\t\tSystem.out.println(\"Stack is empty\");\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "2d28b335988f2bda4fba1f09884213a0", "score": "0.6865952", "text": "public T checkTop() {\n if (!isEmpty()) {\n return (T) items[top];\n }\n return null;\n }", "title": "" }, { "docid": "533cf64e3d1367409bfeec0918fd800a", "score": "0.68640846", "text": "public Card getTopCard()\r\n {\r\n for(int i=0;i<13;i++)\r\n {\r\n for(int t=0;t<4;t++)\r\n {\r\n if(cards[i][t].getValue()==top)\r\n {\r\n return cards[i][t];\r\n }\r\n }\r\n }\r\n return cards[0][0];\r\n }", "title": "" }, { "docid": "75a07b263542d207105de945637f160e", "score": "0.685277", "text": "public Obj top(){\r\n\t\tObj toreturn =null;\r\n\t\tif(!isEmpty()){\r\n\t\t\ttoreturn = last.getData();\r\n\t\t\ttraversal = last;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"List is empty WAR3\");\r\n\t\t}\r\n\t\treturn toreturn;\r\n\t}", "title": "" }, { "docid": "29345212d490b0f96da9ed51b331e739", "score": "0.68382883", "text": "boolean isFirstOnStack();", "title": "" }, { "docid": "2ef7be86adbcaa3c0f1fba7ad190518c", "score": "0.683378", "text": "public int top() {\n int z = -1;\n if (q2.isEmpty()) {\n for (int i = 0; i < c - 1; i++) {\n int x = q1.remove();\n q2.add(x);\n }\n z = q1.peek();\n q2.add(q1.remove());\n }\n if (q1.isEmpty()) {\n for (int i = 0; i < c - 1; i++) {\n int x = q2.remove();\n q1.add(x);\n }\n z = q2.peek();\n q1.add(q2.remove());\n }\n return z;\n }", "title": "" }, { "docid": "fc782ad599d99c49a7df424c741d0262", "score": "0.6829175", "text": "@Test\n public void testPerformance(){\n int top1, top2, top3;\n ms = new MyStack();\n ms.push(1);\n ms.push(2);\n ms.push(3);\n ms.push(4);\n ms.pop();\n top1=ms.top(); //top1 should be 3\n ms.push(5);\n ms.push(6);\n top2=ms.top(); //top2 should be 6\n ms.pop();\n ms.pop();\n ms.pop();\n top3=ms.top(); //top3 should be 2\n assertEquals(3,top1);\n assertEquals(6,top2);\n assertEquals(2,top3);\n }", "title": "" }, { "docid": "03d1dbba37f22902e79315d163d70708", "score": "0.682785", "text": "public int top() {\n if(flag > 0){\n return elements[flag-1];\n }else{\n return 0;\n }\n }", "title": "" }, { "docid": "cb2024c828805ffdc5c1b390b5707791", "score": "0.68277824", "text": "public int top() {\n return queue1.peek();\n }", "title": "" }, { "docid": "0b5b8586247ca04fbf23a6997efac5f0", "score": "0.6823199", "text": "public char peek() {\n return stackArray[top];\n }", "title": "" }, { "docid": "2dfbfdad4cc7fa18661750f79f128570", "score": "0.6816311", "text": "public long gettGetTop() {\n\t\treturn tGetTop;\n\t}", "title": "" }, { "docid": "8be22c2d4172e742e09a80a76acca118", "score": "0.6808595", "text": "public synchronized @NotNull IndexedBlock getTopBlock() {\n LOGGER.fine(\"Find top block.\");\n return this.chain.get(this.chain.size() - 1);\n }", "title": "" }, { "docid": "2dc91dcfb7dbacce07c231af91ea7bfe", "score": "0.6806263", "text": "public Integer minValueInStack() {\r\n\t\treturn minStack.peek().element;\r\n\t}", "title": "" }, { "docid": "bd5575aa21ae28d5268a452b70f8f0c1", "score": "0.67856157", "text": "public TaskStack getStack() {\n Task task = getTask();\n if (task != null) {\n return task.mStack;\n }\n return null;\n }", "title": "" }, { "docid": "9062bb8252b873a4820bf312ed8a99ee", "score": "0.6776266", "text": "@Test\r\n public void pushTopMatch() {\r\n MyStack newStack = new MyStack();\r\n newStack.push(30); //push 30\r\n int pushNum = 30;\r\n int topOfStack = newStack.top(); //top of stack should be 30\r\n assertEquals(pushNum,topOfStack);\r\n }", "title": "" }, { "docid": "07a5316f935204060f5070ae813102e1", "score": "0.67707413", "text": "public void testTop()\n {\n Exception occured = null;\n try\n {\n stack.top();\n }\n catch (Exception e)\n {\n occured = e;\n }\n\n assertNotNull(occured);\n stack.push(point1);\n assertEquals(point1, stack.top() );\n }", "title": "" } ]
1f45267df47430630f2c4e4e6abffc4d
Get all necessary parameters and prepare (resolve) the corresponding data (function) objects for reading valuePaths
[ { "docid": "e131c07f3d04f35921c8cb7a838f5d21", "score": "0.0", "text": "protected void evalUpdater(Range mainRange, EvalAccumulate lambda) {\n Object[] paramValues = new Object[this.paths.length]; // Will store valuePaths for all params\n Object result; // Will be written to output for each input\n Object aggregate;\n\n for(long i=mainRange.start; i<mainRange.end; i++) {\n\n // Find group, that is, projection of the current fact to the group table\n Object g_out = this.groupPath.getValue(i);\n if(g_out == null) {\n continue; // Do not accumulate facts without group\n }\n Long g = (Long)g_out;\n if(g == -1) {\n continue; // Do not accumulate facts without group\n }\n\n // Read all parameter valuePaths\n for(int p=0; p<this.paths.length; p++) {\n paramValues[p] = this.paths[p].getValue(i);\n }\n\n // Read current out value\n aggregate = this.column.getData().getValue(g);\n\n //\n // Call user-defined function\n //\n try {\n result = lambda.evaluate(aggregate, paramValues);\n }\n catch(BistroException e) {\n throw(e);\n }\n catch(Exception e) {\n throw(new BistroException(BistroErrorCode.EVALUATION_ERROR, e.getMessage(), \"Error executing user-defined function.\"));\n }\n\n // Update output\n this.column.getData().setValue(g, result);\n }\n }", "title": "" } ]
[ { "docid": "0a4b37c4d2cf0999dfaabbe7b47f095b", "score": "0.5494294", "text": "@Override public List<List<Column>> getResolvedParamPaths() { return inputPaths; }", "title": "" }, { "docid": "0a4b37c4d2cf0999dfaabbe7b47f095b", "score": "0.5494294", "text": "@Override public List<List<Column>> getResolvedParamPaths() { return inputPaths; }", "title": "" }, { "docid": "ffa5eaac5c827e8487836a4108d493e2", "score": "0.53041995", "text": "private Values getValues(SynthContext paramSynthContext) {\n/* 806 */ validate();\n/* 807 */ return this.values;\n/* */ }", "title": "" }, { "docid": "5e20c3bdbe799188815454becda7724b", "score": "0.50984216", "text": "public interface RuntimeDataResolver {\n\n void resolveData(Http.Request request, Http.Response response, Map<String, ? extends Object> model, SoyMapData root);\n\n}", "title": "" }, { "docid": "ada448967ebba0200bd2daf9b69feaf4", "score": "0.5043764", "text": "@Override\n public List<PotentialAssignment> getValueSources(ParameterSignature sig) throws Throwable {\n return Arrays.asList(\n PotentialAssignment.forValue(\"one\", Invocations.create(EasyExample.class.getName(), \"method1\", \"floop\", Arrays.asList(\"string\", 5711)))\n );\n }", "title": "" }, { "docid": "edcdefb9463d5b3cda19b52ccb161021", "score": "0.49594834", "text": "@Override\n\tpublic void init(Bindings bindings) \n\t{\n\t\tResource resource=(Resource) bindings.get(\"resource\");\n\t\t String param1 = (String) bindings.get(\"param1\");\n\t String param2 = (String) bindings.get(\"param2\");\n\n\t value = resource.getPath() + param1 + param2;\n\t}", "title": "" }, { "docid": "4ea411e88fb4ad9c031b7aa9e835701c", "score": "0.49179468", "text": "private void initValues() {\n \n }", "title": "" }, { "docid": "7d83f0a01102c456f318018d7c9fc7b5", "score": "0.49098647", "text": "protected RenormalizeByEsLookedUpValuesTask() {\n\t}", "title": "" }, { "docid": "8a9562381edbb2dc54ac3e75a93c2619", "score": "0.4906442", "text": "@Test\n public void testPathResolution() throws Exception {\n\n List<Object> inputObjects = getInputs(\"paths-resolution.yaml\");\n\n assertThat(inputObjects).isNotNull();\n List<EntityDef> collectEntities = inputObjects.stream().filter(e -> isEntityDef(e)).map(e -> (EntityDef) e)\n .filter(e -> e.getName().equals(\"Table\")).collect(Collectors.toList());\n assertThat(collectEntities).hasSize(1);\n assertThat(collectEntities.get(0).getComponent().getPaths()).hasSize(3).flatExtracting(e -> e.getOperations())\n .extracting(e -> e.getOperationId()).containsExactlyInAnyOrder(\"findTable\", null, null);\n }", "title": "" }, { "docid": "d3071a9666a484c3781a3834003cfcae", "score": "0.4903481", "text": "public static TypedValue resolvePathGetTypedValue(ItemPath path, ExpressionVariables variables, boolean normalizeValuesToDelete,\n\t\t\tTypedValue defaultContext, ObjectResolver objectResolver, PrismContext prismContext, String shortDesc, Task task, OperationResult result)\n\t\t\t\t\tthrows SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException {\n\n\t\tTypedValue root = defaultContext;\n\t\tItemPath relativePath = path;\n\t\tObject first = path.first();\n\t\tString topVarDesc = \"default context\";\n\t\tif (ItemPath.isVariable(first)) {\n\t\t\tString topVarName = ItemPath.toVariableName(first).getLocalPart();\n\t\t\ttopVarDesc = \"variable \" + PrettyPrinter.prettyPrint(topVarName);\n\t\t\trelativePath = path.rest();\n\t\t\tif (variables.containsKey(topVarName)) {\n\t\t\t\troot = variables.get(topVarName);\n\t\t\t} else {\n\t\t\t\tthrow new SchemaException(\"No variable with name \" + topVarName + \" in \" + shortDesc);\n\t\t\t}\n\t\t}\n\t\tif (root == null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (relativePath.isEmpty()) {\n\t\t\treturn root;\n\t\t}\n\n\t\tif (normalizeValuesToDelete) {\n\t\t\troot = normalizeValuesToDelete(root);\n\t\t}\n\n\t\tif (root.getValue() instanceof ObjectReferenceType) {\n\t\t\troot = resolveReference((TypedValue<ObjectReferenceType>) root, objectResolver, topVarDesc, shortDesc, task,\n\t\t\t\t\tresult);\n\t\t}\n\n\t\tString lastPathSegmentName = relativePath.lastName().getLocalPart();\n\t\t\n\t\tObject rootValue = root.getValue();\n\t\tif (rootValue == null) {\n\t\t\t// The result value is going to be null, but we still need a definition. Try to determine that from root definition.\n\t\t\tif (root.getDefinition() == null) {\n\t\t\t\tthrow new IllegalArgumentException(\"No definition for path \"+path+\": \"+root);\n\t\t\t}\n\t\t\t// Relative path is not empty here. Therefore the root must be a container.\n\t\t\tItemDefinition subitemDefinition = ((PrismContainerDefinition<?>)root.getDefinition()).findItemDefinition(relativePath);\n\t\t\tif (subitemDefinition == null) {\n\t\t\t\t// this must be something dynamic, e.g. assignment extension. Just assume string here. Not completely correct. But what can we do?\n\t\t\t\tsubitemDefinition = prismContext.definitionFactory().createPropertyDefinition(relativePath.lastName(), PrimitiveType.STRING.getQname());\n\t\t\t}\n\t\t\treturn new TypedValue<>(null, subitemDefinition);\n\t\t}\n\t\t\n\t\tif (rootValue instanceof Objectable) {\n\t\t\treturn determineTypedValue(prismContext, lastPathSegmentName, ((Objectable) rootValue).asPrismObject(), relativePath);\n\t\t}\n\t\tif (rootValue instanceof PrismObject<?>) {\n\t\t\treturn determineTypedValue(prismContext, lastPathSegmentName, (PrismObject<?>) rootValue, relativePath);\n\t\t} else if (rootValue instanceof PrismContainer<?>) {\n\t\t\treturn determineTypedValue(prismContext, lastPathSegmentName, (PrismContainer<?>) rootValue, relativePath);\n\t\t} else if (rootValue instanceof PrismContainerValue<?>) {\n\t\t\treturn determineTypedValue(prismContext, lastPathSegmentName, (PrismContainerValue<?>) rootValue, relativePath);\n\t\t} else if (rootValue instanceof Item<?, ?>) {\n\t\t\t// Except for container (which is handled above)\n\t\t\tthrow new SchemaException(\n\t\t\t\t\t\"Cannot apply path \" + relativePath + \" to \" + root + \" in \" + shortDesc);\n\t\t} else if (rootValue instanceof ObjectDeltaObject<?>) {\n\t\t\treturn determineTypedValueOdo(prismContext, lastPathSegmentName, root, relativePath);\n\t\t} else if (rootValue instanceof ItemDeltaItem<?, ?>) {\n\t\t\treturn determineTypedValue(prismContext, lastPathSegmentName, (ItemDeltaItem<?,?>) rootValue, relativePath);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Unexpected root \" + rootValue + \" (relative path:\" + relativePath + \") in \" + shortDesc);\n\t\t}\n\t}", "title": "" }, { "docid": "d1b1f1b0e7160f656e8530eedfd5c47a", "score": "0.48800337", "text": "int getDatapathProviderValue();", "title": "" }, { "docid": "d826202dbcee111c2f8cb9da909c878b", "score": "0.4848927", "text": "protected Object getValue(String path, Map<String, Object> data) {\n\n Object retValue = null;\n Map<?, ?> values = new HashMap<String, Object>(data);\n String[] keys = path.split(\"\\\\.\");\n\n for (String key : keys) {\n Object value = values.get(key);\n\n if (Map.class.isInstance(value)) {\n values = (Map<?, ?>) value;\n retValue = value;\n } else {\n retValue = value;\n break;\n }\n }\n\n return retValue;\n }", "title": "" }, { "docid": "556e0e83501b46c390f2a1464e77597e", "score": "0.48364425", "text": "public static Object resolvePathGetValue(ItemPath path, ExpressionVariables variables, boolean normalizeValuesToDelete,\n\t\t\tTypedValue defaultContext, ObjectResolver objectResolver, PrismContext prismContext, String shortDesc, Task task, OperationResult result)\n\t\t\t\t\tthrows SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException {\n\t\tTypedValue typedValue = resolvePathGetTypedValue(path, variables, normalizeValuesToDelete, defaultContext, objectResolver, prismContext, shortDesc, task, result);\n\t\tif (typedValue == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn typedValue.getValue();\n\t}", "title": "" }, { "docid": "5dfd1ea2daee5abddf0b62487fe6fc54", "score": "0.48291117", "text": "public void setupProcedureInputParameters() {\n\tList<T> callNodes = findAllByType(OperatorIII.CALL.toString());\n\tList<T> relevantCallNodes = identifyRelevantCallNodes(callNodes, \"PRCDR_CHCK_RLST\");\n\tList<T> params = getChildAtPositionIfTypeEquals(relevantCallNodes, 1, OperatorII.PARAMETERS.toString());\n\tif (params != null && !params.isEmpty()) {\n\t Iterator<T> it = params.iterator();\n\t while (it.hasNext()) {\n\t\tT node = it.next();\n\t\ttry {\n\t\t T firstChild = (T) node.getChildAt(0);\n\t\t firstChild.getData().setType(TreeLeaf.DATASET_ID.toString());\n\t\t T secondChild = (T) node.getChildAt(1);\n\t\t secondChild.getData().setType(TreeLeaf.RULESET_ID.toString());\n\t\t T thirdChild = (T) node.getChildAt(2);\n\t\t thirdChild.getData().setType(TreeLeaf.DATASET_ID.toString());\n\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t}\n\t }\n\t}\n\n\tcallNodes = findAllByType(OperatorIII.CALL.toString());\n\trelevantCallNodes = identifyRelevantCallNodes(callNodes, \"PRCDR_RFRNTL_INTGRTY\");\n\tparams = getChildAtPositionIfTypeEquals(relevantCallNodes, 1, OperatorII.PARAMETERS.toString());\n\tif (params != null && !params.isEmpty()) {\n\t Iterator<T> it = params.iterator();\n\t while (it.hasNext()) {\n\t\tT node = it.next();\n\t\ttry {\n\t\t T firstChild = (T) node.getChildAt(0);\n\t\t firstChild.getData().setType(TreeLeaf.DATASET_ID.toString());\n\t\t T secondChild = (T) node.getChildAt(1);\n\t\t secondChild.getData().setType(TreeLeaf.VARIABLE_ID.toString());\n\t\t T thirdChild = (T) node.getChildAt(2);\n\t\t thirdChild.getData().setType(TreeLeaf.DATASET_ID.toString());\n\t\t T fourthChild = (T) node.getChildAt(3);\n\t\t fourthChild.getData().setType(TreeLeaf.VARIABLE_ID.toString());\n\t\t T fifthChild = (T) node.getChildAt(4);\n\t\t fifthChild.getData().setType(TreeLeaf.DATASET_ID.toString());\n\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t}\n\t }\n\t}\n }", "title": "" }, { "docid": "400f1c6877f374012edeaa310029292f", "score": "0.48242396", "text": "private void processResolver(DefaultJSONDataTypeResolver resolver) {\n\n\t\t//don't process null data\n\t\tif (resolver == null || resolver.getMappings() == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (Mapping mapping : resolver.getMappings()) {\n\n\t\t\t//for now just look for a sign that it's an \"ot\" value in the json\n\t\t\tif (mapping != null && //if we have a mapping\n\t\t\t\tmapping.getPath().length > 0 && //and at least one json path entry\n\t\t\t mapping.getPath()[mapping.getPath().length - 1].equals(OPERATION_TYPE)) { //and it ends in the OPERATION_TYPE key\n\n\t\t\t\tm_lookup.putAll(mapping.getValueMap()); //add it to our mapping\n\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "49332ff08874abe356bd7ce545c8d7bc", "score": "0.48239315", "text": "private List<Callable<ConfigValueProvider>> createPerValueProviderFetchTasks() {\n return map.entrySet().stream()\n .map(this::createValueProviderTask)\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "2fdb6a87053026e43e900396f57382e3", "score": "0.48065546", "text": "private void getValues() {\n\n CalendarSyncSource syncSource = (CalendarSyncSource) getSyncSource();\n\n syncSource.setSourceURI(sourceUriValue.getText().trim());\n syncSource.setName(nameValue.getText().trim());\n\n String transformationsRequired = null;\n\n SyncSourceManagementObject mo = (SyncSourceManagementObject) getManagementObject();\n\n mo.setTransformationsRequired(transformationsRequired);\n\n setSyncSourceInfo(syncSource, (String) typeCombo.getSelectedItem());\n\n setBackendSyncSourceInfo(syncSource, (String) datastoretypeCombo.getSelectedItem());\n\n if ((eventValue == null) || (taskValue == null)) {\n return;\n }\n\n Class entityType;\n if (eventValue.isSelected()) {\n if (taskValue.isSelected()) {\n entityType = CalendarContent.class;\n } else {\n entityType = Event.class;\n }\n } else {\n entityType = Task.class;\n }\n syncSource.setEntityType(entityType);\n }", "title": "" }, { "docid": "d932a64bf69859d7af76eae1479f9610", "score": "0.4757611", "text": "public interface ISingleDataSetPathInfoProvider\n{\n /** @return information about path of the data set root directory */\n DataSetPathInfo getRootPathInfo();\n\n /**\n * @return information about path of data set file with given <var>relativePath</var>, or </code>null<code> if such a path doesn't exist\n */\n DataSetPathInfo tryGetPathInfoByRelativePath(String relativePath);\n\n /** @return list of paths that are children of given path (may be empty) */\n List<DataSetPathInfo> listChildrenPathInfos(DataSetPathInfo parent);\n\n /** @return list of paths that match given pattern for relative path */\n List<DataSetPathInfo> listMatchingPathInfos(String relativePathPattern);\n\n /** @return list of paths that start with given path and have file name matching given pattern */\n List<DataSetPathInfo> listMatchingPathInfos(String startingPath, String fileNamePattern);\n}", "title": "" }, { "docid": "6b1f9abf0d8eb7658ebc9ce5f33e426d", "score": "0.47527567", "text": "protected Object[] resolveAndConvertArguments(JobDefinition jobDefinition, final Map<String, ?> dataMap, JobExecutionContext context){\n\n return Arrays.stream(jobDefinition.getArgs())\n .map(ad -> argumentResolver.resolve(ad, dataMap, context))\n .toArray();\n\n }", "title": "" }, { "docid": "30dbf9f473308cc550959312015513e7", "score": "0.4752201", "text": "protected void collectMappingArguments() {\n\t\tEPackage.Registry.INSTANCE.put(SimpleumlPackage.eNS_URI, SimpleumlPackage.eINSTANCE);\n\t\tEPackage.Registry.INSTANCE.put(RdbPackage.eNS_URI, RdbPackage.eINSTANCE);\n\t\tResource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(\"*\", new XMIResourceFactoryImpl());\n\n\t\t// Refer to an existing transformation via URI\n\t\tURI transformationURI = URI.createFileURI(qvtoFileUri);\n\t\t// create executor for the given transformation\n\t\tTransformationExecutor executor = new TransformationExecutor(transformationURI);\n\n\t\t// define the transformation input\n\t\t// Remark: we take the objects from a resource, however\n\t\t// a list of arbitrary in-memory EObjects may be passed\n\t\tResourceSet resourceSet = new ResourceSetImpl();\n\t\tresourceSet.getPackageRegistry().put(EcorePackage.eNS_URI, EcorePackage.eINSTANCE);\n\t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(\"ecore\",\n\t\t\t\tnew EcoreResourceFactoryImpl());\n\t\tResource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(\"*\", new EcoreResourceFactoryImpl());\n\n\t\tResource inResource = resourceSet.getResource(URI.createFileURI(inUri), true);\n\t\t// Resource inResource = getResourceFromUri(inUri);\n\t\tEList<EObject> inObjects = inResource.getContents();\n\n\t\t// create the input extent with its initial contents\n\t\tModelExtent input = new BasicModelExtent(inObjects);\n\t\t// create an empty extent to catch the output\n\t\tModelExtent output = new BasicModelExtent();\n\n\t\t// setup the execution environment details ->\n\t\t// configuration properties, logger, monitor object etc.\n\t\tExecutionContextImpl context = new ExecutionContextImpl();\n\t\tcontext.setConfigProperty(\"keepModeling\", true);\n\n\t\t// run the transformation assigned to the executor with the given\n\t\t// input and output and execution context -> ChangeTheWorld(in, out)\n\t\t// Remark: variable arguments count is supported\n\t\texecutor.execute(context, input, output);\n\t\tSystem.out.println(\"Transformation executed.\");\n\t}", "title": "" }, { "docid": "d6474a10b1312b169ab2ea59180f23df", "score": "0.47451887", "text": "public Object get(SynthContext paramSynthContext, Object paramObject) {\n/* 652 */ Values values = getValues(paramSynthContext);\n/* */ \n/* */ \n/* 655 */ String str1 = paramObject.toString();\n/* 656 */ String str2 = str1.substring(str1.indexOf(\".\") + 1);\n/* */ \n/* 658 */ Object object = null;\n/* 659 */ int i = getExtendedState(paramSynthContext, values);\n/* */ \n/* */ \n/* 662 */ this.tmpKey.init(str2, i);\n/* 663 */ object = values.cache.get(this.tmpKey);\n/* 664 */ boolean bool = (object != null) ? true : false;\n/* 665 */ if (!bool) {\n/* */ \n/* 667 */ RuntimeState runtimeState = null;\n/* 668 */ int[] arrayOfInt = { -1 };\n/* 669 */ while (object == null && (\n/* 670 */ runtimeState = getNextState(values.states, arrayOfInt, i)) != null) {\n/* 671 */ object = runtimeState.defaults.get(str2);\n/* */ }\n/* */ \n/* 674 */ if (object == null && values.defaults != null) {\n/* 675 */ object = values.defaults.get(str2);\n/* */ }\n/* */ \n/* */ \n/* 679 */ if (object == null) object = UIManager.get(str1);\n/* */ \n/* 681 */ if (object == null && str2.equals(\"focusInputMap\")) {\n/* 682 */ object = super.get(paramSynthContext, str1);\n/* */ }\n/* */ \n/* 685 */ values.cache.put(new CacheKey(str2, i), (object == null) ? NULL : object);\n/* */ } \n/* */ \n/* */ \n/* 689 */ return (object == NULL) ? null : object;\n/* */ }", "title": "" }, { "docid": "56b46dc487cce7048f49a7c97a779458", "score": "0.4740577", "text": "@Override\n\tpublic Set<Pair> applyStrategy(Dataset ds, Node node, String path)\n\t{\n\t\tSet<Pair> result = getValueProvenancePairs(node, path);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "ed6a3cb9efa547f4ea03d4bcbfaf2cb7", "score": "0.47238672", "text": "public interface LoaderHelper {\n /**\n * Load the value of the attribute key from the current element.\n *\n * @param reader a stream containing a property value\n * @return the key value\n */\n String loadKey(XMLStreamReader reader);\n\n /**\n * Loads one or more property values configured in a composite or on a component from a Stax stream. Each property value is returned as child of\n * the document root.\n *\n * The reader must be positioned at the composite or component &lt;property&gt; element.\n *\n * @param reader the stream reader\n * @return a document containing the values\n * @throws XMLStreamException if there was a problem reading the stream\n */\n Document loadPropertyValues(XMLStreamReader reader) throws XMLStreamException;\n\n /**\n * Loads a property value configured in a composite or on a component using the @value attribute from a String.\n *\n * @param content String content\n * @return a document containing the values\n * @throws XMLStreamException if there was a problem reading the stream\n */\n Document loadPropertyValue(String content) throws XMLStreamException;\n\n /**\n * Convert a URI from a String form of <code>component/service/binding</code> to a Target.\n *\n * @param target the URI to convert\n * @param reader the stream reader parsing the XML document where the target is specified\n * @return a target instance\n * @throws InvalidTargetException if the target format is invalid\n */\n Target parseTarget(String target, XMLStreamReader reader) throws InvalidTargetException;\n\n /**\n * Constructs a QName from the given name. If a namespace prefix is not specified in the name, the namespace context is used.\n *\n * @param name the name to parse\n * @param reader the XML stream reader\n * @return the parsed QName\n * @throws InvalidPrefixException if a specified namespace prefix is invalid\n */\n QName createQName(String name, XMLStreamReader reader) throws InvalidPrefixException;\n\n /**\n * Determines if the first multiplicity setting can narrow the second.\n *\n * @param first multiplicity setting\n * @param second multiplicity setting\n * @return true if the first can narrow the second\n */\n boolean canNarrow(Multiplicity first, Multiplicity second);\n\n /**\n * Transforms the XML element to a DOM representation.\n *\n * @param reader the XML stream reader\n * @return the DOM\n * @throws XMLStreamException if a conversion exception is encountered\n */\n Document transform(XMLStreamReader reader) throws XMLStreamException;\n}", "title": "" }, { "docid": "0532a484d50b69e004d3b4cf00c537bd", "score": "0.4701349", "text": "static void readData() {\n\t\tgetParks();\r\n\t\t//read xml\r\n\t\tDistancesXMLParser parser = new DistancesXMLParser(parks);\r\n\t\tparser.parseFiles();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8ab3c1f32dc3ad23c588b3b01f3fe251", "score": "0.46830845", "text": "@Deprecated\n public static Value get(Value value, Path path)\n {\n assert value != null;\n assert path != null;\n \n // Base case: all parts have been matched\n if (path.isEmpty()) return value;\n \n // Divide the parts into the first part and other parts\n String first_part = path.get();\n Path sub_path = path.subPath();\n \n if (value instanceof DataTree)\n {\n // Navigating from a data tree into its root value is automatic\n Value root_value = ((DataTree) value).getRootValue();\n return get(root_value, path);\n }\n else if (value instanceof TupleValue)\n {\n // Navigating from a tuple into its attribute is via the attribute name\n TupleValue tuple = (TupleValue) value;\n Value child = tuple.getAttribute(first_part);\n assert child != null : \"Attribute \\\"\" + first_part + \"\\\" cannot be found\";\n return get(child, sub_path);\n }\n else if (value instanceof CollectionValue)\n {\n // Navigating from a relation into its tuple is via the 0-based index\n int index = -1;\n try\n {\n index = Integer.parseInt(first_part);\n }\n catch (NumberFormatException e)\n {\n assert false : \"\\\"\" + index + \"\\\" is not a valid integer\";\n }\n CollectionValue relation = (CollectionValue) value;\n assert index >= 0 : index + \" is out of range\";\n assert index < relation.getTuples().size() : index + \" is out of range - relation has \" + relation.getTuples().size()\n + \" tuples\";\n TupleValue tuple = ((CollectionValue) value).getTuples().get(index);\n return get(tuple, sub_path);\n }\n else\n {\n assert value instanceof SwitchValue;\n \n // Navigating from a switch value into a case tuple requires matching the case name\n SwitchValue switch_value = (SwitchValue) value;\n Value case_value = switch_value.getCase();\n assert switch_value.getCaseName().equals(first_part) : first_part + \" is invalid - switch value has case name \\\"\"\n + switch_value.getCaseName() + \"\\\"\";\n return get(case_value, sub_path);\n }\n }", "title": "" }, { "docid": "1c379eb18d5441b2d2d1778b3a34dffa", "score": "0.46651226", "text": "public Value[] resolveConstantValues();", "title": "" }, { "docid": "4d76a120e8b284889675051d5ecf4f1b", "score": "0.4660382", "text": "String getValue(String name) {\n if (config == null) {\n return null; //config wasn't initialised for some reason, so cannot resolve anything\n }\n String value = null;\n IntNode versionNode = (IntNode) config.get(\"version\");\n if (versionNode != null && !versionNode.isNull()) {\n mappingsVersion = (Integer) versionNode.numberValue();\n }\n JsonNode node = null;\n if (mappingsVersion > 1) {\n String keySegment[] = parseOnfirst(name, \".\");\n if (!keySegment[0].isEmpty() && !keySegment[1].isEmpty()) {\n node = config.get(keySegment[0]);\n if (node == null || node.isNull()) {\n return null; // 1st segment could not be located\n }\n node = node.get(keySegment[1]);\n if (node == null || node.isNull()) {\n return null; // 2nd segment could not be located\n }\n } else {\n return null;\n }\n } else {\n node = config.get(name);\n if (node == null || node.isNull()) {\n return null; //specified name could not be located\n }\n }\n \n if (node.get(\"credentials\") != null) {\n node = node.get(\"credentials\");\n }\n ArrayNode array = (ArrayNode) node.get(\"searchPatterns\");\n if (array.isArray()) {\n for (final JsonNode entryNode : array) {\n String entry = entryNode.asText();\n LOGGER.debug(\"entryNode \" + entryNode);\n String token[] = parseOnfirst(entry, \":\");\n LOGGER.debug(\"tokens \" + token[0] + \" , \" + token[1]);\n if (!token[0].isEmpty() && !token[1].isEmpty()) {\n switch (token[0]) {\n case \"user-provided\":\n value = getUserProvidedValue(token[1]);\n break;\n case \"cloudfoundry\":\n value = getCloudFoundryValue(token[1]);\n break;\n case \"env\":\n value = getEnvValue(token[1]);\n break;\n case \"file\":\n value = getFileValue(token[1]);\n break;\n default:\n LOGGER.warn(\"Unknown protocol in searchPatterns : \" + token[0]);\n break;\n }\n }\n if (value != null) {\n break;\n }\n }\n } else {\n LOGGER.warn(\"search patterns in mapping.json is NOT an array, values will not be resolved\");\n }\n return value;\n }", "title": "" }, { "docid": "7de75666587907c83b6196b3124d2f0f", "score": "0.4653547", "text": "private String resolveStringValue()\n {\n ProjectStage ps = null;\n String value = null;\n keyResolved = keyOriginal;\n int keySuffices = 0;\n\n // make the longest key\n // first, try appending resolved parameter\n if (propertyParameter != null && !propertyParameter.isEmpty())\n {\n if (parameterValue != null && !parameterValue.isEmpty())\n {\n keyResolved += \".\" + parameterValue;\n keySuffices++;\n }\n // if parameter value can't be resolved and strictly\n else if (strictly)\n {\n return null;\n }\n }\n\n // try appending projectstage\n if (projectStageAware)\n {\n ps = getProjectStage();\n keyResolved += \".\" + ps;\n keySuffices++;\n }\n\n // make initial resolution of longest key\n value = getPropertyValue(keyResolved, evaluateVariables);\n\n // try fallbacks if not strictly\n if (value == null && !strictly)\n {\n\n // by the length of the longest resolved key already tried\n // breaks are left out intentionally\n switch (keySuffices)\n {\n\n case 2:\n // try base.param\n keyResolved = keyOriginal + \".\" + parameterValue;\n value = getPropertyValue(keyResolved, null, evaluateVariables);\n\n if (value != null)\n {\n return value;\n }\n\n // try base.ps\n ps = getProjectStage();\n keyResolved = keyOriginal + \".\" + ps;\n value = getPropertyValue(keyResolved, null, evaluateVariables);\n\n if (value != null)\n {\n return value;\n }\n\n case 1:\n // try base\n keyResolved = keyOriginal;\n value = getPropertyValue(keyResolved, null, evaluateVariables);\n return value;\n\n default:\n // the longest key was the base, no fallback\n return null;\n }\n }\n\n return value;\n }", "title": "" }, { "docid": "dd492499ff673c7233756823b19d6e48", "score": "0.46509635", "text": "protected void prepare ()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null)\n\t\t\t\t;\n\t\t\telse if (name.equals(\"lbr_DocDate\") || name.equals(\"DateDoc\"))\n\t\t\t{\n\t\t\t\tp_DateFrom = (Timestamp) para[i].getParameter();\n\t\t\t\tp_DateTo = (Timestamp) para[i].getParameter_To();\n\t\t\t}\n\t\t\telse if (name.equals(\"File_Directory\"))\n\t\t\t\tp_FilePath = para[i].getParameter().toString();\n\t\t\telse if (name.equals(\"AD_Org_ID\"))\n\t\t\t\tp_AD_Org_ID = para[i].getParameterAsInt();\n\t\t\telse if (name.equals(\"lbr_IndEscC\"))\n\t\t\t\tp_Type = para[i].getParameter().toString();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"prepare - Unknown Parameter: \" + name);\n\t\t}\t//\tfor\n\t}", "title": "" }, { "docid": "13ccb7d84e01e1e42844fd5a2c17f957", "score": "0.4650303", "text": "public interface IDataDictionaryFinder {\n\n /**\n * 查询资源数据库的catalog集合\n * @return\n */\n @EsbServiceMapping(trancode = \"8001030501\",caption = \"查询资源数据库的catalog集合\")\n List<Item> findDataCatalogs();\n\n /**\n * 根据catalog获取schemas集合\n * @param catalog 资源数据库的catalog\n * @return\n */\n @EsbServiceMapping(trancode = \"8001030502\",caption = \"根据catalog获取schemas集合\")\n List<Item> findSchemas(@ServiceParam(name = \"catalog\") String catalog);\n\n /**\n * 根据catalog和schema获取table集合\n * @param catalog 数据库catalog\n * @param schema 数据库schema\n * @return\n */\n @EsbServiceMapping(trancode = \"8001030503\",caption = \"根据catalog和schema获取table集合\")\n List<Item> findTables(@ServiceParam(name = \"catalog\") String catalog,@ServiceParam(name = \"schema\") String schema);\n\n\n /**\n * 分级获取数据资源树\n * @param parentId\n * @return\n */\n @EsbServiceMapping(trancode = \"8001030504\",caption = \"分级获取数据资源树\",\n dataAccesses = {@DataAccess(property = Constant.AUTH_DATA_PROP_DATASOURCE,name = \"datasource\")})\n List<TreeNode> getDataSourceIteratorTree(\n @ServiceParam(name = \"id\")String parentId,\n @DataAccessParam(property = Constant.AUTH_DATA_PROP_DATASOURCE)DataAccesses catalogDataAccesses);\n\n /**\n * 根据catalog,schema,tableName 获取表的列集合\n * @param catalog\n * @param schema\n * @param tableName\n * @return\n */\n @EsbServiceMapping(trancode = \"8001030504\",caption = \"根据catalog,schem,tableName 获取表的列集合\")\n List<Item> findTableColumns(\n @ServiceParam(name = \"catalog\") String catalog,\n @ServiceParam(name = \"schema\") String schema,\n @ServiceParam(name = \"tableName\") String tableName);\n\n}", "title": "" }, { "docid": "11d8ca7238227a50be265d4812c1ba7a", "score": "0.46484894", "text": "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (name.equals(\"AD_Client_ID\"))\n\t\t\t\tm_AD_Client_ID = ((BigDecimal)para[i].getParameter()).intValue();\n\t\t\telse if (name.equals(\"AD_Org_ID\"))\n\t\t\t\tm_AD_Org_ID = ((BigDecimal)para[i].getParameter()).intValue();\n\t\t\telse if (name.equals(\"M_Warehouse_ID\"))\n\t\t\t\tm_M_Warehouse_ID = ((BigDecimal)para[i].getParameter()).intValue();\n\t\t\telse if (name.equals(\"DeleteOldImported\"))\n\t\t\t\tm_deleteOldImported = \"Y\".equals(para[i].getParameter());\n\t\t\telse if (name.equals(\"C_DocType_ID\"))\n\t\t\t\tm_C_DocType_ID = ((BigDecimal)para[i].getParameter()).intValue();\n\t\t\telse if (name.equals(\"IsUniqueSrNo\"))\n\t\t\t\tisuniquesrno = (para[i].getParameterAsBoolean());\n\t\t\telse if (name.equals(\"IsInitialImport\"))\n\t\t\t\tisinitialImport = (para[i].getParameterAsBoolean());\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\tif (m_DateValue == null)\n\t\t\tm_DateValue = new Timestamp (System.currentTimeMillis());\n\t}", "title": "" }, { "docid": "38858fae829bf9102c5249b818e0e265", "score": "0.4640625", "text": "protected void updateParams() {\n applyAnnotationsValues();\n URI = URI == null ? servicePath : URI;\n applyPathVariables();\n applyQueryString();\n }", "title": "" }, { "docid": "042586c50b6b5e5eba4f92201c0d622b", "score": "0.46399793", "text": "public abstract List<?> getEverestValue(Map<IInputOutput<?>,Object> genlabInput2value);", "title": "" }, { "docid": "4ca1a6c77de730e54fbc66133c91ac2e", "score": "0.46275803", "text": "public static ParameterData getInferredParameters(Object obj) {\n\t\tParameterData pd = ParameterData.make();\n\t\tif (obj != null) {\n\t\t\tif (obj instanceof ParameterProvider) {\n\t\t\t\t// easy!\n\t\t\t\treturn ((ParameterProvider)obj).getParameters();\n\t\t\t} else {\n\t\t\t\t// use reflection\n\t\t\t\tField[] fields = obj.getClass().getDeclaredFields();\n\t\t\t\tfor (Field field : fields) {\n\n\t\t\t\t\t// peek at private fields.\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t} catch (SecurityException e1) {\n\t\t\t\t\t\treturn pd; // if security problem, then just skip.\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((field.getModifiers() & Modifier.FINAL) == 0) {\n\n\t\t\t\t\t\tString id = field.getName();\n\t\t\t\t\t\tType type = field.getGenericType();\n\t\t\t\t\t\tObject value = null;\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tvalue = field.get(obj);\n\n\t\t\t\t\t\t\tif (type.equals(Boolean.TYPE)) {\n\t\t\t\t\t\t\t\tpd.setBool(id, (boolean)value);\n\t\t\t\t\t\t\t} else if(type.equals(Integer.TYPE)) {\n\t\t\t\t\t\t\t\tpd.setInt(id, (int)value);\n\t\t\t\t\t\t\t} else if (type.equals(Double.TYPE) || type.equals(Float.TYPE)) {\n\t\t\t\t\t\t\t\tpd.setInternal(id, (double)value, \"unitless\");\n\t\t\t\t\t\t\t} else if (value != null && value instanceof ParameterProvider) {\n\t\t\t\t\t\t\t\t// if the field has its own parameters...\n\t\t\t\t\t\t\t\tParameterData sub = ((ParameterProvider)value).getParameters().copyWithPrefix(id+\"__\");\n\t\t\t\t\t\t\t\tpd.copy(sub, false);\n\t\t\t\t\t\t\t} else if (value != null && (value instanceof Collection || value.getClass().isArray())) {\n\t\t\t\t\t\t\t\t// most lists\n\t\t\t\t\t\t\t\tpd.set(id, f.Fobj(value));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// hope there is a toString() method\n\t\t\t\t\t\t\t\tpd.set(id, \"\"+value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\t\t\tcontinue; // if error, then skip\n\t\t\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\t\t\tcontinue; // if error, then skip\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn pd;\n\t}", "title": "" }, { "docid": "31cd44f6c5f9247763d49ab86f5c3e75", "score": "0.4626713", "text": "private static void mapValues(){\n\n double task = 100;\n double income1 = 300;\n double income2 = 350;\n double income3 = 180;\n\n double time1 = 300;\n double time2 = 900;\n double time3 = 160;\n\n double energy1 = 50;\n double energy2 = 180;\n double energy3 = 720;\n\n double strength1 = 180;\n double strength2 = 120;\n double strength3 = 144;\n\n double passive1 = 100;\n double passive3 = 100;\n double passive4 = 500;\n double passive2 = 800;\n\n double goldMultiplier = 1;\n double energyMultiplier = 1;\n double strengthMultiplier = 1;\n double timeMultiplier = 1;\n\n values.put(\"task\", task);\n values.put(\"passive1\", passive1);\n values.put(\"passive4\", passive4);\n values.put(\"goldMultiplier\", goldMultiplier);\n values.put(\"energyMultiplier\", energyMultiplier);\n values.put(\"strengthMultiplier\", strengthMultiplier);\n values.put(\"timeMultiplier\", strengthMultiplier);\n values.put(\"income1\", income1);\n values.put(\"income2\", income2);\n values.put(\"income3\", income3);\n values.put(\"time1\", time1);\n values.put(\"time2\", time2);\n values.put(\"time3\", time3);\n values.put(\"energy1\", energy1);\n values.put(\"energy2\", energy2);\n values.put(\"energy3\", energy3);\n values.put(\"strength1\", strength1);\n values.put(\"strength2\", strength2);\n values.put(\"strength3\", strength3);\n values.put(\"passive3\", passive3);\n values.put(\"passive2\", passive2);\n\n\n }", "title": "" }, { "docid": "fabb0ca0db3b2ab2ceb33766933b7dc1", "score": "0.46099108", "text": "private void calcParams(){\n\t\t//Get r1 and r2, distance from center to p1 and p2\n\t\tfloat r1 = pApp.d(f, p1);\n\t\tfloat r2 = pApp.d(f, p2);\n\t\t\n\t\tvec fp1 = pApp.V(f, p1);\n\t\tvec fp2 = pApp.V(f, p2);\n\t\t\n\t\t//sUBTENDING ANGLE\n\t\tfloat theta1 = pApp.angle(fp2, fp1);\n\t\t//Set params\n\t\tthis.b = (float) ((float) Math.log(r1/r2)/theta1);\n\t\tthis.a = (float)((float) r2/ Math.exp(this.b * 2 * Math.PI));\n\t\t\n\t\t\n\t\tint ptCtr = 0;\n\t\t//Recompute points in cache\n\t\tfor(float th = (float) ( 2*Math.PI); ptCtr < preCompPts.length ; th-=0.1){\n\t\t\t//Get polar co-ordinate R\n\t\t\t\n\t\t\t\n\t\t\tpt result = computeVal(th);\n\t\t\t\n\t\t\tpreCompPts[ptCtr].x = result.x;\n\t\t\tpreCompPts[ptCtr].y = result.y;\n\t\t\tptCtr++;\n\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "d0b6c02365187e39657d901311e9ec14", "score": "0.4595112", "text": "private List<String> getPartitionValuesFromPath(String path) {\n final String[] pathParts = path.split(\"/\");\n List<String> partitionValues = new ArrayList<>();\n for (String pathPart : pathParts) {\n if (pathPart.contains(\"=\")) {\n final String[] partitionParts = pathPart.split(\"=\");\n partitionValues.add(partitionParts[1]);\n }\n }\n getLogger().debug(\"The following partition values were processed from path '{}': {}\", path, partitionValues);\n return partitionValues;\n }", "title": "" }, { "docid": "f407c4c8229635dec280d79cc5af66df", "score": "0.45927072", "text": "private void loadDataFiltersFromProperties() {\n }", "title": "" }, { "docid": "2e1493fb0aca147b0424494b3437bd59", "score": "0.45907357", "text": "void resolver_init(String path);", "title": "" }, { "docid": "559e41a6660d53b957e1b5b4ad02f29d", "score": "0.45850846", "text": "private Object getParam(String paramName, String rawValue) {\n if (StringUtils.isBlank(rawValue)) {\n return null;\n }\n if (paramName.endsWith(\"Array\")) {\n String[] items = rawValue.split(\"[,\\n]\");\n String[] values = new String[items.length];\n int i = 0;\n for (String item : items) {\n values[i] = (String) getParam(paramName.replace(\"Array\", \"\"), item.trim());\n i++;\n }\n return values;\n }\n if (StringUtils.endsWithIgnoreCase(paramName, \"locator\") ||\n \"activity\".equals(paramName) ||\n \"url\".equals(paramName) ||\n \"file\".equals(paramName)) {\n return getItemValue(rawValue);\n }\n return rawValue;\n }", "title": "" }, { "docid": "9e2161b0080b566a48c20b46775c5df0", "score": "0.45692152", "text": "public static void resolve(Map<String, Object> context) throws ConfigParserException {\n\n resolveSystemProperties(context);\n resolveEnvVariables(context);\n resolveConfigReferences(context);\n }", "title": "" }, { "docid": "46384c95789deb2b993075a4c1e18311", "score": "0.45660523", "text": "@DataProvider\r\nObject[][] getdata1() throws Exception\r\n{\r\n\r\n\treturn usingList(\"TC03\",path);\r\n}", "title": "" }, { "docid": "cf621310ad3c9e2c9935bd52f3a7552b", "score": "0.45632294", "text": "Map<String, ParameterDefinitionsValue> parameters();", "title": "" }, { "docid": "34cee85f2517913bd36225f26bce39bb", "score": "0.45558417", "text": "private void populateParameters() throws IOException {\n\n Iterator it = symbolTable.values().iterator();\n\n while (it.hasNext()) {\n Vector v = (Vector) it.next();\n\n for (int i = 0; i < v.size(); ++i) {\n if (v.get(i) instanceof BindingEntry) {\n BindingEntry bEntry = (BindingEntry) v.get(i);\n\n // Skip non-soap bindings\n if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) {\n continue;\n }\n\n Binding binding = bEntry.getBinding();\n Collection bindOperations = bEntry.getOperations();\n PortType portType = binding.getPortType();\n HashMap parameters = new HashMap();\n Iterator operations =\n portType.getOperations().iterator();\n\n // get parameters\n while (operations.hasNext()) {\n Operation operation = (Operation) operations.next();\n\n // See if the PortType operation has a corresponding\n // Binding operation and report an error if it doesn't.\n if (!bindOperations.contains(operation)) {\n throw new IOException(\n Messages.getMessage(\n \"emitFailNoMatchingBindOperation01\",\n operation.getName(),\n portType.getQName().getLocalPart()));\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Processing operation \" + operation.getName());\n }\n \n String namespace =\n portType.getQName().getNamespaceURI();\n Parameters parms = getOperationParameters(operation,\n namespace, bEntry);\n parameters.put(operation, parms);\n }\n\n bEntry.setParameters(parameters);\n }\n }\n }\n }", "title": "" }, { "docid": "a59ca6eaa179502be59993b5755515d5", "score": "0.4542367", "text": "@Override\n public void read(ReadContext context, Double maxAge, \n TimestampsToReturn timestamps, List<ReadValueId> readValueIds) {\n \n System.out.println(\"READ Recognized\");\n System.out.println(\"Context \" + context + \", maxAge=\" + maxAge);\n \n List<DataValue> results = Lists.newArrayListWithCapacity(readValueIds.size());\n \n // Create a dictionary, binaryEncodingId, and register the codec under that id\n OpcUaBinaryDataTypeDictionary dictionary = new OpcUaBinaryDataTypeDictionary(\n \"urn:virtrepframework:net:file-wrapper\"\n );\n\n NodeId binaryEncodingId = new NodeId(namespaceIndex, \"DataType.FileWrapperOPCUA.BinaryEncoding\");\n\n dictionary.registerStructCodec(\n new FileWrapperOPCUA.Codec().asBinaryCodec(),\n \"FileWrapperOPCUA\",\n binaryEncodingId\n );\n\n // Register dictionary with the shared DataTypeManager instance\n OpcUaDataTypeManager.getInstance().registerTypeDictionary(dictionary); \n \n readValueIds.forEach((rvi) -> {\n \n String name = String.valueOf(rvi.getNodeId().getIdentifier());\n \n System.out.println(\"Read for name=\" + name);\n \n ReadResponse readResponse = executeRead(name, \"application/rdf+xml\");\n \n if(readResponse.getFile()==null) {\n \n System.out.println(\"RR: File is null\");\n \n } else {\n \n System.out.println(\"RR: File is not null\");\n \n }\n \n FileWrapperOPCUA wrapper = new FileWrapperOPCUA(readResponse.getFile());\n \n System.out.println(\"ReadValue: \" + rvi.getNodeId().getIdentifier());\n System.out.println(\"STATUS READ: \" + readResponse.getStatus());\n \n DataValue value = null;\n \n switch (readResponse.getStatus()) {\n case 2: //do same as in case 1\n case 1:\n ExtensionObject xo = ExtensionObject.encode(wrapper, binaryEncodingId);\n value = new DataValue(new Variant(xo), StatusCode.GOOD);\n break;\n case -1:\n value = new DataValue(StatusCodes.Bad_NodeIdUnknown);\n break;\n default:\n value = new DataValue(StatusCodes.Bad_InternalError);\n break;\n }\n \n results.add(value);\n \n }); \n \n System.out.println(\"Read complete.\");\n context.complete(results);\n \n }", "title": "" }, { "docid": "aea53d542bdf4eccad59b5b736b09493", "score": "0.4534937", "text": "private static void extractPlaceholdersFromString(String key, String value, Map<String, Set<String>> unresolvedKeys,\n Map<String, Set<String>> valuesToResolve) {\n\n String[] fileRefs = StringUtils.substringsBetween(value, CONF_PLACEHOLDER_PREFIX,\n PLACEHOLDER_SUFFIX);\n if (fileRefs != null && fileRefs.length > 0) {\n for (String ref : fileRefs) {\n Set<String> dependentKeys = valuesToResolve.getOrDefault(ref, new HashSet<>());\n Set<String> keysUsed = unresolvedKeys.getOrDefault(key, new HashSet<>());\n dependentKeys.add(key);\n keysUsed.add(ref);\n valuesToResolve.put(ref, dependentKeys);\n unresolvedKeys.put(key, keysUsed);\n }\n }\n }", "title": "" }, { "docid": "3b1a1f927e38219cd35abb7af81e09ab", "score": "0.45236006", "text": "protected abstract LinkedHashMap<ValueField<?>, String> buildValueFields();", "title": "" }, { "docid": "e93f33e09660b1fd7bb2610d3b3af73e", "score": "0.45226198", "text": "public void prepareData() {\n createEventMap();\r\n createPersonMap();\r\n //now both the maps are created, we need to engineer the data so it has all the relevant data needed for the google map\r\n //this means persons will need a child reference, as well as a string indicating which side of the family they're on\r\n addChildAttribute();\r\n createFamilySidesPerson();\r\n createEventPersonAtrributes();\r\n addEventsToPeople();\r\n //now that the data has been given the needed attributes for filtering, we can create the sets needed for filtering\r\n createMaleFilter();\r\n createFemaleFilter();\r\n createFatherFilter();\r\n createMotherFilter();\r\n createSpouseLines();\r\n createFamilyLines();\r\n //once the sets for filtering are created, we can create the sets for the lines\r\n\r\n }", "title": "" }, { "docid": "5891387b1ba741a2f5c57ee3cfdad64d", "score": "0.45224506", "text": "private Map<Field, Value> getValuesCommon(List<? extends Field> wrappedFields, boolean doInvokes) throws\n InvalidTypeException, ClassNotLoadedException, IncompatibleThreadStateException, InvocationException {\n Map<Field, Field> unwrappedToWrappedMap = new HashMap<Field, Field>();\n List<Field> noGetterUnwrappedFields = new ArrayList<Field>(); // fields that don't have getters\n \n // For fields that do have getters, we will just return VoidValue for them if\n // or we will call VisageGetValue for each, depending on doInvokes\n Map<Field, Value> result = new HashMap<Field, Value>();\n \n // Create the above Maps and lists\n for (Field wrappedField : wrappedFields) {\n Field unwrapped = VisageWrapper.unwrap(wrappedField);\n if (isJavaFXType()) {\n List<Method> mth = underlying().methodsByName(\"get\" + unwrapped.name());\n if (mth.size() == 0) {\n // No getter\n unwrappedToWrappedMap.put(unwrapped, wrappedField);\n noGetterUnwrappedFields.add(unwrapped);\n } else {\n // Field has a getter\n if (doInvokes) {\n result.put(wrappedField, getValue(wrappedField));\n } else {\n result.put(wrappedField, virtualMachine().voidValue());\n }\n }\n } else {\n // Java type\n unwrappedToWrappedMap.put(unwrapped, wrappedField);\n noGetterUnwrappedFields.add(unwrapped);\n } \n }\n \n // Get values for all the noGetter fields. Note that this gets them in a single JDWP trip\n Map<Field, Value> unwrappedFieldValues = underlying().getValues(noGetterUnwrappedFields);\n \n // for each input Field, create a result map entry with that field as the\n // key, and the value returned by getValues, or null if the field is invalid.\n \n // Make a pass over the unwrapped no getter fields and for each, put its\n // wrapped version, and wrapped value into the result Map.\n for (Map.Entry<Field, Field> unwrappedEntry: unwrappedToWrappedMap.entrySet()) {\n Field wrappedField = unwrappedEntry.getValue();\n Value resultValue = VisageWrapper.wrap(virtualMachine(), \n unwrappedFieldValues.get(unwrappedEntry.getKey()));\n result.put(wrappedField, resultValue);\n }\n return result;\n }", "title": "" }, { "docid": "8aca3ac568e94bd3e57f996f318ee03d", "score": "0.4509972", "text": "void computeParams() {\n\t\tStringBuffer cols = new StringBuffer();\n\t\tStringBuffer vals = new StringBuffer();\n\t\t\n\t\tlog.debug(\"Computing EIM Parameters for SQL Step\");\n\n\t\tfor( String name : mapping.keySet()) {\n\t\t\tif( mapping.get(name).containsKey(\"EIM Mapping\")) {\n\t\t\t\tcols.append(mapping.get(name).get(\"EIM Mapping\").split(\"\\\\.\")[1]+\",\\n\");\n\t\t\t\tvals.append(makeValue(name, mapping.get(name))+\",\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(cols.length() > 0)\n\t\t{ \n\t\t\tcols.deleteCharAt(cols.length()-2);\n\t\t\tvals.deleteCharAt(vals.length()-2);\n\t\t}\n\t\t\n\t\tgetSubs().put(\"InsertColumns\", cols.toString());\n\t\tgetSubs().put(\"InsertValues\", vals.toString());\n\t}", "title": "" }, { "docid": "e369a703853101154c2b1cd00bb59b0b", "score": "0.45084417", "text": "public void readData(Variable... v);", "title": "" }, { "docid": "3962beae3de13a686228c3226d36a538", "score": "0.45062783", "text": "private Context updateTransformationContext(@NonNull Context ctx) {\n val updateCtx = new UpdateContext();\n ctx.paths().stream()\n .flatMap(path -> ctx.values(path).stream())\n .forEach(uv -> registerValueProviderFetchTask(uv, updateCtx));\n\n log.debug(\"{} updating transformation context: {}\", this, ctx);\n\n // create and execute provider tasks\n val tasks = updateCtx.createPerValueProviderFetchTasks();\n log.trace(\"{} created {} value provider tasks\", this, tasks.size());\n val results = runTasks(tasks, isParallel());\n log.debug(\"{} task execution returned {} results.\", this, results.size());\n log.trace(\"{} updated transformation context: {}\", this, ctx);\n\n return ctx;\n }", "title": "" }, { "docid": "f3281d68f381da6d8fb56f2cea1a4131", "score": "0.45008245", "text": "Map<String, String> getParameters();", "title": "" }, { "docid": "eae066e767ef9322a082eaeb664aeb09", "score": "0.44993728", "text": "private void fillValues() {\n // TODO\n }", "title": "" }, { "docid": "b1eb142278e8645d42dc1c9471163aaf", "score": "0.44742978", "text": "<T extends IProvidableInfo > T getInfoFromPath(T info, LogicPath logicPath, EnumFacing currentFace, Object... available);", "title": "" }, { "docid": "4524d5c50f6f38ff927231ef9d6b6f9d", "score": "0.44549504", "text": "private void fillAllPaths(){\r\n\t\tGeneralPaths.getGp().fillPaths();\r\n\t}", "title": "" }, { "docid": "b5e772818e520fcbbb1455b56cf119ab", "score": "0.44494212", "text": "public static void getPartKeyValuesForCustomLocation(Map<String, String> partSpec,\n OutputJobInfo jobInfo, String partitionPath) {\n Matcher customPathMatcher = customPathPattern.matcher(jobInfo.getCustomDynamicPath());\n Matcher dynamicPathMatcher = customPathPattern.matcher(partitionPath);\n\n while (customPathMatcher.find() && dynamicPathMatcher.find()) {\n // get column name from custom path matcher and column value from dynamic path matcher\n partSpec.put(customPathMatcher.group(2), dynamicPathMatcher.group(2));\n }\n\n // add any partition key values provided as part of job info\n partSpec.putAll(jobInfo.getPartitionValues());\n }", "title": "" }, { "docid": "e3a2d48660e85e8fe3e8fde75488e59c", "score": "0.44454792", "text": "private static Object GetChildValueHelper(\r\n UncommonField<HybridDictionary[]> dataField, \r\n /*ref*/ ItemStructList<ChildValueLookup> valueLookupList,\r\n DependencyProperty dp, \r\n DependencyObject container, \r\n FrameworkObject child,\r\n int childIndex, \r\n boolean styleLookup,\r\n /*ref*/ EffectiveValueEntry entry,\r\n /*ref*/ ValueLookupType sourceType,\r\n FrameworkElementFactory templateRoot) \r\n {\r\n// Debug.Assert(child.IsValid, \"child should either be an FE or an FCE\"); \r\n\r\n Object value = DependencyProperty.UnsetValue;\r\n sourceType = ValueLookupType.Simple; \r\n\r\n // Walk list backwards since highest priority lookup items are inserted last\r\n for (int i = valueLookupList.Count - 1; i >= 0; i--)\r\n { \r\n sourceType = valueLookupList.List[i].LookupType;\r\n\r\n // Lookup logic is determined by lookup type. \"Trigger\" \r\n // is misleading right now because today it's also being used\r\n // for Storyboard timeline lookups. \r\n switch (valueLookupList.List[i].LookupType)\r\n {\r\n case /*ValueLookupType.*/Simple:\r\n { \r\n // Simple value\r\n value = valueLookupList.List[i].Value; \r\n } \r\n break;\r\n\r\n case /*ValueLookupType.*/Trigger:\r\n case /*ValueLookupType.*/PropertyTriggerResource:\r\n case /*ValueLookupType.*/DataTrigger:\r\n case /*ValueLookupType.*/DataTriggerResource: \r\n {\r\n // Conditional value based on Container state \r\n boolean triggerMatch = true; \r\n\r\n if( valueLookupList.List[i].Conditions != null ) \r\n {\r\n // Check whether the trigger applies. All conditions must match,\r\n // so the loop can terminate as soon as it finds a condition\r\n // that doesn't match. \r\n for (int j = 0; triggerMatch && j < valueLookupList.List[i].Conditions.length; j++)\r\n { \r\n Object state; \r\n\r\n switch (valueLookupList.List[i].LookupType) \r\n {\r\n case /*ValueLookupType.*/Trigger:\r\n case /*ValueLookupType.*/PropertyTriggerResource:\r\n // Find the source node \r\n DependencyObject sourceNode;\r\n int sourceChildIndex = valueLookupList.List[i].Conditions[j].SourceChildIndex; \r\n if (sourceChildIndex == 0) \r\n {\r\n sourceNode = container; \r\n }\r\n else\r\n {\r\n sourceNode = StyleHelper.GetChild(container, sourceChildIndex); \r\n }\r\n\r\n // Note that the sourceNode could be null when the source \r\n // property for this trigger is on a node that hasn't been\r\n // instantiated yet. \r\n DependencyProperty sourceProperty = valueLookupList.List[i].Conditions[j].Property;\r\n if (sourceNode != null)\r\n {\r\n state = sourceNode.GetValue(sourceProperty); \r\n }\r\n else \r\n { \r\n Type sourceNodeType;\r\n\r\n if( templateRoot != null )\r\n {\r\n sourceNodeType = FindFEF(templateRoot, sourceChildIndex).Type;\r\n } \r\n else\r\n { \r\n sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex]; \r\n }\r\n\r\n state = sourceProperty.GetDefaultValue(sourceNodeType);\r\n }\r\n\r\n triggerMatch = valueLookupList.List[i].Conditions[j].Match(state); \r\n\r\n break; \r\n\r\n case /*ValueLookupType.*/DataTrigger:\r\n case /*ValueLookupType.*/DataTriggerResource: \r\n default: // this cannot happen - but make the compiler happy\r\n\r\n state = GetDataTriggerValue(dataField, container, valueLookupList.List[i].Conditions[j].Binding);\r\n triggerMatch = valueLookupList.List[i].Conditions[j].ConvertAndMatch(state); \r\n\r\n break; \r\n } \r\n }\r\n } \r\n\r\n if (triggerMatch)\r\n {\r\n // Conditionals matched, use the value \r\n\r\n if (valueLookupList.List[i].LookupType == ValueLookupType.PropertyTriggerResource || \r\n valueLookupList.List[i].LookupType == ValueLookupType.DataTriggerResource) \r\n {\r\n // Resource lookup \r\n Object source;\r\n value = FrameworkElement.FindResourceInternal(child.FE,\r\n child.FCE,\r\n dp, \r\n valueLookupList.List[i].Value, // resourceKey\r\n null, // unlinkedParent \r\n true, // allowDeferredResourceReference \r\n false, // mustReturnDeferredResourceReference\r\n null, // boundaryElement \r\n false, // disableThrowOnResourceNotFound\r\n /*ref*/ source);\r\n\r\n // Try to freeze the value \r\n SealIfSealable(value);\r\n } \r\n else \r\n {\r\n value = valueLookupList.List[i].Value; \r\n }\r\n }\r\n }\r\n break; \r\n\r\n case /*ValueLookupType.*/TemplateBinding: \r\n { \r\n TemplateBindingExtension templateBinding = (TemplateBindingExtension)valueLookupList.List[i].Value;\r\n DependencyProperty sourceProperty = templateBinding.Property; \r\n\r\n // Direct binding of Child property to Container\r\n value = container.GetValue(sourceProperty);\r\n\r\n // Apply the converter, if any\r\n if (templateBinding.Converter != null) \r\n { \r\n DependencyProperty targetProperty = valueLookupList.List[i].Property;\r\n CultureInfo culture = child.Language.GetCompatibleCulture(); \r\n\r\n value = templateBinding.Converter.Convert(\r\n value,\r\n targetProperty.PropertyType, \r\n templateBinding.ConverterParameter,\r\n culture); \r\n } \r\n\r\n // if the binding returns an invalid value, fallback to default value \r\n if ((value != DependencyProperty.UnsetValue) && !dp.IsValidValue(value))\r\n {\r\n value = DependencyProperty.UnsetValue;\r\n } \r\n }\r\n break; \r\n\r\n case /*ValueLookupType.*/Resource:\r\n { \r\n // Resource lookup\r\n Object source;\r\n value = FrameworkElement.FindResourceInternal(\r\n child.FE, \r\n child.FCE,\r\n dp, \r\n valueLookupList.List[i].Value, // resourceKey \r\n null, // unlinkedParent\r\n true, // allowDeferredResourceReference \r\n false, // mustReturnDeferredResourceReference\r\n null, // boundaryElement\r\n false, // disableThrowOnResourceNotFound\r\n /*ref*/ source); \r\n\r\n // Try to freeze the value \r\n SealIfSealable(value); \r\n }\r\n break; \r\n }\r\n\r\n // See if value needs per-instance storage\r\n if (value != DependencyProperty.UnsetValue) \r\n {\r\n entry.Value = value; \r\n // When the value requires per-instance storage (and comes from this style), \r\n // get the real value from per-instance data.\r\n switch (valueLookupList.List[i].LookupType) \r\n {\r\n case /*ValueLookupType.*/Simple:\r\n case /*ValueLookupType.*/Trigger:\r\n case /*ValueLookupType.*/DataTrigger: \r\n {\r\n MarkupExtension me; \r\n Freezable freezable; \r\n\r\n if ((me = value as MarkupExtension) != null) \r\n {\r\n value = GetInstanceValue(\r\n dataField,\r\n container, \r\n child.FE,\r\n child.FCE, \r\n childIndex, \r\n valueLookupList.List[i].Property,\r\n i, \r\n /*ref*/ entry);\r\n }\r\n else if ((freezable = value as Freezable) != null && !freezable.IsFrozen)\r\n { \r\n value = GetInstanceValue(\r\n dataField, \r\n container, \r\n child.FE,\r\n child.FCE, \r\n childIndex,\r\n valueLookupList.List[i].Property,\r\n i,\r\n /*ref*/ entry); \r\n }\r\n } \r\n break; \r\n\r\n default: \r\n break;\r\n }\r\n }\r\n\r\n if (value != DependencyProperty.UnsetValue)\r\n { \r\n // Found a value, break out of the for() loop. \r\n break;\r\n } \r\n }\r\n\r\n return value;\r\n }", "title": "" }, { "docid": "aa721211a9f82fd3c80e3e770e9c9d62", "score": "0.4444667", "text": "public interface GettingDataStructure {\n\n\n List<String> getConfigFileContent();\n Map<String, String> getConfigValues();\n List<String> getTeamCityPath();\n List<String> getCommitedFileNames();\n Set<List> getOrderedCommitedFileNames();\n\n\n}", "title": "" }, { "docid": "1c4aebeefb457f0b2c9d3f363f6d7685", "score": "0.44382027", "text": "public static Object GetChildValue(\r\n UncommonField<HybridDictionary[]> dataField, \r\n DependencyObject container, \r\n int childIndex,\r\n FrameworkObject child, \r\n DependencyProperty dp,\r\n /*ref*/ FrugalStructList<ChildRecord> childRecordFromChildIndex,\r\n /*ref*/ EffectiveValueEntry entry,\r\n /*ref*/ ValueLookupType sourceType, \r\n FrameworkElementFactory templateRoot)\r\n { \r\n Object value = DependencyProperty.UnsetValue; \r\n sourceType = ValueLookupType.Simple;\r\n\r\n // Check if this Child Index is represented in given data-structure\r\n if ((0 <= childIndex) && (childIndex < childRecordFromChildIndex.Count))\r\n {\r\n // Fetch the childRecord for the given childIndex \r\n ChildRecord childRecord = childRecordFromChildIndex[childIndex];\r\n\r\n // Check if this Property is represented in the childRecord \r\n int mapIndex = childRecord.ValueLookupListFromProperty.Search(dp.GlobalIndex);\r\n if (mapIndex >= 0) \r\n {\r\n if (childRecord.ValueLookupListFromProperty.Entries[mapIndex].Value.Count > 0)\r\n {\r\n // Child Index/Property are both represented in this style/template, \r\n // continue with value computation\r\n\r\n // Pass into helper so ValueLookup struct can be accessed by /*ref*/ \r\n value = GetChildValueHelper(\r\n dataField, \r\n /*ref*/ childRecord.ValueLookupListFromProperty.Entries[mapIndex].Value,\r\n dp,\r\n container,\r\n child, \r\n childIndex,\r\n true, \r\n /*ref*/ entry, \r\n /*ref*/ sourceType,\r\n templateRoot); \r\n }\r\n }\r\n }\r\n\r\n return value;\r\n }", "title": "" }, { "docid": "9868614bcfc6b9e7616b2cd3f777c83e", "score": "0.44292226", "text": "@Override\n protected Map<String, List<String>> resolve(List<? extends String> encoded) {\n Map<String, List<String>> resolved = new HashMap<>(encoded.size());\n for (String s : encoded) {\n ResourceLocation rl = ResourceLocation.tryParse(s.toLowerCase(Locale.ROOT));\n if (rl != null) {\n resolved.computeIfAbsent(rl.getNamespace(), r -> new ArrayList<>()).add(rl.getPath());\n }\n }\n return resolved;\n }", "title": "" }, { "docid": "1622afcf28c8660fcecd94ac43226fc7", "score": "0.4429148", "text": "private Map createPaths(DotAwareMap improved) {\r\n\t\tDotAwareMap returned = map().get();\r\n\t\timproved.getFromPath(\"paths\").map(allPaths -> {\r\n\t\t\tcreateAllPaths((Map<String, List<Map>>) allPaths, returned);\r\n\t\t\treturn null;\r\n\t\t});\r\n\t\treturn returned;\r\n\t}", "title": "" }, { "docid": "35cd4e769b6adf39a97d382af89dd74e", "score": "0.4425437", "text": "private void loadPaths() {\n File testTrajectoryFile = new File(\"/home/lvuser/paths/testPath_left_detailed.csv\");\n\n testTrajectory = new Trajectory[2];\n testTrajectory[0] = Pathfinder.readFromCSV(testTrajectoryFile);\n }", "title": "" }, { "docid": "82a8ca8e063ec0ff4ed0527eb28fb701", "score": "0.44240585", "text": "public interface ValuesDefinition {\n /** The possible directions.\n *\n */\n public enum Direction {\n ASCENDING, DESCENDING;\n }\n\n /** The kinds of frequencies.\n *\n */\n public enum Frequency {\n FRAGMENT, ITEM;\n }\n\n /**\n * Returns the name of the values constraint.\n * @return The name of the values constraint.\n */\n String getName();\n\n /**\n * Sets the name of the values constraint.\n * @param name The values constraint name.\n */\n void setName(String name);\n\n /**\n * Returns the query definition associated with this values query.\n * @return The query definition.\n */\n ValueQueryDefinition getQueryDefinition();\n\n /**\n * Set the query definition associated with this values query.\n * @param qdef The query definition.\n */\n void setQueryDefinition(ValueQueryDefinition qdef);\n\n /**\n * Returns the name of the options node used for this values query.\n * @return The name of the options node.\n */\n String getOptionsName();\n\n /**\n * Set the name of the options node to use for this values query.\n * @param optname The name of the options node.\n */\n void setOptionsName(String optname);\n\n /**\n * Returns the name of the aggregate function applied to this query.\n * @return The name of the function.\n */\n String[] getAggregate();\n\n /**\n * Sets the name of the aggregate function to be applied as part of this values query.\n * @param aggregate The name of the function.\n */\n void setAggregate(String... aggregate);\n\n /**\n * Returns the aggregate path.\n * @return The path.\n */\n String getAggregatePath();\n\n /**\n * Sets the aggregate path.\n * @param aggregate The aggregate path.\n */\n void setAggregatePath(String aggregate);\n\n /**\n * Returns the view for this values query.\n * @return The view.\n */\n String getView();\n\n /**\n * Sets the view for this values query.\n * @param view The view.\n */\n void setView(String view);\n\n /**\n * Returns the direction of the results in this values query.\n * @return The direction.\n */\n Direction getDirection();\n\n /**\n * Sets the direction of the results to use in this values query.\n * @param dir The direction.\n */\n void setDirection(Direction dir);\n\n /**\n * Returns the frequency of the results.\n * @return The frequency.\n */\n Frequency getFrequency();\n\n /**\n * Sets the frequency to be used in this values query.\n * @param freq The frequency.\n */\n void setFrequency(Frequency freq);\n}", "title": "" }, { "docid": "10ce7a476039b0a32ec12a98b96a2028", "score": "0.44107425", "text": "protected void translateValues(){\n\n\n //translate url\n url = translateText(url, values);\n\n //translate headers\n if(headers!=null) {\n for (QPConnKeyValue keyValue : headers) {\n keyValue.key = translateText(keyValue.key, values);\n keyValue.value = translateText(keyValue.value, values);\n }\n }\n\n //translate params\n if(params!=null) {\n for (QPConnKeyValue keyValue : params) {\n keyValue.key = translateText(keyValue.key, values);\n keyValue.value = translateText(keyValue.value, values);\n }\n }\n\n //translate text data\n if(textData!=null){\n textData = translateText(textData, values);\n }\n\n }", "title": "" }, { "docid": "f41bc8b0148649cd10d9cc49577834b8", "score": "0.44102612", "text": "ValueOperations<String, Object> valueOperations();", "title": "" }, { "docid": "a2f34bce845a7111a7b0093a28f7ce65", "score": "0.44094342", "text": "public Map<String, Object> getParameters();", "title": "" }, { "docid": "1be323fb5234461584d6a785c75950e8", "score": "0.44039232", "text": "private void gatherParameters() {\n\n\t\tfinal int numberOfSmiles = terminations.length;\n\t\tfinal int[] maturities = new int[numberOfSmiles];\n\t\tArrays.fill(maturities, currentMaturity);\n\n\t\tfinal double[] rhos = Arrays.copyOf(parameters, numberOfSmiles);\n\t\tfinal double[] baseVols = Arrays.copyOfRange(parameters, numberOfSmiles, numberOfSmiles * 2);\n\t\tfinal double[] volvols = Arrays.copyOfRange(parameters, numberOfSmiles * 2, numberOfSmiles * 3);\n\n\t\trhoTable = rhoTable.addPoints(maturities, terminations, rhos);\n\t\tbaseVolTable = baseVolTable.addPoints(maturities, terminations, baseVols);\n\t\tvolvolTable = volvolTable.addPoints(maturities, terminations, volvols);\n\n\t}", "title": "" }, { "docid": "f547be07a78cd7becdfcebac593b3276", "score": "0.44029462", "text": "@Override\n\tprotected void setup(Context context)\n\t\t\tthrows IOException, InterruptedException\n\t{\n\t\tPath path[]=context.getLocalCacheFiles();\n\t\tString s;\n\t\tif(path!=null&&path.length>0)\n\t\t{\n\t\t\tfor(Path pth:path)\n\t\t\t{\n\t\t\t\tBufferedReader br=new BufferedReader(new FileReader(pth.toString()));\n\t\t\t\twhile((s=br.readLine())!=null)\n\t\t\t\t{\n\t\t\t\t\tfield=s.trim().split(\"=\");\n\t\t\t\t\thm.put(field[0],Double.parseDouble(field[1]));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "61f5c516b5de64bef51959daf6f21b3b", "score": "0.44005284", "text": "public void load() {\n // Create a new instance of the data of type T (which can be any class)\n try {\n this.instance = data.getDeclaredConstructor().newInstance();\n } catch (Exception e) {\n loader.getLogger().severe(\"Failed to create a new instance for class \" + data.getName(), e);\n return;\n }\n\n // Run through all the fields in the object\n for (Field field : dataFields) {\n try {\n // Check if there is a ConfigEntry annotation on the field\n ConfigEntry configEntry = field.getAnnotation(ConfigEntry.class);\n if (configEntry == null) {\n continue; // Ignore unannotated fields\n }\n\n // Gets the getter and setters for this field using the JavaBeans system\n PropertyDescriptor property = new PropertyDescriptor(field.getName(), data);\n // Get the write method\n Method method = property.getWriteMethod();\n\n // Information about the field\n String path = field.getName();\n\n // If there is a config annotation then do something\n if (!configEntry.path().isEmpty()) {\n path = configEntry.path();\n }\n\n // Some fields need custom handling to serialize or deserialize and the programmer will need to\n // define them herself. She can add an annotation to do that.\n Adapter adapter = field.getAnnotation(Adapter.class);\n if (adapter != null) {\n // A conversion adapter has been defined\n // Get the original value to be stored\n IConfigNode value = storage.getRoot().getNode(path);\n // Invoke the deserialization on this value\n method.invoke(instance, adapter.value().getDeclaredConstructor().newInstance().deserialize(value));\n // We are done here. If a custom adapter was defined, the rest of this method does not need to be run\n continue;\n }\n\n // Look in the Config to see if this field exists (it should)\n if (!storage.contains(path)) {\n loader.getLogger().debug(\"Error in file: value not found for parameter!\");\n loader.getLogger().debug(\" - file: \" + storage.getFilePath().toString());\n loader.getLogger().debug(\" - path: \" + path);\n //method.invoke(instance, (Object) null);\n continue;\n }\n\n method.invoke(instance, storage.get(path, TypeToken.of(property.getReadMethod().getGenericReturnType())));\n } catch (Exception e) {\n loader.getLogger().severe(\"Error on config entry loading... \", e);\n }\n }\n }", "title": "" }, { "docid": "4ee3bd9f245e341d230698b7cd66fbad", "score": "0.4396373", "text": "private void fillParameterHashtable() {\r\n\t\t\r\n\t\tinternalIRI = getInternalIRI();\r\n\t\tqueryParametersHashtable.put(Constants.IRI, internalIRI);\r\n\t\t\r\n\t\tString queryBag = getQueryBag();\r\n\t\tString[] fullParams = queryBag.split(Constants.parametersSeparator);\r\n\t\tString[] lightParamsName = new String[fullParams.length];\r\n\t\tString[] lightParamsContent = new String[fullParams.length];\r\n\t\t\r\n\t\tfor (int i=0; i< fullParams.length; i++) {\r\n\t\t\t\r\n\t\t\tlightParamsName[i] = fullParams[i].\r\n\t\t\t\tsubstring(0, fullParams[i].indexOf(Constants.parameterContentDefChar));\r\n\t\t\t\r\n\t\t\tlightParamsContent[i] = fullParams[i].\r\n\t\t\t\tsubstring(fullParams[i].indexOf(Constants.parameterContentDelimiterChar)+1, \r\n\t\t\t\t\t\tfullParams[i].lastIndexOf(Constants.parameterContentDelimiterChar));\r\n\t\t\t\r\n\t\t\tqueryParametersHashtable.put(lightParamsName[i], lightParamsContent[i]);\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif (lightParamsName[0].equalsIgnoreCase(Constants.sqlQueryTag))\r\n\t\t\tqueryType = Constants.IS_SQL_QUERY;\r\n\t\telse\r\n\t\t\tqueryType = Constants.IS_XMLDATASOURCE_QUERY;\r\n\t}", "title": "" }, { "docid": "04820834aa137537c52f8dad604292b7", "score": "0.43951878", "text": "protected void retrieveValues() {\n\t\tsend(Command.VALUES);\n\t\t// String answer = listContainer.read();\n\t\tString answer = listContainer.get();\n\t\thandleValData(answer);\n\t}", "title": "" }, { "docid": "9a6bacb08ca5aa555eaeb5bf260e0b53", "score": "0.4394268", "text": "protected Object readResolve() { \n return getAB(); \n }", "title": "" }, { "docid": "d2cac9750eedda03e1897992f01f1d7b", "score": "0.43846408", "text": "public interface DependencyGraphExecutor {\n\n /**\n * Evaluates a dependency graph.\n * <p>\n * A graph may be executed in its entirety, but more typically a set of values that are already known will be supplied. Execution of the graph\n * will consist of nodes that consume these values leading towards the root of the graph. For example this might be the market data for the\n * cycle ({@link MarketDataSourcingFunction} nodes are never executed), or a more complete buffer of data if this is a delta execution cycle.\n * <p>\n * The parameters allow execution to be modified from what is described in the initial graph. Any nodes producing outputs which are keys in\n * the map will instead be executed with the given parameters.\n *\n * @param graph a dependency graph to be executed, not null\n * @param sharedValues values that are already calculated and available; nodes producing these will not be executed, not null and not containing null\n * @param parameters substitute parameters to adjust the execution, not null and not containing null\n * @return An object you can call get() on to wait for completion\n */\n DependencyGraphExecutionFuture execute(DependencyGraph graph, Set<ValueSpecification> sharedValues, Map<ValueSpecification, FunctionParameters> parameters);\n\n}", "title": "" }, { "docid": "578007a3396bcc33ae6648a58f04de45", "score": "0.43834323", "text": "static Object[] getImpl(String paramString1, String paramString2, String paramString3, Object paramObject) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException {\n/* 705 */ if (paramString3 == null) {\n/* 706 */ return \n/* 707 */ GetInstance.getInstance(paramString2, getSpiClass(paramString2), paramString1, paramObject).toArray();\n/* */ }\n/* 709 */ return \n/* 710 */ GetInstance.getInstance(paramString2, getSpiClass(paramString2), paramString1, paramObject, paramString3).toArray();\n/* */ }", "title": "" }, { "docid": "6a361f4eaaeea61c33cbcd2fa66ba130", "score": "0.43756196", "text": "protected void init() {\n if (observationTimesSet) // If observation times are not defined, do nothing.\n path[0] = x0;\n // We do this here because the s0 parameter may have changed through\n // a call to the 'setParams' method.\n }", "title": "" }, { "docid": "c5db4052c29edb5b10b682ccfd49b7d7", "score": "0.43694967", "text": "public interface IPathConstant {\n\tString PROPERTY_FILEPATH=\"./data/commonData.properties\";\n\tString JSON_FILEPATH=\"./data/commonData.json\";\n\tString EXCEL_FILEPATH=\"./data/commonData.xlsx\";\n\n}", "title": "" }, { "docid": "035c540c10d9db13a1f18cbcde861f39", "score": "0.4364736", "text": "public abstract Parameters getParameters();", "title": "" }, { "docid": "cf7f411bf7f57b20daed9f374cce218d", "score": "0.4364072", "text": "public Value<Path> pathValue(Path basePath)\n {\n return convertedValue(basePath::resolve);\n }", "title": "" }, { "docid": "f5ad507e8a308050660556e1d8a0a572", "score": "0.43594128", "text": "@Override\n public Map<SingleValueRequirement, Result<?>> buildSingleValues(MarketDataBundle marketDataBundle,\n ZonedDateTime valuationTime,\n Set<SingleValueRequirement> marketDataRequirements,\n MarketDataSource marketDataSource,\n CyclePerturbations cyclePerturbations) {\n Map<MarketDataRequest, SingleValueRequirement> requirementMap = new HashMap<>();\n ImmutableMap.Builder<SingleValueRequirement, Result<?>> results = ImmutableMap.builder();\n\n for (SingleValueRequirement requirement : marketDataRequirements) {\n // builders are keyed by type in the engine and requirements are dispatched to builders based on their key type\n // so this cast will always succeed\n RawId<?> marketDataId = (RawId<?>) requirement.getMarketDataId();\n MarketDataTime time = requirement.getMarketDataTime();\n\n switch (time.getType()) {\n case VALUATION_TIME:\n // use the market data source\n FieldName fieldName = marketDataId.getFieldName();\n ExternalIdBundle id = marketDataId.getId();\n MarketDataRequest request = MarketDataRequest.of(id, fieldName);\n requirementMap.put(request, requirement);\n break;\n case DATE:\n // use the HTS source\n // for now we only support LocalDate\n LocalDate date = time.getDate();\n // TODO get the value from the time series source\n HistoricalTimeSeries timeSeries =\n _timeSeriesSource.getHistoricalTimeSeries(marketDataId.getId(), _dataSource, _dataProvider,\n marketDataId.toString(), date, true, date, true);\n\n if (timeSeries != null && !timeSeries.getTimeSeries().isEmpty()) {\n Double value = timeSeries.getTimeSeries().getValue(date);\n if (value != null) {\n results.put(requirement, Result.success(value));\n }\n }\n break;\n default:\n // TODO failure - can't handle exact times yet\n break;\n }\n }\n Map<MarketDataRequest, Result<?>> data = marketDataSource.get(requirementMap.keySet());\n\n for (Map.Entry<MarketDataRequest, Result<?>> entry : data.entrySet()) {\n MarketDataRequest request = entry.getKey();\n SingleValueRequirement requirement = requirementMap.get(request);\n results.put(requirement, entry.getValue());\n }\n return results.build();\n }", "title": "" }, { "docid": "146c0a5b76155106b0be77a673a391c7", "score": "0.4358941", "text": "private void generatePaths() {\n\n }", "title": "" }, { "docid": "3c336cad5fbb35c58ea536d3df188b1f", "score": "0.4351363", "text": "public interface PropsBinder {\r\n static <T> T from(Class<T> tClass) throws IllegalAccessException, InstantiationException, InvocationTargetException, IOException {\r\n return from(tClass.getSimpleName(), tClass);\r\n }\r\n\r\n @SneakyThrows\r\n static <T> T from(String fileName, Class<T> tClass) throws IllegalAccessException, InvocationTargetException, InstantiationException, IOException {\r\n // Gets all properties from resources/<fileName>.properties\r\n Properties properties = new Properties();\r\n @Cleanup InputStream inputStream = PropsBinder.class.getResourceAsStream(String.format(\"/%s.properties\", fileName));\r\n properties.load(inputStream);\r\n // Gets a constructor with the largest amount of arguments,\r\n // because we don't know the exact amount of arguments\r\n Constructor<T> constructor = (Constructor<T>)Arrays.stream(tClass.getConstructors())\r\n .max(Comparator.comparingInt(Constructor::getParameterCount))\r\n .orElseThrow(() -> new RuntimeException(\"There is no constructor!\"));\r\n // Matching constructor with properties (we create new object with this properties)\r\n // We should place each property to its place (matching for name)\r\n Object[] paramValues = Arrays.stream(constructor.getParameters())\r\n .map(parameter -> resolveParameter(parameter,\r\n properties.get(parameter.getName()).toString()))\r\n .toArray();\r\n // Finally, returns the constructor\r\n return constructor.newInstance(paramValues);\r\n }\r\n\r\n // Returns the type of parameter with value\r\n private static Object resolveParameter(Parameter parameter, String value) {\r\n Class<?> parameterType = parameter.getType();\r\n if (parameterType == String.class)\r\n return value;\r\n if (parameterType == int.class || parameterType == Integer.class)\r\n return Integer.parseInt(value);\r\n if (parameterType == double.class || parameterType == Double.class)\r\n return Double.parseDouble(value);\r\n if (parameterType == long.class || parameterType == Long.class)\r\n return Long.parseLong(value);\r\n return value;\r\n }\r\n}", "title": "" }, { "docid": "c27156e0c4318a5d35fbef7b0d340b46", "score": "0.434662", "text": "public void codeWithbuildingUrlfromparameters() {\n\t\tSimpleClientHttpRequestFactory rq = new SimpleClientHttpRequestFactory();\n\t\tProxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(\"host name\", 1234));\n\t\trq.setProxy(proxy);\n\t\tRestTemplate Rt = new RestTemplate(rq);\n\t\tString url = \"main URl of api\";\n\t\tString path = \"Path of URl with attributes as parameters(like -{version}{channel})\";\n\t\tString version = \"1.1.1\";\n\t\tString Channel = \"PROD\";\n\t\tfinal URI getVersionURI = UriComponentsBuilder.fromHttpUrl(url + path).buildAndExpand(version, Channel).toUri();\n\n\t\tHttpHeaders hpheaders = new HttpHeaders();\n\t\thpheaders.setContentType(MediaType.APPLICATION_JSON);\n\n\t\tfinal ResponseEntity<String> exchange = Rt.exchange(getVersionURI, HttpMethod.GET,\n\t\t\t\tnew HttpEntity(null, hpheaders), new ParameterizedTypeReference<String>() {\n\t\t\t\t});\n\t\t// to directly hit the URL without parametrization\n\t\tfinal ResponseEntity<String> exchange2 = retrieveAPIResponse(url);\n\t\tint responsecode = exchange.getStatusCodeValue();\n\t\tif (responsecode == 200) {\n\t\t\tparseXMLResponse(exchange.getBody());\n\n\t\t} else {\n\t\t\tSystem.out.println(\"error message on console\");\n\t\t}\n\t}", "title": "" }, { "docid": "b9bbcb9bd6af8c70565c6792a3f70e3b", "score": "0.43445417", "text": "public interface IDatasetProcessor {\n\n\t/**\n\t * Load a file with data of houses.\n\t * \n\t * @param filepath\n\t * \t\t\tPath of file.\n\t * \n\t * @throws ProcessorException\n\t * \t\t\tFail to load a file. For example, not found the file.\n\t */\n\tpublic void loadDataset(String filepath) throws ProcessorException;\n\n\t/**\n\t * Get dataset already loaded.\n\t * \n\t * @return\n\t * \t\t\tDataset loaded.\n\t * \n\t * @throws ProcessorException\n\t * \t\t\tCan't process the dataset. The file path has not been filled or not exist.\n\t */\n\tpublic List<DatasetBean> getDataset() throws ProcessorException;\n\n\t/**\n\t * Load and get the dataset.\n\t * \n\t * @param filepath\n\t * \t\t\tPath of file.\n\t * \n\t * @return\n\t * \t\t\tDataset loaded.\n\t * \n\t * @throws ProcessorException\n\t * \t\t\tFail to load a file. For example, not found the file.\n\t */\n\tpublic List<DatasetBean> getDataset(String filepath) throws ProcessorException;\n\n\t/**\n\t * Fields used to create the matrix of values.\n\t * \n\t * @param fields\n\t * \t\t\tCollection of fields.\n\t * \n\t * @return\n\t * \t\t\tMatrix with all values.\n\t */\n\tpublic DatasetMatrixBean getRealMatrix(Set<DatasetFields> availableFields) throws ProcessorException;\n\n}", "title": "" }, { "docid": "fa14cb63b9f5a3e71e591a76e5789ab3", "score": "0.43433294", "text": "public CalculatedData<String> getCalculatedValues();", "title": "" }, { "docid": "55e31deefc75de7ec55a738c45b9e8f0", "score": "0.43388185", "text": "public interface PartitionValueExtractor extends Serializable {\n\n List<String> extractPartitionValuesInPath(String partitionPath);\n}", "title": "" }, { "docid": "9d2d05917d3b7bd7a11ef1ede98aa9fa", "score": "0.4338739", "text": "public interface Loader<K, V, C>\n{\n\n /**\n * Retrieves the value from the key within the specified context. If the resource is not found then the value\n * null must be returned.\n *\n * @param context the context\n * @param key the key\n * @return the value\n * @throws Exception any exception that would prevent the value to be loaded\n */\n V retrieve(C context, K key) throws Exception;\n\n}", "title": "" }, { "docid": "d1dd659e23cc13e73b9d522be066395e", "score": "0.43380496", "text": "private void resolveFragmentPaths(final SlingHttpServletRequest slingRequest, ResourceResolver resourceResolver,\n\t\t\tXMLStreamWriter stream, Page childPage, Set<String> parentPaths) throws XMLStreamException, IllegalStateException, SlingException {\n\t\tfor (String path : parentPaths) {\n\t\t\tLOGGER.debug(\"processing parent path :{}\", path);\n\t\t\tResource fragmentResource = resourceResolver.getResource(path);\n\t\t\tLOGGER.debug(\"Resource after resolving path :{}\", fragmentResource);\n\t\t\tif (fragmentResource != null) {\n\t\t\t\t\n\t\t\t\tprocessContentFragment(slingRequest, resourceResolver, stream, childPage, fragmentResource);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0e94de4f062fef4e29b88d5b9013f1ec", "score": "0.43376905", "text": "private void readSourceData() throws Exception {\n\t\tthis.fileDataList = new ArrayList<String>();\n\t\tReader reader = new Reader(this.procPath);\n\t\treader.running();\n\t\tthis.fileDataList = reader.getFileDataList();\n\t}", "title": "" }, { "docid": "b39e1f26e82bf3d3ba6afffcb30f6e22", "score": "0.43358642", "text": "ParameterData createParameterData();", "title": "" }, { "docid": "62adc0e520970737427967d2d1e52fb5", "score": "0.43340665", "text": "public void processInputs(){\n validatePatternFlag();\n validateSourceFlag();\n\n gatherPatterns();\n gatherSources();\n\n validateArrays();\n }", "title": "" }, { "docid": "bce82409c1c37e07c608261fcbf39867", "score": "0.4333826", "text": "protected abstract void generatePaths();", "title": "" }, { "docid": "56efd6b4ef118f87cf796f5b76b4fc99", "score": "0.4333204", "text": "@Override\n\tpublic Map<String, String> getPathParameters() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2bb2b0cd8df0989bd47e2d004eeb7f52", "score": "0.4333064", "text": "public static final void prepare() {\n\t\tConvertUtils.lookup( Class.class );\n\t\tStringUtils.isEmpty( Constants.EMPTY_STRING );\n\t\tMapUtils.isEmpty( Collections.EMPTY_MAP );\n\t\tArrayUtils.isEmpty( ArrayUtils.EMPTY_OBJECT_ARRAY );\n\t\tCollectionUtils.isEmpty( Collections.EMPTY_LIST );\n\t\tJexlContext context = new MapContext( MapUtil.newObjectMap( \"now\", System.currentTimeMillis() ) );\n\t\tresolveArguments( \"[ 1, 2L, 1.0f, 1.00, true, 'foo', now ]\", context );\n\t}", "title": "" }, { "docid": "9fc0bc3fd1912741707c483691df8763", "score": "0.4332554", "text": "public ComponentMapsAndRequirements findDataRequirements(ComponentMapsAndRequirements mapsAndConstraints);", "title": "" }, { "docid": "bf15c1461fb7ede8d7727d1226aaf1f4", "score": "0.43216857", "text": "private static void readParameters(BooleanSupplier isDone, DataInputPlus in, int messagingVersion, Map<ParameterType, Object> parameters) throws IOException\n {\n while (!isDone.getAsBoolean())\n {\n String key = in.readUTF();\n ParameterType parameterType = ParameterType.byName.get(key);\n in.readUnsignedVInt();\n parameters.put(parameterType, parameterType.serializer.deserialize(in, messagingVersion));\n }\n }", "title": "" }, { "docid": "d03959a8fb43e708b03050e612411fc2", "score": "0.43151432", "text": "static public Pipeline Q42() {\n\n ObjectSchema queryDateSchema = new ObjectSchema();\n queryDateSchema.appendColumn(new ObjectColumn(ValType.Int32));\n queryDateSchema.appendColumn(new ObjectColumn(ValType.Int32));\n queryDateSchema.appendColumn(new ObjectColumn(ValType.String, 40));\n Pipeline date = LoadDate().newPipeline(\"q42-date\", queryDateSchema)\n .filter(\"$d_year == 1997 and $d_year == 1998\")\n .map(\"$d_datekey\", \"$d_year\")\n .sink()\n .build();\n\n ObjectSchema queryCustomerSchema = new ObjectSchema();\n queryCustomerSchema.appendColumn(new ObjectColumn(ValType.Int32));\n queryCustomerSchema.appendColumn(new ObjectColumn(ValType.String, 15));\n queryCustomerSchema.appendColumn(new ObjectColumn(ValType.String, 40));\n Pipeline customer = LoadCustomer().newPipeline(\"q42-customer\", queryCustomerSchema)\n .filter(\"StrCmp($c_region,\\\\\\\"AMERICA\\\\\\\",15)==0\")\n .map(\"$c_custkey\", \"$c_nation\")\n .sink()\n .build();\n\n ObjectSchema querySuppSchema = new ObjectSchema();\n querySuppSchema.appendColumn(new ObjectColumn(ValType.Int32));\n querySuppSchema.appendColumn(new ObjectColumn(ValType.String, 40));\n Pipeline supp = LoadSupplier().newPipeline(\"q42-supplier\", querySuppSchema)\n .filter(\"StrCmp($s_region,\\\\\\\"AMERICA\\\\\\\",15)==0\")\n .map(\"$s_suppkey\")\n .sink()\n .build();\n\n ObjectSchema queryPartSchema = new ObjectSchema();\n queryPartSchema.appendColumn(new ObjectColumn(ValType.Int32));\n queryPartSchema.appendColumn(new ObjectColumn(ValType.String, 8));\n queryPartSchema.appendColumn(new ObjectColumn(ValType.String, 40));\n Pipeline part = LoadPart().newPipeline(\"q42-part\", queryPartSchema)\n .filter(\"StrCmp($p_mfgr,\\\\\\\"MFGR#1\\\\\\\",8)==0 || StrCmp($p_mfgr,\\\\\\\"MFGR#2\\\\\\\",8)==0\")\n .map(\"$p_partkey\", \"$p_category\")\n .sink()\n .build();\n\n ObjectSchema outputSchema = new ObjectSchema();\n for (int i = 0; i < 12; i++)\n outputSchema.appendColumn(new ObjectColumn(ValType.Int32));\n Pipeline p = LoadLineorder().newPipeline(\"q42\", outputSchema)\n .joinWith(part, \"$lo_partkey\", \"$p_partkey\")\n .joinWith(date, \"$lo_orderdate\", \"$d_datekey\")\n .joinWith(supp, \"$lo_suppkey\", \"$s_suppkey\")\n .joinWith(customer, \"$lo_custkey\", \"$c_custkey\")\n .reduceBy(\"$d_year,$c_nation,$p_category\", \"($lo_revenue-$lo_supplycost)/100\")\n .sink()\n .build();\n return p;\n }", "title": "" }, { "docid": "81996157eb744cd09048cab8c9da7357", "score": "0.43136314", "text": "private void setForceFieldDefinitions() throws Exception {\n\t\tString sid = st.nextToken();\n\t\tString svalue = st.nextToken();\n\t\tif (sid.equals(\">bontunit\")) {\n\t\t\ttry {\n\t\t\t\tdouble value1 = new Double(svalue).doubleValue();\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\tparameterSet.put(key, new Double(value1));\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else if (sid.equals(\">bond-cubic\")) {\n\t\t\ttry {\n\t\t\t\tdouble value1 = new Double(svalue).doubleValue();\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\t\tparameterSet.put(key, new Double(value1));\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else if (sid.equals(\">bond-quartic\")) {\n\t\t\ttry {\n\t\t\t\tdouble value1 = new Double(svalue).doubleValue();\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\t\tparameterSet.put(key, new Double(value1));\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else if (sid.equals(\">angleunit\")) {\n\t\t\ttry {\n\t\t\t\tdouble value1 = new Double(svalue).doubleValue();\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\t\tparameterSet.put(key, new Double(value1));\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else if (sid.equals(\">angle-sextic\")) {\n\t\t\ttry {\n\t\t\t\tdouble value1 = new Double(svalue).doubleValue();\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\t\tparameterSet.put(key, new Double(value1));\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else if (sid.equals(\">strbndunit\")) {\n\t\t\ttry {\n\t\t\t\tdouble value1 = new Double(svalue).doubleValue();\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\t\tparameterSet.put(key, new Double(value1));\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else if (sid.equals(\">opbendunit\")) {\n\t\t\ttry {\n\t\t\t\tdouble value1 = new Double(svalue).doubleValue();\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\t\tparameterSet.put(key, new Double(value1));\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else if (sid.equals(\">torsionunit\")) {\n\t\t\ttry {\n\t\t\t\tdouble value1 = new Double(svalue).doubleValue();\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\t\tparameterSet.put(key, new Double(value1));\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else if (sid.equals(\">vdwtype\")) {\n\t\t\tkey = sid.substring(1);\n\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\tparameterSet.put(key, svalue);\n\t\t} else if (sid.equals(\">radiusrule\")) {\n\t\t\tkey = sid.substring(1);\n\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\tparameterSet.put(key, svalue);\n\t\t} else if (sid.equals(\">radiustype\")) {\n\t\t\tkey = sid.substring(1);\n\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\tparameterSet.put(key, svalue);\n\t\t} else if (sid.equals(\">radiussize\")) {\n\t\t\tkey = sid.substring(1);\n\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\tparameterSet.put(key, svalue);\n\t\t} else if (sid.equals(\">epsilonrule\")) {\n\t\t\tkey = sid.substring(1);\n\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\tparameterSet.put(key, svalue);\n\t\t} else if (sid.equals(\">a-expterm\")) {\n\t\t\ttry {\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\t\tparameterSet.put(key, svalue);\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else if (sid.equals(\"b-expterm\")) {\n\t\t\ttry {\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\t\tparameterSet.put(key, svalue);\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else if (sid.equals(\">c-expterm\")) {\n\t\t\ttry {\n\t\t\t\tdouble value1 = new Double(svalue).doubleValue();\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\t\tparameterSet.put(key, new Double(value1));\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else if (sid.equals(\">vdw-14-scale\")) {\n\t\t\ttry {\n\t\t\t\tdouble value1 = new Double(svalue).doubleValue();\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\t\tparameterSet.put(key, new Double(value1));\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else if (sid.equals(\">chg-14-scale\")) {\n\t\t\ttry {\n\t\t\t\tdouble value1 = new Double(svalue).doubleValue();\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\t\tparameterSet.put(key, new Double(value1));\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else if (sid.equals(\">dielectric\")) {\n\t\t\ttry {\n\t\t\t\tdouble value1 = new Double(svalue).doubleValue();\n\t\t\t\tkey = sid.substring(1);\n\t\t\t\t//if (parameterSet.containsKey(key)){logger.debug(\"KeyError: hasKey \"+key);}\n\t\t\t\tparameterSet.put(key, new Double(value1));\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tthrow new IOException(\"VdWaalsTable.ReadvdWaals: \" +\n\t\t\t\t\t\t\"Malformed Number\");\n\t\t\t}\n\t\t} else {\n\t\t}\n\t}", "title": "" }, { "docid": "c1a8a9b7ae91b05e31e0bb60eaec998e", "score": "0.43127584", "text": "protected void prepare() {\n\t\tProcessInfoParameter[] para = getParameter();\r\n\t\tfor (int i = 0; i < para.length; i++)\r\n\t\t{\r\n\t\t\tString name = para[i].getParameterName();\r\n\t\t\tif (para[i].getParameter() == null)\r\n\t\t\t\t;\r\n\t\t\telse if (name.equals(\"AD_Org_ID\"))\r\n\t\t\t\tp_AD_Org_ID = ((BigDecimal)para[i].getParameter()).intValue();\r\n\t\t\telse if (name.equals(\"DocumentNo\"))\r\n\t\t\t\tp_DocumentNo = (String)para[i].getParameter();\r\n\t\t\telse if (name.equals(\"MovementDate\"))\r\n\t\t\t\tp_MovementDate = (Timestamp)para[i].getParameter();\r\n\t\t\telse if (name.equals(\"DateInvoiced\"))\r\n\t\t\t\tp_InvoicedDate = (Timestamp)para[i].getParameter();\r\n\t\t\telse\r\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "751ba7d43f6a096f0e0aeeaaab2a7d6e", "score": "0.4310181", "text": "public StringList getVCPathValue(Context context,String[] args) throws Exception {\r\n HashMap programMap = (HashMap) JPO.unpackArgs(args);\r\n HashMap requestMap = (HashMap) programMap.get(\"requestMap\");\r\n String objectId = (String) requestMap.get(\"objectId\");\r\n\r\n Map<String,String> dsfaInfo = getDSFAInfo(context, objectId);\r\n String vcfile = dsfaInfo.get(\"vcfile\");\r\n String vcfolder = dsfaInfo.get(\"vcfolder\");\r\n String vcmodule = dsfaInfo.get(\"vcmodule\");\r\n String vcPath = \"\";\r\n\r\n if (\"TRUE\".equalsIgnoreCase(vcfile)) {\r\n vcPath = dsfaInfo.get(\"vcfile[1].path\");\r\n if (vcPath.contains(\"/\")) {\r\n // remove the last path component - the filename\r\n vcPath = vcPath.replaceFirst(\"/[^/]*$\", \"\");\r\n } else {\r\n // set path to the path separator\r\n vcPath = java.io.File.separator;\r\n }\r\n } else if (\"TRUE\".equalsIgnoreCase(vcfolder)) {\r\n vcPath = dsfaInfo.get(\"vcfolder[1].path\");\r\n } else if (\"TRUE\".equalsIgnoreCase(vcmodule)) {\r\n vcPath = dsfaInfo.get(\"vcmodule[1].path\");\r\n }\r\n\r\n StringList list = new StringList();\r\n list.add(vcPath);\r\n return list;\r\n }", "title": "" }, { "docid": "f283d936364be993cd14a7d0f9527a4b", "score": "0.43081453", "text": "public String resolveRPCRequest(SyncRPCRequest request) throws Exception {\n ObjectMapper mapper = new ObjectMapper();\n\n switch (request.getMethod()) {\n case \"getFileResourceMetadata\":\n String resourceId = request.getParameters().get(\"resourceId\");\n String resourceType = request.getParameters().get(\"resourceType\");\n String resourceToken = request.getParameters().get(\"resourceToken\");\n String mftAuthorizationToken = request.getParameters().get(\"mftAuthorizationToken\");\n\n Optional<MetadataCollector> metadataCollectorOp = MetadataCollectorResolver.resolveMetadataCollector(resourceType);\n if (metadataCollectorOp.isPresent()) {\n MetadataCollector metadataCollector = metadataCollectorOp.get();\n metadataCollector.init(resourceServiceHost, resourceServicePort, secretServiceHost, secretServicePort);\n FileResourceMetadata fileResourceMetadata = metadataCollector.getFileResourceMetadata(resourceId, resourceToken);\n return mapper.writeValueAsString(fileResourceMetadata);\n }\n break;\n\n case \"getChildFileResourceMetadata\":\n resourceId = request.getParameters().get(\"resourceId\");\n resourceType = request.getParameters().get(\"resourceType\");\n resourceToken = request.getParameters().get(\"resourceToken\");\n String childPath = request.getParameters().get(\"childPath\");\n mftAuthorizationToken = request.getParameters().get(\"mftAuthorizationToken\");\n\n metadataCollectorOp = MetadataCollectorResolver.resolveMetadataCollector(resourceType);\n if (metadataCollectorOp.isPresent()) {\n MetadataCollector metadataCollector = metadataCollectorOp.get();\n metadataCollector.init(resourceServiceHost, resourceServicePort, secretServiceHost, secretServicePort);\n FileResourceMetadata fileResourceMetadata = metadataCollector.getFileResourceMetadata(resourceId, childPath, resourceToken);\n return mapper.writeValueAsString(fileResourceMetadata);\n }\n break;\n\n case \"getDirectoryResourceMetadata\":\n resourceId = request.getParameters().get(\"resourceId\");\n resourceType = request.getParameters().get(\"resourceType\");\n resourceToken = request.getParameters().get(\"resourceToken\");\n mftAuthorizationToken = request.getParameters().get(\"mftAuthorizationToken\");\n\n metadataCollectorOp = MetadataCollectorResolver.resolveMetadataCollector(resourceType);\n if (metadataCollectorOp.isPresent()) {\n MetadataCollector metadataCollector = metadataCollectorOp.get();\n metadataCollector.init(resourceServiceHost, resourceServicePort, secretServiceHost, secretServicePort);\n DirectoryResourceMetadata dirResourceMetadata = metadataCollector.getDirectoryResourceMetadata(resourceId, resourceToken);\n return mapper.writeValueAsString(dirResourceMetadata);\n }\n break;\n\n case \"getChildDirectoryResourceMetadata\":\n resourceId = request.getParameters().get(\"resourceId\");\n resourceType = request.getParameters().get(\"resourceType\");\n resourceToken = request.getParameters().get(\"resourceToken\");\n childPath = request.getParameters().get(\"childPath\");\n mftAuthorizationToken = request.getParameters().get(\"mftAuthorizationToken\");\n\n metadataCollectorOp = MetadataCollectorResolver.resolveMetadataCollector(resourceType);\n if (metadataCollectorOp.isPresent()) {\n MetadataCollector metadataCollector = metadataCollectorOp.get();\n metadataCollector.init(resourceServiceHost, resourceServicePort, secretServiceHost, secretServicePort);\n DirectoryResourceMetadata dirResourceMetadata = metadataCollector.getDirectoryResourceMetadata(resourceId, childPath, resourceToken);\n return mapper.writeValueAsString(dirResourceMetadata);\n }\n break;\n\n case \"submitHttpDownload\":\n String storeId = request.getParameters().get(\"storeId\");\n String sourcePath = request.getParameters().get(\"sourcePath\");\n String sourceToken = request.getParameters().get(\"sourceToken\");\n String storeType = request.getParameters().get(\"storeType\");\n mftAuthorizationToken = request.getParameters().get(\"mftAuthorizationToken\");\n\n metadataCollectorOp = MetadataCollectorResolver.resolveMetadataCollector(storeType);\n Optional<Connector> connectorOp = ConnectorResolver.resolveConnector(storeType, \"IN\");\n\n if (metadataCollectorOp.isPresent() && connectorOp.isPresent()) {\n HttpTransferRequest transferRequest = new HttpTransferRequest();\n transferRequest.setConnectorParams(new ConnectorParams()\n .setResourceServiceHost(resourceServiceHost)\n .setResourceServicePort(resourceServicePort)\n .setSecretServiceHost(secretServiceHost)\n .setSecretServicePort(secretServicePort)\n .setStorageId(storeId).setCredentialToken(sourceToken));\n transferRequest.setTargetResourcePath(sourcePath);\n transferRequest.setOtherMetadataCollector(metadataCollectorOp.get());\n transferRequest.setOtherConnector(connectorOp.get());\n String url = httpTransferRequestsStore.addDownloadRequest(transferRequest);\n return (agentHttpsEnabled? \"https\": \"http\") + \"://\" + agentHost + \":\" + agentHttpPort + \"/\" + url;\n }\n break;\n }\n logger.error(\"Unknown method type specified {}\", request.getMethod());\n throw new Exception(\"Unknown method \" + request.getMethod());\n }", "title": "" } ]
82edc7d6a1c0d98a5584efaa2e2c90cd
utility funcs:move to new position and print status
[ { "docid": "c5b2b83a5e6597062304428041323aaa", "score": "0.0", "text": "private void processLadder(int newPos){\r\n\t\tint topPos = Board.squares[newPos].getLadder().climb(newPos);\t\t\t\t\t\r\n\t\tSystem.out.print(\" -- LADDER --> \" + topPos);\r\n\t\tnewPos = topPos;\t\t\t\t\t\t\t\t\t\t\r\n\t}", "title": "" } ]
[ { "docid": "ab64a1fb762adb2f5ea74e298dbb5e2a", "score": "0.75466865", "text": "private void printPositionChange(){\n System.out.println(getName() + \" moved to \" + getPosition() + \".\");\n }", "title": "" }, { "docid": "23e71186817b1476d27d5dfe64d40bf7", "score": "0.6972553", "text": "private void updateStatus() {\r\n\t\tfinal Point p = ph.getPoint();\r\n\t\tif (p == null) {\r\n\t\t\tIJ.showStatus(\"\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfinal int x = p.x;\r\n\t\tfinal int y = p.y;\r\n\t\tIJ.showStatus(display.getLocationAsString(x, y) + getValueAsString(x, y));\r\n\t}", "title": "" }, { "docid": "2edf80a94a5984af654f881da8744511", "score": "0.67720366", "text": "public void move() {\n\t\tString output = String.format(\"%s is crawling around.\",this.toString());\n\t\tSystem.out.println(output);\n\t}", "title": "" }, { "docid": "3bbcd317a93aa8ee1e92be40282be8ff", "score": "0.64514565", "text": "private static void printStatus() {\r\n\t\tfor (Player p : players) {\r\n\t\t\tSystem.out.println(p.getName() + \" is currently \" + (134 - p.getPosition()) + \" spaces from finish.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6d10be6f0869ac491fcf6c78011588ec", "score": "0.63804215", "text": "int move(int x, int y, boolean print);", "title": "" }, { "docid": "35a992bdf9958eb47133b0ed0d1a7af6", "score": "0.63402766", "text": "public void status() {\r\n if (showStatus) {\r\n System.out.print(\"xLoc:\" + xLoc + \", yLoc:\" + yLoc);\r\n System.out.print(\" SegmentCount:\" + segmentCount);\r\n System.out.print(\" cubeX:\" + cubeX + \" cubeY:\" + cubeY);\r\n System.out.println(\" Direction:\" + direction);\r\n System.out.println(\"length:\" + length + \" maxLength:\" + \r\n \t\t maxLength +\" segmentCount:\"+segmentCount);\r\n System.out.println(\"gameCycleMilli:\"+gameCycleMilli);\r\n System.out.println(\"pauseGame: \" + pauseGame);\r\n System.out.println(\"youWin:\"+youWin);\r\n\r\n for (int i = 0; i < maxWidth; i++) {\r\n for (int j = 0; j < maxHeight; j++) {\r\n System.out.print(bodySpaces[j][i] + \" \");\r\n }\r\n System.out.println(\"\");\r\n }\r\n }\r\n }", "title": "" }, { "docid": "f7a296ebb65901e26a17da9e452dc62f", "score": "0.6247481", "text": "public void advanceToStatblePosition() {\n if (!stopPositions.isEmpty()) {\n position = stopPositions.elementAt(0);\n stopPositions.clear();\n }\n state = State.Stable;\n }", "title": "" }, { "docid": "a1a689e5089f63749647a7126025496a", "score": "0.62441355", "text": "@Override\n public void setPosition(Position position) {\n super.setPosition(position);\n System.out.printf(\"%s moved to %s.%n\", getName(), position);\n }", "title": "" }, { "docid": "b4893c4077decd80c127e93bc1f8f543", "score": "0.62365115", "text": "void commitMove()\n {\n startingHex = getCurrentHex();\n setMoved(false);\n setRecruit(null);\n }", "title": "" }, { "docid": "468634b63da4fdea01257e9971e5deef", "score": "0.62045604", "text": "public void updateCurrentPosition(int position) {\n }", "title": "" }, { "docid": "7496589072f4ca3911ec2af782ded59d", "score": "0.619317", "text": "void progress ( long pos );", "title": "" }, { "docid": "526b465dafd45116125ea6d59af0d764", "score": "0.61274886", "text": "public void updateNosePosition() {\n }", "title": "" }, { "docid": "fd6d25a692d7f9f6936807c1021962a8", "score": "0.6118873", "text": "public void processMove() {\r\n\t\thighlightPreviousMove();\r\n\t\ttestRepaint(true);\r\n\r\n\t}", "title": "" }, { "docid": "cbf68ebf7edfdb304e8f06c8000cb04e", "score": "0.6107465", "text": "@Override\n\tpublic void updatePosition() {\n\t\t\n\t}", "title": "" }, { "docid": "6342bbd2f5c284a0432b4ae6a3a88b20", "score": "0.60416096", "text": "void position(long position) throws IOException;", "title": "" }, { "docid": "a7a9fd048c6faf38defa5f912a688caa", "score": "0.6013372", "text": "void doPosition();", "title": "" }, { "docid": "bd2516abaea5f714ca866d54237c54a2", "score": "0.5994742", "text": "@Override\n\tpublic void move() {\n\t\tSystem.out.println(\"run\");\n\n\t}", "title": "" }, { "docid": "531fa264d8535cb68a48b08c5c9f187d", "score": "0.5934118", "text": "void undo() {\n if (_moveCount > 0) {\n undoPosition();\n }\n }", "title": "" }, { "docid": "2e4d016a6bab3438bd3e1a0542f2bffb", "score": "0.58863276", "text": "@Override\n public void move() {\n System.out.println(\"they've become rare in the wild.\");\n\n }", "title": "" }, { "docid": "124950982192aa3df7ee05804d8c1e1e", "score": "0.586913", "text": "@Override\n\tpublic void updateMove() {\n\t\t\n\t}", "title": "" }, { "docid": "c527c92befc8524df2b545b6805dde9e", "score": "0.58603287", "text": "public static void cursorStatus(int i, String msg) {\r\n String data = \"\\r\" + msg + \" [ \" + i + \" Working... ]\";\r\n System.err.print(data);\r\n }", "title": "" }, { "docid": "a1f40c4d35417f6a5f215a3432fffa2b", "score": "0.58584625", "text": "private void updateLastMove() {\n HashMap<String, String> move = new HashMap<>();\n move.put(\"[[move]]\", caterpillar.getLastAction());\n //Step 2: Set the last move body label that calls our helper method\n lastMove.setText(readHTML(\"lastMoveBody.html\", move));\n }", "title": "" }, { "docid": "b4e56eea1c15c74dc7cb79ac4386be79", "score": "0.5824899", "text": "@Override\r\n\tprotected void displayNewPosition(Move move) {\r\n\t\tfinal Move m = move;\r\n\t\t// Note: need to get snapshot of whoseTurn in synch code\r\n\t\t// whoseTurn may change during display!\r\n\t\tfinal PlayerNumber moveWhoseTurn = whoseTurn; \r\n\t\twhoseTurn = getGame().whoseTurn(); // for next display action\r\n\t\t// Swing actions should occur in its own Swing Event thread.\r\n\t\t// This construct throws the following work into that thread\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// System.out.println(\"position in TictactoeGUI: move \" + m);\r\n\t\t\t\tif (m == null) { // game starting\r\n\t\t\t\t\tinit();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// look up the button for this move\r\n\t\t\t\t\tTTTButton button = buttonForMove.get(m);\r\n\t\t\t\t\tchangeButtonDisplay(button, moveWhoseTurn);\r\n\t\t\t\t\tdisableInput(); // move completed, no UI until next move\r\n\t\t\t\t\t\t\t\t\t// wanted\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "f5eb07ff9a211a1e0e4e1b6b9bf82a77", "score": "0.5813944", "text": "private void move(){\n \n Point newPos = pos.add(orientation.getMove());\n if(fence.isWithin(newPos)){\n pos=newPos;\n }\n }", "title": "" }, { "docid": "cace0ea0b2bfb33493b8ea2228a8980e", "score": "0.581291", "text": "private void printStatusBar() {\r\n\t\tif (board.getGameState() == GameState.PLAYING1 && board.getCurrentTurn() == Dot.WHITE) {\r\n\t\t\tgameStatusBar.setForeground(Color.BLACK);\r\n\t\t\tgameStatusBar.setText(\"Placement Phase. WHITE Moves. \" + board.getNumWhitePiecesFirstPhase()\r\n\t\t\t\t\t+ \" White Pieces Left; \" + board.getNumBlackPiecesFirstPhase() + \" Black Pieces Left\");\r\n\r\n\t\t} else if (board.getGameState() == GameState.PLAYING1 && board.getCurrentTurn() == Dot.BLACK) {\r\n\t\t\tgameStatusBar.setForeground(Color.BLACK);\r\n\t\t\tgameStatusBar.setText(\"Placement Phase. BLACK Moves. \" + board.getNumWhitePiecesFirstPhase()\r\n\t\t\t\t\t+ \" White Pieces Left; \" + board.getNumBlackPiecesFirstPhase() + \" Black Pieces Left\");\r\n\r\n\t\t} else if (board.getGameState() == GameState.PLAYING2a && board.getCurrentTurn() == Dot.WHITE) {\r\n\t\t\tgameStatusBar.setForeground(Color.BLACK);\r\n\t\t\tgameStatusBar.setText(\"Moving Phase. Pick a Chip To Move. WHITE Moves. Note that the First-Touch rule is used!\");\r\n\t\t} else if (board.getGameState() == GameState.PLAYING2a && board.getCurrentTurn() == Dot.BLACK) {\r\n\t\t\tgameStatusBar.setForeground(Color.BLACK);\r\n\t\t\tgameStatusBar.setText(\"Moving Phase. Pick a Chip To Move. BLACK Moves. Note that the First-Touch rule is used!\");\r\n\r\n\t\t} else if (board.getGameState() == GameState.PLAYING2b1) {\r\n\t\t\tgameStatusBar.setForeground(Color.BLACK);\r\n\t\t\tgameStatusBar.setText(\"Moving Phase. Pick a Place To Move The Chip. Note that the First-Touch rule is used!\");\r\n\t\t} else if (board.getGameState() == GameState.PLAYING3a || board.getGameState() == GameState.PLAYING3b) {\r\n\t\t\tgameStatusBar.setForeground(Color.RED);\r\n\t\t\tgameStatusBar.setText(\"MILL, Please Remove The Piece Of Opposite Player\");\r\n\t\t} else if (board.getGameState() == GameState.BLACK_WON) {\r\n\t\t\tgameStatusBar.setForeground(Color.RED);\r\n\t\t\tgameStatusBar.setText(\"Black Won\");\r\n\t\t} else if (board.getGameState() == GameState.WHITE_WON) {\r\n\t\t\tgameStatusBar.setForeground(Color.RED);\r\n\t\t\tgameStatusBar.setText(\"White Won\");\r\n\t\t} else if (board.getGameState() == GameState.DRAW) {\r\n\t\t\tresignChange.setEnabled(false);\r\n\r\n\t\t\tgameStatusBar.setForeground(Color.RED);\r\n\t\t\tgameStatusBar.setText(\"Draw\");\r\n\t\t}\r\n\t\telse if (board.getGameState() == GameState.START) {\r\n\r\n\t\t\tgameStatusBar.setForeground(Color.BLACK);\r\n\t\t\tgameStatusBar.setText(\"Welcome to Nine Men's Morris\");\r\n\t\t}\r\n\t\telse if (board.getGameState() == GameState.CHOOSEOPPONENT) {\r\n\r\n\t\t\tgameStatusBar.setForeground(Color.BLACK);\r\n\t\t\tgameStatusBar.setText(\"Pick the regime\");\r\n\t\t}\r\n\t\t\r\n\t\telse if (board.getGameState() == GameState.CHOOSECOLOR) {\r\n\t\t\tgameStatusBar.setForeground(Color.BLACK);\r\n\t\t\tgameStatusBar.setText(\"Choose Your Side\");\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "e126b87456e7117c58580ea4c2e73a24", "score": "0.5803582", "text": "private void setPosition(Point position, String direction) throws InterruptedException {\n if (batteryStatus.get() <= 0) {\n System.out.println(\"AHHHHH AKKU LEER!!! ICH KANN MICH NICHT BEWEGEN!!!!!!!11elf\");\n Thread.sleep(1000);\n return;\n }\n gui.setPosition(position);\n this.position = position;\n batteryStatus.setValue(batteryStatus.get() - 2);\n\n System.out.println(\"Bewegung nach \" + direction + \", Akku \" + batteryStatus.get() + \"%,\" +\n \" Abstand zur Ladestation: \" + getDistance(position, chargingPosition));\n }", "title": "" }, { "docid": "93cde4ea65aa02e6bb9ab9258946b67e", "score": "0.57979643", "text": "public void say(int pos, String msg) {\n \tif (pos == -1) {\n \t\tprinter.print(msg + \"\\n\");\n \t} else {\n \t\tSourceLocation loc = tracker.getLocation(pos);\n \t\tprinter.print(loc.filename + \":\" + loc.line + \".\" + loc.col + \": \" + msg + \"\\n\");\n \t}\n }", "title": "" }, { "docid": "48010cd36dc35aa68ec91297315f1015", "score": "0.57701826", "text": "public void changeLocation() {\n logLocationInfo(\"changeLocation() \");\n if (lastCharRead == '\\n') {\n // We don't want our start pos to be the end of the prev line so advance it\n lineNo = currentLineNo + 1;\n colNo = COL_NO_BASE;\n } else {\n lineNo = currentLineNo;\n // After an inline record delimiter add one to set the start pos after the delimiter\n colNo = currentColNo + 1;\n }\n }", "title": "" }, { "docid": "49b4129d90b5661c7dea34f8ea81e4f1", "score": "0.57697904", "text": "public void executeMove() {\n\t\tSystem.out.println(\"Old Position: \"+ this.movedPiece.getPosition() +\" -> New Position: \"+ newLocation);\n\t\tif (this.displacedPiece!=null) {\n\t\t\tdisplacedPiece.setPosition(new Location(Zone.START,0));\n\t\t\tSystem.out.println(displacedPiece.owner.playerColour + \"'s piece was removed!\");\n\t\t}\n\t\tthis.movedPiece.setPosition(newLocation);\n\t}", "title": "" }, { "docid": "36c88f46d3015a60434130caad4f38b5", "score": "0.57456255", "text": "public void printWalkedIntoAWall()\r\n\t{\r\n\t\tSystem.out.println(\"\\n#############################################################################\");\r\n\t\tSystem.out.println(\"# Sorry, you can't move in this direction, there is a wall in front of you. #\");\r\n\t\tSystem.out.println(\"#############################################################################\\n\");\r\n\t}", "title": "" }, { "docid": "e3322fe786acf2dcba21eab68b0fc846", "score": "0.5741936", "text": "static void move_msg(Thing obj) {\n if (!Global.terse) {\n IOUtil.addmsg(\"you \");\n }\n IOUtil.msg(\"moved onto %s\", ThingMethod.inventoryName(obj, true));\n }", "title": "" }, { "docid": "7e16a288288a928542a46c7009c8e464", "score": "0.5741581", "text": "public void printPosition() {\n\t\tSystem.out.println( x + \" \" + y + \" \" + orientation);\n\t}", "title": "" }, { "docid": "b2e10bf63955f9820ec6359bbf146f40", "score": "0.5738986", "text": "BinlogPosition currentPosition();", "title": "" }, { "docid": "e489868f0da14afe3fe7ccb41e59e3f9", "score": "0.57366776", "text": "static void printCurrentPosition(MapOrientation mO) {\r\n\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Agent befindet sich auf Feld Y: \" + mO.currentPosY\r\n\t\t\t\t+ \"X: \" + mO.currentPosX);\r\n\t\tSystem.out.println(\"\");\r\n\t}", "title": "" }, { "docid": "c3cfdd6b56d1f9fec01e3132858d9f89", "score": "0.5730495", "text": "public void move_the_bot(Position curr, int patient_id) {\n boolean success = true;\n\n while (curr.present != patientPos.get(patient_id)) {\n System.out.println(\"Position is \" + curr.present + \" orientation is \" + curr.orientation);\n int action = search(patient_id, curr);\n curr = pos_after_action(curr, action);\n if (curr == null) {\n success = false;\n break;\n }\n }\n if (success == false) {\n System.out.println(\"path does not exist\");\n }\n }", "title": "" }, { "docid": "5be68b3ea123d68b9eafb870328d9726", "score": "0.5718718", "text": "void move(SimpleMark mark, int i, int j);", "title": "" }, { "docid": "0839e4f5e9666132efc0cefa10b274d8", "score": "0.5703577", "text": "@Override\n public void update() {\n move(current_dir);\n }", "title": "" }, { "docid": "5df51dfb599891defbb37a36eb62519e", "score": "0.5701829", "text": "private void moveMyPiece(int currentPos, int newPos, ImageView img) {\n movePiece(currentPos, newPos, img);\n\n //Checks if the new position is \"samfundet\"\n if(newPos == 7) {\n WindowManager.displayAlertBox(\"Samfundet\", scenarios[new Random().nextInt(scenarios.length)]);\n game.skipTurn(player);\n }\n\n //Checks if the new position is \"Tore på sporet\"\n else if(newPos == 14) {\n WindowManager.displayAlertBox(\"Oh no! Where did your piece go?!\" , \"Skip a turn and see if you can find it next round\");\n hidePiece(player, currentPos);\n }\n\n //Checks if the new position is \"Quiz-field\"\n else if(newPos == 21) {\n WindowManager.showQuizDialog();\n }\n\n //Checks if player is passing start\n if(currentPos > newPos && newPos >= 0) {\n System.out.println(\"Passed start\");\n\n if(turnCount > 5) {\n WindowManager.displayAlertBox(\"Passed start\",\n \"You passed start, receive 500(money) from the bank\");\n player.transaction(500);\n } else {\n WindowManager.displayAlertBox(\"Passed start\",\n \"You passed start waaay to quickly and got pulled over by Nattpatruljen, \" +\n \"receive a speeding ticket of 250(money)\");\n player.transaction(-250);\n }\n\n updateMoneyLabel();\n turnCount = 0;\n }\n }", "title": "" }, { "docid": "39dd14960f00adb17de889f1faec1e58", "score": "0.5695319", "text": "public void move() {\n\t\tSystem.out.println(\"diagonally\");\n\t}", "title": "" }, { "docid": "f1a42b3f203886e9f8123004bc8f2d11", "score": "0.5691787", "text": "public void statusCheckMove() {\r\n int score = getScore(who, false);\r\n if (score > 0) {\r\n score += 50;\r\n for (int i = 0; i < Rack.NUM_TILES; i++)\r\n if (!who.tiles[i].onBoard) {\r\n score -= 50;\r\n break;\r\n }\r\n status.setText(\"Move will score \" + score\r\n + \". Press Sumbit to end your turn.\");\r\n submit.setEnabled(true);\r\n if (!noTesting)\r\n challenge.setEnabled(true);\r\n } else {\r\n status.setText(\"Illegal move.\");\r\n submit.setEnabled(false);\r\n challenge.setEnabled(false);\r\n }\r\n }", "title": "" }, { "docid": "bdd1a381b643651bb0bf82069a213ed8", "score": "0.5686588", "text": "boolean updatePosition(Position position);", "title": "" }, { "docid": "3c2b169b68975bb0f8afa1493f47093b", "score": "0.5685772", "text": "public void move(){\n if(direction.equals(\"South\")){\n point.y--;\n System.out.println(toString());\n }\n else if(direction.equals(\"North\")){\n point.y++;\n System.out.println(toString());\n }\n else if(direction.equals(\"West\")){\n point.x--;\n System.out.println(toString());\n }\n else if(direction.equals(\"East\")){\n point.x++;\n System.out.println(toString());\n }\n }", "title": "" }, { "docid": "b4558e8fcedc189296d30aa182d17d3a", "score": "0.56806266", "text": "public static void cursorStatusDone(int i, String msg) {\r\n final String anim = \"|/-\\\\\";\r\n String data = \"\\r\" + msg + \" [ \" + i + \" Done ]\";\r\n System.err.print(data);\r\n }", "title": "" }, { "docid": "009c2c46639abcb7fa0e6c8cd23c2c3b", "score": "0.5676789", "text": "private void adjustCursorPosition(int newPosition, String theText) {\n Object[] args = { parsingContext, newPosition, theText };\n lastCursorPositionSentToG2 = newPosition;\n if (debug)\n System.out.println(\"DDM: telling G2 to reposition the cursor to \" + newPosition +\n\t\t\t \"\\n on the text \\\"\" + theText + \"\\\"\");\n Object returnValue = null;\n try { \n \treturnValue = connection.callRPC( _shiftCursorPosition, args,\n\t\t\t\t\t updateTimeout);\n } catch (ConnectionNotAliveException e) {\n session.rugPulledOutFromUnder(e);\n } catch (G2AccessException ae) {\n // make an announcement\n ae.printStackTrace();\n return;\n // If this doesn't work, then the real 'fix' is to disallow the editing\n // action. In effect, undo it. That will require some machinery, so putting\n // it off.\n }\n if (returnValue instanceof Structure) {\n unpackParseUpdateReturnStructure( (Structure)returnValue );\n } else {\n // If we get here, it's a coding bug on the G2 side. What to do?\n }\n }", "title": "" }, { "docid": "644eed16362e10fd3f5cce0129c30561", "score": "0.56564605", "text": "public String move() {\n return \"Flying away . . .\";\n }", "title": "" }, { "docid": "e054050071d465eb2b945de42e1ff655", "score": "0.56554717", "text": "@Override\r\n\tpublic void move() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a3078bedf65ce9a9e149cd39b6fd80a6", "score": "0.5654599", "text": "public void move() {\n\t\tthis.setXLoc(this.getXLoc() + getIncr(max, global));\n\t}", "title": "" }, { "docid": "931ed2eb88f78332d7ac4ab57e76cf22", "score": "0.56524575", "text": "@Override\n\tpublic void posModify() {\n\t\t\n\t}", "title": "" }, { "docid": "fb585ccf1cdbd93cf6ff03e0027c1eff", "score": "0.564291", "text": "public void move() {\n\t\tif (robot.move(size)) {\n\t\t\tdisplayTable(robot.getPositionX(), robot.getPositionY(), robot.getFaceDirection());\n\t\t}\n\t}", "title": "" }, { "docid": "cb28cae4897c6fa2ef8cd53931c6e319", "score": "0.56353605", "text": "@Override\r\n\tpublic void move() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74ab5d1dc685578edd834212f1ad1d56", "score": "0.56259793", "text": "public void move(){\n\t}", "title": "" }, { "docid": "8d4f29ac99f3318c332447d4776c7d4f", "score": "0.5625141", "text": "public void changeLocation() {\n\t\tswitch (c.newLocation) {\n\t\tcase 1:\n\t\t\t// sendFrame99(2);\n\t\t\tmovePlayer(3578, 9706, 7);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t// sendFrame99(2);\n\t\t\tmovePlayer(3568, 9683, 7);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\t// sendFrame99(2);\n\t\t\tmovePlayer(3557, 9703, 7);\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\t// sendFrame99(2);\n\t\t\tmovePlayer(3556, 9718, 7);\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\t// sendFrame99(2);\n\t\t\tmovePlayer(3534, 9704, 7);\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\t// sendFrame99(2);\n\t\t\tmovePlayer(3546, 9684, 7);\n\t\t\tbreak;\n\t\t}\n\t\tc.newLocation = 0;\n\t}", "title": "" }, { "docid": "da9cc9b4dcbba706de504fb5a34a7188", "score": "0.56084174", "text": "private void printMoves(){\n for(int i=0; i<jumpList.size(); i++){\n System.out.print(\"Jump #\" + (i+1) + \" = \" + jumpList.elementAt(i));\n }\n }", "title": "" }, { "docid": "2c07ef09abf5c073348497a096d8ffb6", "score": "0.56083846", "text": "public abstract String move();", "title": "" }, { "docid": "69764c5212f28577e307121bdfee0972", "score": "0.5600093", "text": "public void status() {\n\t\t System.out.println(\"DOOR OPENED PLEASE GET INTO IT ...\");\n\t}", "title": "" }, { "docid": "6d64bd240a8a94e915ef98fae7331ecd", "score": "0.559904", "text": "public void updateStatus() {\r\n \t\tString newStatus = \"\";\r\n \t\t\r\n \t\tBtlshpGame game = Btlshp.getGame();\r\n \t\t\r\n \t\tif(game == null || game.getAppState() == AppState.NoGame)\r\n \t\t\tnewStatus += \"Not in game.\\nStart or load a game!\\n\";\r\n \t\telse if(game.getAppState() == AppState.LocalTurn){\r\n \t\t\tnewStatus += \"Your turn\\n\";\r\n \t\tnewStatus += \"Mines in inventory: \" + game.getLocalPlayer().numberOfMines();\r\n \t\t}\r\n \t\telse{\r\n \t\t\tnewStatus += \"Other players turn\\n\";\r\n \t\t\tnewStatus += \"Mines in inventory: \" + game.getLocalPlayer().numberOfMines();\r\n \t\t}\r\n \t\t\r\n \t\t\r\n \t\tstatus.setText(newStatus);\r\n \t}", "title": "" }, { "docid": "21f4c4b5ffcf49cd6e9c6b59334f1ccb", "score": "0.55910504", "text": "@Override\n\tpublic void updatePosition(int x, int y) {\n\t\t\n\t}", "title": "" }, { "docid": "b0d5d222abc81e104dc2e073096315e3", "score": "0.5589308", "text": "public void redo() {\n\t\tstate.move( state.transferredBoatRiders.get( state.currentSailCount ) , state.boatPosition.equals(\"Left\") );\r\n\t\tif( state.boatPosition.equals( \"Left\" ) ) state.boatPosition = \"Right\";\r\n\t\telse state.boatPosition = \"Left\";\r\n\t\tstate.currentSailCount++;\r\n\t}", "title": "" }, { "docid": "4a066215ad9a4d8fc8cd6b076d3a2c5b", "score": "0.55887425", "text": "private void moveCheck(int oldRow, int oldCol, int newRow, int newCol)\n { \n char retChar = Maze.displayElement(newRow, newCol);\n \n switch (retChar)\n {\n case '*': System.out.println(\"Cannot move to this position: there is a wall there.\");\n break;\n \n case 'A': this.points += aAlmond.getNutPoints();\n this.totNutsCollected++;\n Nuts.eatNuts();\n System.out.println(\"!!! Squirrel got \" + aAlmond.getNutPoints() + \" points (Total \" + this.points + \" points) !!!\");\n System.out.println(\"There are still \" + Nuts.getTotalNuts() + \" nuts and \" + Shrooms.getTotalShrooms() + \" poisonous mushrooms left!\");\n this.moveDo(oldRow, oldCol, newRow, newCol);\n break;\n \n case 'P': this.points += aPeanut.getNutPoints();\n this.totNutsCollected++;\n Nuts.eatNuts();\n System.out.println(\"!!! Squirrel got \" + aPeanut.getNutPoints() + \" points (Total \" + this.points + \" points) !!!\");\n System.out.println(\"There are still \" + Nuts.getTotalNuts() + \" nuts and \" + Shrooms.getTotalShrooms() + \" poisonous mushrooms left!\");\n this.moveDo(oldRow, oldCol, newRow, newCol);\n break;\n \n case 'M': this.points += aShroom.getNutPoints();\n Shrooms.eatShroom();\n System.out.println(\"!!! Squirrel got \" + aShroom.getNutPoints() + \" points (Total \" + this.points + \" points) !!!\");\n System.out.println(\"There are still \" + Nuts.getTotalNuts() + \" nuts and \" + Shrooms.getTotalShrooms() + \" poisonous mushrooms left!\");\n this.moveDo(oldRow, oldCol, newRow, newCol);\n break;\n \n case ' ': System.out.println(\"The Squirrel moved into (\" + (newRow + 1) + \", \" + (newCol + 1) + \").\");\n this.moveDo(oldRow, oldCol, newRow, newCol);\n break;\n \n default: System.out.println(\"The Squirrel tried to move into an unknown object. It turned back.\");\n }\n }", "title": "" }, { "docid": "06fde4fa7f11ec09db0d7e1f5792695f", "score": "0.55818117", "text": "public final void moveTo(Point newPos){\n System.out.println(\"has turn was \" + hasTurn());\n hasMoved=true;\n System.out.println(\"moving\");\n setPosition(newPos);\n }", "title": "" }, { "docid": "95fcde5d82ce80b8a2310ca90633c7d2", "score": "0.5566535", "text": "public void mouseMoved( MouseEvent event )\r\n {\r\n mousePos = \"(\" + event.getX() + \" , \" + event.getY() + \")\";\r\n \r\n //updates status label to current mouse co-ordinates\r\n statusLabel.setText( mousePos ); \r\n }", "title": "" }, { "docid": "864460e22b604f9c062732ee78c7e951", "score": "0.55657446", "text": "public void move() {\r\n \r\n int newX = 0, newY = 0;\r\n int oldX = xCoordinate, oldY = yCoordinate;\r\n String reversed = reverseDirection(oldDirection);\r\n \r\n if (direction.equals(reversed)) {\r\n \r\n direction = oldDirection;\r\n }\r\n\r\n switch (direction) {\r\n \r\n case \"up\":\r\n newY = (oldY - 1);\r\n newX = oldX;\r\n break;\r\n case \"right\":\r\n newX = (oldX + 1);\r\n newY = oldY;\r\n break;\r\n case \"down\":\r\n newY = (oldY + 1);\r\n newX = oldX;\r\n break;\r\n case \"left\":\r\n newX = (oldX - 1);\r\n newY = oldY;\r\n break;\r\n default:\r\n System.out.println(\"ERROR: NO DIRECTION IN DRIVER\");\r\n break;\r\n }\r\n \r\n Color nextColor = Color.YELLOW;\r\n \r\n /**\r\n * Tries to see if the next cell is available to move into\r\n */\r\n try {\r\n nextColor = main.getCell(newX, newY).getColor();\r\n }\r\n catch (Exception IndexOutOfBounds) {}\r\n finally {}\r\n \r\n /** \r\n * If the next cell is available to move into then the cell is updated\r\n * to show player movement\r\n */\r\n \r\n Random rand = new Random();\r\n float r = rand.nextFloat();\r\n float g = rand.nextFloat();\r\n float b = rand.nextFloat();\r\n Color randomColor = new Color(r, g, b);\r\n \r\n if (nextColor.equals(Color.BLACK)) {\r\n xCoordinate = newX;\r\n yCoordinate = newY;\r\n oldDirection = direction;\r\n score = score + 1;\r\n main.getCell(xCoordinate, yCoordinate).colorUpdate(playerColor);\r\n }\r\n \r\n // This is for the power up. Power up should last 5 seconds but this\r\n // is nowhere near complete yet\r\n /**\r\n else if(nextColor.equals(Color.BLUE)) {\r\n long t= System.currentTimeMillis();\r\n long end = t+4000;\r\n while(System.currentTimeMillis() < end) {\r\n xCoordinate = newX; \r\n yCoordinate = newY;\r\n oldDirection = direction;\r\n Main.getCell(xCoordinate, yCoordinate).colorUpdate(playerColor);\r\n playerColor = randomColor;\r\n \r\n }\r\n \r\n }\r\n */ \r\n \r\n else {\r\n \r\n alive = false;\r\n }\r\n }", "title": "" }, { "docid": "2617df910683d0695a4048254af3f04e", "score": "0.5564791", "text": "public void updateStatus(){\n SmartDashboard.putBoolean(\"Target Found:\", this.hasTarget);\n SmartDashboard.putNumber(\"Target Distance\", this.targetDistance);\n SmartDashboard.putBoolean(\"Robot On Target\", onTarget());\n SmartDashboard.putBoolean(\"X Axis On Target\", onTargetX());\n SmartDashboard.putBoolean(\"Y Axis On Target\", onTargetY());\n \n }", "title": "" }, { "docid": "7da804aae4a9ec36b72631f6a46173d1", "score": "0.5555143", "text": "protected abstract void positionIncrement();", "title": "" }, { "docid": "21206e5d3b509667951d43dfef932320", "score": "0.5555081", "text": "static void displayPosition() {\n\t\tSystem.out.print(\"Lift : L1 L2 L3 L4 L5\\nFloor:\");\n\t\tfor(int i=0;i<5;i++)\n\t\t\tSystem.out.print(\" \"+liftPosition[i]+\" \");\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "73f3d0c01bbe270db264e6d357c3603e", "score": "0.55469775", "text": "private void movePhraseOffset() {\r\n\t\tif (getElapsedTime() > SLIDING_TIMER_MS) {\r\n\t\t\t// Move phrase\r\n\t\t\toffset--;\r\n\t\t\ttotalOffset++;\r\n\r\n\t\t\t// Reset timer\r\n\t\t\ttStart = System.currentTimeMillis();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "65e3256958833b016f11a774ebf0c208", "score": "0.5546147", "text": "void move(final boolean down) {\n if(!extend()) return;\n\n final int s = start, e = end, ts = size();\n final byte[] tmp = Arrays.copyOf(text, ts);\n if(down) {\n if(e == ts) return;\n pos = e;\n lineEnd(true);\n int c = s;\n for(int i = e; i < pos; i++) tmp[c++] = text[i];\n tmp[c++] = '\\n';\n for(int i = s; i < e - 1; i++) tmp[c++] = text[i];\n text(tmp);\n select(s + pos - e + 1, Math.min(ts, pos + 1));\n } else {\n if(s == 0) return;\n pos = s - 1;\n bol(true);\n int c = pos;\n for(int i = s; i < e; i++) tmp[c++] = text[i];\n if(tmp[c - 1] != '\\n') tmp[c++] = '\\n';\n for(int i = pos; i < s && c < ts; i++) tmp[c++] = text[i];\n text(tmp);\n select(pos, pos + e - s);\n }\n }", "title": "" }, { "docid": "cb67fb4b07b35635000f3284645bafde", "score": "0.5545548", "text": "public void update()\n\t{\n\t\thasMoved = false;\n\t}", "title": "" }, { "docid": "58d3be4cdfc42e6006964fad20759253", "score": "0.55413866", "text": "@Override\n public void next() {\n System.out.println(\"Previous move\");\n }", "title": "" }, { "docid": "093e1920bea28e2dff6087be238032ef", "score": "0.55399626", "text": "public void updateAndMoveTo(Case caseToGo) {\n\t\tleftPosition = caseToGo;\n\t\t// addToGraphics();\n\n\t}", "title": "" }, { "docid": "797967cb5a19cb530b65a3fc1abdb8ea", "score": "0.5538129", "text": "@Test\n public void testMove() {\n final Railgun railgun = new Railgun();\n final int x = 129;\n final int y = 444;\n final String actualResult = railgun.move(new Point(x, y));\n final String expectedResult = \"Move order: Success\";\n// System.out.println(actualResult);\n assertEquals(new Point(x, y), railgun.getPosition());\n assertEquals(expectedResult, actualResult);\n }", "title": "" }, { "docid": "1d0b0256318f070607e1a1ed3271033a", "score": "0.5535792", "text": "void setStatus(int stat) { _stat = stat; }", "title": "" }, { "docid": "785be466e7c3b6205347a2428dd08000", "score": "0.5535531", "text": "@Override\n\t\t\tpublic void progress() {\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}", "title": "" }, { "docid": "c37a892a7f5b02d1ec94bd9e51e63bb0", "score": "0.5519914", "text": "@Override\r\n\tpublic void setCurrentMove() {\n\t}", "title": "" }, { "docid": "6bd69ef66633205b95dc0f6c058cbdc4", "score": "0.5519758", "text": "private void moveRoom(Room nextRoom)\n {\n currentRoom = nextRoom;\n System.out.println(currentRoom.getLongDescription());\n printNpcsInRoom(currentRoom);\n printItems();\n }", "title": "" }, { "docid": "9a892d488b8ef4883aef1d0ff94ab5d8", "score": "0.5519474", "text": "@Override\n\tpublic boolean undoMove(){\n\t\tmovesRem++;\n\t\tthis.thirdBox = \"Moves Remaining\\n\" + String.valueOf(movesRem);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "39e922f05c30b1f66f8cee2baa97fce4", "score": "0.55177486", "text": "public void updateInfo() {\n isRed = moveCount % 2 != 0;\n thisSideColor = isRed ? RED : XiangqiColor.BLACK;\n opponentColor = isRed ? XiangqiColor.BLACK : RED;\n board = isRed ? redBoard : blackBoard;\n otherBoard = isRed ? blackBoard : redBoard;\n }", "title": "" }, { "docid": "b657a23216dcc37508b7e53d5b0fbeba", "score": "0.55167836", "text": "@Override\n public void moveToOffPosition() {\n }", "title": "" }, { "docid": "5abbc69df2f84ec1b61db85614915674", "score": "0.55093604", "text": "public void up() {\r\n\t\tif (position < 100) {\r\n\t\t\tposition = position + 10;\r\n\t\t}\r\n\t\tif (position >= 100) {\r\n\t\t\tposition = 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c0a6e94007aab970a8fb85dee4b62282", "score": "0.5507023", "text": "void move(int direction)\n {\n String sDirection = \"\";\n if (direction ==1 & tankY > 0){\n tankY -= 64;\n sDirection = \"Up\";\n }\n if (direction ==2 & tankY < BF_HEIGHT-64){\n tankY += 64;\n sDirection = \"Down\";\n }\n if (direction ==3 & tankX < BF_WIDTH-64){\n tankX += 64;\n sDirection = \"Right\";\n }\n if (direction ==4 & tankX > 0){\n tankX -= 64;\n sDirection = \"Left\";\n }\n if (sDirection.length()>0){\n System.out.println(sDirection + \" X :\"+ tankX+\" ; Y:\" + tankY);\n }\n repaint();\n sleep(speed);\n }", "title": "" }, { "docid": "cc8504aa0f7ee3cccd6e33e86f5becea", "score": "0.55068624", "text": "private void moveNext() {\n saveNote();\n //Get the position of the new Note\n ++mNoteId;\n //Get the new Note using the position\n mNote= DataManager.getInstance().getNotes().get(mNoteId);\n //Save the Original values of the new Note\n saveOriginalNoteValues();\n //Display the New Note\n displayNote();\n invalidateOptionsMenu();\n }", "title": "" }, { "docid": "d653ff78094faa2ae34b6a6cdeb81de1", "score": "0.5503882", "text": "private void updateHarvestStatus()\n {\n if (rep.completeListSize == -1)\n {\n rep.updateHarvestStatus (\"Harvesting (\"+ rep.cursor+\"/???)\");\n }\n else if (rep.cursor < rep.completeListSize)\n {\n rep.updateHarvestStatus (\"Harvesting (\"+ rep.cursor+\"/\"+rep.completeListSize+\")\");\n }\n else\n {\n rep.updateHarvestStatus (\"Harvested \"+rep.cursor+\" records\");\n //if (rep.cursor > 0)\n // rep.updateDateFrom ();\n }\n }", "title": "" }, { "docid": "cbb8290bb2c68841d0027a9d369a5445", "score": "0.55016744", "text": "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\tstatusBar.setText(\"Moved at [\" + arg0.getX() + \",\" + arg0.getY() + \"]\");\n\t}", "title": "" }, { "docid": "dd2e7af873ec111df9f5224d509921b2", "score": "0.54827166", "text": "@Override\n protected void seekInternal(long pos) throws IOException {\n \n }", "title": "" }, { "docid": "1dc59e9964aaa46492a7101a891861a2", "score": "0.5475732", "text": "private void setPos() {\n\t\tpos = getAimedPos();\n\t}", "title": "" }, { "docid": "e95820c6923f317259e8fc35673e75af", "score": "0.5474225", "text": "public void playerStatus(Player player)\n\t{\n\t\tSystem.out.println(\"\\n***************************\");\n\t\tSystem.out.printf(\"%s! it's your turn\\n\",player.getName());\n\t\tSystem.out.printf(\"token: %s\\n\", player.getToken());\n\t\tSystem.out.printf(\"current position: %d\\n\",player.getBoardPosition());\n\t\tSystem.out.printf(\"amount: %d\\n\",player.getAmount());\n\t\tSystem.out.printf(\"inJail: %b\\n\",player.getInJail());\n\t}", "title": "" }, { "docid": "fdc30d17cd20229ca680ad45bcefded4", "score": "0.54713345", "text": "public void position() throws Exception {\n }", "title": "" }, { "docid": "2d585ef769325c9673edc092927a42fd", "score": "0.5467908", "text": "public int getCurrentMove();", "title": "" }, { "docid": "1c4646b74dab8298b5229c9aa75d05a7", "score": "0.54676676", "text": "public void move() {\r\n\t\tSystem.out.println(\"player move method called.\");\r\n\t\r\n\t\tthis.xloc += this.xIncr;\r\n\t\tthis.yloc += this.yIncr;\r\n\t}", "title": "" }, { "docid": "afe0685d6a3f30ef099c509ee4a8cc0d", "score": "0.54659235", "text": "public void updateProgress(){\n String temp = \"\";\n for(int i = 0; i < flags.length; i++){\n for(int j = 0; j < flags[0].length; j++){\n temp += flags[i][j] + \"\\n\";\n }\n }\n temp.substring(0,temp.length()-2);\n runCommand(\"echo $\\'\"+ temp + \"\\' > ./progress/flags.txt\");\n }", "title": "" }, { "docid": "7d6caddd92ad0eb422f04dda481f4a50", "score": "0.5462798", "text": "protected void changeCurrentTileCoords(int x, int y){\n if (map[yCoord + y][xCoord + x] != '#'){ //If not moving into a wall\n map[yCoord][xCoord] = tileOn; //turn previous tile back to what you were standing on\n xCoord += x;\n yCoord += y;\n tileOn = map[yCoord][xCoord]; //save state of tile standing on\n map[yCoord][xCoord] = 'P';//sets tile to P for player\n if (Main.logic.spawning == 0){ //dont want to print during spawn at start\n System.out.println(\"SUCCESS\");\n }\n }\n else{//error msg \n System.out.println(\"FAIL\");\n }\n }", "title": "" }, { "docid": "199441b3d45e215cf118896c1c3f6ea2", "score": "0.54615116", "text": "public void updateStatus()\r\n\t{\r\n\t\tcompleted = (numberDone >= numberToDo);\r\n\t}", "title": "" }, { "docid": "8cb1b5039cdfc8a9d0bd2d7b4f01cd24", "score": "0.5460375", "text": "@Override\n public void setPosition(Position position) {\n super.setPosition(position);\n printPositionChange();\n }", "title": "" }, { "docid": "ac9681a3f15b8964b28737d47730a70e", "score": "0.54594785", "text": "public void status (int rows, int cols)\n {\n final int above = rows - 1;\n final int below = rows + 1;\n final int left = cols - 1;\n final int right = cols + 1;\n if (isManual)\n {\n changeStatus(rows, cols);\n }\n else\n {\n changeStatus(rows, cols);\n if (right < 5)\n {\n changeStatus(rows, right);\n }\n if (left >= 0)\n {\n changeStatus(rows, left);\n }\n if (below < 5)\n {\n changeStatus(below, cols);\n }\n if (above >= 0)\n {\n changeStatus(above, cols);\n }\n }\n }", "title": "" }, { "docid": "59c0759b83cc6bc4db2f3674cb879ca8", "score": "0.545644", "text": "@Override\n\tpublic void move (int tmpX, int tmpY, int heading) {\n\t}", "title": "" }, { "docid": "f92c2e40054041f019184696da0691fb", "score": "0.545606", "text": "public void updatePosition(int position){\n exerciseRowTextWatcher.updatePosition(position);\n }", "title": "" }, { "docid": "953b96adb39f7fb11714c791b36b0fb2", "score": "0.54553354", "text": "@Override\r\n\tpublic void doMove(int move)\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "899c0357dabe35a9f49ac1aa240ff46a", "score": "0.545283", "text": "private void orderMove() {\r\n\t\tif (this.targetDest!=null) {\r\n\t\t\tthis.gotoInfo = new GotoInfo();\r\n\t\t\tthis.gotoInfo = FFToolsRegions.makeOrderNACH(this.scriptUnit, super.region().getCoordinate(), this.targetDest,true,\"JageMonster\", false);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "960156d5c8a52f77104e53a816752e11", "score": "0.5452462", "text": "public void print(int a) {\n\t\tcurrentfloor=a;\r\n\t\t System.out.print(\"Heading please wait\\n\");\r\n\t\t if(headingfloor>currentfloor)\r\n\t\t {\r\n\t\t\t System.out.print(\"Moving up\\n\");\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t System.out.print(\"Moving down\\n\");\r\n\t\t }\t\t\r\n\t}", "title": "" }, { "docid": "b69c41d4d66538d58e4c85ac73f89eeb", "score": "0.5452125", "text": "private void updateTrailPosition(int currpos, int max){\n TrailPosition.setText(\"Question \" + (currpos + 1) + \" of \" + (max)); //add 1 to currpos since these values come from a 0 indexed list\n }", "title": "" }, { "docid": "348f5a94d1b33d143e3a4117143cd5f5", "score": "0.54482967", "text": "void positionChanged(Position oldPosition, Position newPosition);", "title": "" } ]
e4a7debad07a60b72abb8f14c6136057
method called by DownloadReceiver when Notification is clicked
[ { "docid": "8bfbafa819560277565203b7fb9039b9", "score": "0.70306623", "text": "public static void onNotificationClicked(long downloadId, Context context) {\n String id = DownloadHelper.getStringId(downloadId, context);\n if(id != null) {\n onNotificationClicked(id, context);\n } else {\n Timber.e(\"No download present with downloadId \" + downloadId + \"doing nothing on Notification clicked\");\n }\n }", "title": "" } ]
[ { "docid": "8c5a4a0bc834e9654dc8da03ada53a77", "score": "0.7821426", "text": "private void sendNotification(Download download) {\n }", "title": "" }, { "docid": "bdfb4c80413a8cdf0a6b14c544885020", "score": "0.7092857", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n if (mDownloadedFileID == -1)\n return;\n Toast.makeText(getApplicationContext(), getString(R.string.atom_ui_tip_download_success), //To notify the Client that the file is being downloaded\n Toast.LENGTH_LONG).show();\n QunarWebActvity.this.finish();\n }", "title": "" }, { "docid": "8426eb5cf686b37cbdb528c9a565b592", "score": "0.70871633", "text": "public void startDownloadNotification(Context context) {\r\n mNotifyManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\r\n mBuilder = new NotificationCompat.Builder(context);\r\n mBuilder.setContentTitle(\"Files Downloading From PC\").setContentText(\"Download progress\").setSmallIcon(android.R.drawable.stat_sys_download_done);\r\n }", "title": "" }, { "docid": "2712fbafeea8eb4a8be19db8c32b7a4e", "score": "0.69597393", "text": "private static void onNotificationClicked(String id, Context context) {\n switch (id) {\n case Constants.WORDNET:\n Intent activityIntent = new Intent(context, DictionariesActivity.class);\n activityIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(activityIntent);\n break;\n default:\n Timber.w(\"No relevant download found for \" + id + \" doing nothing on notification click\");\n break;\n }\n }", "title": "" }, { "docid": "87a081ea69d66c45376d118a8bbc1001", "score": "0.69359654", "text": "void onDownloadsChanged();", "title": "" }, { "docid": "87a081ea69d66c45376d118a8bbc1001", "score": "0.69359654", "text": "void onDownloadsChanged();", "title": "" }, { "docid": "797f64a2b927fa3ded6aa9c73672b210", "score": "0.68603295", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n else if (id==R.id.share)\n {\n Toast.makeText(getApplicationContext(),\"Please Wait\",Toast.LENGTH_SHORT).show();\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(urlstring)).setDestinationInExternalPublicDir(\"/Society365\", legdername+\" - \"+timeperiod2+\".pdf\");\n\n request.setDescription(urlstring); //appears the same in Notification bar while downloading\n\n enqueue = dm.enqueue(request);\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "ba37a468737cdd4ecacb57d62642c543", "score": "0.6836662", "text": "public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "title": "" }, { "docid": "9302d992af485d6847151bac87c4ac3f", "score": "0.68191713", "text": "private void sendIntent(Download download) {\n }", "title": "" }, { "docid": "b532ad06271d8db23e78fac02a928a3a", "score": "0.67685825", "text": "@Override\n\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\tString string = intent.getExtras().getString(Constants.INTENT_RECEIVER);\n\t\t\t\n\t\t\t\n\t\t\tif (string.equals(Constants.LOADING)) {\n\t\t\t\tcode = intent.getStringExtra(\"code\");\n\t\t\t\tbookCurrent = intent.getIntExtra(\"current\", 0);\n\t\t\t\tfileCurrent = intent.getIntExtra(\"fileCurrent\", 0);\n\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t}\n\t\t\t\n\t\t\tif (string.equals(Constants.PHONE_DOWNLOAD)) {\n\t\t\t\tMyLog.d(TAG, \"here is download receiver******************* \");\n\t\t\t\tgetData();\n\t\t\t\tcandelete =-1;\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c280f60b2c6bf1a729fe5fa80101f77c", "score": "0.67685354", "text": "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));\n //cookie\n String cookie= CookieManager.getInstance().getCookie(url);\n //Add cookie and User-Agent to request\n request.addRequestHeader(\"Cookie\",cookie);\n request.addRequestHeader(\"User-Agent\",userAgent);\n\n //file scanned by MediaScannar\n request.allowScanningByMediaScanner();\n //Download is visible and its progress, after completion too.\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n //DownloadManager created\n DownloadManager downloadManager= (DownloadManager) getContext().getSystemService(Context.DOWNLOAD_SERVICE);\n //Saving file in Download folder\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);\n //download enqued\n downloadManager.enqueue(request);\n }", "title": "" }, { "docid": "ab196d128b9d202516dc30bbcbeaf105", "score": "0.67117995", "text": "public void clickOnDownloadIcon();", "title": "" }, { "docid": "2c9e1a43c69bfa7abb84b3300de8ec1d", "score": "0.6682543", "text": "private void setFinalNotification() {\n //finished downloading all files\n // update notification\n String note = getResources().getString(R.string.update_complete);\n mBuilder.setContentTitle(note)\n .setContentText(\"\")\n .setSmallIcon(R.drawable.ic_launcher_mp)\n .setTicker(note)\n .setProgress(0, 0, false);\n nm.notify(0, mBuilder.build());\n }", "title": "" }, { "docid": "9cc4f7c7e7437d299e01d1f1753cb9a0", "score": "0.66799325", "text": "@Override\r\n public void onClick(View v) {\n try {\r\n postDatatoServer(\"accept_request\", notification.toJSON());\r\n fetchDatafromServer(\"notifications\");\r\n } \r\n catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "93b965a85966724f2a4fcd2f88f26dcf", "score": "0.6631094", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction() == DownloadManager.ACTION_DOWNLOAD_COMPLETE) {\n long id = intent\n .getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, -1);\n if (tag_id == id) {\n downOK();\n }\n }\n }", "title": "" }, { "docid": "3e0dc46fc98a3f00b38ac7ae6b8e29ae", "score": "0.6573908", "text": "void onDownloadFileCreated(DownloadFileInfo downloadFileInfo);", "title": "" }, { "docid": "ac89dced78fe98e9a1074aff9acca740", "score": "0.6542712", "text": "void notificationReceived(Notification notification);", "title": "" }, { "docid": "5b1d75079ac118719c0024d74589993d", "score": "0.6457514", "text": "public void downloadButtonPressed(View view)\n {\n Intent intent = new Intent(this, DownloadActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "9cd870cb285fd18da8fb99285bcd41d0", "score": "0.64574325", "text": "@Override\n protected void onPostExecute(UserDetails userDetails) {\n listener.onDownload(userDetails);\n }", "title": "" }, { "docid": "135ee75205d6af1cf70147acd5064594", "score": "0.64548904", "text": "@Override\n public void onUrlClicked(Uri urlClicked, Bundle extras) {\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"url\", urlClicked.toString());\n NotificareNotification notification = extras.getParcelable(Notificare.INTENT_EXTRA_NOTIFICATION);\n if (notification != null) {\n try {\n payload.put(\"notification\", NotificareUtils.mapNotification(notification));\n } catch (JSONException e) {\n // ignore\n }\n }\n NotificareEventEmitter.getInstance().sendEvent(\"urlClickedInNotification\", payload, true);\n }", "title": "" }, { "docid": "f5d7186a67dc59323d780520ed6755a1", "score": "0.64285314", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTestDownload();\r\n\t\t\t}", "title": "" }, { "docid": "27a22c0f2bf69e1450da6ad0d2a14fc5", "score": "0.64234483", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n\n\n Bundle extras = intent.getExtras();\n String action = intent.getAction();\n\n Log.i(\"Bundle extras\" ,\"\"+extras);\n Log.i(\"Bundle action\" ,\"\"+action);\n\n\n if (AppConstant.YES_ACTION.equals(action)) {\n if (extras != null) {\n\n notificationId = extras.getInt(\"NotificationId\");\n visitorID = extras.getInt(\"visitor\");\n empID = extras.getInt(\"empID\");\n date_video =extras.getString(\"date\");\n Log.i(\"DownloadT Date\",\"\"+date_video);\n date_end=extras.getLong(\"end_date_time\");\n Log.i(\"DownloadT end Date\",\"\"+date_end);\n token = extras.getString(\"token\");\n Log.i(\"fs\", \"onReceive: \"+token);\n contentInfos=new ArrayList<>();\n\n\n contentTitle=extras.getString(\"Content_Title\");\n contentType=extras.getString(\"Content_Type\");\n contentYear=extras.getInt(\"Content_Year\");\n contentRating=extras.getString(\"Content_Rating\");\n contentViewCount=extras.getString(\"Content_ViewCount\");\n contentBannerImage=extras.getString(\"Content_BannerImage\");\n//\n Log.i(\"DownloadT ContentTitle\",\"\"+contentTitle);\n Log.i(\"DownloadT ContentType\",\"\"+contentType);\n Log.i(\"DownloadT ContentYear\",\"\"+contentYear);\n Log.i(\"DownloadT ContentRating\",\"\"+contentRating);\n Log.i(\"DownloadT Contentcount\",\"\"+contentViewCount);\n Log.i(\"DownloadT ContentImg\",\"\"+contentBannerImage);\n\n\n\n\n\n }\n }\n\n }", "title": "" }, { "docid": "121bd4813c5eec827b7084d55db311c7", "score": "0.64190906", "text": "private void showUploadFinishedNotification(@Nullable Uri downloadUrl, @Nullable Uri fileUri) {\n Intent intent = new Intent(this, FirebaseActivity.class)\n .putExtra(EXTRA_DOWNLOAD_URL, downloadUrl)\n .putExtra(EXTRA_FILE_URI, fileUri)\n .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n // Make PendingIntent for notification\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* requestCode */, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Set message and icon based on success or failure\n boolean success = downloadUrl != null;\n String message = success ? \"Upload finished\" : \"Upload failed\";\n int icon = success ? R.drawable.ic_menu_gallery : R.drawable.ic_menu_gallery;\n\n NotificationCompat.Builder builder = (NotificationCompat.Builder) new NotificationCompat.Builder(this)\n .setSmallIcon(icon)\n .setContentTitle(getString(R.string.app_name))\n .setContentText(message)\n .setAutoCancel(true)\n .setContentIntent(pendingIntent);\n\n NotificationManager manager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n manager.notify(NOTIF_ID_DOWNLOAD, builder.build());\n }", "title": "" }, { "docid": "a71424dec8fbdcceed7fb46b4af590f0", "score": "0.6388973", "text": "@Override\n protected void onHandleIntent(Intent intent) {\n String urlPath = intent.getStringExtra(URL);\n String fileName = intent.getStringExtra(FILENAME);\n String timetable = intent.getStringExtra(TIMETABLE);\n mTimetable = intent.getParcelableExtra(TIMETABLE_OBJECT);\n\n try{\n\n File SDCardRoot = Environment.getExternalStorageDirectory();\n File wallpaperDirectory = new File(SDCardRoot.getPath()+\"/FGC/\");\n wallpaperDirectory.mkdirs();\n\n File file = new File(SDCardRoot+\"/FGC/\",fileName+\".pdf\");\n\n Intent tempIntent = new Intent(Intent.ACTION_VIEW);\n tempIntent.setDataAndType(Uri.fromFile(file), \"application/pdf\");\n tempIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n PendingIntent pIntent = PendingIntent.getActivity(this, 0, tempIntent, 0);\n\n // build notification\n // the addAction re-use the same intent to keep the example short\n NotificationCompat.Builder n = new NotificationCompat.Builder(this)\n .setContentTitle(getString(R.string.downloading))\n .setContentText(getString(R.string.downloading_timetable)+\" \"+timetable)\n .setSmallIcon(R.drawable.fgclogo)\n .setContentIntent(pIntent)\n .setAutoCancel(true)\n .setOngoing(true);\n\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n notificationManager.notify(id, n.build());\n\n URL url = new URL(urlPath);\n\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n\n FileOutputStream fileOutput = new FileOutputStream(file);\n\n InputStream inputStream = urlConnection.getInputStream();\n\n int totalSize = urlConnection.getContentLength();\n\n int downloadedSize = 0;\n\n byte[] buffer = new byte[1024];\n int bufferLength = 0;\n\n int tempValue=0;\n int increment = totalSize/20;\n while ( (bufferLength = inputStream.read(buffer)) > 0 ) {\n fileOutput.write(buffer, 0, bufferLength);\n downloadedSize += bufferLength;\n\n if(tempValue < downloadedSize){\n tempValue+=increment;\n n.setProgress(totalSize, downloadedSize, false);\n notificationManager.notify(id, n.build());\n }\n }\n\n fileOutput.close();\n\n n.setContentText(getString(R.string.download_finished))\n .setProgress(0, 0, false)\n .setOngoing(false)\n .setContentIntent(pIntent);\n notificationManager.notify(id, n.build());\n\n publishResults(fileName, file);\n } catch (IOException f){\n f.printStackTrace();\n\n Toast.makeText(this, getString(R.string.download_error), Toast.LENGTH_SHORT).show();\n }\n\n }", "title": "" }, { "docid": "62560074a8b443af146a3c4903b5c501", "score": "0.63674587", "text": "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "title": "" }, { "docid": "53cee8ced04d9ebe8a911776b5f8aad5", "score": "0.63574576", "text": "@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}", "title": "" }, { "docid": "ba237004a989629c33df34da1dc0c3e5", "score": "0.631121", "text": "@Override\r\n \t\t\tpublic void onClick(View arg0) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, AppManager.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}", "title": "" }, { "docid": "0b6e19be4890df9b6d6d15b9ffd7aef9", "score": "0.6298991", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tinfomation.drawDownload();\n\t\t\t}", "title": "" }, { "docid": "8e5b4db77d34d2a3e36bdeb84e826fa9", "score": "0.6288294", "text": "public void onDownloadSuccess(String fileInfo);", "title": "" }, { "docid": "03aa690d25024877919c028288e0266a", "score": "0.6272747", "text": "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "title": "" }, { "docid": "086bfbfd79a1c71c6d9e8cf0ac4de4e8", "score": "0.62533665", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_start_download);\n\t\t\n\t\t\n\t\t/*mgr=(DownloadManager)getSystemService(DOWNLOAD_SERVICE);\n\t\tregisterReceiver(onComplete, new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE));\n\t\tregisterReceiver(onNotificationClick, new IntentFilter(DownloadManager.ACTION_NOTIFICATION_CLICKED));\n\t*/\n\t\t\n\t}", "title": "" }, { "docid": "185024b958b31b30b7f90b9e76d666b5", "score": "0.6248886", "text": "@Override\n\t\tpublic void onDownloadGalleryIconFinish(String iconUrl) {\n\t\t\tMessage msg = mHandler.obtainMessage();\n\t\t\tmsg.what = MSG_REFRESH_GALLERY_ICON;\n\t\t\tmsg.obj = iconUrl;\n\t\t\tmsg.sendToTarget();\n\t\t}", "title": "" }, { "docid": "be78d9f584829a847ff0a806de14c1ea", "score": "0.6243801", "text": "@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, AppMarket.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}", "title": "" }, { "docid": "430219f63c242a5f9016fce57a58ec3c", "score": "0.623874", "text": "private void displayNotification(final String id, final String name, final String detail, String title, final String url) {\n\n NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n Notification notification = new Notification(R.drawable.noti, name + \" ตอนใหม่\", System.currentTimeMillis());\n notification.defaults |= Notification.DEFAULT_SOUND;\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n\n // The PendingIntent will launch activity if the user selects this notification\n Intent browserIntent = null;\n/*\t\tbrowserIntent = new Intent(Intent.ACTION_VIEW);\n\t\tUri data = Uri.parse(url+\"#story_body\");\n\t\tbrowserIntent.setData(data);*/\n if (Setting.getArrowSelectSetting(context).equals(\"0\")) {\n browserIntent = new Intent(Intent.ACTION_VIEW);\n Uri data = Uri.parse(url + \"#story_body\");\n browserIntent.setData(data);\n } else if (Setting.getArrowSelectSetting(context).equals(\"1\")) {\n browserIntent = new Intent(this, DekdeeBrowserActivity.class);\n browserIntent.putExtra(\"id\", id);\n browserIntent.putExtra(\"url\", url);\n browserIntent.putExtra(\"title\", name);\n } else {\n browserIntent = new Intent(this, TextReadActivity.class);\n browserIntent.putExtra(\"url\", url);\n }\n System.out.println(\"moti \" + url);\n\n //PendingIntent contentIntent = PendingIntent.getActivity(context, REQUEST_CODE,browserIntent, 0);\n PendingIntent contentIntent = PendingIntent.getActivity(getApplicationContext(), REQUEST_CODE, browserIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n notification.contentIntent = contentIntent;\n //notification.contentView = contentView;\n if (title.contains(\":\")) {\n title = \":\" + title;\n }\n if (title.indexOf(\":\") + 2 < title.length()) {\n notification.setLatestEventInfo(context, name, title.substring(title.indexOf(\":\") + 2) + \" (\" + detail + \")\", contentIntent);\n } else if (title.indexOf(\":\") + 1 < title.length()) {\n notification.setLatestEventInfo(context, name, title.substring(title.indexOf(\":\") + 1) + \" (\" + detail + \")\", contentIntent);\n } else if ((!title.contains(\":\")) && (title.indexOf(\":\") < title.length())) {\n notification.setLatestEventInfo(context, name, title.substring(title.indexOf(\":\")) + \" (\" + detail + \")\", contentIntent);\n } else {\n notification.setLatestEventInfo(context, name, title + \" (\" + detail + \")\", contentIntent);\n }\n manager.notify(REQUEST_CODE, notification);\n }", "title": "" }, { "docid": "560d1943ab1b3b415cbd47afb7c5f94f", "score": "0.6235052", "text": "@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }", "title": "" }, { "docid": "f907dd8b7ee749dd16cd19423a8055a3", "score": "0.6225519", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tclickButtonToDownloadFile();\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "6d262a85b1d0d0e7a5ac3d392ecca560", "score": "0.62235016", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n // Do something after 5s = 5000ms\n if (mInterstitialAd.isLoaded()) {\n mInterstitialAd.show();\n }\n }\n }, 10000);\n\n Toast.makeText(getActivity(), \"Starting download...\", Toast.LENGTH_SHORT).show();\n\n //handle the download....whoo hoo, bitches!!!\n Uri uri = Uri.parse(chat.getDownloadUrl().toString());\n DownloadManager.Request request = new DownloadManager.Request(uri);\n request.setMimeType(\"audio/mpeg\");\n request.setTitle(name);\n request.setDescription(\"Artist: \" + artist);\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n\n\n //request.addRequestHeader(\"Accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\");\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE);\n\n if(isExternalStorageWritable()){\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, outFile);\n //request.setDestinationInExternalFilesDir(MainActivity.this,\"mb_music\", name + \"_\" + artist + \".mp3\");\n myDownloadReference = downloadManager.enqueue(request);\n Log.d(\"myDownloadReference\", String.valueOf(myDownloadReference));\n }else{\n FlycoMenuDialog noWriteableStorageDialog = new FlycoMenuDialog(getActivity(),new ZoomInTopEnter(), new ZoomOutBottomExit(), getActivity().getResources().getString(R.string.no_writeable_storage_title),getActivity().getResources().getString(R.string.no_writeable_storage_content), \"Okay\");\n noWriteableStorageDialog.showMaterialDialog();\n }\n\n\n\n }", "title": "" }, { "docid": "f33fcc7eb29f4fd35e355673b7cee9f3", "score": "0.6221295", "text": "@Override\n public void notificationReceived(OSNotification notification) {\n Log.e(\"oneSignal\",\"new Notification\");\n\n }", "title": "" }, { "docid": "656e42f9ef92f5c63d702a50da57dabf", "score": "0.62197006", "text": "private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }", "title": "" }, { "docid": "d6ee328b8094d8e2b242d666b1549796", "score": "0.6218723", "text": "@Override public void onClick(DialogInterface dialogInterface, int i) {\n DownloadUtils.DownloadApkWithProgress(context.getApplicationContext(),\n appVersion.getUpdateUrl());\n }", "title": "" }, { "docid": "96096b399028a67a7bd244ac05d400f6", "score": "0.6217724", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n normalDownload(finalBitmap,input.getText()+\"\");\n }", "title": "" }, { "docid": "22d8c27caf9b43de08fc0427dea82a25", "score": "0.6162693", "text": "@Override\n public void onClick(View v) {\n \tIntent in = new Intent(getApplicationContext(), DownloadFile.class);\n in.putExtra(\"url\", url_get_file);\n startActivityForResult(in, 100);\n }", "title": "" }, { "docid": "adeda30873c7b40f63726fa73ba8a355", "score": "0.6127406", "text": "@Override\r\n public void onClick(View v) {\n try {\r\n postDatatoServer(\"reject_request\", notification.toJSON());\r\n fetchDatafromServer(\"notifications\");\r\n } \r\n catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "93f7d419ee4f158bdeb05f396ad0d8fb", "score": "0.6127181", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n if (downloadService == null) {\n connectToDownloadService();\n }\n if (downloadService != null) {\n callback.onContentChanged(downloadService.getDownloads());\n } else {\n // the service is gone, there are no more downloads.\n callback.onContentChanged(new ArrayList<Downloader>());\n }\n startRefresher();\n }", "title": "" }, { "docid": "1efcaf5439f3c72b7c21eef965f8ea2f", "score": "0.6105623", "text": "private void showNotification() {\n\n }", "title": "" }, { "docid": "e234332ad3912436ed625f4366b4b676", "score": "0.6098912", "text": "void onDownloadComplete(EzDownloadRequest downloadRequest);", "title": "" }, { "docid": "5e9a815e93946469a1202175a63b3142", "score": "0.60804844", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tint position = (Integer) v.getTag();\n\t\t\t\tGameInfoitem item = list.get(position);\n\t\t\t\tint status = item.download_state;\n\t\t\t\tswitch (status) {\n\t\t\t\tcase DownloadManager.STATUS_NORMAL:\n\t\t\t\t\tstartDownload(item.url);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DownloadManager.STATUS_FAILED:\n\t\t\t\t\tmDownloadManager.restartDownload(item.id);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DownloadManager.STATUS_PAUSED:\n\t\t\t\t\tmDownloadManager.resumeDownload(item.id);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DownloadManager.STATUS_PENDING:\n\t\t\t\tcase DownloadManager.STATUS_RUNNING:\n\t\t\t\t\tmDownloadManager.pauseDownload(item.id);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DownloadManager.STATUS_SUCCESSFUL:\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tnotifyDataSetChanged();\n\t\t\t}", "title": "" }, { "docid": "a0ecb1c736139c444df34b5d60a77af4", "score": "0.6079326", "text": "private void onDownloadComplete(String file_name, String downloadPath) {\n\n file_name_nv=file_name;\n getstartshow(file_name_nv);\n }", "title": "" }, { "docid": "f63bd7d95101d8b464ff9e0ded38fcd1", "score": "0.60783386", "text": "public void downloadStarted();", "title": "" }, { "docid": "ad00f4692e56293fdf18d07b81e95cfb", "score": "0.6071795", "text": "private void startDownloadJob(final DownloadJob job) {\n\n\t\tfinal int notificationId = ++NOTIFICATION_ID;\n\n\t\tfinal NotificationManager mNotifyManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\t\tfinal NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this);\n\t\t// mBuilder.setContentTitle(\"Message Download\")\n\t\tString notificationTitle = job.getFolderName();\n\t\tFBFriend loggedUser = DataStorage.getLoggedUser();\n\t\tif (loggedUser != null) {\n\t\t\tnotificationTitle = job.getThread().getFriendsNames(loggedUser);\n\t\t}\n\t\tmBuilder.setContentTitle(notificationTitle).setContentText(\"Download in progress\")\n\t\t\t\t.setSmallIcon(R.drawable.ic_launcher).setAutoCancel(true);\n\n\t\tIntent resultIntent = new Intent(this, StatusActivity.class);\n\t\tresultIntent.putExtra(StatusActivity.INTENT_EXTRA_STATUS, 1);\n\t\tresultIntent.putExtra(StatusActivity.INTENT_EXTRA_JOB, job);\n\t\tresultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP\n\t\t\t\t| Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t// resultIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |\n\t\t// Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n\t\t// generate unique request id\n\t\tint n = new Random().nextInt(50) + 1;\n\t\tint requestID = n * notificationId;\n\n\t\tPendingIntent resultPendingIntent = PendingIntent.getActivity(this, requestID, resultIntent,\n\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT);\n\t\t// PendingIntent.FLAG_ONE_SHOT);\n\t\tmBuilder.setContentIntent(resultPendingIntent);\n\n\t\tThread thread = new Thread() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\n\t\t\t\tdownloading = true;\n\t\t\t\tString threadId = job.getThread().getThreadId();\n\n\t\t\t\tFBMessageTable dbTable = new FBMessageTable(getApplicationContext(), threadId);\n\t\t\t\tdbTable.createTableIfNotExist();\n\n\t\t\t\t// indexes starts from 0\n\t\t\t\t// start from begining or from the last index\n\t\t\t\t// long start = Math.max(job.getMinIndex() - 1,\n\t\t\t\t// job.getDownloadIndex());\n\t\t\t\tlong start = job.getMinIndex() - 1;\n\t\t\t\tlong end = job.getMaxIndex() - 1;\n\n\t\t\t\tlong current = start;\n\n\t\t\t\tAppLogger.log(TAG, \"Job started thread_id=\" + threadId + \" from \" + start + \" to \" + end);\n\n\t\t\t\tDate startDate = new Date();\n\n\t\t\t\tboolean working = true;\n\t\t\t\tjob.setWorking(true);\n\t\t\t\tsaveJobList();\n\t\t\t\twhile (working) {\n\n\t\t\t\t\tlong lowerLimit = current;\n\t\t\t\t\t// long upperLimit = Math.min(end, current +\n\t\t\t\t\t// FB_MAX_MESSAGE_LIMIT);\n\t\t\t\t\tlong upperLimit = Math.min(end, current + FB_MAX_MESSAGE_LIMIT);\n\n\t\t\t\t\t// check if already found in the database\n\t\t\t\t\tCursor cursor = dbTable.getExportMessages(threadId, lowerLimit, upperLimit);\n\n\t\t\t\t\tboolean contains = containsAll(lowerLimit, upperLimit, cursor);\n\t\t\t\t\tdbTable.closeReadableDatabase();\n\t\t\t\t\tif (contains) {\n\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\tsb.append(\"found in database from \");\n\t\t\t\t\t\tsb.append(lowerLimit);\n\t\t\t\t\t\tsb.append(\" to \");\n\t\t\t\t\t\tsb.append(upperLimit);\n\t\t\t\t\t\tAppLogger.log(TAG, sb.toString());\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// List<FBMessage> messages =\n\t\t\t\t\t\t// DataLoader.loadMessages(threadId, lowerLimit,\n\t\t\t\t\t\t// upperLimit);\n\t\t\t\t\t\tList<FBMessage> messages = DataLoader.loadMessages(threadId, lowerLimit, FB_MAX_MESSAGE_LIMIT);\n\n\t\t\t\t\t\tif (messages == null) {\n\t\t\t\t\t\t\t// error occured\n\n\t\t\t\t\t\t\t// 104 = OAuthException.\n\t\t\t\t\t\t\tif (DataLoader.getErrorCode() == 104) {\n\t\t\t\t\t\t\t\t// try to create session from cache\n\t\t\t\t\t\t\t\tvalidateFBLogin();\n\t\t\t\t\t\t\t\t// try missed one again\n\t\t\t\t\t\t\t\tupperLimit = lowerLimit;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// TODO testing use. should remove after testing\n\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\tsb.append(\"Messages from \");\n\t\t\t\t\t\t\tsb.append(lowerLimit);\n\t\t\t\t\t\t\tsb.append(\" to \");\n\t\t\t\t\t\t\tsb.append(upperLimit);\n\t\t\t\t\t\t\tsb.append(\" size=\");\n\t\t\t\t\t\t\tsb.append(messages.size());\n\n\t\t\t\t\t\t\tAppLogger.log(TAG, sb.toString());\n\n\t\t\t\t\t\t\t// save to database\n\t\t\t\t\t\t\tdbTable.addAll(messages, lowerLimit);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tjob.setDownloadIndex(current);\n\t\t\t\t\t// saveJobList();\n\n\t\t\t\t\t// prepare for next iteration\n\t\t\t\t\tcurrent = upperLimit;\n\n\t\t\t\t\tif (current >= end) {\n\t\t\t\t\t\tworking = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (job.isStop()) {\n\t\t\t\t\t\tworking = false;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tint progress = 0;\n\t\t\t\t\tif (end == start) {\n\t\t\t\t\t\tprogress = 0;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprogress = (int) ((current - start) * 100 / (end - start));\n\t\t\t\t\t}\n\t\t\t\t\tmBuilder.setProgress(100, progress, false);\n\t\t\t\t\tmNotifyManager.notify(notificationId, mBuilder.build());\n\t\t\t\t\tpublishStatus(job, progress);\n\t\t\t\t}\n\n\t\t\t\tAppLogger.log(TAG, \"Job ended thread_id=\" + threadId + \" from \" + start + \" to \" + end + \" in \"\n\t\t\t\t\t\t+ (new Date().getTime() - startDate.getTime()) / 1000 + \"seconds\");\n\n\t\t\t\t// write csv file\n\t\t\t\tmBuilder.setContentText(\"Download complete. Generating file\").setProgress(0, 0, false);\n\t\t\t\tCursor cursor = dbTable.getExportMessages(threadId, start, end);\n\n\t\t\t\tif (cursor != null) {\n\t\t\t\t\tgenerateOutFile(job, cursor);\n\t\t\t\t}\n\n\t\t\t\tdbTable.closeReadableDatabase();\n\n\t\t\t\t// //////////////\n\t\t\t\tif (job.isStop()) {\n\t\t\t\t\tmBuilder.setContentText(\"Download stopped\").setProgress(0, 0, false);\n\t\t\t\t} else {\n\t\t\t\t\tmBuilder.setContentText(\"Finished\").setProgress(0, 0, false);\n\t\t\t\t}\n\t\t\t\tmNotifyManager.notify(notificationId, mBuilder.build());\n\n\t\t\t\t// //////////////\n\t\t\t\tjob.setStop(true);\n\t\t\t\tboolean removed = removeJob(job);\n\t\t\t\tif (removed) {\n\t\t\t\t\tsaveJobList();\n\t\t\t\t}\n\t\t\t\tdownloading = false;\n\t\t\t\tif (jobs != null) {\n\t\t\t\t\tif (jobs.size() == 0) {\n\t\t\t\t\t\tstopSelf();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstartAllDownloads();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t};\n\n\t\tif (threads == null) {\n\t\t\tthreads = new ArrayList<Thread>();\n\t\t}\n\t\tthreads.add(thread);\n\t\tthread.start();\n\n\t}", "title": "" }, { "docid": "1d8b6db35045feec7c4710007bca0724", "score": "0.60642743", "text": "public void onClick(DialogInterface dialog, int id) {\n int notificationID=getNotifyId();\r\n Thread dow=new Thread(() -> {\r\n try {\r\n Socket socket = new Socket();\r\n socket.connect(new InetSocketAddress(serverIP,entry),timeout);\r\n\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n PrintWriter printer = new PrintWriter(socket.getOutputStream());\r\n printer.println(\"user:test,pas:1234,action:\"+ACTION_CODE_DOWNLOAD+\",file:\"+target+\",\");\r\n printer.flush();\r\n\r\n Double size=Double.parseDouble(reader.readLine());\r\n System.out.println(\"download start size=\"+size);\r\n\r\n BufferedInputStream buf=new BufferedInputStream(socket.getInputStream());\r\n String root=Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).toString();\r\n String path=root+\"/\"+target.substring(target.lastIndexOf(\"\\\\\")+1);\r\n FileOutputStream fout=new FileOutputStream(path);\r\n int l=0;\r\n byte[] bytes=new byte[4096];\r\n long now=0;\r\n int pre=0;\r\n while((l=buf.read(bytes))!=-1){\r\n fout.write(bytes,0, l);\r\n now+=l;\r\n int progress=(int)(Math.ceil(now/1024/1024.0/size*100));\r\n if(pre!=progress){\r\n pre=progress;\r\n //System.out.println(\"now:\"+now/1024/1024.0+\"mb \"+progress+\"%\");\r\n\r\n notifyBuilder.setProgress(100,progress,false);\r\n notifyBuilder.setContentText(progress+\"%\");\r\n notificationManager.notify(notificationID,notifyBuilder.build());\r\n }\r\n\r\n }\r\n\r\n buf.close();\r\n fout.flush();\r\n fout.close();\r\n reader.close();\r\n printer.close();\r\n socket.close();\r\n Thread.sleep(100);\r\n notifyBuilder.setContentTitle(\"finish download \"+target).setProgress(100,100,false);\r\n notificationManager.notify(notificationID,notifyBuilder.build());\r\n MainActivity.this.runOnUiThread(() -> {\r\n Toast.makeText(MainActivity.this,\"download finish\",Toast.LENGTH_SHORT).show();\r\n openFile(path);\r\n });\r\n\r\n } catch (SocketTimeoutException e){\r\n MainActivity.this.runOnUiThread(() -> {\r\n Toast.makeText(MainActivity.this,\"can not connect to server\",Toast.LENGTH_SHORT).show();\r\n });\r\n }catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n\r\n });\r\n dow.start();\r\n }", "title": "" }, { "docid": "7e58b3d060e792a8ae5e7d4651dcb2ed", "score": "0.605889", "text": "@Override\n\t\t\tpublic void onSuccess(String url, File file)\n\t\t\t{\n\t\t\t\tsuper.onSuccess(url, file);\n\t\t\t\tmNotification.contentView.setViewVisibility(R.id.upgradeService_pb, View.GONE);\n\t\t\t\tmNotification.defaults = Notification.DEFAULT_SOUND;\n\t\t\t\tmNotification.contentIntent = mPendingIntent;\n\t\t\t\tmNotification.contentView.setTextViewText(R.id.upgradeService_tv_status, \"下载完成\");\n\t\t\t\tmNotification.contentView.setTextViewText(R.id.upgradeService_tv, \"100%\");\n\t\t\t\tmNotificationManager.notify(mNotificationId, mNotification);\n\t\t\t\tmNotificationManager.cancel(mNotificationId);\n\t\t\t\tSDPackageUtil.installApkPackage(getApplicationContext(), file.getPath());\n\t\t\t\tSDToast.showToast(\"下载完成\");\n\n\t\t\t}", "title": "" }, { "docid": "1fa50d8f37d764f295537cafd4608d24", "score": "0.60562664", "text": "@Override\n public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimetype,\n long contentLength) {\n\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));\n }", "title": "" }, { "docid": "de1a74e618ddaec639ca379f2e5f653f", "score": "0.6049599", "text": "@Override\r\n public void onDownloading(String url, int progress) {\n DownloadInfo info = new DownloadInfo(url, callback).setProgress(progress);\r\n handleMessage(MSG_DOWNLOAD_ING, info);\r\n }", "title": "" }, { "docid": "ee2d5d10c9d1bebb6e8d48a22f97485c", "score": "0.60338545", "text": "@Override\n public void onClick(View view) {\n switch (view.getId()) {\n case R.id.downloadPdf:\n if (isConnectingToInternet()){\n Toast.makeText(getApplicationContext(), \"it's me\", Toast.LENGTH_SHORT).show();\n new DownloadTask(MainActivity.this, downloadPdf, Utils.downloadPdfUrl);\n }\n else\n Toast.makeText(MainActivity.this, \"Oops!! There is no internet connection. Please enable internet connection and try again.\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.downloadDoc:\n if(isStoragePermissionGranted()){\n\n }\n if (isConnectingToInternet())\n new DownloadTask(MainActivity.this, downloadDoc, Utils.downloadDocUrl);\n else\n Toast.makeText(MainActivity.this, \"Oops!! There is no internet connection. Please enable internet connection and try again.\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.downloadZip:\n if (isConnectingToInternet())\n new DownloadTask(MainActivity.this, downloadZip, Utils.downloadZipUrl);\n else\n Toast.makeText(MainActivity.this, \"Oops!! There is no internet connection. Please enable internet connection and try again.\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.downloadVideo:\n if (isConnectingToInternet())\n new DownloadTask(MainActivity.this, downloadVideo, Utils.downloadVideoUrl);\n else\n Toast.makeText(MainActivity.this, \"Oops!! There is no internet connection. Please enable internet connection and try again.\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.downloadMp3:\n if (isConnectingToInternet())\n new DownloadTask(MainActivity.this, downloadMp3, Utils.downloadMp3Url);\n else\n Toast.makeText(MainActivity.this, \"Oops!! There is no internet connection. Please enable internet connection and try again.\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.openDownloadedFolder:\n openDownloadedFolder();\n break;\n case R.id.go_to_downlaod:\n Intent i = new Intent(MainActivity.this, DownloadActivity.class);\n startActivity(i);\n break;\n\n }\n }", "title": "" }, { "docid": "e5d954f2b11a11f3240bc793c368258a", "score": "0.6015581", "text": "@Override\n protected void onHandleIntent(Intent workIntent) {\n // Gets a URL to read from the incoming Intent's \"data\" value\n String urlString = workIntent.getDataString();\n\n // URL to download from\n URL url;\n\n //block that tries to connect to xml data, and throws an IOException if one occurs\n try {\n // Convert the incoming data string to a URL.\n url = new URL(urlString);\n\n /**\n * Tries to open a connection to the URL. If an IO error occurs, this throws an\n * IOException\n */\n URLConnection urlConnection = url.openConnection();\n\n // If the connection is an HTTP connection, continue\n if (urlConnection instanceof HttpURLConnection) {\n // Broadcasts an Intent indicating that processing has started.\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_STARTED);\n\n // Casts the connection to a HTTP connection\n HttpURLConnection httpURLConnection = (HttpURLConnection) urlConnection;\n\n // Reports that the service is about to connect to the RSS feed\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_CONNECTING);\n\n // Get response code from site\n int responseCode = httpURLConnection.getResponseCode();\n\n // Continue if response is OK\n if (responseCode == HttpURLConnection.HTTP_OK) {\n // Get content length (in bytes) to calculate progress from\n int contentLength = httpURLConnection.getContentLength();\n\n InputStream inputStream = urlConnection.getInputStream();\n\n // Save to file\n //FileOutputStream outputStream = new FileOutputStream(Constants.XML_SAVE_FILE_PATH);\n // Save to internal storage instead\n File file = new File(getFilesDir(), Constants.XML_SAVE_FILE_NAME);\n FileOutputStream outputStream = new FileOutputStream(file);\n\n // keep track of how much is downloaded\n int totalBytesRead = 0;\n int progressDone = 0;\n // Report downloading state\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_DOWNLOADING);\n\n int bytesRead = -1;\n byte[] buffer = new byte[BUFFER_SIZE];\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n totalBytesRead += bytesRead;\n progressDone = totalBytesRead/contentLength * 100;\n // TODO: broadcast progress\n }\n\n outputStream.close();\n inputStream.close();\n httpURLConnection.disconnect();\n // Report download complete\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_DOWNLOAD_COMPLETE);\n }\n\n }\n else {\n // Report that action failed\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_FAILED);\n return;\n }\n\n // TODO: make sure tvheadend is running\n // Open sockect connection to xmltv.sock\n String socketName = getFilesDir() + \"/xmltv.sock\";\n Log.d(\"socketConnection\", \"Connecting to \" + socketName);\n LocalSocketAddress socketAddress = new LocalSocketAddress(socketName,\n LocalSocketAddress.Namespace.FILESYSTEM);\n LocalSocket socket = new LocalSocket();\n socket.connect(socketAddress);\n if (socket.isConnected()) {\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_SOCKET_CONNECTED);\n\n // open xml file\n File file = new File(getFilesDir(), Constants.XML_SAVE_FILE_NAME);\n FileInputStream inputStream = new FileInputStream(file);\n\n // get socket output stream\n OutputStream outputStream = socket.getOutputStream();\n\n // write xml data to xmltv socket\n int bytesRead = -1;\n byte[] buffer = new byte[BUFFER_SIZE];\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n outputStream.close();;\n inputStream.close();\n socket.close();\n }\n else {\n // Report that action failed\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_FAILED);\n return;\n }\n // Done successfully\n // set last update time - THIS could be DANGEROUS since shared prefs is not thread safe!\n Date now = new Date();\n EpgStoredSettings settings = new EpgStoredSettings(getApplicationContext());\n settings.setLastUpdateTime(now);\n // notify status fragment\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_COMPLETE);\n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n // Report that action failed\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_FAILED);\n\n }\n catch (IOException e) {\n e.printStackTrace();\n // Report that action failed\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_FAILED);\n }\n catch (SecurityException e)\n {\n e.printStackTrace();\n // Report that action failed\n mBroadcaster.broadcastIntentWithState(Constants.STATE_ACTION_FAILED);\n }\n }", "title": "" }, { "docid": "cc0a25bdd9ea9bedf1a05f434ba836c0", "score": "0.60152704", "text": "private void showNotification() {\n }", "title": "" }, { "docid": "4322d6df73e5aa55300c3a47e2e6264a", "score": "0.60085136", "text": "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "title": "" }, { "docid": "8a6610b91dfb36cd46bbc335b61f995b", "score": "0.60013187", "text": "public void setProgressNotification(View view){\n //Add \"10\" to notifications - a progress notification\n currentNotifications.add(10);\n\n //setup the notification manager\n final NotificationManager mNotifyManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n //Build a notification\n final NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this);\n mBuilder.setContentTitle(\"RAM Download\")\n .setContentText(\"Download in progress\")\n .setSmallIcon(R.drawable.memory);\n\n // Start a lengthy operation in a background thread\n new Thread(\n new Runnable() {\n @Override\n public void run() {\n int incr;\n // Do the \"lengthy\" operation 20 times\n\n for (incr = 0; incr <= 500; incr+=5) {\n // Sets the progress indicator to a max value, the\n // current completion percentage, and \"determinate\"\n // state\n mBuilder.setProgress(100, incr, false);\n\n // Displays the progress bar for the first time.\n mNotifyManager.notify(10, mBuilder.build());\n\n // Sleeps the thread, simulating an operation\n // that takes time\n try {\n // Sleep for 1/10 a second\n Thread.sleep(100);\n } catch (InterruptedException e) {\n }\n }\n\n // When the loop is finished, updates the notification\n mBuilder.setContentText(\"Download complete\")\n\n // Removes the progress bar\n .setProgress(0,0,false);\n mNotifyManager.notify(10, mBuilder.build());\n }\n }\n\n // Starts the thread by calling the run() method in its Runnable\n ).start();\n\n }", "title": "" }, { "docid": "c6c72d733c9ec36d23f73d126f51e814", "score": "0.5984897", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmsgService.startDownLoad();\n\t\t\t}", "title": "" }, { "docid": "3b8106a9eb2ab637297d3b04db3988fe", "score": "0.5984845", "text": "@Override\n // Download file\n protected void onHandleIntent(@Nullable Intent intent) {\n String address = intent.getStringExtra(\"URL\");\n // Conecction with url\n HttpURLConnection connection = null;\n // Stream for save content\n OutputStream streamToFile = null;\n try {\n // Get filename from URL\n URL url = new URL(address);\n File file = new File(url.getFile());\n String fileName = file.getName();\n // Create new file\n DocumentFile directory = DocumentFile.fromTreeUri(this, uri);\n DocumentFile dFile = directory.createFile(\"\", fileName);\n // Make connection\n connection = (HttpURLConnection) url.openConnection();\n // Stream for fetching data\n DataInputStream dataInputStream = new DataInputStream(connection.getInputStream());\n // Initialize stream for writing\n streamToFile = getContentResolver().openOutputStream(dFile.getUri());\n\n //streamToFile = new FileOutputStream(f);\n // Buffor for data\n byte buffor[] = new byte[100];\n // Amount of readed data\n int gotBytes = dataInputStream.read(buffor, 0, 100);\n // Total readed data\n int totalBytes = 0;\n // Read untill end of file\n while (gotBytes != -1) {\n // Write read data to buffer\n streamToFile.write(buffor, 0, gotBytes);\n // How many bytes read\n gotBytes = dataInputStream.read(buffor, 0, 100);\n // Add readed bytes to total counter\n totalBytes += gotBytes;\n // Send message with readed bytes\n sendBroadcast(totalBytes);\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n // Close connetions\n if (connection != null)\n connection.disconnect();\n\n if (streamToFile != null) {\n try {\n streamToFile.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "a114df64ba2d848c14d68de99ab6f7e2", "score": "0.5983395", "text": "private void sendBroadcast(int value) {\n Intent intent = new Intent(NOTIFICATION);\n intent.putExtra(\"downloaded\", value);\n sendBroadcast(intent);\n }", "title": "" }, { "docid": "b93480d196cc34e4d3a2130c643b06a4", "score": "0.59749025", "text": "private void showNotificationCourse(Bundle data) {\n\n/* try {\n int unreadNotificationCount = Integer.valueOf(data.getString(\"total_unread_notification\"));\n NotificationCountEventBus.Event event = new NotificationCountEventBus.Event(unreadNotificationCount);\n NotificationCountEventBus.getInstance().post(event);\n } catch (Exception ignored) {\n\n }*/\n\n // check the type_push from data and navigate to activity\n Intent intent = navigateNotification(data);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this, notificationId, intent,\n PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT);\n\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(getNotificationIcon())\n .setContentTitle(data.getString(\"title\"))\n .setContentText(data.getString(\"body\"))\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(notificationId++, notificationBuilder.build());\n }", "title": "" }, { "docid": "3d8d01fe29c823448b564bac766e5a37", "score": "0.59692043", "text": "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "title": "" }, { "docid": "10dcbf4852cd2953fbb4fb9d89ba5ea5", "score": "0.595693", "text": "public void getDownloadItem() {\n List<Download> downloadList = dataSource.getDownloadLists();\n DownloadListAdapter downloadListAdapter = new DownloadListAdapter(DownloadActivity.this, downloadList);\n recyclerViewDownloadList.setAdapter(downloadListAdapter);\n recyclerViewDownloadList.setLayoutManager(new LinearLayoutManager(this));\n downloadListAdapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "3cf91a1c850b8afc9d4c041e8a96ad0a", "score": "0.59554565", "text": "@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n Bundle bundle = intent.getExtras();\n String url = bundle.getString(\"downloadUrl\");\n PreferenceUtils.setString(UpdateVersionService.this, \"apkDownloadurl\", url);\n nm.notify(titleId, notification);\n downLoadFile(url);\n return Service.START_STICKY;\n }", "title": "" }, { "docid": "bcb7ccdfda0794739b511091ca68b0d5", "score": "0.5943297", "text": "@Override\n public void onClick(View view) {\n if(!titleNameofFiles.contains(content.getFileName())) {\n // Download the content\n //Toast.makeText(getActivity(), \"::Download process begins:: with url:\" + content.getDownloadUrl(), Toast.LENGTH_SHORT).show();\n Log.i(\"url:\", content.getDownloadUrl());\n// new ContentDownloader(getActivity()).downloadFile(content.getDownloadUrl(),content.getTitle(),choosenSubject,choosenType);\n AnotherContentDownloader.getInstance(getActivity()).downloadFile(content.getDownloadUrl(), content.getFileName(), choosenSubject, choosenType);\n\n }else{\n Toast.makeText(getActivity(),\" You already have downloaded this file!\",Toast.LENGTH_SHORT).show();\n }\n DialogFragment dialog = (DialogFragment) getFragmentManager().findFragmentByTag(\"Download\");\n dialog.dismiss();\n }", "title": "" }, { "docid": "cb1fc7ab478fd7f929e1101e3f317b52", "score": "0.5936037", "text": "private void sendNotification() {\n }", "title": "" }, { "docid": "8aed43762d398eefc1429669dd3042a0", "score": "0.59266734", "text": "public void download() {\n }", "title": "" }, { "docid": "9157ccc4dce4b2ec92e9cf6840e08dfa", "score": "0.59220433", "text": "@Override\r\n \t\t\tpublic void onClick(View arg0) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, SettingActivity.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}", "title": "" }, { "docid": "51889556ab9bce2c169a53c19955ad8c", "score": "0.59216154", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()) {\n\t\t\tcase R.id.add_download:\n gotoAddDownLoadTask();\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "fb20de2a41de6976b5278c7b1f4826a9", "score": "0.5915053", "text": "@Override\n\t\t\tpublic void onDownloadSuccess(String result) {\n\t\t\t\tld.dismiss();\n\n\t\t\t\tif (getAppBrief(result)) {\n\n\t\t\t\t\tapp_advers.start(HomeActivity.this, mris, imageId, 3000,\n\t\t\t\t\t\t\tovalLayout, R.drawable.dot_focused,\n\t\t\t\t\t\t\tR.drawable.dot_normal);\n\t\t\t\t}\n\n\t\t\t\tappsAdapter.notifyDataSetChanged();\n\n\t\t\t}", "title": "" }, { "docid": "13392d6066c8d354a5f43cecc5a2b80d", "score": "0.5896195", "text": "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9faa5fa2ec3f655b44001c28744b6202", "score": "0.58854634", "text": "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }", "title": "" }, { "docid": "129d91d6862b9cc492155964a2f29e78", "score": "0.5878222", "text": "@Override\n public void onClick(View v) {\n\n Intent intent;\n intent = new Intent(AppMenu.this, AssetDownload.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "d277d2fc336269759b27e6894ac471ac", "score": "0.58773404", "text": "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tdownloadHelper = new DownloadFileFromUrl();\n\t\t\t\tdownloadHelper.execute(file_url);\n\t\t\t}", "title": "" }, { "docid": "c65e4dbb70e2594079057f964a07dffe", "score": "0.58750993", "text": "@Override\r\n\t\t\tpublic void notificationClicked(Notification paramNotification) {\n\r\n\t\t\t\tMobclickAgent.onEvent(getActivity(),\r\n\t\t\t\t\t\tUMengEventID.NOTIFICATION_LIST_CLICK);\r\n\t\t\t\t// 没有读过这条Notification\r\n\t\t\t\tif (paramNotification.readState == 0) {\r\n\t\t\t\t\tparamNotification.readState = 1;\r\n\r\n\t\t\t\t\t// 更新数据库\r\n\t\t\t\t\tDDBOpenHelper mDdbOpenHelper = DDBOpenHelper\r\n\t\t\t\t\t\t\t.getInstance(getActivity());\r\n\t\t\t\t\t//\r\n\t\t\t\t\tmDdbOpenHelper\r\n\t\t\t\t\t\t\t.updateReadState(paramNotification.activityId);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tswitch (paramNotification.type) {\r\n\t\t\t\tcase NotificationType.ANSWER:\r\n\t\t\t\t\t// ask someone's question be same with\r\n\t\t\t\t\t// other_answer_the_question_your_starrred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new AnswerNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.ASK:\r\n\t\t\t\t\t// the same interface with starred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new StarredNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.LIKED_ANSWER:\r\n\t\t\t\t\t// the same interface with starred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new AnswerNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.LIKED_QUESTION:\r\n\t\t\t\t\t// the same interface with starred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new StarredNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.OTHER_ANSWER_THE_QUESTION_YOUR_STARRED:\r\n\t\t\t\t\t// the same interface with answer\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new AnswerNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.OTHER_FORWARD_YOU_QUESTION:\r\n\t\t\t\t\t// the same interface with starred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new StarredNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.STARRED:\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new StarredNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.THANKS_CARD:\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new ThankYouNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "title": "" }, { "docid": "cb3aa8198643f3dba6a003cd6651540d", "score": "0.5873325", "text": "@Override\n public void onClick(View view) {\n getOps().downloadVideo();\n }", "title": "" }, { "docid": "76c7c06a439f742f98db4b9e2b17a93a", "score": "0.5857305", "text": "public void onFileDownloadComplete(String filePath);", "title": "" }, { "docid": "f3121f54baacc6d599781122e5d49822", "score": "0.5856146", "text": "public void onClickDeclineSignal(View view) {\n\n NotificationManager myNotMng = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n // prepare intent which is triggered if the\n // notification is selected\n\n Intent myNotiIntent = new Intent(this,NotificationActivity.class);\n\n /* A pending intent is a token that you give to another application,\n which allows this other application to use the permissions of your application to execute a predefined piece of code.*/\n\n PendingIntent myPenNotiIntent = PendingIntent.getActivity(this, 0, myNotiIntent, 0);\n\n // build notification\n\n NotificationCompat.Builder notiSmartHome = new NotificationCompat.Builder(this)\n .setContentTitle(\"SmartHome-Alert\")\n .setContentText(\"Pending SmartHome protocol\")\n .setSmallIcon(R.drawable.notiiconalert2) //smallIcon = icon showed in status bar\n .setContentIntent(myPenNotiIntent);\n\n\n notiSmartHome.setContentIntent(myPenNotiIntent);\n notiSmartHome.setAutoCancel(true);\n notiSmartHome.setLights(Color.GREEN, 500, 500); // set device LEDs when pending notification\n long[] pattern = {500,500,500,500,500,500,500,500,500}; //vibrate pattern\n notiSmartHome.setVibrate(pattern); //vibrate with defined pattern when notification is pending\n\n Uri myNotifSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n notiSmartHome.setSound(myNotifSound);\n\n myNotMng.notify(1,notiSmartHome.build());\n\n finish();\n\n }", "title": "" }, { "docid": "76dea630b7624f200fde07d26d1823fd", "score": "0.5853724", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n downLoadApk();\n\n\n //new DownLoadNewVer().execute();\n //finish();\n }", "title": "" }, { "docid": "1cc3ee57f790a55b9941189e9c8ccd8a", "score": "0.58337116", "text": "public void OnFileDataReceived(byte[] data,int read, int length, int downloaded);", "title": "" }, { "docid": "aa0a235dd8f10dfd067db10a7271f843", "score": "0.5832557", "text": "@Override\n protected void onPreExecute() {\n Dialog.setMessage(\"Downloading Pending Delivery Status..\");\n Dialog.setCancelable(false);\n Dialog.show();\n }", "title": "" }, { "docid": "95c7d9b708c1dea2832eb8f12178accc", "score": "0.5826477", "text": "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tcallintentforattachment();\n\t\t\t\t}", "title": "" }, { "docid": "dca9143253bac5538436f8fe53a4e2c5", "score": "0.58105344", "text": "@Override\n protected void onPostExecute(Integer downloadStatue) {\n if(downloadStatue == DOWNLOAD_SUCCESS)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onSuccess();\n //scanFile();\n }else if(downloadStatue == DOWNLOAD_FAILED)\n {\n this.setDownloadCanceled(false);\n this.setDownloadPaused(false);\n downloadListener.onFailed();\n }else if(downloadStatue == DOWNLOAD_PAUSED)\n {\n downloadListener.onPaused();\n }else if(downloadStatue == DOWNLOAD_CANCELED)\n {\n downloadListener.onCanceled();\n }\n }", "title": "" }, { "docid": "fc8fd5a046ba613a16c302a037eb29ae", "score": "0.5808254", "text": "@Override\n public void OnMessageItemClicked(int position, List<MessageModel> messagesList ) {\n String url = messagesList.get(position).getUrl();\n if(url != null){downloadfiledata(url);}\n }", "title": "" }, { "docid": "7950e97923bfcc1b84c9ca0c480dd28e", "score": "0.5800429", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"view\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tUtils.createComicFolder(getApplicationContext(),\n\t\t\t\t\t\tcomicList.get(currentSelector).getId());\n\t\t\t\tnew DownloadFileFromURL(MainActivity.this, comicList.get(\n\t\t\t\t\t\tcurrentSelector).getId(), 0).execute(\n\t\t\t\t\t\tcomicList.get(currentSelector).getContentUrl(),\n\t\t\t\t\t\tcomicList.get(currentSelector).getThumbUrl());\n\t\t\t}", "title": "" }, { "docid": "4be22add308658459fd317e4149304db", "score": "0.580036", "text": "private void handleActionFoo() {\n NewMessageNotification.notify(this, getImage());\n\n SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);\n long duration = pref.getLong( \"bennettscash.pics.duration\", 0 );\n\n Notifier.setupTimer(this, duration);\n// Intent intent = new Intent(this, TimerService.class);\n// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n// startActivity(intent);\n }", "title": "" }, { "docid": "cd17c2d8401eb20ae56b4a74234559af", "score": "0.57948947", "text": "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tprogressBar_downLoad.setMax(100);\n\t\t\t\t\t\t\t\tFileDownProcessBar fdpb=new FileDownProcessBar(\n\t\t\t\t\t\t\t\t\t\tmContext, progressBar_downLoad);\n\t\t\t\t\t\t\t\tfdpb.downLoadApkFile(appUpdateUrl, \"iYubaClient\"+version_code, new DownLoadFailCallBack() {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void downLoadSuccess(String localFilPath) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\tupdate.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\tprogressBar_downLoad.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\t\t\t\t\tFailOpera.Instace(mContext).openFile(localFilPath);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void downLoadFaild(String errorInfo) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\tupdate.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\tprogressBar_downLoad.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\t\t\t\t\tToast.makeText(mContext,\n\t\t\t\t\t\t\t\t\t\t\t\tR.string.about_error,\n\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void downLoadCurrProcess(String Percentage) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void downLoadBegin() {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "75916ccde38a494e3992633f3306a3b8", "score": "0.5794333", "text": "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tNotificationManager nm = (NotificationManager) getActivity().getSystemService(NOTIFICATION_SERVICE);\r\n\t\t\t\t\tIntent openIntent = new Intent(getActivity(),FullscreenActivity.class);\r\n\t\t\t\t\tPendingIntent contentIntent = PendingIntent.getActivity(getActivity(), 0, openIntent, 0);\r\n\t\t\t\t\tint icon = R.drawable.preferences_desktop_notification;\r\n\t\t\t\t\tNotification n = new Notification(icon,\"通知来了\",System.currentTimeMillis());\r\n\t\t\t\t\tn.flags |= Notification.FLAG_AUTO_CANCEL;//自动消失\r\n\t\t\t\t\tn.defaults = Notification.DEFAULT_SOUND;//声音默认\r\n\t\t\t\t\tn.setLatestEventInfo(getActivity(), \"通知标题\", \"通知正文\", contentIntent);\r\n\t\t\t\t\tnm.notify(0,n);\r\n\t\t\t\t}", "title": "" }, { "docid": "57226c5c45a1e5039610b34340a80376", "score": "0.5789736", "text": "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tDialog.setMessage(\"Downloading Delivery Data..\");\n\t\t\tDialog.setCancelable(false);\n\t\t\tDialog.show();\n\t\t}", "title": "" }, { "docid": "e45a946ef5ec890fe7e501f97bd5521c", "score": "0.57876086", "text": "public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimetype,\n long contentLength) {\n\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));\n }", "title": "" }, { "docid": "bcc01bb5fcc93d74569b7e7ee98b2a1f", "score": "0.5786539", "text": "public void onDownloadProgress(int current, int total);", "title": "" }, { "docid": "ac87d498b8d318e597293e67a0564737", "score": "0.57849306", "text": "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase UPDATAVIEW:\n\t\t\t\tif (sModel!=null) {\n\t\t\t\t\ttv_result_songname.setText(sModel.getSongName());\n\t\t\t\t\ttv_result_artistname.setText(sModel.getArtistName());\n\t\t\t\t\ttv_result_albumName.setText(sModel.getAlbumName());\n\t\t\t\t\ttv_result_songtime.setText((sModel.getTime()/60+\":\"+(sModel.getTime()%60)));\n\t\t\t\t\ttv_result_songsize.setText(Formatter.formatFileSize(Musicdownloadactivity.this, sModel.getSize()));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase STARTDOWNLOAD:\n\t\t\t\tif (sModel!=null) {\n\t\t\t\t\tshownotification();\n\t\t\t\t\tdownload();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tcase UPDATAPROCESS:\n\t\t\t\t\tnotification.contentView.setTextViewText(R.id.content_view_text1, \"正在下载: \"+sModel.getSongName()+\"_\"+sModel.getArtistName()+\"\"+(complete*100)/contentLength + \"%\");\n\t\t\t\t\tnotification.contentView.setProgressBar(R.id.content_view_progress, contentLength, complete, false);\n\t\t\t\t\t manger.notify(1, notification);\n\t\t\t\t\t handler.removeMessages(UPDATAPROCESS);\n\t\t\t\t\t handler.sendEmptyMessageDelayed(UPDATAPROCESS, 500);\n\t\t\t\t\t break;\n\t\t\t\tcase STOP:\n\t\t\t\t\tmanger.cancel(1); \n\t\t\t\t\thandler.removeMessages(STOP);\n\t\t\t\t\thandler.removeMessages(UPDATAPROCESS);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "cb1bdd691e51119b423c4cd68cb12d27", "score": "0.57798904", "text": "public void onClick() {\n getRequestCycle().setRequestTarget(new IRequestTarget() {\n \n public void detach(RequestCycle requestCycle) {\n }\n \n public void respond(RequestCycle requestCycle) {\n WebResponse r = (WebResponse) requestCycle.getResponse();\n r.setAttachmentHeader(fileName);\n try {\n File file = AttachmentUtils.getFile(attachment, getJtrac().getJtracHome());\n InputStream is = new FileInputStream(file);\n try {\n Streams.copy(is, r.getOutputStream());\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n }\n });\n }", "title": "" }, { "docid": "80d574fa66ab3d6eac5271119ecae4b8", "score": "0.5777111", "text": "@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(0).webUrl);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }", "title": "" }, { "docid": "2e90e4d9723a62fdeda9c893d10d98a2", "score": "0.5775816", "text": "private void showUploadFinishedNotification(@Nullable Uri downloadUrl, @Nullable Uri fileUri) {\n dismissProgressNotification();\n\n // Make Intent to UploadActivity\n Intent intent = new Intent(this, Upload_Video_activity.class)\n .putExtra(EXTRA_DOWNLOAD_URL, downloadUrl)\n .putExtra(EXTRA_FILE_URI, fileUri)\n .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n boolean success = downloadUrl == null;\n String caption=\"\" ;\n if (success==true)\n {\n caption=\"Upload fail\";\n }\n else if (success==false)\n {\n caption=\"Upload Complete\";\n }\n\n showFinishedNotification(caption, intent);\n }", "title": "" }, { "docid": "9809de30495f329a2fa3f8e8bf6628c5", "score": "0.57701284", "text": "private void notifyStateChange(DownloadInfo downloadInfo) {\n for (DownloadObserver oberver : observers) {\n oberver.onDownloadProgressChnage(downloadInfo);\n }\n }", "title": "" }, { "docid": "b20d4c979d94c28ad0ad3bf5a5a5ef1e", "score": "0.576793", "text": "private void startDownload() {\n Uri uri = Uri.parse( data.getStringExtra(PARAM_URL) );\n dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n DownloadManager.Request request = new DownloadManager.Request( uri );\n request.setAllowedNetworkTypes( DownloadManager.Request.NETWORK_MOBILE | DownloadManager.Request.NETWORK_WIFI)\n //移动网络情况下是否允许漫游。\n .setAllowedOverRoaming(false)\n .setTitle(\"更新\") // 用于信息查看\n .setDescription(\"下载apk\"); // 用于信息查看\n //利用此属性下载后使用响应程序打开下载文件\n //request.setMimeType(\"application/vnd.android.package-archive\");\n request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, new Date().getTime()+\".apatch\");\n enqueue = dm.enqueue(request);\n }", "title": "" }, { "docid": "3c7f2b7d5d14975d9853169e5bf4083d", "score": "0.5767167", "text": "@Override\n public void onClick(View v) {\n super.onClick(v);\n switch (v.getId()) {\n case R.id.xiazai:\n if (!TextUtils.isEmpty(url)) {\n T.showShort(\"正在跳入异次元请求下载~~~\");\n Uri uri = Uri.parse(url);\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(intent);\n }\n break;\n\n default:\n break;\n }\n\n\n }", "title": "" } ]
5137825f18d6d0788a5c434f3f1383a9
repeated .demo.Customer customer = 1;
[ { "docid": "4032f0bf6d8a793b368bfe0480954aec", "score": "0.0", "text": "public grpc.customerProto.CustomerProtos.Customer getCustomer(int index) {\n if (customerBuilder_ == null) {\n return customer_.get(index);\n } else {\n return customerBuilder_.getMessage(index);\n }\n }", "title": "" } ]
[ { "docid": "c9e0abdd5fd8e65618ce31cbc987ba2b", "score": "0.5949998", "text": "void setCustomer(C customer);", "title": "" }, { "docid": "f9a461e9d308d2d116ccd96ba2c6d244", "score": "0.59110713", "text": "public static void addCustomer (Customer c){\n }", "title": "" }, { "docid": "ad890ed54ac444c8198de69163135816", "score": "0.5851971", "text": "public static void main(String[] args) {\nCustomer cm1 = new Customer(\"Abdallah Aleies\", \"AbdallahAleies@gmail.com\");\nCustomer cm2 = new Customer(\"ADILET KYRGYZ\", \"Adilet@yahoo.com\");\nCustomer cm3 = new Customer(\"Anastasia Zasi\", \"Anastasia@outlook.com\");\nSystem.out.println(cm3.count);\nSystem.out.println(Customer.count);\nCustomer cm4 = new Customer(\"Burak\", \"Burak@yahoo.com\");\nSystem.out.println(cm1.toString());\nSystem.out.println(cm2.toString());\nSystem.out.println(cm3.toString());\n\nSystem.out.println(Customer.count); \ncm1.count=10;\nSystem.out.println(cm1.count);\n\n\t}", "title": "" }, { "docid": "26f2ecc70e1e0a50c41cbc39e435c655", "score": "0.5616059", "text": "void addCustomer (Customer customer);", "title": "" }, { "docid": "919817edddc654f3481c5f621dc28fe5", "score": "0.5507266", "text": "Customer placeNewCustomer(Customer customer);", "title": "" }, { "docid": "33696e302481ed70d2dfa06bcffd0207", "score": "0.547991", "text": "public Customer add(Customer customer);", "title": "" }, { "docid": "e5c64ca12369e21b6a8a9379ab9cc857", "score": "0.5459526", "text": "public void setCustomer(Customer customer)\n {\n this.customer = customer;\n }", "title": "" }, { "docid": "32682d929137d7c5958410b8d89b4a8d", "score": "0.54368526", "text": "public Customer getCustomer()\n {\n return customer;\n }", "title": "" }, { "docid": "843dfbe9b744f89996965a83c02b1fc0", "score": "0.53983414", "text": "public InterestedCustomers getInterestedCustomers()\n{\n return interestedcustomers;//interestedcustomers needs to be initialized in constructor\n}", "title": "" }, { "docid": "9b27dccced792e6044487aeb4584f0b6", "score": "0.53894466", "text": "public void setCustomer(Customer customer) {\n\t\t\r\n\t}", "title": "" }, { "docid": "8cd17ac4987eda6ec1ddc6456dbd44f3", "score": "0.53462785", "text": "public Customer makeANewCustomer() {\r\n\t\tCustomer newCustomer = new Customer(customerId);\r\n\t\tcustomerId += 1;\r\n\t\treturn newCustomer;\r\n\t}", "title": "" }, { "docid": "e55950a98a919a6a6d07f858ab215be5", "score": "0.5263912", "text": "public static void main(String[] args) {\n Customer customer = new Customer(\"rob\", 34);\n Customer secondcustomer = customer;\n secondcustomer.setBalance(20);\n secondcustomer.setName(\"tom\");\n System.out.println(\"welcome \" + customer.getName() + \"is \" + customer.getBalance());\n ArrayList<Integer> intList = new ArrayList<>();\n intList.add(1);\n intList.add(3);\n intList.add(4);\n for (int i = 0; i < intList.size(); i++) {\n System.out.println(i + \": \" + intList.get(i).intValue());\n }\n intList.add(1,2);\n for (int i = 0; i < intList.size(); i++) {\n System.out.println(i + \": \" + intList.get(i).intValue());\n }\n\n }", "title": "" }, { "docid": "9f6b23bdb30b220d4ad5c7c68bec3fbe", "score": "0.5263395", "text": "public void setCustomer(Customer customer) {\r\n this.customer = customer;\r\n }", "title": "" }, { "docid": "42a0a7e0e1f06f558378fb1609b42d66", "score": "0.52144635", "text": "public static void addCustomer(Customer newCustomer){\n customerList.add(newCustomer); \n }", "title": "" }, { "docid": "e146c47e01a4cc37ba9316f7192c3144", "score": "0.52137935", "text": "public PtCustomerExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "9fddf75ef592af2e66797daaa9c30352", "score": "0.52062064", "text": "public Customer getCustomer() {\r\n return customer;\r\n }", "title": "" }, { "docid": "0078b028059ee3c30c7636ba1a312859", "score": "0.5196749", "text": "public ReflectedCustomerGenerated() {}", "title": "" }, { "docid": "2a76e80674e20826d7214baa5296d1a9", "score": "0.51955044", "text": "public void addCustomer(Customer customer)\n { customerList.add(customer);\n }", "title": "" }, { "docid": "5e9a67d3cb05fa94b58cda5503da876b", "score": "0.5176767", "text": "public Customer getCustomer() {\n return customer;\n }", "title": "" }, { "docid": "5e9a67d3cb05fa94b58cda5503da876b", "score": "0.5176767", "text": "public Customer getCustomer() {\n return customer;\n }", "title": "" }, { "docid": "346aacd1d7e8a62e48a3756a04683ae8", "score": "0.5176249", "text": "public void setCustomer(Customer customer) {\n this.customer = customer;\n }", "title": "" }, { "docid": "346aacd1d7e8a62e48a3756a04683ae8", "score": "0.5176249", "text": "public void setCustomer(Customer customer) {\n this.customer = customer;\n }", "title": "" }, { "docid": "bf5d19f92cdff56bf94dae42fa50690b", "score": "0.5166674", "text": "public Customer() {\n }", "title": "" }, { "docid": "bf5d19f92cdff56bf94dae42fa50690b", "score": "0.5166674", "text": "public Customer() {\n }", "title": "" }, { "docid": "acad7b894a36da077d89c2f56f8b967e", "score": "0.51653737", "text": "public Customer() {\r\n }", "title": "" }, { "docid": "7d2e916b12b66f2a476e6bd499dfa3b6", "score": "0.5160626", "text": "public static void main(String args[]) {\r\n\tCustomer al = new Customer(\"Albert\", 180);\r\n\r\n\tOrderFlawed orig = new OrderFlawed(al);\r\n\tOrderFlawed bogus = (OrderFlawed) orig.clone();\r\n\r\n\tbogus.getCustomer().setIQ(100);\r\n\tSystem.out.println(orig.getCustomer().getIQ());\r\n}", "title": "" }, { "docid": "b658137ed2a1e76069e9f4a2a355e2ff", "score": "0.5159193", "text": "public static void main(String[] args) \r\n\t{\nCustomer cs=new Customer();\r\ncs.ac.acc_no=101;\r\nSystem.out.println(cs.ac.acc_no);\r\ncs.ac.balance=1000;\r\nSystem.out.println(cs.ac.balance);\r\ncs.name=\"Saumya\";\r\nSystem.out.println(cs.name);\r\nBankingClient bc=new BankingClient();\r\nbc.add(cs);\r\n\r\n\t}", "title": "" }, { "docid": "2a0a0f847639ee0c917daae095ea5c4b", "score": "0.5153111", "text": "public void saveCustomer(Customer theCustomer);", "title": "" }, { "docid": "87ccf7ed68395380917699fd949bb9d9", "score": "0.51434255", "text": "public Customer() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "title": "" }, { "docid": "09449a0486c6dc01e7da890c2428aada", "score": "0.5133906", "text": "@Override\r\n\tpublic void newCustomer(Customer newCustomer) {\n\r\n\t}", "title": "" }, { "docid": "3e0d03bba8999f6f8d39beb8aa88ca6d", "score": "0.5122141", "text": "public CustomerExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "title": "" }, { "docid": "785f6eaf7227378390dcc8b4f2c891eb", "score": "0.51172364", "text": "public String addCustomer(Customer customer);", "title": "" }, { "docid": "796cf1361e1b693e51985aeca0ad5276", "score": "0.51008034", "text": "public static void main(String[] args) {\nAbc abc1=new Abc();\nabc1.i=10;\nSystem.out.println(abc1.i);\n\t}", "title": "" }, { "docid": "40e80c0159d77845cd30a7e2b5ba7633", "score": "0.50840807", "text": "Customer createCustomer();", "title": "" }, { "docid": "7f31015e44ff48f4e6871b91a2fd2488", "score": "0.5032447", "text": "public void addCustomer(Customer customer) {\r\n\t\t_customer = customer;\r\n\t\ttimeRemaining = _customer.getServiceTime();\r\n\t\tnumCustomers++;\r\n\r\n\t}", "title": "" }, { "docid": "d70cb5be1652cb68a68f8884b424b085", "score": "0.5027444", "text": "private Customer(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "d70cb5be1652cb68a68f8884b424b085", "score": "0.5027444", "text": "private Customer(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "b4e73d805cf31b8b752adff8c3c186a5", "score": "0.5020939", "text": "public Customer() {\n\t}", "title": "" }, { "docid": "ab2f5a8749fe4e72669e8e368a02444b", "score": "0.50202477", "text": "Person(String name){\n nr = counter++;\n this.name = name;\n }", "title": "" }, { "docid": "4d1f32b6f882139977b311a7e761bec5", "score": "0.50190973", "text": "public interface ListAllCustomer {\n}", "title": "" }, { "docid": "7b1129660dd2a4b165517754d921919e", "score": "0.501783", "text": "grpc.customerProto.CustomerProtos.Customer getCustomer(int index);", "title": "" }, { "docid": "aa275508c7bc0a313408f81dfebd9fe4", "score": "0.50068134", "text": "public Customer(String newname,int newid)\n {\n name = newname;\n id = newid;\n }", "title": "" }, { "docid": "74516b9727bb2f3a9fc738875bf19f75", "score": "0.500384", "text": "public Customer()\n {\n // initialise instance variables\n id = genID();\n name = genName();\n }", "title": "" }, { "docid": "eddbe2d58c03c39ddeb00979b311fd87", "score": "0.5000102", "text": "public interface CustomerService {\r\n}", "title": "" }, { "docid": "e62f0ba7c04204c572b2291575ef44a3", "score": "0.49950305", "text": "public static com.github.evandrocarvalho.avro.reflection.ReflectedCustomerGenerated.Builder newBuilder(com.github.evandrocarvalho.avro.reflection.ReflectedCustomerGenerated other) {\n return new com.github.evandrocarvalho.avro.reflection.ReflectedCustomerGenerated.Builder(other);\n }", "title": "" }, { "docid": "05cf4565f36e1bf00fc5fe2f7b9b2523", "score": "0.49865425", "text": "void registerCustomer(Customer customer);", "title": "" }, { "docid": "9ae1b00acc85dfa6b9d42115c5a7a6a3", "score": "0.49818793", "text": "public Customer() {\r\n this.corporateName = \"\";\r\n this.corporateAddress = \"\";\r\n this.customerID = \"\";\r\n this.customerContactNumber = \"\";\r\n }", "title": "" }, { "docid": "6de14199f036ae558f4c128afbddc1d7", "score": "0.4981527", "text": "public interface CustomMof14ModelElement extends javax.jmi.reflect.RefObject {\n}", "title": "" }, { "docid": "4b8544faee741bac5b07bec9eea9ac87", "score": "0.49743778", "text": "public void setCustomerProfile(CustomerProfile custProfile);", "title": "" }, { "docid": "f9c3cd47ce80d4633da6edafedb8bbf3", "score": "0.49626893", "text": "void register(Customer customer);", "title": "" }, { "docid": "427b73fc9a0b4accfc8c616f53e2066f", "score": "0.49568796", "text": "public interface CustomerLocalBusiness {\n public abstract java.lang.Long getId();\n\n public abstract java.lang.String getLastName();\n\n public abstract void setLastName(java.lang.String lastName);\n\n public abstract java.lang.String getFirstName();\n\n public abstract void setFirstName(java.lang.String firstName);\n\n void setTestChangeCMPFieldName(java.lang.Float testCMPField);\n\n \n}", "title": "" }, { "docid": "58427cb2875b281861229bee2878503d", "score": "0.49547365", "text": "public void setCustomer(bean.stateless.Customer customer) {\n this.customer = customer;\n }", "title": "" }, { "docid": "c1bce01938153ccf7ff47ba64bbced5a", "score": "0.49489883", "text": "public static com.github.evandrocarvalho.avro.reflection.ReflectedCustomerGenerated.Builder newBuilder() {\n return new com.github.evandrocarvalho.avro.reflection.ReflectedCustomerGenerated.Builder();\n }", "title": "" }, { "docid": "73ab58c8f8d972ea7f19360d4ecc4214", "score": "0.49365777", "text": "@Fields({\n @Field(propName = \"name\", seriaName = \"heaven7\", type = String.class),\n @Field(propName = \"test_object\", seriaName = \"test_object\",\n flags = FLAG_EXPOSE_DEFAULT | FLAG_EXPOSE_SERIALIZE_FALSE, type = Object.class),\n @Field(propName = \"test_Format\", seriaName = \"test_Format\", flags = 1, type = Double.class),\n @Field(propName = \"test_int\", seriaName = \"test_int\", type = int.class,\n flags = FLAG_EXPOSE_DEFAULT | FLAG_COPY | FLAG_RESET),\n @Field(propName = \"test_list\", seriaName = \"test_list\", type = long.class, complexType = COMPLEXT_LIST,\n flags = FLAG_RESET | FLAG_SHARE | FLAG_SNAP),\n @Field(propName = \"test_array\", seriaName = \"test_array\", type = String.class,\n complexType = COMPLEXT_ARRAY,\n flags = FLAG_RESET | FLAG_SHARE | FLAG_SNAP\n ),\n})\npublic interface StudentBind extends ICopyable, IResetable, IShareable, ISnapable {\n}", "title": "" }, { "docid": "bce78145cbfb1cbdb939fd828e0f4394", "score": "0.49328095", "text": "private void addCustomer(Customer customer){\n \tcustomerDAO.insert(customer);\n }", "title": "" }, { "docid": "4d7c10a6cf0ac2d2c4249440efe4131b", "score": "0.49088308", "text": "int countByExample(Member_copyExample example);", "title": "" }, { "docid": "0cb8846fa8c604cd14411dedc6dc0d4c", "score": "0.49078164", "text": "@Override\r\n public void Add() {\n System.out.println(\"Customer added\");\r\n }", "title": "" }, { "docid": "14827732008f56abd6e10f7e3e2f40f7", "score": "0.49068955", "text": "protected Customer() {}", "title": "" }, { "docid": "5ff461710ea3ca67a5b10625f04bcdd2", "score": "0.49037692", "text": "public Service() {\n//$Section=DefaultConstructor$ID=417A49F50290$Preserve=yes\n//$Section=DefaultConstructor$ID=417A49F50290$Preserve=no\n }", "title": "" }, { "docid": "e6a2baff13f58af9730bb027136528b5", "score": "0.49034196", "text": "private CustomerPB(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\r\n super(builder);\r\n }", "title": "" }, { "docid": "0662213d0d4c99bc7e09fe410f64c562", "score": "0.48901308", "text": "private CustomerRegistry(){ \n }", "title": "" }, { "docid": "a3ceada78344d28779d999eb885d7f3e", "score": "0.4888109", "text": "@Test\n\tvoid TestRegisterCustomer(Customer c) {\n\t}", "title": "" }, { "docid": "06d7eb05f4b1dd6643e0fcb44cded573", "score": "0.48805025", "text": "public interface Customer {\n\n /**\n * This methods will be used to transfer amount from given account to target\n * account.\n *\n * @param amount\n * @param account\n * @param targetAccount\n */\n void transfer(long amount, Account account, Account targetAccount) throws NotFoundException;\n\n /**\n * This methods will be used to get cpr of Customer.\n *\n * @return cpr as String\n */\n String getCpr();\n\n /**\n * This methods will be used to get name of Customer.\n *\n * @return name as String\n */\n String getName();\n\n /**\n * This methods will be used to get Bank of Customer.\n *\n * @return Bank\n */\n Bank getBank();\n\n /**\n * This methods will be used to get all Customer Accounts.\n *\n * @return Map of account numbers & accounts\n */\n Map<String, Account> getAccounts();\n\n /**\n * This method adds account to map\n *\n * @param account account to add\n */\n void addAccount(Account account);\n\n /**\n * This method will be used to get a List of Movement, representing Account\n * withdrawals, by given account number.\n *\n * @param accNumber\n * @return List of Movement\n * @throws exceptions.NotFoundException\n */\n List<Movement> getListOfWithdrawal(String accNumber) throws NotFoundException;\n\n /**\n * This method will be used to get a List of Movement, representing Account\n * deposits, by given account number.\n *\n * @param accNumber\n * @return List of Movement\n * @throws exceptions.NotFoundException\n */\n List<Movement> getListOfDeposits(String accNumber) throws NotFoundException;\n}", "title": "" }, { "docid": "a0e28524b4391247c4756b850027d5c5", "score": "0.48791376", "text": "void add(Customer cust) \r\n\t\t\tthrows DuplicateCustomerException;", "title": "" }, { "docid": "d267f9317a14e2a472daf64f5b141a38", "score": "0.4863735", "text": "public void setCustomer(Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t}", "title": "" }, { "docid": "f465016b805c9804ed2a1d4b44c28f06", "score": "0.48622409", "text": "Customer changeCustomersInformation(Customer customer);", "title": "" }, { "docid": "a55aaa61f5c3cb1b320bddb8fbdfa84e", "score": "0.48613605", "text": "public AbstractCustomer ()\n {\n super();\n id = IdGenerator.createId();\n customerInfos = new HashMap<PowerType, List<CustomerInfo>>();\n allCustomerInfos = new ArrayList<CustomerInfo>();\n }", "title": "" }, { "docid": "c235d36d497a6191f942214cdc3ec284", "score": "0.48599166", "text": "private Customer createCustomer(){\n Long id = Long.parseLong(\"10\");\n Customer customer = new Customer();\n customer.setId(id);\n customer.setName(\"Ali\");\n customer.setSurname(\"Veli\");\n customer.setIdentityNumber(\"1111111\");\n customer.setPhoneNumber(\"55555555\");\n customer.setJob(\"Engineer\");\n return customer;\n }", "title": "" }, { "docid": "a49424b5b3f67394c1563b8285c1ddaf", "score": "0.4859182", "text": "@Test\n\tpublic void createCustomerTest()\n\t{\n\t\tAddress ad = new Address();\n\t\t ad.setAddressId(11);\n\t\t Customer cust =new Customer(1,\"Priyanka\",\"pri@gmail.com\",\"h21\",\"1234\",ad);\n\t\t service.saveCustomer(cust);\n\t\t verify(repo,times(1)).save(cust);\n\t\t \n\t\t\n\t}", "title": "" }, { "docid": "f9f7f4cac5f33c8ff6c4575a248b4d3b", "score": "0.48267618", "text": "public static void main(String[] args) {\n//\n// sriAccount.deposit(51.0);\n// sriAccount.withdrawal(100.0);\n\n Account timsAccount=new Account(\"Tim\",\"time@mail.com\",\"0434-233-423\");\n System.out.println(timsAccount.getNumber() +\" Name :\" +timsAccount.getCustomerName());\n System.out.println(\"Current Balance is \"+timsAccount.getBalance());\n timsAccount.withdrawal(300.55);\n timsAccount.deposit(400.00);\n timsAccount.withdrawal(300.10);\n timsAccount.deposit(100.00);\n timsAccount.withdrawal(300.10);\n\n //Create a new class VipCustomer\n // it should have 3 field name,credit limit,and email address.\n // Create 3 constructors\n // 1st constructor empty should call the constructor with 3 parameters with default value\n // 2nd constructor should pass on the 2 values it receives and add a default value for the 3rd\n // 3rd constructor should save all fields.\n // create getters only for this using code generation of intellij as setter wont be needed\n // test and confirm it works.\n\n\n// VipPerson person1=new VipPerson();\n// System.out.println(person1.getName());\n//\n// VipPerson person2=new VipPerson(\"Bob\",341.43);\n// System.out.println(person2.getName());\n//\n// VipPerson person3=new VipPerson(\"Tim\",323.43,\"tm@email.com\");\n// System.out.println(person3.getName());\n// System.out.println(person3.getEmailAddress());\n\n\n }", "title": "" }, { "docid": "d93a789fe53b4bb7d2aa6b89587d548a", "score": "0.4816273", "text": "public interface Maker {\n\n}", "title": "" }, { "docid": "4ffbb6308ad6ec35d94217935cea51da", "score": "0.4815709", "text": "public Customer getCustomer(int theId);", "title": "" }, { "docid": "f50bb3462f450f47f04b9a049c382d6a", "score": "0.48123023", "text": "public Customer() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "a1eb97833d99b38e26cd0bdd57a5726d", "score": "0.4806742", "text": "public Customer(String name, int age, int phone) {\r\n\t\tthis.name = name;\r\n\t\tthis.age = age;\r\n\t\tthis.phone = phone;\r\n\t\t// assigns the customerId and increments by 1\r\n\t\tthis.id = ++customerId;\r\n\t}", "title": "" }, { "docid": "1026e2ae4f2a6da534026d3f349263af", "score": "0.4800633", "text": "Customer(){\n\t\tname = \"NA\";\n\t\tphone = \"NA\";\n\t\temail = \"NA\";\n\t\tadrs = null; // Ref Var -> let default value be null\n\t}", "title": "" }, { "docid": "fd3b1fc2a50f47188d39d7333cb287e6", "score": "0.47968045", "text": "public void newCustomer(Customer cust){\r\n customers.put(cust.getPhoneNo(), cust);\r\n this.save();\r\n }", "title": "" }, { "docid": "e278229bb1940eefafb6ca4b5ef82c59", "score": "0.4785787", "text": "public void get_Customer_Name() {\n\n\t}", "title": "" }, { "docid": "7cb1fd6cb4f183855de8c15973eb076c", "score": "0.47806415", "text": "public Customer(String namn)\n\t{\n\t\tshoppingBasket = new MyStack<String>();\n\t\tthis.name = namn;\n\t}", "title": "" }, { "docid": "9c8f352a1ca94bac43ef5f64e5f432f5", "score": "0.47666708", "text": "public static void main(String[] args) {\n Car car1=new Car();\n car1.power=100;\n car1.speed=200;\n car1.inc(car1);\n System.out.println(car1.power+\" \"+car1.speed);\n\n\n\n\n\n }", "title": "" }, { "docid": "2fc16b2df638b25a30a46f94e44ea494", "score": "0.4765677", "text": "public Builder setCustomer(String customer) {\n this.customer = customer;\n return this;\n }", "title": "" }, { "docid": "535a2bb1df1224be1c0df015d550a58a", "score": "0.47554335", "text": "public interface CustomerBrokerSale {\n //TODO: Documentar\n String getTransactionId();\n void setTransactionId(String transactionId);\n String getContractTransactionId();\n void setContractTransactionId(String contractTransactionId);\n long getTimestamp();\n String getPurchaseStatus();\n String getContractStatus();\n TransactionStatus getTransactionStatus();\n void setTransactionStatus(TransactionStatus transactionStatus);\n String getCurrencyType();\n String getTransactionType();\n String getMemo();\n}", "title": "" }, { "docid": "598fc7210a675ba2faa6a968c463b509", "score": "0.47527674", "text": "@Override\r\n\tpublic void updateCustomer(Customer changedCustomer) {\n\r\n\t}", "title": "" }, { "docid": "9907b44504bc4fd9b78066af6940eaae", "score": "0.47489968", "text": "public Customer() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "ab78e988dfb2b78d085feac9aa585e6b", "score": "0.47438714", "text": "public interface GetCustomerTypeV1x0Service {\n\t\n\t/**\n\t * Fetches the account and statement details. \n\t * \n\t * @param accountNumber - <code>java.lang.String</code>\n\t * @param phoneNumber - <code>java.lang.String</code>\n\t * @return <code>com.twc.soa.cust.domain.GCPV1x0.Response</code> \n\t */\n\tCustomerInfoV1x0 getCustomerInfoFromDB(String accountNumber, String phoneNumber);\n}", "title": "" }, { "docid": "74f538f32313516e1804cfb186f03c78", "score": "0.4739707", "text": "grpc.customerProto.CustomerProtos.CustomerOrBuilder getCustomerOrBuilder(\n int index);", "title": "" }, { "docid": "abb84a151cb66d573400687a6a223f10", "score": "0.47369772", "text": "model.proto.Name getName();", "title": "" }, { "docid": "45f78ebf96a2d9ae754899bc4c4bcc85", "score": "0.4736095", "text": "public static void main(String[] args) {\nEncapsulation2 e2=new Encapsulation2();\ne2.setName(\"this is my new name\"); // returns this stmt only as we are setting value before getting it\nSystem.out.println(e2.getName());\n\t}", "title": "" }, { "docid": "6c82b7955350701757066a69d9599fac", "score": "0.47333172", "text": "public static com.github.evandrocarvalho.avro.reflection.ReflectedCustomerGenerated.Builder newBuilder(com.github.evandrocarvalho.avro.reflection.ReflectedCustomerGenerated.Builder other) {\n return new com.github.evandrocarvalho.avro.reflection.ReflectedCustomerGenerated.Builder(other);\n }", "title": "" }, { "docid": "341fc66ecbcb7a3eb48f07cac85d31d3", "score": "0.47304696", "text": "@Test\n public void testSet(){\n User user = new User(){{\n setId(\"1\");\n setName(\"Joe\");\n setAge(12);\n }};\n Map<String,Object> userMap = new HashMap<String, Object>(){{\n put(\"id\", \"2\");\n put(\"name\", \"John\");\n put(\"age\", 123);\n }};\n Reflects.propSet(user, \"name\", \"Doe\");\n Reflects.propSet(userMap, \"age\", 122);\n System.out.println(Reflects.propGet(user,\"name\"));\n System.out.println(Reflects.propGet(userMap,\"age\"));\n }", "title": "" }, { "docid": "8602a76994e0555459366c61e9160d0e", "score": "0.4728103", "text": "public Customer(String name, int age, int customerID, double discountRate){\n this.name = name;\n this.age = age;\n this.customerID = customerID;\n this.discountRate = discountRate;\n }", "title": "" }, { "docid": "b74f34a4bdf859f0d1eac3283f045f04", "score": "0.4727036", "text": "public interface C4793xd4e0c70d {\n UserProfile realmGet$employee();\n\n void realmSet$employee(UserProfile userProfile);\n}", "title": "" }, { "docid": "4e7c80dac0f2f15ad23b33b917bf7718", "score": "0.47264087", "text": "private Review() {}", "title": "" }, { "docid": "f1af6258bed87fb71d176b4957752bc7", "score": "0.4725542", "text": "public interface IcustomerService extends IBaseService<CustomerModel,CustomerQueryModel> {\n\n}", "title": "" }, { "docid": "3ab8a955e467db689f7afb1e569cc639", "score": "0.47229385", "text": "public interface C1464zk {\n}", "title": "" }, { "docid": "4c8cd20e5a2305280ec845cf736d8e1f", "score": "0.47193834", "text": "@Test\n\tpublic void modificationClientTest() {\n\t\t\n\t\tClient c= new Client();\n\t\tc.setId(4);\n\t\tc.setNom(\"aaaaaaaaaaaaa\");\n\t\tc.setPrenom(\"b\");\n\t\tc.setEmail(\"a.b@gmail.com\");\n\t\t\n\t\t\n\t\tClient c2 = c;\n\t\tidao.modifierClient(c2);\n\t\tAssert.assertEquals(c.getEmail(), c2.getEmail());\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "4cc9dac92c862aff4e09b4beea4717a0", "score": "0.47124535", "text": "public static void addCustomer(Customer customer) {\n customers.add(customer);\n }", "title": "" }, { "docid": "93a160a76a25212851f3c818c01ab4b7", "score": "0.47118747", "text": "public Customer()\r\n\t{\r\n\t\tcustID = 0;\r\n\t\tfname = lname = email = phone = \"\";\r\n\t}", "title": "" }, { "docid": "52c869227f301e5f3fff0409ee7662f9", "score": "0.4709584", "text": "@Test\n\tpublic void testCustomerObject() {\n\t\tCustomer c = new Customer(\"customer\", \"password\");\n\t\tassertEquals(\"customer\",c.getUsername());\n\t\tassertEquals(\"password\",c.getPassword());\n\t\tApplication app = new Application();\n\t\tc.setApplication(app);\n\t\tassertEquals(app, c.getApplication());\n\t}", "title": "" }, { "docid": "994053a0f64589cf7126f8d741b2d8eb", "score": "0.47062495", "text": "public CustomerBean() {\n }", "title": "" }, { "docid": "85e49984b97a856ff646ce1b2072f381", "score": "0.46993208", "text": "public Customer(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "8446f1430d1b0d4aa5cd64ec20ef5d3e", "score": "0.46971625", "text": "public interface IEmployee extends java.io.Serializable, Sample.IPerson{\r\n String CACHE_CLASS_NAME = \"Sample.Employee\";\r\n /**\r\n Returns value of property <code>Company</code>.\r\n <p>Description: The company this employee works for.</p>\r\n @return current value of <code>Company</code> represented as\r\n <code>Sample.ICompany</code>\r\n\r\n @throws com.intersys.objects.CacheException if any error occurred during value retrieval.\r\n @see <a href = \"http://localhost:8972/csp/documatic/%25CSP.Documatic.cls?APP=1&PAGE=CLASS&LIBRARY=SAMPLES&CLASSNAME=Sample.Employee#Company\"> Company</A>\r\n */\r\n public Sample.ICompany getCompany() throws java.lang.Exception;\r\n /**\r\n Sets new value for <code>Company</code>.\r\n <p>Description: The company this employee works for.</p>\r\n @param value new value to be set represented as\r\n <code>Sample.ICompany</code>.\r\n @throws com.intersys.objects.CacheException if any error occurred during value setting.\r\n @see <a href = \"http://localhost:8972/csp/documatic/%25CSP.Documatic.cls?APP=1&PAGE=CLASS&LIBRARY=SAMPLES&CLASSNAME=Sample.Employee#Company\"> Company</A>\r\n */\r\n public void setCompany(Sample.ICompany value) throws java.lang.Exception;\r\n public java.io.Reader getNotesIn() throws java.lang.Exception;\r\n public java.io.Writer getNotesOut() throws java.lang.Exception;\r\n /**\r\n Returns value of property <code>Salary</code>.\r\n <p>Description: The employee's current salary.</p>\r\n @return current value of <code>Salary</code> represented as\r\n <code>java.lang.Integer</code>\r\n\r\n @throws com.intersys.objects.CacheException if any error occurred during value retrieval.\r\n @see <a href = \"http://localhost:8972/csp/documatic/%25CSP.Documatic.cls?APP=1&PAGE=CLASS&LIBRARY=SAMPLES&CLASSNAME=Sample.Employee#Salary\"> Salary</A>\r\n */\r\n public java.lang.Integer getSalary() throws java.lang.Exception;\r\n /**\r\n Sets new value for <code>Salary</code>.\r\n <p>Description: The employee's current salary.</p>\r\n @param value new value to be set represented as\r\n <code>java.lang.Integer</code>.\r\n @throws com.intersys.objects.CacheException if any error occurred during value setting.\r\n @see <a href = \"http://localhost:8972/csp/documatic/%25CSP.Documatic.cls?APP=1&PAGE=CLASS&LIBRARY=SAMPLES&CLASSNAME=Sample.Employee#Salary\"> Salary</A>\r\n */\r\n public void setSalary(java.lang.Integer value) throws java.lang.Exception;\r\n /**\r\n Returns value of property <code>Title</code>.\r\n <p>Description: The employee's job title.</p>\r\n @return current value of <code>Title</code> represented as\r\n <code>java.lang.String</code>\r\n\r\n @throws com.intersys.objects.CacheException if any error occurred during value retrieval.\r\n @see <a href = \"http://localhost:8972/csp/documatic/%25CSP.Documatic.cls?APP=1&PAGE=CLASS&LIBRARY=SAMPLES&CLASSNAME=Sample.Employee#Title\"> Title</A>\r\n */\r\n public java.lang.String getTitle() throws java.lang.Exception;\r\n /**\r\n Sets new value for <code>Title</code>.\r\n <p>Description: The employee's job title.</p>\r\n @param value new value to be set represented as\r\n <code>java.lang.String</code>.\r\n @throws com.intersys.objects.CacheException if any error occurred during value setting.\r\n @see <a href = \"http://localhost:8972/csp/documatic/%25CSP.Documatic.cls?APP=1&PAGE=CLASS&LIBRARY=SAMPLES&CLASSNAME=Sample.Employee#Title\"> Title</A>\r\n */\r\n public void setTitle(java.lang.String value) throws java.lang.Exception;\r\n /**\r\n <p>Runs method PrintPerson in Cache.</p>\r\n <p>Description: This method overrides the method in <class>Person</class>.<br>\r\nPrints the properties <property>Name</property> and <property>Title</property> \r\nto the console.</p>\r\n @throws com.intersys.objects.CacheException if any error occured while running the method.\r\n @see <a href = \"http://localhost:8972/csp/documatic/%25CSP.Documatic.cls?APP=1&PAGE=CLASS&LIBRARY=SAMPLES&CLASSNAME=Sample.Employee#PrintPerson\"> Method PrintPerson</A>\r\n */\r\n public void PrintPerson () throws java.lang.Exception;\r\n}", "title": "" } ]
bae44170176103750141ce77e97101a8
The architecture of the image. Constraints: Allowed Values: i386, x86_64
[ { "docid": "c403a70b4d7517779fd80a10151e64e3", "score": "0.591874", "text": "public void setArchitecture(String architecture) {\n this.architecture = architecture;\n }", "title": "" } ]
[ { "docid": "e3d35ce57feeace57f6d0010bae964da", "score": "0.7566446", "text": "public static String getPlatformArchitecture() {\r\n\t\treturn System.getProperty(\"os.arch\").contains(\"64\") ? \"x64\" : \"x86\";\r\n\t}", "title": "" }, { "docid": "92df887a32cc648825b8b998668cc3e8", "score": "0.72276276", "text": "public String getArchitecture() {\n return architecture;\n }", "title": "" }, { "docid": "92df887a32cc648825b8b998668cc3e8", "score": "0.72276276", "text": "public String getArchitecture() {\n return architecture;\n }", "title": "" }, { "docid": "d902e294f4c74740a538f7feb9822009", "score": "0.70969206", "text": "public static String getProcessorArchitecture()\n {\n return System.getProperty(\"os.arch\");\n }", "title": "" }, { "docid": "d37f442fddb6ba438abdc50ac71c2954", "score": "0.6996431", "text": "public com.google.protobuf.ByteString getArchitectureBytes() {\n java.lang.Object ref = architecture_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n architecture_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "f3db6ef7413d8345e1909aadf25df8cd", "score": "0.69882905", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getArchitectureBytes() {\n java.lang.Object ref = architecture_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n architecture_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "650afd7b4700b6b5fee3ae8d19cd481b", "score": "0.68212444", "text": "Architecture getArchitecture();", "title": "" }, { "docid": "a027aa3e293c90d49d56f9f4db0f3a0c", "score": "0.67796844", "text": "public java.lang.String getArchitecture() {\n java.lang.Object ref = architecture_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n architecture_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "fe2833b4cd66207cb1ea136ddd88e836", "score": "0.67092955", "text": "@java.lang.Override\n public java.lang.String getArchitecture() {\n java.lang.Object ref = architecture_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n architecture_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "98be78eb253e53c48154752451ca2adf", "score": "0.66693205", "text": "public String getArchitecture() {\n return m_architecture;\n }", "title": "" }, { "docid": "a69465d3ff71ae06bbc15dcd866fbd1d", "score": "0.660575", "text": "public static String getOSArchitecture() {\r\n\t\tString osArchitecture = \"\";\r\n\t\t\r\n\t\tif (isWindows()) {\r\n\t\t\ttry {\r\n\t\t\t\tProcess process = runCommand(\"wmic OS get OSArchitecture\");\r\n\t\t\t\tStreamReader reader = new StreamReader(process.getInputStream());\r\n\t\t\t\t\r\n\t\t\t\treader.start();\r\n\t\t\t\tprocess.waitFor();\r\n\t\t\t\treader.join();\r\n\t\t\t\t\r\n\t\t\t\tosArchitecture = reader.getResult().trim().split(CommonConst.ENTER)[1].contains(\"64\") ? \"x64\" : \"x86\";\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tosArchitecture = System.getProperty(\"os.arch\").contains(\"64\") ? \"x64\" : \"x86\";\r\n\t\t}\r\n\t\t\r\n\t\treturn osArchitecture;\r\n\t}", "title": "" }, { "docid": "ca6b2e14e08db3945c614411e370b8c1", "score": "0.6592782", "text": "public String getArchitectureField() {\n return getFieldOrWild(ARCHITECTURE_KEY);\n }", "title": "" }, { "docid": "7eefed82fce679197c9af582c5a6e7d9", "score": "0.62650126", "text": "List<Architecture> getArchitectures();", "title": "" }, { "docid": "ece92d0b549176e30032f516d96cb5be", "score": "0.6250183", "text": "public Architecture getArchitecture() {\n\t\treturn architectureType;\n\t}", "title": "" }, { "docid": "46ee7337f17c7c3c7ba1f9450d063ffc", "score": "0.6166181", "text": "public ProcessorArchitecture processorArchitecture() {\n return this.processorArchitecture;\n }", "title": "" }, { "docid": "512567b2cb3db1790515205991c44e5e", "score": "0.612248", "text": "public static final String getOperatingSystemArch(){\r\n\t\treturn System.getProperty(osArchitecture);\r\n\t}", "title": "" }, { "docid": "c6445655bed3d21e984976f4900e65a8", "score": "0.6067943", "text": "public String getName() {\n return \"arch\";\n }", "title": "" }, { "docid": "74ad14d519d396362414a12e1eb08d6d", "score": "0.6046136", "text": "public static boolean is64Bit(){\r\n\t\tString arch = \"\";\r\n\t\tif(isWindows){\r\n\t\t\tarch = System.getenv(\"PROCESSOR_ARCHITECTURE\");\r\n\t\t\tString wow64Arch = System.getenv(\"PROCESSOR_ARCHITEW6432\");\r\n\t\t\t\r\n\t\t\tif(arch.contains(\"64\") || (wow64Arch != null && wow64Arch.contains(\"64\"))){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}else if(isMac){\r\n\t\t\tarch = Arrays.toString(runCommandLineAndWait(\"uname -v\"));\r\n\t\t\tarch = arch.toUpperCase();\r\n\t\t\t\r\n\t\t\tif(arch.contains(\"X86_64\") || arch.contains(\"AMD64\") || arch.contains(\"I686\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}else if(arch.contains(\"UNKNOWN\")){\r\n\t\t\t\tarch = Arrays.toString(runCommandLineAndWait(\"file /usr/bin/file\")).toUpperCase();\r\n\t\t\t\tif(arch.contains(\"64-BIT\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else if(isLinux){\r\n\t\t\tarch = Arrays.toString(runCommandLineAndWait(\"uname -i\"));\r\n\t\t\tarch = arch.toUpperCase();\r\n\t\t\t\r\n\t\t\tif(arch.contains(\"X86_64\") || arch.contains(\"AMD64\") || arch.contains(\"I686\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}else if(arch.contains(\"UNKNOWN\")){\r\n\t\t\t\tarch = Arrays.toString(runCommandLineAndWait(\"file /usr/bin/file\")).toUpperCase();\r\n\t\t\t\tif(arch.contains(\"64-BIT\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tCoreAutomation.Log.debug(\"is32Bit: Unable to recognize Operating System\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "66f6a003c5b68fa27a093624a9d54bed", "score": "0.6039069", "text": "private static String getArch(final String os) {\n String arch = System.getProperty(\"os.arch\");\n if (arch == null) {\n arch = \"x86\";\n } else {\n arch = arch.toLowerCase(Locale.US);\n if (\"win32\".equals(os) && \"amd64\".equals(arch)) {\n arch = \"x64\";\n }\n }\n return arch;\n }", "title": "" }, { "docid": "f50c2080adce78418bffb6e0a630a0e3", "score": "0.5628329", "text": "public int getArchValue() {\n return arch_;\n }", "title": "" }, { "docid": "34a9f3a7b7924a903bda3b1dd03ec63f", "score": "0.56001705", "text": "String getNativeImageFormat();", "title": "" }, { "docid": "3599d4bfeadc62a9658251fb8dc6fa33", "score": "0.55851156", "text": "public String getShortDescription() {\n return \"Architecture command : display the architecture\";\n }", "title": "" }, { "docid": "10af5df1ed37a7b7b7a6b209b1eddb0f", "score": "0.55643046", "text": "public int getArchValue() {\n return arch_;\n }", "title": "" }, { "docid": "5666138b38dd138dca36904083dcd04a", "score": "0.55363786", "text": "private void defineArch() {\n // R-type Arithmetic and Logical instructions\n instrMap.put(\"addu\", new Integer(0));\n instrMap.put(\"subu\", new Integer(0));\n instrMap.put(\"and\", new Integer(0));\n instrMap.put(\"or\", new Integer(0));\n instrMap.put(\"nor\", new Integer(0));\n instrMap.put(\"slt\", new Integer(0));\n instrMap.put(\"sltu\", new Integer(0));\n instrMap.put(\"sllv\", new Integer(0));\n instrMap.put(\"srlv\", new Integer(0));\n\n // R-type Shift instructions\n instrMap.put(\"sll\", new Integer(1));\n instrMap.put(\"srl\", new Integer(1));\n\n // R-type Jump instructions\n instrMap.put(\"jr\", new Integer(2));\n\n // I-type Branch instructions\n instrMap.put(\"beq\", new Integer(3));\n instrMap.put(\"bne\", new Integer(3));\n\n // I-type Arithmetic and Logical instructions\n instrMap.put(\"addiu\", new Integer(4));\n instrMap.put(\"andi\", new Integer(4));\n instrMap.put(\"ori\", new Integer(4));\n instrMap.put(\"slti\", new Integer(4));\n instrMap.put(\"sltiu\", new Integer(4));\n\n // I-type Load Upper Immediate instruction\n instrMap.put(\"lui\", new Integer(5));\n\n // I-type Load and Store word instructions\n instrMap.put(\"lw\", new Integer(6));\n instrMap.put(\"sw\", new Integer(6));\n\n // J-type Instructions\n instrMap.put(\"j\", new Integer(7));\n instrMap.put(\"jal\", new Integer(7));\n\n // Multiply instructions\n instrMap.put(\"mulhi\", new Integer(8));\n instrMap.put(\"mullo\", new Integer(8));\n\n // jalr Instruction\n instrMap.put(\"jalr\", new Integer(9));\n\n // Assembler directives\n instrMap.put(\"ASM__WORD__\", new Integer(10));\n instrMap.put(\"ASM__ORG__\", new Integer(10));\n instrMap.put(\"ASM__SKIP__\", new Integer(10));\n instrMap.put(\"ASM__LINE_OFFSET__\", new Integer(10));\n instrMap.put(\"ASM__POINTER__\", new Integer(10));\n\n // Instruction opcodes\n //opcode.put(\"add\" , new Byte((byte) 0x20));\n funct.put(\"addu\" , new Byte((byte) 0x21));\n funct.put(\"and\" , new Byte((byte) 0x24));\n funct.put(\"jr\" , new Byte((byte) 0x08));\n funct.put(\"jalr\" , new Byte((byte) 0x09));\n funct.put(\"nor\" , new Byte((byte) 0x27));\n funct.put(\"or\" , new Byte((byte) 0x25));\n funct.put(\"slt\" , new Byte((byte) 0x2A));\n funct.put(\"sltu\" , new Byte((byte) 0x2B));\n funct.put(\"sll\" , new Byte((byte) 0x00));\n funct.put(\"srl\" , new Byte((byte) 0x02));\n funct.put(\"sllv\" , new Byte((byte) 0x01));\n funct.put(\"srlv\" , new Byte((byte) 0x03));\n //funct.put(\"sub\" , new Byte((byte) 0x22));\n funct.put(\"subu\" , new Byte((byte) 0x23));\n\tfunct.put(\"mullo\" , new Byte((byte) 0x10));\n\tfunct.put(\"mulhi\" , new Byte((byte) 0x11));\n\n opcode.put(\"_RTYPE\", new Byte((byte) 0x00));\n opcode.put(\"addiu\" , new Byte((byte) 0x09));\n opcode.put(\"andi\" , new Byte((byte) 0x0C));\n opcode.put(\"beq\" , new Byte((byte) 0x04));\n opcode.put(\"bne\" , new Byte((byte) 0x05));\n opcode.put(\"lui\" , new Byte((byte) 0x0F));\n opcode.put(\"ori\" , new Byte((byte) 0x0D));\n opcode.put(\"slti\" , new Byte((byte) 0x0A));\n opcode.put(\"sltiu\" , new Byte((byte) 0x0B));\n opcode.put(\"lw\" , new Byte((byte) 0x23));\n opcode.put(\"sw\" , new Byte((byte) 0x2B));\n\n opcode.put(\"j\" , new Byte((byte) 0x02));\n opcode.put(\"jal\" , new Byte((byte) 0x03));\n\n // Registers\n regs.put(\"$0\" , new Byte((byte) 0));\n regs.put(\"$1\" , new Byte((byte) 1));\n regs.put(\"$2\" , new Byte((byte) 2));\n regs.put(\"$3\" , new Byte((byte) 3));\n regs.put(\"$4\" , new Byte((byte) 4));\n regs.put(\"$5\" , new Byte((byte) 5));\n regs.put(\"$6\" , new Byte((byte) 6));\n regs.put(\"$7\" , new Byte((byte) 7));\n regs.put(\"$8\" , new Byte((byte) 8));\n regs.put(\"$9\" , new Byte((byte) 9));\n regs.put(\"$10\" , new Byte((byte) 10));\n regs.put(\"$11\" , new Byte((byte) 11));\n regs.put(\"$12\" , new Byte((byte) 12));\n regs.put(\"$13\" , new Byte((byte) 13));\n regs.put(\"$14\" , new Byte((byte) 14));\n regs.put(\"$15\" , new Byte((byte) 15));\n regs.put(\"$16\" , new Byte((byte) 16));\n regs.put(\"$17\" , new Byte((byte) 17));\n regs.put(\"$18\" , new Byte((byte) 18));\n regs.put(\"$19\" , new Byte((byte) 19));\n regs.put(\"$20\" , new Byte((byte) 20));\n regs.put(\"$21\" , new Byte((byte) 21));\n regs.put(\"$22\" , new Byte((byte) 22));\n regs.put(\"$23\" , new Byte((byte) 23));\n regs.put(\"$24\" , new Byte((byte) 24));\n regs.put(\"$25\" , new Byte((byte) 25));\n regs.put(\"$26\" , new Byte((byte) 26));\n regs.put(\"$27\" , new Byte((byte) 27));\n regs.put(\"$28\" , new Byte((byte) 28));\n regs.put(\"$29\" , new Byte((byte) 29));\n regs.put(\"$30\" , new Byte((byte) 30));\n regs.put(\"$31\" , new Byte((byte) 31));\n\n regs.put(\"$zero\" , new Byte((byte) 0));\n regs.put(\"$at\" , new Byte((byte) 1));\n regs.put(\"$v0\" , new Byte((byte) 2));\n regs.put(\"$v1\" , new Byte((byte) 3));\n regs.put(\"$a0\" , new Byte((byte) 4));\n regs.put(\"$a1\" , new Byte((byte) 5));\n regs.put(\"$a2\" , new Byte((byte) 6));\n regs.put(\"$a3\" , new Byte((byte) 7));\n regs.put(\"$t0\" , new Byte((byte) 8));\n regs.put(\"$t1\" , new Byte((byte) 9));\n regs.put(\"$t2\" , new Byte((byte) 10));\n regs.put(\"$t3\" , new Byte((byte) 11));\n regs.put(\"$t4\" , new Byte((byte) 12));\n regs.put(\"$t5\" , new Byte((byte) 13));\n regs.put(\"$t6\" , new Byte((byte) 14));\n regs.put(\"$t7\" , new Byte((byte) 15));\n regs.put(\"$t8\" , new Byte((byte) 16));\n regs.put(\"$t9\" , new Byte((byte) 17));\n regs.put(\"$s0\" , new Byte((byte) 18));\n regs.put(\"$s1\" , new Byte((byte) 19));\n regs.put(\"$s2\" , new Byte((byte) 20));\n regs.put(\"$s3\" , new Byte((byte) 21));\n regs.put(\"$s4\" , new Byte((byte) 22));\n regs.put(\"$s5\" , new Byte((byte) 23));\n regs.put(\"$s6\" , new Byte((byte) 24));\n regs.put(\"$s7\" , new Byte((byte) 25));\n regs.put(\"$i0\" , new Byte((byte) 26));\n regs.put(\"$i1\" , new Byte((byte) 27));\n regs.put(\"$iv\" , new Byte((byte) 28));\n regs.put(\"$sp\" , new Byte((byte) 29));\n regs.put(\"$ir\" , new Byte((byte) 30));\n regs.put(\"$ra\" , new Byte((byte) 31));\n }", "title": "" }, { "docid": "0cce07905867fc0a82500652e2438911", "score": "0.54803056", "text": "public boolean hasArchitecture() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "011613a839d3fb01d4f8a170ff7a84ad", "score": "0.54687506", "text": "ExecutableImageType getExecutableImage();", "title": "" }, { "docid": "a5bf4a666569438fc307e08b46d611c5", "score": "0.5403512", "text": "public void setArchitecture(ArchitectureValues architecture) {\n this.architecture = architecture.toString();\n }", "title": "" }, { "docid": "15fd9216e1da8f2a6c3c213f61c67554", "score": "0.53999543", "text": "public void setArchitecture(Architecture architecture) {\n\t\tarchitectureType = architecture;\n\t}", "title": "" }, { "docid": "ebe4fd3a569c3fbfee35316bf890359b", "score": "0.53849596", "text": "public void setArchitecture(final String architecture) {\n m_architecture = architecture;\n }", "title": "" }, { "docid": "12d03db9e7b85a958c3ac4474aa84a48", "score": "0.53699887", "text": "@java.lang.Override\n public boolean hasArchitecture() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "e8f00fe0110e638fa93f117473ae415a", "score": "0.5317665", "text": "public Builder setArchitectureBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n architecture_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c21ffbc122399d9a1c1bf0adf608e728", "score": "0.5272314", "text": "public wireless.android.instantapps.sdk.ManifestOuterClass.Arch getArch() {\n @SuppressWarnings(\"deprecation\")\n wireless.android.instantapps.sdk.ManifestOuterClass.Arch result = wireless.android.instantapps.sdk.ManifestOuterClass.Arch.valueOf(arch_);\n return result == null ? wireless.android.instantapps.sdk.ManifestOuterClass.Arch.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "f9739f1e1cc3225a1081b0933c5043ef", "score": "0.5266371", "text": "public wireless.android.instantapps.sdk.ManifestOuterClass.Arch getArch() {\n @SuppressWarnings(\"deprecation\")\n wireless.android.instantapps.sdk.ManifestOuterClass.Arch result = wireless.android.instantapps.sdk.ManifestOuterClass.Arch.valueOf(arch_);\n return result == null ? wireless.android.instantapps.sdk.ManifestOuterClass.Arch.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "10c3d41a8f69f27e99ac0b1b8bb994be", "score": "0.52520376", "text": "wireless.android.instantapps.sdk.ManifestOuterClass.Arch getArch();", "title": "" }, { "docid": "229a4f8b1122ba1b37ca337cbc33acb7", "score": "0.52137", "text": "public Builder setArchitecture(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n architecture_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9ef440df5fec583ff29c997123dd70ad", "score": "0.5103564", "text": "@DISPID(6) //= 0x6. The runtime will prefer the VTID if present\n @VTID(12)\n java.lang.String platform();", "title": "" }, { "docid": "a5da94b669c33cc0cb0e3069bc89f094", "score": "0.4997103", "text": "java.lang.String getPlatform();", "title": "" }, { "docid": "a5da94b669c33cc0cb0e3069bc89f094", "score": "0.4997103", "text": "java.lang.String getPlatform();", "title": "" }, { "docid": "dbbbb33a1f88cff06c3c21dd9cb69f74", "score": "0.49760875", "text": "java.lang.String getOsfamily();", "title": "" }, { "docid": "2001ef23086bd99aef702c45e6945375", "score": "0.49421015", "text": "int getArchValue();", "title": "" }, { "docid": "25989d5dce71716d4867b868afabb50b", "score": "0.49355882", "text": "public static Architecture getArch(String value) {\n if (value == null || \"any\".equalsIgnoreCase(value) || \"all\".equalsIgnoreCase(value) || \"*\".equals(value)) {\n // \"any\" and \"all\" keyword are both accepted in recipe.\n return Architecture.ALL;\n }\n\n for (Architecture arch : values()) {\n if (arch.getName().equals(value)) {\n return arch;\n }\n }\n return Architecture.UNKNOWN;\n }", "title": "" }, { "docid": "b86aa3363d134b8db3d97b3bdca72129", "score": "0.49044245", "text": "@CalledByNative\n/* */ default boolean isHardwareEncoder() {\n/* 278 */ return true;\n/* */ }", "title": "" }, { "docid": "1471950dce7490e0b19e1ce96fa4c064", "score": "0.47961822", "text": "int getProcessorCode();", "title": "" }, { "docid": "e29b2468762b13e169caa26a2ba17afc", "score": "0.47789815", "text": "@Override\n\tpublic String getCPUType()\n\t{\n\t\treturn \"Intel Core i7\";\n\t}", "title": "" }, { "docid": "b365f2884df8567d418b4ed7bdf1e780", "score": "0.4775146", "text": "public static boolean isGenymotion()\n {\n return Build.PRODUCT != null && Build.PRODUCT.contains(\"x86\");\n }", "title": "" }, { "docid": "eec6d01da9f9222e6d7b20357d66dc83", "score": "0.47688764", "text": "public interface IArchitectureElement {\n\t\n\t/**\n\t * Returns the model containing the model element or, in case the element is a model, the model itself.\n\t * @return see above.\n\t */\n\tpublic ArchitectureModel getModel();\n\t\n\t/**\n\t * Returns the identifier of the element\n\t * @return see above.\n\t */\n\tpublic UUID getId();\n\t\n\t/**\n\t * Returns the human-readable name for the element\n\t * @return The element's name as string.\n\t */\n\tpublic String getName();\n\t\n}", "title": "" }, { "docid": "b66c1d429c7f31a73bb46630ed26d4be", "score": "0.4758624", "text": "public final void rule__SystemComponentArchitecture__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalComponentArchitecture.g:850:1: ( ( 'SystemComponentArchitecture' ) )\n // InternalComponentArchitecture.g:851:1: ( 'SystemComponentArchitecture' )\n {\n // InternalComponentArchitecture.g:851:1: ( 'SystemComponentArchitecture' )\n // InternalComponentArchitecture.g:852:2: 'SystemComponentArchitecture'\n {\n before(grammarAccess.getSystemComponentArchitectureAccess().getSystemComponentArchitectureKeyword_1()); \n match(input,11,FOLLOW_2); \n after(grammarAccess.getSystemComponentArchitectureAccess().getSystemComponentArchitectureKeyword_1()); \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 }", "title": "" }, { "docid": "07ebff63914ed85424d37f72fd617105", "score": "0.4743028", "text": "public String validaSistemaOp() throws IOException {\n\t\tString osCpu = System.getProperty(\"sun.arch.data.model\");\t\t\t\t\t\t\t\t\t\t\t\t\n\t\treturn osCpu;\n\t}", "title": "" }, { "docid": "3439960ed2ac25005db82e6d239bbda0", "score": "0.47411838", "text": "public final String getImageClassification() {\n\t\treturn imageClassification;\n\t}", "title": "" }, { "docid": "06b83d24c934951858018be8a8f1a277", "score": "0.4698254", "text": "interface Platform {\n /**\n * The function that specifies the platform will have a Linux OS.\n *\n * @return the next stage of the container registry task run definition.\n */\n RunRequestType withLinux();\n\n /**\n * The function that specifies the platform will have a Windows OS.\n *\n * @return the next stage of the container registry task run definition.\n */\n RunRequestType withWindows();\n\n /**\n * The function that specifies the platform will have a Linux OS with Architecture architecture.\n *\n * @param architecture the architecture the platform will have.\n * @return the next stage of the container registry task run definition.\n */\n RunRequestType withLinux(Architecture architecture);\n\n /**\n * The function that specifies the platform will have a Windows OS with Architecture architecture.\n *\n * @param architecture the architecture the platform will have.\n * @return the next stage of the container registry task run definition.\n */\n RunRequestType withWindows(Architecture architecture);\n\n /**\n * The function that specifies the platform will have a Linux OS with Architecture architecture and Variant\n * variant.\n *\n * @param architecture the architecture the platform will have.\n * @param variant the variant the platform will have.\n * @return the next stage of the container registry task run definition.\n */\n RunRequestType withLinux(Architecture architecture, Variant variant);\n\n /**\n * The function that specifies the platform will have a Windows OS with Architecture architecture and\n * Variant variant.\n *\n * @param architecture the architecture the platform will have.\n * @param variant the variant the platform will have.\n * @return the next stage of the container registry task run definition.\n */\n RunRequestType withWindows(Architecture architecture, Variant variant);\n\n /**\n * The function that specifies the platform properties of the registry task run.\n *\n * @param platformProperties the properties of the platform.\n * @return the next stage of the container registry task run definition.\n */\n RunRequestType withPlatform(PlatformProperties platformProperties);\n }", "title": "" }, { "docid": "b820ab3e1355e362ae683ada4b2b3c84", "score": "0.46831858", "text": "public static byte[] getBitCode32() {\n return getBitCode32Internal();\n }", "title": "" }, { "docid": "106f7913a6d5e10f04076ab165736142", "score": "0.4681545", "text": "public static String getJVMVersion()\n\t{\n\t\tString jvmBitVersion=\"\";\n\t\ttry\n\t\t{\n\t\t\tjvmBitVersion=System.getProperty(\"sun.arch.data.model\");\n\t\t\t//System.out.println(jvmBitVersion);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.getMessage();\n\t\t}\n\t\treturn jvmBitVersion;\n\t}", "title": "" }, { "docid": "b6fd9ec57757210cb7535192f9367c58", "score": "0.46648398", "text": "@Override\r\n\tpublic String getPlatform() {\n\t\treturn \"阿里巴巴\";\r\n\t}", "title": "" }, { "docid": "6da0e7845622c654ccf6e761c96df251", "score": "0.46468163", "text": "com.google.protobuf.ByteString\n getPlatformBytes();", "title": "" }, { "docid": "6da0e7845622c654ccf6e761c96df251", "score": "0.46468163", "text": "com.google.protobuf.ByteString\n getPlatformBytes();", "title": "" }, { "docid": "969ad977197be680f5052284af99efad", "score": "0.4634575", "text": "public static String comprobarOS() {\n\t\t\n\t\tString sOS = System.getProperty(\"os.name\");\n\t\t\n\t\treturn sOS;\n\t}", "title": "" }, { "docid": "6411403d7f9a0bffb2c01cda236996a3", "score": "0.46325353", "text": "java.lang.String getOsname();", "title": "" }, { "docid": "07357d63ee65d8ca72406426374e7c15", "score": "0.4625168", "text": "public static String getOsType() {\n String osType = \"unknown\";\n String osName = System.getProperty(\"os.name\");\n if (osName.contains(\"Windows\")) {\n osType = \"Windows\";\n }\n else if (osName.contains(\"Linux\")) {\n osType = \"Linux\";\n }\n return osType;\n }", "title": "" }, { "docid": "e16933e7afe4f86132c73db7dd39ec49", "score": "0.4594047", "text": "public String OSName (){\n String OS;\n OS= System.getProperty(\"os.name\").toLowerCase()\n +\" (\"+System.getProperty(\"os.arch\").toLowerCase()\n +\") build \"+System.getProperty(\"os.version\").toLowerCase();\n return OS;\n }", "title": "" }, { "docid": "1879a2ee7e0b7156ad541c8bf06949bc", "score": "0.45619532", "text": "public ProcessImageImplementation createProcessImageImplementation();", "title": "" }, { "docid": "c6a061adac4c862d1d6b9ed30415206c", "score": "0.4546279", "text": "public gov.georgia.dhr.dfcs.sacwis.structs.input.ArchInputStruct getArchInputStruct()\r\n {\r\n return this._archInputStruct;\r\n }", "title": "" }, { "docid": "6552d49e1716868b6b0a4c0233befd74", "score": "0.45360777", "text": "public static String getOs(){\n return System.getProperty(\"os.name\");\n }", "title": "" }, { "docid": "6191e9baa8e553a194073d0d8da6e47a", "score": "0.45338196", "text": "@Override\n\tpublic int getPlatformLogoLayoutId() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "da27bd9d3afd3d431a2f51a3681a3fce", "score": "0.4532552", "text": "private HexArchitecture() {\n super(null);\n }", "title": "" }, { "docid": "30808d1ea5911214dd65c057dc357252", "score": "0.4522417", "text": "static boolean platform_(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"platform_\")) return false;\n boolean r;\n r = consumeToken(b, ANDROID);\n if (!r) r = consumeToken(b, ANDROID_X64);\n if (!r) r = consumeToken(b, ANDROID_X86);\n if (!r) r = consumeToken(b, ANDROID_ARM32);\n if (!r) r = consumeToken(b, ANDROID_ARM64);\n if (!r) r = consumeToken(b, ARM32);\n if (!r) r = consumeToken(b, ARM64);\n if (!r) r = consumeToken(b, IOS);\n if (!r) r = consumeToken(b, IOS_ARM32);\n if (!r) r = consumeToken(b, IOS_ARM64);\n if (!r) r = consumeToken(b, IOS_X64);\n if (!r) r = consumeToken(b, LINUX);\n if (!r) r = consumeToken(b, LINUX_ARM32_HFP);\n if (!r) r = consumeToken(b, LINUX_MIPS32);\n if (!r) r = consumeToken(b, LINUX_MIPSEL32);\n if (!r) r = consumeToken(b, LINUX_X64);\n if (!r) r = consumeToken(b, MACOS_X64);\n if (!r) r = consumeToken(b, MINGW);\n if (!r) r = consumeToken(b, MINGW_X64);\n if (!r) r = consumeToken(b, MIPS32);\n if (!r) r = consumeToken(b, MIPSEL32);\n if (!r) r = consumeToken(b, OSX);\n if (!r) r = consumeToken(b, TVOS);\n if (!r) r = consumeToken(b, TVOS_ARM64);\n if (!r) r = consumeToken(b, TVOS_X64);\n if (!r) r = consumeToken(b, WASM);\n if (!r) r = consumeToken(b, WASM32);\n if (!r) r = consumeToken(b, WATCHOS);\n if (!r) r = consumeToken(b, WATCHOS_ARM32);\n if (!r) r = consumeToken(b, WATCHOS_ARM64);\n if (!r) r = consumeToken(b, WATCHOS_X64);\n if (!r) r = consumeToken(b, WATCHOS_X86);\n if (!r) r = consumeToken(b, X64);\n if (!r) r = consumeToken(b, UNKNOWN_PLATFORM);\n return r;\n }", "title": "" }, { "docid": "a025423218480645f09d9b60c0b47fce", "score": "0.44747058", "text": "public static boolean isSupportedPlatform() {\r\n\t Platform current = Platform.getCurrent();\r\n\t return Platform.MAC.is(current) || Platform.WINDOWS.is(current);\r\n\t }", "title": "" }, { "docid": "9ea13d68b71134bcc7aa321a39cf3021", "score": "0.44729546", "text": "public abstract String operatingSystem();", "title": "" }, { "docid": "033dd1b46cdd199db257b4fbd86d8e4e", "score": "0.44666785", "text": "public static byte[] getBitCode64() {\n return getBitCode64Internal();\n }", "title": "" }, { "docid": "70915e5d3b86fdf4010082ac540a4c7c", "score": "0.446", "text": "String hwVersion();", "title": "" }, { "docid": "106b75bf8a1881d38fab4f10bef8953c", "score": "0.44533813", "text": "public String getPlatform() {\n return platform;\n }", "title": "" }, { "docid": "e95169aa39fceb8fb26973152c0af3e9", "score": "0.44523883", "text": "public static boolean isLibc64() {\n boolean bb = false;\n File libcFile = new File(SYSTEM_LIB_C_PATH);\n if (libcFile != null && libcFile.exists()) {\n byte[] header = readELFHeadrIndentArray(libcFile);\n if (header != null && header[EI_CLASS] == ELFCLASS64) {\n return true;\n }\n }\n File libcFile64 = new File(SYSTEM_LIB_C_PATH_64);\n if (libcFile64 != null && libcFile64.exists()) {\n byte[] header = readELFHeadrIndentArray(libcFile64);\n byte b = header[EI_CLASS];\n if (String.valueOf(b).equals(\"2\")) {\n bb = true;\n }\n }\n return bb;\n }", "title": "" }, { "docid": "c0d5748ec3f64bdfb9d74016679da7d4", "score": "0.44476098", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Type.h\", line = 178,\n FQN=\"llvm::Type::isX86_MMXTy\", NM=\"_ZNK4llvm4Type11isX86_MMXTyEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZNK4llvm4Type11isX86_MMXTyEv\")\n //</editor-fold>\n public boolean isX86_MMXTy() /*const*/ {\n return getTypeID() == TypeID.X86_MMXTyID;\n }", "title": "" }, { "docid": "4ffbaa9b64715d98e2d3623f2567cd70", "score": "0.444089", "text": "java.lang.String getHardware();", "title": "" }, { "docid": "61830c637d1d487d44f8bc6896572d86", "score": "0.44402033", "text": "public Instance withArchitecture(ArchitectureValues architecture) {\n this.architecture = architecture.toString();\n return this;\n }", "title": "" }, { "docid": "0f49641cfe4e750b727dfb271ab680b2", "score": "0.44340298", "text": "public edu.uci.isr.xarch.instance.IXMLLink getArchStructure();", "title": "" }, { "docid": "b84b479848cc59829cd7c2165d75fcd2", "score": "0.4431606", "text": "String getTargetPlatformId();", "title": "" }, { "docid": "a4ae6964392a35a67b24944d6ac66240", "score": "0.44132", "text": "public Instance withArchitecture(String architecture) {\n this.architecture = architecture;\n return this;\n }", "title": "" }, { "docid": "b3c40a1aa37abbcddb6c63a678217274", "score": "0.43944386", "text": "Platform getPlatform();", "title": "" }, { "docid": "263853c46d461c12ba7e960ecdaf9ea8", "score": "0.43814033", "text": "@SuppressWarnings(\"unused\")\n\tprivate String getOS() {\n return System.getProperty( \"os.name\" ) ;\n }", "title": "" }, { "docid": "8ba0e63268b8df557b7354976d850ce5", "score": "0.43812522", "text": "public String getImage_type() {\n return image_type;\n }", "title": "" }, { "docid": "d47639d765ca121c946816514a9ef429", "score": "0.43801743", "text": "public static String getOS() {\r\n\t\tif (isWindows()) {\r\n\t\t\treturn \"win\";\r\n\t\t} else if (isMac()) {\r\n\t\t\treturn \"osx\";\r\n\t\t} else if (isUnix()) {\r\n\t\t\treturn \"unix\";\r\n\t\t} else if (isSolaris()) {\r\n\t\t\treturn \"sol\";\r\n\t\t} else {\r\n\t\t\treturn \"err\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "562df8d478ef103b094a07ebb400871d", "score": "0.4375321", "text": "boolean hasImageClassificationConfig();", "title": "" }, { "docid": "00208981da53fd3f15a3e84e1dc10b51", "score": "0.4374331", "text": "RunRequestType withLinux(Architecture architecture);", "title": "" }, { "docid": "f61c11f5754eedad700ff459db30c904", "score": "0.43725362", "text": "public String getPackagingCode();", "title": "" }, { "docid": "ed5c6a6e8f0ecc72b42038c354d6e22e", "score": "0.43642586", "text": "public String getRunTimeOS() {\n\t\treturn System.getProperty(\"os.name\");\n\t}", "title": "" }, { "docid": "8ee0f7c1fe787f5ed59e4190ee523da4", "score": "0.43636996", "text": "public final String mo28771g() {\n return \"native\";\n }", "title": "" }, { "docid": "d69b1f73b6efccbeb84206e9195a18c3", "score": "0.4362312", "text": "public static String getOSName() {\r\n\t\tif (isWindows()) {\r\n\t\t\treturn \"windows\";\r\n\t\t} else if (isMac()) {\r\n\t\t\treturn \"macosx\";\r\n\t\t} else if (isLinux()) {\r\n\t\t\treturn \"linux\";\r\n\t\t}\r\n\t\t\r\n\t\treturn \"unknown\";\r\n\t}", "title": "" }, { "docid": "484100b062ba35045829f58d2b0c9005", "score": "0.4354686", "text": "public static ProcessorInfo getProcessorInfo() {\n return (ProcessorInfo) HardwareFactory.get(InfoType.PROCESSOR).getInfo();\n }", "title": "" }, { "docid": "c7046e1efa659e0ad946afd8a21374b8", "score": "0.4346654", "text": "boolean isSetOsfamily();", "title": "" }, { "docid": "d2caff2536fcb634a544984c330bf6b5", "score": "0.43423256", "text": "LanguageArchitecture createLanguageArchitecture();", "title": "" }, { "docid": "3ab826727b085676d6dab34bf67d04ed", "score": "0.43354124", "text": "public int get_current_instruction_format() {\n\t\treturn current_instruction.get_format();\r\n\t}", "title": "" }, { "docid": "0bae722ae15e1bf7b1d45aafd3ae58da", "score": "0.43315753", "text": "public static LLVMLibrary.LLVMTypeRef LLVMX86MMXType() {\n return new LLVMLibrary.LLVMTypeRef(LLVMX86MMXType$2());\n }", "title": "" }, { "docid": "9dbd432f5ce147d3b6f6e09eb8bc70b6", "score": "0.43237764", "text": "public static String getOS() { return OS_LINUX; }", "title": "" }, { "docid": "a34ef91cea42517abf912ec1a36fb8f5", "score": "0.4314013", "text": "int getResCode();", "title": "" }, { "docid": "b85cc4293e4da9c74a31e1fca764140e", "score": "0.4313128", "text": "public String getMacResFork() {\n/* 267 */ String retval = null;\n/* 268 */ COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject(COSName.PARAMS);\n/* 269 */ if (params != null)\n/* */ {\n/* 271 */ retval = params.getEmbeddedString(\"Mac\", \"ResFork\");\n/* */ }\n/* 273 */ return retval;\n/* */ }", "title": "" }, { "docid": "6f55d19b81a821ff2e790737f73c741c", "score": "0.4311287", "text": "org.apache.xmlbeans.XmlString xgetOsfamily();", "title": "" }, { "docid": "a4005e10213fdafa9fb00d3cc9af2a35", "score": "0.43104535", "text": "public String getMacSubtype() {\n/* 197 */ String retval = null;\n/* 198 */ COSDictionary params = (COSDictionary)getCOSObject().getDictionaryObject(COSName.PARAMS);\n/* 199 */ if (params != null)\n/* */ {\n/* 201 */ retval = params.getEmbeddedString(\"Mac\", \"Subtype\");\n/* */ }\n/* 203 */ return retval;\n/* */ }", "title": "" }, { "docid": "87da1140f432cb823cad0f36ad418491", "score": "0.43097258", "text": "public @Nullable Integer getCanonMajorVersion()\n {\n return TYPE_MAJOR_VERSION;\n }", "title": "" }, { "docid": "39957f25e4f1855a370d3ad183b99bf0", "score": "0.43018824", "text": "@java.lang.Override\n public boolean hasImageClassificationConfig() {\n return requestConfigCase_ == 4;\n }", "title": "" } ]
04bcbd578daecc92ed45d24a8a38f96e
$ANTLR end "ruleMaximumFunction" $ANTLR start "entryRuleMinimumFunction" ../eu.artist.postmigration.nfrvt.lang.gml/srcgen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3169:1: entryRuleMinimumFunction returns [EObject current=null] : iv_ruleMinimumFunction= ruleMinimumFunction EOF ;
[ { "docid": "f261b84f1798f924420a24c3b0084a85", "score": "0.7741099", "text": "public final EObject entryRuleMinimumFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleMinimumFunction = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3170:2: (iv_ruleMinimumFunction= ruleMinimumFunction EOF )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3171:2: iv_ruleMinimumFunction= ruleMinimumFunction EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getMinimumFunctionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleMinimumFunction_in_entryRuleMinimumFunction6771);\r\n iv_ruleMinimumFunction=ruleMinimumFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleMinimumFunction; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleMinimumFunction6781); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" } ]
[ { "docid": "5818d35dc9e22e87f7a5ce478996786d", "score": "0.6930633", "text": "public final EObject entryRuleMaximumFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleMaximumFunction = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3083:2: (iv_ruleMaximumFunction= ruleMaximumFunction EOF )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3084:2: iv_ruleMaximumFunction= ruleMaximumFunction EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getMaximumFunctionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleMaximumFunction_in_entryRuleMaximumFunction6598);\r\n iv_ruleMaximumFunction=ruleMaximumFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleMaximumFunction; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleMaximumFunction6608); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "00364c1b71f07497ddf1a3607930f697", "score": "0.6560744", "text": "public final EObject ruleMinimumFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_3=null;\r\n Token otherlv_5=null;\r\n EObject lv_operator_0_0 = null;\r\n\r\n EObject lv_values_2_0 = null;\r\n\r\n EObject lv_values_4_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3181:28: ( ( ( (lv_operator_0_0= ruleMinOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3182:1: ( ( (lv_operator_0_0= ruleMinOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3182:1: ( ( (lv_operator_0_0= ruleMinOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3182:2: ( (lv_operator_0_0= ruleMinOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3182:2: ( (lv_operator_0_0= ruleMinOperator ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3183:1: (lv_operator_0_0= ruleMinOperator )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3183:1: (lv_operator_0_0= ruleMinOperator )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3184:3: lv_operator_0_0= ruleMinOperator\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getMinimumFunctionAccess().getOperatorMinOperatorParserRuleCall_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleMinOperator_in_ruleMinimumFunction6827);\r\n lv_operator_0_0=ruleMinOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getMinimumFunctionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"operator\",\r\n \t\tlv_operator_0_0, \r\n \t\t\"MinOperator\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,43,FOLLOW_43_in_ruleMinimumFunction6839); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getMinimumFunctionAccess().getLeftParenthesisKeyword_1());\r\n \r\n }\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3204:1: ( (lv_values_2_0= ruleNumberExpression ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3205:1: (lv_values_2_0= ruleNumberExpression )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3205:1: (lv_values_2_0= ruleNumberExpression )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3206:3: lv_values_2_0= ruleNumberExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getMinimumFunctionAccess().getValuesNumberExpressionParserRuleCall_2_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleNumberExpression_in_ruleMinimumFunction6860);\r\n lv_values_2_0=ruleNumberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getMinimumFunctionRule());\r\n \t }\r\n \t\tadd(\r\n \t\t\tcurrent, \r\n \t\t\t\"values\",\r\n \t\tlv_values_2_0, \r\n \t\t\"NumberExpression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3222:2: (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )*\r\n loop43:\r\n do {\r\n int alt43=2;\r\n int LA43_0 = input.LA(1);\r\n\r\n if ( (LA43_0==20) ) {\r\n alt43=1;\r\n }\r\n\r\n\r\n switch (alt43) {\r\n \tcase 1 :\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3222:4: otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) )\r\n \t {\r\n \t otherlv_3=(Token)match(input,20,FOLLOW_20_in_ruleMinimumFunction6873); if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \tnewLeafNode(otherlv_3, grammarAccess.getMinimumFunctionAccess().getCommaKeyword_3_0());\r\n \t \r\n \t }\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3226:1: ( (lv_values_4_0= ruleNumberExpression ) )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3227:1: (lv_values_4_0= ruleNumberExpression )\r\n \t {\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3227:1: (lv_values_4_0= ruleNumberExpression )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3228:3: lv_values_4_0= ruleNumberExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getMinimumFunctionAccess().getValuesNumberExpressionParserRuleCall_3_1_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleNumberExpression_in_ruleMinimumFunction6894);\r\n \t lv_values_4_0=ruleNumberExpression();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getMinimumFunctionRule());\r\n \t \t }\r\n \t \t\tadd(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"values\",\r\n \t \t\tlv_values_4_0, \r\n \t \t\t\"NumberExpression\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop43;\r\n }\r\n } while (true);\r\n\r\n otherlv_5=(Token)match(input,44,FOLLOW_44_in_ruleMinimumFunction6908); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_5, grammarAccess.getMinimumFunctionAccess().getRightParenthesisKeyword_4());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "c0b2a2db59d62a86714e8047e06d80dd", "score": "0.61250323", "text": "public final EObject ruleNumberFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_MaximumFunction_0 = null;\r\n\r\n EObject this_MinimumFunction_1 = null;\r\n\r\n EObject this_AverageFunction_2 = null;\r\n\r\n EObject this_SumFunction_3 = null;\r\n\r\n EObject this_ExponentialFunction_4 = null;\r\n\r\n EObject this_AbsoluteFunction_5 = null;\r\n\r\n EObject this_NaturalLogarithmFunction_6 = null;\r\n\r\n EObject this_CommonLogarithmFunction_7 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2994:28: ( (this_MaximumFunction_0= ruleMaximumFunction | this_MinimumFunction_1= ruleMinimumFunction | this_AverageFunction_2= ruleAverageFunction | this_SumFunction_3= ruleSumFunction | this_ExponentialFunction_4= ruleExponentialFunction | this_AbsoluteFunction_5= ruleAbsoluteFunction | this_NaturalLogarithmFunction_6= ruleNaturalLogarithmFunction | this_CommonLogarithmFunction_7= ruleCommonLogarithmFunction ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2995:1: (this_MaximumFunction_0= ruleMaximumFunction | this_MinimumFunction_1= ruleMinimumFunction | this_AverageFunction_2= ruleAverageFunction | this_SumFunction_3= ruleSumFunction | this_ExponentialFunction_4= ruleExponentialFunction | this_AbsoluteFunction_5= ruleAbsoluteFunction | this_NaturalLogarithmFunction_6= ruleNaturalLogarithmFunction | this_CommonLogarithmFunction_7= ruleCommonLogarithmFunction )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2995:1: (this_MaximumFunction_0= ruleMaximumFunction | this_MinimumFunction_1= ruleMinimumFunction | this_AverageFunction_2= ruleAverageFunction | this_SumFunction_3= ruleSumFunction | this_ExponentialFunction_4= ruleExponentialFunction | this_AbsoluteFunction_5= ruleAbsoluteFunction | this_NaturalLogarithmFunction_6= ruleNaturalLogarithmFunction | this_CommonLogarithmFunction_7= ruleCommonLogarithmFunction )\r\n int alt41=8;\r\n switch ( input.LA(1) ) {\r\n case 68:\r\n {\r\n alt41=1;\r\n }\r\n break;\r\n case 69:\r\n {\r\n alt41=2;\r\n }\r\n break;\r\n case 70:\r\n {\r\n alt41=3;\r\n }\r\n break;\r\n case 71:\r\n {\r\n alt41=4;\r\n }\r\n break;\r\n case 72:\r\n {\r\n alt41=5;\r\n }\r\n break;\r\n case 73:\r\n {\r\n alt41=6;\r\n }\r\n break;\r\n case 74:\r\n {\r\n alt41=7;\r\n }\r\n break;\r\n case 75:\r\n {\r\n alt41=8;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 41, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt41) {\r\n case 1 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2996:5: this_MaximumFunction_0= ruleMaximumFunction\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getNumberFunctionAccess().getMaximumFunctionParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleMaximumFunction_in_ruleNumberFunction6374);\r\n this_MaximumFunction_0=ruleMaximumFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_MaximumFunction_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3006:5: this_MinimumFunction_1= ruleMinimumFunction\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getNumberFunctionAccess().getMinimumFunctionParserRuleCall_1()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleMinimumFunction_in_ruleNumberFunction6401);\r\n this_MinimumFunction_1=ruleMinimumFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_MinimumFunction_1; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3016:5: this_AverageFunction_2= ruleAverageFunction\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getNumberFunctionAccess().getAverageFunctionParserRuleCall_2()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleAverageFunction_in_ruleNumberFunction6428);\r\n this_AverageFunction_2=ruleAverageFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_AverageFunction_2; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3026:5: this_SumFunction_3= ruleSumFunction\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getNumberFunctionAccess().getSumFunctionParserRuleCall_3()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleSumFunction_in_ruleNumberFunction6455);\r\n this_SumFunction_3=ruleSumFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_SumFunction_3; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 5 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3036:5: this_ExponentialFunction_4= ruleExponentialFunction\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getNumberFunctionAccess().getExponentialFunctionParserRuleCall_4()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleExponentialFunction_in_ruleNumberFunction6482);\r\n this_ExponentialFunction_4=ruleExponentialFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_ExponentialFunction_4; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 6 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3046:5: this_AbsoluteFunction_5= ruleAbsoluteFunction\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getNumberFunctionAccess().getAbsoluteFunctionParserRuleCall_5()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleAbsoluteFunction_in_ruleNumberFunction6509);\r\n this_AbsoluteFunction_5=ruleAbsoluteFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_AbsoluteFunction_5; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 7 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3056:5: this_NaturalLogarithmFunction_6= ruleNaturalLogarithmFunction\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getNumberFunctionAccess().getNaturalLogarithmFunctionParserRuleCall_6()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleNaturalLogarithmFunction_in_ruleNumberFunction6536);\r\n this_NaturalLogarithmFunction_6=ruleNaturalLogarithmFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_NaturalLogarithmFunction_6; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 8 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3066:5: this_CommonLogarithmFunction_7= ruleCommonLogarithmFunction\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getNumberFunctionAccess().getCommonLogarithmFunctionParserRuleCall_7()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleCommonLogarithmFunction_in_ruleNumberFunction6563);\r\n this_CommonLogarithmFunction_7=ruleCommonLogarithmFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_CommonLogarithmFunction_7; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "7e315f4d4ef4c76a51fbc83511789a8f", "score": "0.5714685", "text": "public final EObject ruleMaximumFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_3=null;\r\n Token otherlv_5=null;\r\n EObject lv_operator_0_0 = null;\r\n\r\n EObject lv_values_2_0 = null;\r\n\r\n EObject lv_values_4_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3094:28: ( ( ( (lv_operator_0_0= ruleMaxOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3095:1: ( ( (lv_operator_0_0= ruleMaxOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3095:1: ( ( (lv_operator_0_0= ruleMaxOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3095:2: ( (lv_operator_0_0= ruleMaxOperator ) ) otherlv_1= '(' ( (lv_values_2_0= ruleNumberExpression ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )* otherlv_5= ')'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3095:2: ( (lv_operator_0_0= ruleMaxOperator ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3096:1: (lv_operator_0_0= ruleMaxOperator )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3096:1: (lv_operator_0_0= ruleMaxOperator )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3097:3: lv_operator_0_0= ruleMaxOperator\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getMaximumFunctionAccess().getOperatorMaxOperatorParserRuleCall_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleMaxOperator_in_ruleMaximumFunction6654);\r\n lv_operator_0_0=ruleMaxOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getMaximumFunctionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"operator\",\r\n \t\tlv_operator_0_0, \r\n \t\t\"MaxOperator\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,43,FOLLOW_43_in_ruleMaximumFunction6666); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getMaximumFunctionAccess().getLeftParenthesisKeyword_1());\r\n \r\n }\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3117:1: ( (lv_values_2_0= ruleNumberExpression ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3118:1: (lv_values_2_0= ruleNumberExpression )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3118:1: (lv_values_2_0= ruleNumberExpression )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3119:3: lv_values_2_0= ruleNumberExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getMaximumFunctionAccess().getValuesNumberExpressionParserRuleCall_2_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleNumberExpression_in_ruleMaximumFunction6687);\r\n lv_values_2_0=ruleNumberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getMaximumFunctionRule());\r\n \t }\r\n \t\tadd(\r\n \t\t\tcurrent, \r\n \t\t\t\"values\",\r\n \t\tlv_values_2_0, \r\n \t\t\"NumberExpression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3135:2: (otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) ) )*\r\n loop42:\r\n do {\r\n int alt42=2;\r\n int LA42_0 = input.LA(1);\r\n\r\n if ( (LA42_0==20) ) {\r\n alt42=1;\r\n }\r\n\r\n\r\n switch (alt42) {\r\n \tcase 1 :\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3135:4: otherlv_3= ',' ( (lv_values_4_0= ruleNumberExpression ) )\r\n \t {\r\n \t otherlv_3=(Token)match(input,20,FOLLOW_20_in_ruleMaximumFunction6700); if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \tnewLeafNode(otherlv_3, grammarAccess.getMaximumFunctionAccess().getCommaKeyword_3_0());\r\n \t \r\n \t }\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3139:1: ( (lv_values_4_0= ruleNumberExpression ) )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3140:1: (lv_values_4_0= ruleNumberExpression )\r\n \t {\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3140:1: (lv_values_4_0= ruleNumberExpression )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3141:3: lv_values_4_0= ruleNumberExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getMaximumFunctionAccess().getValuesNumberExpressionParserRuleCall_3_1_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleNumberExpression_in_ruleMaximumFunction6721);\r\n \t lv_values_4_0=ruleNumberExpression();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getMaximumFunctionRule());\r\n \t \t }\r\n \t \t\tadd(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"values\",\r\n \t \t\tlv_values_4_0, \r\n \t \t\t\"NumberExpression\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop42;\r\n }\r\n } while (true);\r\n\r\n otherlv_5=(Token)match(input,44,FOLLOW_44_in_ruleMaximumFunction6735); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_5, grammarAccess.getMaximumFunctionAccess().getRightParenthesisKeyword_4());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "4f796b93c8279b7ce909a78c857db763", "score": "0.57124704", "text": "protected IExpressionValue min()throws TableFunctionMalformedException,\r\n\t\t\t\t\t\t\t\t\t\t InvalidProbabilityRangeException,\r\n\t\t\t\t\t\t\t\t\t\t SomeStateUndeclaredException{\r\n\t\t// Debug.println(\"ANALISING MIN FUNCTION\");\r\n\t\t\r\n\t\tIExpressionValue ret1 = null;\r\n\t\tIExpressionValue ret2 = null;\r\n\t\tmatch('(');\r\n\t\tret1 = this.expression();\r\n//\t\tmatch(';');\r\n\t\tif (look != ';' && look != ',') {\r\n\t\t\texpected(\";\");\r\n\t\t}\r\n\t\tnextChar();\r\n\t\tskipWhite();\r\n\t\tret2 = this.expression();\r\n\t\tmatch(')');\r\n\t\t/*\r\n\t\t// old code: tests which ret1/ret2 to return and test consistency. ComparisionProbabilityValue replaces it.\r\n\t\tif (!Float.isNaN(ret1)) {\r\n\t\t\tif (!Float.isNaN(ret2)) {\r\n\t\t\t\tret1 = ((ret2<ret1)?ret2:ret1);\r\n\t\t\t}\r\n\t\t} else if (!Float.isNaN(ret2)) {\r\n\t\t\treturn ret2;\r\n\t\t}\r\n\t\t*/\r\n\t\treturn new ComparisionProbabilityValue(ret1,ret2,false);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1bb9d18c5d2e8509c4bb0154cf0396a4", "score": "0.54971975", "text": "protected IExpressionValue max()throws TableFunctionMalformedException,\r\n\t\t\t\t\t\t\t\t\t\t InvalidProbabilityRangeException,\r\n\t\t\t\t\t\t\t\t\t\t SomeStateUndeclaredException{\r\n\t\t// Debug.println(\"ANALISING MAX FUNCTION\");\r\n\t\t\r\n\t\tIExpressionValue ret1 = null;\r\n\t\tIExpressionValue ret2 = null;\r\n\t\tmatch('(');\r\n\t\tret1 = this.expression();\r\n//\t\tmatch(';');\r\n\t\tif (look != ';' && look != ',') {\r\n\t\t\texpected(\";\");\r\n\t\t}\r\n\t\tnextChar();\r\n\t\tskipWhite();\r\n\t\tret2 = this.expression();\r\n\t\tmatch(')');\r\n\t\t/*\r\n\t\t// old code: tests which ret1/ret2 to return and test consistency. ComparisionProbabilityValue replaces it.\r\n\t\tif (!Float.isNaN(ret1)) {\r\n\t\t\tif (!Float.isNaN(ret2)) {\r\n\t\t\t\tret1 = ((ret2>ret1)?ret2:ret1);\r\n\t\t\t}\r\n\t\t} else if (!Float.isNaN(ret2)) {\r\n\t\t\treturn ret2;\r\n\t\t}\r\n\t\t*/\r\n\t\treturn new ComparisionProbabilityValue(ret1,ret2,true);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "adc6de325f423e083662f861639d656a", "score": "0.54539496", "text": "public Snippet visit(MinExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t Snippet f4 = n.identifier.accept(this, argu);\n\t n.nodeToken4.accept(this, argu);\n\t Snippet f6 = n.identifier1.accept(this, argu);\n\t n.nodeToken5.accept(this, argu);\n\t _ret.returnTemp = \"Math.min(\"+f4.returnTemp+\", \"+f6.returnTemp+\")\";\n\t return _ret;\n\t }", "title": "" }, { "docid": "d2537b9897c8cc0964174d1291c64223", "score": "0.53852737", "text": "public final EObject entryRuleFunction() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleFunction = null;\n\n\n try {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:420:2: (iv_ruleFunction= ruleFunction EOF )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:421:2: iv_ruleFunction= ruleFunction EOF\n {\n newCompositeNode(grammarAccess.getFunctionRule()); \n pushFollow(FOLLOW_ruleFunction_in_entryRuleFunction773);\n iv_ruleFunction=ruleFunction();\n\n state._fsp--;\n\n current =iv_ruleFunction; \n match(input,EOF,FOLLOW_EOF_in_entryRuleFunction783); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "980356d0af018b4120957a0fd2ccc76f", "score": "0.53157455", "text": "int min();", "title": "" }, { "docid": "96f1fee79aa2cc46138c8f64cf9dba51", "score": "0.52765816", "text": "public Snippet visit(MaxExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t Snippet f4 = n.identifier.accept(this, argu);\n\t n.nodeToken4.accept(this, argu);\n\t Snippet f6 = n.identifier1.accept(this, argu);\n\t n.nodeToken5.accept(this, argu);\n\t _ret.returnTemp = \"Math.max(\"+f4.returnTemp+\", \"+f6.returnTemp+\")\";\n\t return _ret;\n\t }", "title": "" }, { "docid": "b9782ee8c7c19f10e3d2df8b8540761e", "score": "0.52394885", "text": "double getMax();", "title": "" }, { "docid": "b9782ee8c7c19f10e3d2df8b8540761e", "score": "0.52394885", "text": "double getMax();", "title": "" }, { "docid": "e92c30421e08d05db21dcee5aa6a09ad", "score": "0.52100533", "text": "public final EObject entryRuleMinOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleMinOperator = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4942:2: (iv_ruleMinOperator= ruleMinOperator EOF )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4943:2: iv_ruleMinOperator= ruleMinOperator EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getMinOperatorRule()); \r\n }\r\n pushFollow(FOLLOW_ruleMinOperator_in_entryRuleMinOperator11153);\r\n iv_ruleMinOperator=ruleMinOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleMinOperator; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleMinOperator11163); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "2ee90906c4c0173422260ff314d881b9", "score": "0.51983744", "text": "Expression getMax();", "title": "" }, { "docid": "5d8c738f31f83a4d830581cf9cf275fb", "score": "0.5187752", "text": "int max();", "title": "" }, { "docid": "e21a16fc6740e7f93f6302e47af058dd", "score": "0.5185326", "text": "public final EObject ruleMinOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4953:28: ( ( () otherlv_1= 'min' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4954:1: ( () otherlv_1= 'min' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4954:1: ( () otherlv_1= 'min' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4954:2: () otherlv_1= 'min'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4954:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4955:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getMinOperatorAccess().getMinOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,69,FOLLOW_69_in_ruleMinOperator11209); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getMinOperatorAccess().getMinKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "f89768e6c0af830afbb4e6c8ba0e8819", "score": "0.51828706", "text": "float xMin();", "title": "" }, { "docid": "039b10ede63c9afa6dde15abb2088dec", "score": "0.51606816", "text": "public float getMinimumFloat() {\n/* 212 */ return (float)this.min;\n/* */ }", "title": "" }, { "docid": "cf30e564db4cddb8c26748bd5db52640", "score": "0.5123826", "text": "E minVal();", "title": "" }, { "docid": "16ec5421a610d43374af301da693cb00", "score": "0.510162", "text": "float xMax();", "title": "" }, { "docid": "249bf89860eba7eabb1de6a62dc75eda", "score": "0.5100813", "text": "Rule Function() {\n // Push 1 FunctionNode onto the value stack\n StringVar functionName = new StringVar(\"\");\n return Sequence(\n Optional(\"oneway \"),\n FunctionType(),\n Identifier(),\n actions.pop(),\n ACTION(functionName.set(match())),\n \"( \",\n ZeroOrMore(Field()),\n \") \",\n Optional(Throws()),\n Optional(ListSeparator()),\n push(new IdentifierNode(functionName.get())),\n actions.pushFunctionNode());\n }", "title": "" }, { "docid": "4d7d4ae85f3d15856ea1bd5a584e4c9b", "score": "0.50564617", "text": "public final EObject entryRuleMaxOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleMaxOperator = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4911:2: (iv_ruleMaxOperator= ruleMaxOperator EOF )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4912:2: iv_ruleMaxOperator= ruleMaxOperator EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getMaxOperatorRule()); \r\n }\r\n pushFollow(FOLLOW_ruleMaxOperator_in_entryRuleMaxOperator11061);\r\n iv_ruleMaxOperator=ruleMaxOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleMaxOperator; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleMaxOperator11071); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "6d55399344b0341c2a38a8637237d660", "score": "0.50092226", "text": "float zMin();", "title": "" }, { "docid": "af8ffa3e9e3046fb4070611543b683c1", "score": "0.50085187", "text": "public final EObject entryRuleFunctionDefinition() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleFunctionDefinition = null;\n\n\n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:623:2: (iv_ruleFunctionDefinition= ruleFunctionDefinition EOF )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:624:2: iv_ruleFunctionDefinition= ruleFunctionDefinition EOF\n {\n currentNode = createCompositeNode(grammarAccess.getFunctionDefinitionRule(), currentNode); \n pushFollow(FOLLOW_ruleFunctionDefinition_in_entryRuleFunctionDefinition1126);\n iv_ruleFunctionDefinition=ruleFunctionDefinition();\n _fsp--;\n\n current =iv_ruleFunctionDefinition; \n match(input,EOF,FOLLOW_EOF_in_entryRuleFunctionDefinition1136); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "e68599cfe5e98d08168eb481d6bf5214", "score": "0.4983573", "text": "public final CQLParser.matchesFunction_return matchesFunction() throws RecognitionException {\n CQLParser.matchesFunction_return retval = new CQLParser.matchesFunction_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token MATCHES137=null;\n CQLParser.startsFunction_return e1 = null;\n\n CQLParser.startsFunction_return e2 = null;\n\n\n Object MATCHES137_tree=null;\n\n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:468:2: (e1= startsFunction ( MATCHES e2= startsFunction )? )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:468:4: e1= startsFunction ( MATCHES e2= startsFunction )?\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_startsFunction_in_matchesFunction2248);\n e1=startsFunction();\n\n state._fsp--;\n\n adaptor.addChild(root_0, e1.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:468:22: ( MATCHES e2= startsFunction )?\n int alt34=2;\n int LA34_0 = input.LA(1);\n\n if ( (LA34_0==MATCHES) ) {\n alt34=1;\n }\n switch (alt34) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:468:23: MATCHES e2= startsFunction\n {\n MATCHES137=(Token)match(input,MATCHES,FOLLOW_MATCHES_in_matchesFunction2251); \n MATCHES137_tree = (Object)adaptor.create(MATCHES137);\n root_0 = (Object)adaptor.becomeRoot(MATCHES137_tree, root_0);\n\n pushFollow(FOLLOW_startsFunction_in_matchesFunction2256);\n e2=startsFunction();\n\n state._fsp--;\n\n adaptor.addChild(root_0, e2.getTree());\n\n }\n break;\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "title": "" }, { "docid": "995800384144f32a164c645a94d22f42", "score": "0.4954721", "text": "double getMin();", "title": "" }, { "docid": "995800384144f32a164c645a94d22f42", "score": "0.4954721", "text": "double getMin();", "title": "" }, { "docid": "1dc4afaa3bafc50f34f6820c6304a8ab", "score": "0.4940505", "text": "int getMax();", "title": "" }, { "docid": "9121d1a867cbd9d4c98e64d46391ef07", "score": "0.49365416", "text": "public int getMinimumValue() {\n/* 276 */ return -this.s.getMaximumValue();\n/* */ }", "title": "" }, { "docid": "9d1213f91cd2ea9df8089fe48c919055", "score": "0.4897916", "text": "@Test\r\n\tpublic void calculLostPointsByOneRuleBetweenMaxMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 4f), new Integer(3)),\r\n\t\t\t\tnew Float(1.5));\r\n\t}", "title": "" }, { "docid": "f52a35a98ff1c3f51f49a0850dd9481e", "score": "0.4894084", "text": "E maxVal();", "title": "" }, { "docid": "53df4434ad9fc32a7e16244ae5c249dc", "score": "0.48899266", "text": "public final EObject entryRuleAverageFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleAverageFunction = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3257:2: (iv_ruleAverageFunction= ruleAverageFunction EOF )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3258:2: iv_ruleAverageFunction= ruleAverageFunction EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getAverageFunctionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleAverageFunction_in_entryRuleAverageFunction6944);\r\n iv_ruleAverageFunction=ruleAverageFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleAverageFunction; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleAverageFunction6954); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "b4b3ec5dd710b342f78157e7761c570a", "score": "0.48628566", "text": "Double getMinimumValue();", "title": "" }, { "docid": "0db01e9d8730e83ef6a0d3bb88c572b1", "score": "0.48545927", "text": "public T min();", "title": "" }, { "docid": "26e48ae70551a68e87381d3da93e9111", "score": "0.48491544", "text": "public abstract int getMinimumValue();", "title": "" }, { "docid": "bec0641194cae476d7f2126b7a536652", "score": "0.48406467", "text": "ComparableExpression<T> min();", "title": "" }, { "docid": "b1f1533b4b185eac3978588683c895b6", "score": "0.483742", "text": "public int GetMaxVal();", "title": "" }, { "docid": "96c1f89073f44b035a4e3ef8d1e00bec", "score": "0.4819116", "text": "public double getMinimumValue() { return this.minimumValue; }", "title": "" }, { "docid": "9d15b29a17a8f3eeb9a1817f9059faeb", "score": "0.48110735", "text": "protected IExpressionValue function()throws TableFunctionMalformedException,\r\n\t\t\t\t\t\t\t\t\t\t\t InvalidProbabilityRangeException,\r\n\t\t\t\t\t\t\t\t\t\t\t SomeStateUndeclaredException{\r\n\t\tIExpressionValue ret = this.possibleVal();\r\n\t\tskipWhite();\r\n\t\tif (this.look == '(') {\r\n\t\t\tif (this.value.equalsIgnoreCase(\"CARDINALITY\")) {\r\n\t\t\t\treturn cardinality();\r\n\t\t\t} else if (this.value.equalsIgnoreCase(\"MIN\") ) {\r\n\t\t\t\treturn min();\r\n\t\t\t} else if (this.value.equalsIgnoreCase(\"MAX\") ) {\r\n\t\t\t\treturn max();\r\n\t\t\t} else {\r\n\t\t\t\tfor (IUserDefinedFunctionBuilder functionBuilder : getUserFunctionPluginManager().getFunctionBuilders()) {\r\n\t\t\t\t\tif (this.value.equalsIgnoreCase(functionBuilder.getFunctionName())) {\r\n\t\t\t\t\t\treturn external_function(functionBuilder);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// if reached this point, we did not find function with specified name\r\n\t\t\t\t// Debug.println(\"UNKNOWN FUNCTION FOUND: \" + this.value);\r\n\t\t\t\tthrow new TableFunctionMalformedException(((getSSBNNode()!=null)?getSSBNNode():getNode()) + \" : \" + this.getResource().getString(\"UnexpectedTokenFound\")\r\n\t\t\t\t\t\t+ \": \" + value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Debug.println(\"Function returning \" + ret);\r\n\t\treturn ret;\r\n\t}", "title": "" }, { "docid": "abd25b6a65a22d1ffafd48e94d7063ea", "score": "0.48073322", "text": "public double getMinimumDouble() {\n/* 201 */ return this.min;\n/* */ }", "title": "" }, { "docid": "3a518648b6b29f838078233b6eeb7440", "score": "0.47981718", "text": "int getMaximum();", "title": "" }, { "docid": "baee8b29937add0bf63f092f769df357", "score": "0.47930065", "text": "public E min() {\n\n }", "title": "" }, { "docid": "bc7368b49ff9452b7a1d1e04e42c46e6", "score": "0.47824708", "text": "public int GetMinVal();", "title": "" }, { "docid": "db8af97b2bc378be11fd17245b9d4968", "score": "0.47713253", "text": "int max(int a, int b);", "title": "" }, { "docid": "b5d43f490e344dd083d4404e83d5f1f5", "score": "0.4755567", "text": "public final EObject ruleMaxOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4922:28: ( ( () otherlv_1= 'max' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4923:1: ( () otherlv_1= 'max' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4923:1: ( () otherlv_1= 'max' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4923:2: () otherlv_1= 'max'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4923:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4924:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getMaxOperatorAccess().getMaxOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,68,FOLLOW_68_in_ruleMaxOperator11117); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getMaxOperatorAccess().getMaxKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "a535261684c0cfd03c11713022869b45", "score": "0.47319278", "text": "public T findMin();", "title": "" }, { "docid": "899ad28084adc9f84054edab4fdf0d4a", "score": "0.47236502", "text": "public E max() {\n\n }", "title": "" }, { "docid": "59760b0f9cdccf5661932e38979338f1", "score": "0.4720881", "text": "public float getMax() {\n/* 3085 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "1c5ba36aee6b439e77d7fe18e0553302", "score": "0.47188815", "text": "public float getMaximumFloat() {\n/* 266 */ return (float)this.max;\n/* */ }", "title": "" }, { "docid": "51c9d345a0211a1bbf19a82d91c4ed98", "score": "0.47131062", "text": "public final EObject entryRuleAbsoluteFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleAbsoluteFunction = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3518:2: (iv_ruleAbsoluteFunction= ruleAbsoluteFunction EOF )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3519:2: iv_ruleAbsoluteFunction= ruleAbsoluteFunction EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getAbsoluteFunctionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleAbsoluteFunction_in_entryRuleAbsoluteFunction7460);\r\n iv_ruleAbsoluteFunction=ruleAbsoluteFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleAbsoluteFunction; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleAbsoluteFunction7470); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "f1702ea6dab5175a3b3b2d0c65d9d600", "score": "0.46867803", "text": "@Test\n\tpublic void testMinMinMin(){\n\t int min=3, mid=5, max=10;\n\t assertEquals( min, MaxDiTre.max(min, min, min) );\n\t}", "title": "" }, { "docid": "a23e83201ce316b6eb8ddeeffa35c336", "score": "0.46710634", "text": "int getXMin();", "title": "" }, { "docid": "0382409ed21e7c20e8bb01f3566d1cea", "score": "0.46708575", "text": "public final EObject entryRuleSumFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleSumFunction = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3344:2: (iv_ruleSumFunction= ruleSumFunction EOF )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3345:2: iv_ruleSumFunction= ruleSumFunction EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getSumFunctionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleSumFunction_in_entryRuleSumFunction7117);\r\n iv_ruleSumFunction=ruleSumFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleSumFunction; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleSumFunction7127); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "e63182df0987f03a21ca0f4bce32dc44", "score": "0.46664014", "text": "public final CQLParser.functionExpression_return functionExpression() throws RecognitionException {\n CQLParser.functionExpression_return retval = new CQLParser.functionExpression_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n CQLParser.mathematicalFunction_return mathematicalFunction107 = null;\n\n CQLParser.statisticalFunction_return statisticalFunction108 = null;\n\n CQLParser.rangeFunction_return rangeFunction109 = null;\n\n CQLParser.stringFunction_return stringFunction110 = null;\n\n CQLParser.arrayDefinition_return arrayDefinition111 = null;\n\n\n\n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:419:2: ( mathematicalFunction | statisticalFunction | rangeFunction | stringFunction | arrayDefinition )\n int alt30=5;\n switch ( input.LA(1) ) {\n case SQRT:\n case LOG:\n case LN:\n case ABS:\n {\n alt30=1;\n }\n break;\n case AVG:\n case MEDIAN:\n case MIN:\n case MAX:\n case STDDEV:\n case VAR:\n case SUM:\n case COUNT:\n {\n alt30=2;\n }\n break;\n case RANGE:\n {\n alt30=3;\n }\n break;\n case ID:\n case INTEGER:\n case QUOTED_STRING:\n case REAL:\n case TRUE:\n case FALSE:\n case NULL:\n case 111:\n case 114:\n {\n alt30=4;\n }\n break;\n case 117:\n {\n alt30=5;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 30, 0, input);\n\n throw nvae;\n }\n\n switch (alt30) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:419:4: mathematicalFunction\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_mathematicalFunction_in_functionExpression1965);\n mathematicalFunction107=mathematicalFunction();\n\n state._fsp--;\n\n adaptor.addChild(root_0, mathematicalFunction107.getTree());\n\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:420:4: statisticalFunction\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_statisticalFunction_in_functionExpression1970);\n statisticalFunction108=statisticalFunction();\n\n state._fsp--;\n\n adaptor.addChild(root_0, statisticalFunction108.getTree());\n\n }\n break;\n case 3 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:421:4: rangeFunction\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_rangeFunction_in_functionExpression1975);\n rangeFunction109=rangeFunction();\n\n state._fsp--;\n\n adaptor.addChild(root_0, rangeFunction109.getTree());\n\n }\n break;\n case 4 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:422:4: stringFunction\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_stringFunction_in_functionExpression1981);\n stringFunction110=stringFunction();\n\n state._fsp--;\n\n adaptor.addChild(root_0, stringFunction110.getTree());\n\n }\n break;\n case 5 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:423:4: arrayDefinition\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_arrayDefinition_in_functionExpression1987);\n arrayDefinition111=arrayDefinition();\n\n state._fsp--;\n\n adaptor.addChild(root_0, arrayDefinition111.getTree());\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "title": "" }, { "docid": "3e7b66f86b69ab3bfd8812c6eeee7437", "score": "0.46579278", "text": "public final Object evaluator() throws RecognitionException {\n Object result = null;\n\n\n Object function1 =null;\n\n\n\n BFlatGUI.setStack(scopeStack.getStackString(\"\"));\n BFlatGUI.debugPrint(6, \"pausing at program start\");\n if (stepping)\n Pauser.waitForGo();\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:145:3: ( function ( . )* )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:145:5: function ( . )*\n {\n pushFollow(FOLLOW_function_in_evaluator72);\n function1=function();\n\n state._fsp--;\n\n\n result = function1;\n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:145:43: ( . )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( ((LA1_0 >= ARG && LA1_0 <= 50)) ) {\n alt1=1;\n }\n else if ( (LA1_0==EOF) ) {\n alt1=2;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:145:43: .\n \t {\n \t matchAny(input); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n\n }\n\n\n //BFlatGUI.debugPrint(3, scopeStack.getStackString(getIndent()));\n BFlatGUI.debugPrint(3, getIndent()+\"Leaving main function!\");\n \n BFlatGUI.setStack(scopeStack.getStackString(\"\"));\n BFlatGUI.setSymbolTable(smanager.toString());\n BFlatGUI.debugPrint(6, \"pausing at program end\");\n if (stepping)\n Pauser.waitForGo();\n \n scopeStack.pop();\n BFlatGUI.setStack(scopeStack.getStackString(\"\"));\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return result;\n }", "title": "" }, { "docid": "d830b8f6dfdf802b73f9222f342ec1a1", "score": "0.46304724", "text": "public BSTMapNode findMin() \n\t{\n\t\t\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "93351a081ee5a3adeaef8467dba68643", "score": "0.46192065", "text": "public final EObject entryRuleJvmLowerBound() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleJvmLowerBound = null;\n\n\n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2856:2: (iv_ruleJvmLowerBound= ruleJvmLowerBound EOF )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2857:2: iv_ruleJvmLowerBound= ruleJvmLowerBound EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getJvmLowerBoundRule()); \n }\n pushFollow(FOLLOW_ruleJvmLowerBound_in_entryRuleJvmLowerBound6708);\n iv_ruleJvmLowerBound=ruleJvmLowerBound();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleJvmLowerBound; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleJvmLowerBound6718); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "6e6252c7f508cbc713f053363829f267", "score": "0.46163425", "text": "public static void main(String[] args) {\n int[] arr = {2, 3, -1, 4, 0};\n\n Max_MinNumber(arr);\n\n }", "title": "" }, { "docid": "45c7a11403fb8c362032365d1f201cc0", "score": "0.46122772", "text": "public MinMaxAlgo(String name, Game game,\n int maxDepth, EvalFunction evalFct) {\n\n this.name = name;\n this.game = game;\n this.maxDepth = maxDepth - 1;\n this.evalFct = evalFct;\n\n listeners = new ArrayList<MinMaxListener>();\n evalFct.setGame(game);\n evalFct.setPlayer(game.nextPlayer());\n listeners.add(evalFct);\n }", "title": "" }, { "docid": "3e745a96865e84f0c56dc9a2db5537af", "score": "0.46096286", "text": "ComparableExpression<T> max();", "title": "" }, { "docid": "a27af90d16a486189ad8bc4458142173", "score": "0.460157", "text": "public T max();", "title": "" }, { "docid": "f04a599215e05362947e01b33e1744c1", "score": "0.46002573", "text": "@Test\n\tpublic void testMinMinMax(){\n\t int min=3, mid=5, max=10;\n\t assertEquals( max, MaxDiTre.max(min, min, max) );\n\t}", "title": "" }, { "docid": "ee23789b4b062a1697b32969d2b498b4", "score": "0.4598738", "text": "public Double getMinimumValue () {\r\n\t\treturn (minValue);\r\n\t}", "title": "" }, { "docid": "2ffe4688e8ae03ac8e5c41a211535e5e", "score": "0.4596683", "text": "public final boolean minimum(){\r\n\t\treturn minimum;\r\n\t}", "title": "" }, { "docid": "330bafb3d08dd082abccfbc3d38383a4", "score": "0.45908326", "text": "public final EObject entryRuleNaturalLogarithmFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleNaturalLogarithmFunction = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3583:2: (iv_ruleNaturalLogarithmFunction= ruleNaturalLogarithmFunction EOF )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3584:2: iv_ruleNaturalLogarithmFunction= ruleNaturalLogarithmFunction EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getNaturalLogarithmFunctionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleNaturalLogarithmFunction_in_entryRuleNaturalLogarithmFunction7597);\r\n iv_ruleNaturalLogarithmFunction=ruleNaturalLogarithmFunction();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleNaturalLogarithmFunction; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleNaturalLogarithmFunction7607); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "71a9c88703a36ae6d26efaa7dba16f23", "score": "0.45888707", "text": "float zMax();", "title": "" }, { "docid": "4149af0fdca11ff1fcfce01ac5832fb6", "score": "0.45749998", "text": "public int minimum() {\n \n if (xft.size() == 0) {\n return -1;\n }\n \n Integer repr = xft.minimum();\n \n assert(repr != null);\n \n return repr.intValue();\n }", "title": "" }, { "docid": "a9445231bb14f589e3e679eb6e6fcbcf", "score": "0.45632276", "text": "String getMax_res();", "title": "" }, { "docid": "2e838db5caad29cdce1cf69149f85e0a", "score": "0.45583087", "text": "public long getMinimumLong() {\n/* 179 */ return this.min;\n/* */ }", "title": "" }, { "docid": "cda8bd42b3d5a3ec2552ccbb1caf100e", "score": "0.45502302", "text": "Double getMaximumValue();", "title": "" }, { "docid": "890066b4fbd95579d567ce6598d13e55", "score": "0.45374647", "text": "org.apache.xmlbeans.XmlDecimal xgetWagerMinimum();", "title": "" }, { "docid": "3b651a9d15c16f6408c68fbf7ed7f897", "score": "0.45353028", "text": "public Range FindXmaxmin(graph g) {\r\n\r\n\t\tdouble xmin=Double.MAX_VALUE; \r\n\t\tdouble xmax=Double.MIN_VALUE; \r\n\t\tCollection<node_data> nc = g.getV();\r\n\t\tfor(node_data n: nc) {\r\n\r\n\t\t\tdouble px=n.getLocation().x();\r\n\r\n\t\t\tif(px>xmax) {\r\n\t\t\t\txmax=px;\r\n\t\t\t}\r\n\r\n\t\t\tif(px<xmin) {\r\n\t\t\t\txmin=px;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn new Range(xmin-0.001,xmax+0.001);\r\n\t}", "title": "" }, { "docid": "6be5549b655727b5e44edbfed7da6be9", "score": "0.45306265", "text": "public int extractMinimum() {\n \n //O(log_2(w))\n int min = minimum();\n\n if (min == -1) {\n assert(xft.size() == 0);\n return -1;\n }\n \n remove(min);\n \n return min;\n }", "title": "" }, { "docid": "20b3a4f1b5ef3560daa87765487e2bac", "score": "0.4522329", "text": "public node_data heapMinimum(){return _a[0];}", "title": "" }, { "docid": "c5222b75f0c37225f50d3693289e7098", "score": "0.45209157", "text": "public T getMin ();", "title": "" }, { "docid": "2e8ea76f1d0208868246863423351866", "score": "0.4502549", "text": "public final void entryRuleFunction() throws RecognitionException {\n try {\n // InternalWh.g:104:1: ( ruleFunction EOF )\n // InternalWh.g:105:1: ruleFunction EOF\n {\n before(grammarAccess.getFunctionRule()); \n pushFollow(FOLLOW_1);\n ruleFunction();\n\n state._fsp--;\n\n after(grammarAccess.getFunctionRule()); \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 }", "title": "" }, { "docid": "6ce92c3f1a63818e4868898fae97d69c", "score": "0.4497112", "text": "int getMindestvertragslaufzeit();", "title": "" }, { "docid": "e7902d172c5eeb0592dec9d829d08742", "score": "0.44956756", "text": "public int getMinimumInteger() {\n/* 190 */ return (int)this.min;\n/* */ }", "title": "" }, { "docid": "e415d4887a1340d72313e92432311682", "score": "0.44949204", "text": "public Double getMinimum() {\n\t\treturn minimum;\n\t}", "title": "" }, { "docid": "227391c8856e712b179b59db172e388d", "score": "0.4493876", "text": "@Test\n\tpublic void testMinimum() {\n\t\tassertEquals(75, g1.minimum(), .001);\n\t\tassertEquals(64, g2.minimum(), .001);\n\t\tassertEquals(52, g3.minimum(), .001);\n\t}", "title": "" }, { "docid": "4b7029a783f738795b90e93915862b85", "score": "0.44914848", "text": "public Node function()\r\n\t{\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.IDENTIFIER)\r\n\t\t{\r\n\t\t\tString name = lexer.getString();\r\n\t\t\tif(lexer.getToken()==Lexer.Token.LEFT_BRACKETS)\r\n\t\t\t{\r\n\t\t\t\tNode exp = expression();\r\n\t\t\t\tif(exp!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(lexer.getToken()==Lexer.Token.RIGHT_BRACKETS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(name.equals(\"sin\")) return new Sin(exp);\r\n\t\t\t\t\t\tif(name.equals(\"cos\")) return new Cos(exp);\r\n\t\t\t\t\t\tif(name.equals(\"tan\")) return new Tan(exp);\r\n\t\t\t\t\t\tif(name.equals(\"log\")) return new Log(exp);\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\tlexer.setPosition(index);\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "3a3b7eee572328b755d57d0c56952d02", "score": "0.44885498", "text": "@Test\r\n\tpublic void calculLostPointsByOneRuleAboveMaxTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 3f), new Integer(5)),\r\n\t\t\t\tnew Float(1.5));\r\n\t}", "title": "" }, { "docid": "33381f776d1e932543762b3946c90221", "score": "0.44880772", "text": "private static double search(double min, double max, Function f) {\n\t\tdouble a = min;\n\t\tdouble c = max;\n\t\tdouble b = 0;\n\t\twhile (Math.abs(c - a) > MIN_DIFFERENCE) {\n\t\t\tb = (a + c) / 2;\n\t\t\tdouble fa = f.f(a);\n\t\t\tdouble fc = f.f(c);\n\t\t\t\n\t\t\tif (fa < fc) {\n\t\t\t\tc = b;\n\t\t\t} else {\n\t\t\t\ta = b;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn b;\n\t}", "title": "" }, { "docid": "49fbeecdb49d5adee3638ecbfda991b3", "score": "0.44875753", "text": "@Test\n\tpublic void testMidMaxMin(){\n\t int min=3, mid=5, max=10;\n\t assertEquals( max, MaxDiTre.max(mid, max, min) );\n\t}", "title": "" }, { "docid": "566e29e508984eb6ff8dfed4924c7913", "score": "0.4487056", "text": "public float getMin()\n {\n parse_text(); \n return min;\n }", "title": "" }, { "docid": "b72422ce7533065e5852b743cb8ed2d2", "score": "0.44848046", "text": "public Expression getFunction()\n\t{\n\t\treturn function;\n\t}", "title": "" }, { "docid": "b4b4fe86cb16a60172960d36f6179a4d", "score": "0.4483612", "text": "public int extractMaximum() {\n \n int max = maximum();\n\n if (max == -1) {\n assert(xft.size() == 0);\n return -1;\n }\n \n remove(max);\n \n return max;\n }", "title": "" }, { "docid": "0a1f32581cdd8cd0e5d89aed01b384fc", "score": "0.44810006", "text": "@Test\n public void testMinMaxNumber() {\n NumberValue minNumber = factory.getMinNumber();\n NumberValue maxNumber = factory.getMaxNumber();\n MatcherAssert.assertThat(minNumber + \" < \" + maxNumber, minNumber.compareTo(maxNumber), lessThan(0));\n }", "title": "" }, { "docid": "c1c643fbe831e1a0617f95ad4f2e2f40", "score": "0.44783458", "text": "private WAVLNode min(WAVLNode x) {\n\t while(x.left!=EXT_NODE) {\r\n \tx=x.left;\r\n }\r\n return x;\r\n }", "title": "" }, { "docid": "7e8b579acb78d634e96eb626a1ab7034", "score": "0.4475342", "text": "public R visit(Procedure n) {\n R _ret=null;\n funcNumber = 0;\n notLabel = false;\n String label = (String)n.f0.accept(this);\n notLabel = true;\n namesOfFunctions.add(label);\n n.f1.accept(this);\n n.f2.accept(this);\n entering = true;\n arguments = Integer.parseInt((String)n.f2.f0.tokenImage);\n n.f3.accept(this);\n n.f4.accept(this);\n maxArgu.put(label, funcNumber);\n// System.out.println(label + \" \" + funcNumber );\n return _ret;\n }", "title": "" }, { "docid": "8e632b21a5ce1f1366ab51191802c75e", "score": "0.44745806", "text": "public Long getMinimum() {\r\n\t\treturn minimum;\r\n\t}", "title": "" }, { "docid": "7a0858e024bdbe91b1ee9bb9277b0711", "score": "0.44688997", "text": "public final void function() throws RecognitionException {\n\t\ttry {\n\t\t\t// PrePro.g:54:9: ( FUNCTION IDENTIFIER LEFTPAREN functionArguments RIGHTPAREN ( RETURNS TYPE )? LEFTBRACE ( statement )* ( RETURN expression SEMICOLON )? RIGHTBRACE )\n\t\t\t// PrePro.g:54:11: FUNCTION IDENTIFIER LEFTPAREN functionArguments RIGHTPAREN ( RETURNS TYPE )? LEFTBRACE ( statement )* ( RETURN expression SEMICOLON )? RIGHTBRACE\n\t\t\t{\n\t\t\tmatch(input,FUNCTION,FOLLOW_FUNCTION_in_function136); if (state.failed) return;\n\t\t\tmatch(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_function138); if (state.failed) return;\n\t\t\tmatch(input,LEFTPAREN,FOLLOW_LEFTPAREN_in_function140); if (state.failed) return;\n\t\t\tpushFollow(FOLLOW_functionArguments_in_function142);\n\t\t\tfunctionArguments();\n\t\t\tstate._fsp--;\n\t\t\tif (state.failed) return;\n\t\t\tmatch(input,RIGHTPAREN,FOLLOW_RIGHTPAREN_in_function144); if (state.failed) return;\n\t\t\t// PrePro.g:55:2: ( RETURNS TYPE )?\n\t\t\tint alt9=2;\n\t\t\tint LA9_0 = input.LA(1);\n\t\t\tif ( (LA9_0==RETURNS) ) {\n\t\t\t\talt9=1;\n\t\t\t}\n\t\t\tswitch (alt9) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// PrePro.g:55:2: RETURNS TYPE\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,RETURNS,FOLLOW_RETURNS_in_function147); if (state.failed) return;\n\t\t\t\t\tmatch(input,TYPE,FOLLOW_TYPE_in_function149); if (state.failed) return;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tmatch(input,LEFTBRACE,FOLLOW_LEFTBRACE_in_function153); if (state.failed) return;\n\t\t\t// PrePro.g:57:1: ( statement )*\n\t\t\tloop10:\n\t\t\twhile (true) {\n\t\t\t\tint alt10=2;\n\t\t\t\tint LA10_0 = input.LA(1);\n\t\t\t\tif ( (LA10_0==DEBUG||LA10_0==IDENTIFIER||LA10_0==LEFTPAREN||LA10_0==NUMERIC_LITERAL||LA10_0==PRINT||LA10_0==TYPE) ) {\n\t\t\t\t\talt10=1;\n\t\t\t\t}\n\n\t\t\t\tswitch (alt10) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// PrePro.g:57:1: statement\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_statement_in_function155);\n\t\t\t\t\tstatement();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak loop10;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// PrePro.g:58:2: ( RETURN expression SEMICOLON )?\n\t\t\tint alt11=2;\n\t\t\tint LA11_0 = input.LA(1);\n\t\t\tif ( (LA11_0==RETURN) ) {\n\t\t\t\talt11=1;\n\t\t\t}\n\t\t\tswitch (alt11) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// PrePro.g:58:2: RETURN expression SEMICOLON\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,RETURN,FOLLOW_RETURN_in_function159); if (state.failed) return;\n\t\t\t\t\tpushFollow(FOLLOW_expression_in_function161);\n\t\t\t\t\texpression();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return;\n\t\t\t\t\tmatch(input,SEMICOLON,FOLLOW_SEMICOLON_in_function163); if (state.failed) return;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tmatch(input,RIGHTBRACE,FOLLOW_RIGHTBRACE_in_function167); if (state.failed) return;\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "title": "" }, { "docid": "cbdcc5d4a9d784b8b81f1f1544a28421", "score": "0.44672102", "text": "private AvlNode<E> findMin(AvlNode<E> node){\n if(node.left == null){\n return node;\n } else {\n return findMin(node.left);\n }\n }", "title": "" }, { "docid": "f4158e9938973166e8932b1d913e7060", "score": "0.4464405", "text": "private Node getMinimumOld() {\n Node tmp = null;\n\n // TODO: optimize by putting in 1 list and\n // provide 'starting offset' for remaining nodes to find mimimum\n // note: see new getMinimum method above\n\n if (null != nodeA) {\n tmp = nodeA;\n if (null != nodeB && tmp.data > nodeB.data) {\n tmp = nodeB;\n }\n if (null != nodeC && tmp.data > nodeC.data) {\n tmp = nodeC;\n }\n } else if (null != nodeB) {\n tmp = nodeB;\n if (null != nodeC && tmp.data > nodeC.data) {\n tmp = nodeC;\n }\n } else if (null != nodeC) {\n tmp = nodeC;\n }\n\n // System.out.println(tmp);\n\n if (null == tmp ) {\n // terminating condition\n return null;\n }\n\n if (tmp.equals(nodeA)) {\n nodeA = nodeA.next;\n }\n if (tmp.equals(nodeB)) {\n nodeB = nodeB.next;\n }\n if (tmp.equals(nodeC)) {\n nodeC = nodeC.next;\n }\n\n System.out.println(tmp.data);\n\n return tmp;\n }", "title": "" }, { "docid": "944414d4fd0b5b9dccde74993c109a14", "score": "0.44630858", "text": "@Test\n\tpublic void float1() {\n\t\tfloat actualValue = Maximum.getmaximum1(12f,14f,15f);\n\t\tAssert.assertEquals(15,actualValue ,0);\n\t}", "title": "" }, { "docid": "5ba4deb8d2b0bb7b277e5f7d034bad75", "score": "0.44450754", "text": "int min() {\n return min;\r\n }", "title": "" }, { "docid": "d96eb46618511e2b85b0cbd4fbdb2b1a", "score": "0.4444751", "text": "static MwMaxNode addMwMax(HazardModel model, MwMaxNode node) {\n OptionalDouble mMax = StreamSupport.stream(model.spliterator(), false)\n .flatMap(sourceSet -> StreamSupport.stream(\n sourceSet.spliterator(),\n false))\n .filter(new SourceFilter(node.loc))\n .mapToDouble(source -> source.mfds().get(0).x(0))\n .min();\n// if (mMax.isPresent() && mMax.getAsDouble() < M_MAX) {\n// System.out.println(mMax.getAsDouble());\n// }\n node.mMax = mMax.isPresent()\n ? Double.min(mMax.getAsDouble(), M_MAX)\n : M_MAX;\n return node;\n }", "title": "" }, { "docid": "de8b7e175157eb80e722195613b5ecb0", "score": "0.4443892", "text": "public Number getMinimumNumber() {\n/* 167 */ if (this.minObject == null) {\n/* 168 */ this.minObject = new Long(this.min);\n/* */ }\n/* 170 */ return this.minObject;\n/* */ }", "title": "" }, { "docid": "2bb09d47b4f793184ea94562b1bd7e5a", "score": "0.44390112", "text": "public PrimEdge calculateMinimum() {\n int minWage = Integer.MAX_VALUE;\n PrimEdge result = null;\n for (Map.Entry<Integer, PrimEdge> entry : dtable.entrySet()) {\n if (entry.getValue().getWage() < minWage) {\n result = entry.getValue();\n minWage = entry.getValue().getWage();\n }\n }\n return result;\n }", "title": "" }, { "docid": "97bac8a4f8ad2a64a4ff7448575359c3", "score": "0.44368747", "text": "public abstract int getMaximumValue();", "title": "" } ]
e32ac1dfb0360a7fccc63f7a6a7e5b08
requires all elements of a are nonnull, not empty, and sorted in nondecreasing order O(nkLogk) time where k is the of sorted arrays and n is the average length of the given arrays
[ { "docid": "691c951c3a02bd249ee433cab18b5a5c", "score": "0.0", "text": "public static int[] merge(int[][] a) {\n\t\tint totalSize = 0;\n\t\tQueue<HeapNode> firstElements = new PriorityQueue<HeapNode>();\n\t\tfor(int i = 0; i < a.length; i++) {\n\t\t\tfirstElements.add(new HeapNode(a[i][0], i, 0));\n\t\t\ttotalSize += a[i].length;\n\t\t}\n\t\tint[] result = new int[totalSize];\n\t\t\n\t\tfor(int i = 0; i < totalSize; i++) {\n\t\t\tHeapNode lowest = firstElements.remove();\n\t\t\tresult[i] = lowest.data;\n\t\t\t\n\t\t\tif (lowest.listIndex < a[lowest.listNo].length - 1) {\n\t\t\t\tint newIndex = lowest.listIndex + 1;\n\t\t\t\tfirstElements.add(new HeapNode(a[lowest.listNo][newIndex], lowest.listNo, newIndex));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" } ]
[ { "docid": "430a30cd786a8425343ead9459ac9604", "score": "0.62399536", "text": "public static <T extends Comparable<? super T>> int naturalNp(T[] z){\n if (z == null) return 0;\n int N = z.length; if (N < 2) return 0;\n int[] passes = {0};\n @SuppressWarnings(\"unchecked\")\n T[] aux = (T[]) newInstance(z.getClass().getComponentType(), N);\n Function<T[],Queue<Integer>> getRuns = (x) -> {\n int m = x.length;\n Queue<Integer> runs = new Queue<Integer>();\n int i = 0, c= 0;\n while(i < m) {\n c = i;\n if (i < m -1) \n while(i < m -1 && x[i].compareTo(x[i+1]) < 0) i++;\n runs.enqueue(++i - c); \n }\n return runs;\n };\n Consumer5<T[],T[],Integer,Integer,Integer> merge = (a,b,lo,mid,hi) -> {\n int i = lo, j = mid+1;\n for (int k = lo; k <= hi; k++) \n b[k] = a[k];\n for (int k = lo; k <= hi; k++)\n if (i > mid) a[k] = b[j++];\n else if (j > hi ) a[k] = b[i++];\n else if (b[j].compareTo(b[i]) < 0) a[k] = b[j++];\n else a[k] = b[i++];\n }; \n Queue<Integer> runs = getRuns.apply(z); int run1 = 0, run2 = 0;\n System.out.println(\"arraySize=\"+N+\" numberOfRuns=\"+runs.size());\n int rlen = 0; // offset in z\n while (runs.size() > 1) {\n run1 = runs.dequeue();\n // ensure one pass through z at a time with no overlap\n if (run1 + rlen >= N) { runs.enqueue(run1); passes[0]++; rlen = 0; continue; }\n run2 = runs.dequeue();\n if (run1 + run2 + rlen > N) { \n System.out.println(\"never happens\");\n runs.enqueue(run1); runs.enqueue(run2); passes[0]++; rlen = 0; continue; \n }\n merge.accept(z, aux, rlen, rlen+run1-1, rlen+run1+run2-1); \n runs.enqueue(run1+run2); rlen = (rlen+run1+run2); \n if (rlen==N) { passes[0]++; rlen = 0; }\n }\n return passes[0];\n }", "title": "" }, { "docid": "f9d1fdd2d3ba1fea119da2dd08125dd0", "score": "0.6167902", "text": "public static void sort(Comparable a[]) {\n int n = a.length;\n aux = new Comparable[n];\n for (int subSize = 1; subSize < n; subSize += subSize) { // subSize - subarray size\n for (int lo = 0; lo < n-subSize; lo += 2*subSize) { //lo -- subarray index\n merge(a, lo, lo+subSize-1, Math.min(lo+2*subSize-1, n-1));\n }\n }\n }", "title": "" }, { "docid": "af5ca1eb9779c794acdb1e73477d3e90", "score": "0.6143873", "text": "private static void sort(int[] a) {\r\n int n = a.length;\r\n int min;\r\n for(int i = 0; i < n - 1; i++) {\r\n min = i;\r\n for(int j = i + 1; j < n; j++)\r\n if (a[j] < a[min]) min = j;\r\n exch(a, i, min);\r\n }\r\n }", "title": "" }, { "docid": "2a864b8cc1606bf913779941bc4f60e6", "score": "0.59954673", "text": "private static void sort2(int[] a, int n) {\n }", "title": "" }, { "docid": "8faefe3a25386112fcf109592b3b140d", "score": "0.59858525", "text": "public static void sortS(Comparable[] a) {\n int N = a.length;\n\n int indexOfMin = findIndexOfMin(a);\n exch(a, 0, indexOfMin);\n\n for (int i = 1; i < N; i++) {\n for (int j = i; less(a[j], a[j - 1]); j--)\n exch(a, j, j - 1);\n }\n }", "title": "" }, { "docid": "7bff71d1f1d715b42df82de3d412672d", "score": "0.59798545", "text": "public static void main(String[] args) {\n int[] test_array_01 = make_random_int_array(100);\r\n int[] test_array_02 = make_random_int_array(100);\r\n int[] test_array_03 = make_random_int_array(100);\r\n int[] test_array_04 = make_random_int_array(100);\r\n\r\n //Solution to problem 2\r\n System.out.println(\"Pre-sort randomized array:\\t\" + Arrays.toString(test_array_01));\r\n InsertionSort(test_array_01);\r\n System.out.println(\"Post-InsertionSort array:\\t\" + Arrays.toString(test_array_01));\r\n\r\n //Solution to problem 3\r\n System.out.println(\"\\nPre-sort randomized array:\\t\" + Arrays.toString(test_array_02));\r\n test_array_02 = MergeSort(test_array_02);\r\n System.out.println(\"Post-MergeSort array:\\t\\t\" + Arrays.toString(test_array_02));\r\n\r\n //Solutions to problem 4 (2-1, a-d)\r\n //2-1a) Sorting any array with InsertionSort has a Θ(n^2) worst case, so if list of k length that is Θ(k^2).\r\n // If we are to n/k number of k length lists that means Θ((n/k)*k^2) = Θ(nk).\r\n //2-1b) Merging has a worst case of Θ(n*lg(n)) for a list of length n, so if we have sublists of n/k length, but\r\n // the same number of items in all of lists when summed together, the worst case is Θ(n*lg(n/k)). The\r\n // front term is the number of items sorted (n) the number of splits we are doing is lg(n/k). Fig 2.5d.\r\n //2-1c) Since Θ(nk + n*lg(n/k)) is worst time, either nk or n*lg(n/k) is dominate so either nk = n*lg(n) or\r\n // n*lg(n/k) = n*lg(n), so k = lg(n) or k = 1 [lg(n/k) = lg(n) - lg(k), n*lg(n/k)=n*lg(n) -> k=1]. k=1 is\r\n // trivial, so k=lg(n). When k=1, the merge sort side is going to take as long as mergesort normally does.\r\n //2-1d) We should want a k < lg(n).\r\n System.out.println(\"\\nPre-sort randomized array:\\t\" + Arrays.toString(test_array_03));\r\n test_array_03 = HybridSort(test_array_03, Math.log(test_array_03.length)/Math.log(2));\r\n System.out.println(\"Post-HybridSort array:\\t\\t\" + Arrays.toString(test_array_03));\r\n\r\n //Solutions to problem 5 (2-2, a-d)\r\n //2-2a) Each A`[i] is an element of A.\r\n //2-2b) Invariant: Sub-array A[1...j-1] consists of elements originally in A[1...j-1] unsorted.\r\n // Initialization: Sort array starts off with no items in it.\r\n // Maintenance: Each loop iteration moves small items down.\r\n // Termination: Loop ends when gone through a.length items, twice, with A[i] as the smallest item.\r\n //2-2c) Array A starts off unsorted. Each loop iteration moves smaller items to end of the array. When loops\r\n // are complete, A is sorted.\r\n //2-2d) Θ(n^2), just as bad as InsertionSort. Bubblesort will be slower since it swaps as much as possible.\r\n System.out.println(\"\\nPre-sort randomized array:\\t\" + Arrays.toString(test_array_04));\r\n BubbleSort(test_array_04);\r\n System.out.println(\"Post-InsertionSort array:\\t\" + Arrays.toString(test_array_04));\r\n }", "title": "" }, { "docid": "3d4a9d161eaed8c14d49f88ce9762b65", "score": "0.596349", "text": "public static <T extends Comparable<? super T>> void naturalFm(T[] z, int...xx){\n if (z == null) return;\n int N = z.length; if (N < 2) return;\n @SuppressWarnings(\"unchecked\")\n T[] aux = (T[]) newInstance(z.getClass().getComponentType(), N);\n Function<T[],Queue<Integer>> getRuns = (x) -> {\n int m = x.length;\n Queue<Integer> runs = new Queue<Integer>();\n int i = 0, c= 0;\n while(i < m) {\n c = i;\n if (i < m -1) \n while(i < m -1 && x[i].compareTo(x[i+1]) < 0) i++;\n runs.enqueue(++i - c); \n }\n return runs;\n };\n Consumer5<T[],T[],Integer,Integer,Integer> fasterMerge = (a,b,lo,mid,hi) -> {\n // re ex2210 ex2211 p285 && ex2223 p287\n // copy 1st half of a to 1st half of aux in order\n for (int i = lo; i <= mid; i++)\n b[i] = a[i]; \n // copy 2nd half of a to 2nd half of aux in reverse order\n for (int j = mid+1; j <= hi; j++)\n b[j] = a[hi-j+mid+1];\n // merge aux back to a without testing for exhaustion of either half (i>mid or j>hi)\n int i = lo, j = hi; // j starts at hi and is decremented\n for (int k = lo; k <= hi; k++) \n if (b[j].compareTo(b[i])<0) \n a[k] = b[j--];\n else a[k] = b[i++];\n }; \n Queue<Integer> runs = getRuns.apply(z); int run1 = 0, run2 = 0;\n int rlen = 0; // offset in z\n while (runs.size() > 1) {\n run1 = runs.dequeue();\n // ensure one pass through z at a time with no overlap\n if (run1 + rlen == N) { runs.enqueue(run1); rlen = 0; continue; }\n run2 = runs.dequeue();\n fasterMerge.accept(z, aux, rlen, rlen+run1-1, rlen+run1+run2-1); \n runs.enqueue(run1+run2); rlen = (rlen+run1+run2) % N;\n } \n }", "title": "" }, { "docid": "bc8ed698d718ef56c5a110b7e04561da", "score": "0.59256387", "text": "public static void sortNX(Comparable[] a) {\n int N = a.length;\n for (int i = 1; i < N; i++) {\n // for (int j = i; j > 0 && less(a[j], a[j - 1]); j--)\n // exch(a, j, j - 1);\n Comparable temp = a[i];\n int j = i;\n while (j> 0 && less(temp, a[j-1])){\n a[j] = a[j-1];\n j--;\n }\n a[j] = temp;\n }\n }", "title": "" }, { "docid": "54f9383218cc617e8b4227d6744ca10e", "score": "0.58985966", "text": "static double[] mergeSortIterative (double a[]) {\r\n \tif(a == null)\r\n \t\treturn null;\r\n \tif(a.length<=1)\r\n \t\treturn a;\r\n \t \t\r\n \tfor(int sizeOfArray =1; sizeOfArray<a.length; sizeOfArray *= 2)\r\n \t{\r\n \t\tdouble mergedArray[] = new double[a.length];\r\n \t\tint mergedArrayIndex = 0;\r\n \t\t\r\n \t\twhile(mergedArrayIndex < mergedArray.length)\r\n \t\t{\r\n \t\t\tint leftArrayIndex = mergedArrayIndex;\r\n \t\t\tint rightArrayIndex = leftArrayIndex+sizeOfArray;\r\n \t\t\tint leftArrayStop = min(rightArrayIndex,mergedArray.length); // if theres no right array fitting, the end would be end of array\r\n \t\t\tint rightArrayStop = min(rightArrayIndex+sizeOfArray, mergedArray.length);\r\n \t\t\t// merge arrays\r\n \t\t\twhile(leftArrayIndex<leftArrayStop && rightArrayIndex<rightArrayStop)\r\n \t\t\t{\r\n \t\t\t\tif(a[leftArrayIndex]>a[rightArrayIndex])\r\n \t\t\t\t\tmergedArray[mergedArrayIndex++] = a[rightArrayIndex++];\r\n \t\t\t\telse\r\n \t\t\t\t\tmergedArray[mergedArrayIndex++] = a[leftArrayIndex++];\r\n \t\t\t}\r\n \t \t// put the elements into merged array from left if any left\r\n \t \twhile(leftArrayIndex<leftArrayStop)\r\n \t \t{\r\n \t \t\tmergedArray[mergedArrayIndex++] = a[leftArrayIndex++];\r\n \t \t}\r\n \t \t// put the elements into merged array from right if any left\r\n \t \twhile(rightArrayIndex<rightArrayStop)\r\n \t \t{\r\n\t\t\t\t\tmergedArray[mergedArrayIndex++] = a[rightArrayIndex++];\r\n \t \t}\t\r\n \t\t\t\r\n \t\t}\r\n \t\ta = mergedArray;\r\n \t}\r\n \t\r\n \treturn a;\r\n\t\r\n }", "title": "" }, { "docid": "9ceeec23cec5a98e4cc13dde62f2dcbe", "score": "0.5887135", "text": "private static ListNode mergeKSortedListsBruteForce(ListNode[] nodes) {\n // We could create an array of length n*k\n // We have no way of know n, so we have to do like a integer max or soemthing size array\n // then sort the array\n // Create linked list out of array.\n return null;\n }", "title": "" }, { "docid": "038ae28640ae25bea30f6a1e6dd47dcd", "score": "0.58721536", "text": "public static void sort(Comparable[] a){\n\n //Check the whole array right of index i.\n //If there is a value smaller thant the value of the index i swap it\n //Else do nothing\n\n int N = a.length;\n\n for (int i = 0; i < N; i++) {\n int min = i;\n for (int j = 0; i+1 < N; j++) {\n if(less(a[j], a[min])){\n min = j;\n }\n }\n swap(a, i, min );\n }\n\n }", "title": "" }, { "docid": "9834158120b7da499f6a9e2da32e3599", "score": "0.5830746", "text": "public List<Integer> majority(int[] array, int k) {\n List<Integer> result = new ArrayList<>();\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for(int num : array) {\n Integer count = map.get(num);\n if(count != null) {\n map.put(num, count + 1);\n } else if(map.size() < k - 1){\n map.put(num, 1);\n } else {\n List<Integer> keysToRemove = new ArrayList<>();\n for(Integer key : map.keySet()) {\n Integer old = map.get(key) - 1;\n map.put(key, old);\n if(old == 0) {\n keysToRemove.add(key);\n }\n }\n for(int key : keysToRemove) {\n map.remove(key);\n }\n }\n }\n\n for(Integer key : map.keySet()) {\n map.put(key, 0);\n }\n for(int num : array) {\n Integer count = map.get(num);\n if(count != null) {\n count += 1;\n if(count > (array.length / k)) {\n result.add(num);\n map.remove(num);\n } else {\n map.put(num, count);\n }\n }\n }\n return result;\n }", "title": "" }, { "docid": "3c8016d3ef883321636bcc1f53e957dc", "score": "0.5810718", "text": "public void sort (E[] a) {\n int n = a.length;\n for (int fill = 0; fill < n-1; fill++) {\n int posMin = fill;\n for (int nxt = fill+1; nxt < n; nxt++)\n if (a[nxt].compareTo(a[posMin])<0)\n posMin = nxt;\n E tmp = a[fill];\n a[fill] = a[posMin];\n a[posMin] = tmp;\n }\n }", "title": "" }, { "docid": "6c16d545657140f8ae2712fab4392b1f", "score": "0.580526", "text": "public int[] sortArray(int[] a, int size) {\n int[] b = new int[size];//output (sorted array)\n int maxElem = findMaxElem(a,size);//this determines the value of k to be used for the size of the count array\n int[] c = new int[maxElem+1];\n for(int i = 0 ; i < maxElem; i++){\n c[i] = 0;\n }\n for(int j = 0; j < size; j++){\n c[a[j]]++;\n }\n for(int i = 1; i <= maxElem; i++){\n c[i] += c[i-1];\n }\n for(int i = size-1; i >= 0; i--){\n count++;\n b[c[a[i]]-1] = a[i];\n c[a[i]]--;\n }\n return b;\n }", "title": "" }, { "docid": "106945ba332d7f005cd6ef661d068d45", "score": "0.57566804", "text": "public static <T extends Comparable<? super T>> void sort(T[] a) {\n int swaps = 0;\n int g = 1;\n while (g < a.length/3) g = 3*g + 1; \n\n while (g > 0) {\n for (int i = g; i < a.length; i += 1) {\n T cur = a[i];\n int j = i;\n while (j >= g && less(cur, a[j - g])) {\n swaps++;\n exch(a, j, j-g);\n show(a);\n j -= g;\n }\n }\n g = g/3;\n }\n\n System.out.println(\"Swaps: \" + swaps);\n }", "title": "" }, { "docid": "2e0e6695fc6695c2ae3957379747eb82", "score": "0.5751701", "text": "private static boolean isSorted(Comparable[] a)\r\n \t{\r\n \t\tint N = a.length;\r\n \t\tfor (int i = 1; i < N; i++)\r\n \t\t\tif (less(a[i],a[i-1]))\r\n \t\t\t\treturn false;\r\n \t\treturn true;\r\n \t}", "title": "" }, { "docid": "408e9659324934fb0c39e759195fed3c", "score": "0.57404244", "text": "public static void mergeBU(Comparable[] a)\n {\n int N = a.length;\n aux = new Comparable[N];\n\n int minSz = 16;\n for (int lo = 0; lo < N-minSz; lo = lo+minSz+minSz) {\n int hi = Math.min(lo + minSz + minSz - 1, N - 1);\n insertion(a, lo, hi);\n }\n\n for (int sz = minSz*2; sz < N; sz = sz + sz) {\n for (int lo = 0; lo < N-sz; lo = lo+sz+sz) {\n int mid = lo + sz -1 ;\n int hi = Math.min(lo + sz + sz - 1, N - 1);\n merge(a, lo, mid, hi);\n }\n }\n }", "title": "" }, { "docid": "d36674097887942d82426d2160b5425c", "score": "0.5683558", "text": "@SafeVarargs\n static <T> T[] check(T... elements) {\n T[] s = elements.clone();\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n if (s[i] == null) {\n throw new NullPointerException(\"Array is null at position \" + i);\n }\n }\n // Check for nulls\n return s;\n }", "title": "" }, { "docid": "d7cb0a87ed2abdd29d4d610fafee9b1d", "score": "0.568129", "text": "public List<int[]> kSmallestPairs_bad(int[] nums1, int[] nums2, int k) {\r\n List<int[]> r = new ArrayList<int[]>();\r\n \tif (nums1==null||nums2==null||nums1.length==0||nums2.length==0||k==0) {\r\n \t\treturn r;\r\n \t}\r\n \t\r\n \tif ((nums1.length*nums2.length) < k ) \r\n \t\tk = (nums1.length*nums2.length);\r\n\r\n \tint i1=0;\r\n \tint i2=0;\r\n \tint maxi1 = 0;\r\n \tint maxi2 = 0;\r\n \tfor (int i=0;i<k;) {\r\n \t\tint[] rt = new int[] {nums1[i1],nums2[i2]};\r\n \t\tr.add(rt);\r\n \t\ti++;\r\n \t\tint c1= i1 + 1;\r\n \t\tint c2= i2 + 1;\r\n \t\t\r\n \t\tif (( c1 < nums1.length) && ( c2 < nums2.length)) { \t\t\t\r\n\t \t\tif (nums1[c1] + nums2[i2] > nums2[c2] + nums1[i1]) {\r\n\t \t\t\ti2 = c2;\r\n\t \t\t}else if (nums1[c1] + nums2[i2] < nums2[c2] + nums1[i1]) {\r\n\t \t\t\ti1 = c1;\r\n\t \t\t}else {\r\n\t \t\t\ti2 = c2;\t\r\n\t \t\t\trt = new int[] {nums1[i1+1],nums2[i2-1]};\t\t\r\n\t \t\t\tr.add(rt);\r\n\t \t\t\ti++;\r\n\t \t\t}\r\n }else if( c1 >= nums1.length) {\r\n \ti2++;\r\n \t\r\n }else if( c2 >= nums2.length) {\r\n \ti1++;\r\n \t\r\n }\r\n \t\t\r\n \t\tif ((i2>maxi2)&&(i2<nums2.length)) {\r\n \t\ti1 = 0;\r\n \t\tmaxi2 = i2;\r\n \t}\r\n \t\tif ((i1>maxi1)&&(i1<nums1.length)) {\r\n \t\ti2 = 0;\r\n \t\tmaxi1 = i1;\r\n \t}\r\n \t\t\r\n \t\tif (i1 >= nums1.length) {\r\n \t\t\ti1=0;\r\n \t\t\ti2++;\r\n \t\t\tif (i2 >= nums2.length) {\r\n \t\t\treturn r;\r\n \t\t}\r\n \t\t}\r\n \t\tif (i2 >= nums2.length) {\r\n \t\t\ti2=0;\r\n \t\t\ti1++;\r\n \t\t\tif (i1 >= nums1.length) {\r\n \t\t\treturn r;\r\n \t\t}\r\n \t\t}\r\n \t\tif ((i2>maxi2)&&(i2<nums2.length)) {\r\n \t\t\tmaxi2 = i2;\r\n \t\t}\r\n \t\tif ((i1>maxi1)&&(i1<nums1.length)) {\r\n \t\t\tmaxi1 = i1;\r\n \t\t}\r\n \t}\r\n\t\treturn r;\r\n }", "title": "" }, { "docid": "7536dc2672dbb6b8e271375b5553f27c", "score": "0.5661266", "text": "public static <T extends Comparable<? super T>> int bottomUpNp(T[] z) {\n if (z == null) return 0;\n int N = z.length; if (N < 2) return 0;\n int[] passes = {0};\n @SuppressWarnings(\"unchecked\")\n T[] aux = (T[]) newInstance(z.getClass().getComponentType(),N); \n Consumer5<T[],T[],Integer,Integer,Integer> merge = (a,b,lo,mid,hi) -> {\n int i = lo, j = mid+1;\n for (int k = lo; k <= hi; k++) \n b[k] = a[k];\n for (int k = lo; k <= hi; k++)\n if (i > mid) a[k] = b[j++];\n else if (j > hi ) a[k] = b[i++];\n else if (b[j].compareTo(b[i]) < 0) a[k] = b[j++];\n else a[k] = b[i++];\n };\n for (int sz = 1; sz < N; sz = sz+sz) {// sz: subarray size\n passes[0]++;\n for (int lo = 0; lo < N-sz; lo += sz+sz) // lo: subarray index\n merge.accept(z, aux, lo, lo+sz-1, Math.min(lo+sz+sz-1,N-1));\n }\n return passes[0];\n }", "title": "" }, { "docid": "0a9cdeb81112b577d90db759e75a6e4d", "score": "0.5647662", "text": "public static void timSort(int[] arr, int n)\n {\n int RUN=32;\n // Sort individual subarrays of size RUN\n for (int i = 0; i < n; i+=RUN) {\n insertionSort(arr, i, Math.min((i + 31), (n - 1)));\n }\n\n // start merging from size RUN (or 32). It will merge\n // to form size 64, then 128, 256 and so on ....\n for (int size = RUN; size < n; size = 2*size)\n {\n // pick starting point of left sub array. We\n // are going to merge arr[left..left+size-1]\n // and arr[left+size, left+2*size-1]\n // After every merge, we increase left by 2*size\n for (int left = 0; left < n; left += 2*size)\n {\n // find ending point of left sub array\n // mid+1 is starting point of right sub array\n int mid = left + size - 1;\n int right = Math.min((left + 2*size - 1), (n-1));\n\n // merge sub array arr[left.....mid] &\n // arr[mid+1....right]\n merge(arr, left, mid, right);\n }\n }\n }", "title": "" }, { "docid": "c2940738e6ee9b60f386746e412c6378", "score": "0.5638272", "text": "private static void sort(Comparable<Object>[] a, int numberUsed)\n\t{\n\t\tint index, nextSmallestIndex;\n\t\tfor (index = 0; index < numberUsed - 1; index++)\n\t\t{\n\t\t\tnextSmallestIndex = indexOfSmallest(index, a, numberUsed);\n\t\t\tswap(index, nextSmallestIndex, a);\n\t\t}\n\t}", "title": "" }, { "docid": "c0a72f0734849a718d4b2e859c281e02", "score": "0.56354225", "text": "@org.junit.Test\n\tpublic void testFastSortWithEmptyArray() {\n\t\tISort<Integer> sort = (ISort<Integer>) TestRunner.getImplementationInstanceForInterface(ISort.class);\n\n\t\ttry {\n\t\t\tsort.sortFast(new ArrayList<>());\n\t\t\tif (debug)\n\t\t\t\tSystem.out.println(\"testHeapSortWithNullParameter (case ignore input)\");\n\t\t} catch (Throwable e) {\n\t\t\tTestRunner.fail(\"Fail to slow sort\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "a1ba5e5e62c7f53a89a81d36832d8efc", "score": "0.5633905", "text": "@org.junit.Test\n\tpublic void testSlowSortWithEmptyArray() {\n\t\tISort<Integer> sort = (ISort<Integer>) TestRunner.getImplementationInstanceForInterface(ISort.class);\n\n\t\ttry {\n\t\t\tsort.sortSlow(new ArrayList<>());\n\t\t\tif (debug)\n\t\t\t\tSystem.out.println(\"testHeapSortWithNullParameter (case ignore input)\");\n\t\t} catch (Throwable e) {\n\t\t\tTestRunner.fail(\"Fail to slow sort\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "ceddf633d23018c252ec73adba4c8eb6", "score": "0.5600164", "text": "public int[] mergekSortedArrays(int[][] arrays) {\n if (arrays == null || arrays.length == 0) {\n return new int[0];\n }\n \n return mergeHelper_v1_minHeap(arrays);\n // return mergeHelper_v2_Divide_Conquer(arrays, 0, arrays.length - 1);\n // return mergeHelper_v3_Non_Recursive(arrays);\n }", "title": "" }, { "docid": "fa8f81b9a8a57cb9581a4b11d11bff3c", "score": "0.5571925", "text": "@Test\n public void testEmpty() {\n int[] array1 = new int[0];\n int[] array2= new int[0]; //correct sorted array\n \n array1 = QS.qs1(array1, 0, array1.length - 1);\n assertArrayEquals(array1,array2);\n array2 = QS.qs2(array2, 0, array2.length - 1);\n assertArrayEquals(array1,array2);\n }", "title": "" }, { "docid": "a8f848a78c450a548d139f502ad9bd28", "score": "0.55547374", "text": "public void threeWayQuickSorted(int[] a) {\n int N = a.length;\n threeWayQuickSorted(a,0,N-1);\n\n }", "title": "" }, { "docid": "394baa64b65812567acb3f822cc9e948", "score": "0.5547321", "text": "public static int alg1 (int[] a)\n{\n int this_sum = 0, max_sum = 0;\n\n for (int i=0; i<a.length; i++)\n for (int j=i; j<a.length; j++)\n {\n this_sum = 0;\n for (int k=i; k<=j; k++)\n this_sum += a[k];\n\n if (this_sum > max_sum) \n max_sum = this_sum;\n }\n return max_sum;\n}", "title": "" }, { "docid": "e36e68826084707930791ad070900583", "score": "0.55431044", "text": "private static void mergeSort(int[] a, int n) {\n\t\tif(n<2) return;\n\t\tint mid = n/2;\n\t\tint[] left = new int[mid];\n\t\tint[] right = new int[n-mid];\n\t\t\n\t\tfor(int i = 0 ;i< mid;i++) {\n\t\t\tleft[i] = a[i];\n\t\t}\n\t\t\n\t\tfor(int i = mid ; i< n ;i++) {\n\t\t\tright[i-mid] = a[i];\n\t\t}\n\t\t\n\t\tmergeSort(left,left.length);\n\t\tmergeSort(right, right.length);\n\t\tmerge(left,right,a);\n\t}", "title": "" }, { "docid": "ce9d2a90183b4fb3e56c791e54bfb1e2", "score": "0.5531065", "text": "@Test\r\n\tpublic void testSchnellesSortierenNk3() {\r\n\t\tint n = 1000;\r\n\t\tInteger[] feldI = new Integer[n];\r\n\t\tfor (int i = 0; i < n/4; i++) {\r\n\t\t\tfeldI[i] = erstelleSchluessel(n);\r\n\t\t}\r\n\t\tfor (int i = (int) ( n/4); i < n; i++) {\r\n\t\t\tfeldI[i] = n * 700 + i;\r\n\t\t}\r\n\t\tBucketsort<Integer> sS = new Bucketsort<>();\r\n\t\tlong zeit = System.currentTimeMillis();\r\n\t\tsS.bucketsort(feldI);\r\n\t\tzeit = System.currentTimeMillis() - zeit;\r\n\t\tSystem.out.println(sS);\r\n\t\tSystem.out.println(\"N: \" + n + \", Laufzeit: \" + zeit + \"\\n\");\r\n\t\tboolean korrektSortiert = true;\r\n\t\tfor (int i = 0; i < n - 1; i++) {\r\n\t\t\tif (feldI[i].hashCode() > feldI[i + 1].hashCode()) {\r\n\t\t\tkorrektSortiert = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tassertEquals(\"Sollte true sein, wenn Array korrekt sortiert ist\", korrektSortiert, true);\r\n\t}", "title": "" }, { "docid": "1e1c5154199c6cbd64aa7c1410146a0a", "score": "0.5526047", "text": "public static void main(String[] args) {\n\t\tint t1 = scn.nextInt();\n\t\t// Q1 - mergersort, complexity nlogn\n\t\tfor (int i = 0; i < t1; i++) {\n\t\t\tint n = scn.nextInt();\n\t\t\tint[] arr = takeinput(n);\n\t\t\tcount = 0;\n\t\t\tmergesort(arr, 0, arr.length - 1);\n\t\t\tSystem.out.println(count);\n\t\t}\n\t\t//Q2 method 1 complexity nlogn\n\t/*\tsubtract X from array\n\t\tquick sort it with absolute values\n\t\tand take first k numbers*/\n\t\tint t21 = scn.nextInt();\n\t\tfor (int i = 0; i < t21; i++) {\n\t\t\tint n = scn.nextInt();\n\t\t\tint[] arr = takeinput(n);\n\t\t\tint X = scn.nextInt();\n\t\t\tint K = scn.nextInt();\n\t\t\tQ2m1(arr,X,K);\n\t\t}\n\t\t//Q2 method 2 complexity nlogk\n\t\t/*subtract X from array\n\t\tcreate heap of k capacity\n\t\tadd nos and remove least priority num\n\t\tprint heap\n\t\tcode is optimised form of above*/\n\t\tint t22 = scn.nextInt();\n\t\tfor (int i = 0; i < t22; i++) {\n\t\t\tint n = scn.nextInt();\n\t\t\tint[] arr = takeinput(n);\n\t\t\tint X = scn.nextInt();\n\t\t\tint K = scn.nextInt();\n\t\t\tQ2m2(arr,X,K);\n\t\t}\n\t\t//Q2 method 3 use redix sort instead of quick sort- complexity- O(n)\n\t/*\tvariation of method 1\n\t\tsubtract X from array\n\t\tcounting sort it with absolute values\n\t\tand take first k numbers*/\n\t}", "title": "" }, { "docid": "b3176ce592da54bb7d2447eb86287661", "score": "0.55241203", "text": "@Test\r\n\tpublic void testSchnellesSortierenNk1() {\r\n\t\tint n = 10;\r\n\t\tInteger[] feldI = new Integer[n];\r\n\t\tfor (int i = 0; i < n/4; i++) {\r\n\t\t\tfeldI[i] = erstelleSchluessel(n);\r\n\t\t}\r\n\t\tfor (int i = (int) ( n/4); i < n; i++) {\r\n\t\t\tfeldI[i] = n * 700 + i;\r\n\t\t}\r\n\t\tBucketsort<Integer> sS = new Bucketsort<>();\r\n\t\tlong zeit = System.currentTimeMillis();\r\n\t\tsS.bucketsort(feldI);\r\n\t\tzeit = System.currentTimeMillis() - zeit;\r\n\t\tSystem.out.println(sS);\r\n\t\tSystem.out.println(\"N: \" + n + \", Laufzeit: \" + zeit + \"\\n\");\r\n\t\tboolean korrektSortiert = true;\r\n\t\tfor (int i = 0; i < n - 1; i++) {\r\n\t\t\tif (feldI[i].hashCode() > feldI[i + 1].hashCode()) {\r\n\t\t\tkorrektSortiert = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tassertEquals(\"Sollte true sein, wenn Array korrekt sortiert ist\", korrektSortiert, true);\r\n\t}", "title": "" }, { "docid": "b08a9542d4460ba04ae8f7dff72337bb", "score": "0.55162776", "text": "static int findKthSmallestUsingSorting(int[] a, int k) {\n Arrays.sort(a);\n // handle k > a.length\n // k = k % a.length;\n return a[k - 1];\n }", "title": "" }, { "docid": "16622a51cb0b00a4ae4aa0af6318127b", "score": "0.5497246", "text": "static void findMinAvgSubarray(int n, int k) \n { \n // k must be smaller than or equal to n \n if (n < k) \n return; \n \n // Initialize beginning index of result \n int res_index = 0; \n \n // Compute sum of first subarray of size k \n int curr_sum = 0; \n for (int i = 0; i < k; i++) \n curr_sum += arr[i]; \n \n // Initialize minimum sum as current sum \n int min_sum = curr_sum; \n \n // Traverse from (k+1)'th element to n'th element \n for (int i = k; i < n; i++) \n { \n // Add current item and remove first \n // item of previous subarray \n curr_sum += arr[i] - arr[i - k]; \n \n // Update result if needed \n if (curr_sum < min_sum) { \n min_sum = curr_sum; \n res_index = (i - k + 1); \n } \n } \n \n System.out.println(\"Subarray between [\" + \n res_index + \", \" + (res_index + k - 1) + \n \"] has minimum average\"); \n }", "title": "" }, { "docid": "66e155b532474855c4b1b74061098048", "score": "0.5488459", "text": "private static void sort1(int a[], int n) {\n\n int cnt0 = 0, cnt1 = 0, cnt2 = 0;\n\n for (int i = 0; i < n; i++) {\n if (a[i] == 0)\n cnt0++;\n else if (a[i] == 1)\n cnt1++;\n else\n cnt2++;\n }\n\n int idx = 0;\n while (cnt0 > 0) {\n a[idx++] = 0;\n cnt0--;\n }\n while (cnt1 > 0) {\n a[idx++] = 1;\n cnt1--;\n }\n while (cnt2 > 0) {\n a[idx++] = 2;\n cnt2--;\n }\n }", "title": "" }, { "docid": "652d3849566e05b9ae7eef2cc9d87f6f", "score": "0.54878193", "text": "static int minimumDistances(int[] a) {\n Map<Integer, List<Integer>> indexes = new HashMap<>();\n\n for (int i=0; i<a.length;i++) {\n if (indexes.get(a[i])==null){\n List<Integer> ll = new ArrayList<>();\n ll.add(i);\n indexes.put(a[i], ll);\n } else {\n List<Integer> l = indexes.get(a[i]);\n l.add(i);\n }\n }\n\n return indexes.values().stream()\n .filter((List<Integer> i) -> i.size()>1)\n// .peek(System.out::println)\n .map(i -> i.stream().reduce((k, p) -> k - p).get())\n .map(Math::abs).min(Integer::compareTo)\n .orElse(-1);\n\n }", "title": "" }, { "docid": "a58d6d619b482c80db9cf4e56c6e99aa", "score": "0.54861265", "text": "public static <T extends Comparable<? super T>> void natural(T[] z, int...xx){\n if (z == null) return;\n int N = z.length; if (N < 2) return;\n @SuppressWarnings(\"unchecked\")\n T[] aux = (T[]) newInstance(z.getClass().getComponentType(), N);\n Function<T[],Queue<Integer>> getRuns = (x) -> {\n int m = x.length;\n Queue<Integer> runs = new Queue<Integer>();\n int i = 0, c= 0;\n while(i < m) {\n c = i;\n if (i < m -1) \n while(i < m -1 && x[i].compareTo(x[i+1]) < 0) i++;\n runs.enqueue(++i - c); \n }\n return runs;\n };\n Consumer5<T[],T[],Integer,Integer,Integer> merge = (a,b,lo,mid,hi) -> {\n int i = lo, j = mid+1;\n for (int k = lo; k <= hi; k++) \n b[k] = a[k];\n for (int k = lo; k <= hi; k++)\n if (i > mid) a[k] = b[j++];\n else if (j > hi ) a[k] = b[i++];\n else if (b[j].compareTo(b[i]) < 0) a[k] = b[j++];\n else a[k] = b[i++];\n }; \n Queue<Integer> runs = getRuns.apply(z); int run1 = 0, run2 = 0;\n int rlen = 0; // offset in z\n while (runs.size() > 1) {\n run1 = runs.dequeue();\n // ensure one pass through z at a time with no overlap\n if (run1 + rlen == N) { runs.enqueue(run1); rlen = 0; continue; }\n run2 = runs.dequeue();\n merge.accept(z, aux, rlen, rlen+run1-1, rlen+run1+run2-1); \n runs.enqueue(run1+run2); rlen = (rlen+run1+run2) % N;\n } \n }", "title": "" }, { "docid": "b61b29ff4641997f02d611343745a001", "score": "0.54859906", "text": "public static int getLisSize(int[] arr) { // only size - O(nlog(n))\n if(arr.length == 0){\n return 0;\n }else if(arr.length == 1){\n return 1;\n }\n\n int n = arr.length;\n int[] lis = new int[n];\n lis[0] = arr[0];\n int k = 1;\n\n for (int i = 1; i < n; i++) {\n int index = Arrays.binarySearch(lis, 0, k, arr[i]);\n\n if(index < 0) {\n index = - index - 1; // fix java's results\n }\n if(index == k) {//count the length of the max sequence\n k++;\n }\n lis[index] = arr[i];//add it to new array\n }\n\n //get the array\n int[] array = new int[k];\n for (int i = 0; i < array.length; i++) {\n array[i] = lis[i];\n }\n System.out.println(Arrays.toString(array));\n return k;\n }", "title": "" }, { "docid": "c227f52f22e914e6a5a286fe17f822b9", "score": "0.54807574", "text": "public int method1(int[] a, int k) {\n int[] a_sorted = a.clone(); // Clone first so as not to alter the original.\n Arrays.sort(a_sorted);\n return a_sorted[a.length - k];\n }", "title": "" }, { "docid": "6507f4150fb85f2166a984fb5d8f119b", "score": "0.54739666", "text": "public static void timSort(int[] arr, int n){\n for (int i = 0; i < n; i += 32){\n insertionSort(arr, i, Math.min((i + 31), (n - 1)));\n }\n\n // start merging from size RUN (or 32). It will merge\n // to form size 64, then 128, 256 and so on ....\n for (int size = 32; size < n; size = 2 * size){\n // pick starting point of left sub array. We\n // are going to merge arr[left..left+size-1]\n // and arr[left+size, left+2*size-1]\n // After every merge, we increase left by 2*size\n for (int left = 0; left < n; left += 2 * size){\n // find ending point of left sub array\n // mid+1 is starting point of right sub array\n int mid = left + size - 1;\n int right = Math.min((left + 2 * size - 1), (n - 1));\n // merge sub array arr[left.....mid] &\n // arr[mid+1....right]\n merge(arr, left, mid, right);\n }\n }\n }", "title": "" }, { "docid": "b67def8105c201de8bfa887ba93c19f2", "score": "0.5468738", "text": "public static <T extends Comparable<? super T>> void naturalSm(T[] z, int...xx){\n if (z == null) return;\n int N = z.length; if (N < 2) return;\n @SuppressWarnings(\"unchecked\")\n T[] aux = (T[]) newInstance(z.getClass().getComponentType(), N);\n Function<T[],Queue<Integer>> getRuns = (x) -> {\n int m = x.length;\n Queue<Integer> runs = new Queue<Integer>();\n int i = 0, c= 0;\n while(i < m) {\n c = i;\n if (i < m -1) \n while(i < m -1 && x[i].compareTo(x[i+1]) < 0) i++;\n runs.enqueue(++i - c); \n }\n return runs;\n };\n Consumer5<T[],T[],Integer,Integer,Integer> merge = (a,b,lo,mid,hi) -> {\n int i = lo, j = mid+1;\n for (int k = lo; k <= hi; k++) \n b[k] = a[k];\n for (int k = lo; k <= hi; k++)\n if (i > mid) a[k] = b[j++];\n else if (j > hi ) a[k] = b[i++];\n else if (b[j].compareTo(b[i]) < 0) a[k] = b[j++];\n else a[k] = b[i++];\n }; \n Queue<Integer> runs = getRuns.apply(z); int run1 = 0, run2 = 0;\n int rlen = 0; // offset in z\n while (runs.size() > 1) {\n run1 = runs.dequeue();\n // ensure one pass through z at a time with no overlap\n if (run1 + rlen == N) { runs.enqueue(run1); rlen = 0; continue; }\n run2 = runs.dequeue();\n // skip merge when subarrays are in order\n if(z[rlen+run1-1].compareTo(z[rlen+run1])>0)\n merge.accept(z, aux, rlen, rlen+run1-1, rlen+run1+run2-1); \n runs.enqueue(run1+run2); rlen = (rlen+run1+run2) % N;\n } \n }", "title": "" }, { "docid": "5d19b8f95a6d65e062029baa38ccccb9", "score": "0.54665285", "text": "public static void mergeSort(int[] a)\r\n\t{\r\n\t\tint dataSize = a.length;\r\n\t\t\r\n\t\tif ( dataSize >= 2)\r\n\t\t{\t\r\n\t\t\tint halfLength = dataSize / 2;\r\n\t\t\tint [] firstHalf = new int[halfLength];\r\n\t\t\tint [] secondHalf = new int[dataSize-halfLength];\r\n\t\t\t\r\n\t\t\tdivide(a, firstHalf, secondHalf);\r\n\t\t\tmergeSort(firstHalf);\r\n\t\t\tmergeSort(secondHalf);\r\n\t\t\tmerge(a, firstHalf, secondHalf);\r\n\t\t}\r\n\t\telse\r\n\t\t{\t\r\n\t\t\t// do nothing, an array of size 1 is already sorted\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2ee8a580dc14d8afa9cf718600ea9230", "score": "0.5466203", "text": "public static void shellSort(Comparable[] a) {\n int N = a.length;\n int h = 1;\n while (h < N / 3){\n h = 3 * h + 1; // 1, 4, 13, 40, 121, 364, ... This number is given by Prof. Segewick\n }\n while (h >= 1) { //if h = 1 then it is standard insertion sort\n for (int i = h; i < N; i++) { //the loop will compare every element behinds h to the element located with h interval before.\n for (int j = i; j >= h; j -= h){\n if(less(a[j], a[j - h])){\n exchange(a, j, j - h);\n }\n }\n }\n h = h / 3;// reduce the h to a third of itself. then shellsort again.\n }\n }", "title": "" }, { "docid": "defd302df5060a52138ed29391939af4", "score": "0.54593915", "text": "public List<Integer> majorityI(int[] array, int k) {\n int L = array.length;\n List<Integer> result = new ArrayList<>();\n Map<Integer, Integer> map = new HashMap<>();\n for (int ele : array) {\n Integer count = map.get(ele);\n if (count != null) {\n map.put(ele, count + 1);\n } else {\n map.put(ele, 1);\n }\n }\n for (Map.Entry<Integer, Integer> entry : map.entrySet()) {\n if (entry.getValue() > L / k) {\n result.add(entry.getKey());\n }\n }\n return result;\n }", "title": "" }, { "docid": "63664ed0c0d7e0f765180aa7990f3618", "score": "0.5457728", "text": "private static void sort(int[] a) {\n\t\tint j, i, key;\n\t\tint num = a.length;\n\t\t\tfor (i = 1; i< num; i++) \n\t {\n\t j = i;\n\t key = a[i]; \n\t while (j > 0 && key < a[j-1])\n\t {\n\t a[j] = a[j-1];\n\t j = j-1;\n\t }\n\t a[j] = key; \n\t } \n\t\t}", "title": "" }, { "docid": "60c69e6e9f7c847e3989c122a4abf944", "score": "0.5451697", "text": "Array\n\n// https://leetcode.com/problems/degree-of-an-array/\n\n\n// Approach: hashmap, queue Time O(mn) m = # highest degree elements Space O(n + m)\n\nclass Solution {\n public int findShortestSubArray(int[] nums) {\n Map<Integer, Integer> map = new HashMap<>();\n // first traversal finds the element with highest degree (maybe multiple)\n for(int i = 0; i < nums.length; i++){\n map.put(nums[i], map.getOrDefault(nums[i], 0) + 1);\n }\n int maxfreq = Integer.MIN_VALUE;\n for(Map.Entry<Integer, Integer> entry : map.entrySet()){\n Integer value = entry.getValue();\n if (value > maxfreq) maxfreq = value;\n }\n Queue<Integer> elements = new LinkedList<>();\n for(Map.Entry<Integer, Integer> entry : map.entrySet()){\n if(entry.getValue() == maxfreq) elements.add(entry.getKey());\n }\n // second traversal to record the length of subarray \n int min = Integer.MAX_VALUE;\n // for each of the element with highest freq\n while(!elements.isEmpty()){\n int ele = elements.poll();\n int freq = 0;\n int start = 0;\n for(int i = 0; i < nums.length; i++){\n //System.out.println(\"ith: \" + nums[i] + \" ele\" + ele + \" freq \" + freq +\" maxfreq\" + maxfreq);\n if(nums[i] != ele){\n if (start == i) start += 1;\n }else{\n freq += 1;\n if (freq == maxfreq){\n if(i - start + 1 < min) min = i - start + 1;\n break;\n }\n }\n }\n }\n return min;\n \n }", "title": "" }, { "docid": "4369b4880ec02747c1760ff12c5054ca", "score": "0.5451214", "text": "public static void main(String[] args) {\n Integer[] a = { 6, 19, 24, 31 };\n Integer[] b = { 2, 5, 9, 67 };\n Integer[] c = { 8, 20, 76, 389, 399 };\n Integer[] d = { 266, 388, 736, 736, 3923 };\n Integer[] e = { 38, 234, 1021, 7136, 39342 };\n\n HashMap<Integer, Integer[]> map = new HashMap<Integer, Integer[]>();\n map.put(0, a);\n map.put(1, b);\n map.put(2, c);\n map.put(3, d);\n map.put(4, e);\n\n int arrSize = map.size();\n // The PriorityQueue used for sort\n PriorityQueue<Element> pq = new PriorityQueue<Element>(arrSize);\n\n // Put the first element of each array to the PriorityQueue\n for (int i = 0; i < arrSize; i++) {\n pq.offer(new Element(map.get(i)[0], i, 0));\n }\n\n Element tem = null;\n int i = 1;\n while ((tem = pq.poll()) != null) {\n System.out.print(tem.value + \"\\t\");\n /*if (i % 6 == 0)\n System.out.println();*/\n i++;\n // Put the next element to array if have\n if (tem.whichIndex + 1 < map.get(tem.whichArray).length)\n pq.offer(new Element( map.get(tem.whichArray)[tem.whichIndex + 1], tem.whichArray, tem.whichIndex + 1));\n }\n }", "title": "" }, { "docid": "6b3a6911f8b31c4836050deddb9a8d75", "score": "0.5446068", "text": "private static void findSubArrays(int size, int[] arr) {\r\n\t\tint f = 0, s = 0, c = 0, max_so_far = 0;\r\n\t\tfor(int i = 0;i< size;i++) {\r\n\t\t\tif(i==0 && arr[0] < arr[1]){\r\n\t\t\t\tc++;\r\n\t\t\t\tmax_so_far = arr[i];\r\n\t\t\t}\r\n\t\t\telse if( i-1 >=0 && arr[i] > max_so_far && arr[i] > arr[i-1]) {\r\n\t\t\t\tc++;\r\n\t\t\t\tmax_so_far = arr[i];\r\n\t\t\t} else {\r\n\t\t\t\ts = f > s ? f : s;\r\n\t\t\t\tf = c > f ? c : f;\r\n\t\t\t\tc = 0;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tSystem.out.println(s+f);\r\n\t}", "title": "" }, { "docid": "7a54f665d5dbbc923760432b55306c46", "score": "0.5444527", "text": "public static List<Integer> problem5(int[] arr, int k){\n if(arr == null || arr.length == 0 || k < 0)\n return new ArrayList<>();\n\n Map<Integer, Integer> map = new HashMap<>();\n for(int i : arr)\n map.put(i, map.getOrDefault(i, 0) + 1);\n PriorityQueue<Map.Entry<Integer, Integer>> minHeap = new PriorityQueue<>(Map.Entry.comparingByValue());\n for(Map.Entry<Integer, Integer> entry : map.entrySet()){\n if(minHeap.size() < k)\n minHeap.offer(entry);\n else if(minHeap.peek().getValue() < entry.getValue()){\n minHeap.offer(entry);\n minHeap.poll();\n }\n }\n List<Integer> output = new ArrayList<>();\n Iterator<Map.Entry<Integer, Integer>> iter = minHeap.iterator();\n while(iter.hasNext())\n output.add(iter.next().getKey());\n\n return output;\n }", "title": "" }, { "docid": "2956de96b5f29af8ef7d3504f81f2653", "score": "0.54412204", "text": "public static <Key extends Comparable<Key>> void sort(Key[] a) {\n ArrayListPQ<Key> pq = new ArrayListPQ<>();\n for (int i=0; i<a.length; i++) pq.insert(a[i]);\n for (int i=a.length-1; i>=0; i--) a[i] = pq.delMax();\n}", "title": "" }, { "docid": "829b80db7c73e78e507716b463f06f7c", "score": "0.54410154", "text": "public static void solve(int[] arr,int n,int k)\n {\n ArrayList<Integer> ans=new ArrayList<>();\n Queue<Integer> q=new LinkedList<>();\n\n int i=0,j=0;\n\n while(j<n)\n {\n if(arr[j]<0)\n q.add(arr[j]);\n\n if(j-i+1<k)\n j++;\n else if(j-i+1==k)\n {\n int temp=-1;\n if(q.size()==0)\n ans.add(0);\n else\n {\n temp=q.peek();\n ans.add(temp);\n }\n\n if(arr[i]==temp)\n q.poll();\n\n i++;\n j++;\n }\n }\n\n System.out.println(\"The first negative in the Subarray is : \"+ans);\n }", "title": "" }, { "docid": "5780d59b18e7bfa6ad46a8ee94d383a4", "score": "0.54397196", "text": "public static void ascendingArrays (int [] a) {\r\n\t\t\t//Variables to estimate elapsed time\r\n\t\t\tlong tStart, tEnd;\r\n\t\t\tSystem.out.println(\"\\nThe assending order integer array with \" + a.length + \" elements:\\n\");\r\n\t\t\t//Printing the array\r\n\t\t\tArrayManaging.printArray(a);\r\n\t\t\ttStart = System.nanoTime();\r\n\t\t\t//Sorting the array\r\n\t\t\tquicksort(a, 0, a.length - 1);\r\n\t\t\ttEnd = System.nanoTime();\r\n\t\t\tSystem.out.println(\"\\n\\nThe sorted list is: \\n\");\r\n\t\t\t//Printing the sorted array\r\n\t\t\tArrayManaging.printArray(a);\r\n\t\t\t//Printing out the elapsed time\r\n\t\t\tSystem.out.println(\"\\n\\nThe sorting took \" + (tEnd - tStart) + \" nanoseconds.\");\r\n\t\t}", "title": "" }, { "docid": "783baf1969eca18fc39ed07cbd3f31f6", "score": "0.54303104", "text": "@Test\r\n\tpublic void testSchnellesSortierenNk4() {\r\n\t\tint n = 10000;\r\n\t\tInteger[] feldI = new Integer[n];\r\n\t\tfor (int i = 0; i < n/4; i++) {\r\n\t\t\tfeldI[i] = erstelleSchluessel(n);\r\n\t\t}\r\n\t\tfor (int i = (int) ( n/4); i < n; i++) {\r\n\t\t\tfeldI[i] = n * 700 + i;\r\n\t\t}\r\n\t\tBucketsort<Integer> sS = new Bucketsort<>();\r\n\t\tlong zeit = System.currentTimeMillis();\r\n\t\tsS.bucketsort(feldI);\r\n\t\tzeit = System.currentTimeMillis() - zeit;\r\n\t\tSystem.out.println(sS);\r\n\t\tSystem.out.println(\"N: \" + n + \", Laufzeit: \" + zeit + \"\\n\");\r\n\t\tboolean korrektSortiert = true;\r\n\t\tfor (int i = 0; i < n - 1; i++) {\r\n\t\t\tif (feldI[i].hashCode() > feldI[i + 1].hashCode()) {\r\n\t\t\tkorrektSortiert = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tassertEquals(\"Sollte true sein, wenn Array korrekt sortiert ist\", korrektSortiert, true);\r\n\t}", "title": "" }, { "docid": "b65a73c5eef7bfba5993b190d167ef01", "score": "0.5418642", "text": "private static int[] findKSmallestElements(int[] values, int k) {\n\t\tif (values == null || values.length == 0 || k <= 0){\n\t\t\treturn new int[]{};\n\t\t} else if (k >= values.length) {\n\t\t\treturn values;\n\t\t}\n\n\t\tquicksortK(values, 0, values.length - 1, k);\n\t\tint[] kSmallest = Arrays.copyOfRange(values, 0, k);\n\t\treturn kSmallest;\n\t}", "title": "" }, { "docid": "055b59f931ad1d6560249013729eeada", "score": "0.54181874", "text": "@Test\n public void testParallelMergesortArrayLengthZeroArray() {\n Sorting.parallelMergesort(lengthZeroArray);\n assertTrue(Sorting.isSorted(lengthZeroArray));\n }", "title": "" }, { "docid": "fa4432afdda8684c8feee438708383da", "score": "0.54172033", "text": "static void gnomeSort_1(int[] arr, int n){\n int index = 0;\n while (index < n){\n if (index == 0){\n index++;\n }\n if (arr[index] >= arr[index-1]) index++;\n else {\n int temp = arr[index];\n arr[index] = arr[index-1];\n arr[index-1] = temp;\n index--;\n }\n }\n }", "title": "" }, { "docid": "4046a9788a93ca92abd7821e1534c928", "score": "0.5415465", "text": "private static boolean isSorted(Comparable[] a) {\n \tfor (int i = 1; i < a.length; i++)\n \t\tif (less(a[i], a[i-1])) return false;\n \treturn true;\n }", "title": "" }, { "docid": "f479f4fd7e1f8f39eeff273081a2a4cf", "score": "0.5414482", "text": "static void heapSort(int[] arr, int n, int k) {\n\n // min heap\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n\n for (int i = 0; i < k; i++) {\n pq.add(arr[i]);\n }\n int index = 0;\n for (int i = k + 1; i < n; i++) {\n arr[index++] = pq.peek();\n pq.poll();\n pq.add(arr[i]);\n }\n\n Iterator<Integer> itr = pq.iterator();\n while (itr.hasNext()) {\n arr[index++] = pq.peek();\n pq.poll();\n }\n }", "title": "" }, { "docid": "894cc747dca176d0c36c7b8e07e991f4", "score": "0.5408194", "text": "@Test\r\n\tpublic void testSchnellesSortierenNk2() {\r\n\t\tint n = 100;\r\n\t\tInteger[] feldI = new Integer[n];\r\n\t\tfor (int i = 0; i < n/4; i++) {\r\n\t\t\tfeldI[i] = erstelleSchluessel(n);\r\n\t\t}\r\n\t\tfor (int i = (int) ( n/4); i < n; i++) {\r\n\t\t\tfeldI[i] = n * 700 + i;\r\n\t\t}\r\n\t\tBucketsort<Integer> sS = new Bucketsort<>();\r\n\t\tlong zeit = System.currentTimeMillis();\r\n\t\tsS.bucketsort(feldI);\r\n\t\tzeit = System.currentTimeMillis() - zeit;\r\n\t\tSystem.out.println(sS);\r\n\t\tSystem.out.println(\"N: \" + n + \", Laufzeit: \" + zeit + \"\\n\");\r\n\t\tboolean korrektSortiert = true;\r\n\t\tfor (int i = 0; i < n - 1; i++) {\r\n\t\t\tif (feldI[i].hashCode() > feldI[i + 1].hashCode()) {\r\n\t\t\tkorrektSortiert = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tassertEquals(\"Sollte true sein, wenn Array korrekt sortiert ist\", korrektSortiert, true);\r\n\t}", "title": "" }, { "docid": "09200d3a53f01c13c76c87f5bf874396", "score": "0.5404823", "text": "@Test\r\n\tpublic void testSchnellesSortierenNk5() {\r\n\t\tint n = 100000;\r\n\t\tInteger[] feldI = new Integer[n];\r\n\t\tfor (int i = 0; i < n/4; i++) {\r\n\t\t\tfeldI[i] = erstelleSchluessel(n);\r\n\t\t}\r\n\t\tfor (int i = (int) ( n/4); i < n; i++) {\r\n\t\t\tfeldI[i] = n * 700 + i;\r\n\t\t}\r\n\t\tBucketsort<Integer> sS = new Bucketsort<>();\r\n\t\tlong zeit = System.currentTimeMillis();\r\n\t\tsS.bucketsort(feldI);\r\n\t\tzeit = System.currentTimeMillis() - zeit;\r\n\t\tSystem.out.println(sS);\r\n\t\tSystem.out.println(\"N: \" + n + \", Laufzeit: \" + zeit + \"\\n\");\r\n\t\tboolean korrektSortiert = true;\r\n\t\tfor (int i = 0; i < n - 1; i++) {\r\n\t\t\tif (feldI[i].hashCode() > feldI[i + 1].hashCode()) {\r\n\t\t\tkorrektSortiert = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tassertEquals(\"Sollte true sein, wenn Array korrekt sortiert ist\", korrektSortiert, true);\r\n\t}", "title": "" }, { "docid": "1051ddef91412950336b14b8ef10ba07", "score": "0.54009277", "text": "public void ShellSort(Comparable[] a) {\r\n int N = a.length;\r\n\r\n // 3x+1 increment sequence: 1, 4, 13, 40, 121, 364, 1093, ... \r\n int h = 1;\r\n while (h < N / 3) {\r\n h = 3 * h + 1;\r\n }\r\n\r\n while (h >= 1) {\r\n // h-Sort the array\r\n for (int i = h; i < N; i++) {\r\n for (int j = i; j >= h && sortUtilLess(a[j], a[j - h]); j -= h) {\r\n exch(a, j, j - h);\r\n }\r\n }\r\n assert isHsorted(a, h);\r\n h /= 3;\r\n }\r\n assert isSorted(a);\r\n }", "title": "" }, { "docid": "509ad80e5b17a317f30d41bfc971f27a", "score": "0.5400552", "text": "public static int minSum(int a[], int n, int k)\n {\n // Implements the MaxHeap\n PriorityQueue<Integer> maxheap\n = new PriorityQueue<>((x, y) -> y - x);\n\n // Insert elements into the MaxHeap\n for (int i = 0; i < n; i++)\n maxheap.add(a[i]);\n\n while (maxheap.size() > 0 && k > 0) {\n\n // Remove the maximum\n int max_ele = maxheap.poll();\n\n // Insert maximum / 2\n maxheap.add((int)Math.ceil(max_ele / 2.0));\n k -= 1;\n }\n\n // Stores the sum of remaining elements\n\n int sum = 0;\n while (maxheap.size() > 0)\n sum += maxheap.poll();\n\n return sum;\n }", "title": "" }, { "docid": "a19edfc6be1a03c5dbc138c8d2011b26", "score": "0.5397302", "text": "public int[] sortBestK(int[] a, int k) {\n build_min_heap(a);\n\n // Heap sort\n for (int i = a.length - 1; i >= a.length - 1 - k; i--) {\n int temp = a[0];\n a[0] = a[i];\n a[i] = temp;\n\n // Heapify root element\n min_heapify(a, i, 0);\n }\n\n int[] output = new int[k];\n for (int i = 0; i < k; i++){\n output[i] = a[a.length - 1 - i];\n }\n return output;\n }", "title": "" }, { "docid": "b550f254058cbfc893aefe6665e6bfd2", "score": "0.5383365", "text": "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tint n;\r\n\t\tSystem.out.println(\"Enter the size of the array: \");\r\n\t\tn=s.nextInt();\r\n\t\tint[] a=new int[n];\r\n\t\tSystem.out.println(\"Enter the array elements: \");\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\ta[i]=s.nextInt();\r\n\t\t}\r\n\t\tfor(int i=1;i<n;i++)\r\n\t\t{\r\n\t\t\tint key=a[i];\r\n\t\t\tint j=i-1;\r\n\t\t\twhile(j>=0 && a[j]>key)\r\n\t\t\t{\r\n\t\t\t\ta[j+1]=a[j];\r\n\t\t\t\tj=j-1;\r\n\t\t\t}\r\n\t\t\ta[j+1]=key;\r\n\t\t}\r\n\t\tSystem.out.println(\"Sorted array is\");\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(a[i]+\" \");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8e4689e7225453a580cae91ecfc7e2a5", "score": "0.5380702", "text": "private static <T extends Comparable<T>> boolean isSorted(T[] a) {\n final int n = a.length;\n for (int i = 1; i < a.length; ++i) {\n if (less(a[i], a[i - 1])) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "df126379cd34ca85c98414ff18038006", "score": "0.5380202", "text": "private int kth(int[] a, int aleft, int[] b, int bleft, int k) {\n // three base cases:\n // 1. we already eliminate all the elements in a\n // 2. we already eliminate all the elements in b\n // 3. when k is reduced to 1, don't miss this base case\n // The reason why we have this as base case is in the following logic\n // we need k >= 2 to make it work\n if (aleft >= a.length) {\n return b[bleft + k - 1];\n }\n if (bleft >= b.length) {\n return a[aleft + k - 1];\n }\n if (k == 1) {\n return Math.min(a[aleft], b[bleft]);\n }\n // we compare the k/2 th element in a's subarray\n // and the k/2 the element in b's subarray\n // to determine which k/2 partition can be surely included in the smallest k elements\n int amid = aleft + k / 2 - 1;\n int bmid = bleft + k / 2 - 1;\n int aval = amid >= a.length ? Integer.MAX_VALUE : a[amid];\n int bval = bmid >= b.length ? Integer.MAX_VALUE : b[bmid];\n if (aval <= bval) {\n return kth(a, amid + 1, b, bleft, k - k / 2);\n } else {\n return kth(a, aleft, b, bmid + 1, k - k / 2);\n }\n }", "title": "" }, { "docid": "a2850bb62ddb1b705fef575515485f82", "score": "0.5379947", "text": "public static int[] topKFrequent(int[] nums, int k) {\n Map<Integer, Integer> count = new HashMap<>();\n for (int num : nums) {\n count.put(num, count.getOrDefault(num, 0) + 1);\n }\n\n // 错误的地方在于,我里面存放的是数字,但是用于比较的是出现的次数\n // int[] 的第一个元素代表数组的值,第二个元素代表了该值出现的次数\n PriorityQueue<int[]> queue = new PriorityQueue<>(k, (int[] m, int[] n) -> m[1] - n[1]);\n for (int num : count.keySet()) {\n int cnt = count.get(num);\n if (queue.size() < k) {\n // 如果队列没满,直接存放\n queue.offer(new int[]{num, cnt});\n } else {\n // 满了,则比较堆顶的大小\n if (cnt > queue.peek()[1]) {\n // 次数比堆顶的多,先删除堆顶元素,再入堆\n queue.poll();\n queue.offer(new int[]{num, cnt});\n }\n }\n\n }\n int[] ans = new int[k];\n for (int i = 0; i < k; i++) {\n ans[i] = queue.poll()[0];\n }\n return ans;\n }", "title": "" }, { "docid": "c197be9b4fed0d7c85c25072c493af41", "score": "0.53754455", "text": "public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t\t\tint n,k=1,count=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\tint a[]=new int[n];\n\t\tint b[]=new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta[i]=sc.nextInt();\n\t\t\t\n\t\t}\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=i;j<n;j++){\n\t\t\t\tif((a[i]==a[j])&&(i!=j)&&(b[k-1]!=a[j])){\n\t\t\t\t\tb[k]=a[i];\n\t\t\t\t//\tSystem.out.println(b[k]);\n\t\t\t\t\tk++;\n\t\t\t\t\tcount++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t//System.out.print(k);\n\t\tint temp=0;\n\t\tfor(int i=0;i<k-1;i++){\n\t\t\tif(a[i]>a[i++]){\n\t\t\t\ttemp=a[i];\n\t\t\t\ta[i]=a[i++];\n\t\t\t\ta[i++]=temp;\n\t\t\t}\n\t\t}if(count>0){\n\t\tfor(int i=1;i<k-1;i++){\n\t\t\tSystem.out.print(b[i]+\" \");\n\t\t}\n\t\tSystem.out.print(b[k-1]);\n\t}\n\telse{\n\t\tSystem.out.print(\"unique\");\n\t}\n\n\t}", "title": "" }, { "docid": "7e550535136738cf710f4eff43e05b6b", "score": "0.53612274", "text": "static int numberOfPairs(int[] a, long k) {\n Arrays.sort(a);\n int l = 0, h = a.length - 1;\n Map<Integer, Integer> res = new HashMap<>();\n while (l <= h) {\n if (a[l] + a[h] == k) {\n if (l != h) {\n res.putIfAbsent(a[l], a[h]);\n }\n l++;\n }\n if (a[l] + a[h] < k) {\n l++;\n }\n if (a[l] + a[h] > k) {\n h--;\n }\n }\n\n return res.size();\n }", "title": "" }, { "docid": "df7972ec497de4e0fd7af5e4746c802c", "score": "0.5349096", "text": "public void mergeTwoSortedArrays(int[] A, int m, int[] B, int n) {\n int totalLength = m + n;\n int firstIndex = m - 1;\n int secondIndex = n - 1;\n int mergedIndex = totalLength - 1;\n while (mergedIndex >= 0) {\n if (firstIndex < 0) {\n //This means already consumed all elements in A\n A[mergedIndex] = B[secondIndex];\n mergedIndex = mergedIndex - 1;\n secondIndex = secondIndex - 1;\n } else if (secondIndex < 0) {\n //Consumed all elements in B\n A[mergedIndex] = A[firstIndex];\n mergedIndex = mergedIndex - 1;\n firstIndex = firstIndex - 1;\n } else if (A[firstIndex] >= B[secondIndex]) {\n //If A element is bigger than B element copy it in merged array\n A[mergedIndex] = A[firstIndex];\n mergedIndex = mergedIndex - 1;\n firstIndex = firstIndex - 1;\n } else {\n //If B element is bigger than A element copy it in merged array\n A[mergedIndex] = B[secondIndex];\n mergedIndex = mergedIndex - 1;\n secondIndex = secondIndex - 1;\n }\n }\n }", "title": "" }, { "docid": "9aea2ddd05696162e16af59cb1838865", "score": "0.53448033", "text": "@Test\r\n\tpublic void testSchnellesSortierenNk6() {\r\n\t\tint n = 1000000;\r\n\t\tInteger[] feldI = new Integer[n];\r\n\t\tfor (int i = 0; i < n/4; i++) {\r\n\t\t\tfeldI[i] = erstelleSchluessel(n);\r\n\t\t}\r\n\t\tfor (int i = (int) ( n/4); i < n; i++) {\r\n\t\t\tfeldI[i] = n * 700 +i;\r\n\t\t}\r\n\t\tBucketsort<Integer> sS = new Bucketsort<>();\r\n\t\tlong zeit = System.currentTimeMillis();\r\n\t\tsS.bucketsort(feldI);\r\n\t\tzeit = System.currentTimeMillis() - zeit;\r\n\t\tSystem.out.println(sS);\r\n\t\tSystem.out.println(\"N: \" + n + \", Laufzeit: \" + zeit + \"\\n\");\r\n\t\tboolean korrektSortiert = true;\r\n\t\tfor (int i = 0; i < n - 1; i++) {\r\n\t\t\tif (feldI[i].hashCode() > feldI[i + 1].hashCode()) {\r\n\t\t\tkorrektSortiert = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tassertEquals(\"Sollte true sein, wenn Array korrekt sortiert ist\", korrektSortiert, true);\r\n\t}", "title": "" }, { "docid": "1831d25d0502fd3504b5df1e705f1c6b", "score": "0.5344551", "text": "@Test\n public void testSize(){\n for(int run = 0; run < ARRAYS_TO_TEST; run++){\n int[] original = randomArray();\n\n int[] sorted = copyArray(original);\n Arrays.sort(sorted);\n\n assertEquals(original.length, sorted.length);\n }\n }", "title": "" }, { "docid": "b56ba254472142d87c270dd6190f9d55", "score": "0.53438205", "text": "private static void sort(Comparable[] a, int lo, int hi) {\n if (lo >= hi) return;\n //it is better to do partition and sorting in one place\n //we need 3 pointers here for small values, equal values and large values\n //respectively\n int pivot = (int) (Math.random() * (hi - lo + 1)) + lo;\n Comparable target = a[pivot]; //put pivot at the beginning\n int i = lo; //element to be examined\n int j = lo; //right boundary (exclusive) for small vals\n int k = hi; //left boundary (exclusive) for large vals\n while (i <= k) {\n int comp = target.compareTo(a[i]);\n if (comp > 0) exch(a, i++, j++);\n else if (comp < 0) exch(a, i, k--);\n else //equal\n i++;\n }\n sort(a, lo, j -1);\n sort(a, k + 1, hi);\n }", "title": "" }, { "docid": "97eabd4994c17f376f984a1d8dba7850", "score": "0.5341166", "text": "private static void mergeSorted(int[] a, int[] b, int m, int n)\n\t{\n\t\tint end1 = m - 1;\n\t\tint end2 = n - 1;\n\t\tint end = m + n - 1;\n\t\twhile (end1 >=0 && end2>=0)\n\t\t{\t\n\t\t\tif (a[end1] > b[end2])\n\t\t\t{\n\t\t\t\ta[end] = a[end1];\n\t\t\t\tend1--;\n\t\t\t\tend--;\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ta[end] = b[end2];\n\t\t\t\tend2--;\n\t\t\t\tend--;\n\t\t\t}\n\t\t}\n\t\twhile (end2>=0)\n\t\t{\n\t\t\ta[end] = b[end2];\n\t\t\tend2--;\n\t\t\tend--;\n\t\t}\n\t\twhile (end1>=0)\n\t\t{\n\t\t\ta[end] = a[end1];\n\t\t\tend1--;\n\t\t\tend--;\n\t\t}\n\t}", "title": "" }, { "docid": "956aae51e944a77df6861b6ad99c5ac1", "score": "0.5339565", "text": "public static <T extends Comparable<? super T>> void bottomUpCoFmSm(T[] z, int cutoff) {\n if (z == null) return; if (cutoff<0) cutoff = 0;\n int N = z.length; if (N < 2) return;\n @SuppressWarnings(\"unchecked\")\n T[] aux = (T[]) newInstance(z.getClass().getComponentType(),N);\n Consumer3<T[],Integer,Integer> insertionSort = (a,lo,hi) -> { T t;\n for (int i = lo; i <= hi; i++)\n for (int j = i; j > lo && a[j].compareTo(a[j-1])<0; j--)\n { t = a[j]; a[j] = a[j-1]; a[j-1] = t; } \n };\n if (N<=cutoff) { insertionSort.accept(z,0,N-1); return; }\n Consumer5<T[],T[],Integer,Integer,Integer> fasterMerge = (a,b,lo,mid,hi) -> {\n // re ex2210 ex2211 p285 && ex2223 p287\n // copy 1st half of a to 1st half of aux in order\n for (int i = lo; i <= mid; i++)\n b[i] = a[i]; \n // copy 2nd half of a to 2nd half of aux in reverse order\n for (int j = mid+1; j <= hi; j++)\n b[j] = a[hi-j+mid+1];\n // merge aux back to a without testing for exhaustion of either half (i>mid or j>hi)\n int i = lo, j = hi; // j starts at hi and is decremented\n for (int k = lo; k <= hi; k++) \n if (b[j].compareTo(b[i])<0) \n a[k] = b[j--];\n else a[k] = b[i++];\n }; \n for (int sz = 1; sz < N; sz = sz+sz) // sz: subarray size\n for (int lo = 0; lo < N-sz; lo += sz+sz) // lo: subarray index\n // skip merge when subarrays are in order\n if(z[lo+sz-1].compareTo(z[lo+sz])>0)\n fasterMerge.accept(z, aux, lo, lo+sz-1, Math.min(lo+sz+sz-1,N-1));\n }", "title": "" }, { "docid": "b35c730a75251539922ea731bb43ce19", "score": "0.5333997", "text": "public int[] mergekSortedArraysUsingMaxHeap(int[][] arrays) {\r\n int rows = arrays.length;\r\n Queue<Entry> pq = new PriorityQueue<>(rows);\r\n \r\n int size = 0;\r\n for (int r = 0; r < rows; r++) {\r\n if (arrays[r] != null && arrays[r].length > 0) {\r\n size += arrays[r].length;\r\n pq.add(new Entry(arrays[r][0], r, 0));\r\n }\r\n }\r\n \r\n int[] result = new int[size];\r\n \r\n for (int i = 0; !pq.isEmpty(); i++) {\r\n Entry curr = pq.poll();\r\n result[i] = curr.val;\r\n \r\n int nextIndex = curr.index + 1;\r\n if (nextIndex < arrays[curr.arr].length) {\r\n pq.add(new Entry(arrays[curr.arr][nextIndex], curr.arr, nextIndex));\r\n }\r\n }\r\n \r\n return result;\r\n }", "title": "" }, { "docid": "79204eeef6ef8a7abcbd2f2430465b2c", "score": "0.53260005", "text": "public static void shell(Comparable[] a)\n {\n int N = a.length;\n int h = 1;\n /**\n * step number of increasing sequence\n * can be any small number, such as 2, 3, 4, 5, 6\n * 3 seems best\n */\n int STEP = 3;\n\n // get the highest index of h sequence\n while(h < N/STEP) h = h*STEP + 1; // 1, 4, 13, 40, 121, 364, 1093, ...\n\n while(h >= 1)\n {\n // h-sort the array\n for (int i = h; i < N; i++)\n {\n //System.out.println(\"i = \" + i);\n for (int j = i; j >= h && less(a[j], a[j-h]); j-=h ) {\n //for (int j = i; j >= h; j-=h ) {\n //System.out.printf(\" j= %d exch(%d, %d)\\n\" , j, j , j-h);\n exch(a, j, j - h);\n }\n }\n // iterate increment sequence reversely, e.g. 121,40,13, 4, 1\n h = h/STEP;\n }\n }", "title": "" }, { "docid": "68319c36e306fdb5cd9fa40b579646b6", "score": "0.53241634", "text": "public static void countingSort(Integer[] arr, Integer k){\n int n = arr.length;\n\n int[] output = new int[n];\n\n // define count array O(k)\n int count[] = new int[k];\n for(int i=0; i<k; i++)\n count[i] = 0;\n\n // set counts O(n)\n for(int i=0; i<n; i++)\n count[arr[i]]++;\n\n // modify count array to contain sum of previous counts O(k)\n for(int i=1; i<k; i++){\n count[i] = count[i]+count[i-1];\n }\n\n // set output O(n)\n for(int i=0; i<n; i++){\n output[count[arr[i]]-1] = arr[i];\n count[arr[i]]--;\n }\n\n // O(n)\n for(int i=0; i<n; i++)\n arr[i] = output[i];\n }", "title": "" }, { "docid": "567c441168a9b511f82cddd823c5d7b0", "score": "0.5323828", "text": "@SuppressWarnings(\"unused\")\n\tprivate static void test_sort()\n\t{\n\t\tint[] a = {3,42,312,121,23,-10, 0, -32, 121, -32, -10000,0, 3,42,12,1,2,3,4,5,6,7,8,9};\n\t\t// against random array size 1000\n\t\tint[] b = new int[100000];\n\t\tint[] c = new int[100000];\n\t\tRandom rand = new Random();\n\t\tfor (int i =0; i < 100000; i++){\n\t\t\tb[i] = rand.nextInt();\n\t\t}\n\t\tfor (int i =0; i < 100000; i++){\n\t\t\tc[i] = rand.nextInt();\n\t\t}\n\t\tfor (int i =0; i < 10000; i++){\n\t\t\t//sort(a);\n\t\t\t//sort(b);\n\t\t}\n\t\t//sort(b);\n\t\tlong timer1 = System.nanoTime();\n\t\tsort(c);\n\t\tlong timer2 = System.nanoTime();\n\t\tlong execution_time = (timer2 - timer1)/1000;\n\t\tSystem.out.println(execution_time + \" us\");\n\t\tfor (int i=0; i< c.length; i++){\n\t\t\t//System.out.println(c[i]);\n\t\t}\n\t}", "title": "" }, { "docid": "78ac1ba66818f0aacc4f0529889bdeef", "score": "0.5323747", "text": "public static <T extends Comparable<? super T>> void topDownAcCoSm32(T[] z) {\n if (z == null) return; int cutoff = 32;\n int N = z.length; if (N < 2) return;\n T[] aux = z.clone(); // aux is clone of a not any array of nulls of length N\n Consumer3<T[],Integer,Integer> insertionSort = (a,lo,hi) -> { T t;\n for (int i = lo; i <= hi; i++)\n for (int j = i; j > lo && a[j].compareTo(a[j-1])<0; j--)\n { t = a[j]; a[j] = a[j-1]; a[j-1] = t; } \n };\n if (N<=cutoff) { insertionSort.accept(z,0,N-1); return; }\n Consumer5<T[],T[],Integer,Integer,Integer> merge = (a,b,lo,mid,hi) -> {\n int i = lo, j = mid+1;\n // no copy from a to b\n for (int k = lo; k <= hi; k++)\n if (i > mid) b[k] = a[j++]; // interchange a and b in all conditions\n else if (j > hi ) b[k] = a[i++];\n else if (a[j].compareTo(a[i]) < 0) b[k] = a[j++];\n else b[k] = a[i++];\n };\n Consumer4<T[],T[],Integer,Integer> sort = Recursive.consumer4((a,b,lo,hi,self) -> {\n if (hi <= lo + cutoff) { insertionSort.accept(b, lo, hi); return; }\n int mid = lo + (hi - lo)/2;\n self.accept(b, a, lo, mid); // order of a and b inverted\n self.accept(b, a, mid+1, hi); // order of a and b inverted\n if (a[mid].compareTo(a[mid+1])>0) merge.accept(a, b, lo, mid, hi); \n else System.arraycopy(a, lo, b, lo, hi - lo + 1);\n });\n sort.accept(aux, z, 0, N - 1); // order of z and aux inverted\n }", "title": "" }, { "docid": "18b8a6a9f18cf5736c26ad8bf1d74db8", "score": "0.5322235", "text": "static double[] mergeSortRecursive (double a[]) {\r\n \tif(a == null)\r\n \t\treturn null;\r\n \tif(a.length<=1)\r\n \t\treturn a;\r\n \tint indexOfHalf = a.length/2;\r\n \tdouble leftPart[] = mergeSortRecursion(a,0,indexOfHalf-1);\r\n \tdouble rightPart[] = mergeSortRecursion(a,indexOfHalf,a.length-1);\r\n \t\r\n \tdouble mergedArray[] = new double[leftPart.length+rightPart.length];\r\n \tint mergedArrayIndex = 0;\r\n \tint leftCounter = 0;\r\n \tint rightCounter = 0;\r\n \t//merge arrays\r\n \twhile(leftCounter<leftPart.length && rightCounter<rightPart.length)\r\n \t{\r\n \t\tif(rightPart[rightCounter]<leftPart[leftCounter])\r\n \t\t\tmergedArray[mergedArrayIndex++] = rightPart[rightCounter++]; // if right is less put it in merged array and post-incerement indexes\r\n \t\telse\r\n \t\t\tmergedArray[mergedArrayIndex++] = leftPart[leftCounter++]; // similiar if left is less\r\n \t}\r\n \t// put the elements into merged array from left if any left\r\n \twhile(leftCounter<leftPart.length)\r\n \t{\r\n \t\tmergedArray[mergedArrayIndex++] = leftPart[leftCounter++];\r\n \t}\r\n \t// put the elements into merged array from right if any left\r\n \twhile(rightCounter<rightPart.length)\r\n \t{\r\n \t\tmergedArray[mergedArrayIndex++] = rightPart[rightCounter++];\r\n \t}\r\n \t\r\n \treturn mergedArray;\r\n\r\n\t\r\n }", "title": "" }, { "docid": "e083e7e874d6d92dc00ee6541dcd5f02", "score": "0.5321351", "text": "public int method2(int[] a, int k) {\n // Create a priority queue with an initial capacity k.\n // Elements of the queue are ordered according to their natural order,\n // or by a Comparator. Thus the smallest element is at the head.\n PriorityQueue<Integer> q = new PriorityQueue<Integer>(k);\n\n for (int e: a) {\n // Insert an element into the queue if it is not full.\n // Otherwise, insert if the new element is larger than the head.\n if (q.size() < k || e > q.peek()) {\n q.offer(e);\n }\n\n if (q.size() > k) {\n // Retrieve and remove the head (smallest) element from the queue.\n // Thus, we always keep the largest k elements in the queue.\n q.poll();\n }\n }\n // Return the head element, which is the k-th largest element.\n return q.peek();\n }", "title": "" }, { "docid": "68e13cf33e9e4f1cdf4b16108759b1b5", "score": "0.5313657", "text": "static double [] insertionSort (double a[]){\r\n \tif(a == null)\r\n \t\treturn null;\r\n \tif(a.length<=1)\r\n \t\treturn a;\r\n \tdouble tmp;\r\n \tfor(int i=1; i<a.length; i++)\r\n \t{\r\n \t\ttmp = a[i];\r\n \t\tboolean isInserted = false;\r\n \t\tfor(int j=i-1;j>=0 && !isInserted;j--)\r\n \t\t{\r\n \t\t\tif(tmp < a[j])\r\n \t\t\t{\r\n \t\t\t\ta[j+1] = a[j];\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\ta[j+1] = tmp;\r\n \t\t\t\tisInserted = true; // if inserted, exit\r\n \t\t\t}\r\n \t\t}\r\n \t\tif(!isInserted)\r\n \t\t\ta[0] = tmp; \t\t\r\n \t}\r\n \treturn a;\r\n }", "title": "" }, { "docid": "18ff27bebc4b6c3045eb875d4400842c", "score": "0.52980226", "text": "private void mergesort(ToCompare[] a, int l, int r) {\n if (l >= r) {\r\n return;\r\n }\r\n\r\n //recursion step: a[l..r] is not empty \r\n //divide into sublists and merge \r\n int m = (l + r) / 2;\r\n mergesort(a, l, m);\r\n mergesort(a, m + 1, r);\r\n merge(a, l, m, r);\r\n }", "title": "" }, { "docid": "b1f84a59038ef7fa68de5c55f2b89386", "score": "0.52971727", "text": "@Test\n public void testParallelQuicksortArrayLengthZeroArray() {\n Sorting.parallelQuicksort(lengthZeroArray);\n assertTrue(Sorting.isSorted(lengthZeroArray));\n }", "title": "" }, { "docid": "9eea67aea60a072702db124e86a002dc", "score": "0.5291571", "text": "public static int alg2 (int[] a) \n{\n int this_sum = 0, max_sum = 0; \n\n max_sum = 0; \n for (int i=0; i<a.length; i++)\n {\n this_sum = 0;\n for (int j=i; j<a.length; j++)\n {\n this_sum += a[j];\n if (this_sum > max_sum) \n max_sum = this_sum;\n }\n }\n return max_sum;\n}", "title": "" }, { "docid": "7c1145cf381e278e873120ad497646c3", "score": "0.5290236", "text": "public boolean isSorted(Comparable[] a){\n for (int i = 1; i < a.length; i++){\n if (less(a[i], a[i-1]))\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "a93b9f422d3a2aa2a8e4089b9673e126", "score": "0.5290233", "text": "private static void mergeSort(Comparable[] arr, Comparable[] temp) {\n int length = 2;\n while(length <= arr.length){\n int times = arr.length / length;\n for(int i = 0; i < times; i++){\n int low = i * length;\n int high = low + length - 1;\n int mid = (low + high) / 2;\n merge(arr, temp, low, mid, high);\n }\n length = length * 2;\n }\n }", "title": "" }, { "docid": "73b446a8039c050d11bc7cd8a61d046c", "score": "0.5280988", "text": "public void patienceSort(E array[]) throws Exception {\n top = new ArrayList<E>();\n buckets = new ArrayList<ArrayList<E>>();\n\n for (int i = 0; i < array.length; i++) {\n if (top.isEmpty()) {\n top.add(array[i]);\n buckets.add(new ArrayList<E>());\n buckets.get(0).add(array[i]);\n } else {\n int pos = binarySearch(array[i]);\n if (pos >= top.size()) {\n top.add(array[i]);\n buckets.add(new ArrayList<E>());\n buckets.get(buckets.size() - 1).add(array[i]);\n } else {\n top.set(pos, array[i]);\n buckets.get(pos).add(array[i]);\n }\n }\n }\n\n // Reverse buckets for sorting\n for (int i = 0; i < buckets.size(); i++) {\n buckets.set(i, reverse(buckets.get(i)));\n }\n\n // Perform merge sort\n while (buckets.size() > 1) {\n // Every even bucket get's merged with it's odd counterpart\n for (int i = 0; i + 1 < buckets.size(); i += 2) {\n merge(buckets, i);\n }\n\n // Move the leftover bucket to the correct index\n if (buckets.size() % 2 == 1) {\n buckets.set(buckets.size() / 2, buckets.get(buckets.size() - 1));\n buckets.remove(buckets.size() - 1);\n }\n\n // Remove all empty arraylists from the end\n while (buckets.get(buckets.size() - 1).size() == 0) {\n buckets.remove(buckets.size() - 1);\n }\n }\n\n // Set values back into original array to sort it\n for (int i = 0; i < array.length; i++) {\n array[i] = buckets.get(0).get(i);\n }\n\n // Finished sorting!\n }", "title": "" }, { "docid": "9aa6effeac19d43d24aeec65370dc3c9", "score": "0.52788377", "text": "static <T extends Comparable<T>> Comparable<T>[] mergeSort(Comparable<T>[] arr) {\n\n int len = arr.length;\n\n if (len < 2) {\n return arr;\n }\n\n int middle = (int) Math.ceil((double) len / 2);\n\n Comparable<T>[] leftList = copyArray(arr, 0, middle);\n Comparable<T>[] rightList = copyArray(arr, middle, len);\n\n leftList = mergeSort(leftList);\n rightList = mergeSort(rightList);\n\n return merge(leftList, rightList);\n }", "title": "" }, { "docid": "56c6e9ad5bbe24e612cfe0d91c12020a", "score": "0.52759993", "text": "public <AnyType extends Comparable<? super AnyType>>\n void sort(AnyType[] a)\n {\n Stats.startTime();\n int gap = 1;\n while (gap < Math.ceil(a.length / 3) )\n {\n gap = (3 * gap + 1);\n }\n\n int j;\n while (gap > 0) {\n for (int i = gap - 1; i < a.length; i++){\n\n AnyType tmp = a[i];\n Stats.incrementCompares();\n for(j = i; j >= gap && tmp.compareTo(a[j - gap]) < 0; j -= gap)\n {\n a[j] = a[j - gap];\n Stats.incrementCompares();\n Stats.incrementMoves();\n }\n\n a[j] = tmp;\n }\n\n gap /= 3;\n }\n Stats.stopTime();\n }", "title": "" }, { "docid": "47db6df0d8824176b1ddd6bb0605fc12", "score": "0.52750176", "text": "public void sortMethod(Comparable[] a) {\n for (int sz = 1; sz < a.length; sz = sz + sz) // size of array `sz`.\n for (int lo = 0; lo < a.length - sz; lo += sz + sz) // `lo`: the index of subarray.\n merge(a, lo, lo + sz - 1, Math.min(lo + sz + sz - 1, a.length - 1));\n }", "title": "" }, { "docid": "d10835b71e93e67286250bc57ce28c33", "score": "0.52711076", "text": "public void mergesort(int[] a){\n int[] helper = new int[a.length];\n mergesort(a, helper, 0, a.length -1);\n }", "title": "" }, { "docid": "4483ea311c13313eaf022b6211f5dabb", "score": "0.52672195", "text": "public static void randomArrays (int [] a) {\r\n\t\t\t//Variables to estimate elapsed time\r\n\t\t\tlong tStart, tEnd;\r\n\t\t\tSystem.out.println(\"\\nThe random integer array with \" + a.length + \" elements:\\n\");\r\n\t\t\t//Printing the array\r\n\t\t\tArrayManaging.printArray(a);\r\n\t\t\ttStart = System.nanoTime();\r\n\t\t\t//Sorting the array\r\n\t\t\tquicksort(a, 0, a.length - 1);\r\n\t\t\ttEnd = System.nanoTime();\r\n\t\t\tSystem.out.println(\"\\n\\nThe sorted list is: \\n\");\r\n\t\t\t//Printing the sorted array\r\n\t\t\tArrayManaging.printArray(a);\r\n\t\t\t//Printing out the elapsed time\r\n\t\t\tSystem.out.println(\"\\n\\nThe sorting took \" + (tEnd - tStart) + \" nanoseconds.\");\r\n\t\t}", "title": "" }, { "docid": "f5f29121cba292bdba38b175d746d724", "score": "0.5267011", "text": "private static int helper(int[] A, int n) {\n if(n==0) {\n return 0;\n }\n if(n==1) {\n return 1;\n }\n int res;\n int maxEnd = 1;\n for(int i=1; i<n; i++) {\n res = helper(A, i);\n if(A[i-1]<A[n-1] && res+1>maxEnd) {\n maxEnd = res+1;\n }\n }\n if(counter<maxEnd) {\n counter = maxEnd;\n }\n return maxEnd;\n }", "title": "" }, { "docid": "9cfb2fba874f2ca8bd0e045864727188", "score": "0.526355", "text": "static void sort(int arr[]) \n { \n int n = arr.length; \n \n // Start with a big gap, then reduce the gap \n for (int gap = n/2; gap > 0; gap /= 2) \n { \n // Do a gapped insertion sort for this gap size. \n // The first gap elements a[0..gap-1] are already \n // in gapped order keep adding one more element \n // until the entire array is gap sorted \n for (int i = gap; i < n; ++i) \n { \n // add a[i] to the elements that have been gap \n // sorted save a[i] in temp and make a hole at \n // position i \n int temp = arr[i]; \n \n // shift earlier gap-sorted elements up until \n // the correct location for a[i] is found \n int j; \n for (j = i; j >= gap && arr[j - gap] > temp; j -= gap) \n arr[j] = arr[j - gap]; \n \n // put temp (the original a[i]) in its correct \n // location \n arr[j] = temp; \n } \n }\n }", "title": "" }, { "docid": "6cef924a2b46dff243f5406259a2afd8", "score": "0.52577513", "text": "static void NFG(int a[], int n, int freq[]) \n\t{ \n\t \n\t // stack data structure to store the position \n\t // of array element \n\t Stack<Integer> s = new Stack<Integer>(); \n\t s.push(0); \n\t \n\t // res to store the value of next greater \n\t // frequency element for each element \n\t int res[] = new int[n]; \n\t for(int i = 0; i < n; i++) \n\t res[i] = 0; \n\t \n\t for (int i = 1; i < n; i++) \n\t { \n\t /* If the frequency of the element which is \n\t pointed by the top of stack is greater \n\t than frequency of the current element \n\t then push the current position i in stack*/\n\t \n\t if (freq[a[s.peek()]] > freq[a[i]]) \n\t s.push(i); \n\t else\n\t { \n\t /*If the frequency of the element which \n\t is pointed by the top of stack is less \n\t than frequency of the current element, then \n\t pop the stack and continuing popping until \n\t the above condition is true while the stack \n\t is not empty*/\n\t \n\t while (freq[a[s.peek()]] < freq[a[i]] && s.size()>0) \n\t { \n\t res[s.peek()] = a[i]; \n\t s.pop(); \n\t } \n\t \n\t // now push the current element \n\t s.push(i); \n\t } \n\t } \n\t \n\t while (s.size() > 0) \n\t { \n\t res[s.peek()] = -1; \n\t s.pop(); \n\t } \n\t \n\t for (int i = 0; i < n; i++) \n\t { \n\t // Print the res list containing next \n\t // greater frequency element \n\t System.out.print( res[i] + \" \"); \n\t } \n\t}", "title": "" }, { "docid": "14b2f3f076b2f41b6a1b7d75d7ee2648", "score": "0.5257643", "text": "public static List<Integer> problem1(int[] arr, int k){\n if(arr == null || arr.length == 0 || k < 0)\n return new ArrayList<>();\n\n PriorityQueue<Integer> minHeap = new PriorityQueue<>();\n for(int i = 0; i < arr.length; i++){\n if(minHeap.size() < k)\n minHeap.offer(arr[i]);\n else if(arr[i] >= minHeap.peek())\n minHeap.offer(arr[i]);\n\n if(minHeap.size() > k)\n minHeap.poll();\n }\n\n return new ArrayList<>(minHeap);\n }", "title": "" }, { "docid": "ad73925e2aaed1b5e6612043b4b6cd7b", "score": "0.52573514", "text": "static double[] mergeSortIterative(double a[]) {\n\t\tif (a.length <= 1) {\n\t\t\treturn a;\n\t\t} \n\t\tmergeSort(a);\n\t\t/*for (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.println(\"a[\" + i + \"] = \" + a[i] + \"v\");\n\t\t}*/\n\t\treturn a;\n\t}", "title": "" }, { "docid": "19e13d97bcfab866eddef48f6f927614", "score": "0.52554244", "text": "void realheapsort_step1(int N, float t[100])\n{\n //float t[100];\n float temp;\n int k,j,m;\n if(N > 2){\n //construction\n for (k=1;k<=N-1;k++)\n {\n j=k;\n // t[pere j] > t[j]\n while ((j>0) && (t[(j+1)/2-1]>t[j]))\n\t {\n\t //swap j avec pere j puis j<-pere j\n temp = t[j];\n\t t[j] = t[(j+1)/2-1];\n\t t[(j+1)/2-1] = temp;\n\t j = (j+1)/2-1;\n\t }\n }\n }\n}", "title": "" }, { "docid": "b9f43bda3ce83251bcab8abd44d36806", "score": "0.52457565", "text": "static void gnomeSort(int[] arr, int n){\n int index = 0;\n while(index < n){\n if (index == 0){\n index++;\n }\n if (arr[index] >= arr[index-1]){\n index++;\n }else {\n int temp = arr[index];\n arr[index] = arr[index-1];\n arr[index-1] = temp;\n index--;\n }\n }\n }", "title": "" } ]
8b18be631ee55d83178226f64811091f
Metodo temporaneo per il test
[ { "docid": "e62602746e05463f6c3ca2bde27e4952", "score": "0.0", "text": "public Controllore controlloreCorrente() \r\n\t{\r\n\t\treturn k;\r\n\t}", "title": "" } ]
[ { "docid": "6e6c551cc00bbc1ce1c63aa9ce1dbe64", "score": "0.7571363", "text": "private void testthings() {\n\t}", "title": "" }, { "docid": "1ed33d36b97a19cd8ef2debec9d6d004", "score": "0.7136374", "text": "@Test\r\n\tpublic void testLeer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33bff39108772d7503503cae5a84abef", "score": "0.711945", "text": "public void test() {\n\t}", "title": "" }, { "docid": "662dc399f303c997c9d32b718cdb9c37", "score": "0.7116589", "text": "@Override\n\tpublic void test() {\n\n\t}", "title": "" }, { "docid": "66dd9bfcb2a80dfd403587f9e318e978", "score": "0.7027295", "text": "@Test\r\n public void testZoekAlleLeden() {\r\n }", "title": "" }, { "docid": "777d745f5b63b1f6d08eec4b10da332a", "score": "0.70260155", "text": "@Test\n\tpublic void test() {\n\t\t\n\t}", "title": "" }, { "docid": "777d745f5b63b1f6d08eec4b10da332a", "score": "0.70260155", "text": "@Test\n\tpublic void test() {\n\t\t\n\t}", "title": "" }, { "docid": "82ad81e4fa474c5e990756da7e5978ac", "score": "0.69893086", "text": "@Test\n public void isSamePrescription() {\n }", "title": "" }, { "docid": "5ec6c20225223d68b535bac2b1ca28f7", "score": "0.69866115", "text": "@Test\n public void testZwillingspaare() {\n }", "title": "" }, { "docid": "86abc50cb101a2e8d5cb5c2ce76f854e", "score": "0.69853854", "text": "public void testNothing() {\n \n }", "title": "" }, { "docid": "2d12158c8426b2ad2e4eae7b44e02d89", "score": "0.69527227", "text": "@Test\r\n\tpublic void test() {\r\n\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "98217f659263bf77fb65d8aaacc86597", "score": "0.6929299", "text": "public void test() {\r\n \r\n }", "title": "" }, { "docid": "b97f46754436638ac1901d3a5ce62a0b", "score": "0.6903092", "text": "@Override\n\tpublic void testRunOk() throws Exception {\n\t}", "title": "" }, { "docid": "212918a847eace809fd027729684455c", "score": "0.6897311", "text": "public void testOne() {\n }", "title": "" }, { "docid": "99f23c83c7b8b348fada6ca0bc5cf5fe", "score": "0.6891472", "text": "@Test\n public void testEditPrintTemp() {\n \n }", "title": "" }, { "docid": "366b4acffbfcb9eb335807295cb8051f", "score": "0.68755937", "text": "@Override\n\tpublic void testInit() {\n\t\t\n\t}", "title": "" }, { "docid": "d944fe181216a25642af32fbd4acf268", "score": "0.6873081", "text": "public static void test()\n {\n metodyVyjimek();\n }", "title": "" }, { "docid": "5bba17aa1128c739a09ca82c1e4e20c5", "score": "0.6861817", "text": "void testMe()\n\t{\n\t}", "title": "" }, { "docid": "9af398f56d3f5f5fa6e8af7872bac647", "score": "0.68452203", "text": "@Test\n\tpublic void test() {\n\t\tassertTrue(true);\n\t\t\n\t}", "title": "" }, { "docid": "443ba5e98d1454f094cf46d9fa99b2ba", "score": "0.682241", "text": "@Test\n public void testarSub(){\n \n assertTrue(true); \n }", "title": "" }, { "docid": "2518a057618fd947894bad9a19b6c5d1", "score": "0.68041044", "text": "@Override\n public boolean test() {\n return false;\n }", "title": "" }, { "docid": "e799490f2b6db0fce74392ded7b341e6", "score": "0.6786259", "text": "@Test\n\tvoid listarTest() {\n\t}", "title": "" }, { "docid": "ad7b5b704d83ae8d2c3787aac323fa3a", "score": "0.6780061", "text": "public void prepareTest() { \n\t\t\n\t}", "title": "" }, { "docid": "970acc08f0e1486b97a4ab0f93f4acc6", "score": "0.6774408", "text": "@Test\r\n public void testZoekLid() {\r\n }", "title": "" }, { "docid": "d750d6914773a1d8d701987096db1e06", "score": "0.6765098", "text": "@Test\r\n\tpublic void test() {\n\t}", "title": "" }, { "docid": "d750d6914773a1d8d701987096db1e06", "score": "0.6765098", "text": "@Test\r\n\tpublic void test() {\n\t}", "title": "" }, { "docid": "7fd266e88f4752914f5143b46dd32cc4", "score": "0.67474055", "text": "public void test() {\n }", "title": "" }, { "docid": "f25b3a6c7af211c369f142b37f9694e0", "score": "0.6740359", "text": "@Test\n public void testCalcul() {\n }", "title": "" }, { "docid": "59fbc24a092c99b6c084030a0055d806", "score": "0.6732239", "text": "@Test\n public void notasyonluIlkTestMethodu(){\n System.out.println(\"notasyonlu ilk test methodumuz\");\n }", "title": "" }, { "docid": "63c4bc7b394d5a2a2c87a48d4c947032", "score": "0.67278415", "text": "public void testDummy() {\n \n }", "title": "" }, { "docid": "e9b936ec800d6486e09511da19120123", "score": "0.6724055", "text": "@Test\r\n public void testInizializzaChiavi() throws Exception {\r\n System.out.println(\"inizializzaChiavi\");\r\n Criptatore.inizializzaChiavi();\r\n }", "title": "" }, { "docid": "94d90448a332cc0621e69035081c15d9", "score": "0.672281", "text": "@Test\n public void PruebaNumerosUnitarios() {\n \n }", "title": "" }, { "docid": "6ef07981f5d315d070954b77ba67e556", "score": "0.6712356", "text": "private RunTests()\n {\n /*\n * Intentionally left empty.\n */\n }", "title": "" }, { "docid": "293515959507ec67d2e28d87d561d77e", "score": "0.6705894", "text": "@Test\n\tpublic void test() {\n\t}", "title": "" }, { "docid": "293515959507ec67d2e28d87d561d77e", "score": "0.6705894", "text": "@Test\n\tpublic void test() {\n\t}", "title": "" }, { "docid": "293515959507ec67d2e28d87d561d77e", "score": "0.6705894", "text": "@Test\n\tpublic void test() {\n\t}", "title": "" }, { "docid": "17a33f6a3b927ea883dee49f0d79cc5a", "score": "0.6696071", "text": "@Test \n\tpublic void testarFechamentoAbertura() {\n\t\t\n\t}", "title": "" }, { "docid": "d523fb6043d6dd577b9288108b8e0a9b", "score": "0.66931295", "text": "@Override\n public void testInit() {\n }", "title": "" }, { "docid": "8f5af194fe1ba5312deab0506b3e52a8", "score": "0.6669908", "text": "@Test\r\n public void testUitschrijvenLid() {\r\n }", "title": "" }, { "docid": "433dda3603c496bd7c609f9ab3c60b6e", "score": "0.66451687", "text": "@Test\n void enPassant() {\n }", "title": "" }, { "docid": "fd63de1331b7062a15eac7efc74a774e", "score": "0.66152346", "text": "@Test\r\n public void shouldWork() {\n }", "title": "" }, { "docid": "5b47b9c2cb49733f1683f583c2bf5dce", "score": "0.66075236", "text": "@Test\r\n public void leerArchivoTest3(){\n String ruta=\"\";\r\n boolean esperado=false;\r\n assertEquals(esperado,i.leerArchivo(ruta));\r\n }", "title": "" }, { "docid": "f7e65696c3f2f8078354873cb21952fa", "score": "0.66010845", "text": "public boolean mainTest() {\n return true;\r\n }", "title": "" }, { "docid": "5786f21147d3440e9a4f16c3c9d049b9", "score": "0.6583418", "text": "@Test\n public void test() {\n \n // parrotTrouble(true, 6) -> true\n assertTrue(testParrotTrouble.parrotTrouble(true, 6));\n\n // parrotTrouble(true, 7) -> false\n assertFalse(testParrotTrouble.parrotTrouble(true, 7));\n\n // parrotTrouble(false, 6) -> false\n assertFalse(testParrotTrouble.parrotTrouble(false, 6));\n \n }", "title": "" }, { "docid": "b148222ff801d1e55761c90efd4ff851", "score": "0.6578239", "text": "@Test\r\n public void leerArchivoTest2(){\n String ruta=\"maquiavelo\";\r\n boolean esperado=false;\r\n assertEquals(esperado,i.leerArchivo(ruta));\r\n }", "title": "" }, { "docid": "47b783bce421af9c26fd1fb45aef6c5e", "score": "0.6577965", "text": "@Test\n public void testLueKortistosta() {\n System.out.println(\"lueKortistosta\");\n Jasenkortisto2.lueKortistosta();\n \n }", "title": "" }, { "docid": "02aa80622ce3de89562583093ffba4ae", "score": "0.6575231", "text": "public void testdummy() {\n }", "title": "" }, { "docid": "5589b135a5c3596b9f89d817e0cb03ae", "score": "0.6574006", "text": "public void test001(){\n\n }", "title": "" }, { "docid": "d72edf6f6b74868a76b6f3bd206652c3", "score": "0.6572979", "text": "public void testDummy() {\n }", "title": "" }, { "docid": "d72edf6f6b74868a76b6f3bd206652c3", "score": "0.6572979", "text": "public void testDummy() {\n }", "title": "" }, { "docid": "d72edf6f6b74868a76b6f3bd206652c3", "score": "0.6572979", "text": "public void testDummy() {\n }", "title": "" }, { "docid": "ef3bf10acba6b4e3a64ffe602e523563", "score": "0.65699106", "text": "@Test\n public void testEditPrintWind() {\n \n }", "title": "" }, { "docid": "5235792cbb0e1bc2df1df641ac903ecc", "score": "0.65608525", "text": "public void executeTestOperations() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "7fa70da7dcdb131fddd8d781c6bde542", "score": "0.65589815", "text": "@Test\n\tpublic void test09() {\n\t}", "title": "" }, { "docid": "3e60f92e911effa1f43cc744e5efa7e3", "score": "0.65535235", "text": "@Test\n public void testAlustatiedostosta() {\n System.out.println(\"PrimKeko alustatiedostosta\");\n String tiedosto = \"verkko.txt\";\n Prim instance = new Prim();\n\n Keko result = instance.alustatiedostosta(tiedosto);\n \n }", "title": "" }, { "docid": "d55cfb1bae7a314082127d31bfd33e38", "score": "0.65529144", "text": "public void test() {\n }", "title": "" }, { "docid": "d55cfb1bae7a314082127d31bfd33e38", "score": "0.65529144", "text": "public void test() {\n }", "title": "" }, { "docid": "d55cfb1bae7a314082127d31bfd33e38", "score": "0.65529144", "text": "public void test() {\n }", "title": "" }, { "docid": "d55cfb1bae7a314082127d31bfd33e38", "score": "0.65529144", "text": "public void test() {\n }", "title": "" }, { "docid": "32370e112b3c6042f32333f929384e39", "score": "0.6550082", "text": "@Test\n public void testingModuleA(){\n\n bibliotecaCtrlTest.adaugaCarte_ECP_Valid();\n }", "title": "" }, { "docid": "12fb092d0ad0f4f361f876af525a2e76", "score": "0.6547477", "text": "public void test() {\n\n }", "title": "" }, { "docid": "b430881a1bd8df32b03146680ceeee0c", "score": "0.654666", "text": "public LeichtmetalleTest()\n {\n }", "title": "" }, { "docid": "eee9915544456ea5fc953c9530950cd1", "score": "0.65418285", "text": "@Test\n public void cercleTest() {\n\tSystem.out.println(\"Vérification cercle \");\n\tif (dico.isMatching(cercle)) {\n dico.splitSaisie(cercle); \n\t} else {\n System.out.println(\"Erreur de syntaxe \");\n\t}\n }", "title": "" }, { "docid": "5eeae50c5447b96840655574d91e4142", "score": "0.6541814", "text": "@Test\n\tpublic void testCreate() {\n\t}", "title": "" }, { "docid": "4115edf35d85d72b91a89627c99309b0", "score": "0.65416074", "text": "@Test\r\n public void testWijzigenLid() {\r\n }", "title": "" }, { "docid": "a99dbbe08e088ba8af57ee6fc2802173", "score": "0.65389717", "text": "@Test\n\tpublic void testDummy () {\n\t\t\n\t}", "title": "" }, { "docid": "fcfec3d07cfeaefc67567b4738b97460", "score": "0.65387845", "text": "@Test\r\n\tpublic void test4(){\n\t}", "title": "" }, { "docid": "b339f2f0fcf24e53d94c0a9d3985b69d", "score": "0.65329075", "text": "@Test\n\tpublic void test() {\n\t\tAssert.assertTrue(true);\n\t}", "title": "" }, { "docid": "b1c5df5a7a610771266dc69247a774c2", "score": "0.6527404", "text": "@Test\n public void enteros(){ \n try{\n System.out.println(\"40 + 2 = \" +\n Calculator.operateBinary(40, 2, ADDITION));\n System.out.println(\"20 - 10 = \" +\n Calculator.operateBinary(20, 10, SUBTRACTION)); \n assertTrue(true);\n }catch(Exception e){\n fail(\"Error\");\n }\n }", "title": "" }, { "docid": "1d32f51655025fafd5e7c9107fbdce72", "score": "0.6496479", "text": "@Test\n public void testFirstLapRegistered() {\n\n }", "title": "" }, { "docid": "52c928c7584f17807046bb81eaad612b", "score": "0.64706945", "text": "@Test\n public void testEditStorm() {\n \n }", "title": "" }, { "docid": "e90d5b640eb3aca70bb07f7994bc0560", "score": "0.6469448", "text": "@Test\n\n public void sutunSayisi(){\n //extentTest=extentReports.createTest(\"Smoke\", \"Gecerli bilgilerle test\");\n extentTest=extentReports.createTest(\"Smoke\",\"Methodlari yazdir\");\n amazonPage.getamazonPage();\n extentTest.info(\"Amazon sayfasina basarili sekilde giris yapildi\");\n amazonPage.altaGitTabloyuBul();\n extentTest.info(\"Amazon sayfasinadaki taloya basarili sekilde gidildi\");\n int actualSutunSayisi= ReusableMethods.getElementsText(amazonPage.birinciSatirtumSutunSayilari).size();\n int expectedSutunSayisi=Integer.parseInt(ConfigReader.getProperty(\"amazon_beklenentablesutunsayisi\"));\n\n Assert.assertEquals(actualSutunSayisi,expectedSutunSayisi);\n extentTest.pass(\"istenen sutun satilari ile beklenen sutun sayilari esit\");\n //Assert.assertEquals(ReusableMethods.getElementsText(amazonPage.tumSutunSayilari).size(),Integer.parseInt(ConfigReader.getProperty(\"amazon_beklenentablesutunsayisi\")));\n System.out.println(\"Tablodaki sutun sayilari========>\"+actualSutunSayisi);\n System.out.println(\"Olmasi gereken sutun sayilari==========>\"+expectedSutunSayisi);\n }", "title": "" }, { "docid": "233904ee70fef7b9a6fe3bc86bf3ba8b", "score": "0.646919", "text": "@Test\r\n public void testSistema1() {\r\n FuncionalidadesComunes.ImprimirComienzoDeTest();\r\n\r\n ISistema s = FuncionalidadesComunes.crearSistemaConDiezCiudadesDiezAmbulanciasSieteRutasCuatroChoferes();\r\n\r\n assertEquals(ISistema.TipoRet.OK,s.deshabilitarAmbulancia(\"SBT6100\"));\r\n assertEquals(ISistema.TipoRet.OK,s.habilitarAmbulancia(\"SBT6100\"));\r\n assertEquals(ISistema.TipoRet.OK,s.informeAmbulancia(5));\r\n assertEquals(ISistema.TipoRet.OK,s.buscarAmbulancia(\"SBT6100\"));\r\n assertEquals(ISistema.TipoRet.ERROR,s.buscarAmbulancia(\"2222\"));\r\n assertEquals(ISistema.TipoRet.OK,s.buscarAmbulancia(\"SBT6101\"));\r\n assertEquals(ISistema.TipoRet.OK,s.deshabilitarAmbulancia(\"SBT6100\"));\r\n assertEquals(ISistema.TipoRet.OK,s.deshabilitarAmbulancia(\"SBT6101\"));\r\n assertEquals(ISistema.TipoRet.OK,s.deshabilitarAmbulancia(\"SBT6102\"));\r\n assertEquals(ISistema.TipoRet.OK,s.informeAmbulancia());\r\n assertEquals(ISistema.TipoRet.OK, s.ciudadesEnRadio(5, 30));\r\n assertEquals(ISistema.TipoRet.OK, s.ciudadesEnRadio(5, 1000));\r\n assertEquals(ISistema.TipoRet.OK, s.rutaMasRapida(5, 1));\r\n assertEquals(ISistema.TipoRet.OK, s.rutaMasRapida(2, 1));\r\n assertEquals(ISistema.TipoRet.OK, s.rutaMasRapida(2, 1));\r\n assertEquals(ISistema.TipoRet.OK, s.informeCiudades());\r\n assertEquals(ISistema.TipoRet.OK, s.informeChoferes(\"SBT6100\"));\r\n\r\n FuncionalidadesComunes.ImprimirFinDeTest();\r\n\r\n }", "title": "" }, { "docid": "158cf049590a1df588b44fee94ae9845", "score": "0.6466425", "text": "@Test\n public void testGetNomVache() {\n assertTrue(vacheNonPerime.getNomVache() == \"vachetest\");\n }", "title": "" }, { "docid": "905d387d62a87811707c2fbc54e1db80", "score": "0.64661306", "text": "public void testNothing(){\n\n }", "title": "" }, { "docid": "9240d380153aa32d64c1b56141cb1332", "score": "0.6460225", "text": "@Test\n public void testingModuleC(){\n\n funcThreeTest.ECP_valid_test_showTheBooksFromASpecificYear();\n }", "title": "" }, { "docid": "38eaf1a6db44eadbcf0522ea09f5f542", "score": "0.64543015", "text": "@Test\n public void testRealizaOperacion() {\n System.out.println(\"realizaOperacion\" + n1 + n2 + op);\n // float result = Calculadora.realizaOperacion(n1, n2, op);\n assertEquals(expResult, calculadora.realizaOperacion(n1, n2, op),0.0);\n\n //fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "e5b258251b70bd288dde7b6a0eade293", "score": "0.6451584", "text": "@Test\n public void TC00() {\n }", "title": "" }, { "docid": "fa49c39757aed6dd12af0b44809468b3", "score": "0.6450337", "text": "@Test\n public void testGetElementZoo() {\n System.out.println(\"getElementZoo dites bersama setElementZoo\");\n }", "title": "" }, { "docid": "6e40c8e606051180c7ce18159bda0d41", "score": "0.64448637", "text": "@Test\n public void addInstruccionTest(){\n Programa programa = new Programa();\n String add1 = \"Hola, es una prueba\";\n programa.addInstruccion(add1);\n Boolean expected = false;\n Boolean result = true;\n\n if (programa.stringCreator().equals(add1)){\n expected = true;\n }\n assertEquals(expected, result);\n }", "title": "" }, { "docid": "c9f90e820343b41462726c2488afbf5d", "score": "0.6439189", "text": "public void testFull();", "title": "" }, { "docid": "71b58000619fb91bbc0d822ecc9f6d9d", "score": "0.6437041", "text": "@Test(groups = {\"regression\"})\n public void checkoute(){\n }", "title": "" }, { "docid": "0ec9efe38491c4ce4141b24beb914a27", "score": "0.64347047", "text": "public void testSetup() {\n\t}", "title": "" }, { "docid": "6aba7ee0385f69d5ac89795d5bb8f649", "score": "0.6430036", "text": "@Test\n void getNormal() {\n }", "title": "" }, { "docid": "ff22b47b6ebde5c6d7fcb90e767998b3", "score": "0.6429822", "text": "@Test\n public void testSelecionarItemTbViewUf() {\n }", "title": "" }, { "docid": "fc6c08508959681c28b034cc56e2b3f9", "score": "0.642812", "text": "@Test\r\n\tpublic void testMostrarProductosPelicula() {\r\n\t}", "title": "" }, { "docid": "851dfc7f741d34b66ec78c066f88849d", "score": "0.6427811", "text": "@Test public void testInit() {\r\n assertTrue(1 == 1);\r\n }", "title": "" }, { "docid": "d7177f5b419fbb9d013af966fdaa7dce", "score": "0.64243037", "text": "public void testFigureMoves() {\n \n }", "title": "" }, { "docid": "38fbd5c51bcf460b8275ee890abf185a", "score": "0.64237833", "text": "@Test\n public void testExcluirUsuario() {//repondeu como esperado\n System.out.println(\"excluirUsuario\");\n String mat = \"\";\n ControleUsuario instance = new ControleUsuario();\n boolean expResult = false;\n boolean result = instance.excluirUsuario(mat);\n assertEquals(true, instance.excluirUsuario(\"1323123\"));\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "c8fa082bb33023dab253585c3ed5bd21", "score": "0.642187", "text": "@Test\n public void powersTest(){\n }", "title": "" }, { "docid": "b6b16550190f8c4a3422c7ed8ebbc79c", "score": "0.64207983", "text": "private TestUtils() { }", "title": "" }, { "docid": "bc5912360b05d16afac0475f5197c046", "score": "0.6415176", "text": "private UnitTest() {}", "title": "" }, { "docid": "bc5912360b05d16afac0475f5197c046", "score": "0.6415176", "text": "private UnitTest() {}", "title": "" }, { "docid": "8bc4bd05fca6a02109a8c56d2fa41eb1", "score": "0.64131224", "text": "@Override\n\tpublic void test(Object t) {\n\t\t\n\t}", "title": "" }, { "docid": "600247b2ea5b91c6b9032e765d57abc9", "score": "0.6408262", "text": "public void ilkTestMethodu(){\n System.out.println(\"Ilk test methodumuz\");\n }", "title": "" }, { "docid": "aefb8223bc876270deb34e5640703673", "score": "0.64079815", "text": "@Test\n public void _0Test() {\n // TODO: test _0\n }", "title": "" }, { "docid": "474d3f6ea179c5f2ae9545fccae1fc91", "score": "0.6396984", "text": "@Test\r\n public void testInit() {\n }", "title": "" }, { "docid": "e7ba96e824d2a2538db3b55b130d7ac7", "score": "0.6395737", "text": "@Test\n public void testKirjoitaKortistoon() throws Exception {\n System.out.println(\"kirjoitaKortistoon\");\n Jasenkortisto2.kirjoitaKortistoon();\n \n }", "title": "" }, { "docid": "5fe7941697f2b3de193d7c51d34161a3", "score": "0.63949996", "text": "@Test\n public void powerizeTest1(){\n checkPowerize(2, 1);\n }", "title": "" }, { "docid": "03d894eb070dd83590aa74eaa9bb97cc", "score": "0.6393348", "text": "public void test1() {\n\t\tfail();\r\n\t}", "title": "" }, { "docid": "9207366fc4b78e4f98b95a04733d67d4", "score": "0.6393097", "text": "@Test\n\tpublic void sumTest() {\n\t}", "title": "" } ]
461100077ad7742dab6be1890394bb34
User chose not to enable Bluetooth.
[ { "docid": "11b4a70734ddce311e478cda566d9e6f", "score": "0.61960584", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_ENABLE_BT && resultCode == Activity.RESULT_CANCELED) {\n Toast.makeText(this, \"蓝牙不可用\", Toast.LENGTH_SHORT).show();\n finish();\n return;\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "title": "" } ]
[ { "docid": "98b6f2795298d82e2a6b8ff546def38b", "score": "0.77174807", "text": "public void setupBluetooth(){\n btAdapter = BluetoothAdapter.getDefaultAdapter();\n if(btAdapter == null) {\n //Device doesn't support Bluetooth\n }\n if(!btAdapter.isEnabled()){\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT); //Pop-up appears on screen for user to enable bluetooth\n }\n\n }", "title": "" }, { "docid": "a1274f5748eaba4bb5f93c5c78ded091", "score": "0.756128", "text": "private void checkBTState() {\n // Check device has Bluetooth and that it is turned on\n btAdapter = BluetoothAdapter.getDefaultAdapter(); // CHECK THIS OUT THAT IT WORKS!!!\n if (btAdapter == null) {\n Toast.makeText(getBaseContext(), \"Device does not support Bluetooth\", Toast.LENGTH_SHORT).show();\n finish();\n } else {\n if (!btAdapter.isEnabled()) {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "title": "" }, { "docid": "7b47ca92ccae62774910a1d879d596be", "score": "0.7553154", "text": "private boolean checkBTState() {\n BluetoothAdapter mBtAdapter = BluetoothAdapter.getDefaultAdapter(); // CHECK THIS OUT THAT IT WORKS!!!\n if (mBtAdapter == null) {\n Toast.makeText(getBaseContext(), \"Device does not support Bluetooth\", Toast.LENGTH_SHORT).show();\n } else {\n if (!mBtAdapter.isEnabled()) {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n } else\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "cb6f52ed3a270739063a4bba02114b6f", "score": "0.74981374", "text": "private void checkBTState() {\n\n if (btAdapter == null) {\n Toast.makeText(getBaseContext(), \"Device does not support bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (!btAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "title": "" }, { "docid": "c697d1e878b3430dedc4cf1ceba4eef8", "score": "0.74924916", "text": "public void turnOnBluetooth(){\n BluetoothControl.getInstance().setAdapter(BluetoothAdapter.getDefaultAdapter());\n if (BluetoothControl.getInstance().getAdapter() == null) {\n Log.i(\"Bluetooh\", \"not support!\");\n }\n\n //request to turn on bluetooth\n if (!BluetoothControl.getInstance().getAdapter().isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, BluetoothControl.getInstance().REQUEST_ENABLE_BT);\n }\n }", "title": "" }, { "docid": "676734209bc9162d0a96f43220dcbca1", "score": "0.74886817", "text": "private void check_BT_state() {\n if(mBtAdapter == null) {\n Toast.makeText(getBaseContext(), \"Device does not support Bluetooth\", Toast.LENGTH_SHORT).show();\n } else {\n if (mBtAdapter.isEnabled()) {\n Log.d(TAG, \"Bluetooth is ON\");\n } else {\n // prompt user to turn on Bluetooth;\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "title": "" }, { "docid": "4db5e7567b4063bdada53ba5607ba6df", "score": "0.74771357", "text": "private void checkBTState() {\n\n if(btAdapter==null) {\n Toast.makeText(getBaseContext(), \"Device does not support bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "title": "" }, { "docid": "13e41dfac74db7f734fe012625ab1c9c", "score": "0.7473537", "text": "public static void Bluetooth_Enabled()\r\n\t{\r\n\t\t//Make device discoverable\r\n\t\tIntent discoverable_intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\r\n\t\tdiscoverable_intent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\r\n\t\tactivity.startActivity(discoverable_intent);\r\n\t}", "title": "" }, { "docid": "04cb4ac064ace29c064ca959120e5c2d", "score": "0.7448565", "text": "public void btState(View view) {\n if (adapter == null) {\n errorExit(\"Fatal Error\", \"Bluetooth Not supported. Aborting.\");\n } else {\n if (adapter.isEnabled()) {\n changeT(\"...Bluetooth is enabled...\");\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }\n }", "title": "" }, { "docid": "2bbc0e4eaf208abff682c80be234194d", "score": "0.74310744", "text": "public void turnOnBTSettings() {\n if (!isBluetoothEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }", "title": "" }, { "docid": "029f37943cf950c00efe5d56dc5cfcfe", "score": "0.7423521", "text": "private void checkBTState() {\n\n if(btAdapter==null) {\n Toast.makeText(getBaseContext(), \"El dispositivo no soporta bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "title": "" }, { "docid": "1ad074ae132ba507de25f2cb3c03cdd5", "score": "0.742279", "text": "private boolean askEnableBluetooth(){\n if(!adapter.isEnabled()){\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n mainActivity.startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "521d01bc14ee22ae4a4a4c814e06f1ac", "score": "0.7381186", "text": "private void checkBTState() {\n if(btAdapter==null) {\r\n errorExit(\"Fatal Error\", \"Bluetooth not support\");\r\n } else {\r\n if (btAdapter.isEnabled()) {\r\n Log.d(TAG, \"...Bluetooth ON...\");\r\n } else {\r\n //Prompt user to turn on Bluetooth\r\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\r\n startActivityForResult(enableBtIntent, 1);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "5a8f45f36e16dae0ae7282a5633492a3", "score": "0.7345846", "text": "@Override\n\tpublic void enableBluetooth(boolean state) throws RemoteException {\n\n\t}", "title": "" }, { "docid": "aff41e6b1c18ac511559b19e451f2be3", "score": "0.7279433", "text": "public void setBT()\r\n\t{\r\n\t\ttype = BLUETOOTH;\r\n\t}", "title": "" }, { "docid": "35a222607b0cd9cc9d3ce5aea89d7d75", "score": "0.72336143", "text": "protected void checkBT() {\n\t\tif (!mBluetoothAdapter.isEnabled()) {\n\t\t\tIntent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\t\tstartActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n\t\t} else\n\t\t\tthis.mIsBTEnabled = true;\n\t}", "title": "" }, { "docid": "1f0416ab9eae7ff53f1c77d33ef9924d", "score": "0.7219906", "text": "public boolean turnOnBt() {\n\t\tIntent Enable_Bluetooth=new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\tstartActivityForResult(Enable_Bluetooth, 1234);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "b816d2385045876f3b88e38d4fc03357", "score": "0.7140918", "text": "abstract void onBluetoothDisabled();", "title": "" }, { "docid": "f0b7233db1954db882da62df6efb3c3f", "score": "0.7094793", "text": "abstract void onBluetoothEnabled();", "title": "" }, { "docid": "78437bb4efb5e0ea31eb14444278a890", "score": "0.7089487", "text": "public void startbt() {\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (mBluetoothAdapter == null) {\n // Device does not support Bluetooth\n mkmsg(\"This device does not support bluetooth\");\n return;\n }\n //make sure bluetooth is enabled.\n if (!mBluetoothAdapter.isEnabled()) {\n mkmsg(\"There is bluetooth, but turned off\");\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n } else {\n mkmsg(\"The bluetooth is ready to use.\");\n //bluetooth is on, so list paired devices from here.\n querypaired();\n }\n }", "title": "" }, { "docid": "97bee52e1a9d86d66ea1e3b3c92ed0e8", "score": "0.7088402", "text": "@Override\n public void onClick(View view) {\n if(!BluetoothManager.getInstance().isBluetoothOn()){\n Toast.makeText(ControlPage.this,\"The bluetooth is off\", Toast.LENGTH_SHORT).show();\n }else{\n if(switchMode.getText() == \"AUTO\"){\n BluetoothManager.getInstance().sendData(ControlPage.this,\"1\");\n switchMode.setText(\"MANUAL\");\n Toast.makeText(ControlPage.this, \"Automatic mode\", Toast.LENGTH_SHORT).show();\n }else{\n BluetoothManager.getInstance().sendData(ControlPage.this,\"0\");\n switchMode.setText(\"AUTO\");\n Toast.makeText(ControlPage.this, \"Manual mode\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "title": "" }, { "docid": "7b3659f4e11af7f6626f637eb040666f", "score": "0.705146", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(requestCode == REQUEST_ENABLE_BT){\n CheckBlueToothState();\n }\n }", "title": "" }, { "docid": "609214783b4ce3920b0f0cebc9263e70", "score": "0.70396787", "text": "private void CheckBlueToothState(){\n if (bluetoothAdapter == null){\n Toast.makeText(this, \"Bluetooth no soportado\", Toast.LENGTH_SHORT).show();\n }else{\n if (bluetoothAdapter.isEnabled()){\n Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n // There are paired devices. Get the name and address of each paired device.\n for (BluetoothDevice device : pairedDevices) {\n String deviceName = device.getName();\n String deviceHardwareAddress = device.getAddress(); // MAC address\n mac=device.getAddress();\n }\n }else{\n Toast.makeText(this, \"no hay dispositivos\", Toast.LENGTH_SHORT).show();\n }\n }else{\n Toast.makeText(this, \"Bluetooth no está habilitado!\", Toast.LENGTH_SHORT).show();\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }\n }", "title": "" }, { "docid": "5afe80a5fe7812adaf4d377c1de3ebb8", "score": "0.70076865", "text": "public boolean isBluetoothOn(Context context) {\n BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (mBluetoothAdapter == null) {\n Toast.makeText(context, \"Bluetooth not supported\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return mBluetoothAdapter.isEnabled();\n }", "title": "" }, { "docid": "326a195393ffad186846d60d38eef0a2", "score": "0.6944951", "text": "@Override\n public void onBluetoothNotSupported() {\n new AlertDialog.Builder(this)\n .setMessage(R.string.no_bluetooth)\n .setPositiveButton(R.string.action_quit, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n })\n .setCancelable(false)\n .show();\n }", "title": "" }, { "docid": "5d0d9cf23d485b711eaa1bb898ff8c72", "score": "0.68238986", "text": "private void checkBluetoothPermission() {\n if (mBluetoothAdapter == null || !mBluetoothAdapter.isEnabled()) {\n Log.d(TAG, \"Bluetooth disabled. Asking to enable.\");\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, MY_PERMISSIONS_REQUEST_USE_BLUETOOTH);\n }\n }", "title": "" }, { "docid": "166833c9c5d0823ababc8b490250060f", "score": "0.6818131", "text": "private void checkBluetooth() {\n\t\t\n\t\tBluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n \tif (mBluetoothAdapter == null) {\n \t // Device does not support Bluetooth\n \t\tHelpers.showAlert(this, \"Bluetooth Adapter Error\", \"Device does not have a working Bluetooth adapter\");\n \t\treturn;\n \t}\n \t\n\t if (!mBluetoothAdapter.isEnabled()) {\n\t // Bluetooth is not enabled\n\t\t\tfinal Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\t\tstartActivityForResult(intent, REQUEST_CODE_ENABLE_BLUETOOTH);\n\t\t\treturn;\n\t }\n\t \n\t // Bluetooth is enabled\n \tif(isGooglePlayServicesConnected())\n \t\tgetUsername();\n\t}", "title": "" }, { "docid": "771a10a4e8914ffc437ea677dcd2739d", "score": "0.68027174", "text": "public boolean isBluetoothEnabled() {\n return adapter.isEnabled();\n }", "title": "" }, { "docid": "ffbbe9f96c28fde2241e342b4c6aed6b", "score": "0.67911613", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_ENABLE_BT) {\n if (resultCode == Activity.RESULT_CANCELED) {\n // Bluetooth not enabled\n finish();\n return;\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "title": "" }, { "docid": "4d5f067475c584926bfccfd2ad529001", "score": "0.67498565", "text": "private boolean checkBluetooth() throws ConfigurationException {\n boolean result = false;\n if (mBluetoothAdapter == null) {\n String error = \"Bluetooth not supported\";\n // Device does not support Bluetooth\n Log.d(MainActivity.TAG, error);\n tvStatusBluetooh.setText(error);\n throw new ConfigurationException(error);\n } else {\n if (!mBluetoothAdapter.isEnabled()) {\n setImageView(imgBluetooth, R.mipmap.invalid);\n setImageView(imgPaired, R.mipmap.invalid);\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n } else {\n Log.d(MainActivity.TAG, \"Bluetooth activated\");\n setImageView(imgBluetooth, R.mipmap.valid);\n result = true;\n }\n }\n return result;\n }", "title": "" }, { "docid": "9a92bb29f03731dd20f44a45b5ac3421", "score": "0.67492026", "text": "private boolean isBtEnabled() {\n if (mBTAdapter.isEnabled()) {\n// Log.d(\"MYLOG\", \"BT is enabled\");\n } else {\n// Log.d(\"MYLOG\", \"BT is disabled. Use Setting to enable it and then come back to this app\");\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "7b684a638ba4ace7424645c6234fd3c0", "score": "0.67486405", "text": "private void enableBle() {\n final Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\n }", "title": "" }, { "docid": "b1c0af4a1561b7a9cb9c2540c4d4605d", "score": "0.6742754", "text": "private int bcom_bluetooth_init() { // Determine UART or SHIM Mode & Turn BT off if no shim installed\n com_uti.logd(\"Start\");\n\n m_com_api.tuner_api_mode = \"UART\"; // Default = UART MODE\n if (com_uti.shim_files_possible_get()) { // If Bluedroid...\n com_uti.logd(\"Bluedroid support\");\n\n if (com_uti.shim_files_operational_get() && com_uti.bt_get()) { // If shim files operational, and BT is on...\n com_uti.logd(\"Bluedroid shim installed & BT on\");\n m_com_api.tuner_api_mode = \"SHIM\"; // SHIM MODE\n }\n }\n\n if (m_com_api.tuner_api_mode.equals(\"UART\")) {\n if (com_uti.bt_get()) {\n com_uti.logd(\"UART mode needed but BT is on; turn BT Off\");\n com_uti.bt_set(false, true); // Bluetooth off, and wait for off\n com_uti.rfkill_bt_wait(false); // Wait for BT off\n //com_uti.logd (\"Start 4 second delay after BT Off\");\n //com_uti.ms_sleep (4000); // Extra 4 second delay to ensure BT is off !!\n //com_uti.logd (\"End 4 second delay after BT Off\");\n }\n }\n\n com_uti.logd(\"done m_com_api.tuner_api_mode: \" + m_com_api.tuner_api_mode);\n return (0);\n }", "title": "" }, { "docid": "8009c70baf8dfc68a1722b18a466c96f", "score": "0.66955215", "text": "@Override\n\tpublic boolean isBluetoothAvailable() throws RemoteException {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "20f876b21b5434b258cd1751baaf4f0d", "score": "0.6681554", "text": "public void test_enableDisable() {\n if (!mHasBluetooth) {\n // Skip the test if bluetooth is not present.\n return;\n }\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\n\n for (int i=0; i<5; i++) {\n disable(adapter);\n enable(adapter);\n }\n }", "title": "" }, { "docid": "b0f85cc056b7909975106157335a8317", "score": "0.6620633", "text": "@Override\npublic void onClick(View v) {\n\tswitch(v.getId())\n\t{\n\tcase R.id.check:\n\t\tblueadapt=BluetoothAdapter.getDefaultAdapter();\n\t\tb3.setVisibility(View.GONE);\n\t\tet.setVisibility(View.VISIBLE);\n\t\t\n\t\tif(blueadapt.isEnabled())\n\t\t{\n\t\t\tString name=blueadapt.getName();\n\t\t\tString address=blueadapt.getAddress();\n\t\t\tString put=name + \" : \" +address;\n et.setText(put);\n b2.setVisibility(View.VISIBLE);\n\t\t}\n\t\t\n\t\telse\n\t\t\t{et.setText(\"Bluetooth is not on\");\n\t\t\t b1.setVisibility(View.VISIBLE); \n\t\t\t}\n\t\t\n\t\tbreak;\n\t\t\n\tcase R.id.disconnect:\n\t\t\n\t\tbreak;\n\t\t\n\tcase R.id.connect:\n\t\tString action=BluetoothAdapter.ACTION_STATE_CHANGED;\n\t\tString request=BluetoothAdapter.ACTION_REQUEST_ENABLE;\n\t\tIntentFilter x= new IntentFilter(action);\n\t\tstartActivityForResult(new Intent(request),0);\n\t\tbreak;\n\t\n\t}\n}", "title": "" }, { "docid": "77134c2bc54c4089727f0fd183f33570", "score": "0.6620232", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n\n if (BluetoothAdapter.ACTION_STATE_CHANGED.equals(intent.getAction())) {\n int bluetoothState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, 0);\n\n if (bluetoothState == BluetoothAdapter.STATE_ON) {\n Log.e(\"scofield\", \"bluetooth is enabled\");\n isBluetoothEnabled = true;\n getBluetoothMacAddress();\n }\n }\n }", "title": "" }, { "docid": "498e761793a618d2b676da09a298b3ab", "score": "0.6576742", "text": "public boolean isBluetoothEnabled()\n {\n \tif (m_BluetoothAdapter == null)\n \t{\n \t\treturn false;\n \t}\n\n \treturn m_BluetoothAdapter.isEnabled();\n }", "title": "" }, { "docid": "de7dd42093528b5baa91f4be46b5d905", "score": "0.65622073", "text": "public void setBluetoothTethering(boolean value) {\n if (!value) {\n if (mDunState == BluetoothDun.STATE_CONNECTING) {\n dunConnectRspNative(mDunConnPath, false);\t\t\t\t\t\n } else if (mDunState == BluetoothDun.STATE_CONNECTED) {\n dunDisconnectNative();\n }\n }\n \n if (mAdapter.getState() != BluetoothAdapter.STATE_ON && value) {\n IntentFilter filter = new IntentFilter();\n filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);\n mTetheringReceiver = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.STATE_OFF)\n == BluetoothAdapter.STATE_ON) {\n mTetheringOn = true;\n mContext.unregisterReceiver(mTetheringReceiver);\n }\n }\n };\n mContext.registerReceiver(mTetheringReceiver, filter);\n } else {\n mTetheringOn = value;\n }\n }", "title": "" }, { "docid": "b1dabafaeebd78acf29bf4a2f4e05624", "score": "0.6535602", "text": "public void on()\n {\n //check if bluetooth adapter exists on the device\n\n if(_bluetoothAdapter != null)\n {\n //check if bluetooth adapter is turned on\n if(!_bluetoothAdapter.isEnabled())\n {\n Intent turnOn = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(turnOn, 0);\n Toast.makeText(getApplicationContext(), \"Turned On\", Toast.LENGTH_LONG).show();\n }//end if\n else\n {\n Toast.makeText(getApplicationContext(), \"Already on\", Toast.LENGTH_LONG).show();\n }//end else\n }//end if\n else\n {\n Toast.makeText(getApplicationContext(), \"Bluetooth not supported on this device!\", Toast.LENGTH_LONG).show();\n }//end else\n }", "title": "" }, { "docid": "230d3fcb7cb3e060566cda7cf5f49a4c", "score": "0.6509725", "text": "@Override\r\n\tpublic boolean checkBluetooth() {\n\t\tintoSecondLevel(7);\r\n\t\tsendKeyCode(KEYCODE_DPAD_DOWN, 5);\r\n\t\tsendKeyCode(ENTER);\r\n\t\tsendKeyCode(KEYCODE_DPAD_RIGHT);\r\n\t\tsleep(10000);\r\n\t\tsendKeyCode(KEYCODE_DPAD_LEFT);\r\n\t\t\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "ba0b713bf97bcab7fab61ab54aa9a035", "score": "0.6500177", "text": "public void off()\n {\n //check if bluetooth adapter is turned on\n if(_bluetoothAdapter.isEnabled())\n {\n _bluetoothAdapter.disable();\n Toast.makeText(getApplication(), \"Turned off\", Toast.LENGTH_LONG).show();\n }//end if\n else\n {\n Toast.makeText(getApplication(), \"Already off\", Toast.LENGTH_LONG).show();\n }//end else\n }", "title": "" }, { "docid": "85a393d06a2d2ef988595b0c34afda53", "score": "0.64998883", "text": "public void on(View view) {\n if (!myBluetoothAdapter.isEnabled()) {\n //não estando ativo e necessario definir uma intent com a contante ACTION_REQUEST_ENABLE,sendo enviada a resposta para onActivityResult da actividade\n Intent turnOnIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(turnOnIntent, REQUEST_ENABLE_BT);\n Toast.makeText(getApplicationContext(), \"Bluetooth on\", Toast.LENGTH_SHORT).show();\n } /*else {\n Toast.makeText(this, \"Bluetooth ja esta on\", Toast.LENGTH_SHORT).show();\n }*/\n }", "title": "" }, { "docid": "e244efed6c6c68bc7d0384b829f991c8", "score": "0.64722735", "text": "public void visible()\n {\n //check if bluetooth adapter is turned on\n if(_bluetoothAdapter.isEnabled())\n {\n Intent getVisible = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n startActivityForResult(getVisible, 0);\n }//end if\n else\n {\n Toast.makeText(getApplicationContext(), \"Bluetooth must be enabled first!\", Toast.LENGTH_LONG).show();\n }//end else\n }", "title": "" }, { "docid": "43619e6af08198b9632d50c6955eeb75", "score": "0.64640564", "text": "public void onClick(DialogInterface dialog, int flag) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n bluetoothStatus.setText(\"Bluetooth на Вашем устройстве включен\");\n HelperMethods.showToast(\"Bluetooth включен\", testActivity.this);\n }", "title": "" }, { "docid": "bc0339e3c25180930811ef64324e6eec", "score": "0.64611816", "text": "void findBT() {\n\n try {\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if(mBluetoothAdapter == null) {\n myLabel.setText(\"No se encontro el adaptador Bluetooth \");\n }\n\n if(!mBluetoothAdapter.isEnabled()) {\n Intent enableBluetooth = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBluetooth, BLUETOOTH_REQUEST);\n myLabel.setText(\"Encienda el Bluetooth.\");\n }\n\n CargarDispositivosBlut();\n\n\n }catch(Exception e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "eca139b08bdc5e4f4b8ccc527b404341", "score": "0.6449798", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent Data) {\n\n if (resultCode == RESULT_OK) {\n if (requestCode == Bluetooth.REQUEST_ENABLE_BT_PAIR) {\n btnPaired.callOnClick();\n } else if (requestCode == Bluetooth.REQUEST_ENABLE_BT_DISCOVER) {\n btnDiscover.callOnClick();\n }\n\n } else\n EventBus.getDefault().post(new Bluetooth.BluetoothEvent(Bluetooth.DISABLED, null));\n }", "title": "" }, { "docid": "6e23f986514f54ff564df84282c1698c", "score": "0.6442645", "text": "private void startBluetoothService() {\n }", "title": "" }, { "docid": "9b3b2f25b79ad5a18ee522d1d5032bc4", "score": "0.642089", "text": "private static void enableBluetoothRadio(final ChoosePrinterController controller)\n\t\t\t{\n\t\t\t\tfinal ProgressDialog pd = ProgressDialog.show(controller, null, \"Habilitando Bluetooth...\", true, false);\n\t\t\t\t (new Thread(new Runnable()\n\t\t\t\t {\n\t\t\t\t\t public void run()\n\t\t\t\t\t {\n\t\t\t\t\t\t NetworkHelper.turnOnBluetoothRadio();\n\t\t\t\t\t\t controller.runOnUiThread(new Runnable()\n\t\t\t\t\t\t {\n\t\t\t\t\t\t public void run()\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t controller.sequenceDiscoveryOperations(DiscoveryState.BT_STARTED);\n\t\t\t\t\t\t\t pd.dismiss();\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 })).start();\n\t\t\t}", "title": "" }, { "docid": "3162a8d5e8bad3b70a9400a061564c1a", "score": "0.6402501", "text": "private boolean checkIfAvailableBle(){\n if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Toast.makeText(mContext, \"ble_not_supported\", Toast.LENGTH_SHORT).show();\n // finish();\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "1eb3348aca65b6f1ffcc229754067462", "score": "0.6387576", "text": "private void enableBTAndLoc() {\n /*\n If BT is not available / non-existant, no bluetooth\n Else\n if BT is not enabled, try to enable it\n else\n if loc services aren't enabled, enable location services\n else scan\n */\n\n if (getCurrentState() == ConnectionState.NULL) {\n notifyNoBluetooth();\n } else {\n if (!isBluetoothEnabled()) turnOnBTSettings();\n else {\n if (!isLocationEnabled()) turnOnLocationServices();\n else scanBTLEDevices();\n }\n }\n }", "title": "" }, { "docid": "840023ee3ef7051ae49679672d764c29", "score": "0.63496244", "text": "void findBluetooth() {\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (mBluetoothAdapter == null) {\n System.out.println(\"Not Available\");\n }\n\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBluetooth = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n mBluetoothAdapter.enable();\n }\n\n Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n if (device.getName().equals(\"BmateOCU\")) {\n mBluetoothDevice = device;\n break;\n }\n }\n }\n System.out.println(\"Bluetooth device found\");\n }", "title": "" }, { "docid": "d27bad1bbd33d5c8efeb8d9833d5b5bf", "score": "0.6327506", "text": "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == BLEUtil.REQUEST_ENABLE_BLUETOOTH\r\n && !BLEUtil.isBluetoothEnabled(this)) {\r\n finish();\r\n return;\r\n }\r\n\r\n super.onActivityResult(requestCode, resultCode, data);\r\n }", "title": "" }, { "docid": "f2cde01872787a336d2379259f516582", "score": "0.62950504", "text": "@Override\n public boolean onLegacyModeEnabled(String info) {\n if(requestedPrimaryTransports!= null && requestedPrimaryTransports.contains(TransportType.BLUETOOTH)\n && !SdlProtocolBase.this.requiresHighBandwidth){\n Log.d(TAG, \"Entering legacy mode; creating new protocol instance\");\n reset();\n return true;\n }else{\n Log.d(TAG, \"Bluetooth is not an acceptable transport; not moving to legacy mode\");\n return false;\n }\n }", "title": "" }, { "docid": "452b175364359002463e31ac129c6df0", "score": "0.6293581", "text": "public boolean isPowerOn() {\n return BCC.getInstance().isBluetoothEnabled();\n }", "title": "" }, { "docid": "ea985550a762c01cac6b58d482a45dd1", "score": "0.62883294", "text": "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == LongPongActivity.RESULT_OK) {\n if (DEBUG_MODE)\n Log.i(\"BT ENABLED\", \"Bluetooth is enabled!\");\n startServerPopulateSpinner();\n }\n if (resultCode == LongPongActivity.RESULT_CANCELED) {\n if (DEBUG_MODE)\n Log.e(\"BT ENABLED\", \"Bluetooth failed to enable.\");\n activity.finish();\n }\n }", "title": "" }, { "docid": "2c63be72368e8812914b32872d888f35", "score": "0.6272168", "text": "@Override\r\n\tpublic void doBluetoothConnection() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8a2f10ce3a01c7fcbc5ca292ff07f667", "score": "0.6250065", "text": "@Override\n\tpublic void servicedisabled() {\n\t\tmac.setState(mac.getDisabled());\n\t\tSystem.out.print(\"You are in Diabled state\");\n\t}", "title": "" }, { "docid": "6ae4718fabe677de3fe8901738d05601", "score": "0.6215367", "text": "private void notifyNoBluetooth() {\n if (reporterContext == null) return;\n AlertDialog.Builder builder = new AlertDialog.Builder(reporterContext);\n builder.setMessage(getString(R.string.no_bluetooth)).setCancelable(false).setNeutralButton(\"Okay\", null).create().show();\n }", "title": "" }, { "docid": "33f011ddbb5cda1e236a0258a7849fa8", "score": "0.6202964", "text": "boolean btSetStatusBLE(boolean stat);", "title": "" }, { "docid": "fd75d5b5537f9e5963c6facbefd5bc61", "score": "0.61996067", "text": "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent Data) {\r\n // Check which request we're responding to\r\n if (requestCode == REQUEST_ENABLE_BT) {\r\n // Make sure the request was successful\r\n if (resultCode == RESULT_OK) {\r\n // The user picked a contact.\r\n // The Intent's data Uri identifies which contact was selected.\r\n mBluetoothStatus.setText(\"Enabled\");\r\n } else\r\n mBluetoothStatus.setText(\"Disabled\");\r\n }\r\n }", "title": "" }, { "docid": "bc40e7ba7a50f86fedcfc98a4cb0c92c", "score": "0.619111", "text": "@Kroll.method\n\tpublic void requestBluetoothStatus(){\t\t\n\t\t// your code goes here\n\t\tif(timer != null){\n\t\t\ttimer.cancel();\n \t\ttimer.purge();\t\n\t\t}\n\t\ttimer = new Timer();\n \tTimerTask task = new TimerTask() {\n \tpublic void run()\n \t{\n \t\tnewStatusBluethoot = checkAvailability();\n \t\tif(firstTimeChangeStatusBluethoot){// solo la prima volta\n \t\t\toldStatusBluethoot = !newStatusBluethoot;\n \t\t\tfirstTimeChangeStatusBluethoot = !firstTimeChangeStatusBluethoot;\n \t\t}\n \t\tif(newStatusBluethoot != oldStatusBluethoot){\n\t \t\tKrollDict e = new KrollDict();\n\t \t\tif(checkAvailability())\n\t \t\t\te.put(\"status\",\"on\");\n\t \t\telse \n\t \t\t\te.put(\"status\",\"off\");\n\t \t\tfireEvent(\"bluetoothStatus\", e);\n\t \t\toldStatusBluethoot = newStatusBluethoot;\n \t\t}\n \t}\n \t};\t\n\t\ttimer.scheduleAtFixedRate(task, new Date(), 3000l);\t\t\n\t}", "title": "" }, { "docid": "bfd967c2f2108412f4cb614064e40c60", "score": "0.6174019", "text": "@Override\n public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {\n setPreferencesFromResource(R.xml.root_preferences, rootKey);\n\n BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (bluetoothAdapter == null) {\n Log.e(\"Settings\", \"Device doesn't support bluetooth!\");\n }else{\n // We could harass the user to enable it, but I think that's rude so I won't.\n\n /*\n if (!bluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n */\n\n ListPreference btDevicesList = (ListPreference) findPreference(\"btdevices\");\n\n if(bluetoothAdapter.isEnabled()){\n Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();\n\n //We don't search for devices, but rather expect that devices are already paired.\n if (pairedDevices.size() > 0) {\n CharSequence[] entries=new CharSequence[pairedDevices.size()];\n CharSequence[] entryvalues=new CharSequence[pairedDevices.size()];\n\n int i=0;\n // There are paired devices. Get the name and address of each paired device.\n for (BluetoothDevice device : pairedDevices) {\n String deviceName = device.getName();\n String deviceHardwareAddress = device.getAddress(); // MAC address\n Log.v(\"Settings\", String.format(\"BT Devices: %s at %s\", deviceName, deviceHardwareAddress));\n\n entries[i]=device.getName();\n entryvalues[i]=device.getAddress();\n\n i++;\n }\n\n btDevicesList.setEntries(entries);\n btDevicesList.setEntryValues(entryvalues);\n }else{\n Log.e(\"Settings\", \"No devices are paired.\");\n CharSequence[] entries=new CharSequence[1];\n CharSequence[] entryvalues=new CharSequence[1];\n entries[0]=\"none\";\n entryvalues[0]=\"none\";\n\n btDevicesList.setEntries(entries);\n btDevicesList.setEntryValues(entryvalues);\n }\n }else{\n Log.e(\"Settings\", \"BT is disabled.\");\n CharSequence[] entries=new CharSequence[1];\n CharSequence[] entryvalues=new CharSequence[1];\n entries[0]=\"disabled\";\n entryvalues[0]=\"disabled\";\n\n btDevicesList.setEntries(entries);\n btDevicesList.setEntryValues(entryvalues);\n }\n }\n }", "title": "" }, { "docid": "029831793f663228f644fff60724984e", "score": "0.6166509", "text": "@Override\n public void onClick(View v) {\n String connectingDevice=config.getConnectPreipheralOpsition().getBluetooth();\n if (connectingDevice.equals(Constant.BLT_WBP)||connectingDevice.equals(Constant.AL_WBP))\n {\n resolveWbp.SendForAll(mBLE);\n }else {\n\n resolvewt1.SendForAll(mBLE);\n }\n }", "title": "" }, { "docid": "d288bf48b76c099a5025acbde85dea29", "score": "0.6158972", "text": "public static boolean hasBluetooth(Context context) {\n return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH);\n }", "title": "" }, { "docid": "3b4fdfe85b306d52a2c64eeec0952718", "score": "0.61427855", "text": "void openBT() throws IOException {\n try {\n\n // Standard SerialPortService ID\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\");\n mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);\n mmSocket.connect();\n mmOutputStream = mmSocket.getOutputStream();\n mmInputStream = mmSocket.getInputStream();\n\n beginListenForData();\n\n// myLabel.setText(\"Bluetooth Opened\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "2930beadcc5bc243e55871112475681e", "score": "0.6108643", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n // Check which request we're responding to\n if (requestCode == REQUEST_ENABLE_BT) {\n // Make sure the request was successful\n if (resultCode == RESULT_OK) {\n // The user picked a contact\n // The intent's data Uri identifies which contact was selected\n mBluetoothStatus.setText(R.string.enabled);\n } else\n mBluetoothStatus.setText(R.string.disabled);\n mReadBuffer.setText(R.string.readBuffer);\n }\n }", "title": "" }, { "docid": "5ea512e78fa1cbd081458346c345fb00", "score": "0.61078393", "text": "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\t if (!btadapter.isEnabled()) {\n\t Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t startActivityForResult(enableIntent, 3);\n\t }\n\t}", "title": "" }, { "docid": "cb551a1c5e266b164593008fcbee78dc", "score": "0.60991323", "text": "private boolean isBleEnabled() {\n final BluetoothManager bm = (BluetoothManager) getActivity().getSystemService(Context.BLUETOOTH_SERVICE);\n final BluetoothAdapter ba = bm.getAdapter();\n return ba != null && ba.isEnabled();\n }", "title": "" }, { "docid": "1c6709e53a5cdb823517006431ca5618", "score": "0.60925925", "text": "public boolean isBlueToothReady();", "title": "" }, { "docid": "d2139f5672eb4307fa583294ad54401e", "score": "0.6084639", "text": "public void connectBt(){\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n if (btAdapter == null) {\n finish();\n }\n\n //If adapter off.. Attempt to turn on\n if (!btAdapter.isEnabled()) {\n Intent enableBluetooth = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBluetooth, REQUEST_ENABLE_BT);\n }\n\n BluetoothDevice remoteDevice = null;\n Set<BluetoothDevice> pairedDevices = btAdapter.getBondedDevices();\n if(pairedDevices.size() > 0){\n for(BluetoothDevice device: pairedDevices){\n if(device.getName().equalsIgnoreCase(\"AEGIN\")){\n remoteDevice = device;\n break;\n }\n }\n }\n\n try {\n btSocket = remoteDevice.createRfcommSocketToServiceRecord(SERIAL_UUID);\n btSocket.connect();\n outStream = btSocket.getOutputStream();\n }\n catch(IOException e){\n System.out.println(\"Error Connecting\");\n }\n }", "title": "" }, { "docid": "461193f05bf38b3e1b7e784d92c3e4bd", "score": "0.6045496", "text": "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (requestCode == REQUEST_ENABLE_BT\r\n\t\t\t\t&& resultCode == Activity.RESULT_CANCELED) {\r\n\t\t\tfinish();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t}", "title": "" }, { "docid": "4a8a3506194e309c3faab6893b1f1548", "score": "0.60401136", "text": "public boolean initialize() {\n if (mBluetoothManager == null) {\n mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n if (mBluetoothManager == null) {\n return false;\n }\n }\n mBluetoothAdapter = mBluetoothManager.getAdapter();\n if (mBluetoothAdapter == null) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "1424f7b9dd25af69e69194615da160d1", "score": "0.6036297", "text": "private void verifyBluetoothSupport(){\n // Use this check to determine whether BLE is supported on the device. Then you can\n // selectively disable BLE-related features.\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Toast.makeText(this, \"Bluetooth Low Energy Not Supported\", Toast.LENGTH_SHORT).show();\n finish();\n }\n\n // Initializes a Bluetooth adapter. For API level 18 and above, get a reference to\n // BluetoothAdapter through BluetoothManager.\n final BluetoothManager bluetoothManager;\n bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n\n final BluetoothAdapter mBluetoothAdapter = bluetoothManager.getAdapter();\n\n // Checks if Bluetooth is supported on the device.\n if (mBluetoothAdapter == null) {\n Toast.makeText(this, \"Bluetooth Not Supported\", Toast.LENGTH_SHORT).show();\n finish();\n return;\n }\n }", "title": "" }, { "docid": "27f5ca0d0078f54d0dfd7b1642f99aa3", "score": "0.603574", "text": "public void selectDeviceButton_Clicked(View v) {\n this.enableBluetooth();\n new BluetoothDeviceManager(this).pickDevice(new DevicePickedHandler());\n }", "title": "" }, { "docid": "8988fbc928ee6923e210a337ed4f6234", "score": "0.6022424", "text": "private void checkBluetoothStateAndNotifyListeners() {\n boolean state = isBluetoothEnabled();\n if (state != bluetoothEnabled) {\n bluetoothEnabled = state;\n for (int i = 0, size = listeners.size(); i < size; i++) {\n listeners.get(i).onBluetoothStatusChange(bluetoothEnabled);\n }\n }\n }", "title": "" }, { "docid": "950f1d1b7f33f47abf43dcf1eb83d1a2", "score": "0.6015666", "text": "@Override\n public void onClick(View v) {\n if (Bluetooth.BT_Connected) {\n bluetooth.btOUT(\"*S1#\".getBytes(), true);\n } else {\n Toast.makeText(getActivity().getApplication(), \"Bt Not Connected\",\n Toast.LENGTH_SHORT).show();\n }\n\n\n }", "title": "" }, { "docid": "3bdcf45941d4b5a9a95fd57d06a63e51", "score": "0.59987444", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n boolean result = false;\n\n //detect which option was selected if any\n switch(item.getItemId())\n {\n case 0: //turn on bluetooth\n on();\n result = true;\n break;\n case 1: //turn off bluetooth\n off();\n result = true;\n break;\n case 2: //search for nearby devices\n //check if bluetooth adapter is turned on\n if(_bluetoothAdapter.isEnabled())\n {\n Intent searchIntent = new Intent(this, DeviceListActivity.class);\n searchIntent.putExtra(\"instruction\", 1);\n startActivityForResult(searchIntent, 1);\n result = true;\n }//end if\n else\n {\n Toast.makeText(getApplicationContext(), \"Bluetooth must be enabled first!\", Toast.LENGTH_LONG).show();\n }//end else\n\n break;\n case 3: //list all paired devices\n //check if bluetooth adapter is turned on\n if(_bluetoothAdapter.isEnabled())\n {\n Intent listIntent = new Intent(this, DeviceListActivity.class);\n listIntent.putExtra(\"instruction\", 2);\n startActivityForResult(listIntent, 1);\n result = true;\n }//end if\n else\n {\n Toast.makeText(getApplicationContext(), \"Bluetooth must be enabled first!\", Toast.LENGTH_LONG).show();\n }//end else\n break;\n case 4:\n //check if bluetooth adapter is turned on\n if(_bluetoothAdapter.isEnabled())\n {\n Intent __connectedDevicesIntent = new Intent(this, DeviceListActivity.class);\n __connectedDevicesIntent.putExtra(\"instruction\", 3);\n __connectedDevicesIntent.putExtra(\"devices\", _connectedBluetoothDevice);\n startActivityForResult(__connectedDevicesIntent, 2);\n result = true;\n }//end if\n else\n {\n Toast.makeText(getApplicationContext(), \"Bluetooth must be enabled first!\", Toast.LENGTH_LONG).show();\n }//end else\n break;\n case 5: //make device visible\n visible();\n result = true;\n break;\n }//end switch\n\n return result;\n }", "title": "" }, { "docid": "8096de366cc24d837965d41c42f78150", "score": "0.5992973", "text": "public static int m49587k(Context context) {\n if (!C8382a.m49603a(context, \"android.permission.BLUETOOTH\")) {\n return 0;\n }\n BluetoothAdapter defaultAdapter = BluetoothAdapter.getDefaultAdapter();\n if (defaultAdapter == null) {\n return -1;\n }\n return defaultAdapter.isEnabled() ? 1 : 0;\n }", "title": "" }, { "docid": "21f59c6fc289e2e796cd2261960a99ab", "score": "0.59836215", "text": "public void scan(View v) {\n if (!btAdapter.isEnabled()) {\n Intent turnOn = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(turnOn, BLUETOOTH_ON);\n } else\n load();\n }", "title": "" }, { "docid": "d212a1c5328b38ff86193c29781680d2", "score": "0.59774727", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_ENABLE_BT && resultCode == Activity.RESULT_CANCELED) {\n finish();\n return;\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "title": "" }, { "docid": "d212a1c5328b38ff86193c29781680d2", "score": "0.59774727", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_ENABLE_BT && resultCode == Activity.RESULT_CANCELED) {\n finish();\n return;\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "title": "" }, { "docid": "d212a1c5328b38ff86193c29781680d2", "score": "0.59774727", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_ENABLE_BT && resultCode == Activity.RESULT_CANCELED) {\n finish();\n return;\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "title": "" }, { "docid": "d212a1c5328b38ff86193c29781680d2", "score": "0.59774727", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_ENABLE_BT && resultCode == Activity.RESULT_CANCELED) {\n finish();\n return;\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "title": "" }, { "docid": "62ade3deff579a5e3f11321af4635c4a", "score": "0.59761614", "text": "public void startBTService(){\n\t\tif (mBtService != null) {\t\t\t\n // Only if the state is STATE_NONE, do we know that we haven't started already\n if (mBtService.getState() == BluetoothService.STATE_NONE) {\n // Start the Bluetooth chat services\n \tmBtService.start();\n }\n }\n\t\telse\n\t\t{\n\t\t\tif(D) Log.d(TAG, \"Bluetooth set:can't start BT service!\");\n\t\t}\n\t}", "title": "" }, { "docid": "628cb89d833d0f09977f2bdfeca7ac30", "score": "0.5958523", "text": "private boolean isBleAvailable() {\n\n boolean hasBle = getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE);\n if (hasBle && mBTManager != null && mBTAdapter != null) {\n// Log.d(\"MYLOG\", \"BLE hardware available\");\n } else {\n// Log.d(\"MYLOG\", \"BLE hardware is missing!\");\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "c0fc7092ce742ce986521dec65bf0103", "score": "0.5952291", "text": "void bluetoothConnected();", "title": "" }, { "docid": "b5c212fac15420788b1135f25f499c7c", "score": "0.5942112", "text": "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_ENABLE_BT && resultCode == Activity.RESULT_CANCELED) {\n return;\n } else if (requestCode == REQUEST_ENABLE_BT && resultCode == Activity.RESULT_OK) {\n // Show progress bar. Trying to connect to device right now.\n showProgressDialog();\n mBinding.heartRateSwitch.setChecked(true);\n } else if (requestCode == LocationProvider.REQUEST_RESOLUTION_REQUIRED &&\n resultCode == Activity.RESULT_CANCELED) {\n mBinding.gpsSwitch.setChecked(false);\n return;\n } else if (requestCode == LocationProvider.REQUEST_RESOLUTION_REQUIRED &&\n resultCode == Activity.RESULT_OK) {\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "title": "" }, { "docid": "1f8195f15526706f925059196dc31016", "score": "0.5932256", "text": "@Override\n public void onClick(View arg0) {\n if (Bluetooth.BT_Connected) {\n bluetooth.btOUT(\"*S4#\".getBytes(), true);\n } else {\n Toast.makeText(getActivity().getApplication(), \"Bt Not Connected\",\n Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "95812ffb01124d60a42eaeeb6e118005", "score": "0.5926112", "text": "public static boolean initializeBluetoothAdapter(Context c){\n\t\tfinal BluetoothManager bluetoothManager =\n\t\t (BluetoothManager) c.getSystemService(Context.BLUETOOTH_SERVICE);\n\t\t_ibp._bluetoothAdapter = bluetoothManager.getAdapter();\n\t\tif (_ibp._bluetoothAdapter == null || !_ibp._bluetoothAdapter.isEnabled()) {\n\t\t return false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2a4e1f4a08fb28ef5449242fba984216", "score": "0.5914854", "text": "void openBT() throws IOException {\n try {\n\n // Standard SerialPortService ID\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\");\n mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);\n mmSocket.connect();\n mmOutputStream = mmSocket.getOutputStream();\n mmInputStream = mmSocket.getInputStream();\n\n beginListenForData();\n\n myLabel.setText(\"Listo para imprimir\");\n\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(),\"Error conectando a la impresora (\"+ImpresoraName.getText().toString()+\")\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "c85ee5058913d7246fbfb354fa7ed8c1", "score": "0.59080607", "text": "@Override\n public void onClick(View arg0) {\n if (Bluetooth.BT_Connected) {\n bluetooth.btOUT(\"*S5#\".getBytes(), true);\n } else {\n Toast.makeText(getActivity().getApplication(), \"Bt Not Connected\",\n Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "66a5c9411411824927d64b2b2d459166", "score": "0.5892998", "text": "@Override\r\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent intent)\r\n\t{\n\t\tif (requestCode == REQUEST_BT_ENABLE)\r\n\t\t{\r\n\t\t\t//If callback doesnt exist, no reason to proceed\r\n\t\t\tif (initCallbackContext == null)\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Whether the result code was successful or not, just check whether Bluetooth is enabled\r\n\t\t\tif (!bluetoothAdapter.isEnabled())\r\n\t\t\t{\r\n\t\t\t\tJSONObject returnObj = new JSONObject();\r\n\t\t\t\taddProperty(returnObj, keyCode, codeErrorEnable);\r\n addProperty(returnObj, keyError, errorEnable);\r\n\t\t \taddProperty(returnObj, keyMessage, logNotEnabled);\r\n\t\t \t\r\n\t\t \tPluginResult pluginResult = new PluginResult(PluginResult.Status.ERROR, returnObj);\r\n\t pluginResult.setKeepCallback(true);\r\n\t initCallbackContext.sendPluginResult(pluginResult);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b4e68c98e107d24e0fff519da1c98b39", "score": "0.5891109", "text": "public void monitorBluetooth(View view) {\n \tactivityType = Helpers.ActivityType.FOREGROUND_BLUETOOTH_MONITOR;\n \t\n \tcheckBluetooth();\n }", "title": "" }, { "docid": "ffaa3c518ca3c8bff7f3a268fe19e686", "score": "0.58879745", "text": "@Override\n public void onClick(View v) {\n if (v.getId() == R.id.btnShare) {\n if (isBluetoothSupported()) {\n if (!isBluetoothOn()) {\n enableBluetooth();\n } else {\n MainActivity.getInstance().\n openFileSelection((Uri uri) -> openShareFileBluetooth(uri));\n }\n }\n }\n }", "title": "" }, { "docid": "a1f210cb13fd215cff15091f6c2899f0", "score": "0.5881631", "text": "public static boolean isBluetoothEnabled(@NonNull final Context context) {\n final BluetoothManager bluetoothManager = (BluetoothManager) context.getSystemService(Context.BLUETOOTH_SERVICE);\n\n if (bluetoothManager == null) {\n return false;\n }\n\n final BluetoothAdapter bluetoothAdapter = bluetoothManager.getAdapter();\n if (bluetoothAdapter == null) {\n return false;\n }\n\n return bluetoothAdapter.isEnabled();\n }", "title": "" }, { "docid": "d2b920fe85dda1729b8a8eecfcc2782b", "score": "0.5877527", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == BLUETOOTH_ON && resultCode == RESULT_OK) {\n load();\n }\n }", "title": "" }, { "docid": "33de9248d4e92c92f249f574738beb1b", "score": "0.58758557", "text": "private void setupBTReceiver()\n {\n resetBTReceiver();\n // TDLog.Log( TDLog.LOG_COMM, \"setup BT receiver\");\n mBTReceiver = new BroadcastReceiver() \n {\n @Override\n public void onReceive( Context ctx, Intent data )\n {\n String action = data.getAction();\n BluetoothDevice bt_device = data.getParcelableExtra( BluetoothDevice.EXTRA_DEVICE );\n String device = ( bt_device != null )? bt_device.getAddress() : \"undefined\";\n\n // if ( BluetoothAdapter.ACTION_DISCOVERY_STARTED.equals( action ) ) {\n // } else if ( BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals( action ) ) {\n // } else if ( BluetoothDevice.ACTION_FOUND.equals( action ) ) {\n if ( BluetoothDevice.ACTION_ACL_CONNECTED.equals( action ) ) {\n // TDLog.Log( TDLog.LOG_BT, \"[C] ACL_CONNECTED \" + device + \" addr \" + mAddress );\n if ( device.equals(mAddress) ) // FIXME ACL_DISCONNECT\n {\n mApp.mDataDownloader.setConnected( true );\n mApp.notifyStatus();\n }\n } else if ( BluetoothDevice.ACTION_ACL_DISCONNECT_REQUESTED.equals( action ) ) {\n // TDLog.Log( TDLog.LOG_BT, \"[C] ACL_DISCONNECT_REQUESTED \" + device + \" addr \" + mAddress );\n if ( device.equals(mAddress) ) // FIXME ACL_DISCONNECT\n {\n mApp.mDataDownloader.setConnected( false );\n mApp.notifyStatus();\n closeSocket( );\n }\n } else if ( BluetoothDevice.ACTION_ACL_DISCONNECTED.equals( action ) ) {\n // TDLog.Log( TDLog.LOG_BT, \"[C] ACL_DISCONNECTED \" + device + \" addr \" + mAddress );\n if ( device.equals(mAddress) ) // FIXME ACL_DISCONNECT\n {\n mApp.mDataDownloader.setConnected( false );\n mApp.notifyStatus();\n closeSocket( );\n mApp.notifyDisconnected();\n }\n } else if ( BluetoothDevice.ACTION_BOND_STATE_CHANGED.equals( action ) ) { // NOT USED\n final int state = data.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, BluetoothDevice.ERROR);\n final int prevState = data.getIntExtra(BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE, BluetoothDevice.ERROR);\n if (state == BluetoothDevice.BOND_BONDED && prevState == BluetoothDevice.BOND_BONDING) {\n TDLog.Log( TDLog.LOG_BT, \"BOND STATE CHANGED paired (BONDING --> BONDED) \" + device );\n } else if (state == BluetoothDevice.BOND_NONE && prevState == BluetoothDevice.BOND_BONDED){\n TDLog.Log( TDLog.LOG_BT, \"BOND STATE CHANGED unpaired (BONDED --> NONE) \" + device );\n } else if (state == BluetoothDevice.BOND_BONDING && prevState == BluetoothDevice.BOND_BONDED) {\n TDLog.Log( TDLog.LOG_BT, \"BOND STATE CHANGED unpaired (BONDED --> BONDING) \" + device );\n if ( mBTSocket != null ) {\n // TDLog.Error( \"[*] socket is not null: close and retry connect \");\n mApp.mDataDownloader.setConnected( false );\n mApp.notifyStatus();\n closeSocket( );\n mApp.notifyDisconnected();\n connectSocket( mAddress ); // returns immediately if mAddress == null\n }\n } else {\n TDLog.Log( TDLog.LOG_BT, \"BOND STATE CHANGED \" + prevState + \" --> \" + state + \" \" + device );\n }\n\n // DeviceUtil.bind2Device( data );\n // } else if ( BluetoothDevice.ACTION_PAIRING_REQUEST.equals(action) ) {\n // Log.v(\"DistoX\", \"PAIRING REQUEST\");\n // // BluetoothDevice device = getDevice();\n // // //To avoid the popup notification:\n // // device.getClass().getMethod(\"setPairingConfirmation\", boolean.class).invoke(device, true);\n // // device.getClass().getMethod(\"cancelPairingUserInput\", boolean.class).invoke(device, true);\n // // byte[] pin = ByteBuffer.allocate(4).putInt(0000).array();\n // // //Entering pin programmatically: \n // // Method ms = device.getClass().getMethod(\"setPin\", byte[].class);\n // // //Method ms = device.getClass().getMethod(\"setPasskey\", int.class);\n // // ms.invoke(device, pin);\n // \n // //Bonding the device:\n // // Method mm = device.getClass().getMethod(\"createBond\", (Class[]) null);\n // // mm.invoke(device, (Object[]) null);\n }\n }\n };\n\n\n // mApp.registerReceiver( mBTReceiver, new IntentFilter( BluetoothDevice.ACTION_FOUND ) );\n // mApp.registerReceiver( mBTReceiver, new IntentFilter( BluetoothAdapter.ACTION_DISCOVERY_STARTED ) );\n // mApp.registerReceiver( mBTReceiver, new IntentFilter( BluetoothAdapter.ACTION_DISCOVERY_FINISHED ) );\n mApp.registerReceiver( mBTReceiver, new IntentFilter( BluetoothDevice.ACTION_ACL_CONNECTED ) );\n mApp.registerReceiver( mBTReceiver, new IntentFilter( BluetoothDevice.ACTION_ACL_DISCONNECT_REQUESTED ) );\n mApp.registerReceiver( mBTReceiver, new IntentFilter( BluetoothDevice.ACTION_ACL_DISCONNECTED ) );\n // mApp.registerReceiver( mBTReceiver, uuidFilter = new IntentFilter( myUUIDaction ) );\n mApp.registerReceiver( mBTReceiver, new IntentFilter( BluetoothDevice.ACTION_BOND_STATE_CHANGED ) );\n // mApp.registerReceiver( mBTReceiver, new IntentFilter( BluetoothDevice.ACTION_PAIRING_REQUEST ) );\n }", "title": "" }, { "docid": "eed79a6df1d2f27ee99c233117f636b7", "score": "0.58672476", "text": "private void enableDiscovery() {\n if (btAdapter.getScanMode() != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n startActivity(discoverableIntent);\n } else\n showToast(\"Device is already discoverable\");\n }", "title": "" }, { "docid": "4763c471a82114508ef0bbfabc139686", "score": "0.5862825", "text": "public static boolean isBleSupported(@NonNull final Context context) {\n try {\n if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE) == false) {\n return false;\n }\n\n final BluetoothManager bluetoothManager = (BluetoothManager) context.getSystemService(Context.BLUETOOTH_SERVICE);\n\n final BluetoothAdapter bluetoothAdapter = bluetoothManager.getAdapter();\n if (bluetoothAdapter != null) {\n return true;\n }\n } catch (final Throwable ignored) {\n // ignore exception\n }\n return false;\n }", "title": "" } ]